* src/doprnt.c: Do not include stdlib.h, config.h does it.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
92bc9a36
DN
12010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * doprnt.c: Do not include stdlib.h, config.h does it.
4 Move #include before macro definition.
5
15f844ac
DN
62010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
7
48e24408
DN
8 * Makefile.in (temacs): Link using $(CC) not $(LD).
9 (LD_FIRSTFLAG): Define using autoconf.
10 (LD): Remove.
11
65539506
DN
12 Remove HAVE_TERMIOS definitions.
13 * s/usg5-4-common.h (HAVE_TERMIOS):
14 * s/template.h (HAVE_TERMIOS):
15 * s/gnu-linux.h (HAVE_TERMIOS):
16 * s/darwin.h (HAVE_TERMIOS):
17 * s/cygwin.h (HAVE_TERMIOS):
18 * s/bsd-common.h (HAVE_TERMIOS):
19 * s/aix4-2.h (HAVE_TERMIOS):
20 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
21 defined on all non-MS platforms.
22 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
23
15f844ac
DN
24 * xterm.c (xt_action_hook): Use const.
25
7d701334
JB
262010-09-20 Juanma Barranquero <lekktu@gmail.com>
27
28 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
29 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
30 (gethostname) [!HAVE_SOCKETS]: Remove.
31 (SOCK_REPLACE_HANDLE): Remove macro.
32 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
33 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
34 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
35 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
36
f3ec267a
EZ
372010-09-18 Eli Zaretskii <eliz@gnu.org>
38
39 * deps.mk (xml.o): Add dependencies.
40
93acd23d
JB
41 * xdisp.c (Fcurrent_bidi_paragraph_direction):
42 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
43
44 * bidi.c (bidi_paragraph_init): Accept an additional argument
45 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
46 search back until a paragraph with a strong directional character
47 is found, and use that to determine paragraph's base direction.
48
49 * dispextern.h (bidi_paragraph_init): Update prototype.
50
69e847be
EZ
512010-09-17 Eli Zaretskii <eliz@gnu.org>
52
53 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
54 of w32api >= 3.15. (Bug#6989)
55
283357a7
LMI
562010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
57
58 * process.c (wait_reading_process_output): Don't message about
59 accept-process-output unless the time limit really is zero.
60
4ddb20d6
SM
612010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
62
63 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
64 int/Lisp_Object mixup).
65
e24ad6dd
J
662010-09-17 Jan Djärv <jan.h.d@swipnet.se>
67
68 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
69 not HELP.
70
fb0cf781
J
712010-09-17 Stephen Berman <stephen.berman@gmx.net>
72
73 * frame.c (Ftool_bar_pixel_width): New function to expose tool
74 bar's pixel width to Lisp (Bug#7048).
75
4ddb20d6
SM
762010-09-14 Juanma Barranquero <lekktu@gmail.com>
77
78 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 79
318a04c6
J
802010-09-17 Jan Djärv <jan.h.d@swipnet.se>
81
82 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
83 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
84
78a21772
KH
852010-09-17 Kenichi Handa <handa@m17n.org>
86
87 * ftfont.c (ftfont_check_otf): Fix previous change.
88
fa3f6039
KH
892010-09-14 Kenichi Handa <handa@m17n.org>
90
91 * ftfont.c (ftfont_check_otf): Fix the case of checking just
92 existence of GSUB or GPOS.
93
2b5491fa
JB
942010-09-14 Juanma Barranquero <lekktu@gmail.com>
95
96 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
97
c97c655f
LMI
982010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
99
2b5491fa 100 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
101 what it does.
102 (parse_string): Return nil when the document can't be parsed.
103
6664fc59 1042010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
105
106 * xterm.c (get_current_vm_state): New function.
107 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
108 want_fullscreen so set_wm_state calls are few (Bug#7013).
109 (x_handle_net_wm_state): Move code to get_current_vm_state and
110 call that function.
111
6664fc59 1122010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
113
114 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
115
6664fc59 1162010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
117
118 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
119 we may use designation or locking-shift.
120
6664fc59 1212010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
122
123 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
124 sequence when the source is multibyte.
125
1da70e99
AS
1262010-09-14 Andreas Schwab <schwab@linux-m68k.org>
127
6664fc59
JB
128 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
129 Don't make first argument optional. Doc fix.
1da70e99 130
26632d8d
LMI
1312010-09-14 Leo <sdl.web@gmail.com> (tiny change)
132
133 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
134 parameters for the doc string.
135
21fa8e37
LMI
1362010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
137
138 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
139
5616cc54
SM
1402010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
141
142 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
143 (syms_of_fns): Don't defsubr Sy_or_n_p.
144 * lisp.h: Don't declare Fy_or_n_p.
145 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
146
381408e2
LMI
1472010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
148
149 * xml.c (Fxml_parse_buffer): New function to parse XML files.
150
1512010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
152
153 * xml.c: New file.
154 (Fhtml_parse_buffer): New function to interface to the libxml2
155 html parsing function.
156
733946e7
JB
1572010-09-05 Juanma Barranquero <lekktu@gmail.com>
158
159 * biditype.h: Regenerate.
160
7574650a
AS
1612010-09-04 Andreas Schwab <schwab@linux-m68k.org>
162
163 * nsimage.m (ns_load_image): Check argument types.
164
165 * image.c: Remove all uses of gcpro.
166 (xpm_load): Check all lisp types.
167 (pbm_load): Likewise.
168 (png_load): Likewise.
169 (jpeg_load): Likewise.
170 (tiff_load): Likewise.
171 (gif_load): Likewise.
172 (imagemagick_load_image): Likewise.
173 (imagemagick_load): Likewise.
174 (svg_load): Likewise.
175 (gs_load): Likewise.
176
6e6b8e25
EZ
1772010-09-04 Eli Zaretskii <eliz@gnu.org>
178
179 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
180 try to reorder grapheme clusters, since LGSTRING should always
181 hold them in the logical order.
182 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
183 return glyph codes in the logical order.
184
dbfe4532
AS
1852010-09-04 Andreas Schwab <schwab@linux-m68k.org>
186
187 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 188 (imagemagick_load_image): Fix type mismatch.
5e5992c2 189 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 190
6d7cc563
JD
1912010-09-02 Jan Djärv <jan.h.d@swipnet.se>
192
193 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
194
195 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
196
197 * xselect.c: Remove declaration of cut-buffer objects and functions.
198 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
199 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
200 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
201 (Fx_rotate_cut_buffers_internal): Remove.
202 (syms_of_xselect): Remove defsubr of above.
203 Remove intern of QCUT_BUFFERn.
204
8f4e9110
SM
2052010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
206
207 * cmds.c (Vblink_paren_function): Remove.
208 (internal_self_insert): Make it insert N chars at a time.
209 Don't call blink-paren-function.
210 (Fself_insert_command): Adjust accordingly.
211 (syms_of_cmds): Don't declare blink-paren-function.
212
d419e1d9
KH
2132010-08-31 Kenichi Handa <handa@m17n.org>
214
215 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
216 characters.
217
218 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
219 (produce_glyphs): Don't set it->char_to_display here.
220 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
221 (produce_special_glyphs): Set temp_it.char_to_display before
222 calling produce_glyphs.
223
224 * xdisp.c (get_next_display_element): Set it->char_to_display
225 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
226 characters.
227 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
228 calling PRODUCE_GLYPHS.
229 (append_space_for_newline): Save and store it->char_to_display.
230 Set it->char_to_display before calling PRODUCE_GLYPHS.
231 (extend_face_to_end_of_line): Set it->char_to_display before
232 calling PRODUCE_GLYPHS.
233 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
234 character to its byte value.
235 (get_char_glyph_code): New function.
236 (produce_stretch_glyph): Set it2.char_to_display too before
237 calling x_produce_glyphs.
238 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
239 non-ASCII characters. Don't set it->char_to_display here.
240 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 241 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 242
b819f760
SM
2432010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
244
245 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
246
07fa68a7
CY
2472010-08-31 Chong Yidong <cyd@stupidchicken.com>
248
249 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
250
cd196f12
SM
2512010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
252
253 * marker.c (Fcopy_marker): Make the first arg optional.
254
49a752bb
KH
2552010-08-30 Kenichi Handa <handa@m17n.org>
256
257 * composite.c (composition_update_it): Fix computing of
258 cmp_it->width.
259
769ae9e1
KH
2602010-08-29 Kenichi Handa <handa@m17n.org>
261
9e69cb05 262 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 263 corresponding bytes.
9e69cb05 264
4520b858
J
2652010-08-29 Jan Djärv <jan.h.d@swipnet.se>
266
267 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
268
fe50eb41
KH
2692010-08-26 Kenichi Handa <handa@m17n.org>
270
271 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
272 on calling composition_compute_stop_pos.
273
f6aa6ec6
KH
2742010-08-25 Kenichi Handa <handa@m17n.org>
275
9dfdbc0a
KH
276 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
277 :otf.
278
f6aa6ec6
KH
279 * composite.c (composition_compute_stop_pos): Don't break
280 composition at PT.
281 (composition_reseat_it): Likewise. Fix calculation of character
282 position starting a composition.
283 (Fcomposition_get_gstring): Don't limit the number of components
284 for automatic composition.
285
ff94e32c
KH
2862010-08-25 Kenichi Handa <handa@m17n.org>
287
288 * composite.c (composition_compute_stop_pos): In forward search,
289 pay attention to the possibility that some character after ENDPOS
290 will be composed with charactrs before ENDPOS.
291
1c409d0b
CY
2922010-08-24 Chong Yidong <cyd@stupidchicken.com>
293
294 * keyboard.c (command_loop_1): Don't clobber primary selection
295 during handle-switch-frame (Bug#6872).
296
0c372655
MA
2972010-08-23 Michael Albinus <michael.albinus@gmx.de>
298
299 * dbusbind.c: Accept UNIX domain sockets as bus address.
300 (Fdbus_close_bus): New function.
301 (Vdbus_registered_buses): New variable.
302 (xd_initialize): Implement string as bus address.
303 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
304 (Fdbus_get_unique_name, Fdbus_call_method)
305 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
306 (Fdbus_method_error_internal, Fdbus_send_signal)
307 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
308 check. This is done in xd_initialize_bus. Adapt doc string, if
309 necessary.
310 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
311 Vdbus_registered_buses.
312 (Vdbus_registered_objects_table): Create hash.
313
7133b7ee
JL
3142010-08-22 Juri Linkov <juri@jurta.org>
315
316 * keyboard.c (Fexecute_extended_command): Move reading a command name
317 with `completing-read' to a new Elisp function `read-extended-command'.
318 Call it to read a command to `function' (bug#5364, bug#5214).
319
198a7a97
CY
3202010-08-22 Chong Yidong <cyd@stupidchicken.com>
321
322 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
323
b0126eac 3242010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
325
326 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
327 instead of SAFE_ALLOCA.
328
b0126eac 3292010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
330
331 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
332 (Bug#6214).
333
b0126eac 3342010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
335
336 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
337
b0126eac
CY
3382010-08-22 Jan Djärv <jan.h.d@swipnet.se>
339
340 * doc.c (Fsnarf_documentation): Initialize skip_file before
341 build-files test.
342
692f3ddc 3432010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 344
692f3ddc
JB
345 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
346 New definitions.
b0126eac
CY
347 (HAVE_TERMIO): Remove.
348
5f2f0bc1
EZ
3492010-08-22 Eli Zaretskii <eliz@gnu.org>
350
b613941b
EZ
351 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
352
a583bbef
EZ
353 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
354 for w32.
355
356 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
357 it's done in nt/config.nt.
358
359 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
360
5f2f0bc1
EZ
361 * unexcoff.c (report_error, make_hdr, write_segment)
362 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
363 Convert argument lists and prototypes to ANSI C.
364 (make_hdr, write_segment): Remove unused variables.
365 (unexec): Remove commented-out line. Initialize `new' to shut up
366 compiler warnings.
367
a7ebc409
DN
3682010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
369
370 Simplify termio code.
371 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
372 HAVE_TERMIO code is obsolete.
373 Replace HAVE_TERMIOS conditionals with !DOS_NT.
374 * systty.h: Do not define HAVE_TCATTR.
375 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
376 Do not define EMACS_HAVE_TTY_PGRP. Only define
377 EMACS_GET_TTY_PGRP for !DOS_NT.
378 * sysdep.c: Include sysselect.h unconditionally. Do not include
379 sys/ioctl.h and termios.h, systty.h does it. Use
380 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
381 (init_baud_rate): Remove HAVE_TERMIO code.
382 (child_setup_tty): Remove HAVE_TERMIO code.
383 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
384 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
385 (new_ltchars, new_tchars): Remove, unused.
386 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
387 code. Remove special casing for __mips__, it was a no-op. Remove
388 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
389 (init_sys_modes): Remove HPUX special case.
390 * process.c: Include stdlib.h unconditionally. Do not include
391 fcntl.h, systty.h does it. Remove conditional code for
392 HAVE_SERIAL, it is always true.
393 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
394 always true when SIGNALS_VIA_CHARACTERS is true.
395 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
396 !WINDOWSNT means HAVE_TERMIOS.
397 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
398 conditional, which is true for all HAVE_TERMIOS systems.
399 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
400 instead of HAVE_TERMIOS.
401 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
402 EMACS_HAVE_TTY_PGRP.
403 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
404 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
405 anyway.
406
40629f17
EZ
4072010-08-21 Eli Zaretskii <eliz@gnu.org>
408
409 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
410 mirroring pixel positions.
411
d931da8c
DN
4122010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
413
b5c76d0c
DN
414 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
415 write only.
416 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
417 malloc_sbrk_used, nothing uses them.
418
74815588
DN
419 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
420 defined, unconditionally defined in lisp.h.
421
f5817d1c
DN
422 * term.c: Do not include <termios.h>, systty.h does it.
423
d931da8c
DN
424 * s/unixware.h (HAVE_TCATTR):
425 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
426 systty.h defines it when HAVE_TERMIOS is defined.
427
ff2de6d2 4282010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 429
b43c883c 430 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 431 terminals: add one-character offset for R2L lines.
b43c883c 432
491a1546
EZ
433 * emacs.c <emacs_version>: Add a comment regarding
434 msdos/mainmake.v2's dependency on the syntax of this declaration.
435
2396cbba
EZ
4362010-08-20 Eli Zaretskii <eliz@gnu.org>
437
438 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
439 position for R2L lines by mirroring the pixel position wrt the
440 text are box. Improve commentary.
441
7df6150a
AS
4422010-08-20 Andreas Schwab <schwab@linux-m68k.org>
443
444 * image.c (imagemagick_clear_image): Remove debugging output.
445
a2e5caf7
SM
4462010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
447
448 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
449 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
450 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
451 self-insert-face.
452 (syms_of_cmds): Initialize the new vars.
453
20d60baf
JR
4542010-08-19 Jason Rumney <jasonr@gnu.org>
455
cc477da7
JR
456 * w32menu.c (set_frame_menubar): Remove call to undefined function.
457
20d60baf
JR
458 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
459
2c0ac867
J
4602010-08-19 Jan Djärv <jan.h.d@swipnet.se>
461
462 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
463
93352106
EZ
4642010-08-18 Eli Zaretskii <eliz@gnu.org>
465
466 * xterm.c (x_draw_bar_cursor):
467 * w32term.c (x_draw_bar_cursor): If the character under cursor is
468 R2L, draw the bar cursor on its right rather than on its left.
469
c785836d
SM
4702010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
471
0193499f
SM
472 * eval.c (Fdefmacro): Only obey one declaration.
473
c785836d
SM
474 * casefiddle.c (casify_region): Setup gl_state.
475
9cb728a5
J
4762010-08-18 Jan Djärv <jan.h.d@swipnet.se>
477
478 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
479
e1e18511
J
4802010-08-18 Jan Djärv <jan.h.d@swipnet.se>
481
482 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
483
64cb6c78
J
4842010-08-18 David De La Harpe Golden <david@harpegolden.net>
485
486 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
487 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
488 QPRIMARY => NXPrimaryPboard.
489 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
490 NXPrimaryPboard => QPRIMARY.
491 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
492 NXSecondaryPboard = SecondarySelection.
493 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
494
0c9b8993
GM
4952010-08-18 Joakim Verona <joakim@verona.se>
496
497 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
498 defined:
499 (imagemagick_image_p): New function to test for ImageMagic image.
500 (imagemagick_load): New function to load ImageMagick image.
501 (imagemagick_load_image): New function, helper for imagemagick_load.
502 (imagemagick-types): New function.
503 (Qimagemagick): New Lisp_object.
504 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 505
c3554f68
SM
5062010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
507
508 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
509 is a string.
510
1ff2e434
J
5112010-08-17 Jan Djärv <jan.h.d@swipnet.se>
512
513 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
514 x_set_tool_bar_position handler.
515
0cc56427
EZ
5162010-08-17 Eli Zaretskii <eliz@gnu.org>
517
518 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
519 x_set_tool_bar_position handler, needed to support changes from
520 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
521
e45a249b
JD
5222010-08-16 Jan Djärv <jan.h.d@swipnet.se>
523
921242c6
J
524 * nsselect.m: include keyboard.h for QPRIMARY, remove its
525 declaration (Bug#6863).
573d150b 526 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 527
e45a249b
JD
528 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
529
530 * keyboard.h (QPRIMARY): Declare (Bug#6864).
531
7c23dd44
CY
5322010-08-16 Chong Yidong <cyd@stupidchicken.com>
533
534 * keyboard.c (command_loop_1): Avoid setting selection twice,
535 since it's done in deactivate-mark as well.
536 (Vselect_active_regions): Change default to t. Replace `lazy'
537 with non-default value `only', meaning only set PRIMARY for
538 temporarily active regions.
539
540 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
541 select-active-regions.
542
0005830c
J
5432010-08-15 Jan Djärv <jan.h.d@swipnet.se>
544
545 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
546 isn't a string.
547
603dfc72
AS
5482010-08-15 Andreas Schwab <schwab@linux-m68k.org>
549
550 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
551
c25ce9d0
J
5522010-08-15 Jan Djärv <jan.h.d@swipnet.se>
553
c3554f68
SM
554 * keyboard.c (parse_tool_bar_item): malloc buf.
555 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
556 new_lbl (Bug#6855).
c25ce9d0 557
5872c762
EZ
5582010-08-14 Eli Zaretskii <eliz@gnu.org>
559
b236615c
EZ
560 * xterm.c (x_draw_stretch_glyph_string):
561 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
562 the cursor on the right edge of the stretch glyph.
563
c3554f68
SM
564 * xdisp.c (window_box_right_offset, window_box_right):
565 Fix commentary.
b236615c 566
5872c762
EZ
567 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
568 direction when point is inside a run of whitespace characters.
569
570 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
571
e66f9a1b
JR
5722010-08-14 Jason Rumney <jasonr@gnu.org>
573
574 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
575
79d6f59e
CY
5762010-08-14 Chong Yidong <cyd@stupidchicken.com>
577
578 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
579
1c9b4129
JR
5802010-08-13 Jason Rumney <jasonr@gnu.org>
581
582 * w32menu.c (simple_dialog_show): Use unicode message box if available.
583 (MessageBoxW_Proc): New function typedef.
584 (unicode-message-box): New function pointer.
585 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
586
2b4e6277
J
5872010-08-13 Jan Djärv <jan.h.d@swipnet.se>
588
589 * frame.h (Qtool_bar_position): Declare.
590
591 * xfns.c (Fx_create_frame): Call x_default_parameter for
592 Qtool_bar_position.
593
94c97d85
EZ
5942010-08-13 Eli Zaretskii <eliz@gnu.org>
595
8ee81892
EZ
596 * unexcoff.c: Remove the parts used when "emacs" is not defined.
597 (report_error, report_error_1): Ditto.
598 (write_segment): Remove "#if 0" unused code.
599 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
600 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
601 (start_of_text): Remove unused function (was used only if NO_REMAP
602 was NOT defined).
603
891ef8f7
EZ
604 * msdos.c (IT_set_face): Fix format string to match argument
605 types.
606 (IT_write_glyphs, IT_note_mode_line_highlight)
607 (IT_set_frame_parameters): Remove unused variables.
608 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
609 (IT_set_terminal_modes): Disambiguate expression in if clause.
610 (Fmsdos_remember_default_colors): Return Qnil.
611 (IT_set_frame_parameters): Add parens to disambiguate boolean
612 expression for logging the cursor type to termscript.
613 (keyboard_layout_list, keypad_translate_map)
614 (grey_key_translate_map): Add braces in inner initializers.
615 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
616 (dos_rawgetc): Remove unused label.
617 (XMenuActivate): Add braces to remove ambiguous `else'.
618 (dos_ttraw): Always return a value.
619 (spawnve): Declare.
620 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
621
622 * dosfns.h (x_set_title): Declare.
623
624 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
625 Remove unused variables.
626
627 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
628 variables.
629 (init_dosfns): Declare get_lim_data.
630 (system_process_attributes): Declare Fget_internal_run_time.
631
38e41e0e
EZ
632 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
633 list to be consistent with menu.h.
634
94c97d85
EZ
635 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
636 warnings due to mixing of "char *" and "const char *".
637
c5683ceb
SM
6382010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
639
640 Introduce a new comment style "c" flag.
641 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
642 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
643 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
644 (syntax_prefix_flag_p): New function.
645 (Fstring_to_syntax): Understand new "c" flag.
646 (Finternal_describe_syntax_value): Recognize new flag; use the
647 SYNTAX_FLAGS_* macros.
648 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
649 comment style to accomodate the new styles.
650 (back_comment, forw_comment, Fforward_comment, scan_lists)
651 (scan_sexps_forward): Update code to obey the new comment style flag.
652
653 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
654
655 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
656
7aee76f4
J
6572010-08-11 Jan Djärv <jan.h.d@swipnet.se>
658
3a46642b
J
659 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
660 first.
94dff98f 661 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
662
663 * gtkutil.h (xg_check_special_colors): Declare.
664
665 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
666 (xg_create_frame_widgets): Connect theme name changes to
667 style_changed_cb.
668
42ca4633
J
669 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
670 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
671 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 672 string literal. file is const char*.
42ca4633
J
673
674 * xsmfns.c (NOSPLASH_OPT): Change to char[].
675 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
676 props. Free them at the end.
677
678 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
679
c5683ceb
SM
680 * xrdb.c (get_system_app): Make path const and use char *p for
681 non-const char.
42ca4633
J
682
683 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 684 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
685 char *.
686 (button_names): Is const char *.
687 (xdialog_show): error_name and pane_string is const.
688
689 * process.h (synch_process_death): Is const char*.
690
691 * w32menu.c (w32_menu_show):
692 * nsmenu.m (ns_menu_show): error parameter is const char **.
693
694 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
695 is const char **.
696
697 * menu.c (Fx_popup_menu): error_name is const.
698
699 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
700 with unsigned char and XtPointer with void *.
701
702 * gtkutil.h: Replace widget_value with struct _widget_value.
703 (enum button_type, struct _widget_value): Remove and use the one from
704 keyboard.h.
705
706 * gtkutil.c (get_utf8_string): Always return an allocated string.
707 Parameter is const.
708 (create_dialog, xg_create_one_menuitem, create_menus)
709 (xg_item_label_same_p, xg_update_menu_item): Free result from
710 get_utf8_string.
711 (xg_separator_p, xg_item_label_same_p): label is const.
712
713 * font.h (font_open_by_name): Make name const.
714
715 * font.c (font_open_by_name): Make name const.
716
717 * floatfns.c (matherr): Use a const char* variable for x->name.
718
719 * emacs.c (main): Pass char[] to putenv instead of literal.
720
721 * callproc.c (synch_process_death): Make const.
722 (Fcall_process): Make signame const.
723
9c5bd55a
J
724 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
725 (addDisplayItemWithImage): Use const char*.
726
727 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
728 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
729
730 * nsfont.m (ns_descriptor_to_entity): Use const char*.
731
732 * keyboard.h (_widget_value): name, value and key are const char*.
733
7aee76f4
J
734 * unexmacosx.c (unexec_error): Use const char *.
735
09d93395
DN
7362010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
737
738 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 739 (font_parse_name, font_open_by_name):
09d93395 740 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 741 (font_parse_name, font_open_by_name): Remove const.
09d93395 742
671d409f
AS
7432010-08-09 Andreas Schwab <schwab@linux-m68k.org>
744
745 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
746 definition.
747
748 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
749 * m/amdx86-64.h: Likewise.
750 * m/arm.h: Likewise.
751 * m/hp800.h: Likewise.
752 * m/ia64.h: Likewise.
753 * m/ibmrs6000.h: Likewise.
754 * m/ibms390.h: Likewise.
755 * m/intel386.h: Likewise.
756 * m/iris4d.h: Likewise.
757 * m/m68k.h: Likewise.
758 * m/macppc.h: Likewise.
759 * m/mips.h: Likewise.
760 * m/sh3.h: Likewise.
761 * m/sparc.h: Likewise.
762 * m/template.h: Likewise.
763 * m/vax.h: Likewise.
764 * m/xtensa.h: Likewise.
765 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
766 WORDS_BIG_ENDIAN.
767 * lisp.h: Likewise.
768 * md5.c: Likewise.
769 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
770
8ea90aa3
DN
7712010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
772
773 Use const char* instead of char*.
774 Reduce the number of warnings with -Wwrite-strings.
775 * xrdb.c (get_environ_db, get_system_name):
776 * unexelf.c (find_section):
777 * term.c (string_cost, string_cost_one_line, per_line_cost)
778 (get_named_tty, init_tty):
779 * sysdep.c (sys_subshell):
780 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
781 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
782 * search.c (Freplace_match):
783 * process.c (Fmake_network_process, send_process, init_process):
784 * lread.c (Fload, init_lread):
785 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
786 * keyboard.c (parse_tool_bar_item, struct event_head):
787 * gtkutil.h (xg_get_font_name):
788 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
789 (make_widget_for_menu_item, make_menu_item, create_menus)
790 (xg_make_tool_item):
791 * font.c (parse_matrix, font_parse_name):
792 * floatfns.c (rounding_driver, float_error_fn_name):
793 * filelock.c (get_boot_time_1, lock_file_1):
794 * fileio.c (barf_or_query_if_file_exists, check_writable):
795 * editfns.c (get_system_name, get_operating_system_release)
796 (Fencode_time, Fset_time_zone_rule):
797 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
798 * buffer.c (defvar_per_buffer): Use const.
799
7815fe19 8002010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 801
692f3ddc 802 * charset.c: Include <stdlib.h>.
7a84eee5
KH
803 (struct charset_sort_data): New struct.
804 (charset_compare): New function.
692f3ddc 805 (Fsort_charsets): New function.
7a84eee5
KH
806 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
807
808 * coding.c (decode_coding_iso_2022): Fix checking of dimension
809 number in CTEXT extended segment.
810
7815fe19 8112010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
812
813 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
814 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
815
7815fe19 8162010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
817
818 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
819 (Fhash_table_size): Fix typos in docstrings.
820 (Fmake_hash_table): Doc fix.
821
7815fe19 8222010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
823
824 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
825 Doc fix (bug#5625).
826
7815fe19 8272010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
828
829 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
830 the MSDOS definition.
831
1b6d8cf0
DN
8322010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
833
675e2c69
DN
834 Use const char* instead of char*.
835 * xterm.c (x_create_toolkit_scroll_bar):
836 * xfont.c (xfont_list_pattern):
837 * xfns.c (x_default_scroll_bar_color_parameter)
838 (xic_create_fontsetname, x_default_font_parameter)
839 (x_screen_planes):
840 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
841 (store_mode_line_string, decode_mode_spec, display_string):
842 * menu.c (digest_single_submenu):
843 * keymap.h (initial_define_key, initial_define_lispy_key):
844 * keymap.c (initial_define_key, initial_define_lispy_key):
845 * image.c (image_error, image_keyword):
846 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
847 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
848 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
849 (ftfont_list, ftfont_match):
850 * frame.c (frame_parm_table):
851 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
852 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
853 (font_add_log, font_deferred_log):
854 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
855 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
856 (font_add_log, font_deferred_log):
857 * emacs.c (argmatch):
858 * dispextern.h (struct it):
859 * coding.c (ENCODE_DESIGNATION):
860 * charset.c (define_charset_internal): Use const.
861
25717ca1
DN
862 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
863
c5683ceb
SM
864 * xrdb.c: Remove include guard.
865 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
866 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
867 realloc->xrealloc instead of using #defines.
868
efb41e21
EZ
8692010-08-08 Eli Zaretskii <eliz@gnu.org>
870
cd21226d 871 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
872 * editfns.c (Fline_beginning_position, Fline_end_position):
873 State in the doc strings that start and end of line are in the
874 logical order.
cd21226d 875
efb41e21
EZ
876 * xdisp.c (display_line): Move the handling of overlay arrow after
877 the call to find_row_edges. (Bug#6699)
878
746812d9
CY
8792010-08-07 Chong Yidong <cyd@stupidchicken.com>
880
881 * keyboard.c (command_loop_1):
882 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
883
9852377f
CY
8842010-08-07 Chong Yidong <cyd@stupidchicken.com>
885
886 * insdel.c (prepare_to_modify_buffer): Save active region text to
887 Vsaved_region_selection.
888
889 * xselect.c (QPRIMARY): Move to keyboard.c.
890
891 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
892 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
893 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 894
0e9c8657
JB
8952010-08-07 Juanma Barranquero <lekktu@gmail.com>
896
897 * alloc.c (lisp_malloc):
898 * buffer.c (set_buffer_internal, set_buffer_internal_1):
899 * charset.h (emacs_mule_charset):
900 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
901 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
902 (bitch_at_user):
903 * lisp.h (Fcheck_coding_system, Fget_text_property)
904 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
905 Remove duplicate declarations.
906
648801d1
DN
9072010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
908
32bc6709
DN
909 * process.c: Simplify include logic.
910
3ef1d108
DN
911 * keyboard.h (quit_char): Add declaration.
912 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
913 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
914 Add declarations.
3ef1d108
DN
915 * sysdep.c:
916 * w32.c: Remove the above declarations.
917
97ec208f
DN
918 Remove extern declarations in .c files, .h files have them.
919 * xterm.c:
920 * xdisp.c:
97ec208f
DN
921 * msdos.c:
922 * image.c:
923 * gtkutil.c:
924 * fileio.c:
925 * eval.c: Remove declarations.
926
94eed851
DN
927 * frame.c (frame_params): Make const.
928
36e053eb
DN
929 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
930
0e843971
DN
931 * emacs.c (emacs_copyright, emacs_version): Make static.
932 (Vinitial_window_system, Vauto_save_list_file_name)
933 (Vinhibit_redisplay): Remove declarations.
934 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
935 for AIX.
936
648801d1
DN
937 Use const for some arrays and functions.
938 * xterm.h (xg_set_icon_from_xpm_data):
939 * xfns.c (xg_set_icon_from_xpm_data):
940 * term.c (fkeys):
941 * keyboard.c (lispy_accent_keys, lispy_function_keys)
942 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
943 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
944 (frame.c frame_parms):
945 * emacs-icon.h (gnu_xpm_bits):
946 * callint.c (callint_argfuns): Use const.
947
8646d999
J
9482010-08-06 Jan Djärv <jan.h.d@swipnet.se>
949
950 * sysdep.c: Move include term.h last of includes (Bug#6812).
951
cb4545ad
EZ
9522010-08-06 Eli Zaretskii <eliz@gnu.org>
953
954 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
955
956 * msdos.c (IT_display_cursor): Log cursor position on termscript.
957
958 * .gdbinit (pgx): Display the avoid_cursor_p flag.
959
da7e2be6
JB
9602010-08-06 Juanma Barranquero <lekktu@gmail.com>
961
962 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
963
3d608a86
J
9642010-08-06 Jan Djärv <jan.h.d@swipnet.se>
965
7908fb60
J
966 * xterm.h (x_get_focus_frame): Declare.
967
968 * keyboard.h (poll_for_input_1): Unconditionally declare.
969
4094bf36
J
970 * nsterm.h (x_set_menu_bar_lines): Declare.
971
972 * window.c: Don't include menu.h, it depends on lots of other .h-files.
973
3d608a86
J
974 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
975
976 * window.c: Include menu.h.
977
978 * unexmacosx.c (print_region_list, print_regions)
979 (build_region_list, find_emacs_zone_regions)
980 (unexec_regions_merge, read_load_commands, dump_it)
981 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
982
983 * term.c: Check HAVE_SYS_IOCTL_H.
984
686b968e 985 * sysdep.c: Check HAVE_TERM_H.
3d608a86 986
686b968e 987 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
988
989 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
990 (ns_ring_bell, ns_defined_color, hide_hourglass)
991 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
992 Convert to ANSI C prototypes.
993 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
994 before code.
995
996 * nsterm.h : Include sysselect.h.
997 (x_sync, x_get_focus_frame, x_set_mouse_position)
998 (x_set_mouse_pixel_position, x_make_frame_visible)
999 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1000 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1001 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1002 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1003 Declare.
3d608a86
J
1004
1005 * nsmenu.m (popup_activated, name_is_separator)
1006 (syms_of_nsmenu): Convert to ANSI C prototypes.
1007 (runMenuAt): Prototypes and move declarations before code.
1008
1009 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1010
1011 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1012 prototypes.
1013
1014 * nsfns.m (have_menus_p, ns_display_info_for_name)
1015 (x_set_cursor_type, ns_appkit_version_str)
1016 (ns_appkit_version_int, ns_do_applescript)
1017 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1018 (syms_of_nsfns): Convert to ANSI C prototypes.
1019
1020 * menu.h (x_set_menu_bar_line): Declare.
1021 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1022
1023 * lisp.h (fmod_float): Declare.
1024
1025 * image.c (xpm_scan, xpm_make_color_table_v)
1026 (xpm_put_color_table_v, xpm_get_color_table_v)
1027 (xpm_make_color_table_h, xpm_put_color_table_h)
1028 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1029 (xpm_load): Convert to ANSI C prototypes.
1030
1031 * emacs.c: Include nsterm.h if HAVE_NS.
1032
1033 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1034
fce70521
DN
10352010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1036
1037 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1038 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1039 (socket_options): Use const char* for name.
1040
a11889ab
JB
10412010-08-06 Juanma Barranquero <lekktu@gmail.com>
1042
1043 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1044
1045 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1046 Don't declare xmalloc_widget_value and digest_single_submenu.
1047
1048 * w32font.c (Qlatin): Remove declaration.
1049
1050 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1051
c95b508f 1052 * dired.c (compile_pattern): Restore declaration.
a11889ab 1053
6254cdda
DN
10542010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1055
04bab72c
DN
1056 Remove extern declarations in .c files, .h files have them.
1057 * data.c:
1058 * dired.c:
1059 * editfns.c:
1060 * filelock.c:
1061 * fns.c:
1062 * font.c:
1063 * fontset.c:
1064 * frame.c:
1065 * fringe.c:
1066 * ftfont.c:
1067 * gtkutil.c:
1068 * indent.c:
1069 * keyboard.c:
1070 * keymap.c:
1071 * lread.c:
1072 * menu.c:
1073 * print.c:
1074 * search.c:
1075 * sound.c:
1076 * window.c:
1077 * xdisp.c:
1078 * xfaces.c:
1079 * xfns.c:
1080 * xfont.c:
1081 * xftfont.c:
1082 * xmenu.c:
1083 * xterm.c: Remove declarations.
1084
dff94ed5
DN
1085 Cleanup syssignal.h.
1086 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1087 (main_thread): Move down to remove #ifdef.
1088 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1089 Remove conditional definition following unconditional ones.
1090
99f3388e
DN
1091 * lisp.h: Remove HAVE_SHM code, unused.
1092 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1093 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1094 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1095 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1096 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1097 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1098 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1099 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1100 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1101 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1102 (Qwindow_scroll_functions, Vafter_load_alist)
1103 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1104 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1105 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1106 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1107 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1108 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1109 (initial_argv, last_nonmenu_event, load_in_progress)
1110 (noninteractive_need_newline, scroll_margin): Add declarations.
1111
1112 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1113 declarations, menu.h has them.
1114 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1115 (Vinput_method_function, Qinput_method_function)
1116 (Qevent_symbol_element_mask, last_event_timestamp):
1117 * dispextern.h (Voverflow_newline_into_fringe):
1118 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1119 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1120 (syms_of_w32font, syms_of_nsfont):
1121 * fontset.h (find_font_encoding, Qlatin):
1122 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1123 (Vtool_bar_mode, set_frame_menubar):
1124 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1125 * xterm.h (Qx_gtk_map_stock):
1126 * keymap.h (meta_prefix_char): Add declarations.
1127
9f5dd6f2
DN
1128 * term.c: Remove dead code.
1129
6254cdda
DN
1130 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1131 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1132 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1133 which is what was there before BSD_PGRPS was removed.
1134
29cf3e20
EZ
11352010-08-05 Eli Zaretskii <eliz@gnu.org>
1136
1137 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1138
1139 * unexcoff.c: Renamed from unexec.c.
1140
aaa0a19a
SM
11412010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1142
1143 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1144
8d1d9587
JB
11452010-08-03 Johan Bockgård <bojohan@gnu.org>
1146
1147 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1148 (Bug#6744)
8d1d9587 1149
9a747ba6
JD
11502010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1151
4d464ae4
JD
1152 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1153 to TRUE if depth of screen is < 16.
1154
ac01763e
JD
1155 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1156 USE_GTK_TOOLTIP.
e0d62a9b
JB
1157 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1158 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1159 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1160 USE_GTK_TOOLTIP.
1161 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1162
1163 * xterm.h (USE_GTK_TOOLTIP): New define.
1164 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1165
9a747ba6
JD
1166 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1167 to Control-D (Bug#6771).
1168
7b0815ba
JB
11692010-08-02 Juanma Barranquero <lekktu@gmail.com>
1170
1171 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1172 Wording by Drew Adams <drew.adams@oracle.com>.
1173
aa1859f5
J
11742010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1175
1176 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1177 ttip_lbl.
1178
1179 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1180 calling gtk_widget_queue_draw.
1181 (x_free_frame_resources): Call xg_free_frame_widgets.
1182
1183 * xfns.c (x_gtk_use_system_tooltips): New variable.
1184 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1185 new gtkutil tooltip functions to show the tooltip.
1186 (Fx_hide_tip): Call xg_hide_tooltip.
1187 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1188
1189 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1190 (xg_show_tooltip, xg_hide_tooltip): Declare.
1191
1192 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1193 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1194 New functions.
aa1859f5
J
1195 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1196 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1197 Remove code that is commented out.
1198
76417ef4
SM
11992010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1200
1201 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1202
16041401
CY
12032010-07-31 Chong Yidong <cyd@stupidchicken.com>
1204
1205 * xselect.c (x_own_selection): Use list4.
1206
2c09a58f
DN
12072010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1208
1209 * buffer.c (Qwindow): Do not define, already defined in data.c.
1210 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1211
59df9fdd 12122010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1213
59df9fdd
JB
1214 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1215 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1216 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1217 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1218 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1219
1b231651
DN
12202010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1221
1222 Rename s/usg5-4.h -> s/usg5-4-common.h.
1223 * s/usg5-4.h: Rename file to ...
1224 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1225 * s/unixware.h:
1226 * s/sol2-6.h:
1227 * s/irix6-5.h: Update includes accordingly.
1228
bfeabdc3
JD
12292010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1230
2ebf1083
J
1231 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1232
bfeabdc3 1233 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1234 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1235 Remove toolbar_height.
1236 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1237 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1238 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1239 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1240
1241 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1242
1243 * xfns.c (x_set_tool_bar_position): New function.
1244 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1245 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1246 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1247
1248 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1249 and FRAME_TOOLBAR_LEFT_WIDTH.
1250
1251 * gtkutil.h (xg_change_toolbar_position): Declare.
1252
1253 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1254 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1255 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1256 (xg_create_frame_widgets): Create a hobox for placing widgets
1257 vertically. Use gtk_box_pack_start.
1258 (xg_height_or_width_changed): Renamed from xg_height_changed.
1259 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1260 (xg_update_frame_menubar, free_frame_menubar): Change to
1261 xg_height_or_width_changed.
1262 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1263 size correctly. Remove hardcoded 4, instead use handlebox size -
1264 toolbar size.
1265 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1266 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1267 (xg_pack_tool_bar): POS is a new parameter.
1268 Set orientation of tool bar based on pos.
1269 Only make handlebox_widget if NULL.
1270 Check if tool bar goes to vbox or hbox depending on pos.
1271 (xg_update_tool_bar_sizes): New function.
686b968e 1272 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1273 height, call xg_update_tool_bar_sizes instead.
1274 (free_frame_tool_bar): Remove from hbox or vbox depending on
1275 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1276 (xg_change_toolbar_position): New function.
1277
1278 * frame.h (struct frame): Add tool_bar_position.
1279 (Qbottom): Declare.
1280
1281 * frame.c (Qtool_bar_position): New variable.
1282 (make_frame): Set tool_bar_position to Qtop.
1283 (frame_parms): Add tool-bar-position.
1284 (x_report_frame_params): Store tool_bar_position.
1285 (x_set_fringe_width): Reset wm size hint after fringe changes.
1286
26469a38
DN
12872010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1288
1289 Make lisp_time_argument declaration work on all systems.
1290 * lisp.h (lisp_time_argument): Move declaration ...
1291 * systime.h (lisp_time_argument): ... here
1292 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1293
8848b728
JD
12942010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1295
1296 * vm-limit.c (POINTER): Add typedef for it.
1297 (start_of_data): Change return type from POINTER to char *.
1298
1299 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1300 HAVE_WINDOW_SYSTEM.
1301
76fd1ee9
DN
13022010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1303
0441987e
DN
1304 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1305 Remove reference to __osf__, unused.
1306
56a000c7
DN
1307 * mem-limits.h: Remove duplicated includes.
1308 (NULL): Remove definition, unused.
1309 (POINTER): Remove definition.
1310 (start_of_data): Use char* in prototype, as the function
1311 definition does.
1312
e6cba650
DN
1313 Remove extern declarations from .c files, and them to .h files.
1314 * keyboard.h (Qhelp_echo, waiting_for_input)
1315 (input_available_clear_time, ignore_mouse_drag_p)
1316 (Vdouble_click_time, real_this_command, Vthis_original_command):
1317 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1318 (Voverriding_local_map_menu_flag):
1319 * lisp.h (Qinteractive_form, use_file_dialog)
1320 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1321 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1322 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1323 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1324 (Qfunction, debug_on_next_call, Qfield)
1325 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1326 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1327 (Qfile_directory_p, Qinsert_file_contents)
1328 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1329 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1330 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1331 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1332 (Qminibuffer_prompt)
1333 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1334 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1335 (gray_bitmap_bits, xic_create_fontsetname):
1336 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1337
1338 * xsmfns.c (Vuser_login_name):
1339 * xrdb.c (Vdouble_click_time):
1340 * xfaces.c (xic_create_fontsetname):
1341 * w32select.c (waiting_for_input):
1342 * print.c (minibuffer_auto_raise):
1343 * msdos.c (Qhelp_echo):
1344 * macros.c (real_this_command):
1345 * keymap.c (Voverriding_local_map):
1346 * xterm.c (poll_for_input_1, gray_bitmap_width)
1347 (gray_bitmap_height, gray_bitmap_bits;
1348 * xmenu.c ( Voverriding_local_map)
1349 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1350 (use_file_dialog, Xt_app_con):
1351 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1352 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1353 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1354 (Qtool_bar_lines, ignore_mouse_drag_p):
1355 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1356 (Qrear_nonsticky, nconc2):
1357 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1358 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1359 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1360 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1361 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1362 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1363 (gc_in_progress):
1364 * doc.c (Voverriding_local_map, Qremap):
1365 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1366 (Vcompletion_regexp_list):
1367 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1368 (Qcompletion_ignore_case):
1369 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1370 (Vhistory_length, Vthis_original_command, real_this_command)
1371 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1372 * image.c (Qrisky_local_variable):
1373 * fontset.c (QCname):
1374 * fns.c (minibuffer_auto_raise, QCname):
1375 * dispnew.c (char_ins_del_cost):
1376 * composite.c (font_fill_lglyph_metrics):
1377 * cmds.c (Qface, Vtranslation_table_for_input):
1378 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1379 * ccl.c (charset_unicode):
1380 * callproc.c (Vtemporary_file_directory):
1381 * buffer.c (emacs_strerror): Remove extern declarations.
1382
1383 * data.c (Qwindow): Make non-static, used from other files too.
1384 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1385
76fd1ee9
DN
1386 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1387 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1388 * s/usg5-4.h (COFF):
1389 * s/template.h:
1390 * s/msdos.h (COFF, NO_REMAP):
1391 * s/ms-w32.h (NO_REMAP):
1392 * s/hpux10-20.h (NO_REMAP):
1393 * m/sparc.h (SEGMENT_MASK):
1394 * m/m68k.h (NO_REMAP):
1395 * m/intel386.h (SEGMENT_MASK):
1396 * m/arm.h (NO_REMAP):
1397 * m/alpha.h (COFF):
1398 * m/template.h: Remove references to unused defines.
1399
8a52f00a
JD
14002010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1401
1402 * xsettings.c (Ftool_bar_get_system_style): Also check for
1403 Qtext_image_horiz.
1404
1405 * xdisp.c (Qtext_image_horiz): Define.
1406 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1407 to documentation of tool-bar-style.
8a52f00a
JD
1408
1409 * lisp.h (Qtext_image_horiz): Declare.
1410
1411 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1412 style text_image_horiz.
1413
89dc303e
DN
14142010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1415
60799703
DN
1416 * emacs.c (Fkill_emacs): Remove return statement.
1417
37254dc1
DN
1418 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1419 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1420 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1421 local extern declarations.
1422
71c7345a
DN
1423 * xmenu.c: Do not included lwlib.h, not needed.
1424
6ba577cb
DN
1425 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1426
fdb183d6
DN
1427 * process.c: Move definitions earlier to minimize #ifdefs.
1428
1429 * xterm.h (x_get_customization_string, x_load_resources)
1430 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1431 (x_check_errors, x_property_data_to_lisp, defined_color)
1432 (xic_set_xfontset, x_defined_color): Use const.
1433
1434 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1435 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1436
1437 * xselect.c (selection_data_to_lisp_data)
1438 (x_property_data_to_lisp):
1439 * xrdb.c (x_get_string_resource, file_p)
1440 (x_get_customization_string, magic_file_p, search_magic_path)
1441 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1442 (x_get_string_resource): Use const.
1443
1444 * xfns.c: Include xlwmenu.h when USE_LUCID.
1445 (x_defined_color, xic_set_xfontset): Use const.
1446 (Fx_hide_tip): Remove local extern declaration.
1447
1448 * xfaces.c (Qmouse_face): Remove declaration.
1449 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1450 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1451
1452 * xdisp.c (do_mouse_tracking): Remove declaration.
1453 (add_to_log): Use const.
1454
1455 * minibuf.c (Qmouse_face): Remove declaration.
1456
1457 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1458
1459 * keyboard.h (do_mouse_tracking): Add declaration.
1460
1461 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1462 (QCdata, QCtype, Qcenter): Remove declarations.
1463
1464 * frame.c (x_get_resource_string, x_get_string_resource)
1465 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1466 (x_default_parameter): Use const.
1467
1468 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1469 (QCheight, QCsize, QCname): Remove declarations.
1470
1471 * emacs.c (main): Remove local extern declaration.
1472
1473 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1474 declarations.
1475
1476 * dispnew.c: Remove duplicate #include <unistd.h>.
1477 (update_window, update_frame_1, init_display): Remove local extern
1478 declarations.
1479
1480 * dispextern.h (add_to_log): Remove declaration.
1481 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1482 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1483
1484 * dired.c (scmp): Add const.
1485 (directory_files_internal): Remove local extern declaration.
1486
1487 * data.c (Finteractive_form): Use const.
1488
1489 * composite.c (syms_of_composite): Remove local extern declarations.
1490
1491 * charset.c (add_to_log): Remove declaration.
1492
1493 * character.c (strwidth, parse_str_to_multibyte): Add const.
1494
1495 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1496
1497 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1498
89dc303e 1499 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1500 (Lisp_Subr): Make doc and intspec constant.
1501 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1502 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1503 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1504 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1505 (display_arg): Add declarations.
89dc303e 1506
0ed082fe 15072010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1508
1509 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1510
0ed082fe
JB
1511 * window.c (Fwindow_height): Doc fix (bug#6518).
1512
15132010-07-27 Juanma Barranquero <lekktu@gmail.com>
1514
1515 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1516
ccaf0336
DN
15172010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1518
977105dc
DN
1519 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1520 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1521 functions.
1522
f5ada890
DN
1523 * frame.h (Qtty_color_mode): Add declaration.
1524
ccaf0336
DN
1525 * lisp.h (Ftop_level, Fexit_recursive_edit)
1526 (Fabort_recursive_edit): Mark as NO_RETURN.
1527
dfe3c90f
KH
15282010-07-26 Kenichi Handa <handa@m17n.org>
1529
1530 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1531 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1532
7d383292
JB
15332010-07-26 Juanma Barranquero <lekktu@gmail.com>
1534
1535 * lread.c (unreadpure, mapatoms_1): Make static.
1536
da31e629
JB
15372010-07-25 Juanma Barranquero <lekktu@gmail.com>
1538
1539 * terminfo.c (tparam): Fix prototype of tparm.
1540
7bfa6d77
AS
15412010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1542
dcc19aac
AS
1543 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1544 find start of text segment.
1545 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1546 is defined.
1547
7bfa6d77
AS
1548 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1549
63f9a672
KB
15502010-07-25 Ken Brown <kbrown@cornell.edu>
1551
1552 * vm-limit.c (check_memory_limits): Fix previous change;
1553 accidentally reverted an earlier change.
1554
24933075
KB
15552010-07-25 Ken Brown <kbrown@cornell.edu>
1556
1557 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1558 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1559
361358ea
JB
15602010-07-25 Juanma Barranquero <lekktu@gmail.com>
1561
1562 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1563 * dired.c (opendir, readdir): Fix prototypes.
1564 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1565 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1566 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1567 (telldir): Remove declaration.
1568 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1569 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1570 * syssignal.h (strsignal): Fix prototype.
1571 * term.c (tparam): Fix prototype.
1572 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1573 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1574 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1575 and __morecore.
1576 * w32gui.h (XParseGeometry): Fix prototype.
1577 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1578 * w32term.c (my_set_focus): Declare inside #if 0.
1579 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1580 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1581 (drain_message_queue, get_next_msg, post_msg, parse_button)
1582 (ClipboardSequence_Proc): Fix prototypes.
1583 (wait_for_sync): Remove declaration.
1584
630b9592
JB
15852010-07-24 Juanma Barranquero <lekktu@gmail.com>
1586
1587 * w32fns.c (w32_to_x_color): Remove, unused.
1588
6a0d6611
AS
15892010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1590
1591 * lisp.h: Remove leftover P_.
1592
4e8608ff
DN
15932010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1594
1595 * ecrt0.c, unexalpha.c: Remove files, unused.
1596
c8197983
AS
15972010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1598
1599 * cmds.c (internal_self_insert): Make static.
1600 * lisp.h (internal_self_insert): Remove declaration.
1601
97b372d7
JB
16022010-07-23 Juanma Barranquero <lekktu@gmail.com>
1603
33ac0414
JB
1604 * alloc.c (free_float):
1605 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1606 * frame.c (delete_frame_handler):
1607 * ralloc.c (reorder_bloc):
1608 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1609 Remove unused static functions.
1610
94da8397
JB
1611 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1612 it is called only from NS code.
1613
2e6c8532
JB
1614 * w32term.c (my_set_focus): #ifdef away; it is called only from
1615 "#ifdef 0" code.
1616
97b372d7
JB
1617 * w32fns.c (x_edge_detection):
1618 * xfaces.c (may_use_scalable_font_p):
1619 Remove obsolete static declarations.
1620
7c3320d8
JB
16212010-07-20 Juanma Barranquero <lekktu@gmail.com>
1622
1623 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1624 (emacs_blocked_realloc, uninterrupt_malloc):
1625 * fringe.c (w32_reset_fringes):
1626 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1627 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1628 * sound.c (be2hs, do_play_sound):
1629 * vm-limit.c (get_lim_data, ret_lim_data):
1630 * w32term.c (x_free_frame_resources):
1631 * xfaces.c (x_create_gc, x_free_gc):
1632 Convert definitions to standard C.
1633
d5273788
SM
16342010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1635
1636 * eval.c (Feval, Ffuncall): Use the new names.
1637
1638 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1639 (DEFUN): Add braces around the union initialisation and use ## to
1640 specify the right union alternative and avoid a cast.
1641
8d16a259
JB
16422010-07-18 Juanma Barranquero <lekktu@gmail.com>
1643
1644 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1645
3b8eff32
CY
16462010-07-17 Chong Yidong <cyd@stupidchicken.com>
1647
1648 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1649
499322ce
J
16502010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1651
1652 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1653 is related to the menu bar (Bug#6499).
a628ad9d 1654 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1655
f6003da5 16562010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1657
1658 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1659
1660 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1661
1662 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1663 i.e. don't put back ButtonRelease (Bug#6608).
1664
1665 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1666 instead of Window. Call xg_event_is_for_menubar when
1667 USE_GTK (Bug#6499).
1668
1669 * gtkutil.h (xg_event_is_for_menubar): Declare.
1670
1671 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1672
f6003da5 16732010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1674
1675 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1676 when it's the same as the old foreground. (Bug#6609)
1677
23243f29
J
16782010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1679
1680 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1681 widget is non-null (Bug#6645).
1682
2b23d2a6
AS
16832010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1684
01b564ff
AS
1685 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1686 Convert old-style definition.
1687
2b23d2a6
AS
1688 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1689 timestamp argument.
1690
c4affd2c
EZ
16912010-07-15 Eli Zaretskii <eliz@gnu.org>
1692
1693 * fringe.c (update_window_fringes): Restore mistakenly reverted
1694 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1695
cf28cebc
J
16962010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1697
1698 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1699 (SET_SAVED_KEY_EVENT): Remove (not used).
1700 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1701 remove size parameter.
1702 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1703 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1704 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1705 ButtonRelease.
6b2c4bd9
J
1706 (x_set_window_size_1): scroll_bar_actual_width is always
1707 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1708
1709 * xdisp.c (pending_menu_activation): Remove extern declaration.
1710 (prepare_menu_bars): Remove setting of pending_menu_activation.
1711
1712 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1713 (x_activate_menubar): Set popup_activated_flag for Xt also.
1714 Remove setting of pending_menu_activation.
cf28cebc
J
1715 (set_frame_menubar): Remove check of pending_menu_activation.
1716 Declare menubar_size before code. Correct spelling in comment.
1717
f6c1c771
KH
17182010-07-14 Kenichi Handa <handa@m17n.org>
1719
1720 * font.c (font_open_entity): Cancel previous change.
1721 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1722
20477505
EZ
17232010-07-13 Eli Zaretskii <eliz@gnu.org>
1724
77defa9a
EZ
1725 Remove subprocesses #ifdefs.
1726 * process.c <inhibit_sentinels>: Move to the common part.
1727 (Fwaiting_for_user_input_p): Move to the common part; return nil
1728 if async subprocesses aren't supported.
1729 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1730 MS-DOS. Remove "#ifdef subprocesses".
1731 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1732 (gettimeofday): Remove "#ifdef subprocesses".
1733 (wait_without_blocking): Remove function.
1734 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1735 Remove "#ifdef subprocesses".
1736 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1737 compiled on MS-DOS.
1738 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1739 wait_for_termination on MS-DOS.
1740 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1741 initialization of inhibit_sentinels.
1742 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1743 subprocesses" conditional.
1744 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1745 wait_for_termination, since `buffer' cannot be an integer when
1746 async subprocesses are not supported
1747 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1748 for ifdefing away the call to Fprocess_status.
1749
20477505
EZ
1750 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1751 away the entire body of the function.
1752
b3ffc17c
DN
17532010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1754
01faa934
DN
1755 Remove subprocesses #ifdefs from term.c.
1756 * process.c (add_keyboard_wait_descriptor)
1757 (delete_keyboard_wait_descriptor): Move to common section, do
1758 nothing when subprocesses is not defined.
a628ad9d
JB
1759 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1760 Remove subprocesses #ifdefs.
01faa934 1761
b3ffc17c
DN
1762 Convert maybe_fatal to standard C.
1763 * lisp.h (verror): Declare.
1764 * eval.c (verror): New function containing the code from ...
1765 (error): ... this. Call verror.
1766 * term.c (vfatal): New function containing the code from ...
1767 (fatal): ... this. Call vfatal.
1768 (maybe_fatal): Convert to standard C, use variable number of
1769 arguments. Declare as non-return.
1770 (init_tty): Fix maybe_fatal call.
1771
0521f580
DN
17722010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1773
1774 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1775 (_scroll_bar_note_movement): Convert definitions to standard C.
1776 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1777 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1778
ebd15611
DN
17792010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1780
1781 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1782 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1783 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1784 (xaw_jump_callback, xaw_scroll_callback)
1785 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1786 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1787 definitions to standard C.
1788 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1789 (popup_activate_callback, popup_deactivate_callback)
1790 (menu_highlight_callback, menubar_selection_callback)
1791 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1792 (free_frame_menubar, popup_selection_callback, as)
1793 (create_and_show_popup_menu, dialog_selection_callback)
1794 (create_and_show_dialog):
1795 * xfns.c (hack_wm_protocols, x_window):
1796 * xfaces.c (x_update_menu_appearance):
1797 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1798 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1799 (set_frame_size, update_wm_hints, setup_frame_gcs)
1800 (update_various_frame_slots, update_from_various_frame_slots)
1801 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1802 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1803 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1804
de06a2dd
AS
18052010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1806
a628ad9d 1807 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1808
fc549af9
EZ
18092010-07-12 Eli Zaretskii <eliz@gnu.org>
1810
1811 * process.c (setup_process_coding_systems): Move to the part
1812 shared by non-subprocesses systems, and make its body empty when
1813 subprocesses is not defined.
1814 (close_process_descs): Move to the part shared by non-subprocesses
1815 systems.
1408902e
EZ
1816 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1817 ANSI C.
fc549af9 1818
d5a3eaaf
AS
18192010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1820
1821 * editfns.c (transpose_markers): Convert old-style definition.
1822 * emacs.c (abort, shut_down_emacs, fixup_locale)
1823 (synchronize_system_time_locale)
1824 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1825 * floatfns.c (extract_float, matherr, init_floatfns)
1826 (syms_of_floatfns): Likewise.
1827 * fns.c (make_hash_table): Likewise.
1828 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1829 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1830 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1831 (ftfont_variation_glyphs): Likewise.
1832 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1833 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1834 * lread.c (read_filtered_event): Likewise.
1835 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1836 * process.c (wait_reading_process_output): Likewise.
1837 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1838 * search.c (search_buffer, boyer_moore): Likewise.
1839 * syntax.c (scan_sexps_forward): Likewise.
1840 * xdisp.c (try_scrolling): Likewise.
1841 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1842 (face_at_string_position): Likewise.
1843 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1844 * xselect.c (x_get_window_property, receive_incremental_selection)
1845 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1846 Likewise.
1847 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1848
6f704c76
DN
18492010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1850
ded80a25
DN
1851 * callproc.c (child_setup): Remove subprocesses conditional.
1852 Remove code dealing with SET_EMACS_PRIORITY, unused.
1853
49d937f4 1854 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1855 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1856
1857 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1858 (__do_global_dtors, __main): Use void in definition.
1859 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1860 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1861 the only users from ...
1862 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1863 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1864 (HAVE_VOLATILE): Remove, unused.
1865
6f704c76
DN
1866 Convert more function definitions to standard C.
1867 * xdisp.c (window_box_edges, handle_single_display_spec)
1868 (display_string): Convert definition to standard C.
1869 * scroll.c (do_direct_scrolling, scrolling_1):
1870 * dispnew.c (allocate_matrices_for_frame_redisplay)
1871 (mirrored_line_dance):
1872 * coding.c (code_convert_string):
1873 * charset.c (map_charset_chars):
1874 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1875 (Fregister_ccl_program, Fregister_code_conversion_map):
1876 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1877 (head_table): Make static and const.
1878
e6cfa7c3
AS
18792010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1880
1881 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1882 (PROFILING_LDFLAGS): Set from substitution.
1883 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1884 CFLAGS last.
1885
892dd565
KH
18862010-07-12 Kenichi Handa <handa@m17n.org>
1887
6f2cdcd1
KH
1888 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1889 (shortlisp): Likewise.
1890
892dd565
KH
1891 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1892
1893 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1894 of FONT_ENTITY_INDEX.
1895 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1896 property, get the property value dynamically.
1897 (Ffont_put): Accept font-entity and font-object too.
1898 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1899 return value changed.
1900 (syms_of_font): Adjusted for the above change.
1901
ae96d47a
AS
19022010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1903
c8fc18ee
AS
1904 * blockinput.h: Remove obsolete comment.
1905
89887d67
AS
1906 * lisp.h: Include <stddef.h>.
1907 (OFFSETOF): Don't define.
1908 (VECSIZE): Use offsetof instead of OFFSETOF.
1909 (PSEUDOVECSIZE): Likewise.
1910 * process.c (conv_sockaddr_to_lisp): Likewise.
1911 * alloc.c: Don't include <stddef.h>.
1912 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1913
ae96d47a
AS
1914 * process.c: Remove obsolete comment.
1915
635c0aa1
CY
19162010-07-11 Chong Yidong <cyd@stupidchicken.com>
1917
1918 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1919
a64df650
AS
19202010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1921
8966b757
AS
1922 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1923 index, rindex.
1924 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1925 * editfns.c (Fuser_full_name, Fformat): Likewise.
1926 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1927 * fileio.c (Ffile_symlink_p): Likewise.
1928 * filelock.c (current_lock_owner): Likewise.
1929 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1930 * fontset.c (fontset_pattern_regexp): Likewise.
1931 * lread.c (read1): Likewise.
1932 * sysdep.c (init_system_name): Likewise.
1933 * xfns.c (select_visual): Likewise.
1934 * s/hpux10-20.h (index, rindex): Don't define.
1935 * s/ms-w32.h (index): Likewise.
1936 * s/usg5-4.h: Likewise.
1937
cf237e27
AS
1938 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1939
a8fe7202
AS
1940 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1941 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1942 (egetenv): Likewise.
1943 * doprnt.c (doprnt): Likewise.
1944 * editfns.c (set_time_zone_rule, format2): Likewise.
1945 * emacs.c (decode_env_path): Likewise.
1946 * eval.c (signal_error, error): Likewise.
1947 * insdel.c (replace_range_2): Likewise.
1948 * keyboard.c (cmd_error_internal): Likewise.
1949 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1950 * print.c (write_string, write_string_1, print_error_message):
1951 Likewise.
1952 * vm-limit.c (warn_function, memory_warnings): Likewise.
1953 * xdisp.c (message1, message1_nolog, message_with_string)
1954 (vmessage, message, message_nolog): Likewise.
1955 * emacs.c: Remove duplicate declaration.
1956 * keyboard.h: Likewise.
1957 * lisp.h: Update prototypes.
1958
bb8e180f
AS
1959 * eval.c: Fix indentation problem.
1960
83380e65
AS
1961 * keyboard.c: Include "process.h"
1962
a64df650
AS
1963 * eval.c: Remove obsolete noinline declaration.
1964 * fns.c: Likewise.
1965
6a8033e1
KR
19662010-07-11 Ken Raeburn <raeburn@raeburn.org>
1967
1968 * doprnt.c (doprnt): Take a va_list argument instead of count and
1969 pointer.
1970 * eval.c (error): Change to a standard-C variadic function.
1971 * xdisp.c (vmessage): Renamed from message, made static, and
1972 changed to take a va_list argument.
1973 (message): New variadic wrapper.
1974 (message_nolog): Now a variadic function, calling vmessage.
1975 * lisp.h: Include stdarg.h for va_list.
1976 (doprnt, error, message, message_nolog): Decls updated.
1977
462aa963
EZ
19782010-07-11 Eli Zaretskii <eliz@gnu.org>
1979
1980 * process.c (syms_of_process) <delete-exited-processes>: Define
1981 even if !subprocesses.
1982 (delete_exited_processes): Ditto.
1983
1984 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
1985 (delete_exited_processes): Don't define.
1986
48104462
CY
19872010-07-10 Chong Yidong <cyd@stupidchicken.com>
1988
1989 * frame.c (make_frame): Initialize menu_bar_lines and
1990 tool_bar_lines members.
1991 (make_initial_frame, make_terminal_frame): Initialize
1992 menu_bar_lines using value of menu-bar-mode.
1993
1994 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
1995
f388c88a
EZ
19962010-07-10 Eli Zaretskii <eliz@gnu.org>
1997
1998 * process.c: Reshuffle #include's. Condition some of the global
1999 and static variables on `subprocesses'.
2000 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2001 Leave only one implementation.
2002 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2003 (kill_buffer_processes, Flist_system_processes)
2004 (Fprocess_attributes, init_process, syms_of_process): Unify the
2005 implementations for with subprocesses and without them.
2006
723f5a07
J
20072010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2008
2009 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2010 correct size for Motif.
2011 (free_frame_menubar): Call x_set_window_size to update frame size.
2012
2013 * xfns.c (x_window): Set borderWidth to 0 for pane and
2014 EmacsFrame. Frame size calculation is wrong otherwise.
2015
2536a4b7
MA
20162010-07-09 Michael Albinus <michael.albinus@gmx.de>
2017
2018 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2019 allows to suppress errors when polling in Emacs' main loop.
2020 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2021 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2022 (Fdbus_method_error_internal, Fdbus_send_signal)
2023 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2024 (Fdbus_register_method): Use it. (Bug#6579)
2025
5842a27b
DN
20262010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2027
2028 * alloc.c: Convert DEFUNs to standard C.
2029 * buffer.c:
2030 * bytecode.c:
2031 * callint.c:
2032 * callproc.c:
2033 * casefiddle.c:
2034 * casetab.c:
2035 * category.c:
2036 * character.c:
2037 * charset.c:
2038 * chartab.c:
2039 * cmds.c:
2040 * coding.c:
2041 * composite.c:
2042 * data.c:
2043 * dbusbind.c:
2044 * dired.c:
2045 * dispnew.c:
2046 * doc.c:
2047 * dosfns.c:
2048 * editfns.c:
2049 * emacs.c:
2050 * eval.c:
2051 * fileio.c:
2052 * filelock.c:
2053 * floatfns.c:
2054 * fns.c:
2055 * font.c:
2056 * fontset.c:
2057 * frame.c:
2058 * fringe.c:
2059 * image.c:
2060 * indent.c:
2061 * insdel.c:
2062 * keyboard.c:
2063 * keymap.c:
2064 * lread.c:
2065 * macros.c:
2066 * marker.c:
2067 * menu.c:
2068 * minibuf.c:
2069 * msdos.c:
2070 * nsfns.m:
2071 * nsmenu.m:
2072 * nsselect.m:
2073 * print.c:
2074 * process.c:
2075 * search.c:
2076 * sound.c:
2077 * syntax.c:
2078 * term.c:
2079 * terminal.c:
2080 * textprop.c:
2081 * undo.c:
2082 * w16select.c:
2083 * w32console.c:
2084 * w32fns.c:
2085 * w32font.c:
2086 * w32menu.c:
2087 * w32proc.c:
2088 * w32select.c:
2089 * window.c:
2090 * xdisp.c:
2091 * xfaces.c:
2092 * xfns.c:
2093 * xmenu.c:
2094 * xselect.c:
2095 * xsettings.c:
2096 * xsmfns.c: Likewise.
2097
d568829b
EZ
20982010-07-08 Eli Zaretskii <eliz@gnu.org>
2099
2100 * process.c (kbd_is_on_hold, hold_keyboard_input)
2101 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2102
52214050
J
21032010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2104
2105 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2106 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2107 unless USE_LUCID.
2108
313d9eb2
DN
21092010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2110
a628ad9d
JB
2111 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2112 declaration.
d8825aa3 2113
295d0d8f
DN
2114 Clean up include guards.
2115 * tparam.c: Remove include guards for config.h, string.h and code
2116 that assumes #ifndef emacs.
2117 * termcap.c:
2118 * unexalpha.c:
2119 * sysdep.c:
2120 * filemode.c:
2121 * filelock.c:
2122 * bidi.c: Likewise.
2123
49d9e6b0
DN
2124 Remove prefix-args.c
2125 * prefix-args.c: Remove file.
2126 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2127 * Makefile.in (temacs${EXEEXT}): Remove references to
2128 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2129 (mostlyclean): Remove reference to prefix-args.
2130 (prefix-args): Remove.
2131
313d9eb2
DN
2132 Simplify cstart_of_data, start_of_code and related code.
2133 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2134 (start_of_data): Merge into start_of_data function.
2135 * sysdep.c (start_of_text): Remove. Move simplified versions of
2136 it in the only users: unexaix.c and unexec.c.
2137 (read_input_waiting): Remove local declaration of quit_char.
2138 (start, etext): Remove declarations.
2139 (start_of_data): Merge with the version in mem-limits.h and move
2140 to vm-limits.c.
2141 * vm-limit.c (start_of_data): Merged and simplified version of the
2142 code formerly in mem-limits.h and sysdep.c.
2143 * unexec.c (start): New declaration, moved from sysdep.c.
2144 (start_of_text): Simplified version of the code formerly in sysdep.c.
2145 * unexaix.c (start_of_text): Simplified version of the code
2146 formerly in sysdep.c.
2147 * m/alpha.h (HAVE_TEXT_START): Remove.
2148 (TEXT_START): Move ...
2149 * unexalpha.c (TEXT_START): ... here.
2150 * s/hpux10-20.h (TEXT_START): Remove.
2151 * s/darwin.h (TEXT_START):
2152 * m/mips.h (TEXT_START):
2153 * m/macppc.h (HAVE_TEXT_START):
2154 * m/m68k.h (TEXT_START):
2155 * m/iris4d.h (TEXT_START):
2156 * m/intel386.h (TEXT_START):
2157 * m/ibmrs6000.h (TEXT_START):
2158 * m/ia64.h (HAVE_TEXT_START):
2159 * s/msdos.h (TEXT_START): Likewise.
2160
72af86bd
AS
21612010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2162
2163 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2164 (overrun_check_free, xstrdup, allocate_string)
2165 (allocate_string_data, compact_small_strings, Fmake_string)
2166 (make_unibyte_string, make_multibyte_string)
2167 (make_string_from_bytes, make_specified_string, make_float)
2168 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2169 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2170 memcpy, memmove, memset, memcmp.
2171 * atimer.c (start_atimer, set_alarm): Likewise.
2172 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2173 (mmap_realloc, init_buffer_once): Likewise.
2174 * callint.c (Fcall_interactively): Likewise.
2175 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2176 (getenv_internal_1): Likewise.
2177 * casefiddle.c (casify_object): Likewise.
2178 * ccl.c (ccl_driver): Likewise.
2179 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2180 * charset.c (load_charset_map_from_file)
2181 (load_charset_map_from_file, load_charset_map_from_vector)
2182 (Fdefine_charset_internal): Likewise.
2183 * cm.c (Wcm_clear): Likewise.
2184 * coding.c (decode_eol, decode_coding_object)
2185 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2186 * data.c (Faset): Likewise.
2187 * dired.c (directory_files_internal, file_name_completion_stat):
2188 Likewise.
2189 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2190 (clear_glyph_row, copy_row_except_pointers)
2191 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2192 (save_current_matrix, restore_current_matrix)
2193 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2194 (mirror_line_dance, scrolling_window): Likewise.
2195 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2196 Likewise.
2197 * doprnt.c (doprnt): Likewise.
2198 * editfns.c (Fuser_full_name, make_buffer_string_both)
2199 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2200 * emacs.c (sort_args): Likewise.
2201 * eval.c (Fapply, Ffuncall): Likewise.
2202 * fileio.c (Ffile_name_directory, make_temp_name)
2203 (Fexpand_file_name, search_embedded_absfilename)
2204 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2205 (auto_save_error): Likewise.
2206 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2207 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2208 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2209 (Fmake_hash_table): Likewise.
2210 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2211 * ftfont.c (ftfont_text_extents): Likewise.
2212 * getloadavg.c (getloadavg): Likewise.
2213 * image.c (define_image_type, make_image, make_image_cache)
2214 (x_create_x_image_and_pixmap, xbm_image_p)
2215 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2216 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2217 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2218 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2219 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2220 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2221 Likewise.
2222 * indent.c (scan_for_column, compute_motion): Likewise.
2223 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2224 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2225 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2226 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2227 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2228 (store_user_signal_events, menu_bar_items, tool_bar_items)
2229 (process_tool_bar_item, append_tool_bar_item)
2230 (read_char_minibuf_menu_prompt, read_key_sequence)
2231 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2232 Likewise.
2233 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2234 Likewise.
2235 * lisp.h (STRING_COPYIN): Likewise.
2236 * lread.c (Fload, read1, oblookup): Likewise.
2237 * msdos.c (Frecent_doskeys): Likewise.
2238 * nsfns.m (Fx_create_frame): Likewise.
2239 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2240 Likewise.
2241 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2242 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2243 Likewise.
2244 * nsmenu.m (ns_update_menubar): Likewise.
2245 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2246 * print.c (print_unwind, printchar, strout, print_string)
2247 (print_error_message): Likewise.
2248 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2249 (Fmake_network_process, Fnetwork_interface_list)
2250 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2251 (init_process): Likewise.
2252 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2253 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2254 Likewise.
2255 * scroll.c (do_scrolling, do_direct_scrolling)
2256 (scrolling_max_lines_saved): Likewise.
2257 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2258 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2259 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2260 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2261 (emacs_set_tty): Likewise.
2262 * term.c (encode_terminal_code, calculate_costs)
2263 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2264 Likewise.
2265 * termcap.c (tgetst1, gobble_line): Likewise.
2266 * termhooks.h (EVENT_INIT): Likewise.
2267 * tparam.c (tparam1): Likewise.
2268 * unexalpha.c (unexec): Likewise.
2269 * unexec.c (write_segment): Likewise.
2270 * unexmacosx.c (unexec_write_zero): Likewise.
2271 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2272 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2273 * w32font.c (w32font_list_family, w32font_text_extents)
2274 (w32font_list_internal, w32font_match_internal)
2275 (w32font_open_internal, compute_metrics, Fx_select_font):
2276 Likewise.
2277 * w32menu.c (set_frame_menubar, add_menu_item)
2278 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2279 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2280 * w32uniscribe.c (uniscribe_list_family): Likewise.
2281 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2282 * window.c (make_window, replace_window, set_window_buffer)
2283 (Fsplit_window): Likewise.
2284 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2285 (add_to_log, message3, x_consider_frame_title)
2286 (append_space_for_newline, extend_face_to_end_of_line)
2287 (decode_mode_spec_coding, init_glyph_string): Likewise.
2288 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2289 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2290 (face_attr_equal_p, make_realized_face, make_face_cache)
2291 (free_realized_faces, lookup_named_face, smaller_face)
2292 (face_with_height, lookup_derived_face)
2293 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2294 (Finternal_set_font_selection_order, realize_default_face)
2295 (compute_char_face, face_at_buffer_position)
2296 (face_for_overlay_string, face_at_string_position, merge_faces):
2297 Likewise.
2298 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2299 (Fx_window_property, x_create_tip_frame)
2300 (Fx_backspace_delete_keys_p): Likewise.
2301 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2302 (xfont_text_extents): Likewise.
2303 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2304 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2305 * xselect.c (x_queue_event, x_get_window_property)
2306 (receive_incremental_selection): Likewise.
2307 * xsmfns.c (x_session_check_input): Likewise.
2308 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2309 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2310 Likewise.
2311 * character.h (BCOPY_SHORT): Removed.
2312 * config.in: Regenerate.
2313 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2314 * emacs.c (main) [PROFILING]: Don't declare
2315 dump_opcode_frequencies.
2316 * lisp.h (safe_bcopy): Remove declaration.
2317 (memset) [!HAVE_MEMSET]: Declare.
2318 (memcpy) [!HAVE_MEMCPY]: Likewise.
2319 (memmove) [!HAVE_MEMMOVE]: Likewise.
2320 (memcmp) [!HAVE_MEMCMP]: Likewise.
2321 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2322 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2323 Don't define.
2324 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2325 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2326 (BCOPY_DOWNWARD_SAFE): Don't define.
2327 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2328 (memcpy) [!HAVE_MEMCPY]: Define.
2329 (memmove) [!HAVE_MEMMOVE]: Define.
2330 (memcmp) [!HAVE_MEMCMP]: Define.
2331
cb768704
J
23322010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2333
2334 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2335 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2336 New functions.
cb768704
J
2337 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2338 select on empty input mask.
2339 (init_process): Initialize kbd_is_on_hold to 0.
2340
2341 * process.h (hold_keyboard_input, unhold_keyboard_input)
2342 (kbd_on_hold_p): Declare.
2343
2344 * keyboard.c (input_available_signal): Declare.
2345 (kbd_buffer_nr_stored): New function.
2346 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2347 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2348 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2349 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2350 (tty_read_avail_input): If input is on hold, return.
2351 Don't read more that free slots in kbd_buffer (Bug#6571).
2352
3a8ce822
EZ
23532010-07-07 Eli Zaretskii <eliz@gnu.org>
2354
2355 * msdos.h:
2356 * msdos.c:
2357 * dosfns.c:
2358 * w16select.c: Convert function definitions to ANSI C.
2359
a628ad9d
JB
2360 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2361 Remove unused prototypes.
3a8ce822 2362
cf84bb53
JB
23632010-07-07 Juanma Barranquero <lekktu@gmail.com>
2364
2365 * coding.c, sysdep.c: Convert some more functions to standard C.
2366
1a4990fb
JB
23672010-07-07 Juanma Barranquero <lekktu@gmail.com>
2368
2369 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2370 (encode_coding_object): Use SPECPDL_INDEX.
2371 (syms_of_coding): Use DOS_NT.
2372
c0f2f16b
DN
23732010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2374
48fb6855
DN
2375 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2376
c0f2f16b
DN
2377 Make the function member of Lisp_Subr use standard C prototypes.
2378 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2379 (DECL_ALIGN): Add a cast for the function.
2380 * eval.c (Feval, Ffuncall): Use the proper type for each type
2381 function call.
2382
67aecef9
CY
23832010-07-06 Chong Yidong <cyd@stupidchicken.com>
2384
2385 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2386 fringe face id, so face-remapping-alist works (Bug#6091).
2387
b56ceb92
JB
23882010-07-06 Juanma Barranquero <lekktu@gmail.com>
2389
2390 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2391 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2392 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2393
7af07b96
AS
23942010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2395
2396 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2397 * lisp.h: Declare x_get_keysym_name.
2398 * keyboard.c (modify_event_symbol): Don't declare
2399 x_get_keysym_name here.
2400
69e24e34
DN
24012010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2402
2403 * ecrt0.c: Revert conversion to standard C.
2404
d3da34e0 24052010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2406
2407 * vm-limit.c (memory_warnings):
2408 * keyboard.c (modify_event_symbol):
2409 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2410 (round2, emacs_rint):
2411 * process.c (send_process, old_sigpipe): Convert function
2412 definitions and declarations to standard C.
2413
24142010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2415
2416 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2417 * xdisp.c: Convert function definitions to standard C.
2418
2419 * cm.c (cmputc): Arg C is now int, not char.
2420 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2421
00be444c
J
24222010-07-05 James Cloos <cloos@jhcloos.com>
2423
2424 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2425
2426 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2427 _NET_WM_ICON_NAME atoms.
2428
2429 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2430 and _NET_WM_ICON_NAME properties, too, matching what is
2431 done in the Gtk+ case.
2432
e4c8d29a
J
24332010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2434
ff919460
J
2435 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2436
e4c8d29a
J
2437 * xsmfns.c (SSDATA): New macro.
2438 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2439 passed to strlen/strcpy/strcat.
2440 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2441 7:th arg to XChangeProperty to (unsigned char *)
2442
2443 * xsettings.c (something_changedCB, parse_settings)
2444 (apply_xft_settings): Reformat prototype.
2445 (something_changedCB, init_gconf): Remove unused variable i.
2446 (read_settings): Remove unused variable long_len.
2447
2448 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2449 (xg_get_image_for_pixmap, create_dialog)
2450 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2451 (menuitem_highlight_callback, make_menu_item)
2452 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2453 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2454 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2455 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2456 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2457 (xg_tool_bar_item_expose_callback): Reformat prototype.
2458 (xg_update_menubar): GList *group => GSList *group.
2459 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2460 before use.
2461 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2462 to GTK_IMAGE (wimage).
2463
dd4c5104
DN
24642010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2465
898b4c5c
DN
2466 * atimer.c: Use "" instead of <> for local includes for
2467 consistency with the rest of the code.
2468
dd4c5104
DN
2469 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2470 * xrdb.c (get_system_name):
2471 * window.c (shrink_windows):
2472 * syntax.c (forw_comment):
2473 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2474 (ins_del_costs):
2475 * mem-limits.h (start_of_data):
2476 * lread.c (readevalloop):
2477 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2478 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2479 * frame.c (x_get_focus_frame):
2480 * floatfns.c (fmod_float):
2481 * fileio.c (choose_write_coding_system):
2482 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2483 (malloc_initialize_hook, sort_args, synchronize_locale):
2484 * doprnt.c (doprnt):
2485 * dired.c (compile_pattern):
2486 * data.c (fmod_float):
2487 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2488 (map_char_table_for_charset):
2489 * charset.c (define_charset_internal):
2490 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2491 to standard C.
2492
9a39b306 24932010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2494 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2495
2496 * lread.c (read1): Fix up last change to not mess up `c'.
2497
e6cb2cbb
JB
24982010-07-04 Juanma Barranquero <lekktu@gmail.com>
2499
2500 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2501
438105ed
JB
25022010-07-04 Juanma Barranquero <lekktu@gmail.com>
2503
2504 Fix prototypes.
2505
e5447b22 2506 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2507 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2508 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2509 arg, as required by internal_condition_case_1.
dcc7404b 2510 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2511 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2512 (analyse_first): Fix "const const".
e5447b22 2513 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2514 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2515 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2516
971de7fb
DN
25172010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2518
2519 * alloc.c: Convert function definitions to standard C.
2520 * atimer.c:
2521 * bidi.c:
2522 * bytecode.c:
2523 * callint.c:
2524 * callproc.c:
2525 * casefiddle.c:
2526 * casetab.c:
2527 * category.c:
2528 * ccl.c:
2529 * character.c:
2530 * charset.c:
2531 * chartab.c:
2532 * cmds.c:
2533 * coding.c:
2534 * composite.c:
2535 * data.c:
2536 * dbusbind.c:
2537 * dired.c:
2538 * dispnew.c:
2539 * doc.c:
2540 * doprnt.c:
2541 * ecrt0.c:
2542 * editfns.c:
2543 * fileio.c:
2544 * filelock.c:
2545 * filemode.c:
2546 * fns.c:
2547 * font.c:
2548 * fontset.c:
2549 * frame.c:
2550 * fringe.c:
2551 * ftfont.c:
2552 * ftxfont.c:
2553 * gtkutil.c:
2554 * indent.c:
2555 * insdel.c:
2556 * intervals.c:
2557 * keymap.c:
2558 * lread.c:
2559 * macros.c:
2560 * marker.c:
2561 * md5.c:
2562 * menu.c:
2563 * minibuf.c:
2564 * prefix-args.c:
2565 * print.c:
2566 * ralloc.c:
2567 * regex.c:
2568 * region-cache.c:
2569 * scroll.c:
2570 * search.c:
2571 * sound.c:
2572 * strftime.c:
2573 * syntax.c:
2574 * sysdep.c:
2575 * termcap.c:
2576 * terminal.c:
2577 * terminfo.c:
2578 * textprop.c:
2579 * tparam.c:
2580 * undo.c:
2581 * unexelf.c:
2582 * window.c:
2583 * xfaces.c:
2584 * xfns.c:
2585 * xfont.c:
2586 * xftfont.c:
2587 * xgselect.c:
2588 * xmenu.c:
2589 * xrdb.c:
2590 * xselect.c:
2591 * xsettings.c:
2592 * xsmfns.c:
2593 * xterm.c: Likewise.
2594
ae492bec
EZ
25952010-07-03 Eli Zaretskii <eliz@gnu.org>
2596
76ea4cc9
EZ
2597 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2598 frames other than the initial one. Fix reversal of colors when
2599 `reverse' is specified in the frame parameters. Call
2600 update_face_from_frame_parameter instead of
2601 internal-set-lisp-face-attribute. Initialize screen colors from
2602 initial_screen_colors[] when f->default_face_done_p is zero,
2603 instead of depending on being called with default-frame-alist as
2604 the alist argument.
2605
2606 * xfaces.c (update_face_from_frame_parameter): Move out of
2607 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2608 with HAVE_WINDOW_SYSTEM.
2609
1e6255ae
EZ
2610 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2611 to menu-bar-mode, if not set in the frame parameters or in
2612 default-frame-alist.
2613
ae492bec
EZ
2614 * w32console.c (sys_tputs): Adjust argument list to prototype in
2615 term.c.
2616
3a35a84c
JB
26172010-07-03 Juanma Barranquero <lekktu@gmail.com>
2618
2619 * lisp.h (memory_warnings): Fix prototype.
2620
2621 * cm.h (evalcost): Fix prototype.
2622
2623 * cm.c (evalcost): Fix arg type.
2624
c532d349
DN
26252010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2626
2627 * term.c (term_clear_mouse_face, Fidentity):
2628 * syssignal.h (signal_handler_t):
2629 * lisp.h (memory_warnings):
2630 * coding.h (preferred_coding_system):
2631 * cm.h (evalcost):
2632 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2633
c0b36d46
EZ
26342010-07-02 Eli Zaretskii <eliz@gnu.org>
2635
2636 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2637 from prototypes.
2638
2639 * msdos.h (load_pixmap): Don't define away.
2640
383e0970
J
26412010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2642
f57e2426
J
2643 * lisp.h:
2644 * atimer.h: Remove define for P_.
2645
2646 * alloc.c: Remove __P and P_ from .c and .m files.
2647 * atimer.c:
2648 * buffer.c:
2649 * callint.c:
2650 * category.c:
2651 * charset.c:
2652 * chartab.c:
2653 * cm.c:
2654 * coding.c:
2655 * composite.c:
2656 * data.c:
2657 * dired.c:
2658 * dispnew.c:
2659 * doc.c:
2660 * editfns.c:
2661 * emacs.c:
2662 * eval.c:
2663 * fileio.c:
2664 * filelock.c:
2665 * fns.c:
2666 * font.c:
2667 * fontset.c:
2668 * frame.c:
2669 * ftfont.c:
2670 * ftxfont.c:
2671 * gmalloc.c:
2672 * gtkutil.c:
2673 * image.c:
2674 * indent.c:
2675 * intervals.c:
2676 * keyboard.c:
2677 * keymap.c:
2678 * lread.c:
2679 * marker.c:
2680 * menu.c:
2681 * minibuf.c:
2682 * print.c:
2683 * process.c:
2684 * scroll.c:
2685 * search.c:
2686 * sound.c:
2687 * strftime.c:
2688 * syntax.c:
2689 * sysdep.c:
2690 * term.c:
2691 * terminal.c:
2692 * textprop.c:
2693 * unexalpha.c:
2694 * w32console.c:
2695 * w32fns.c:
2696 * w32font.c:
2697 * w32menu.c:
2698 * w32term.c:
2699 * w32uniscribe.c:
2700 * window.c:
2701 * xdisp.c:
2702 * xfaces.c:
2703 * xfns.c:
2704 * xfont.c:
2705 * xftfont.c:
2706 * xmenu.c:
2707 * xselect.c:
2708 * xterm.c: Likewise.
2709
383e0970 2710 Remove P_ and __P macros.
f57e2426
J
2711 * atimer.h: Remove P_ and __P macros.
2712 * buffer.h:
383e0970
J
2713 * category.h:
2714 * ccl.h:
2715 * character.h:
2716 * charset.h:
2717 * cm.h:
2718 * coding.h:
2719 * composite.h:
2720 * dispextern.h:
2721 * disptab.h:
9e892c8d 2722 * dosfns.h:
383e0970
J
2723 * font.h:
2724 * fontset.h:
2725 * frame.h:
2726 * gtkutil.h:
2727 * indent.h:
2728 * intervals.h:
2729 * keyboard.h:
2730 * keymap.h:
2731 * lisp.h:
2732 * macros.h:
2733 * md5.h:
2734 * menu.h:
2735 * msdos.h:
2736 * nsterm.h:
2737 * puresize.h:
2738 * region-cache.h:
2739 * syntax.h:
2740 * syssignal.h:
2741 * systime.h:
2742 * termhooks.h:
9e892c8d 2743 * w32font.h:
383e0970
J
2744 * w32term.h:
2745 * widget.h:
2746 * window.h:
2747 * xgselect.h:
2748 * xsettings.h:
2749 * xterm.h: Likewise.
2750
98601119
DN
27512010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2752
d9170db5
DN
2753 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2754
98601119
DN
2755 Cleanup old code.
2756 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2757 * syssignal.h: Remove code for Lynx, not supported anymore.
2758 * vm-limit.c: Remove unused code the depends on emacs not being
2759 defined and NO_LIM_DATA being defined.
2760 * mem-limits.h: Remove dead code.
2761
1f984e12
J
27622010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2763
c49d071a
J
2764 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2765
9d5405ec
J
2766 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2767 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2768
7a18115b
J
2769 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2770 parameters, they are already absolute.
2771
a628ad9d
JB
2772 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2773 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2774
a628ad9d 2775 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2776
a628ad9d
JB
2777 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2778 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2779
a628ad9d
JB
2780 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2781 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2782
c1ef4455
CY
27832010-06-30 Chong Yidong <cyd@stupidchicken.com>
2784
2785 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2786 check default-frame-alist.
2787
ce8f5a9a
AS
27882010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2789
2790 * process.c (create_process): Avoid using invalid file descriptors.
2791
2792 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2793
bf935339
J
27942010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2795
2796 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2797 Improve documentation. Return font regardless of use_system_font.
2798 (syms_of_xsettings): Improve documentation for font-use-system-font.
2799
7c33a057
CY
28002010-07-10 Chong Yidong <cyd@stupidchicken.com>
2801
2ec1b5ee
CY
2802 * xfaces.c (realize_face): Garbage the frame if a face is removed
2803 (Bug#6593).
2804
28052010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2806
2807 * keyboard.c: Remove duplicate <setjmp.h>.
2808 (read_key_sequence): Remove volatile qualifiers.
2809
28102010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2811
2812 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2813 (struct glyph_row): New members left_fringe_offset and
2814 right_fringe_offset.
2815
2816 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2817 specially.
2818 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2819 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2820
2821 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2822 Take account of bitmap offset.
2ec1b5ee
CY
2823 (draw_window_fringes): Take account of window vscroll.
2824 (update_window_fringes): Likewise. Extend top-aligned top indicator
2825 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2826 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2827 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2828
28292010-07-04 Juanma Barranquero <lekktu@gmail.com>
2830
2831 * w32fns.c (Qtooltip): Declare.
2832 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2833
28342010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2835
2836 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2837 grab on just Press (Bug#6499).
2838
28392010-07-02 Chong Yidong <cyd@stupidchicken.com>
2840
2841 * frame.c (Qtooltip): New var.
2842 (delete_frame): Use it. Fix faulty if statement. Don't update
2843 mode line for tooltip frames. Suggested by Martin Rudalics.
2844
2845 * xfns.c (x_create_tip_frame):
2846 * w32fns.c (x_create_tip_frame): Use it.
2847
28482010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2849
2850 * xftfont.c (xftfont_open): Check font width one by one also when
2851 spacing is dual.
2852
2853 * ftfont.c (ftfont_open): Ditto.
2854
6259c2ec
GM
28552010-06-30 Glenn Morris <rgm@gnu.org>
2856
a46007e9
GM
2857 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2858
6259c2ec
GM
2859 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2860
2861 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2862 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2863 * s/darwin.h (SYSTEM_MALLOC):
2864 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2865
5d1d3d04
J
28662010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2867
2868 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2869 (ns_get_screen): Don't assign integer to f.
2870 (Fx_display_color_cells): Declarations before statements.
2871
e547b051
J
28722010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2873
5fc8e5bc
J
2874 * xfns.c (x_default_font_parameter): Remove got_from_system
2875 (Bug#6526).
2876
e547b051
J
2877 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2878 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2879 defines based on what configure finds.
2880
2881 * xterm.c (XTflash): Use gtk_widget_get_window.
2882 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2883 gtk_adjustment_get_page_size.
2884 (handle_one_xevent): Use gtk_widget_get_mapped.
2885 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2886 messages.
2887
2888 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2889
2890 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2891 HAVE_GTK_FILE_SELECTION_NEW.
2892
2893 * gtkutil.c (xg_display_open, xg_display_close): Remove
2894 HAVE_GTK_MULTIDISPLAY, it is always defined.
2895 (xg_display_open): Return type is void.
2896 (gtk_widget_set_has_window)
2897 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2898 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2899 (gtk_adjustment_set_page_increment)
2900 (gtk_adjustment_get_step_increment): #define these if not found
2901 by configure.
2902 (remove_submenu): New define based on Gtk+ version.
2903 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2904 gtk_widget_get_window.
2905 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2906 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2907 (create_dialog): Use gtk_dialog_get_action_area and
2908 gtk_dialog_get_content_area.
2909 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2910 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2911 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2912 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2913 g_object_ref and g_object_unref.
2914 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2915 gtk_widget_get_sensitive.
2916 (xg_update_submenu): Use remove_submenu.
2917 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2918 properties instead to get old x and y position.
2919 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2920 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2921 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2922 (xg_get_tool_bar_widgets): New function.
2923 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2924 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2925 (toolbar_set_orientation): New #define based on if configure
2926 finds gtk_orientable_set_orientation.
2927 (xg_create_tool_bar): Call toolbar_set_orientation.
2928 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2929 instead of gtk_box_pack_start_defaults.
2930
b9229673
CY
29312010-06-28 Chong Yidong <cyd@stupidchicken.com>
2932
2933 * cmds.c (Fdelete_backward_char): Move into Lisp.
2934
bbc803b0
DN
29352010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2936
2937 * s/freebsd.h (BSD4_2): Remove redundant definition.
2938 bsd-common.h defines it already.
2939
6431f2e6
CY
29402010-06-27 Chong Yidong <cyd@stupidchicken.com>
2941
2942 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2943 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2944 tool-bar-mode, which are now set using these X resources at
2945 startup, to determine the defaults (Bug#2249).
2946
2947 * w32fns.c (Fx_create_frame):
2948 * nsfns.m (Fx_create_frame): Likewise.
2949
2950 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2951
8c079ebb
JB
29522010-06-24 Juanma Barranquero <lekktu@gmail.com>
2953
2954 * gtkutil.c (xg_update_scrollbar_pos):
2955 Avoid C99 mid-block variable declaration.
2956
e9b7ab96
JD
29572010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2958
bc869eca
JD
2959 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2960
2b7e356a 2961 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2962
2963 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2964 if height is less than scroll bar min size.
2965 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2966
e9b7ab96
JD
2967 * xfns.c (x_default_font_parameter): Try to open font from system
2968 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2969
a628ad9d 29702010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2971
2972 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2973
70c4cfbb
EZ
29742010-06-20 Eli Zaretskii <eliz@gnu.org>
2975
2976 * xdisp.c (try_scrolling): When scroll-conservatively is set to
2977 most-positive-fixnum, be extra accurate when scrolling window
2978 start, to avoid missing the cursor line.
2979
ad5a12b5
EZ
29802010-06-19 Eli Zaretskii <eliz@gnu.org>
2981
2982 * xdisp.c (try_scrolling): Compute the limit for searching point
2983 in forward scroll from scroll_max, instead of an arbitrary limit
2984 of 10 screen lines. See
2985 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
2986 and
2987 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
2988 for details.
2989
2a64315a 29902010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
2991
2992 * editfns.c (Fbyte_to_string): Pacify compiler.
2993
288cf4e9
SM
29942010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
2995
2996 * lread.c (read1): Phase out old-style backquotes a bit more.
2997
6e6e5760
EZ
29982010-06-12 Eli Zaretskii <eliz@gnu.org>
2999
cbc4fd20
EZ
3000 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3001 bidimirror.h.
3002
3003 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3004
317fbf33
EZ
3005 * bidi.c (bidi_initialize): Remove explicit initialization of
3006 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3007 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3008 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3009
3010 * biditype.h: New file.
3011
cbc4fd20
EZ
3012 * bidimirror.h: New file.
3013
6e6e5760
EZ
3014 * window.c (syms_of_window): Doc fix (bug#6409).
3015
4176cba2
RF
30162010-06-12 Romain Francoise <romain@orebokech.com>
3017
3018 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3019 ediff-hook.
3020
cb4bfcb5
GM
30212010-06-10 Glenn Morris <rgm@gnu.org>
3022
64c60c2f
GM
3023 * editfns.c (Fbyte_to_string): Pacify compiler.
3024
cb4bfcb5
GM
3025 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3026
2ec1b5ee
CY
30272010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3028
3029 * alloc.c (Fmake_byte_code): Don't access undefined argument
3030 (Bug#6517).
3031
30322010-06-25 Chong Yidong <cyd@stupidchicken.com>
3033
3034 * xdisp.c (next_element_from_image): Ensure that after-strings are
3035 read the next time we hit handle_stop (Bug#1336).
3036
30372010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3038
3039 * lread.c (read1): Signal error if #s is not followed by paren.
3040
30412010-06-19 Chong Yidong <cyd@stupidchicken.com>
3042
3043 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3044
3045 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3046
30472010-06-15 Glenn Morris <rgm@gnu.org>
3048
3049 * editfns.c (Fbyte_to_string): Pacify compiler.
3050
e454a4a3
SM
30512010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3052
3053 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3054 Check `object's type before accessing its guts.
3055
c1b1acc2
DN
30562010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3057
3058 * s/usg5-4.h: Fix previous change.
3059 Suggested by Lawrence Mitchell <wence@gmx.li>
3060
657d4c0b
AS
30612010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3062
3063 * minibuf.c (Fall_completions): Add more checks.
3064
9b27fd9f
JB
30652010-06-08 Juanma Barranquero <lekktu@gmail.com>
3066
3067 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3068
a99ebb40
DN
30692010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3070
d7c5d87d
DN
3071 * lread.c (X_OK): Remove, unused.
3072
0263a941
DN
3073 * dispnew.c: Remove obsolete comment.
3074
a99ebb40
DN
3075 Remove INCLUDED_FCNTL.
3076 * xterm.c (INCLUDED_FCNTL):
3077 * callproc.c (INCLUDED_FCNTL):
3078 * alloc.c (INCLUDED_FCNTL):
3079 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3080 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3081
13b5221f
MR
30822010-06-07 Martin Rudalics <rudalics@gmx.at>
3083
3084 * window.c (Fselect_window): Move `record_buffer' up to the
3085 beginning of this function, so the buffer gets recorded
3086 even if the selected window does not change.
3087 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3088
5220357f
JB
30892010-06-07 Juanma Barranquero <lekktu@gmail.com>
3090
3091 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3092 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3093
3085237c
DN
30942010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3095
3096 Remove BSTRING related code, all platforms define it.
3097 * s/usg5-4.h (BSTRING): Remove definition.
3098 * s/template.h (BSTRING):
3099 * s/msdos.h (BSTRING):
3100 * s/ms-w32.h (BSTRING):
3101 * s/hpux10-20.h (BSTRING):
3102 * s/gnu-linux.h (BSTRING):
3103 * s/darwin.h (BSTRING):
3104 * s/cygwin.h (BSTRING):
3105 * s/bsd-common.h (BSTRING):
3106 * s/aix4-2.h (BSTRING): Likewise.
3107 * sysdep.c: Remove code depending on BSTRING not being defined.
3108
409f2919
JB
31092010-06-05 Juanma Barranquero <lekktu@gmail.com>
3110
3111 Remove obsolete macro BASE_LEADING_CODE_P.
3112 * character.h (BASE_LEADING_CODE_P): Remove.
3113 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3114 * buffer.c (Fset_buffer_multibyte):
3115 * indent.c (scan_for_column, compute_motion):
3116 * insdel.c (count_combining_before, count_combining_after):
3117 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3118
087fc47a
JB
31192010-06-04 Juanma Barranquero <lekktu@gmail.com>
3120
3121 Turn `directory-sep-char' into a noop.
3122
3123 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3124 (DIRECTORY_SEP): Define unconditionally.
3125
3126 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3127
3128 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3129 call dostounix_filename directly.
3130
3131 * fileio.c (CORRECT_DIR_SEPS): Remove.
3132 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3133 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3134 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3135 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3136
3137 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3138 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3139
0eb7675e
AS
31402010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3141
a628ad9d
JB
3142 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3143 (Bug#6346)
0eb7675e 3144
78edd3b7
JB
31452010-06-03 Juanma Barranquero <lekktu@gmail.com>
3146
3147 * ccl.c (Fccl_program_p): Fix typo in docstring.
3148
eb697db5
DN
31492010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3150
3151 Move UNEXEC definition to autoconf.
3152 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3153 * s/sol2-10.h (UNEXEC):
3154 * s/irix6-5.h (UNEXEC):
3155 * s/hpux10-20.h (UNEXEC):
3156 * s/gnu-linux.h (UNEXEC):
3157 * s/darwin.h (UNEXEC):
3158 * s/cygwin.h (UNEXEC):
3159 * s/bsd-common.h (UNEXEC):
3160 * s/aix4-2.h (UNEXEC):
3161 * m/alpha.h (UNEXEC): Likewise.
3162 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3163
aa3830c4
JB
31642010-06-03 Juanma Barranquero <lekktu@gmail.com>
3165
3166 Remove obsolete pre-unicode2 macros.
3167 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3168 * composite.c (composition_reseat_it):
3169 * data.c (Faset):
3170 * fns.c (Ffillarray):
3171 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3172 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3173
d234d13e
JL
31742010-06-03 Juri Linkov <juri@jurta.org>
3175
3176 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3177 (Fswitch_to_buffer): Remove unused variable `err'.
3178
0d4bcf4d
GM
31792010-06-03 Glenn Morris <rgm@gnu.org>
3180
e23dc1e2
GM
3181 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3182
05b09564
GM
3183 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3184 now that AH_BOTTOM does it.
3185
824e2978
GM
3186 * m/hp800.h (HAVE_ALLOCA):
3187 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3188
0d4bcf4d
GM
3189 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3190 Remove NOT_C_CODE tests, it is always true now.
3191
c55d2abf
DN
31922010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3193
08a494a3
DN
3194 Fix config.h includes.
3195 * xsettings.c:
3196 * xgselect.c:
3197 * nsterm.m:
3198 * nsselect.m:
3199 * nsimage.m:
3200 * nsfont.m:
3201 * nsfns.m:
3202 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3203 other files do.
3204
75934b1d
DN
3205 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3206
9f32a766
DN
3207 * s/sol2-6.h: Remove obsolete comments.
3208
c55d2abf
DN
3209 Remove unnecessary alloca.h includes.
3210 * keymap.c: Do not include alloca.h, config.h does that.
3211 * sysdep.c: Likewise. Do not define fwrite, not used.
3212
06ac62b4
SM
32132010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3214
3215 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3216 the HAVE_TERMIO where it belongs (bug#6149).
3217
1ab8293c
SM
32182010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3219
3220 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3221 of bug#6305).
3222
6dcfd253
EZ
32232010-05-30 Eli Zaretskii <eliz@gnu.org>
3224
3225 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3226 state is always cached (bug#6306).
3227
6d26bbb2
EZ
32282010-05-29 Eli Zaretskii <eliz@gnu.org>
3229
06fa4a23
EZ
3230 Fix cursor motion in bidi-reordered continued lines.
3231 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3232 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3233 over continuation lines in bidi-reordered buffers. Return
3234 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3235 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3236
f5783df3
MA
32372010-05-28 Michael Albinus <michael.albinus@gmx.de>
3238
3239 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3240
7d56b2dd
KH
32412010-05-28 Kenichi Handa <handa@m17n.org>
3242
3243 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3244 Don't sheck SPEC if it is nil.
3245 (font_list_entities): Call font_delete_unmatched if
b925d231 3246 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3247
e58d4ff7
GM
32482010-05-28 Glenn Morris <rgm@gnu.org>
3249
3250 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3251
f1a5d776
CY
32522010-05-27 Chong Yidong <cyd@stupidchicken.com>
3253
3254 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3255 whether to trash.
3256 (internal_delete_file, Frename_file): Callers changed.
3257 (delete_by_moving_to_trash): Doc fix.
3258 (Fdelete_directory_internal): Don't move to trash.
3259
3260 * callproc.c (delete_temp_file):
3261 * buffer.c (Fkill_buffer): Callers changed.
3262
3263 * lisp.h: Update prototype.
3264
f44a59e6
CY
32652010-05-27 Chong Yidong <cyd@stupidchicken.com>
3266
3267 * xdisp.c (redisplay_window): After redisplay, check if point is
3268 still valid before setting it (Bug#6177).
3269
81ac4f35
GM
32702010-05-27 Glenn Morris <rgm@gnu.org>
3271
3272 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3273 Convert comments to Makefile format.
3274
3275 * Makefile.in (bootstrap-clean): No more Makefile.c.
3276
ccd89fb3
GM
32772010-05-26 Glenn Morris <rgm@gnu.org>
3278
90278cb6
GM
3279 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3280 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3281
ccd89fb3
GM
3282 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3283 Remove.
3284 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3285
b7050583
KH
32862010-05-26 Kenichi Handa <handa@m17n.org>
3287
3288 * composite.c (composition_compute_stop_pos): Fix condition for
3289 backward scanning.
3290
e5458003
GM
32912010-05-25 Glenn Morris <rgm@gnu.org>
3292
c345fe90
GM
3293 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3294 Move before TEMACS_LDFLAGS.
3295 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3296 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3297
2e0689ab
GM
3298 * Makefile.in (NOT_C_CODE): No longer define.
3299 (config.h): No longer include.
3300
8009a5e8
GM
3301 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3302 variables it may reference.
3303
e5458003
GM
3304 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3305 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3306
10f72a37
KH
33072010-05-25 Kenichi Handa <handa@m17n.org>
3308
3309 * dispextern.h (struct composition_it): New members rule_idx and
3310 charpos.
3311
3312 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3313 that the character positions of IT point the last character of the
3314 current grapheme cluster.
3315 (next_element_from_composition): Don't change character positions
3316 of IT.
3317 (append_composite_glyph): Set glyph->charpos to
3318 it->cmp_it.charpos.
3319
3320 * composite.c (autocmp_chars): Change the first argument to RULE,
3321 and try composition with RULE only.
3322 (composition_compute_stop_pos): Record the index number of the
3323 composition rule in CMP_IT->rule_idx.
3324 (composition_reseat_it): Call autocmp_chars repeatedly until the
3325 correct rule of the composition is found.
3326 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3327 is at the last character of the current grapheme cluster when
3328 CMP_IT->reversed_p is nonzero.
3329
171eda53 33302010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3331
171eda53
SM
3332 * editfns.c (Fbyte_to_string): New function.
3333
66a9f7f4
SM
33342010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3335
3336 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3337 Suggested by Masatake YAMATO <yamato@redhat.com>.
3338
d8c315d1
EZ
33392010-05-23 Eli Zaretskii <eliz@gnu.org>
3340
171eda53 3341 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3342
f5b416d2 33432010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3344
3345 * s/netbsd.h: If terminfo is found, use it in preference to
3346 termcap. (Bug#6190) [Backport from trunk]
3347
0416466c
EZ
33482010-05-19 Eli Zaretskii <eliz@gnu.org>
3349
11117830 3350 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3351
3352 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3353 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3354 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3355 and maxpos members instead of start.pos and end.pos, respectively.
3356
3357 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3358 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3359 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3360 (try_window_reusing_current_matrix, try_window_id):
3361 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3362 (init_from_display_pos, init_iterator): Use EMACS_INT for
3363 character and byte positions.
66a9f7f4 3364 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3365 arguments for minimum and maximum buffer positions seen by
3366 display_line for this row. Don't use iterator to find the
3367 position following the maximum one; instead, increment the
11117830
EZ
3368 position found by display_line directly. Fix logic; eol_pos
3369 should be tested before the rest. Handle the case of characters
3370 delivered from display vector (bug#6036). Fix tests related to
3371 it->method. Handle the truncated_on_right_p rows.
3372 (RECORD_MAX_MIN_POS): New macro.
3373 (display_line): Use it to record the minimum and maximum buffer
3374 positions for glyphs in the row being assembled. Record the
3375 position of the newline that terminates the line. If word wrap is
3376 in effect, restore minimum and maximum positions seen up to the
3377 wrap point, when iterator returns to it.
3378 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3379 row and cursor not already at point. Restore original pre-bidi
3380 code for unidirectional buffers.
d36fe237
EZ
3381
3382 * dispnew.c (increment_row_positions, check_matrix_invariants):
3383 Increment and check row->start.pos and row->end.pos, in addition
3384 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3385
11117830
EZ
3386 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3387 Display truncated_on_left_p and truncated_on_right_p flags.
3388 Formatting fixes.
3389 (pmtxrows): Display the ordinal number of each row. Don't display
3390 rows beyond the last one.
3391
3392 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3393 it is not copied by bidi_copy_it.
3394
6e83d800
EZ
33952010-05-22 Eli Zaretskii <eliz@gnu.org>
3396
3397 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3398 (Bug#6237)
3399
110683ad
CY
34002010-05-22 Chong Yidong <cyd@stupidchicken.com>
3401
3402 * image.c (Fimage_flush): Rename from image-refresh.
3403
98fe5161
CY
34042010-05-21 Chong Yidong <cyd@stupidchicken.com>
3405
3406 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3407 just one window.
3408
3409 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3410 (clear_image_cache): If the number of cached images is unusually
3411 large, decrease the cache eviction delay (Bug#6230).
3412
e8752c66
GM
34132010-05-21 Glenn Morris <rgm@gnu.org>
3414
66dbf213
GM
3415 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3416 Move these rules to ns.mk.
3417 * ns.mk: New file.
3418
04384b2d
GM
3419 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3420
e8752c66
GM
3421 * Makefile.in (CANNOT_DUMP): New, set by configure.
3422 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3423
2e2bbddb
JL
34242010-05-20 Juri Linkov <juri@jurta.org>
3425
3426 * fileio.c (Fdelete_file): Change interative spec to use
3427 `read-file-name' like in `find-file-read-args' where the default
3428 value is `default-directory' instead of `buffer-file-name'.
3429 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3430
31c4aaf6
KR
34312010-05-20 Kevin Ryde <user42@zip.com.au>
3432
3433 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3434 (Voverriding_terminal_local_map, Vsystem_key_alist)
3435 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3436
9d5cf9b6
GM
34372010-05-20 Glenn Morris <rgm@gnu.org>
3438
3439 * Makefile.in (DEPDIR): New constant.
3440 (DEPFLAGS): Set with configure, not cpp.
3441 (MKDEPDIR): New, set by configure.
3442 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3443 (clean): Use $DEPDIR.
3444 (deps_frag): Include from configure.
3445 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3446 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3447
ead6f8f5
EZ
3448 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3449 reallocation of the cache. (Bug#6210)
3450
7f34aec3
GM
34512010-05-19 Glenn Morris <rgm@gnu.org>
3452
d494e8f2
GM
3453 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3454
c1d0dcfd
GM
3455 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3456 (GNULIB_VAR): Remove.
3457 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3458
3459 * m/ibms390x.h (LINKER):
3460 * m/macppc.h (LINKER) [GNU_LINUX]:
3461 * s/aix4-2.h (ORDINARY_LINK):
3462 * s/cygwin.h (LINKER):
3463 * s/darwin.h (ORDINARY_LINK):
3464 * s/gnu.h (ORDINARY_LINK):
3465 * s/netbsd.h (LINKER):
3466 * s/usg5-4.h (ORDINARY_LINK):
3467 Move to configure.
3468
7f34aec3
GM
3469 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3470
754790b6
CY
34712010-05-18 Chong Yidong <cyd@stupidchicken.com>
3472
3473 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3474 prevent stack overflow if number of arguments is too large
3475 (Bug#6214).
3476
161e44d1
JB
34772010-05-18 Juanma Barranquero <lekktu@gmail.com>
3478
3479 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3480
be4ff9da
GM
34812010-05-18 Glenn Morris <rgm@gnu.org>
3482
9539dc5d
GM
3483 * s/gnu-linux.h: Combine two conditionals.
3484
3485 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3486 $(POST_ALLOC_OBJ).
3487
40dc6bf4
GM
3488 * Makefile.in (RALLOC_OBJ): New, set by configure.
3489 (rallocobj): Replace with the previous variable.
3490 (otherobj): Use $RALLOC_OBJ.
3491
3492 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3493 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3494
be4ff9da
GM
3495 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3496 (gmallocobj, vmlimitobj): Replace with previous two variables.
3497 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3498
16455a85
GM
34992010-05-17 Glenn Morris <rgm@gnu.org>
3500
3501 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3502 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3503
5fdb7468
GM
35042010-05-16 Glenn Morris <rgm@gnu.org>
3505
7ca1f3f9
GM
3506 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3507
7541dad5
GM
3508 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3509
da53fab9
GM
3510 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3511 trailing "/".
3512
b02a6645
GM
3513 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3514 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3515
8877ca0f
GM
3516 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3517 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3518 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3519 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3520 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3521
5fdb7468
GM
3522 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3523 Remove ${STARTFLAGS}, nothing ever sets it.
3524
95adb4b1
DN
35252010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3526
3527 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3528
676b6304
GM
35292010-05-16 Glenn Morris <rgm@gnu.org>
3530
9beab9ce
GM
3531 * Makefile.in (LIBX_BASE): Always define.
3532
8a95f0e7
GM
3533 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3534
676b6304
GM
3535 * Makefile.in (LIBXT): Always define.
3536
6e546d18
GM
35372010-05-15 Glenn Morris <rgm@gnu.org>
3538
4235ca47 3539 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3540
6e546d18
GM
3541 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3542 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3543
8c5ff6dd
KR
35442010-05-15 Ken Raeburn <raeburn@raeburn.org>
3545
560bb7ae 3546 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3547 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3548
8b4eb796
KR
3549 * emacs.c (main): Initialize initial-environment and
3550 process-environment before generating from env, not after.
3551
8c5ff6dd
KR
3552 Handle --version reasonably in CANNOT_DUMP configuration.
3553 * emacs.c (emacs_version, emacs_copyright): New string variables.
3554 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3555 (syms_of_emacs): Defvar them, and initialize them from the C
3556 string variables.
3557 (main): If initialization hasn't been done, print initial version
3558 info from the C strings, instead of starting an interactive session.
3559
dbd3f723
EZ
35602010-05-15 Eli Zaretskii <eliz@gnu.org>
3561
d20e1419
EZ
3562 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3563 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3564 (bidi_paragraph_init): Remove redundant assertion that we are at
3565 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3566
3567 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3568 (syms_of_xdisp): Defsubr it.
3569
d36fe237
EZ
3570 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3571
dbd3f723
EZ
3572 * Makefile.in: Fix MSDOS-related comments.
3573
02be533b
GM
35742010-05-15 Glenn Morris <rgm@gnu.org>
3575
1a82cca9
GM
3576 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3577 (really-lwlib, really-oldXMenu): Always define.
3578 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3579
3df7b338
GM
3580 * Makefile.in: Simplify cpp conditional.
3581
2b5f541b
GM
3582 * Makefile.in (${ns_appdir}): Simplify using umask.
3583
02be533b
GM
3584 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3585
4e2db1fe
SM
35862010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3587
3588 * eval.c (specbind): Remove left-over duplicate test.
3589 Disallow let-binding frame-local vars. Add comment.
3590
4b292a22
EZ
35912010-05-14 Eli Zaretskii <eliz@gnu.org>
3592
2fe72643 3593 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3594 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3595 (bidi_init_it): Call it.
3596 (bidi_cache_iterator_state): Enlarge the cache if needed.
3597
4e2db1fe 3598 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3599 bidi_get_next_char_visually. All callers changed.
3600
82ebc97b
KH
36012010-05-14 Kenichi Handa <handa@m17n.org>
3602
3603 * dispextern.h (struct composition_it): New member reversed_p.
3604
3605 * composite.c (composition_compute_stop_pos): Search backward if
3606 ENDPOS < CHARPOS.
3607 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3608 Set CMP_IT->reversed_p.
b4b6e17e 3609 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3610
4e2db1fe
SM
3611 * xdisp.c (set_iterator_to_next):
3612 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3613 scanning backward. Call composition_compute_stop_pos if scan
3614 direction is changed.
3615 (next_element_from_buffer): Call composition_compute_stop_pos with
3616 negative ENDPOS if we are scanning backward.
3617 (next_element_from_composition): Pay attention to
3618 IT->cmp_it.reversed_p.
3619
0e5d7800
KH
36202010-05-14 Kenichi Handa <handa@m17n.org>
3621
560bb7ae 3622 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3623
cb027b32
GM
36242010-05-14 Glenn Morris <rgm@gnu.org>
3625
177b0288
GM
3626 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3627
fbc00890
GM
3628 * Makefile.in (mktime, X11, register): Move undefs to configure.
3629
f14d1dfd
GM
3630 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3631 (MSDOS_X_OBJ): New variable.
3632 (MSDOS_SUPPORT_REAL): New constant.
3633 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3634 (obj): Use MSDOS_X_OBJ.
3635 (lisp): Use MSDOS_SUPPORT as a variable.
3636
11842bd8
GM
3637 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3638 (GPM_MOUSE_SUPPORT): Now it's a constant.
3639 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3640 not cpp.
3641
489d31a4 3642 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3643 (ns_appresdir): Remove, unused.
e20f1f07 3644
489d31a4
GM
3645 * Makefile.in (SHELL): Move outside cpp section.
3646
cb027b32
GM
3647 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3648
5a903aa9
GM
36492010-05-13 Glenn Morris <rgm@gnu.org>
3650
3369c79f
GM
3651 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3652 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3653
d5e982a6
GM
3654 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3655 HAVE_WINDOW_SYSTEM must be too.
3656
6192e163
GM
3657 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3658 (lisp): Remove WINNT_SUPPORT.
3659
472c5d6b
GM
3660 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3661 Let configure set these variables (to empty) in this case as well.
3662
0116466b
GM
3663 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3664 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3665
5a903aa9
GM
3666 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3667 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3668 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3669 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3670 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3671 the values output by configure.
5a903aa9
GM
3672 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3673
1a0d7c06
GM
36742010-05-12 Glenn Morris <rgm@gnu.org>
3675
b5457f14
GM
3676 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3677 (LINKER_WAS_SPECIFIED): Remove.
3678
1a0d7c06
GM
3679 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3680 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3681 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3682 * s/cygwin.h (LIB_GCC):
3683 * s/freebsd.h (LIB_GCC):
3684 * s/gnu-linux.h (LIB_GCC):
3685 * s/msdos.h (LIB_GCC):
3686 * s/netbsd.h (LIB_GCC):
3687 Move to configure.
3688
3ffd4615 36892010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3690
3691 * ftfont.c: Fix incorrect parentheses of #if condition for
3692 definining M17N_FLT_USE_NEW_FEATURE.
3693
acddf8ae
GM
36942010-05-11 Glenn Morris <rgm@gnu.org>
3695
3696 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3697 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3698
ae5e04fa
EZ
36992010-05-10 Eli Zaretskii <eliz@gnu.org>
3700
3701 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3702 unibyte buffers. See
3703 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3704
7490175b
GM
37052010-05-10 Glenn Morris <rgm@gnu.org>
3706
97efb629
GM
3707 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3708 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3709 (LIBES): Use LIBS_SYSTEM as a variable.
3710 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3711 * s/aix4-2.h (LIBS_SYSTEM):
3712 * s/freebsd.h (LIBS_SYSTEM):
3713 * s/hpux10-20.h (LIBS_SYSTEM):
3714 * s/sol2-6.h (LIBS_SYSTEM):
3715 * s/unixware.h (LIBS_SYSTEM):
3716 Move to configure.
3717
7490175b
GM
3718 * s/aix4-2.h (MAIL_USE_LOCKF):
3719 * s/bsd-common.h (MAIL_USE_FLOCK):
3720 * s/darwin.h (MAIL_USE_FLOCK):
3721 * s/gnu-linux.h (MAIL_USE_FLOCK):
3722 * s/irix6-5.h (MAIL_USE_FLOCK):
3723 * s/template.h (MAIL_USE_FLOCK):
3724 Move to configure.
3725
0235128c 37262010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3727
3728 * Version 23.2 released.
3729
0235128c 37302010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3731
3732 * composite.c (autocmp_chars): Save point as marker before calling
3733 auto-composition-function (Bug#5984).
3734
3735 * lisp.h (restore_point_unwind): Add prototype.
3736
3737 * fileio.c (restore_point_unwind): Remove static attribute.
3738
0235128c 37392010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3740
3741 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3742 new feature of libotf and m17n-flt.
0235128c
SM
3743 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3744 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3745 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3746 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3747 that OUT is NULL. Use OTF_drive_gsub_with_log and
3748 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3749 OTF_drive_gpos.
3750 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3751 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3752 Setup mflt_enable_new_feature and mflt_try_otf.
3753
4721152c
J
37542010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3755
3756 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3757
3758 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3759 box and toolbar (Bug #6139).
3760 (xg_create_tool_bar): Remove comment (Bug #6139).
3761 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3762 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3763
ee0a16cf
JB
37642010-05-08 Juanma Barranquero <lekktu@gmail.com>
3765
3766 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3767 Update dependencies.
3768
96d79611
EZ
37692010-05-08 Eli Zaretskii <eliz@gnu.org>
3770
3771 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3772 R2L lines.
3773
40c17879
GM
37742010-05-08 Glenn Morris <rgm@gnu.org>
3775
7b42b29f
GM
3776 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3777
40c17879
GM
3778 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3779 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3780 (termcapobj): Replace with TERMCAP_OBJ.
3781 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3782 (LIBES): Use LIBS_TERMCAP as a variable.
3783
3784 * s/freebsd.h (osreldate.h): No longer include, since this file
3785 does not use __FreeBSD_version any more.
3786
3787 * s/aix4-2.h (TERMINFO):
3788 * s/cygwin.h (TERMINFO):
3789 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3790 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3791 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3792 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3793 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3794 * s/irix6-5.h (TERMINFO):
3795 * s/netbsd.h (LIBS_TERMCAP):
3796 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3797 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3798 * s/usg5-4.h (TERMINFO):
3799 Move to configure.
3800
94b612ad
SM
38012010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3802
3803 * eval.c (unbind_to): Don't unbind a local binding into the global
3804 binding when the local binding disappeared. Inversely, don't unbind
3805 a global binding into a newly created local binding.
3806 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3807 can specify the frame to use, when applicable. Adjust callers.
3808
15e12598 38092010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3810 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3811
3812 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3813
f724825e
EZ
38142010-05-07 Eli Zaretskii <eliz@gnu.org>
3815
5cba3209
EZ
3816 * w32fns.c: Include w32.h.
3817 (Fw32_shell_execute): Decode the error message before passing it
3818 to `error'. (Bug#6126)
3819
d16bdfc3
EZ
3820 * msdos.c (dos_set_window_size):
3821 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3822 instead of `XSYMBOL (foo)->value'.
3823
59d93e87
EZ
38242010-05-07 Eli Zaretskii <eliz@gnu.org>
3825
9fdec8bc
EZ
3826 Fix the MS-DOS build, broken by autoconfiscation.
3827
3828 * Makefile.in: Don't use Make-style comments past the "start of
3829 cpp stuff" line.
3830 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3831
3832 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3833 edited directly by msdos/sed1v2.inp).
f724825e 3834
2f86b22b
GM
38352010-05-07 Glenn Morris <rgm@gnu.org>
3836
3837 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3838 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3839 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3840 move out of cpp section.
3841 * s/freebsd.h (LD_SWITCH_SYSTEM):
3842 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3843 * s/netbsd.h (LD_SWITCH_SYSTEM):
3844 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3845
49ebbd65
DN
38462010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3847
3848 Define LIB_STANDARD and START_FILES using autoconf.
3849 * s/usg5-4.h (LIB_STANDARD):
3850 * s/netbsd.h (START_FILES):
3851 * s/irix6-5.h (LIB_STANDARD):
3852 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3853 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3854 * s/freebsd.h (START_FILES):
3855 * s/darwin.h (START_FILES):
3856 * s/cygwin.h (START_FILES):
3857 * s/aix4-2.h (LIB_STANDARD):
3858 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3859 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3860 autoconf, not cpp.
3861
d43c06d6
DN
38622010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3863
28823648
DN
3864 Remove NEED_BSDTTY and NEED_UNISTD_H.
3865 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3866 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3867 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3868 <sys/ptyio.h> and <unistd.h>.
3869
aca00430
DN
3870 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3871
d43c06d6
DN
3872 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3873 * s/gnu.h (START_FILES): Remove empty definition.
3874
3e56b11d
JD
38752010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3876
3877 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3878
e3cf0cde
GM
38792010-05-06 Glenn Morris <rgm@gnu.org>
3880
3881 * Makefile.in (CPP, LN_S): Remove unused variables.
3882
774b9a60
SM
38832010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3884
3885 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3886
4ab92842
LM
38872010-05-05 Lawrence Mitchell <wence@gmx.li>
3888
3889 * m/sparc.h: Fix typo in earlier change.
3890
178f2507
SM
38912010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3892
3893 Misc tweaks.
3894 * eval.c (Fdefvaralias): Remove unintended nested if.
3895 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3896
80f00217 38972010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3898
3899 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3900
ef03a4e6
DN
39012010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3902
58eb6cf0
DN
3903 Remove BSD_PGRPS.
3904 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3905 * s/gnu-linux.h (BSD_PGRPS): Remove.
3906 * term.c (dissociate_if_controlling_tty):
3907 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3908 (init_sys_modes, reset_sys_modes):
3909 * emacs.c (main):
3910 * callproc.c (Fcall_process, child_setup): Remove code depending
3911 on BSD_PGRPS.
3912
ef03a4e6
DN
3913 Remove POSIX_SIGNALS.
3914 * s/usg5-4.h (POSIX_SIGNALS):
3915 * s/netbsd.h (POSIX_SIGNALS):
3916 * s/msdos.h (POSIX_SIGNALS):
3917 * s/ms-w32.h (POSIX_SIGNALS):
3918 * s/hpux11.h (POSIX_SIGNALS):
3919 * s/gnu.h (POSIX_SIGNALS):
3920 * s/gnu-linux.h (POSIX_SIGNALS):
3921 * s/freebsd.h (POSIX_SIGNALS):
3922 * s/darwin.h (POSIX_SIGNALS):
3923 * s/cygwin.h (POSIX_SIGNALS):
3924 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3925 * s/unixware.h:
3926 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3927 * process.c (create_process):
3928 * syssignal.h:
3929 * sysdep.c (wait_for_termination, init_signals):
3930 * process.c (create_process):
3931 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3932 remove all code that assumes the contrary.
3933
49628785
GM
39342010-05-04 Glenn Morris <rgm@gnu.org>
3935
27a2cdfc
GM
3936 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3937 variable.
3938 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3939 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3940 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3941 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3942 LD_SWITCH_SYSTEM_tmp.
3943 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3944 New variables, set by configure.
3945
eb21eab5
GM
3946 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3947 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3948 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3949 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3950 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3951
49628785
GM
3952 * s/aix4-2.h (C_SWITCH_SYSTEM):
3953 * m/alpha.h (C_SWITCH_MACHINE):
3954 Move to configure.in.
3955 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3956 New variables, set by configure.
3957 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3958 $c_switch_machine and $c_switch_system.
3959
7dff330b
DN
39602010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3961
3962 * s/hpux10-20.h (LIB_STANDARD): New definition.
3963 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3964 on it, not used anymore.
3965
53967e09
CY
39662010-05-03 Chong Yidong <cyd@stupidchicken.com>
3967
3968 * eval.c (internal_condition_case_n): Rename from
3969 internal_condition_case_2.
3970 (internal_condition_case_2): New function.
3971
3972 * xdisp.c (safe_call): Use internal_condition_case_n.
3973
3974 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3975 (internal_delete_file, Frename_file): Callers changed.
3976
3977 * buffer.c (Fkill_buffer):
3978 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
3979
3980 * lisp.h: Update prototypes.
3981
3dee6fdb
GM
39822010-05-03 Glenn Morris <rgm@gnu.org>
3983
3984 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
3985 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
3986 (LIBXT): Set with configure, not cpp.
3987 (LIBX): Remove.
3988 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
3989
a101e0fb
DN
39902010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
3991
3992 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
3993 The FreeBSD is not needed, the default works, Solaris version is
3994 not needed, and the remaining case is not supported by configure.
3995
f63d0028
JD
39962010-05-02 Jan Djärv <jan.h.d@swipnet.se>
3997
3998 * xsmfns.c (CHDIR_OPT): New define.
3999 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4000 restarting emacs.
4001
4002 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4003 shut_down_emacs.
4004
4005 * emacs.c (USAGE1): Mention --chdir.
4006 (main): Handle --chdir.
4007 (standard_args): Add --chdir.
4008 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4009 #5552).
4010
e4814a9f
DN
40112010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4012
cd03c74a
DN
4013 Remove LD_SWITCH_MACHINE.
4014 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4015 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4016
c3a398a1
DN
4017 Clean up IRIX code.
4018 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4019 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4020
87e7285c
DN
4021 Clean up AIX code.
4022 * m/ibmrs6000.inp: Remove file, unused.
4023 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4024 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4025 definition ...
4026 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4027
80f00217
JB
4028 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4029 unused.
e4814a9f 4030
59ca28de
EZ
40312010-05-01 Eli Zaretskii <eliz@gnu.org>
4032
197daef4
EZ
4033 Emulate POSIX_SIGNALS on MS-Windows.
4034
4035 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4036 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4037
4038 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4039 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4040 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4041
80f00217
JB
4042 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4043 New stubs.
197daef4 4044
af7c7572
EZ
4045 Miscellaneous fixes of bidi display.
4046
59ca28de
EZ
4047 * xdisp.c (find_row_end): New function, refactored from display_line.
4048 (display_line): Use it.
017ea819
EZ
4049 (extend_face_to_end_of_line): In almost-filled rows, extend only
4050 if the row is R2L and not continued.
166e930d 4051 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4052 Preserve overlay and string info in row->end.
166e930d
EZ
4053 (insert_left_trunc_glyphs): Support addition of left truncation
4054 glyphs to R2L rows.
b47e0dcf 4055 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4056 glyph between adjacent windows. Fix a crash when a display string
4057 is continued to the next line. Don't return zero if cursor was
4058 found by `cursor' property of a display string.
b47e0dcf
EZ
4059 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4060 test for that explicitly.
59ca28de 4061
7acac9f4
GM
40622010-05-01 Glenn Morris <rgm@gnu.org>
4063
4064 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4065 for clarity.
4066 (OTHER_OBJ): Remove.
4067 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4068 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4069
45841e65
KK
40702010-05-01 Karel Klíč <kklic@redhat.com>
4071
4072 * fileio.c (Ffile_selinux_context): Context functions may return null.
4073
afc61943
DN
40742010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4075
80f00217 4076 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4077
5a1bb006
GM
40782010-04-30 Glenn Morris <rgm@gnu.org>
4079
4080 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4081 (OTHER_OBJ): Define as a separate variable, for clarity.
4082
210af043
J
40832010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4084
4085 * xsettings.c: include limits.h and update file comment.
4086
0a7df391
GM
40872010-04-30 Glenn Morris <rgm@gnu.org>
4088
d5096f16
GM
4089 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4090 Set with configure, not cpp.
4091 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4092
7eb1ac33
GM
4093 * Makefile.in (mallocobj): Remove.
4094 (otherobj): Simplify using @OTHER_OBJ@.
4095
517d086b
GM
4096 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4097 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4098 Don't bother making nsgui.h dependency platform-specific.
4099
0a7df391
GM
4100 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4101
d6d23852
SM
41022010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4103
d2630aef
SM
4104 * process.c (read_process_output, exec_sentinel): Don't burp if the
4105 sentinel/filter kills the current buffer (bug#6060).
4106
f9dddf52 4107 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4108 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4109 Remove unused var `args'.
4110 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4111 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4112 * doc.c (store_function_docstring): Use XSETCAR.
4113
f1e3642a
GM
41142010-04-28 Glenn Morris <rgm@gnu.org>
4115
faf535f8
GM
4116 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4117 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4118
c40f9449
GM
4119 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4120
658f86ca
GM
4121 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4122 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4123
bc0b5f61
GM
4124 * Makefile.in (FONT_OBJ): New, set by configure.
4125 (FONT_DRIVERS): Use $FONT_OBJ.
4126
294c50a0
GM
4127 * Makefile.in (LIBXMU): Set with configure, not cpp.
4128 * s/aix4-2.h (LIBXMU):
4129 * s/hpux10-20.h (LIBXMU):
4130 Remove definition, now set in configure.
4131
e6ec4e99
GM
4132 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4133
f1e3642a
GM
4134 * m/amdx86-64.h [i386]: Move this test to configure.in.
4135
c6ea2936
GM
41362010-04-27 Glenn Morris <rgm@gnu.org>
4137
8fdac2c3
GM
4138 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4139 * s/unixware.h (NEED_LIBW): Remove definition.
4140
986fb647
GM
4141 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4142 (TOOLKIT_LIBW): New, set by configure.
4143 (@X_TOOLKIT_TYPE@): No longer define it.
4144
c6ea2936
GM
4145 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4146 (MOTIF_LIBW): Set with configure, not cpp.
4147 * s/aix4-2.h (LIB_MOTIF):
4148 * s/gnu-linux.h (LIB_MOTIF):
4149 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4150
aaa36002
DN
41512010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4152
4153 Reduce CPP usage.
4154 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4155 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4156 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4157 definitions and undefs. Inline definitions in the only user.
4158 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4159
b678dd8b
GM
41602010-04-27 Glenn Morris <rgm@gnu.org>
4161
76cda504
GM
4162 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4163 since the defaults (set by the system file) are fine in most cases.
4164 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4165 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4166 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4167 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4168 Remove definitions, since they are set correctly in s/gnu-linux.h.
4169 * s/freebsd.h (START_FILES, LIB_STANDARD):
4170 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4171 * s/hpux10-20.h (START_FILES):
4172 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4173 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4174
b678dd8b
GM
4175 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4176 (MOTIF_LIBW): Use $LIBXP.
4177 (otherobj): Use $WIDGET_OBJ.
4178
9452ded1
DN
41792010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4180
7e10844c
DN
4181 * Makefile.in (LIBS_MACHINE): Remove, unused.
4182
9452ded1
DN
4183 Use autoconf instead of cpp for LIB_MATH.
4184 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4185 * s/cygwin.h (LIB_MATH): Likewise.
4186 * Makefile.in (LIB_MATH): Do not define with cpp.
4187 (LIBES): Use autoconf for LIB_MATH.
4188
fcebfc6a
KH
41892010-04-26 Kenichi Handa <handa@m17n.org>
4190
4191 * composite.c (Ffind_composition_internal): Fix the return value
4192 for an automatic composition.
4193
39e2ad1b
DN
41942010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4195
4196 Remove all NO_ARG_ARRAY uses.
4197 * fns.c (concat2, concat3, nconc2):
4198 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4199 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4200 * m/xtensa.h (NO_ARG_ARRAY):
4201 * m/template.h (NO_ARG_ARRAY):
4202 * m/sparc.h (NO_ARG_ARRAY):
4203 * m/sh3.h (NO_ARG_ARRAY):
4204 * m/mips.h (NO_ARG_ARRAY):
4205 * m/macppc.h (NO_ARG_ARRAY):
4206 * m/iris4d.h (NO_ARG_ARRAY):
4207 * m/intel386.h (NO_ARG_ARRAY):
4208 * m/ibms390x.h (NO_ARG_ARRAY):
4209 * m/ibms390.h (NO_ARG_ARRAY):
4210 * m/ibmrs6000.h (NO_ARG_ARRAY):
4211 * m/ia64.h (NO_ARG_ARRAY):
4212 * m/hp800.h (NO_ARG_ARRAY):
4213 * m/arm.h (NO_ARG_ARRAY):
4214 * m/amdx86-64.h (NO_ARG_ARRAY):
4215 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4216
adf4f59c
EZ
42172010-04-25 Eli Zaretskii <eliz@gnu.org>
4218
6bdf5d65
EZ
4219 * xdisp.c (display_line): Don't assume 2nd call to
4220 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4221 (iterate_out_of_display_property): New function, body from pop_it.
4222 (pop_it): Use it.
adf4f59c 4223
dfbbda83
GM
42242010-04-24 Glenn Morris <rgm@gnu.org>
4225
4226 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4227 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4228 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4229 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4230
2d4018aa
EZ
42312010-04-24 Eli Zaretskii <eliz@gnu.org>
4232
a49884a6
EZ
4233 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4234 use `get_next_display_element' and `set_iterator_to_next' to
4235 advance to the next character, when looking for the character that
4236 begins the next row.
4237
76db6fcc 4238 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4239 definition of "struct Lisp_Symbol".
4240
70eab5c1
GM
42412010-04-24 Glenn Morris <rgm@gnu.org>
4242
4243 * Makefile.in (CRT_DIR): New variable, set by configure.
4244 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4245 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4246
1ad4cc3d
DN
42472010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4248
e769f484
DN
4249 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4250
4196ff33
DN
4251 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4252
879b0ee4
DN
4253 Remove redundant flags.
4254 * s/freebsd.h (C_SWITCH_SYSTEM):
4255 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4256 * s/netbsd.h (C_SWITCH_SYSTEM):
4257 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4258 of these.
4259
03cbbcb8
DN
4260 Simplify m/intel386.h.
4261 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4262 user: ecrt0.c.
4263 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4264 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4265 the only user: s/unixware.h.
4266 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4267 from m/intel386.h.
4268 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4269 moved here from m/intel386.h.
4270
1ad4cc3d
DN
4271 * m/mips.h: Remove #if 0 code.
4272
8785b888
EZ
42732010-04-23 Eli Zaretskii <eliz@gnu.org>
4274
728588cc
EZ
4275 Fix display of composed characters from L2R scripts in bidi buffers.
4276 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4277 After advancing IT past the composition, resync the bidi iterator
4278 with IT's position. (Bug#5977)
4279
a63f80b4
DN
42802010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4281
4282 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4283 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4284
ff5dec5c
SM
42852010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4286
4287 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4288
8785b888
EZ
42892010-04-23 Eli Zaretskii <eliz@gnu.org>
4290
58ccf243 4291 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4292 * xdisp.c (pop_it): When the stack is popped after displaying
4293 from a string, bidi-iterate to exit from the text portion covered
4294 by the `display' property or overlay. (Bug#5988, bug#5920)
4295
feeb1604
DN
42962010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4297
8e324eb6
DN
4298 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4299 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4300
809fcaba
DN
4301 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4302 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4303
ed710380
DN
4304 Simplify STARTFILES definition.
4305 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4306 relying on Makefile.in to define it.
4307 * s/cygwin.h (START_FILES): Likewise.
4308 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4309
feeb1604
DN
4310 Clean up Solaris code.
4311 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4312 (LIB_MOTIF): Remove, configure takes care of this.
4313 (NOT_USING_MOTIF): Remove, unused.
4314 * xrdb.c: Remove #if 0-ed #include.
4315 (SYSV): Remove conditional for old SysV.
4316 * sysdep.c (closedir): Remove conditional code for Solaris,
4317 Solaris has closedir.
4318
a0d0b563
JD
43192010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4320
4321 * xsettings.c (read_and_apply_settings): Check if current_font is
4322 NULL before strcmp (Bug#6001).
4323
56bae7c7
DN
43242010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4325
4326 Clean up HP-UX files.
4327 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4328 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4329 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4330 * s/hpux10-20.h: ... to the only user, here.
4331
372b7a95
EZ
43322010-04-21 Eli Zaretskii <eliz@gnu.org>
4333
4334 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4335 use buffer-local values of paragraph-start and paragraph-separate.
4336 <paragraph_start_re, paragraph_separate_re>: Rename from
4337 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4338 (Bug#5992)
4339
f904c0f9
JD
43402010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4341
4342 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4343 current_tool_bar_style are new.
4344 (store_config_changed_event): Rename from store_font_changed_event.
4345 (XSETTINGS_TOOL_BAR_STYLE): New define.
4346 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4347 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4348 HAVE_XFT.
4349 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4350 store_config_changed_event.
f904c0f9
JD
4351 (parse_settings): Rename from parse_xft_settings. Read
4352 non-xft xsettings outside #ifdef HAVE_XFT.
4353 (read_settings): Renamed from read_xft_settings.
4354 (apply_xft_settings): Take current settings as parameter. Do not
4355 call read_(xft)_settings.
4356 (read_and_apply_settings): New function.
4357 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4358 read_and_apply_settings if there are settings to be read.
4359 (init_xsettings): Renamed from init_xfd_settings.
4360 Call read_and_apply_settings unconditionally.
4361 (xsettings_initialize): Call init_xsettings.
4362 (Ftool_bar_get_system_style): New function.
4363 (syms_of_xsettings): Define Qmonospace_font_name and
4364 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4365 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4366 dynamic-setting.
31a01b90 4367 Move misplaced HAVE_GCONF
f904c0f9
JD
4368
4369 * xsettings.h (Ftool_bar_get_system_style): Declare.
4370
4371 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4372 Qtext, Qboth, Qboth_horiz are new.
4373 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4374 Vtool_bar_style, tool_bar_max_label_size.
4375
4376 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4377
4378 * keyboard.c: QClabel is new.
4379 (parse_tool_bar_item): Take out QClabel from tool bar items.
4380 Try to construct a label if ther is no QClabel.
4381 (syms_of_keyboard): Intern :label as QClabel.
4382
4383 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4384 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4385 New.
4386
4387 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4388 dynamic-setting.el.
4389
4390 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4391 (xg_make_tool_item, xg_show_toolbar_item): New function.
4392 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4393 Call xg_make_tool_item to make a tool bar item.
4394 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4395
4396 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4397 into account for toolbars.
4398
c632dfda
JD
43992010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4400
4401 * data.c (make_blv): Declarations before code (Bug#5993).
4402
10efe302
GM
44032010-04-21 Glenn Morris <rgm@gnu.org>
4404
4405 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4406 Define using autoconf, not cpp.
4407 (LIBXSM): New variable, set by autoconf.
4408 (LIBXT): Use $LIBXSM.
4409
4285ac5a
DN
44102010-04-21 Dan Nicolaescu <local_user@dannlt>
4411
3ec759e7
DN
4412 Remove NOMULTIPLEJOBS, unused.
4413 * s/template.h (NOMULTIPLEJOBS):
4414 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4415
4285ac5a
DN
4416 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4417 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4418 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4419 detects -znocombreloc and passes it to the linker
4420 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4421
2807228d
GM
44222010-04-21 Glenn Morris <rgm@gnu.org>
4423
4424 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4425
574c05e2
KK
44262010-04-21 Karel Klíč <kklic@redhat.com>
4427
4428 * Makefile.in (LIBSELINUX_LIBS): New.
4429 (LIBES): Add $LIBSELINUX_LIBS.
4430 * eval.c, lisp.h (call7): New function.
4431 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4432 (Ffile_selinux_context, Fset_file_selinux_context):
4433 New functions.
4434 (Fcopy_file): New parameter preserve-selinux-context.
4435 (Frename_file): Preserve selinux context when renaming by copy-file.
4436
91eac4bb 44372010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4438 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4439
50426a04
JB
4440 Don't depend on cm.c or termcap.c on Windows, use stubs.
4441 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4442 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4443 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4444 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4445 (sys_tputs, sys_tgetstr): New stubs.
4446 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4447 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4448
938efb77
JB
44492010-04-20 Juanma Barranquero <lekktu@gmail.com>
4450
4451 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4452
b4bf28b7
SM
44532010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4454
8b1e1112
SM
4455 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4456 Just signal a warning rather than an error when inside a let.
4457 (Fmake_variable_frame_local): Add the same test.
4458
933ac235
SM
4459 * font.c (syms_of_font): Make the style table vars read-only.
4460
b4bf28b7
SM
4461 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4462 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4463
4464 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4465
93d68d0c
EZ
44662010-04-20 Eli Zaretskii <eliz@gnu.org>
4467
4468 Fix R2L paragraph display on TTY.
4469
4470 * xdisp.c (unproduce_glyphs): New function.
4471 (display_line): Use it when produced glyphs are discarded from R2L
4472 glyph rows.
4473 (append_composite_glyph): In R2L rows, prepend the glyph rather
4474 than appending it.
4475
4476 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4477 rather than append it. Set up the resolved_level and bidi_type
4478 attributes of the appended glyph.
283ccc18
EZ
4479 (produce_special_glyphs): Mirror the backslash continuation
4480 character in R2L lines.
93d68d0c 4481
283ccc18 4482 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4483
283ccc18
EZ
4484 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4485 append_stretch_glyph.
4486 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4487 off-by-one error in computing x at end of text in the row.
4488 (append_stretch_glyph): In reversed row, prepend the glyph rather
4489 than append it. Set resolved_level and bidi_type of the glyph.
4490 (extend_face_to_end_of_line): If the row is reversed, prepend a
4491 stretch glyph whose width is such that the rightmost glyph will be
4492 drawn at the right margin of the window. Fix off-by-one error on
4493 TTY frames in testing whether a line needs face extension. Fix
4494 face extension at ZV. If this is the last glyph row, use
4495 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4496 region face.
4497 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4498 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4499 row->continuation_lines_width.
283ccc18
EZ
4500 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4501 are at ZV. Fixes a crash when reseated to ZV by
4502 try_window_reusing_current_matrix.
45903529
EZ
4503 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4504 which happens with R2L glyph rows. Fixes a crash when inserting a
4505 character at end of an R2L line.
283ccc18
EZ
4506 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4507 treat them as having zero-width characters. Improve comments.
4508 Don't reverse pos_before and pos_after for reversed glyph rows.
4509 Set cursor.x to negative value when the cursor might be on the
4510 left fringe.
4511 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4512 left fringe, not the right one.
f951a506
EZ
4513 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4514 (erase_phys_cursor): For reversed cursor_row, support cursor on
4515 the left fringe.
4516
283ccc18
EZ
4517 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4518 of continuation indicators on the fringes.
4519 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4520 left fringe.
4521
f951a506
EZ
4522 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4523 draw cursor on the left fringe.
4524
4525 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4526 cursor on the left fringe.
4527
f951a506
EZ
4528 * dispnew.c (update_text_area): Handle reversed desired rows when
4529 the cursor is on the left fringe.
4530 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4531 below, not by 0, for when the cursor is on the left fringe.
4532
3bb49aaf
JD
45332010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4534
4535 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4536 widget is a scrollbar.
4537
c0be27fd
KH
45382010-04-20 Kenichi Handa <handa@m17n.org>
4539
4540 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4541 only when the arg CHARSET_LIST is nil.
4542
ce5b453a
SM
45432010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4544
4545 Make variable forwarding explicit rather the using special values.
4546 Basically, this makes the structure of buffer-local values and object
4547 forwarding explicit in the type of Lisp_Symbols rather than use
4548 special Lisp_Objects for that. This tends to lead to slightly more
4549 verbose code, but is more C-like, simpler, and makes it easier to make
4550 sure we handled all cases, among other things by letting the compiler
4551 help us check it.
4552 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4553 Removing forwarding objects.
4554 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4555 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4556 explicit rather than hiding them inside Lisp_Object "values".
4557 (XFWDTYPE): New macro.
4558 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4559 (XBUFFER_LOCAL_VALUE): Remove.
4560 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4561 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4562 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4563 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4564 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4565 Remove the Lisp_Misc_* header.
4566 (struct Lisp_Buffer_Local_Value): Redefine.
4567 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4568 (struct Lisp_Misc_Any): Add filler to get the right size.
4569 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4570 Lisp_Intfwd.
4571 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4572 (DEFVAR_KBOARD): Allocate a forwarding object.
4573 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4574 (let_shadows_global_binding_p): New function.
4575 (union Lisp_Val_Fwd): New type.
4576 (make_blv): New function.
4577 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4578 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4579 (swap_in_symval_forwarding, find_symbol_value, Fset)
4580 (let_shadows_buffer_binding_p, set_internal, default_value)
4581 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4582 (Fkill_local_variable, Fmake_variable_frame_local)
4583 (Flocal_variable_p, Flocal_variable_if_set_p)
4584 (Fvariable_binding_locus):
4585 * xdisp.c (select_frame_for_redisplay):
4586 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4587 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4588 * frame.c (store_frame_param):
4589 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4590 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4591 value structure.
4592 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4593 (clone_per_buffer_values): Only adjust markers into the current buffer.
4594 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4595 (Fbuffer_local_value, set_buffer_internal_1)
4596 (swap_out_buffer_local_variables):
4597 Adapt to the new symbol value structure.
4598 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4599 (defvar_per_buffer): Take a new arg for the fwd object.
4600 (buffer_lisp_local_variables): Return a proper alist (different fix
4601 for bug#4138).
4602 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4603 (Fgarbage_collect): Don't handle buffer_defaults specially.
4604 (mark_object): Handle new symbol value structure rather than the old
4605 special Lisp_Misc_* objects.
4606 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4607 * term.c (set_tty_color_mode):
4608 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4609 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4610 a buffer_local_flags.
4611 * print.c (print_object): Get rid of impossible forwarding objects.
4612
fd3998ff
EZ
46132010-04-19 Eli Zaretskii <eliz@gnu.org>
4614
4615 * bidi.c (bidi_get_type, bidi_get_category)
4616 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4617 (bidi_type_of_next_char, bidi_level_of_next_char):
4618 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4619
e42cd1a7
JB
46202010-04-19 Juanma Barranquero <lekktu@gmail.com>
4621
4622 * dired.c (Ffile_attributes): Fix typo in docstring.
4623
6e104790 46242010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4625
4626 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4627 NSInteger (Bug#5811).
4628
6e104790 46292010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4630
4631 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4632 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4633
6e104790 46342010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4635
4636 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4637
6e104790
SM
46382010-04-19 Chong Yidong <cyd@stupidchicken.com>
4639
4640 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4641 terminal frames (Bug#5837).
4642
37dcfea0
EZ
46432010-04-19 Eli Zaretskii <eliz@gnu.org>
4644
d1da276f
EZ
4645 * .gdbinit (xsubchartable): New command.
4646
37dcfea0
EZ
46472010-04-19 Eli Zaretskii <eliz@gnu.org>
4648
4649 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4650 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4651 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4652 and
4653 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4654
e9515805
SM
46552010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4656
4657 * alloc.c (Fpurecopy): Hash-cons if requested.
4658 (syms_of_alloc): Update purify-flag docstring.
4659
22aa44a8
JD
46602010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4661
4662 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4663 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4664
ebb5722e
EZ
46652010-04-17 Eli Zaretskii <eliz@gnu.org>
4666
4667 Fix a crash when an NSM character is inserted at BEGV.
4668
4669 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4670 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4671 NEUTRAL_B or UNKNOWN_BT.
4672
0f4442ef
EZ
46732010-04-16 Eli Zaretskii <eliz@gnu.org>
4674
4675 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4676 other rows with cursor unless they are different from this row and
4677 this row is part of a continued line. (Bug#5943)
4678
7d4e45f8
DN
46792010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4680
4681 * s/freebsd.h: Restore osreldate.h include.
4682 Suggested by Naohiro Aota.
4683
5ba5ec85
J
46842010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4685
4686 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4687
20af301d
CY
46882010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4689
4690 * s/cygwin.h: Avoid linking against static libgcc.
4691
a4b000fb
JL
46922010-04-15 Juri Linkov <juri@jurta.org>
4693
4694 * window.c: Add Qscroll_command.
4695 Remove Vscroll_preserve_screen_position_commands.
4696 (window_scroll_pixel_based, window_scroll_line_based): Check the
4697 `scroll-command' property on the last command instead of searching
4698 the last command in Vscroll_preserve_screen_position_commands.
4699 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4700 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4701 (scroll-preserve-screen-position): Doc fix.
4702 (Vscroll_preserve_screen_position_commands): Remove variable.
4703
bc319ba4
DN
47042010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4705
6bb24457
DN
4706 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4707
19d4c244
DN
47082010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4709
4710 Reduce cpp use in Makefile.in.
4711 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4712 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4713 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4714 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4715 (CRT0_COMPILE): Remove, inline it in the only user.
4716
32129746
JL
47172010-04-14 Juri Linkov <juri@jurta.org>
4718
4719 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4720 `scroll-up-command' and `M-v' from `scroll-down' to
4721 `scroll-down-command'.
4722
9013a7f8
JL
47232010-04-14 Juri Linkov <juri@jurta.org>
4724
4725 * window.c (Vscroll_preserve_screen_position_commands): New variable
4726 with the default value as the list of Qscroll_down and Qscroll_up.
4727 (window_scroll_pixel_based, window_scroll_line_based): Search the
4728 last command in the list Vscroll_preserve_screen_position_commands
4729 instead of comparing with Qscroll_up and Qscroll_down.
4730
4bef8d26
JD
47312010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4732
92848133
JD
4733 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4734 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4735 does that.
4736
4bef8d26
JD
4737 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4738 to zero.
4739
58b963f7
SM
47402010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4741
84164a0d
SM
4742 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4743
2b0a91e7
SM
4744 Try to solve the problem of spurious EOF chars in long lines of text
4745 sent to interactive subprocesses.
4746 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4747 (system_process_attributes): Remove unused var `ttotal'.
4748 * process.c (send_process): Don't bother breaking long line with EOF
4749 chars when talking to ttys any more.
4750 (wait_reading_process_output): Output a warning when called in such
4751 a way that it could block without being interruptible.
4752
58b963f7
SM
4753 Try to detect file modification within the same second.
4754 * buffer.h (struct buffer): New field modtime_size.
4755 * buffer.c (reset_buffer): Initialize it.
4756 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4757 (Fverify_visited_file_modtime): Check it.
4758 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4759 (Fset_visited_file_modtime): Set (or clear) it.
4760
01f5787b
SM
47612010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4762
4763 * process.c (status_notify): Remove unused var `ro'.
4764
83725342
JD
47652010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4766
4767 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4768 more than one visual (Bug#5938).
4769
b9465836
DN
47702010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4771
50426a04
JB
4772 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4773 Undefine.
b9465836 4774
8d9c8ece
DN
47752010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4776
b1f52161
DN
4777 Remove C_SWITCH_SYSTEM_TEMACS.
4778 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4779 (malloc, realloc, free): Use emacs, not temacs for conditional
4780 definition.
4781
4782 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4783 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4784
8d9c8ece
DN
4785 Use autoconf, not cpp for some variables.
4786 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4787 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4788 (ALL_CFLAGS): Use them as make variables.
4789 (really-lwlib, really-oldXMenu): Do not pass them.
4790
1ecb2d3f
JD
47912010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4792
4793 * xmenu.c (apply_systemfont_to_dialog): New.
4794 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4795
3a4fa2f2
SM
47962010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4797
97e53006
SM
4798 * process.c (exec_sentinel): Preserve current-buffer.
4799
3a4fa2f2
SM
4800 * process.c (read_process_output): Move the save-current-buffer to
4801 apply to both the filter and the non-filter branches.
4802
88df7221
DN
48032010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4804
4805 * s/msdos.h (UNEXEC): New definition.
4806
5634ff85
YM
48072010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4808
6eff5c3d
YM
4809 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4810 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4811
4812 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4813 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4814 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4815 TRY_WINDOW_CHECK_MARGINS.
4816
4817 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4818 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4819 width only when it is for padding.
5634ff85 4820
b13aef54
J
48212010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4822
4823 * xfns.c (Fx_show_tip): Call try_window in a loop until
4824 fonts_changed_p is zero (Bug#2423).
4825
21d28484
EZ
48262010-04-08 Eli Zaretskii <eliz@gnu.org>
4827
4828 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4829 the end of TEXT_AREA. (Bug#5856)
4830
0269ef77
JD
48312010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4832
4833 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4834 HAVE_GCONF.
4835
5930fe97
EZ
48362010-04-08 Eli Zaretskii <eliz@gnu.org>
4837
4838 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4839 prev.orig_type, for resolving type of NSM. (Bug#5858)
4840
99852628
JD
48412010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4842
4843 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4844 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4845 in current_font.
4846 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4847 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4848 New functions.
4849 (syms_of_xsettings): Initialize current_font.
4850 defsubr Sfont_get_system_normal_font.
99852628 4851
686b968e
JB
4852 * xsettings.h (Ffont_get_system_normal_font)
4853 (xsettings_get_system_normal_font): Declare.
99852628
JD
4854
4855 * xfns.c (extern xlwmenu_default_font): Remove.
4856 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4857 to xlwmenu.c.
4858
4859 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4860 menu items in UTF-8.
4861
4862 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4863 (apply_systemfont_to_menu): New function.
4864 (set_frame_menubar, create_and_show_popup_menu): Call
4865 apply_systemfont_to_menu.
4866
7fc874c4
J
48672010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4868
4869 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4870 FRAME_LINE_TO_PIXEL_Y.
4871
4872 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4873 pixelwidth/height.
4874
863bf481
DN
48752010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4876
5e5a3b92
DN
4877 Simplify code for HP machines.
4878 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4879 for GNU_LINUX, not needed.
4880 (UNEXEC, NEED_BSDTTY): Move definitions...
4881 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4882
863bf481
DN
4883 * m/iris4d.h (UNEXEC): Move definition ...
4884 * s/irix6-5.h (UNEXEC): ... here.
4885
3e6bec3b
JD
48862010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4887
4888 * xfns.c (set_machine_and_pid_properties): New function.
4889 (Fx_create_frame): Call set_machine_and_pid_properties.
4890
2912322b
SM
48912010-04-03 Eli Zaretskii <eliz@gnu.org>
4892
1502b819
EZ
4893 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4894 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4895 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4896
2912322b
SM
4897 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4898 in this function. (Bug#5703)
4899
49002010-04-03 Chong Yidong <cyd@stupidchicken.com>
4901
4902 * nsterm.h: Fix last change.
4903
c435b432
DN
49042010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4905
a568f507
DN
4906 * m/intel386.h (NO_REMAP): Move definition ...
4907 * s/msdos.h (NO_REMAP): ... here.
4908
4cd9f6c2
DN
4909 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4910
c435b432
DN
4911 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4912 used on those platforms.
4913
42a2c622
DN
49142010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4915
4916 Remove extern errno declarations.
4917 * xterm.c:
4918 * xrdb.c:
4919 * w32term.c:
4920 * unexec.c:
4921 * unexaix.c:
4922 * sysdep.c:
4923 * process.c:
4924 * lread.c:
4925 * keyboard.c:
4926 * floatfns.c:
4927 * filelock.c:
4928 * fileio.c:
4929 * emacs.c (main):
4930 * ecrt0.c:
4931 * dispnew.c:
4932 * callproc.c:
4933 * buffer.c: Remove errno extern declarations.
4934 * s/netbsd.h (NEED_ERRNO): Remove.
4935
8224f93d
DN
49362010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4937
4938 Remove all uses of LIBX11_SYSTEM.
4939 * Makefile.in (LIBX11_SYSTEM): Remove.
4940 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4941 instead.
4942
814062c7
EZ
49432010-04-01 Eli Zaretskii <eliz@gnu.org>
4944
ed68db4d
EZ
4945 Remove support for DJGPP v1.x (bug#5813).
4946
4947 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4948 * s/msdos.h:
4949 * unexec.c (make_hdr, copy_text_and_data):
4950 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4951 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4952 (IT_set_terminal_modes, __write, _rename, gethostname)
4953 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4954 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4955 the value of __DJGPP__.
ed68db4d
EZ
4956 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4957 compatibility code.
8224f93d
DN
4958 * lread.c:
4959 * gmalloc.c (memalign):
4960 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4961 * emacs.c (main):
4962 * dosfns.c (init_dosfns):
ed68db4d
EZ
4963 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4964
52f4d8d5
EZ
49652010-04-01 Eli Zaretskii <eliz@gnu.org>
4966
814062c7
EZ
4967 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4968 string with `cursor' property comes from an `after-string'
4969 overlay. (Bug#5816)
4970
0dc2e11d
GM
49712010-04-01 Glenn Morris <rgm@gnu.org>
4972
4973 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4974 Define as Makefile variables.
4975 (LIBX): Use above variables rather than directly using autoconf.
4976
1d29df59
DN
49772010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
4978
4979 Clean up BSD_SYSTEM use.
4980 * xterm.c:
4981 * process.c:
4982 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
4983 for including <sys/ioctl.h>.
4984 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
4985 code is only used for MSDOS.
4986
1546c559
JL
49872010-03-31 Juri Linkov <juri@jurta.org>
4988
4989 * image.c: Add `Qextension_data'.
4990 (syms_of_image): Initialize and staticpro `Qextension_data'.
4991 (Fimage_metadata): Rename from `Fimage_extension_data'.
4992 (gif_load): Put GIF extension data to the property
4993 `Qextension_data'.
4994
6521c534
CY
49952010-03-31 Chong Yidong <cyd@stupidchicken.com>
4996
4997 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
4998 * nsterm.h: Fix prototype.
4999
52c30783
EZ
50002010-03-31 Eli Zaretskii <eliz@gnu.org>
5001
5002 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5003 trailing whitespace in right-to-left rows.
5004
855a0da7
SM
50052010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5006
5007 Get rid of the direct_output optimizations.
5008 * keyboard.c (nonundocount): Remove extern declaration.
5009 (command_loop_1): Remove brittle optimisation for cheap and
5010 common operations.
5011 * xdisp.c (redisplay_internal): Don't bother checking
5012 redisplay_performed_directly_p any more.
5013 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5014 any more.
5015 * dispnew.c (redisplay_performed_directly_p)
5016 (direct_output_for_insert, direct_output_forward_char):
5017 * dispextern.h (redisplay_performed_directly_p)
5018 (direct_output_for_insert, direct_output_forward_char): Remove.
5019 * cmds.c (nonundocount): Make it static.
5020
85738751 50212010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5022
5023 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5024
85738751 50252010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5026
5027 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5028 invisible (Bug#5766).
5029
85738751 50302010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5031
855a0da7
SM
5032 * xdisp.c (x_consider_frame_title, update_window_cursor):
5033 Remove HAVE_NS conditionals.
194d44e7 5034 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5035
5036 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5037 filename for the title.
5038 (ns_set_doc_edited): Do nothing if the selected window is a
5039 minibuffer window.
5040
5041 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5042 ns_set_doc_edited.
5043
5044 * nsterm.m: Remove unneeded prototype.
5045
85738751 50462010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5047
5048 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5049 in the DOC file. (Bug#5336)
5050
85738751 50512010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5052
5053 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5054
75d1428c
SM
50552010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5056
5057 * window.c (keys_of_window): Remove redundant/overridden bindings.
5058
82043cfb
EZ
50592010-03-30 Eli Zaretskii <eliz@gnu.org>
5060
5061 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5062 Restore original behavior when the iterator is not bidi_p.
5063
b5dd0ae7
DN
50642010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5065
5066 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5067
bd924a5d
EZ
50682010-03-30 Eli Zaretskii <eliz@gnu.org>
5069
5070 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5071 are outside the range of cached character positions.
5072
3580374b
JB
50732010-03-30 Juanma Barranquero <lekktu@gmail.com>
5074
5075 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5076
a7b02820
EZ
50772010-03-30 Eli Zaretskii <eliz@gnu.org>
5078
5079 Initial support for bidirectional editing.
5080
5081 * Makefile.in (obj): Include bidi.o.
5082 (bidi.o): New target.
5083
5084 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5085 ($(BLD)/bidi.$(O)): New target.
5086
5087 * bidi.c: New file.
5088
5089 * buffer.h (struct buffer): New members bidi_display_reordering
5090 and bidi_paragraph_direction.
5091
5092 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5093 and bidi_paragraph_direction.
5094 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5095 and bidi-paragraph-direction.
5096 (Fbuffer_swap_text): Swap the values of
5097 bidi_display_reordering and bidi_paragraph_direction.
5098
5099 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5100 (bidi_type_t, bidi_dir_t): New types.
5101 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5102 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5103 prev_stop, base_level_stop, and eol_pos.
5104 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5105 (IT_STACK_SIZE): Enlarge to 5.
5106 (struct glyph_row): New member reversed_p.
5107 <string_buffer_position>: Update prototype.
5108 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5109 glyph_row if bidi_it.paragraph_dir == R2L.
5110 (struct glyph): New members resolved_level and bidi_type.
5111
5112 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5113 processing or buffer's direction is right-to-left.
5114 (prepare_desired_row): Preserve the reversed_p flag.
5115 (row_equal_p): Compare the reversed_p attributes as well.
5116
5117 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5118 bidi_init_it and set it->paragraph_embedding from the current
5119 buffer's value of bidi_paragraph_direction.
5120 (reseat_1): Initialize bidi_it.first_elt.
5121 (set_iterator_to_next, next_element_from_buffer): Use the value of
5122 paragraph_embedding to determine the paragraph direction.
5123 (set_iterator_to_next): Under bidi reordering, call
5124 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5125 new_paragraph flag is set in the bidi iterator.
5126 (next_element_from_buffer): If bidi_it.first_elt is set,
5127 initialize paragraph direction and find the first character to
5128 display in the visual order. If reseated to a middle of a line,
5129 prime the bidi iterator starting at the line's beginning. Handle
5130 the situation where we overstepped stop_charpos due to
5131 non-linearity of the bidi iteration. Likewise for when we back up
5132 beyond the previous stop_charpos. When moving across stop_charpos,
5133 record it in prev_stop.
5134 (display_line): Set row->end and it->start for the next row to the
5135 next character in logical order. Always extend reversed_p rows to
5136 the end of line, even if they end at ZV. Copy the reversed_p flag
5137 to the next glyph row. Keep calling set_cursor_from_row for
5138 bidi-reordered rows even if we already have a possible candidate
5139 for cursor position. Set row_end after all the row's glyphs have
5140 been produced, by looping over the glyphs. Record the position
5141 after EOL in it->eol_pos, and use it to set end_pos of the last
5142 row produced for a continued line.
5143 <Qright_to_left, Qleft_to_right>: New variables.
5144 (syms_of_xdisp): Initialize and staticpro them.
5145 (string_buffer_position_lim): New function.
5146 (string_buffer_position): Most of code moved to
5147 string_buffer_position_lim. Last argument and return value are
5148 now EMACS_INT; all callers changed.
5149 (set_cursor_from_row): Rewritten to support bidirectional text and
5150 reversed glyph rows.
5151 (text_outside_line_unchanged_p, try_window_id): Disable
5152 optimizations if we are reordering bidirectional text and the
5153 paragraph direction can be affected by the change.
5154 (append_glyph, append_composite_glyph)
5155 (produce_image_glyph, append_stretch_glyph): Set the
5156 resolved_level and bidi_type members of each glyph.
5157 (append_glyph): If the glyph row is reversed, prepend the glyph
5158 rather than appending it.
5159 (handle_stop_backwards): New function.
5160 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5161 (reseat): call handle_stop_backwards to recompute prev_stop and
5162 base_level_stop for the new position.
5163 (handle_invisible_prop): Under bidi iteration, skip invisible text
5164 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5165 paragraph direction. Update IT->prev_stop after skipping
5166 invisible text.
5167 (move_it_in_display_line_to): New variables prev_method
5168 and prev_pos. Compare for strict equality in
5169 BUFFER_POS_REACHED_P.
5170 (try_cursor_movement): Examine all the candidate rows that occlude
5171 point, to return the best match. If rows are bidi-reordered
5172 and point moved backwards, back up to the row that is not a
5173 continuation line, and start looking for a suitable row from
5174 there.
5175
5176 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5177 rather than appending, if the glyph_row's reversed_p flag is set.
5178 Set the resolved_level and bidi_type members of each glyph.
5179
5180 * .gdbinit (pbiditype): New command.
5181 (pgx): Use it to display bidi level and type of the glyph.
5182 (pitx): Display some bidi information about the iterator.
5183 (prowlims, pmtxrows): New commands.
5184
32a8894e
DN
51852010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5186
5187 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5188 * s/usg5-4.h (LIBS_DEBUG):
5189 * s/irix6-5.h (C_DEBUG_SWITCH):
5190 * s/gnu-linux.h (LIBS_DEBUG):
5191 * s/darwin.h (LIBS_DEBUG):
5192 * s/bsd-common.h (LIBS_DEBUG):
5193 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5194 * m/iris4d.h (LIBS_DEBUG):
5195 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5196
5197 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5198 (LIBS_DEBUG): Remove definition.
5199
649dbf36
CY
52002010-03-27 Chong Yidong <cyd@stupidchicken.com>
5201
5202 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5203 Windows.
5204
cad4261f
YM
52052010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5206
5207 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5208 `connect' (Bug#5723).
5209
cd591dbc
HE
52102010-03-25 Helmut Eller <eller.helmut@gmail.com>
5211
5212 * process.c (Fmake_network_process): Call `select' for interrupted
5213 `connect' rather than creating new socket (Bug#5173).
5214
e867cb5d 52152010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5216
5217 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5218
5219 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5220
5221 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5222
e867cb5d 52232010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5224
5225 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5226 XLoadQueryFont.
5227
e867cb5d 52282010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5229
5230 * coding.c (decode_coding_ccl): Fix previous change for the
5231 multibyte case.
fb608df3
KH
5232 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5233 case that the output buffer is fullfilled.
5234 (encode_coding): Setup ccl program here.
fbdc1721 5235
5845f0ed
DN
52362010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5237
814fb708
DN
5238 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5239
5845f0ed
DN
5240 Simplify LIBS_MACHINE definitions.
5241 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5242 * m/iris4d.h (LIBS_MACHINE): Likewise.
5243 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5244 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5245 * s/netbsd.h: Remove commented out code.
5845f0ed 5246
b7064064
DN
52472010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5248
df7734b2
DN
5249 Remove dead code dealing with POSIX_SIGNALS.
5250 * atimer.c (set_alarm): Remove dead code, all USG systems define
5251 POSIX_SIGNALS.
5252 * data.c (arith_error): Likewise.
5253 * keyboard.c (input_available_signal, handle_user_signal)
5254 (interrupt_signal): Likewise.
5255 * process.c (sigchld_handler): Likewise.
5256 (create_process): Remove if 0 code. Remove HPUX conditional when
5257 !defined (POSIX_SIGNALS), it cannot be true.
5258 * syssignal.h: Remove USG5_4 and USG conditionals when
5259 !POSIX_SIGNALS, they cannot be true.
5260
b7064064
DN
5261 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5262 NO_SOCK_SIGIO, not used anymore.
5263
55da5ee3
DN
52642010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5265
0be96e3a
DN
5266 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5267 support vax on BSDs.
5268
55da5ee3
DN
5269 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5270 * s/aix4-2.h (ORDINARY_LINK): ... here.
5271
c0282183
AS
52722010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5273
82c3d67a
AS
5274 * Makefile.in (abs_builddir): Define.
5275 (bootstrap_exe): Use it.
5276 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5277
3613edce
SM
52782010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5279
5280 * Makefile.in (bootstrap_exe): Use an absolute name.
5281
7f110ddc
DN
52822010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5283
22e87574
DN
5284 Remove support for old GNU/Linux using libc version 5.
5285 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5286 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5287
05a670e6
DN
5288 Consolidate redundant definitions in s/bsd-common.h.
5289 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5290 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5291 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5292 doing it in all files that include this one.
5293 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5294 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5295 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5296 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5297 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5298 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5299 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5300 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5301 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5302
2968f561
DN
5303 Consolidate redundant definitions.
5304 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5305 it's undefined in all files that include this one.
5306 (POSIX_SIGNALS): Define here instead of doing it in all files that
5307 include this one.
5308 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5309 (POSIX_SIGNALS): Do not define.
5310 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5311 (POSIX_SIGNALS): Do not define.
5312 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5313 (POSIX_SIGNALS): Do not define.
5314
15d25dc0
DN
5315 Remove support for old UNIX System V systems.
5316 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5317 * s/usg-5-4-2.h: Remove.
5318
07e339e4
DN
5319 Remove support for Solaris on PPC and for old versions.
5320 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5321 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5322 that cancel each other.
5323 * s/sol2-3.h:
5324 * s/sol2-4.h:
5325 * s/sol2-5.h: Remove.
5326 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5327 (NO_REMAP): Remove, unused.
5328 (UNEXEC): Move definition ...
5329 * s/aix4-2.h (UNEXEC): ... here.
5330
7f110ddc
DN
5331 * s/openbsd.h: Remove support for non-ELF and for systems that do
5332 not support shared libraries.
5333 * s/netbsd.h:
5334 * s/freebsd.h: Likewise.
5335
605f35cd
DN
53362010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5337
5338 Remove non-working support for lynxos 3.0.
5339 * s/lynxos.h: Remove file.
5340
5341 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5342 COFF_BSD_SYMBOLS, nothing defines it anymore.
5343
aed71cf4
DN
53442010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5345
5346 Remove obsolete uses of HAVE_SHM.
5347 * emacs.c (standard_args):
5348 (Fdump_emacs):
5349 (syms_of_emacs): Remove code depending on HAVE_SHM.
5350
5351 * alloc.c: Remove HAVE_SHM dependent definition.
5352
5353 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5354
aded53ff
GM
53552010-03-18 Glenn Morris <rgm@gnu.org>
5356
17284745
GM
5357 * emacs.c (USAGE4): Hard-code bug address.
5358 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5359 (bug_reporting_address): Remove.
5360 (main): Don't call bug_reporting_address.
5361
aded53ff
GM
5362 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5363 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5364
303500aa
CY
53652010-03-15 Chong Yidong <cyd@stupidchicken.com>
5366
5367 * xfns.c (Fx_create_frame):
5368 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5369 on left.
5370
cef3058f
CY
53712010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5372
5373 * editfns.c (Fformat): Account for string precision when computing
5374 field width (Bug#5710).
5375
a647d59d
CY
53762010-03-12 Chong Yidong <cyd@stupidchicken.com>
5377
4fa42018
CY
5378 * xfns.c (Fx_create_frame): Set default to Qright.
5379
a647d59d
CY
5380 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5381 all window systems.
5382
6da23aaa
EZ
53832010-03-12 Eli Zaretskii <eliz@gnu.org>
5384
a96f6398 5385 These changes remove termcap.c from the build on Posix platforms.
83d02def 5386 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5387 (MSDOS_OBJ): ...to here.
5388 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5389 now identical to when LIBS_TERMCAP is defined.
5390
5391 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5392
5393 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5394
a96f6398 5395 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5396
288f9fc0
CY
53972010-03-10 Chong Yidong <cyd@stupidchicken.com>
5398
5399 * Branch for 23.2.
5400
d48cd3f4
SM
54012010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5402
5403 Cleanup setup of gl_state in various parts of the code.
5404 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5405 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5406 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5407 (skip_chars):
5408 * regex.c (regex_compile): Use it.
5409 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5410 it's now set in regex_compile when/if we need it.
5411
618db430
SM
54122010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5413
c0335e02
SM
5414 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5415 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5416 (QUIT): Use it to consolidate code and remove redundancy.
5417 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5418
254c06a8
SM
5419 * regex.c (regex_compile): Setup gl_state as well.
5420
618db430
SM
5421 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5422 (in_classes): Use CONSP before XCAR/XCDR.
5423
233f0c9f
CY
54242010-03-03 Chong Yidong <cyd@stupidchicken.com>
5425
5426 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5427 definitions, so that keyboard macros are correctly handled
5428 (Bug#5481).
5429
75f80e63
EZ
54302010-03-02 Eli Zaretskii <eliz@gnu.org>
5431
5432 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5433 text that could be relocated inside the call to emacs_mule_char.
5434 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5435 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5436
dcfb9bc4
KH
54372010-03-02 Kenichi Handa <handa@m17n.org>
5438
fc9a17bc
KH
5439 * character.c (parse_str_as_multibyte): Fix handling of the
5440 multibyte form of raw-bytes.
5441 (str_as_multibyte): Likewise.
5442
dcfb9bc4
KH
5443 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5444 form of raw-bytes.
5445
412c01b6
CY
54462010-02-28 Chong Yidong <cyd@stupidchicken.com>
5447
5448 * charset.c (load_charset_map_from_file)
5449 (load_charset_map_from_vector): Zero out allocated
5450 charset_map_entries before using them.
5451
df7e1ea0
AS
54522010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5453
5454 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5455
fe69a722
CY
54562010-02-27 Chong Yidong <cyd@stupidchicken.com>
5457
4ed28cf4
CY
5458 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5459 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5460
7379cfce
KH
54612010-02-26 Kenichi Handa <handa@m17n.org>
5462
f88cc4d6
KH
5463 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5464
7379cfce
KH
5465 * xdisp.c (reseat_to_string): Fix previous change.
5466
cf2fdcfb
CY
54672010-02-26 David Reitter <david.reitter@gmail.com>
5468
5469 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5470 Lisp_Object (Bug#4736).
5471
cc6c7c75
KH
54722010-02-25 Kenichi Handa <handa@m17n.org>
5473
5474 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5475
32e737d7
JD
54762010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5477
5478 * xterm.c (XTflash): Move declarations before statements.
5479
5480 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5481 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5482 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5483 (xg_create_tool_bar): Remove unused variables.
5484 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5485 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5486
676cae9f
CY
54872010-02-21 Chong Yidong <cyd@stupidchicken.com>
5488
5489 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5490
886cc2b8
SM
54912010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5492
5493 * term.c (fatal): Add a final \n if needed (bug#5596).
5494
ddb2d8e2
CY
54952010-02-18 Chong Yidong <cyd@stupidchicken.com>
5496
5497 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5498
2a4f8d3d
GM
54992010-02-18 Glenn Morris <rgm@gnu.org>
5500
5501 * callint.c (Finteractive): Doc fix.
5502
ebaf11b6
KH
55032010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5504
886cc2b8
SM
5505 * coding.c (record_conversion_result):
5506 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5507 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5508 memory allocation error.
5509
d0396581
KH
55102010-02-17 Kenichi Handa <handa@m17n.org>
5511
886cc2b8
SM
5512 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5513 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5514 (decode_coding): Setup ccl program here. Keep looping when the
5515 decoder stopped because the output buffer is
5516 fullfilled (bug#5534).
5517
5518 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5519
98599f74
JD
55202010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5521
471e4f04 5522 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5523 bug #5571.
886cc2b8 5524 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5525 overdrawn.
98599f74 5526
182659ae
JD
55272010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5528
5529 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5530 doing_interact here.
5531 (ice_connection_closed): New function.
5532 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5533 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5534 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5535 returns I/O error.
5536 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5537 bug #5512.
5538
9be32c4e 55392010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5540
5541 * nsfont.m (nsfont_open): The system's value for the font descent
5542 is negative, so round it down to avoid clipping.
5543
a2f3eb19
CY
55442010-02-06 Chong Yidong <cyd@stupidchicken.com>
5545
5546 * charset.c (load_charset_map_from_file)
5547 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5548 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5549
3088147c
CY
55502010-02-05 Chong Yidong <cyd@stupidchicken.com>
5551
5552 * charset.c (load_charset_map_from_file): Allocate large
5553 charset_map_entries structure on the heap rather than the stack.
5554 (Bug#5526).
5555
b57d9029
KH
55562010-01-31 Kenichi Handa <handa@m17n.org>
5557
5558 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5559 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5560
c67d885b
CY
55612010-01-31 Chong Yidong <cyd@stupidchicken.com>
5562
5563 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5564 <deactivated@gmail.com> (Bug#3605).
5565
8fab2362
CY
55662010-01-31 David De La Harpe Golden <david@harpegolden.net>
5567
5568 * fileio.c (Frename_file): Correctly rename symlinks to
5569 directories (Bug#5496).
5570
cb2a62f2
CY
55712010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5572
5573 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5574
944c7a26
AS
55752010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5576
5577 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5578
c024ac08
CY
55792010-01-29 Chong Yidong <cyd@stupidchicken.com>
5580
5581 * frame.c (DEFAULT_ROWS): Change default to 35.
5582
5583 * xfns.c (x_default_font_parameter): Change default XFT font to
5584 monospace-10 (Bug#3643).
5585
af93af83
EZ
55862010-01-29 Eli Zaretskii <eliz@gnu.org>
5587
5588 * w32inevt.c (key_event): Remove unnecessary comparison of
5589 event->uChar.AsciiChar with 128.
5590
ca0eb708
CY
55912010-01-28 Chong Yidong <cyd@stupidchicken.com>
5592
b242dbfc
CY
5593 * fileio.c (Frename_file): Fix last change (Bug#5487).
5594
ca0eb708
CY
5595 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5596
5597 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5598
45d45af5
JD
55992010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5600
5601 * xfns.c (Fx_create_frame): Remove window size matching code from
5602 2010-01-15.
a73f9c9d 5603 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5604
7e233730
JR
56052010-01-27 Jason Rumney <jasonr@gnu.org>
5606
5607 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5608 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5609
86e893e3
KH
56102010-01-27 Kenichi Handa <handa@m17n.org>
5611
5612 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5613 pattern string (Bug#4209).
86e893e3 5614
8719abec
CY
56152010-01-27 David De La Harpe Golden <david@harpegolden.net>
5616
5617 * fileio.c (Frename_file): Call copy-directory and
5618 delete-directory for directories, in order to handle cross-device
5619 renaming (Bug#3353).
5620
844794c8
JD
56212010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5622
aa3e13b5 5623 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5624 sizes 24 and 10. Bug #3643.
844794c8 5625
bd4b5750
SM
56262010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5627
8dc1adf6 5628 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5629 * keymap.c (shadow_lookup): Add `remap' arg.
5630 (describe_map, describe_vector): Update calls to shadow_lookup.
5631 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5632 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5633 perform remapping during shadow_lookup check of remapped_sequences.
5634
285d07e2
CY
56352010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5636
5637 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5638 png_check_sig, which has been removed in libpng 1.4.
5639
c6d09b8d
CY
56402010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5641
5642 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5643 lacks this header file).
5644
3d782998
YM
56452010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5646
5647 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5648 as in Emacs 22.
5649
2aff7c53
YM
56502010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5651
5652 * lisp.h (make_pure_string): String pointer arg now points to const.
5653
5654 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5655 args now point to const.
5656
74327f7a
EZ
56572010-01-22 Eli Zaretskii <eliz@gnu.org>
5658
5659 * lread.c (Fload): Don't treat files without .elc extension as
5660 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5661 them. (bug#5303)
5662
4d1e6632
KH
56632010-01-20 Kenichi Handa <handa@m17n.org>
5664
5665 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5666 treat the source as actual byte sequence.
5667
1fdede8f
AM
56682010-01-19 Alan Mackenzie <acm@muc.de>
5669
5670 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5671 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5672 `signal_after_change_p' to `coherent_change_p', and make the
5673 invocation of `modify_region' conditional on it.
5674
67477f30
JD
56752010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5676
5677 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5678 for debug purpose.
5679 (syms_of_xsettings): Declare xft-settings.
5680
244b023e
CY
56812010-01-18 Chong Yidong <cyd@stupidchicken.com>
5682
5683 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5684
617364fe
CY
56852010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5686
5687 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5688
4fe22cdf
CY
56892010-01-16 Chong Yidong <cyd@stupidchicken.com>
5690
5691 * emacs.c (standard_args): Adjust arg priorities to reflect how
5692 they are processed in startup.el.
5693
e118d2be
AS
56942010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5695
5696 * Makefile.in (lisp, shortlisp): Update.
5697
523ae620
SM
56982010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5699
5700 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5701 code, link the new kboard into all_kboard before running Lisp code,
5702 and protect the new terminal with GCPRO (Bug#5365).
5703 (x_term_init): Remove unused var `atom'.
5704 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5705
f0d13888
JD
57062010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5707
5708 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5709 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5710 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5711 this. Bug #3643.
f0d13888 5712
cc320f07
KH
57132010-01-15 Kenichi Handa <handa@m17n.org>
5714
5715 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5716
7ffdf101
CY
57172010-01-15 Chong Yidong <cyd@stupidchicken.com>
5718
5719 * nsterm.m (Qnone): Define.
5720
5721 * nsfns.m (Qnone): Move definition to nsterm.m.
5722
d12bd917
KH
57232010-01-14 Kenichi Handa <handa@m17n.org>
5724
5725 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5726 systems.
5727
d9a7c140
KH
57282010-01-14 Kenichi Handa <handa@m17n.org>
5729
5730 Make auto-composition work on all buffers even if they are
5731 fundamental mode.
5732
5733 * composite.c (Vauto_composition_mode): New variable.
5734 (composition_compute_stop_pos): Check Vauto_composition_mode
5735 instead of Vauto_composition_function.
5736 (composition_adjust_point, Ffind_composition_internal): Likewise.
5737 (syms_of_composite): Declare Lisp variable
5738 "auto-composition-mode" here.
5739
63286bb2
CY
57402010-01-13 Chong Yidong <cyd@stupidchicken.com>
5741
5742 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5743 during call to vendor-specific-keysyms (Bug#5365).
5744
c2623ee7
YM
57452010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5746
5747 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5748 Call SIGNAL_THREAD_CHECK (Bug#5333).
5749
5750 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5751 Call SIGNAL_THREAD_CHECK.
5752
0b5397c2
SM
57532010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5754
5755 Try to fix bug#5314. This is probably not the final word, tho.
5756 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5757 recent-auto-save-p as a side-effect.
5758 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5759 * buffer.c (Fkill_buffer, reset_buffer):
5760 * editfns.c (Fsubst_char_in_region):
5761 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5762 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5763
dc954cb2
KH
57642010-01-13 Kenichi Handa <handa@m17n.org>
5765
5766 Display buffer name, etc. in mode line by composing correctly.
5767
5768 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5769 STRING is not nil.
0b5397c2 5770 (display_mode_element): Adjust for the change of
dc954cb2
KH
5771 decode_mode_spec and display_line.
5772 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5773 (display_string): Handle the case that STRING is non-null and
5774 LISP_STRING is not nil.
5775
0b5397c2
SM
5776 * xterm.c (x_draw_composite_glyph_string_foreground):
5777 Pay attention to s->face->overstrike.
dc954cb2
KH
5778
5779 * composite.c (composition_reseat_it): Don't check PT if STRING is
5780 non nil.
5781
4a00eaca
YM
57822010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5783
5784 * keyboard.c (read_char): Don't apply previous change when current
5785 buffer is unchanged by command execution.
5786
60abb287
JD
57872010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5788
5789 * keyboard.c (read_char): Return after executing from special map.
5790
893db5bc
GM
57912010-01-12 Glenn Morris <rgm@gnu.org>
5792
5793 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5794 bug-gnu-emacs rather than emacs-pretest-bug.
5795
4d03ece0
CY
57962010-01-11 Chong Yidong <cyd@stupidchicken.com>
5797
5798 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5799 initializing the Lisp variables that depend on them.
5800
1df47e38
YM
58012010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5802
5803 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5804 Clear areas that will not be updated after change of menu bar lines.
5805 Clear the menu bar window's current matrix when the window gets empty.
5806
2f1c6384
CY
58072010-01-09 Chong Yidong <cyd@stupidchicken.com>
5808
e398c61c
CY
5809 * intervals.h, textprop.c (extend_property_ranges): Return value
5810 and args changed. Discard properties that begin at or after the
5811 new end (Bug#5306).
5812
5813 * editfns.c (Fformat): Caller changed.
5814
e5a29a10
CY
5815 * nsterm.m (ns_set_default_prefs): Delete function.
5816 (syms_of_nsterm): Initialize ns_command_modifier,
5817 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5818 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5819
2f1c6384
CY
5820 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5821 position (Bug#4040).
5822
d427a9fa
EZ
58232010-01-09 Eli Zaretskii <eliz@gnu.org>
5824
5825 * editfns.c (Ffloat_time): Doc fix.
5826
21b9df2f
JD
58272010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5828
5829 * xfns.c (Fx_create_frame): Don't create frame larger than display
5830 by default bug#3643.
5831
4b00d3b1
YM
58322010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5833
5834 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5835 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5836 windows above internal border.
5837
5838 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5839 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5840 windows above internal border.
5841
5842 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5843 tool bar windows specially.
5844
5845 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5846
5847 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5848 specially.
5849 (XTflash): Take account of menu bar height.
5850
5851 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5852 specially.
5853
5075d853
JD
58542010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5855
ac146f82 5856 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5857 also be true before we can return early (bug #5339).
5858
474217c8
CY
58592010-01-06 David Reitter <david.reitter@gmail.com>
5860
5861 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5862 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5863 (Bug#3233).
5864
c0e6d47d
JD
58652010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5866
d0cf45b7
JD
5867 * font.c (font_open_entity): Enable chache and call cached_font_ok
5868 for the driver if defined.
5869 (QCuser_spec): New symbol.
5870 (font_spec_from_name): Save name as user-spec.
5871 (font_load_for_lface): Keep user-spec instead of name.
5872 (font_open_by_name): Save name as user-spec.
5873 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5874 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5875
5876 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5877 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5878 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5879
5880 * font.h (struct font_driver): Add cached_font_ok.
5881
c0e6d47d
JD
5882 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5883
7c583cd8
JD
58842010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5885
5886 * xterm.c (x_new_font): Move code for setting rows/cols before
5887 resizing ...
ac146f82 5888 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5889
5890 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5891 (xg_frame_resized, xg_frame_set_char_size):
5892 Call xg_clear_under_internal_border.
7c583cd8 5893 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5894
03f77f0a
CY
58952010-01-05 Chong Yidong <cyd@stupidchicken.com>
5896
5897 * keyboard.c (read_key_sequence): Catch keyboard switch after
5898 making a new tty frame (Bug#5095).
5899
2a1ef5be
KH
59002010-01-05 Kenichi Handa <handa@m17n.org>
5901
5902 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5903
e3eb1dae
SM
59042010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5905
5906 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5907 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5908 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5909
777013f2
MA
59102010-01-03 Michael Albinus <michael.albinus@gmx.de>
5911
5912 * dbusbind.c (xd_add_watch): Improve debug message.
5913 (xd_remove_watch): Improve debug message. If DATA is the session
5914 bus, unset D-Bus session environment.
5915 (Fdbus_init_bus): Pass the bus as argument to
5916 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5917
8932b1c2
CY
59182010-01-01 Chong Yidong <cyd@stupidchicken.com>
5919
87231e2c
CY
5920 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5921
4801c5fa
CY
5922 * lread.c (syms_of_lread): Make it clearer that these are the
5923 names of loaded files (Bug#5068).
5924
8932b1c2
CY
5925 * eval.c (run_hook_with_args): Handle the case where the global
5926 value has the obsolete single-function form (Bug#5026).
5927
11e3c684
CY
59282009-12-27 Chong Yidong <cyd@stupidchicken.com>
5929
5930 * minibuf.c (Fall_completions): Minor optimization.
5931
5b28ce35
EZ
59322009-12-26 Eli Zaretskii <eliz@gnu.org>
5933
5ce6e4f4
JB
5934 * .gdbinit (pgx): Fix display of composite glyphs.
5935 Display cmp.from and cmp.to as well.
5936 (pitx): Fix last change.
5b28ce35 5937
bcffff46
KH
59382009-12-25 Kenichi Handa <handa@m17n.org>
5939
5940 * composite.h (composition_adjust_point): Update prototype.
5941
5942 * composite.c (composition_reseat_it): Don't make a composition
5943 spanning over point.
5944 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5945 composable characters.
5946 (composition_adjust_point): New arg NEW_PT. Callers changed.
5947
5948 * keyboard.c (command_loop_1): Force redisplay if the last point
5949 was within a composition.
5950 (adjust_point_for_property): Don't adjust point for automatic
5951 composition when called after buffer modification.
5952
3f670e9a
EZ
59532009-12-19 Eli Zaretskii <eliz@gnu.org>
5954
5ce6e4f4
JB
5955 * .gdbinit (pitx): Don't use enum names, use their values.
5956 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5957 (pgx): Don't use enum names, use their values.
5958 (pitmethod): New helper command.
5959 (pitx): Use it to display iteration method.
5960 (pgrowit): New command.
5961
ad903955
EZ
5962 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5963
3f670e9a
EZ
5964 Update dependencies in Makefile.in.
5965
5966 * Makefile.in (alloc.o): Depend on termhooks.h.
5967 (atimer.o): Depend on blockinput.h.
5968 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5969 and frame.h.
5970 (callint.o): Depend on systime.h, coding.h, and composite.h.
5971 (callproc.o): Depend on buffer.h.
5972 (casefiddle.o): Don't depend on charset.h.
5973 (casetab.o): Depend on character.h.
5974 (ccl.o): Depend on composite.h.
5975 (chartab.o): Depend on ccl.h.
5976 (cm.o): Depend on dispextern.h.
5977 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
5978 (coding.o): Don't depend on $(INTERVALS_H).
5979 (composite.o): Don't depend on dispextern.h explicitly (it's in
5980 $(INTERVALS_H)). Depend on ccl.h.
5981 (data.o): Depend on systime.h, coding.h, composite.h,
5982 dispextern.h, font.h, and ccl.h.
5983 (dired.o): Depend on composite.h.
5984 (dispnew.o): Depend on coding.h. Don't depend explicitly on
5985 composite.h (it's in $(INTERVALS_H)).
5986 (doc.o): Depend on systime.h, coding.h, and composite.h.
5987 (editfns.o): Don't depend explicitly on dispextern.h.
5988 (emacs.o): Depend on frame.h and coding.h.
5989 (eval.o): Depend on coding.h, composite.h, and xterm.h.
5990 (fileio.o): Depend on frame.h and commands.h. Don't depend
5991 explicitly on dispextern.h.
5992 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
5993 composite.h.
5994 (fns.o): Don't depend on termhooks.h.
5995 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
5996 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
5997 coding.h, $(INTERVALS_H), window.h, xterm.h.
5998 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
5999 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6000 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6001 fontset.h, ccl.h, and ftfont.h.
6002 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6003 (gtkutil.o): Depend on dispextern.h and composite.h.
6004 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6005 termhooks.h, and ccl.h.
6006 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6007 (intervals.o): Depend on systime.h and coding.h.
6008 (keyboard.o): Depend on composite.h and coding.h.
6009 (keymap.o): Depend on coding.h and frame.h.
6010 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6011 (macros.o): Depend on systime.h, coding.h, and composite.h.
6012 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6013 and atimer.h.
6014 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6015 dispextern.h explicitly.
0b5397c2
SM
6016 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6017 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6018 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6019 (regex.o): Don't depend on charset.h.
6020 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6021 (search.o): Don't depend explicitly on composite.h.
6022 (sound.o): Depend on atimer.h and systime.h.
6023 (syntax.o): Don't depend explicitly on composite.h.
6024 (sysdep.o): Depend on coding.h and composite.h.
6025 (term.o): Depend on xterm.h and buffer.h.
6026 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6027 (textprop.o): Don't depend on dispextern.h explicitly.
6028 (undo.o): Depend on dispextern.h.
6029 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6030 dispextern.h and composite.h explicitly.
6031 (xdisp.o): Depend on ccl.h.
6032 (xfaces.o): Depend on coding.h and ccl.h.
6033 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6034 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6035 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6036 ftfont.h.
6037 (xgselect.o): New dependency.
6038 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6039 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6040 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6041 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6042 (xsmfns.o): Depend on frame.h and dispextern.h.
6043 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6044 sysselect.h.
6045
7a6f7fea
AS
60462009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6047
6048 * font.c (Fclear_font_cache): Pass correct cache argument to
6049 font_clear_cache.
6050
f4c21026
AS
60512009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6052
6053 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6054 twice.
6055
f7ab0997
CY
60562009-12-15 Chong Yidong <cyd@stupidchicken.com>
6057
6058 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6059 calling file-remote-p. Reported by Jim Meyering.
6060
fa8e045a
MA
60612009-12-15 Michael Albinus <michael.albinus@gmx.de>
6062
6063 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6064 avoid compiler warnings. (Bug #5217)
fa8e045a 6065
a63dba42
KH
60662009-12-14 Kenichi Handa <handa@m17n.org>
6067
6068 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6069 in 8-bit encoding.
6070
5ce6e4f4 60712009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6072
6073 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6074 tooltip windows.
6075
223e5fc6
JD
60762009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6077
36acb2a7
JD
6078 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6079 Xatom_net_window_type.
6080
6081 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6082 Xatom_net_window_type.
6083
b8f00677
JD
6084 * xterm.c (my_log_handler): New function.
6085 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6086 so we can filter out buggy messages. (Bug #5120).
b8f00677 6087
e5f0bc9a
JD
6088 * xterm.c (xg_scroll_callback): Parameter list changed,
6089 use parameter GtkScrollType to determine scroll/line/page.
6090 Only allow dragging if a button < 4 is grabbed (bug #5177).
6091 (xg_end_scroll_callback): New function.
6092 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6093 xg_create_scroll_bar.
6094
6095 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6096 (scroll_end_callback): Remove.
6097 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6098 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6099 bug #5177.
e5f0bc9a
JD
6100 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6101 bug #5177.
6102
6103 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6104 (xg_create_scroll_bar): Add GCallback end_callback.
6105
223e5fc6
JD
6106 * xftfont.c (QClcdfilter): New variable.
6107 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6108 (syms_of_xftfont): Initialize QClcdfilter.
6109
3c055b77
JD
61102009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6111
6112 * xsettings.c (struct xsettings): Add member seen.
6113 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6114 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6115 (apply_xft_settings): Only update Xft settings with what member seen
6116 indicates as new.
6117
05fe33ff
EZ
61182009-12-12 Eli Zaretskii <eliz@gnu.org>
6119
c4cc8b9a 6120 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6121 (struct glyph): Use EMACS_INT for charpos.
6122 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6123 region_beg_charpos, region_end_charpos,
6124 redisplay_end_trigger_charpos, and also for
6125 iterator_stack_entry.end_charpos and
6126 iterator_stack_entry.stop_charpos.
6127
e8d7886a
JD
61282009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6129
5ce6e4f4 6130 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6131 (xg_create_scroll_bar): Call scroll_end_callback on button release
6132 event (bug #5177).
6133 (xg_event_is_for_scrollbar): != replaced with ==.
6134
d0db2ec8
KH
61352009-12-12 Kenichi Handa <handa@m17n.org>
6136
6137 * ftfont.c (struct ftfont_info): New member matrix.
6138 (ftfont_open): Setup xftfont_info->matrix.
6139 (MFLTFontFT): New member matrix.
6140 (FLOOR, CEIL, ROUND): New macros.
6141 (ftfont_get_metrics): Handle matrix transformation.
6142 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6143
6144 * xftfont.c (struct xftfont_info): New member matrix.
6145 (xftfont_open): Setup xftfont_info->matrix.
6146
61472009-12-10 Kenichi Handa <handa@m17n.org>
6148
6149 * xdisp.c (append_space_for_newline): Consider face-remapping.
6150
2cc7b62f
AS
61512009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6152
b87dd913
AS
6153 * xsettings.c: Include "keyboard.h".
6154
eba5eb94
AS
6155 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6156
2cc7b62f
AS
6157 Fix implicit function declarations.
6158 * cmds.c: Include "frame.h".
6159 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6160 * frame.h: Move declaration of delete_frame outside of
6161 HAVE_WINDOW_SYSTEM.
6162
a4ef73c8
CY
61632009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6164
6165 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6166
6167 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6168 GTK builds.
6169
944a300c
AS
61702009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6171
6172 * unexelf.c (unexec): Don't search for .data twice.
6173
022eef62
CY
61742009-12-05 Chong Yidong <cyd@stupidchicken.com>
6175
426ac949
CY
6176 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6177 if push failed.
6178 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6179 of push_display_prop (Bug#5000).
6180
022eef62
CY
6181 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6182 value of font_list_entities (Bug#5085).
6183
be95bee9
JB
61842009-12-04 Juanma Barranquero <lekktu@gmail.com>
6185
6186 Fix `string-to-number' to deal consistently with integers and floats.
6187 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6188 trailing characters, not just whitespace.
6189 (read1): Pass new arg 0 to keep old behavior.
6190 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6191 trailing chars, as it is already done for integers. Doc fixes.
6192 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6193
24c2d7ce
EZ
61942009-12-04 Eli Zaretskii <eliz@gnu.org>
6195
0b5397c2
SM
6196 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6197 Delete unused enumeration value.
24c2d7ce 6198
7e694795
EZ
61992009-12-03 Eli Zaretskii <eliz@gnu.org>
6200
6201 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6202
84b31826
SM
62032009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6204
6205 * process.c (Fmake_network_process): Fix up the tests for
6206 "connectionless socket", so they DTRT for seqpacket sockets as well.
6207
f00c449b
SM
62082009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6209
6210 * process.c (Qseqpacket): New symbol.
6211 (HAVE_SEQPACKET): New macro.
6212 (Fmake_network_process): Accept new :type `seqpacket'.
6213 (init_process): Add `seqpacket' feature when applicable.
6214 (syms_of_process): Initialize Qseqpacket.
6215
8096a0ff
YM
62162009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6217
6218 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6219 if entity is Qnil.
6220
3e0de07f
SM
62212009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6222
6223 * print.c (print_preprocess): Preprocess the key_and_value table of
6224 hashtables, even tho they're "hidden" (bug#5082).
6225
abeafb2a
JD
62262009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6227
6228 * frame.c (frame_make_pointer_invisible)
6229 (frame_make_pointer_visible): Declare f before statements.
6230
4bf47195
EZ
62312009-11-28 Eli Zaretskii <eliz@gnu.org>
6232
6233 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6234 omitted dependencies on lisp.h.
6235
c525b3f2
JD
62362009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6237
ece2d4ed
JD
6238 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6239 is NULL.
6240
6241 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6242
6243 * frame.c (frame_make_pointer_invisible)
3e0de07f 6244 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6245 frame.
6246
c525b3f2
JD
6247 * search.c (simple_search): Remove warning by making *p const.
6248
2f00e299
DN
62492009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6250
6251 * xdisp.c (power_letter): Remove duplicate const.
6252
084b049b
JD
62532009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6254
a1fadc6f
JD
6255 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6256
5ce6e4f4 6257 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6258 defaults (bug #5025).
6259
28259cac
SM
62602009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6261
6262 * insdel.c (adjust_markers_for_delete): Move it in the
6263 right direction! (bug#4803)
6264
e8e14166
YM
62652009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6266
6267 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6268
6269 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6270
86677b58
GM
62712009-11-24 Glenn Morris <rgm@gnu.org>
6272
6273 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6274
581e51e8
JD
62752009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6276
cfc86c7a
JD
6277 * Makefile.in: Must create deps for ecrt0.o in its rule.
6278
581e51e8
JD
6279 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6280 because that is what Gtk+ font dialog understands.
6281
6282 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6283 of Fcopy_sequence.
6284 (font_open_by_name): Put name given into QCname for font-object returned.
6285
6286 * frame.c (x_set_font): Save original font name as frame parameter
6287 font-parameter.
6288
6289 * xsettings.c (set_default_xft_settings): New function.
6290 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6291 is found.
6292
8b264ecb
AS
62932009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6294
6295 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6296 searching backwards through multibyte buffer.
6297
872870b2
JD
62982009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6299
6300 * xterm.c: #include xgselect.h.
6301 (x_initialize): Call xgselect_initialize.
6302
6303 * xsettings.c (something_changedCB): C++ comments => C comments.
6304 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6305 does that now.
6306
6307 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6308 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6309 (scroll_bar_button_cb): Remove.
5ce6e4f4 6310 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6311 event.
6312 (xg_create_scroll_bar): Don't bind button-press-event and
6313 button-release-event.
6314
6315 * process.c: Include xgselect.h if defined (USE_GTK) ||
6316 defined (HAVE_GCONF).
6317 (wait_reading_process_output): Call xg_select for the same condition.
6318
6319 * xgselect.c (xg_select): New function to better integrate with
6320 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6321
6322 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6323
6324 * Makefile.in (XOBJ): Add xgselect.o.
6325
62a6e103
AS
63262009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6327
0b5397c2
SM
6328 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6329 Remove ignored second argument. All callers changed.
62a6e103
AS
6330 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6331 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6332 * xdisp.c (string_char_and_length): Likewise.
6333
b0ca0f33
DN
63342009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6335
6336 * xterm.c (x_new_font):
6337 * print.c (print_object):
6338 * cmds.c (Fself_insert_command): Move declarations before statements.
6339
dd5a6279
CY
63402009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6341
6342 * s/cygwin.h: Remove unneeded linker flags.
6343
4a8e097d
JD
63442009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6345
0d1d0d26
JD
6346 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6347
6348 * xsettings.h: Declare xsettings_get_system_font.
6349
6350 * xsettings.c (xsettings_get_system_font): New function.
6351 (init_gconf): No use initiating gconf unless we have Xft also.
6352 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6353 HAVE_GCONF.
6354
4a8e097d
JD
6355 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6356 add a blank entry so it doesn't collapse into nothing.
6357
8ab1650e
SM
63582009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6359
6360 * lread.c (Funintern): Comment out last change.
6361
82c602f0
RS
63622009-11-19 Richard Stallman <rms@gnu.org>
6363
6364 * lread.c (Funintern): Error if symbol is t or nil.
6365
87e32266
SM
63662009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6367
6368 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6369 representation of Lisp integers.
6370 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6371
1b9ac145
AS
63722009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6373
6374 * lisp.h: Remove declaration of Ffont_get_system_font.
6375 * xfns.c: Move include of "xsettings.h".
6376 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6377
dfb3c4c6
JD
63782009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6379
87e32266
SM
6380 * xsettings.c (something_changedCB, Ffont_get_system_font):
6381 Check use_system_font.
dfb3c4c6
JD
6382 (syms_of_xsettings): DEFVAR font-use-system-font.
6383
9370c1d8
AS
63842009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6385
25fe851a
AS
6386 * xfns.c (x_default_font_parameter): Remove dead assignment.
6387
9370c1d8
AS
6388 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6389
637fa988
JD
63902009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6391
87e32266 6392 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6393 not have FC_LCD_*. #define them if not there.
a6eb20d8 6394
87e32266 6395 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6396
637fa988
JD
6397 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6398
6399 * xterm.c (handle_one_xevent): Call xft_settings_event for
6400 ClientMessage, PropertyNotify and DestroyNotify.
6401 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6402 Call xsettings_initialize.
6403
6404 * xftfont.c (xftfont_fix_match): New function.
6405 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6406 Call xftfont_fix_match after XftFontMatch.
6407
6408 * xfont.c (xfont_driver): Initialize all members.
6409
87e32266
SM
6410 * xfns.c (x_default_font_parameter):
6411 Try font from Ffont_get_system_font.
637fa988
JD
6412 Do not get font from x_default_parameter if we got one from
6413 Ffont_get_system_font.
87e32266 6414 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6415
6416 * w32font.c (w32font_driver): Initialize all members.
6417
6418 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6419
6420 * lisp.h: Declare syms_of_xsettings.
6421
87e32266
SM
6422 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6423 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6424
6425 * ftfont.c (ftfont_filter_properties): New function.
6426
6427 * frame.c (x_set_font): Remove unused variable lval.
6428
87e32266 6429 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6430
6431 * font.c (font_put_extra): Don't return if val is nil, it means
6432 boolean option is off.
6433 (font_parse_fcname): Collect all extra properties in extra_props
6434 and call filter_properties for all drivers with extra_props and
6435 font as parameter.
87e32266
SM
6436 (font_open_entity): Do not use cache, it does not pick up new
6437 fontconfig settings like hinting.
637fa988
JD
6438 (font_load_for_lface): If spec had a name in it, store it in entity.
6439
a73f9c9d 6440 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6441
6442 * config.in: HAVE_GCONF is new.
6443
6444 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6445 xsettings.o is new.
6446
5a942932
KH
64472009-11-17 Kenichi Handa <handa@m17n.org>
6448
6449 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6450 back to the default font in case that no suitable font is found.
6451
b7c7a4d1
SM
64522009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6453
6454 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6455 Suggested by Chad Brown <yandros@mit.edu>.
6456 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6457
072f1e39
JD
64582009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6459
6460 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6461
5d1e70a2
AS
64622009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6463
87e32266 6464 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6465
a53cfbe5
JD
64662009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6467
473a99b7
JD
6468 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6469 has a parent.
6470
a53cfbe5 6471 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6472 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6473
6474 * config.in: Generated (AUTO_DEPEND).
6475
f04bb9b2
MA
64762009-11-13 Michael Albinus <michael.albinus@gmx.de>
6477
b7c7a4d1 6478 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6479 Vdbus_registered_functions_table, because it contains also
6480 properties. Fix docstring.
b7c7a4d1 6481 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6482
8f11f7ec
SM
64832009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6484
6485 * alloc.c (mark_object): Don't reprocess marked strings.
6486 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6487 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6488
8a605fe8
KH
64892009-11-13 Kenichi Handa <handa@m17n.org>
6490
8f11f7ec 6491 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6492 semantics of Vword_combining_categories.
6493 (Vword_combining_categories): Describe the slight change of the
6494 semantics.
6495
241c4680
EZ
64962009-11-13 Eli Zaretskii <eliz@gnu.org>
6497
6498 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6499
6500 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6501
5d58e44c
SM
65022009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6503
6504 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6505
5e13f9d3
JB
65062009-11-12 Juanma Barranquero <lekktu@gmail.com>
6507
6508 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6509
cf54c754
DR
65102009-11-11 David Reitter <david.reitter@gmail.com>
6511
6512 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6513 variables to fix 2009-11-09 change.
6514
a4ada374
DN
65152009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6516
91433552
DN
6517 * process.c (ifflag_def): Make flag_sym constant.
6518 (Fnetwork_interface_info): Use a constant pointer.
6519 (ifflag_table):
6520 * xfns.c (cursor_bits):
6521 * xdisp.c (power_letter):
6522 * termcap.c (speeds, esctab):
6523 * sysdep.c (baud_convert):
6524 * keyboard.c (lispy_accent_codes, modifier_names):
6525 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6526 (jpeg_format, tiff_format, gif_format, svg_format)
6527 (interlace_start, interlace_increment, gs_format):
6528 * gtkutil.c (separator_names):
6529 * fringe.c (swap_nibble):
6530 * fns.c (base64_value_to_char, base64_char_to_value):
6531 * fileio.c (make_temp_name_tbl):
6532 * coding.c (suffixes): Make constant.
6533
f4265f6c
DN
6534 * frame.c (make_initial_frame):
6535 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6536 build_string.
6537 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6538
04420943
DN
6539 * s/freebsd.h:
6540 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6541
0a5d24ae
DN
6542 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6543 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6544
a4ada374
DN
6545 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6546 * xterm.c (syms_of_xterm):
6547 * xfaces.c (syms_of_xfaces):
6548 * xdisp.c (syms_of_xdisp):
6549 * lread.c (syms_of_lread):
6550 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6551 build_string.
91433552 6552
a4ada374
DN
6553 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6554
af98fc7f
SM
65552009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6556
8ab1650e 6557 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6558
e90292a9
JD
65592009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6560
6561 * keyboard.h: Declare timer_check.
6562
6563 * keyboard.c (timer_check_2): New function that does what the old
6564 timer_check did.
6565 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6566 returned, i.e. don't return -1 with timers pending.
6567
6568 * process.c: Remove extern declaration of timer_check.
6569
6570 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6571 even if timer_check returned -1.
6572
af98fc7f
SM
6573 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6574 xg_dialog_data.
e90292a9
JD
6575 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6576 the event loop.
6577 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6578 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6579 Destroy the dialog after xg_dialog_run.
6580
045b83c0
SM
65812009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6582
6583 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6584
1fb99a3a
JD
65852009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6586
6587 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6588
04e452cb
JB
65892009-11-09 Juanma Barranquero <lekktu@gmail.com>
6590
6591 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6592
ef7417fd
SM
65932009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6594
6595 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6596 w32menu.c, and nsmenu.m.
6597 Simplify the obsolete case where position is nil.
6598 (cleanup_popup_menu): New function, moved from nsmenu.m.
6599 (struct skp): Remove slot `notreal'.
6600 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6601 adjust callers.
6602 (single_menu_item): Adjust call to parse_menu_item.
6603 (syms_of_menu): Defsubr x-popup-menu.
6604 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6605 (keymap_panes): Don't export any more.
6606 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6607 (xmenu_show): Declare.
6608 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6609 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6610 * keyboard.h (parse_menu_item): Update declaration.
6611 * xmenu.c (Fx_popup_menu): Remove.
6612 (syms_of_xmenu): Don't defsubr x-popup-menu.
6613 * w32menu.c (Fx_popup_menu): Remove.
6614 (syms_of_w32menu): Don't defsubr x-popup-menu.
6615 * nsmenu.m (cleanup_popup_menu): Remove.
6616 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6617 moved to menu.c's Fx_popup_menu.
6618 (Fx_popup_menu): Remove.
6619 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6620 menu_items (it's done in menu.c already).
6621
424d6179
SM
66222009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6623
6624 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6625 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6626
c0df13a6 66272009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6628
6629 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6630 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6631 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6632 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6633
2de9f71c
SM
66342009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6635
6636 Let integers use up 2 tags to give them one extra bit and thus double
6637 their range.
6638 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6639 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6640 New macros.
6641 (enum Lisp_Type): Use them. Give explicit values.
6642 (Lisp_Type_Limit): Remove.
6643 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6644 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6645 Pay attention to USE_2_TAGS_FOR_INTS.
6646 (INTEGERP): Use LISP_INT_TAG_P.
6647 * fns.c (internal_equal): Simplify the default case.
6648 (sxhash): Use case_Lisp_Int.
6649 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6650 any more.
6651 (Ftype_of): Use case_Lisp_Int.
6652 (store_symval_forwarding): Take into account the fact that Ints can
6653 now have more than one tag.
6654 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6655 (buffer_slot_type_mismatch):
2de9f71c
SM
6656 * xfaces.c (face_attr_equal_p):
6657 * print.c (print_object):
6658 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6659 Use case_Lisp_Int.
6660
323637a2
EZ
66612009-11-06 Eli Zaretskii <eliz@gnu.org>
6662
7ac65b38
EZ
6663 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6664
323637a2
EZ
6665 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6666 warning.
6667
e511451f
JD
66682009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6669
6670 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6671
6672 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6673
6674 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6675 ButtonPressRelease and MotionNotify (bug#4870).
6676
5e2327cf
DN
66772009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6678
5adc433e
DN
6679 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6680
d67b4f80
DN
6681 * xterm.c (syms_of_xterm):
6682 * xselect.c (syms_of_xselect):
6683 * xmenu.c (syms_of_xmenu):
6684 * xfns.c (syms_of_xfns):
6685 * xfaces.c (syms_of_xfaces):
6686 * xdisp.c (syms_of_xdisp):
6687 * window.c (syms_of_window):
6688 * w32fns.c (syms_of_w32fns):
6689 * undo.c (syms_of_undo):
6690 * textprop.c (syms_of_textprop):
6691 * terminal.c (syms_of_terminal):
6692 * syntax.c (syms_of_syntax):
6693 * sound.c (syms_of_sound):
6694 * search.c (syms_of_search):
6695 * print.c (syms_of_print):
6696 * minibuf.c (syms_of_minibuf):
6697 * macros.c (syms_of_macros):
6698 * keymap.c (syms_of_keymap, initial_define_key)
6699 (initial_define_lispy_key):
6700 * keyboard.c (syms_of_keyboard):
6701 * insdel.c (syms_of_insdel):
6702 * image.c (syms_of_image):
6703 * fringe.c (syms_of_fringe):
6704 * frame.c (syms_of_frame):
6705 * fontset.c (syms_of_fontset):
6706 * fns.c (syms_of_fns):
6707 * fns.c (syms_of_fns):
6708 * fileio.c (syms_of_fileio):
6709 * fileio.c (syms_of_fileio):
6710 * eval.c (syms_of_eval):
6711 * doc.c (syms_of_doc):
6712 * dispnew.c (syms_of_display):
6713 * dired.c (syms_of_dired):
6714 * dbusbind.c (syms_of_dbusbind):
6715 * data.c (syms_of_data):
6716 * composite.c (syms_of_composite):
6717 * coding.c (syms_of_coding):
6718 * cmds.c (syms_of_cmds):
6719 * charset.c (define_charset_internal, syms_of_character):
6720 * ccl.c (syms_of_ccl):
6721 * category.c (syms_of_category, init_category_once):
6722 * casetab.c (syms_of_casetab):
6723 * casefiddle.c (syms_of_casefiddle):
6724 * callint.c (syms_of_callint):
6725 * bytecode.c (syms_of_bytecode):
6726 * buffer.c (keys_of_buffer, syms_of_buffer):
6727 * alloc.c (syms_of_alloc):
6728 * process.c (syms_of_process, init_process):
6729 * lread.c (syms_of_lread, init_obarray):
6730 * font.c (build_style_table):
6731 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6732 intern_c_string, calls to make_pure_string with
6733 make_pure_c_string. Use pure_cons instead of Fcons.
6734
5e2327cf
DN
6735 * process.c (socket_options): Make it const.
6736 (set_socket_option, init_process): Use a const pointer.
6737
6738 * lread.c (intern_c_string): New function.
6739 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6740 (defvar_int): Uset it. Make the name const char*.
6741
6742 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6743 (defvar_int): Update prototypes.
6744 (DEFUN, EXFUN): Support for prototypes is now required.
6745 (intern_c_string): New prototype.
6746 (struct Lisp_Subr): Make symbol_name constant.
6747
6748 * font.c (struct table_entry): Remove unused member. Make NAMES
6749 constant.
6750 (weight_table, slant_table, width_table): Make constant.
6751
6752 * emacs.c (struct standard_args): Make name and longname constant.
6753
6754 * character.h (DEFSYM): Use intern_c_string.
6755
a56eaaef
DN
67562009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6757
6758 * alloc.c (make_pure_c_string): New function.
6759
6760 * eval.c (Fautoload): Purecopy all arguments.
6761
f6a07420
KH
67622009-11-05 Kenichi Handa <handa@m17n.org>
6763
6764 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6765 the buffer in case of replace.
6766
5d28d4b1
DN
67672009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6768
6769 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6770
b349d111
SM
67712009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6772
d528b1ce
SM
6773 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6774 when applicable (bug#4851).
6775
b349d111
SM
6776 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6777 (P_): Support for prototypes is now required.
6778
c38eb027
CY
67792009-10-31 Chong Yidong <cyd@stupidchicken.com>
6780
6781 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6782 (Bug#4827).
6783
0405f8d9
EZ
67842009-10-30 Eli Zaretskii <eliz@gnu.org>
6785
d528b1ce 6786 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6787
ca0a881a
DN
67882009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6789
6790 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6791
d528b1ce
SM
6792 * lread.c (Fload): Purecopy the file name when building
6793 Vpreloaded_file_list.
ca0a881a 6794
47e0e0e4
JR
67952009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6796
6797 * w32fns.c (syms_of_w32fns): Change default value of
6798 w32-scroll-lock-modifier to nil. (Bug#2827)
6799
057bce6f
JB
68002009-10-26 Juanma Barranquero <lekktu@gmail.com>
6801
782a943e 6802 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6803
242bc74c
AS
68042009-10-26 Andreas Schwab <schwab@redhat.com>
6805
6806 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6807
522d013a
JB
68082009-10-26 Juanma Barranquero <lekktu@gmail.com>
6809
6810 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6811 For delta < 0, skip check that only makes sense when the mini-window
6812 is going to be enlarged. (Bug#4534)
6813
18060980
CY
68142009-10-25 Chong Yidong <cyd@stupidchicken.com>
6815
6816 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6817 string in menu maps (Bug#4471).
6818
fec8f0fe
CY
68192009-10-24 Chong Yidong <cyd@stupidchicken.com>
6820
6821 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6822 FRAME_NS_VIEW on terminal frames (Bug#4765).
6823
10d66ec0
AS
68242009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6825
1cae01f7
AS
6826 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6827 DBUS_TYPE_UINTnn separately to get proper sign extension.
6828
58a12889
AS
6829 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6830 can properly handle unsigned types.
d528b1ce 6831 (make_uid, make_gid): Remove.
58a12889 6832
987c9327
AS
6833 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6834 types again.
6835
522d013a 6836 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6837 (system_process_attributes): Likewise.
6838
905a9ed3
DN
68392009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6840
6841 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6842
6843 * eval.c (Fautoload): Purecopy the filename. Simplify.
6844
6845 * category.c (Fdefine_category): Purecopy docstring.
6846
a599b3e8
AS
68472009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6848
7b792fc9
AS
6849 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6850
a599b3e8
AS
6851 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6852
b35ac83e
CY
68532009-10-23 Chong Yidong <cyd@stupidchicken.com>
6854
6855 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6856 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6857 (Bug#4775).
6858
e8903e00
SM
68592009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6860
6861 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6862 (init_fileio_once):
6863 * lisp.h (init_fileio_once): Remove.
6864 * emacs.c (main): Don't call init_fileio_once.
6865
8f43cbf3
DN
68662009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6867
6868 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6869
26898943
AS
68702009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6871
6872 * doprnt.c (doprnt): Fix overflow check.
6873
5c646d5a
JD
68742009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6875
3132a7ea
JD
6876 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6877
5c646d5a
JD
6878 * xterm.h (x_wait_for_event): Declare it.
6879
6880 * xterm.c (pending_event_wait): New variable.
6881 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6882 see pending_event_wait.eventtype.
6883 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6884 (x_new_font): Call change_frame_size with new rows/columns before we
6885 try to resize the frame.
5c646d5a 6886 (x_wait_for_event): New function.
d528b1ce
SM
6887 (x_set_window_size_1): Don't change gravity unless change_gravity
6888 is set.
5c646d5a
JD
6889 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6890 don't change frame size, instead wait for the ConfigureNotify.
6891 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6892 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6893 (x_initialize): Initialize pending_event_wait.
6894
6895 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6896 size.
6897
6898 * widget.c (EmacsFrameSetValues): Add comment.
6899 (EmacsFrameSetCharSize): Just call x_set_window_size.
6900
6901 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6902 x_wait_for_event.
d528b1ce 6903 (flush_and_sync): Remove again.
5c646d5a
JD
6904 (xg_get_font_name): Suggest monospace if no previous font is known.
6905
e9c1637d
SM
69062009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6907
6908 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6909 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6910
5a72cccb
YM
69112009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6912
6913 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6914 processing pending events when event is filtered for input method.
ab04798f 6915 (Bug#3681)
5a72cccb 6916
2629aa37
JB
69172009-10-20 Juanma Barranquero <lekktu@gmail.com>
6918
6919 * fns.c: Add #endif accidentally removed in previous change.
6920
c3417a74
DN
69212009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6922
6923 * fns.c: Remove code for unsupported system: MAC_OS.
6924 * image.c: Likewise. Include setjmp.h.
6925
9685cef2
JD
69262009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6927
6928 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6929 pixel -1 (bug #4742).
6930
d7306fe6
DN
69312009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6932
019d2c4c
DN
6933 * process.c (create_pty): Remove conditionals for no longer
6934 supported systems: UNIPLUS and RTU.
6935
ee6bacd4
DN
6936 * xterm.c:
6937 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6938
d7306fe6
DN
6939 * alloc.c: Do not define struct catchtag.
6940 * eval.c: Move struct catchtag definition ...
6941 * lisp.h: ... here.
6942
6943 * image.c: Move png.h #include earlier to avoid warnings.
6944
6945 * xterm.c:
6946 * xsmfns.c:
6947 * xselect.c:
6948 * xrdb.c:
6949 * xmenu.c:
6950 * xftfont.c:
6951 * xfont.c:
6952 * xfns.c:
6953 * xfaces.c:
6954 * xdisp.c:
6955 * window.c:
6956 * widget.c:
6957 * w32xfns.c:
6958 * w32uniscribe.c:
6959 * w32term.c:
6960 * w32select.c:
6961 * w32reg.c:
6962 * w32proc.c:
6963 * w32menu.c:
6964 * w32inevt.c:
6965 * w32heap.c:
6966 * w32font.c:
6967 * w32fns.c:
6968 * w32console.c:
6969 * w32.c:
6970 * w16select.c:
6971 * vm-limit.c:
6972 * unexsol.c:
6973 * unexec.c:
6974 * unexcw.c:
6975 * unexaix.c:
6976 * undo.c:
6977 * tparam.c:
6978 * textprop.c:
6979 * terminfo.c:
6980 * terminal.c:
6981 * termcap.c:
6982 * term.c:
6983 * syntax.c:
6984 * sound.c:
6985 * sheap.c:
6986 * search.c:
6987 * scroll.c:
6988 * region-cache.c:
6989 * regex.c:
6990 * ralloc.c:
6991 * process.c:
6992 * print.c:
b024548b
DN
6993 * nsterm.m:
6994 * nsselect.m:
6995 * nsmenu.m:
6996 * nsimage.m:
6997 * nsfont.m:
6998 * nsfns.m:
d7306fe6
DN
6999 * msdos.c:
7000 * minibuf.c:
7001 * menu.c:
7002 * marker.c:
7003 * macros.c:
7004 * keymap.c:
7005 * keyboard.c:
7006 * intervals.c:
7007 * insdel.c:
7008 * indent.c:
7009 * gtkutil.c:
7010 * ftxfont.c:
7011 * ftfont.c:
7012 * fringe.c:
7013 * frame.c:
7014 * fontset.c:
7015 * font.c:
7016 * fns.c:
7017 * floatfns.c:
7018 * filelock.c:
7019 * fileio.c:
7020 * emacs.c:
7021 * editfns.c:
7022 * dosfns.c:
7023 * doprnt.c:
7024 * doc.c:
7025 * dispnew.c:
7026 * dired.c:
7027 * dbusbind.c:
7028 * data.c:
7029 * composite.c:
7030 * coding.c:
7031 * cmds.c:
7032 * cm.c:
7033 * chartab.c:
7034 * charset.c:
7035 * character.c:
7036 * ccl.c:
7037 * category.c:
7038 * casetab.c:
7039 * casefiddle.c:
7040 * callproc.c:
7041 * callint.c:
7042 * bytecode.c:
7043 * buffer.c:
7044 * atimer.c: Include setjmp.h. (Bug#4643)
7045
fd5f21e6
SM
70462009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7047
4c0354d7
SM
7048 Remove leftover table unibyte_to_multibyte_table.
7049 * character.c (unibyte_to_multibyte_table): Remove.
7050 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7051 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7052 * character.h (UNIBYTE_TO_CHAR): New macro.
7053 (MAKE_CHAR_MULTIBYTE): Use it.
7054 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7055 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7056 (message_dolog, set_message_1):
7057 * search.c (Freplace_match):
7058 * editfns.c (Fcompare_buffer_substrings):
7059 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7060 (concat):
7061 * insdel.c (copy_text, count_size_as_multibyte):
7062 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7063 * term.c (produce_glyphs):
7064 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7065 * regex.c (RE_CHAR_TO_MULTIBYTE):
7066 * cmds.c (internal_self_insert):
7067 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7068
fd5f21e6
SM
7069 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7070
4418646e
DN
70712009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7072
7073 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7074
35f5c1d2
JB
70752009-10-16 Juanma Barranquero <lekktu@gmail.com>
7076
7077 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7078
a0cd8f6b
AR
70792009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7080
7081 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7082 still needed under Tiger.
7083
7084 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7085
7086 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7087 __Apple__.
7088
7089 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7090
01a8d3fa
KH
70912009-10-15 Kenichi Handa <handa@m17n.org>
7092
7093 * print.c (print_object): Escape a symbol like "2E10" too.
7094
bf6c75c9 70952009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7096
7097 Cleanups and changes for 64-bit compile under Snow Leopard.
7098 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7099
7100 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7101
c5959062 7102 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7103 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7104 cast argument.
7105 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7106 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7107
7108 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7109
7110 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7111 where appropriate.
7112
7113 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7114 where appropriate.
6e4780c5
JB
7115 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7116 Use stringWithUTF8String.
bf6c75c9
AR
7117 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7118
6e4780c5
JB
7119 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7120 Add formal protocol mention to inheritance.
bf6c75c9
AR
7121 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7122
6e4780c5
JB
7123 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7124 Fix printf format.
bf6c75c9
AR
7125 (ns_query_color): Use CGFloat where appropriate.
7126 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7127 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7128 argument.
7129
3d87f118
AR
7130 * config.in (NS_HAVE_NSINTEGER): Drop.
7131
a95c8102
AR
7132 * dbusbind.c (dbus-method-return-internal)
7133 (dbus-method-error-internal): Use long format in printf, and cast
7134 argument.
7135
7136 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7137 in printf, and cast argument.
7138
6873acca 7139 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7140 cast argument.
7141
9ec6f100
GM
71422009-10-11 Glenn Morris <rgm@gnu.org>
7143
7144 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7145
5be883cd
JD
71462009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7147
7148 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7149 menu bar with a small width so it doesn't enlarge the frame.
7150
d7a39b51
JB
71512009-10-08 Juanma Barranquero <lekktu@gmail.com>
7152
7153 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7154
0c2b6f8e
GM
71552009-10-06 Glenn Morris <rgm@gnu.org>
7156
7157 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7158 SOME_MACHINE_LISP (this enters indirectly via DOC).
7159
e02131a2
EZ
71602009-10-05 Eli Zaretskii <eliz@gnu.org>
7161
7162 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7163
b4744254
EZ
71642009-10-04 Eli Zaretskii <eliz@gnu.org>
7165
7166 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7167 Doc fix.
7168
dbf64827
JB
71692009-10-03 Martin Rudalics <rudalics@gmx.at>
7170
7171 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7172
e9a0aef8
MA
71732009-10-02 Michael Albinus <michael.albinus@gmx.de>
7174
d528b1ce 7175 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7176 used anymore outside fileio.c.
7177
7178 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7179
64eb2b56
JB
71802009-10-01 Juanma Barranquero <lekktu@gmail.com>
7181
7182 * lisp.h (Qdelete_directory_internal):
7183 Declare, instead of Qdelete_directory.
7184
7185 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7186
9d28c33e
SM
71872009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7188
7189 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7190
9d8f3bd9
MA
71912009-10-01 Michael Albinus <michael.albinus@gmx.de>
7192
9d28c33e 7193 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7194 Fdelete_directory. It is not a command anymore. It has no file
7195 name handler.
7196
9694740b
SM
71972009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7198
7199 * xdisp.c (get_next_display_element): Use an enum in last change.
7200
748e162f
KH
72012009-09-28 Kenichi Handa <handa@m17n.org>
7202
9694740b 7203 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7204 unibyte_display_via_language_environment in handling
7205 Vnobreak_char_display.
7206
17efd58d
AR
72072009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7208
7209 * nsterm.h (ns_app_name): New extern variable.
7210
7211 * nsterm.m (ns_app_name): New variable.
7212 (ns_term_init): Set and use it.
7213 (ns_term_shutdown): Use it.
7214
7215 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7216 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7217
7218 * nsfns.m (ns_set_name_iconic, ns_set_name)
7219 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7220 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7221
9694740b
SM
7222 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7223 Remove double-casting in client_data comparison.
31c2d412 7224
3208cb35
YM
72252009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7226
7227 * keyboard.c (make_lispy_event): Remember last wheel direction.
7228 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7229
b7d552d6
GM
72302009-09-26 Glenn Morris <rgm@gnu.org>
7231
7232 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7233 internal.elc. Add term/pc-win.elc.
7234 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7235 term/x-win.elc.
7236 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7237 term/w32-win.elc.
7238 (NS_SUPPORT): New.
7239 (lisp): Add NS_SUPPORT.
7240 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7241
4ff670a8
DR
72422009-09-25 David Reitter <david.reitter@gmail.com>
7243
7244 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7245 on Mac OS X 10.6+ (bug#4513).
7246
feabfb6c
JB
72472009-09-24 Juanma Barranquero <lekktu@gmail.com>
7248
7249 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7250 some parts of Emacs code (like font selection) don't grok them.
7251 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7252
de59072a
AS
72532009-09-24 Andreas Schwab <schwab@redhat.com>
7254
7255 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7256
a489517b
JB
72572009-09-24 Juanma Barranquero <lekktu@gmail.com>
7258
7259 * dired.c (Fdirectory_files): Fix typo in docstring.
7260
0592970c
AR
72612009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7262
7263 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7264 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7265 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7266 under GNUstep.
7267 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7268
7269 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7270 glyph advancement.
7271
48e8a88b
AR
72722009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7273
7274 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7275 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7276
7277 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7278 deleted (bug #4492).
7279
e14f0a78
AR
7280 * nsfont.m (Vns_reg_to_script): New lisp variable.
7281 (syms_of_nsfont): Declare it.
7282 (ns_registry_to_script): New function.
7283 (ns_get_req_script): Call it.
7284 (ns_findfonts): Don't give up on non-unicode registry.
7285
7286 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7287
5b650faa
SM
72882009-09-20 Tom Tromey <tromey@redhat.com>
7289
7290 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7291 batch mode (bug#4228).
7292
a489517b 72932009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7294
7295 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7296 carefully. (Bug #4339)
0bae4e09 7297
fcfe06f3
CY
72982009-09-18 Chong Yidong <cyd@stupidchicken.com>
7299
d798ba87 7300 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7301
31642728
AR
73022009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7303
7304 * emacs.c (inhibit_x_resources): Update doc string for NS.
7305 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7306 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7307
7308 * nsterm.h (ns_no_defaults): Remove.
7309
7310 * nsterm.m (ns_no_defaults): Remove.
7311 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7312 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7313 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7314 don't update the NSWindow itself.
7315 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7316 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7317
7318 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7319 ns_use_qd_smoothing.
7320
7321 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7322 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7323 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7324 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7325
8686ac71
JB
73262009-09-17 Juanma Barranquero <lekktu@gmail.com>
7327
7328 * emacs.c (inhibit_x_resources): New variable.
7329 (main) [HAVE_NS]: Don't process --quick command line option.
7330 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7331
7332 * lisp.h (inhibit_x_resources): Declare it extern.
7333
7334 * w32reg.c (x_get_string_resource):
7335 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7336
e227ba05
EZ
73372009-09-17 Eli Zaretskii <eliz@gnu.org>
7338
362654a6
JB
7339 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7340 Add lisp/term/internal.elc.
e227ba05 7341
742d40e8
SM
73422009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7343
7344 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7345 (bug#4461).
7346
005bd5a2
DN
73472009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7348
7349 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7350
7351 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7352 (OBJECTS_MACHINE): Remove, unused.
7353
f9af9719
SM
73542009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7355
7356 * frame.c (x_get_resource_string): Remove unused.
7357
0307c7d2
JD
73582009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7359
7360 * xterm.c (x_new_font): Call change_frame_size before calling
7361 x_set_window_size, in case frame size won't change.
7362
7363 * frame.c (x_set_font): Remove dead code.
7364
428b13d6
SM
73652009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7366
7367 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7368
5766c380
SM
73692009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7370
7371 * lread.c (Fload): Don't output a message after loading an obsolete
7372 package any more (done in Lisp now).
7373
2fd0161b
CY
73742009-09-12 Chong Yidong <cyd@stupidchicken.com>
7375
7376 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7377
bc5e75b6
SM
73782009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7379
7380 * keymap.c (Fwhere_is_internal): Use nconc2.
7381
c31c985e
AM
73822009-09-11 Alan Mackenzie <acm@muc.de>
7383
7384 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7385 batch mode.
7386
78012bd2
AS
73872009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7388
7389 * xdisp.c (display_mode_element): Detect cycles.
7390
9d889332
SM
73912009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7392
7393 * keymap.c (where_is_internal): Don't erroneously return nil right after
7394 filling the cache.
7395 (where_is_internal_1): Fix up typo.
7396
7ab5d780
GM
73972009-09-11 Glenn Morris <rgm@gnu.org>
7398
7399 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7400 share a common doc-string.
7401
5238a749
SM
74022009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7403
66d77eda
SM
7404 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7405 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7406
5238a749
SM
7407 * keymap.c (QCadvertised_binding): New constant.
7408 (syms_of_keymap): Initialize it.
7409 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7410 if applicable.
7411
19f48442
SM
74122009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7413
50d4ba39
SM
7414 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7415 (parse_menu_item): Streamline since bindings are recomputed all the
7416 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7417 more and don't support lmenu's menu-alias any more either.
7418
a88a5372
SM
7419 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7420 (where_is_internal): Strip it down to only traverse the keymaps.
7421 Move the cache handling from Fwhere_is_internal to here.
7422 (Fwhere_is_internal): Move the handling of remapping and the choice of
7423 the best binding from where_is_internal to here.
7424 Unify the cached/noncached paths, so remapping is also handled
7425 correctly when the cache is used, and so the cache can be used to
7426 speed up remap-handling when applicable.
7427 Give preference to non-remapped bindings.
7428 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7429 non-remapped bindings.
7430 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7431 command remapping.
7432
19f48442
SM
7433 * xdisp.c (display_mode_element): Move list length limit from 50 to
7434 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7435
599498c3 74362009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7437
7438 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7439
f9b7b5ac
SM
74402009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7441
a53af587
JB
7442 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7443 (Bug#4334)
7444
f9b7b5ac
SM
7445 * keymap.c (where_is_internal): Filter out shadowed remappings.
7446 Assume that where_is_internal returns unshadowed bindings to simplify
7447 the code and get rid of the gotos. Use ASIZE.
7448
04f4b72d
JD
74492009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7450
4da146f2
JD
7451 * xterm.c (x_focus_changed): If we get a focusout and pointer
7452 is invisible, make it visible.
7453
04f4b72d
JD
7454 * xterm.h: Remove condition for declaration of
7455 x_*_window_to_frame.
7456
7cef7ce3
SM
74572009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7458
7459 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7460 initial terminal as well.
7461
a54fa5b7
JD
74622009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7463
7464 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7465 x_menubar_window_to_frame.
a54fa5b7 7466
50426a04 7467 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7468 (XTmouse_position): Do not return valid positions
7469 for clicks in the menubar and the toolbar for Gtk+.
7470
7471 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7472 if the widget for the event has the same top level as a frame,
7473 return the frame.
7474 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7475 internal windows, bug #4122.
7476 (x_non_menubar_window_to_frame): Remove.
7477
5a021dd0
GM
74782009-09-02 Glenn Morris <rgm@gnu.org>
7479
7480 * buffer.c (default-major-mode): Move most of the doc from here...
7481 (major-mode): ... to here.
7482
548fe2f3
NR
74832009-08-30 Nick Roberts <nickrob@snap.net.nz>
7484
7485 * process.c (wait_reading_process_output): Keep the descriptor
7486 when pty is used by a non-child process, e.g., in I/O buffer of
7487 GDB this allows inferior to be restarted.
7488
e0840eef
EZ
74892009-08-29 Eli Zaretskii <eliz@gnu.org>
7490
7491 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7492 both branches into one.
7493
82e98df4
SM
74942009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7495
7496 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7497 (main): Use enable-multibyte-characters rather than
7498 default-enable-multibyte-characters. Output a warning message when
7499 running a unibyte session.
7500
890617cb
YM
75012009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7502
7503 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7504 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7505 (copy_data_segment): Also copy __program_vars section.
7506 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7507 (dump_it) [LC_DYLD_INFO]: Use it.
7508
7509 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7510
e7adeadc
EZ
75112009-08-28 Eli Zaretskii <eliz@gnu.org>
7512
7513 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7514 $(SRC)/buildobj.h.
7515 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7516 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7517 $(SRC)/buildobj.h.
7518 (clean): Add buildobj.h.
7519
3ed8bbdc
TZ
75202009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7521
7522 * print.c (print_object): Set escapeflag to 1 when printing
7523 hashtable keys and values.
7524
155a6764
SM
75252009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7526
7527 * lread.c (read_integer): Use doubles (and potentially return a float
7528 number) as we do in string-to-number.
7529 (read1): Use strtol to read integers, signal errors on strtol's
7530 overflow and use floats if strtol's output is too large for
7531 Elisp integers.
7532
877610de
EZ
75332009-08-27 Eli Zaretskii <eliz@gnu.org>
7534
7535 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7536 (make-buildobj-SH): Fix last change.
7537 (SRC): Move to before where it's first used.
7538
ef73e7be
KH
75392009-08-27 Kenichi Handa <handa@m17n.org>
7540
550c8289
KH
7541 * process.c (send_process): Use encode_coding_object instead of
7542 encode_coding_string to perform eol-conversion even if the string
7543 is unibyte.
7544
60afa08d
KH
7545 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7546 character.
7547
ef73e7be 7548 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7549 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7550
7b3a82d7
DN
75512009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7552
5654bf63
DN
7553 * callproc.c (Fcall_process): Remove always true #if.
7554
7b3a82d7
DN
7555 * lisp.h: Replace #if 0 code for checking with text pointing to
7556 the --enable-checking configure flag.
7557
7558 * emacs.c (main): Mention the --enable-profiling configure flag
7559 instead of using CFLAGS.
7560
878bde49
KR
75612009-08-26 Ken Raeburn <raeburn@raeburn.org>
7562
7563 * Makefile.in (buildobj.h): New target.
7564 (doc.o): Depend on it.
7565 (temacs${EXEEXT}): Don't generate buildobj.lst.
7566 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7567 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7568 ($(BLD)/doc.$(O)): Depend on it.
7569 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7570 provided by Eli Zaretskii.)
7571 ($(TEMACS)): Don't generate buildobj.lst.
7572 * doc.c: Include buildobj.h.
7573 (buildobj): New static variable.
7574 (Fsnarf_documentation): Use it, instead of opening and reading
7575 buildobj.lst.
7576
1574224c
MA
75772009-08-25 Michael Albinus <michael.albinus@gmx.de>
7578
7579 * dbusbind.c (Fdbus_call_method)
7580 (Fdbus_call_method_asynchronously): Use English numeric format for
7581 timeout values in doc string.
7582
d9da2f45
KH
75832009-08-25 Kenichi Handa <handa@m17n.org>
7584
ef73e7be
KH
7585 * alloc.c (mark_char_table): New function.
7586 (mark_object): Use mark_char_table for a char-table.
7587
d9da2f45
KH
7588 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7589 (CHAR_TABLE_REF): Use it.
7590
c8edcc01
KR
75912009-08-23 Ken Raeburn <raeburn@raeburn.org>
7592
7593 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7594 before invoking the newly build emacs to check for load-path
7595 shadowing.
7596
7763401b
GM
75972009-08-22 Glenn Morris <rgm@gnu.org>
7598
7599 * Makefile.in (bootstrap_exe): New variable.
7600 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7601 Use ${bootstrap_exe}.
7602
729eadda
EZ
76032009-08-22 Eli Zaretskii <eliz@gnu.org>
7604
7605 * coding.h (encode_coding_string): Don't encode unibyte strings.
7606 (Bug#4047)
7607
eb4c6ace
MA
76082009-08-22 Michael Albinus <michael.albinus@gmx.de>
7609
7610 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7611
7612 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7613 intended as hotfix only.
7614 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7615
36e34d1b
AR
76162009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7617
7618 * nsterm.m (ns_get_color): Update documentation properly for last
7619 change, and clean up loose ends in the code left by it. Fix
7620 longstanding bug with 16-bit hex parsing, and add support for
7621 yet another X11 format (rgb:r/g/b) for compatibility.
7622 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7623 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7624
f983eb8a
SM
76252009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7626
7627 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7628
3f56d3c6
MA
76292009-08-20 Michael Albinus <michael.albinus@gmx.de>
7630
7631 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7632 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7633 (xd_initialize, xd_pending_messages): Check, whether
7634 $DBUS_SESSION_BUS_ADDRESS is set.
7635
fb641d68
YM
76362009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7637
7638 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7639
7640 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7641
cf59a374
GM
76422009-08-20 Glenn Morris <rgm@gnu.org>
7643
7644 * emacs.c (system-type): Doc fix.
7645
1373f3be
SM
76462009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7647
7648 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7649 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7650
058ed861
MA
76512009-08-18 Michael Albinus <michael.albinus@gmx.de>
7652
1373f3be
SM
7653 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7654 New functions.
058ed861
MA
7655 (xd_initialize): Revert change from 2009-08-16.
7656
563a866e 76572009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7658
7659 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7660 font-group vector, return nil.
5fc05db0 7661
e42bdf01
CY
76622009-08-17 Chong Yidong <cyd@stupidchicken.com>
7663
7664 * process.c (status_notify): Don't perform redisplay.
7665 (Fdelete_process, list_processes_1, process_send_signal):
7666 Expliticly perform redisplay.
7667 (wait_reading_process_output): Always check process status, but
7668 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7669
4230ab74
KR
76702009-08-17 Ken Raeburn <raeburn@raeburn.org>
7671
1373f3be 7672 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7673 (XFLOAT_INIT): New macro for storing a float value.
7674 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7675 * fns.c (sxhash): Copy out the value of a float in order to
7676 examine its bytes.
7677 * dbusbind.c (xd_append_arg): Likewise.
7678
4230ab74
KR
7679 * emacs.c (main): Don't call syms_of_data twice.
7680
a0645cdd
MA
76812009-08-16 Michael Albinus <michael.albinus@gmx.de>
7682
7683 * dbusbind.c (xd_initialize): Add connection file descriptor to
7684 input_wait_mask, in order to let select() detect, whether a new
7685 message has been arrived.
ca4f31ea 7686 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7687
485db0ba
MA
76882009-08-15 Michael Albinus <michael.albinus@gmx.de>
7689
1373f3be
SM
7690 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7691 New functions.
485db0ba
MA
7692
7693 * lisp.h (xd_pending_messages): Declare.
7694
7695 * keyboard.c (readable_events): Call xd_pending_messages.
7696
b5b98ff4
CY
76972009-08-15 Chong Yidong <cyd@stupidchicken.com>
7698
1373f3be 7699 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7700
f8354c6e
CY
7701 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7702
b5b98ff4
CY
7703 * buffer.c (set_buffer_internal_1)
7704 (swap_out_buffer_local_variables): Check for unbound local
7705 variables (Bug#4138).
7706
8b9fc636
EZ
77072009-08-14 Eli Zaretskii <eliz@gnu.org>
7708
7709 * process.c (create_pty): Fix last change.
7710
ce959360
CY
77112009-08-13 Chong Yidong <cyd@stupidchicken.com>
7712
7713 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7714 (xbm_load_image): Caller changed.
64b807c9 7715 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7716
c7baf7e9
NR
77172009-08-13 Nick Roberts <nickrob@snap.net.nz>
7718
7719 * process.c (create_pty): New function.
7720 (Fstart_process): Use it to allow Emacs to just associate a pty
7721 with the buffer. See associated change in gdb-mi.el.
7722 (list_processes_1): Deal with no program name.
7723 (start_process_unwind): Use pid == -2 to mean no process.
7724
1ac9108a
SM
77252009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7726
7727 * cmds.c (nonundocount): New global variable.
7728 (keys_of_cmds): Initialize it.
7729 (Fself_insert_command): Use it to combine upto 20 sequential chars
7730 into a single undo entry, just like the Qself_insert_command code in
7731 keyboard.c does.
7732 Call frame_make_pointer_invisible, also like the Qself_insert_command
7733 code in keyboard.c does.
7734 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7735 than its own local replacement for it.
7736
e267324c
KR
77372009-08-10 Ken Raeburn <raeburn@raeburn.org>
7738
1ac9108a 7739 * fns.c (concat): Don't re-set string length to its current value.
77437343 7740
1ac9108a
SM
7741 * coding.h (decode_coding_string, encode_coding_string):
7742 Use SBYTES macro.
f0bed503 7743
1ac9108a 7744 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7745 (doprnt): Merge with doprnt1, discarding lispstrings code.
7746 * lisp.h (doprnt_lisp): Don't declare.
7747
416e006d
JL
77482009-08-07 Juri Linkov <juri@jurta.org>
7749
7750 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7751
6f7d5780
DN
77522009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7753
7754 * print.c (syms_of_print): Undo previous change.
7755
f19a0f5b
TZ
77562009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7757
7758 * lread.c (read1, syms_of_lread): Read hashtables back from the
7759 readable format.
7760
7761 * print.c (print_preprocess, print_object): Print hashtables fully
7762 and readably.
7763 (syms_of_print): Provide 'hashtable-print-readable.
7764
b9173dc2
AR
77652009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7766
7767 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7768 no family set.
7769 (nsfont_open): Handle case when entity has no family.
7770
1586503c
AR
77712009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7772
7773 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7774 element, not a list, for match case.
7775
087048cd
KH
77762009-07-28 Kenichi Handa <handa@m17n.org>
7777
7778 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7779 rigidly.
7780
7781 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7782 font_parse_xlfd. Check font properties more rigidly.
7783
780c2506
DN
77842009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7785
31fd7c5c
JB
7786 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7787 bsd-common.h.
780c2506 7788
a8c0cc18
KH
77892009-07-27 Kenichi Handa <handa@m17n.org>
7790
7791 * xfaces.c (face_with_height): Call font_clear_prop.
7792
4fbe2306
CY
77932009-07-26 Chong Yidong <cyd@stupidchicken.com>
7794
111d9af3
CY
7795 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7796
7797 * xterm.c (x_term_init): Use Qx.
7798
4fbe2306
CY
7799 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7800
1ac9108a 7801 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7802 (ns_get_color): Revert 2009-07-16 change.
7803
beb0b7f9
EZ
78042009-07-25 Eli Zaretskii <eliz@gnu.org>
7805
7806 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7807 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7808
2baf5e76
KR
78092009-07-25 Ken Raeburn <raeburn@raeburn.org>
7810
1ac9108a
SM
7811 * coding.h (decode_coding_string, encode_coding_string):
7812 Use SCHARS macro.
8890e5f5 7813
2baf5e76 7814 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7815 (load_depth): Delete.
2baf5e76
KR
7816 (Qload_in_progress): New variable.
7817 (load_unwind): Don't reference load_depth or load_in_progress.
7818 (Fload): Likewise; specbind Qload_in_progress instead.
7819 (init_lread): Don't initialize load_depth.
7820 (syms_of_lread): Initialize and protect Qload_in_progress.
7821
1395c6f5
AR
78222009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7823
7824 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7825
4e2f36cf
AR
78262009-07-23 Yavor Doganov <yavor@gnu.org>
7827
7828 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7829
5dd9a6f7
AR
78302009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7831
7832 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7833 Bugs 3792, 3720, 2402.
7834 (ns_lookup_indexed_color): Check for bad index.
7835 (ns_index_color): Init unused slot to 0.
7836 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7837 Bug 3714, possibly 3082.
5dd9a6f7 7838
c902b920
JR
78392009-07-22 Jason Rumney <jasonr@gnu.org>
7840
1ac9108a
SM
7841 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7842 Position IME window at cursor (Bug#2570).
c902b920
JR
7843 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7844 (globals_of_w32fns): Dynamically load functions required above.
7845
7846 * w32term.c (w32_draw_window_cursor): Send message to reposition
7847 any IME window.
7848
090101cf
CY
78492009-07-21 Chong Yidong <cyd@stupidchicken.com>
7850
7851 * fileio.c: Revert 2009-07-16 changes.
7852 (Vauto_save_include_big_deletions): New variable.
7853 (Fdo_auto_save): Disable auto-save only if
7854 auto-save-include-big-deletions is nil.
7855
e6583e3d
CY
78562009-07-21 Chong Yidong <cyd@stupidchicken.com>
7857
7858 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7859 the overflowed pixels into account (Bug#3879).
7860
ece435a5
KR
78612009-07-21 Ken Raeburn <raeburn@raeburn.org>
7862
7863 * lread.c (load_depth): New variable.
7864 (Fload, load_unwind, init_lread): Set it to the load recursion
7865 depth; set load_in_progress as a simple boolean based on the
7866 current load_depth. (Bug#3892)
7867
40b2d973
AR
78682009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7869
7870 * nsfont.m (ns_has_attribute): Remove.
7871 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7872
10be7e0d
JL
78732009-07-18 Juri Linkov <juri@jurta.org>
7874
7875 * process.c (Fset_process_query_on_exit_flag): Mention killing
7876 a buffer in docstring.
7877
fa055055
KH
78782009-07-17 Kenichi Handa <handa@m17n.org>
7879
7880 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7881
042f7b69
YM
78822009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7883
7884 * nsfns.m (Fns_set_alpha): Remove function.
7885 (syms_of_nsfns): Don't defsubr it.
7886
7887 * nsterm.m (ns_get_color): Remove incompatible color formats.
7888 (ns_color_to_lisp): Generate #rrggbb color format string.
7889
4be941e3
RS
78902009-07-16 Richard Stallman <rms@gnu.org>
7891
7892 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7893 (Fset_buffer_auto_saved): Handle save_length = -2.
7894
4e6b227d
CY
78952009-07-16 Chong Yidong <cyd@stupidchicken.com>
7896
7897 * xterm.c (Qx_gtk_map_stock): New var.
7898
7899 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7900 of calling intern each time.
7901
a1856973
YM
79022009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7903
7904 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7905 does tiling.
7906
7907 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7908
497e54d8
KH
79092009-07-14 Kenichi Handa <handa@m17n.org>
7910
72d36834
KH
7911 * font.c (font_vconcat_entity_vectors): New function.
7912 (struct font_sort_data): New member font_driver_preference.
7913 (font_compare): Check font_driver_preference.
7914 (font_sort_entities): The format of the first argument changed.
7915 (font_delete_unmatched): Likewise.
7916 (font_list_entities): The return type changed.
7917 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7918 (font_find_for_lface): Adjuste for the above changes.
7919 Don't suppress the checking of C even if the repertory supports it.
7920 (Flist_fonts): Adjust for the above changes.
72d36834 7921
1ac9108a
SM
7922 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7923 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7924 Reject a font who has adstyle property that is different from a
7925 langname derived from registry property.
1ac9108a 7926 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7927
b6046155
EZ
79282009-07-13 Eli Zaretskii <eliz@gnu.org>
7929
7930 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7931 local copy of dirfilename.
7932
fb6b6049
KH
79332009-07-13 Kenichi Handa <handa@m17n.org>
7934
e2402a5e
KH
7935 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7936 against max_char.
7937
fb6b6049
KH
7938 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7939 calling XSYMBOL (sym).
7940
65156807
EZ
79412009-07-11 Eli Zaretskii <eliz@gnu.org>
7942
1ac9108a
SM
7943 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7944 New function.
7945 (directory_files_internal) [WINDOWSNT]:
7946 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7947 the filesystem of the directory is fast or slow.
7948
7949 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7950 file name.
7951 (is_slow_fs): New function.
7952 (stat): Use it to determine whether to issue more system calls to
7953 get accurate file attributes, when w32-get-true-file-attributes is
7954 `local'.
7955
e0ab5fcf
JD
79562009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7957
7958 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7959 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7960 parameter font-parameter as default to the font dialog.
7961
784ceded
KH
79622009-07-10 Kenichi Handa <handa@m17n.org>
7963
7964 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7965
fb8edc0b
EZ
79662009-07-09 Eli Zaretskii <eliz@gnu.org>
7967
1ac9108a 7968 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7969
fb8edc0b
EZ
7970 * w32.c (stat): Treat UNC file names as residing on remote
7971 drives. (Bug#3542)
7972
635c75b1
KH
79732009-07-09 Kenichi Handa <handa@m17n.org>
7974
7975 * fontset.c (fontset_find_font): Fix previous change.
7976
c1d5ce94
MA
79772009-07-08 Michael Albinus <michael.albinus@gmx.de>
7978
7979 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
7980 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
7981 error flag.
7982
edb61b39
KH
79832009-07-08 Kenichi Handa <handa@m17n.org>
7984
374bf7e4
KH
7985 * fontset.c (fontset_find_font): Fix the logic of handling
7986 charset_matched.
7987 (font_for_char): Delete unused var.
7988 (generate_ascii_font_name): Delete it.
7989
edb61b39
KH
7990 * coding.h (JIS_TO_SJIS2): Fix the code range check.
7991
7992 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
7993 (encode_coding_sjis): Fix the code range check.
7994
0f3f018c
CY
79952009-07-07 Chong Yidong <cyd@stupidchicken.com>
7996
7997 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
7998 (Fexpand_file_name): Copy string data properly (Bug#3772).
7999
fcaf6f3a
JD
80002009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8001
8002 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8003 first MapNotify.
8004
6809ca75
KH
80052009-07-07 Kenichi Handa <handa@m17n.org>
8006
8007 * character.h (unibyte_has_multibyte_table): Delete extern.
8008 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8009
8010 * charset.c (Fset_charset_priority): Update charset_unibyte.
8011 (syms_of_charset): Initialize charset_unibyte.
8012
8013 * character.c (unibyte_has_multibyte_table): Delete it.
8014 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8015 charset_unibyte.
8016 (multibyte_char_to_unibyte_safe): Likewise.
8017 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8018
1ac9108a 8019 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8020 (x_produce_glyphs): Likewise.
8021
8022 * .gdbinit (xcharset): Fix the treating $arg0.
8023
ad9e2d54
EZ
80242009-07-04 Eli Zaretskii <eliz@gnu.org>
8025
8026 Emulation of `getloadavg' on MS-Windows.
50426a04 8027 * w32.c: Include float.h.
ad9e2d54
EZ
8028 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8029 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8030 (get_native_system_info, get_system_times): New functions.
8031 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8032 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8033 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8034 g_b_init_get_system_times, and num_of_processors.
8035
0a3472c7
JR
80362009-07-03 Jason Rumney <jasonr@gnu.org>
8037
8038 * w32term.c (w32_initialize): Use standard types.
8039
80904120
EZ
80402009-07-03 Eli Zaretskii <eliz@gnu.org>
8041
8042 * dired.c (Ffile_attributes): Decode user and group names by the
8043 locale's encoding. (Bug#3443)
8044
6978862d
DN
80452009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8046
f8d23104
DN
8047 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8048 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8049
8050 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8051
8052 * term.c (init_tty): Remove spurious #ifdef.
8053
6978862d
DN
8054 * m/mips.h: Mention this file is also used for netbsd.
8055 * m/pmax.h: Remove file.
8056
e044e4fc
JD
80572009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8058
8059 * xterm.h (struct x_display_info): Add invisible_cursor.
8060 (struct x_output): Add current_cursor.
8061
8062 * xterm.c (XTtoggle_invisible_pointer): New function.
8063 (x_define_frame_cursor): Don't define cursor if invisible or the
8064 same as before. Set current_cursor.
8065 (x_create_terminal): Set toggle_invisible_pointer_hook.
8066
8067 * xfns.c (make_invisible_cursor): New function.
8068 (x_set_mouse_color): Call make_invisible_cursor.
8069 Set current_cursor.
8070 (x_window): Set current_cursor.
8071
8072 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8073
8074 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8075 inserting a character.
8076 (read_avail_input): Call frame_make_pointer_visible.
8077
8078 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8079 (frame_make_pointer_invisible, frame_make_pointer_visible):
8080 New functions.
e044e4fc
JD
8081 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8082
8083 * frame.h: Declare frame_make_pointer_invisible and
8084 frame_make_pointer_visible.
8085 (struct frame): Add pointer_invisible.
8086
574c8efa
JD
80872009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8088
7b507248
JD
8089 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8090 frame isn't visible.
8091 (xg_frame_resized): If width/height is -1, get size of window
8092 from X server.
8093
8094 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8095 for MapNotify.
8096
835bdaa7 8097 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8098 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8099 (flush_and_sync): Reintroduce.
574c8efa 8100
3f1c6666 81012009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8102
31fd7c5c 8103 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8104
8105 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8106 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8107
8108 * frame.h: Declare Qsticky.
8109
cad9ef74
JD
8110 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8111
8112 * nsfns.m (ns_frame_parm_handlers): Ditto.
8113
8114 * frame.c: Declare Qsticky.
8115 (frame_parms): Add sticky.
8116
8117 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8118
8119 * xterm.h: Declare x_set_sticky.
8120
8121 * xterm.c (x_set_sticky): New function.
8122
69b16610
JD
8123 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8124 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8125 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8126
8127 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8128
8129 * frame.c: Qmaximized is new.
8130 (x_set_frame_parameters): Do not handle fullscreen specially.
8131 Only set width and height if explicitly set.
8132 (x_set_fullscreen): Handle Qmaximized.
8133 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8134 (syms_of_frame): Initialize Qmaximized.
8135
1ac9108a
SM
8136 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8137 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8138
8139 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8140 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8141 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8142 set gravity to NorthWestGravity when USE_GTK.
8143 (set_wm_state): New function.
31fd7c5c 8144 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8145 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8146 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8147 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8148 to x_real_positions and x_fullscreen_adjust.
8149
8150 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8151 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8152 flush_and_sync.
8153 (xg_height_changed): New function.
8154 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8155 and gtk_window_set_policy. Set frame gravity after parsing the
8156 geometry string.
3f1c6666
JD
8157 (xg_update_frame_menubar, free_frame_menubar)
8158 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8159 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8160 Remove calls to xg_frame_set_char_size.
8161
fd503d99
KH
81622009-07-01 Kenichi Handa <handa@m17n.org>
8163
8164 * keyboard.c (decode_keyboard_code): New function.
8165 (tty_read_avail_input): Decode the input bytes if necessary.
8166
1ac9108a
SM
8167 * coding.c (setup_coding_system):
8168 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8169 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8170 use Qno_conversion.
8171
24ed93fb
YM
81722009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8173
8174 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8175
99061dfc
CY
81762009-06-30 Chong Yidong <cyd@stupidchicken.com>
8177
1ac9108a 8178 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8179
ff90fbde
JR
81802009-06-30 Jason Rumney <jasonr@gnu.org>
8181
8182 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8183 is already loaded.
8184 Set user model ID if supported (bug#1849).
8185
5f445726
JM
81862009-06-29 Jim Meyering <meyering@redhat.com>
8187
8188 Remove useless if-before-xfree test.
8189 * nsfont.m (nsfont_close): Remove useless test.
8190 * term.c (delete_tty): Likewise.
8191 * w32.c (system_process_attributes): Likewise.
8192 * w32font.c (w32font_close): Likewise.
8193 * xfaces.c (x_free_gc): Likewise.
8194 * xselect.c (buffer): Likewise.
8195
b9607587
AS
81962009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8197
8198 * process.c (send_process): Keep decoded string in a local
8199 variable and protect it from GC. (Bug#3521)
8200
89ba96f4
EZ
82012009-06-28 Eli Zaretskii <eliz@gnu.org>
8202
8203 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8204 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8205
098a1589
CY
82062009-06-28 Chong Yidong <cyd@stupidchicken.com>
8207
485422be
CY
8208 * xdisp.c (start_display, handle_face_prop)
8209 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8210 (redisplay_window, try_window_id, produce_image_glyph):
8211 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8212
098a1589
CY
8213 * xterm.c (x_update_window_begin, x_new_focus_frame)
8214 (x_scroll_bar_handle_click, handle_one_xevent)
8215 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8216 (x_make_frame_visible, x_make_frame_invisible)
8217 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8218 code chunks that are now obsolete.
8219
78c38319
MA
82202009-06-28 Michael Albinus <michael.albinus@gmx.de>
8221
8222 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8223 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8224 for hours, when optimzation is enabled.
8225 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8226 (xd_read_message): Make them static.
8227
4189ed40
CY
82282009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8229
8230 * term.c (turn_on_face): Allow simultaneously bold and dim
8231 terminal faces (Bug#3530).
8232
cd9b5e16
CY
82332009-06-27 Chong Yidong <cyd@stupidchicken.com>
8234
4e23bedb
CY
8235 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8236
cd9b5e16
CY
8237 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8238 truncation glyphs (Bug#3686).
8239
07cc3c35
GM
82402009-06-27 Glenn Morris <rgm@gnu.org>
8241
8242 * m/pmax.h: Restore file, with only netbsd portions.
8243
31fd7c5c 82442009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8245
cd9b5e16 8246 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8247
42d4a64f
KH
82482009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8249
8250 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8251 the arg FORCE_SYMBOL.
8252
930fe55b 82532009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8254
8255 * fontset.c (fontset_find_font): When a usable rfont_def is found
8256 in a fallback font-group, make it the first element of the group.
8257
57ebc3fd
CY
82582009-06-24 Chong Yidong <cyd@stupidchicken.com>
8259
8260 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8261
f084f942
KH
82622009-06-24 Kenichi Handa <handa@m17n.org>
8263
8264 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8265 set for C.
8266 (fontset_font): Record the availability of a font for C both in
8267 the realized fontsets of the current one and the default one.
8268
2f686c87
DN
82692009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8270
8271 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8272 conditional, it is always defined on AIX.
8273
666e158e
MB
82742009-06-23 Miles Bader <miles@gnu.org>
8275
8276 * window.c (Vrecenter_redisplay): New variable.
8277 (syms_of_window): Initialize it.
8278 (Qtty): New extern declaration.
8279 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8280
c6da7cd2
JM
82812009-06-23 Jim Meyering <meyering@redhat.com>
8282
1ac9108a
SM
8283 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8284 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8285 pointer dereferences are guaranteed to be valid.
c6da7cd2 8286
678dca3d
KH
82872009-06-23 Kenichi Handa <handa@m17n.org>
8288
74d75424
KH
8289 * emacs.c (main): Call init_font ().
8290
8291 * font.h (Vfont_log): Extern it.
8292 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8293
8294 * font.c (font_sort_entities, font_list_entities)
8295 (font_matching_entity, font_open_entity)
8296 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8297 (Vfont_log): Delete static.
8298 (font_log_env_checked): Delete this variable.
8299 (font_add_log): Don't check font_log_env_checked.
8300 (font_deferred_log): Check Vfont_log.
8301 (init_font): New function.
8302
678dca3d
KH
8303 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8304
8305 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8306
8307 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8308
8309 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8310
8311 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8312 (face_for_char): Don't call font_deferred_log here.
8313 (font_for_char): Likewise.
8314
8a668709
CY
83152009-06-22 Chong Yidong <cyd@stupidchicken.com>
8316
9a01ee33
CY
8317 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8318 rather than its background_width for drawing the overline and
8319 underline (Bug#489).
8320
8321 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8322 rather than its background_width for drawing the overline and
8323 underline (Bug#489).
ec7c9926
CY
8324 (xg_default_icon_file): New variable.
8325 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8326 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8327
8a668709
CY
8328 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8329 (load_overlay_strings): Remove externs.
8330 (fast_find_position): Function deleted.
8331 (mouse_face_from_buffer_pos): New function, based on
8332 fast_find_position. Correctly handle before-strings,
8333 display-strings, and after-strings (Bug#1220).
8334 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8335
4d4c02d8
CY
83362009-06-21 Chong Yidong <cyd@stupidchicken.com>
8337
1ac9108a 8338 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8339 (move_it_in_display_line_to, move_it_in_display_line_to)
8340 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8341
70243478
CY
83422009-06-21 Chong Yidong <cyd@stupidchicken.com>
8343
8344 * Branch for 23.1.
8345
13087e59
JR
83462009-06-21 Jason Rumney <jasonr@gnu.org>
8347
8348 * w32term.c (keyboard_codepage): New static variable.
8349 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8350 (w32_read_socket) [WM_CHAR]: Use it to decode character
8351 input (bug#3237).
8352 (w32_initialize): Initialize it.
8353 (codepage_for_locale): New function.
8354
4735b74e
KR
83552009-06-20 Ken Raeburn <raeburn@raeburn.org>
8356
8357 * process.c (status_message): Pass Faset index argument as a lisp
8358 object, so as to work with USE_LISP_UNION_TYPE.
8359
0e727afa
YM
83602009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8361
8362 * coding.c (Ffind_coding_systems_region_internal):
8363 Cache checked characters.
8364
cf299835
KH
83652009-06-18 Kenichi Handa <handa@m17n.org>
8366
1ac9108a 8367 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8368
90f20d94
AS
83692009-06-18 Andreas Schwab <aschwab@redhat.com>
8370
8371 * xdisp.c (redisplay_internal): Check that the frame is still
8372 live after redisplay of its windows.
8373 (redisplay_windows): Check that the window is still live.
8374
7f1faf1c
KH
83752009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8376
8377 * coding.c (detect_coding_utf_16): Fix previous change.
8378
cc13543e
KH
83792009-06-16 Kenichi Handa <handa@m17n.org>
8380
8381 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8382 UTF-16 by checking the dispersion of Eth and Oth bytes.
8383
977b85f4
AS
83842009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8385
8386 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8387
66bd43d1
KH
83882009-06-15 Kenichi Handa <handa@m17n.org>
8389
8390 * process.c (status_message): Fix previous change. Be sure to
8391 decode a localized string.
8392
cb5ca9c5
YM
83932009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8394
8395 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8396 add comment explaining why.
8397
ec7709ba 83982009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8399
ec7709ba 8400 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8401
4b7f335c
AR
84022009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8403
8404 * nsfont.m (ns_attribute_value): Remove.
8405 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8406 (ns_has_attribute): Shrink the normal range.
8407 (ns_findfonts): Don't worry about requested spec in determining
8408 need for synthItal.
e41820ee 8409 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8410
73b26103
SZ
84112009-06-14 Seiji Zenitani <zenitani@mac.com>
8412
8413 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8414
5753e4da
KH
84152009-06-11 Kenichi Handa <handa@m17n.org>
8416
8417 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8418 overhang for the static composition case.
8419
3561b671
KH
84202009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8421
5753e4da
KH
8422 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8423 overhang for the automatic composition case.
8424
3561b671
KH
8425 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8426 composition case.
8427
852bbd41
CY
84282009-06-10 Chong Yidong <cyd@stupidchicken.com>
8429
8430 * xdisp.c (get_next_display_element): When handling wrap-prefix
8431 and line-prefix, treat \n as a control character (bug#3502).
8432
9903d1e6
KH
84332009-06-10 Kenichi Handa <handa@m17n.org>
8434
8435 * font.c (font_parse_family_registry): Fix for one-char foundry.
8436 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8437
0bcbaaaa
CY
84382009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8439
8440 * process.c (status_message): Fix handling of multibyte signal
8441 string (Bug#3499).
8442
40aa3f13
JM
84432009-06-09 Jim Meyering <meyering@redhat.com>
8444
1f80c7e2
CY
8445 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8446 color name is missing.
40aa3f13 8447
72d51285
KH
84482009-06-09 Kenichi Handa <handa@m17n.org>
8449
8450 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8451 FROM-CODE and TO-CODE are codepoints of CHARSET.
8452
c1d04d84
AR
84532009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8454
8455 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8456
84572009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8458
8459 Changes to support :script/:lang/:otf in NS font driver.
8460 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8461 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8462 indicate not part of font driver interface, and change callers.
8463 (ns_get_family): Remove pointless null check.
8464 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8465 ns_spec_to_descriptor, ns_descriptor_to_entity.
8466 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8467 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8468 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8469 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8470 (ns_get_req_script, ns_accumulate_script_ranges)
8471 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8472 New functions.
8473 (nsfont_list, nsfont_match): Use ns_findfonts.
8474 (nsfont_open): Use font descriptor instead of traits.
8475 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8476 (dump_glyphstring): Rename to ns_dump_glyphstring.
8477
c7eb9816
AR
8478 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8479
c1d04d84
AR
8480 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8481
8482 * fontset.c (fontset_from_font): Remove NS-specific code.
8483
ec7709ba 84842009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8485
8486 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8487 nonactive windows.
8488
31fd7c5c 84892009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8490
1ac9108a 8491 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8492
68852c13 84932009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8494
8495 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8496
6756cd1d
CY
84972009-06-07 Chong Yidong <cyd@stupidchicken.com>
8498
8499 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8500 account for the overflowing of newlines into the last glyph on the
8501 display line (Bug#3482).
8502
28bf482a
DR
85032009-06-05 David Reitter <david.reitter@gmail.com>
8504
ec7709ba
JB
8505 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8506 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8507 Fns_selection_exists_p, Fns_selection_owner_p.
8508
fdb55376
JR
85092009-06-03 Jason Rumney <jasonr@gnu.org>
8510
8511 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8512 available. (Bug#3379)
8513
05129fbe
KH
85142009-05-29 Kenichi Handa <handa@m17n.org>
8515
1ac9108a
SM
8516 * coding.c (get_translation_table):
8517 Check Venable_character_translation.
05129fbe 8518
ec7709ba 85192009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8520
ec7709ba
JB
8521 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8522 (x_make_frame_visible): Move frame to front rather than calling
15891144 8523 ns_raise_frame().
ec7709ba 8524 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8525 isn't key window.
ec7709ba 8526 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8527 drawRect may be called by NSView even if the frame is hidden.
8528
ec7709ba
JB
8529 * nsfns.m (Fx_create_frame): Follow other ports in
8530 determining visibility; default to t. Ensure async_visible is set.
15891144 8531
21f73755
EZ
85322009-05-23 Eli Zaretskii <eliz@gnu.org>
8533
8534 * dired.c (Ffile_attributes): Doc fix.
8535
34001e41
CY
85362009-05-22 Chong Yidong <cyd@stupidchicken.com>
8537
8538 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8539
46306a17
SM
85402009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8541
8542 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8543 and xfont_scratch_props.
8544 (syms_of_xfont): Do it here instead.
8545 (xfont_find_ccl_program): Delete, unused.
8546 (xfont_open): Delete unused var `i'.
8547
ef6e0694
KH
85482009-05-21 Kenichi Handa <handa@m17n.org>
8549
8550 * fontset.c (Qlatin): Don't make it static.
8551
46306a17
SM
8552 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8553 New functions.
ef6e0694
KH
8554 (xfont_scripts_cache, xfont_scratch_props): New variables.
8555 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8556 (xfont_list_pattern): Argument changed. Callers changed.
8557 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8558 (xfont_list): Don't reject a font spec with :script property.
8559 (xfont_has_char): Fix setting of encoding.
8560 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8561 xfont_scratch_props.
8562
85632009-05-19 Kenichi Handa <handa@m17n.org>
8564
46306a17 8565 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8566 Callers changed.
8567
85682009-05-18 Kenichi Handa <handa@m17n.org>
8569
8570 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8571
ac71ced7
SM
85722009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8573
8574 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8575 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8576
1c6d1051
YM
85772009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8578
8579 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8580 (x_delete_terminal): Dissociate resource database from display and
8581 then call XrmDestroyDatabase before closing display.
8582
9b9b779c
AR
85832009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8584
8585 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8586 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8587 whether selected frame is viable before raising it (based on patch
8588 by David Reitter), and improve commentary.
8589 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8590
cccd42d5
KH
85912009-05-15 Kenichi Handa <handa@m17n.org>
8592
8593 * font.c (Ffont_spec): Check arguments.
8594
337fbd17
CY
85952009-05-14 Chong Yidong <cyd@stupidchicken.com>
8596
8597 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8598 weight when testing attributes (Bug#3282).
8599
47a6002f
JD
86002009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8601
8602 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8603 what we expect to get in the next ConfigureNotify event.
8604
9cb363db
YM
8605 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8606 before Xft one (Bug#1696).
8607
b9126609
CY
86082009-05-07 David Reitter <david.reitter@gmail.com>
8609
8610 * nsfns.m (Fx_display_planes): Compute bitplanes using
8611 NSBitsPerPixelFromDepth (Bug#3207).
8612
27a69fd9
CY
86132009-05-10 Chong Yidong <cyd@stupidchicken.com>
8614
8615 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8616
00f37552
TTN
86172009-05-10 Ulrich Mueller <ulm@gentoo.org>
8618
8619 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8620
2d82a920
DR
86212009-05-07 David Reitter <david.reitter@gmail.com>
8622
ec7709ba
JB
8623 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8624 Respect mouse face background.
2d82a920 8625
46b0d52d
DR
86262009-05-07 David Reitter <david.reitter@gmail.com>
8627
ec7709ba
JB
8628 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8629 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8630 in ns_update_begin and ns_update_end.
8631
ce1b23bb
SM
86322009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8633
5996e1b7
SM
8634 * nsfns.m (ns_get_screen): Rewrite.
8635 Don't presume selected-frame is of type `ns'.
8636
ba98e3a0
SM
8637 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8638 all drivers.
8639
ce1b23bb
SM
8640 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8641
bcda200f
YM
86422009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8643
8644 * keyboard.h (add_user_signal): Fix typo in extern.
8645
8646 * lisp.h (add_user_signal): Remove extern.
8647
8648 * unexelf.c (unexec): Consider a section to precede the .bss section
8649 if its addresses overlap that of .bss.
8650 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8651 instead of dumping process.
8652
864660a2
SM
86532009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8654
8655 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8656
50da4e56
SM
86572009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8658
8659 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8660
51520a1a
DN
86612009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8662
8663 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8664 any statements.
8665
409ea3a1
AS
86662009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8667
59c4c60f
AS
8668 * process.c (read_process_output): Make sure the current buffer is
8669 always restored.
8670
409ea3a1
AS
8671 * coding.c (record_conversion_result): Don't modify
8672 Vlast_code_conversion_error for successful result.
8673 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8674
56f00ed2
KH
86752009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8676
8677 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8678 (load_charset_map): Remove unnecessary code.
56f00ed2 8679
4491c9d2
DR
86802009-04-30 David Reitter <david.reitter@gmail.com>
8681
35f5b128 8682 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8683 through f24.
8684
6970f632
CY
86852009-04-30 Chong Yidong <cyd@stupidchicken.com>
8686
8687 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8688
8689 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8690 face_at_buffer_position.
8691 (face_before_or_after_it_pos, get_next_display_element)
8692 (note_mouse_highlight): Update face_at_buffer_position call.
8693
8694 * term.c (term_mouse_highlight):
8695 * msdos.c (IT_note_mouse_highlight):
8696 * fontset.c (Finternal_char_font):
35f5b128 8697 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8698
8699 * dispextern.h (face_at_buffer_position): Update prototype.
8700
0c616f63
KH
87012009-04-30 Kenichi Handa <handa@m17n.org>
8702
35f5b128 8703 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8704
ad3aaf33
AS
87052009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8706
8707 * callproc.c (Fcall_process): Fix GC protection. Make sure
8708 current buffer is always restored.
8709
c3c963a0
YM
87102009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8711
8712 * atimer.c (init_atimer): Also clear stopped_atimers.
8713
8714 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8715
7e3386cb
YM
8716 * process.c (create_process): Clean up merger residues of
8717 2008-07-17 change.
8718
91f68422
CY
87192009-04-29 Ulrich Mueller <ulm@gentoo.org>
8720
8721 * lread.c (Vread_circle): New variable.
8722 (read1): Disable recursive read if Vread_circle is nil.
8723
24b34550
KH
87242009-04-29 Kenichi Handa <handa@m17n.org>
8725
8726 * fontset.h (set_default_ascii_font): Delete extern.
8727
8728 * fontset.c (set_default_ascii_font): Delete this unused function.
8729
8730 * frame.c (x_set_font): When ARG is a font-object, check if the
8731 font-object matches with the ASCII font-spec of the frame's
9c358bda 8732 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8733
77bf07e1
AS
87342009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8735
8736 * fns.c (Flocale_info): Protect vector from GC during decoding.
8737
8738 * process.c (Fstart_process): Protect argv strings from GC during
8739 encoding.
8740
2c55aacf
AS
87412009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8742
8743 * sysdep.c: Include <ctype.h>.
8744
b892d3c9
DR
87452009-04-27 David Reitter <david.reitter@gmail.com>
8746
35f5b128 8747 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8748 Remove commented-out code.
8749
9d0644c4
JB
87502009-04-26 Johan Bockgård <bojohan@gnu.org>
8751
8752 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8753
b7053016
JR
87542009-04-25 Jason Rumney <jasonr@gnu.org>
8755
8756 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8757
4e8231f3
YM
87582009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8759
8760 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8761 Swap bytes in short integer if fringe bitmap width > 8.
8762
493dcf2c
KH
87632009-04-23 Kenichi Handa <handa@m17n.org>
8764
8765 * xfaces.c (Fx_list_fonts): If a font size is specified in
8766 PATTERN, set it in returned scalable fonts.
8767
401e9e57
CY
87682009-04-22 Chong Yidong <cyd@stupidchicken.com>
8769
708e05dc
CY
8770 * keyboard.c (Fset_input_meta_mode): Doc fix.
8771
8772 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8773
1ac9108a 8774 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8775
8776 * coding.c (Fterminal_coding_system): Doc fix.
8777
8778 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8779 (Fx_display_pixel_height, Fx_display_planes)
8780 (Fx_display_color_cells, Fx_server_max_request_size)
8781 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8782 (Fx_display_mm_height, Fx_display_mm_width)
8783 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8784 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8785 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8786 (check_x_display_info): Handle terminal objects instead of
8787 terminal ids.
8788
401e9e57
CY
8789 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8790 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8791 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8792 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8793
df80c7f0
KH
87942009-04-21 Kenichi Handa <handa@m17n.org>
8795
5a8f12af 8796 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8797 (font_score): Check AVGWIDTH too.
908567ef 8798
df80c7f0
KH
8799 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8800 worst case.
1ac9108a
SM
8801 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8802 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8803
705af33f
JR
88042009-04-19 Jason Rumney <jasonr@gnu.org>
8805
8806 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8807 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8808
8809 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8810 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8811 get_phys_cursor_geometry.
8812
b71ac3dd 8813 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8814 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8815 using get_phys_cursor_geometry.
8816
8817 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8818 correctly calculated.
8819
dc2933eb
JD
88202009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8821
1ac9108a
SM
8822 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8823 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8824 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8825 is deprecated.
8826
973e7849
AS
88272009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8828
8829 * font.c (font_put_frame_data): Use xfree instead of free.
8830
314d66f4
JB
88312009-04-17 Juanma Barranquero <lekktu@gmail.com>
8832
8833 * w32font.c (Qja, Qko): Remove declarations.
8834 (syms_of_w32font): Don't DEFSYM them.
8835
cf702558
CY
88362009-04-17 Chong Yidong <cyd@stupidchicken.com>
8837
8838 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8839
8840 * font.h (Qja, Qko): Extern them.
8841
8842 * ftfont.c (Qja, Qko): Remove declarations.
8843
8844 * xfont.c (Qja, Qko): Remove declarations.
8845
b50504f5
KH
88462009-04-17 Kenichi Handa <handa@m17n.org>
8847
bde25748
KH
8848 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8849 string from a vector to handle Latin-1 characters correctly.
8850
b50504f5
KH
8851 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8852 entity even if the cache hits.
8853
f4646fff
AS
88542009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8855
8856 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8857 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8858
e7deaab0
AS
8859 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8860 * lisp.h: Adjust prototypes.
8861
0a0e7d49
CY
88622009-04-16 Chong Yidong <cyd@stupidchicken.com>
8863
8864 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8865 change (Bug#3003).
8866
3c908a57
KH
88672009-04-16 Kenichi Handa <handa@m17n.org>
8868
1ac9108a 8869 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8870
8871 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8872 adstyle.
8873
8874 * ftfont.c (Qja, Qko): Don't make them static.
8875 (enum ftfont_cache_for): New enum.
8876 (fc_charset_table): Undo the previous change.
8877 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8878 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8879 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8880 non-scarable font, try to get AVERAGE_WIDTH.
8881 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8882 Change ft_face_cache from a list of a hash-table. Don't check
8883 `ja' and `ko' adstyle here.
8884 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8885 FTFONT_CACHE_FOR_CHARET.
8886 (ftfont_get_charset): Undo the previous change.
1ac9108a 8887 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8888 (ftfont_close): Likewise.
8889 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8890
8891 * font.c (font_sort_entites): Change the meaning of the arg
8892 BEST-ONLY. Don't optimize for VEC of lenght 1.
8893 (font_select_entity): Just return the value of font_sort_entites.
8894
8895 * xfaces.c (merge_face_vectors): Reflect font properties in
8896 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8897 font_clear_prop if a face attribute doesn't change.
8898
3c908a57
KH
8899 * charset.h (charset_ksc5601): Extern it.
8900
8901 * charset.c (charset_ksc5601): New variable.
8902 (Fdefine_charset_internal): Set charset_ksc5601.
8903 (init_charset_once): Initialize charset_ksc5601 to -1.
8904
d65859c3
DN
89052009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8906
8907 * fileio.c (history_delete_duplicates): Remove unused declaration.
8908
8909 * callint.c (history_delete_duplicates): New declaration.
8910 (Fcall_interactively): Remove command history duplicates when
8911 history_delete_duplicates is true.
8912
3ba010e5
EZ
89132009-04-14 Eli Zaretskii <eliz@gnu.org>
8914
8915 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8916
06f19b91
KH
89172009-04-14 Kenichi Handa <handa@m17n.org>
8918
8919 * font.c (Ffont_info): Fix docstring. Fix the second element of
8920 the returned value (bug#2949).
8921
2cce8bfc
CY
89222009-04-14 Chong Yidong <cyd@stupidchicken.com>
8923
8924 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8925
d156542d
KH
89262009-04-14 Kenichi Handa <handa@m17n.org>
8927
8928 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8929 encoding charset is ascii_compatible.
8930
8931 * charset.c (Fdefine_charset_internal): Make charset
8932 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8933 code_offset is 0, and covers all ASCII characters.
8934
86fa089e
SM
89352009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8936
8937 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8938 (ns_string_to_pasteboard_internal):
8939 * nsmenu.m (process_dialog):
8940 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8941 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8942 * lisp.h (Fx_load_color_file): Declare.
8943
a8a3728b
KH
89442009-04-13 Kenichi Handa <handa@m17n.org>
8945
1ac9108a 8946 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8947 (font_select_entity): Suppress the code to optimize for the same
8948 kind of fonts.
8949 (font_load_for_lface): Get a font that supports at least ASCII
8950 characters.
8951
8952 * ftfont.c (Qja, Qko): New variables.
8953 (fc_charset_table): Delete uniquifier data for iso8859-1.
8954 (ftfont_get_latin1_charset): New function.
8955 (get_adstyle_property): New function.
8956 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8957 bitmap fonts.
8958 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8959 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8960 `ko' or `ja'.
8961 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8962 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8963 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8964 property.
8965 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8966 (syms_of_ftfont): DEFSYM Qja and Qko.
8967
483670b5
KH
89682009-04-09 Kenichi Handa <handa@m17n.org>
8969
12b55765
KH
8970 * charset.c (map_charset_chars): For a charset of `superset'
8971 method, fix calculation of code range.
8972
483670b5
KH
8973 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8974 from the list of extra properties.
8975 (font_clear_prop): Be sure to delete `:name' font property.
8976
57d3b93b
KH
89772009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8978
b4b2c2ca
YM
8979 * dispnew.c (redraw_overlapping_rows): Fix detection of
8980 overlapping for topmost and bottommost rows.
8981
1ac9108a 8982 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 8983
472c3609
JR
89842009-04-06 Jason Rumney <jasonr@gnu.org>
8985
8986 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
8987
ab193662
KH
89882009-04-06 Kenichi Handa <handa@m17n.org>
8989
8990 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
8991
8992 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
8993
0c26f026
KH
89942009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8995
8996 * ftfont.c (ftfont_open): Fix checking of the return value of
8997 FT_Load_Char. Fix setting font->underline_thickness.
8998
e173bbce
CY
89992009-04-04 Chong Yidong <cyd@stupidchicken.com>
9000
9001 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9002 (Fterminal_parameters, Fterminal_parameter)
9003 (Fset_terminal_parameter): In doc string, refer to terminal
9004 objects rather than terminal ids.
9005
693a2698
EZ
90062009-04-04 Eli Zaretskii <eliz@gnu.org>
9007
9008 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9009 ret_lim_data. (Bug#2867)
9010
d5221487
CY
90112009-04-03 Chong Yidong <cyd@stupidchicken.com>
9012
9013 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9014 so they don't get wider than the window, matching 2006-01-23
9015 change to the partner function in xdisp.c (Bug#2800).
9016
223509a3
KH
90172009-04-03 Kenichi Handa <handa@m17n.org>
9018
9019 * print.c (print_object): Make each lowest sub_char_table start a
9020 new line (Bug#2866).
9021
74fcd0b1
KH
90222009-04-02 Kenichi Handa <handa@m17n.org>
9023
9024 * fontset.c (fontset_font): Record no-font when a fontset
9025 explicitly tells not to try another font-specs.
9026
c542407d
SM
90272009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9028
9029 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9030
e3869731
KH
90312009-03-30 Kenichi Handa <handa@m17n.org>
9032
d8d2f142
KH
9033 * fontset.c (fontset_from_font): Specify only registry in a
9034 font-spec for all characters supported by that registry.
9035
e3869731
KH
9036 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9037 even if HAVE_M17N_FLT is not defined.
9038
5da5f805
CY
90392009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9040
9041 * ftfont.c: Conditionalize prototyping and use of
9042 ftfont_variation_glyphs.
9043
ab226c50
SM
90442009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9045
9628fed7
SM
9046 * frame.c (delete_frame): Work around compiler bug.
9047
9048 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9049 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9050 Some more EMACS_INT.
9051 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9052
9053 * xdisp.c (dump_glyph): Fix typo.
9054
ae19ba7c
SM
9055 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9056 (adjust_markers_gap_motion, adjust_markers_for_delete)
9057 (adjust_markers_for_insert, adjust_point)
9058 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9059 (make_gap, copy_text, count_size_as_multibyte, insert)
9060 (insert_and_inherit, insert_before_markers)
9061 (insert_before_markers_and_inherit, insert_1)
9062 (count_combining_before, count_combining_after, insert_1_both)
9063 (insert_from_string, insert_from_string_before_markers)
9064 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9065 (insert_from_buffer_1, adjust_after_replace)
9066 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9067 (replace_range_2, del_range, del_range_1, del_range_byte)
9068 (del_range_both, del_range_2, modify_region)
9069 (prepare_to_modify_buffer, signal_before_change)
9070 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9071 for buffer positions and sizes.
9072 * lisp.h: Adjust prototypes accordingly.
9073
9074 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9075 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9076 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9077
ab226c50
SM
9078 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9079
46dfb8fb
JD
90802009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9081
9082 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9083 lines and columns so we keep the same pixel height and width.
9084
9085 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9086 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9087 (x_handle_net_wm_state): New function to update frame parameter
9088 fullscreen.
9089 (x_term_init): Initialize atoms for _NET_WM_STATE.
9090
9091 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9092
d347e494
SM
90932009-03-27 Kevin Ryde <user42@zip.com.au>
9094
9095 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9096 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9097 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9098 (Fgpm_mouse_stop): Pass that new parameter.
9099 * termhooks.h (close_gpm): Adjust prototype.
9100
84db11d6
SM
91012009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9102
c95a5008
SM
9103 * lisp.h (Fx_focus_frame): Declare.
9104
84db11d6
SM
9105 * callint.c (Fcall_interactively): For '^' just delegate the work to
9106 handle-shift-selection.
9107 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9108
0a1958d6
CY
91092009-03-24 Chong Yidong <cyd@stupidchicken.com>
9110
0bfdff23
CY
9111 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9112
0a1958d6
CY
9113 * data.c (Qinteractive_form): New variable.
9114 (Finteractive_form): Use it.
9115
9116 * eval.c (Fcommandp): Use Qinteractive_form.
9117
58aec0d6
JR
91182009-03-24 Jason Rumney <jasonr@gnu.org>
9119
9120 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9121 Calculate total size precisely. Decode environment variables
9122 before substituting. (Bug#38)
9123
553dd618
KH
91242009-03-24 Kenichi Handa <handa@m17n.org>
9125
9126 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9127 encoding (Bug#2722).
553dd618 9128
c39ea606
JD
91292009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9130
9131 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9132 that gdpy is set.
9133
bc9b2b5e
AM
91342009-03-22 Alan Mackenzie <acm@muc.de>
9135
9136 * callint.c (Finteractive): Clarify the doc string - even
9137 promptless elements need \n separators.
9138
9f995a76
JR
91392009-03-22 Jason Rumney <jasonr@gnu.org>
9140
9141 * w32term.c (syms_of_w32term): Doc fix for
9142 x-use-underline-position-properties.
9143
22749e9a
EZ
91442009-03-21 Eli Zaretskii <eliz@gnu.org>
9145
9146 * w32.c (getpwuid): Change argument type to unsigned.
9147 (struct w32_id): Change type of `rid' member to unsigned.
9148 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9149 argument ID to unsigned. All callers changed.
9150 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9151
e00553bf
EZ
91522009-03-20 Eli Zaretskii <eliz@gnu.org>
9153
9154 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9155 negative, produce a float value.
9156
9157 * dired.c (make_uid, make_gid): New functions.
9158 (Ffile_attributes): Use them to avoid negative UID and GID.
9159
f761d6b6
JB
91602009-03-20 Juanma Barranquero <lekktu@gmail.com>
9161
9162 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9163 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9164 Fix typos in docstrings.
9165
d507f8d7
KH
91662009-03-19 Kenichi Handa <handa@m17n.org>
9167
9168 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9169 changed, use font_load_for_lface to get a new font object.
9170 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9171
9172 * frame.c (x_set_font): Handle the case that ARG is a cons.
9173
c68845e0
GM
91742009-03-19 Glenn Morris <rgm@gnu.org>
9175
9176 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9177
bfa49dd1
CY
91782009-03-19 Chong Yidong <cyd@stupidchicken.com>
9179
9180 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9181
8458d4c1
KH
91822009-03-19 Kenichi Handa <handa@m17n.org>
9183
9184 * charset.c (load_charset_map_from_file): When a mapfile can't be
9185 loaded, signal an error.
9186
78e7d1fe
EZ
91872009-03-18 Eli Zaretskii <eliz@gnu.org>
9188
9189 * dired.c (Ffile_attributes): Make sure UID and GID are always
9190 positive, even if the value is too large for a positive EMACS_INT.
9191 Doc fix.
9192
9193 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9194
5da9fdfa
YM
91952009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9196
9197 * xmenu.c (xdialog_show): Move Fredisplay call ...
9198 (Fx_popup_dialog): ... here.
9199
7519c40d
SM
92002009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9201
9202 * dired.c (file_name_completion): Disable the first optimization just
9203 installed, since it is not implemented correctly.
9204
2cd298e2
SM
92052009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9206
9207 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9208 only if the entry can affect bestmatch.
2cd298e2
SM
9209 Stop the search early, as Ftry_completion already does.
9210
48d37adf
CY
92112009-03-17 Chong Yidong <cyd@stupidchicken.com>
9212
e10c9c93 9213 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9214
9286b16a
CY
92152009-03-15 Chong Yidong <cyd@stupidchicken.com>
9216
9217 * keyboard.c (parse_menu_item): Don't display remappings as menu
9218 equivalent bindings (Bug#788).
9219
f7b146dc
JR
92202009-03-15 Jason Rumney <jasonr@gnu.org>
9221
9222 * w32term.h (WM_EMACS_PAINT): New message.
9223 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9224 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9225 before passing to lisp thread. (Bug#950)
9226
f761d6b6 92272009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9228
d93f9575
CY
9229 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9230 variable as it was never reset.
9231 (ns_term_init): Remove initialization of Lisp-settable defaults
9232 and ns_expand_space.
9233 (-setPanelFromDefaultValues): Remove ns_expand_space.
9234 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9235 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9236 i.e. no additional spacing, similar to Carbon port.
9237
d93f9575
CY
9238 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9239 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9240
305018ec
JD
92412009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9242
9243 * sound.c (alsa_configure): Remove call to deprecated
9244 snd_pcm_sw_params_set_xfer_align.
9245
f761d6b6 92462009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9247
9248 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9249 after clicking in a detached tool bar.
9250 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9251
46e722a9
SM
92522009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9253
348db3dd
SM
9254 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9255 int/Lisp_Object mixup).
46e722a9 9256
a3d16f39
KH
92572009-03-13 Kenichi Handa <handa@m17n.org>
9258
9259 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9260 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9261 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9262 (set_fontset_font): Change ARG to a vector. Handle range_list in
9263 ARG correctly.
9264 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9265 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9266 the above change.
9267 (fontset_from_font): Fix previous change.
fe24f56a 9268 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9269 entry. If FONTSET is the default fontset, don't set the extra
9270 slot of the returning char-table.
9271
b066e6b6
JB
92722009-03-12 Juanma Barranquero <lekktu@gmail.com>
9273
9274 * nsfns.m (Fx_close_connection): Doc fix.
9275 (Fns_do_applescript): Reflow docstring.
9276 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9277 (Fx_display_pixel_width, Fx_display_pixel_height)
9278 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9279 Fix typos in docstrings.
9280 (Fns_set_alpha): Fix typos in error messages.
9281
d472514e 92822009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9283
d472514e 9284 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9285 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9286 were used for such events.
9287
d472514e
JB
9288 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9289 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9290
d472514e 9291 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9292 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9293
fb930676
KH
92942009-03-11 Kenichi Handa <handa@m17n.org>
9295
ff85581a
KH
9296 * font.h (font_open_by_spec): Extern it.
9297
c50b7e98
KH
9298 * font.c (font_open_by_spec): New function.
9299 (font_open_by_name): Use font_open_by_spec.
9300
fb930676
KH
9301 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9302 fontset of the frame.
9303
9304 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9305 modify the default font of frames that use this fontset.
9306 (num_auto_fontsets): New variable.
9307 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9308 name. Be sure to set FONTSET_ASCII to the correct font name.
9309 (update_auto_fontset_alist): New function.
9310
df4e8455
JB
93112009-03-11 Juanma Barranquero <lekktu@gmail.com>
9312
9313 * makefile.w32-in: Update dependencies.
9314
0a375797
AR
93152009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9316
9317 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9318
61313fa3
SM
93192009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9320
9321 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9322
b55103fb
CY
93232009-03-10 Chong Yidong <cyd@stupidchicken.com>
9324
9325 * lread.c (Feval_buffer): Doc fix.
9326
dde2559c
KH
93272009-03-09 Kenichi Handa <handa@m17n.org>
9328
9329 * charset.c (Qfile_name_handler_alist): Extern it.
9330 (load_charset_map_from_file): Temporarily bind
9331 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9332
df4e8455 93332009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9334
47f588bb
GM
9335 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9336 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9337
4ddf94bd
AR
93382009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9339
4c9bdfc2
AR
9340 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9341 (x_set_window_size): Change back to calculated method of setting
9342 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9343 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9344 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9345
fe41ae9e
AR
9346 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9347
4c9bdfc2
AR
9348 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9349 accelerator in parens under GNUstep.
9350
825d0875
KH
93512009-03-06 Kenichi Handa <handa@m17n.org>
9352
9353 These changes are to detect incorrect composition sequence without
f3b3be74 9354 looking ahead the source. (Bug#2370)
825d0875
KH
9355
9356 * coding.h: Include "composite.h".
9357 (enum compisition_state): New enum.
9358 (struct compisition_status): New struct.
9359 (struct iso_2022_spec): New member cmp_status.
9360 (struct emacs_mule_spec): New struct.
9361 (struct coding_system): New members ctext_extended_segment_len and
9362 embedded_utf_8. Change the union member
9363 spec.emacs_mule_full_support to spec.emacs_mule.
9364
9365 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9366 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9367 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9368 (ADD_COMPOSITION_DATA): New arg nbytes.
9369 (emacs_mule_char): New arg cmp_status.
9370 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9371 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9372 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9373 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9374 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9375 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9376 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9377 (EMACS_MULE_COMPOSITION_END): New macro.
9378 (emacs_mule_finish_composition): New function.
9379 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9380 (decode_coding_emacs_mule): Avoid long looking ahead while
9381 handling composition.
9382 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9383 (ENCODE_COMPOSITION_RULE): New macro.
9384 (finish_composition): New function.
9385 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9386 (DECODE_COMPOSITION_START): New implementation.
9387 (DECODE_COMPOSITION_END): Likewise.
9388 (STORE_COMPOSITION_RULE): New macro.
9389 (decode_coding_iso_2022): Avoid long looking ahead while handling
9390 composition, CTEXT extended segment, and embedded UTF-8.
9391 (setup_coding_system): For a coding of type iso-2022, reset
9392 CODING_ISO_EXTSEGMENT_LEN (coding) and
9393 CODING_ISO_EMBEDDED_UTF_8 (coding).
9394 (get_translation): Delete arguments last_block, from_nchars,
9395 to_nchars. Callers changed.
9396 (produce_chars): Don't modify charbuf. Adjusted for the change of
9397 get_translation.
98a326f7 9398 (produce_composition): Adjust for the new annotation sequence.
825d0875 9399 (handle_composition_annotation): Likewise.
98a326f7 9400 (consume_chars): Adjust for the change of get_translation.
825d0875 9401
ccbc4452
AR
94022009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9403
4ddf94bd 9404 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9405
988a7ddb
KH
94062009-03-05 Kenichi Handa <handa@m17n.org>
9407
9408 * font.c (font_select_entity): New function.
9409 (font_find_for_lface): Use font_select_entity to select a font.
9410
9411 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9412 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9413 font with C restriction.
9414
98a326f7 94152009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9416
be1bce46 9417 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9418
10ea2b82
JR
94192009-03-04 Jason Rumney <jasonr@gnu.org>
9420
2c93b248 9421 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9422 characters that have already been read. (Bug#2569)
2c93b248 9423
10ea2b82
JR
9424 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9425 Log an error message if check_image_size failed.
9426 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9427 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9428
71a0c011
EZ
94292009-03-02 Eli Zaretskii <eliz@gnu.org>
9430
9431 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9432 when decoding process output.
9433
2f63bba8
RS
94342009-03-01 Richard M Stallman <rms@gnu.org>
9435
9436 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9437
9438 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9439
0a9564cb
EZ
94402009-02-28 Eli Zaretskii <eliz@gnu.org>
9441
9442 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9443 (decode_coding_emacs_mule, decode_coding_iso_2022)
9444 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9445 (decode_coding_raw_text, decode_coding_charset)
9446 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9447 Honor inhibit-eol-conversion. (Bug #2186)
9448
449148b3
JR
94492009-02-28 Jason Rumney <jasonr@gnu.org>
9450
9451 * coding.c (detect_coding_charset): If not checking latin extra,
9452 fail on characters between 0x80 and 0xA0. (Bug#2354)
9453
a4aee864
EZ
94542009-02-28 Eli Zaretskii <eliz@gnu.org>
9455
9456 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9457 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9458
d88bee5a
GM
94592009-02-27 Glenn Morris <rgm@gnu.org>
9460
9461 * callint.c (Finteractive): Doc fix.
9462
a808f22d
KH
94632009-02-27 Kenichi Handa <handa@m17n.org>
9464
9465 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9466
caf8d60c
CY
94672009-02-27 Chong Yidong <cyd@stupidchicken.com>
9468
9469 * font.c (font_style_to_value): Set value for unknown symbols to
9470 100 instead of 255.
b61137ea
CY
9471 (weight_table, slant_table, width_table): Treat "unspecified" as
9472 the default value.
caf8d60c 9473
1a0de25c
JB
94742009-02-26 Juanma Barranquero <lekktu@gmail.com>
9475
9476 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9477
8fc45744
JB
94782009-02-25 Juanma Barranquero <lekktu@gmail.com>
9479
107bd7d1
JB
9480 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9481 error as soon as a recursive load is detected.
8fc45744 9482
f097e223
AR
94832009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9484
9485 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9486 before caching.
9487
8810a12f
KH
94882009-02-24 Kenichi Handa <handa@m17n.org>
9489
9490 * fontset.c (fontset_find_font): Fix the condition for checking
9491 unavailable font.
9492
2c7d1565
GM
94932009-02-24 Glenn Morris <rgm@gnu.org>
9494
9495 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9496 whitespace that confuses documentation.
9497
a20878b6
MB
94982009-02-23 Miles Bader <miles@gnu.org>
9499
9500 * process.c (Flist_system_processes, Fprocess_attributes)
9501 (syms_of_process): Rename `system-process-attributes' to
9502 `process-attributes'.
9503
b3b58c01
AS
95042009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9505
1b3b981b
AS
9506 * coding.h (struct coding_system): Make safe_charsets a pointer to
9507 unsigned char.
9508 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9509 being 255.
9510 (SAFE_CHARSET_P): Likewise.
9511 (setup_iso_safe_charsets): Properly setup safe_charsets.
9512 (Fdefine_coding_system_internal): Likewise.
9513 (setup_coding_system): Likewise. Remove unneeded casts.
9514 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9515 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9516 unneeded casts.
9517
b3b58c01
AS
9518 * insdel.c (del_range_2): Don't modify gap contents when called
9519 from decode_coding_object. (Bug#1809)
9520
0b6f228c
CY
95212009-02-21 Chong Yidong <cyd@stupidchicken.com>
9522
9523 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9524 Qfont_object.
9525 (Ftype_of): Recognize font objects.
9526
9527 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9528
9529 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9530 moved to data.c.
9531
52f8870b
AR
95322009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9533
9534 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9535 async_iconified. Based on a patch by Christian Lynbech
9536 <christian.lynbech@tieto.com>.
9537 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9538
7087d5e9
GM
95392009-02-20 Glenn Morris <rgm@gnu.org>
9540
9541 * syntax.c (Fskip_chars_forward): Fix doc typo.
9542
41d2ceef
CY
95432009-02-20 Chong Yidong <cyd@stupidchicken.com>
9544
9545 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9546
1a3b7ca6
CY
95472009-02-19 Chong Yidong <cyd@stupidchicken.com>
9548
9549 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9550
73cce38d
KH
95512009-02-19 Kenichi Handa <handa@m17n.org>
9552
9553 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9554 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9555
a51092ee
DN
95562009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9557
9558 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9559
c423ecca
KH
95602009-02-18 Kenichi Handa <handa@m17n.org>
9561
9562 * font.c (font_check_otf_features): Fix handling of `nil' element.
9563 (Ffont_spec): Describe :lang and :otf in the docstring.
9564
4c1958f4
AS
95652009-02-16 Andreas Schwab <schwab@suse.de>
9566
9567 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9568 string.
9569
5704f39a
KH
95702009-02-16 Kenichi Handa <handa@m17n.org>
9571
9572 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9573 (Bug#1723)
5704f39a 9574
8f0085aa
CY
95752009-02-14 Chong Yidong <cyd@stupidchicken.com>
9576
a057d86a 9577 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9578
9579 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9580 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9581
aff01dd9
EZ
95822009-02-14 Eli Zaretskii <eliz@gnu.org>
9583
9584 * msdos.c (MAX_SCREEN_BUF): New macro.
9585 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9586 Encode the entire run of glyphs sharing the same face, instead of
9587 doing that one glyph at a time (fixes a bug with displaying
9588 double-size characters).
9589
ba301db3
AR
95902009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9591
9592 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9593
9594 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9595 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9596 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9597
9598 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9599 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9600
51d861de
SM
96012009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9602
ac146f82 9603 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9604 invisible areas.
9605
7fed8996
JR
96062009-02-12 Jason Rumney <jasonr@gnu.org>
9607
631ea4fb
JR
9608 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9609 (add_font_entity_to_list): Call check_face_name even when family
9610 is unspecified.
9611
cb4a3e42
JR
9612 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9613 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9614 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9615
7fed8996 9616 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9617 raster fonts. (Bug#2219)
7fed8996 9618
895416e3
KH
96192009-02-12 Kenichi Handa <handa@m17n.org>
9620
9621 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9622 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9623 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9624 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9625 (find_automatic_composition): While looking forward and backward,
9626 check static composition. Fix where to stop looking forward.
9627 (composition_adjust_point): Fix checking of static composition.
9628 (Fcomposition_get_gstring): Pay attention to
1dacf998 9629 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9630
9631 * lisp.h (fast_looking_at): Extern it.
9632
9633 * search.c (fast_looking_at): New function.
9634
51d861de 9635 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9636 <struct glyph>.u.cmp.to.
9637 (append_composite_glyph): Likewise.
9638
51d861de 9639 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9640 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9641 composition.
51d861de 9642 (append_composite_glyph): Adjust for the change of
895416e3
KH
9643 <strcut glyph>.u.cmp.to.
9644
8510724d
JB
96452009-02-11 Juanma Barranquero <lekktu@gmail.com>
9646
9647 * casetab.c (init_casetab_once):
9648 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9649 * font.c (font_update_lface):
9650 * fontset.c (Fnew_fontset):
9651 * ftfont.c (ftfont_drive_otf):
9652 * xfont.c (xfont_open):
9653 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9654
294fa707
SM
96552009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9656
9657 * fileio.c (Fwrite_region): !NILP -> CONSP.
9658
b5bfebec
AS
96592009-02-10 Andreas Schwab <schwab@suse.de>
9660
9661 * process.c (send_process): Properly relocate pointer into data
adab88bd 9662 when using encoded data. (Bug#2272)
b5bfebec 9663
cb84a2be
KH
96642009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9665
9666 * coding.c (detect_coding_charset): Fix previous change.
9667
89e09428
JR
96682009-02-08 Jason Rumney <jasonr@gnu.org>
9669
9670 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9671 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9672
4470a277
AS
96732009-02-07 Andreas Schwab <schwab@suse.de>
9674
9675 * unexelf.c (unexec): Fix error message.
9676
3175b12a
AR
96772009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9678
9679 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9680 when modal window is active. (Bug #2152)
3175b12a
AR
9681 (applicationShouldTerminate:): Remove now-unneeded while loop
9682 around NSRunAlertPanel.
9683
9684 * nsmenu.m (popupSession): New file-global variable.
9685 (pop_down_menu): End the popupSession before closing dialog.
9686 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9687 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9688 don't query NSApp for events (just sleep instead).
9689
8434d0b8
EZ
96902009-02-07 Eli Zaretskii <eliz@gnu.org>
9691
51d861de
SM
9692 * coding.c (syms_of_coding) <translation-table-for-input>:
9693 Modify doc string to discourage use for character code unification.
8434d0b8 9694
aa82edfd
CY
96952009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9696
9697 * atimer.c (run_timers): Update pending_atimers.
9698
2d283c7c
CY
96992009-02-06 Chong Yidong <cyd@stupidchicken.com>
9700
eb306cab
CY
9701 * image.c (svg_load_image): Fix last change.
9702
2d283c7c
CY
9703 * xfns.c (Fx_create_frame): Signal an error if no font is
9704 found (Bug#2147).
9705
4d8e170e
JB
97062009-02-05 Juanma Barranquero <lekktu@gmail.com>
9707
9708 * character.c (syms_of_character) <script-representative-chars>:
9709 Fix typo in docstring.
9710
c96169a0
AR
97112009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9712
9713 * nsmenu.m (pop_down_menu): New function.
9714 (ns_popup_dialog): Call it on unwind.
9715 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9716 call timer_check() (Bug#2154).
9717 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9718 handling_signal is set.
9719 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9720
31fd7c5c 9721 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9722
9723 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9724
9725 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9726
51d861de
SM
9727 * keyboard.c (poll_for_input_1, handle_async_input):
9728 Set handling_signal under HAVE_NS.
c96169a0 9729
aacd8ba1
GM
97302009-02-04 Glenn Morris <rgm@gnu.org>
9731
9732 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9733
4cb75c4b
KH
97342009-02-04 Kenichi Handa <handa@m17n.org>
9735
9736 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9737
9738 * charset.c (Fchar_charset): New optional arg restriction.
9739
9740 * coding.h (coding_system_charset_list): Extern it.
9741
9742 * coding.c (coding_system_charset_list): New function.
9743
9744 * composite.c: Include coding.h and termhooks.h.
9745 (composition_gstring_p): Fix for the terminal case.
9746 (composition_gstring_width): Likewise.
9747 (fill_gstring_body): Likewise.
9748 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9749 the frame.
9750 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9751 is within a composition.
867d4bb3 9752 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9753
9754 * term.c (encode_terminal_code): Fix handling of composition.
9755 (produce_composite_glyph): For static composition, get pixel_width
9756 from struct composition.
9757
826ba17e
AS
97582009-02-02 Andreas Schwab <schwab@suse.de>
9759
9760 * unexelf.c (unexec): Handle unaligned bss offset.
9761
8ad093db
AR
97622009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9763
9764 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9765 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9766
8ad093db
AR
9767 * keyboard.c (handle_interrupt): Don't call
9768 quit_throw_to_read_char() under NS.
d0a76a6e 9769
8ad093db
AR
9770 * blockinput.h: Remove NS-specific code.
9771
4d18a7a2
DN
97722009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9773
db878925
DN
9774 * dispnew.c (window_change_signal): Don't try to get the size of a
9775 suspended tty frame.
9776 * term.c (Fresume_tty): Resize if the size has changed while the
9777 tty was suspended.
9778
4d18a7a2
DN
9779 * alloc.c (mark_stack): Properly conditionalize previous change.
9780
8984df7c
JB
97812009-01-30 Juanma Barranquero <lekktu@gmail.com>
9782
9783 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9784 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9785 Remove; this code is not used on Windows.
9786
75f4f1ac
EZ
97872009-01-30 Eli Zaretskii <eliz@gnu.org>
9788
9789 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9790 EOLs that also has stray ^M characters.
9791
07a1e794
JB
97922009-01-30 Juanma Barranquero <lekktu@gmail.com>
9793
9794 * atimer.c (run_timers, alarm_signal_handler):
9795 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9796 * w32inevt.c (w32_console_read_socket):
9797 * w32term.c (w32_read_socket):
9798 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9799
a8b11cc9
CY
98002009-01-30 Chong Yidong <cyd@stupidchicken.com>
9801
9802 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9803 Initialize it as a relative filename pattern.
9804 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9805 (Fcall_process_region): Simplify temp file creation using
9806 temporary-file-directory.
9807
c279587b
EZ
98082009-01-29 Eli Zaretskii <eliz@gnu.org>
9809
9810 * msdos.c: Rename pending_signals to msdos_pending_signals.
9811 (sig_suspender, sigprocmask): Adjust.
9812
a8fe3242
CY
98132009-01-29 Chong Yidong <cyd@stupidchicken.com>
9814
9815 * keyboard.c (pending_signals): New var.
9816 (poll_for_input, input_available_signal, init_keyboard): Set it.
9817 (process_pending_signals): New function.
9818
9819 * lisp.h (QUIT): Check pending_signals instead of
9820 interrupt_input_pending. Use process_pending_signals.
9821
51d861de 9822 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9823
51d861de 9824 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9825
9826 * sysdep.c (emacs_write): Use process_pending_signals.
9827
9828 * xterm.c (XTread_socket): Update pending_signals.
9829
9830 * w32term.c (w32_read_socket): Update pending_signals.
9831
9832 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9833
6570a1c4
KH
98342009-01-29 Kenichi Handa <handa@m17n.org>
9835
9836 * xftfont.c (xftfont_has_char): New function.
9837 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9838
d72a4afa
AR
98392009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9840
9841 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9842 under GNUstep.
9843 (ns_query_color): New declaration.
9844
9845 * nsterm.m (ns_confirm_quit): New variable.
9846 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9847 (EmacsApp-applicationShouldTerminate:): Use it.
9848 (EmacsPrefsController): Let user set it.
9849 (ns_query_color): New function.
9850 (ns_defined_color): Use it.
9851 (ns_initialize): Drop.
9852 (ns_term_init): Add two lines from ns_initialize(), and set
9853 input_interrupt_mode to nil.
9854
9855 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9856 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9857
9fe78804
KH
98582009-01-28 Kenichi Handa <handa@m17n.org>
9859
9860 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9861 (fontset_get_font_group): Remember that no font-group is specified
9862 for C.
9fe78804 9863
fa57de36
CY
98642009-01-27 Chong Yidong <cyd@stupidchicken.com>
9865
930600e9
CY
9866 * fns.c (concat): Check for string overflow (bug#1787).
9867
fa57de36
CY
9868 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9869 Quadruple undo limits (bug#1501).
9870
7179ce7b
KH
98712009-01-27 Kenichi Handa <handa@m17n.org>
9872
9873 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9874 directly use GT_Get_Char_index.
9875
9876 * xftfont.c (struct xftfont_info): New member `index'.
9877
9878 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9879 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9880
5be8fcc0
CY
98812009-01-26 Kenichi Handa <handa@m17n.org>
9882
9883 * fontset.c (fontset_find_font): Fix handling of non-cons return
9884 value of fontset_get_font_group.
9885 (fontset_font): Revert last change.
9886
19ae3e61
JR
98872009-01-26 Jason Rumney <jasonr@gnu.org>
9888
9889 * w32font.c (w32font_list_internal): Return quickly if registry is
9890 unknown. Simplify final return.
9891 (add_font_entity_to_list): Break complex logic down into more
9892 manageable chunks. Move unknown registry check to
9893 w32font_list_internal.
9894
8612b71a
AR
98952009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9896
9897 Changes to remove Feval calls from GUI under NS.
9898
d8038940
JB
9899 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9900 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9901 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9902
9903 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9904 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9905 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9906 instead of NON_ASCII_KEYSTROKE_EVENT.
9907 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9908 (EmacsApp-applicationShouldTerminate:): Query user.
9909 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9910 instead of Feval.
9911
9912 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9913
9914 * keyboard.c (kbd_buffer_get_event): Check for it.
9915 (keys_of_keyboard): Define lispy keys for
9916 ns-put/unput-working-text.
9917
9918 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9919 versions.
9920 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9921
6288ae55
CY
99222009-01-25 Chong Yidong <cyd@stupidchicken.com>
9923
9924 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9925 setting current_buffer directly. (Bug#2044)
6288ae55 9926
289e7f8f
CY
99272009-01-24 Chong Yidong <cyd@stupidchicken.com>
9928
5ce87308 9929 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9930 any work. (Bug#1952, bug#1990).
5ce87308 9931
64cc3cf6 9932 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9933
b3243e6f
AR
99342009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9935
9936 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9937 (ns_no_defaults): New declaration.
9938 (main): Use it.
e0d2e69a 9939
d900b2af 9940 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9941
d900b2af 9942 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9943
d900b2af
AR
9944 * nsterm.m (ns_no_defaults): New variable.
9945 (ns_initialize): Don't read defaults when ns_no_defaults.
9946 (EmacsView-readSelectionFromPasteboard:)
9947 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9948 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9949 (ns_dumpglyphs_stretch): New function.
9950 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9951 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9952
e0d2e69a
AR
9953 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9954
3ac71f5d
CY
99552009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9956
9957 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9958 call for Sparc64.
9959
3fe53a83
AR
99602009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9961
9962 * nsfns.m:
9963 * nsgui.h:
9964 * nsmenu.m:
9965 * nsselect.m:
9966 * nsterm.h:
9967 * nsterm.m: Remove '23' comments that indicated code added during
9968 update from emacs-20 -> emacs-23.
9969
10f87c6f 99702009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9971
9972 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9973 ns_alternate_modifier. (Bug#1217)
a3b53a85 9974
c7cef62d
AR
9975 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9976 Display all shortcuts, including those w/o super modifier.
9977
575fb8bd
AR
9978 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
9979
918b848b
CY
99802009-01-22 Chong Yidong <cyd@stupidchicken.com>
9981
9982 * fileio.c (Vwrite_region_post_annotation_function)
9983 (Vwrite_region_annotation_buffers): New vars.
9984 (build_annotations_unwind): Just reset
9985 Vwrite_region_annotation_buffers.
9986 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
9987 Call write-region-post-annotation-function.
9988 (build_annotations): Add to Vwrite_region_annotation_buffers if
9989 buffer changes.
9990
a39e2539
AR
99912009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
9992
9993 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
9994 Tiger.
51d861de
SM
9995 * nsfns.m (ns_do_applescript):
9996 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 9997
35ed44db
AR
99982009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
9999
10000 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10001
cbe0b5bf
AR
100022009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10003
10004 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10005
6049d3a0
AR
10006 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10007
10008 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10009 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10010 handle Ctrl-tab. (Bug#1841)
10011 (ns_get_color): Use unsigned long long for scanned hex string value.
10012 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10013 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10014 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10015 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10016 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10017 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10018 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10019
d3810c21 10020 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10021 DPI. (Bug#1316)
d3810c21
AR
10022 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10023 values in onTiger section.
4c7077c3 10024
e301e634
CY
100252009-01-19 Chong Yidong <cyd@stupidchicken.com>
10026
7f82490b
CY
10027 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10028 Check return value of font_spec_from_name.
64cc3cf6 10029 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10030
10031 * font.c (font_spec_from_name): Return Qnil if font name could not
10032 be parsed.
10033 (font_parse_name): Treat a `?' character as part of an XLFD.
10034
e301e634
CY
10035 * fns.c (Fsubstring): Doc fix.
10036
1c0db158
KH
100372009-01-19 Kenichi Handa <handa@m17n.org>
10038
51d861de 10039 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10040 (ftfont_list): Likewise.
10041
acf20901
JB
100422009-01-18 Juanma Barranquero <lekktu@gmail.com>
10043
fff4e459
JB
10044 * dbusbind.c (Fdbus_register_signal):
10045 * process.c (conv_sockaddr_to_lisp):
10046 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10047
acf20901
JB
10048 * callproc.c (Fgetenv_internal): Doc fix.
10049
e7abcdfb
CY
100502009-01-16 Chong Yidong <cyd@stupidchicken.com>
10051
10052 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10053 it is not even used.
10054
b60861e6
GM
100552009-01-16 Glenn Morris <rgm@gnu.org>
10056
10057 * font.c (Ffont_variation_glyphs): Silence compiler.
10058
8db52afe
JB
100592009-01-15 Juanma Barranquero <lekktu@gmail.com>
10060
10061 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10062 Reported by David Robinow <drobinow@gmail.com>.
10063
4cddb209
KH
100642009-01-15 Kenichi Handa <handa@m17n.org>
10065
51d861de 10066 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10067
f247f67b
JR
100682009-01-14 Jason Rumney <jasonr@gnu.org>
10069
10070 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10071 never a fontset. (Bug#1562)
f247f67b 10072
f56a4450
KH
100732009-01-14 Kenichi Handa <handa@m17n.org>
10074
10075 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10076 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10077
4e99855e
CY
100782009-01-13 Chong Yidong <cyd@stupidchicken.com>
10079
10080 * font.c (font_clear_prop): If clearing the family, clear the font
10081 width index too.
10082
fff4e459 10083 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10084
24f01470
JB
100852009-01-12 Juanma Barranquero <lekktu@gmail.com>
10086
10087 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10088 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10089 functions, use sizeof.
10090
a41240a3
MR
100912009-01-12 Martin Rudalics <rudalics@gmx.at>
10092
10093 * keyboard.c (read_char): Fix case where last_nonmenu_event
10094 returned a bad value with submenus. (Bug#447)
10095
944636b8
CY
100962009-01-12 Chong Yidong <cyd@stupidchicken.com>
10097
10098 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10099 family, clear the font width index too.
10100
0dad7c6f
JR
101012009-01-11 Jason Rumney <jasonr@gnu.org>
10102
10103 * keyboard.c (cmd_error_internal): Exit when errors occur before
10104 frame creation and not in daemon mode. (Bug#1836)
10105
7c2363af
CY
101062009-01-10 Chong Yidong <cyd@stupidchicken.com>
10107
10108 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10109 of a display vector, backtrack.
10110 (try_window_reusing_current_matrix): Check glyph type before
10111 referencing charpos member.
10112
97b1b294
EZ
101132009-01-10 Eli Zaretskii <eliz@gnu.org>
10114
10115 Fix Bug #876:
10116
10117 * coding.c (inhibit_null_byte_detection): New variable.
10118 (detect_coding, detect_coding_system): Don't pay attention to null
10119 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10120 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10121 <inhibit-iso-escape-detection>: Doc fix.
10122
4624b6e3
JR
101232009-01-09 Jason Rumney <jasonr@gnu.org>
10124
10125 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10126 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10127 Only report Unicode Plane 2 fonts as unicode-sip.
10128
323b840c
CY
101292009-01-09 Chong Yidong <cyd@stupidchicken.com>
10130
51d861de
SM
10131 * xfaces.c (Fx_font_family_list): Delete function.
10132 Move compatibility version to faces.el.
323b840c 10133
51d861de 10134 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10135
eba7400d
MR
101362009-01-09 Martin Rudalics <rudalics@gmx.at>
10137
10138 * frame.c (x_set_frame_parameters): Remember requested value for
10139 fullscreen before it's reset by the parameter handler.
10140
4b09796d
GM
101412009-01-09 Glenn Morris <rgm@gnu.org>
10142
10143 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10144 (last_command_event): ... and update all users.
4b09796d
GM
10145 (last_input_char): For clarity, rename to...
10146 (last_input_event): ... and update all users.
10147 (last-command-char, last-input-char): Move to subr.el as aliases.
10148 * cmds.c, commands.h: Update for last_command_char rename.
10149
14ccea62
CY
101502009-01-08 Chong Yidong <cyd@stupidchicken.com>
10151
51d861de 10152 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10153
5f004711
JR
101542009-01-08 Jason Rumney <jasonr@gnu.org>
10155
10156 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10157 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10158 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10159 Don't declare.
fff4e459 10160 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10161 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10162
b71f6f73
KH
101632009-01-07 Kenichi Handa <handa@m17n.org>
10164
50b06221 10165 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10166 remember the coding system used for decoding in
50b06221
KH
10167 coding_system (Bug#1039).
10168
b71f6f73 10169 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10170 breaking the loop. (Bug#870)
b71f6f73
KH
10171 (decode_coding_utf_16, decode_coding_emacs_mule)
10172 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10173 (decode_coding_charset): Likewise.
10174
56f668f7
MR
101752009-01-05 Martin Rudalics <rudalics@gmx.at>
10176
10177 * frame.c (x_set_frame_parameters): Make sure height (width) get
10178 applied when fullwidth (fullheight) is set. (Bug#1522)
10179
5da9424d
JB
101802009-01-04 Juanma Barranquero <lekktu@gmail.com>
10181
10182 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10183 (utc_base): Declare as ULONGLONG, not long double.
10184 (convert_time_raw): Delete.
10185 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10186 (initialize_utc_base): New function.
10187 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10188 (convert_from_time_t): Use initialize_utc_base; compute result with
10189 64-bit arithmetic.
10190 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10191
c4605e09
EZ
101922009-01-03 Eli Zaretskii <eliz@gnu.org>
10193
9acef61c 10194 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10195 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10196 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10197 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10198 [!subprocesses]: Define.
10199 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10200 (Flist_system_processes, Fsystem_process_attributes)
10201 [!subprocesses]: Call list_system_processes and
10202 system_process_attributes instead of returning Qnil.
10203
9acef61c
JB
10204 * dosfns.c (system_process_attributes, list_system_processes):
10205 New functions.
c4605e09
EZ
10206
10207 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10208
10209 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10210 Don't use the default (no-op) implementation.
10211
8b7d0a16
JR
102122009-01-03 Jason Rumney <jasonr@gnu.org>
10213
a6d46bc1
JR
10214 * keyboard.c (parse_modifiers_uncached): Wheel events are
10215 clicks (bug#687).
10216
8b7d0a16
JR
10217 * w32term.c (x_query_colors, x_query_color): New functions.
10218
10219 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10220 (svg_load_image): Cast returned pointers from dynamically loaded
10221 functions. Eliminate W32 specific code.
10222
bfe11752
DN
102232009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10224
89e2438a
DN
10225 * nsfns.m (x_set_foreground_color, x_set_background_color)
10226 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10227 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10228 x_ prefix instead of ns_. Update references.
10229 (syms_of_nsfns): Add a FIXME comment.
10230
10231 * nsterm.m (x_set_cursor_type): New prototype.
10232 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10233
bfe11752
DN
10234 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10235 for Solaris instead of incorrectly providing Qutime and Qcutime.
10236
031da700
EZ
102372009-01-02 Eli Zaretskii <eliz@gnu.org>
10238
10239 * w32.c (process_times): Compute sum of utime and stime.
10240 (system_process_attributes): Add Qtime to the alist.
10241
10242 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10243 and add them to the alist.
10244
10245 * process.c (top level) <Qtime, Qctime>: New variables.
10246 (syms_of_process): staticpro them.
10247 (Fsystem_process_attributes): Add their documentation to the doc
10248 string.
10249
10250 * process.h: Declare Qtime and Qctime.
10251
df23bf08
JR
102522009-01-02 Jason Rumney <jasonr@gnu.org>
10253
9acef61c 10254 * image.c (Qgobject): New symbol.
df23bf08
JR
10255 (syms_of_image): Initialize it.
10256 (init_svg_functions): Load some functions from gobject library.
10257
5bbdf7aa
DN
102582009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10259
10260 * frame.c (make_terminal_frame): Remove redundant code and useless
10261 block.
10262
63136da6
AS
102632009-01-01 Andreas Schwab <schwab@suse.de>
10264
10265 * process.c (conv_sockaddr_to_lisp): Add workaround for
10266 getsockname bug on BSD.
10267
9ef69046
CY
102682009-01-01 Chong Yidong <cyd@stupidchicken.com>
10269
d6fafbe0
CY
10270 * xfns.c (x_create_tip_frame): Set border width of the X window.
10271
51d861de 10272 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10273
f9c34147
JR
102742009-01-01 Jason Rumney <jasonr@gnu.org>
10275
9acef61c 10276 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10277 Don't block input, as per earlier xterm.c changes.
10278
f5497e45
AR
102792008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10280
10281 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10282 (ns_appkit_version_int): New function.
10283 (x-server-version): Use ns_appkit_version_int and follow 21+
10284 convention of returning 3 integers.
10285
c19cab20
KH
102862008-12-30 Kenichi Handa <handa@m17n.org>
10287
10288 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10289 (CHAR_SURROGATE_PAIR_P): New macro.
10290
10291 * font.h (struct font_driver): New member get_variation_glyphs.
10292
9acef61c 10293 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10294 (Ffont_variation_glyphs): New function.
10295 (syms_of_font): Defsubr it.
10296
10297 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10298 ftfont_variation_glyphs.
10299 (setup_otf_gstring): New function.
10300 (ftfont_drive_otf): Use it.
10301 (ftfont_shape_by_flt): Handle variation selector.
10302 (ftfont_variation_glyphs): New function.
10303
28cd591f
MR
103042008-12-30 Martin Rudalics <rudalics@gmx.at>
10305
10306 * frame.c (Vemacs_iconified): Remove.
10307
7f714baf
JR
103082008-12-30 Jason Rumney <jasonr@gnu.org>
10309
10310 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10311 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10312
9d2d22ab
CY
103132008-12-30 Chong Yidong <cyd@stupidchicken.com>
10314
10315 * indent.c (Fvertical_motion): Don't advance iterator if we have
10316 reseated to the desired position.
10317
10318 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10319 checking for pos match.
10320
545312c2
KH
103212008-12-30 Kenichi Handa <handa@m17n.org>
10322
1ede3eb6
KH
10323 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10324 just get the low 8-bit of the code.
10325
545312c2
KH
10326 * font.c (font_intern_prop): Validate str as multibyte.
10327
bd7bbf29
DN
103282008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10329
31e0750e
DN
10330 * dispextern.h (struct face): Move lface and hash from the middle
10331 of bitfields.
10332
bd7bbf29
DN
10333 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10334
b5672e7c
DN
103352008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10336
10337 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10338 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10339 instead of intervals.h.
10340
d704470f
AS
103412008-12-26 Andreas Schwab <schwab@suse.de>
10342
10343 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10344 cons.
10345
54b33868
MR
103462008-12-26 Martin Rudalics <rudalics@gmx.at>
10347
10348 * textprop.c (Qminibuffer_prompt): New variable.
10349 (syms_of_textprop): Initialize it.
10350 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10351 in minibuffer-prompt face. (Bug#1662)
10352
40b615d6
JR
103532008-12-25 Jason Rumney <jasonr@gnu.org>
10354
10355 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10356
baae5c2d
JR
103572008-12-24 Jason Rumney <jasonr@gnu.org>
10358
10359 * ralloc.c (r_alloc_reset_variable): New function.
10360
10361 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10362 record of what points where. (Bug#716)
baae5c2d 10363
a9051c88
DN
103642008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10365
10366 * minibuf.c (read_minibuf): Follow the non-interactive case when
10367 running as a daemon, before detaching.
10368
8b146312
AS
103692008-12-22 Andreas Schwab <schwab@suse.de>
10370
10371 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10372 * gtkutil.c (free_widget_value): Use xfree instead of free.
10373
56f2de10
MR
103742008-12-22 Martin Rudalics <rudalics@gmx.at>
10375
10376 * frame.c (delete_frame): New function derived from
10377 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10378 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10379 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10380 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10381 * frame.h: Extern delete_frame.
10382 * window.c (window_loop):
10383 * terminal.c (delete_terminal):
10384 * xterm.c (x_connection_closed):
10385 * xfns.c (Fx_hide_tip):
9acef61c 10386 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10387
1fc200d6
JR
103882008-12-21 Jason Rumney <jasonr@gnu.org>
10389
10390 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10391 when character maps to .notdef character.
10392
5e252df2
SM
103932008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10394
10395 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10396
99b72cc4
JR
103972008-12-20 Jason Rumney <jasonr@gnu.org>
10398
10399 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10400 a graphical frame on Windows. (Bug#1325)
99b72cc4 10401
acc49a52
JD
104022008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10403
10404 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10405
6ea15123
CY
104062008-12-20 Chong Yidong <cyd@stupidchicken.com>
10407
10408 * minibuf.c (Fread_buffer): Doc fix.
10409
b2dab6c8
JR
104102008-12-20 Jason Rumney <jasonr@gnu.org>
10411
54ea0c87 10412 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10413 server name in UNC paths. (Bug#719)
54ea0c87 10414
b2dab6c8 10415 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10416 charbuf. (Bug#1035)
b2dab6c8 10417
6d1921be
DN
104182008-12-19 Daniel Engeler <engeler@gmail.com>
10419
10420 * sysdep.c (serial_configure): Fix typo.
10421
53934c98
DN
104222008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10423
10424 * sysdep.c: Include alloca.h.
f4f634e8
DN
10425 (system_process_attributes): Add implementation for Solaris.
10426
10427 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10428
06e111a6
DN
104292008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10430
10431 Reorganize implementation of Flist_system_processes and
10432 Fsystem_process_attributes. No functional changes.
10433 * process.c: Don't #include pwd.h, grp.h and limits.h.
10434 (Flist_system_processes): Just call list_system_processes.
10435 (Fsystem_process_attributes): Just call system_process_attributes.
10436 (procfs_list_system_processes, time_from_jiffies)
10437 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10438 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10439
10440 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10441 (list_system_processes): Rename from
10442 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10443 Provide a do nothing implementation.
10444 (system_process_attributes): Rename from
10445 procfs_list_system_processes.
10446 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10447 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10448
10449 * w32.c (list_system_processes): Rename from
10450 w32_list_system_processes.
10451 (system_process_attributes): Rename from
10452 w32_system_process_attributes.
10453
10454 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10455
10456 * process.h (w32_list_system_processes)
10457 (w32_system_process_attributes): Remove.
362654a6
JB
10458 (list_system_processes, system_process_attributes):
10459 New prototypes.
06e111a6 10460
6a705b23
KH
104612008-12-19 Kenichi Handa <handa@m17n.org>
10462
10463 * xfont.c (xfont_decode_coding_xlfd): New function.
10464 (xfont_encode_coding_xlfd): New function.
10465 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10466 (xfont_list): Decode and encode XLFD by iso-8859-1.
10467 (xfont_match): Likewise.
10468 (xfont_list_family): Likewise.
10469 (xfont_open): Likewise.
10470
d66c0241 10471 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10472 names are utf-8.
10473
d66c0241 10474 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10475 names are utf-8.
10476
5a130941
JD
104772008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10478
10479 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10480 changed.
bfd20325
JD
10481 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10482 clicked on a detached tool bar button.
5a130941 10483
fd95644b
DN
104842008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10485
10486 * emacs.c (main): Print and error and exit when no data is read
10487 from the pipe.
10488
e6eee6ae
JR
104892008-12-17 Jason Rumney <jasonr@gnu.org>
10490
10491 * w32font.c (w32font_has_char): Always return -1.
10492
a35dd56b
KH
104932008-12-16 Kenichi Handa <handa@m17n.org>
10494
10495 * font.c (font_open_entity): Fix previous change.
10496
0e3635c2
DN
104972008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10498
10499 * process.c: Include <limits.h>.
10500
d4835507 105012008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10502
10503 * font.c (font_update_drivers): Fix mistake in reconstructing the
10504 driver list.
10505
105062008-12-16 Chong Yidong <cyd@stupidchicken.com>
10507
10508 * font.c (font_clear_cache): Fix format of font cache data.
10509
e2cbc401
CY
105102008-12-15 Chong Yidong <cyd@stupidchicken.com>
10511
10512 * xftfont.c (xftfont_open): Free Xft font pattern if
10513 XftFontOpenPattern fails.
10514
10515 * xterm.c (x_free_frame_resources): Remove extraneous call to
10516 free_frame_faces.
10517
b131d535
CY
105182008-12-13 Chong Yidong <cyd@stupidchicken.com>
10519
10520 * xterm.c (x_delete_display): Move xim_close_dpy call to
10521 x_delete_terminal.
10522 (x_delete_terminal): Call xim_close_dpy.
10523
e6df5336
JR
105242008-12-13 Jason Rumney <jasonr@gnu.org>
10525
10526 * w32font.c (intern_font_name): New function.
10527 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10528 (w32font_open_internal, Fx_select_font): Decode font name.
10529 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10530
10531 * w32font.h (intern_font_name): Declare new function.
10532
10533 * w32uniscribe.c (add_opentype_font_name_to_list):
10534 Use intern_font_name.
10535
20d68145
CY
105362008-12-13 Chong Yidong <cyd@stupidchicken.com>
10537
9f2554de
CY
10538 * frame.c (Fdelete_frame): Call free_font_driver_list.
10539
3d9bec9a
CY
10540 * font.c (free_font_driver_list): Implement missing function.
10541
20d68145
CY
10542 * w32term.c (w32_term_init): Don't initialize the image cache
10543 here; it will be done in init_frame_faces.
10544
10545 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10546 (struct x_display_info): Remove unused member null_pixel. New
10547 member xim_callback_data.
10548
10549 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10550 (xim_initialize): Save pointer to callback function data.
10551 (xim_close_dpy): Free callback function data. Call XCloseIM,
10552 reverting 2008-11-04 change by David Smith.
10553 (x_term_init): Don't initialize the image cache here; it will be
10554 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10555 (x_delete_display): Free x_dnd_atoms member.
10556
96f9306b
KH
105572008-12-13 Kenichi Handa <handa@m17n.org>
10558
6dec9044
JB
10559 * font.c (font_rescale_ratio): Moved from xfaces.c.
10560 Argument type changed. Handle a font-spec too.
96f9306b 10561 (font_score): Check Vface_font_rescale_alist.
6dec9044 10562 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10563
10564 * xfaces.c (font_rescale_ratio): Moved to font.c.
10565
8d5b4964
CY
105662008-12-13 Chong Yidong <cyd@stupidchicken.com>
10567
10568 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10569
e6df5336
JR
105702008-12-12 Jason Rumney <jasonr@gnu.org>
10571
10572 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10573 Vwindow_system_version to the real w32 major version.
10574
97c6058a
DN
105752008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10576
10577 * term.c (init_tty): Move setting the terminal name before the
10578 potential user: maybe_fatal.
10579
ec4e88d7
CY
105802008-12-11 Chong Yidong <cyd@stupidchicken.com>
10581
d4835507
JB
10582 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10583 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10584
b4233ec9
JR
105852008-12-11 Jason Rumney <jasonr@gnu.org>
10586
8ec71e23 10587 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10588 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10589
b4233ec9 10590 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10591 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10592
011a0143
JB
105932008-12-11 Juanma Barranquero <lekktu@gmail.com>
10594
10595 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10596
3c309f34
JB
105972008-12-11 Juanma Barranquero <lekktu@gmail.com>
10598
10599 * process.c (Fsystem_process_attributes, syms_of_process):
10600 Fix typo in name of Ssystem_process_attributes.
10601 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10602
fedc6ab5
JB
106032008-12-11 Juanma Barranquero <lekktu@gmail.com>
10604
10605 * syntax.c (Fmodify_syntax_entry): Doc fix.
10606
ba3de0e8
JB
106072008-12-10 Juanma Barranquero <lekktu@gmail.com>
10608
10609 * font.c (Ffont_spec): Move usage to end of docstring.
10610
174f1c74
JR
106112008-12-10 Jason Rumney <jasonr@gnu.org>
10612
10613 * w32font.c (Qcham): New symbol.
10614 (font_supported_scripts): Add cham, and comments for other new
10615 scripts in bitfield from OpenType spec.
9d32f818
JR
10616 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10617 contain characters beyond the bmp.
174f1c74 10618
7b649478
KH
106192008-12-10 Kenichi Handa <handa@m17n.org>
10620
10621 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10622 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10623 Qunicode_sip.
10624
2133e2d1
JB
106252008-12-10 Juanma Barranquero <lekktu@gmail.com>
10626
10627 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10628 (Fcoding_system_put): Use QCdefault_char.
10629 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10630
9af886ee
CY
106312008-12-09 Chong Yidong <cyd@stupidchicken.com>
10632
74d819eb
CY
10633 * xftfont.c (syms_of_xftfont): Fix typo.
10634
4ccfa1c0 10635 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10636
7c19d3ae
DN
106372008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10638
10639 * emacs.c (main): Close daemon_pipe on exec.
10640
567826bb
CY
106412008-12-08 Chong Yidong <cyd@stupidchicken.com>
10642
10643 * termchar.h (struct tty): New members termcap_term_buffer and
10644 termcap_strings_buffer.
10645
10646 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10647 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10648 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10649 All callers changed.
10650 (init_tty): Store termcap data and string buffers in new struct
10651 tty members termcap_term_buffer and termcap_strings_buffer.
10652 (delete_tty): Free them.
4ccfa1c0 10653 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10654
aa96c42b
SZ
106552008-12-07 Seiji Zenitani <zenitani@mac.com>
10656
10657 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10658 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10659
b7e1d896
CY
106602008-12-06 Chong Yidong <cyd@stupidchicken.com>
10661
10662 * coding.c (make_conversion_work_buffer): Disable buffer
10663 modification hooks in the work buffer.
10664
b5ec91a5
EZ
106652008-12-05 Eli Zaretskii <eliz@gnu.org>
10666
10667 * process.c (procfs_system_process_attributes): If `nread' has a
10668 negative value, assign zero to it.
10669
a5d2a52b
CY
106702008-12-05 Chong Yidong <cyd@stupidchicken.com>
10671
68c5540b 10672 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10673
7bf1bb21
KH
106742008-12-05 Kenichi Handa <handa@m17n.org>
10675
10676 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10677 second character is a combining character.
10678
2fdc7d00
EZ
106792008-12-05 Eli Zaretskii <eliz@gnu.org>
10680
10681 * process.c (procfs_system_process_attributes): Don't use cmd,
10682 cmdsize, and q without initializing them first.
10683
bf6bfba8
JR
106842008-12-04 Jason Rumney <jasonr@gnu.org>
10685
10686 * w32font.c (w32font_draw): Initialize orig_clip before getting
10687 it, and delete it when finished.
10688
a3b1a468
DN
106892008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10690
10691 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10692 case when running as a daemon before detaching.
10693
8b8be8eb
JB
106942008-12-03 Juanma Barranquero <lekktu@gmail.com>
10695
805f2638 10696 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10697
b1bde622
KH
106982008-12-03 Kenichi Handa <handa@m17n.org>
10699
e500c47d
KH
10700 * font.c (font_at): Set `multibyte' at first.
10701
ca516334
KH
10702 * coding.c (decode_coding_charset): Check type of an element of
10703 vector VALIDS.
7bf1bb21 10704 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10705
4ccfa1c0 10706 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10707 (font_for_char): Likewise.
10708
1e5ecd37
CY
107092008-12-03 Chong Yidong <cyd@stupidchicken.com>
10710
d5b01609 10711 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10712 (font_update_lface): Handle fonts with corrupted size specs,
10713 i.e. non-int and non-float.
d5b01609 10714
11e3a6e4 10715 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10716 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10717 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10718
ab06788b
CY
10719 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10720
1e5ecd37 10721 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10722 underline_minimum_offset for underline position.
1e5ecd37 10723
63c125ab
DN
107242008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10725
10726 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10727
10728 * character.c (c_string_width): Specify the type for LEN.
10729
3a8406e1
KH
107302008-12-03 Kenichi Handa <handa@m17n.org>
10731
4ccfa1c0 10732 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10733 (decode_coding_utf_8): Likewise.
4ccfa1c0 10734 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10735 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10736
651df7d9
CY
107372008-12-02 Chong Yidong <cyd@stupidchicken.com>
10738
10739 * keyboard.c (make_lispy_position): Only use PT if the selected
10740 window is current.
10741
1f625c6c
AS
107422008-12-02 Andreas Schwab <schwab@suse.de>
10743
f7741ce9
AS
10744 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10745
1f625c6c
AS
10746 * doprnt.c (doprnt1): Fix size of charbuf.
10747
92bc2678
CY
107482008-12-02 Chong Yidong <cyd@stupidchicken.com>
10749
10750 * keyboard.c (timer_check): Revert last change.
10751
93b9e8cc
JB
107522008-12-02 Juanma Barranquero <lekktu@gmail.com>
10753
10754 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10755
fd7a37d5
JB
107562008-12-01 Juanma Barranquero <lekktu@gmail.com>
10757
10758 * makefile.w32-in: Update dependencies.
10759 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10760
c115043b
AS
107612008-12-01 Andreas Schwab <schwab@suse.de>
10762
10763 * font.c (register_font_driver): Use xmalloc.
10764 (font_put_frame_data): Likewise.
10765
f5668d2a
CY
107662008-12-01 Chong Yidong <cyd@stupidchicken.com>
10767
860d96be
CY
10768 * xfaces.c (realize_x_face): Make abort condition clearer.
10769
f5668d2a
CY
10770 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10771
379c17e7
CY
107722008-11-30 Chong Yidong <cyd@stupidchicken.com>
10773
10774 * keyboard.c (timer_check): After a timer runs, ensure that the
10775 selected window's buffer is current.
10776
35f36d65
JB
107772008-11-30 Juanma Barranquero <lekktu@gmail.com>
10778
f952c61c
JB
10779 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10780 It was accidentally restored by the Unicode merge.
10781
35f36d65
JB
10782 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10783
b23077df
JB
107842008-11-29 Juanma Barranquero <lekktu@gmail.com>
10785
10786 * w32proc.c: Include "coding.h".
10787 (Fw32_short_file_name): Encode filename passed to Windows API.
10788 (Fw32_long_file_name): Encode filename passed to Windows API and
10789 decode back the result. (Bug#1433)
10790
b8ebe9dd
KH
107912008-11-29 Kenichi Handa <handa@m17n.org>
10792
8cc53f96
KH
10793 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10794 not before accessing it.
10795
b8ebe9dd
KH
10796 * charset.c (Fdefine_charset_internal): After calculating
10797 min_char, max_char, and fastmap, copy the charset structure again.
10798 (encode_char): Fix the previous change.
10799
59bc82c0
SZ
108002008-11-28 Seiji Zenitani <zenitani@mac.com>
10801
10802 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10803
10804 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10805
10806 * nsterm.m (x_set_frame_alpha): New function.
10807
32247e3d
EZ
108082008-11-27 Eli Zaretskii <eliz@gnu.org>
10809
10810 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10811
b003e5ff
JB
108122008-11-27 Juanma Barranquero <lekktu@gmail.com>
10813
10814 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10815 pointer to check_face_name.
10816
708550f5
KH
108172008-11-27 Kenichi Handa <handa@m17n.org>
10818
10819 * category.h (SET_CATEGORY_SET): Call set_category_set.
10820 (set_category_set): Extern it.
10821
10822 * category.c (hash_get_category_set): New function.
10823 (Fmodify_category_entry): Adjusted for the change of
10824 char_table_ref_and_range. Call hash_get_category_set to get a
10825 category set to store in the table.
10826
10827 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10828 Funify_charset.
10829
2ae37cf0 10830 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10831 (DECODE_CHAR): Check if the decoder vector is ready.
10832 (ENCODE_CHAR): Check if the encoder char-table is ready.
10833 (maybe_unify_char): Extern it.
10834
10835 * charset.c (Vchar_unified_charset_table): Delete it.
10836 (inhibit_load_charset_map): New variable.
10837 (temp_charset_work): New variable.
10838 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10839 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10840 New macros.
10841 (load_charset_map): Meaning of control_flag changed. If
10842 inhibit_load_charset_map is nonzero, setup a table in
10843 temp_charset_work.
10844 (load_charset): New argument control_flag.
10845 (map_charset_for_dump): New function.
10846 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10847 map_charset_for_dump.
10848 (Fdefine_charset_internal): If the charset method is MAP, load
10849 mapping tables by calling load_charset.
10850 (Funify_charset): Don't load a mapping table but directly set
10851 Vchar_unify_table.
10852 (maybe_unify_char): New function.
10853 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10854 Handle the case of inhibit_load_charset_map being nonzero.
10855 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10856 Handle the case of inhibit_load_charset_map being nonzero.
10857 (Fclear_charset_maps): Just free temp_charset_work.
10858 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10859 variable.
10860
10861 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10862 change of char_table_ref_and_range.
10863 (char_table_ref_and_range): Change the meaning of argument FROM
10864 and TO. Now the caller must provide initial values for *FROM
10865 and *TO.
10866
10867 * fontset.c (fontset_add): Adjusted for the change of
10868 char_table_ref_and_range.
10869 (fontset_get_font_group): Likewise.
10870 (Ffontset_info): Likewise.
10871
10872 * keymap.c (describe_vector): Adjusted for the change of
10873 char_table_ref_and_range. For char-table, put boundary between
10874 non-ASCII and 8-bit characters.
10875
10876 * print.c (print_object): For bool-vector, delete unnecessary
10877 check of ASCII_BYTE_P.
10878
9196133b
JR
108792008-11-26 Jason Rumney <jasonr@gnu.org>
10880
10881 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10882 leading in font height. (Bug#879)
9196133b 10883
9f688acf
GM
108842008-11-26 Glenn Morris <rgm@gnu.org>
10885
10886 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10887 redefinition with ifdef. (Bug#1383)
10888
90d19aff
AR
108892008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10890
10891 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10892
4ccfa1c0 108932008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10894
10895 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10896 New EmacsView methods.
10897 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10898 Fixes bug #1048,1357,1414.
10899
109002008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10901
10902 Fix bug #1362.
10903 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10904 is not an indexed color.
10905 * nsterm.m (free_indexed_color): Add argument checking.
10906 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10907
e7d5ecb3
CY
109082008-11-24 Chong Yidong <cyd@stupidchicken.com>
10909
10910 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10911 Document confirm-after-completion value for
10912 minibuffer-completion-confirm.
10913
c285743c
JR
109142008-11-24 Jason Rumney <jasonr@gnu.org>
10915
10916 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10917 warning.
10918
b0857706
JR
109192008-11-23 Jason Rumney <jasonr@gnu.org>
10920
10921 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10922 restored before returning.
10923
10924 * w32font.c (check_face_name): New function.
10925 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10926 fonts. (Bug#642)
b0857706 10927
ee50ff07
MR
109282008-11-22 Martin Rudalics <rudalics@gmx.at>
10929
10930 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10931 confirm-nonexistent-file-or-buffer in doc-string.
10932
b8ff72fa
SM
109332008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10934
10935 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10936 Fix copy/paste typo. Add checks.
10937
cee53ed4
KH
109382008-11-21 Kenichi Handa <handa@m17n.org>
10939
10940 * coding.c (detect_coding_iso_2022): Reject invalid composition
10941 sequence.
10942 (DECODE_COMPOSITION_START): If the current source is the last
10943 block, and the current composition doesn't end, regard this
10944 sequence as invalid.
10945 (decode_coding_iso_2022): Handle invalid composition sequence.
10946
f6ef1e65
MR
109472008-11-20 Martin Rudalics <rudalics@gmx.at>
10948
10949 * window.c (coordinates_in_window): Don't return
10950 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10951 line when the window is not the rightmost one. (Bug#1372)
10952
e08b1705
MR
109532008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10954
10955 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10956
ad98e89f
EZ
109572008-11-15 Eli Zaretskii <eliz@gnu.org>
10958
10959 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10960 and bright_bg if noninteractive is non-zero.
10961
fb098a4b
CY
109622008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10963
10964 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10965 x_draw_glyph_string_background.
10966
10967 * w32term.c (x_draw_glyph_string): Likewise.
10968
ce952b6e
CY
109692008-11-15 Chong Yidong <cyd@stupidchicken.com>
10970
10971 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10972 the next glyph string once past the overhang width.
10973
10974 * nsterm.m (ns_draw_glyph_string): Likewise.
10975
10976 * w32term.c (x_draw_glyph_string): Likewise.
10977
26ea7079
CY
109782008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
10979
10980 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
10981 double file close.
10982
1c33c906
MR
109832008-11-14 Martin Rudalics <rudalics@gmx.at>
10984
10985 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
10986 dedicated status of window before attempting to display another
10987 buffer in it.
10988
8fc29035
JB
109892008-11-14 Juanma Barranquero <lekktu@gmail.com>
10990
10991 * msdos.c (Fmsdos_long_file_names):
10992 (syms_of_msdos) <dos-unsupported-char-glyph>:
10993 * dosfns.c (Fint86): Fix typos in docstrings.
10994
55fb4286
EZ
109952008-11-14 Eli Zaretskii <eliz@gnu.org>
10996
10997 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
10998
3fda0315
KY
109992008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11000
11001 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11002
7e849c17
CY
110032008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11004
11005 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11006
11007 * frame.h: Negative alpha means "don't touch".
11008
11009 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11010
11011 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11012
b9fd67bd
DN
110132008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11014
11015 * hftctl.c:
11016 * chpdef.h:
11017 * acldef.h: Remove files used only for systems no longer supported.
11018
11019 * Makefile.in: Fix .o alphabetical ordering.
11020 (hftctl.o): Remove dependency, file removed.
11021 (keymap.o, print.o): Depend on charset.h.
11022
d5998e03
KH
110232008-11-10 Kenichi Handa <handa@m17n.org>
11024
2ae37cf0 11025 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11026
be70e183
CY
110272008-11-08 Chong Yidong <cyd@stupidchicken.com>
11028
11029 * dired.c (file_name_completion): If completion_ignore_case is
11030 enabled, ignore case when checking completion-regexp-list.
11031
7cf94eac
EZ
110322008-11-08 Eli Zaretskii <eliz@gnu.org>
11033
11034 * vm-limit.c (get_lim_data): Fix last change.
11035
ee107a89
KH
110362008-11-08 Kenichi Handa <handa@m17n.org>
11037
11038 * character.c (Fget_byte): New function.
11039 (syms_of_character): Defsubr Fget_byte.
11040
5fd15622
CY
110412008-11-07 Chong Yidong <cyd@stupidchicken.com>
11042
11043 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11044 cursor position is valid after scrolling.
11045
13d62fad
JB
110462008-11-06 Juanma Barranquero <lekktu@gmail.com>
11047
11048 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11049
a1dd2936
GM
110502008-11-06 Glenn Morris <rgm@gnu.org>
11051
11052 * xterm.c (handle_one_xevent): Don't let popup menus cause
11053 mouse-autoselect-window related window switching. (Bug#1261)
11054
860cd236
CY
110552008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11056
11057 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11058
653a3150
AS
110592008-11-04 Andreas Schwab <schwab@suse.de>
11060
11061 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11062
870f5cac
CY
110632008-11-03 Chong Yidong <cyd@stupidchicken.com>
11064
11065 * xfns.c (Fx_wm_set_size_hint): New function.
11066
1e02f3cb
MR
110672008-11-03 Martin Rudalics <rudalics@gmx.at>
11068
11069 * textprop.c (Fprevious_single_char_property_change): Return 0
11070 when there's no change in a string. (Bug#1301)
11071
e630dfc6
MR
110722008-11-02 Martin Rudalics <rudalics@gmx.at>
11073
11074 * frame.c (do_switch_frame): New argument NORECORD passed to
11075 Fselect_window.
11076 (Fselect_frame): New argument NORECORD passed to
11077 do_switch_frame.
11078 (Fset_frame_selected_window): New argument NORECORD passed to
11079 Fselect_frame.
11080 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11081 in call of do_switch_frame.
11082 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11083 Handle NORECORD argument in call of Fselect_frame.
11084 * lisp.h (do_switch_frame, Fselect_frame)
11085 (Fset_frame_selected_window): Adjust declarations.
11086 * window.c (select_frame_norecord): New function.
11087 (run_window_configuration_change_hook): Use it and call
11088 Fselect_frame with NORECORD set.
11089 (Fselect_window): Pass NORECORD to Fselect_frame.
11090 (Fset_window_configuration): Handle NORECORD argument in call of
11091 do_switch_frame.
11092 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11093 Fset_frame_selected_window.
11094 * keyboard.c (command_loop_1): Handle NORECORD in call of
11095 Fselect_frame (currently ifdefd).
11096
9020b223
GM
110972008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11098
11099 * emacs.c (USAGE2): Untabify.
11100
793ffee8
SM
111012008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11102
11103 * composite.c (fill_gstring_header): Fix copy/paste typo.
11104
ab6d1131
MR
111052008-10-31 Martin Rudalics <rudalics@gmx.at>
11106
11107 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11108 (Fother_window): Rename argument and rewrite doc-string.
11109 (select_window_norecord): Fix return value. (Bug#1276)
11110
601a9cf1
JB
111112008-10-30 Juanma Barranquero <lekktu@gmail.com>
11112
11113 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11114 new frames overriding foreground for tooltips. Based on similar patch
11115 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11116
813b0652
CY
111172008-10-29 Chong Yidong <cyd@stupidchicken.com>
11118
11119 * emacs.c (Fdaemon_initialized): Initialize nfd.
11120
4414f58f
MR
111212008-10-29 Martin Rudalics <rudalics@gmx.at>
11122
11123 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11124 (Fwindow_text_height): Clarify doc-strings.
11125 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11126 doc-string of window-scroll-functions.
11127
ecdcaa09
RS
111282008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11129
11130 * category.c (syms_of_category): Fix typo in docstring.
11131
23fe745a
JB
111322008-10-28 Juanma Barranquero <lekktu@gmail.com>
11133
11134 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11135 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11136 Fix typos in docstrings.
11137
ff808935
DN
111382008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11139
11140 * emacs.c (daemon_pipe): Make non-static.
11141 (IS_DAEMON): Move definition ...
11142 * lisp.h (IS_DAEMON): ... here.
11143 (daemon_pipe): Declare.
11144 (is_daemon): Remove.
11145 * dispnew.c (init_display): Use IS_DAEMON.
11146
fc012771
SM
111472008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11148
11149 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11150 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11151
11152 * emacs.c (is_daemon): Remove.
11153 (main): Don't set is_daemon.
11154 (IS_DAEMON): New macro.
11155 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11156 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11157 parent exits.
11158 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11159
d8bdbe6f
CY
111602008-10-27 Chong Yidong <cyd@stupidchicken.com>
11161
d1a072bf
CY
11162 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11163 over-sized glyph, draw it with the default glyph width.
11164
e2e325aa
CY
11165 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11166 glyph, draw it with the default glyph width.
11167
11168 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11169 glyph, draw it with the default glyph width.
11170
d8bdbe6f
CY
11171 * xdisp.c (try_scrolling): When computing the distance from the
11172 scroll margin to PT, try moving some distance past the window
11173 bottom before giving up.
11174
7bfac547
MR
111752008-10-27 Martin Rudalics <rudalics@gmx.at>
11176
11177 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11178 (Fset_window_buffer): Explain in doc-string that a window can be
11179 "strongly" dedicated to its buffer.
11180
4ff029f6
DN
111812008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11182
11183 * emacs.c (daemon_name): New variable.
11184 (main): Deal with --daemon=SERVER_NAME.
11185 (Fdaemonp): Return a name if one was passed to --daemon.
11186
5790ef40
DN
111872008-10-26 Romain Francoise <romain@orebokech.com>
11188
f9bd0df9 11189 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11190 (main): Create a pipe before forking, make the parent exit only after
11191 the child has closed its end of the pipe. Move closing the
11192 descriptors ...
11193 (Fdaemon_initialized): ... here. New function.
11194
f5385255
SM
111952008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11196
4d632321
SM
11197 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11198 the previous unoptimized table.
11199
f5385255
SM
11200 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11201 the distinction between non-nil and non-t value of `dedicated'.
11202
6c56a0f3
CY
112032008-10-25 Chong Yidong <cyd@stupidchicken.com>
11204
11205 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11206 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11207
fec89261
MR
112082008-10-25 Martin Rudalics <rudalics@gmx.at>
11209
11210 * window.c (Fget_buffer_window, Fdelete_windows_on)
11211 (Freplace_buffer_in_windows): Make buffer argument optional and
11212 rename to buffer_or_name.
11213
34fcddd0
CY
112142008-10-24 Chong Yidong <cyd@stupidchicken.com>
11215
f5385255
SM
11216 * xdisp.c (handle_single_display_spec, handle_display_prop):
11217 Undo 2005-05-16 change.
34fcddd0
CY
11218 (handle_stop): Pop iterator if it's loaded with an empty string.
11219 (get_overlay_strings_1): Don't save iterator if it's loaded with
11220 an empty string (bug#1201).
11221
064766f2
KH
112222008-10-24 Kenichi Handa <handa@m17n.org>
11223
11224 * ftfont.c (ftfont_otf_features): Fix previous change.
11225 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11226 calling ftfont_otf_features.
11227
f9bd0df9 112282008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11229
11230 * font.c (font_match_p): Fix for the case that a vector of
11231 characters is in script-representative-chars.
11232
1dae9197
MA
112332008-10-24 Michael Albinus <michael.albinus@gmx.de>
11234
11235 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11236 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11237 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11238 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11239 macro. (Bug#1186)
1dae9197 11240
f9bd0df9 112412008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11242
11243 * s/sol2-10.h: New file.
11244
878a4584
JB
112452008-10-23 Juanma Barranquero <lekktu@gmail.com>
11246
11247 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11248 poor beast has survived 9+ years and the jump from xterm.c!).
11249
cd265ca6
MR
112502008-10-23 Martin Rudalics <rudalics@gmx.at>
11251
11252 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11253 Reword doc-string.
f5385255 11254 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11255
472a4dc9
JB
112562008-10-23 Juanma Barranquero <lekktu@gmail.com>
11257
11258 * character.c (syms_of_character) <script-representative-chars>:
11259 <unicode-category-table>: Doc fixes.
11260
159bd5a2
NF
112612008-10-23 Noah Friedman <friedman@splode.com>
11262
11263 * coding.c (make_conversion_work_buffer): Check that
11264 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11265 Fget_buffer_create.
11266
49f9c344
KH
112672008-10-23 Kenichi Handa <handa@m17n.org>
11268
11269 * font.c (font_add_log): Check the values of extra properties.
11270
12bb3111
MR
112712008-10-22 Martin Rudalics <rudalics@gmx.at>
11272
11273 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11274 Reword doc-string.
11275 (Fset_window_parameter): Use NILP.
11276 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11277 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11278
bbeb4e99
JB
112792008-10-22 Juanma Barranquero <lekktu@gmail.com>
11280
11281 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11282
112832008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11284
11285 * nsfns.m (ns_appkit_version): New function.
11286 (x-server-version): Use it.
11287 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11288 (x-server-vendor): Don't check_ns().
11289
11290 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11291
a9b555d3
JB
112922008-10-22 Juanma Barranquero <lekktu@gmail.com>
11293
11294 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11295 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11296
4626499f
KH
112972008-10-22 Kenichi Handa <handa@m17n.org>
11298
e3681952
KH
11299 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11300 scripts.
11301
4626499f
KH
11302 * category.c (word_boundary_p): Check scripts instead of charset.
11303 Handle nil value in word-separating-categories and
11304 word-combining-categories.
11305 (syms_of_category): Fix docstrings of word-separating-categories
11306 and word-combining-categories.
11307
1560f91a
EZ
113082008-10-21 Eli Zaretskii <eliz@gnu.org>
11309
11310 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11311 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11312
f4668441
MR
113132008-10-21 Martin Rudalics <rudalics@gmx.at>
11314
11315 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11316 Rename arg "buffer" to "buffer_or_name".
11317 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11318 it optional.
11319 (no_switch_window): Remove since the return value is not used.
a9b555d3 11320 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11321 Consider window as dedicated when Fwindow_dedicated_p returns a
11322 non-nil value.
11323 * lisp.h: Remove prototype for no_switch_window.
11324
fd75ddb2
JD
113252008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11326
11327 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11328 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11329
07295713
KH
113302008-10-21 Kenichi Handa <handa@m17n.org>
11331
11332 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11333 check Vlatin_extra_code_table.
11334
712adc82
EZ
113352008-10-20 Eli Zaretskii <eliz@gnu.org>
11336
11337 * fileio.c (Fset_file_modes): Doc fix.
11338
f549eb0b
MA
113392008-10-19 Michael Albinus <michael.albinus@gmx.de>
11340
11341 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11342 in arrays.
11343
aac0c6e3
MR
113442008-10-19 Martin Rudalics <rudalics@gmx.at>
11345
11346 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11347 Mention kill-buffer in doc-string.
11348 (Fset_window_buffer): Reinsert tem check removed in last commit.
11349 (Fenlarge_window, Fshrink_window): Have argument names and
11350 doc-string follow Elisp manual more closely.
11351
113522008-10-18 Eli Zaretskii <eliz@gnu.org>
11353
11354 * fileio.c (Fset_file_modes): Doc fix.
11355
113562008-10-18 Martin Rudalics <rudalics@gmx.at>
11357
11358 * window.c (Fwindow_width, Fset_window_start)
11359 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11360 (Fdelete_windows_on, Freplace_buffer_in_windows):
11361 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11362 (Fwindow_dedicated_p): Make window argument optional.
11363 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11364 (Fset_window_buffer): Respect any non-nil dedicated value for
11365 window. Rename "buffer" argument to "buffer_or_name".
11366
113672008-10-18 Ulrich Mueller <ulm@gentoo.org>
11368
11369 * m/sh3.h: New file, machine description for SuperH.
11370
113712008-10-17 Martin Rudalics <rudalics@gmx.at>
11372
11373 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11374
113752008-10-17 Kenichi Handa <handa@m17n.org>
11376
11377 * ftfont.c (ftfont_otf_features): Fix indexing
11378 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11379
113802008-10-16 Magnus Henoch <mange@freemail.hu>
11381
11382 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11383 (Fdbus_call_method_asynchronously): Ditto.
11384 This change makes C-h f display the argument list.
11385
113862008-10-16 Chong Yidong <cyd@stupidchicken.com>
11387
11388 * fileio.c (Fexpand_file_name): Doc fix.
11389
11390 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11391 of :foreground and :background equivalent to unspecified (20.x
11392 compatibility).
11393
113942008-10-15 Eli Zaretskii <eliz@gnu.org>
11395
11396 * buffer.c (syms_of_buffer): Doc fix.
11397
113982008-10-14 Kenichi Handa <handa@m17n.org>
11399
11400 * font.c (font_clear_prop): When clearing font width, clear the
11401 average width field too.
11402
114032008-10-12 Andreas Schwab <schwab@suse.de>
11404
11405 * ftfont.c (ftfont_shape_by_flt): Make static.
11406 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11407
11408 * font.c: Don't include <m17n-flt.h>.
11409
114102008-10-10 Eli Zaretskii <eliz@gnu.org>
11411
11412 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11413
114142008-10-09 Eli Zaretskii <eliz@gnu.org>
11415
11416 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11417 away code.
11418
114192008-10-09 Chong Yidong <cyd@stupidchicken.com>
11420
11421 * dispnew.c (update_text_area): Avoid looping due to large glyph
11422 overhangs (bug#1070).
11423
114242008-10-09 Kenichi Handa <handa@m17n.org>
11425
11426 * fontset.c (face_for_char): If face->fontset is negative, just
11427 return ascii_face.
11428
f5385255
SM
11429 * font.c (font_delete_unmatched): Fix previous change.
11430 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11431
114322008-10-09 Martin Rudalics <rudalics@gmx.at>
11433
11434 * frame.c (Fraise_frame): On text-only terminals select frame in
11435 order to make it visible. (Bug#1061)
11436
114372008-10-08 Chong Yidong <cyd@stupidchicken.com>
11438
11439 * fontset.c (fontset_find_font): Check frame validity.
11440
114412008-10-07 Chong Yidong <cyd@stupidchicken.com>
11442
a9b555d3 11443 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11444 (xg_display_close): Allow Emacs to close all displays (bug#985).
11445
114462008-10-06 Andreas Schwab <schwab@suse.de>
11447
f5385255 11448 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11449
114502008-10-06 Chong Yidong <cyd@stupidchicken.com>
11451
f5385255 11452 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11453
a9b555d3 11454 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11455
11456 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11457 during initialization.
11458
114592008-10-04 Eli Zaretskii <eliz@gnu.org>
11460
11461 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11462 whole thing on MSDOS frames as well as on a TTY.
11463
11464 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11465 well as for TTY.
11466 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11467 well as on a TTY.
11468
11469 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11470 as well as for TTY.
11471
11472 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11473
11474 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11475 MSDOS frames as well.
11476
114772008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11478
11479 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11480 correct arguments.
b71ac3dd 11481 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11482
114832008-10-03 Glenn Morris <rgm@gnu.org>
11484
11485 * emacs.c (USAGE1): Add --daemon.
11486
114872008-10-02 Eli Zaretskii <eliz@gnu.org>
11488
11489 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11490 100, so it's in percents as advertised.
11491
114922008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11493
11494 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11495 (ns_output.current_cursor, ns_output.desired_cursor)
11496 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11497 (FRAME_NEW_CURSOR_COLOR): Remove.
11498
11499 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11500 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11501 enumeration (HOLLOW_BOX_CURSOR, etc.).
11502
11503 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11504 (draw_window_cursor): Simplify code.
f5385255
SM
11505 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11506 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11507 updates manually.
a9b555d3
JB
11508 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11509 Use core Emacs cursor types.
aac0c6e3 11510
b8ff72fa 11511 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11512
115132008-10-02 Martin Rudalics <rudalics@gmx.at>
11514
11515 * process.c (Faccept_process_output): Fix doc-string.
11516
115172008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11518
11519 * gmalloc.c (__sbrk): Also define for uClibc.
11520
11521 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11522 for uClibc.
11523
115242008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11525
11526 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11527 styles.
11528 (nsfont_open): Reenable the cache.
11529
115302008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11531
11532 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11533 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11534
115352008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11536
11537 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11538 a suspended terminal.
11539
115402008-09-30 Michael Albinus <michael.albinus@gmx.de>
11541
11542 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11543
115442008-09-30 Eli Zaretskii <eliz@gnu.org>
11545
11546 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11547
115482008-09-30 Chong Yidong <cyd@stupidchicken.com>
11549
11550 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11551 in a continued line coincides with a line beginning.
11552
115532008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11554
11555 * nsfont.m (nsfont_trait_distance): Fix bug.
11556 (nsfont_list): Return a list rather than a vector (syncs with Handa
11557 changes of 2008-05-14).
11558 (nsfont_open): Improve logging.
11559
115602008-09-29 Andreas Schwab <schwab@suse.de>
11561
11562 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11563
115642008-09-28 Martin Rudalics <rudalics@gmx.at>
11565
11566 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11567 name as char-resolve-modifiers.
11568 Reported by: Markus Triska <markus.triska@gmx.at>
11569
115702008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11571
11572 * dispnew.c (init_display): Return earlier when running as a daemon.
11573
115742008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11575
11576 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11577
115782008-09-27 Eli Zaretskii <eliz@gnu.org>
11579
11580 * composite.c (Fcomposition_get_gstring)
11581 (Fcompose_region_internal, Fcompose_string_internal)
11582 (Ffind_composition_internal): Doc fix.
11583 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11584 (syms_of_composite) <auto-composition-function>: Doc fix.
11585 (syms_of_composite) <composition-function-table>: Doc fix.
11586
115872008-09-25 Chong Yidong <cyd@stupidchicken.com>
11588
11589 * search.c (wordify): New argument for lax word-ends.
11590 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11591
115922008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11593
11594 * lisp.h (is_daemon): Declare.
11595 * dispnew.c (init_display): Do not try to initialize the terminal
11596 when running as a daemon.
11597
115982008-09-22 Chong Yidong <cyd@stupidchicken.com>
11599
11600 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11601 x_display_pixel_height.
11602
116032008-09-22 Martin Rudalics <rudalics@gmx.at>
11604
11605 * undo.c (record_point): Don't call Fundo_boundary for first
11606 change. (Bug#731)
11607
116082008-09-22 Juanma Barranquero <lekktu@gmail.com>
11609
11610 * emacs.c (Fdaemonp): Doc fix.
11611
116122008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11613
11614 * emacs.c (main): Place #ifdef in the proper place.
11615
116162008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11617
11618 * emacs.c (standard_args): Add --daemon.
11619 (main): Disconnect from the terminal when --daemon is passed.
11620 (is_daemon): New variable.
11621 (Fdaemonp): New function.
11622 (syms_of_emacs): Defsubr it.
11623
116242008-09-20 Chong Yidong <cyd@stupidchicken.com>
11625
11626 * xdisp.c (get_next_display_element): Handle string display
11627 correctly when checking for the end of a box run.
11628
116292008-09-20 Glenn Morris <rgm@gnu.org>
11630
11631 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11632 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11633 (Frename_file): Avoid copying to trash if a rename involves
11634 a delete. (Bug#964).
11635
116362008-09-20 Eli Zaretskii <eliz@gnu.org>
11637
11638 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11639 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11640 frames as well as termcap frames.
11641 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11642 get_named_tty.
11643
116442008-09-19 Eli Zaretskii <eliz@gnu.org>
11645
11646 * process.c (procfs_system_process_attributes): Fix cmdline in
11647 case /proc/PID/cmdline is empty.
11648
11649 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11650 x_display_pixel_height.
11651
116522008-09-19 Juanma Barranquero <lekktu@gmail.com>
11653
11654 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11655
11656 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11657 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11658
116592008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11660
11661 * dispextern.h (struct it): Move line_wrap away from the middle of
11662 bitfields. Move voffset in struct iterator_stack_entry after the
11663 bitfields. Move tab_width near after another short.
11664
116652008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11666
11667 * frame.h (struct frame): Move alpha from the middle of bitfields.
11668
11669 * window.h (struct window): Move frozen_window_start_p after the
11670 rest of the bitfields to reduce padding.
11671
116722008-09-18 Chong Yidong <cyd@stupidchicken.com>
11673
11674 * xterm.h (x_display_info): Remove `height' and `width' members.
11675
11676 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11677
11678 * w32term.h (w32_display_info): Remove `height', `width',
11679 `height_in', and `width_in' members.
11680
b8ff72fa
SM
11681 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11682 New functions.
aac0c6e3
MR
11683 (x_calc_absolute_position): Use them.
11684 (x_term_init): Omit removed `height' and `width' members.
11685
b8ff72fa
SM
11686 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11687 New functions.
aac0c6e3
MR
11688 (w32_read_socket, x_calc_absolute_position): Use them.
11689 (w32_initialize_display_info, w32_term_init): Omit removed members
11690 of w32_display_info.
11691
b8ff72fa
SM
11692 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11693 New functions.
11694 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11695
b8ff72fa
SM
11696 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11697 New functions.
aac0c6e3
MR
11698 (x_calc_absolute_position): Use them.
11699 (x_term_init): Omit removed `height' and `width' members.
11700
11701 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11702 (compute_tip_xy):
11703 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11704 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11705 x_display_pixel_width.
11706
117072008-09-18 Kenichi Handa <handa@m17n.org>
11708
11709 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11710 (composition_compute_stop_pos): Fix handling of static composition.
11711 (Fcomposition_get_gstring): Check FROM and TO at first.
11712
117132008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11714
46e722a9 11715 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11716 mixup (YAILOM).
11717
117182008-09-17 Chong Yidong <cyd@stupidchicken.com>
11719
11720 * indent.c (Fvertical_motion): Use position reported by iterator
11721 instead of PT for determining screen motion (bug#943).
11722
117232008-09-17 Romain Francoise <romain@orebokech.com>
11724
11725 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11726
117272008-09-17 Kenichi Handa <handa@m17n.org>
11728
11729 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11730
11731 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11732 if necessary.
11733
117342008-09-16 Kenichi Handa <handa@m17n.org>
11735
11736 * coding.c (make_conversion_work_buffer): Avoid calling
11737 Fget_buffer_create if it is not necessary.
11738
117392008-09-15 Martin Rudalics <rudalics@gmx.at>
11740
11741 * window.c (Fselect_window): Don't update window_select_count and
11742 use_time when norecord is not nil.
11743
117442008-09-14 Kenichi Handa <handa@m17n.org>
11745
11746 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11747 specpdl_ptr.
11748
117492008-09-12 Kenichi Handa <handa@m17n.org>
11750
11751 * indent.c (scan_for_column): Don't handle automatic composition
11752 if the current buffer is not associated with a window.
11753
11754 * composite.c (composition_reseat_it): If the current buffer is
11755 not associated with a window, ignore the automatic composition.
11756 (find_automatic_composition): Likewise.
11757
117582008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11759
11760 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11761 (Fgpm_mouse_stop): Use it.
11762 * termhooks.h (close_gpm): Declare.
11763 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11764 connection if Gpm_GetEvent fails.
11765
11766 * window.c (set_window_buffer): Always preserve current-buffer.
11767
117682008-09-12 Glenn Morris <rgm@gnu.org>
11769
11770 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11771
117722008-09-11 Glenn Morris <rgm@gnu.org>
11773
11774 * charset.c (charset-map-path): Doc fix.
11775
117762008-09-10 Kenichi Handa <handa@m17n.org>
11777
11778 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11779
11780 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11781 compose a grapheme cluster with the preceding base glyph.
11782
11783 * composite.c (composition_compute_stop_pos): Fix previous change.
11784 Reset cmp_it->id to -1 at first.
11785
117862008-09-10 Glenn Morris <rgm@gnu.org>
11787
11788 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11789
117902008-09-09 Chong Yidong <cyd@stupidchicken.com>
11791
11792 * keyboard.c (read_key_sequence): Reapply translation maps when
11793 switching keyboards.
11794
117952008-09-09 Kenichi Handa <handa@m17n.org>
11796
11797 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11798 characters.
11799
11800 * composite.c (FORWARD_CHAR): Fix calculation
11801 of (POSITION).pos_byte.
11802 (composition_compute_stop_pos): Limit the search of composition to
11803 at most 500 characters ahead. If we reach the limit or find a
11804 newline, set cmp_it->ch to -2 and return 0.
11805 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11806
118072008-09-08 Kenichi Handa <handa@m17n.org>
11808
11809 * indent.c (Fvertical_motion): Be sure to set
11810 it_overshoot_expected if it.cmp_it.id is non-negative.
11811
118122008-09-07 Andreas Schwab <schwab@suse.de>
11813
11814 * callproc.c (Fcall_process): Don't hold references to string data
11815 across garbage collection. Move initialisation of new_argv down
11816 to avoid compiler bug.
11817
118182008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11819
11820 * process.c (Fsystem_process_attributes): Doc fix.
11821
118222008-09-07 Chong Yidong <cyd@stupidchicken.com>
11823
11824 * callproc.c (Fcall_process): Canonicalize current directory name.
11825
11826 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11827 iterator advances to the next line if the current line ends in a
11828 continued tab.
11829
118302008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11831
11832 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11833 member to point to cmp_from.
11834
11835 * xdisp.c: Doc fix for references to gidx data member.
11836
118372008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11838
11839 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11840
118412008-09-07 Kenichi Handa <handa@m17n.org>
11842
11843 * composite.c (FORWARD_CHAR): Check STOP after
11844 incrementing (POSITION).pos.
11845
118462008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11847
11848 * process.c (Fsystem_process_attributes): Doc fix.
11849
118502008-09-06 Chong Yidong <cyd@stupidchicken.com>
11851
11852 * keyboard.c (Ftop_level): Doc fix.
11853
118542008-09-06 Eli Zaretskii <eliz@gnu.org>
11855
11856 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11857 minibuffer, don't let lower part of menu invade the echo area.
11858
11859 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11860 "char *q" to access menu text and advance through it. Revert the
11861 change that displayed ">" instead of ASCII character 0x10.
11862
118632008-09-05 Eli Zaretskii <eliz@gnu.org>
11864
11865 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11866 toggle boxes and radio buttons on MS-DOS as well.
11867
118682008-09-05 Kenichi Handa <handa@m17n.org>
11869
11870 * composite.c (autocmp_chars): Check lookback count.
11871 (composition_compute_stop_pos): Set cmp_it->lookback.
11872 (composition_reseat_it): Check lookback count.
11873 (struct position_record): New struct.
11874 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11875 (find_automatic_composition): New function.
11876 (composition_adjust_point): Use find_automatic_composition.
11877
11878 * dispextern.h (struct composition_it): New member lookback.
11879
118802008-09-02 Chong Yidong <cyd@stupidchicken.com>
11881
11882 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11883 if moving by a single line.
11884
118852008-09-02 Andreas Schwab <schwab@suse.de>
11886
11887 * xterm.c (x_delete_display): Fix merge error.
11888
11889 * fileio.c (Fexpand_file_name): Remove unused variables.
11890
118912008-09-02 Eli Zaretskii <eliz@gnu.org>
11892
11893 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11894 storage on all platforms, not just on DOS_NT.
11895
118962008-09-02 Jason Rumney <jasonr@gnu.org>
11897
b8ff72fa
SM
11898 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11899 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11900
119012008-09-01 Chong Yidong <cyd@stupidchicken.com>
11902
11903 * xfaces.c (Finternal_set_alternative_font_family_alist)
11904 (Finternal_set_alternative_font_registry_alist): Properly copy
11905 entire alist structure.
11906
119072008-09-01 Kenichi Handa <handa@m17n.org>
11908
d66c0241 11909 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11910 representative chars of the script is a vector.
d66c0241
JB
11911 (ftfont_list): Handle the case where the representative chars of
11912 the script is a vector.
aac0c6e3
MR
11913
11914 * character.c (syms_of_character): Docstring of
11915 script-representative-chars fixed.
11916
119172008-08-31 Eli Zaretskii <eliz@gnu.org>
11918
11919 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11920 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11921 the menu. Allocate larger buffer for `text', to account for
11922 possible ^C characters.
11923
119242008-08-31 Martin Rudalics <rudalics@gmx.at>
11925
11926 * xdisp.c (prepare_menu_bars): Don't call
11927 Vwindow_size_change_functions with arg Qt.
11928
119292008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11930
11931 * font.h (font_range):
11932 * fileio.c (report_file_error):
46e722a9
SM
11933 * composite.c (composition_update_it): Yet another int/Lisp_Object
11934 mixup (YAILOM).
aac0c6e3
MR
11935
119362008-08-30 Glenn Morris <rgm@gnu.org>
11937
11938 * data.c (Fmake_variable_frame_local): Doc fix.
11939
11940 * frame.c (Fmodify_frame_parameters): Doc fix.
11941
119422008-08-30 Eli Zaretskii <eliz@gnu.org>
11943
11944 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11945 needed by GetTokenInformation.
11946 (w32_system_process_attributes): Check return values of all system
11947 APIs.
11948
11949 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11950 only when the state changes.
11951 (IT_update_begin, IT_update_end): Add termscript trace.
11952
11953 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11954 clipboard is unavailable. Set dst to NULL if it doesn't point to
11955 malloc'ed data.
11956 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11957 passing random values to xfree.
11958
11959 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11960 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11961
119622008-08-29 Jason Rumney <jasonr@gnu.org>
11963
11964 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11965
119662008-08-29 Eli Zaretskii <eliz@gnu.org>
11967
11968 * composite.c (fill_gstring_body): Avoid compiler warnings.
11969
11970 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11971 LGLYPH_SET_CODE to avoid compiler warnings.
11972
2ae37cf0 11973 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11974
11975 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11976
11977 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
11978 LGLYPH_SET_CODE.
11979
119802008-08-29 Kenichi Handa <handa@m17n.org>
11981
11982 * fileio.c (report_file_error): Don't downcase the first character
11983 of errstring if it is still unibyte.
11984
119852008-08-29 Kenichi Handa <handa@m17n.org>
11986
11987 These changes are to re-implement the automatic composition so
11988 that it doesn't use text properties.
11989
11990 * Makefile.in (ftfont.o): Depend on composite.h.
11991 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
11992
11993 * character.h (Vunicode_category_table): Extern it.
11994
11995 * character.c (Vunicode_category_table): New variable.
11996 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
11997
11998 * chartab.c (optimize_sub_char_table): Perform more greedy
11999 optimization.
12000
b8ff72fa
SM
12001 * composite.h (enum composition_method):
12002 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12003 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12004 (Vcomposition_function_table): Extern it.
12005 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12006 (composition_gstring_put_cache, composition_gstring_from_id)
12007 (composition_gstring_p, composition_gstring_width)
12008 (composition_compute_stop_pos, composition_reseat_it)
12009 (composition_update_it, composition_adjust_point): Extern them.
12010 (Fcomposition_get_gstring): EXFUN it.
12011
d66c0241 12012 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12013 (Vcomposition_function_table)
12014 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12015 (gstring_hash_table, gstring_work, gstring_work_headers):
12016 New variables.
aac0c6e3
MR
12017 (gstring_lookup_cache, composition_gstring_put_cache)
12018 (composition_gstring_from_id, composition_gstring_p)
12019 (composition_gstring_width, fill_gstring_header)
12020 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12021 (composition_reseat_it, composition_update_it)
b8ff72fa 12022 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12023 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12024 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12025 Defsubr composition_get_gstring.
aac0c6e3
MR
12026
12027 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12028 cmp_id.
12029 (struct glyph_string): Delete the member gidx. New members
12030 cmp_id, cmp_from, and cmp_to.
12031 (enum it_method): Delete GET_FROM_COMPOSITION.
12032 (struct composition_it): New struct.
12033 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12034 Delete c, len, cmp_id, cmp_len in u.comp.
12035
12036 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12037 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12038 (enum lglyph_indices): Likewise.
b8ff72fa 12039 (font_range): Adjust extern.
aac0c6e3
MR
12040 (font_fill_lglyph_metrics): Extern it.
12041
12042 * font.c (QCf): New variable.
12043 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12044 (font_prepare_composition): Delete this function.
12045 (font_range): Type and arguments changed.
12046 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12047 (font_fill_lglyph_metrics): New function.
b8ff72fa 12048 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12049 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12050 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12051 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12052
12053 * fontset.h (font_for_char): Extern it.
12054
12055 * fontset.c (font_for_char): New function.
12056
12057 * ftfont.c: Include composite.h.
12058 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12059 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12060
12061 * indent.c: Include composite.h and dispextern.h.
12062 (check_composition): Delete this function.
12063 (scan_for_column): Handle composition by
12064 composition_compute_stop_pos, composition_reseat_it, and
12065 composition_update_it.
12066 (compute_motion): Likewise.
12067 (Fvertical_motion): Fix checking of composition.
12068
12069 * keyboard.c (adjust_point_for_property): Check composition by
12070 composition_adjust_point.
12071
b8ff72fa 12072 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12073 struct glyph_string.
12074
b8ff72fa
SM
12075 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12076 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12077 struct glyph.
12078 (produce_composite_glyph): Likewise.
12079
b8ff72fa
SM
12080 * w32term.c (x_draw_composite_glyph_string_foreground):
12081 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12082 (x_draw_glyph_string): Likewise.
12083
12084 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12085 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12086
12087 * xdisp.c: Include font.h.
12088 (it_props): Delete the entry for Qauto_composed.
12089 (init_iterator): Initialize it->cmp_it.id to -1.
12090 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12091 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12092 (handle_auto_composed_prop): Delete it.
12093 (handle_composition_prop): Handle only static composition.
12094 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12095 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12096 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12097 (pop_it): Likewise.
12098 (get_next_element): Delete next_element_from_composition.
12099 (CHAR_COMPOSED_P): New macro.
12100 (get_next_display_element): For automatic composition, get a face
12101 from the font in the glyph-string.
12102 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12103 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12104 (next_element_from_string): Check if the character at the current
12105 position is composed by CHAR_COMPOSED_P.
12106 (next_element_from_buffer): Likewise.
d66c0241
JB
12107 (next_element_from_composition): Adjust for the change of struct it.
12108 Update it->cmp_it.
b8ff72fa
SM
12109 (dump_glyph): Adjust for the change of struct glyph.
12110 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12111 it and struct glyph. Don't handle automatic composition here.
12112 (fill_gstring_glyph_string): New function.
12113 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12114 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12115 (BUILD_GSTRING_GLYPH_STRING): New macro.
12116 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12117 automatic composition.
b8ff72fa 12118 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12119 struct glyph.
b8ff72fa 12120 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12121
b8ff72fa 12122 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12123 the change of struct glyph_string.
12124 (x_draw_glyph_string): Likewise.
12125
121262008-08-29 Glenn Morris <rgm@gnu.org>
12127
12128 * buffer.c (word-wrap): Doc fix.
12129 * xdisp.c (truncate-partial-width-windows): Doc fix.
12130 Increase default to 50.
12131
121322008-08-29 Chong Yidong <cyd@stupidchicken.com>
12133
12134 * xdisp.c (update_tool_bar_unwind): New function.
12135 (update_tool_bar): Temporarily set selected frame before building
12136 tool-bar items.
12137
121382008-08-28 Michael Albinus <michael.albinus@gmx.de>
12139
12140 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12141 snprintf, respectively.
12142 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12143
121442008-08-28 Chong Yidong <cyd@stupidchicken.com>
12145
12146 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12147 LDFLAGS to GNUstep CC invocation.
12148
121492008-08-27 Chong Yidong <cyd@stupidchicken.com>
12150
12151 * indent.c (Fvertical_motion): Revert last change. Handle the
12152 general case where we are moving forward, and PT spans multiple
12153 screen lines.
12154
12155 * eval.c (find_handler_clause): Temporarily increase
12156 max-lisp-eval-depth while printing the backtrace buffer, to
12157 guarantee that help-mode code can run.
12158
121592008-08-27 Eli Zaretskii <eliz@gnu.org>
12160
12161 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12162 colors under -rv.
12163 (IT_set_frame_parameters): Don't swap foreground and background
12164 colors if `(reverse . t)' is present in the frame properties.
12165 (internal_terminal_init): Call init_frame_faces only for the
12166 initial frame.
12167
121682008-08-27 Andreas Schwab <schwab@suse.de>
12169
12170 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12171
121722008-08-27 Andreas Schwab <schwab@suse.de>
12173
12174 * search.c (search_buffer): Set char_base to zero only at the end.
12175
121762008-08-27 Kenichi Handa <handa@m17n.org>
12177
b8ff72fa 12178 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12179
121802008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12181
12182 * xterm.c (x_term_init): Temporarily hide the partially
12183 initialized terminal while calling vendor-specific-keysyms.
12184
121852008-08-26 Eli Zaretskii <eliz@gnu.org>
12186
12187 * msdos.c (internal_terminal_init): Most initializations done only
12188 once, especially initial_screen_colors[] and termscript open.
12189
121902008-08-26 Chong Yidong <cyd@stupidchicken.com>
12191
12192 * eval.c (Fcondition_case): Doc fix.
12193
12194 * widgetprv.h (EmacsFramePart): Change font member to the new font
12195 struct.
12196
12197 * widget.c: Include character.h and font.h for XSETFONT.
12198 (setup_frame_gcs): Compute X font id from font struct, just once.
12199
122002008-08-26 Eli Zaretskii <eliz@gnu.org>
12201
12202 * term.c (get_named_tty): Fix last change.
12203
122042008-08-26 Chong Yidong <cyd@stupidchicken.com>
12205
12206 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12207 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12208
122092008-08-25 Eli Zaretskii <eliz@gnu.org>
12210
12211 * frame.c (do_switch_frame): Mark previously displayed frame as
12212 obscured for FRAME_MSDOS_P frames as well.
12213
122142008-08-24 Eli Zaretskii <eliz@gnu.org>
12215
12216 * frame.c (make_terminal_frame): Initialize f->terminal,
12217 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12218 Set the top frame to newly created frame.
12219 (Fmake_terminal_frame): Reuse the_only_display_info.
12220
12221 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12222 estimating available memory.
12223
b97439ce 122242008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12225
12226 * nsterm.m (ns_draw_window_cursor): Don't call
12227 NSDisableScreenUpdates and NSEnableScreenUpdates on
12228 non-NS_IMPL_COCOA systems.
12229
122302008-08-23 Andreas Schwab <schwab@suse.de>
12231
12232 * process.c (procfs_system_process_attributes): Fix use of
12233 uninitialized variables.
12234
122352008-08-23 Eli Zaretskii <eliz@gnu.org>
12236
12237 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12238
12239 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12240 calling tty-set-up-initial-frame-faces.
12241
b8ff72fa
SM
12242 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12243 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12244
12245 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12246 addition to output_termcap.
12247
12248 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12249
12250 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12251 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12252 highlight.
12253
12254 * process.c [!subprocesses]: Define QCname.
12255 (syms_of_process): Intern and staticpro it.
12256
12257 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12258 Adjust for changes in encoding/decoding routines.
12259 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12260 encode_coding and decode_coding.
12261
b8ff72fa 12262 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12263
12264 * dosfns.c: Include frame.h before termhooks.h.
12265 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12266 variable termscript.
12267
12268 * s/msdos.h (USER_FULL_NAME): Define.
12269 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12270
12271 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12272 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12273 pw->pw_gecos.
12274
12275 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12276 SELECTED_FRAME as additional (1st) argument.
12277 (tty_read_avail_input): Handle output_msdos_raw in
12278 addition to output_termcap.
12279
12280 * msdos.c: Include frame.h before termhooks.h.
12281 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12282 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12283 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12284 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12285 (IT_set_terminal_modes, IT_reset_terminal_modes)
12286 (IT_set_frame_parameters): Use tty->termscript instead of a global
12287 variable termscript.
12288 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12289 global variable terminal_coding. Don't refer to
12290 Vnonascii_translation_table.
12291 (internal_terminal_init): Set Vwindow_system in current_kboard.
12292 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12293 Announce date and time of session start, if termscript is open.
12294 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12295 term.c:init_tty). Open termscript only of not already open.
12296 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12297 here instead of dos_ttraw. Don't initialize display if this is an
12298 initial tty. Don't set FRAME_FONT.
12299 (Vwindow_system_version): Bump to 23.
12300 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12301 is available, set up mouse_position_hook.
12302 (dos_ttraw, IT_set_terminal_modes): If called with initial
12303 terminal, do nothing.
12304 (IT_set_frame_parameters): Handle the Qtty_type frame
12305 parameter by calling internal_terminal_init.
12306 (dos_set_window_size, show_mouse_face)
12307 (clear_mouse_face, IT_note_mode_line_highlight)
12308 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12309 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12310 (initialize_msdos_display): New function.
12311 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12312 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12313 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12314 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12315 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12316 (request_sigio, unrequest_sigio): Don't define, now defined on
12317 sysdep.c.
12318 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12319
12320 * term.c [MSDOS]: Include msdos.h.
12321 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12322 conditional to DOS_NT. Allow only one call to this function in a
12323 session. Don't allocate a new struct tty_display_info; instead,
12324 reuse the_only_display_info. Call get_tty_size to get screen
12325 dimensions. Call init_baud_rate to set bad_rate.
12326 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12327 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12328 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12329 (get_tty_terminal, get_named_tty, Ftty_type)
12330 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12331 output_termcap.
b8ff72fa
SM
12332 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12333 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12334 only when subprocesses are supported.
aac0c6e3
MR
12335
12336 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12337 f->output_data.x.
12338 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12339 terminal devices.
12340
5582fbc7 12341 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12342 x_output.
12343 (FRAME_FONT): Use output_data.tty.
12344 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12345 (struct x_display_info): Rename from display_info. Update all users in
12346 msdos.c.
aac0c6e3 12347 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12348 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12349 (dos_ttraw): Update prototype.
12350
12351 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12352 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12353
123542008-08-23 Jason Rumney <jasonr@gnu.org>
12355
12356 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12357 (fn_TIFFSetDirectory): New library function used.
12358 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12359 (tiff_load): Use :index to select among multiple images. Set count
12360 property when multiple images exist.
12361 (gif_format): Use :index, not :image.
12362
123632008-08-23 Chong Yidong <cyd@stupidchicken.com>
12364
12365 * xdisp.c (try_scrolling): Check INT_MAX instead of
12366 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12367 to obtain INT_MAX.
12368
123692008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12370
12371 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12372
123732008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12374
12375 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12376 GNUstep library location.
12377
123782008-08-21 Chong Yidong <cyd@stupidchicken.com>
12379
12380 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12381 before using it.
12382
12383 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12384
123852008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12386
12387 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12388 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12389 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12390 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12391 (EmacsApp-cursor_blink_handler): Remove declaration.
12392 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12393 match 01 Feb 2008 changes in xterm.c.
12394 (ns_read_socket): Add cast to avoid warning.
12395 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12396 GNUstep.
12397
123982008-08-20 Chong Yidong <cyd@stupidchicken.com>
12399
12400 * xselect.c (x_get_foreign_selection): Return nil if desired
12401 selection could not be obtained, instead of signalling an error.
12402
124032008-08-20 David Reitter <david.reitter@gmail.com>
12404
12405 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12406 * nsterm.m: Remove ns-specific code for cursor blinking.
12407 (ns_draw_window_cursor): Clear cursor properly rather than
12408 redrawing the area. Respect width of bar cursors.
12409 These changes enable the use of generic blink-cursor-mode and
12410 generic cursor types in NS and support smooth cursor movements (do
12411 not blink off after command).
12412 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12413 Nextstep, too.
12414
124152008-08-19 Kenichi Handa <handa@m17n.org>
12416
12417 * font.c (Vfont_log_deferred): New variable.
12418 (font_add_log): Check Vfont_log_deferred.
12419 (font_deferred_log): New function.
12420
12421 * font.h (font_deferred_log): Extern it.
12422
12423 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12424 for sorting.
12425 (face_for_char): Use deferred log.
12426
124272008-08-18 Kenichi Handa <handa@m17n.org>
12428
12429 * fontset.c (face_for_char): Add font log.
12430
12431 * font.c (font_add_log): Add the font properties :script, :lang,
12432 and :otf in the log.
12433
124342008-08-17 Chong Yidong <cyd@stupidchicken.com>
12435
12436 * xdisp.c: Remove dead code.
12437 (handle_invisible_prop, next_overlay_string): Defer call to
12438 setup_for_ellipsis.
12439 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12440
124412008-08-15 Chong Yidong <cyd@stupidchicken.com>
12442
12443 * xfaces.c (lookup_derived_face): Properly handle possible zero
12444 return value of get_lface_attributes.
12445 (merge_faces): Don't tell lookup_derived_face to signal an error
12446 if face is not found.
12447
12448 * dired.c (Fdirectory_files): Doc fix.
12449
12450 * process.c (make_process): Initialize kill_without_query struct
12451 member.
12452
124532008-08-15 Eli Zaretskii <eliz@gnu.org>
12454
12455 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12456 Alternative calculation of totphys for Visual Studio 6.
12457
12458 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12459
12460 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12461 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12462 All users changed.
12463 (stat): Only root directory passed to GetDriveType. Allow RAM
12464 disk as well as local fixed disk when w32-get-true-file-attributes
12465 is set to `local'.
12466 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12467 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12468 (w32_cached_id, w32_add_to_cache): New functions.
12469 (get_name_and_id): Look account names in the cache before calling
12470 lookup_account_sid.
12471 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12472 New initialization flags.
12473 (globals_of_w32): Initialize them to zero.
12474 (w32_system_process_attributes): Use w32_cached_id and
12475 w32_add_to_cache.
12476
124772008-08-14 Lawrence Mitchell <wence@gmx.li>
12478
12479 * lread.c (Fread_char, Fread_char_exclusive): If no character
12480 event is read before timeout is reached, return nil, rather than
12481 converting to a number.
12482
124832008-08-14 Chong Yidong <cyd@stupidchicken.com>
12484
12485 * fns.c (use_dialog_box): Doc fix.
12486
12487 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12488 on OS X.
12489
124902008-08-13 Chong Yidong <cyd@stupidchicken.com>
12491
12492 * frame.c (Qns_parse_geometry): New var.
12493 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12494
124952008-08-11 Chong Yidong <cyd@stupidchicken.com>
12496
12497 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12498 space character in calculating tabs.
12499
125002008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12501
12502 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12503
125042008-08-10 Glenn Morris <rgm@gnu.org>
12505
12506 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12507 silence gcc "limited range of data type" warnings in some
12508 make_fixnum_or_float calls.
12509
125102008-08-09 Eli Zaretskii <eliz@gnu.org>
12511
12512 * w32.c (w32_system_process_attributes): If the process does not
12513 exist, return nil.
12514
12515 * w32.c: Include thelp32.h, psapi.h and coding.h.
12516 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12517 declarations.
12518 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12519 (Process32Next_Proc): New typedefs.
12520 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12521 (g_b_init_process32_next, g_b_init_open_thread_token)
12522 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12523 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12524 (g_b_init_get_process_working_set_size)
12525 (g_b_init_global_memory_status_ex): New static variables.
12526 (globals_of_w32): Initialize them.
12527 (create_toolhelp32_snapshot, process32_first, process32_next)
12528 (open_thread_token, impersonate_self, revert_to_self)
12529 (get_process_memory_info, get_process_working_set_size)
12530 (global_memory_status, global_memory_status_ex): New wrapper
12531 functions.
12532 (w32_list_system_processes, w32_system_process_attributes)
12533 (enable_privilege, restore_privilege, ltime, process_times):
12534 New functions.
12535 (convert_time_raw): New function.
12536 (convert_time): Remove conversion of FILETIME into time in 100
12537 nsec units, call convert_time_raw instead.
12538
12539 * process.h (w32_list_system_processes, w32_system_process_attributes):
12540 Add prototypes.
12541 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12542 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12543 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12544 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12545
12546 * process.c (Fsystem_process_attributes): Doc fix.
12547
125482008-08-08 Chong Yidong <cyd@stupidchicken.com>
12549
12550 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12551 a continued multi-char glyph; if so, advance to the actual glyph.
12552
125532008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12554
12555 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12556
12557 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12558 (.m.o): Use it.
12559 * config.in: Regenerate.
12560
125612008-08-07 Chong Yidong <cyd@stupidchicken.com>
12562
12563 * xdisp.c (redisplay_window): Revert last change.
12564 (try_window): Check bottom scroll margin too.
12565
125662008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12567
12568 * config.in: Regenerate.
12569
12570 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12571 -list-load-path-shadows'.
12572 (nsgui.h): Reduce number of things depending on it.
12573
125742008-08-06 Chong Yidong <cyd@stupidchicken.com>
12575
12576 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12577 instead of window-end which does the wrong thing at eob.
12578 (try_cursor_movement): Minor optimization.
12579 (redisplay_window): If scroll margin is defined, don't assume
12580 window doesn't need scrolling.
12581
125822008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12583
12584 * config.in: Regenerate.
12585
12586 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12587 (mostlyclean): Don't delete *.d under NS.
12588
12589 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12590
125912008-08-06 Kenichi Handa <handa@m17n.org>
12592
12593 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12594
125952008-08-06 Andreas Schwab <schwab@suse.de>
12596
12597 * config.in: Regenerate.
12598
125992008-08-05 Chong Yidong <cyd@stupidchicken.com>
12600
12601 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12602 forcing a window start.
12603
12604 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12605 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12606
126072008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12608
12609 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12610 argument.
12611
126122008-08-05 Juanma Barranquero <lekktu@gmail.com>
12613
12614 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12615 <scroll-down-aggressively, before-change-functions>:
12616 <after-change-functions>: Reflow docstrings.
12617
126182008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12619 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12620
12621 Dock menu customization, based on a patch by Ken Raeburn, plus some
12622 other fixes.
12623 * nsmenu.m (dockMenu): New variable.
12624 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12625
12626 * nsterm.h (dockMenu): Declare.
12627
12628 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12629 (ns_term_init): Initialize dockMenu.
12630 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12631 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12632 left.
12633
12634 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12635
126362008-08-04 Chong Yidong <cyd@stupidchicken.com>
12637
12638 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12639
12640 * config.in: Regenerate.
12641
126422008-08-04 Seiji Zenitani <zenitani@mac.com>
12643
12644 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12645
126462008-08-04 Chong Yidong <cyd@stupidchicken.com>
12647
12648 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12649
126502008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12651
12652 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12653
12654 * keyboard.h: Comment an #endif.
12655
12656 * lisp.h (have_menus_p): Adjust comment.
12657
12658 * menu.c (find_and_return_menu_selection): Fix comparison with
12659 client_data.
12660
12661 * nsmenu.m (popup_activated_flag): New variable.
12662 (popup_activated): New function.
12663 (menu-or-popup-active-p): New exported lisp definition.
12664 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12665 when popup done.
12666 (ns_popup_dialog): Set popup_activated_flag.
12667
12668 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12669 version for GNUstep (handled by conditional typedef in nsterm.m).
12670 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12671 in rgb.txt).
12672
12673 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12674
12675 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12676
12677 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12678
12679 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12680 shortcircuit if popup_activated like GTK and X toolkit.
12681
12682 * m/inter386.h: Change DARWIN to DARWIN_OS.
12683
12684 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12685 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12686 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12687 comment on NO_SOCK_SIGIO.
12688
126892008-08-03 Chong Yidong <cyd@stupidchicken.com>
12690
12691 * nsterm.m (windowDidResize): Remove stopModal call.
12692
126932008-08-03 Andreas Schwab <schwab@suse.de>
12694
12695 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12696 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12697
126982008-08-02 Chong Yidong <cyd@stupidchicken.com>
12699
12700 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12701 Don't use uninitialized pointer variable when using getrlimit.
12702
127032008-08-02 Jason Rumney <jasonr@gnu.org>
12704
12705 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12706
127072008-08-02 Eli Zaretskii <eliz@gnu.org>
12708
12709 * alloc.c (NSTATICS): Bump to 0x640.
12710
12711 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12712
12713 * lisp.h: Add prototype for directory_files_internal.
12714
12715 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12716 New functions.
12717 (syms_of_process): Defsubr them. Add initializations for various
12718 Q* symbols used in procfs_system_process_attributes.
12719 (procfs_list_system_processes, procfs_system_process_attributes)
12720 [HAVE_PROCFS]: New functions.
12721 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12722 (procfs_get_total_memory): New functions.
12723
127242008-08-01 Juanma Barranquero <lekktu@gmail.com>
12725
12726 * xfaces.c (Fx_load_color_file): Fix previous change;
12727 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12728
127292008-08-01 Michael Albinus <michael.albinus@gmx.de>
12730
12731 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12732
127332008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12734
12735 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12736
127372008-08-01 Chong Yidong <cyd@stupidchicken.com>
12738
12739 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12740
12741 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12742 define NSApplicationDelegateReplySuccess.
12743 (EmacsView -converstationIdentifier): Use long instead of
12744 NSInteger for GNUstep, since it doesn't have NSInteger.
12745
12746 * xmenu.c: Revert last change.
12747
12748 * keyboard.h: Fix last change.
12749
127502008-08-01 Juanma Barranquero <lekktu@gmail.com>
12751
12752 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12753 on Windows.
12754
127552008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12756
12757 Warning clearing and clean-up in NS port.
12758 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12759 Add prototypes.
12760 * nsgui.h (FACE_DEFAULT): Remove, unused.
12761 (XGCValues): Change colors to unsigned long.
12762 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12763 nsterm.m.
12764 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12765 (ns_list_fonts): Remove, unused.
12766 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12767 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12768 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12769 (nsfont_draw): Compare face colors to 0, not nil.
12770 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12771 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12772 (-addSubmenuWithTitle:): Use NSMenuItem class.
12773 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12774 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12775 (ns_clip_to_row): Make gc arg a BOOL.
12776 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12777 ns_clip_to_row() call.
12778 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12779 used). Cast FRAME_FONT assignments.
12780 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12781 (ns_string_to_lispmod): Change arg to const char.
12782 (ns_term_init): Use NSMenuItem class.
12783 (EmacsApp -openFile:): Move to different section of file.
12784 (EmacsApp -application:openFiles:): Don't return a value, call
12785 -replyToOpenOrPrint:.
12786 (EmacsView -keyDown:): Fix up cast.
12787 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12788 (EmacsView -menuDown:): Cast tag in call to
12789 find_and_call_menu_selection().
12790 (ns_list_fonts): Remove, unused.
12791 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12792 (ns_fontname_to_xlfd): Make static.
12793 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12794 Remove prototypes (now in keyboard.h).
12795 (next_menubar_widget_id): Remove, unused.
12796 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12797 Remove prototypes (now in keyboard.h).
12798 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12799
128002008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12801
12802 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12803 (floatfns.o): Depend on syssignal.h.
12804 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12805
12806 * systty.h: Fix previous change that removed BSD_TERMIOS.
12807 Add comments to #ifdefs.
12808
128092008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12810
12811 * w32fns.c (w32-load-color-file): Remove.
12812 (x-open-connection): Use renamed Fx_load_color_file.
12813 * xfaces.c (x-load-color-file): Add.
12814 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12815 Emacs.clr.
12816 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12817
128182008-07-31 Michael Albinus <michael.albinus@gmx.de>
12819
12820 * dbusbind.c (Fdbus_call_method_asynchronously)
12821 (Fdbus_method_error_internal): New defuns.
12822 (xd_read_message): Handle also reply messages.
12823 (Vdbus_registered_functions_table): Extend docstring.
12824
128252008-07-31 Juanma Barranquero <lekktu@gmail.com>
12826
12827 * keyboard.c (gobble_input): Fix previous change.
12828
128292008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12830
12831 * bitmaps/README:
12832 * xfns.c:
12833 * termcap.c:
12834 * term.c:
12835 * syswait.h:
12836 * systty.h:
12837 * systime.h:
12838 * syssignal.h:
12839 * sysdep.c:
12840 * process.h:
12841 * process.c:
12842 * print.c:
12843 * ndir.h:
12844 * lread.c:
12845 * keyboard.c:
12846 * getpagesize.h:
12847 * floatfns.c:
12848 * fileio.c:
12849 * emacs.c:
12850 * doc.c:
12851 * dispnew.c:
12852 * dired.c:
12853 * data.c:
12854 * callproc.c:
12855 * buffer.c:
12856 * README:
12857 * Makefile.in:
12858 * s/template.h:
12859 * s/msdos.h:
12860 * m/vax.h: Remove VMS support.
12861 * s/vms.h:
12862 * vlimit.h:
12863 * uaf.h:
12864 * temacs.opt:
12865 * param.h:
12866 * ioctl.h: Remove file.
12867
128682008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12869
12870 * s/ms-w32.h (MULTI_KBOARD): Remove.
12871 * xterm.c:
12872 * xselect.c:
12873 * xfns.c:
12874 * window.c:
12875 * w32term.c:
12876 * w32fns.c:
12877 * terminal.c:
12878 * termhooks.h:
12879 * term.c:
12880 * sysdep.c:
12881 * keyboard.h:
12882 * keyboard.c:
12883 * frame.h:
12884 * frame.c:
12885 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12886 * config.in: Regenerate.
12887
128882008-07-30 Jason Rumney <jasonr@gnu.org>
12889
12890 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12891
12892 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12893 (w32font_open_internal): Get unicode version of textmetrics.
12894 Don't enable or disable glyph indices here.
12895 (w32font_open): Disable use of glyph indices.
12896
12897 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12898
128992008-07-30 Chong Yidong <cyd@stupidchicken.com>
12900
12901 * minibuf.c (Vread_buffer_function): Doc fix.
12902
129032008-07-30 John Paul Wallington <jpw@pobox.com>
12904
12905 * minibuf.c (read_buffer_completion_ignore_case): New var.
12906 (Fread_buffer): Use it.
12907
129082008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12909
12910 * systty.h (sensemode): Remove empty #if. Remove reference to
12911 BSD_TERMIOS, unused.
12912
12913 * sysdep.c: Remove reference to DGUX.
12914 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12915
12916 * config.in: Regenerate.
12917
129182008-07-30 Jason Rumney <jasonr@gnu.org>
12919
12920 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12921
129222008-07-29 Jason Rumney <jasonr@gnu.org>
12923
12924 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12925 is populated.
12926 (uniscribe_encode_char): Always use uniscribe.
12927 Avoid using context if cache is populated.
12928
129292008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12930
12931 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12932 open menu.
12933
12934 * gtkutil.c (menu_nav_ended): Remove.
12935 (create_menus): Remove signal connect for menu_nav_ended.
12936
129372008-07-28 Chong Yidong <cyd@stupidchicken.com>
12938
12939 * xdisp.c (redisplay_window): Check return value of
12940 compute_window_start_on_continuation_line before forcing a window
12941 start.
12942
129432008-07-28 Jason Rumney <jasonr@gnu.org>
12944
12945 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12946
12947 * w32term.c (w32_enable_unicode_output, cleartype_active):
12948 Remove obsolete display options.
12949 (x_draw_glyph_string_background): Don't use old cleartype_active
12950 workaround.
12951 (w32_initialize): Remove cleartype_active initialization.
12952 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12953
129542008-07-28 Andreas Schwab <schwab@suse.de>
12955
12956 * lisp.h (init_weak_hash_tables, syms_of_font)
12957 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12958 (remove_hash_entry): Don't declare.
12959 * eval.c (maybe_call_debugger): Make static and move before use.
12960 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12961 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12962 * xterm.h (x_set_frame_alpha): Declare.
12963
129642008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12965
12966 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12967 (create_menus): Connect selection-done to menu_nav_ended.
12968
129692008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12970
12971 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12972 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12973 parameter with read of 'alpha' one.
12974 (Qns_frame_parameter): Remove.
5582fbc7 12975 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12976 (next-selection-coding-system, Vselection_coding_system)
12977 (Vnext_selection_coding_system): Drop.
12978
129792008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12980
12981 * nsfns.m (do-applescript, do_applescript): Rename to
12982 ns-do-applescript, ns_do_applescript, and move within file.
12983
129842008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12985
12986 Remove support for Mac Carbon.
12987 * mactoolbox.c:
12988 * macterm.h:
12989 * macterm.c:
12990 * macselect.c:
12991 * macmenu.c:
12992 * macgui.h:
12993 * macfns.c:
12994 * mac.c: Remove file.
12995 * s/darwin.h:
12996 * m/intel386.h:
12997 * xfaces.c:
12998 * xdisp.c:
12999 * window.c:
13000 * tparam.c:
13001 * termhooks.h:
13002 * termcap.c:
13003 * term.c:
13004 * syssignal.h:
13005 * sysselect.h:
13006 * sysdep.c:
13007 * process.c:
13008 * lread.c:
13009 * lisp.h:
13010 * keyboard.c:
13011 * image.c:
13012 * fringe.c:
13013 * frame.h:
13014 * frame.c:
13015 * fontset.c:
13016 * font.h:
13017 * font.c:
13018 * fns.c:
13019 * fileio.c:
13020 * emacs.c:
13021 * dispnew.c:
13022 * dispextern.h:
13023 * config.in:
13024 * atimer.c:
2ae37cf0 13025 * Makefile.in: Remove code for Carbon.
aac0c6e3 13026
f0131492 130272008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13028
13029 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13030
130312008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13032
13033 * macterm.h (kCGBitmapByteOrder32Host): New define for
13034 non-universal SDKs.
13035
13036 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13037 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13038
13039 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13040 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13041
130422008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13043
13044 * w32inevt.c: Include dispextern.h.
13045
130462008-07-26 Andreas Schwab <schwab@suse.de>
13047
13048 * print.c (print_object): Fix off-by-one in last change.
13049
130502008-07-25 Juanma Barranquero <lekktu@gmail.com>
13051
13052 * term.c (syms_of_term): Don't initialize default_orig_pair,
13053 default_set_foreground and default_set_background on Windows.
13054
130552008-07-25 Jason Rumney <jasonr@gnu.org>
13056
13057 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13058 ScriptItemize. Clean up return value checking. Remove unused
13059 variables.
13060 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13061 shaping engine.
13062
13063 * w32font.c (w32font_has_char): Handle the case where we can't
13064 determine the script for a character.
13065
130662008-07-25 Chong Yidong <cyd@stupidchicken.com>
13067
13068 * term.c (syms_of_term): Initialize default_orig_pair,
13069 default_set_foreground, and default_set_background.
13070
13071 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13072 clash (bug#86).
13073 (getloadavg): Callers changed.
13074
13075 * image.c (svg_load_image): Fix last change.
13076 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13077 image size is valid. Use g_object_unref instead of deprecated
13078 rsvg_handle_free to free rsvg handle.
13079 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13080
130812008-07-25 Jason Rumney <jasonr@gnu.org>
13082
13083 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13084 surrogates before looking up glyph index.
13085 (w32font_text_extents): Encode as surrogates if falling back to
13086 functions that need UTF-16 wide chars.
13087
13088 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13089 BMP as surrogates before looking up glyph index.
13090
130912008-07-25 Chong Yidong <cyd@stupidchicken.com>
13092
13093 * image.c (svg_load_image): Check for failure in return value of
13094 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13095
130962008-07-25 Jason Rumney <jasonr@gnu.org>
13097
13098 * w32font.c (Fx_select_font): Reverse sense of second arg.
13099
131002008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13101
13102 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13103 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13104
13105 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13106 (PURESIZE): Use it.
13107
131082008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13109
13110 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13111 * m/alpha.h (TEXT_END):
13112 * m/ibmrs6000.h (TEXT_END):
13113 * m/macppc.h (TEXT_END):
13114 * s/darwin.h (TEXT_END):
13115 * s/msdos.h (TEXT_END): Remove, unused.
13116 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13117 * s/cygwin.h: Remove comment.
13118
13119 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13120 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13121 * m/intel386.h (DOT_GLOBAL_START):
13122 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13123 (USG): Remove, file not used on USG platforms.
13124
13125 * Makefile.in (HAVE_X11): Remove empty #else.
13126
131272008-07-24 Andreas Schwab <schwab@suse.de>
13128
13129 * fileio.c (Finsert_file_contents): Properly adjust undo list
13130 after format conversion.
13131
131322008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13133
13134 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13135 (menu_nav_ended): Remove.
13136 (create_menus): Remove signal connect for menu_nav_ended.
13137 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13138 create_menus.
13139 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13140
131412008-07-23 Jason Rumney <jasonr@gnu.org>
13142
13143 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13144 with opened font.
13145 (w32font_open): Set font type to gdi.
13146
13147 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13148
131492008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13150
13151 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13152 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13153 defines it.
13154 * unexec.c (ADDR_CORRECT): Define unconditionally.
13155
13156 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13157
13158 * unexec.c: Remove code depending on !COFF and USG, the file is
13159 not used for such systems.
13160
13161 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13162 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13163 (LD_SWITCH_SYSTEM_1): Remove, update users.
13164
13165 * s/darwin.h (DATA_END):
13166 * m/intel386.h (DATA_END):
13167 * m/ibmrs6000.h (DATA_END):
13168 * m/alpha.h (DATA_END): Remove, unused.
13169
13170 * config.in: Regenerate.
13171 * s/ms-w32.h (subprocesses): Define unconditionally.
13172 * s/template.h (subprocesses): Update comment.
13173 * s/vms.h (subprocesses):
13174 * s/usg5-4.h (subprocesses):
13175 * s/hpux10-20.h (subprocesses):
13176 * s/gnu-linux.h (subprocesses):
13177 * s/cygwin.h (subprocesses):
13178 * s/bsd-common.h (subprocesses):
13179 * s/aix4-2.h (subprocesses):
13180 * s/darwin.h (subprocesses): Do not define, defined by default now.
13181
13182 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13183 Remove all references.
13184 (temacs): Add GNUstep specific ld flags.
13185
13186 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13187 similarly to what X does.
13188
131892008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13190
13191 * nsfns.m (x-list-fonts): Remove.
13192 (syms_of_nsfns): Drop the x-list-fonts declaration.
13193 * nsterm.m: Get rid of remaining "//" comments.
13194
131952008-07-22 Chong Yidong <cyd@stupidchicken.com>
13196
13197 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13198
13199 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13200 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13201 (Fns_own_selection_internal, Fx_disown_selection_internal)
13202 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13203
13204 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13205 ... */' style of docstrings. Doc fixes.
13206
132072008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13208
13209 * terminfo.c (UP, BC, PC): Undo previous change.
13210
13211 * nsfns.m: Rename ns prefixed functions/variables to the
13212 corresponding x versions. Update references.
13213
132142008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13215
13216 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13217
132182008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13219
13220 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13221 Remove forwarding functions.
13222 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13223 non-static.
13224 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13225 non-static.
13226 (ns_frame_parm_handlers): Use the new names.
13227 (syms_of_nsfns): Move to the end of file.
13228
13229 * nsterm.m (syms_of_nsterm): Move to the end of file.
13230
13231 * dispnew.c (init_display): Remove code for X10.
13232
132332008-07-22 Jason Rumney <jasonr@gnu.org>
13234
13235 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13236 bare drive.
13237
132382008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13239
13240 * nsterm.m (syms_of_nsterm): Remove debugging println.
13241
132422008-07-22 David Reitter <david.reitter@gmail.com>
13243
13244 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13245 Carbon implementation of the same functionality: execute arbitrary
13246 AppleScript code.
13247
132482008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13249
13250 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13251 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13252 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13253 (Fx_display_mm_height, Fx_display_mm_width)
13254 (Fx_display_backing_store, Fx_display_visual_class)
13255 (Fx_display_save_under, Fx_open_connection)
13256 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13257 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13258 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13259 (Fx_display_pixel_width, Fx_display_pixel_height)
13260 (Fx_display_usable_bounds, Fx_display_planes)
13261 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13262 ... */' style of docstrings.
13263
132642008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13265
13266 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13267 on this platform.
13268 (mips):
13269 * m/iris4d.h (mips): Do not define.
13270 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13271
13272 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13273
13274 * image.c:
13275 * nsfns.m:
13276 * nsselect.m:
13277 * nsterm.h:
13278 * nsterm.m: Rename ns prefixed functions/variables to the
13279 corresponding x versions. Update references.
13280
13281 * m/ibms390x.h (NO_REMAP): Do not undefine.
13282
13283 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13284
132852008-07-21 Chong Yidong <cyd@stupidchicken.com>
13286
13287 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13288 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13289 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13290 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13291 (Fns_display_mm_height, Fns_display_mm_width)
13292 (Fns_display_backing_store, Fns_display_visual_class)
13293 (Fns_display_save_under, Fns_open_connection)
13294 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13295 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13296 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13297 (Fns_display_pixel_width, Fns_display_pixel_height)
13298 (Fns_display_usable_bounds, Fx_display_planes)
13299 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13300
133012008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13302
13303 * print.c (print_object): Check print_depth before searching for
13304 circularities.
13305
133062008-07-21 Michael Albinus <michael.albinus@gmx.de>
13307
13308 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13309 only sprintf.
13310
133112008-07-21 Kenichi Handa <handa@m17n.org>
13312
13313 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13314
133152008-07-20 Andreas Schwab <schwab@suse.de>
13316
13317 * syntax.c (find_start_pos, find_start_value)
13318 (find_start_value_byte, find_start_begv, find_defun_start)
13319 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13320
133212008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13322
13323 * s/sol2-3.h: Insert contents of s/sol2.h.
13324 (LD_SWITCH_SYSTEM): Remove redundant definition.
13325 * s/sol2.h: Remove, unused.
13326
133272008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13328
13329 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13330
133312008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13332
13333 * Makefile.in (ns_appdir): Fix typo in find command.
13334
133352008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13336
13337 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13338
13339 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13340 added not supported anymore.
13341
13342 * s/usg5-4-2.h (LIBS_SYSTEM):
13343 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13344
13345 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13346 * s/lynxos.h (GETPGRP_NO_ARG):
13347 * s/hpux10-20.h (NO_SIOCTL_H):
13348 * s/gnu.h (GETPGRP_NO_ARG):
13349 * s/gnu-linux.h (NO_SIOCTL_H):
13350 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13351 * s/cygwin.h (GETPGRP_NO_ARG):
13352 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13353 (C_DEBUG_SWITCH): Remove duplicate definition.
13354
13355 * m/ibms390.h: Remove boilerplate comments.
13356
13357 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13358
13359 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13360 (wait_reading_process_output): Remove code for SunOS, platform not
13361 supported anymore. Use SOLARIS2 instead of sun.
13362
133632008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13364
13365 * font.c (font_open_by_name): Under NS, default lface height to zero.
13366 (font_open_for_lface): Under NS, set size based on frame fontsize.
13367 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13368 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13369
133702008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13371
13372 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13373 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13374 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13375 YES/NO.
13376 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13377 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13378 * Makefile.in (clean): Clear out build destination dir.
13379
133802008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13381
13382 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13383 xterm, xselect.
13384 * lisp.h: Remove declaration of hash_remove.
13385 * nsgui.h: Remove redefinitions of hash_remove.
13386 * fns.c (hash_remove): Rename to hash_remove_from_table.
13387
133882008-07-19 Seiji Zenitani <zenitani@mac.com>
13389
13390 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13391 strdup() the family UTF8String before modifying it.
13392
133932008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13394
13395 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13396 NS_FACE_BACKGROUND with 0 instead of nil.
13397 * nsfont.m (nsfont_draw): Same.
13398
133992008-07-19 Chong Yidong <cyd@stupidchicken.com>
13400
13401 * nsfns.m (ns_set_background_color): Fix crash.
13402
134032008-07-18 Chong Yidong <cyd@stupidchicken.com>
13404
13405 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13406
134072008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13408
13409 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13410
134112008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13412
13413 * gtkutil.c: Include <config.h> instead of "config.h".
13414
13415 * lisp.h (Foverlay_buffer): Add EXFUN.
13416
13417 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13418 child process to complete child_setup. Undo 2005-09-21 change.
13419
13420 * s/darwin.h: Mention setsid after vfork.
13421
134222008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13423
13424 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13425 Depend on macgui.h.
13426
13427 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13428 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13429
13430 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13431 and f19.
13432 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13433
13434 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13435 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13436 Remove enumerators.
13437
13438 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13439 Check if FACE_FROM_ID returns NULL.
13440
134412008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13442
13443 * w32inevt.c (change_frame_size): Remove extern declaration.
13444 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13445 change_frame_size.
13446
134472008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13448
13449 * getloadavg.c: Revert last change (2008-07-15).
13450
134512008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13452
13453 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13454 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13455 from configure.
13456
134572008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13458
13459 * s/sol2.h:
13460 * s/sol2-4.h: Reorganize conditionals.
13461
13462 * ecrt0.c: Remove code depending on m68000, not used anymore.
13463
13464 * fns.c (hash_remove): Make static.
13465 * lisp.h (hash_remove): Don't prototype.
13466
13467 * m/ibmrs6000.h:
13468 * m/ibms390x.h:
13469 * m/macppc.h: Remove boilerplate comments.
13470
13471 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13472 Solaris, which does not need them.
13473
13474 * m/vax.h: Remove comments about unsupported systems.
13475
13476 * s/darwin.h: Reorganize ifdefs.
13477
134782008-07-17 Andreas Schwab <schwab@suse.de>
13479
13480 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13481
134822008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13483
13484 Use SDATA. Follow coding convention of placing operators at
13485 beginning of next line rather than end of previous line, and placing
13486 spaces around infix operators.
13487
13488 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13489 in case it was defined already.
13490 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13491 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13492 ns_default.
13493 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13494 Lisp_Objects.
13495 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13496 (ns_defined_color, ns_color_to_lisp): Declare.
13497 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13498 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13499 it's accepted even with USE_LISP_UNION_TYPE.
13500 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13501 (update_frame_tool_bar): Remove apparently obsolete tests for
13502 non-integerness of f->tool_bar_lines.
13503 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13504 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13505 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13506 (nsfont_open): Don't confuse NULL for Qnil.
13507 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13508 * menu.h (find_and_call_menu_selection):
13509 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13510 (find_and_return_menu_selection): Always return something.
13511 * frame.h: Include dispextern.h for Display_Info.
13512 (display_x_get_resource): Declare.
13513
135142008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13515
13516 * syntax.c: Remove stdio.h include accidentally introduced in
13517 Emacs.app commit.
13518 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13519 NS_IMPL_COCOA.
13520 * keyboard.c (handle_async_input, input_available_signal): Remove
13521 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13522
135232008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13524
13525 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13526 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13527 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13528 Use SDATA.
13529
13530 * keymap.c: Remove all NS-specific code.
13531 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13532 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13533 where_is_preferred_modifier, return a different value depending on how
13534 preferred is the binding.
13535 (where_is_internal): Adjust accordingly.
13536 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13537 Adjust to new preferred_sequence_p.
13538 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13539 * keyboard.c (parse_solitary_modifier): Not static any more.
13540 * keyboard.h (parse_solitary_modifier): Declare.
13541
135422008-07-16 Andreas Schwab <schwab@suse.de>
13543
13544 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13545 of easymenu.
13546
135472008-07-16 Chong Yidong <cyd@stupidchicken.com>
13548
13549 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13550 that we don't move off the line.
13551
135522008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13553
13554 * keyboard.c (Qsuper): Remove.
13555 (parse_menu_item): Don't call where_is_internal specially for NS.
13556
135572008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13558
13559 * s/gnu-linux.h: Remove boilerplate comments.
13560
13561 * m/alpha.h (__ELF__): Consolidate conditions.
13562
13563 * m/m68k.h (linux): Use GNU_LINUX instead.
13564 Remove boilerplate comments.
13565
13566 * m/intel386.h: Undo refactoring from previous change.
13567 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13568 too, remove dead code.
13569 (linux): Use GNU_LINUX instead.
13570
135712008-07-16 Jason Rumney <jasonr@gnu.org>
13572
13573 * w32gui.h: Repeat 26 June changes lost by last change.
13574
135752008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13576
13577 * systty.h: Remove code for Aix on 386, unsupported platform.
13578
13579 * s/ms-w32.h: Remove boilerplate comments.
13580 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13581
13582 * s/gnu-linux.h (TERM): Remove support.
13583 (HAVE_SYSVIPC): Remove, unused.
13584 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13585 for this system.
13586
13587 * process.c: Remove support for IRIS, unused.
13588 Remove support for TERM, not relevant anymore.
13589
13590 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13591 used with the definition.
13592
13593 * s/aix4-2.h (static): Do not undef.
13594
13595 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13596 only used on Aix.
13597 (HAVE_SYSVIPC): Remove, unused.
13598
13599 * m/hp800.h (CANNOT_DUMP): Do not undef.
13600
13601 * m/alpha.h: Fix comment.
13602
13603 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13604 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13605 used by this configuration.
13606 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13607 * unexec.c: Remove code depending on HPUX and
13608 USG_SHARED_LIBRARIES, not used with this file. Remove code
13609 depending on IRIS, unused. Remove if 0-ed code.
13610
13611 * s/template.h: Remove comments about static.
13612
13613 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13614 Remove if 0-ed code.
13615 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13616 were the same as the default.
13617 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13618 Remove boilerplate comments.
13619 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13620 (HAVE_SYSVIPC): Remove, unused.
13621 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13622
13623 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13624 Remove boilerplate comments.
13625 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13626 Remove boilerplate comments.
13627 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13628 Remove boilerplate comments.
13629 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13630
13631 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13632 USG systems which do not use DATA_SEG_BITS.
13633 Refactor code. Remove boilerplate comments.
13634
13635 * m/ibms390.h:
13636 * m/m68k.h:
13637 * s/bsd-common.h:
13638 * s/cygwin.h:
13639 * s/darwin.h:
13640 * s/freebsd.h:
13641 * s/gnu.h:
13642 * s/msdos.h: Remove boilerplate comments.
13643
13644 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13645 do not use this file.
aac0c6e3
MR
13646 (IRIS_4D): Remove, unused.
13647
13648 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13649 do not use this file.
aac0c6e3
MR
13650 (SIGN_EXTEND_CHAR):
13651 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13652 * unexmips.c: Remove file, unused.
13653
13654 * editfns.c (Fuser_full_name): Replace the only use of
13655 USER_FULL_NAME with its value.
13656 * config.in: Regenerate.
13657
136582008-07-16 David Reitter <david.reitter@gmail.com>
13659
13660 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13661 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13662
136632008-07-16 Glenn Morris <rgm@gnu.org>
13664
13665 * emacs.c (system-type): Doc fix.
13666
136672008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13668
13669 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13670 If the cache doesn't work, let's fix it, rather than work around it.
13671
136722008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13673
13674 * Makefile.in: Correct additions for nsfont.o in last commit.
13675 * nsfont.m: New file (forgot last commit).
13676
136772008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13678
13679 * callproc.c (set_initial_environment): Initialize
13680 Vprocess_environment under CANNOT_DUMP (fixes crash when
13681 batch-compiling for bootstrap).
13682
136832008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13684 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13685
c4cc8b9a
JB
13686 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13687 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13688
136892008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13690
13691 Changes and additions for NeXTstep windowing system (Cocoa and
13692 GNUstep) support.
13693
13694 * Makefile.in:
13695 * config.in: Support defines and build commands for NS port.
13696 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13697 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13698 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13699 windowing.
13700 (struct face): Add synth_ital field.
13701 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13702 (init_display): Initialize Vinitial_window_system to "ns" when so
13703 compiled.
13704 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13705 (display_arg): Use under NS.
13706 (main): Under NS, allocate autorelease pool and handle command line
13707 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13708 (standard_args): Add NS-specific args.
13709 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13710 * font.c (DEFAULT_ENCODING): New variable.
13711 (font_find_for_lface): Use it.
13712 (syms_of_font): Load syms_of_nsfont under NS.
13713 * font.h: Declare nsfont_driver when compiled under NS.
13714 * fontset.c: When compiling under NS, include nsterm.h.
13715 (fontset_from_font): Autoconstruct fontset under NS.
13716 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13717 symbol, document and use it.
13718 (do_switch_frame): When for_deletion under Cocoa, add
13719 Fraise_frame(Qnil).
13720 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13721 (x_get_arg): Allow "yes" and "no" as boolean values.
13722 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13723 Qright under Cocoa.
13724 (focus-follows-mouse): Default to 0 under NS.
13725 * frame.h (enum output_method): Add output_ns.
13726 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13727 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13728 (FRAME_WINDOW_P): NS-specific definition.
13729 * fringe.c (max_used_fringe_bitmap): Make public.
13730 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13731 (getloadavg): Use NeXT code under descendant OS's.
13732 * image.c (includes and header section, x_create_bitmap_from_data)
13733 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13734 (image_background_transparent, x_clear_image_1)
13735 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13736 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13737 (x_to_xcolors, x_from_xcolors, x_disable_image)
13738 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13739 other GUIs, including XPM support using code originally written for
13740 Carbon GUI.
13741 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13742 using NS API.
13743 (image_ascent): Use font metrics macros instead of direct struct field
13744 access.
13745 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13746 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13747 Also, handle NS as GTK for menu bar purposes.
13748 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13749 toolkit where they differ.
13750 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13751 use cachelist, still needed under NS.
13752 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13753 (struct widget_value): Define it here for menu.c.
13754 * keymap.c (includes): Include modifier internals.
13755 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13756 NS.
13757 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13758 support for preferring sequences using certain modifiers, specified by
13759 the FIRSTONLY argument.
13760 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13761 under NS GNUstep implementation.
13762 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13763 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13764 * menu.c: Include nsterm.h under NS.
13765 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13766 (free_menubar_widget_tree_value, update_submenu_strings)
13767 (find_and_call_menu_selection): Treat NS as X and NT.
13768 (find_and_return_menu_selection): New function, used for popup menus.
13769 * nsgui.h:
13770 * nsterm.h:
13771 * nsfns.m:
13772 * nsimage.m:
13773 * nsmenu.m:
13774 * nsselect.m:
13775 * nsterm.m: New files.
13776 * process.c (wait_reading_process_output): Under NS, call ns_select()
13777 instead of plain select().
13778 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13779 beginning of buffer.
13780 * sysselect.h (init_process): Rename when compiling under Cocoa to
13781 avoid name conflict.
13782 * termhooks.h (display_info): Add ns_display_info to union.
13783 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13784 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13785 COCOA environment.
13786 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13787 unexec() signature. (Note, this will dump, but the resulting file
13788 crashes; unexosx is used instead; keeping around for reference and
13789 possible aid in getting dump working under GNUstep.)
13790 * w32gui.h (button_type, widget_value): Remove definitions (now in
13791 keyboard.h).
13792 * window.c: Include nsterm.h when compiling under NS.
13793 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13794 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13795 other GUI windowing systems.
13796 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13797 GTK.
13798 (x_consider_frame_title): Under NS, set icon type and frame
13799 modified-state indicator; use ns_set_name_as_filename() when using
13800 formatted title.
13801 (update_window_cursor): Make public when compiling under NS.
13802 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13803 (hourglass_atimer, Vhourglass_delay
13804 * xfaces.c (header section, init_frame_faces, clear_font_table)
13805 (defined_color, unload_color, x_face_list_fonts)
13806 (prepare_face_for_display): Add NS support parallel to other GUIs.
13807 Emulate GCs like other non-X GUIs.
13808 (split_font_name): Don't lowercase font name under NS.
13809 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13810 under NS.
13811 * s/darwin.h: Add support for compilation under NS.
13812
138132008-07-15 Jason Rumney <jasonr@gnu.org>
13814
13815 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13816 (w32_show_hourglass): Rename from show_hourglass.
13817 (w32_hide_hourglass): Rename from hide_hourglass.
13818 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13819 (Vhourglass_delay): Declare extern.
13820 (hourglass_started): Remove.
13821
13822 * xdisp.c (Vhourglass_delay): Remove static.
13823 (hourglass_started, start_hourglass, cancel_hourglass):
13824 Don't include these versions on WINDOWSNT.
13825
138262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13827
13828 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13829 variables (formerly in xfns.c).
13830 (show_hourglass, hide_hourglass): New prototypes (same).
13831 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13832 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13833 in xfns.c).
13834 (syms_of_xdisp): Declare/initialize display-hourglass,
13835 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13836 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13837 formerly in xfns.c.
13838 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13839 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13840 (start_hourglass, cancel_hourglass): Remove.
13841 (show_hourglass, hide_hourglass): Remove prototypes and static
13842 modifiers.
13843 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13844 hourglass_atimer, hourglass_shown_p declaration/initialization.
13845 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13846 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13847 (start_hourglass, cancel_hourglass): Remove.
13848 (show_hourglass, hide_hourglass): Remove prototypes and static
13849 modifiers.
13850 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13851 hourglass_atimer, hourglass_shown_p declaration/initialization.
13852 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13853 (DEFAULT_HOURGLASS_DELAY): Remove.
13854 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13855 hourglass_shown_p declaration/initialization.
13856
138572008-07-14 Jason Rumney <jasonr@gnu.org>
13858
13859 * w32fns.c (w32_get_arg): Remove wrapper function.
13860 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13861 directly.
13862 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13863
138642008-07-14 Kenichi Handa <handa@m17n.org>
13865
13866 * xfont.c (xfont_open): Add workaround for X's bug.
13867
138682008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13869
13870 * fontset.c: Include <stdio.h> unconditionally.
13871
138722008-07-13 Michael Albinus <michael.albinus@gmx.de>
13873
13874 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13875 for filtering.
13876
138772008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13878
13879 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13880
13881 * m/macppc.h:
13882 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13883
c4cc8b9a 13884 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13885 (SPECIAL_EMACS_INT):
13886 * m/ia64.h (SPECIAL_EMACS_INT):
13887 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13888 * s/gnu.h (NLIST_STRUCT):
13889 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13890 * s/gnu-linux.h (LINUX):
13891 * s/msdos.h (HAVE_FACES):
13892 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13893
13894 * systty.h:
13895 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13896 anymore.
13897
138982008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13899
13900 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13901 always defined as int.
13902
13903 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13904 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13905 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13906 * s/freebsd.h (HAVE_WAIT_HEADER):
13907 * s/bsd-common.h (HAVE_UNION_WAIT):
13908 * s/aix4-2.h (HAVE_WAIT_HEADER):
13909 * m/mips.h (HAVE_UNION_WAIT):
13910 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13911 (COFF, static): Do not define, they are undefined later in the file.
13912
13913 * process.c (update_status): Don't use a union.
13914 (status_convert):
13915 (sigchld_handler): Use int instead of WAITTYPE.
13916
139172008-07-12 Chong Yidong <cyd@stupidchicken.com>
13918
13919 * indent.c (Fvertical_motion): Restore hscroll before moving to
13920 goal column.
13921
139222008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13923
13924 * lisp.h: Remove left over code.
13925
139262008-07-11 Andreas Schwab <schwab@suse.de>
13927
13928 * lisp.h: Fix logic in last change.
13929
13930 * menu.h: New file.
13931 * menu.c: Include it.
13932 * xmenu.c: Likewise.
13933 * Makefile.in: Update dependencies.
13934
139352008-07-11 Kenichi Handa <handa@m17n.org>
13936
13937 * fontset.c (fontset_from_font): Cancel the previous change.
13938
139392008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13940
13941 * lisp.h:
13942 * w32heap.c:
13943 * emacs.c:
13944 * alloc.c: Replace all references of NO_UNION_TYPE with
13945 USE_LISP_UNION_TYPE.
13946
13947 * m/xtensa.h (NO_UNION_TYPE):
13948 * m/vax.h (NO_UNION_TYPE):
13949 * m/template.h (NO_UNION_TYPE):
13950 * m/sparc.h (NO_UNION_TYPE):
13951 * m/mips.h (NO_UNION_TYPE):
13952 * m/macppc.h (NO_UNION_TYPE):
13953 * m/m68k.h (NO_UNION_TYPE):
13954 * m/iris4d.h (NO_UNION_TYPE):
13955 * m/intel386.h (NO_UNION_TYPE):
13956 * m/ibms390x.h (NO_UNION_TYPE):
13957 * m/ibms390.h (NO_UNION_TYPE):
13958 * m/ibmrs6000.h (NO_UNION_TYPE):
13959 * m/ia64.h (NO_UNION_TYPE):
13960 * m/hp800.h (NO_UNION_TYPE):
13961 * m/arm.h (NO_UNION_TYPE):
13962 * m/amdx86-64.h (NO_UNION_TYPE):
13963 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13964 defining it the same.
13965
139662008-07-10 Chong Yidong <cyd@stupidchicken.com>
13967
13968 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13969
139702008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13971
13972 * fileio.c:
50426a04 13973 * sysdep.c:
aac0c6e3
MR
13974 * systty.h:
13975 * m/ibmrs6000.h:
13976 * m/iris4d.h:
13977 * s/aix4-2.h:
13978 * s/freebsd.h:
13979 * s/gnu-linux.h:
13980 * s/hpux10-20.h:
13981 * s/hpux11.h:
13982 * s/netbsd.h:
13983 * s/sol2-3.h:
13984 * s/sol2-4.h:
13985 * s/sol2.h:
13986 * s/usg5-4.h:
13987 * s/vms.h: Remove references to unused variables.
13988
139892008-07-10 Andreas Schwab <schwab@suse.de>
13990
13991 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
13992 pattern before matching the generic family.
13993
139942008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13995
13996 * unexec.c:
13997 * s/vms.h:
13998 * s/usg5-4-2.h:
13999 * s/sol2-5.h:
14000 * s/freebsd.h:
14001 * s/darwin.h: Remove dead code.
14002
14003 * m/template.h:
14004 * m/sparc.h:
14005 * m/mips.h:
14006 * m/m68k.h:
14007 * m/iris4d.h:
14008 * m/intel386.h:
14009 * m/ibms390x.h:
14010 * m/ibms390.h:
14011 * m/ia64.h:
14012 * m/hp800.h:
14013 * m/arm.h:
14014 * m/amdx86-64.h: Remove dead code and references to unused
14015 and compiler defined symbols.
14016
14017 * unexmips.c:
14018 * unexelf.c: Remove references to desupported systems.
14019
14020 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14021
14022 * m/powermac.h: Remove boilerplate comments.
14023 (NO_REMAP): Remove unused definition.
14024
14025 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14026 define them.
14027
140282008-07-10 Kenichi Handa <handa@m17n.org>
14029
14030 * xfont.c (xfont_open): Log the reason of failure.
14031
140322008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14033
14034 * fontset.c (fontset_get_font_group):
14035 * font.c (font_check_otf): Specify argument types.
14036
140372008-07-09 Kenichi Handa <handa@m17n.org>
14038
14039 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14040 non-ASCII char is found.
14041
14042 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14043 (reorder_font_vector): Change the arg preferred_family to font.
14044 Prefer the spec matching with font.
14045 (fontset_get_font_group): New function.
14046 (fontset_find_font): Change the format of an element of a realized
14047 fontset. Use fontset_get_font_group.
14048 (fontset_font): Try the current fontset, the default fontset, the
14049 fallbacks of the current fontset, and the fallbacks of the default
14050 fontset in this order.
14051 (face_for_char): Delete the shortcut to use the current font.
14052 (fontset_from_font): Don't set fonts for Latin in the fontset.
14053
14054 * font.h (font_make_object, font_match_p): Adjust prototypes.
14055
14056 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14057
14058 * font.c (font_make_object): New arg entity and pixelsize.
14059 (font_check_otf_features, font_check_otf): New functions.
14060 (font_match_p): Check :lang, :script, and :otf properties.
14061
14062 * xfont.c (xfont_open): Adjust it for the change of
14063 font_make_object.
14064 (xfont_text_extents): Fix initial setting of metrics.
14065
14066 * ftfont.c (struct ftfont_info): New member index, delete member
14067 fc_charset_idx. Make the member order compatible with struct
14068 xftfont_info.
14069 (fc_charset_table): Change charset names to registry names.
14070 (ftfont_pattern_entity): Delete the args registry and
14071 fc_charset_idx. Change the value of :font-entity property
14072 to (FONTNAME . INDEX). Always set :registry property to
14073 `iso10646-1'.
14074 (struct ftfont_cache_data): New struct.
14075 (ftfont_lookup_cache): New arg for_face.
14076 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14077 (ftfont_driver): Set the member otf_capability.
14078 (ftfont_get_charset): Adjust it for the change of
14079 fc_charset_table.
14080 (OTF_TAG_SYM): New macro.
14081 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14082 for the change of fc_charset_table.
14083 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14084 ftfont_pattern_entity. Add FC_INDEX to objset.
14085 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14086 and ftfont_pattern_entity.
14087 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14088 font_make_object, struct ftfont_info.
14089 (ftfont_has_char): Use ftfont_get_fc_charset.
14090 (ftfont_otf_features, ftfont_otf_capability): New functions.
14091 (ftfont_shape): Use ftfont_get_otf.
14092 (ftfont_text_extents): Fix initial setting of metrics.
14093
14094 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14095 member order compatible with struct ftfont_info.
14096 (xftfont_open): Add FC_CHARSET to the pattern. Set
14097 xftfont_info->ft_size. Don't unlock the face. Check BDF
14098 properties if appropriate.
14099 (xftfont_close): Unlock the face.
14100 (xftfont_anchor_point, xftfont_shape): Deleted.
14101 (syms_of_xftfont): Don't set members anchor_point and shape of
14102 xftfont_driver.
14103
14104 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14105 font_make_object.
14106
14107 * w32font.c (w32font_open): Adjust it for the change of
14108 font_make_object.
14109 (w32font_open_internal): Don't set properties of font_object here.
14110
141112008-07-08 Chong Yidong <cyd@stupidchicken.com>
14112
14113 * macfns.c (x_create_tip_frame):
14114 * w32fns.c (x_create_tip_frame):
14115 * xfns.c (x_create_tip_frame): Pass parameter argument to
14116 face-set-after-frame-default.
14117
14118 * xfaces.c (Finternal_merge_in_global_face): Save merged
14119 attributes for the default face back into the face vector.
14120
141212008-07-08 Andreas Schwab <schwab@suse.de>
14122
14123 * fontset.h: Declare fontset_from_font. Don't declare
14124 new_fontset_from_font and fontset_from_font_name.
14125 * xterm.c: Include "fontset.h".
14126 * Makefile.in (xterm.o): Update dependencies.
14127
141282008-07-08 Glenn Morris <rgm@gnu.org>
14129
14130 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14131 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14132
141332008-07-07 Chong Yidong <cyd@stupidchicken.com>
14134
14135 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14136 (x_set_frame_parameters): Don't bind it.
14137
141382008-07-07 Juanma Barranquero <lekktu@gmail.com>
14139
14140 * w32fns.c (map_w32_filename): Declare extern.
14141
141422008-07-07 Jason Rumney <jasonr@gnu.org>
14143
14144 * w32term.c (WS_EX_LAYERED): Define if not already.
14145
141462008-07-06 Chong Yidong <cyd@stupidchicken.com>
14147
14148 * xfaces.c (set_font_frame_param): Don't try to set the font
14149 parameter if it is still unspecified in the lface.
14150
141512008-07-05 Chong Yidong <cyd@stupidchicken.com>
14152
14153 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14154 face if it didn't already exist.
14155
14156 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14157
141582008-07-05 Andreas Schwab <schwab@suse.de>
14159
14160 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14161
141622008-07-05 Chong Yidong <cyd@stupidchicken.com>
14163
14164 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14165 word-wrapping.
14166 (IT_DISPLAYING_WHITESPACE): New macro.
14167 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14168 when word-wrapping. Simplify word-wrapping logic. Use correct
14169 pixel positions when saving copies of the iterator.
14170 (display_line): Use proper wrap point if the last character on a
14171 line was preceded by whitespace.
14172
141732008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14174
14175 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14176
141772008-07-04 Kenichi Handa <handa@m17n.org>
14178
14179 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14180
14181 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14182
141832008-07-02 Jason Rumney <jasonr@gnu.org>
14184
14185 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14186 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14187
14188 * xdisp.c (next_element_from_display_vector): Move assignment out
14189 of if statement.
14190
141912008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14192
14193 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14194
14195 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14196 (syms_of_fileio): Initialize and export them.
14197 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14198
14199 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14200 (Fsystem_move_file_to_trash): New function.
14201 (syms_of_w32fns): Export it to lisp.
14202
142032008-07-01 Jason Rumney <jasonr@gnu.org>
14204
14205 * w32font.c (w32font_text_extents): Don't count overhang as part
14206 of width.
14207
142082008-06-30 Miles Bader <miles@gnu.org>
14209
14210 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14211 Add `avoid_cursor_p' field.
14212
14213 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14214 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14215 (append_glyph, append_composite_glyph, produce_image_glyph)
14216 (append_stretch_glyph): Initialize avoid_cursor_p.
14217 (get_it_property): Rename from `get_line_height_property'.
14218 (x_produce_glyphs): Use get_it_property.
14219 (handle_line_prefix, push_display_prop): New functions.
14220 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14221 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14222 New variables.
14223 (syms_of_xdisp): Initialize them.
14224
142252008-06-30 Kenichi Handa <handa@m17n.org>
14226
14227 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14228 XftDefaultSubstitute (they are called in XftFontMatch).
14229 (xftfont_open): Fix args to ftfont_font_format.
14230
14231 * ftfont.c (fc_charset_table): New member lang.
14232 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14233 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14234 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14235 (ftfont_open): Fix args to ftfont_font_format.
14236 (ftfont_font_format): New arg filename.
14237
142382008-06-30 Chong Yidong <cyd@stupidchicken.com>
14239
14240 * xfaces.c (Finternal_merge_in_global_face): If default face was
14241 modified, realize it again. Update the font face attribute.
14242
142432008-06-29 Jason Rumney <jasonr@gnu.org>
14244
14245 * w32term.c (x_set_frame_alpha): Fix logic.
14246
142472008-06-29 Kenichi Handa <handa@m17n.org>
14248
14249 * fontset.c (Finternal_char_font): Return font-object instead of
14250 font-name.
14251
14252 * composite.c (get_composition_id): Fix the width calculation for TAB.
14253
142542008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14255
14256 * indent.c (Fvertical_motion): Properly handle float column arg.
14257
142582008-06-28 Jason Rumney <jasonr@gnu.org>
14259
14260 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14261 (pfnSetLayeredWindowAttributes): New function pointer.
14262 (w32_initialize): Initialize it when supported.
14263 (x_set_frame_alpha): New function.
14264
14265 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14266 (w32_frame_parm_handlers): Set alpha handler.
14267
14268 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14269
142702008-06-27 Jason Rumney <jasonr@gnu.org>
14271
14272 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14273 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14274 (w32_to_x_charset, x_to_w32_charset)
14275 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14276 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14277 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14278 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14279 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14280 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14281 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14282 (Qw32_charset_unicode): Remove.
14283 (syms_of_w32fns): Update for above changes.
14284
14285 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14286 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14287 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14288 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14289 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14290 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14291 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14292 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14293 (syms_of_w32font): Update for above changes.
14294
142952008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14296
14297 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14298 removed #if.
14299 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14300
143012008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14302 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14303
14304 * makefile.w32-in (LOCAL_FLAGS):
14305 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14306
14307 * sysdep.c (_spawnlp, _getpid):
14308 Declare with explicit _cdecl instead of _CRTAPI1.
14309
14310 * editfns.c (Fget_internal_run_time):
14311 Check for WINDOWSNT with #ifdef, not #if.
14312
143132008-06-26 Jason Rumney <jasonr@gnu.org>
14314
14315 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14316
14317 * w32term.c (x_draw_glyph_string_foreground)
14318 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14319 Use FONT_HANDLE macro.
14320 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14321
14322 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14323 (uniscribe_encode_char): Use FONT_HANDLE macro.
14324
14325 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14326 (w32font_text_extents): Use precast w32_font.
14327 (w32font_close): Free cached metrics.
14328 (w32font_open_internal): Allocate space for name on stack.
14329
143302008-06-26 Chong Yidong <cyd@stupidchicken.com>
14331
14332 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14333
143342008-06-26 Jason Rumney <jasonr@gnu.org>
14335
14336 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14337 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14338
143392008-06-26 Juanma Barranquero <lekktu@gmail.com>
14340
14341 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14342
143432008-06-26 Jason Rumney <jasonr@gnu.org>
14344
14345 * w32bdf.c, w32bdf.h: Remove obsolete files.
14346
14347 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14348
14349 * w32gui.h: Don't include w32bdf.h.
14350 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14351 Remove obsolete font support.
14352
14353 * w32font.h (struct w32font_info): Remove compat_w32_font.
14354 Add hfont member.
14355 (FONT_COMPAT): Remove obsolete macro.
14356
14357 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14358 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14359 (w32font_open_internal): Remove compat code. Set new hfont member.
14360 (Fx_select_font): Use new hfont member.
14361
14362 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14363 (uniscribe_encode_char): Use new hfont member.
14364
14365 * w32term.c (x_draw_glyph_string_foreground)
14366 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14367 (x_draw_glyph_string): Use metrics in w32font_info.
14368
143692008-06-26 Kenichi Handa <handa@m17n.org>
14370
14371 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14372
143732008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14374
14375 * unexnext.c:
14376 * m/ews4800.h:
14377 * m/hp9000s300.h:
14378 * m/ibm370aix.h:
14379 * m/mips-siemens.h:
14380 * m/ncr386.h:
14381 * m/next.h:
14382 * m/pmax.h:
14383 * m/powerpcle.h:
14384 * m/tandem-s2.h:
14385 * s/386bsd.h:
14386 * s/bsd386.h:
14387 * s/bsd4-1.h:
14388 * s/bsd4-2.h:
14389 * s/bsdos2-1.h:
14390 * s/bsdos2.h:
14391 * s/bsdos3.h:
14392 * s/bsdos4.h:
14393 * s/nextstep.h:
14394 * s/ultrix4-3.h:
14395 * s/usg5-0.h:
14396 * s/usg5-2-2.h:
14397 * s/usg5-2.h:
14398 * s/usg5-4-3.h:
14399 * s/ux4800.h:
14400 * s/uxpds.h:
14401 * s/uxpv.h: Remove support for obsolete systems.
14402 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14403 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14404 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14405 Remove, insert contents in s/aix4-2.h.
14406 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14407 * s/bsd4-3.h: Rename to ...
14408 * s/bsd-common.h: ... this.
14409 * data.c:
14410 * doc.c:
14411 * ecrt0.c:
14412 * emacs.c:
14413 * fileio.c:
14414 * floatfns.c:
14415 * keyboard.c:
14416 * mem-limits.h:
14417 * print.c:
14418 * process.c:
14419 * sysdep.c:
14420 * syssignal.h:
14421 * systty.h:
14422 * syswait.h:
14423 * term.c:
14424 * unexec.c:
14425 * unexelf.c:
14426 * unexhp9k800.c:
14427 * m/hp800.h:
14428 * m/ibmrs6000.h:
14429 * m/mips.h:
14430 * m/vax.h:
14431 * s/darwin.h:
14432 * s/freebsd.h:
14433 * s/gnu.h:
14434 * s/ms-w32.h:
14435 * s/msdos.h:
14436 * s/netbsd.h:
14437 * s/template.h: Remove references to obsolete variables.
14438
14439 * Makefile.in: Add dependencies for all unexec files.
14440 (admindir): Remove unused variable.
14441 (UNEXEC_SRC): Remove references.
14442
144432008-06-25 Chong Yidong <cyd@stupidchicken.com>
14444
14445 * xfns.c (x_default_font_parameter): If Xft is available, first
14446 try Monospace-12 for the default font.
14447
144482008-06-25 Jason Rumney <jasonr@gnu.org>
14449
14450 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14451
144522008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14453
14454 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14455
14456 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14457
144582008-06-25 Juanma Barranquero <lekktu@gmail.com>
14459
14460 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14461 <scroll-conservatively>: Fix typo in docstring.
14462
14463 * xselect.c (Fx_send_client_event): Doc fix.
14464
144652008-06-25 Kenichi Handa <handa@m17n.org>
14466
14467 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14468
14469 * font.c (font_parse_fcname): Remove unused variables.
14470 (font_sort_entites): Delete the arg SPEC. Caller changed.
14471 Fix for the case of ! best_only.
14472 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14473
14474 * lisp.h (Fstring_to_unibyte): EXFUN it.
14475
14476 * character.h (str_to_unibyte): Extern it.
14477
14478 * character.c (str_to_unibyte): New function.
14479
14480 * fns.c (Fstring_to_unibyte): New function.
14481 (syms_of_fns): Defsubr it.
14482
144832008-06-24 Kenichi Handa <handa@m17n.org>
14484
14485 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14486 DPI too.
14487 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14488
144892008-06-24 Andreas Schwab <schwab@suse.de>
14490
14491 * Makefile.in (${lispsource}loaddefs.el): Rename from
14492 ../lisp/loaddefs.el.
14493 (bootstrap-clean): Do what distclean does but don't remove
14494 Makefile.
14495 (distclean): Depend on bootstrap-clean and remove Makefile.
14496
144972008-06-24 Chong Yidong <cyd@stupidchicken.com>
14498
14499 * buffer.h (struct buffer): New member word_wrap.
14500
14501 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14502 word-wrap.
14503 (init_buffer_once): Initialize them.
14504
14505 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14506 line_wrap enum possessing three possible values.
14507
14508 * termopts.h: Replace truncate_partial_width_windows with
14509 Vtruncate_partial_width_windows.
14510
14511 * dispnew.c (direct_output_for_insert): Avoid direct output when
14512 inserting a space with word wrap on.
14513
14514 * indent.c (compute_motion): Obey integer values of
14515 truncate-partial-width-windows.
14516
14517 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14518 replacing truncate_partial_width_windows.
14519 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14520 truncate only if the window width is below that integer.
14521 (start_display, resize_mini_window, produce_stretch_glyph)
14522 (display_string, move_it_in_display_line_to): Use line_wrap.
14523 (back_to_previous_visible_line_start, reseat_1): Reset
14524 string_from_display_prop_p.
14525 (display_line): Extend default face to end of line when wrapping.
14526
145272008-06-24 Kim F. Storm <storm@cua.dk>
14528
14529 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14530 to wrap continued lines at word boundaries.
14531
145322008-06-24 Jason Rumney <jasonr@gnu.org>
14533
14534 * font.c (Ffont_face_attributes): Multiply pixel size before point
14535 conversion to avoid multiplying rounding error.
14536
145372008-06-23 Jason Rumney <jasonr@gnu.org>
14538
14539 * w32term.c (x_draw_glyph_string_background)
14540 (x_draw_glyph_string): Remove old bdf font code.
14541
14542 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14543
145442008-06-22 Kenichi Handa <handa@m17n.org>
14545
14546 * font.c (font_find_for_lface): Try the adstyle specified in
14547 the property of LFACE_FONT of LFACE (if any).
14548
145492008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14550 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14551
14552 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14553
145542008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14555
14556 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14557 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14558 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14559 (witness-emacs): Remove.
14560 (lisp, shortlisp): Move loaddefs.el earlier.
14561 (mostlyclean): Forget about witness-emacs.
14562
145632008-06-22 Glenn Morris <rgm@gnu.org>
14564
14565 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14566 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14567
145682008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14569
14570 * Makefile.in (PRECOMP): Remove.
14571 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14572 (witness-emacs): Run `compile-first'.
14573 (.el.elc): Use the new compile-onefile target.
14574
145752008-06-21 Kenichi Handa <handa@m17n.org>
14576
14577 * xftfont.c (xftfont_open): Handle QCembolden only when
14578 FC_EMBOLDEN is defined.
14579
145802008-06-21 Andreas Schwab <schwab@suse.de>
14581
14582 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14583 (.el.elc): Likewise.
14584
145852008-06-21 Miles Bader <miles@gnu.org>
14586
14587 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14588 build dir, not the lisp source dir.
14589
145902008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14591
14592 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14593 (bootstrapclean): Remove.
14594 (.el.elc): New rule.
14595 (PRECOMP): New var.
14596 (../lisp/subdirs.el): Remove.
14597 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14598 (witness-emacs): New target.
14599 (mostlyclean): Remove witness-emacs as well.
14600 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14601 Add witness-emacs dependency.
14602
146032008-06-20 Chong Yidong <cyd@stupidchicken.com>
14604
14605 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14606 defined by the font.
14607
146082008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14609
14610 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14611 (bootstrap-clean): New target that keeps TAGS around.
14612 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14613 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14614
146152008-06-20 Jason Rumney <jasonr@gnu.org>
14616
14617 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14618 Remove obsolete font code.
14619
14620 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14621 to determine language support.
14622
146232008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14624
14625 * sysdep.c (cfsetspeed): New fun extracted from the code.
14626 (cfmakeraw): Move before first use.
14627
146282008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14629
14630 * sysdep.c (cfmakeraw): Provide fallback implementation.
14631 (serial_configure): Provide fallback implementation of cfsetspeed.
14632
146332008-06-20 Kenichi Handa <handa@m17n.org>
14634
14635 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14636 the pattern.
14637
14638 * fontset.c (fontset_from_font): Copy font_spec before changing
14639 the elements.
14640
14641 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14642
146432008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14644
14645 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14646 for explicit `font' parameters.
14647
14648 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14649
146502008-06-19 Kenichi Handa <handa@m17n.org>
14651
14652 * frame.c: Include <ctype.h>.
14653 (x_set_font_backend): Allow spacing characters in the X resource
14654 for FontBackend.
14655
146562008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14657
14658 * w32fns.c, xfns.c (Qfont_param): New var.
14659 (syms_of_w32fns): Initialize it.
14660 (x_default_font_parameter): Record explicit `font' into
14661 `font-parameter'.
14662
146632008-06-18 Kenichi Handa <handa@m17n.org>
14664
14665 * font.c (font_parse_xlfd): Fix previous change.
14666 (font_parse_fcname): Don't use :fc-unknown-spec.
14667 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14668 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14669 (font_add_log): Prepend the driver name to the resulting fonts.
14670
14671 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14672 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14673 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14674
14675 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14676 (QCembolden): New variables.
14677 (syms_of_xftfont): DEFSYM them.
14678 (xftfont_open): Call XftFontMatch. Don't trust the result of
14679 XftTextExtents8 if the pixel_size is less than 5.
14680
146812008-06-18 Andreas Schwab <schwab@suse.de>
14682
14683 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14684 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14685
146862008-06-18 Jason Rumney <jasonr@gnu.org>
14687
14688 * w32font.c (w32font_list, w32font_match): Add logging.
14689
14690 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14691
146922008-06-17 Chong Yidong <cyd@stupidchicken.com>
14693
14694 * font.c (font_parse_fcname): Store divider characters for
14695 unknown-spec list. For known key symbols, intern using correct
14696 symbol name.
14697
146982008-06-17 Kenichi Handa <handa@m17n.org>
14699
14700 * xfaces.c (realize_default_face): If the frame is not on window
14701 system, set the fontset of face to nil.
14702
147032008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14704
14705 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14706
147072008-06-16 Juanma Barranquero <lekktu@gmail.com>
14708
14709 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14710 (build_font_name_from_vector): Delete externs.
14711
14712 * xfaces.c (struct font_name): Don't declare.
14713
147142008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14715
14716 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14717
147182008-06-16 Chong Yidong <cyd@stupidchicken.com>
14719
14720 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14721
147222008-06-16 Juanma Barranquero <lekktu@gmail.com>
14723
14724 * font.c (Ffont_spec): Fix usage in docstring.
14725 (Ffont_face_attributes): Doc fix.
14726
147272008-06-16 Andreas Schwab <schwab@suse.de>
14728
14729 * font.c (Ffont_face_attributes): Fix definition.
14730
147312008-06-16 Jason Rumney <jasonr@gnu.org>
14732
14733 * font.h (font_style_symbolic_from_value): Remove.
14734
14735 * font.c (font_style_symbolic_from_value): Remove.
14736 (font_style_symbolic): Revert to pre 2008-06-13 version.
14737
14738 * w32font.c (w32_to_fc_weight): New function.
14739 (w32font_full_name, logfont_to_fcname): Use it.
14740
147412008-06-16 Kenichi Handa <handa@m17n.org>
14742
14743 * font.c (font_check_object): Delete it.
14744 (font_clear_cache): Check if a font-object is alive.
14745 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14746 font-object to nil.
14747 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14748 (font_at): Don't call font_check_object.
14749 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14750
147512008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14752
14753 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14754
147552008-06-16 Chong Yidong <cyd@stupidchicken.com>
14756
14757 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14758
147592008-06-15 Chong Yidong <cyd@stupidchicken.com>
14760
14761 * font.c (font_parse_fcname): Only one decimal point.
14762 (font_unparse_fcname): Handle data in family and foundry indices
14763 as symbols, not strings.
14764 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14765
14766 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14767
14768 * font.h (font_unparse_gtkname): Add prototype.
14769
147702008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14771
14772 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14773
147742008-06-15 Andreas Schwab <schwab@suse.de>
14775
14776 * font.c (font_update_drivers): Fix crash when no drivers match.
14777
147782008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14779
14780 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14781 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14782
147832008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14784
14785 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14786
147872008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14788
14789 * process.c (Fserial_process_configure, Fprocess_send_eof):
14790 Use EQ to compare Lisp_Objects.
14791
147922008-06-13 Jason Rumney <jasonr@gnu.org>
14793
14794 * w32fns.c (Fw32_select_font): Remove old font API function.
14795
14796 * w32font.c (logfont_to_fcname): New function.
14797 (Fx_select_font): New font dialog function compatible with
14798 GTK/fontconfig version.
14799
14800 * font.c (font_style_symbolic_from_value): New function.
14801 (font_style_symbolic): Use it.
14802
14803 * font.h (font_style_symbolic_from_value): Declare new function.
14804
148052008-06-13 Juanma Barranquero <lekktu@gmail.com>
14806
14807 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14808 <font-width-table>: Fix typos in docstrings.
14809
148102008-06-13 Daniel Engeler <engeler@gmail.com>
14811
14812 These changes add serial port access.
14813 * process.c: Add HAVE_SERIAL.
14814 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14815 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14816 (list_processes_1, select_wrapper, Fstop_process)
14817 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14818 (status_notify): Modify to handle serial processes.
14819 [HAVE_SERIAL] (Fserial_process_configure)
14820 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14821 New functions.
14822 * process.h (struct Lisp_Process): Add `type'.
14823 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14824 New functions.
14825 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14826 serial ports.
b71ac3dd 14827 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14828 * w32.h: Add FILE_SERIAL.
14829 (struct _child_process): Add ovl_read, ovl_write.
14830
148312008-06-13 Kenichi Handa <handa@m17n.org>
14832
14833 * dispextern.h (enum lface_attribute_index): New member
14834 LFACE_FOUNDRY_INDEX.
14835
14836 * font.c (font_score): Delete arg alternate_families. Check only
14837 weight, slant, width, and size. Ignore the difference of alias
14838 style symbols.
14839 (font_sort_entites): Adjust for the above change. Reflect the
14840 order of font-driver to scores.
14841 (font_list_entities): Don't check alternate_familes here.
14842 (font_clear_prop): Handle foundry.
14843 (font_update_lface): Don't parse "foundry-family" form here.
14844 Handle FONT_FOUNDRY_INDEX.
14845 (font_find_for_lface): Likewise. Handle alternate families here.
14846 If registry is nil, try iso8859-1 and ascii-0.
14847 (font_open_for_lface): Pay attention to size in ENTITY.
14848 (font_open_by_name): Simplify by calling font_load_for_lface.
14849 (free_font_driver_list): Delete it.
14850 (font_update_drivers): Preserve the order of backends.
14851 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14852 of font_score and font_sort_entites.
14853 (font_update_sort_order): Likewise.
14854
14855 * xfaces.c (LFACE_FOUNDRY): New macro.
14856 (check_lface_attrs): Check foundry.
14857 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14858 (merge_face_vectors): Check foundry.
14859 (merge_face_ref): Likewise.
14860 (Finternal_set_lisp_face_attribute): Likewise.
14861 (x_update_menu_appearance): Likewise.
14862 (Finternal_get_lisp_face_attribute): Likewise.
14863 (lface_hash): Likewise.
14864 (lface_same_font_attributes_p): Likewise.
14865 (x_supports_face_attributes_p): Likewise.
14866 (tty_supports_face_attributes_p): Likewise.
14867 (Finternal_set_alternative_font_family_alist): Intern strings.
14868 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14869 (realize_default_face): Set LFACE_FOUNDRY (lface).
14870
14871 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14872 font-driver at first.
14873
14874 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14875
148762008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14877
14878 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14879
148802008-06-12 Jim Meyering <meyering@redhat.com>
14881
14882 Make unexec_free handle NULL the same way free does.
14883 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14884
148852008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14886
14887 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14888 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14889 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14890 (WEAK_ALIAS): Simplify.
14891 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14892 when searching a unibyte buffer.
14893
148942008-06-12 Chong Yidong <cyd@stupidchicken.com>
14895
14896 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14897
148982008-06-12 Juanma Barranquero <lekktu@gmail.com>
14899
14900 * w32font.c: Include ctype.h.
14901
149022008-06-11 Jason Rumney <jasonr@gnu.org>
14903
14904 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14905 misreported as space.
14906 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14907 as aliases for registry iso10646-1.
14908
149092008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14910
14911 * buffer.c (clone_per_buffer_values): Skip `name'.
14912
149132008-06-11 Chong Yidong <cyd@stupidchicken.com>
14914
14915 * font.c (font_parse_fcname): Fix last change; accept decimal
14916 points in font size.
14917
149182008-06-10 Jason Rumney <jasonr@gnu.org>
14919
14920 * w32uniscribe.c (add_opentype_font_name_to_list):
14921 Skip non unicode fonts.
14922
149232008-06-10 Chong Yidong <cyd@stupidchicken.com>
14924
14925 * xfns.c (Fx_font_dialog): New function.
14926
14927 * gtkutil.c (xg_dialog_response_cb): Rename from
14928 xg_file_response_callback.
14929 (pop_down_dialog): Rename from pop_down_file_dialog.
14930 (xg_get_file_name): Callers changed.
14931 (xg_get_font_name): New function.
14932
14933 * gtkutil.h (xg_get_font_name): Insert prototype.
14934
149352008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14936
14937 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14938 x_underline_minimum_display_offset.
14939 (syms_of_xdisp): Declare it here rather than in xterm.c.
14940 * dispextern.h (underline_minimum_offset): Declare it.
14941 * w32term.c (x_draw_glyph_string): Use it.
14942 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14943 (syms_of_xterm): Don't declare it any more.
14944 (x_draw_glyph_string): Adjust to the new name.
14945
8719abec 149462008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14947
14948 * xterm.c (x_underline_minimum_display_offset): New var.
14949 (x_draw_glyph_string): Use it.
14950 (syms_of_xterm): Declare it.
14951
149522008-06-10 Chong Yidong <cyd@stupidchicken.com>
14953
14954 * font.c (font_parse_fcname): Accept GTK-style font names too.
14955
149562008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14957
14958 * dired.c (file_name_completion): Don't return t if the match is exact
14959 but with different capitalization.
14960 * minibuf.c (Ftry_completion): Simplify.
14961
14962 * window.c (Vwindow_point_insertion_type): New var.
14963 (set_window_buffer): Use it.
14964 (syms_of_window): Init and export it to Lisp.
14965
149662008-06-10 Kenichi Handa <handa@m17n.org>
14967
14968 * font.h (font_intern_prop): Prototype adjusted.
14969
14970 * font.c (font_intern_prop): New arg force_symbol.
14971 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14972 Adjust for the change of font_intern_prop.
14973
14974 * ftfont.c (ftfont_pattern_entity):
14975 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14976 (w32_registry):
14977 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
14978 the change of font_intern_prop.
14979
149802008-06-09 Juanma Barranquero <lekktu@gmail.com>
14981
14982 * w32menu.c (digest_single_submenu): Declare extern.
14983
149842008-06-09 Jason Rumney <jasonr@gnu.org>
14985
14986 * w32term.c (x_make_frame_visible): Use alternate restore flags.
14987
14988 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
14989 (parse_single_submenu): Remove.
14990 (digest_single_submenu): Remove.
14991 (syms_of_w32menu): Don't initialise variables that have moved
14992 to menu.c.
14993 (set_frame_menubar): Sync with version in xmenu.c.
14994 (w32_menu_show): Sync with xmenu_show in xmenu.c.
14995
14996 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
14997 Make static again.
14998
149992008-06-09 Jason Rumney <jasonr@gnu.org>
15000
15001 Changes to w32 files related to the move of common menu code
15002 to menu.c on 2008-06-08 by Chong Yidong.
15003
15004 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15005 defs to w32gui.h.
15006 (single_keymap_panes, push_menu_item, push_menu_pane):
15007 Make globally visible.
15008
15009 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15010 (local_free, malloc_widget_value, free_widget_value)
15011 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15012 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15013 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15014 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15015 (menu_items, menu_items_allocated, menu_items_used)
15016 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15017 (init_menu_items, finish_menu_items, discard_menu_items)
15018 (grow_menu_items, push_submenu_start, push_submenu_end)
15019 (push_left_right_boundary, push_menu_pane, push_menu_item)
15020 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15021 (free_menubar_widget_tree_value, parse_single_submenu)
15022 (update_submenu_strings): Remove functions.
15023 (xmalloc_widget_value): Remove and declare extern.
15024
15025 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15026 (OBJ1): Build it.
15027
15028 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15029 (local_heap, local_alloc, local_free, malloc_widget_value)
15030 (free_widget_value): Define here.
15031
150322008-06-09 Kenichi Handa <handa@m17n.org>
15033
15034 * font.h (Qascii_0): Extern it.
15035
15036 * font.c (Qascii_0): New variable.
15037 (syms_of_font): DEFSYM it.
15038 (font_open_by_name): If the registry "iso8859-1" fails, try also
15039 "ascii-0".
15040
15041 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15042
150432008-06-08 Kenichi Handa <handa@m17n.org>
15044
15045 * .gdbinit (xfont): New command.
15046
150472008-06-08 Andreas Schwab <schwab@suse.de>
15048
15049 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15050 * Makefile.in (menu.o): Update dependencies.
15051
15052 * Makefile.in (obj): Always add menu.o.
15053 * emacs.c (main): Always call syms_of_menu.
15054 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15055
150562008-06-08 Chong Yidong <cyd@stupidchicken.com>
15057
15058 * Makefile.in: Compile menu.c.
15059
15060 * lisp.h: Declare syms_of_menu.
15061
15062 * emacs.c (main): Call syms_of_menu.
15063
15064 * keyboard.h: Relocate platform-independent menu definitions from
15065 xmenu.c.
15066
15067 * menu.c: New file. Relocate platform-independent menu
15068 definitions from xmenu.c. Suggested by Adrian Robert.
15069
15070 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15071 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15072 (menu_items_used, menu_items_n_panes)
15073 (menu_items_submenu_depth): Move to keyboard.h.
15074 (init_menu_items, finish_menu_items, unuse_menu_items)
15075 (discard_menu_items, restore_menu_items, save_menu_items)
15076 (grow_menu_items, push_submenu_start, push_submenu_end)
15077 (push_left_right_boundary, push_menu_pane, push_menu_item)
15078 (keymap_panes, single_keymap_panes, single_menu_item)
15079 (list_of_panes, list_of_items, find_and_call_menu_selection)
15080 (xmalloc_widget_value, free_menubar_widget_value_tree)
15081 (parse_single_submenu, digest_single_submenu)
15082 (update_submenu_strings): Move to menu.c.
15083
150842008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15085
15086 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15087
150882008-06-06 Miles Bader <miles@gnu.org>
15089
15090 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15091 face, not frame default.
15092
150932008-06-05 Martin Rudalics <rudalics@gmx.at>
15094
15095 * window.c (pop_up_windows, pop_up_frames)
15096 (display_buffer_reuse_frames, Vpop_up_frame_function)
15097 (Vdisplay_buffer_function, Veven_window_heights)
15098 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15099 (Vspecial_display_function, Vsame_window_buffer_names)
15100 (Vsame_window_regexps, split_height_threshold)
15101 (Vsplit_window_preferred_function): Move those vars to window.el.
15102 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15103 (Fdisplay_buffer): Move those functions to window.el.
15104 (syms_of_window): Remove corresponding declarations.
15105 (display_buffer): New function.
15106 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15107 * dispnew.c (Flast_nonminibuf_frame): New function.
15108 * buffer.c (Fpop_to_buffer): Move to window.el.
15109
151102008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15111
15112 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15113
151142008-06-05 Kenichi Handa <handa@m17n.org>
15115
15116 * coding.c (detect_coding): Fix previous change.
15117 (detect_coding_system): Likewise.
15118
151192008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15120
15121 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15122
15123 * keymap.c (Vminibuffer_local_filename_must_match_map):
15124 Rename from Vminibuffer_local_must_match_filename_map.
15125 (syms_of_keymap):
15126 * minibuf.c (Fcompleting_read): Adjust accordingly.
15127 * commands.h: Rename declaration as well.
15128
151292008-06-05 Kenichi Handa <handa@m17n.org>
15130
15131 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15132 family name.
15133 (Ffont_put): Likewise.
15134
15135 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15136 current font-spec.
15137
15138 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15139 is unspecified.
15140
15141 * xfaces.c (realize_x_face): If the font-related face attributes
15142 are the same as those of default face, realize a new fontset from
15143 default->fontset.
15144 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15145
151462008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15147
15148 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15149 (move_it_in_display_line): New wrapper.
15150
15151 * window.c (window_scroll_pixel_based_preserve_x)
15152 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15153 (window_scroll_pixel_based, window_scroll_line_based):
15154 Use them to preserve column positions.
15155 (syms_of_window): Initialize them.
15156
15157 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15158 (HPOS . VPOS) pair.
15159
15160 * dispextern.h (move_it_in_display_line): Declare.
15161
151622008-06-05 Juanma Barranquero <lekktu@gmail.com>
15163
15164 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15165 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15166 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15167
151682008-06-04 Juanma Barranquero <lekktu@gmail.com>
15169
15170 * window.c (Fset_window_parameter): Doc fix.
15171 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15172
151732008-06-04 Joakim Verona <joakim@verona.se>
15174
15175 * window.h (struct window): Add new member window_parameters.
15176
15177 * window.c (Fwindow_parameters, Fwindow_parameter)
15178 (Fset_window_parameter): New defuns.
15179 (syms_of_window): Defsubr the new defuns.
15180 (make_window): Initialize window_parameters to nil.
15181
151822008-06-04 John Paul Wallington <jpw@pobox.com>
15183
15184 * eval.c (Fdefmacro): Doc fix.
15185
151862008-06-04 Kenichi Handa <handa@m17n.org>
15187
15188 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15189 Be sure to call setup_coding_system when we find a proper coding system.
15190 (detect_coding_system): Fix handling of coding->head_ascii.
15191
151922008-06-03 Andreas Schwab <schwab@suse.de>
15193
15194 * font.c (font_prop_validate_spacing): Fix last change.
15195
151962008-06-03 Kenichi Handa <handa@m17n.org>
15197
15198 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15199 (font_parse_fcname): Fix handling of unknown key.
15200
15201 * xfont.c (xfont_list): Try an alias.
15202
15203 * charset.c (char_charset): Return NULL if the arg charset_list is
15204 specified and C doesn't belong to any of them.
15205
152062008-06-02 Chip Coldwell <coldwell@redhat.com>
15207
15208 * font.c (font_pixel_size): Don't take cdr of an integer.
15209
152102008-06-02 Jim Meyering <meyering@redhat.com>
15211
15212 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15213 * alloc.c (xfree): Return right away for a NULL arg.
15214 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15215 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15216 * mac.c (create_apple_event_from_event_ref): Likewise.
15217 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15218 Likewise.
15219 * doprnt.c (doprnt1): Likewise.
15220 * frame.c (frame): Likewise.
15221 * keyboard.c (wipe_kboard): Likewise.
15222 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15223 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15224 * term.c (tty_default_color_capabilities, maybe_fatal)
15225 (delete_tty): Likewise.
15226 * w16select.c (string): Likewise.
15227 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15228 * w32bdf.c (w32_free_bdf_font): Likewise.
15229 * w32fns.c (w32_unload_font): Likewise.
15230 * w32font.c (w32font_close): Likewise.
15231 * window.c (size_window): Likewise.
15232 * xselect.c (receive_incremental_selection): Likewise.
15233 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15234 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15235 * w32.c (stat): Likewise.
15236
15237 Remove useless if-before-free tests.
15238 * editfns.c (Fset_time_zone_rule): Likewise.
15239 * lread.c (nosuffix): Likewise.
15240 * ralloc.c (get_bloc): Likewise.
15241 * regex.c (reg_free): Likewise.
15242 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15243 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15244 * xsmfns.c (smc_save_yourself_CB): Likewise.
15245
152462008-06-02 Kenichi Handa <handa@m17n.org>
15247
15248 * font.c (font_find_for_lface): Handle float font size.
15249 (font_open_for_lface): Likewise.
15250
15251 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15252 comparing the properties.
15253
152542008-06-01 Jason Rumney <jasonr@gnu.org>
15255
15256 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15257 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15258 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15259 Don't add empty script list.
15260 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15261
152622008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15263
15264 * Makefile.in (dot, dotdot): Remove, update users.
15265 ".." has been used elsewhere in the file for a long time.
15266 (LIBXT_STATIC): Remove conditional based on unused variable.
15267
152682008-06-01 Miles Bader <miles@gnu.org>
15269
15270 * xfaces.c (Vface_remapping_alist): New variable.
15271 (syms_of_xfaces): Initialize it.
15272 (enum named_merge_point_kind): New type.
15273 (struct named_merge_point): Add `named_merge_point_kind' field.
15274 (push_named_merge_point): Make cycle detection respect different
15275 named-merge-point kinds.
15276 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15277 Remove face-name alias resolution.
15278 (lface_from_face_name): New definition using
15279 `lface_from_face_name_no_resolve'.
15280 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15281 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15282 (get_lface_attributes): New definition that layers face-remapping on
15283 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15284 (lookup_basic_face): New function.
15285 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15286 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15287 `get_lface_attributes'.
15288 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15289 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15290 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15291
15292 * xdisp.c (init_iterator): Pass base_face_id through
15293 `lookup_basic_face' when we actually use it as a face-id.
15294 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15295 DEFAULT_FACE_ID.
15296
15297 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15298 lookup the initial face-id.
15299
15300 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15301
153022008-06-01 Juanma Barranquero <lekktu@gmail.com>
15303
15304 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15305 (Fremove_text_properties): Fix typos in docstrings.
15306
153072008-05-31 Kenichi Handa <handa@m17n.org>
15308
15309 * font.c (font_list_entities): Fix the car part of data to be
15310 stored in the cache.
15311
15312 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15313
153142008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15315
15316 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15317 Add a `test' argument so another predicate than `equal' can be used.
15318 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15319 (map_char_table): Remove unused vars `c' and `i'.
15320 * lisp.h (Foptimize_char_table): Adjust declaration.
15321 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15322
153232008-05-30 Kenichi Handa <handa@m17n.org>
15324
15325 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15326 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15327 defined.
15328
153292008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15330
15331 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15332 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15333 frame-local settings for the same variable.
15334
153352008-05-30 Kenichi Handa <handa@m17n.org>
15336
15337 * fontset.c (Ffont_info): Move to font.c.
15338 (syms_of_fontset): Delete defsubr of Sfont_info.
15339
15340 * font.c (font_style_to_value, font_score): Delete casting of the
15341 args to xstcasecmp.
15342 (register_font_driver): Increment num_font_drivers only when
15343 registering the driver globally.
15344 (Ffont_info): Move from fontset.c. Handle a font object too.
15345 (syms_of_font): Defsubr Sfont_info.
15346
153472008-05-29 Kenichi Handa <handa@m17n.org>
15348
15349 * coding.h (enum define_coding_utf8_arg_index): New enum.
15350 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15351 coding_attr_utf_bom.
15352 (enum utf_bom_type): Rename from utf_16_bom_type.
15353 (struct utf_16_spec): Adjust for the above change.
15354 (struct coding_system): Add utf_8_bom in `spec' union.
15355
15356 * coding.c (CODING_UTF_8_BOM): New macro.
15357 (enum coding_category): Delete coding_category_utf_8, add
15358 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15359 coding_category_utf_8_sig.
15360 (CATEGORY_MASK_UTF_8): Delete it.
15361 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15362 (CATEGORY_MASK_UTF_8_SIG): New macros.
15363 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15364 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15365 CATEGORY_MASK_UTF_8_SIG.
15366 (CATEGORY_MASK_UTF_8): New macro.
15367 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15368 (detect_coding_utf_8): Check BOM.
15369 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15370 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15371 (encode_coding_utf_16): Likewise.
15372 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15373 (detect_coding, detect_coding_system): Handle utf-8-auto.
15374 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15375 (syms_of_coding): Fix setting up of Vcoding_category_table.
15376
153772008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15378
15379 * process.c (Faccept_process_output): If `millisec' is non-nil,
15380 `seconds' default to 0.
15381 (wait_reading_process_output): Also return non-nil if we read output
15382 from a non-running process.
15383
153842008-05-29 Jason Rumney <jasonr@gnu.org>
15385
15386 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15387 `raster' specified.
15388 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15389 in the uniscribe backend, but disallow any font that has no
15390 unicode subrange support.
15391
153922008-05-29 Juanma Barranquero <lekktu@gmail.com>
15393
15394 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15395 Fix typos in docstrings.
15396
153972008-05-29 Kenichi Handa <handa@m17n.org>
15398
15399 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15400 (Fx_family_fonts): Set frame correctly.
15401
154022008-05-28 Jason Rumney <jasonr@gnu.org>
15403
15404 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15405
154062008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15407
15408 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15409 calling build_annotations.
15410
154112008-05-28 Juanma Barranquero <lekktu@gmail.com>
15412
15413 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15414 (Fencode_coding_string):
15415 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15416 <latin-extra-code-table>: Fix typos in docstrings.
15417 (syms_of_coding) <coding-system-alist>: Doc fix.
15418 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15419
154202008-05-28 Kenichi Handa <handa@m17n.org>
15421
15422 * fontset.c (Ffont_info): Don't call font_close_object.
15423
15424 * font.c (font_parse_family_registry): Use Ffont_put to validate
15425 foundry and family.
15426 (font_delete_unmatched): Don't check spacing.
15427 (font_list_entities): Add spacing to the spec to list fonts.
15428
15429 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15430 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15431
15432 * coding.c (encode_coding_raw_text): Fix previous change.
15433 (encode_coding_object): When the dst_object is a buffer and is
15434 different from src_object, move gap to PT.
15435
154362008-05-27 Chong Yidong <cyd@stupidchicken.com>
15437
15438 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15439
154402008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15441
15442 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15443 all branches. Compute it differently.
15444
15445 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15446
154472008-05-27 Juanma Barranquero <lekktu@gmail.com>
15448
15449 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15450 into "else if () ... else ...".
15451
154522008-05-27 Jason Rumney <jasonr@gnu.org>
15453
15454 * w32font.c (w32font_open_internal): Determine if glyph indices
15455 are likely to work here.
15456
154572008-05-27 Chong Yidong <cyd@stupidchicken.com>
15458
15459 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15460 draw overlap glyphs with appropriate highlighting.
15461
154622008-05-27 Kenichi Handa <handa@m17n.org>
15463
15464 * xfont.c (xfont_open): Fix calculation of font->average_width.
15465
154662008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15467
15468 * casefiddle.c (casify_object): Try to guess better whether the
15469 argument is a byte or a char.
15470
154712008-05-26 Andreas Schwab <schwab@suse.de>
15472
15473 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15474 Always send multiples of format size.
15475
15476 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15477
154782008-05-26 Jason Rumney <jasonr@gnu.org>
15479
15480 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15481 (compute_metrics): Don't set failure if we just cleared the cache.
15482 (w32_weight_table): Remove unused variable.
15483 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15484 backwards compatibility.
15485
154862008-05-25 Kenichi Handa <handa@m17n.org>
15487
15488 * w32term.c (x_draw_glyph_string):
15489 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15490
15491 * xfaces.c: Delete unused function prototypes.
15492 (xstrlwr, font_frame): Delete them.
15493 (clear_face_cache): Delete unused variable.
15494
15495 * xftfont.c (xftfont_open): Delete unused variable.
15496 If underline_thickness is not 1, adjust underline_position.
15497
15498 * ftxfont.c (ftxfont_open): Delete unused variable.
15499
15500 * fontset.c (face_for_char): Optimize for the case of no charset
15501 property.
15502
15503 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15504 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15505 (otf_open, font_otf_capability, generate_otf_features)
15506 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15507 Comment out by surrounding "#if 0" and "#endif" for the moment.
15508 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15509 (syms_of_font): Codes for accessing above commented out.
15510
155112008-05-24 Eli Zaretskii <eliz@gnu.org>
15512
15513 * w32proc.c: Include dispextern.h.
15514
15515 * w32.c: Include dispextern.h.
15516
155172008-05-23 Juanma Barranquero <lekktu@gmail.com>
15518
15519 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15520 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15521 Fix typos in docstrings.
15522
155232008-05-23 Jason Rumney <jasonr@gnu.org>
15524
15525 * xsmfns.c: Remove includes that are already included by config.h.
15526
155272008-05-23 Kenichi Handa <handa@m17n.org>
15528
15529 * charset.c (Qemacs, charset_emacs): New variables.
15530 (char_charset): Fix for non-Unicode characters.
15531 (syms_of_charset): Define charset_emacs.
15532
15533 * w32term.c (x_draw_glyph_string): Be sure to update
15534 s->underline_thickness and s->underline_position. Be sure to draw
15535 underline within the current line area.
15536
15537 * xterm.c (x_draw_glyph_string): Be sure to update
15538 s->underline_thickness and s->underline_position. Be sure to draw
15539 underline within the current line area.
15540
15541 * fontset.c: Delete unused variables and add casting for char *
15542 throughout the file.
15543 (fontset_font): Try the fallback fonts of the current fontset
15544 before consulting the default fontset.
15545
15546 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15547
15548 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15549
155502008-05-22 Jason Rumney <jasonr@gnu.org>
15551
15552 * font.c: Don't include strings.h.
15553
15554 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15555
15556 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15557 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15558 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15559 to call xstrcasecmp.
15560
15561 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15562
15563 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15564
15565 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15566
15567 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15568
155692008-05-22 Kenichi Handa <handa@m17n.org>
15570
15571 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15572
15573 * font.c (font_prop_validate_style): Adjust for the format
15574 change of font_style_table.
15575
15576 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15577 two args.
15578
15579 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15580 two args.
15581
155822008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15583
15584 * minibuf.c (keys_of_minibuf): Delete.
15585 * lisp.h (keys_of_minibuf): Delete.
15586 * emacs.c (main): Don't call keys_of_minibuf.
15587
155882008-05-22 Kenichi Handa <handa@m17n.org>
15589
15590 * ftfont.c (ftfont_resolve_generic_family): Rename from
15591 ftfont_list_generic_family. Return a single family for each
15592 generic family.
15593 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15594 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15595 Call font_add_log.
15596 (ftfont_match): Call font_add_log.
15597
15598 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15599 (FONT_DEBUG): Define it.
15600 (font_add_log): Extern it.
15601 (font_assert): Rename from xassert.
15602
15603 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15604 (xfont_list_family): Call font_add_log.
15605 (xfont_match): Likewise.
15606 (memq_no_quit): Delete.
15607
15608 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15609 call of Ffont_xlfd_name.
15610
15611 * xfaces.c (struct table_entry, slant_table, weight_table)
15612 (swidth_table): Move to font.c.
15613
15614 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15615 xassert are changed to font_assert. Delete many unused variables.
15616 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15617 New variables.
15618 (struct table_entry): Move from xfaces.c and modified.
15619 (weight_table, slant_table, width_table): Move from xfaces.c and
15620 contents adjusted for the change of struct table_entry.
15621 (font_style_to_value, font_style_symbolic): Adjust for the
15622 format change of font_style_table.
15623 (font_parse_family_registry): Don't overwrite existing foundry and
15624 family of font_spec.
15625 (font_score): Fix calculation of diff for sizes.
15626 (font_sort_entites): Call font_add_log.
15627 (font_delete_unmatched): Return a newly created list.
15628 (font_list_entities): Fix previous change. Call font_add_log.
15629 (font_matching_entity, font_open_entity, font_close_entity):
15630 Call font_add_log.
15631 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15632 (Finternal_set_font_style_table): Delete.
15633 (BUILD_STYLE_TABLE): New macro.
15634 (build_style_table): New function.
15635 (Vfont_log, font_log_env_checked): New variables.
15636 (font_add_log): New function.
15637 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15638 Declare Lisp variables "font-weight-table", "font-slant-table",
15639 "font-width-table", and "font-log". Initialize font_style_table.
15640
156412008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15642
15643 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15644
156452008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15646 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15647
15648 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15649 (Vframe_alpha_lower_limit): New variable.
15650 (x_set_alpha): New function.
15651
15652 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15653
15654 * xfns.c (x-create-frame, Qalpha):
15655 Initialize the frame parameter `alpha'.
15656 * xterm.c (OPAQUE, OPACITY): New.
15657 (x_set_frame_alpha): New function.
15658 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15659
15660 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15661 * w32fns.c (w32_frame_parm_handlers): Likewise.
15662
156632008-05-20 Jason Rumney <jasonr@gnu.org>
15664
15665 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15666 truetype fonts to opentype list.
15667
156682008-05-20 Juanma Barranquero <lekktu@gmail.com>
15669
15670 * fontset.c (Ffontset_info): Doc fix.
15671 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15672 <ignore-relative-composition>: Fix typos in docstrings.
15673
15674 * font.c (syms-of-font) <font-encoding-alist>:
15675 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15676 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15677 (Ffont_otf_alternates): Doc fixes.
15678
156792008-05-20 Kenichi Handa <handa@m17n.org>
15680
15681 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15682 font.h through out the file.
15683 (FONT_DRIVERS): Rename from FONTOBJ.
15684 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15685 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15686
15687 * emacs.c (main): Call syms_of_font unconditionally.
15688
15689 * font.h (find_font_encoding): Extern it.
15690
15691 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15692 fontset.c.
194d44e7 15693 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15694 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15695 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15696 only when HAVE_WINDOW_SYSTEM is defined.
15697 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15698 when HAVE_WINDOW_SYSTEM is defined.
15699
15700 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15701 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15702
15703 * xfaces.c: Include font.h unconditionally.
15704 (merge_face_ref, merge_face_vectors)
15705 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15706
157072008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15708
15709 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15710 indirect_variable.
15711 * eval.c (lisp_indirect_variable): New fun.
15712 (Fuser_variable_p): Use it.
15713
157142008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15715
15716 * lisp.h (indirect_variable):
15717 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15718 Use Lisp_Symbol pointers rather than Lisp_Object.
15719 Adjust callers.
15720 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15721 To this end, change calling-convention.
15722
15723 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15724 if some non-hidden buffers are selected by string&pred.
15725
157262008-05-19 Chong Yidong <cyd@stupidchicken.com>
15727
15728 * process.c (wait_reading_process_output): Always check status
15729 when in batch mode.
15730
157312008-05-19 Kenichi Handa <handa@m17n.org>
15732
15733 * font.c (font_list_entities): Fix handling of cache.
15734 (font_matching_entity): Likewise.
15735
15736 * ftfont.c (cs_iso8859_1): Delete.
15737 (ft_face_cache): New variable.
15738 (struct ftfont_info): New member fc_charset_idx.
15739 (ftfont_build_basic_charsets): Delete.
15740 (fc_charset_table): New variable.
15741 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15742 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15743 Callers changed.
15744 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15745 (ftfont_spec_pattern): New argument fc_charset_idx.
15746 Check registry more rigidly. Change callers.
15747 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15748 change of :font-entity property of the font.
15749
15750 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15751 property of the font.
15752
157532008-05-18 Juanma Barranquero <lekktu@gmail.com>
15754
15755 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15756 (Funencodable_char_position, Fcheck_coding_systems_region)
15757 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15758 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15759 (Ffind_operation_coding_system, Fset_coding_system_priority)
15760 (Fcoding_system_eol_type): Doc fixes.
15761
157622008-05-17 Glenn Morris <rgm@gnu.org>
15763
15764 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15765
157662008-05-16 Eli Zaretskii <eliz@gnu.org>
15767
15768 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15769 and st_gid.
15770
15771 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15772 HAVE_WINDOW_SYSTEM is not defined.
15773
15774 * xfaces.c (merge_face_ref, merge_face_vectors)
15775 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15776 HAVE_WINDOW_SYSTEM is defined.
15777 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15778
157792008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15780
15781 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15782
157832008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15784
15785 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15786
157872008-05-15 Kenichi Handa <handa@m17n.org>
15788
15789 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15790 preference.
15791
157922008-05-15 Glenn Morris <rgm@gnu.org>
15793
15794 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15795
157962008-05-15 Chong Yidong <cyd@stupidchicken.com>
15797
15798 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15799 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15800
15801 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15802
158032008-05-15 Kenichi Handa <handa@m17n.org>
15804
15805 * ftfont.c (ftfont_list): Downcase family name to check generic
15806 families.
15807
15808 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15809 font-spec for QCfont value.
15810
15811 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15812 buffer. Check the return value of it.
15813
158142008-05-14 Jason Rumney <jasonr@gnu.org>
15815
15816 * w32term.c (w32_get_glyph_overhangs): Remove.
15817 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15818
158192008-05-14 Kenichi Handa <handa@m17n.org>
15820
15821 * font.c (font_prop_validate): Make nil a valid value.
15822 (font_clear_cache): Check if the cached vector of entities is nil
15823 or not.
15824
158252008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15826
15827 * emacs.c (main_thread): Conditionalize on
15828 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15829 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15830
15831 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15832 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15833 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15834
158352008-05-14 Kenichi Handa <handa@m17n.org>
15836
15837 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15838 has no corresponding coding system.
15839
158402008-05-14 Jason Rumney <jasonr@gnu.org>
15841
15842 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15843
15844 * w32font.h (w32font_open_internal): Update declaration.
15845
15846 * w32font.c (w32font_open_internal): Change last argument from
15847 w32font_info struct to font object. Fill in font object from
15848 font_entity. Get Outline metrics if possible. Use them to
15849 calculate underline position and thickness. Use xlfd name as name
15850 property. Don't set codepage.
15851 (w32font_open): Pass font_object to w32font_open_internal. Don't
15852 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15853 (w32font_draw): Use s->font.
15854 (clear_cached_metrics): Don't clear non-existent blocks.
15855
15856 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15857 font was not found.
15858 (x_draw_glyph_string): Use underline position and thickness from font.
15859
15860 * w32uniscribe.c (uniscribe_open): Pass font_object to
15861 w32font_open_internal.
15862
158632008-05-14 Kenichi Handa <handa@m17n.org>
15864
15865 These changes are to delete all legacy font-handling codes, and
15866 make Emacs use only font-backends.
15867
15868 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15869 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15870
15871 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15872
15873 * charset.h (Vcharset_non_preferred_head)
15874 (Vcurrent_iso639_language): Extern them.
15875
15876 * charset.c (Vcharset_non_preferred_head): New variable.
15877 (Vcurrent_iso639_language): New variable.
15878 (syms_of_charset): Declare it as a Lisp variable.
15879 (char_charset): Don't check non preferred charsets. As a last
15880 resort, return charset_unicode.
15881 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15882
15883 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15884 conditionals. Don't check enable_font_backend. Delete all codes
15885 used only when USE_FONT_BACKEND is not defined.
15886
15887 * dispextern.h (struct glyph_string): Change type of `font' to
15888 `struct font *'.
15889 (struct glyph_string): New member underline_position and
15890 underline_thickness.
15891 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15892 (struct face): Change type of `font' to `struct font *'. Remove
15893 members `font_name', `font_info_id'.
15894 (per_char_metric, encode_char): Delete externs.
15895 (calc_pixel_width_or_height): Adjust the prototype.
15896
15897 * emacs.c (enable_font_backend): Delete extern.
15898 (main): Don't set enable_font_backend. Don't check the command
15899 line argument "-disable-font-backend".
15900
15901 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15902 (enum font_property_index): New members FONT_DPI_INDEX,
15903 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15904 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15905 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15906 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15907 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15908 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15909 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15910 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15911 (struct font_spec, struct font_entity): New structs.
15912 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15913 (struct font): Many members from old "struct font_info" moved to
15914 here. Members font and entity deleted.
15915 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15916 the new font-related objects.
15917 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15918 (CHECK_FONT_GET_OBJECT): Likewise.
15919 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15920 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15921 (struct font_driver): New members case_sensitive anc check. Type
15922 of the member list and open changed.
15923 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15924 (font_symbolic_width, font_find_object, font_get_spec)
15925 (font_set_lface_from_name): Delete extern.
15926 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15927
15928 * font.c: Include <strings.h>.
15929 (enable_font_backend): Delete it.
15930 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15931 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15932 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15933 (null_string): Delete it.
15934 (null_vector): Make it static.
15935 (font_family_alist): Delete it.
15936 (Qnormal): Extern it.
15937 (QCextra, QClanguage): Delete it.
15938 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15939 (font_make_spec, font_make_entity, font_make_object)
15940 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15941 the string. Callers changed.
15942 (font_pixel_size): Adjusted for the format change of font-related
15943 objects.
15944 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15945 (font_style_to_value, font_style_symbolic): New function.
15946 (build_font_family_alist): Delete it.
15947 (font_registry_charsets): Use Fassoc_string instead of
15948 assq_no_quit.
15949 (font_prop_validate_symbol): Don't return null_string.
15950 (font_prop_validate_style): Adjusted for the change of
15951 style-related values in a font vector.
15952 (font_property_table): Delete entries for QClanguage and
15953 QCantialias, add entries for QCavgwidth.
15954 (get_font_prop_index): Delete the 2nd argument FROM.
15955 (font_prop_validate): Arguments changed.
15956 (font_put_extra): Adjusted for the change of font-related objects.
15957 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15958 (font_parse_fcname, font_unparse_fcname)
15959 (font_prepare_composition): Likewise.
15960 (font_parse_family_registry): Renamed from font_merge_old_spec.
15961 (otf_open): Delete the 1st arg entity.
15962 (font_otf_capability): Adjusted for the above change.
15963 (font_score): New arg alternate_families. Adjusted for the change
15964 of font-related objects.
15965 (font_sort_entites): New arg best_only.
15966 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15967 Delete them.
15968 (font_match_p): Check alternate families.
15969 (font_find_object): Delete it.
15970 (font_check_object): New function.
15971 (font_clear_cache): Adjusted for the change of font-related objects.
15972 (font_delete_unmatched): New arg.
15973 (font_list_entities): Call font_driver->list with a spec that
15974 doesn't specify style-related properties.
15975 (font_matching_entity): Arguments changed. Caller changed.
15976 (font_open_entity): Adjusted for the change of font-related objects.
15977 (font_close_object, font_has_char, font_encode_char)
15978 (font_get_name, font_get_spec): Likewise.
15979 (font_spec_from_name, font_clear_prop, font_update_lface):
15980 New functions.
15981 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
15982 (font_prepare_for_face, font_done_for_face, font_open_by_name)
15983 (font_at): Adjusted for the change of font-related objects.
15984 (font_range): New function.
15985 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
15986 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
15987 (Fcopy_font_spec, Fmerge_font_spec): New function.
15988 (Ffont_family_list): Renamed from list-families.
15989 (Finternal_set_font_style_table): Arguments changed.
15990 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
15991 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
15992 change of font-related objects.
15993 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
15994
15995 * fontset.h (struct font_info): Delete it. Most members go to
15996 struct font.
15997 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
15998 (enum FONT_SPEC_INDEX): Delete it.
15999 (font_info, list_fonts_func, load_font_func, query_font_func)
16000 (set_frame_fontset_func, find_ccl_program_func)
16001 (get_font_repertory_func, new_fontset_from_font_name): Delete
16002 externs.
16003 (fontset_from_font_name): Extern it.
16004 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16005 (FONT_INFO_FROM_FACE): Deleted.
16006 (face_for_font): Adjust prototype.
16007
16008 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16009 conditionals. Don't check enable_font_backend. Delete all codes
16010 used only when USE_FONT_BACKEND is not defined.
16011 (get_font_info_func, list_font_func, load_font_func)
16012 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16013 (get_font_repertory_func): Delete them.
16014 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16015 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16016 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16017 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16018 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16019 (fontset_compare_rfontdef): New function.
16020 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16021 rfont-defs by qsort. Adjusted for the change of font-group vector.
16022 (load_font_get_repertory): Deleted.
16023 (fontset_find_font): Use new macros to ref/set elements of
16024 font-def and rfont-def.
16025 (fontset_font): Fix the timing of remembering that no font for C.
16026 (free_face_fontset): Do nothing if the face has no fontset.
16027 (face_suitable_for_char_p): Use new macros to ref/set elements of
16028 rfont-def.
16029 (face_for_char): Likewise. Call face_for_char with font_object.
16030 (fs_load_font): Delete. Delete #pragma surrounding it.
16031 (fs_query_fontset): Use strcasecmp instead of strcmp.
16032 (generate_ascii_font_name): Adjusted for the format change of
16033 font-spec.
16034 (Fset_fontset_font): Likewise. Use new macros to set elements of
16035 font-def.
16036 (Fnew_fontset): Use font_unparse_xlfd to generate
16037 FONTSET_ASCII (fontset).
16038 (new_fontset_from_font_name): Deleted.
16039 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16040 a fontset is already created for the font. FIx updating of
16041 Vfontset_alias_alist.
16042 (fontset_ascii_font): Deleted.
16043 (Ffont_info): Adjusted for the format change of font-spec.
16044 (Finternal_char_font): Likewise.
16045 (Ffontset_info): Likewise.
16046 (syms_of_fontset): Don't check load_font_func.
16047
16048 * fns.c (internal_equal): Handle PREV_FONT.
16049
16050 * frame.h: Delete USE_FONT_BACKEND conditional.
16051
16052 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16053 conditionals. Don't check enable_font_backend. Delete all codes
16054 used only when USE_FONT_BACKEND is not defined.
16055 (x_set_font): Call x_new_font, not x_new_fontset2.
16056 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16057 already set for the frame.
16058
16059 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16060 a font-entity by font_make_entity. Use font_intern_prop instead
16061 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16062 font property. If a font is scalable, set avgwidth property to 0.
16063 Set font-entity property by font_put_extra.
16064 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16065 (ffont_driver): Adjusted for the change of struct font_driver.
16066 (ftfont_spec_pattern): New function.
16067 (ftfont_list): Return a list, not vector.
16068 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16069 (ftfont_list_family): Don't downcase names.
16070 (ftfont_free_entity): Deleted.
16071 (ftfont_open): Return a font-object. Adjusted for the change of
16072 struct font. Get underline_thickness and underline_position from
16073 font property. Don't update dpyinfo->smallest_font_height and
16074 dpyinfo->smallest_char_width.
16075 (ftfont_close): Don't free `struct font'.
16076 (ftfont_has_char): Adjusted for the format change of font-entity.
16077 (ftfont_encode_char, ftfont_text_extents): Likewise.
16078
16079 * ftxfont.c (ftxfont_list): Return a list, not vector.
16080 (ftxfont_open): Return a font-object. Adjusted for the change of
16081 struct font. Get underline_thickness and underline_position from
16082 font property. Don't update dpyinfo->smallest_font_height and
16083 dpyinfo->smallest_char_width.
16084 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16085 (ftxfont_draw): Adjusted for the change of struct font.
16086
16087 * image.c (image_ascent): Don't include "charset.h". Include
16088 "character.h" and "font.h".
16089
16090 * lisp.h (enum pvec_type): New member PREV_FONT.
16091 (Fassoc_string): EXFUN it.
16092
16093 * print.c: Include font.h.
16094 (print_object): Handle font-related objects.
16095
16096 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16097 conditionals. Don't check enable_font_backend. Delete all codes
16098 used only when USE_FONT_BACKEND is not defined.
16099 (handle_auto_composed_prop): Do nothing if it->f is not on a
16100 window system. Check how many following characters can be
16101 displayed by the same font.
16102 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16103 'struct font *'.
16104 (get_char_face_and_encoding): Assign the whole encoding task to
16105 the `encode-char' method of a font driver.
16106 (fill_composite_glyph_string): Adjusted for the change of `struct
16107 face' and `struct glyph_string'.
16108 (fill_glyph_string): Likewise.
16109 (get_per_char_metric): Arguments changed.
16110 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16111 and `struct glyph_string'.
16112 (produce_stretch_glyph, calc_line_height_property)
16113 (x_produce_glyphs): Likewise.
16114
16115 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16116 conditionals. Don't check enable_font_backend. Delete all codes
16117 used only when USE_FONT_BACKEND is not defined. Use
16118 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16119 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16120 (Qp): Extern them.
16121 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16122 Deleted.
16123 (struct font_name): Deleted.
16124 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16125 (compare_fonts_by_sort_order): New function.
16126 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16127 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16128 Deleted.
16129 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16130 compare_fonts_by_sort_order.
16131 (Fx_font_family_list): Call Ffont_family_list.
16132 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16133 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16134 (face_symbolic_slant, face_symbolic_swidth)
16135 (split_font_name_into_vector, build_font_name_from_vector)
16136 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16137 (font_rescale_ratio, split_font_name, build_font_name)
16138 (free_font_names, sort_fonts, x_face_list_fonts)
16139 (face_font_available_p, sorted_font_list, cmp_font_names)
16140 (font_list_1, concat_font_list, font_list, remove_duplicates):
16141 Deleted.
16142 (Fx_list_fonts): Use Ffont_list.
16143 (LFACE_AVGWIDTH): Deleted.
16144 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16145 by FONTP.
16146 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16147 (set_lface_from_font_name): Delete it.
16148 (set_lface_from_font): Renamed from
16149 set_lface_from_font_and_fontset. Caller changed. Don't set
16150 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16151 for face.
16152 (merge_face_vectors): Copy font-spec if necessary.
16153 Clear properties of the font-spec if necessary.
16154 (merge_face_ref): Clear properties of the font-spec if necessary.
16155 (Finternal_set_lisp_face_attribute): Likewise.
16156 (set_font_frame_param): Use font_load_for_lface to load a
16157 font-object, and call Fmodify_frame_parameters with it.
16158 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16159 font name by Ffont_xlfd_name.
16160 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16161 QCslant, and QCwidth.
16162 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16163 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16164 Compare fonts by EQ.
16165 (lookup_non_ascii_face): Deleted.
16166 (face_for_font): The 2nd argument changed.
16167 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16168 Check atomic font properties by case insensitive.
16169 (realize_non_ascii_face): Set face->overstrike correctly.
16170 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16171 (dump_realized_face): Get font name from
16172 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16173
16174 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16175 conditionals. Don't check enable_font_backend. Delete all codes
16176 used only when USE_FONT_BACKEND is not defined.
16177 (xic_create_xfontset): Original code deleted and renamed from
16178 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16179 (x_make_gc): Don't set GCFont in GCs.
16180 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16181 opened by "fixed".
16182 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16183 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16184 get_font_repertory_func.
16185
16186 * xfont.c: Include <stdlib.h> and "ccl.h".
16187 (struct xfont_info): New structure.
16188 (xfont_query_font): Deleted.
16189 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16190 moved from xterm.c.
16191 (xfont_driver): Adjusted for the change of struct font_driver.
16192 (compare_font_names): New function.
16193 (xfont_list_pattern): Sort font names case insensitively. Make
16194 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16195 (xfont_list): Return a list, not vector.
16196 (xfont_match): If the font doesn't have QCname property, generate
16197 a name from the other font properties.
16198 (xfont_open): Return a font-object. Adjusted for the change of
16199 struct font. Get underline_thickness and underline_position from
16200 font property. Don't update dpyinfo->smallest_font_height and
16201 dpyinfo->smallest_char_width.
16202 (xfont_close): Don't free struct font.
16203 (xfont_prepare_face): Adjusted for the change of struct font.
16204 (xfont_done_face): Deleted.
16205 (xfont_has_char): Adjusted for the change of struct font.
16206 (xfont_encode_char, xfont_draw): Likewise.
16207 (xfont_check): New function.
16208
16209 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16210 callback function.
16211 (xftfont_match): Adjusted for the format change of font-entity.
16212 (xftfont_open): Adjusted for the format change of font-entity and
16213 font-object. Adjusted for the change of struct font. Return a
16214 font-object. Don't update dpyinfo->smallest_font_height and
16215 dpyinfo->smallest_char_width.
16216 (xftfont_close): Block input while calling XftFontClose.
16217 (xftfont_prepare_face): Don't block input while calling
16218 xftfont_get_colors. Adjusted for the change of struct font.
16219 (xftfont_shape): Return value of error case fixed.
16220
16221 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16222
16223 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16224 conditionals.
16225 (FONT_WIDTH): Return (f)->max_width.
16226 (struct x_display_info): Delete member `font'.
16227 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16228 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16229 (struct x_output): Change type of `font' to `struct font *'.
16230
16231 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16232 conditionals. Don't check enable_font_backend. Delete all codes
16233 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16234 (x_per_char_metric, x_encode_char): Deleted.
16235 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16236 (x_compute_glyph_string_overhangs): Adjusted for the change of
16237 `struct face'.
16238 (x_draw_glyph_string_foreground)
16239 (x_draw_composite_glyph_string_foreground): Likewise.
16240 (x_draw_glyph_string): Likewise. Use font->underline_position and
16241 font->underline_thickness.
16242 (x_new_font): Renamed from x_new_fontset2.
16243 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16244 (x_check_font): Call `check' method of a font driver.
16245 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16246 (x_query_font, x_get_font_repertory): Deleted.
16247 (x_find_ccl_program): Renamed and moved to xfont.c.
16248 (x_redisplay_interface): Adjusted for the change of `struct
16249 redisplay_interface'.
16250
16251 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16252 conditionals. Don't check enable_font_backend. Delete all codes
16253 used only when USE_FONT_BACKEND is not defined. Surround non-used
16254 code by "#ifdef OLD_FONT" and "endif".
16255 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16256
16257 * w32font.h (struct w32font_info): New member.
16258 (FONT_COMPAT): New macro.
16259 (w32font_open_internal): Prototype adjusted.
16260
16261 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16262 OLD_FONT" and "endif".
16263
16264 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16265 conditionals. Don't check enable_font_backend. Delete all codes
16266 used only when USE_FONT_BACKEND is not defined.
16267 (w32font_open): Return a font-object. Make a font-object by
16268 font_make_object. Adjusted for the change of struct w32font_info.
16269 (w32font_close): Don't free struct font. Adjusted for the change
16270 of struct w32font_info.
16271 (w32font_encode_char, w32font_text_extents, w32font_draw):
16272 Adjusted for the change of struct w32font_info.
16273 (w32font_draw): Likewise.
16274 (w32font_list_internal): Return a list, not vector.
16275 (w32font_open_internal): Change the 4th arg to font-object.
16276 Adjusted for the change of struct w32font_info and font-object format.
16277 (add_font_name_to_list): Don't downcase names.
16278 (w32_enumfont_pattern_entity): Make a font-entity by
16279 font_make_entity. Adjusted for the format change of font-entity.
16280 Use FONT_SET_STYLE to set a style-related font property. If a
16281 font is scalable, set avgwidth property to 0. Set font-entity
16282 property by font_put_extra.
16283 (font_matches_spec): Adjusted for the format change of font-entity.
16284 (w32_weight_table, w32_decode_weight): New variables.
16285 (w32_encode_weight): New function.
16286 (fill_in_logfont): Adjusted for the format change of font-spec.
16287 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16288 weight value.
16289 (w32font_driver): Adjusted for the change of struct font_driver.
16290
16291 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16292 conditionals. Don't check enable_font_backend. Surround non-used
16293 code by "#ifdef OLD_FONT" and "endif".
16294 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16295 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16296
16297 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16298 conditionals. Don't check enable_font_backend. Delete all codes
16299 used only when USE_FONT_BACKEND is not defined. Surround non-used
16300 code by "#ifdef OLD_FONT" and "endif".
16301
16302 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16303 (uniscribe_open): Return value changed to font-object.
16304 Adjusted for the format change of font-object.
16305 (uniscribe_otf_capability): Adjusted for the change of struct font.
16306 (add_opentype_font_name_to_list): Don't downcase names.
16307 (uniscribe_font_driver): Adjusted for the change of struct
16308 font_driver.
16309
163102008-05-13 Chong Yidong <cyd@stupidchicken.com>
16311
16312 * dispnew.c (update_frame_1): Check if tty output is still valid
16313 before flushing it.
16314
163152008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16316
16317 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16318 to Gtk+ menus.
16319
163202008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16321
16322 * dired.c (file_name_completion): Tweak the code so as to always do it
16323 in a single pass. Tighten the scope of some variables.
16324
16325 * dired.c (Qdefault_directory): New var.
16326 (file_name_completion): Use it instead of Fexpand_file_name.
16327 (syms_of_dired): Initialize it.
16328
163292008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16330
16331 * fileio.c (double_dollars): Remove dead code.
16332
163332008-05-10 Eli Zaretskii <eliz@gnu.org>
16334
16335 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16336 Mention w32-get-true-file-attributes in doc string.
16337
16338 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16339
163402008-05-09 Glenn Morris <rgm@gnu.org>
16341
16342 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16343 2008-04-23.
16344
163452008-05-09 Eli Zaretskii <eliz@gnu.org>
16346
16347 Support for reporting owner and group of each file on MS-Windows:
16348 * dired.c (stat_uname, stat_gname): New functions, with special
16349 implementation for w32.
16350 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16351
16352 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16353 (dflt_group_name): New static variable.
16354 (dflt_group): Rename from the_group.
16355 (init_user_info): Init dflt_group fields. Get user's group name
16356 from LookupAccountSid.
16357 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16358 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16359 New initialization states.
16360 (globals_of_w32): Initialize them to zero. Initialize the default
16361 group name to "None".
16362 (GetFileSecurity_Name): New global var, the name of the function
16363 to call for GetFileSecurity.
16364 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16365 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16366 (get_file_security, get_security_descriptor_owner)
16367 (get_security_descriptor_group, is_valid_sid)
16368 (get_file_security_desc, get_rid, get_name_and_id)
16369 (get_file_owner_and_group): New functions.
16370 (stat): Use get_file_security_desc and get_file_owner_and_group to
16371 report the owner and primary group of each file. Don't ignore the
16372 high 32 bits of file's size, now that st_size is 64-bit wide.
16373 Fix test when to get true file attributes.
16374 (init_user_info): Use get_rid instead of equivalent inline code.
16375 (fstat): Don't ignore the high 32 bits of file's size.
16376
163772008-05-09 Chong Yidong <cyd@stupidchicken.com>
16378
16379 * image.c (png_load): Use correct bit-depth for setting background
16380 color.
16381
163822008-05-08 Eli Zaretskii <eliz@gnu.org>
16383
16384 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16385 epa-hook.elc.
16386
163872008-05-08 Juanma Barranquero <lekktu@gmail.com>
16388
16389 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16390
163912008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16392
16393 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16394 because the original parameters are in pure storage now.
16395 (mac_window): Remove unused params. Update callers.
16396
163972008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16398
16399 * lread.c (substitute_object_recurse): Use lower-level primitives.
16400 Don't signal errors when traversing sub-char-tables.
16401 Don't loop over all the possible characters when traversing char-tables.
16402
16403 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16404 just like we do in print.c.
16405
164062008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16407
16408 * minibuf.c (Ftry_completion): Remove code left over from when we used
16409 scmp instead of Fcompare_strings.
16410
164112008-05-04 Juanma Barranquero <lekktu@gmail.com>
16412
16413 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16414
164152008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16416
16417 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16418 Create bitmap context in native byte order.
16419
16420 * macterm.c (XDrawLine)
16421 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16422 context in native byte order.
16423
164242008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16425
16426 * config.in: Regenerate.
16427
16428 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16429 New definitions for Image I/O support.
16430 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16431 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16432 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16433 (mac_data_provider_release_data, image_load_image_io)
16434 [USE_MAC_IMAGE_IO]: New functions.
16435 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16436 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16437 (init_image_func_pointer) [MAC_OSX]: Remove function.
16438 (image_load_quartz2d) [MAC_OSX]: Check availability of
16439 CGImageCreateWithPNGDataProvider at compile time.
16440 Use lowercase `false' for boolean constant.
16441 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16442 Use image_load_image_io.
16443 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16444 Don't check MyCGImageCreateWithPNGDataProvider.
16445 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16446 Don't call init_image_func_pointer.
16447
16448 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16449
16450 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16451 Make variable non-static.
16452 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16453 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16454
16455 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16456 (RED_FROM_ULONG): Mask off higher bits.
16457 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16458
16459 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16460 Include AvailabilityMacros.h.
16461 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16462 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16463
164642008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16465
16466 * chartab.c (Fset_char_table_range): If range is t, really set all
16467 chars to that value.
16468
164692008-05-03 Eli Zaretskii <eliz@gnu.org>
16470
16471 * dired.c (Ffile_attributes): Don't allow the device number become
16472 negative.
16473
164742008-05-02 Daiki Ueno <ueno@unixuser.org>
16475
16476 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16477
164782008-05-02 Juri Linkov <juri@jurta.org>
16479
16480 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16481 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16482 DEFAULT argument as a list of default values in docstrings.
16483
164842008-05-01 Chong Yidong <cyd@stupidchicken.com>
16485
16486 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16487
164882008-05-01 Martin Rudalics <rudalics@gmx.at>
16489
16490 * dispnew.c (change_frame_size_1): Preserve small windows when
16491 shrinking frames by calling set_window_height|width with third
16492 arg 2.
16493
16494 * window.h (struct window): Replace field too_small_ok by field
16495 resize_proportionally.
16496
16497 * window.c (make_window): Initialize resize_proportionally.
16498 (enlarge_window): Temporarily set resize_proportionally to make
16499 sure that shrink_windows does scale the window proportionally.
16500 (shrink_windows): When window has resize_proportionally set try
16501 to shrink it proportionally by stealing from other windows.
16502 (struct saved_window, Fset_window_configuration)
16503 (compare_window_configurations): Handle resize_proportionally.
16504 (WINDOW_TOTAL_SIZE): New macro.
16505 (window_min_size, shrink_windows, size_window): Use it.
16506 (check_min_window_sizes): Remove. Invalid values of
16507 window-min-height|width are handled by window_min_size_2 now.
16508 (size_window, Fsplit_window, enlarge_window)
16509 (adjust_window_trailing_edge, grow_mini_window): Don't call
16510 check_min_window_sizes.
16511 (window_min_size_2, window_min_size_1, window_min_size):
16512 New argument safe_p for retrieving "safe" minimum sizes.
16513 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16514 (adjust_window_trailing_edge, grow_mini_window):
16515 Adjust arguments of window_min_size... functions.
16516 (shrink_windows): Argument min_size removed. New argument
16517 safe_p allows shrinking windows to their safe minimum sizes.
16518 Calculate minimum size and decide whether a window shall be
16519 deleted for each window individually.
16520 (size_window): When nodelete_p equals 2, tell shrink_windows to
16521 delete windows only if their new minimum size is no more safe.
16522 (shrink_window_lowest_first): Call window_min_size_1 to make
16523 sure to preserve modeline of bottom-most window when resizing
16524 the minibuffer.
16525 (Fset_window_configuration, Fcurrent_window_configuration)
16526 (compare_window_configurations): Do not handle
16527 window-min-height|width any more.
16528 (syms_of_window): Clarify window-min-height|width doc-strings.
16529
165302008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16531
16532 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16533 some more. Copy some of the code from Ftry_completions.
16534 Remove special case code that dates back to initial revision when the
16535 slash was only added when necessary and that can't trigger nowadays.
16536
165372008-04-27 Kenichi Handa <handa@m17n.org>
16538
16539 * font.c (font_prop_validate): Signal `error' instead of `font'.
16540
165412008-04-29 Jason Rumney <jasonr@gnu.org>
16542
16543 * w32fns.c (Fw32_battery_status): New defun.
16544 (syms_of_w32fns): Defsubr it.
16545
165462008-04-28 Andreas Schwab <schwab@suse.de>
16547
16548 * dired.c (file_name_completion): Fix another mixing of encoded
16549 and decoded names.
16550
165512008-04-28 Juanma Barranquero <lekktu@gmail.com>
16552
16553 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16554
165552008-04-27 Juanma Barranquero <lekktu@gmail.com>
16556
16557 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16558
165592008-04-27 Andreas Schwab <schwab@suse.de>
16560
16561 * dired.c (file_name_completion): Fix inappropriate mixing of
16562 encoded and decoded names.
16563
16564 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16565
16566 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16567
165682008-04-26 Eli Zaretskii <eliz@gnu.org>
16569
16570 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16571 2008-03-31, it's not needed anymore with `struct stat' definition
16572 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16573 for the same reasons.
16574
165752008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16576
16577 * m/sparc.h: Additional redefinitions for GNU/Linux.
16578
165792008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16580
16581 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16582 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16583 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16584 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16585 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16586 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16587 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16588 Likewise.
16589
16590 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16591 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16592 (mac_ax_number_of_characters): Add externs.
16593 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16594 [USE_MAC_TSM]: Likewise.
16595 (mac_handle_text_input_event) [MAC_OSX]:
16596 Handle kEventTextInputOffsetToPos for no active input area case.
16597 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16598 (mac_handle_document_access_event)
16599 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16600 (install_application_handler) [MAC_OSX]: Register handlers for
16601 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16602 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16603 Register mac_handle_document_access_event.
16604
16605 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16606 Make functions non-static.
16607
166082008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16609
16610 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16611 (read_file_name_completion_ignore_case, insert_default_directory)
16612 (Qdefault_directory): Move to minibuffer.el.
16613 (Fread_file_name): Call the new `read-file-name' instead.
16614
166152008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16616
16617 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16618 Make function non-static.
16619 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16620 Remove function.
16621 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16622 Move to mactoolbox.c.
16623 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16624
16625 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16626 (mac_rect_make): New macro.
16627
16628 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16629 instead of float.
16630 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16631 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16632 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16633 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16634 CGRectMake.
16635 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16636 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16637 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16638 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16639 instead of WindowRef in argument type.
16640 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16641 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16642 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16643 instead of DISPLAY. All uses changed.
16644 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16645 (x_calc_absolute_position): Simplify so as not to use
16646 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16647
16648 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16649 instead of WindowRef in argument type.
16650 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16651 [TARGET_API_MAC_CARBON]: Remove externs.
16652 (create_apple_event, mac_event_parameters_to_lisp)
16653 [TARGET_API_MAC_CARBON]: Add externs.
16654
16655 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16656 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16657 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16658 is clicked.
16659 (x_activate_menubar): Remove extern for saved_menu_event_location.
16660 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16661 Move from mac.c.
16662
166632008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16664
16665 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16666 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16667
166682008-04-23 Jason Rumney <jasonr@gnu.org>
16669
16670 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16671 attributes only for local files.
16672
16673 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16674 default to Qlocal.
16675
166762008-04-22 Juri Linkov <juri@jurta.org>
16677
16678 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16679 read-buffer-to-switch instead of using the letter "B".
16680
166812008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16682
16683 * fileio.c (Qdefault_directory): New variable.
16684 (Fread_file_name): Use it to pass `dir' to the completion functions.
16685
166862008-04-20 Chong Yidong <cyd@stupidchicken.com>
16687
16688 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16689
166902008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16691
16692 * keyboard.c (Vpre_help_message): Remove.
16693 (show_help_echo): Remove default C code.
16694
16695 * dired.c (directory_files_internal, file_name_completion):
16696 Only call ENCODE_FILE if the string is indeed decoded.
16697
166982008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16699
16700 * Makefile.in (TOOLKIT_DEFINES): Remove.
16701 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16702
167032008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16704
16705 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16706 (mactoolbox.o): New target.
16707
16708 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16709 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16710
16711 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16712 Use mac_set_frame_window_background instead of XSetWindowBackground.
16713 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16714 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16715 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16716 instead of SetWindowTitleWithCFString.
16717 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16718 Move function to mactoolbox.c.
16719 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16720 Use mac_set_window_modified instead of SetWindowModified.
16721 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16722 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16723 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16724 FrontNonFloatingWindow. Use mac_activate_window instead of
16725 ActivateWindow. Use mac_active_non_floating_window instead of
16726 ActiveNonFloatingWindow.
16727 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16728 Use mac_show_hourglass and mac_hide_hourglass.
16729 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16730 instead of GetGlobalMouse.
16731 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16732 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16733 Use mac_bring_window_to_front instead of BringToFront.
16734 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16735 mactoolbox.c.
16736 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16737 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16738 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16739 mactoolbox.c.
16740
16741 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16742 (XtPointer): Move typedef from macmenu.c.
16743 (enum button_type): Move enum from macmenu.c.
16744 (widget_value): Move typedef from macmenu.c.
16745 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16746 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16747 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16748 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16749 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16750 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16751 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16752 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16753 (Selection): Move typedef from macselect.c.
16754 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16755 macterm.c.
16756 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16757 (mac_is_window_collapsed, mac_bring_window_to_front)
16758 (mac_send_window_behind, mac_hide_window, mac_show_window)
16759 (mac_collapse_window, mac_front_non_floating_window)
16760 (mac_active_non_floating_window, mac_activate_window)
16761 (mac_move_window_structure, mac_move_window, mac_size_window)
16762 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16763
16764 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16765 (enum mac_menu_kind): Move enum to mactoolbox.c.
16766 (min_menu_id): Move variable to mactoolbox.c.
16767 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16768 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16769 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16770 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16771 [TARGET_API_MAC_CARBON]: Likewise.
16772 (XtPointer): Move typedef to macgui.h.
16773 (enum button_type): Move enum to macgui.h.
16774 (widget_value): Move typedef to macgui.h.
16775 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16776 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16777 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16778 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16779 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16780 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16781 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16782 (popup_activated_flag): Make variable non-static.
16783 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16784 (add_menu_item, fill_menu, dispose_menus):
16785 Move functions to mactoolbox.c.
16786 (restore_show_help_function, menu_target_item_handler)
16787 (install_menu_target_item_handler, mac_handle_dialog_event)
16788 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16789 [TARGET_API_MAC_CARBON]: Likewise.
16790 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16791 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16792 (find_and_call_menu_selection, name_is_separator): Make function
16793 non-static.
16794 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16795 to mactoolbox.c.
16796 (set_frame_menubar): Don't call install_menu_quit_handler.
16797 (menu_item_selection): New variable.
16798 (mac_menu_show): Use create_and_show_popup_menu.
16799 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16800 selection but set variable menu_item_selection. All uses changed.
16801 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16802 Call install_menu_quit_handler. Move to mactoolbox.c.
16803
16804 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16805 (Selection): Move typedef to macgui.h.
16806 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16807 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16808 Make variables non-static.
16809 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16810 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16811 Make functions non-static.
16812 (Vmac_service_selection) [MAC_OSX]: Likewise.
16813 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16814 (mac_valid_selection_target_p, mac_clear_selection)
16815 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16816 (mac_put_selection_value, mac_selection_has_target_p)
16817 (mac_get_selection_value, mac_get_selection_target_list)
16818 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16819 Move functions to mactoolbox.c.
16820 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16821 Likewise.
16822 (copy_scrap_flavor_data, mac_handle_service_event)
16823 (install_service_handler) [MAC_OSX]: Likewise.
16824 (syms_of_macselect) <Vmac_dnd_known_types>:
16825 Use mac_dnd_default_known_types.
16826
16827 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16828 Move to mactoolbox.c.
16829 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16830 (Fx_selection_owner_p): Add EXFUN.
16831 (install_window_handler, remove_window_handler, XSetWindowBackground):
16832 Remove externs.
16833 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16834 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16835 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16836 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16837 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16838 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16839 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16840 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16841 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16842 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16843 (mac_valid_selection_target_p, mac_clear_selection)
16844 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16845 (mac_put_selection_value, mac_selection_has_target_p)
16846 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16847 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16848 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16849 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16850 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16851 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16852 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16853 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16854 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16855
16856 * mactoolbox.c: New file.
16857
168582008-04-18 Jason Rumney <jasonr@gnu.org>
16859
16860 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16861
168622008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16863
16864 * character.c (Fmultibyte_char_to_unibyte):
16865 Return latin1 chars unchanged.
16866
16867 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16868 relocated if it points to `name'.
16869
168702008-04-17 Kenichi Handa <handa@m17n.org>
16871
16872 * data.c (Faset): Allow setting a multibyte character in an
16873 ASCII-only unibyte string.
16874
16875 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16876
168772008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16878
16879 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16880 done in config.h.
16881
168822008-04-16 Juanma Barranquero <lekktu@gmail.com>
16883
16884 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16885 (Fchar_direction): Add usage in the docstring.
16886
168872008-04-15 Chong Yidong <cyd@stupidchicken.com>
16888
16889 * keyboard.c (read_key_sequence): Remove always-true checks.
16890
168912008-04-14 Jason Rumney <jasonr@gnu.org>
16892
16893 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16894 compatibility struct, for better underline positioning.
16895
168962008-04-13 David Hansen <david.hansen@gmx.net>
16897
16898 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16899 string.
16900
169012008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16902
16903 * m/hp800.h (XUINT, XSET): Remove.
16904
169052008-04-12 Juanma Barranquero <lekktu@gmail.com>
16906
16907 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16908 previous change.
16909
169102008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16911
16912 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16913 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16914
169152008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16916
16917 * keymap.h (map_keymap_canonical): Declare.
16918 * xmenu.c (single_keymap_panes): Use it.
16919
169202008-04-11 Glenn Morris <rgm@gnu.org>
16921
16922 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16923 set the target's value to that of the alias.
16924
169252008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16926
16927 * term.c (set_tty_color_mode): Left over typo.
16928
169292008-04-10 Michael Albinus <michael.albinus@gmx.de>
16930
16931 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16932 only after check for file name handler functions. Signal, when
16933 native functionality is not supported.
16934 (syms_of_fileio): Declare it unconditionally.
16935
169362008-04-10 Jason Rumney <jasonr@gnu.org>
16937
16938 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16939 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16940
16941 * w32.c (logon_network_drive): Also logon to remote drives that
16942 are mapped to drive letters.
16943
169442008-04-10 Glenn Morris <rgm@gnu.org>
16945
16946 * xdisp.c (truncate-partial-width-windows): Doc fix.
16947
169482008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16949
16950 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16951 Move functions to minibuffer.el.
16952 (syms_of_fileio): Don't declare them.
16953
169542008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16955
16956 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16957 (syms_of_minibuf): Remove its initialization.
16958
16959 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16960
169612008-04-09 Juanma Barranquero <lekktu@gmail.com>
16962
16963 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16964
169652008-04-09 Jason Rumney <jasonr@gnu.org>
16966
16967 * makefile.w32-in (distclean): Delete makefile too.
16968 (maintainer-clean): New target.
16969
16970 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16971
16972 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16973 for new font backend and composite cases.
16974
169752008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16976
16977 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
16978 Most of the code moved to run_timers.
16979 (do_pending_atimers): Call run_timers.
16980 (run_timers): New function.
16981
16982 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
16983 run atimers.
16984
16985 * process.c (wait_reading_process_output): The same as above.
16986
169872008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16988
16989 * minibuf.c (last_exact_completion): Remove variable.
16990 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
16991 (complete_and_exit_1, complete_and_exit_2)
16992 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
16993 (Fdisplay_completion_list, display_completion_list_1)
16994 (Fminibuffer_completion_help, Fself_insert_and_exit)
16995 (Fexit_minibuffer, Fminibuffer_message): Move functions to
16996 minibuffer.el.
16997 (syms_of_minibuf): Remove corresponding initializations.
16998
16999 * keyboard.c (Qdeactivate_mark): New var.
17000 (command_loop_1): Use it to call `deactivate-mark'.
17001 (syms_of_keyboard): Initialize it.
17002
17003 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17004 to another frame.
17005 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17006 Don't call set_tty_color_mode.
17007 (store_frame_param): Reset previous_frame rather than call
17008 set_tty_color_mode.
17009 * term.c (set_tty_color_mode): Rewrite.
17010 * dispextern.h (set_tty_color_mode): New type.
17011 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17012
170132008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17014
17015 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17016 for generic chars, which do not exist any more in emacs-unicode.
17017
170182008-04-08 Michael Albinus <michael.albinus@gmx.de>
17019
17020 * coding.c (detect_coding_emacs_mule)
17021 (Ffind_operation_coding_system): Fix typo.
17022
170232008-04-08 Jason Rumney <jasonr@gnu.org>
17024
17025 * w32uniscribe.c (SNAME): Extract only symbol name.
17026
17027 * w32font.h (struct w32_metric_cache): New struct.
17028 (w32font_info): Use it.
17029 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17030 (CACHE_BLOCKSIZE): New constants.
17031
17032 * w32font.c (Qja, Qko, Qzh): New symbols.
17033 (syms_of_w32font): Initialise them.
17034 (font_matches_spec): Use them to filter by language.
17035 (recompute_cached_metrics): Remove function.
17036 (compute_metrics, clear_cached_metrics): New functions.
17037 (w32font_encode_char): Use them to manage metric cache.
17038 (w32font_text_extents): Cache metrics for all glyphs on demand.
17039 Delay converting glyph indices to WORD until needed.
17040 (w32font_open_internal): Initialize metric cache to empty.
17041 (registry_to_w32_charset): Charset should always be a symbol.
17042 (fill_in_logfont, list_all_matching_fonts): Family should
17043 always be a symbol.
17044
170452008-04-06 Jason Rumney <jasonr@gnu.org>
17046
17047 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17048 Give up if glyph indices not supported. Use uniscribe obtained
17049 ABC widths for individual metrics. Map glyph clusters back to
17050 characters using fClusterStart flag. Return number of glyphs
17051 produced, not chars processed.
17052 (uniscribe_shape): Map char at FROM to current glyph.
17053
170542008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17055
17056 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17057 Use SetMenuItemHierarchicalMenu.
17058
170592008-04-05 Jason Rumney <jasonr@gnu.org>
17060
17061 * image.c (pbm_load): Allow color values up to 65535.
17062 Throw an error if max_color_idx is outside the supported range.
17063 Report an error when image size is invalid.
17064 Read two bytes at a time when raw images have max_color_idx above 255.
17065
aac0c6e3
MR
170662008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17067
17068 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17069 append "CCL: Quitted" when the CCL program is quitted.
17070 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17071
17072 * ccl.h (struct ccl_program): New member quit_silently.
17073
170742008-04-05 Chong Yidong <cyd@stupidchicken.com>
17075
17076 * search.c (compile_pattern_1): Treat non-nil and non-string of
17077 search-spaces-regexp as nil.
17078
17079 * minibuf.c (Fassoc_string): Tweak docstring.
17080
170812008-04-05 Eli Zaretskii <eliz@gnu.org>
17082
17083 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17084 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17085 2008-03-14 to force inode be positive.
17086
17087 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17088 _S_* ones, since we now use our own sys/stat.h.
17089 (stat, fstat): Don't mangle the inode number.
17090 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17091
170922008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17093
17094 * frame.h (struct frame): Give one more bit to `visible' since we use
17095 values larger than 1 to indicate obscured frames on ttys.
17096
17097 * keymap.c (Qkeymap_canonicalize): New var.
17098 (Fmap_keymap_internal): New fun.
17099 (describe_map): Use keymap-canonicalize.
17100
17101 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17102 (Fundo_boundary): Set them.
17103 (syms_of_undo): Initialize them.
17104 (record_point): Use them instead of last_point_position*.
17105 (last_undo_buffer): Change type.
17106
171072008-04-04 Jason Rumney <jasonr@gnu.org>
17108
17109 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17110 (recompute_cached_metrics): Don't set ascent and descent per char.
17111
17112 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17113 (uniscribe_check_otf): Add GC protection before consing.
17114 Rearrange loop for counting features.
17115
171162008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17117
17118 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17119 buffer with byte-size of source buffer.
17120
171212008-04-03 Chong Yidong <cyd@stupidchicken.com>
17122
17123 * callint.c (Fcall_interactively): Handle temporary region even
17124 when shift-select-mode is off.
17125
171262008-04-03 Jason Rumney <jasonr@gnu.org>
17127
17128 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17129
171302008-04-03 Kenichi Handa <handa@m17n.org>
17131
17132 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17133 (CATEGORY_MASK_UTF_16): Likewise.
17134 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17135 binary file.
17136 (detect_coding): Add null-byte detection for a binary file.
17137 (detect_coding_system): Likewise.
17138
171392008-04-03 Jason Rumney <jasonr@gnu.org>
17140
17141 * w32uniscribe.c: New file.
17142
17143 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17144
17145 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17146
17147 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17148 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17149 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17150 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17151 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17152 (Qphonetic): New symbols.
17153 (syms_of_w32font): Initialize them.
17154 (font_supported_scripts): Use them.
17155 (w32font_list_family): List all charsets.
17156 (w32font_text_extents, recompute_cached_metrics): Fix metric
17157 calculations.
17158 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17159 Give opentype fonts their own format.
17160 (font_matches_spec): New arguments backend and logfont.
17161 Handle :otf spec for uniscribe backend.
17162 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17163 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17164
17165 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17166 font backend.
17167 (globals_of_w32fns): Initialize uniscribe font backend.
17168
17169 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17170 dependencies.
17171 (w32uniscribe.$(O)): New file to build.
17172 (FONT_OBJ): Include w32uniscribe.$(O).
17173 (LIBS): Add uniscribe libraries.
17174
17175 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17176
171772008-04-02 Chong Yidong <cyd@stupidchicken.com>
17178
17179 * callint.c (Vshift_select_mode): New var.
17180 (Finteractive): Document new ^ spec.
17181 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17182 is present.
17183
17184 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17185 (command_loop_1): Avoid running the direct display versions of
17186 forward-char and backward-char if shift-selection may occur.
17187 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17188 shift-translation takes place.
17189
17190 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17191 avoid clobbering by define-minor-mode.
17192
17193 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17194 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17195
17196 * syntax.c (Fforward_word): Add ^ interactive spec.
17197
17198 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17199 (Fscroll_right): Add ^ interactive spec.
17200
172012008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17202
17203 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17204
17205 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17206
17207 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17208
172092008-03-31 Juri Linkov <juri@jurta.org>
17210
17211 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17212
172132008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17214
17215 * gtkutil.c (xg_set_geometry): Fix indentation.
17216 (xg_resize_outer_widget): Remove.
17217 (x_wm_size_hint_off): Fix indentation.
17218 (xg_frame_set_char_size): Call flush_and_sync after
17219 gtk_window_resize.
17220 (x_wm_set_size_hint): Pass NULL as geometry window to
17221 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17222 Add menu bar and tool bar height to base height.
17223 (xg_update_frame_menubar, free_frame_menubar)
17224 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17225 (update_frame_tool_bar, free_frame_tool_bar):
17226 Change xg_resize_outer_widget to xg_frame_set_char_size.
17227
172282008-03-30 Michael Albinus <michael.albinus@gmx.de>
17229
17230 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17231 (Fdbus_call_method): New parameter TIMEOUT.
17232 (dbus-send-signal): Optimize UNGCPRO call.
17233
172342008-03-29 Juri Linkov <juri@jurta.org>
17235
17236 * window.c (Fdisplay_buffer): Move call to
17237 Vsplit_window_preferred_function out of conditions that check
17238 if window is eligible for vertical splitting.
17239 When Vsplit_window_preferred_function is non-nil, call it and use
17240 its non-nil return value as window. Otherwise, continue doing
17241 vertical splitting using Fsplit_window with arg horflag=nil.
17242 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17243 default value from `split-window' to nil.
17244
172452008-03-29 Juri Linkov <juri@jurta.org>
17246
17247 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17248 for interactive code letters 'b' and 'B'.
17249
172502008-03-29 Eli Zaretskii <eliz@gnu.org>
17251
17252 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17253 multibyte string.
17254
172552008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17256
17257 * keyboard.c (pending_funcalls): New var.
17258 (timer_check): Run it.
17259 (syms_of_keyboard): Initialize it.
17260 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17261 (Vdelete_terminal_functions): New vars.
17262 (syms_of_terminal): Initialize them.
17263 (Fdelete_terminal): Run delete-terminal-functions.
17264 * xdisp.c (safe_eval): Rewrite.
17265 (safe_call2): New fun.
17266 * frame.c (Qdelete_frame_functions): New var.
17267 (syms_of_frame): Initialize it.
17268 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17269 * lisp.h (safe_call2, pending_funcalls): Declare.
17270
172712008-03-28 Andreas Schwab <schwab@suse.de>
17272
17273 * indent.c (Fmove_to_column): Move declaration before statements.
17274
172752008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17276
17277 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17278 (struct frame): Use bit fields for boolean vars.
17279
17280 * process.c (server_accept_connection): Simplify naming.
17281 (emacs_get_tty_pgrp): Use SDATA.
17282
17283 * coding.c (decode_coding_object): Fix last change.
17284
172852008-03-27 Jason Rumney <jasonr@gnu.org>
17286
17287 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17288
172892008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17290
17291 * charset.c (Fdefine_charset_internal): Change the way of
17292 registering charsets in Vcharset_order_list.
17293 (syms_of_charset): Make the charset `eight-bit' supplementary.
17294
172952008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17296
17297 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17298 operations, to avoid having the difference between pointers
17299 overflow.
17300
173012008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17302
17303 * indent.c (check_display_width): New fun.
17304 (scan_for_column): Use it.
17305
17306 * data.c (syms_of_data): Mark most-positive-fixnum and
17307 most-negative-fixnum as constants.
17308
17309 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17310
17311 * indent.c (scan_for_column): Extract from current_column_1.
17312 Merge with the same code from Fmove_to_column.
17313 (current_column_1, Fmove_to_column): Use it.
17314
173152008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17316
17317 * keymap.c (map_keymap_internal): New fun.
17318 (map_keymap): Use it.
17319 (Fmap_keymap_internal): New fun.
17320 (Fmap_keymap): Remove left-out test from before make_save_value.
17321
17322 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17323
17324 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17325 Use XCAR/XCDR.
17326
17327 * process.h (struct Lisp_Process): Remove filter_multibyte.
17328 * process.c (QCfilter_multibyte): Remove.
17329 (setup_process_coding_systems): Don't use filter_multibyte.
17330 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17331 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17332 (Fset_process_filter_multibyte): Change the coding-system to
17333 approximate the previous behavior.
17334 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17335 coding-system.
17336
17337 * coding.c (decode_coding_object): When not decoding into a buffer,
17338 obey the coding system's preference of (uni|multi)byte.
17339
173402008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17341
17342 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17343 every char is changed and has a different byte-length.
17344 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17345 Fix int -> EMACS_INT.
17346
173472008-03-23 David Hansen <david.hansen@gmx.net>
17348
17349 * dbusbind.c (xd_read_message): Remove extra copying of message
17350 strings. Check for NULL `interface' or `member'.
17351
173522008-03-22 Eli Zaretskii <eliz@gnu.org>
17353
17354 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17355 cFileName a file name that includes `?' characters, use the 8+3
17356 alias in cAlternateFileName instead.
17357
173582008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17359
17360 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17361
173622008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17363
17364 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17365 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17366 work on current_buffer only instead (that was already the case
17367 for some of the code anyway).
17368 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17369 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17370 (SET_PT, SET_PT_BOTH): Adjust.
17371 * intervals.h (set_point, temp_set_point, set_point_both)
17372 (temp_set_point_both): Remove redundant declarations.
17373
173742008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17375
17376 * fileio.c (Finsert_file_contents):
17377 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17378 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17379 when buffer != current_buffer anyway.
17380
173812008-03-20 Andreas Schwab <schwab@suse.de>
17382
17383 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17384 as default.
17385
173862008-03-19 Jason Rumney <jasonr@gnu.org>
17387
17388 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17389 (syms_of_w32fns): Initialize them.
17390 (HOURGLASS_ID): New constant.
17391 (x_window_to_frame): Don't check hourglass_window.
17392 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17393 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17394 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17395 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17396 Only change the cursor if hourglass is not active.
17397 (Fx_create_frame): Initialize frame's current_cursor.
17398 (hourglass_atimer): Remove.
17399 (hourglass_started): New function.
17400 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17401 (show_hourglass): Adapt to w32, changing argument to frame.
17402
17403 * w32term.h (struct w32_output): Remove hourglass_window.
17404 Add current_cursor.
17405
17406 * eval.c (call_debugger, Fsignal):
17407 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17408 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17409 (Fexecute_extended_command, cancel_hourglass_unwind):
17410 * minibuf.c (read_minibuf):
17411 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17412
174132008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17414
17415 * window.c (run_funs): New fun.
17416 (run_window_configuration_change_hook): Use it to run the buffer-local
17417 and the global part of the hook.
17418
17419 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17420 (unwind_format_mode_line): Restore selected window.
17421 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17422
174232008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17424
17425 * editfns.c (Fchar_equal): Check they are valid characters.
17426
17427 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17428
174292008-03-17 Andreas Schwab <schwab@suse.de>
17430
17431 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17432 against a charset.
17433
17434 * lisp.h (Fbuffer_list): Declare.
17435
174362008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17437
aac0c6e3
MR
17438 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17439 handlebox_widget is != 0.
17440
174412008-03-16 Juri Linkov <juri@jurta.org>
17442
17443 * callint.c (Fcall_interactively): For interactive code letters
17444 'b' and 'B' put the buffer list into the list of default "future"
17445 values of the minibuffer.
17446
174472008-03-16 Andreas Schwab <schwab@suse.de>
17448
17449 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17450 modifiers.
17451
17452 * regex.c (re_match_2_internal): Correct matching of a charset
17453 against latin-1 characters.
17454
174552008-03-16 Kenichi Handa <handa@m17n.org>
17456
17457 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17458 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17459 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17460 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17461 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17462 CHAR_STRING_ADVANCE.
17463 (produce_chars): Fix for the case that the source and the
17464 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17465 instead of CHAR_STRING_ADVANCE.
17466 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17467 STRING_CHAR_ADVANCE.
17468
174692008-03-15 Andreas Schwab <schwab@suse.de>
17470
17471 * regex.c (re_match_2_internal): Correct matching of eight bit
17472 characters in unibyte strings.
17473
174742008-03-15 Martin Rudalics <rudalics@gmx.at>
17475
17476 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17477 at end of range when it coincides with the end of the buffer.
17478
174792008-03-14 Eli Zaretskii <eliz@gnu.org>
17480
17481 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17482
17483 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17484
174852008-03-14 Jason Rumney <jasonr@gnu.org>
17486
17487 * editfns.c (initial_tz): New variable.
17488 (syms_of_editfns): Initialize it.
17489 (Fset_time_zone_rule): Set it when first called.
17490 Use it when TZSTRING is nil.
17491
17492 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17493 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17494 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17495 (globals_of_w32fns): Initialize them.
17496 (compute_tip_xy): Use them to position tooltips.
17497
174982008-03-14 Glenn Morris <rgm@gnu.org>
17499
17500 * emacs.c (main): Revert previous change.
17501 (standard_args): Revert -internal-script back to -scriptload,
17502 and remove the long-option form.
17503
175042008-03-13 Glenn Morris <rgm@gnu.org>
17505
17506 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17507 Remove option -enable-font-backend.
17508
175092008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17510
17511 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17512
175132008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17514
17515 * xterm.c (x_connection_closed): For GTK: If this is the last
17516 terminal just exit without closing the display.
17517
175182008-03-11 Jason Rumney <jasonr@gnu.org>
17519
17520 * w32font.c (w32font_full_name): Use floor to round.
17521
f0131492 175222008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17523
17524 * sound.c (alsa_configure): Declare vol at beginning of block.
17525
17526 * fontset.c (Ffontset_info): Remove extra semicolon.
17527
175282008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17529
17530 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17531 size of resulting string.
17532
175332008-03-10 Jason Rumney <jasonr@gnu.org>
17534
17535 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17536
175372008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17538
17539 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17540 Don't pretend as if characters with display property haven't been
17541 consumed for string-replacing-string case.
17542
175432008-03-08 Kim F. Storm <storm@cua.dk>
17544
17545 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17546 (get_next_display_element, next_element_from_string)
17547 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17548
175492008-03-08 Andreas Schwab <schwab@suse.de>
17550
17551 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17552
175532008-03-06 Jason Rumney <jasonr@gnu.org>
17554
17555 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17556 when charset not specified. Only translate ANSI to unicode when
17557 font_type is truetype.
17558 (w32font_coverage_ok): New function.
17559 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17560
175612008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17562
17563 * lread.c (Fread_char): Resolve modifiers.
17564 (Fread_char_exclusive): Likewise.
17565
17566 * character.c (char_resolve_modifier_mask): New function.
17567 (char_string): Use char_resolve_modifier_mask.
17568 (Fchar_resolve_modifiers): New function.
17569 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17570 function.
17571
175722008-03-04 Jason Rumney <jasonr@gnu.org>
17573
17574 * makefile.w32-in: Always include w32font.c in the build.
17575 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17576
175772008-03-04 Andreas Schwab <schwab@suse.de>
17578
17579 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17580 (versionclean): Likewise.
17581
175822008-03-04 Juanma Barranquero <lekktu@gmail.com>
17583
17584 * .cvsignore: Add oo.
17585
175862008-03-03 Andreas Schwab <schwab@suse.de>
17587
17588 * coding.c (decode_coding_object): Inhibit gap shrinking while
17589 decoding in place.
17590
175912008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17592
17593 * w32term.c: Remove unused include "gnu.h".
17594 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17595
17596 * gnu.h: Rename to ...
17597 * emacs-icon.h: ... this.
17598 * xterm.c: Use emacs-icon.h instead of gnu.h.
17599 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17600
176012008-03-03 Juanma Barranquero <lekktu@gmail.com>
17602
17603 * w32font.c: Include math.h.
17604
176052008-03-03 Jason Rumney <jasonr@gnu.org>
17606
17607 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17608 Compute options separately.
17609 (w32font_open_internal): Set glyph_idx before caching metrics.
17610
17611 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17612 Define if system headers don't.
17613 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17614 (w32font_encode_char): Don't declare here.
17615
17616 * w32font.c (Quniscribe, QCformat): New symbols.
17617 (syms_of_w32font): Define them.
17618 (w32font_has_char): Indicate uncertainty.
17619 (w32font_encode_char): Encode as glyph point. Make static.
17620 (recompute_cached_metrics): New function.
17621 (w32font_open_internal): Use it. Set font to use glyph points
17622 initially. Set format based on type of font.
17623 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17624 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17625 on it. Set format based on information available here.
17626 (add_font_entity_to_list): Identify backend based on opentype_only.
17627
176282008-03-02 Andreas Schwab <schwab@suse.de>
17629
17630 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17631
17632 * coding.c (decode_coding_big5, produce_chars):
17633 Fix typos in last change.
17634
176352008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17636
17637 * gnu.h: New icon.
17638
176392008-03-02 Kenichi Handa <handa@m17n.org>
17640
17641 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17642 `dos', don't decode '\r' if that is the last in the source.
17643 (decode_coding_utf_16, decode_coding_emacs_mule)
17644 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17645 (decode_coding_raw_text, decode_coding_charset): Likewise.
17646 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17647
176482008-03-01 Jason Rumney <jasonr@gnu.org>
17649
17650 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17651
176522008-03-01 Kim F. Storm <storm@cua.dk>
17653
17654 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17655
176562008-03-01 Jason Rumney <jasonr@gnu.org>
17657
17658 * w32font.c (w32font_full_name): New function.
17659 (w32font_open_internal): Use it.
17660
176612008-03-01 Kim F. Storm <storm@cua.dk>
17662
17663 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17664
176652008-03-01 Jason Rumney <jasonr@gnu.org>
17666
17667 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17668
176692008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17670
17671 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17672 xg_frame_resized when the event is for the edit widget.
17673
17674 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17675
17676 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17677 set_char_size.
17678 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17679 operations on widgets here. Just set frame size if needed.
17680 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17681 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17682 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17683 the whole frame.
17684 (xg_create_tool_bar): Move attachment of the tool bar to
17685 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17686 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17687
176882008-03-01 Jason Rumney <jasonr@gnu.org>
17689
17690 * w32fns.c (w32_msg_pump): Disable debug code.
17691
176922008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17693
17694 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17695
176962008-02-29 Chong Yidong <cyd@stupidchicken.com>
17697
17698 * xdisp.c (next_overlay_string): Don't set
17699 overlay_strings_at_end_processed_p if we're currently reading from
17700 a display string.
17701
177022008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17703
17704 * xdisp.c (get_overlay_strings_1): Fix typo.
17705
177062008-02-29 Chong Yidong <cyd@stupidchicken.com>
17707
17708 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17709
177102008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17711
17712 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17713
17714 * xdisp.c (display_mode_element): Cancel the previous change.
17715 (decode_mode_spec): Likewise.
17716 (handle_auto_composed_prop): Don't make composition if it->string
17717 is a string.
17718
177192008-02-27 Kim F. Storm <storm@cua.dk>
17720
17721 * lisp.h (GLYPH): Change type from int to struct with separate char
17722 and face_id members.
17723 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17724 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17725 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17726 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17727 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17728 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17729 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17730 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17731 handle new Lisp glyph code encoding, either an integer or a cons.
17732
17733 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17734 (GLYPH_ALIAS): Delete.
17735 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17736 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17737 (GLYPH_FROM_CHAR): Replace macro by ...
17738 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17739
17740 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17741 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17742 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17743 (GLYPH_INVALID_P): New macro.
17744 (spec_glyph_lookup_face): Update prototype.
17745
17746 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17747 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17748 new glyph code encoding.
17749 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17750 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17751
17752 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17753 Adapt to new glyph type and new glyph code encoding.
17754
17755 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17756
17757 * indent.c (current_column, current_column_1, Fmove_to_column)
17758 (compute_motion): Adapt to new glyph code encoding.
17759
17760 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17761
177622008-02-27 Chong Yidong <cyd@stupidchicken.com>
17763
17764 * process.c (wait_reading_process_output): Check for window
17765 changes caused by timers.
17766 Suggested by Johan Bockgård.
17767
177682008-02-27 Glenn Morris <rgm@gnu.org>
17769
17770 * emacs.c (USAGE1): Add `--disable-font-backend'.
17771
177722008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17773
17774 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17775 is made to the buffer.
17776
177772008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17778
17779 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17780 (face_at_string_position):
17781 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17782 (face_at_string_position):
17783 * xdisp.c (display_string, next_overlay_change):
17784 * buffer.h (overlays_at):
17785 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17786 Update callers.
17787
177882008-02-26 Chong Yidong <cyd@stupidchicken.com>
17789
17790 * editfns.c (Fformat): Doc fix.
17791
177922008-02-26 Juanma Barranquero <lekktu@gmail.com>
17793
17794 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17795 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17796 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17797
177982008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17799
17800 * buffer.c (Fbuffer_swap_text): New function.
17801 (syms_of_buffer): Defsubr it.
17802
178032008-02-25 Chong Yidong <cyd@stupidchicken.com>
17804
17805 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17806
178072008-02-25 Jason Rumney <jasonr@gnu.org>
17808
17809 * w32font.c (w32font_draw): Draw one character at a time when padding.
17810
178112008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17812
17813 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17814 Handle a nil arg. Use run_window_configuration_change_hook.
17815 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17816 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17817 Use run_window_configuration_change_hook.
17818
178192008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17820
17821 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17822 1-pixel width.
17823
178242008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17825
17826 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17827 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17828 if the glyph in the font is zero pixel with.
17829
17830 * dispextern.h (struct glyph_string): New member padding_p.
17831
17832 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17833
17834 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17835
17836 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17837
17838 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17839
17840 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17841
178422008-02-25 Jason Rumney <jasonr@gnu.org>
17843
17844 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17845
178462008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17847
17848 Allow fine-grained image-cache flushing.
17849 * dispextern.h (struct image): Add `dependencies' field.
17850 (clear_image_caches): Change arg to Lisp_Object.
17851 * image.c (make_image): Initialize `dependencies' field.
17852 (clear_image_cache): Change arg to allow fine-grained flushing.
17853 Perform the flush even if image-cache-eviction-delay is nil.
17854 (clear_image_caches): Change arg to Lisp_Object.
17855 (Fclear_image_cache): Expand meaning of the argument.
17856 (mark_image): Mark `dependencies' field.
17857 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17858 (lface_hash): Use XHASH rather than XFASTINT.
17859 (face_at_buffer_position): Fix int -> EMACS_INT position.
17860 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17861 (select_frame_for_redisplay): Remove code duplication.
17862 (redisplay_internal): Adapt arg to call to clear_image_caches.
17863
178642008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17865
17866 * s/vms4-0.h:
17867 * s/vms4-2.h:
17868 * s/vms4-4.h:
17869 * s/vms5-5.h: Remove, unused.
17870
17871 * s/irix5-2.h:
17872 * s/irix6-0.h:
17873 * s/riscos5.h:
17874 * s/mach-bsd4-3.h:
17875 * m/mips4.h: Remove files for obsolete systems.
17876
17877 * Makefile.in:
17878 * filelock.c:
17879 * unexmips.c:
17880 * m/hp9000s300.h:
17881 * m/iris4d.h:
17882 * s/aix3-1.h:
17883 * s/hpux.h:
17884 * s/msdos.h:
17885 * s/usg5-0.h:
17886 * s/usg5-2-2.h:
17887 * s/usg5-2.h:
17888 * s/usg5-3.h: Remove references to obsolete variables.
17889
17890 * s/irix5-0.h: Remove, move all the contents ...
17891 * s/irix6-5.h: ... here. Simplify.
17892 * config.in: Regenerate.
17893
178942008-02-24 Jason Rumney <jasonr@gnu.org>
17895
17896 * w32term.c (x_draw_glyph_string_background): Clear the background
17897 manually when cleartype is in use.
17898 (x_draw_glyph_string_foreground): Draw text transparently when
17899 cleartype is in use.
17900
17901 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17902 a font into it unless we have to.
17903
179042008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17905
17906 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17907 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17908
aac0c6e3
MR
179092008-02-18 Jason Rumney <jasonr@gnu.org>
17910
17911 * w32fns.c (Fw32_shell_execute): Encode parameters.
17912
179132008-02-09 Eli Zaretskii <eliz@gnu.org>
17914
17915 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17916
179172008-02-05 Juanma Barranquero <lekktu@gmail.com>
17918
17919 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17920
179212008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17922
17923 * xterm.c (x_set_offset): Don't change the gravity if
17924 CHANGE_GRAVITY is -1.
17925
179262008-02-23 Chong Yidong <cyd@stupidchicken.com>
17927
17928 * fileio.c (auto_save_error_occurred): New var.
17929 (auto_save_error): Set it.
17930 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17931 error occurred.
17932
179332008-02-23 Eli Zaretskii <eliz@gnu.org>
17934
17935 * w32.c (globals_of_w32): Add initializations for
17936 g_b_init_get_sid_sub_authority and
17937 g_b_init_get_sid_sub_authority_count.
17938
179392008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17940
17941 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17942 (font_parse_xlfd): Use them for sanity check.
17943 (Finternal_set_font_style_table): Make sure the table is bijective.
17944
17945 Consolidate the image_cache to the terminal struct.
17946 * termhooks.h (P_): Remove redundant def.
17947 (struct terminal): New field `image_cache'.
17948 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17949 of FRAME_X_IMAGE_CACHE.
17950 * xterm.h (struct x_display_info): Remove image_cache field.
17951 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17952 * w32term.h (struct w32_display_info): Remove image_cache field.
17953 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17954 * macterm.h (struct mac_display_info): Remove image_cache field.
17955 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17956 * xterm.c (x_term_init):
17957 * w32term.c (w32_term_init):
17958 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17959 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17960 Remove declarations.
17961 (clear_image_caches, mark_image_cache): New declarations.
17962 * xfaces.c (clear_face_cache):
17963 * xdisp.c (redisplay_internal): Use clear_image_caches.
17964 * image.c (clear_image_cache): Don't check that a frame is on
17965 a window-system before checking if it shares the same cache.
17966 (clear_image_caches): New function.
17967 (Fclear_image_cache): Use it.
17968 (mark_image): Move from allo.c.
17969 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17970 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17971 (mark_object): Don't call mark_image_cache for frames.
17972 (mark_terminals): Call mark_image_cache.
17973
17974 * lisp.h (Fdelete_terminal): Declare.
17975
17976 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
17977 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
17978 wrong_type_argument.
17979
179802008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
17981
17982 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
17983 malayalam.el, and tamil.el. Add sinhala.el.
17984
179852008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
17986
17987 * xterm.c (x_connection_closed): Consolidate identical tests.
17988 (x_delete_terminal): Don't crash if called via x_connection_closed.
17989
179902008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
17991
17992 * xdisp.c (decode_mode_spec): New arg string.
17993 (display_mode_element): Adjust for the above change.
17994
179952008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17996
17997 * callint.c (Fcall_interactively): Use AREF.
17998
179992008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18000
18001 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18002
180032008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18004
18005 * xfns.c (Fx_show_tip): Set string to " " if empty.
18006
180072008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18008
18009 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18010 with Qt.
18011
180122008-02-17 Kenichi Handa <handa@m17n.org>
18013
18014 * ftfont.c (ftfont_shape): Return Lispy number.
18015
18016 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18017 for GCs.
18018 (Finternal_set_font_selection_order): Call font_update_sort_order
18019 only when enable_font_backend is set.
18020 (realize_x_face): Set face->font_info to that of default face only
18021 when enable_font_backend is set.
18022
18023 * xdisp.c (handle_composition_prop): Set it->c to the fist
18024 character of the composed region.
18025 (fill_composite_glyph_string): Set base_face->font_info to
18026 s->font_info. Get a face for ascii from base_face->ascii_face.
18027 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18028 with a face already decided.
18029 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18030 non-negative.
18031 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18032 call font_prepare_composition unconditionally.
18033
18034 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18035
18036 * xterm.h (struct x_display_info): New member font.
18037
18038 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18039 (x_set_mouse_face_gc, x_new_font): Likewise.
18040 (x_term_init): Setup display_info->font.
18041 (x_delete_terminal): Free display_info->font.
18042
18043 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18044
18045 * ftxfont.c (ftxfont_default_fid): Delete it.
18046 (ftxfont_open): Set xfont->fid to 0.
18047 (ftxfont_end_for_frame): Clear data specific to the frame and the
18048 font-driver.
18049
18050 * xftfont.c (xftfont_default_fid): Delete it.
18051 (xftfont_open): Set xfont->fid to 0.
18052
18053 * fontset.c (FONTSET_OBJLIST): New macro.
18054 (fontset_find_font): Update font-object list of the fontset.
18055 (free_realized_fontset): New function.
18056 (free_face_fontset): Call free_realized_fontset.
18057 (Ffont_info): Call font_close_object only when enable_font_backend
18058 is set.
18059
18060 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18061 [HAVE_NTGUI]: Include w32term.h.
18062 [MAC_OS]: Include macterm.ch.
18063 (font_otf_ValueRecord): Use make_number.
18064 (font_finish_cache): Fix handling of reference count.
18065 (font_clear_cache): Update num_fonts.
18066 (font_open_entity): Update smallest_char_width and
18067 smallest_font_height of the frame.
18068 (font_close_object): Update num_fonts.
18069 (Fclear_font_cache): Fix finding the target cache data.
18070
180712008-02-16 Glenn Morris <rgm@gnu.org>
18072
18073 * fontset.c (Finternal_char_font): Fix compilation warning.
18074
180752008-02-16 Eli Zaretskii <eliz@gnu.org>
18076
18077 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18078 instead of char arrays. Enlarge the size of array passed to
18079 get_token_information.
18080
18081 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18082 warnings.
18083
180842008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18085
18086 * .gdbinit: Don't set `args', it breaks gdb --args.
18087
180882008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18089
18090 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18091 within a narrowed buffer.
18092
180932008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18094
18095 * coding.c (decode_coding_object, encode_coding_object):
18096 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18097
180982008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18099
18100 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18101 hardcoding 1.
18102 (detect_coding_system):
18103 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18104 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18105 * insdel.c (insert_from_gap):
18106 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18107 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18108 (string_to_multibyte):
18109 * character.c (chars_in_text, multibyte_chars_in_text):
18110 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18111
18112 * character.h (FETCH_STRING_CHAR_ADVANCE)
18113 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18114 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18115 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18116
18117 * casefiddle.c (casify_region): Only call after-change and composition
18118 functions on the part of the region that was changed.
18119
18120 * keyboard.c (read_avail_input):
18121 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18122
181232008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18124
18125 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18126 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18127
181282008-02-11 Juanma Barranquero <lekktu@gmail.com>
18129
18130 * w32menu.c (push_submenu_start, push_submenu_end)
18131 (push_left_right_boundary, push_menu_pane, push_menu_item):
18132 * keyboard.c (read_key_sequence): Don't pass args with side effects
18133 to AREF, it fails when compiling with -DENABLE_CHECKING.
18134
181352008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18136
18137 * Makefile.in (${lispsource}international/charprop.el):
18138 Delete this target.
18139
18140 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18141 emacs-unicode-2.
18142
181432008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18144
18145 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18146
181472008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18148
18149 * frame.c (Qnoelisp): New symbol.
18150 (syms_of_frame): Initialize it.
18151 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18152 harmless Elisp code, from a strong `force' from x_connection_closed.
18153 * frame.h (Qnoelisp): Declare.
18154 * xterm.c (x_connection_closed): Pass `noelisp'.
18155
18156 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18157 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18158 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18159 rather than `int' for the type of `type'.
18160
181612008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18162
18163 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18164
18165 * Makefile.in (GNUC): Remove support for gcc-1.x.
18166
181672008-02-10 Richard Stallman <rms@gnu.org>
18168
18169 * lisp.h (ASET): Use AREF, not ASLOT.
18170
181712008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18172
18173 * lisp.h (ASET): Check bounds.
18174
181752008-02-10 Glenn Morris <rgm@gnu.org>
18176
18177 * buffer.c (mode-name): Doc fix.
18178
181792008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18180
18181 * Makefile.in:
18182 * emacs.c:
18183 * gmalloc.c:
18184 * keyboard.c:
18185 * lisp.h:
18186 * m/ibm370aix.h:
18187 * process.c:
18188 * regex.c:
18189 * s/hpux.h:
18190 * sysdep.c:
18191 * sysselect.h:
18192 * systty.h:
18193 * unexec.c:
18194 * w32term.c:
18195 * xsmfns.c:
18196 * xterm.c: Remove code that deals with obsolete variables.
18197
18198 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18199
18200 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18201 nothing else needs it anymore.
18202
182032008-02-09 Eli Zaretskii <eliz@gnu.org>
18204
18205 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18206 instead of unibyte_char_to_multibyte.
18207
182082008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18209
18210 * s/gnu-linux.h: Remove commented out code.
18211
18212 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18213
18214 * Makefile.in: Update what RMS says about using autoconf.
18215 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18216 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18217 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18218 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18219
182202008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18221
18222 * keymap.c (Fkey_description): Move side effect outside of macro call.
18223
18224 * xfaces.c (Finternal_make_lisp_face):
18225 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18226
18227 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18228 (syms_of_fontset): Use ASET.
18229
18230 * fns.c (concat): Move side effect outside of macro call.
18231 (hash_clear): Use ASET.
18232
182332008-02-08 Richard Stallman <rms@gnu.org>
18234
18235 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18236 If FORCE, and frame has a surrogate minibuffer for another frame,
18237 delete the other frame first.
18238
182392008-02-07 Timo Savola <timo.savola@iki.fi>
18240
18241 * xterm.c (x_detect_focus_change): Handle embed client message.
18242 (handle_one_xevent): Ditto.
18243 (handle_one_xevent): If embedded and we get a button press/release,
18244 request focus.
18245 (xembed_set_info, xembed_send_message): New functions.
18246 (x_make_frame_visible): Call xembed_set_info if embedded.
18247 (x_make_frame_invisible): Call xembed_set_info if embedded.
18248 (x_term_init): Initialize Xatom_XEMBED.
18249 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18250 (x_iconify_frame): Ditto.
18251
18252 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18253 (enum xembed_info, enum xembed_message, enum xembed_focus)
18254 (enum xembed_modifier, enum xembed_accelerator): New.
18255 (xembed_set_info, xembed_send_message): Declare.
18256 (FRAME_X_EMBEDDED_P): New.
18257
18258 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18259 gtk_plug_new.
18260
18261 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18262 window ID of a frame.
18263 (x_window): Reparent frame if embedded.
18264 (Fx_create_frame): Don't set border width if embedded.
18265
18266 * emacs.c (USAGE3): Add --parent-id.
18267 (standard_args): Ditto.
18268
182692008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18270
18271 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18272
182732008-02-07 Jim Meyering <meyering@redhat.com>
18274
18275 Use "do...while (0)", not "if (1)...else" in macro definitions.
18276 The latter provokes a warning from gcc about the empty else, when
18277 followed by ";". Also, without that trailing semicolon, it would
18278 silently swallow up any following statement.
18279 * syntax.h (SETUP_SYNTAX_TABLE)
18280 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18281 * buffer.h (DECODE_POSITION): Likewise.
18282 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18283 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18284 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18285 (FETCH_CHAR_ADVANCE): Likewise.
18286 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18287
182882008-02-07 Jim Meyering <meyering@redhat.com>
18289
18290 * lread.c [lint]: Don't include <sys/inode.h>.
18291
182922008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18293
18294 * xselect.c (x_handle_dnd_message):
18295 * xmenu.c (digest_single_submenu, xmenu_show):
18296 * xdisp.c (with_echo_area_buffer_unwind_data)
18297 (format_mode_line_unwind_data, unwind_format_mode_line)
18298 (display_menu_bar):
18299 * eval.c (Ffetch_bytecode):
18300 * doc.c (store_function_docstring):
18301 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18302 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18303 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18304
183052008-02-07 Kenichi Handa <handa@m17n.org>
18306
18307 * ftxfont.c (ftxfont_open): Don't set
18308 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18309
18310 * ftfont.c (ftfont_open): Fix previous change.
18311
183122008-02-06 Jason Rumney <jasonr@gnu.org>
18313
18314 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18315 Use cached metrics for ASCII characters.
18316 (w32font_open_internal): Don't set font's owning_frame.
18317 Cache metrics for ASCII characters.
18318
18319 * w32font.h (struct w32font_info): Add ascii_metrics.
18320 Remove owning_frame.
18321
183222008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18323
18324 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18325 to negative value.
18326
18327 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18328
18329 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18330
18331 * charset.c (syms_of_charset): Set QCtest and Qeq.
18332
183332008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18334
18335 * process.c (Fstart_process):
18336 * callproc.c (Fcall_process): Handle the case where
18337 Funhandled_file_name_directory returns nil.
18338
18339 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18340 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18341 * font.c (check_gstring): Use them and AREF to access the vector before
18342 we know it's really a gstring.
18343 (Ffont_shape_text): Fix typo.
46e722a9 18344 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18345
18346 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18347 Declare.
18348
18349 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18350
183512008-02-05 Jason Rumney <jasonr@gnu.org>
18352
18353 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18354 Set smallest_font_height and smallest_char_width in display info.
18355
183562008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18357
18358 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18359
183602008-02-05 Miles Bader <miles@gnu.org>
18361
18362 * xfaces.c (get_lface_attributes, merge_named_face)
18363 (lookup_named_face, lookup_derived_face, realize_named_face):
18364 Revert 2008-02-01 change by cyd@stupidchicken.com.
18365
183662008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18367
18368 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18369 fallback fonts.
18370 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18371
183722008-02-04 Jason Rumney <jasonr@gnu.org>
18373
18374 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18375 set full_name.
18376 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18377
183782008-02-03 Jason Rumney <jasonr@gnu.org>
18379
18380 * makefile.w32-in (OBJ1): Include font.o here.
18381 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18382
183832008-02-02 Jason Rumney <jasonr@gnu.org>
18384
18385 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18386
183872008-02-01 Jason Rumney <jasonr@gnu.org>
18388
18389 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18390
18391 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18392
183932008-02-01 Andreas Schwab <schwab@suse.de>
18394
18395 * Makefile.in (shortlisp, lisp): Update for rename of
18396 ../lisp/language/myanmar.el.
18397
183982008-02-01 Chong Yidong <cyd@stupidchicken.com>
18399
18400 * xfaces.c (get_lface_attributes): Delete function.
18401 (merge_named_face, lookup_named_face, lookup_derived_face)
18402 (realize_named_face): Call lface_from_face_name directly, and use
18403 the fact that merge_face_vectors does not alter its FROM argument.
18404
184052008-02-01 Jason Rumney <jasonr@gnu.org>
18406
18407 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18408 input in the default locale. Handle non-Unicode multibyte input.
18409
184102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18411
18412 * fontset.c (reorder_font_vector): Exclude nil elements from the
18413 font group. Don't try multiple fonts.
18414 (fontset_font): Adjust for the above change.
18415 (Finternal_char_font): Return nil if the found font doesn't
18416 contain the character ch.
18417
18418 * Makefile.in (lisp, shortlisp): Add cham.el.
18419
184202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18421
18422 * font.h (FONTP): Make it return 1 also for a font-object.
18423
18424 * .gdbinit (xfontset): New function.
18425
18426 * font.c (font_find_for_lface): Check if the character C is
18427 supported or not only for the first font.
18428
18429 * fontset.c (reorder_font_vector): Fix typo.
18430 (fontset_find_font): Don't add a font-spec specifying a script.
18431 Use 0 (not Qt) for the indication of empty font-group. Change the
18432 format of RFONT-DEF. Return Qt if no font in the font-group
18433 support the character.
18434 (fontset_font): Adjust for the above change. If no font was
18435 found the character, remember that.
18436 (face_for_char): Adjust for the change of RFONT-DEF.
18437 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18438 no font for the target.
18439 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18440
184412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18442
18443 * font.c (font_load_for_face): Handle the case that the font in
18444 face->lface is a string.
18445
184462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18447
18448 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18449
184502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18451
18452 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18453 Fix previous change. If the frame is not on a window system,
18454 signal an error.
18455
184562008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18457
18458 * coding.c (decode_coding_object, encode_coding_object): Adjust
18459 marker positions after conversion.
18460
18461 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18462
184632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18464
18465 * font.c (font_find_for_lface): Fix the handling of the return
18466 value of font_has_char.
18467 (Ffont_shape_text): Fix previous change.
18468
18469 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18470 (fontset_ref_and_range): Delete it.
18471 (fontset_find_font): Call char_table_ref_and_range instead of
18472 FONTSET_REF_AND_RANGE.
18473 (make_fontset): Don't setup font groups of Latin here.
18474 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18475 (new_fontset_from_font): Make the specified font the default for
18476 all Latin characters.
18477
184782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18479
18480 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18481 is on a window system before accessing the fontset of the frame.
18482
184832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18484
18485 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18486
18487 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18488 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18489
18490 * font.c (Ffont_shape_text): If the font driver doesn't have a
18491 shaper function, make zero-width glyphs to have at least one-pixel
18492 width. Fix setting of `to' field of glyphs.
18493
184942008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18495
18496 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18497 glyphs.
18498
18499 * font.h (struct font_driver): Improve docstring of member `shape'.
18500
185012008-02-01 Kenichi Handa <handa@m17n.org>
18502
18503 * composite.c (syms_of_composite): Fix docstring of
18504 auto-composition-function.
18505
18506 * font.h (LGLYPH_SIZE): New macro.
18507
18508 * font.c (Ffont_fill_gstring): Stop filling when a character not
18509 supported by the font is found.
18510 (Ffont_shape_text): When a shape callback function returns nil,
18511 try at most two more times with larger gstring.
18512 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18513
18514 * xdisp.c (handle_auto_composed_prop): Change the argument to
18515 auto-composition-function.
18516
18517 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18518 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18519 Lispy glyph and store it in the lgstring.
18520
18521 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18522
18523 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18524
185252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18526
18527 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18528
18529 * fontset.c (Vfont_encoding_charset_alist): New variable.
18530 (syms_of_fontset): DEFVAR it.
18531 (reorder_font_vector, fontset_find_font): Optimize for the case of
18532 no need of reordering.
18533 (face_for_char): Map the charset property by
18534 Vfont_encoding_charset_alist.
18535
185362008-02-01 Jason Rumney <jasonr@gnu.org>
18537
18538 * w32font.c (logfonts_match): Don't check adstyle here.
18539 (font_matches_spec): Check here against physical font instead.
18540 (add_font_entity_to_list): Avoid some substitutions.
18541
18542 * font.c (font_parse_fcname): Default weight and slant to normal.
18543 (font_score): Prefer normal fonts if weight or slant unspecified.
18544 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18545 match freetype scores.
18546
185472008-02-01 Jason Rumney <jasonr@gnu.org>
18548
18549 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18550 font, as it may have been deleted.
18551 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18552 most common hyphenless variation.
18553 (logfonts_match): Check generic family.
18554 (font_matches_spec): Don't check generic family here.
18555 (fill_in_logfont): Set generic family based on adstyle.
18556
18557 * w32font.h (w32font_get_cache): Update declaration.
18558
185592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18560
18561 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18562
18563 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18564 If none of the new drivers are available, call font_update_drivers
18565 with the old drivers.
18566
18567 * w32font.c (w32font_get_cache): Adjust the argument type.
18568
18569 * xfont.c (xfont_get_cache): Adjust the argument type.
18570
18571 * font.h (struct font_driver): Change argument type of get_cache.
18572
18573 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18574
18575 * font.c (Ffont_get): Fix arguments to Fassoc.
18576 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18577 (font_clear_cache): New function.
18578 (font_list_entities, font_matching_entity): Use font_get_cache.
18579 (font_update_drivers): Call font_clear_cache when finishing a driver.
18580
18581 * fontset.c (fontset_find_font): Fix previous change.
18582
185832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18584
18585 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18586 dpyinfo->font_table.
18587 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18588 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18589
18590 * font.c (font_at): Handle the case that the arg C is negative.
18591 Handle the unibyte case.
18592 (Ffont_at): Call font_at with the arg C -1.
18593
18594 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18595 the position here, and call font_at with the arg C -1.
18596 Don't check the range of the existing composition at the point.
18597
185982008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18599
18600 * fontset.c (fontset_add): New args charset_id and family.
18601 Change caller.
18602 (load_font_get_repertory, fontset_find_font): Assume that
18603 font_spec is always a font-spec object.
18604 (Fset_fontset_font): Always store a font-spec object in a fontset.
18605
18606 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18607 instead of get_property_and_range.
18608
186092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18610
18611 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18612 (xftfont_open): Don't keep locking face.
18613 (xftfont_close): Don't unlock face.
18614 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18615
18616 * fontset.c (fontset_find_font): Don't prefer a font of
18617 supplementary charset.
18618
186192008-02-01 Kenichi Handa <handa@m17n.org>
18620
18621 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18622 script, langsys_tag to langsys, new member script.
18623 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18624 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18625 listing to the script specified in that property. Fix arg to
18626 OTF_check_features.
18627
186282008-02-01 Jason Rumney <jasonr@gnu.org>
18629
18630 * w32font.h: New file.
18631
18632 * w32font.c: Include it.
18633 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18634 (w32font_open): Set owning_frame.
18635 (w32font_text_extents): Use owning_frame.
18636 (struct font_callback_data): Add opentype_only field.
18637 (add_font_entity_to_list): Use it to filter fonts.
18638 Don't check against full name.
18639 (w32font_list_internal): New function.
18640 (w32font_list): Use it.
18641 (w32font_match_internal): New function.
18642 (w32font_match): Use it.
18643 (w32font_open_internal): New function.
18644 (w32font_open): Use it.
18645 (w32font_get_cache, w32font_close, w32font_has_char)
18646 (w32font_encode_char, w32font_text_extents, w32font_draw):
18647 Make non-static.
18648
18649 * makefile.w32-in (w32font.o): Depend on w32font.h.
18650
186512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18652
18653 * charset.c (Fdefine_charset_internal): Record a supplementary
18654 charset at the tail of Vcharset_order_list.
18655
18656 * font.c (Ffont_shape_text): Fix the return value.
18657
18658 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18659
18660 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18661
186622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18663
18664 * ftfont.c (struct OpenTypeSpec): New struct.
18665 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18666 (ftfont_get_open_type_spec): New function.
18667 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18668
18669 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18670
186712008-02-01 Jason Rumney <jasonr@gnu.org>
18672
18673 * w32font.c (add_font_entity_to_list): Compare only the beginning
18674 of full name.
18675
186762008-02-01 Kenichi Handa <handa@m17n.org>
18677
18678 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18679 Never return HANDLED_RECOMPUTE_PROPS.
18680
186812008-02-01 Kenichi Handa <handa@m17n.org>
18682
18683 * font.c (font_gstring_produce): Delete it.
18684
18685 * composite.h (COMPOSITION_METHOD):
18686 Handle COMPOSITION_WITH_GLYPH_STRING.
18687
186882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18689
18690 * xfont.c (Qx): Delete.
18691 (syms_of_xfont): Don't initialize Qx.
18692
18693 * composite.h (enum composition_method):
18694 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18695
186962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18697
18698 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18699 (choose_face_font): Accept new form of font-spec.
18700
18701 * frame.h (font_driver_list): Declare it unconditionally.
18702 (struct frame): Define members font_driver_list and font_data_list
18703 unconditionally.
18704
18705 * fontset.c: Include "font.h" unconditionally.
18706 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18707 (Fset_fontset_font): Accept a font-spec object.
18708
18709 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18710 PIXEL_SIZE part a wild card.
18711
18712 * dispextern.h (struct glyph_string): Define members clip and
18713 num_clips unconditionally.
18714 (struct face): Define members font_info and extra unconditionally.
18715
18716 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18717 ftfont_info only when HAVE_LIBOTF is defined.
18718
187192008-02-01 Andreas Schwab <schwab@suse.de>
18720
18721 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18722 and end.
18723
187242008-02-01 Jason Rumney <jasonr@gnu.org>
18725
18726 * w32font.c (w32font_driver): Add new fields.
18727
187282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18729
18730 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18731 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18732 (LIBES): Add @M17N_FLT_CFLAGS@.
18733
18734 * composite.c (compose_text): Don't treat the new style
18735 composition specially.
18736
18737 * emacs.c (main): Call syms_of_font unconditionally.
18738
18739 * font.h (FONT_ENTITY_NOT_LOADABLE)
18740 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18741 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18742 (struct font_driver): New member shape.
18743 (font_registry_charsets): Extern it.
18744 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18745 (font_otf_capability, font_drive_otf): Delete their externs.
18746
18747 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18748 (font_charset_alist, font_registry_charsets): Move from xfont.c
18749 and rename.
18750 (font_prop_validate_otf): New function.
18751 (font_property_table): Register it for QCotf.
18752 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18753 (font_drive_otf): Delete.
18754 (font_prepare_composition): New arg F. Adjust for the change of
18755 lispy gstring.
18756 (font_find_for_lface): New arg C.
18757 (font_load_for_face): Adjust for the change of font_find_for_lface.
18758 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18759 lispy gstring.
18760 (Ffont_shape_text): New function.
18761 (Fopen_font): If the font size is not given, use 12-pixel.
18762 (Ffont_at): New arg STRING.
18763 (syms_of_font): Initalize font_charset_alist.
18764 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18765 conditionally.
18766
18767 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18768 fonts of the same font-spec. Change the format of RFONT-DEF.
18769 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18770 Adjust for the change of RFONT-DEF.
18771 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18772
18773 * ftfont.h: New file.
18774
18775 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18776 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18777 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18778 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18779 font_otf_capability and font_drive_otf, set ftfont_shape.
18780 (ftfont_list): Adjust for the change of :otf property value.
18781 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18782 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18783 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18784 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18785 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18786 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18787
18788 * w32term.c (x_draw_composite_glyph_string_foreground):
18789 Adjust for the change of lispy gstring.
18790
18791 * xdisp.c (handle_composition_prop): Adjust for the change of
18792 lispy gstring. Call a function for auto-composition with the
18793 third arg it->window.
18794 (fill_composite_glyph_string): Adjust for the change of lispy string.
18795 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18796
18797 * xfaces.c (set_font_frame_param): Adjust for the change of
18798 font_find_for_lface.
18799
18800 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18801 (xfont_registry_charsets): Likewise. Change caller.
18802 (syms_of_xfont): Don't handle x_font_charset_alist.
18803
18804 * xftfont.c: Include "ftfont.h".
18805 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18806 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18807 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18808 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18809 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18810 Set xftfont_driver.shape to xftfont_shape.
18811
18812 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18813 the change of lispy gstring.
18814
188152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18816
18817 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18818
188192008-02-01 Jason Rumney <jasonr@gnu.org>
18820
18821 * w32font.c (w32font_draw): Fill background manually.
18822
188232008-02-01 Jason Rumney <jasonr@gnu.org>
18824
18825 * font.c (Qfontp): Remove unused symbol.
18826 (QCantialias): New symbol.
18827 (syms_of_font): Define it.
18828 (font_property_table): Set a validator for QCantialias.
18829
18830 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18831 Define if not already.
18832 (QCfamily): Share with xfaces.c.
18833 (Qstandard, Qsubpixel, Qnatural): New symbols.
18834 (syms_of_w32font): Define them. Don't define QCfamily here.
18835 (w32_antialias_type, lispy_antialias_type): New functions.
18836 (w32_enumfont_pattern_entity): New arg requested_font.
18837 Set antialias parameter if non-default was requested.
18838 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18839
188402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18841
18842 * lread.c (read1): Undo the previous change.
18843
188442008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18845
18846 * frame.c (Fdelete_frame): Call font_update_drivers only when
18847 USE_FONT_BACKEND is defined.
18848
188492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18850
18851 * font.h (struct font_bitmap): New member bits_per_pixel.
18852 (struct font_driver): New members start_for_frame and end_for_frame.
18853 (struct font_data_list): New struct.
18854 (font_put_frame_data, font_get_frame_data): Extern them.
18855
18856 * frame.h (struct frame): New member font_data_list.
18857
18858 * font.c (font_update_drivers): Call driver->start_for_frame and
18859 driver->end_for_frame at proper timings.
18860 (font_put_frame_data, font_get_frame_data): New functions.
18861 (Ffont_spec): Add usage in the docstring.
18862
18863 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18864 (Fdelete_frame): Call font_update_drivers.
18865
18866 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18867 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18868 (xftfont_get_xft_draw): New function.
18869 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18870 (xftfont_end_for_frame): New function.
18871 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18872
18873 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18874 Change argument. Cache GCs in the per-frame data.
18875 (struct ftxfont_frame_data): New struct.
18876 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18877 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18878 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18879 (ftxfont_end_for_frame): New function.
18880 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18881
18882 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18883
188842008-02-01 Kenichi Handa <handa@m17n.org>
18885
18886 * xselect.c (Vselection_coding_system)
18887 (Vnext_selection_coding_system): Delete them.
18888 (syms_of_xselect): Don't declare selection-coding-system and
18889 next-selection-coding-system. They are declared in select.el.
18890
188912008-02-01 Jason Rumney <jasonr@gnu.org>
18892
18893 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18894
18895 * w32fns.c: Include imm.h.
18896 (get_composition_string_fn, get_ime_context_fn): New optional
18897 system functions.
18898 (globals_of_w32fns): Load them from imm32.dll.
18899 (ignore_ime_char): New flag.
18900 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18901 WM_IME_ENDCOMPOSITION messages.
18902
18903 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18904 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18905
189062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18907
18908 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18909 (READCHAR_REPORT_MULTIBYTE): New macro.
18910 (readchar): New 2nd arg MULTIBYTE.
18911 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18912 Make symbol's name multibyte according to the multibyteness of the
18913 source.
18914
189152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18916
18917 * xfaces.c (face_for_overlay_string): Call lookup_face with
18918 correct arguments (fix of synching with the trunk).
18919
189202008-02-01 Kenichi Handa <handa@m17n.org>
18921
18922 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18923 (font_prop_validate_non_neg, font_prop_validate_spacing):
18924 Delete argument prop_index.
18925 (font_property_table): Change arguments to validater. Change Callers.
18926 (font_lispy_object): Delete.
18927 (font_at): Use font_find_object instead fo font_lispy_object.
18928
189292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18930
18931 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18932 and file names.
18933
189342008-02-01 Jason Rumney <jasonr@gnu.org>
18935
18936 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18937 (font_matches_spec): Remove debug output.
18938 (add_font_entity_to_list): Avoid using substituted fonts.
18939
189402008-02-01 Jason Rumney <jasonr@gnu.org>
18941
18942 * doc.c (Fsnarf_documentation):
18943 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18944
189452008-02-01 Miles Bader <miles@gnu.org>
18946
18947 * dispextern.h (struct glyph_row): Only define "clip" field if
18948 HAVE_WINDOW_SYSTEM is defined.
18949
189502008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18951
18952 Fix up multi-tty merge.
18953
18954 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18955 and indentation.
18956
18957 * xfaces.c (free_realized_face, clear_face_gcs):
18958 Include font_done_for_face in the input_blocked section, just in case.
18959
18960 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18961 (get_char_face_and_encoding): Undo last change and remove the *other*
18962 duplicate definition (i.e. keep the one that's better scoped and that
18963 includes code for the font-backend).
18964
18965 * terminal.c (create_terminal): Default keyboard_coding to
18966 `no-conversion' and terminal_coding to `undecided'.
18967
18968 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18969
18970 * fontset.c (free_realized_fontsets): Check that the table entry does
18971 contain a fontset before trying to compare it to `base'.
18972
18973 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18974 syms_of_charset, and syms_of_coding earlier because init_window_once
18975 now needs Vcoding_system_hash_table to be setup.
18976
18977 * coding.h (default_buffer_file_coding): Remove.
18978
18979 * coding.c (default_buffer_file_coding): Remove.
18980 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
18981 than ->symbol, and use the terminal-local coding system.
18982 (syms_of_coding): Don't setup the coding-systems that are not
18983 terminal-local.
18984 (Fdefine_coding_system_internal): Use XCAR/XCDR.
18985
18986 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
18987 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
18988
18989 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
18990 in chartab.c and were re-added here by mistake.
18991 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
18992
18993 * doc.c (Fsnarf_documentation):
18994 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
18995 src to etc.
18996
18997 * ChangeLog.10: Add mistakenly removed entry.
18998
189992008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19000
19001 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19002
190032008-02-01 Miles Bader <miles@gnu.org>
19004
19005 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19006 Add extra args to FACE_FOR_CHAR.
19007
190082008-02-01 Kenichi Handa <handa@m17n.org>
19009
19010 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19011 in sequence.
19012
19013 * chartab.c (map_sub_char_table, map_char_table): If the range
19014 contains just one character, call the function with that character
19015 even if the depth is not 3.
19016
190172008-02-01 Jason Rumney <jasonr@gnu.org>
19018
19019 * w32font.c (w32font_text_extents): Calculate metrics for the
19020 whole string.
19021
190222008-02-01 Jason Rumney <jasonr@gnu.org>
19023
19024 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19025
190262008-02-01 Jason Rumney <jasonr@gnu.org>
19027
19028 * w32term.c (x_set_glyph_string_clipping): Use
19029 get_glyph_string_clip_rects.
19030 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19031 Adjust for the change of struct glyph_string.
19032
19033 * w32font.c (w32font_draw): Do clipping here.
19034
190352008-02-01 Kenichi Handa <handa@m17n.org>
19036
19037 * xftfont.c (xftfont_draw): Adjust for the change of struct
19038 glyph_string.
19039
19040 * xterm.c (x_set_glyph_string_clipping): Use
19041 get_glyph_string_clip_rects.
19042 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19043 Adjust for the change of struct glyph_string.
19044
19045 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19046 the resulting clip(s}.
19047 (expose_overlaps): Add arg r. Change callers. Set it to
19048 row->clip temporarily.
19049 (expose_window): Redraw rows overlapping the exposed area.
19050
19051 * dispextern.h (struct glyph_row): New member clip.
19052 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19053 clip_height, new member clip, and num_clips.
19054
190552008-02-01 Kenichi Handa <handa@m17n.org>
19056
19057 * data.c (Fchar_or_string_p): Fix docstring.
19058
190592008-02-01 Kenichi Handa <handa@m17n.org>
19060
19061 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19062 create a temporary XftDraw object.
19063
190642008-02-01 Kenichi Handa <handa@m17n.org>
19065
19066 * font.c (Ffontp): Fix docstring.
19067
19068 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19069 strong evidence of ISO-2022.
19070
190712008-02-01 Kenichi Handa <handa@m17n.org>
19072
19073 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19074 SYNTAX_ENTRY_FOLLOW_PARENT.
19075
190762008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19077
19078 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19079 its type.
19080 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19081 Update to the new type of weak_hash_tables and next_weak.
19082
19083 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19084 a plain C pointer to Lisp_Hash_Table.
19085
19086 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19087 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19088 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19089 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19090 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19091 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19092 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19093 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19094 (GC_EQ): Remove since they've been identical to their non-GC_
19095 alter-egos ever since the markbit was eradicated.
19096
19097 * alloc.c:
19098 * buffer.c:
19099 * buffer.h:
19100 * data.c:
19101 * fileio.c:
19102 * filelock.c:
19103 * fns.c:
19104 * frame.h:
19105 * lisp.h:
19106 * macterm.c:
19107 * print.c:
19108 * process.c:
19109 * w32fns.c:
19110 * w32menu.c:
19111 * w32term.c:
19112 * xfns.c:
19113 * xmenu.c:
19114 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19115
191162008-02-01 Kenichi Handa <handa@m17n.org>
19117
19118 * chartab.c (map_sub_char_table): Make it work for the top-level
19119 char-table. Fix handling of parent char-table.
19120 (map_char_table): Adjust for the above change.
19121
191222008-02-01 Jason Rumney <jasonr@gnu.org>
19123
19124 * w32font.c (Qgdi): Rename from Qw32.
19125
191262008-02-01 Jason Rumney <jasonr@gnu.org>
19127
19128 * w32bdf.c (get_quoted_string): Make function static.
19129
191302008-02-01 Kenichi Handa <handa@m17n.org>
19131
19132 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19133 bigger ascent and descent than those of the font, use them as
19134 font's ascent and descent.
19135
191362008-02-01 Kenichi Handa <handa@m17n.org>
19137
19138 * Makefile.in (${lispsource}international/charprop.el): Move this
19139 target within "#ifdef HAVE_UNIDATA" and "#endif".
19140
191412008-02-01 Kenichi Handa <handa@m17n.org>
19142
19143 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19144 (shortlisp): Add ../lisp/language/tai-viet.el.
19145
191462008-02-01 Ulrich Mueller <ulm@gentoo.org>
19147
19148 * Makefile.in (${lispsource}international/charprop.el): Depend on
19149 temacs${EXEEXT}.
19150
191512008-02-01 Jason Rumney <jasonr@gnu.org>
19152
19153 * w32font.c (w32font_close): Delete the GDI font object.
19154
19155 * w32menu.c: Include character.h.
19156
19157 * w32proc.c: Likewise.
19158
19159 * w32select.c: Likewise.
19160
19161 * makefile.w32-in (w32proc.o): Depend on character.h.
19162
191632008-02-01 Jason Rumney <jasonr@gnu.org>
19164
19165 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19166
19167 * w32menu.c (syms_of_w32menu): Likewise.
19168
19169 * w32proc.c (syms_of_ntproc): Likewise.
19170
19171 * w32select.c (syms_of_w32select): Likewise.
19172
19173 * w32term.c (syms_of_w32term): Likewise.
19174
191752008-02-01 Jason Rumney <jasonr@gnu.org>
19176
19177 * w32font.c (w32font_draw): Delete brush after using it.
19178
191792008-02-01 Jason Rumney <jasonr@gnu.org>
19180
19181 * w32font.c (w32font_open): Don't set font_idx.
19182 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19183 to font settings.
19184 (w32font_draw): Fill background explicitly.
19185
191862008-02-01 Jason Rumney <jasonr@gnu.org>
19187
19188 * w32term.c (w32_initialize): Don't call w32font_initialize.
19189
19190 * w32font.c (w32font_info): Remove subranges.
19191 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19192 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19193 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19194 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19195 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19196 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19197 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19198 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19199 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19200 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19201 New symbols.
19202 (font_callback_data): New struct.
19203 (w32font_list, w32font_match): Use it.
19204 (w32font_open): Don't populate subranges.
19205 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19206 (w32font_encode_char): Always return unicode code-point as-is.
19207 (w32font_text_extents): Supply a transformation matrix to
19208 GetGlyphOutline. Never look up by glyph index. Avoid looping
19209 twice. Use unicode version of GetTexExtentPoint32 instead of
19210 glyph index version.
19211 (set_fonts_frame): Remove.
19212 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19213 set frame parameter. Use backward compatible fake foundries.
19214 Save generic family in extra slot under QCfamily. Make width slot
19215 constant. Save QCspacing value. Save list of scripts instead of
19216 binary subranges.
19217 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19218 (add_font_entity_to_list): Use font_callback_data struct. Filter
19219 unwanted fonts.
19220 (add_one_font_entity_to_list): Use font_callback_data struct.
19221 (w32_registry): Default to iso10646_1.
19222 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19223 string font registries. Don't fill in font name if it is a generic
19224 family name, fill family instead. Use spacing, family and script
19225 extra info to fill pitch, family and charset fields.
19226 (list_all_matching_fonts): Use font_callback_data struct.
19227 (unicode_range_for_char): Remove.
19228 (font_supported_scripts): New function.
19229 (w32font_initialize): Remove.
19230 (syms_of_w32font): Update which symbols are defined.
19231
192322008-02-01 Jason Rumney <jasonr@gnu.org>
19233
19234 * font.c (font_pixel_size): Reverse assq_no_quit args.
19235
19236 * w32term.h (FONT_WIDTH): Report max width, not average.
19237 (FONT_MAX_WIDTH): Remove.
19238 (FONT_AVG_WIDTH): New macro.
19239
19240 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19241 redefinition of FONT_WIDTH.
19242
19243 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19244 (w32_cache_char_metrics): Use FONT_WIDTH.
19245
19246 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19247
192482008-02-01 Jason Rumney <jasonr@gnu.org>
19249
19250 * w32font.c (w32font_open): Make lfHeight negative.
19251
19252 * w32fns.c (x_default_font_parameter): Use new style font name.
19253 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19254
192552008-02-01 Jason Rumney <jasonr@gnu.org>
19256
19257 * w32font.c (QCsubranges): New symbol.
19258 (w32font_open, w32font_has_char): Get subranges from subproperty
19259 of extra.
19260 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19261 (syms_of_w32font): Define :subranges symbol.
19262
19263 * font.c (font_put_extra): Expose externally.
19264
19265 * font.h (font_put_extra): Move declaration from font.c.
19266
19267 * font.c (Ffont_get): Use font driver to determine otf capability.
19268 (adjust_anchor): Check if driver defines anchor_point before using.
19269
19270 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19271 (w32font_draw): Use options.
19272 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19273 Fix detection of truetype fonts.
19274 (registry_to_w32_charset): Handle charsets other than iso8859-1
19275 expressed as lisp symbols.
19276 (w32_registry): Express charset as lisp symbol.
19277 (fill_in_logfont): Reverse pixel and point height logic.
19278 Don't set width here. Set quality to default.
19279
19280 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19281 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19282
19283 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19284 Remove redundant loop and allocation.
19285
19286 * makefile.w32-in (font.o, w32font.o): New objects.
19287 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19288 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19289
19290 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19291 STORE_XCHARB a valid l-value.
19292
19293 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19294 calculations for non-Truetype fonts.
19295 (x_draw_glyph_string): Sync with xterm.c.
19296 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19297 Remove redundant code.
19298 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19299
19300 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19301 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19302
19303 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19304 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19305
19306 * w32font.c: New file for w32 font backend.
19307
193082008-02-01 Kenichi Handa <handa@m17n.org>
19309
19310 * term.c: Don't include "buffer.h" twice.
19311
193122008-02-01 Kenichi Handa <handa@m17n.org>
19313
19314 * character.c (Funibyte_string): New function.
19315 (syms_of_character): Defsubr it.
19316
193172008-02-01 Jason Rumney <jasonr@gnu.org>
19318
19319 * w32term.c [USE_FONT_BACKEND]:
19320 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19321 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19322 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19323 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19324 (x_free_frame_resources): Sync with xterm.c.
19325
193262008-02-01 Andreas Schwab <schwab@suse.de>
19327
19328 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19329 char-table size.
19330
193312008-02-01 Kenichi Handa <handa@m17n.org>
19332
19333 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19334
193352008-02-01 Kenichi Handa <handa@m17n.org>
19336
19337 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19338 font_otf_gpos, add font_drive_otf.
19339
19340 * fontset.c (fontset_find_font): Pay attention to font size
19341 specified for a font.
19342 (reorder_font_vector): Check contents of font_def.
19343
19344 * font.c (struct otf_list): Delete it.
19345 (otf_list): Make it a lisp variable.
19346 (otf_open): Use lispy otf_list.
19347 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19348 (check_otf_features): New function.
19349 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19350 New functions.
19351 (font_drive_otf): New function merging font_otf_gsub and
19352 font_otf_gpos.
19353 (font_open_for_lface): New arg spec. Change argument order.
19354 (font_load_for_face): Adjust for the change of font_open_for_lface.
19355 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19356 Ffont_otf_gpos.
19357 (syms_of_font): Staticpro otf_list. Delete defsubr of
19358 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19359
19360 * xfaces.c (set_font_frame_param): Adjust for the change of
19361 font_open_for_lface.
19362
19363 * font.h (font_open_for_lface): Adjust prototype.
19364 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19365 member otf_drive.
19366 (font_otf_gsub, font_otf_gpos): Delete externs.
19367 (font_drive_otf): Extern it.
19368
193692008-02-01 Kenichi Handa <handa@m17n.org>
19370
19371 * font.c (font_at): If the window W is not on a window system,
19372 return Qnil.
19373
19374 * coding.c (produce_chars, encode_coding): Don't call
19375 insert_from_gap if no characters to produce.
19376
193772008-02-01 Kenichi Handa <handa@m17n.org>
19378
19379 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19380 Fclear_face_cache.
19381
19382 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19383
193842008-02-01 Miles Bader <miles@gnu.org>
19385
19386 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19387 Parse "--disable-font-backend" option.
19388 (standard_args): Add "--disable-font-backend" option.
19389
193902008-02-01 Kenichi Handa <handa@m17n.org>
19391
19392 * fontset.c (fontset_find_font): New function.
19393 (fontset_font): Use fontset_find_font.
19394 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19395 Register the specified font for all Latin characters.
19396 (new_fontset_from_font): Register the specified font for all Latin
19397 characters.
19398 (dump_fontset): For a realized fontset, include the base fontset
19399 name in the returned vector.
19400
194012008-02-01 Kenichi Handa <handa@m17n.org>
19402
19403 * character.h (CHAR_STRING): Cast C to unsigned on calling
19404 char_string.
19405
19406 * character.c (char_string): Type of arg C changed to unsigned.
19407 Signal an error if C is an invalid character code.
19408
19409 * editfns.c (general_insert_function, Fchar_to_string):
19410 Use CHARACTERP, not INTEGERP.
19411
194122008-02-01 Kenichi Handa <handa@m17n.org>
19413
19414 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19415 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19416
19417 * regex.c (analyse_first): Fix for multibyte characters in "case
19418 charset:" and "case categoryspec:".
19419
194202008-02-01 Andreas Schwab <schwab@suse.de>
19421
19422 * Makefile.in (LIBES): Move standard libraries to the end.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19427 nonzero, don't shrink the buffer nextb.
19428
19429 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19430
19431 * coding.c (coding_alloc_by_making_gap): New arg offset.
19432 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19433 offset.
19434 (decode_coding_iso_2022): Update coding->safe_charsets.
19435 (decode_coding_gap): Temporarily set
19436 current_buffer->text->inhibit_shrinking to 1.
19437
194382008-02-01 Kenichi Handa <handa@m17n.org>
19439
19440 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19441 indexing into elements of s->cmp and s->char2b.
19442
194432008-02-01 Juanma Barranquero <lekktu@gmail.com>
19444
19445 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19446
194472008-02-01 Kenichi Handa <handa@m17n.org>
19448
19449 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19450 target_multibyte instead of multibyte.
19451 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19452 (bcmp_translate): Change the argument name from multibyte to
19453 target_multibyte.
19454
194552008-02-01 Kenichi Handa <handa@m17n.org>
19456
19457 These changes are to compile a regexp into a pattern that can be
19458 used both for multibyte and unibyte targets.
19459
19460 * Makefile.in (search.o): Depend on charset.h.
19461
19462 * character.c (multibyte_char_to_unibyte_safe): New function.
19463
19464 * search.c: Include "charset.h".
19465 (compile_pattern_1): Delete argument multibyte. Don't set
19466 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19467 (compile_pattern): Don't compare cp->buf.target_multibyte.
19468 Compare cp->buf.charset_unibyte.
19469 (compile_pattern): Set cp->buf.target_multibyte.
19470
19471 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19472
19473 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19474
19475 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19476 multibyte. Change callers.
19477 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19478 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19479 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19480 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19481 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19482 (regex_compile): Make the compiled pattern usable both for
19483 multibyte and unibyte targets.
19484 (analyse_first): Make the fastmap usable both for multibyte and
19485 unibyte targets.
19486 (TRANSLATE_VIA_MULTIBYTE): Delete.
19487 (re_match_2_internal): Pay attention to the case that the
19488 multibyteness of bufp and target may be different.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19493 empty box occupy at least one column width.
19494
194952008-02-01 Miles Bader <miles@gnu.org>
19496
19497 * Makefile.in: Remove redundant HAVE_XFT clause.
19498
194992008-02-01 Kenichi Handa <handa@m17n.org>
19500
19501 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19506 being nil.
19507
195082008-02-01 Kenichi Handa <handa@m17n.org>
19509
19510 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19511
195122008-02-01 Kenichi Handa <handa@m17n.org>
19513
19514 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19515
195162008-02-01 Kenichi Handa <handa@m17n.org>
19517
19518 * search.c (simple_search): Fix previous change.
19519
195202008-02-01 Kenichi Handa <handa@m17n.org>
19521
19522 * xftfont.c (ftfont_font_format): Extern declaration.
19523
19524 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19525
19526 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19527 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19528
19529 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19530 (ftfont_font_format): Fix previous change.
19531
19532 * font.h (Ffont_xlfd_name): EXFUN it.
19533
19534 * font.c (font_parse_xlfd): Fix the array size of `f'.
19535 (register_font_driver): Use EQ to compare driver->type.
19536
19537 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19538 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19539 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19540
195412008-02-01 Kenichi Handa <handa@m17n.org>
19542
19543 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19544 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19545
195462008-02-01 Kenichi Handa <handa@m17n.org>
19547
19548 * xfont.c (xfont_open): Set font->format.
19549
19550 * xftfont.c (xftfont_open): Set font->format.
19551
19552 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19553 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19554 (ftfont_open): Set font->format.
19555 (ftfont_font_format): New function.
19556
19557 * font.h (struct font): New member format.
19558
19559 * font.c (Qopentype): New variable.
19560 (syms_of_font): Defsym it.
19561 (Fquery_font): Change the format of the last element of the return
19562 value.
19563
195642008-02-01 Kenichi Handa <handa@m17n.org>
19565
19566 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19567 last resort.
19568
195692008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * coding.c (detect_coding_charset): Fix detection of multi-byte
19572 charset.
19573
195742008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19575
19576 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19577
195782008-02-01 Kenichi Handa <handa@m17n.org>
19579
19580 * xdisp.c (get_next_display_element): Set it->face_id for the
19581 first component of a composition.
19582 (x_produce_glyphs): Check if the font is changed or not for composition.
19583
195842008-02-01 Kenichi Handa <handa@m17n.org>
19585
19586 * fontset.c (Qlatin): New variable.
19587 (syms_of_fontset): Define it as a lisp symbol.
19588 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19589
195902008-02-01 Kenichi Handa <handa@m17n.org>
19591
19592 * font.c (font_unparse_fcname): Pay attention to the case that
19593 some of font property is a null string.
19594
195952008-02-01 Kenichi Handa <handa@m17n.org>
19596
19597 * term.c: Include "composite.h".
19598 (encode_terminal_code): Output all components of composition.
19599 Check the size of encode_terminal_src.
19600 (produce_glyphs): For composition, call produce_composite_glyph.
19601 (append_composite_glyph, produce_composite_glyph): New functions.
19602
19603 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19604 is not found, get font_info from the current ascii face.
19605
196062008-02-01 Kenichi Handa <handa@m17n.org>
19607
19608 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19609 buffer-file-name to Qnil before calling insert_from_buffer.
19610
19611 * font.c (font_unparse_fcname): Pay attention to the case that
19612 foundry is a null string.
19613
196142008-02-01 Kenichi Handa <handa@m17n.org>
19615
19616 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19617
19618 * font.c (Qunicode_sip): New variable.
19619 (syms_of_font): Declare it as a Lisp symbol.
19620
19621 * font.h (Qunicode_sip): Extern it.
19622
196232008-02-01 Kenichi Handa <handa@m17n.org>
19624
19625 * composite.c (get_composition_id): Pay attention to TAB component.
19626
19627 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19628 TAB. Adjust for the change of s->char2b which always points to
19629 the first element of allocated memory.
19630
19631 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19632
19633 * xdisp.c (handle_composition_prop): Set it->c to the first
19634 non-TAB component.
19635 (fill_composite_glyph_string): Change argument.
19636 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19637 (x_produce_glyphs): Fix handling of left/right padding.
19638
196392008-02-01 Kenichi Handa <handa@m17n.org>
19640
19641 * coding.c (detect_coding_system): Fix for handling off
19642 inhibit_iso_escape_detection. Fix for the case that no coding
19643 system is defined for a specific coding category.
19644
196452008-02-01 Kenichi Handa <handa@m17n.org>
19646
19647 * font.c (font_matching_entity): Delete unused local var.
19648
19649 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19650 opening a font.
19651
19652 * fileio.c (Finsert_file_contents): On recovering a file, assume
19653 Unix-like eol.
19654 (choose_write_coding_system): On auto-saving a file, force
19655 Unix-like eol.
19656
19657 * coding.c (setup_coding_system): Fix setting of
19658 coding->common_flags based on eol_type.
19659 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19660 inherit from it.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * alloc.c (NSTATICS): Increas to 0x600.
19665
196662008-02-01 Kenichi Handa <handa@m17n.org>
19667
19668 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19669 (ftfont_list): Don't check :name property.
19670 (ftfont_match): New function.
19671 (ftfont_pattern_entity): If the pattern doesn't contain
19672 FC_SPACING, don't assume FC_MONO.
19673
19674 * font.h (struct font_driver): New member `match'.
19675 (font_update_drivers): Adjust prototype.
19676
19677 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19678 property of FONT.
19679 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19680 them unconditionally.
19681 (font_matching_entity): New function.
19682 (font_open_by_name): Try font_matching_entity if exact match is
19683 not found.
19684 (font_update_drivers): Delete the arg FONT. Return a list of
19685 actually used backends. Don't free faces, font caches here.
19686 Don't store data in frame parameters. Don't call x_set_font.
19687 (Ffont_spec): Store :name property as is.
19688 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19689 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19690 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19691 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19692 Call font->driver->otf_gsub instead of font_otf_gsub.
19693
19694 * frame.c (x_set_font_backend): Do more works that were done in
19695 font_update_drivers before.
19696
19697 * xfont.c (xfont_match): New function.
19698 (xfont_driver): Set xfont_driver.match to xfont_match.
19699 (xfont_draw): Set font in GC if necessary.
19700
19701 * ftxfont.c (ftxfont_match): New function.
19702 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19703
19704 * xftfont.c (xftfont_match): New function.
19705 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19706
197072008-02-01 Kenichi Handa <handa@m17n.org>
19708
19709 * font.h (struct font): New member scalable.
19710 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19711 (font_otf_gsub): Adjust prototype.
19712
19713 * font.c (font_otf_capability): Fix handling of the default langsys.
19714 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19715 Check the contents of SPEC.
19716 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19717 (check_gstring): New function.
19718 (REPLACEMENT_CHARACTER): New macro.
19719 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19720 glyph codes of GSTRING.
19721 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19722 (font_prepare_composition): Set cmp->glyph_len.
19723 (font_open_entity): Set font->scalable.
19724 (Ffont_get): Handle :otf property.
19725 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19726 functions.
19727 (Fquery_font): Use font->font.full_name.
19728 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19729 Sfont_otf_alternates.
19730
19731 * ftfont.c (ftfont_open): Set font->font.full_name and
19732 font->font.name properly. Fix calculation of font->font.height
19733 and font->min_width.
19734
19735 * ftxfont.c (ftxfont_create_gcs): New function.
19736 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19737 (ftxfont_draw_backgrond): Fix filling region.
19738 (ftxfont_default_fid): New function.
19739 (ftxfont_open): Set xfont->fid to the return value of
19740 ftxfont_default_fid.
19741 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19742 (ftxfont_done_face): Free only GCs that are created by
19743 ftxfont_create_gcs.
19744 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19745
19746 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19747 Clip to src->width, etc (not src->clip_XXX).
19748
19749 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19750 FontBackend frame parameter.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * font.h (struct font_driver_list): New member `on'.
19755 (Fclear_font_cache): EXFUN it.
19756 (font_update_drivers): Extern it.
19757
19758 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19759 (font_list_entities): Check driver_list->on.
19760 (register_font_driver): Initalize `on' member to 0.
19761 (font_update_drivers): New function.
19762 (Fclear_font_cache): Check driver_list->on.
19763
19764 * frame.h (Qfont_backend): Extern it.
19765 (x_set_font_backend): Extern it.
19766
19767 * frame.c (Qfont_backend): New variable.
19768 (frame_parms): New element for font-backend.
19769 (x_set_font_backend): New function.
19770
19771 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19772 FontBackend frame parameter.
19773 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19774 x_set_font_backend.
19775
19776 * xfont.c (xfont_list): Don't try listing by :name property if the
19777 name is not for XLFD.
19778
197792008-02-01 Kenichi Handa <handa@m17n.org>
19780
19781 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19782 (LGLYPH_SET_TO): New macros.
19783 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19784 element of G is vector or not.
19785 (font_at): Extern it.
19786
19787 * font.c: Include window.h.
19788 (font_lispy_object): New function.
19789 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19790 end of valid glyph.
19791 (font_close_object): Fix getting (struct font *).
19792 (font_at): New function.
19793 (Ffont_get): If FONT is a font-object, get entity from it.
19794 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19795 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19796 range check.
19797 (Ffont_at): New function.
19798 (syms_of_font): Defsubr Sfont_at.
19799
19800 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19801 before the entry for Qcomposition.
19802 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19803 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19804 the font in gstring.
19805 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19806 LGLYPH_FORM (g) to detect the end of valid glyph.
19807 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19808 we are composing with gstring.
19809
19810 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19811 Check if adjustment is vector or not.
19812
19813 * Makefile.in (font.o): Make it depends on window.h.
19814
198152008-02-01 Kenichi Handa <handa@m17n.org>
19816
19817 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19818 adjustment is vector or not.
19819
198202008-02-01 Miles Bader <miles@gnu.org>
19821
19822 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19823
198242008-02-01 Kenichi Handa <handa@m17n.org>
19825
19826 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19827 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19828 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19829
19830 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19831 (DEVICE_DELTA): Fix typo.
19832 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19833 LGLYPH format.
19834
19835 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19836 the change of LGLYPH format.
19837
198382008-02-01 Kenichi Handa <handa@m17n.org>
19839
19840 * ftfont.c (ftfont_list): Fix typo.
19841 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19842
198432008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19844
19845 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19846
19847 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19848 xftface_info is non-NULL.
19849
198502008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19851
19852 * ftfont.c (ftfont_list): Move misplaced #endif.
19853
198542008-02-01 Kenichi Handa <handa@m17n.org>
19855
19856 * ftfont.c (ftfont_list): Pay attention to the case that
19857 FC_CAPABILITY is not defined.
19858
198592008-02-01 Kenichi Handa <handa@m17n.org>
19860
19861 * xftfont.c (xftfont_open): Set charset related members to -1.
19862
19863 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19864 QCname.
19865 (ftfont_open): Set charset related members to -1.
19866
19867 * fontset.c (Votf_script_alist): New variable.
19868 (syms_of_fontset): Initialize it.
19869 (fontset_font): Delete unused variable.
19870
19871 * fontset.h (Votf_script_alist): Extern it.
19872
19873 * font.c (font_find_for_lface): Optimize code.
19874
19875 * font.h (font_close_object, font_merge_old_spec): Extern them.
19876
198772008-02-01 Kenichi Handa <handa@m17n.org>
19878
19879 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19880 (syms_of_font): Initialize them.
19881 (font_pixel_size): Allow float value in dpi.
19882 (font_prop_validate_type): Delete.
19883 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19884 Change caller.
19885 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19886 (font_prop_validate_extra): Delete.
19887 (font_prop_validate_spacing): New function.
19888 (font_property_table): Add elements for all known properties.
19889 (get_font_prop_index): Rename from check_font_prop_name. New
19890 argument FROM. Change caller.
19891 (font_prop_validate): Validate all known properties.
19892 (font_put_extra): Delete argument force. Change caller.
19893 (font_expand_wildcards): Make it static. Fix the way of shrinking
19894 the possible range.
19895 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19896 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19897 Change caller.
19898 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19899 (font_parse_fcname): Delete argument merge. Fix parsing of point
19900 size. Don't validate properties values here. Change caller.
19901 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19902 (font_open_by_name): Delete unused variable.
19903 (Ffont_spec): Likewise. Validate property values.
19904 (Ffont_match_p): New function.
19905
19906 * font.h (QCscalable): Extern it.
19907 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19908
19909 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19910
19911 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19912 (xfont_list_pattern): New function.
19913 (xfont_list): Use xfont_list_pattern.
19914
199152008-02-01 Kenichi Handa <handa@m17n.org>
19916
19917 * font.h (Flist_fonts): EXFUN it.
19918
199192008-02-01 Jason Rumney <jasonr@gnu.org>
19920
19921 * w32term.c (w32_initialize): Add back smoothing_type and
19922 smoothing_enabled definitions.
19923
199242008-02-01 Kenichi Handa <handa@m17n.org>
19925
19926 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19927 s->face->font on determining underline position.
19928
199292008-02-01 Kenichi Handa <handa@m17n.org>
19930
19931 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19932 (font_has_char): Accept font-object too.
19933 (font_find_for_lface): Try at first with a size specified in face.
19934
199352008-02-01 Kenichi Handa <handa@m17n.org>
19936
19937 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19938 font_open_by_name.
19939
199402008-02-01 Kenichi Handa <handa@m17n.org>
19941
19942 * font.h (QCspacing, QCdpi): Extern them.
19943 (enum font_spacing): New enum.
19944 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19945
19946 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19947 (QCspacing, QCdpi): New variables.
19948 (syms_of_font): Initialize them.
19949 (font_pixel_size): New function.
19950 (font_put_extra): New function.
19951 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19952 in FONT_EXTRA.
19953 (font_parse_fcname): Handle enumerated values (e.g. bold).
19954 Fix handling font size. Add QCname property that contains only
19955 unknown properties.
19956 (font_score): Change argument. Change caller. Pay attention to
19957 FONT_PIXEL_SIZE_QUANTUM.
19958 (font_sort_entites, font_list_entities, font_find_for_lface)
19959 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19960 (Ffont_spec): Add QCname property that contains only unknown properties.
19961
19962 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19963 include weight in listing pattern, instead check weight of each
19964 listed font. Don't include scalable in pattern. Pay attention to
19965 FONT_PIXEL_SIZE_QUANTUM.
19966
199672008-02-01 Kenichi Handa <handa@m17n.org>
19968
19969 * font.c (font_parse_fcname): Fix parsing of point-size.
19970 (font_unparse_fcname): Produce symbolic names for style properties.
19971 (font_list_entities): Handle float size correctly.
19972 (font_open_by_name): Prefer `normal' property values if the name
19973 doesn't specify them.
19974
19975 * fontset.c (Finternal_char_font): Use font_get_name, not
19976 Ffont_xlfd_name.
19977
19978 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
19979 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
19980 pattern. Don't force scalable.
19981
19982 * xftfont.c (xftfont_open): For generating a name, start from
19983 96-byte buffer.
19984
199852008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19986
19987 * frame.h (x_new_fontset2): Fix prototype.
19988
199892008-02-01 Kenichi Handa <handa@m17n.org>
19990
19991 * font.h (struct font_driver): Delete member parse_name.
19992 (font_match_p, font_get_spec, font_parse_fcname)
19993 (font_unparse_fcname): Extern them.
19994 (font_get_name): Adjust prototype.
19995
19996 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
19997 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
19998 (font_expand_wildcards): Fix handling ENCODING field. Avoid
19999 unnecessary checks for weight, slant, and swidth.
20000 (font_parse_fcname): New function.
20001 (font_unparse_fcname): New function.
20002 (font_parse_name): New function.
20003 (font_match_p): New function.
20004 (font_get_name): Change return value to Lisp string.
20005 (font_get_spec): New function.
20006 (Qunspecified, Qignore_defface): Don't extern them.
20007 (font_find_for_lface): Assume that LFACE is fully specified.
20008 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20009 object, use it for FACE.
20010 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20011 driver->parse_name.
20012 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20013
20014 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20015 prototype.
20016
20017 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20018 argument F. Don't call Fnew_fontset. Instead, directly call
20019 make_fontset.
20020
20021 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20022
20023 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20024 of x_new_fontset2.
20025
20026 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20027 (Qsans__serif): New variables.
20028 (ftfont_generic_family_list): New variable.
20029 (syms_of_ftfont): Initialize the above variables.
20030 (ftfont_pattern_entity): Delete argument NAME.
20031 (ftfont_list_generic_family): New function.
20032 (ftfont_parse_name): Delete this function.
20033 (ftfont_list): Try generic family only when FcFontList found no font.
20034 (ftfont_list_family): Fix args to FcObjectSetBuild.
20035
20036 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20037 object in attrs[LFACE_FONT_INDEX].
20038 (set_lface_from_font_name): Cancel all changes for font-backend.
20039 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20040 function.
20041 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20042 font object in QCfont attribute.
20043 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20044 (realize_default_face) [USE_FONT_BACKEND]: Call
20045 set_lface_from_font_and_fontset.
20046
20047 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20048 "fixed", and signal error here if no suitable font was found.
20049
20050 * xfont.c (xfont_parse_name): Delete this function.
20051
20052 * xftfont.c (xftfont_open): Change coding style of error
20053 handling. Generate fontconfig's fontname pattern.
20054
20055 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20056 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20057
20058 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20059 Both args FONTSET and FONT_OBJECT must be existing ones.
20060
200612008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20062
20063 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20064
200652008-02-01 Kenichi Handa <handa@m17n.org>
20066
20067 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20068
20069 * font.h (struct font): Fix typo.
20070
20071 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20072 XLFD_XXX_INDEX.
20073 (enum xlfd_field_mask): New enum.
20074 (intern_font_field): Changed argument. Change caller. If digits
20075 are followed by non-digits, return a symbol.
20076 (font_expand_wildcards): New function.
20077 (font_parse_xlfd): Fix wildcard handling.
20078 (Ffont_spec): If :name is specified, reflect the info in the other
20079 properties.
20080
20081 * ftfont.c (ftfont_pattern_entity): Fix typo.
20082 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20083 locale.
20084
200852008-02-01 Kenichi Handa <handa@m17n.org>
20086
20087 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20088
20089 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20090 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20091 registry doesn't specify encoding part.
20092 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20093 (font_open_by_name): At first try parsing the name.
20094 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20095 as Lisp symbols.
20096
20097 * fontset.c (reorder_font_vector): Pay attention to the case that
20098 the 3rd element of font_def is nil.
20099 (fontset_font): For the default fontset, append one more fontset
20100 elements for a script-based font specification. Don't add script
20101 attribute on finding a font.
20102 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20103 font name.
20104 (fontset_ascii_font): If a font can't be opened, return nil.
20105
20106 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20107 (ftfont_pattern_entity): New function.
20108 (ftfont_get_cache): Assume that freetype_font_cache is already
20109 initialized.
20110 (ftfont_list): Handle the case that a file is specified in font
20111 name. Use ftfont_pattern_entity to generate entities.
20112 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20113 (syms_of_ftfont): Initialize freetype_font_cache.
20114
20115 * xftfont.c (xftfont_open): Make the font name fontconfig's
20116 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20117 (xftfont_close): Free font->font.name if not NULL.
20118
20119 * xfont.c (xfont_list): If script is specified for a font, return
20120 null_vector.
20121 (xfont_list_family): Declare argument type.
20122
20123 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20124 name, set LFACE_FONT (lface) to nil.
20125
20126 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20127 return Qnil.
20128
201292008-02-01 Kenichi Handa <handa@m17n.org>
20130
20131 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20132 (standard_args): Add "-enable-font-backend".
20133
201342008-02-01 Kenichi Handa <handa@m17n.org>
20135
20136 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20137 (struct xftdraw_list, xftdraw_list): Delete them.
20138 (register_xftdraw, check_xftdraw): Delete them.
20139 (xftfont_prepare_face): Don't call register_xftdraw.
20140 (xftfont_done_face): Don't call check_xftdraw.
20141 (xftfont_draw): Get background color only when with_background is
20142 nonzero.
20143
20144 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20145
201462008-02-01 Kenichi Handa <handa@m17n.org>
20147
20148 These changes are for the new font handling codes.
20149
20150 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20151 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20152 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20153 (FONTSRC, FONTOBJ): New variables.
20154 (obj): Add $(FONTOBJ).
20155 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20156 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20157 @LIBOTF_LIBS@.
20158 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20159 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20160
20161 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20162
20163 * character.h (Vscript_representative_chars): Extern it.
20164
20165 * character.c (Vscript_representative_chars): New variable.
20166 (syms_of_character): Declare it as a Lisp variable.
20167
20168 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20169 enable_font_backend is nonzero, accept the composition method
20170 COMPOSITION_WITH_GLYPH_STRING.
20171
20172 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20173 enumeration COMPOSITION_WITH_GLYPH_STRING.
20174
20175 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20176 members clip_x, clip_y, clip_width, and clip_height.
20177 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20178
20179 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20180 --enable-font-backend. Call syms_of_font.
20181
20182 * fns.c (assoc_no_quit): New function.
20183
20184 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20185 (face_for_font, new_fontset_from_font)
20186 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20187
20188 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20189 (fontset_font, fontset_ascii, face_for_char)
20190 (make_fontset_for_ascii_face, Ffont_info)
20191 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20192 is nonzero, use font-backend mechanism.
20193 (find_font_encoding): Make it non-static.
20194 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20195 New functions.
20196
20197 * frame.h (struct frame): New members resx and resy.
20198 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20199 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20200
20201 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20202 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20203
20204 * lisp.h (assoc_no_quit): Extern it.
20205
20206 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20207 Through out the file, use FONT_INFO_FROM_FACE instead of
20208 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20209 rif->per_char_metric.
20210 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20211 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20212 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20213 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20214 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20215 nonzero, use font-backend mechanism.
20216 (get_per_char_metric): New function.
20217
20218 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20219 (set_lface_from_font_name)
20220 (set_font_frame_param, free_realized_face)
20221 (prepare_face_for_display, clear_face_gcs)
20222 (Finternal_set_font_selection_order, realize_x_face)
20223 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20224 font-backend mechanism.
20225 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20226 (load_face_font) [USE_FONT_BACKEND]: Abort.
20227 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20228 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20229
20230 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20231 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20232 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20233 nonzero, register all available font drivers. Call
20234 x_default_font_parameter for deciding a font.
20235 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20236
20237 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20238 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20239 (x_set_glyph_string_clipping_exactly)
20240 (x_compute_glyph_string_overhangs)
20241 (x_draw_glyph_string_foreground)
20242 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20243 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20244 enable_font_backend is nonzero, use font-backend mechanism.
20245 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20246
202472008-02-01 Kenichi Handa <handa@m17n.org>
20248
20249 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20250 system_eol_type.
20251 (syms_of_coding): Initialize system_eol_type.
20252
20253 * process.c (Fset_process_coding_system): Inherit system's eol
20254 format if necessary.
20255
202562008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20257
20258 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20259
202602008-02-01 Kenichi Handa <handa@m17n.org>
20261
20262 * coding.c (decode_eol): Pay attention to buffer relocation in
20263 del_range_2.
20264 (decode_coding): Call decode_eol before restoring undo_list.
20265
202662008-02-01 Kenichi Handa <handa@m17n.org>
20267
20268 * charset.c (Fdefine_charset_internal): Fix setting of
20269 emacs_mule_bytes.
20270
202712008-02-01 Kenichi Handa <handa@m17n.org>
20272
20273 * keyboard.c (read_char): Check if C is a character or not before
20274 looking up Vkeyboard_translate_table.
20275
202762008-02-01 Kenichi Handa <handa@m17n.org>
20277
20278 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20279 condition to terminate the loop.
20280
202812008-02-01 Kenichi Handa <handa@m17n.org>
20282
20283 * coding.c (produce_composition): Compare charbuf[i] instead of
20284 args[i] against 0.
20285 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20286
202872008-02-01 Kenichi Handa <handa@m17n.org>
20288
20289 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20290 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20291 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20292 detect_coding.
20293 (emacs_mule_char): Handle old style (Emacs 20) component character
20294 of a composition.
20295 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20296 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20297 composition rule.
20298 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20299
203002008-02-01 Kenichi Handa <handa@m17n.org>
20301
20302 * coding.c (encode_coding_ccl): Allocate destination dynamically
20303 when necessary.
20304
203052008-02-01 Kenichi Handa <handa@m17n.org>
20306
20307 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20308 the loop. When quitted, show a proper error message.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20313 src->clip_head and src->clip_tail temporarily instead of src->hl.
20314
20315 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20316 character sequence.
20317 (Fccl_execute_on_string): Use ASET, not XSET.
20318
203192008-02-01 Kenichi Handa <handa@m17n.org>
20320
20321 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20322
203232008-02-01 Kenichi Handa <handa@m17n.org>
20324
20325 * coding.c (decode_coding): Fix the condition of terminating the
20326 decoding loop.
20327
203282008-02-01 Kenichi Handa <handa@m17n.org>
20329
20330 * data.c (Faset): On setting a character bigger than 255 in a
20331 unibyte string, signal an error instead of make the string multibyte.
20332
203332008-02-01 Kenichi Handa <handa@m17n.org>
20334
20335 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20336 made by a mapping table.
20337
203382008-02-01 Kenichi Handa <handa@m17n.org>
20339
20340 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20341 not.
20342 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20343 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20344
20345 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20346 s->face is NULL or not.
20347
203482008-02-01 Kenichi Handa <handa@m17n.org>
20349
20350 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20351 (x_draw_glyph_string): Fix drawing of right_overhang and
20352 left_overhang around/on cursor.
20353
20354 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20355
203562008-02-01 Kenichi Handa <handa@m17n.org>
20357
20358 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20359
203602008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * coding.c (Fdefine_coding_system_internal)
20363 (Fdefine_coding_system_alias): Avoid a duplicated element in
20364 Vcoding_system_alist.
20365
203662008-02-01 Kenichi Handa <handa@m17n.org>
20367
20368 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20369
20370 * coding.c (Qcoding_system_define_form): New variable.
20371 (syms_of_coding): Intern and staticpro it.
20372 (Fcoding_system_p): Check Qcoding_system_define_form.
20373 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20374
20375 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20376 Fcoding_system_p.
20377 (CHECK_CODING_SYSTEM): If ID is not available, call
20378 Fcheck_coding_system.
20379 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20380 Try also Fcheck_coding_system.
20381
203822008-02-01 Kenichi Handa <handa@m17n.org>
20383
20384 * coding.c (code_conversion_restore): GCPRO arg.
20385
203862008-02-01 Kenichi Handa <handa@m17n.org>
20387
20388 * character.c (lisp_string_width): Check multibyteness of STRING.
20389
203902008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20391
20392 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20393 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20394 (decode_mac_font_name): Use decode_coding_c_string instead of
20395 decode_coding.
20396 (x_load_font): Initialize fontp->fontset to -1. Set
20397 fontp->encoding_type.
20398
203992008-02-01 Kenichi Handa <handa@m17n.org>
20400
20401 * search.c (search_buffer): Give up BM search on case-fold-search
20402 if one of a target character has a case-equivalence of different
3b59c351 20403 byte length even if that target character is an ASCII.
aac0c6e3
MR
20404 (simple_search): Fix calculation of byte length of matched text.
20405 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20406
204072008-02-01 Kenichi Handa <handa@m17n.org>
20408
20409 * coding.c (decode_coding): Fix handling of invalid bytes.
20410
204112008-02-01 Kenichi Handa <handa@m17n.org>
20412
20413 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20414 Unicode characters.
20415
204162008-02-01 Kenichi Handa <handa@m17n.org>
20417
20418 * coding.c (encode_coding_object): If a pre-write-conversion
20419 function makes a new buffer, kill it.
20420
204212008-02-01 Kenichi Handa <handa@m17n.org>
20422
20423 * coding.c (QCascii_compatible_p): New variable.
20424 (syms_of_coding): Initialize it.
20425 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20426 calling string_char.
20427 (record_conversion_result): Add `default:' case.
20428 (coding_charset_list): Delete unused variable `coding_type'.
20429 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20430 property in the plist of the coding system.
20431 (Fcoding_system_put): Check QCascii_compatible_p.
20432
204332008-02-01 Miles Bader <miles@gnu.org>
20434
20435 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20436 removed calculation of frame `f', as it's now used.
20437
204382008-02-01 Kenichi Handa <handa@m17n.org>
20439
20440 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20441 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20442 (UNIDATA): New variable.
20443 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20444 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20445 $(RUN_TEMACS) unconditionally.
20446
204472008-02-01 Kenichi Handa <handa@m17n.org>
20448
20449 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20450 (admindir): New variable.
20451 ($(lispsource)international/charprop.el): New target.
20452
204532008-02-01 Miles Bader <miles@gnu.org>
20454
20455 * character.c (chars-in-region): Remove obsolete function.
20456 (syms_of_character): Remove its initialization.
20457
204582008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20459
20460 * w32select.c (validate_coding_system)
20461 (setup_windows_coding_system): New functions.
20462 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20463 setup_windows_coding_system.
20464 (setup_config, Fw32_get_clipboard_data): Use
20465 validate_coding_system.
20466 (Fx_selection_exists): Move call to setup_config to a place
20467 where signals are allowed.
20468
20469 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20470 (Fcheck_coding_system): Add declarations.
20471
204722008-02-01 Kenichi Handa <handa@m17n.org>
20473
20474 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20475
204762008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20477
20478 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20479 string as the second argument for x_new_fontset.
20480
204812008-02-01 Kenichi Handa <handa@m17n.org>
20482
20483 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20484 (encode_coding_object): Use safe_call instead of call2.
20485
204862008-02-01 Kenichi Handa <handa@m17n.org>
20487
20488 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20489
20490 * Makefile.in (lisp): Include charprop.el.
20491
204922008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20493
20494 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20495 Not sure if it's unnecessary.
20496
204972008-02-01 Steven Tamm <steventamm@mac.com>
20498
20499 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20500 some possibly unnecessary fontset checking code that crashed
20501 when creating a new frame.
20502
205032008-02-01 Kenichi Handa <handa@m17n.org>
20504
20505 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20506 lookup_face.
20507
20508 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20509
20510 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20511
205122008-02-01 Kenichi Handa <handa@m17n.org>
20513
20514 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20515 (coding_charset_list): New function.
20516
20517 * coding.h (coding_charset_list): Extern it.
20518
205192008-02-01 Kenichi Handa <handa@m17n.org>
20520
20521 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20522 concatenation of family and registry.
20523
205242008-02-01 Kenichi Handa <handa@m17n.org>
20525
20526 * character.h (BYTE8_STRING): Fix typo.
20527
20528 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20529 string to multibyte (sync to HEAD).
20530
20531 * casefiddle.c (casify_region): Handle changes in byte-length
20532 using replace_range_2 (sync to HEAD).
20533
205342008-02-01 Andreas Schwab <schwab@suse.de>
20535
20536 * chartab.c (map_char_table): GCPRO table and arg.
20537
205382008-02-01 Kenichi Handa <handa@m17n.org>
20539
20540 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20541 already at limit.
20542
205432008-02-01 Kenichi Handa <handa@m17n.org>
20544
20545 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20546 instead of fast_c_string_match_ignore_case.
20547 (find_font_encoding): Change argument to Lisp_Object. Use
20548 fast_string_match_ignore_case instead of
20549 fast_c_string_match_ignore_case. Change caller.
20550
205512008-02-01 Kenichi Handa <handa@m17n.org>
20552
20553 * xdisp.c (get_next_display_element): In unibyte case, decide to
20554 display in octal form by checking a character by
20555 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20556
20557 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20558
20559 * character.c (unibyte_has_multibyte_table): New variable.
20560
20561 * character.h (unibyte_has_multibyte_table): Extern it.
20562 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20563
205642008-02-01 Kenichi Handa <handa@m17n.org>
20565
20566 * coding.c (encode_coding_iso_2022): Fix handling of charset
20567 annotation.
20568
205692008-02-01 Kenichi Handa <handa@m17n.org>
20570
20571 * coding.c (setup_coding_system): If coding_system is nil, use
20572 Qundecided.
20573 (Fterminal_coding_system): Return nil if terminal coding system is
20574 `undecided'.
20575 (syms_of_coding): Define coding-system `undecided' here. Setup
20576 terminal_coding as `undecided'.
20577
205782008-02-01 Kenichi Handa <handa@m17n.org>
20579
20580 * xdisp.c (message_dolog, set_message_1): Call
20581 unibyte_char_to_multibyte with arg type int.
20582
20583 * lread.c (read1): Fix reading of a char-table.
20584
20585 * print.c (print_object): Include sub char-table in circularities
20586 detection.
20587
205882008-02-01 Kenichi Handa <handa@m17n.org>
20589
20590 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20591 Append the found sequences in car of ARGS instead of prepending.
20592
205932008-02-01 Kenichi Handa <handa@m17n.org>
20594
20595 * fileio.c (report_file_error): Make a unibyte string from
20596 strerror (errorno).
20597 (Fsubstitute_in_file_name): Fix the arg to
20598 unibyte_char_to_multibyte. It is evaluated twice.
20599
206002008-02-01 Kenichi Handa <handa@m17n.org>
20601
20602 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20603
206042008-02-01 Kenichi Handa <handa@m17n.org>
20605
20606 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20607 BOM is not found.
20608 (detect_coding, detect_coding_system): Optimization for ISO-2022
20609 when no 8-bit data is found.
20610
206112008-02-01 Jason Rumney <jasonr@gnu.org>
20612
20613 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20614
206152008-02-01 Kenichi Handa <handa@m17n.org>
20616
20617 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20618 CHARS.
20619
206202008-02-01 Steven Tamm <steventamm@mac.com>
20621
20622 * macterm.c (mac_encode_char): Add charset argument and update
20623 to use encoding_type.
20624 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20625 switch to pure fontset.
20626 (decode_mac_font_name): Temporarily remove decoding.
20627 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20628 (x_load_font): Temporarily remove encoding.
20629
206302008-02-01 Kenichi Handa <handa@m17n.org>
20631
20632 * xfaces.c (Fface_font): If frame is not on a window system,
20633 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20634 refer to face->font.
20635 (split_font_name_into_vector, build_font_name_from_vector)
20636 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20637 when HAVE_WINDOW_SYSTEM is defined.
20638
206392008-02-01 Kenichi Handa <handa@m17n.org>
20640
20641 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20642 (x_produce_glyphs): Fix setting of members of cmp in case
20643 cmp->glyph_len is zero.
20644
20645 * fontset.c (Fset_fontset_font): Fix docstring.
20646 (Ffontset_info): Make it backward compatible. New arg ALL.
20647
206482008-02-01 Kim F. Storm <storm@cua.dk>
20649
20650 * process.c (read_process_output): Grow decoding_buf when needed;
20651 this could cause a crash in allocate_string and compact_small_strings.
20652
206532008-02-01 Kenichi Handa <handa@m17n.org>
20654
20655 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20656
206572008-02-01 Kenichi Handa <handa@m17n.org>
20658
20659 * coding.c (setup_coding_system): Set coding->common_flags
20660 correctly for raw-text.
20661 (consume_chars): On encoding unibyte text by raw-text, don't check
20662 multibyte form.
20663 (encode_coding): On encoding by raw-text, never use translation tables.
20664
20665 * fileio.c (e_write): Short cut for the case of no encoding.
20666
206672008-02-01 Kenichi Handa <handa@m17n.org>
20668
20669 * coding.c (detect_coding, detect_coding_system): Delete unused
20670 variables.
20671
206722008-02-01 Kenichi Handa <handa@m17n.org>
20673
20674 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20675 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20676
206772008-02-01 Kenichi Handa <handa@m17n.org>
20678
20679 * coding.c (Ffind_coding_systems_region_internal): Include
20680 raw-text and no-conversion in the result.
20681
206822008-02-01 Kenichi Handa <handa@m17n.org>
20683
20684 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20685 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20686 FONT_DEF.
20687 (font_def_arg, add_arg, from_arg, to_arg): New args.
20688 (set_fontset_font): Change argument.
20689 (Fset_fontset_font): Fix for the case that TARGET is a script
20690 name and charset name.
20691 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20692
206932008-02-01 Kenichi Handa <handa@m17n.org>
20694
20695 * fontset.c (fontset_font): Rename from fontset_face. Change return
20696 value.
20697 (face_suitable_for_char_p, face_for_char): Adjust for the change
20698 of fontset_font.
20699 (make_fontset_for_ascii_face): Fix setting of the fontset element
20700 for ASCII.
20701 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20702 to get a font name.
20703 (Ffontset_info): Adjust for the change of fontset_font.
20704
20705 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20706
20707 * character.h (LEADING_CODE_LATIN_1_MIN)
20708 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20709
207102008-02-01 Kenichi Handa <handa@m17n.org>
20711
20712 * editfns.c (check_translation): New function.
20713 (Ftranslate_region_internal): Handle M:N mapping.
20714
207152008-02-01 Kenichi Handa <handa@m17n.org>
20716
20717 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20718
207192008-02-01 Kenichi Handa <handa@m17n.org>
20720
20721 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20722 goto invalid_code.
20723 (decode_coding_iso_2022): Fix handling of invalid designation.
20724
20725 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20726 after calling code_conversion_save.
20727
207282008-02-01 Kenichi Handa <handa@m17n.org>
20729
20730 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20731
20732 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20733
20734 * fontset.c: Include "intervals.h".
20735 (fontset_face): Fix comparing of Lisp_Objects.
20736 (free_face_fontset, new_fontset_from_font_name): Fix
20737 Lisp_Object/int mixup.
20738
20739 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20740
20741 * coding.c: Add many prototypes for static functions.
20742 (get_translation_table): Allow max_lookup to be NULL.
20743 (decode_coding, Ffind_coding_systems_region_internal)
20744 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20745 get_translation_table with max_lookup NULL.
20746
207472008-02-01 Kenichi Handa <handa@m17n.org>
20748
20749 * coding.c (get_translation_table): Declare it as Lisp_Object.
20750 (LOOKUP_TRANSLATION_TABLE): New macro.
20751 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20752 instead of CHAR_TABLE_REF.
20753
207542008-02-01 Kenichi Handa <handa@m17n.org>
20755
20756 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20757 annotation data format.
20758 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20759 Change arguments FROM and TO to single argument NCHARS. Change caller.
20760 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20761 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20762 (decode_coding_ccl, decode_coding_charset): Pay attention to
20763 coding->charbuf_used.
20764 (get_translation): New function.
20765 (produce_chars): New arguments translation_table and last_block.
20766 Translate characters here. Return number of carryover chars.
20767 Change caller.
20768 (produce_composition): New argument pos. Change caller.
20769 Adjust for the change of annotation data format.
20770 (produce_charset, produce_annotation): Likewise.
20771 (decode_coding, encode_coding): Don't call translate_chars.
20772 (consume_chars): New arg translation_table. Change caller.
20773 (translate_chars): Delete.
20774 (syms_of_coding): Make translation-table's number of extra slots 2.
20775
207762008-02-01 Kenichi Handa <handa@m17n.org>
20777
20778 * search.c (simple_search): Fix setting this_pos_byte in backward
20779 search.
20780
20781 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20782 byte sequence.
20783 (detect_coding_ccl): Fix setting of the variable valids.
20784
207852008-02-01 Kenichi Handa <handa@m17n.org>
20786
20787 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20788
20789 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20790
20791 * editfns.c (Ftranslate_region_internal): Rename from
20792 Ftranslate_region. Accept a char-table in TABLE.
20793 (syms_of_editfns): Defsubr Stranslate_region_internal.
20794
20795 * xfaces.c (set_lface_from_font_name): If a font is specified for
20796 a frame, generate a fontset from the font.
20797 (build_scalable_font_name): If the scalable font is requested for
20798 a specific size, don't change that size.
20799 (try_font_list): Try a scalable font also in the case that a
20800 pattern string is specified.
20801
208022008-02-01 Kenichi Handa <handa@m17n.org>
20803
20804 * xfaces.c (Fface_font): New optional arg CHARACTER.
20805
208062008-02-01 Kenichi Handa <handa@m17n.org>
20807
20808 * charset.h (CHARSET_OFFSET): New macro.
20809
208102008-02-01 Kenichi Handa <handa@m17n.org>
20811
20812 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20813
20814 * fontset.c (fontset_face): Handle the case that repertory is a
20815 char-table.
20816 (find_font_encoding): Return nil for unknown encoding.
20817 (Fset_fontset_font): Ignore a font of unknown encoding.
20818
208192008-02-01 Kenichi Handa <handa@m17n.org>
20820
20821 * keymap.c (describe_vector): Handle default value of a char table.
20822
20823 * fontset.c (fontset_face): Handle fallback fonts correctly.
20824 (Ffontset_info): Return infomation about fallback fonts.
20825
208262008-02-01 Kenichi Handa <handa@m17n.org>
20827
20828 * fontset.c (FONTSET_DEFAULT): New macro.
20829 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20830 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20831 the case that it is nil.
20832 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20833 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20834
20835 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20836 subset or superset.
20837
208382008-02-01 Kenichi Handa <handa@m17n.org>
20839
20840 * emacs.c (main): Call init_charset after syms_of_XXX.
20841
20842 * charset.c (Vcharset_map_directory): Delete.
20843 (Vcharset_map_path): New variable.
20844 (load_charset_map_from_file): Use Vcharset_map_path instead.
20845 (init_charset): Initialize Vcharset_map_path.
20846 (syms_of_charset): Delete declaration of "charset-map-directory",
20847 add declaration of "charset-map-path".
20848
208492008-02-01 Kenichi Handa <handa@m17n.org>
20850
20851 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20852 ASCII only string.
20853
20854 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20855
20856 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20857 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20858
208592008-02-01 Kenichi Handa <handa@m17n.org>
20860
20861 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20862
20863 * coding.c (QCmnemonic, QCdefalut_char)
20864 (QCdecode_translation_table, QCencode_translation_table)
20865 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20866 (get_translation_table): Return a list of translation tables if
20867 necessary.
20868 (decode_coding): Call get_translation_table with ENCODEP 0.
20869 (char_encodable_p): If translation_table is non-nil, always call
20870 translate_char.
20871 (Fdefine_coding_system_internal): Accept list of translation
20872 tables as :encode-translation-table and :decode-translation-table.
20873 (Fcoding_system_put): New function.
20874 (syms_of_coding): Declare new symbols. Defsubr
20875 Scoding_system_put.
20876 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20877 typically JISX0212.
20878
20879 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20880 when the charset is superset type.
20881
20882 * character.c (translate_char): Accept list of translation tables.
20883
208842008-02-01 Kenichi Handa <handa@m17n.org>
20885
20886 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20887 (CODING_ATTR_TRANS_TBL): New macro.
20888
20889 * coding.c (get_translation_table): New function.
20890 (translate_chars): Fix the bug of skipping annotation data.
20891 (decode_coding, encode_coding): Utilize get_translation_table.
20892 (char_encodable_p, Funencodable_char_position): Translate char if
20893 necessary.
20894 (Ffind_coding_systems_region_internal)
20895 (Fcheck_coding_systems_region): Setup translation table for encode
20896 in a coding system attribute vector in advance.
20897 (Fdefine_coding_system_internal): Allow a symbol as translation
20898 table. For shift-jis type coding system, allow 4th charset.
20899
209002008-02-01 Kenichi Handa <handa@m17n.org>
20901
20902 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20903
20904 * xdisp.c (get_next_display_element): Pass -1 as POS to
20905 FACE_FOR_CHAR if displaying a C-string.
20906
209072008-02-01 Kenichi Handa <handa@m17n.org>
20908
20909 * composite.c (get_composition_id): Handle xoff and yoff in a
20910 composition rule.
20911
20912 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20913 (struct composition): New member lbearing and rbearing.
20914
20915 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20916 (x_get_glyph_overhangs): Handle a composition glyph.
20917 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20918
20919 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20920 composition glyph.
20921
209222008-02-01 Kenichi Handa <handa@m17n.org>
20923
20924 * print.c: Include charset.h.
20925 (Vprint_charset_text_property): New variable.
20926 (Qdefault): Extern it.
20927 (PRINT_STRING_NON_CHARSET_FOUND)
20928 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20929 (print_check_string_result): New variable.
20930 (print_check_string_charset_prop): New function.
20931 (print_prune_charset_plist): New variable.
20932 (print_prune_string_charset): New function.
20933 (print_object): Call print_prune_string_charset if
20934 Vprint_charset_text_property is not t.
20935 (print_interval): Print nothing if interval->plist is nil.
20936 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20937 variable. Init and staticpro print_prune_charset_plist.
20938
209392008-02-01 Kenichi Handa <handa@m17n.org>
20940
20941 * fontset.c (new_fontset_from_font_name): Use the specified font
20942 for all characters in the new fontset.
20943
20944 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20945 OBJECT args.
20946
20947 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20948 OBJECT args for composition too.
20949
20950 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20951 OBJECT args.
20952
209532008-02-01 Kenichi Handa <handa@m17n.org>
20954
20955 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20956
20957 * fontset.c (reorder_font_vector): Adjust for the change of
20958 FONT_DEF format.
20959 (fontset_face): New arg id. Change caller.
20960 (face_for_char): New args pos and object.
20961 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20962 (fs_query_fontset): Check NAME by Fassoc too.
20963 (Fset_fontset_font): Allow non-XLFD font name.
20964 (Ffontset_info): Adjust for the change of FONT_DEF format.
20965
20966 * fontset.h (face_for_char): Adjust prototype.
20967
20968 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20969 (append_space, extend_face_to_end_of_line)
20970 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20971 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20972
20973 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20974 POS and OBJECT args.
20975
20976 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
20977 POS and OBJECT args.
20978
209792008-02-01 Jason Rumney <jasonr@gnu.org>
20980
20981 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
20982 of GlobalAlloc'ed memory.
20983
209842008-02-01 Kenichi Handa <handa@m17n.org>
20985
20986 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
20987
20988 * charset.h (charset_table_used): Delete extern.
20989
20990 * charset.c (charset_table_used): Make it static.
20991 (map_charset_chars): Fix args to c_function with.
20992
20993 * chartab.c (map_sub_char_table_for_charset): Fix args to
20994 c_function with.
20995
20996 * coding.h (enum coding_result_code): Delete
20997 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
20998
20999 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21000 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21001 (Vlast_code_conversion_error): New variables.
21002 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21003 (ONE_MORE_BYTE): Record error if any instead of signaling an
21004 error. If non-ASCII multibyte char is found, return the negative
21005 value of the code. All callers changed to check it.
21006 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21007 (record_conversion_result): New function. Change all codes setting
21008 coding->result to call this function.
21009 (detect_coding_utf_8, decode_coding_utf_8)
21010 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21011 Don't use the local variable incomplete.
21012 (emacs_mule_char): Change the second arg to `const'.
21013 (decode_coding): Fix of flushing out unprocessed data.
21014 (make_conversion_work_buffer): Fix making of a work buffer.
21015 (decode_coding_object): Return coding->dst_object.
21016
21017 * fontset.c (set_fontset_font): Fix args.
21018
21019 * lisp.h (CHARACTERBITS): Define as 22.
21020
21021 * process.c (send_process): Be sure to set coding->src_multibyte.
21022
21023 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21024
210252008-02-01 Kenichi Handa <handa@m17n.org>
21026
21027 * xdisp.c (handle_auto_composed_prop): Give limit to
21028 Fnext_single_char_property_change.
21029
210302008-02-01 Kenichi Handa <handa@m17n.org>
21031
21032 * composite.c (syms_of_composite): Don't make the composition hash
21033 table weak.
21034
21035 * fontset.c (Fset_fontset_font): Fix docstring.
21036
21037 * lisp.h (detect_coding_system): Adjust prototype.
21038
21039 * fileio.c (kill_workbuf_unwind): Delete this function.
21040 (Finsert_file_contents): Adjust the call of detect_coding_system.
21041 Get conversion_buffer by code_conversion_save. Use the macro
21042 CODING_MAY_REQUIRE_DECODING. After decoding, update
21043 coding_system.
21044
21045 * coding.h (make_conversion_work_buffer): Delete extern.
21046 (code_conversion_save): Extern it.
21047
21048 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21049 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21050 (decode_coding_utf_8): Don't do eol converion.
21051 (detect_coding_utf_16): Check coding->src_chars, not
21052 coding->src_bytes. Add heuristics for those that have no signature.
21053 (decode_coding_emacs_mule, decode_coding_iso_2022)
21054 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21055 Don't do eol converion.
21056 (adjust_coding_eol_type): Return a new coding system.
21057 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21058 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21059 each change.
21060 (decode_coding): Pay attention to undo_list. Do eol conversion for
21061 all types of coding-systems (if necessary).
21062 (Vcode_conversion_work_buf_list): Delete it.
21063 (Vcode_conversion_reused_workbuf): Rename from
21064 Vcode_conversion_reused_work_buf.
21065 (Vcode_conversion_workbuf_name): New variable.
21066 (reused_workbuf_in_use): New variable.
21067 (make_conversion_work_buffer): Delete the arg DEPTH.
21068 (code_conversion_restore): Change argument to cons.
21069 (code_conversion_save): Delete the argument BUFFER. Change callers.
21070 (detect_coding_system): New argument src_chars. Change callers.
21071 Fix for utf-16 detection.
21072 (init_coding_once): Don't use ISO_carriage_return.
21073 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21074 reused_workbuf_in_use.
21075
210762008-02-01 Kenichi Handa <handa@m17n.org>
21077
21078 * keymap.c (store_in_keymap): Pay attention to the case that idx
21079 is a cons specifying a character range.
21080
210812008-02-01 Kenichi Handa <handa@m17n.org>
21082
21083 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21084 HANDLED_RECOMPUTE_PROPS.
21085
21086 * coding.c (Fdefine_coding_system_internal): Fix checking of
21087 ascii compatibility.
21088
210892008-02-01 Kenichi Handa <handa@m17n.org>
21090
21091 * charset.c (find_charsets_in_text): Delete unused locale variable.
21092 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21093
21094 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21095 Resync charset_list to Vemacs_mule_charset_list.
21096
21097 * keymap.c (store_in_keymap): Pay attention to the case that idx
21098 is a cons specifying a character range.
21099
211002008-02-01 Kenichi Handa <handa@m17n.org>
21101
21102 * composite.c (update_compositions): Bind inhibit-read-only, etc
21103 to t before calling remove-list-of-text-properties.
21104
21105 * print.c (print_object): Always print ASCII chars as is.
21106
211072008-02-01 Kenichi Handa <handa@m17n.org>
21108
21109 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21110
21111 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21112 is a char table.
21113
211142008-02-01 Kenichi Handa <handa@m17n.org>
21115
21116 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21117
211182008-02-01 Kenichi Handa <handa@m17n.org>
21119
21120 * xfaces.c (set_lface_from_font_name): Fix for the case that
21121 FONTNAME is not fontset name.
21122
211232008-02-01 Kenichi Handa <handa@m17n.org>
21124
21125 * fns.c (base64_encode_1): Fix previous change.
21126
211272008-02-01 Kenichi Handa <handa@m17n.org>
21128
21129 * fontset.c (set_fontset_font): New function.
21130 (Fset_fontset_font): If a font is specified for a charset, use
21131 map_charset_chars to store the font spec in a fontset.
21132
211332008-02-01 Kenichi Handa <handa@m17n.org>
21134
21135 * fontset.c (fontset_face): Create a fallback fontset on demand.
21136 (make_fontset): Don't create a fallback fontset here.
21137 (free_face_fontset): Free a fallback fontset (if any) too.
21138 (n_auto_fontsets): Delete this variable.
21139 (auto_fontset_alist): New variable.
21140 (new_fontset_from_font_name): Check auto_fontset_alist.
21141 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21142 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21143 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21144 Defsubr Sfontset_list_all.
21145
211462008-02-01 Kenichi Handa <handa@m17n.org>
21147
21148 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21149
211502008-02-01 Kenichi Handa <handa@m17n.org>
21151
21152 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21153
211542008-02-01 Kenichi Handa <handa@m17n.org>
21155
21156 * editfns.c (Fgoto_char): Fix docstring.
21157
211582008-02-01 Kenichi Handa <handa@m17n.org>
21159
21160 * insdel.c (insert_from_gap): Adjust intervals correctly.
21161
211622008-02-01 Jason Rumney <jasonr@gnu.org>
21163
21164 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21165 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21166 (w32_initialize): Try to load it.
21167 (x_get_font_repertory): Use it if available.
21168 (w32_encode_char): Add shortcut for unicode output.
21169
21170 * w32fns.c (w32_load_system_font): Default charset to -1.
21171 (x_to_w32_charset): Match all fonts for unicode.
21172 (w32_to_x_charset): New parameter matching. Don't return partial
21173 or wildcard charsets.
21174 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21175 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21176 (w32_to_x_font): Match charset to real charset.
21177 (enum_font_cb2): Always list unicode versions.
21178
21179 * makefile.w32-in (temacs): Increase EMHEAP.
21180
211812008-02-01 Jason Rumney <jasonr@gnu.org>
21182
21183 * w32term.c (w32_encode_char): New charset parameter.
21184 font_info.encoding becomes encoding_type.
21185 (x_get_font_repertory): New function. Warning: stub only!
21186 (x_new_font): Return quickly if font already set.
21187 (x_new_fontset): fontsetname parameter is Lisp_Object.
21188 Use new fs_query_fontset. Try new_fontset_from_font_name.
21189 Use fontset_name for return value.
21190
21191 * w32term.h: Declare x_get_font_repertory.
21192
21193 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21194 place of find_charset_in_text. Use encode_coding_object in place
21195 of encode_coding.
21196 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21197 decode_coding.
21198
21199 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21200 of x_new_fontset.
21201 (w32_load_system_font): Initialize charset as unicode.
21202 font_info.encoding becomes encoding_type.
21203 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21204 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21205 (syms_of_w32fns): Set get_font_repertory_func.
21206
21207 * w32console.c: Include character.h. Use terminal_encode_buffer
21208 from term.c.
21209 (write_glyphs): Use new version of encode_terminal_code. Use
21210 encode_coding_object in place of encode_coding.
21211
21212 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21213 encoding becomes encoding_type.
21214
21215 * term.c (terminal_encode_buffer): Make externally visible.
21216
21217 * makefile.w32-in: Add character.h dependancies.
21218 (character.o, chartab.o): New targets.
21219
212202008-02-01 Kenichi Handa <handa@m17n.org>
21221
21222 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21223 CODING_ID_EOL_TYPE.
21224
212252008-02-01 Andreas Schwab <schwab@suse.de>
21226
21227 * coding.c (produce_chars): Revert last change.
21228
212292008-02-01 Kenichi Handa <handa@m17n.org>
21230
21231 * charset.h (charset_unicode): Extern it.
21232
21233 * charset.c (string_xstring_p): Check by (C >= 0x100).
21234 (find_charsets_in_text): Change format of the arc CHARSETS. New
21235 arg MULTIBYTE.
21236 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21237 change of find_charsets_in_text.
21238 (Fsplit_char): Fix doc. Never return unknown.
21239
21240 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21241
21242 * coding.c (Fdefine_coding_system_alias): Update
21243 Vcoding_system_list.
21244
21245 * fontset.c (load_font_get_repertory): Pay attention to the case
21246 that ENCODING of a font is specified by a char-table.
21247
21248 * xterm.c (x_get_font_repertory): Handle the case that the
21249 encoding of font is other than Unicode.
21250
212512008-02-01 Kenichi Handa <handa@m17n.org>
21252
21253 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21254 if a character is encodable by the terminal coding system. If
21255 not, produces proper number of `?'s. Update
21256 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21257 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21258
212592008-02-01 Kenichi Handa <handa@m17n.org>
21260
21261 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21262 variables.
21263 (encode_terminal_code): Change argument. Encode multiple
21264 characters at once. Store the result of encoding in
21265 terminal_encode_buffer.
21266 (write_glyphs, insert_glyphs): Adjust for the change of
21267 encode_terminal_code.
21268 (term_init): Initialize terminal_encode_buffer and
21269 terminal_encode_buf_size.
21270
21271 * coding.c (consume_chars): If coding->src_object is nil, don't
21272 check annotation.
21273
212742008-02-01 Kenichi Handa <handa@m17n.org>
21275
21276 * character.c (char_string): Use ASCII_CHAR_P instead of
21277 SINGLE_BYTE_CHAR_P.
21278
212792008-02-01 Kenichi Handa <handa@m17n.org>
21280
21281 * xdisp.c (handle_auto_composed_prop): Check if the last
21282 characters of auto-composed region is newly composed with the
21283 following characters.
21284 (handle_composition_prop): Fix checking of point being inside
21285 composition.
21286
212872008-02-01 Kenichi Handa <handa@m17n.org>
21288
21289 * fns.c (concat): Don't change multibyteness of the result by
21290 concatenating an 8-bit character.
21291
21292 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21293 multibyteness of the result when newelt is an 8-bit character.
21294
212952008-02-01 Dave Love <fx@gnu.org>
21296
21297 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21298 EMACS_INT.
21299
21300 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21301
21302 * xfaces.c (face_numeric_value): Declare dim size_t.
21303 (Finternal_lisp_face_equal_p): Remove unused f.
21304
21305 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21306 (MATRIX_ROW): Remove unused vars.
21307 (draw_glyphs, x_insert_glyphs, fast_find_position)
21308 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21309 byte/char counts.
21310
21311 * regex.c (regex_compile): Remove unused var.
21312
21313 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21314
21315 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21316 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21317
21318 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21319
21320 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21321
21322 * fileio.c (Fwrite_region): Remove unused var.
21323
21324 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21325 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21326
21327 * composite.c (Fremove_list_of_text_properties): Declare.
21328
21329 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21330 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21331 (coding_inherit_eol_type): Remove unused attrs.
21332 (detect_coding): Cast arg of detect_eol.
21333
21334 * charset.c (syms_of_charset): Remove unused var p.
21335 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21336 byte/char counts.
21337
21338 * casetab.c (set_case_table): Remove unused var.
21339
21340 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21341 unused vars.
21342
213432008-02-01 Dave Love <fx@gnu.org>
21344
21345 * xterm.c (x_bitmap_mask): Declare.
21346
213472008-02-01 Dave Love <fx@gnu.org>
21348
21349 * xterm.c (x_term_init): Fix type error.
21350
21351 * lisp.h: Add Funibyte_char_to_multibyte.
21352
21353 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21354 (Fset_coding_system_priority): Doc fix.
21355
21356 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21357
21358 * indent.c (check_composition): Make start and end EMACS_INT.
21359
21360 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21361
21362 * xdisp.c (handle_composition_prop, check_point_in_composition):
21363 Make buffer positions EMACS_INT.
21364
21365 * composite.c (find_composition, run_composition_function)
21366 (update_compositions, Ffind_composition_internal): Make buffer
21367 positions EMACS_INT.
21368
21369 * composite.h (find_composition, update_compositions): Make
21370 position args EMACS_INT.
21371
21372 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21373
21374 * intervals.c (get_property_and_range):
21375 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21376
21377 * unexalpha.c: Don't include varargs.h.
21378
213792008-02-01 Dave Love <fx@gnu.org>
21380
21381 * coding.h (ENCODE_UTF_8): New.
21382
21383 * Makefile.in (gtkutil.o): Depend on coding.h.
21384
21385 * coding.c (Fset_coding_system_priority): Doc fix.
21386
213872008-02-01 Kenichi Handa <handa@m17n.org>
21388
21389 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21390 the case of auto saving.
21391
213922008-02-01 Andreas Schwab <schwab@suse.de>
21393
21394 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21395 `range' from GC.
21396
213972008-02-01 Kenichi Handa <handa@m17n.org>
21398
21399 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21400
214012008-02-01 Kenichi Handa <handa@m17n.org>
21402
21403 * fileio.c (choose_write_coding_system): Return a decided coding system.
21404 (Fwrite_region): Set Vlast_coding_system_used to the return value
21405 of choose_write_coding_system.
21406
214072008-02-01 Kenichi Handa <handa@m17n.org>
21408
21409 * charset.c (Fset_charset_priority): Pay attention to duplicated
21410 arguments.
21411
21412 * coding.c (QCcategory): New variable.
21413 (syms_of_coding): Defsym it. Set all elements of
21414 Vcoding_category_table and their symbol values.
21415 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21416 coding-category-XXX, and coding-category-list.
21417 (Fdefine_coding_system_internal): Add category in the plist.
21418
214192008-02-01 Kenichi Handa <handa@m17n.org>
21420
21421 * callproc.c (Fcall_process): Handle carryover correctly.
21422
21423 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21424 (raw_text_coding_system): Check NILP (coding_system).
21425 (coding_inherit_eol_type): Check NILP (coding_system) and
21426 NILP (parent).
21427 (consume_chars): Fix for the case of raw-text.
21428
21429 * process.c (read_process_output): Handle carryover correctly.
21430
214312008-02-01 Dave Love <fx@gnu.org>
21432
21433 * regex.c (re_search_2): Fix last change.
21434
214352008-02-01 Kenichi Handa <handa@m17n.org>
21436
21437 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21438 target_multibyte. Even in a unibyte case, return a converted
21439 multibyte char.
21440 (GET_CHAR_AFTER): New macro.
21441 (PATFETCH): Translate via multibyte char.
21442 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21443 (SETUP_MULTIBYTE_RANGE): New macro.
21444 (regex_compile): Setup compiled code so that its multibyteness
21445 matches that of a target. Fix the handling of "[X-YZ]" using
21446 SETUP_MULTIBYTE_RANGE.
21447 (analyse_first) <charset>: For filling fastmap for all multibyte
21448 characters, don't check by BASE_LEADING_CODE_P.
21449 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21450 the same as RE_MULTIBYTE_P (bufp) now.
21451 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21452 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21453 (TRANSLATE_VIA_MULTIBYTE): New macro.
21454 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21455 It is the same as RE_MULTIBYTE_P (bufp) now.
21456 <exactn>: Translate via multibyte.
21457 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21458 translate it.
21459 <charset, charset_not>: Fetch a character by
21460 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21461 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21462 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21463 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21464 by GET_CHAR_AFTER.
21465 (bcmp_translate): Likewise.
21466
21467 * search.c (compile_pattern): Check the member target_multibyte,
21468 not the member multibyte of buf.
21469
21470 * lread.c (read1): While reading a string, set force_singlebyte
21471 and force_multibyte correctly.
21472
21473 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21474 up of unibyte_to_multibyte_table.
21475
214762008-02-01 Kenichi Handa <handa@m17n.org>
21477
21478 * coding.c (setup_coding_system): If coding has
21479 post-read-conversion or pre-write-conversion, set
21480 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21481 respectively.
21482 (decode_coding_gap): Run post-read-conversion if any.
21483
21484 * fileio.c (Finsert_file_contents): Even if we read into a
21485 unibyte buffer, check if we must decode the result or not.
21486
214872008-02-01 Kenichi Handa <handa@m17n.org>
21488
21489 * coding.c (make_conversion_work_buffer): Change the work buffer
21490 name to the same one as that of Emacs 21.
21491
214922008-02-01 Kenichi Handa <handa@m17n.org>
21493
21494 * coding.h (make_conversion_work_buffer): Adjust prototype.
21495 (code_conversion_restore): Don't extern it.
21496
21497 * coding.c (detected_mask): Delete unused variable.
21498 (decode_coding_iso_2022): Pay attention to the byte sequence of
21499 CTEXT extended segment, and retain those bytes as is.
21500 (decode_coding_ccl): Delete unused variable `valids'.
21501 (setup_coding_system): Delete unused variable `category'.
21502 (consume_chars): Delete unused variable `category'. Make it work
21503 for non-multibyte case.
21504 (make_conversion_work_buffer): Change argument.
21505 (saved_coding): Delete unused variable.
21506 (code_conversion_restore): Don't check saved_coding->destination.
21507 (code_conversion_save): New function.
21508 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21509 instead of record_unwind_protect.
21510 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21511 (detect_coding_system): Delete unused variable `mask'.
21512 (Fdefine_coding_system_internal): Delete unused variable id.
21513
21514 * fileio.c (kill_workbuf_unwind): New function.
21515 (Finsert_file_contents): On replacing, call
21516 make_conversion_work_buffer with correct args, and call
21517 record_unwind_protect with the first arg kill_workbuf_unwind.
21518
21519 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21520
215212008-02-01 Kenichi Handa <handa@m17n.org>
21522
21523 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21524 (fontset_add): Fix for the case that TO is less than TO1.
21525 (Ffontset_info): Don't use fallback fontset on checking the
21526 default fontset.
21527 (dump_fontset): New function for debugging.
21528
21529 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21530 coding_type is Qcharset.
21531
215322008-02-01 Kenichi Handa <handa@m17n.org>
21533
21534 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21535 (map_char_table): Don't inherit the value from the parent on
21536 initializing VAL. Adjust for the above change.
21537
215382008-02-01 Kenichi Handa <handa@m17n.org>
21539
21540 * coding.c (Qsignature, Qendian): Delete these variables.
21541 (syms_of_coding): Don't initialize them.
21542 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21543 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21544 detect_info->found.
21545 (decode_coding_utf_16): Don't detect BOM here.
21546 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21547 is NOT utf_16_without_bom.
21548 (setup_coding_system): For a coding system of type utf-16, check
21549 if the attribute :endian is Qbig or not (not nil or not), and set
21550 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21551 (detect_coding): If coding type is utf-16 and BOM detection is
21552 required, detect it.
21553 (Fdefine_coding_system_internal): For a coding system of type
21554 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21555
215562008-02-01 Kenichi Handa <handa@m17n.org>
21557
21558 * coding.c (coding_set_source): Fix for the case that the current
21559 buffer is different from coding->src_object.
21560 (decode_coding_object): Don't use the conversion work buffer if
21561 DST_OBJECT is a buffer.
21562
215632008-02-01 Dave Love <fx@gnu.org>
21564
21565 * lread.c (read_emacs_mule_char) [len==2]: Index
21566 emacs_mule_charset correctly.
21567
215682008-02-01 Dave Love <fx@gnu.org>
21569
21570 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21571 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21572 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21573 treated specially.)
21574 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21575 (detected_mask): Remove Big5 bits.
21576
215772008-02-01 Kenichi Handa <handa@m17n.org>
21578
21579 The following changes are to make the font rescaling facility
21580 compatible with Emacs 21.
21581
21582 * xfaces.c (Vface_font_rescale_alist): Rename from
21583 Vface_resizing_fonts.
21584 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21585 (font_rescale_ratio): Rename from font_resizing_ratio.
21586 (split_font_name): Set font->rescale_ratio.
21587 (better_font_p): Pay attention to font->rescale_ratio.
21588 (build_scalable_font_name): Likewise. Change RESX, and RESY
21589 fields.
21590 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21591
215922008-02-01 Kenichi Handa <handa@m17n.org>
21593
21594 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21595 (Qutf_16_le): Remove these variables.
21596 (syms_of_coding): Don't DEFSYM them.
21597 (decode_coding_utf_16): Fix handling of BOM.
21598 (encode_coding_utf_16): Fix handling of BOM.
21599
216002008-02-01 Kenichi Handa <handa@m17n.org>
21601
21602 * fileio.c (Finsert_file_contents): On replacing, before decoding
21603 the file into the work buffer, set point of the work buffer to the end.
21604
216052008-02-01 Dave Love <fx@gnu.org>
21606
21607 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21608
216092008-02-01 Dave Love <fx@gnu.org>
21610
21611 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21612 and fix C types.
21613
216142008-02-01 Kenichi Handa <handa@m17n.org>
21615
21616 * xdisp.c (SKIP_GLYPHS): New macro.
21617 (set_cursor_from_row): Pay attention to string display properties.
21618
21619 * category.c (copy_category_entry): Fix for the case that RANGE
21620 is an integer.
21621
21622 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21623
21624 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21625
216262008-02-01 Kenichi Handa <handa@m17n.org>
21627
21628 * charset.c (Fcharset_id_internal): New function.
21629 (syms_of_charset): Defsubr it.
21630
21631 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21632 with the last arg charset_list acquired from coding.
21633 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21634 the attribute coding_attr_ccl_valids.
21635
21636 * coding.h (enum define_coding_ccl_arg_index): Set the first
21637 member coding_arg_ccl_decoder to coding_arg_max.
21638
21639 * ccl.h (ccl_driver): Adjust prototype.
21640
21641 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21642 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21643 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21644 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21645 last arg Qnil.
21646
216472008-02-01 Kenichi Handa <handa@m17n.org>
21648
21649 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21650 call encode_char.
21651
21652 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21653
216542008-02-01 Dave Love <fx@gnu.org>
21655
21656 * composite.c (syms_of_composite): Make composition_hash_table weak.
21657
216582008-02-01 Kenichi Handa <handa@m17n.org>
21659
21660 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21661 (font_name_registry): Don't extern them.
21662 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21663
21664 * fontset.h (Qfontset): Don't extern it.
21665 (new_fontset_from_font_name): Extern it.
21666
21667 * fontset.c: Give 8 extra slots to fontset objects.
21668 (Qfontset_info): New variable.
21669 (syms_of_fontset): Defsym it.
21670 (FONTSET_FALLBACK): New macro.
21671 (fontset_face): Try also the default fontset.
21672 (make_fontset): Realize a fallback fontset from the default fontset.
21673 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21674 using split_font_name_into_vector and build_font_name_from_vector.
21675 (Fset_fontset_font): Access the elements of font_spec by enum
21676 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21677 name by using split_font_name_into_vector.
21678 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21679 generate a proper font name from the fontset name. Update
21680 Vfontset_alias_alist.
21681 (n_auto_fontsets): New variable.
21682 (new_fontset_from_font_name): New function.
21683 (Ffont_info): Store the information about fonts generated from the
21684 default fontset in the first extra slot of the returned char-table.
21685
21686 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21687 (font_name_registry): Delete function.
21688 (split_font_name_into_vector): New function.
21689 (build_font_name_from_vector): New function.
21690 (font_list): The argument REGISTRY is now a list of registry names.
21691 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21692 specifies an explicit font name, return the name as is. Make a
21693 list of registy names.
21694
21695 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21696 of x_new_fontset.
21697 (Fx_create_frame): Don't call x_new_fontset here. Just use
21698 x_list_fonts to check the existence of fonts.
21699
21700 * xterm.h (x_new_fontset): Adjust prototype.
21701
21702 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21703 string. Use new_fontset_from_font_name to create a fontset from a
21704 font name.
21705
217062008-02-01 Kenichi Handa <handa@m17n.org>
21707
21708 * syntax.c (Vfind_word_boundary_function_table): New name for
21709 Vnext_word_boundary_function_table.
21710 (find-word-boundary-function-table): New name for
21711 next-word-boundary-function-table.
21712
217132008-02-01 Dave Love <fx@gnu.org>
21714
21715 * Makefile.in: Fix some dependencies.
21716
21717 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21718 set it to nil before returning.
21719
21720 * composite.c (update_compositions): Fix type error.
21721
21722 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21723
217242008-02-01 Kenichi Handa <handa@m17n.org>
21725
21726 * xterm.c (x_new_font): Optimize for the case that the font is
21727 already set for the frame.
21728
217292008-02-01 Kenichi Handa <handa@m17n.org>
21730
21731 * chartab.c (char_table_ascii): Check if the char table contents
21732 is sub-char-table or not.
21733 (char_table_set, char_table_set_range): Fix argument to
21734 char_table_ascii.
21735
21736 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21737 (detect_coding_utf_8, detect_coding_utf_16)
21738 (detect_coding_emacs_mule, detect_coding_iso_2022)
21739 (detect_coding_sjis, detect_coding_big5)
21740 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21741 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21742 sequence is valid in this coding system. Change callers.
21743 (MAX_ANNOTATION_LENGTH): New macro.
21744 (ADD_ANNOTATION_DATA): New macro.
21745 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21746 ADD_ANNOTATION_DATA. Change the format of annotation data.
21747 (ADD_CHARSET_DATA): New macro.
21748 (emacs_mule_char): New argument ID. Change callers.
21749 (decode_coding_emacs_mule, decode_coding_iso_2022)
21750 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21751 Produce charset annotation data in coding->charbuf.
21752 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21753 to charset annotation data in coding->charbuf.
21754 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21755 coding->common_flags if the coding system is iso-2022 based and
21756 uses designation.
21757 (produce_composition): Adjust for the new annotation data format.
21758 (produce_charset): New function.
21759 (produce_annotation): Handle charset annotation.
21760 (handle_composition_annotation, handle_charset_annotation): New
21761 functions.
21762 (consume_chars): Handle charset annotation. Utilize the above two
21763 functions.
21764 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21765 buffer, get the deleted text as a string and set
21766 coding->src_object to that string.
21767 (detect_coding, detect_coding_system): Use the new struct
21768 coding_detection_info.
21769
21770 * coding.h (struct coding_detection_info): New structure.
21771 (struct coding_system): Adjust prototype of the member `detector'.
21772 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21773
217742008-02-01 Kenichi Handa <handa@m17n.org>
21775
21776 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21777
217782008-02-01 Dave Love <fx@gnu.org>
21779
21780 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21781 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21782 to new local and nullify apropos_accumulate before returning.
21783 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21784
217852008-02-01 Kenichi Handa <handa@m17n.org>
21786
21787 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21788 correctly.
e3eea1fc 21789
aac0c6e3
MR
217902008-02-01 Dave Love <fx@gnu.org>
21791
21792 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21793
217942008-02-01 Kenichi Handa <handa@m17n.org>
21795
21796 The following changes are to make character composition happen
21797 automatically on displaying.
21798
21799 * Makefile.in (lisp, shortlisp): Add composite.elc.
21800
21801 * composite.h (Qauto_composed, Vauto_composition_function)
21802 (Qauto_composition_function): Extern them.
21803
21804 * composite.c (Vcomposition_function_table)
21805 (Qcomposition_function_table): Delete variables.
21806 (Qauto_composed, Vauto_composition_function)
21807 (Qauto_composition_function): New variables.
21808 (run_composition_function): Don't call
21809 compose-chars-after-function.
21810 (update_compositions): Clear `auto-composed' text property.
21811 (compose_chars_in_text): Delete this function.
21812 (syms_of_composite): Staticpro Qauto_composed and
21813 Qauto_composition_function. Declare Vauto_composition_function as
21814 a Lisp variable.
21815
21816 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21817
21818 * xdisp.c (it_props): Add an entry for Qauto_composed.
21819 (handle_auto_composed_prop): New function.
21820
21821 * xselect.c (selection_data_to_lisp_data): Don't call
21822 compose_chars_in_text.
21823
218242008-02-01 Dave Love <fx@gnu.org>
21825
21826 * keyboard.c (read_char): Modify checking around use of
21827 Vkeyboard_translate_table.
21828
21829 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21830 and fix C types.
21831
218322008-02-01 Kenichi Handa <handa@m17n.org>
21833
21834 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21835 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21836 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21837 the case that the last byte is '\r' correctly.
21838 (decode_coding): Flush out the unprocessed data correctly.
21839 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21840
218412008-02-01 Dave Love <fx@gnu.org>
21842
21843 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21844 Add XK_ISO... case.
21845 (xaw_scroll_callback): Revert last change.
21846
218472008-02-01 Kenichi Handa <handa@m17n.org>
21848
21849 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21850
218512008-02-01 Kenichi Handa <handa@m17n.org>
21852
21853 * xfaces.c (Vface_resizing_fonts): New variable.
21854 (struct font_name): New member `resizing_ratio'.
21855 (font_resizing_ratio): New function.
21856 (split_font_name): Set font->resizing_ratio.
21857 (better_font_p): Pay attention to font->resizing_ratio.
21858 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21859 RESX, and RESY fields.
21860 (try_alternative_families): Try scalable fonts if
21861 Vscalable_fonts_allowed is not Qt.
21862 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21863
218642008-02-01 Dave Love <fx@gnu.org>
21865
21866 * xterm.c (xaw_scroll_callback): Cast correctly.
21867
218682008-02-01 Dave Love <fx@gnu.org>
21869
21870 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21871 (lispy_kana_keys): Comment out.
21872 (make_lispy_event) [XK_kana_A]: Comment out.
21873
21874 * xterm.c (xaw_scroll_callback): Cast call_data.
21875 (XTread_socket): Deal with ASCII keysyms.
21876 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21877
218782008-02-01 Dave Love <fx@gnu.org>
21879
21880 * xterm.c (Vx_keysym_table): New.
21881 (syms_of_xterm): Initialize it.
21882 (XTread_socket): Use it.
21883 From head: Eliminate incorrect optimization that tried to avoid
21884 decoding the output of X*LookupString.
21885 (x_get_font_repertory): Delete charset declaration.
21886
218872008-02-01 Kenichi Handa <handa@m17n.org>
21888
21889 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21890 return 0.
21891 (Fdefine_coding_system_internal): Setup
21892 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21893
218942008-02-01 Dave Love <fx@gnu.org>
21895
21896 * coding.c (Fcheck_coding_system): Doc fix.
21897
21898 * editfns.c (Finsert_byte): Return a proper value.
21899
219002008-02-01 Kenichi Handa <handa@m17n.org>
21901
21902 * coding.c (decode_coding): Fix args to translate_chars. Pay
21903 attention to Vstandard_translation_table_for_decode.
21904 (encode_coding): Fix args to translate_chars. Pay attention to
21905 Vstandard_translation_table_for_encode.
21906
21907 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21908 SINGLE_BYTE_CHAR_P.
21909
21910 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21911 not by SINGLE_BYTE_CHAR_P.
21912
21913 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21914 SINGLE_BYTE_CHAR_P.
21915
21916 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21917 SINGLE_BYTE_CHAR_P.
21918
21919 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21920 by SINGLE_BYTE_CHAR_P.
21921
21922 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21923 SINGLE_BYTE_CHAR_P.
21924
219252008-02-01 Dave Love <fx@gnu.org>
21926
21927 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21928
219292008-02-01 Dave Love <fx@gnu.org>
21930
21931 * fns.c (Flanginfo): Fix typo.
21932
21933 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21934
219352008-02-01 Kenichi Handa <handa@m17n.org>
21936
21937 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21938 (detect_coding_emacs_mule, detect_coding_iso_2022)
21939 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21940 incomplete byte sequence. Don't update *mask when correctly detected.
21941 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21942 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21943 (detect_coding, detect_coding_system): Adjust for the changes above.
21944
219452008-02-01 Kenichi Handa <handa@m17n.org>
21946
21947 * character.c (char_string): Rename from
21948 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21949 (string_char): Rename from string_char.
21950
21951 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21952 if C is greater than MAX_3_BYTE_CHAR.
21953 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21954 string_char instead of string_char_with_unification.
21955
219562008-02-01 Dave Love <fx@gnu.org>
21957
21958 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21959
219602008-02-01 Kenichi Handa <handa@m17n.org>
21961
21962 * keymap.c (push_key_description): Pay attention to force_multibyte.
21963
21964 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21965
219662008-02-01 Dave Love <fx@gnu.org>
21967
21968 * charset.c (define_charset_internal): Rename `supprementary'.
21969
21970 * Makefile.in (lisp, shortlisp): Remove latin-N.
21971
219722008-02-01 Dave Love <fx@gnu.org>
21973
21974 * xfns.c (x_window, x_window): Use use_xim.
21975
21976 * xterm.c (use_xim): Initialize.
21977 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
21978 (x_term_init): Maybe set use_xim.
21979
21980 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
21981
219822008-02-01 Kenichi Handa <handa@m17n.org>
21983
21984 * search.c (search_buffer): Fix case-fold-search of multibyte
21985 characters.
21986 (boyer_moore): Rename the last argument to char_high_bits.
21987
219882008-02-01 Kenichi Handa <handa@m17n.org>
21989
21990 * xdisp.c (display_string): Fix for the case of zero width glyph.
21991
21992 * xfns.c (x_set_font): Change the error message of the case that
21993 x_new_fontset returns Qt.
21994
21995 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
21996 (Finternal_set_lisp_face_attribute): Use signal_error for the
21997 error of invalid fontset.
21998
21999 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22000 fontset, return Qt.
22001
220022008-02-01 Dave Love <fx@gnu.org>
22003
22004 * unexelf.c (unexec): Make .got handling not SGI-specific.
22005
22006 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22007
22008 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22009
22010 * keyboard.c (read_key_sequence): Fix type error.
22011
22012 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22013 type error.
22014
22015 * fontset.c (fontset_add): Return Lisp_Object.
22016
220172008-02-01 Dave Love <fx@gnu.org>
22018
22019 * charset.h (charset_ordered_list_tick): Declare extern.
22020
220212008-02-01 Kenichi Handa <handa@m17n.org>
22022
22023 The following changes (and some of 2008-02-01 changes of mine) are
22024 for handling syntax, category, and case conversion for unibyte
22025 characters by converting them to multibyte on the fly. With these
22026 changes, we don't have to setup syntax and case tables for unibyte
22027 characters in each language environment.
22028
22029 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22030 multibyte if necessary.
22031
22032 * bytecode.c (Fbyte_code): Likewise.
22033
22034 * character.h (LEADING_CODE_LATIN_1_MIN)
22035 (LEADING_CODE_LATIN_1_MAX): New macros.
22036 (unibyte_to_multibyte_table): Extern it.
22037 (unibyte_char_to_multibyte): New macro.
22038 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22039 (CHAR_LEADING_CODE): New macro.
22040 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22041
22042 * character.c (unibyte_to_multibyte_table): New variable.
22043 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22044 (multibyte_char_to_unibyte): If C is an eight-bit character,
22045 convert it to the corresponding byte value.
22046
22047 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22048 not 1, signals an error. Update the elements of
22049 unibyte_to_multibyte_table.
22050 (init_charset_once): Initialize unibyte_to_multibyte_table.
22051 (syms_of_charset): Define the charset `iso-8859-1'.
22052
22053 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22054 as is without converting it to unibyte. In a unibyte buffer,
22055 convert C to multibyte before checking the syntax.
22056
22057 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22058
22059 * minibuf.c (Fminibuffer_complete_word): Use the macro
22060 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22061
22062 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22063
22064 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22065 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22066 that is zero, convert an eight-bit char to multibyte.
22067 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22068 non-emacs case.
22069 (PATFETCH): Convert an eight-bit char to multibyte.
22070 (HANDLE_UNIBYTE_RANGE): New macro.
22071 (regex_compile): Setup the compiled pattern for multibyte chars
22072 even if the given regex string is unibyte. Use PATFETCH_RAW
22073 instead of PATFETCH in many places. To handle `charset'
22074 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22075 only for ASCII chars.
22076 (analyse_first) <exactn>: Simplify because the compiled pattern
22077 is multibyte.
22078 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22079 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22080 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22081 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22082 multibyte always 1.
22083 (re_search_2): In emacs, set the locale variable multibyte to 1,
22084 otherwise to 0. New local variable target_multibyte. Check it
22085 to decide the multibyteness of STR1 and STR2. If
22086 target_multibyte is zero, convert unibyte chars to multibyte
22087 before translating and checking fastmap.
22088 (TARGET_CHAR_AND_LENGTH): New macro.
22089 (re_match_2_internal): In emacs, set the locale variable multibyte
22090 to 1, otherwise to 0. New local variable target_multibyte. Check
22091 it to decide the multibyteness of STR1 and STR2. Use
22092 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22093 <charset, charset_not>: If multibyte is nonzero, check fastmap
22094 only for ASCII chars. Call bcmp_translate with
22095 target_multibyte, not with multibyte.
22096 <begline>: Declare the local variable C as `unsigned'.
22097 (bcmp_translate): Change the last arg name to target_multibyte.
22098
22099 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22100 the regexp pattern and the matching target. Set cp->buf.multibyte
22101 to the multibyteness of the regexp pattern. Set
22102 cp->but.target_multibyte to the multibyteness of the matching target.
22103 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22104 FETCH_STRING_CHAR_ADVANCE.
22105 (Freplace_match): Convert unibyte chars to multibyte.
22106
22107 * syntax.c (char_quoted, back_comment, scan_words)
22108 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22109 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22110 unibyte chars to multibyte.
22111 (skip_chars): Delete the arg syntaxp, and move the code for
22112 handling syntaxes to skip_syntaxes. Change callers.
22113 Fix the case that the multibyteness of STRING and the current
22114 buffer doesn't match.
22115 (skip_syntaxes): New function.
22116 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22117 SINGLE_BYTE_CHAR_P.
22118
221192008-02-01 Kenichi Handa <handa@m17n.org>
22120
22121 * xfaces.c (QCfontset): New variable.
22122 (LFACE_FONTSET): New macro.
22123 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22124 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22125 (Finternal_set_lisp_face_attribute)
22126 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22127 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22128 check also LFACE_FONTSET_INDEX.
22129 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22130 attrs[LFACE_FONT_INDEX].
22131 (syms_of_xfaces): Intern and staticpro QCfontset.
22132
22133 * dispextern.h (enum lface_attribute_index): New member
22134 LFACE_FONTSET_INDEX.
22135
22136 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22137
221382008-02-01 Kenichi Handa <handa@m17n.org>
22139
22140 * coding.c (coding_set_destination): Fix coding->destination for
22141 the case converting a region.
22142 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22143 (encode_coding_object): Fix coding->dst_pos and
22144 coding->dst_pos_byte for the case converting a region.
22145
22146 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22147
22148 * character.h (BYTE8_STRING): New macro.
22149
22150 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22151
221522008-02-01 Kenichi Handa <handa@m17n.org>
22153
22154 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22155 characters by octal form.
22156
22157 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22158
22159 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22160 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22161 _fetch_multibyte_char_len.
22162 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22163
22164 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22165
22166 * casefiddle.c (casify_object): Simplify. Handle the case that
22167 the case conversion change the byte length.
22168 (casify_region): Likewise.
22169
22170 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22171
22172 * character.c (_fetch_multibyte_char_len): Delete this variable.
22173 (syms_of_character): Setup Vprintable_chars.
22174
22175 * editfns.c (Fchar_equal): Fix for the unibyte case.
22176 (Finsert_byte): New function.
22177 (syms_of_editfns): Defsubr it.
22178
22179 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22180 of direct code 0x3ffff.
22181
22182 * search.c (Freplace_match): Fix for the unibyte case.
22183
221842008-02-01 Kenichi Handa <handa@m17n.org>
22185
22186 * lread.c (safe_to_load_p): Fix the logic.
22187
22188 * syntax.c (scan_words): Don't treat characters belonging to
22189 different scripts as constituting a word.
22190
22191 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22192
22193 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22194
22195 * emacs.c (main): In the case of --unibyte, instead of aborting on
22196 finding non-empty buffer, make it unibyte.
22197
221982008-02-01 Kenichi Handa <handa@m17n.org>
22199
22200 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22201 to create a fontset.
22202
222032008-02-01 Dave Love <fx@gnu.org>
22204
22205 * character.c (Funibyte_char_to_multibyte): Doc fix.
22206
22207 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22208
222092008-02-01 Kenichi Handa <handa@m17n.org>
22210
22211 * fontset.c (fontset_add): Make the type `int'.
22212 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22213
22214 * character.c (unibyte_char_to_multibyte)
22215 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22216 charset_unibyte, not charset_primary.
22217
22218 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22219
22220 * charset.c (charset_unibyte): Rename from charset_primary.
22221 (Funibyte_charset): Rename from Fprimary_charset.
22222 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22223 (syms_of_charset): Adjust for the above changes.
22224
22225 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22226 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22227 it->multibyte_p is zero.
22228
22229 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22230 Delete extern.
22231
222322008-02-01 Kenichi Handa <handa@m17n.org>
22233
22234 * coding.c (Fdefine_coding_system_internal): Fix category setting
22235 for a coding system of type iso-2022.
22236
222372008-02-01 Kenichi Handa <handa@m17n.org>
22238
22239 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22240
222412008-02-01 Kenichi Handa <handa@m17n.org>
22242
22243 * syntax.c (Vnext_word_boundary_function_table): New variable.
22244 (next-word-boundary-function-table): Declare it as a Lisp variable
22245 in syms_of_syntax.
22246 (scan_words): Call functions in Vnext_word_boundary_function_table
22247 if any.
22248
22249 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22250
22251 * fontset.c (fs_load_font): If fontp->charset is not negative,
22252 return fontp without setting its members.
22253
222542008-02-01 Dave Love <fx@gnu.org>
22255
22256 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22257
22258 * m/sparc.h (HAVE_ALLOCA): Delete.
22259
22260 * s/irix6-5.h: Don't include strings.h.
22261 (bcopy, bzero, bcmp): Don't undef.
22262
22263 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22264
22265 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22266 (TIOCSIGSEND): Don't test IRIX6.
22267 (bcopy, bzero, bcmp): Define conditionally.
22268
222692008-02-01 Kenichi Handa <handa@m17n.org>
22270
22271 * buffer.c (Qas, Qmake, Qto): New variables.
22272 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22273 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22274
22275 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22276 we are inserting a process output into a multibyte buffer.
22277
22278 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22279 multibyte_char_to_unibyte.
22280
22281 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22282 by the primary charset, make it eight-bit char.
22283 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22284
22285 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22286 (charset_8_bit__control, charset_8_bit_graphic)
22287 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22288 (define_charset_internal): New function.
22289 (syms_of_charset): Call define_charset_internal for pre-defined
22290 charsets.
22291
22292 * charset.h (charset_8_bit): Extern it.
22293
22294 * coding.c (make_conversion_work_buffer): Adjust for the change
22295 of Fset_buffer_multibyte.
22296 (encode_coding_raw_text): Increment p0 in the loop.
22297
22298 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22299
22300 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22301 for the change of Fset_buffer_multibyte.
22302
22303 * fns.c (Fstring_to_multibyte): New function.
22304 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22305
223062008-02-01 Dave Love <fx@gnu.org>
22307
22308 * xfns.c (x_put_x_image): Declare args.
22309
22310 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22311 (try_font_list): Declare an arg.
22312
22313 * xdisp.c (message2_nolog, set_message): Declare an arg.
22314
22315 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22316
22317 * syntax.c (scan_sexps_forward): Declare an arg.
22318
22319 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22320 Declare an arg.
22321
22322 * lisp.h (Fnew_fontset): Declare.
22323
22324 * keymap.c (push_key_description): Call CHARACTERP correctly.
22325
22326 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22327 (face_for_char): Delete unused vars.
22328 (Fset_fontset_font): Doc fix. Delete unused vars.
22329
22330 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22331
22332 * composite.c (update_compositions): Declare arg.
22333
22334 * cm.c (calccost, cmgoto): Declare args.
22335
22336 * charset.c: Remove `emacs' conditional. Doc fixes.
22337 (map_char_table_for_charset): Declare.
22338
22339 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22340
22341 * ccl.c: Remove `emacs' conditional.
22342
223432008-02-01 Kenichi Handa <handa@m17n.org>
22344
22345 The following changes are to allow specifying multiple font
22346 patterns for a character range (specified by script or charset).
22347
22348 * Makefile.in (abbrev.o): Depend on syntax.h.
22349 (xfaces.o): Depend on charset.h.
22350
22351 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22352 SINGLE_BYTE_CHAR_P.
22353
22354 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22355
22356 * character.h (Vchar_script_table): Extern it.
22357
22358 * character.c (Vscript_alist): Delete.
22359 (Vchar_script_table, Qchar_script_table): New variable.
22360 (syms_of_character): Declare Vchar_script_table as a lisp variable
22361 and initialize it.
22362
22363 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22364 have property char-table-extra-slots, make no extra slot.
22365
22366 * dispextern.h (struct face): Delete member `charset'.
22367 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22368 SINGLE_BYTE_CHAR_P.
22369 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22370 Add prototypes.
22371 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22372 (generate_ascii_font_name): Rename from generate_ascii_font.
22373
22374 * fontset.h (get_font_repertory_func): New prototype.
22375 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22376 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22377
22378 * fontset.c (Qprepend, Qappend): New variables.
22379 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22380 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22381 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22382 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22383 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22384 (load_font_get_repertory): New functions.
22385 (fontset_set): Delete.
22386 (fontset_face): New arg FACE. Return face ID, not face.
22387 Complete re-write to handle new fontset structure. Change caller.
22388 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22389 (face_for_char): Don't call lookup_face.
22390 (make_fontset_for_ascii_face): New arg FACE.
22391 (fs_load_font): New arg CHARSET_ID. Don't check
22392 Vfont_encoding_alist here.
22393 (find_font_encoding): New function.
22394 (list_fontsets): Use STRINGP, not ! NILP.
22395 (accumulate_script_ranges): New function.
22396 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22397 re-written to handle new fontset structure.
22398 (Ffontset_font): Return a copy of element.
22399 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22400 docstring of font-encoding-alist.
22401
22402 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22403 (Fset_fotset_font): Fix arguments to 5.
22404
22405 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22406
22407 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22408 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22409 (highlight_trailing_whitespace): Adjust for the change of
22410 lookup_named_face.
22411
22412 * xfaces.c: Include charset.h.
22413 (load_face_font): Delete argument C. Change caller.
22414 (generate_ascii_font_name): Rename from generate_ascii_font.
22415 (font_name_registry): New function.
22416 (cache_face): Store ascii faces before non-ascii faces in buckets.
22417 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22418 Lookup only ascii faces.
22419 (lookup_non_ascii_face): New function.
22420 (lookup_named_face): Delete argument C. Change caller.
22421 (lookup_derived_face): Delete argument C. Change caller.
22422 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22423 a string, just call font_list with it.
22424 (choose_face_font): Delete arguments FACE and C. New arg
22425 FONT_SPEC. Change caller.
22426 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22427 Change caller.
22428 (realize_non_ascii_face): New function.
22429 (realize_x_face): Call load_face_font here.
22430 (realize_tty_face): Delete argument C. Change caller.
22431 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22432 get a face ID.
22433 (dump_realized_face): Don't print charset of FACE.
22434
22435 * xfns.c (x_set_font): Always call x_new_fontset and
22436 store_frame_parameter.
22437 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22438 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22439
22440 * xterm.h (x_get_font_repertory): Extern it.
22441
22442 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22443 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22444 it->multibyte_p is zero.
22445 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22446 (x_new_fontset): If FONTSETNAME doesn't match any existing
22447 fontsets, create a new one.
22448 (x_get_font_repertory): New function.
22449
224502008-02-01 Kenichi Handa <handa@m17n.org>
22451
22452 * coding.c (Ffind_coding_systems_region_internal): Detect an
22453 ASCII only string correctly.
22454
22455 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22456 version is 0.
22457
224582008-02-01 Kenichi Handa <handa@m17n.org>
22459
22460 * lread.c: Include "coding.h".
22461 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22462 (load_each_byte, unread_char): New variables.
22463 (readchar_backlog): Delete.
22464 (readchar): Return a character unless load_each_byte is nonzero.
22465 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22466 cons. If unread_char is not -1, simply return it.
22467 (unreadchar): Handle the case that readcharfun is
22468 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22469 (read_multibyte): Delete.
22470 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22471 (read_emacs_mule_char): New functions.
22472 (Fload): Even if the file doesn't have the extension ".elc", if
22473 safe_to_load_p returns a positive version number, assume that the
22474 file contains bytecompiled code. If the version is less than 22,
22475 load the file while decoding multibyte sequences by emacs-mule.
22476 (readevalloop): Don't use readchar_backlog.
22477 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22478 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22479 (read_escape): Delete the arg BYTEREP.
22480 (read1): Set load_each_byte to 1 temporarily while handling
22481 #@NUMBER. Don't call read_multibyte.
22482 (read_vector): Call Fread with a cons. If readcharfun is
22483 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22484 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22485 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22486 and Qload_force_doc_strings.
22487
224882008-02-01 Kenichi Handa <handa@m17n.org>
22489
22490 * xdisp.c (face_before_or_after_it_pos): Call
22491 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22492
224932008-02-01 Kenichi Handa <handa@m17n.org>
22494
22495 * character.h (TRAILING_CODE_P): New macro.
22496 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22497 (string_char_with_unification): Fix prototype.
22498 (Vscript_alist): Extern it.
22499
22500 * character.c (Vscript_alist): New variable.
22501 (string_char_with_unification, str_as_unibyte)
22502 (string_escape_byte8): Add `const' to local variables.
22503 (syms_of_character): Declare script-alist as a Lisp variable.
22504
22505 * charset.h (Vcharset_ordered_list): Extern it.
22506 (charset_ordered_list_tick): Extern it.
22507 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22508 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22509 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22510 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22511 (Funify_charset): Adjust for the change of Funify_charset.
22512
22513 * charset.c (charset_ordered_list_tick): New variable.
22514 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22515 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22516 deunify instead of unify a charset.
aac0c6e3
MR
22517 (string_xstring_p): Add `const' to local variables.
22518 (find_charsets_in_text): Add `const' to arguments and local variables.
22519 (encode_char): Adjust for the change of Funify_charset. Fix
22520 detecting of invalid code.
22521 (Fset_charset_priority): Increment charset_ordered_list_tick.
22522 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22523 and TO_CODE.
22524
22525 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22526 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22527 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22528 (decode_coding_ccl, consume_chars)
22529 (Ffind_coding_systems_region_internal)
22530 (Fcheck_coding_systems_region): Add `const' to local variables.
22531
22532 * print.c (print_object): Use octal form for printing the
22533 contents of a bool vector.
22534
225352008-02-01 Dave Love <fx@gnu.org>
22536
22537 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22538 <version == 20>: Refuse to load.
22539
225402008-02-01 Dave Love <fx@gnu.org>
22541
22542 * fns.c: Move coding.h.
22543 (Qcodeset, Qdays, Qmonths): New.
22544 (concat): Use CHARACTERP instead of INTEGERP.
22545 (Flocale_codeset): Delete.
22546 (Flanginfo): New function.
22547 (syms_of_fns): Change accordingly.
22548
22549 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22550
225512008-02-01 Dave Love <fx@gnu.org>
22552
22553 * casetab.c (init_casetab_once, init_casetab_once): Fix
22554 CHAR_TABLE_SET call.
22555
22556 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22557
22558 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22559
22560 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22561 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22562 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22563
22564 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22565
22566 * coding.c (ENCODE_DESIGNATION, decode_eol)
22567 (make_conversion_work_buffer, code_conversion_restore)
22568 (Fdefine_coding_system_internal): Convert Lisp types.
22569 (code_conversion_restore): Use EQ, not ==.
22570 (Fencode_coding_string): Fix code_convert_string call.
22571
22572 * coding.h (code_convert_region): Fix prototype.
22573
22574 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22575
22576 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22577 (Ffontset_info): Convert Lisp types.
22578
22579 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22580
22581 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22582
22583 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22584
22585 * chartab.c: Include "...h", not <...h> in some cases.
22586
22587 * callproc.c (Fcall_process): Remove unused variables.
22588
225892008-02-01 Dave Love <fx@gnu.org>
22590
22591 * coding.c (Fset_coding_system_priority): Allow null arg list.
22592
225932008-02-01 Dave Love <fx@gnu.org>
22594
22595 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22596 (Fself_insert_and_exit): Use CHARACTERP.
22597
22598 * callproc.c (Fcall_process): Remove unused vars.
22599
22600 * xterm.c (XTread_socket): Add extra dead keysyms.
22601
22602 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22603
22604 * dispextern.h: Remove prototypes for redraw_frame,
22605 redraw_garbaged_frames.
22606
22607 * cmds.c (Fself_insert_command): Use CHARACTERP.
22608
22609 * chartab.c (make_sub_char_table): Remove unused var.
22610 (Fset_char_table_default, Fmap_char_table): Doc fix.
22611
22612 * keymap.c (access_keymap): Remove generic char code.
22613 (push_key_description): Use CHARACTERP.
22614
226152008-02-01 Dave Love <fx@gnu.org>
22616
22617 * charset.c: Doc fixes.
22618 (Funify_charset): Extra checking.
22619
226202008-02-01 Dave Love <fx@gnu.org>
22621
22622 * lread.c: Remove some unused variables.
22623 (safe_to_load_p): If safe, return the magic number version byte.
22624 (Fload): Maybe use load-with-code-conversion.
22625
226262008-02-01 Kenichi Handa <handa@m17n.org>
22627
22628 * category.c (Fmodify_category_entry): Don't modify the contents
22629 of category_set for characters out of the range. Avoid
22630 unnecessary modification.
22631
22632 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22633 Vchar_unify_table. The default value of the table is now nil.
22634
22635 * character.c (syms_of_character): Setup Vchar_width_table for
22636 eight-bit-control and raw-byte chars.
22637
22638 * charset.h (enum define_charset_arg_index): Delete
22639 charset_arg_parents and add charset_arg_subset and
22640 charset_arg_superset.
22641 (enum charset_attr_index): Delete charset_parents and add
22642 charset_subset and charset_superset.
22643 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22644 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22645 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22646 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22647 (CHARSET_SUPERSET): New macros.
22648 (charset_work): Extern it.
22649 (ENCODE_CHAR): Use charset_work.
22650 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22651 (map_charset_chars): Extern it.
22652
22653 * charset.c (load_charset_map): Set the default value of encoder
22654 and deunifier char-tables to nil.
22655 (map_charset_chars): Change argument. Change callers. Use
22656 map_char_table_for_charset instead of map_char_table.
22657 (Fmap_charset_chars): New optional args from_code and to_code.
22658 (Fdefine_charset_internal): Adjust for the change of
22659 `define-charset' (:parents -> :subset or :superset).
22660 (charset_work): New variable.
22661 (encode_char, syms_of_charset): Adjust for the change of
22662 Fdefine_charset_internal.
22663 (Ffind_charset_string): Setup the vector `charsets' correctly.
22664
22665 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22666 the previous change.
22667 (char_table_ref_and_range): Adjust for the above change.
22668 (map_sub_char_table_for_charset): New function.
22669 (map_char_table_for_charset): New function.
22670
22671 * keymap.c (describe_vector): Handle a char-table directly here.
22672 (describe_char_table): Delete.
22673
22674 * lisp.h (map_charset_chars): Delete.
22675
226762008-02-01 Dave Love <fx@gnu.org>
22677
22678 * fns.c (count_combining): Comment out (unused).
22679 (Flocale_codeset): New.
22680 (syms_of_fns): Defsubr it.
22681
22682 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22683 (size_t): Remove.
22684
226852008-02-01 Dave Love <fx@gnu.org>
22686
22687 * Makefile.in (chartab.o): Depend on charset.h.
22688
226892008-02-01 Kenichi Handa <handa@m17n.org>
22690
22691 * character.c (syms_of_character): Set the default value of
22692 Vprintable_chars to Qnil.
22693
226942008-02-01 Dave Love <fx@gnu.org>
22695
22696 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22697
226982008-02-01 Kenichi Handa <handa@m17n.org>
22699
22700 * charset.c (load_charset_map): Handle the case that from < to
22701 correctly.
22702
22703 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22704 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22705 Pay attention to raw-8-bit chars.
22706
227072008-02-01 Kenichi Handa <handa@m17n.org>
22708
22709 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22710 It is not bytecompiled now.
22711
22712 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22713 (charset_jisx0208): New variables.
22714 (Fdefine_charset_internal): Setup them if appropriate.
22715 (init_charset_once): Initialize them to -1.
22716
22717 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22718 (charset_jisx0208): Extern them.
22719
22720 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22721 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22722 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22723 (setup_iso_safe_charsets): Fix arguments to Fassq.
22724 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22725 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22726 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22727 (encode_coding_iso_2022): Change the 1st arg to
22728 ENCODE_ISO_CHARACTER to a variable.
22729
227302008-02-01 Kenichi Handa <handa@m17n.org>
22731
22732 * charset.h (enum define_charset_arg_index): New enums
22733 charset_arg_min_code and charset_arg_max_code.
22734 (struct charset): New member char_index_offset.
22735
22736 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22737 Take charset->char_index_offset into account.
22738 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22739 args[charset_arg_max_code]. Setup charset.char_index_offset.
22740 (syms_of_charset): Fix args to Fdefine_charset_internal.
22741
227422008-02-01 Dave Love <fx@gnu.org>
22743
22744 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22745
227462008-02-01 Dave Love <fx@gnu.org>
22747
22748 * coding.c: Doc fixes.
22749 (Fcoding_system_aliases): Fix return value.
22750 (Qmac): Remove (duplicated) definition.
22751
227522008-02-01 Dave Love <fx@gnu.org>
22753
362654a6
JB
22754 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22755 New functions.
aac0c6e3
MR
22756
22757 * character.c (Fstring): Doc fix.
22758
22759 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22760
362654a6 22761 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22762 (font-encoding-alist): Doc fix.
22763
227642008-02-01 Dave Love <fx@gnu.org>
22765
22766 * term.c (costs_set): Declare static, non-initialized for pcc.
22767 (encode_terminal_code): Remove unused var.
22768
22769 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22770 for K&R.
22771
22772 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22773
22774 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22775 (suffixes): Move out of make_subsidiaries for K&R.
22776
22777 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22778
22779 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22780
227812008-02-01 Dave Love <fx@gnu.org>
22782
22783 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22784
22785 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22786
227872008-02-01 Yong Lu <lyongu@asia-infonet.com>
22788
22789 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22790
22791 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22792
227932008-02-01 Kenichi Handa <handa@m17n.org>
22794
22795 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22796 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22797
227982008-02-01 Kenichi Handa <handa@m17n.org>
22799
22800 * coding.c (decode_coding_charset): Adjust for the change of
22801 Fdefine_coding_system_internal.
22802 (Fdefine_coding_system_internal): For a coding system of
22803 `charset' type, store a list of charset IDs in
22804 `charset_attr_charset_valids' element of coding attributes.
22805
228062008-02-01 Kenichi Handa <handa@m17n.org>
22807
22808 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22809 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22810 caller. Handle 2-byte and 3-byte charsets correctly.
22811 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22812 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22813 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22814 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22815 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22816 sequence.
22817 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22818 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22819 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22820 and alt&rule composition.
22821 (decode_coding_iso_2022): Handle composition correctly.
22822 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22823
22824 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22825 re-defining a charset. If the charset has :emacs-mule-id, setup
22826 emacs_mule_bytes.
22827 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22828
228292008-02-01 Kenichi Handa <handa@m17n.org>
22830
22831 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22832 (encode_coding_big5, encode_coding_charset): If coding requires safe
22833 encoding, produce a character specified by
22834 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22835
228362008-02-01 Dave Love <fx@gnu.org>
22837
22838 * xterm.c (XSetIMValues): Declare.
22839
22840 * process.c: Conditionally include sys/wait.h, pty.h.
22841
22842 * print.c (print_object): Fix print format for 64-bit systems.
22843
22844 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22845
22846 * buffer.c (emacs_strerror): Declare.
22847
22848 * fontset.c (Fclear_face_cache): Declare.
22849 (accumulate_font_info): Comment-out (unused).
22850 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22851 variables.
22852
22853 * character.h (string_escape_byte8): Declare.
22854
22855 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22856 unused vars.
22857 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22858 (Fmap_charset_chars): Doc fix.
22859
22860 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22861 (Fset_coding_system_priority, Fset_coding_system_priority)
22862 (Fdefine_coding_system_internal): Doc fix.
22863
228642008-02-01 Dave Love <fx@gnu.org>
22865
22866 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22867
228682008-02-01 Kenichi Handa <handa@m17n.org>
22869
22870 * character.c (string_escape_byte8): Make multibyte string with
22871 correct size.
22872
22873 * charset.c (Fmake_char): Delete unnecessary code.
22874
228752008-02-01 Kenichi Handa <handa@m17n.org>
22876
22877 * xfns.c (x_encode_text): Allocate coding.destination here, and
22878 call encode_coding_object with dst_object Qnil.
22879
22880 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22881 multibyte form correctly.
22882
22883 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22884 against Vfont_encoding_alist.
22885
22886 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22887 handling of charset list.
22888 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22889 (decode_coding_object): Move point to coding->dst_pos before
22890 calling post-read-conversion function.
22891 (encode_coding_object): Give correct arguments to
22892 pre-write-conversion. Ignore the return value of
22893 pre-write-conversion function. Pay attention to the case that
22894 pre-write-conversion changes the current buffer. If dst_object is
22895 Qt, even if coding->src_bytes is zero, allocate at least one byte
22896 to coding->destination.
22897
22898 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22899
22900 * charset.c (Fmake_char): Make it more backward compatible.
22901 (Fmap_charset_chars): Fix docstring.
22902
229032008-02-01 Dave Love <fx@gnu.org>
22904
22905 * coding.c: Doc fixes.
22906 (Fdefine_coding_system_alias): Use names, not symbols, in
22907 coding-system-alist.
22908
229092008-02-01 Kenichi Handa <handa@m17n.org>
22910
22911 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22912 of calling free_realized_face.
22913
229142008-02-01 Yong Lu <lyongu@asia-infonet.com>
22915
22916 * charset.c (read_hex): Don't treat SPC as a comment starter.
22917 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22918 (Fdecode_char): Fix typo.
22919
229202008-02-01 Kenichi Handa <handa@m17n.org>
22921
22922 * charset.h (struct charset): New member `code_space_mask'.
22923
22924 * coding.c (coding_set_source): Delete the local variable beg_byte.
22925 (encode_coding_charset, Fdefine_coding_system_internal):
22926 Delete the local variable charset.
22927 (Fdefine_coding_system_internal): Setup
22928 attrs[coding_attr_charset_valids] correctly.
22929
22930 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22931 member to check if CODE is valid or not.
22932 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22933 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22934 is within the range of charset->min_code and carset->max_code.
22935
229362008-02-01 Dave Love <fx@gnu.org>
22937
22938 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22939
22940 * dispextern.h (generate_ascii_font): Fix return type.
22941
22942 * xfaces.c (generate_ascii_font): Fix arg declaration.
22943
22944 * coding.c (coding_inherit_eol_type)
22945 (Fset_terminal_coding_system_internal)
22946 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22947
229482008-02-01 Kenichi Handa <handa@m17n.org>
22949
22950 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22951 multiple charsets correctly.
22952
229532008-02-01 Kenichi Handa <handa@m17n.org>
22954
22955 * search.c (boyer_moore): Fix handling of multibyte character
22956 translation.
22957
22958 * xdisp.c (display_mode_element): When the variable `elt' is
22959 changed, update `this' and `lisp_string'.
22960
229612008-02-01 Kenichi Handa <handa@m17n.org>
22962
22963 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22964
22965 * callproc.c (Fcall_process): Be sure to give the current buffer
22966 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22967
22968 * charset.c (struct charset_map_entries): New struct.
22969 (load_charset_map): Rename from parse_charset_map. New args
22970 entries and n_entries. Change caller.
22971 (load_charset_map_from_file): Rename from load_charset_map.
22972 Change caller. New arg control_flag. Call load_charset_map at
22973 the tail.
22974 (load_charset_map_from_vector): New function.
22975 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22976 (encode_char): If the charset is compact, change a character index
22977 to a code point.
22978
22979 * coding.c (coding_alloc_by_making_gap): Check the case that the
22980 source and destination are the same correctly.
22981 (decode_coding_raw_text): Set coding->consumed_char and
22982 coding->consumed to 0.
22983 (produce_chars): If coding->chars_at_source is nonzero, update
22984 coding->consumed_char and coding->consumed before calling
22985 alloc_destination.
22986 (Fdefine_coding_system_alias): Register ALIAS in
22987 Vcoding_system_alist.
22988 (syms_of_coding): Define `no-conversion' coding system at the tail.
22989
22990 * fileio.c (Finsert_file_contents): Set coding_system instead of
22991 val. If the current buffer is multibyte, always call
22992 decode_coding_gap.
22993
22994 * xfaces.c (try_font_list): Give higher priority to fontset's
22995 family than face's family.
22996
229972008-02-01 Kenichi Handa <handa@m17n.org>
22998
22999 * callproc.c (Fcall_process): Be sure to give the current buffer
23000 to decode_coding_c_string.
23001
23002 * xfaces.c (try_font_list): Give a family specified in a fontset
23003 higher priority than a family specified in a face.
23004
230052008-02-01 Kenichi Handa <handa@m17n.org>
23006
23007 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23008 Fix arguments to insert_from_buffer.
23009
23010 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23011
230122008-02-01 Kenichi Handa <handa@m17n.org>
23013
23014 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23015 (decode_coding_gap): Set coding->dst_multibyte correctly.
23016
230172008-02-01 Kenichi Handa <handa@m17n.org>
23018
23019 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23020 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23021 (encode_coding_utf_16): Substitute coding->default_char for
23022 non-Unicode characters.
23023 (decode_coding): Don't call record_insert here.
23024 (setup_coding_system): Initialize `surrogate' of
23025 coding->spec.utf_16 to 0.
23026 (EMIT_ONE_BYTE): Fix for multibyte case.
23027
23028 * insdel.c (insert_from_gap): Call record_insert.
23029
230302008-02-01 Kenichi Handa <handa@m17n.org>
23031
23032 * casefiddle.c (casify_region): Fix multibyte case.
23033
23034 * character.c (c_string_width): Add return type `int'.
23035 (char_string_with_unification): Delete arg ADVANCED.
23036
23037 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23038 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23039 (CHAR_STRING_ADVANCE): Make it do-while statement.
23040
23041 * chartab.c (sub_char_table_set_range): Optimize for the case
23042 DEPTH == 3. Add workaround code for a GCC optimization bug.
23043
23044 * charset.c (parse_charset_map): Remove an unused variable.
23045
23046 * coding.c: Delete unused variables.
23047
23048 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23049 earlier. If inserted is zero and the coding system doesn't
23050 require flushing, don't call decode_coding_gap.
23051
23052 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23053
230542008-02-01 Kenichi Handa <handa@m17n.org>
23055
23056 The following changes are for using Unicode as an internal
23057 character model, and use UTF-8 format for buffer/string
23058 representation.
23059
23060 * .gdbinit (xchartable): Adjust for the change of char table structure.
23061 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23062
23063 * Makefile.in (obj): Add character.o and chartab.o.
23064 (lisp, shortlisp): Remove utf-8.elc.
23065 (*.o): For many files, change dependency on charset.h to
23066 character.h, and add dependency on character.h.
23067 (character.o, chartab.o): New targets.
23068
23069 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23070 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23071 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23072 of "charset.h".
23073
23074 * dired.c, filelock.c: Include "character.h".
23075
23076 * alloc.c: Include "character.h" instead of "charset.h".
23077 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23078 (syms_of_alloc): Remove defsubr for Smake_char_table.
23079
23080 * buffer.c: Include "character.h" instead of "charset.h", don't
23081 include "coding.h".
23082 (Fset_buffer_multibyte): Adjust for UTF-8.
23083
23084 * buffer.h: EXFUN Fbuffer_live_p.
23085
23086 * callproc.c: Include "character.h" instead of "charset.h".
23087 (Fcall_process): Big change for the new code-conversion APIs.
23088
23089 * casetab.c: Include "character.h" instead of "charset.h".
23090 (set_canon, set_identity, shuffle): Adjust for the new
23091 map_char_table spec.
23092 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23093 accessing the char table structure.
23094
23095 * chartab.c: New file that implements char table.
23096
23097 * category.c: Include "character.h".
23098 (copy_category_entry): New function.
23099 (copy_category_table): Call map_char_table and copy_category_entry.
23100 (Fmake_category_table): Initialize all top-level slots.
23101 (char_category_set): New function.
23102 (modify_lower_category_set): Delete.
23103 (Fmodify_category_entry): Call char_table_ref_and_range.
23104
23105 * category.h (CATEGORY_SET): Just call char_category_set.
23106
23107 * ccl.c: Include "character.h".
23108 (Qccl, Qcclp): New variables.
23109 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23110 it's less than 256.
23111 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23112 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23113 and DST type.
23114 (ccl_driver): Change types of argument, adjust code accordingly.
23115 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23116 ccl_driver.
23117 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23118
23119 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23120 New members src_multibyte, dst_multibyte, consumed, and produced.
23121 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23122 (CODING_SPEC_CCL_PROGRAM): New macro.
23123 (ccl_driver): Update prototype.
23124 (Qccl, Qcclp, Fccl_program_p): Extern them.
23125 (CHECK_CCL_PROGRAM): New macro.
23126
23127 * character.c, character.h, chartab.c: New files.
23128
23129 * charset.c: Mostly re-written. Move character and multibyte sequence
23130 handling codes to character.c.
23131
23132 * charset.h: Mostly re-written. Move character and multibyte sequence
23133 handling codes to character.h.
23134
23135 * coding.c, coding.h: Mostly re-written.
23136
23137 * composite.c: Include "character.h" instead of "charset.h".
23138 (CHAR_WIDTH): Move to character.h.
23139 (HASH_KEY, HASH_VALUE): Delete.
23140
23141 * composite.h (enum composition_method): Change order of enumeration
23142 symbols.
23143
23144 * data.c: Include "character.h" instead of "charset.h".
23145 (Faref): Call CHAR_TABLE_REF for a char table.
23146 (Faset): Call CHAR_TABLE_SET for a char table.
23147
23148 * dispextern.h (free_realized_face, check_face_attribytes)
23149 (generate_ascii_font): Extern them.
23150 (free_realized_multibyte_face): Delete extern.
23151
23152 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23153 table structure.
23154
23155 * editfns.c: Include "character.h" instead of "charset.h".
23156 (Fchar_to_string): Always call CHAR_STRING.
23157
23158 * emacs.c (main): Call init_charset_once, init_charset,
23159 syms_of_chartab, and syms_of_character.
23160
23161 * fileio.c: Include "character.h" instead of "charset.h".
23162 (Finsert_file_contents): Big change for the new code-conversion API.
23163 (choose_write_coding_system, Fwrite_region): Likewise.
23164 (build_annotations_2): Delete.
23165 (e_write): Big change for the new code-conversion API.
23166
23167 * fns.c: Include "character.h" instead of "charset.h".
23168 (copy_sub_char_table): Move to chartab.c.
23169 (Fcopy_sequence): Call copy_char_table for a char table.
23170 (concat): Delete codes calling count_multibyte.
23171 (string_char_to_byte, string_byte_to_char): Adjust for the new
23172 multibyte form.
23173 (internal_equal): Adjust for the change of char table structure.
23174 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23175 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23176 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23177 (char_table_translate, optimize_sub_char_table)
23178 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23179 chartab.c.
23180 (char_table_ref_and_index): Delete.
23181 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23182 (Fmd5): Call preferred_coding_system instead of accessing
23183 Vcoding_category_list. Adjust for the new code-conversion API.
23184 (syms_of_fns): Move defsubr for char table related functions to
23185 chartab.c.
23186
23187 * fontset.c: Mostly re-written.
23188
23189 * fontset.h (struct font_info): Change type of the member encoding_type.
23190 (enum FONT_SPEC_INDEX): New enum.
23191 (fontset_font_pattern, fs_load_font): Update prototype.
23192 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23193
23194 * indent.c: Include "character.h" instead of "charset.h".
23195 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23196
23197 * insdel.c: Include "character.h" instead of "charset.h".
23198 (copy_text): Don't refer to Vnonascii_translation_table.
23199 (insert_from_gap): New function.
23200
23201 * keyboard.c: Include "character.h" instead of "charset.h".
23202 (command_loop_1): Never call direct_output_forward_char before
23203 a non-ASCII character.
23204 (read_char): If Vkeyboard_translate_table is a char table, always
23205 translate a character.
23206
23207 * keymap.c: Include "character.h".
23208 (store_in_keymap): Handle the case that IDX is a cons.
23209 (Fdefine_key): Handle the case that KEY is a cons and the car part
23210 is also a cons (range).
23211 (push_key_description): Adjust for the new character code.
23212 (describe_vector): Call describe_char_table for a char table.
23213 (describe_char_table): New function.
23214
23215 * keymap.h (describe_char_table): Extern it.
23216
23217 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23218 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23219 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23220 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23221 Delete.
23222 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23223 structure.
23224 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23225 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23226 (CHARTAB_SIZE_BITS_3): New macros.
23227 (chartab_size): Extern it.
23228 (struct Lisp_Char_Table): Re-design.
23229 (struct Lisp_Sub_Char_Table): New structure.
23230 (HASH_KEY, HASH_VALUE): Move from fns.c.
23231 (CHARACTERBITS): Define as 22.
23232 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23233 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23234 (GC_SUB_CHAR_TABLE_P): New macro.
23235 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23236 (code_convert_string_norecord): Deleted extern.
23237 (init_character_once, syms_of_character, init_charset)
23238 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23239
23240 * lread.c: Include "character.h".
23241 (read_multibyte): New arg NBYTES.
23242 (read_escape): Change the meaning of returned *BYTEREP.
23243 (to_multibyte): Delete.
23244 (read1): Adjust the handling of char table and string.
23245
23246 * print.c: Include "character.h" instead of "charset.h".
23247 (print_string): Convert 8-bit raw bytes to octal form by
23248 string_escape_byte8.
23249 (print_object): Adjust for the new multibyte form. Print 8-bit
23250 raw bytes always in octal form. Handle sub char table correctly.
23251
23252 * process.c: Include "character.h" instead of "charset.h".
23253 (read_process_output, send_process): Adjust for the new
23254 code-conversion API.
23255
23256 * puresize.h (BASE_PURESIZE): Increase.
23257
23258 * regex.c: Include "character.h" instead of "charset.h".
23259 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23260 (regex_compile): Accept a range whose starting and ending
23261 character have different leading bytes.
23262 (analyse_first): Adjust for the above change.
23263
23264 * search.c: Include "character.h" instead of "charset.h".
23265 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23266 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23267
23268 * syntax.c: Include "character.h" instead of "charset.h".
23269 (syntax_parent_lookup): Delete.
23270 (Fmodify_syntax_entry): Accept a cons as CHAR.
23271 (skip_chars): Adjust for the new multibyte form.
23272 (init_syntax_once): Call char_table_set_range instead of directly
23273 accessing the structure of a char table.
23274
23275 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23276 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23277 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23278 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23279
23280 * term.c: Include "buffer.h" and "character.h".
23281 (encode_terminal_code, write_glyphs): Adjust for the new
23282 code-conversion API.
23283 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23284
23285 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23286
23287 * xdisp.c: Include "character.h".
23288 (get_next_display_element): Adjust for the new multibyte form.
23289 (disp_char_vector): Adjust for the new char table structure.
23290 (decode_mode_spec_coding): Adjust for the new structure of
23291 coding system.
23292 (decode_mode_spec): Adjust for the new code-conversion API.
23293
23294 * xfaces.c: Include "character.h" instead of "charset.h".
23295 (load_face_font): Adjust for the change of choose_face_font and
23296 FS_LOAD_FONT.
23297 (generate_ascii_font): New function.
23298 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23299 (set_font_frame_param): Adjust for the change of choose_face_font.
23300 (free_realized_face): Make it public.
23301 (free_realized_faces_for_fontset): Rename from
23302 free_realized_multibyte_face. Free also faces realized for ASCII.
23303 (choose_face_font): Change arguments. Adjust for the change of
23304 fontset_font_pattern and FS_LOAD_FONT.
23305
23306 * xfns.c: Include "character.h".
23307 (x_encode_text): Adjust for the new code-conversion API.
23308
23309 * xselect.c: Don't include "charset.h".
23310 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23311
23312 * xterm.c: Include "character.h".
23313 (x_encode_char): New argument CHARSET. Change caller.
23314 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23315 Call ENCODE_CHAR instead of SPLIT_CHAR.
23316 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23317 CHAR_WIDTH instead of CHARSET_WIDTH.
23318 (XTread_socket): Adjust for the new code-conversion API.
23319 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23320 (x_load_font): Adjust for the change of struct font.
23321
233222008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23323
23324 * xfaces.c (face_at_buffer_position): Remove unused vars.
23325
233262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23327
23328 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23329 Fix overflow checking.
23330
233312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23332
23333 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23334 Cancel previous change.
23335
233362008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23337
23338 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23339 ccl->eight_bit_control. Fix check for buffer overflow.
23340 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23341 (ccl_driver): Initialize extra_bytes to 0.
23342
233432008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23344
23345 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23346 return it ORed with ctrl_modifier.
23347
233482008-01-29 Miles Bader <miles@gnu.org>
23349
23350 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23351
233522008-01-28 Jason Rumney <jasonr@gnu.org>
23353
23354 * w32.c (stat): Don't double check for networked drive.
23355
233562008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23357
23358 * window.c (run_window_configuration_change_hook): New function.
23359 Code extracted from set_window_buffer. Set the selected frame.
23360 (set_window_buffer): Use it.
23361 * window.h (run_window_configuration_change_hook): Declare.
23362 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23363
23364 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23365
233662008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23367
23368 * Makefile.in: Remove references to unused macros.
23369
233702008-01-26 Eli Zaretskii <eliz@gnu.org>
23371
23372 * w32.c (g_b_init_get_sid_sub_authority)
23373 (g_b_init_get_sid_sub_authority_count): New static variables.
23374 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23375 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23376 (init_user_info): Use them to retrieve uid and gid.
23377 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23378 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23379 st_uid and st_gid of the file.
23380
233812008-01-26 Jason Rumney <jasonr@gnu.org>
23382
23383 * w32.c (logon_network_drive): New function.
23384 (stat): Use it.
23385
233862008-01-26 Chong Yidong <cyd@stupidchicken.com>
23387
23388 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23389 invisible text covered with an ellipsis.
23390
233912008-01-25 Richard Stallman <rms@gnu.org>
23392
23393 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23394 jump back to beginning. Move some other initializations after that.
23395 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23396 New variables.
23397 (syms_of_xdisp): Init them.
23398
23399 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23400
23401 * buffer.c (reset_buffer_local_variables):
23402 Implement `permanent-local-hook'.
23403 (Qpermanent_local_hook): New variable.
23404 (syms_of_buffer): Init and staticpro it.
23405
234062008-01-25 Michael Albinus <michael.albinus@gmx.de>
23407
23408 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23409
234102008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23411
23412 * fns.c (Fclrhash): Return TABLE.
23413
234142008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23415
23416 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23417 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23418 is set even without positional changes.
23419 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23420
23421 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23422
234232008-01-23 Jason Rumney <jasonr@gnu.org>
23424
23425 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23426
23427 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23428 the unicode range available in MULE by locale-coding-system.
23429 Improve dbcs lead byte detection. Set event timestamp and modifiers
23430 earlier.
23431
234322008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23433
23434 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23435 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23436 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23437 when used on child processes.
23438
234392008-01-21 Michael Albinus <michael.albinus@gmx.de>
23440
23441 * dbusbind.c (Fdbus_method_return_internal): Rename from
23442 Fdbus_method_return.
23443 (Fdbus_unregister_object): Move to dbus.el.
23444 (Fdbus_call_method, Fdbus_method_return_internal)
23445 (Fdbus_send_signal): Improve debug messages.
23446
234472008-01-20 Martin Rudalics <rudalics@gmx.at>
23448
23449 * undo.c (undo_inhibit_record_point): New variable.
23450 (syms_of_undo): Initialize it.
23451 (record_point): Don't record point when undo_inhibit_record_point
23452 is set.
23453
234542008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23455
23456 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23457
23458 * xdisp.c (Qauto_hscroll_mode): New var.
23459 (syms_of_xdisp): Initialize it.
23460 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23461 window's buffer.
23462 (hscroll_windows): Don't check automatic_hscrolling_p here.
23463
23464 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23465 vscroll if we're setting window-buffer to the value it already has.
23466
234672008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23468
23469 * m/intel386.h: Remove references to XENIX.
23470
234712008-01-17 Andreas Schwab <schwab@suse.de>
23472
23473 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23474 instead of HAVE_X86_64_LIB64_DIR.
23475 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23476
234772008-01-17 Glenn Morris <rgm@gnu.org>
23478
23479 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23480 to HAVE_X86_64_LIB64_DIR.
23481
234822008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23483
23484 * s/irix3-3.h:
23485 * s/irix4-0.h:
23486 * s/386-ix.h:
23487 * s/domain.h:
23488 * s/hpux9-x11r4.h:
23489 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23490
23491 * sysdep.c: Remove code containing references to symbols defined
23492 by unsupported systems.
23493
234942008-01-16 Glenn Morris <rgm@gnu.org>
23495
23496 * coding.c (select-safe-coding-system-function): Doc fix.
23497
234982008-01-15 Glenn Morris <rgm@gnu.org>
23499
23500 * config.in: Revert 2008-01-13 change: this is a generated file.
23501
235022008-01-13 Tom Tromey <tromey@redhat.com>
23503
23504 * lisp.h: Fix typo.
23505
235062008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23507
23508 * m/sequent-ptx.h:
23509 * m/sequent.h:
23510 * s/ptx.h:
23511 * s/ptx4-2.h:
23512 * s/ptx4.h: Remove files for systems no longer supported.
23513
23514 * callproc.c (Fcall_process): Fix previous change.
23515
235162008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23517
23518 * unexsunos4.c: Remove file, system not supported anymore.
23519
23520 * m/mips.h:
23521 * m/intel386.h:
23522 * callproc.c:
23523 * config.in:
23524 * ecrt0.c:
23525 * emacs.c:
23526 * fileio.c:
23527 * frame.c:
23528 * getpagesize.h:
23529 * keyboard.c:
23530 * lread.c:
23531 * process.c:
23532 * puresize.h:
23533 * sysdep.c:
23534 * systty.h:
23535 * syswait.h:
23536 * unexec.c:
23537 * xdisp.c:
23538 * alloc.c: Remove code containing references to symbols defined by
23539 unsupported systems.
23540
235412008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23542
23543 * coding.c (detect_coding_mask): Fix previous change.
23544
235452008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23546
23547 * coding.c (detect_coding_iso2022): New arg
23548 latin_extra_code_state. Allow Latin extra codes only
23549 when *latin_extra_code_state is nonzero.
23550 (detect_coding_mask): If there is a NULL byte, detect the encoding
23551 as UTF-16 or binary. If Latin extra codes exist, detect the
23552 encoding as ISO-2022 only when there's no other proper encoding is
23553 found.
23554
235552008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23556
23557 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23558 #ifdef MAC_OS.
23559
235602008-01-08 Richard Stallman <rms@gnu.org>
23561
23562 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23563
235642008-01-06 Nick Roberts <nickrob@snap.net.nz>
23565
23566 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23567 menu bar in parentheses.
23568
235692008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23570
23571 * m/7300.h:
23572 * m/acorn.h:
23573 * m/alliant-2800.h:
23574 * m/alliant.h:
23575 * m/alliant1.h:
23576 * m/alliant4.h:
23577 * m/altos.h:
23578 * m/amdahl.h:
23579 * m/apollo.h:
23580 * m/att3b.h:
23581 * m/aviion-intel.h:
23582 * m/aviion.h:
23583 * m/celerity.h:
23584 * m/clipper.h:
23585 * m/cnvrgnt.h:
23586 * m/convex.h:
23587 * m/cydra5.h:
23588 * m/delta88k.h:
23589 * m/dpx2.h:
23590 * m/dual.h:
23591 * m/elxsi.h:
23592 * m/f301.h:
23593 * m/gould-np1.h:
23594 * m/gould.h:
23595 * m/i860.h:
23596 * m/ibmps2-aix.h:
23597 * m/ibmrt-aix.h:
23598 * m/ibmrt.h:
23599 * m/irist.h:
23600 * m/is386.h:
23601 * m/isi-ov.h:
23602 * m/mega68.h:
23603 * m/mg1.h:
23604 * m/news-r6.h:
23605 * m/news-risc.h:
23606 * m/news.h:
23607 * m/nh3000.h:
23608 * m/nh4000.h:
23609 * m/ns16000.h:
23610 * m/ns32000.h:
23611 * m/nu.h:
23612 * m/orion.h:
23613 * m/orion105.h:
23614 * m/paragon.h:
23615 * m/pfa50.h:
23616 * m/plexus.h:
23617 * m/pyramid.h:
23618 * m/pyrmips.h:
23619 * m/sh3el.h:
23620 * m/sps7.h:
23621 * m/sr2k.h:
23622 * m/stride.h:
23623 * m/sun1.h:
23624 * m/sun2.h:
23625 * m/sun3-68881.h:
23626 * m/sun3-fpa.h:
23627 * m/sun3-soft.h:
23628 * m/sun3.h:
23629 * m/sun386.h:
23630 * m/symmetry.h:
23631 * m/tad68k.h:
23632 * m/tahoe.h:
23633 * m/targon31.h:
23634 * m/tek4300.h:
23635 * m/tekxd88.h:
23636 * m/tower32.h:
23637 * m/tower32v3.h:
23638 * m/ustation.h:
23639 * m/wicat.h:
23640 * m/xps100.h:
23641 * s/cxux.h:
23642 * s/cxux7.h:
23643 * s/dgux.h:
23644 * s/dgux4.h:
23645 * s/dgux5-4-3.h:
23646 * s/dgux5-4r2.h:
23647 * s/esix.h:
23648 * s/esix5r4.h:
23649 * s/hiuxmpp.h:
23650 * s/hiuxwe2.h:
23651 * s/iris3-5.h:
23652 * s/iris3-6.h:
23653 * s/isc2-2.h:
23654 * s/isc3-0.h:
23655 * s/isc4-0.h:
23656 * s/isc4-1.h:
23657 * s/newsos5.h:
23658 * s/newsos6.h:
23659 * s/osf1.h:
23660 * s/osf5-0.h:
23661 * s/riscix1-1.h:
23662 * s/riscix12.h:
23663 * s/sco4.h:
23664 * s/sco5.h:
23665 * s/sunos4-0.h:
23666 * s/sunos4-1.h:
23667 * s/sunos413.h:
23668 * s/sunos4shr.h:
23669 * s/umax.h:
23670 * s/unipl5-2.h:
23671 * s/xenix.h:
23672 * cxux-crt0.s:
23673 * unexapollo.c:
23674 * unexconvex.c:
23675 * unexenix.c:
23676 * unexsni.c: Remove files for systems no longer supported.
23677
23678 * m/intel386.h: Remove references to unsupported systems.
23679
23680 * w32.c (get_emacs_configuration): Remove reference to i860.
23681
23682 * sysdep.c: Remove dead code.
23683
236842008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23685
23686 * s/rtu.h:
23687 * m/masscomp.h: Remove files. Platform is obsolete.
23688
236892008-01-04 Michael Albinus <michael.albinus@gmx.de>
23690
23691 * dbusbind.c (Fdbus_method_return): New function.
23692 (xd_read_message): Add the serial number to the event.
23693 (Fdbus_register_method): Activate the function.
23694
236952008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23696
23697 * keyboard.c (read_key_sequence): Fix typo.
23698
236992008-01-03 Michael Albinus <michael.albinus@gmx.de>
23700
23701 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23702 (xd_signature, xd_append_arg): Handle element type detection for
23703 empty arrays.
23704 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23705 SDATA () calls; this must be solved more general.
23706 (Fdbus_register_signal): Use SBYTES instead of strlen.
23707
237082008-01-03 Magnus Henoch <magnus@zemdatav>
23709
23710 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23711 unsigned int for byte values (necessary for big-endian platform).
23712 (Fdbus_call_method): Handle the case of no returned arguments.
23713
237142007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23715
23716 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23717
237182007-12-31 Magnus Henoch <mange@freemail.hu>
23719
23720 * dbusbind.c (xd_signature): Signature of variant is just "v".
23721
237222007-12-30 Michael Albinus <michael.albinus@gmx.de>
23723
23724 * dbusbind.c: Fix several errors and compiler warnings.
23725 Reported by Tom Tromey <tromey@redhat.com>.
23726 (XD_ERROR, XD_DEBUG_MESSAGE)
23727 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23728 (xd_append_arg): Part for basic D-Bus types rewritten.
23729 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23730 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23731 appropriate.
23732 (xd_read_message): Return Qnil. Don't signal an error; it is not
23733 useful during event reading.
23734 (Fdbus_register_signal): Signal an error if the check for
23735 FUNCTIONP fails.
23736 (Fdbus_register_method): New function. The implementation is not
23737 complete, the call of the function signals an error therefore.
23738 (Fdbus_unregister_object): New function, renamed from
23739 Fdbus_unregister_signal. The initial check signals an error, if
23740 the object is not well formed.
23741
237422007-12-30 Richard Stallman <rms@gnu.org>
23743
23744 * textprop.c (get_char_property_and_overlay):
23745 Signal error if POSITION is out of range in a buffer.
23746
237472007-12-29 Martin Rudalics <rudalics@gmx.at>
23748
23749 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23750 because the original parameters are in pure storage now.
23751
237522007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23753
23754 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23755
237562007-12-22 Eli Zaretskii <eliz@gnu.org>
23757
23758 * callint.c (syms_of_callint) <command-history>: Add reference to
23759 history-length in the doc string.
23760
237612007-12-17 Jason Rumney <jasonr@gnu.org>
23762
23763 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23764 before passing as wParam.
23765
237662007-12-22 Michael Albinus <michael.albinus@gmx.de>
23767
23768 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23769 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23770 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23771 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23772 as number.
23773 (Fdbus_call_method): Fix docstring.
23774
237752007-12-21 Michael Albinus <michael.albinus@gmx.de>
23776
23777 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23778 New macros.
23779 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23780 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23781 Simplify.
23782 (xd_signature): New function.
23783 (xd_append_arg): Compute also signatures. Major rewrite.
23784 (xd_retrieve_arg): Make debug messages friendly.
23785 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23786 Check for signatures of arguments.
23787
237882007-12-19 Michael Albinus <michael.albinus@gmx.de>
23789
23790 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23791 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23792 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23793 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23794 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23795 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23796 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23797 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23798 (xd_retrieve_value): Remove. Functionality included in ...
23799 (xd_append_arg): New function.
23800 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23801
238022007-12-16 Michael Albinus <michael.albinus@gmx.de>
23803
23804 * dbusbind.c (top): Include <stdio.h>.
23805 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23806 dbus_message_new_method_call and dbus_message_new_signal.
23807 (Fdbus_register_signal): Rename unique_name to uname.
23808 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23809 non-existing unique name. Fix typos in matching rule. Return an
23810 object which is useful in Fdbus_unregister_signal.
23811 (Fdbus_unregister_signal): Reimplementation, in order to remove
23812 only the corresponding entry.
23813 (Vdbus_registered_functions_table): Change the order of entries.
23814 Apply these changes in xd_read_message and Fdbus_register_signal.
23815
238162007-12-16 Andreas Schwab <schwab@suse.de>
23817
23818 * fileio.c (Finsert_file_contents): Fix overflow check to not
23819 depend on undefined integer overflow.
23820
238212007-12-14 Jason Rumney <jasonr@gnu.org>
23822
23823 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23824 for characters above 127.
23825
238262007-12-13 Jason Rumney <jasonr@gnu.org>
23827
23828 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23829 before dereferencing array.
23830 (lookup_vk_code): Remove zero comparison.
23831
238322007-12-14 Michael Albinus <michael.albinus@gmx.de>
23833
23834 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23835 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23836 Use `unsigned int' instead of `uint'.
23837 (xd_read_message, Fdbus_register_signal): Split expressions into
23838 multiple lines before operators "&&" and "||", according to the
23839 GNU Coding Standards.
23840
238412007-12-14 Eli Zaretskii <eliz@gnu.org>
23842
23843 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23844
238452007-12-12 Juri Linkov <juri@jurta.org>
23846
23847 * buffer.c (Frename_buffer): In interactive spec replace
23848 `read-buffer' with `read-string' that uses `buffer-name-history'
23849 as history, and the current buffer's name as default.
23850
238512007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23852
23853 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23854 manipulating the backtrace manually.
23855 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23856 (struct backtrace, backtrace_list): Remove.
23857 (command_loop_1): Remove dead var `no_direct'.
23858
23859 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23860 preserve non-built-in buffer-local variables.
23861 (Fkill_all_local_variables): Don't re-create&re-set permanent
23862 buffer-local variables.
23863
238642007-12-09 Juri Linkov <juri@jurta.org>
23865
23866 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23867 Lisp code that uses `read-buffer' with current buffer as default.
23868
238692007-12-08 Michael Albinus <michael.albinus@gmx.de>
23870
23871 * dbusbind.c (xd_read_message): Generate an event for every
23872 registered handler. There might be several handlers registered
23873 for the same signal.
23874 (Fdbus_register_signal): Don't overwrite a registration for the
23875 same signal. Add a new registration if handlers are different.
23876 (Vdbus_registered_functions_table): Rework doc string.
23877
238782007-12-07 Michael Albinus <michael.albinus@gmx.de>
23879
23880 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23881 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23882 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23883 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23884 Unify argument lists.
23885 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23886 arguments and hash table keys. Use unique name for service.
23887 (Fdbus_unregister_signal): Remove checks.
23888 (Vdbus_registered_functions_table): Fix doc string.
23889
238902007-12-05 Magnus Henoch <mange@freemail.hu>
23891
23892 * process.c (make_process): Initialize pty_flag to 0.
23893
238942007-12-05 Jason Rumney <jasonr@gnu.org>
23895
23896 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23897 specified XBMs.
23898
238992007-12-05 Richard Stallman <rms@gnu.org>
23900
23901 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23902
239032007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23904
23905 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23906 New variable.
23907 (mac_try_close_socket) [MAC_OSX]: New function.
23908 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23909 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23910
23911 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23912 Use mac_try_close_socket.
23913
239142007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23915
23916 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23917 reloc_base.
23918 (copy_dysymtab): Compute relocation base here.
23919 (rebase_reloc_address) [__ppc64__]: New function.
23920 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23921 changed.
23922
239232007-12-05 Jason Rumney <jasonr@gnu.org>
23924
23925 * w32proc.c (sys_spawnve): Quote args with wildcards.
23926
239272007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23928
23929 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23930 __objc_* sections.
23931 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23932
239332007-12-05 Michael Albinus <michael.albinus@gmx.de>
23934
23935 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23936 Move check for Vdbus_registered_functions_table to
23937 xd_read_queued_messages.
23938 (xd_read_queued_messages): Protect xd_read_message calls by
23939 internal_condition_case_1.
23940
239412007-12-04 Michael Albinus <michael.albinus@gmx.de>
23942
23943 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23944 Qdbus_system_bus and Qdbus_session_bus, respectively.
23945 (Vdbus_intern_symbols): Remove.
23946 (Vdbus_registered_functions_table): New hash table.
23947 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23948 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23949 Rewrite in order to manage registered functions by hash table
23950 Vdbus_registered_functions_table.
23951
239522007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23953
23954 * xterm.c: Update URL to Window Manager Specification in comment.
23955
239562007-12-02 Michael Albinus <michael.albinus@gmx.de>
23957
23958 * config.in (HAVE_DBUS): Add.
23959
23960 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23961 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23962 (obj): Add $(DBUS_OBJ).
23963 (LIBES): Add $(DBUS_LIBS).
23964 (dbusbind.o): New target.
23965
23966 * dbusbind.c: New file.
23967
23968 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23969
23970 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23971 (Qdbus_event): New Lisp symbol.
23972 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23973 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23974 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23975
23976 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
23977
239782007-12-01 Richard Stallman <rms@gnu.org>
23979
23980 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
23981
239822007-11-30 Jason Rumney <jasonr@gnu.org>
23983
23984 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
23985 (w32con_reset_terminal_modes): Clear screen buffer.
23986 (w32_face_attributes): Don't use color indexes that are out of range.
23987 Only reverse the default colors.
23988
23989 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
23990 WINDOWSNT.
23991
23992 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
23993
239942007-11-29 Jason Rumney <jasonr@gnu.org>
23995
23996 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
23997 (w32_face_attributes): Use Vtty_defined_color_alist to determine
23998 if the terminal colors are initialized.
23999 (unspecified_fg, unspecified_bg): Remove unused declarations.
24000
240012007-11-29 Andreas Schwab <schwab@suse.de>
24002
24003 * keyboard.c (apply_modifiers): Fix typo.
24004
240052007-11-29 Richard Stallman <rms@gnu.org>
24006
24007 * keymap.c (Fcurrent_local_map): Doc fix.
24008
240092007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24010
24011 * s/gnu-kfreebsd.h: New file.
24012
240132007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24014
24015 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24016 Don't cast redundantly.
24017
24018 * keyboard.c (KEY_TO_CHAR): New macro.
24019 (parse_modifiers, apply_modifiers): Accept integer arguments.
24020 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24021 for chars and symbol keys.
24022 After doing such remapping, apply function-key-map again.
24023
240242007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24025
24026 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24027 compiled anymore.
24028
240292007-11-26 Andreas Schwab <schwab@suse.de>
24030
24031 * process.c (list_processes_1): Fix indentation level of the
24032 command column.
24033
240342007-11-23 Andreas Schwab <schwab@suse.de>
24035
24036 * editfns.c (Fformat): Handle %c specially since it requires the
24037 argument to be of type int.
24038
240392007-11-23 Markus Triska <markus.triska@gmx.at>
24040
24041 * emacs.c (main): Call init_editfns before init_process, since
24042 init_process sets Vprocess_connection_type depending on OS release.
24043
240442007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24045
24046 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24047 (find_symbol_value): Use do_symval_forwarding.
24048
24049 * data.c (set_internal): Set the value in the `cons-cell' (for
24050 Buffer_Local_values) not only for frame-local variables.
24051
240522007-11-22 Andreas Schwab <schwab@suse.de>
24053
24054 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24055 values to sprintf.
24056 * keymap.c (Fsingle_key_description): Likewise.
24057 * print.c (print_object): Likewise.
24058
240592007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24060
24061 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24062 file for image is nil.
24063
240642007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24065
24066 * term.c: Include stdarg.h.
24067 (fatal): Implement using varargs.
24068 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24069
240702007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24071
24072 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24073 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24074 Update call to buffer_slot_type_mismatch.
24075 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24076 (buffer_slot_type_mismatch): Update.
24077 * buffer.c (buffer_local_types): Remove.
24078 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24079 (defvar_per_buffer): Set the type in the buffer_objfwd.
24080
240812007-11-21 Jason Rumney <jasonr@gnu.org>
24082
24083 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24084 CreateFileMapping returns NULL on failure.
24085
240862007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24087
24088 * search.c (Fset_match_data): Remove the `evaporate' feature.
24089 (unwind_set_match_data): Don't use the `evaporate' feature.
24090
240912007-11-21 Jason Rumney <jasonr@gnu.org>
24092
24093 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24094
24095 * w32console.c (w32con_write_glyphs): Remove unused variables.
24096
240972007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24098
24099 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24100
24101 * s/darwin.h (MULTI_KBOARD): Remove.
24102
24103 * macfns.c (x_create_tip_frame, Fx_create_frame)
24104 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24105
241062007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24107
24108 * buffer.c (Fbuffer_local_value): Remove redundant test.
24109 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24110 than in `current-buffer' to match the comment.
24111 Do the swap using swap_in_global_binding.
24112
24113 * data.c (store_symval_forwarding, set_internal):
24114 * eval.c (specbind): Remove dead code.
24115
24116 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24117 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24118 Since we do not want to see internal Lisp_*fwd objects here.
24119
241202007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24121
24122 * sysdep.c (init_system_name): Use getaddrinfo if available.
24123
24124 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24125 (x_scroll_bar_note_movement): start, end, with, height in struct
24126 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24127
241282007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24129
24130 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24131
241322007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24133
24134 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24135 This undoes Richard's change of 14-Oct-2002.
24136
24137 * alloc.c (allocate_other_vector):
24138 * lisp.h (allocate_other_vector): Remove.
24139
24140 * window.c (struct save_window_data): Move non-lisp data to the end
24141 and make it `int' rather than Lisp_Object.
24142 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24143 Done wrap/unwrap integer values.
24144 (Fset_window_configuration, compare_window_configurations):
24145 Update use of fields to their new types.
24146
24147 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24148 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24149 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24150 (SET_SCROLL_BAR_X_WINDOW): Remove.
24151 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24152 Access the new x_window field directly.
24153 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24154 Don't wrap/unwrap integers into Lisp_Objects.
24155 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24156 (x_scroll_bar_report_motion):
24157 Don't wrap/unwrap integers into Lisp_Objects.
24158 (x_term_init): Use SDATA.
24159 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24160 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24161 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24162 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24163 * xfns.c (x_set_background_color):
24164 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24165 Access the new x_window field directly.
24166
24167 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24168 (allocate_pseudovector): Make non-static.
24169
24170 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24171 (allocate_pseudovector): Declare.
24172 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24173
241742007-11-15 Andreas Schwab <schwab@suse.de>
24175
24176 * editfns.c (Fformat): Correctly format EMACS_INT values.
24177 Also take precision into account when formatting an integer.
24178
24179 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24180
241812007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24182
24183 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24184 (syms_of_keyboard): Defsubr it.
24185
24186 * data.c (swap_in_global_binding): Fix longstanding bug where
24187 store_symval_forwarding was not called with the right second argument,
24188 thus causing objfwd-ing from being dropped.
24189
241902007-11-14 Juanma Barranquero <lekktu@gmail.com>
24191
24192 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24193 (Fx_display_pixel_height, Fx_display_planes)
24194 (Fx_display_color_cells, Fx_server_max_request_size)
24195 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24196 (Fx_display_visual_class, Fx_display_save_under):
24197 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24198 (Fx_display_pixel_height, Fx_display_planes)
24199 (Fx_display_color_cells, Fx_server_max_request_size)
24200 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24201 (Fx_display_mm_height, Fx_display_mm_width)
24202 (Fx_display_backing_store, Fx_display_visual_class)
24203 (Fw32_select_font, Fx_display_save_under):
24204 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24205 (Fx_display_pixel_height, Fx_display_planes)
24206 (Fx_display_color_cells, Fx_server_max_request_size)
24207 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24208 (Fx_display_save_under): Fix typos in docstrings.
24209
242102007-11-14 Juanma Barranquero <lekktu@gmail.com>
24211
24212 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24213 corresponding to deleted entries; they are an implementation detail.
24214 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24215 Remove variables.
24216 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24217 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24218 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24219 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24220 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24221 (Fw32_define_rgb_color, Fw32_load_color_file)
24222 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24223 Fix typos in docstrings.
24224 (Fx_server_version): Reflow docstring.
24225 (Fw32_shell_execute): Doc fixes.
24226
242272007-11-13 Juanma Barranquero <lekktu@gmail.com>
24228
24229 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24230 if w32_parse_hot_key returned nil.
24231
242322007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24233
24234 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24235
242362007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24237
aac0c6e3
MR
24238 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24239
24240 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24241
24242 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24243 Remove W32_SCROLL_BAR_CLICK_EVENT.
24244
24245 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24246 Add MULTIMEDIA_KEY_EVENT.
24247
24248 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24249 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24250 (make_lispy_event) [WINDOWSNT]: Use it to translate
24251 MULTIMEDIA_KEY_EVENT.
24252
24253 * w32term.h (WM_APPCOMMAND): Define if not already.
24254 (GET_APPCOMMAND_LPARAM): Likewise.
24255
24256 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24257 WM_APPCOMMAND.
24258
24259 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24260 (syms_of_w32fns): Export and initialize it.
24261 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24262
242632007-11-09 Chong Yidong <cyd@stupidchicken.com>
24264
24265 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24266 twice.
24267
24268 * xdisp.c (handle_face_prop): Fix last change.
24269
242702007-11-09 Richard Stallman <rms@gnu.org>
24271
24272 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24273 not just for after-strings and before-strings.
24274 Call face_for_overlay_string and pass the overlay to it.
24275 (handle_display_prop): Determine whether property came from an overlay.
24276 Pass OVERLAY arg to handle_single_display_spec.
24277 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24278 (load_overlay_strings): Fill in it->string_overlays.
24279 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24280
24281 * xfaces.c (face_for_overlay_string): Function renamed from
24282 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24283
24284 * dispextern.h (struct it): New elt string_overlays.
24285 New elt from_overlay, also in stack.
24286 Rearrange a few elements.
24287 (face_for_overlay_string): Decl renamed from
24288 face_at_buffer_position_no_overlays, and add argument.
24289
242902007-11-09 Richard Stallman <rms@gnu.org>
24291
24292 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24293 to get the base face for an overlay string.
24294
24295 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24296
24297 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24298
24299 * xdisp.c (handle_stop): Move some code out of loop.
24300
243012007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24302
24303 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24304 Fix conversion from Lisp object to ATSUFontID.
24305
243062007-11-09 Jason Rumney <jasonr@gnu.org>
24307
24308 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24309
243102007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24311
24312 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24313 Don't assume regions are aligned to page boundary.
24314 (print_load_command_name): Add LC_UUID if defined.
24315
243162007-11-09 Richard Stallman <rms@gnu.org>
24317
24318 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24319
243202007-11-07 Jason Rumney <jasonr@gnu.org>
24321
24322 * s/windows95.h: Remove.
24323
243242007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24325
24326 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24327 abort with a message on unhandled store_type values.
24328
243292007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24330
24331 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24332 Remove HAVE_X11R5 and HAVE_X11R4.
24333
243342007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24335
24336 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24337
243382007-11-01 Johan Bockgård <bojohan@gnu.org>
24339
24340 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24341 Don't set s->stippled_p here, since it has already been set by
24342 x_set_glyph_string_gc from x_draw_glyph_string.
24343
243442007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24345
24346 * sunfns.c: Remove file.
24347
24348 * m/sun386.h:
24349 * m/sun2.h:
24350 * m/sparc.h: Remove Sun windows code.
24351
243522007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24353
24354 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24355 (init_keyboard): Set current_kboard's window-system to nil.
24356 (tty_read_avail_input): Typo.
24357 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24358
243592007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24360
24361 * s/usg5-4.h:
24362 * s/usg5-3.h:
24363 * s/ptx.h:
24364 * m/is386.h:
24365 * m/ibmps2-aix.h:
24366 * Makefile.in: Remove all mentions of X10.
24367
24368 * dispnew.c (syms_of_display): Don't mention version 10.
24369
243702007-10-28 Juanma Barranquero <lekktu@gmail.com>
24371
24372 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24373 ($(BLD)/abbrev.$(O)): Remove.
24374
243752007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24376
24377 Rewrite abbrev.c in Elisp.
24378 * image.c (Qcount): Don't declare as extern.
24379 (syms_of_image): Initialize and staticpro `Qcount'.
24380 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24381 * emacs.c (main): Don't call syms_of_abbrev.
24382 * Makefile.in (obj): Remove abbrev.o.
24383 (abbrev.o): Remove.
24384 * abbrev.c: Remove.
24385
243862007-10-26 Martin Rudalics <rudalics@gmx.at>
24387
24388 * window.c (window_min_size_2): Don't count header-line.
24389
243902007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24391
24392 * frame.h (struct frame): Move all bit fields after the first bit
24393 field to take advantage of the available space. Group all the
24394 chars together to reduce wasted space due to padding.
24395
243962007-10-26 Juanma Barranquero <lekktu@gmail.com>
24397
24398 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24399
24400 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24401 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24402 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24403 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24404 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24405 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24406 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24407 (last_marked, mark_object_loop_halt): Make static.
24408
24409 * frame.c (syms_of_frame) <delete-frame-functions>:
24410 Fix typo in docstring.
24411
244122007-10-25 Juanma Barranquero <lekktu@gmail.com>
24413
24414 * w32.c (init_environment): Fix tiny memory leak.
24415 (w32_get_resource): Remove unused variable `ok'.
24416
244172007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24418
24419 Make `window-system' into a keyboard-local variable (rather than
24420 frame-local as done originally by multi-tty).
24421
24422 * keyboard.h (struct kboard): Add Vwindow_system.
24423 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24424 (mark_kboards): Mark Vwindow_system.
24425
24426 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24427 (init_display): Don't set the obsolete `window-system' frame-param.
24428
24429 * xterm.c (x_term_init):
24430 * w32term.c (w32_create_terminal):
24431 * term.c (init_tty): Set Vwindow_system.
24432 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24433 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24434
24435 * xfns.c (Fx_create_frame, x_create_tip_frame):
24436 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24437 * macfns.c (Fx_create_frame):
24438 Don't set the obsolete `window-system' frame-param.
24439
24440 * frame.h (Qwindow_system): Remove.
24441 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24442 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24443
244442007-10-24 Richard Stallman <rms@gnu.org>
24445
24446 * frame.c (x_figure_window_size): For fullscreen case,
24447 set USPosition | PPosition without clobbering rest of window_prompting.
24448
24449 * keyboard.c (Fcurrent_idle_time): Doc fix.
24450
24451 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24452
244532007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24454
24455 * process.c (unwind_request_sigio): Only define if __ultrix__.
24456
24457 * callproc.c (child_setup): Remove spurious *.
24458
24459 * lisp.h (Fget_text_property): Declare.
24460 (have_menus_p): Declare it here rather than in sys-dep header files.
24461 * macterm.h (have_menus_p):
24462 * msdos.h (have_menus_p):
24463 * xterm.h (have_menus_p): Remove.
24464
24465 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24466 (Fmake_variable_frame_local): Just check the variable's const-ness
24467 rather than checking nil or t.
24468
244692007-10-22 Jason Rumney <jasonr@gnu.org>
24470
24471 * w32fns.c: Include math.h.
24472 (w32_abort): Declaration moved to nt/config.nt.
24473
24474 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24475 (abort): Redefinition moved to nt/config.nt.
24476
24477 * m/windowsnt.h: Remove.
24478
244792007-10-22 Juanma Barranquero <lekktu@gmail.com>
24480
24481 * emacs.c (Fdump_emacs): Fix typo in message.
24482 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24483 <installation-directory>: Reflow docstring.
24484
244852007-10-22 Juri Linkov <juri@jurta.org>
24486
24487 * minibuf.c: Allow minibuffer default to be a list of default values.
24488 With empty input use the first element of this list as returned default.
24489 (string_to_object)
24490 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24491 (read_minibuf): If defalt is cons, set histstring to its car.
24492 (Fread_string): If default_value is cons, set val to its car.
24493 (Fread_buffer): If def is cons, use its car.
24494 (Fcompleting_read): If defalt is cons, set val to its car.
24495
244962007-10-21 Michael Albinus <michael.albinus@gmx.de>
24497
24498 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24499
245002007-10-20 Juanma Barranquero <lekktu@gmail.com>
24501
24502 * doc.c (Fdocumentation): Check for advice in all cases.
24503
245042007-10-19 Chong Yidong <cyd@stupidchicken.com>
24505
24506 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24507
245082007-10-19 Richard Stallman <rms@gnu.org>
24509
24510 * doc.c (Fdocumentation): Check for and handle an advised function.
24511
245122007-10-19 Juanma Barranquero <lekktu@gmail.com>
24513
24514 * process.c (Fset_process_filter): Doc fix.
24515
245162007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24517
24518 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24519 which caused key-translation-map to applied repeatedly (thus breaking
24520 double-mode).
24521
245222007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24523
24524 * xselect.c (x_own_selection, x_handle_selection_clear)
24525 (x_clear_frame_selections):
24526 * w32menu.c (list_of_panes, list_of_items):
24527 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24528 * textprop.c (validate_plist, interval_has_all_properties)
24529 (interval_has_some_properties, interval_has_some_properties_list)
24530 (add_properties, text_property_list):
24531 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24532 * minibuf.c (Fassoc_string):
24533 * macselect.c (x_own_selection, x_clear_frame_selections)
24534 (Fx_disown_selection_internal):
24535 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24536 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24537
245382007-10-17 Chong Yidong <cyd@stupidchicken.com>
24539
24540 * process.c: Link to libs for calling res_init() if available.
24541 (Fmake_network_process): Call res_init() before getaddrinfo or
24542 gethostbyname, if possible.
24543
245442007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24545
24546 * lread.c (read1): Set pvectype for char_tables.
24547
24548 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24549 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24550 Add type checks.
24551 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24552
24553 * alloc.c (free_misc): Use XMISCTYPE.
24554 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24555
245562007-10-17 Glenn Morris <rgm@gnu.org>
24557
24558 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24559 (syms_of_minibuf): Add Qcompletion_ignore_case.
24560 * dired.c (Qcompletion_ignore_case): Change to external.
24561 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24562 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24563 (Fread_file_name): Use it rather than intern'ing.
24564
24565 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24566 (Fread_coding_system): Ignore case of user input.
24567
245682007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24569
24570 * xdisp.c (handle_display_prop): Ignore display specs after
24571 replacing one when string text is being replaced.
24572 (handle_single_display_spec): Pretend as if characters with display
24573 property haven't been consumed only when buffer text is being replaced.
24574
245752007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24576
24577 * xfns.c (Fx_create_frame, Fx_display_list):
24578 * window.c (window_fixed_size_p, enlarge_window)
24579 (shrink_window_lowest_first):
24580 * macterm.c (init_font_name_table):
24581 * macfns.c (Fx_create_frame, Fx_display_list):
24582 * lread.c (close_load_descs):
24583 * keyboard.c (read_char_x_menu_prompt):
24584 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24585 * coding.c (code_convert_region_unwind): Test the type of an object
24586 rather than just !NILP before extracting data from it.
24587
24588 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24589
24590 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24591 (XMISCANY): New macro.
24592 (XMISCTYPE): Use it.
24593 (struct Lisp_Misc_Any): New type.
24594 (union Lisp_Misc): Use it.
24595 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24596 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24597 (find_symbol_value, set_internal, default_value, Fset_default)
24598 (Fmake_variable_buffer_local, Fmake_local_variable)
24599 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24600 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24601 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24602 * alloc.c (allocate_buffer): Set the size and tag.
24603 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24604 Use XMISCANY.
24605 (die): Follow the GNU convention for error messages.
24606 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24607 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24608 tag any more.
24609 (set_buffer_internal_1):
24610 * frame.c (store_frame_param):
24611 * eval.c (specbind):
24612 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24613
24614 * doc.c (Fsnarf_documentation): Simplify.
24615
246162007-10-14 Juanma Barranquero <lekktu@gmail.com>
24617
24618 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24619 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24620
246212007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24622
24623 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24624
246252007-10-14 Juanma Barranquero <lekktu@gmail.com>
24626
24627 * eval.c (do_autoload): Don't save autoloads.
24628
24629 * data.c (Ffset): Save autoload of the function being set.
24630
246312007-10-07 John Paul Wallington <jpw@pobox.com>
24632
24633 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24634 parameter before setting up faces.
24635
246362007-10-13 Eli Zaretskii <eliz@gnu.org>
24637
24638 * ccl.c (Fregister_code_conversion_map):
24639 * keyboard.c (append_tool_bar_item): Reformat last change.
24640
24641 * lisp.h (eabs): Rename from `abs'. All callers changed.
24642
246432007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24644
24645 * buffer.c (add_overlay_mod_hooklist):
24646 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24647 * fontset.c (make_fontset):
24648 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24649 (append_tool_bar_item):
24650 * macmenu.c (grow_menu_items):
24651 * w32menu.c (grow_menu_items):
24652 * xmenu.c (grow_menu_items): Use larger_vector.
24653
246542007-10-13 Eli Zaretskii <eliz@gnu.org>
24655
24656 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24657 selected frame'' on MSDOS).
24658
246592007-10-12 Martin Rudalics <rudalics@gmx.at>
24660
24661 * frame.c (Qexplicit_name): New variable.
24662 (x_report_frame_params): Report it in parameter alist.
24663 (syms_of_frame): Intern and staticpro it.
24664
246652007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24666
24667 * macfns.c (x_create_tip_frame): Set terminal for frame.
24668
246692007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24670
24671 * frame.c (Qenvironment): Remove.
24672 (syms_of_frame) <Qenvironment>: Don't initialize.
24673 (Fdelete_frame): Don't treat the `environment' param specially.
24674 * frame.h (Qenvironment): Don't declare.
24675 * callproc.c (set_initial_environment): Don't set unused frame param.
24676
24677 * frame.c (Fframe_with_environment): Remove.
24678 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24679
24680 * lisp.h (Fframe_with_environment): Don't declare.
24681
246822007-10-10 Juanma Barranquero <lekktu@gmail.com>
24683
24684 * indent.c (indent_tabs_mode, last_known_column)
24685 (last_known_column_modified): Make static.
24686 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24687
246882007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24689
24690 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24691
246922007-10-09 Jason Rumney <jasonr@gnu.org>
24693
24694 * w32term.c (x_set_window_size): Disable code that attempts to tell
24695 Lisp code about a size change before it actually happens.
24696
246972007-10-09 Richard Stallman <rms@gnu.org>
24698
24699 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24700 return HANDLED_RETURN.
24701
247022007-10-08 Martin Rudalics <rudalics@gmx.at>
24703
24704 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24705 when there's an unread command event.
24706
24707 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24708 window autoselection act appropriately when leaving selected frame.
24709 (syms_of_frame): Initialize focus_follows_mouse.
24710 * frame.h (focus_follows_mouse): Extern it.
24711 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24712 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24713 * msdos.c (dos_rawgetc): Likewise.
24714 * w32term.c (w32_read_socket): Likewise.
24715 * xterm.c (handle_one_xevent): Likewise.
24716 * xdisp.c (syms_of_xdisp): In doc-string of
24717 mouse-autoselect-window mention focus-follows-mouse.
24718
247192007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24720
24721 * macterm.c (mac_load_query_font): Fix missing return value.
24722 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24723 Add BLOCK_INPUT.
24724
247252007-10-08 Richard Stallman <rms@gnu.org>
24726
24727 * xdisp.c (get_window_cursor_type): Implement documented behavior
24728 for cursor-in-non-selected-windows = t.
24729
247302007-10-08 Jason Rumney <jasonr@gnu.org>
24731
24732 * w32.c (w32_get_resource): Always close registry keys.
24733
247342007-10-08 Jason Rumney <jasonr@gnu.org>
24735
24736 * makefile.w32-in (LIBS): Add COMCTL32.
24737
24738 * w32fns.c (globals_of_w32fns): Init common controls.
24739
247402007-10-08 Richard Stallman <rms@gnu.org>
24741
24742 * image.c (our_memory_buffer): Rename from omfib_buffer.
24743
247442007-10-08 Richard Stallman <rms@gnu.org>
24745
24746 * buffer.c (Foverlays_at): Doc fix.
24747
247482007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24749
24750 * fns.c (Fplist_put): Preserve uneven tail data.
24751
247522007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24753
24754 * termhooks.h (enum event_kind): Remove trailing comma.
24755
24756 * frame.h (enum): Remove trailing comma.
24757
247582007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24759
24760 * w32proc.c (delete_child): Don't terminate threads of zombies.
24761
247622007-10-08 Martin Rudalics <rudalics@gmx.at>
24763
24764 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24765
24766 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24767 last-repeatable-command.
24768 (init_kboard): Initialize Vlast_repeatable_command.
24769 (command_loop_1): Set it to real_this_command unless that was
24770 bound to an input event.
24771 (mark_kboards): Mark it.
24772
247732007-10-08 Richard Stallman <rms@gnu.org>
24774
24775 * eval.c (condition-case): Doc fix.
24776
247772007-10-08 Masatake YAMATO <jet@gyve.org>
24778
24779 * xfaces.c (tty_supports_face_attributes_p): Fix code
24780 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24781 was copied and not edited.
24782
247832007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24784
24785 Add new `input-decode-map' keymap and use it for terminal
24786 escape sequences.
24787 * keyboard.h (struct kboard): Add Vinput_decode_map.
24788 Remove Vlocal_key_translation_map.
24789 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24790 (init_kboard): Init input-decode-map.
24791 Replace local-key-translation-map back with key-translation-map.
24792 (syms_of_keyboard): Declare input-decode-map.
24793 Remove local-key-translation-map. Update docstrings.
24794 (mark_kboards): Mark Vinput_decode_map.
24795 Don't mark Vlocal_key_translation_map.
24796 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24797 Replace local-key-translation-map back with key-translation-map.
24798 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24799 Bind in input-decode-map rather than function-key-map.
24800
24801 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24802 This was made redundant by the previous introduction of XSETPVECTYPE.
24803
248042007-10-09 Richard Stallman <rms@gnu.org>
24805
24806 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24807
248082007-09-29 Richard Stallman <rms@gnu.org>
24809
24810 * eval.c (internal_condition_case_2, internal_condition_case_1)
24811 (internal_condition_case): Reenable abort if x_catching_errors ()
24812 to see if that really happens and why.
24813
248142007-10-06 Andreas Schwab <schwab@suse.de>
24815
24816 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24817
248182007-10-04 Juanma Barranquero <lekktu@gmail.com>
24819
24820 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24821
248222007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24823
24824 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24825
248262007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24827
24828 * window.h (struct window):
24829 * window.c (struct save_window_data, struct saved_window):
24830 * termhooks.h (struct terminal):
24831 * process.h (struct Lisp_Process):
24832 * frame.h (struct frame):
24833 * buffer.h (struct buffer):
24834 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24835 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24836 The size field of (pseudo)vectors is now unsigned.
24837 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24838
24839 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24840 Turn `count' into an integer.
24841
24842 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24843 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24844 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24845 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24846 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24847
24848 * alloc.c (allocate_pseudovector): New fun.
24849 (ALLOCATE_PSEUDOVECTOR): New macro.
24850 (allocate_window, allocate_terminal, allocate_frame)
24851 (allocate_process): Use it.
24852 (mark_vectorlike): New function.
24853 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24854 (mark_terminals): Use it.
24855 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24856 (Fmake_byte_code): Use XSETPVECTYPE.
24857
24858 * frame.c (Fframe_parameters): Minor simplification.
24859
24860 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24861
24862 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24863
24864 * buffer.c (Fget_buffer_create, init_buffer_once):
24865 * lread.c (defsubr):
24866 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24867
24868 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24869 defined differently in the m/*.h files.
24870 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24871 (XSETPVECTYPE): New macro.
24872 (XSETPSEUDOVECTOR): Use it.
24873
24874 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24875 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24876
24877 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24878 * lread.c (defvar_per_buffer):
24879 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24880
24881 * window.c (candidate_window_p): Only consider as visible frames that
24882 are on the same terminal.
24883
24884 * m/ibms390x.h (MARKBIT): Remove unused macro.
24885
248862007-10-01 Juanma Barranquero <lekktu@gmail.com>
24887
24888 * lread.c (Fload): Fix typo in docstring.
24889
248902007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24891
24892 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24893 of a non-zero value can't yield zero.
24894
248952007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24896
24897 * term.c (term_clear_mouse_face, term_mouse_highlight)
24898 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24899
24900 * print.c (safe_debug_print): Use XHASH.
24901
24902 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24903 Lisp elements such as tags.
24904 (XHASH): New macro.
24905 (EQ): Use it.
24906 (SREF, SSET, STRING_COPYIN): Use SDATA.
24907 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24908
24909 * alloc.c (mark_terminal): Remove left-over declaration.
24910 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24911 (allocate_vectorlike): Remove type argument. Adjust callers.
24912 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24913 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24914
24915 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24916 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24917 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24918 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24919 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24920 Use them.
24921
24922 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24923 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24924 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24925
249262007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24927
24928 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24929 loaded by default.
24930
249312007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24932
24933 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24934 on this tty.
24935 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24936
24937 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24938 Update all users.
24939 (handle_one_term_event): Use Gpm_DrawPointer.
24940 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24941 Signal errors instead of returning nil. Always return nil.
24942 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24943 Make it a noop if gpm-mouse was not activated.
24944 (syms_of_term): Update names.
24945
249462007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24947
24948 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24949 (init_sys_modes): Check that gpm_tty is the current tty.
24950
24951 * alloc.c (allocate_terminal): Set the vector size to only count the
24952 lisp fields. Initialize those to nil.
24953 (mark_object): Don't treat terminals specially.
24954 (mark_terminal): Remove.
24955 (mark_terminals): Use mark_object instead.
24956
24957 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24958 the GC to the beginning.
24959
24960 * indent.h:
24961 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24962
24963 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24964
249652007-09-25 Jason Rumney <jasonr@gnu.org>
24966
24967 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24968
24969 * w32console.c (create_w32cons_output): Remove.
24970
24971 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24972
24973 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24974 (reset_sys_modes): Use reset_terminal_modes_hook.
24975
249762007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
24977
24978 * eval.c (do_autoload): Don't output any message.
24979
249802007-09-24 Juri Linkov <juri@jurta.org>
24981
24982 * emacs.c (standard_args): Change priority of "--no-splash"
24983 from 40 to 3. Add "--no-desktop" with the same priority.
24984
249852007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
24986
24987 * alloc.c (gc_sweep): Check cons cell mark bits word by word
24988 and optimize the case where they are all 1.
24989
249902007-09-23 Johannes Weiner <hannes@saeurebad.de>
24991
24992 * lisp.h (abs): Define if not defined.
24993 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
24994 Don't define `abs', since it's defined in lisp.h.
24995
249962007-09-22 Eli Zaretskii <eliz@gnu.org>
24997
24998 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
24999 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25000 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25001 (init_tty): Use DEV_TTY instead of "/dev/tty".
25002 [WINDOWSNT]: No need to protect from NAME arg being null.
25003
250042007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25005
25006 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25007 up the tty state.
25008
250092007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25010
25011 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25012 (gpm_tty): Change its type.
25013 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25014 (gpm_tty): Change its type and initialize it.
25015 (Fterm_open_connection): Check the frame is indeed a tty.
25016 Use the new gpm_tty.
25017 (Fterm_close_connection): Use the new gpm_tty.
25018 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25019 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25020
250212007-09-21 Juanma Barranquero <lekktu@gmail.com>
25022
25023 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25024 underline_color, to draw strike-through.
25025
250262007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25027
25028 * lisp.h (allocate_terminal): Declare.
25029
25030 * window.c (candidate_window_p): Consider frames that are being placed
25031 by the user as somewhere between visible and iconified.
25032 (window_loop): Prefer windows on the current frame.
25033 (Fselect_window): Move the use of select-frame to the beginning so we
25034 can just delegate all the work (it'll call us back anyway).
25035
25036 * frame.c (Qdisplay_environment_variable):
25037 * frame.h (Qdisplay_environment_variable): Delete.
25038
25039 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25040 of the first arg, since that value may be a union.
25041
25042 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25043 parameter rather than Qdisplay_environment_variable. If all else
25044 fails, look for DISPLAY in initial-environment.
25045
250462007-09-21 Glenn Morris <rgm@gnu.org>
25047
25048 * Makefile.in (emacstool): Remove target.
25049 (lisp, shortlisp): Remove termdev.elc.
25050
250512007-09-21 Markus Triska <markus.triska@gmx.at>
25052
25053 * xterm.c (x_delete_display): Compile session management conditionally.
25054
250552007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25056
25057 * callproc.c (getenv_internal_1): New function.
25058 (getenv_internal): Use it.
25059 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25060
25061 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25062 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25063 (Fset_terminal_parameter): Work with dead terminals as well.
25064 (Fmodify_terminal_parameters): Remove.
25065
25066 * terminal.c (get_terminal): Handle terminals.
25067 Make sure the terminal returned is live.
25068 (create_terminal): Use allocate_terminal.
25069 (mark_terminals): Move to alloc.c.
25070 (delete_terminal): Use terminal->name as liveness status.
25071 NULL out fields after freeing their contents.
25072 Don't deallocate the object.
25073 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25074 rather than an int.
25075 (Fterminal_live_p): Accept non-integer arguments.
25076 (Fterminal_list): Return terminal objects rather than an ints.
25077
25078 * alloc.c (enum mem_type): New member for `terminal' objects.
25079 (allocate_terminal): New function.
25080 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25081 Handle terminals.
25082 (mark_terminal): New fun.
25083 (mark_terminals): Move from terminal.c.
25084
25085 * term.c (get_tty_terminal): Don't treat output_initial specially.
25086 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25087 (delete_tty): Use terminal->name as liveness status.
25088
25089 * termhooks.h (struct terminal): Make it into a pseudovector.
25090 Remove `deleted' replaced by checking `name's nullness.
25091
25092 * print.c (print_object): Handle terminals.
25093
25094 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25095 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25096
25097 * frame.c (make_terminal_frame):
25098 * keyboard.c (tty_read_avail_input):
25099 * w32term.c (x_delete_terminal):
25100 * xfns.c (Fx_create_frame, x_create_tip_frame):
25101 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25102
251032007-09-20 Glenn Morris <rgm@gnu.org>
25104
25105 * process.c (Fmake_network_process): Doc fix.
25106
251072007-09-19 Jason Rumney <jasonr@gnu.org>
25108
25109 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25110
251112007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25112
25113 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25114 Fix a C warning regarding variable constness.
25115
25116 * xterm.c (handle_one_xevent): Fix a C warning.
25117
251182007-09-18 Jason Rumney <jasonr@gnu.org>
25119
25120 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25121
251222007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25123
25124 * gtkutil.c (gdpy_def): New variable.
25125 (xg_initialize): Initialize gdpy_def.
25126 (xg_display_close): If no other display exists, set gdpy_def to a
25127 new connection.
25128
251292007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25130
25131 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25132 when we have no file name for the icon.
25133 (xg_tool_bar_expose_callback): Remove.
25134 (xg_create_tool_bar): Don't connect expose signal to
25135 xg_tool_bar_expose_callback.
25136 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25137
251382007-09-16 Andreas Schwab <schwab@suse.de>
25139
25140 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25141 values instead of zapping them.
25142
251432007-09-14 Glenn Morris <rgm@gnu.org>
25144
25145 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25146 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25147 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25148 scope and rename to omfib_buffer for clarity.
25149 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25150
251512007-09-14 Kenichi Handa <handa@m17n.org>
25152
25153 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25154
251552007-09-13 Jason Rumney <jasonr@gnu.org>
25156
25157 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25158
25159 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25160
25161 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25162 (mac_term_init): Call here instead, passing rif.
25163
251642007-09-13 Glenn Morris <rgm@gnu.org>
25165
25166 * s/hpux.h: No longer define `static' as nothing.
25167
251682007-09-13 Johan Bockgård <bojohan@gnu.org>
25169
25170 * callint.c (Fcall_interactively): Remove unused var `fun'.
25171
251722007-09-12 Romain Francoise <romain@orebokech.com>
25173
25174 * window.c (prefer_window_split_horizontally, display_buffer):
25175 Revert 2007-09-08 change.
25176
251772007-09-12 Glenn Morris <rgm@gnu.org>
25178
25179 * alloca.c: Remove file.
25180 * Makefile.in (alloca): Do not undef.
25181 (allocaobj, alloca.o): Remove.
25182 (otherobj): Remove allocaobj.
25183 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25184 * regex.c (C_ALLOCA): Remove all references and code that was only
25185 used when this was defined.
25186 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25187 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25188 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25189
25190 * Makefile.in (SOURCES, unlock, relock): Delete.
25191
25192 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25193 (menu_grab_callback): All uses changed.
25194
25195 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25196 (x_reply_selection_request): All uses changed.
25197
251982007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25199
25200 * lread.c (load_warn_old_style_backquotes): Change message to look
25201 better when it appears in the middle of byte-compiler messages.
25202
252032007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25204
25205 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25206
25207 * xterm.c (x_create_terminal): Add comment.
25208
25209 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25210
252112007-09-10 Richard Stallman <rms@gnu.org>
25212
25213 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25214
252152007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25216
25217 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25218 (DEFUN): Document `intspec', use it instead of `prompt'.
25219
25220 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25221
25222 * data.c (Finteractive_form): If the interactive specification starts
25223 with a `(', use it as a Lisp form.
25224
25225 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25226 name and file modes.
25227
25228 * callint.c (Fcall_interactively): Comment fixes.
25229
252302007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25231
25232 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25233 and compiled functions.
25234
252352007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25236
25237 * window.c (prefer_window_split_horizontally): New variable.
25238 (display_buffer): Consider splitting window horizontally depending
25239 on prefer_window_split_horizontally.
25240
252412007-09-08 Eli Zaretskii <eliz@gnu.org>
25242
25243 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25244
252452007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25246
25247 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25248
25249 * frame.c (x_set_frame_parameters): Check number is positive before
25250 using XFASTINT.
25251
25252 * window.c (freeze_window_start): Don't presume selected_window holds
25253 a window object.
25254 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25255
252562007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25257
25258 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25259
252602007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25261
25262 * window.c (Vsplit_window_preferred_function): New var.
25263 (Fdisplay_buffer): Use it.
25264 (syms_of_window): Export, and initialize it.
25265
252662007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25267
25268 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25269
252702007-09-06 Glenn Morris <rgm@gnu.org>
25271
25272 * gtkutil.c (menu_grab_callback) <cnt>:
25273 * xselect.c (x_reply_selection_request) <cnt>: Move static
25274 variable to file scope.
25275
252762007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25277
25278 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25279 consistent values of selected_frame and selected_window.
25280
252812007-09-04 Jason Rumney <jasonr@gnu.org>
25282
25283 * w32console.c (initialize_w32_display): Zero unused hooks.
25284
252852007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25286
25287 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25288 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25289
252902007-09-04 Jason Rumney <jasonr@gnu.org>
25291
25292 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25293 in w32console.c. Set up input. Remove XXX comments that have been
25294 confirmed as correct.
25295
25296 * s/ms-w32.h (MULTI_KBOARD): Define.
25297
25298 * w32console.c (one_and_only_w32cons): Remove.
25299 (initialize_w32_display): Take terminal argument.
25300
25301 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25302 initialize_w32_display.
25303 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25304
25305 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25306
25307 * keyboard.c (discard_mouse_events): Discard it.
25308 (make_lispy_event): Translate it to a lisp event.
25309 (lispy_wheel_names): Add wheel-left and right events.
25310 (syms_of_keyboard): Enlarge wheel_syms.
25311
25312 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25313 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25314
25315 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25316
25317 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25318 from WM_MOUSEHWHEEL.
25319 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25320
25321 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25322 terminal.
25323
25324 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25325 keyboard for the terminal.
25326
253272007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25328
25329 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25330 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25331 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25332 and resume-tty-function to resume-tty-hook.
25333 (Fsuspend_tty, Fresume_tty): Use new names.
25334
253352007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25336
25337 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25338 if it starts with "n:".
25339
253402007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25341
25342 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25343
253442007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25345
25346 * frame.h:
25347 * frame.c (Qterm_environment_variable): Remove.
25348 (syms_of_frame): Don't init and staticpro it.
25349
25350 * callproc.c (getenv_internal): Remove special case for $TERM.
25351
25352 * callproc.c (Vinitial_environment): New variable.
25353 (set_initial_environment): Initialize it.
25354 (syms_of_callproc): Declare it.
25355 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25356 TERM under which a process runs is never related to the TERM in which
25357 Emacs is running.
25358
253592007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25360
25361 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25362 * s/darwin.h: ... do it here.
25363
253642007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25365
25366 * lisp.h (set_initial_environment): Rename from set_global_environment.
25367
25368 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25369 removed by mistake on the multi-tty branch.
25370
25371 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25372 (Fmodify_frame_parameters): Return a value.
25373
25374 * image.c (png_load): Comment-out var only used in commented-out code.
25375
25376 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25377 before passing it to mark_object.
25378
25379 * xfaces.c (internal_resolve_face_name): Return a value.
25380 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25381
25382 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25383 (x_icon): Comment-out var only used in commented-out code.
25384
253852007-08-29 Romain Francoise <romain@orebokech.com>
25386
25387 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25388 QUIT hasn't been provided.
25389
253902007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25391
25392 * callproc.c (child_setup, getenv_internal): Use the
25393 display-environment-variable and term-environment-variable frame params.
25394 (set_initial_environment): Initialise Vprocess_environment.
25395
25396 * config.in: Disable multi-keyboard support on a mac.
25397
25398 * frame.c (Qterm_environment_variable)
25399 (Qdisplay_environment_variable): New variables.
25400 (syms_of_frame): Intern and staticpro them.
25401 (Fmake_terminal_frame): Disable output method test.
25402
25403 * frame.h: Declare them here.
25404
25405 * macfns.c (x_set_mouse_color): Get rif from the frame.
25406 (x_set_tool_bar_lines): Don't use updating_frame.
25407 (mac_window): Add 2 new parameters for consistency with other systems.
25408 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25409 frame parameters following what is done in X11 and w32. Don't use
25410 FRAME_MAC_DISPLAY_INFO.
25411 (Fx_open_connection, start_hourglass): Remove window-system check.
25412 (x_create_tip_frame): Get the keyboard from the terminal.
25413
25414 * macmenu.c: Reorder includes.
25415 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25416
25417 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25418 terminal parameter.
25419 (x_clear_frame): Add a frame parameter.
25420 (note_mouse_movement): Get rif from the frame.
25421 (mac_term_init): Initialize the terminal.
25422 (mac_initialize): Make static and move terminal initialization ...
25423 (mac_create_terminal): ... to this new function.
25424
25425 * macterm.h (struct mac_display_info): Add terminal.
25426 (mac_initialize): Delete declaration.
25427
25428 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25429
25430 * sysdep.c: Comment out text after #endif.
25431
25432 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25433 is defined. Better initialize ttys in windows. Use terminal
25434 specific mouse_position_hook.
25435
25436 * termhooks.h (union display_info): Add mac_display_info.
25437
25438 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25439 Set the default minibuffer frame, window_system and the rest of the
25440 frame parameters following what is done in X11.
25441
25442 * w32term.c (w32_initialize): Make static.
25443
25444 * xselect.c (x_handle_selection_clear): Only access
25445 terminal->kboard when MULTI_KBOARD is defined.
25446
25447 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25448 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25449
254502007-08-29 Jason Rumney <jasonr@gnu.org>
25451
25452 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25453 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25454
25455 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25456 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25457
25458 * keyboard.c (restore_kboard_configuration): Only define when
25459 MULTI_KBOARD defined.
25460
25461 * makefile.w32-in: Update dependancies from Makefile.in.
25462 (OBJ1): Add terminal.$(O)
25463
25464 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25465 Don't define function body.
25466 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25467
25468 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25469
25470 * w32.c (request_sigio, unrequest_sigio): Remove.
25471
25472 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25473 (w32con_clear_frame, w32con_clear_end_of_line)
25474 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25475 (w32con_delete_glyphs, w32con_set_terminal_window)
25476 (scroll_line, w32_sys_ring_bell): Add frame arg.
25477 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25478 Add terminal arg.
25479 (PICK_FRAME): Remove.
25480 (w32con_write_glyphs): Use frame specific terminal coding.
25481 (one_and_only_w32cons): New global variable.
25482 (initialize_w32_display): Use it for storing hooks.
25483 (create_w32cons_output): New function.
25484
25485 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25486 arg a frame.
25487
25488 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25489 Set window_system.
25490 (x_set_tool_bar_lines): Don't use updating_frame.
25491 (Fx_create_frame): Set terminal and ref count.
25492 (Fx_open_connection): Remove window-system check.
25493
25494 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25495
25496 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25497 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25498 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25499 Add frame arg.
25500 (x_delete_terminal, w32_create_terminal): New functions.
25501 (w32_term_init): Create a terminal.
25502 (w32_initialize): Move terminal specific initialization to
25503 w32_create_terminal.
25504
25505 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25506 (w32_clear_rect, w32_clear_area): Use background from frame.
25507 (w32_display_info): Add terminal.
25508 (w32_sys_ring_bell, x_delete_display): Declare here.
25509
25510 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25511
25512 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25513
255142007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25515
25516 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25517 Fix get_named_tty calls for the controlling tty.
25518
255192007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25520
194d44e7 25521 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25522
255232007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25524
25525 * term.c (tty_insert_glyphs): Add missing first parameter.
25526
255272007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25528
25529 * buffer.c (Fbuffer_list, Fbury_buffer):
25530 Take frame->buried_buffer_list into account.
25531
25532 * cm.c (current_tty): New variable, for cmputc().
25533 (cmputc): Use it.
25534 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25535 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25536 (cmgoto): Add tty parameter. Pass it on to calccost().
25537 Use emacs_tputs() instead of tputs().
25538
25539 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25540 tputs().
25541 (current_tty): New variable, for cmputc().
25542 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25543
25544 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25545 (internal_condition_case, internal_condition_case_1)
25546 (internal_condition_case_2): Don't abort when x_catching_errors.
25547
25548 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25549 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25550 prevent crashes caused by bogus longjmps in read_char.
25551
25552 * keymap.h (Fset_keymap_parent): Add EXFUN.
25553
25554 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25555 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25556 Remove redundant definition.
25557
25558 * macfns.c (x_set_mouse_color, x_make_gc):
25559 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25560
25561 * w32term.c (x_free_frame_resources):
25562 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25563 (w32_initialize): Use the accessor macros for terminal characteristics.
25564
25565 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25566 Use the accessor macros for terminal characteristics.
25567 * msdos.c (internal_terminal_init): Use the accessor macros for
25568 terminal characteristics.
25569 (ScreenVisualBell, internal_terminal_init):
25570 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25571
25572 * termopts.h (no_redraw_on_reenter): Declare.
25573
25574 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25575 (mark_terminals, mark_ttys): Declare.
25576 (Fgarbage_collect): Call them.
25577 (mark_object): Mark buried_buffer_list.
25578
25579 * prefix-args.c: Include stdlib.h for exit.
25580
25581 * syssignal.h: Add comment.
25582
25583 * indent.c: Include stdio.h.
25584
25585 * window.h (Vinitial_window_system): Declare.
25586 (Vwindow_system): Delete declaration.
25587
25588 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25589
25590 * image.c (lookup_image): Don't initialize `c' until the xasserts
25591 have been run.
25592
25593 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25594 FRAME_FOREGROUND_PIXEL.
25595
25596 * print.c (print_preprocess): Don't lose print_depth levels while
25597 iterating.
25598
25599 * widget.c (update_from_various_frame_slots):
25600 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25601
25602 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25603 frames.
25604 (window_internal_height): Remove bogus make_number call.
25605 (init_window_once): Call make_terminal_frame with two zero parameters.
25606
25607 * fileio.c (Fread_file_name): Update comment.
25608
25609 * callint.c (Fcall_interactively):
25610 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25611 Make sure it is correctly unwound.
25612
25613 * xsmfns.c (x_session_close): New function.
25614
25615 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25616 Delete declarations.
25617
25618 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25619 (x_output): Remove background_pixel and foreground_pixel fields.
25620 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25621 (x_delete_device, x_session_close): Declare.
25622
25623 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25624 (read_filtered_event): Call `read_char' with a local
25625 `wrong_kboard_jmpbuf'.
25626
25627 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25628 Don't call single_kboard_state. Use FRAME_RIF.
25629
25630 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25631 systems.
25632
25633 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25634 (Fframe_with_environment, Fset_input_meta_mode)
25635 (Fset_quit_char): EXFUN.
25636 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25637 (init_sys_modes, reset_sys_modes): Update prototypes.
25638 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25639
25640 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25641 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25642 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25643 Delete declarations.
25644 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25645 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25646 New declarations.
25647
25648 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25649 already does that during init_display(). Call syms_of_keymap
25650 before syms_of_keyboard. Call `syms_of_terminal'.
25651 Call set_initial_environment, not set_process_environment.
25652 (shut_down_emacs): Call reset_all_sys_modes() instead of
25653 reset_sys_modes().
25654
25655 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25656 (internal_resolve_face_name, resolve_face_name_error): New functions.
25657 (resolve_face_name): Protect against loops and errors thrown by Fget.
25658 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25659 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25660
25661 * scroll.c: Replace CURTTY() with local variables throughout the
25662 file (where applicable).
25663 (calculate_scrolling, calculate_direct_scrolling)
25664 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25665 characteristics.
25666
25667 * keymap.c (Vfunction_key_map): Remove.
25668 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25669 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25670 (Vkey_translation_map): Remove.
25671 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25672 (Fdescribe_buffer_bindings)
25673 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25674 Update for terminal-local key-translation-map.
25675
25676 * Makefile.in (callproc.o): Update dependencies.
25677 (lisp, shortlisp): Add termdev.elc.
25678 (obj): Add terminal.o.
25679 (terminal.o): Add dependencies.
25680 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25681 (data.o, fns.o): Add termhooks.h dependency.
25682 (SOME_MACHINE_LISP): Add dnd.elc.
25683 (minibuf.o): Fix typo.
25684 Update dependencies.
25685
25686 * data.c (do_symval_forwarding, store_symval_forwarding)
25687 (find_symbol_value): Use the selected frame's keyboard, not
25688 current_kboard.
25689
25690 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25691 Vwindow_system.
25692
25693 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25694 Fmenu_bar_open.
25695 (syms_of_xmenu): Update defsubr.
25696 (mouse_position_for_popup, Fx_popup_menu)
25697 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25698 (set_frame_menubar, free_frame_menubar)
b97439ce 25699 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25700 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25701 an X frame.
25702
25703 * xselect.c (x_own_selection): Abort if not an X frame.
25704 (some_frame_on_display): Check if it is an X frame.
25705 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25706
25707 * coding.c: Include frame.h and termhooks.h.
25708 (terminal_coding, keyboard_coding): Delete.
25709 (Fset_terminal_coding_system_internal)
25710 (Fset_keyboard_coding_system_internal)
25711 (Fkeyboard_coding_system)
25712 (Fterminal_coding_system): Add a terminal parameter.
25713 Get terminal_coding from the terminal.
25714 (init_coding_once): Don't call setup_coding_system here.
25715
25716 * dispextern.h (set_scroll_region, turn_off_insert)
25717 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25718 (tty_clear_end_of_line, tty_setup_colors)
25719 (delete_tty, updating_frame)
25720 (produce_special_glyphs, produce_glyphs, write_glyphs)
25721 (insert_glyphs): Remove.
25722 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25723 (tty_turn_off_highlight, get_tty_size): Add declaration.
25724 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25725
25726 * frame.h (enum output_method): Add output_initial.
25727 (struct x_output): Delete.
25728 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25729 Access foreground_pixel and background_pixel directly from the frame.
25730 (tty_display): Delete.
25731 (struct frame): Add buried_buffer_list, foreground_pixel,
25732 background_pixel and terminal. Delete kboard.
25733 (union output_data): Add tty.
25734 (FRAME_KBOARD): Get the kboard from the terminal.
25735 (FRAME_INITIAL_P): New macro.
25736 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25737 (Qterm_environment_variable, Qdisplay_environment_variable)
25738 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25739 New declarations.
25740
25741 * termchar.h (tty_output, tty_display_info): New structures.
25742 (tty_list): Declare.
25743 (FRAME_TTY, CURTTY): New macros.
25744 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25745 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25746 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25747 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25748
25749 * callproc.c: Include frame.h and termhooks.h, for terminal
25750 parameters.
25751 (add_env): New function.
25752 (child_setup): Use it.
25753 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25754 (getenv_internal): Fix get_terminal_param call.
25755 (Fgetenv_internal, egetenv): Update doc.
25756 (syms_of_callproc): Initialize Vprocess_environment to nil.
25757 Register and initialize them. Remove obsolete defvars. Update doc
25758 strings.
25759 (child_setup): Handle Vlocal_environment_variables.
25760 (getenv_internal): Add terminal parameter.
25761 Handle Vlocal_environment_variables.
25762 (Fgetenv_internal): Add terminal parameter.
25763 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25764 environment in a frame (not terminal) parameter. Update doc strings.
25765 (set_initial_environment): Rename from set_global_environment.
25766 Store Emacs environment in initial frame parameter.
25767
25768 * xdisp.c (redisplay_internal): Update references to
25769 `previous_terminal_frame'.
25770 (display_mode_line, Fformat_mode_line): Replace calls to
25771 `push_frame_kboard' with `push_kboard'.
25772 (get_glyph_string_clip_rects): Add extra parentheses and
25773 braces to prevent compiler warnings.
25774 (calc_pixel_width_or_height): Add xassert to check that the
25775 frame is alive. Don't call `lookup_image' on a termcap frame.
25776 (message2_nolog, message3_nolog, redisplay_internal)
25777 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25778 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25779 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25780 (Fx_display_pixel_width, Fx_display_pixel_height)
25781 (Fx_display_planes, Fx_display_color_cells)
25782 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25783 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25784 (Fx_display_backing_store, Fx_display_visual_class)
25785 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25786 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25787
25788 * xfns.c (x_set_foreground_color x_set_background_color)
25789 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25790 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25791 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25792 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25793 terminal that is being deleted.
25794 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25795 frame parameter, and make sure it overrides any user-supplied setting.
25796 (Fx_close_connection, Fx_synchronize): Unify argument names with
25797 the rest of the DEFUNs.
25798
25799 * dispnew.c (Fsend_string_to_terminal): Update call to
25800 `get_tty_terminal'.
25801 (Fredraw_frame, Fsend_string_to_terminal)
25802 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25803 FRAME_TERMCAP_P and FRAME_TTY.
25804 (window_change_signal): Don't believe width/height values that are
25805 impossibly small.
25806 (Vinitial_window_system): Rename from Vwindow_system.
25807 (termscript, Wcm, rif): Delete.
25808
25809 * termhooks.h (struct terminal): New struct containing the
25810 previously global text display hooks and new members NAME,
25811 DELETED and PARAM_ALIST.
25812 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25813 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25814 (FRAME_RIF): New macros.
25815 (get_terminal_param, get_device): New declarations.
25816 (termscript): Delete declaration.
25817
25818 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25819 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25820 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25821 FRAME_FOREGROUND_PIXEL.
25822 (x_fully_uncatch_errors): Disable definition.
25823 (x_scroll_bar_expose): Fix reference to foreground pixel.
25824 (XTread_socket): Disable loop on all X displays.
25825 (x_delete_terminal): Don't set terminal->deleted and let
25826 delete_terminal delete the frames on the terminal.
25827 (x_delete_display): Doc update to reflect changes in
25828 delete_terminal.
25829 (x_display_info) <terminal>: Move member earlier in the struct.
25830 (deleting_tty): Remove old variable.
25831 (Fsuspend_tty): Call clear_tty_hooks.
25832 (Fresume_tty, init_tty): Call set_tty_hooks.
25833 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25834 errors on X frames.
25835 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25836 (handle_one_xevent): Initialize `f' to NULL.
25837 (x_delete_terminal, x_create_terminal): New functions.
25838 (XTset_terminal_modes, XTreset_terminal_modes)
25839 (XTread_socket, x_connection_closed, x_term_init)
25840 (x_term_init, x_delete_display): Add terminal parameter.
25841 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25842 X connections.
25843
25844 * frame.c: Include termchar.h.
25845 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25846 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25847 (Qdisplay_environment_variable): New vars.
25848 (Fframep): Deal with output_initial.
25849 (Fframe-live-p): Doc fix.
25850 (Fwindow-system): New function.
25851 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25852 (make_terminal_frame): Don't create frames on a terminal that is
25853 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25854 (store_frame_param): Check for found_for_frame before calling XFRAME.
25855 (Fmake_terminal_frame): Handle NULL tty names correctly.
25856 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25857 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25858 frames to refer to a deleted frame in their 'environment parameter.
25859 (Fframe_with_environment): New function.
25860 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25861 (get_future_frame_param): New function.
25862 (Fmake_terminal_frame): Use it.
25863 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25864
25865 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25866 * sysdep.c (reset_sys_modes): Update for renames.
25867
25868 * keyboard.c (tty_read_avail_input): New function.
25869 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25870 (syms_of_keyboard): Defsubr them.
25871 (Fset_input_meta_mode, Fset_quit_char): New functions.
25872 (Fset_input_mode): Split to above functions.
25873 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25874 parameter. Use it in call to `read_char'.
25875 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25876 Set wrong_kboard_jmpbuf correctly in recursive calls.
25877 Use current_kboard to access Vkeyboard_translate_table.
25878 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25879 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25880 Update longjmp invocations. Remember the original current_kboard,
25881 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25882 changes it. Comment out unnecessary calls to
25883 `record_single_kboard_state' and `any_kboard_state'.
25884 Update recursive calls.
25885 (wrong_kboard_jmpbuf): Remove global variable.
25886 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25887 Handle deleted interrupted_kboards correctly; that is a legal
25888 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25889 and read_char calls. Abort if interrupted_kboard died in read_char.
25890 (any_kboard_state, single_kboard_state)
25891 (push_frame_kboard): Remove function.
25892 (pop_kboard): Switch out of single_kboard mode if the kboard has
25893 been deleted. Remove unused variable. Help debugging by not
25894 changing current_kboard unnecessarily. Set current_kboard to the
25895 kboard of the selected frame when the stored kboard object has
25896 been deleted before pop_kboard.
25897 (temporarily_switch_to_single_kboard): Change first parameter to a
25898 frame pointer. Throw an error when caller wants to change kboards
25899 while in single_kboard mode. Don't push_kboard if we weren't in
25900 single kboard state. Don't pop_kboard if we popped into any
25901 kboard state.
25902 (restore_kboard_configuration): Abort if pop_kboard changed the
25903 kboard in single_kboard mode. Call pop_kboard only after setting
25904 up single_kboard mode.
25905 (Frecursive_edit): Switch to single_kboard mode only in nested
25906 command loops.
25907 (cmd_error, command_loop, command_loop_1, timer_check):
25908 Comment out unnecessary call to `any_kboard_state' and
25909 `record_single_kboard_state'.
25910 (delete_kboard): Exit single_kboard mode if we have just deleted
25911 that kboard. Use FRAME_KBOARD.
25912 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25913 `fatal_error_signal'.
25914 (record_single_kboard_state): Don't push_kboard if we weren't in
25915 single kboard state. Don't pop_kboard if we popped into any
25916 kboard state.
25917 (push_frame_kboard): Rename to push_kboard.
25918 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25919 (read_avail_input): Read input from all terminals.
25920 (mark_kboards): Also mark Vkeyboard_translate_table.
25921 (kbd_buffer_store_event_hold): Simplify condition.
25922 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25923 (Vkeyboard_translate_table): Move to struct kboard.
25924 (init_kboard): Initialize Vkeyboard_translate_table.
25925 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25926 Vkeyboard_translate_table. Update doc strings. Update docs of
25927 local-function-key-map and function-key-map.
25928
25929 * terminal.c: New file.
25930
25931 * term.c: Include errno.h.
25932 (Vring_bell_function, device_list, initial_device)
25933 (next_device_id, ring_bell, update_begin, update_end)
25934 (set_terminal_window, cursor_to, raw_cursor_to)
25935 (clear_to_end, clear_frame, clear_end_of_line)
25936 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25937 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25938 (syms_of_term): Move their initialization to terminal.c.
25939 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25940 (Ftty_display_color_cells)
25941 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25942 (clear_tty_hooks, set_tty_hooks)
25943 (init_tty, maybe_fatal): New functions.
25944 (Ftty_type): Return nil if terminal is not on a tty instead of
25945 throwing an error. Doc update.
25946 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25947 Doc update. Initialize new subrs and variables.
25948 (delete_tty): Use terminal->deleted.
25949 (tty_set_terminal_modes): Rename from set_terminal_modes.
25950 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25951 (set_scroll_region): Rename to `tty_set_scroll_region'.
25952 (turn_on_insert): Rename to `tty_turn_on_insert'.
25953 (turn_off_insert): Rename to `tty_turn_off_insert'.
25954 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25955 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25956 (toggle_highligh): Rename to `tty_toggle_highlight'.
25957 (background_highlight): Rename to `tty_background_highlight'.
25958 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25959 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25960 (tty_set_scroll_region, tty_background_highlight)
25961 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25962 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25963 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25964 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25965 Add static modifier.
25966 (tty_reset_terminal_modes, tty_set_terminal_window)
25967 (tty_set_scroll_region, tty_background_highlight)
25968 (tty_highlight_if_desired, tty_cursor_to)
25969 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25970 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25971 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25972 renames.
25973
259742007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25975
25976 * keyboard.c: Qrtl is new.
25977 (parse_tool_bar_item): Handle :rtl keyword.
25978 (syms_of_keyboard): Intern :rtl keyword.
25979
25980 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
25981
25982 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
25983 so no Lisp code is executed.
25984 (file_for_image, find_rtl_image): New functions.
25985 (xg_get_image_for_pixmap): Use file_for_image.
25986 (update_frame_tool_bar): If direction is RTL, use RTL image if
25987 defined. Use Gtk stock images if defined.
25988
259892007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25990
25991 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
25992 for nonexistent or zero-width glyph in composition glyph.
25993
259942007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
25995
25996 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
25997
25998 * xdisp.c (Finvisible_p): New function.
25999 (syms_of_xdisp): defsubr it.
26000
260012007-08-24 Juanma Barranquero <lekktu@gmail.com>
26002
26003 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26004 Doc fixes.
26005
260062007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26007
26008 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26009
260102007-08-24 Martin Rudalics <rudalics@gmx.at>
26011
26012 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26013 whether decoding has modified buffer contents.
26014
260152007-08-24 Jason Rumney <jasonr@gnu.org>
26016
26017 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26018 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26019 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26020 (init_svg_functions) [HAVE_NTGUI]: New function.
26021 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26022 (svg_load_image): Use them.
26023 (svg_load_image) [HAVE_NTGUI]: Implement background.
26024
260252007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26026
26027 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26028 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26029 (LIBX): Remove @RSVG_LIBS@.
26030 (LIBES): Add $(RSVG_LIBS).
26031
26032 * image.c (svg_load_image): Blend with specified background if exists.
26033 Use IMAGE_BACKGROUND. Add Mac OS Support.
26034
26035 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26036 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26037 Remove macros.
26038 [MAC_OSX] (socket_callback): Do nothing.
26039 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26040 ReceiveNextEvent.
26041 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26042 socket_callback.
26043 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26044
260452007-08-22 Glenn Morris <rgm@gnu.org>
26046
26047 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26048
260492007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26050
26051 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26052
26053 * image.c: Add support for SVG images. Some additional comments
26054 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26055 (svg_image_p): New function to test for SVG image.
26056 (svg_load): New function to load SVG image.
26057 (svg_load_image): New function, helper for svg_load.
26058 (Qsvg): New Lisp_object.
26059 (svg_keyword_index): New enum.
26060 (svg_format): New static `image_keyword' struct.
26061 (svg_type): New static `image_type' struct.
26062 (librsvg/rsvg.h): Include it.
26063
260642007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26065
26066 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26067
260682007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26069
26070 * lread.c (Qold_style_backquotes): New var.
26071 (syms_of_lread): Init and staticpro it.
26072 (load_warn_old_style_backquotes): New fun.
26073 (Fload): Use them to warn about old style backquotes.
26074 (end_of_file_error, Fload): Remove unused vars.
26075
26076 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26077
26078 * lread.c (Vold_style_backquotes): New var.
26079 (syms_of_lread): Init and export it to Elisp.
26080 (read1): Set it when we find an old-style (back)quote.
26081
260822007-08-22 Jason Rumney <jasonr@gnu.org>
26083
26084 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26085
260862007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26087
26088 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26089
260902007-08-19 Richard Stallman <rms@gnu.org>
26091
26092 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26093
260942007-08-19 Andreas Schwab <schwab@suse.de>
26095
26096 * alloc.c (pure): Round PURESIZE up.
26097
260982007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26099
26100 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26101 active frame.
26102
261032007-08-16 Richard Stallman <rms@gnu.org>
26104
26105 * eval.c (Fcommandp): Add parens to clarify.
26106
26107 * minibuf.c (Fall_completions): Use enum for type of table.
26108
26109 * emacs.c (USAGE2): Improve text.
26110
261112007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26112
26113 * term.c (tty_default_color_capabilities): Declare static
26114 variables in file scope, to avoid HPUX compiler problem.
26115
261162007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26117
26118 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26119 to gtk_toolbar_insert.
26120
261212007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26122
26123 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26124
26125 * insdel.c (reset_var_on_error): New fun.
26126 (signal_before_change, signal_after_change):
26127 Use it to reset (after|before)-change-functions to nil in case of error.
26128 Bind inhibit-modification-hooks to t.
26129 Don't bind (after|before)-change-functions to nil while they run.
26130
261312007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26132
26133 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26134 filling pixmap with stippled background.
26135
261362007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26137
26138 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26139 Don't use invisible frame as parent window for repositioning.
26140
261412007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26142
26143 * print.c (new_backquote_output): Rename from old_backquote_output.
26144 (print): Inverse its logic (according to its name) so as to match the
26145 behavior of new_backquote_flag in lread.c.
26146
261472007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26148
26149 * gmalloc.c (posix_memalign): New function.
26150
26151 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26152 ActivateControl/DeactivateControl here.
26153 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26154 frame-notice-user-settings is non-nil.
26155 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26156 for kEventParamFMFontStyle.
26157 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26158 mac_pass_command_to_system and mac_pass_control_to_system here.
26159 (XTread_socket): Call ActivateControl/DeactivateControl here.
26160 (XTread_socket) [TARGET_API_MAC_CARBON]:
26161 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26162 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26163 for window repositioning.
26164
261652007-08-08 Glenn Morris <rgm@gnu.org>
26166
26167 * Replace `iff' in doc-strings and comments.
26168
261692007-08-07 Chong Yidong <cyd@stupidchicken.com>
26170
26171 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26172
261732007-08-07 Martin Rudalics <rudalics@gmx.at>
26174
26175 * fileio.c (Finsert_file_contents): Run format-decode and
26176 after_insert_file_functions on entire buffer when REPLACE is
26177 non-nil and inhibit modification_hooks and point_motion_hooks.
26178 For consistency, run after_insert_file_functions iff something
26179 got inserted. Move signal_after_change and update_compositions
26180 after code running after_insert_file_functions. Make sure that
26181 undo_list doesn't record intermediate steps of the decoding process.
26182
261832007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26184
26185 * emacs.c (main)
26186 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26187 Call malloc_enable_thread on interactive startup.
26188
26189 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26190 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26191 [USE_PTHREAD]: Conditionalize with it.
26192 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26193 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26194 New functions.
26195
261962007-08-06 Chong Yidong <cyd@stupidchicken.com>
26197
26198 * xdisp.c (redisplay_window): When restoring original buffer
26199 position, make sure it is still valid.
26200
26201 * image.c (png_load): Ignore png-supplied background color.
26202
262032007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26204
26205 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26206 Use kCFAbsoluteTimeIntervalSince1970.
26207
26208 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26209 New variable.
26210 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26211 event loop should be quit.
26212 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26213 Quit dialog event loop if quit_dialog_event_loop is set.
26214
26215 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26216 (Selection): New typedef. Use instead of ScrapRef.
26217 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26218 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26219 (mac_clear_selection): Rename from clear_scrap.
26220 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26221 scrap_has_target_type. All uses changed.
26222 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26223 (mac_selection_has_target_p): New functions.
26224 (mac_put_selection_value): Rename from put_scrap_string.
26225 (mac_get_selection_value): Rename from get_scrap_string.
26226 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26227 (put_scrap_private_timestamp, scrap_has_target_type)
26228 (get_scrap_private_timestamp): Remove functions.
26229 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26230 (x_own_selection, x_get_local_selection):
26231 Use mac_valid_selection_value_p.
26232 (x_own_selection): Don't use put_scrap_private_timestamp.
26233 Record OWNERSHIP-INFO into Vselection_alist instead.
26234 (x_get_local_selection): Don't check type if request is local.
26235 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26236 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26237
262382007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26239
26240 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26241 add comment explaining why.
26242
262432007-08-03 Richard Stallman <rms@gnu.org>
26244
26245 * fileio.c (Fvisited_file_modtime): Use make_time.
26246
262472007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26248
26249 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26250 build.
26251
262522007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26253
26254 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26255
262562007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26257
26258 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26259
262602007-07-30 Richard Stallman <rms@gnu.org>
26261
26262 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26263
262642007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26265
26266 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26267
262682007-07-28 Nick Roberts <nickrob@snap.net.nz>
26269
26270 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26271 remote default-directory.
26272
26273 * buffer.c (mode-line-format): Update doc string.
26274
262752007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26276
26277 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26278 scroll bar gap.
26279 (x_scroll_bar_create): Set bar->fringe_extended_p.
26280 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26281 on frame edge. Check fringe background extension. Don't clear
26282 extended fringe background area.
26283
26284 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26285 (w32_fill_area): Enclose multiple statements with do ... while (0).
26286
26287 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26288 Extend fringe background to scroll bar gap.
26289 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26290 Set bar->fringe_extended_p.
26291 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26292 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26293 background extension. Don't clear extended fringe background area.
26294
26295 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26296 New member fringe_extended_p.
26297
262982007-07-25 Glenn Morris <rgm@gnu.org>
26299
26300 * Relicense all FSF files to GPLv3 or later.
26301
26302 * COPYING: Switch to GPLv3.
26303
263042007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26305
26306 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26307
26308 * data.c (Finteractive_form): Check for the presence of an
26309 `interactive-form' symbol property more thoroughly.
26310
26311 * data.c (Finteractive_form): Use an `interactive-form' property if
26312 present, analogous to the function-documentation property.
26313
263142007-07-24 Jason Rumney <jasonr@gnu.org>
26315
26316 * w32fns.c (x_real_positions): Get real position from OS instead of
26317 calculating it.
26318
263192007-07-23 Jason Rumney <jasonr@gnu.org>
26320
26321 * filelock.c (current_lock_owner): Allow for @ sign in username.
26322
263232007-07-22 Nick Roberts <nickrob@snap.net.nz>
26324
26325 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26326 remote default-directory.
26327
26328 * buffer.c (mode-line-format): Describe above case in doc string.
26329
263302007-07-20 Eli Zaretskii <eliz@gnu.org>
26331
26332 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26333 Define if not defined.
26334
263352007-07-18 Jason Rumney <jasonr@gnu.org>
26336
26337 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26338
263392007-07-18 Richard Stallman <rms@gnu.org>
26340
26341 * data.c (Fsetq_default): Doc fix.
26342
26343 * eval.c (Fsetq): Doc fix.
26344
263452007-07-18 Juanma Barranquero <lekktu@gmail.com>
26346
26347 * coding.c (Ffind_operation_coding_system):
26348 * eval.c (For, Fand): Doc fixes.
26349 Reported by Johan Bockgård.
26350
263512007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26352
26353 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26354
26355 * xterm.h: Declare x_ewmh_activate_frame.
26356
26357 * xterm.c (x_ewmh_activate_frame): New function.
26358 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26359
263602007-07-17 Martin Rudalics <rudalics@gmx.at>
26361
26362 * window.c (Fdisplay_buffer): If largest or LRU window is the
26363 only window, split it even if it is not eligible for splitting.
26364 This restores the original behavior broken by the 2007-07-15
26365 change.
26366
263672007-07-17 Glenn Morris <rgm@gnu.org>
26368
26369 * abbrev.c (abbrev_check_chars): New function.
26370 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26371 Call abbrev_check_chars to check abbrev characters are word
26372 constituents. Doc fix.
26373
263742007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26375
26376 * process.c (Fstart_process, Fmake_network_process)
26377 (read_process_output): Fix up last changes.
26378
263792007-07-16 Eli Zaretskii <eliz@gnu.org>
26380
26381 * makefile.w32-in (clean): Don't delete *~.
26382
263832007-07-16 Andreas Schwab <schwab@suse.de>
26384
26385 * window.c (Fdisplay_buffer): Use NILP.
26386 (Fset_window_scroll_bars): Likewise.
26387
263882007-07-15 Martin Rudalics <rudalics@gmx.at>
26389
26390 * window.c (window_min_size_2): New function.
26391 (window_min_size_1, size_window, Fdisplay_buffer)
26392 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26393 windows without mode- or header-lines when window-min-height is
26394 too small.
26395 (size_window): Reset nodelete_p after testing it, following an
26396 earlier note by Kim F. Storm.
26397 (display_buffer): Do not set split_height_threshold to twice the
26398 value of window_min_height to avoid changing the value of a
26399 customizable variable. Rather explicitly check whether the
26400 height of the window that shall be splitted is at least as large
26401 as split_height_threshold.
26402 (Fwindow_full_width_p): New defun.
26403 (syms_of_window): Defsubr it.
26404
26405 * window.h: Add EXFUN for Fwindow_full_width_p.
26406
264072007-07-14 Jason Rumney <jasonr@gnu.org>
26408
26409 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26410
264112007-07-14 Richard Stallman <rms@gnu.org>
26412
26413 * eval.c (maybe_call_debugger): New function.
26414 (find_handler_clause): Use maybe_call_debugger.
26415 Call it when the handler says `debug'.
26416 Eliminate DEBUGGER_VALUE_PTR.
26417 (Fsignal): Eliminate debugger_value.
26418 (Qdebug): New variable.
26419 (syms_of_eval): Initialize it.
26420
264212007-07-14 Juanma Barranquero <lekktu@gmail.com>
26422
26423 * eval.c (Fprogn):
26424 * keyboard.c (Ftrack_mouse):
26425 * print.c (Fwith_output_to_temp_buffer):
26426 * window.c (Fsave_window_excursion): Doc fix.
26427
264282007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26429
26430 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26431
264322007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26433
26434 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26435 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26436 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26437 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26438 Remove unused encoding_carryover.
26439 * process.c: Adjust all functions accordingly.
26440
264412007-07-12 Richard Stallman <rms@gnu.org>
26442
26443 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26444
264452007-07-11 Jason Rumney <jasonr@gnu.org>
26446
26447 * makefile.w32-in (LIBS): Include OLE32.
26448
26449 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26450 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26451
264522007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26453
26454 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26455 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26456 from a Lisp_Object into a bare pointer.
26457 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26458 Adjust the code correspondingly.
26459
26460 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26461
26462 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26463 (term_show_mouse_face): Remove unused var `j'.
26464 (handle_one_term_event): Remove unused vars `i' and `j'.
26465 Don't cast return value of ttyname since it's not necessary.
26466
264672007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26468
26469 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26470 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26471
26472 * fns.c (map_char_table): Use an array of int for `indices' rather than
26473 an array of Lisp_Objects (which are only ever integers anyway).
26474 (Fmap_char_table): Update caller.
26475 * lisp.h: Update prototype.
26476 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26477 * fontset.c (Ffontset_info):
26478 * casetab.c (set_case_table): Update callers.
26479
26480 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26481
26482 * keymap.c (struct accessible_keymaps_data)
26483 (struct where_is_internal_data): New structures.
26484 (accessible_keymaps_1, where_is_internal_1): Use them to change
26485 interface to adhere to the one used by map_keymap.
26486 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26487 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26488
26489 * keymap.h (map_keymap_function_t): More informative prototype.
26490
264912007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26492
26493 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26494 (looking_at_1): Don't change search_regs and last_thing_searched
26495 if `inhibit-changing-match-data' is non-nil.
26496 (string_match_1, search_buffer, set_search_regs): Likewise.
26497 (syms_of_search): Add Lisp level definition for
26498 `inhibit-changing-match-data' and set it to nil.
26499 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26500 start and end of the match, instead of using values in search_regs.
26501
265022007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26503
26504 * minibuf.c (Fcompleting_read): New value `confirm-only'
26505 for `require-match'.
26506
265072007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26508
26509 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26510 part of the 2007-06-27 change to syms_of_fileio.
26511
265122007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26513
26514 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26515 Check WINDOWP before using XWINDOW. Consolidate return statements.
26516
265172007-06-27 Richard Stallman <rms@gnu.org>
26518
26519 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26520
265212007-06-27 Juanma Barranquero <lekktu@gmail.com>
26522
26523 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26524
265252007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26526
26527 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26528 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26529 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26530 (_free_internal, memalign): Use them.
26531 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26532 Initialize to PTHREAD_MUTEX_INITIALIZER.
26533 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26534 (morecore_nolock): Rename from morecore. All uses changed.
26535 Use only nolock versions of internal allocation functions.
26536 (_malloc_internal_nolock, _realloc_internal_nolock)
26537 (_free_internal_nolock): New functions created from
26538 _malloc_internal, _realloc_internal, and _free_internal.
26539 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26540 Copy hook value to automatic variable before its use.
26541 (memalign): Copy hook value to automatic variable before its use.
26542
265432007-06-26 Kenichi Handa <handa@m17n.org>
26544
26545 * coding.c (Ffind_operation_coding_system): Docstring improved.
26546 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26547
265482007-06-25 David Kastrup <dak@gnu.org>
26549
26550 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26551 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26552 cater for additional parameter.
26553
26554 * keymap.h: Adjust number of parameters to `current-active-maps'.
26555
26556 * doc.c (Fsubstitute_command_keys): Adjust call of
26557 `current-active-maps'.
26558
265592007-06-25 David Kastrup <dak@gnu.org>
26560
26561 * callint.c (Fcall_interactively): Make the parsing of interactive
26562 specs somewhat more readable.
26563
265642007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26565
26566 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26567 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26568 if extended background has already been filled.
26569
265702007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26571
26572 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26573 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26574
26575 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26576 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26577 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26578 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26579 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26580 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26581 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26582 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26583 Run timers during dialog popup.
26584 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26585
265862007-06-21 Jason Rumney <jasonr@gnu.org>
26587
26588 * image.c (convert_mono_to_color_image): Swap fore and background.
26589
265902007-06-20 Jason Rumney <jasonr@gnu.org>
26591
26592 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26593 (w32_free_bdf_font): Unmap memory not handle.
26594
265952007-06-20 Sam Steingold <sds@gnu.org>
26596
26597 * gmalloc.c (__morecore): Fix the declaration to comply with the
26598 definition.
26599
266002007-06-20 Juanma Barranquero <lekktu@gmail.com>
26601
26602 * w32term.c (w32_delete_display): Remove leftover declaration.
26603 (w32_define_cursor, w32_initialize): Make static.
26604
26605 * w32.c (_wsa_errlist): Fix typo in error message.
26606 (init_environment): Ignore any environment variable from the
26607 registry having a null value.
26608
266092007-06-20 Glenn Morris <rgm@gnu.org>
26610
26611 * Makefile.in (LIBGIF): Default to -lgif.
26612
266132007-06-17 Jason Rumney <jasonr@gnu.org>
26614
26615 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26616 unicode strings.
26617
266182007-06-16 Juanma Barranquero <lekktu@gmail.com>
26619
26620 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26621 Fix typo in docstring.
26622
266232007-06-16 Eli Zaretskii <eliz@gnu.org>
26624
26625 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26626 and their keybindings.
26627
266282007-06-15 Chong Yidong <cyd@stupidchicken.com>
26629
26630 * composite.c (update_compositions): Fix last fix.
26631
266322007-06-14 Jason Rumney <jasonr@gnu.org>
26633
26634 * w32.c (get_process_times_fn): New function pointer.
26635 (globals_of_w32): Intialize it if present in kernel32.dll.
26636 (w32_get_internal_run_time): New function.
26637
26638 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26639
266402007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26641
26642 * composite.c (update_compositions): Check the validness of
26643 compositions.
26644
266452007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26646
26647 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26648 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26649
26650 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26651 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26652
26653 * macgui.h (USE_MAC_TOOLBAR): New define.
26654
26655 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26656 Return immediately unless popup is activated.
26657
26658 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26659 background to scroll bar gap.
26660 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26661 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26662 scroll bars on frame edge. Check fringe background extension.
26663 Don't clear extended fringe background area.
26664 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26665 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26666 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26667 [USE_MAC_TOOLBAR]: New macros.
26668 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26669 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26670 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26671 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26672 [USE_MAC_TOOLBAR]: New functions.
26673 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26674 manually if previous repositioning has failed.
26675 (mac_handle_keyboard_event): Use precomputed event kind.
26676 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26677 as tool bar item click. Handle mouse movement over tool bar items.
26678
26679 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26680 toolbar_win_gravity.
26681 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26682 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26683 Add externs.
26684
26685 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26686 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26687
266882007-06-14 Chong Yidong <cyd@stupidchicken.com>
26689
26690 * image.c (search_image_cache): Remove unused variable.
26691
266922007-06-13 Chong Yidong <cyd@stupidchicken.com>
26693
26694 * xfns.c, xmenu.c: Link to xaw3d if available.
26695
266962007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26697
26698 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26699 frame_foreground and frame_background.
26700
26701 * image.c (lookup_image): Save frame foreground and background colors.
26702 (search_image_cache): Check if saved and current frame colors match.
26703
267042007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26705
26706 * regex.c (regex_compile): Remove the `regnum' counter.
26707 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26708
267092007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26710
26711 * term.c: Include intervals.h to declare Fget_text_property.
26712
267132007-06-10 Jason Rumney <jasonr@gnu.org>
26714
26715 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26716
267172007-06-08 Juanma Barranquero <lekktu@gmail.com>
26718
26719 * callint.c (Fcall_interactively):
26720 * editfns.c (Fdelete_and_extract_region):
26721 * fileio.c (Fread_file_name):
26722 * fns.c (Fmapconcat):
26723 * keyboard.c (cmd_error_internal):
26724 * keymap.c (Fkey_description):
26725 * lread.c (openp):
26726 * minibuf.c (read_minibuf):
26727 * search.c (wordify):
26728 * sunfns.c (sel_read):
26729 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26730 * xfns.c (x_default_scroll_bar_color_parameter):
26731 * xmenu.c (menu_help_callback):
26732 * xselect.c (Fx_get_atom_name):
26733 * xterm.c (x_term_init): Use empty_unibyte_string.
26734
267352007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26736
26737 * alloc.c (init_strings): Initialize canonical empty strings.
26738 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26739 canonical empty string when the requested size is 0.
26740
26741 * emacs.c (empty_unibyte_string): Rename from empty_string.
26742 (empty_multibyte_string): New canonical empty string.
26743 (syms_of_emacs): Don't initialize empty_string.
26744
26745 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26746 string, if appropriate.
26747 (empty_unibyte_string, empty_multibyte_string): New externs.
26748 (empty_string): Remove extern.
26749
26750 * lread.c (syms_of_lread): Use empty_unibyte_string.
26751
267522007-06-07 Jason Rumney <jasonr@gnu.org>
26753
26754 * s/ms-w32.h: Don't define HAVE_TZNAME.
26755
26756 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26757
267582007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26759
26760 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26761
26762 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26763 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26764
26765 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26766 Don't call next handler.
26767 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26768 Remove argument. Install handler to application.
26769 (set_frame_menubar): Don't change deep_p.
26770 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26771 FRAME_OUTER_TO_INNER_DIFF_Y.
26772 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26773 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26774 [HAVE_DIALOGS]: New macros.
26775 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26776 Use them.
26777 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26778
26779 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26780 init_service_handler. All callers changed. Return OSStatus value.
26781
26782 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26783 All callers changed so as not to call SetPortWindowPort.
26784 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26785 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26786 mac_draw_string_common.
26787 (mac_draw_image_string_qd): Likewise.
26788 (mac_draw_string_common): Use them. Add INLINE.
26789 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26790 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26791 GetGlobalMouse.
26792 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26793 and FRAME_OUTER_TO_INNER_DIFF_Y.
26794 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26795 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26796 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26797 repositioning window to mac_handle_window_event.
26798 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26799 saving window location to mac_handle_window_event
26800 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26801 (install_menu_target_item_handler): Remove argument in extern.
26802 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26803 Also accept command events.
26804 (do_keystroke): New function created from XTread_socket.
26805 (init_command_handler): Remove functions.
26806 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26807 and save window location by kEventWindowShowing and kEventWindowHiding
26808 handlers here. Don't call next handler for window state change and
26809 focus events.
26810 (mac_handle_application_event, mac_handle_keyboard_event)
26811 [TARGET_API_MAC_CARBON]: New functions.
26812 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26813 kEventWindowShowing and kEventWindowHiding events. Move installation
26814 of mouse, font, text input and menu target item handlers to
26815 install_application_handler.
26816 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26817 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26818 New function.
26819 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26820 Register it.
26821 (XTread_socket) [TARGET_API_MAC_CARBON]:
26822 Consolidate SendEventToEventTarget calls.
26823 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26824 Move application activation handler to mac_handle_application_event.
26825 Move keyboard handler to mac_handle_keyboard_event.
26826 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26827 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26828 init_command_handler. Call install_application_handler.
26829
26830 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26831 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26832
268332007-06-07 Glenn Morris <rgm@gnu.org>
26834
26835 * emacs.c (main): Use `emacs-copyright' in --version output.
26836
268372007-06-06 Chong Yidong <cyd@stupidchicken.com>
26838
26839 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26840
268412007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26842
26843 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26844
26845 * macgui.h: Replace WindowPtr with WindowRef.
26846
26847 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26848 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26849 Replace ControlHandle with ControlRef.
26850 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26851
26852 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26853 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26854 Replace ControlHandle with ControlRef.
26855 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26856 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26857
26858 * macterm.h (struct scroll_bar): Rename member control_handle_low
26859 and control_handle_high to control_ref_low and control_ref_high.
26860 All uses changed.
26861 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26862 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26863 respectively. All uses changed.
26864 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26865 (install_window_handler, remove_window_handler): Replace WindowPtr
26866 with WindowRef in externs.
26867
268682007-06-05 Juanma Barranquero <lekktu@gmail.com>
26869
26870 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26871
268722007-06-03 Nick Roberts <nickrob@snap.net.nz>
26873
26874 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26875
26876 * frame.c (Fmouse_position, Fmouse_pixel_position):
26877 Condition on HAVE_GPM too.
26878
26879 * term.c (term_mouse_highlight): Remove unused variables.
26880 (Fterm_open_connection): Set gpm_zerobased to 1.
26881 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26882 Use zero based co-ordinates.
26883 (handle_one_term_event): Report a drag as mouse movement too.
26884
26885 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26886
268872007-06-03 Chong Yidong <cyd@stupidchicken.com>
26888
26889 * image.c (search_image_cache): New function. Require background
26890 color match if background color is unspecified in the image spec.
26891 (uncache_image, lookup_image): Use it.
26892
268932007-06-01 Juanma Barranquero <lekktu@gmail.com>
26894
26895 * window.c (Fshrink_window): Reflow docstring.
26896
268972007-06-02 Chong Yidong <cyd@stupidchicken.com>
26898
26899 * Version 22.1 released.
26900
269012007-06-01 Richard Stallman <rms@gnu.org>
26902
26903 * xfns.c (x_encode_text): Add GCPRO.
26904
269052007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26906
26907 * xfns.c (x_set_name_internal): Save encoded name before
26908 x_encode_text in case string data is relocated.
26909
269102007-05-31 Richard Stallman <rms@gnu.org>
26911
26912 * buffer.c (syms_of_buffer): Doc fix.
26913
269142007-05-30 Nick Roberts <nickrob@snap.net.nz>
26915
26916 * sysdep.c (init_sys_modes): Add rather than replace with
26917 O_NONBLOCK.
26918
26919 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26920 term_mouse_moveto.
26921
26922 * termhooks.h (term_mouse_moveto): New extern.
26923
26924 * term.c (mouse_face_window): Rename...
26925 (Qmouse_face_window): ...to this.
26926 (term_show_mouse_face, term_clear_mouse_face)
26927 (term_mouse_highlight): Use Qmouse_face_window.
26928 (term_mouse_moveto): New function.
26929 (term_mouse_position): Make it work.
26930 (syms_of_term): Uncomment assignment to mouse_position_hook.
26931 Staticpro Qmouse_face_window.
26932
269332007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26934
26935 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26936 around current_column call.
26937
269382007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26939
26940 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26941 * xdisp.c (next_element_from_buffer):
26942 * window.c (delete_window):
26943 * term.c (term_mouse_highlight):
26944 * msdos.c (getdefdir):
26945 * macterm.c (mac_create_bitmap_from_bitmap_data)
26946 (init_font_name_table):
26947 * fns.c (Fsxhash):
26948 * data.c (Fmake_local_variable):
26949 * ccl.c (ccl_driver): Likewise.
26950
269512007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26952
26953 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26954 Call mac_wakeup_from_rne on window size change.
26955
269562007-05-25 Chong Yidong <cyd@stupidchicken.com>
26957
26958 * image.c (uncache_image): Fix typo.
26959
269602007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26961
26962 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26963
269642007-05-22 Richard Stallman <rms@gnu.org>
26965
26966 * xterm.c (x_connection_closed): Remove NO_RETURN.
26967
269682007-05-22 Martin Rudalics <rudalics@gmx.at>
26969
26970 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26971
269722007-05-21 Chong Yidong <cyd@stupidchicken.com>
26973
26974 * image.c (uncache_image): New function.
26975 (Fimage_refresh): New function.
26976
269772007-05-20 Jan Djärv <jan.h.d@swipnet.se>
26978
26979 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
26980
269812007-05-20 Nick Roberts <nickrob@snap.net.nz>
26982
26983 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
26984 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
26985
269862007-05-20 Nick Roberts <nickrob@snap.net.nz>
26987
26988 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
26989 conditional on [HAVE_GPM_H].
26990
269912007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
26992
26993 * syntax.c (skip_chars): Update syntax-table only after we checked that
26994 the new location is valid.
26995
269962007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26997
26998 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
26999 mac_get_window_bounds.
27000
270012007-05-20 Nick Roberts <nickrob@snap.net.nz>
27002
27003 * Makefile.in (LIBGPM): Allow it to be set from configure.
27004 If set then link Emacs with it.
27005
27006 * config.in: Regenerate.
27007
27008 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27009 New externs.
27010
27011 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27012 Include gpm.h.
27013 (handle_one_term_event, term_gpm): New externs.
27014
27015 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27016 and allow it to be interrupted by SIGIO.
27017
27018 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27019 (wait_reading_process_output): Wait on gpm_fd too.
27020 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27021 (add_gpm_wait_descriptor_called_flag): New variable.
27022 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27023
27024 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27025 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27026 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27027 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27028 (make_lispy_event): Add case GPM_CLICK_EVENT.
27029 (read_avail_input): Handle mouse input.
27030
27031 * term.c (write_glyphs_with_face): New function.
27032 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27033 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27034 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27035 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27036 (last_mouse_x, last_mouse_y): New variables.
27037 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27038 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27039 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27040 (Fterm_close_connection): New functions.
27041 (term_init): Initialise mouse_face_window.
27042
270432007-05-19 Chong Yidong <cyd@stupidchicken.com>
27044
27045 * xdisp.c (redisplay_window): If first window line is a
27046 continuation line, recompute the new window start instead of
27047 recentering.
27048
270492007-05-18 Glenn Morris <rgm@gnu.org>
27050
27051 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27052 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27053
270542007-05-17 Glenn Morris <rgm@gnu.org>
27055
27056 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27057
270582007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27059
27060 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27061 dead key repeat and up events.
27062
270632007-05-14 Chong Yidong <cyd@stupidchicken.com>
27064
27065 * image.c (pbm_load): Check image size for monochrome pbm.
27066
270672007-05-13 Chong Yidong <cyd@stupidchicken.com>
27068
27069 * xterm.c (XTread_socket): Revert last change.
27070
270712007-05-12 Chong Yidong <cyd@stupidchicken.com>
27072
27073 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27074
27075 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27076
270772007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27078
27079 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27080 mixup (YAILOM).
27081
270822007-05-07 Andreas Schwab <schwab@suse.de>
27083
27084 * keymap.c (Flookup_key): Fix typo in last change.
27085
270862007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27087
27088 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27089 mapping for unibyte strings.
27090
270912007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27092
27093 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27094 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27095
270962007-04-29 Richard Stallman <rms@gnu.org>
27097
27098 * insdel.c (replace_range): For undo, record insertion first.
27099
271002007-04-29 Andreas Schwab <schwab@suse.de>
27101
27102 * lisp.h (VECSIZE): Use OFFSETOF.
27103
271042007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27105
27106 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27107 disabled lines.
27108
271092007-04-28 Richard Stallman <rms@gnu.org>
27110
27111 * lread.c (read_escape): In a string, \s is always space.
27112
271132007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27114
27115 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27116
27117 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27118 submenu for menu bar items.
27119
27120See ChangeLog.10 for earlier changes.
27121
27122;; Local Variables:
27123;; coding: utf-8
27124;; add-log-time-zone-rule: t
aac0c6e3
MR
27125;; End:
27126
e3eb1dae 27127 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27128
27129 This file is part of GNU Emacs.
27130
27131 GNU Emacs is free software: you can redistribute it and/or modify
27132 it under the terms of the GNU General Public License as published by
27133 the Free Software Foundation, either version 3 of the License, or
27134 (at your option) any later version.
27135
27136 GNU Emacs is distributed in the hope that it will be useful,
27137 but WITHOUT ANY WARRANTY; without even the implied warranty of
27138 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27139 GNU General Public License for more details.
27140
27141 You should have received a copy of the GNU General Public License
27142 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27143
27144;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40