merge trunk
[bpt/emacs.git] / src / ChangeLog
CommitLineData
86282aab
KH
12010-09-22 Kenichi Handa <handa@m17n.org>
2
3 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
4 only if we are not at a composition.
5 (set_iterator_to_next): Give it->end_charpos to
6 composition_compute_stop_pos.
7 (set_iterator_to_next, next_element_from_buffer): Likewise.
8
9 * dispnew.c (buffer_posn_from_coords): Fix position when the
10 current display element is a grapheme cluster in bidi-reordered
11 region.
12
840b985a
AR
132010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
14
15 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
16 the regions may overlap.
17
5bc88f4b
JB
182010-09-21 Juanma Barranquero <lekktu@gmail.com>
19
20 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
21
92bc9a36
DN
222010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
23
d19e096e
DN
24 * emacs.c: Do not include sys/ioctl.h, not needed.
25
92bc9a36
DN
26 * doprnt.c: Do not include stdlib.h, config.h does it.
27 Move #include before macro definition.
28
15f844ac
DN
292010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
30
48e24408
DN
31 * Makefile.in (temacs): Link using $(CC) not $(LD).
32 (LD_FIRSTFLAG): Define using autoconf.
33 (LD): Remove.
34
65539506
DN
35 Remove HAVE_TERMIOS definitions.
36 * s/usg5-4-common.h (HAVE_TERMIOS):
37 * s/template.h (HAVE_TERMIOS):
38 * s/gnu-linux.h (HAVE_TERMIOS):
39 * s/darwin.h (HAVE_TERMIOS):
40 * s/cygwin.h (HAVE_TERMIOS):
41 * s/bsd-common.h (HAVE_TERMIOS):
42 * s/aix4-2.h (HAVE_TERMIOS):
43 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
44 defined on all non-MS platforms.
45 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
46
15f844ac
DN
47 * xterm.c (xt_action_hook): Use const.
48
7d701334
JB
492010-09-20 Juanma Barranquero <lekktu@gmail.com>
50
51 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
52 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
53 (gethostname) [!HAVE_SOCKETS]: Remove.
54 (SOCK_REPLACE_HANDLE): Remove macro.
55 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
56 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
57 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
58 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
59
f3ec267a
EZ
602010-09-18 Eli Zaretskii <eliz@gnu.org>
61
62 * deps.mk (xml.o): Add dependencies.
63
93acd23d
JB
64 * xdisp.c (Fcurrent_bidi_paragraph_direction):
65 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
66
67 * bidi.c (bidi_paragraph_init): Accept an additional argument
68 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
69 search back until a paragraph with a strong directional character
70 is found, and use that to determine paragraph's base direction.
71
72 * dispextern.h (bidi_paragraph_init): Update prototype.
73
69e847be
EZ
742010-09-17 Eli Zaretskii <eliz@gnu.org>
75
76 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
77 of w32api >= 3.15. (Bug#6989)
78
283357a7
LMI
792010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
80
81 * process.c (wait_reading_process_output): Don't message about
82 accept-process-output unless the time limit really is zero.
83
4ddb20d6
SM
842010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
85
86 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
87 int/Lisp_Object mixup).
88
e24ad6dd
J
892010-09-17 Jan Djärv <jan.h.d@swipnet.se>
90
91 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
92 not HELP.
93
fb0cf781
J
942010-09-17 Stephen Berman <stephen.berman@gmx.net>
95
96 * frame.c (Ftool_bar_pixel_width): New function to expose tool
97 bar's pixel width to Lisp (Bug#7048).
98
4ddb20d6
SM
992010-09-14 Juanma Barranquero <lekktu@gmail.com>
100
101 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 102
318a04c6
J
1032010-09-17 Jan Djärv <jan.h.d@swipnet.se>
104
105 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
106 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
107
78a21772
KH
1082010-09-17 Kenichi Handa <handa@m17n.org>
109
110 * ftfont.c (ftfont_check_otf): Fix previous change.
111
fa3f6039
KH
1122010-09-14 Kenichi Handa <handa@m17n.org>
113
114 * ftfont.c (ftfont_check_otf): Fix the case of checking just
115 existence of GSUB or GPOS.
116
2b5491fa
JB
1172010-09-14 Juanma Barranquero <lekktu@gmail.com>
118
119 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
120
c97c655f
LMI
1212010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
122
2b5491fa 123 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
124 what it does.
125 (parse_string): Return nil when the document can't be parsed.
126
6664fc59 1272010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
128
129 * xterm.c (get_current_vm_state): New function.
130 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
131 want_fullscreen so set_wm_state calls are few (Bug#7013).
132 (x_handle_net_wm_state): Move code to get_current_vm_state and
133 call that function.
134
6664fc59 1352010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
136
137 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
138
6664fc59 1392010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
140
141 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
142 we may use designation or locking-shift.
143
6664fc59 1442010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
145
146 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
147 sequence when the source is multibyte.
148
1da70e99
AS
1492010-09-14 Andreas Schwab <schwab@linux-m68k.org>
150
6664fc59
JB
151 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
152 Don't make first argument optional. Doc fix.
1da70e99 153
26632d8d
LMI
1542010-09-14 Leo <sdl.web@gmail.com> (tiny change)
155
156 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
157 parameters for the doc string.
158
21fa8e37
LMI
1592010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
160
161 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
162
5616cc54
SM
1632010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
164
165 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
166 (syms_of_fns): Don't defsubr Sy_or_n_p.
167 * lisp.h: Don't declare Fy_or_n_p.
168 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
169
381408e2
LMI
1702010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
171
172 * xml.c (Fxml_parse_buffer): New function to parse XML files.
173
1742010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
175
176 * xml.c: New file.
177 (Fhtml_parse_buffer): New function to interface to the libxml2
178 html parsing function.
179
733946e7
JB
1802010-09-05 Juanma Barranquero <lekktu@gmail.com>
181
182 * biditype.h: Regenerate.
183
7574650a
AS
1842010-09-04 Andreas Schwab <schwab@linux-m68k.org>
185
186 * nsimage.m (ns_load_image): Check argument types.
187
188 * image.c: Remove all uses of gcpro.
189 (xpm_load): Check all lisp types.
190 (pbm_load): Likewise.
191 (png_load): Likewise.
192 (jpeg_load): Likewise.
193 (tiff_load): Likewise.
194 (gif_load): Likewise.
195 (imagemagick_load_image): Likewise.
196 (imagemagick_load): Likewise.
197 (svg_load): Likewise.
198 (gs_load): Likewise.
199
6e6b8e25
EZ
2002010-09-04 Eli Zaretskii <eliz@gnu.org>
201
202 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
203 try to reorder grapheme clusters, since LGSTRING should always
204 hold them in the logical order.
205 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
206 return glyph codes in the logical order.
207
dbfe4532
AS
2082010-09-04 Andreas Schwab <schwab@linux-m68k.org>
209
210 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 211 (imagemagick_load_image): Fix type mismatch.
5e5992c2 212 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 213
6d7cc563
JD
2142010-09-02 Jan Djärv <jan.h.d@swipnet.se>
215
216 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
217
218 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
219
220 * xselect.c: Remove declaration of cut-buffer objects and functions.
221 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
222 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
223 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
224 (Fx_rotate_cut_buffers_internal): Remove.
225 (syms_of_xselect): Remove defsubr of above.
226 Remove intern of QCUT_BUFFERn.
227
8f4e9110
SM
2282010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
229
230 * cmds.c (Vblink_paren_function): Remove.
231 (internal_self_insert): Make it insert N chars at a time.
232 Don't call blink-paren-function.
233 (Fself_insert_command): Adjust accordingly.
234 (syms_of_cmds): Don't declare blink-paren-function.
235
d419e1d9
KH
2362010-08-31 Kenichi Handa <handa@m17n.org>
237
238 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
239 characters.
240
241 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
242 (produce_glyphs): Don't set it->char_to_display here.
243 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
244 (produce_special_glyphs): Set temp_it.char_to_display before
245 calling produce_glyphs.
246
247 * xdisp.c (get_next_display_element): Set it->char_to_display
248 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
249 characters.
250 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
251 calling PRODUCE_GLYPHS.
252 (append_space_for_newline): Save and store it->char_to_display.
253 Set it->char_to_display before calling PRODUCE_GLYPHS.
254 (extend_face_to_end_of_line): Set it->char_to_display before
255 calling PRODUCE_GLYPHS.
256 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
257 character to its byte value.
258 (get_char_glyph_code): New function.
259 (produce_stretch_glyph): Set it2.char_to_display too before
260 calling x_produce_glyphs.
261 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
262 non-ASCII characters. Don't set it->char_to_display here.
263 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 264 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 265
b819f760
SM
2662010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
267
268 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
269
07fa68a7
CY
2702010-08-31 Chong Yidong <cyd@stupidchicken.com>
271
272 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
273
cd196f12
SM
2742010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
275
276 * marker.c (Fcopy_marker): Make the first arg optional.
277
49a752bb
KH
2782010-08-30 Kenichi Handa <handa@m17n.org>
279
280 * composite.c (composition_update_it): Fix computing of
281 cmp_it->width.
282
769ae9e1
KH
2832010-08-29 Kenichi Handa <handa@m17n.org>
284
9e69cb05 285 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 286 corresponding bytes.
9e69cb05 287
4520b858
J
2882010-08-29 Jan Djärv <jan.h.d@swipnet.se>
289
290 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
291
fe50eb41
KH
2922010-08-26 Kenichi Handa <handa@m17n.org>
293
294 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
295 on calling composition_compute_stop_pos.
296
f6aa6ec6
KH
2972010-08-25 Kenichi Handa <handa@m17n.org>
298
9dfdbc0a
KH
299 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
300 :otf.
301
f6aa6ec6
KH
302 * composite.c (composition_compute_stop_pos): Don't break
303 composition at PT.
304 (composition_reseat_it): Likewise. Fix calculation of character
305 position starting a composition.
306 (Fcomposition_get_gstring): Don't limit the number of components
307 for automatic composition.
308
ff94e32c
KH
3092010-08-25 Kenichi Handa <handa@m17n.org>
310
311 * composite.c (composition_compute_stop_pos): In forward search,
312 pay attention to the possibility that some character after ENDPOS
313 will be composed with charactrs before ENDPOS.
314
1c409d0b
CY
3152010-08-24 Chong Yidong <cyd@stupidchicken.com>
316
317 * keyboard.c (command_loop_1): Don't clobber primary selection
318 during handle-switch-frame (Bug#6872).
319
0c372655
MA
3202010-08-23 Michael Albinus <michael.albinus@gmx.de>
321
322 * dbusbind.c: Accept UNIX domain sockets as bus address.
323 (Fdbus_close_bus): New function.
324 (Vdbus_registered_buses): New variable.
325 (xd_initialize): Implement string as bus address.
326 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
327 (Fdbus_get_unique_name, Fdbus_call_method)
328 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
329 (Fdbus_method_error_internal, Fdbus_send_signal)
330 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
331 check. This is done in xd_initialize_bus. Adapt doc string, if
332 necessary.
333 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
334 Vdbus_registered_buses.
335 (Vdbus_registered_objects_table): Create hash.
336
7133b7ee
JL
3372010-08-22 Juri Linkov <juri@jurta.org>
338
339 * keyboard.c (Fexecute_extended_command): Move reading a command name
340 with `completing-read' to a new Elisp function `read-extended-command'.
341 Call it to read a command to `function' (bug#5364, bug#5214).
342
198a7a97
CY
3432010-08-22 Chong Yidong <cyd@stupidchicken.com>
344
345 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
346
b0126eac 3472010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
348
349 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
350 instead of SAFE_ALLOCA.
351
b0126eac 3522010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
353
354 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
355 (Bug#6214).
356
b0126eac 3572010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
358
359 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
360
b0126eac
CY
3612010-08-22 Jan Djärv <jan.h.d@swipnet.se>
362
363 * doc.c (Fsnarf_documentation): Initialize skip_file before
364 build-files test.
365
692f3ddc 3662010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 367
692f3ddc
JB
368 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
369 New definitions.
b0126eac
CY
370 (HAVE_TERMIO): Remove.
371
5f2f0bc1
EZ
3722010-08-22 Eli Zaretskii <eliz@gnu.org>
373
b613941b
EZ
374 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
375
a583bbef
EZ
376 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
377 for w32.
378
379 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
380 it's done in nt/config.nt.
381
382 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
383
5f2f0bc1
EZ
384 * unexcoff.c (report_error, make_hdr, write_segment)
385 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
386 Convert argument lists and prototypes to ANSI C.
387 (make_hdr, write_segment): Remove unused variables.
388 (unexec): Remove commented-out line. Initialize `new' to shut up
389 compiler warnings.
390
a7ebc409
DN
3912010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
392
393 Simplify termio code.
394 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
395 HAVE_TERMIO code is obsolete.
396 Replace HAVE_TERMIOS conditionals with !DOS_NT.
397 * systty.h: Do not define HAVE_TCATTR.
398 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
399 Do not define EMACS_HAVE_TTY_PGRP. Only define
400 EMACS_GET_TTY_PGRP for !DOS_NT.
401 * sysdep.c: Include sysselect.h unconditionally. Do not include
402 sys/ioctl.h and termios.h, systty.h does it. Use
403 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
404 (init_baud_rate): Remove HAVE_TERMIO code.
405 (child_setup_tty): Remove HAVE_TERMIO code.
406 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
407 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
408 (new_ltchars, new_tchars): Remove, unused.
409 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
410 code. Remove special casing for __mips__, it was a no-op. Remove
411 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
412 (init_sys_modes): Remove HPUX special case.
413 * process.c: Include stdlib.h unconditionally. Do not include
414 fcntl.h, systty.h does it. Remove conditional code for
415 HAVE_SERIAL, it is always true.
416 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
417 always true when SIGNALS_VIA_CHARACTERS is true.
418 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
419 !WINDOWSNT means HAVE_TERMIOS.
420 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
421 conditional, which is true for all HAVE_TERMIOS systems.
422 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
423 instead of HAVE_TERMIOS.
424 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
425 EMACS_HAVE_TTY_PGRP.
426 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
427 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
428 anyway.
429
40629f17
EZ
4302010-08-21 Eli Zaretskii <eliz@gnu.org>
431
432 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
433 mirroring pixel positions.
434
d931da8c
DN
4352010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
436
b5c76d0c
DN
437 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
438 write only.
439 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
440 malloc_sbrk_used, nothing uses them.
441
74815588
DN
442 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
443 defined, unconditionally defined in lisp.h.
444
f5817d1c
DN
445 * term.c: Do not include <termios.h>, systty.h does it.
446
d931da8c
DN
447 * s/unixware.h (HAVE_TCATTR):
448 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
449 systty.h defines it when HAVE_TERMIOS is defined.
450
ff2de6d2 4512010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 452
b43c883c 453 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 454 terminals: add one-character offset for R2L lines.
b43c883c 455
491a1546
EZ
456 * emacs.c <emacs_version>: Add a comment regarding
457 msdos/mainmake.v2's dependency on the syntax of this declaration.
458
2396cbba
EZ
4592010-08-20 Eli Zaretskii <eliz@gnu.org>
460
461 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
462 position for R2L lines by mirroring the pixel position wrt the
463 text are box. Improve commentary.
464
7df6150a
AS
4652010-08-20 Andreas Schwab <schwab@linux-m68k.org>
466
467 * image.c (imagemagick_clear_image): Remove debugging output.
468
a2e5caf7
SM
4692010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
470
471 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
472 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
473 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
474 self-insert-face.
475 (syms_of_cmds): Initialize the new vars.
476
20d60baf
JR
4772010-08-19 Jason Rumney <jasonr@gnu.org>
478
cc477da7
JR
479 * w32menu.c (set_frame_menubar): Remove call to undefined function.
480
20d60baf
JR
481 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
482
2c0ac867
J
4832010-08-19 Jan Djärv <jan.h.d@swipnet.se>
484
485 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
486
93352106
EZ
4872010-08-18 Eli Zaretskii <eliz@gnu.org>
488
489 * xterm.c (x_draw_bar_cursor):
490 * w32term.c (x_draw_bar_cursor): If the character under cursor is
491 R2L, draw the bar cursor on its right rather than on its left.
492
c785836d
SM
4932010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
494
0193499f
SM
495 * eval.c (Fdefmacro): Only obey one declaration.
496
c785836d
SM
497 * casefiddle.c (casify_region): Setup gl_state.
498
9cb728a5
J
4992010-08-18 Jan Djärv <jan.h.d@swipnet.se>
500
501 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
502
e1e18511
J
5032010-08-18 Jan Djärv <jan.h.d@swipnet.se>
504
505 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
506
64cb6c78
J
5072010-08-18 David De La Harpe Golden <david@harpegolden.net>
508
509 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
510 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
511 QPRIMARY => NXPrimaryPboard.
512 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
513 NXPrimaryPboard => QPRIMARY.
514 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
515 NXSecondaryPboard = SecondarySelection.
516 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
517
0c9b8993
GM
5182010-08-18 Joakim Verona <joakim@verona.se>
519
520 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
521 defined:
522 (imagemagick_image_p): New function to test for ImageMagic image.
523 (imagemagick_load): New function to load ImageMagick image.
524 (imagemagick_load_image): New function, helper for imagemagick_load.
525 (imagemagick-types): New function.
526 (Qimagemagick): New Lisp_object.
527 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 528
c3554f68
SM
5292010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
530
531 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
532 is a string.
533
1ff2e434
J
5342010-08-17 Jan Djärv <jan.h.d@swipnet.se>
535
536 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
537 x_set_tool_bar_position handler.
538
0cc56427
EZ
5392010-08-17 Eli Zaretskii <eliz@gnu.org>
540
541 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
542 x_set_tool_bar_position handler, needed to support changes from
543 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
544
e45a249b
JD
5452010-08-16 Jan Djärv <jan.h.d@swipnet.se>
546
921242c6
J
547 * nsselect.m: include keyboard.h for QPRIMARY, remove its
548 declaration (Bug#6863).
573d150b 549 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 550
e45a249b
JD
551 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
552
553 * keyboard.h (QPRIMARY): Declare (Bug#6864).
554
7c23dd44
CY
5552010-08-16 Chong Yidong <cyd@stupidchicken.com>
556
557 * keyboard.c (command_loop_1): Avoid setting selection twice,
558 since it's done in deactivate-mark as well.
559 (Vselect_active_regions): Change default to t. Replace `lazy'
560 with non-default value `only', meaning only set PRIMARY for
561 temporarily active regions.
562
563 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
564 select-active-regions.
565
0005830c
J
5662010-08-15 Jan Djärv <jan.h.d@swipnet.se>
567
568 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
569 isn't a string.
570
603dfc72
AS
5712010-08-15 Andreas Schwab <schwab@linux-m68k.org>
572
573 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
574
c25ce9d0
J
5752010-08-15 Jan Djärv <jan.h.d@swipnet.se>
576
c3554f68
SM
577 * keyboard.c (parse_tool_bar_item): malloc buf.
578 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
579 new_lbl (Bug#6855).
c25ce9d0 580
5872c762
EZ
5812010-08-14 Eli Zaretskii <eliz@gnu.org>
582
b236615c
EZ
583 * xterm.c (x_draw_stretch_glyph_string):
584 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
585 the cursor on the right edge of the stretch glyph.
586
c3554f68
SM
587 * xdisp.c (window_box_right_offset, window_box_right):
588 Fix commentary.
b236615c 589
5872c762
EZ
590 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
591 direction when point is inside a run of whitespace characters.
592
593 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
594
e66f9a1b
JR
5952010-08-14 Jason Rumney <jasonr@gnu.org>
596
597 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
598
79d6f59e
CY
5992010-08-14 Chong Yidong <cyd@stupidchicken.com>
600
601 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
602
1c9b4129
JR
6032010-08-13 Jason Rumney <jasonr@gnu.org>
604
605 * w32menu.c (simple_dialog_show): Use unicode message box if available.
606 (MessageBoxW_Proc): New function typedef.
607 (unicode-message-box): New function pointer.
608 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
609
2b4e6277
J
6102010-08-13 Jan Djärv <jan.h.d@swipnet.se>
611
612 * frame.h (Qtool_bar_position): Declare.
613
614 * xfns.c (Fx_create_frame): Call x_default_parameter for
615 Qtool_bar_position.
616
94c97d85
EZ
6172010-08-13 Eli Zaretskii <eliz@gnu.org>
618
8ee81892
EZ
619 * unexcoff.c: Remove the parts used when "emacs" is not defined.
620 (report_error, report_error_1): Ditto.
621 (write_segment): Remove "#if 0" unused code.
622 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
623 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
624 (start_of_text): Remove unused function (was used only if NO_REMAP
625 was NOT defined).
626
891ef8f7
EZ
627 * msdos.c (IT_set_face): Fix format string to match argument
628 types.
629 (IT_write_glyphs, IT_note_mode_line_highlight)
630 (IT_set_frame_parameters): Remove unused variables.
631 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
632 (IT_set_terminal_modes): Disambiguate expression in if clause.
633 (Fmsdos_remember_default_colors): Return Qnil.
634 (IT_set_frame_parameters): Add parens to disambiguate boolean
635 expression for logging the cursor type to termscript.
636 (keyboard_layout_list, keypad_translate_map)
637 (grey_key_translate_map): Add braces in inner initializers.
638 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
639 (dos_rawgetc): Remove unused label.
640 (XMenuActivate): Add braces to remove ambiguous `else'.
641 (dos_ttraw): Always return a value.
642 (spawnve): Declare.
643 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
644
645 * dosfns.h (x_set_title): Declare.
646
647 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
648 Remove unused variables.
649
650 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
651 variables.
652 (init_dosfns): Declare get_lim_data.
653 (system_process_attributes): Declare Fget_internal_run_time.
654
38e41e0e
EZ
655 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
656 list to be consistent with menu.h.
657
94c97d85
EZ
658 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
659 warnings due to mixing of "char *" and "const char *".
660
c5683ceb
SM
6612010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
662
663 Introduce a new comment style "c" flag.
664 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
665 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
666 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
667 (syntax_prefix_flag_p): New function.
668 (Fstring_to_syntax): Understand new "c" flag.
669 (Finternal_describe_syntax_value): Recognize new flag; use the
670 SYNTAX_FLAGS_* macros.
671 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
672 comment style to accomodate the new styles.
673 (back_comment, forw_comment, Fforward_comment, scan_lists)
674 (scan_sexps_forward): Update code to obey the new comment style flag.
675
676 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
677
678 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
679
7aee76f4
J
6802010-08-11 Jan Djärv <jan.h.d@swipnet.se>
681
3a46642b
J
682 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
683 first.
94dff98f 684 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
685
686 * gtkutil.h (xg_check_special_colors): Declare.
687
688 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
689 (xg_create_frame_widgets): Connect theme name changes to
690 style_changed_cb.
691
42ca4633
J
692 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
693 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
694 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 695 string literal. file is const char*.
42ca4633
J
696
697 * xsmfns.c (NOSPLASH_OPT): Change to char[].
698 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
699 props. Free them at the end.
700
701 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
702
c5683ceb
SM
703 * xrdb.c (get_system_app): Make path const and use char *p for
704 non-const char.
42ca4633
J
705
706 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 707 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
708 char *.
709 (button_names): Is const char *.
710 (xdialog_show): error_name and pane_string is const.
711
712 * process.h (synch_process_death): Is const char*.
713
714 * w32menu.c (w32_menu_show):
715 * nsmenu.m (ns_menu_show): error parameter is const char **.
716
717 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
718 is const char **.
719
720 * menu.c (Fx_popup_menu): error_name is const.
721
722 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
723 with unsigned char and XtPointer with void *.
724
725 * gtkutil.h: Replace widget_value with struct _widget_value.
726 (enum button_type, struct _widget_value): Remove and use the one from
727 keyboard.h.
728
729 * gtkutil.c (get_utf8_string): Always return an allocated string.
730 Parameter is const.
731 (create_dialog, xg_create_one_menuitem, create_menus)
732 (xg_item_label_same_p, xg_update_menu_item): Free result from
733 get_utf8_string.
734 (xg_separator_p, xg_item_label_same_p): label is const.
735
736 * font.h (font_open_by_name): Make name const.
737
738 * font.c (font_open_by_name): Make name const.
739
740 * floatfns.c (matherr): Use a const char* variable for x->name.
741
742 * emacs.c (main): Pass char[] to putenv instead of literal.
743
744 * callproc.c (synch_process_death): Make const.
745 (Fcall_process): Make signame const.
746
9c5bd55a
J
747 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
748 (addDisplayItemWithImage): Use const char*.
749
750 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
751 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
752
753 * nsfont.m (ns_descriptor_to_entity): Use const char*.
754
755 * keyboard.h (_widget_value): name, value and key are const char*.
756
7aee76f4
J
757 * unexmacosx.c (unexec_error): Use const char *.
758
09d93395
DN
7592010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
760
761 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 762 (font_parse_name, font_open_by_name):
09d93395 763 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 764 (font_parse_name, font_open_by_name): Remove const.
09d93395 765
671d409f
AS
7662010-08-09 Andreas Schwab <schwab@linux-m68k.org>
767
768 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
769 definition.
770
771 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
772 * m/amdx86-64.h: Likewise.
773 * m/arm.h: Likewise.
774 * m/hp800.h: Likewise.
775 * m/ia64.h: Likewise.
776 * m/ibmrs6000.h: Likewise.
777 * m/ibms390.h: Likewise.
778 * m/intel386.h: Likewise.
779 * m/iris4d.h: Likewise.
780 * m/m68k.h: Likewise.
781 * m/macppc.h: Likewise.
782 * m/mips.h: Likewise.
783 * m/sh3.h: Likewise.
784 * m/sparc.h: Likewise.
785 * m/template.h: Likewise.
786 * m/vax.h: Likewise.
787 * m/xtensa.h: Likewise.
788 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
789 WORDS_BIG_ENDIAN.
790 * lisp.h: Likewise.
791 * md5.c: Likewise.
792 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
793
8ea90aa3
DN
7942010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
795
796 Use const char* instead of char*.
797 Reduce the number of warnings with -Wwrite-strings.
798 * xrdb.c (get_environ_db, get_system_name):
799 * unexelf.c (find_section):
800 * term.c (string_cost, string_cost_one_line, per_line_cost)
801 (get_named_tty, init_tty):
802 * sysdep.c (sys_subshell):
803 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
804 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
805 * search.c (Freplace_match):
806 * process.c (Fmake_network_process, send_process, init_process):
807 * lread.c (Fload, init_lread):
808 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
809 * keyboard.c (parse_tool_bar_item, struct event_head):
810 * gtkutil.h (xg_get_font_name):
811 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
812 (make_widget_for_menu_item, make_menu_item, create_menus)
813 (xg_make_tool_item):
814 * font.c (parse_matrix, font_parse_name):
815 * floatfns.c (rounding_driver, float_error_fn_name):
816 * filelock.c (get_boot_time_1, lock_file_1):
817 * fileio.c (barf_or_query_if_file_exists, check_writable):
818 * editfns.c (get_system_name, get_operating_system_release)
819 (Fencode_time, Fset_time_zone_rule):
820 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
821 * buffer.c (defvar_per_buffer): Use const.
822
7815fe19 8232010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 824
692f3ddc 825 * charset.c: Include <stdlib.h>.
7a84eee5
KH
826 (struct charset_sort_data): New struct.
827 (charset_compare): New function.
692f3ddc 828 (Fsort_charsets): New function.
7a84eee5
KH
829 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
830
831 * coding.c (decode_coding_iso_2022): Fix checking of dimension
832 number in CTEXT extended segment.
833
7815fe19 8342010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
835
836 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
837 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
838
7815fe19 8392010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
840
841 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
842 (Fhash_table_size): Fix typos in docstrings.
843 (Fmake_hash_table): Doc fix.
844
7815fe19 8452010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
846
847 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
848 Doc fix (bug#5625).
849
7815fe19 8502010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
851
852 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
853 the MSDOS definition.
854
1b6d8cf0
DN
8552010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
856
675e2c69
DN
857 Use const char* instead of char*.
858 * xterm.c (x_create_toolkit_scroll_bar):
859 * xfont.c (xfont_list_pattern):
860 * xfns.c (x_default_scroll_bar_color_parameter)
861 (xic_create_fontsetname, x_default_font_parameter)
862 (x_screen_planes):
863 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
864 (store_mode_line_string, decode_mode_spec, display_string):
865 * menu.c (digest_single_submenu):
866 * keymap.h (initial_define_key, initial_define_lispy_key):
867 * keymap.c (initial_define_key, initial_define_lispy_key):
868 * image.c (image_error, image_keyword):
869 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
870 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
871 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
872 (ftfont_list, ftfont_match):
873 * frame.c (frame_parm_table):
874 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
875 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
876 (font_add_log, font_deferred_log):
877 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
878 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
879 (font_add_log, font_deferred_log):
880 * emacs.c (argmatch):
881 * dispextern.h (struct it):
882 * coding.c (ENCODE_DESIGNATION):
883 * charset.c (define_charset_internal): Use const.
884
25717ca1
DN
885 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
886
c5683ceb
SM
887 * xrdb.c: Remove include guard.
888 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
889 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
890 realloc->xrealloc instead of using #defines.
891
efb41e21
EZ
8922010-08-08 Eli Zaretskii <eliz@gnu.org>
893
cd21226d 894 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
895 * editfns.c (Fline_beginning_position, Fline_end_position):
896 State in the doc strings that start and end of line are in the
897 logical order.
cd21226d 898
efb41e21
EZ
899 * xdisp.c (display_line): Move the handling of overlay arrow after
900 the call to find_row_edges. (Bug#6699)
901
746812d9
CY
9022010-08-07 Chong Yidong <cyd@stupidchicken.com>
903
904 * keyboard.c (command_loop_1):
905 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
906
9852377f
CY
9072010-08-07 Chong Yidong <cyd@stupidchicken.com>
908
909 * insdel.c (prepare_to_modify_buffer): Save active region text to
910 Vsaved_region_selection.
911
912 * xselect.c (QPRIMARY): Move to keyboard.c.
913
914 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
915 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
916 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 917
0e9c8657
JB
9182010-08-07 Juanma Barranquero <lekktu@gmail.com>
919
920 * alloc.c (lisp_malloc):
921 * buffer.c (set_buffer_internal, set_buffer_internal_1):
922 * charset.h (emacs_mule_charset):
923 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
924 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
925 (bitch_at_user):
926 * lisp.h (Fcheck_coding_system, Fget_text_property)
927 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
928 Remove duplicate declarations.
929
648801d1
DN
9302010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
931
32bc6709
DN
932 * process.c: Simplify include logic.
933
3ef1d108
DN
934 * keyboard.h (quit_char): Add declaration.
935 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
936 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
937 Add declarations.
3ef1d108
DN
938 * sysdep.c:
939 * w32.c: Remove the above declarations.
940
97ec208f
DN
941 Remove extern declarations in .c files, .h files have them.
942 * xterm.c:
943 * xdisp.c:
97ec208f
DN
944 * msdos.c:
945 * image.c:
946 * gtkutil.c:
947 * fileio.c:
948 * eval.c: Remove declarations.
949
94eed851
DN
950 * frame.c (frame_params): Make const.
951
36e053eb
DN
952 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
953
0e843971
DN
954 * emacs.c (emacs_copyright, emacs_version): Make static.
955 (Vinitial_window_system, Vauto_save_list_file_name)
956 (Vinhibit_redisplay): Remove declarations.
957 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
958 for AIX.
959
648801d1
DN
960 Use const for some arrays and functions.
961 * xterm.h (xg_set_icon_from_xpm_data):
962 * xfns.c (xg_set_icon_from_xpm_data):
963 * term.c (fkeys):
964 * keyboard.c (lispy_accent_keys, lispy_function_keys)
965 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
966 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
967 (frame.c frame_parms):
968 * emacs-icon.h (gnu_xpm_bits):
969 * callint.c (callint_argfuns): Use const.
970
8646d999
J
9712010-08-06 Jan Djärv <jan.h.d@swipnet.se>
972
973 * sysdep.c: Move include term.h last of includes (Bug#6812).
974
cb4545ad
EZ
9752010-08-06 Eli Zaretskii <eliz@gnu.org>
976
977 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
978
979 * msdos.c (IT_display_cursor): Log cursor position on termscript.
980
981 * .gdbinit (pgx): Display the avoid_cursor_p flag.
982
da7e2be6
JB
9832010-08-06 Juanma Barranquero <lekktu@gmail.com>
984
985 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
986
3d608a86
J
9872010-08-06 Jan Djärv <jan.h.d@swipnet.se>
988
7908fb60
J
989 * xterm.h (x_get_focus_frame): Declare.
990
991 * keyboard.h (poll_for_input_1): Unconditionally declare.
992
4094bf36
J
993 * nsterm.h (x_set_menu_bar_lines): Declare.
994
995 * window.c: Don't include menu.h, it depends on lots of other .h-files.
996
3d608a86
J
997 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
998
999 * window.c: Include menu.h.
1000
1001 * unexmacosx.c (print_region_list, print_regions)
1002 (build_region_list, find_emacs_zone_regions)
1003 (unexec_regions_merge, read_load_commands, dump_it)
1004 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1005
1006 * term.c: Check HAVE_SYS_IOCTL_H.
1007
686b968e 1008 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1009
686b968e 1010 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1011
1012 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1013 (ns_ring_bell, ns_defined_color, hide_hourglass)
1014 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1015 Convert to ANSI C prototypes.
1016 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1017 before code.
1018
1019 * nsterm.h : Include sysselect.h.
1020 (x_sync, x_get_focus_frame, x_set_mouse_position)
1021 (x_set_mouse_pixel_position, x_make_frame_visible)
1022 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1023 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1024 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1025 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1026 Declare.
3d608a86
J
1027
1028 * nsmenu.m (popup_activated, name_is_separator)
1029 (syms_of_nsmenu): Convert to ANSI C prototypes.
1030 (runMenuAt): Prototypes and move declarations before code.
1031
1032 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1033
1034 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1035 prototypes.
1036
1037 * nsfns.m (have_menus_p, ns_display_info_for_name)
1038 (x_set_cursor_type, ns_appkit_version_str)
1039 (ns_appkit_version_int, ns_do_applescript)
1040 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1041 (syms_of_nsfns): Convert to ANSI C prototypes.
1042
1043 * menu.h (x_set_menu_bar_line): Declare.
1044 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1045
1046 * lisp.h (fmod_float): Declare.
1047
1048 * image.c (xpm_scan, xpm_make_color_table_v)
1049 (xpm_put_color_table_v, xpm_get_color_table_v)
1050 (xpm_make_color_table_h, xpm_put_color_table_h)
1051 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1052 (xpm_load): Convert to ANSI C prototypes.
1053
1054 * emacs.c: Include nsterm.h if HAVE_NS.
1055
1056 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1057
fce70521
DN
10582010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1059
1060 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1061 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1062 (socket_options): Use const char* for name.
1063
a11889ab
JB
10642010-08-06 Juanma Barranquero <lekktu@gmail.com>
1065
1066 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1067
1068 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1069 Don't declare xmalloc_widget_value and digest_single_submenu.
1070
1071 * w32font.c (Qlatin): Remove declaration.
1072
1073 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1074
c95b508f 1075 * dired.c (compile_pattern): Restore declaration.
a11889ab 1076
6254cdda
DN
10772010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1078
04bab72c
DN
1079 Remove extern declarations in .c files, .h files have them.
1080 * data.c:
1081 * dired.c:
1082 * editfns.c:
1083 * filelock.c:
1084 * fns.c:
1085 * font.c:
1086 * fontset.c:
1087 * frame.c:
1088 * fringe.c:
1089 * ftfont.c:
1090 * gtkutil.c:
1091 * indent.c:
1092 * keyboard.c:
1093 * keymap.c:
1094 * lread.c:
1095 * menu.c:
1096 * print.c:
1097 * search.c:
1098 * sound.c:
1099 * window.c:
1100 * xdisp.c:
1101 * xfaces.c:
1102 * xfns.c:
1103 * xfont.c:
1104 * xftfont.c:
1105 * xmenu.c:
1106 * xterm.c: Remove declarations.
1107
dff94ed5
DN
1108 Cleanup syssignal.h.
1109 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1110 (main_thread): Move down to remove #ifdef.
1111 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1112 Remove conditional definition following unconditional ones.
1113
99f3388e
DN
1114 * lisp.h: Remove HAVE_SHM code, unused.
1115 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1116 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1117 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1118 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1119 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1120 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1121 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1122 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1123 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1124 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1125 (Qwindow_scroll_functions, Vafter_load_alist)
1126 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1127 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1128 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1129 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1130 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1131 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1132 (initial_argv, last_nonmenu_event, load_in_progress)
1133 (noninteractive_need_newline, scroll_margin): Add declarations.
1134
1135 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1136 declarations, menu.h has them.
1137 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1138 (Vinput_method_function, Qinput_method_function)
1139 (Qevent_symbol_element_mask, last_event_timestamp):
1140 * dispextern.h (Voverflow_newline_into_fringe):
1141 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1142 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1143 (syms_of_w32font, syms_of_nsfont):
1144 * fontset.h (find_font_encoding, Qlatin):
1145 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1146 (Vtool_bar_mode, set_frame_menubar):
1147 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1148 * xterm.h (Qx_gtk_map_stock):
1149 * keymap.h (meta_prefix_char): Add declarations.
1150
9f5dd6f2
DN
1151 * term.c: Remove dead code.
1152
6254cdda
DN
1153 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1154 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1155 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1156 which is what was there before BSD_PGRPS was removed.
1157
29cf3e20
EZ
11582010-08-05 Eli Zaretskii <eliz@gnu.org>
1159
1160 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1161
1162 * unexcoff.c: Renamed from unexec.c.
1163
aaa0a19a
SM
11642010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1165
1166 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1167
8d1d9587
JB
11682010-08-03 Johan Bockgård <bojohan@gnu.org>
1169
1170 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1171 (Bug#6744)
8d1d9587 1172
9a747ba6
JD
11732010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1174
4d464ae4
JD
1175 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1176 to TRUE if depth of screen is < 16.
1177
ac01763e
JD
1178 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1179 USE_GTK_TOOLTIP.
e0d62a9b
JB
1180 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1181 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1182 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1183 USE_GTK_TOOLTIP.
1184 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1185
1186 * xterm.h (USE_GTK_TOOLTIP): New define.
1187 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1188
9a747ba6
JD
1189 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1190 to Control-D (Bug#6771).
1191
7b0815ba
JB
11922010-08-02 Juanma Barranquero <lekktu@gmail.com>
1193
1194 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1195 Wording by Drew Adams <drew.adams@oracle.com>.
1196
aa1859f5
J
11972010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1198
1199 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1200 ttip_lbl.
1201
1202 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1203 calling gtk_widget_queue_draw.
1204 (x_free_frame_resources): Call xg_free_frame_widgets.
1205
1206 * xfns.c (x_gtk_use_system_tooltips): New variable.
1207 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1208 new gtkutil tooltip functions to show the tooltip.
1209 (Fx_hide_tip): Call xg_hide_tooltip.
1210 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1211
1212 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1213 (xg_show_tooltip, xg_hide_tooltip): Declare.
1214
1215 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1216 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1217 New functions.
aa1859f5
J
1218 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1219 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1220 Remove code that is commented out.
1221
76417ef4
SM
12222010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1223
1224 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1225
16041401
CY
12262010-07-31 Chong Yidong <cyd@stupidchicken.com>
1227
1228 * xselect.c (x_own_selection): Use list4.
1229
2c09a58f
DN
12302010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1231
1232 * buffer.c (Qwindow): Do not define, already defined in data.c.
1233 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1234
59df9fdd 12352010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1236
59df9fdd
JB
1237 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1238 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1239 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1240 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1241 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1242
1b231651
DN
12432010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1244
1245 Rename s/usg5-4.h -> s/usg5-4-common.h.
1246 * s/usg5-4.h: Rename file to ...
1247 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1248 * s/unixware.h:
1249 * s/sol2-6.h:
1250 * s/irix6-5.h: Update includes accordingly.
1251
bfeabdc3
JD
12522010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1253
2ebf1083
J
1254 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1255
bfeabdc3 1256 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1257 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1258 Remove toolbar_height.
1259 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1260 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1261 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1262 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1263
1264 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1265
1266 * xfns.c (x_set_tool_bar_position): New function.
1267 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1268 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1269 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1270
1271 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1272 and FRAME_TOOLBAR_LEFT_WIDTH.
1273
1274 * gtkutil.h (xg_change_toolbar_position): Declare.
1275
1276 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1277 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1278 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1279 (xg_create_frame_widgets): Create a hobox for placing widgets
1280 vertically. Use gtk_box_pack_start.
1281 (xg_height_or_width_changed): Renamed from xg_height_changed.
1282 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1283 (xg_update_frame_menubar, free_frame_menubar): Change to
1284 xg_height_or_width_changed.
1285 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1286 size correctly. Remove hardcoded 4, instead use handlebox size -
1287 toolbar size.
1288 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1289 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1290 (xg_pack_tool_bar): POS is a new parameter.
1291 Set orientation of tool bar based on pos.
1292 Only make handlebox_widget if NULL.
1293 Check if tool bar goes to vbox or hbox depending on pos.
1294 (xg_update_tool_bar_sizes): New function.
686b968e 1295 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1296 height, call xg_update_tool_bar_sizes instead.
1297 (free_frame_tool_bar): Remove from hbox or vbox depending on
1298 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1299 (xg_change_toolbar_position): New function.
1300
1301 * frame.h (struct frame): Add tool_bar_position.
1302 (Qbottom): Declare.
1303
1304 * frame.c (Qtool_bar_position): New variable.
1305 (make_frame): Set tool_bar_position to Qtop.
1306 (frame_parms): Add tool-bar-position.
1307 (x_report_frame_params): Store tool_bar_position.
1308 (x_set_fringe_width): Reset wm size hint after fringe changes.
1309
26469a38
DN
13102010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1311
1312 Make lisp_time_argument declaration work on all systems.
1313 * lisp.h (lisp_time_argument): Move declaration ...
1314 * systime.h (lisp_time_argument): ... here
1315 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1316
8848b728
JD
13172010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1318
1319 * vm-limit.c (POINTER): Add typedef for it.
1320 (start_of_data): Change return type from POINTER to char *.
1321
1322 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1323 HAVE_WINDOW_SYSTEM.
1324
76fd1ee9
DN
13252010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1326
0441987e
DN
1327 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1328 Remove reference to __osf__, unused.
1329
56a000c7
DN
1330 * mem-limits.h: Remove duplicated includes.
1331 (NULL): Remove definition, unused.
1332 (POINTER): Remove definition.
1333 (start_of_data): Use char* in prototype, as the function
1334 definition does.
1335
e6cba650
DN
1336 Remove extern declarations from .c files, and them to .h files.
1337 * keyboard.h (Qhelp_echo, waiting_for_input)
1338 (input_available_clear_time, ignore_mouse_drag_p)
1339 (Vdouble_click_time, real_this_command, Vthis_original_command):
1340 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1341 (Voverriding_local_map_menu_flag):
1342 * lisp.h (Qinteractive_form, use_file_dialog)
1343 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1344 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1345 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1346 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1347 (Qfunction, debug_on_next_call, Qfield)
1348 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1349 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1350 (Qfile_directory_p, Qinsert_file_contents)
1351 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1352 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1353 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1354 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1355 (Qminibuffer_prompt)
1356 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1357 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1358 (gray_bitmap_bits, xic_create_fontsetname):
1359 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1360
1361 * xsmfns.c (Vuser_login_name):
1362 * xrdb.c (Vdouble_click_time):
1363 * xfaces.c (xic_create_fontsetname):
1364 * w32select.c (waiting_for_input):
1365 * print.c (minibuffer_auto_raise):
1366 * msdos.c (Qhelp_echo):
1367 * macros.c (real_this_command):
1368 * keymap.c (Voverriding_local_map):
1369 * xterm.c (poll_for_input_1, gray_bitmap_width)
1370 (gray_bitmap_height, gray_bitmap_bits;
1371 * xmenu.c ( Voverriding_local_map)
1372 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1373 (use_file_dialog, Xt_app_con):
1374 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1375 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1376 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1377 (Qtool_bar_lines, ignore_mouse_drag_p):
1378 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1379 (Qrear_nonsticky, nconc2):
1380 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1381 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1382 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1383 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1384 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1385 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1386 (gc_in_progress):
1387 * doc.c (Voverriding_local_map, Qremap):
1388 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1389 (Vcompletion_regexp_list):
1390 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1391 (Qcompletion_ignore_case):
1392 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1393 (Vhistory_length, Vthis_original_command, real_this_command)
1394 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1395 * image.c (Qrisky_local_variable):
1396 * fontset.c (QCname):
1397 * fns.c (minibuffer_auto_raise, QCname):
1398 * dispnew.c (char_ins_del_cost):
1399 * composite.c (font_fill_lglyph_metrics):
1400 * cmds.c (Qface, Vtranslation_table_for_input):
1401 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1402 * ccl.c (charset_unicode):
1403 * callproc.c (Vtemporary_file_directory):
1404 * buffer.c (emacs_strerror): Remove extern declarations.
1405
1406 * data.c (Qwindow): Make non-static, used from other files too.
1407 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1408
76fd1ee9
DN
1409 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1410 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1411 * s/usg5-4.h (COFF):
1412 * s/template.h:
1413 * s/msdos.h (COFF, NO_REMAP):
1414 * s/ms-w32.h (NO_REMAP):
1415 * s/hpux10-20.h (NO_REMAP):
1416 * m/sparc.h (SEGMENT_MASK):
1417 * m/m68k.h (NO_REMAP):
1418 * m/intel386.h (SEGMENT_MASK):
1419 * m/arm.h (NO_REMAP):
1420 * m/alpha.h (COFF):
1421 * m/template.h: Remove references to unused defines.
1422
8a52f00a
JD
14232010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1424
1425 * xsettings.c (Ftool_bar_get_system_style): Also check for
1426 Qtext_image_horiz.
1427
1428 * xdisp.c (Qtext_image_horiz): Define.
1429 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1430 to documentation of tool-bar-style.
8a52f00a
JD
1431
1432 * lisp.h (Qtext_image_horiz): Declare.
1433
1434 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1435 style text_image_horiz.
1436
89dc303e
DN
14372010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1438
60799703
DN
1439 * emacs.c (Fkill_emacs): Remove return statement.
1440
37254dc1
DN
1441 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1442 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1443 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1444 local extern declarations.
1445
71c7345a
DN
1446 * xmenu.c: Do not included lwlib.h, not needed.
1447
6ba577cb
DN
1448 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1449
fdb183d6
DN
1450 * process.c: Move definitions earlier to minimize #ifdefs.
1451
1452 * xterm.h (x_get_customization_string, x_load_resources)
1453 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1454 (x_check_errors, x_property_data_to_lisp, defined_color)
1455 (xic_set_xfontset, x_defined_color): Use const.
1456
1457 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1458 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1459
1460 * xselect.c (selection_data_to_lisp_data)
1461 (x_property_data_to_lisp):
1462 * xrdb.c (x_get_string_resource, file_p)
1463 (x_get_customization_string, magic_file_p, search_magic_path)
1464 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1465 (x_get_string_resource): Use const.
1466
1467 * xfns.c: Include xlwmenu.h when USE_LUCID.
1468 (x_defined_color, xic_set_xfontset): Use const.
1469 (Fx_hide_tip): Remove local extern declaration.
1470
1471 * xfaces.c (Qmouse_face): Remove declaration.
1472 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1473 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1474
1475 * xdisp.c (do_mouse_tracking): Remove declaration.
1476 (add_to_log): Use const.
1477
1478 * minibuf.c (Qmouse_face): Remove declaration.
1479
1480 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1481
1482 * keyboard.h (do_mouse_tracking): Add declaration.
1483
1484 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1485 (QCdata, QCtype, Qcenter): Remove declarations.
1486
1487 * frame.c (x_get_resource_string, x_get_string_resource)
1488 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1489 (x_default_parameter): Use const.
1490
1491 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1492 (QCheight, QCsize, QCname): Remove declarations.
1493
1494 * emacs.c (main): Remove local extern declaration.
1495
1496 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1497 declarations.
1498
1499 * dispnew.c: Remove duplicate #include <unistd.h>.
1500 (update_window, update_frame_1, init_display): Remove local extern
1501 declarations.
1502
1503 * dispextern.h (add_to_log): Remove declaration.
1504 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1505 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1506
1507 * dired.c (scmp): Add const.
1508 (directory_files_internal): Remove local extern declaration.
1509
1510 * data.c (Finteractive_form): Use const.
1511
1512 * composite.c (syms_of_composite): Remove local extern declarations.
1513
1514 * charset.c (add_to_log): Remove declaration.
1515
1516 * character.c (strwidth, parse_str_to_multibyte): Add const.
1517
1518 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1519
1520 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1521
89dc303e 1522 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1523 (Lisp_Subr): Make doc and intspec constant.
1524 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1525 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1526 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1527 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1528 (display_arg): Add declarations.
89dc303e 1529
0ed082fe 15302010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1531
1532 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1533
0ed082fe
JB
1534 * window.c (Fwindow_height): Doc fix (bug#6518).
1535
15362010-07-27 Juanma Barranquero <lekktu@gmail.com>
1537
1538 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1539
ccaf0336
DN
15402010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1541
977105dc
DN
1542 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1543 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1544 functions.
1545
f5ada890
DN
1546 * frame.h (Qtty_color_mode): Add declaration.
1547
ccaf0336
DN
1548 * lisp.h (Ftop_level, Fexit_recursive_edit)
1549 (Fabort_recursive_edit): Mark as NO_RETURN.
1550
dfe3c90f
KH
15512010-07-26 Kenichi Handa <handa@m17n.org>
1552
1553 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1554 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1555
7d383292
JB
15562010-07-26 Juanma Barranquero <lekktu@gmail.com>
1557
1558 * lread.c (unreadpure, mapatoms_1): Make static.
1559
da31e629
JB
15602010-07-25 Juanma Barranquero <lekktu@gmail.com>
1561
1562 * terminfo.c (tparam): Fix prototype of tparm.
1563
7bfa6d77
AS
15642010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1565
dcc19aac
AS
1566 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1567 find start of text segment.
1568 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1569 is defined.
1570
7bfa6d77
AS
1571 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1572
63f9a672
KB
15732010-07-25 Ken Brown <kbrown@cornell.edu>
1574
1575 * vm-limit.c (check_memory_limits): Fix previous change;
1576 accidentally reverted an earlier change.
1577
24933075
KB
15782010-07-25 Ken Brown <kbrown@cornell.edu>
1579
1580 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1581 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1582
361358ea
JB
15832010-07-25 Juanma Barranquero <lekktu@gmail.com>
1584
1585 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1586 * dired.c (opendir, readdir): Fix prototypes.
1587 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1588 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1589 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1590 (telldir): Remove declaration.
1591 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1592 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1593 * syssignal.h (strsignal): Fix prototype.
1594 * term.c (tparam): Fix prototype.
1595 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1596 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1597 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1598 and __morecore.
1599 * w32gui.h (XParseGeometry): Fix prototype.
1600 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1601 * w32term.c (my_set_focus): Declare inside #if 0.
1602 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1603 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1604 (drain_message_queue, get_next_msg, post_msg, parse_button)
1605 (ClipboardSequence_Proc): Fix prototypes.
1606 (wait_for_sync): Remove declaration.
1607
630b9592
JB
16082010-07-24 Juanma Barranquero <lekktu@gmail.com>
1609
1610 * w32fns.c (w32_to_x_color): Remove, unused.
1611
6a0d6611
AS
16122010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1613
1614 * lisp.h: Remove leftover P_.
1615
4e8608ff
DN
16162010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1617
1618 * ecrt0.c, unexalpha.c: Remove files, unused.
1619
c8197983
AS
16202010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1621
1622 * cmds.c (internal_self_insert): Make static.
1623 * lisp.h (internal_self_insert): Remove declaration.
1624
97b372d7
JB
16252010-07-23 Juanma Barranquero <lekktu@gmail.com>
1626
33ac0414
JB
1627 * alloc.c (free_float):
1628 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1629 * frame.c (delete_frame_handler):
1630 * ralloc.c (reorder_bloc):
1631 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1632 Remove unused static functions.
1633
94da8397
JB
1634 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1635 it is called only from NS code.
1636
2e6c8532
JB
1637 * w32term.c (my_set_focus): #ifdef away; it is called only from
1638 "#ifdef 0" code.
1639
97b372d7
JB
1640 * w32fns.c (x_edge_detection):
1641 * xfaces.c (may_use_scalable_font_p):
1642 Remove obsolete static declarations.
1643
7c3320d8
JB
16442010-07-20 Juanma Barranquero <lekktu@gmail.com>
1645
1646 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1647 (emacs_blocked_realloc, uninterrupt_malloc):
1648 * fringe.c (w32_reset_fringes):
1649 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1650 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1651 * sound.c (be2hs, do_play_sound):
1652 * vm-limit.c (get_lim_data, ret_lim_data):
1653 * w32term.c (x_free_frame_resources):
1654 * xfaces.c (x_create_gc, x_free_gc):
1655 Convert definitions to standard C.
1656
d5273788
SM
16572010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1658
1659 * eval.c (Feval, Ffuncall): Use the new names.
1660
1661 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1662 (DEFUN): Add braces around the union initialisation and use ## to
1663 specify the right union alternative and avoid a cast.
1664
8d16a259
JB
16652010-07-18 Juanma Barranquero <lekktu@gmail.com>
1666
1667 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1668
3b8eff32
CY
16692010-07-17 Chong Yidong <cyd@stupidchicken.com>
1670
1671 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1672
499322ce
J
16732010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1674
1675 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1676 is related to the menu bar (Bug#6499).
a628ad9d 1677 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1678
f6003da5 16792010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1680
1681 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1682
1683 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1684
1685 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1686 i.e. don't put back ButtonRelease (Bug#6608).
1687
1688 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1689 instead of Window. Call xg_event_is_for_menubar when
1690 USE_GTK (Bug#6499).
1691
1692 * gtkutil.h (xg_event_is_for_menubar): Declare.
1693
1694 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1695
f6003da5 16962010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1697
1698 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1699 when it's the same as the old foreground. (Bug#6609)
1700
23243f29
J
17012010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1702
1703 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1704 widget is non-null (Bug#6645).
1705
2b23d2a6
AS
17062010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1707
01b564ff
AS
1708 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1709 Convert old-style definition.
1710
2b23d2a6
AS
1711 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1712 timestamp argument.
1713
c4affd2c
EZ
17142010-07-15 Eli Zaretskii <eliz@gnu.org>
1715
1716 * fringe.c (update_window_fringes): Restore mistakenly reverted
1717 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1718
cf28cebc
J
17192010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1720
1721 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1722 (SET_SAVED_KEY_EVENT): Remove (not used).
1723 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1724 remove size parameter.
1725 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1726 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1727 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1728 ButtonRelease.
6b2c4bd9
J
1729 (x_set_window_size_1): scroll_bar_actual_width is always
1730 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1731
1732 * xdisp.c (pending_menu_activation): Remove extern declaration.
1733 (prepare_menu_bars): Remove setting of pending_menu_activation.
1734
1735 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1736 (x_activate_menubar): Set popup_activated_flag for Xt also.
1737 Remove setting of pending_menu_activation.
cf28cebc
J
1738 (set_frame_menubar): Remove check of pending_menu_activation.
1739 Declare menubar_size before code. Correct spelling in comment.
1740
f6c1c771
KH
17412010-07-14 Kenichi Handa <handa@m17n.org>
1742
1743 * font.c (font_open_entity): Cancel previous change.
1744 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1745
20477505
EZ
17462010-07-13 Eli Zaretskii <eliz@gnu.org>
1747
77defa9a
EZ
1748 Remove subprocesses #ifdefs.
1749 * process.c <inhibit_sentinels>: Move to the common part.
1750 (Fwaiting_for_user_input_p): Move to the common part; return nil
1751 if async subprocesses aren't supported.
1752 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1753 MS-DOS. Remove "#ifdef subprocesses".
1754 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1755 (gettimeofday): Remove "#ifdef subprocesses".
1756 (wait_without_blocking): Remove function.
1757 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1758 Remove "#ifdef subprocesses".
1759 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1760 compiled on MS-DOS.
1761 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1762 wait_for_termination on MS-DOS.
1763 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1764 initialization of inhibit_sentinels.
1765 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1766 subprocesses" conditional.
1767 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1768 wait_for_termination, since `buffer' cannot be an integer when
1769 async subprocesses are not supported
1770 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1771 for ifdefing away the call to Fprocess_status.
1772
20477505
EZ
1773 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1774 away the entire body of the function.
1775
b3ffc17c
DN
17762010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1777
01faa934
DN
1778 Remove subprocesses #ifdefs from term.c.
1779 * process.c (add_keyboard_wait_descriptor)
1780 (delete_keyboard_wait_descriptor): Move to common section, do
1781 nothing when subprocesses is not defined.
a628ad9d
JB
1782 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1783 Remove subprocesses #ifdefs.
01faa934 1784
b3ffc17c
DN
1785 Convert maybe_fatal to standard C.
1786 * lisp.h (verror): Declare.
1787 * eval.c (verror): New function containing the code from ...
1788 (error): ... this. Call verror.
1789 * term.c (vfatal): New function containing the code from ...
1790 (fatal): ... this. Call vfatal.
1791 (maybe_fatal): Convert to standard C, use variable number of
1792 arguments. Declare as non-return.
1793 (init_tty): Fix maybe_fatal call.
1794
0521f580
DN
17952010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1796
1797 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1798 (_scroll_bar_note_movement): Convert definitions to standard C.
1799 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1800 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1801
ebd15611
DN
18022010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1803
1804 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1805 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1806 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1807 (xaw_jump_callback, xaw_scroll_callback)
1808 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1809 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1810 definitions to standard C.
1811 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1812 (popup_activate_callback, popup_deactivate_callback)
1813 (menu_highlight_callback, menubar_selection_callback)
1814 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1815 (free_frame_menubar, popup_selection_callback, as)
1816 (create_and_show_popup_menu, dialog_selection_callback)
1817 (create_and_show_dialog):
1818 * xfns.c (hack_wm_protocols, x_window):
1819 * xfaces.c (x_update_menu_appearance):
1820 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1821 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1822 (set_frame_size, update_wm_hints, setup_frame_gcs)
1823 (update_various_frame_slots, update_from_various_frame_slots)
1824 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1825 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1826 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1827
de06a2dd
AS
18282010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1829
a628ad9d 1830 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1831
fc549af9
EZ
18322010-07-12 Eli Zaretskii <eliz@gnu.org>
1833
1834 * process.c (setup_process_coding_systems): Move to the part
1835 shared by non-subprocesses systems, and make its body empty when
1836 subprocesses is not defined.
1837 (close_process_descs): Move to the part shared by non-subprocesses
1838 systems.
1408902e
EZ
1839 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1840 ANSI C.
fc549af9 1841
d5a3eaaf
AS
18422010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1843
1844 * editfns.c (transpose_markers): Convert old-style definition.
1845 * emacs.c (abort, shut_down_emacs, fixup_locale)
1846 (synchronize_system_time_locale)
1847 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1848 * floatfns.c (extract_float, matherr, init_floatfns)
1849 (syms_of_floatfns): Likewise.
1850 * fns.c (make_hash_table): Likewise.
1851 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1852 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1853 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1854 (ftfont_variation_glyphs): Likewise.
1855 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1856 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1857 * lread.c (read_filtered_event): Likewise.
1858 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1859 * process.c (wait_reading_process_output): Likewise.
1860 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1861 * search.c (search_buffer, boyer_moore): Likewise.
1862 * syntax.c (scan_sexps_forward): Likewise.
1863 * xdisp.c (try_scrolling): Likewise.
1864 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1865 (face_at_string_position): Likewise.
1866 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1867 * xselect.c (x_get_window_property, receive_incremental_selection)
1868 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1869 Likewise.
1870 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1871
6f704c76
DN
18722010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1873
ded80a25
DN
1874 * callproc.c (child_setup): Remove subprocesses conditional.
1875 Remove code dealing with SET_EMACS_PRIORITY, unused.
1876
49d937f4 1877 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1878 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1879
1880 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1881 (__do_global_dtors, __main): Use void in definition.
1882 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1883 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1884 the only users from ...
1885 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1886 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1887 (HAVE_VOLATILE): Remove, unused.
1888
6f704c76
DN
1889 Convert more function definitions to standard C.
1890 * xdisp.c (window_box_edges, handle_single_display_spec)
1891 (display_string): Convert definition to standard C.
1892 * scroll.c (do_direct_scrolling, scrolling_1):
1893 * dispnew.c (allocate_matrices_for_frame_redisplay)
1894 (mirrored_line_dance):
1895 * coding.c (code_convert_string):
1896 * charset.c (map_charset_chars):
1897 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1898 (Fregister_ccl_program, Fregister_code_conversion_map):
1899 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1900 (head_table): Make static and const.
1901
e6cfa7c3
AS
19022010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1903
1904 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1905 (PROFILING_LDFLAGS): Set from substitution.
1906 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1907 CFLAGS last.
1908
892dd565
KH
19092010-07-12 Kenichi Handa <handa@m17n.org>
1910
6f2cdcd1
KH
1911 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
1912 (shortlisp): Likewise.
1913
892dd565
KH
1914 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
1915
1916 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
1917 of FONT_ENTITY_INDEX.
1918 (Ffont_get): If KEY is :otf and the font-object doesn't have the
1919 property, get the property value dynamically.
1920 (Ffont_put): Accept font-entity and font-object too.
1921 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
1922 return value changed.
1923 (syms_of_font): Adjusted for the above change.
1924
ae96d47a
AS
19252010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1926
c8fc18ee
AS
1927 * blockinput.h: Remove obsolete comment.
1928
89887d67
AS
1929 * lisp.h: Include <stddef.h>.
1930 (OFFSETOF): Don't define.
1931 (VECSIZE): Use offsetof instead of OFFSETOF.
1932 (PSEUDOVECSIZE): Likewise.
1933 * process.c (conv_sockaddr_to_lisp): Likewise.
1934 * alloc.c: Don't include <stddef.h>.
1935 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
1936
ae96d47a
AS
1937 * process.c: Remove obsolete comment.
1938
635c0aa1
CY
19392010-07-11 Chong Yidong <cyd@stupidchicken.com>
1940
1941 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
1942
a64df650
AS
19432010-07-11 Andreas Schwab <schwab@linux-m68k.org>
1944
8966b757
AS
1945 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
1946 index, rindex.
1947 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
1948 * editfns.c (Fuser_full_name, Fformat): Likewise.
1949 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
1950 * fileio.c (Ffile_symlink_p): Likewise.
1951 * filelock.c (current_lock_owner): Likewise.
1952 * font.c (font_parse_name, font_parse_family_registry): Likewise.
1953 * fontset.c (fontset_pattern_regexp): Likewise.
1954 * lread.c (read1): Likewise.
1955 * sysdep.c (init_system_name): Likewise.
1956 * xfns.c (select_visual): Likewise.
1957 * s/hpux10-20.h (index, rindex): Don't define.
1958 * s/ms-w32.h (index): Likewise.
1959 * s/usg5-4.h: Likewise.
1960
cf237e27
AS
1961 * callproc.c (relocate_fd): Use F_DUPFD if defined.
1962
a8fe7202
AS
1963 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
1964 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
1965 (egetenv): Likewise.
1966 * doprnt.c (doprnt): Likewise.
1967 * editfns.c (set_time_zone_rule, format2): Likewise.
1968 * emacs.c (decode_env_path): Likewise.
1969 * eval.c (signal_error, error): Likewise.
1970 * insdel.c (replace_range_2): Likewise.
1971 * keyboard.c (cmd_error_internal): Likewise.
1972 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
1973 * print.c (write_string, write_string_1, print_error_message):
1974 Likewise.
1975 * vm-limit.c (warn_function, memory_warnings): Likewise.
1976 * xdisp.c (message1, message1_nolog, message_with_string)
1977 (vmessage, message, message_nolog): Likewise.
1978 * emacs.c: Remove duplicate declaration.
1979 * keyboard.h: Likewise.
1980 * lisp.h: Update prototypes.
1981
bb8e180f
AS
1982 * eval.c: Fix indentation problem.
1983
83380e65
AS
1984 * keyboard.c: Include "process.h"
1985
a64df650
AS
1986 * eval.c: Remove obsolete noinline declaration.
1987 * fns.c: Likewise.
1988
6a8033e1
KR
19892010-07-11 Ken Raeburn <raeburn@raeburn.org>
1990
1991 * doprnt.c (doprnt): Take a va_list argument instead of count and
1992 pointer.
1993 * eval.c (error): Change to a standard-C variadic function.
1994 * xdisp.c (vmessage): Renamed from message, made static, and
1995 changed to take a va_list argument.
1996 (message): New variadic wrapper.
1997 (message_nolog): Now a variadic function, calling vmessage.
1998 * lisp.h: Include stdarg.h for va_list.
1999 (doprnt, error, message, message_nolog): Decls updated.
2000
462aa963
EZ
20012010-07-11 Eli Zaretskii <eliz@gnu.org>
2002
2003 * process.c (syms_of_process) <delete-exited-processes>: Define
2004 even if !subprocesses.
2005 (delete_exited_processes): Ditto.
2006
2007 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2008 (delete_exited_processes): Don't define.
2009
48104462
CY
20102010-07-10 Chong Yidong <cyd@stupidchicken.com>
2011
2012 * frame.c (make_frame): Initialize menu_bar_lines and
2013 tool_bar_lines members.
2014 (make_initial_frame, make_terminal_frame): Initialize
2015 menu_bar_lines using value of menu-bar-mode.
2016
2017 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2018
f388c88a
EZ
20192010-07-10 Eli Zaretskii <eliz@gnu.org>
2020
2021 * process.c: Reshuffle #include's. Condition some of the global
2022 and static variables on `subprocesses'.
2023 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2024 Leave only one implementation.
2025 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2026 (kill_buffer_processes, Flist_system_processes)
2027 (Fprocess_attributes, init_process, syms_of_process): Unify the
2028 implementations for with subprocesses and without them.
2029
723f5a07
J
20302010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2031
2032 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2033 correct size for Motif.
2034 (free_frame_menubar): Call x_set_window_size to update frame size.
2035
2036 * xfns.c (x_window): Set borderWidth to 0 for pane and
2037 EmacsFrame. Frame size calculation is wrong otherwise.
2038
2536a4b7
MA
20392010-07-09 Michael Albinus <michael.albinus@gmx.de>
2040
2041 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2042 allows to suppress errors when polling in Emacs' main loop.
2043 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2044 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2045 (Fdbus_method_error_internal, Fdbus_send_signal)
2046 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2047 (Fdbus_register_method): Use it. (Bug#6579)
2048
5842a27b
DN
20492010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2050
2051 * alloc.c: Convert DEFUNs to standard C.
2052 * buffer.c:
2053 * bytecode.c:
2054 * callint.c:
2055 * callproc.c:
2056 * casefiddle.c:
2057 * casetab.c:
2058 * category.c:
2059 * character.c:
2060 * charset.c:
2061 * chartab.c:
2062 * cmds.c:
2063 * coding.c:
2064 * composite.c:
2065 * data.c:
2066 * dbusbind.c:
2067 * dired.c:
2068 * dispnew.c:
2069 * doc.c:
2070 * dosfns.c:
2071 * editfns.c:
2072 * emacs.c:
2073 * eval.c:
2074 * fileio.c:
2075 * filelock.c:
2076 * floatfns.c:
2077 * fns.c:
2078 * font.c:
2079 * fontset.c:
2080 * frame.c:
2081 * fringe.c:
2082 * image.c:
2083 * indent.c:
2084 * insdel.c:
2085 * keyboard.c:
2086 * keymap.c:
2087 * lread.c:
2088 * macros.c:
2089 * marker.c:
2090 * menu.c:
2091 * minibuf.c:
2092 * msdos.c:
2093 * nsfns.m:
2094 * nsmenu.m:
2095 * nsselect.m:
2096 * print.c:
2097 * process.c:
2098 * search.c:
2099 * sound.c:
2100 * syntax.c:
2101 * term.c:
2102 * terminal.c:
2103 * textprop.c:
2104 * undo.c:
2105 * w16select.c:
2106 * w32console.c:
2107 * w32fns.c:
2108 * w32font.c:
2109 * w32menu.c:
2110 * w32proc.c:
2111 * w32select.c:
2112 * window.c:
2113 * xdisp.c:
2114 * xfaces.c:
2115 * xfns.c:
2116 * xmenu.c:
2117 * xselect.c:
2118 * xsettings.c:
2119 * xsmfns.c: Likewise.
2120
d568829b
EZ
21212010-07-08 Eli Zaretskii <eliz@gnu.org>
2122
2123 * process.c (kbd_is_on_hold, hold_keyboard_input)
2124 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2125
52214050
J
21262010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2127
2128 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2129 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2130 unless USE_LUCID.
2131
313d9eb2
DN
21322010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2133
a628ad9d
JB
2134 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2135 declaration.
d8825aa3 2136
295d0d8f
DN
2137 Clean up include guards.
2138 * tparam.c: Remove include guards for config.h, string.h and code
2139 that assumes #ifndef emacs.
2140 * termcap.c:
2141 * unexalpha.c:
2142 * sysdep.c:
2143 * filemode.c:
2144 * filelock.c:
2145 * bidi.c: Likewise.
2146
49d9e6b0
DN
2147 Remove prefix-args.c
2148 * prefix-args.c: Remove file.
2149 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2150 * Makefile.in (temacs${EXEEXT}): Remove references to
2151 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2152 (mostlyclean): Remove reference to prefix-args.
2153 (prefix-args): Remove.
2154
313d9eb2
DN
2155 Simplify cstart_of_data, start_of_code and related code.
2156 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2157 (start_of_data): Merge into start_of_data function.
2158 * sysdep.c (start_of_text): Remove. Move simplified versions of
2159 it in the only users: unexaix.c and unexec.c.
2160 (read_input_waiting): Remove local declaration of quit_char.
2161 (start, etext): Remove declarations.
2162 (start_of_data): Merge with the version in mem-limits.h and move
2163 to vm-limits.c.
2164 * vm-limit.c (start_of_data): Merged and simplified version of the
2165 code formerly in mem-limits.h and sysdep.c.
2166 * unexec.c (start): New declaration, moved from sysdep.c.
2167 (start_of_text): Simplified version of the code formerly in sysdep.c.
2168 * unexaix.c (start_of_text): Simplified version of the code
2169 formerly in sysdep.c.
2170 * m/alpha.h (HAVE_TEXT_START): Remove.
2171 (TEXT_START): Move ...
2172 * unexalpha.c (TEXT_START): ... here.
2173 * s/hpux10-20.h (TEXT_START): Remove.
2174 * s/darwin.h (TEXT_START):
2175 * m/mips.h (TEXT_START):
2176 * m/macppc.h (HAVE_TEXT_START):
2177 * m/m68k.h (TEXT_START):
2178 * m/iris4d.h (TEXT_START):
2179 * m/intel386.h (TEXT_START):
2180 * m/ibmrs6000.h (TEXT_START):
2181 * m/ia64.h (HAVE_TEXT_START):
2182 * s/msdos.h (TEXT_START): Likewise.
2183
72af86bd
AS
21842010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2185
2186 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2187 (overrun_check_free, xstrdup, allocate_string)
2188 (allocate_string_data, compact_small_strings, Fmake_string)
2189 (make_unibyte_string, make_multibyte_string)
2190 (make_string_from_bytes, make_specified_string, make_float)
2191 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2192 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2193 memcpy, memmove, memset, memcmp.
2194 * atimer.c (start_atimer, set_alarm): Likewise.
2195 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2196 (mmap_realloc, init_buffer_once): Likewise.
2197 * callint.c (Fcall_interactively): Likewise.
2198 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2199 (getenv_internal_1): Likewise.
2200 * casefiddle.c (casify_object): Likewise.
2201 * ccl.c (ccl_driver): Likewise.
2202 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2203 * charset.c (load_charset_map_from_file)
2204 (load_charset_map_from_file, load_charset_map_from_vector)
2205 (Fdefine_charset_internal): Likewise.
2206 * cm.c (Wcm_clear): Likewise.
2207 * coding.c (decode_eol, decode_coding_object)
2208 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2209 * data.c (Faset): Likewise.
2210 * dired.c (directory_files_internal, file_name_completion_stat):
2211 Likewise.
2212 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2213 (clear_glyph_row, copy_row_except_pointers)
2214 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2215 (save_current_matrix, restore_current_matrix)
2216 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2217 (mirror_line_dance, scrolling_window): Likewise.
2218 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2219 Likewise.
2220 * doprnt.c (doprnt): Likewise.
2221 * editfns.c (Fuser_full_name, make_buffer_string_both)
2222 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2223 * emacs.c (sort_args): Likewise.
2224 * eval.c (Fapply, Ffuncall): Likewise.
2225 * fileio.c (Ffile_name_directory, make_temp_name)
2226 (Fexpand_file_name, search_embedded_absfilename)
2227 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2228 (auto_save_error): Likewise.
2229 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2230 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2231 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2232 (Fmake_hash_table): Likewise.
2233 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2234 * ftfont.c (ftfont_text_extents): Likewise.
2235 * getloadavg.c (getloadavg): Likewise.
2236 * image.c (define_image_type, make_image, make_image_cache)
2237 (x_create_x_image_and_pixmap, xbm_image_p)
2238 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2239 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2240 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2241 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2242 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2243 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2244 Likewise.
2245 * indent.c (scan_for_column, compute_motion): Likewise.
2246 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2247 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2248 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2249 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2250 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2251 (store_user_signal_events, menu_bar_items, tool_bar_items)
2252 (process_tool_bar_item, append_tool_bar_item)
2253 (read_char_minibuf_menu_prompt, read_key_sequence)
2254 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2255 Likewise.
2256 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2257 Likewise.
2258 * lisp.h (STRING_COPYIN): Likewise.
2259 * lread.c (Fload, read1, oblookup): Likewise.
2260 * msdos.c (Frecent_doskeys): Likewise.
2261 * nsfns.m (Fx_create_frame): Likewise.
2262 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2263 Likewise.
2264 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2265 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2266 Likewise.
2267 * nsmenu.m (ns_update_menubar): Likewise.
2268 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2269 * print.c (print_unwind, printchar, strout, print_string)
2270 (print_error_message): Likewise.
2271 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2272 (Fmake_network_process, Fnetwork_interface_list)
2273 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2274 (init_process): Likewise.
2275 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2276 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2277 Likewise.
2278 * scroll.c (do_scrolling, do_direct_scrolling)
2279 (scrolling_max_lines_saved): Likewise.
2280 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2281 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2282 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2283 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2284 (emacs_set_tty): Likewise.
2285 * term.c (encode_terminal_code, calculate_costs)
2286 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2287 Likewise.
2288 * termcap.c (tgetst1, gobble_line): Likewise.
2289 * termhooks.h (EVENT_INIT): Likewise.
2290 * tparam.c (tparam1): Likewise.
2291 * unexalpha.c (unexec): Likewise.
2292 * unexec.c (write_segment): Likewise.
2293 * unexmacosx.c (unexec_write_zero): Likewise.
2294 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2295 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2296 * w32font.c (w32font_list_family, w32font_text_extents)
2297 (w32font_list_internal, w32font_match_internal)
2298 (w32font_open_internal, compute_metrics, Fx_select_font):
2299 Likewise.
2300 * w32menu.c (set_frame_menubar, add_menu_item)
2301 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2302 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2303 * w32uniscribe.c (uniscribe_list_family): Likewise.
2304 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2305 * window.c (make_window, replace_window, set_window_buffer)
2306 (Fsplit_window): Likewise.
2307 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2308 (add_to_log, message3, x_consider_frame_title)
2309 (append_space_for_newline, extend_face_to_end_of_line)
2310 (decode_mode_spec_coding, init_glyph_string): Likewise.
2311 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2312 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2313 (face_attr_equal_p, make_realized_face, make_face_cache)
2314 (free_realized_faces, lookup_named_face, smaller_face)
2315 (face_with_height, lookup_derived_face)
2316 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2317 (Finternal_set_font_selection_order, realize_default_face)
2318 (compute_char_face, face_at_buffer_position)
2319 (face_for_overlay_string, face_at_string_position, merge_faces):
2320 Likewise.
2321 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2322 (Fx_window_property, x_create_tip_frame)
2323 (Fx_backspace_delete_keys_p): Likewise.
2324 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2325 (xfont_text_extents): Likewise.
2326 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2327 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2328 * xselect.c (x_queue_event, x_get_window_property)
2329 (receive_incremental_selection): Likewise.
2330 * xsmfns.c (x_session_check_input): Likewise.
2331 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2332 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2333 Likewise.
2334 * character.h (BCOPY_SHORT): Removed.
2335 * config.in: Regenerate.
2336 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2337 * emacs.c (main) [PROFILING]: Don't declare
2338 dump_opcode_frequencies.
2339 * lisp.h (safe_bcopy): Remove declaration.
2340 (memset) [!HAVE_MEMSET]: Declare.
2341 (memcpy) [!HAVE_MEMCPY]: Likewise.
2342 (memmove) [!HAVE_MEMMOVE]: Likewise.
2343 (memcmp) [!HAVE_MEMCMP]: Likewise.
2344 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2345 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2346 Don't define.
2347 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2348 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2349 (BCOPY_DOWNWARD_SAFE): Don't define.
2350 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2351 (memcpy) [!HAVE_MEMCPY]: Define.
2352 (memmove) [!HAVE_MEMMOVE]: Define.
2353 (memcmp) [!HAVE_MEMCMP]: Define.
2354
cb768704
J
23552010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2356
2357 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2358 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2359 New functions.
cb768704
J
2360 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2361 select on empty input mask.
2362 (init_process): Initialize kbd_is_on_hold to 0.
2363
2364 * process.h (hold_keyboard_input, unhold_keyboard_input)
2365 (kbd_on_hold_p): Declare.
2366
2367 * keyboard.c (input_available_signal): Declare.
2368 (kbd_buffer_nr_stored): New function.
2369 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2370 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2371 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2372 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2373 (tty_read_avail_input): If input is on hold, return.
2374 Don't read more that free slots in kbd_buffer (Bug#6571).
2375
3a8ce822
EZ
23762010-07-07 Eli Zaretskii <eliz@gnu.org>
2377
2378 * msdos.h:
2379 * msdos.c:
2380 * dosfns.c:
2381 * w16select.c: Convert function definitions to ANSI C.
2382
a628ad9d
JB
2383 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2384 Remove unused prototypes.
3a8ce822 2385
cf84bb53
JB
23862010-07-07 Juanma Barranquero <lekktu@gmail.com>
2387
2388 * coding.c, sysdep.c: Convert some more functions to standard C.
2389
1a4990fb
JB
23902010-07-07 Juanma Barranquero <lekktu@gmail.com>
2391
2392 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2393 (encode_coding_object): Use SPECPDL_INDEX.
2394 (syms_of_coding): Use DOS_NT.
2395
c0f2f16b
DN
23962010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2397
48fb6855
DN
2398 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2399
c0f2f16b
DN
2400 Make the function member of Lisp_Subr use standard C prototypes.
2401 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2402 (DECL_ALIGN): Add a cast for the function.
2403 * eval.c (Feval, Ffuncall): Use the proper type for each type
2404 function call.
2405
67aecef9
CY
24062010-07-06 Chong Yidong <cyd@stupidchicken.com>
2407
2408 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2409 fringe face id, so face-remapping-alist works (Bug#6091).
2410
b56ceb92
JB
24112010-07-06 Juanma Barranquero <lekktu@gmail.com>
2412
2413 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2414 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2415 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2416
7af07b96
AS
24172010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2418
2419 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2420 * lisp.h: Declare x_get_keysym_name.
2421 * keyboard.c (modify_event_symbol): Don't declare
2422 x_get_keysym_name here.
2423
69e24e34
DN
24242010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2425
2426 * ecrt0.c: Revert conversion to standard C.
2427
d3da34e0 24282010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2429
2430 * vm-limit.c (memory_warnings):
2431 * keyboard.c (modify_event_symbol):
2432 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2433 (round2, emacs_rint):
2434 * process.c (send_process, old_sigpipe): Convert function
2435 definitions and declarations to standard C.
2436
24372010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2438
2439 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2440 * xdisp.c: Convert function definitions to standard C.
2441
2442 * cm.c (cmputc): Arg C is now int, not char.
2443 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2444
00be444c
J
24452010-07-05 James Cloos <cloos@jhcloos.com>
2446
2447 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2448
2449 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2450 _NET_WM_ICON_NAME atoms.
2451
2452 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2453 and _NET_WM_ICON_NAME properties, too, matching what is
2454 done in the Gtk+ case.
2455
e4c8d29a
J
24562010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2457
ff919460
J
2458 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2459
e4c8d29a
J
2460 * xsmfns.c (SSDATA): New macro.
2461 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2462 passed to strlen/strcpy/strcat.
2463 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2464 7:th arg to XChangeProperty to (unsigned char *)
2465
2466 * xsettings.c (something_changedCB, parse_settings)
2467 (apply_xft_settings): Reformat prototype.
2468 (something_changedCB, init_gconf): Remove unused variable i.
2469 (read_settings): Remove unused variable long_len.
2470
2471 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2472 (xg_get_image_for_pixmap, create_dialog)
2473 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2474 (menuitem_highlight_callback, make_menu_item)
2475 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2476 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2477 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2478 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2479 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2480 (xg_tool_bar_item_expose_callback): Reformat prototype.
2481 (xg_update_menubar): GList *group => GSList *group.
2482 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2483 before use.
2484 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2485 to GTK_IMAGE (wimage).
2486
dd4c5104
DN
24872010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2488
898b4c5c
DN
2489 * atimer.c: Use "" instead of <> for local includes for
2490 consistency with the rest of the code.
2491
dd4c5104
DN
2492 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2493 * xrdb.c (get_system_name):
2494 * window.c (shrink_windows):
2495 * syntax.c (forw_comment):
2496 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2497 (ins_del_costs):
2498 * mem-limits.h (start_of_data):
2499 * lread.c (readevalloop):
2500 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2501 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2502 * frame.c (x_get_focus_frame):
2503 * floatfns.c (fmod_float):
2504 * fileio.c (choose_write_coding_system):
2505 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2506 (malloc_initialize_hook, sort_args, synchronize_locale):
2507 * doprnt.c (doprnt):
2508 * dired.c (compile_pattern):
2509 * data.c (fmod_float):
2510 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2511 (map_char_table_for_charset):
2512 * charset.c (define_charset_internal):
2513 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2514 to standard C.
2515
9a39b306 25162010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2517 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2518
2519 * lread.c (read1): Fix up last change to not mess up `c'.
2520
e6cb2cbb
JB
25212010-07-04 Juanma Barranquero <lekktu@gmail.com>
2522
2523 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2524
438105ed
JB
25252010-07-04 Juanma Barranquero <lekktu@gmail.com>
2526
2527 Fix prototypes.
2528
e5447b22 2529 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2530 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2531 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2532 arg, as required by internal_condition_case_1.
dcc7404b 2533 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2534 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2535 (analyse_first): Fix "const const".
e5447b22 2536 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2537 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2538 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2539
971de7fb
DN
25402010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2541
2542 * alloc.c: Convert function definitions to standard C.
2543 * atimer.c:
2544 * bidi.c:
2545 * bytecode.c:
2546 * callint.c:
2547 * callproc.c:
2548 * casefiddle.c:
2549 * casetab.c:
2550 * category.c:
2551 * ccl.c:
2552 * character.c:
2553 * charset.c:
2554 * chartab.c:
2555 * cmds.c:
2556 * coding.c:
2557 * composite.c:
2558 * data.c:
2559 * dbusbind.c:
2560 * dired.c:
2561 * dispnew.c:
2562 * doc.c:
2563 * doprnt.c:
2564 * ecrt0.c:
2565 * editfns.c:
2566 * fileio.c:
2567 * filelock.c:
2568 * filemode.c:
2569 * fns.c:
2570 * font.c:
2571 * fontset.c:
2572 * frame.c:
2573 * fringe.c:
2574 * ftfont.c:
2575 * ftxfont.c:
2576 * gtkutil.c:
2577 * indent.c:
2578 * insdel.c:
2579 * intervals.c:
2580 * keymap.c:
2581 * lread.c:
2582 * macros.c:
2583 * marker.c:
2584 * md5.c:
2585 * menu.c:
2586 * minibuf.c:
2587 * prefix-args.c:
2588 * print.c:
2589 * ralloc.c:
2590 * regex.c:
2591 * region-cache.c:
2592 * scroll.c:
2593 * search.c:
2594 * sound.c:
2595 * strftime.c:
2596 * syntax.c:
2597 * sysdep.c:
2598 * termcap.c:
2599 * terminal.c:
2600 * terminfo.c:
2601 * textprop.c:
2602 * tparam.c:
2603 * undo.c:
2604 * unexelf.c:
2605 * window.c:
2606 * xfaces.c:
2607 * xfns.c:
2608 * xfont.c:
2609 * xftfont.c:
2610 * xgselect.c:
2611 * xmenu.c:
2612 * xrdb.c:
2613 * xselect.c:
2614 * xsettings.c:
2615 * xsmfns.c:
2616 * xterm.c: Likewise.
2617
ae492bec
EZ
26182010-07-03 Eli Zaretskii <eliz@gnu.org>
2619
76ea4cc9
EZ
2620 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2621 frames other than the initial one. Fix reversal of colors when
2622 `reverse' is specified in the frame parameters. Call
2623 update_face_from_frame_parameter instead of
2624 internal-set-lisp-face-attribute. Initialize screen colors from
2625 initial_screen_colors[] when f->default_face_done_p is zero,
2626 instead of depending on being called with default-frame-alist as
2627 the alist argument.
2628
2629 * xfaces.c (update_face_from_frame_parameter): Move out of
2630 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2631 with HAVE_WINDOW_SYSTEM.
2632
1e6255ae
EZ
2633 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2634 to menu-bar-mode, if not set in the frame parameters or in
2635 default-frame-alist.
2636
ae492bec
EZ
2637 * w32console.c (sys_tputs): Adjust argument list to prototype in
2638 term.c.
2639
3a35a84c
JB
26402010-07-03 Juanma Barranquero <lekktu@gmail.com>
2641
2642 * lisp.h (memory_warnings): Fix prototype.
2643
2644 * cm.h (evalcost): Fix prototype.
2645
2646 * cm.c (evalcost): Fix arg type.
2647
c532d349
DN
26482010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2649
2650 * term.c (term_clear_mouse_face, Fidentity):
2651 * syssignal.h (signal_handler_t):
2652 * lisp.h (memory_warnings):
2653 * coding.h (preferred_coding_system):
2654 * cm.h (evalcost):
2655 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2656
c0b36d46
EZ
26572010-07-02 Eli Zaretskii <eliz@gnu.org>
2658
2659 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2660 from prototypes.
2661
2662 * msdos.h (load_pixmap): Don't define away.
2663
383e0970
J
26642010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2665
f57e2426
J
2666 * lisp.h:
2667 * atimer.h: Remove define for P_.
2668
2669 * alloc.c: Remove __P and P_ from .c and .m files.
2670 * atimer.c:
2671 * buffer.c:
2672 * callint.c:
2673 * category.c:
2674 * charset.c:
2675 * chartab.c:
2676 * cm.c:
2677 * coding.c:
2678 * composite.c:
2679 * data.c:
2680 * dired.c:
2681 * dispnew.c:
2682 * doc.c:
2683 * editfns.c:
2684 * emacs.c:
2685 * eval.c:
2686 * fileio.c:
2687 * filelock.c:
2688 * fns.c:
2689 * font.c:
2690 * fontset.c:
2691 * frame.c:
2692 * ftfont.c:
2693 * ftxfont.c:
2694 * gmalloc.c:
2695 * gtkutil.c:
2696 * image.c:
2697 * indent.c:
2698 * intervals.c:
2699 * keyboard.c:
2700 * keymap.c:
2701 * lread.c:
2702 * marker.c:
2703 * menu.c:
2704 * minibuf.c:
2705 * print.c:
2706 * process.c:
2707 * scroll.c:
2708 * search.c:
2709 * sound.c:
2710 * strftime.c:
2711 * syntax.c:
2712 * sysdep.c:
2713 * term.c:
2714 * terminal.c:
2715 * textprop.c:
2716 * unexalpha.c:
2717 * w32console.c:
2718 * w32fns.c:
2719 * w32font.c:
2720 * w32menu.c:
2721 * w32term.c:
2722 * w32uniscribe.c:
2723 * window.c:
2724 * xdisp.c:
2725 * xfaces.c:
2726 * xfns.c:
2727 * xfont.c:
2728 * xftfont.c:
2729 * xmenu.c:
2730 * xselect.c:
2731 * xterm.c: Likewise.
2732
383e0970 2733 Remove P_ and __P macros.
f57e2426
J
2734 * atimer.h: Remove P_ and __P macros.
2735 * buffer.h:
383e0970
J
2736 * category.h:
2737 * ccl.h:
2738 * character.h:
2739 * charset.h:
2740 * cm.h:
2741 * coding.h:
2742 * composite.h:
2743 * dispextern.h:
2744 * disptab.h:
9e892c8d 2745 * dosfns.h:
383e0970
J
2746 * font.h:
2747 * fontset.h:
2748 * frame.h:
2749 * gtkutil.h:
2750 * indent.h:
2751 * intervals.h:
2752 * keyboard.h:
2753 * keymap.h:
2754 * lisp.h:
2755 * macros.h:
2756 * md5.h:
2757 * menu.h:
2758 * msdos.h:
2759 * nsterm.h:
2760 * puresize.h:
2761 * region-cache.h:
2762 * syntax.h:
2763 * syssignal.h:
2764 * systime.h:
2765 * termhooks.h:
9e892c8d 2766 * w32font.h:
383e0970
J
2767 * w32term.h:
2768 * widget.h:
2769 * window.h:
2770 * xgselect.h:
2771 * xsettings.h:
2772 * xterm.h: Likewise.
2773
98601119
DN
27742010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2775
d9170db5
DN
2776 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2777
98601119
DN
2778 Cleanup old code.
2779 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2780 * syssignal.h: Remove code for Lynx, not supported anymore.
2781 * vm-limit.c: Remove unused code the depends on emacs not being
2782 defined and NO_LIM_DATA being defined.
2783 * mem-limits.h: Remove dead code.
2784
1f984e12
J
27852010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2786
c49d071a
J
2787 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2788
9d5405ec
J
2789 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2790 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2791
7a18115b
J
2792 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2793 parameters, they are already absolute.
2794
a628ad9d
JB
2795 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2796 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2797
a628ad9d 2798 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2799
a628ad9d
JB
2800 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2801 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2802
a628ad9d
JB
2803 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2804 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2805
c1ef4455
CY
28062010-06-30 Chong Yidong <cyd@stupidchicken.com>
2807
2808 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2809 check default-frame-alist.
2810
ce8f5a9a
AS
28112010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2812
2813 * process.c (create_process): Avoid using invalid file descriptors.
2814
2815 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2816
bf935339
J
28172010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2818
2819 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2820 Improve documentation. Return font regardless of use_system_font.
2821 (syms_of_xsettings): Improve documentation for font-use-system-font.
2822
7c33a057
CY
28232010-07-10 Chong Yidong <cyd@stupidchicken.com>
2824
2ec1b5ee
CY
2825 * xfaces.c (realize_face): Garbage the frame if a face is removed
2826 (Bug#6593).
2827
28282010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2829
2830 * keyboard.c: Remove duplicate <setjmp.h>.
2831 (read_key_sequence): Remove volatile qualifiers.
2832
28332010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2834
2835 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2836 (struct glyph_row): New members left_fringe_offset and
2837 right_fringe_offset.
2838
2839 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2840 specially.
2841 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2842 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2843
2844 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2845 Take account of bitmap offset.
2ec1b5ee
CY
2846 (draw_window_fringes): Take account of window vscroll.
2847 (update_window_fringes): Likewise. Extend top-aligned top indicator
2848 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2849 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2850 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2851
28522010-07-04 Juanma Barranquero <lekktu@gmail.com>
2853
2854 * w32fns.c (Qtooltip): Declare.
2855 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2856
28572010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2858
2859 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2860 grab on just Press (Bug#6499).
2861
28622010-07-02 Chong Yidong <cyd@stupidchicken.com>
2863
2864 * frame.c (Qtooltip): New var.
2865 (delete_frame): Use it. Fix faulty if statement. Don't update
2866 mode line for tooltip frames. Suggested by Martin Rudalics.
2867
2868 * xfns.c (x_create_tip_frame):
2869 * w32fns.c (x_create_tip_frame): Use it.
2870
28712010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2872
2873 * xftfont.c (xftfont_open): Check font width one by one also when
2874 spacing is dual.
2875
2876 * ftfont.c (ftfont_open): Ditto.
2877
6259c2ec
GM
28782010-06-30 Glenn Morris <rgm@gnu.org>
2879
a46007e9
GM
2880 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2881
6259c2ec
GM
2882 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2883
2884 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2885 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2886 * s/darwin.h (SYSTEM_MALLOC):
2887 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2888
5d1d3d04
J
28892010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2890
2891 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2892 (ns_get_screen): Don't assign integer to f.
2893 (Fx_display_color_cells): Declarations before statements.
2894
e547b051
J
28952010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2896
5fc8e5bc
J
2897 * xfns.c (x_default_font_parameter): Remove got_from_system
2898 (Bug#6526).
2899
e547b051
J
2900 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2901 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2902 defines based on what configure finds.
2903
2904 * xterm.c (XTflash): Use gtk_widget_get_window.
2905 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2906 gtk_adjustment_get_page_size.
2907 (handle_one_xevent): Use gtk_widget_get_mapped.
2908 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2909 messages.
2910
2911 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
2912
2913 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
2914 HAVE_GTK_FILE_SELECTION_NEW.
2915
2916 * gtkutil.c (xg_display_open, xg_display_close): Remove
2917 HAVE_GTK_MULTIDISPLAY, it is always defined.
2918 (xg_display_open): Return type is void.
2919 (gtk_widget_set_has_window)
2920 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
2921 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
2922 (gtk_adjustment_set_page_increment)
2923 (gtk_adjustment_get_step_increment): #define these if not found
2924 by configure.
2925 (remove_submenu): New define based on Gtk+ version.
2926 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
2927 gtk_widget_get_window.
2928 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
2929 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
2930 (create_dialog): Use gtk_dialog_get_action_area and
2931 gtk_dialog_get_content_area.
2932 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
2933 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
2934 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
2935 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
2936 g_object_ref and g_object_unref.
2937 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
2938 gtk_widget_get_sensitive.
2939 (xg_update_submenu): Use remove_submenu.
2940 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
2941 properties instead to get old x and y position.
2942 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
2943 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 2944 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
2945 (xg_get_tool_bar_widgets): New function.
2946 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
2947 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
2948 (toolbar_set_orientation): New #define based on if configure
2949 finds gtk_orientable_set_orientation.
2950 (xg_create_tool_bar): Call toolbar_set_orientation.
2951 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
2952 instead of gtk_box_pack_start_defaults.
2953
b9229673
CY
29542010-06-28 Chong Yidong <cyd@stupidchicken.com>
2955
2956 * cmds.c (Fdelete_backward_char): Move into Lisp.
2957
bbc803b0
DN
29582010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
2959
2960 * s/freebsd.h (BSD4_2): Remove redundant definition.
2961 bsd-common.h defines it already.
2962
6431f2e6
CY
29632010-06-27 Chong Yidong <cyd@stupidchicken.com>
2964
2965 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
2966 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
2967 tool-bar-mode, which are now set using these X resources at
2968 startup, to determine the defaults (Bug#2249).
2969
2970 * w32fns.c (Fx_create_frame):
2971 * nsfns.m (Fx_create_frame): Likewise.
2972
2973 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
2974
8c079ebb
JB
29752010-06-24 Juanma Barranquero <lekktu@gmail.com>
2976
2977 * gtkutil.c (xg_update_scrollbar_pos):
2978 Avoid C99 mid-block variable declaration.
2979
e9b7ab96
JD
29802010-06-22 Jan Djärv <jan.h.d@swipnet.se>
2981
bc869eca
JD
2982 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
2983
2b7e356a 2984 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
2985
2986 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
2987 if height is less than scroll bar min size.
2988 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
2989
e9b7ab96
JD
2990 * xfns.c (x_default_font_parameter): Try to open font from system
2991 before using it (bug#6478). Rename got_from_gconf to got_from_system.
2992
a628ad9d 29932010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
2994
2995 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
2996
70c4cfbb
EZ
29972010-06-20 Eli Zaretskii <eliz@gnu.org>
2998
2999 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3000 most-positive-fixnum, be extra accurate when scrolling window
3001 start, to avoid missing the cursor line.
3002
ad5a12b5
EZ
30032010-06-19 Eli Zaretskii <eliz@gnu.org>
3004
3005 * xdisp.c (try_scrolling): Compute the limit for searching point
3006 in forward scroll from scroll_max, instead of an arbitrary limit
3007 of 10 screen lines. See
3008 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3009 and
3010 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3011 for details.
3012
2a64315a 30132010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3014
3015 * editfns.c (Fbyte_to_string): Pacify compiler.
3016
288cf4e9
SM
30172010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3018
3019 * lread.c (read1): Phase out old-style backquotes a bit more.
3020
6e6e5760
EZ
30212010-06-12 Eli Zaretskii <eliz@gnu.org>
3022
cbc4fd20
EZ
3023 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3024 bidimirror.h.
3025
3026 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3027
317fbf33
EZ
3028 * bidi.c (bidi_initialize): Remove explicit initialization of
3029 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3030 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3031 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3032
3033 * biditype.h: New file.
3034
cbc4fd20
EZ
3035 * bidimirror.h: New file.
3036
6e6e5760
EZ
3037 * window.c (syms_of_window): Doc fix (bug#6409).
3038
4176cba2
RF
30392010-06-12 Romain Francoise <romain@orebokech.com>
3040
3041 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3042 ediff-hook.
3043
cb4bfcb5
GM
30442010-06-10 Glenn Morris <rgm@gnu.org>
3045
64c60c2f
GM
3046 * editfns.c (Fbyte_to_string): Pacify compiler.
3047
cb4bfcb5
GM
3048 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3049
2ec1b5ee
CY
30502010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3051
3052 * alloc.c (Fmake_byte_code): Don't access undefined argument
3053 (Bug#6517).
3054
30552010-06-25 Chong Yidong <cyd@stupidchicken.com>
3056
3057 * xdisp.c (next_element_from_image): Ensure that after-strings are
3058 read the next time we hit handle_stop (Bug#1336).
3059
30602010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3061
3062 * lread.c (read1): Signal error if #s is not followed by paren.
3063
30642010-06-19 Chong Yidong <cyd@stupidchicken.com>
3065
3066 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3067
3068 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3069
30702010-06-15 Glenn Morris <rgm@gnu.org>
3071
3072 * editfns.c (Fbyte_to_string): Pacify compiler.
3073
e454a4a3
SM
30742010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3075
3076 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3077 Check `object's type before accessing its guts.
3078
c1b1acc2
DN
30792010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3080
3081 * s/usg5-4.h: Fix previous change.
3082 Suggested by Lawrence Mitchell <wence@gmx.li>
3083
657d4c0b
AS
30842010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3085
3086 * minibuf.c (Fall_completions): Add more checks.
3087
9b27fd9f
JB
30882010-06-08 Juanma Barranquero <lekktu@gmail.com>
3089
3090 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3091
a99ebb40
DN
30922010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3093
d7c5d87d
DN
3094 * lread.c (X_OK): Remove, unused.
3095
0263a941
DN
3096 * dispnew.c: Remove obsolete comment.
3097
a99ebb40
DN
3098 Remove INCLUDED_FCNTL.
3099 * xterm.c (INCLUDED_FCNTL):
3100 * callproc.c (INCLUDED_FCNTL):
3101 * alloc.c (INCLUDED_FCNTL):
3102 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3103 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3104
13b5221f
MR
31052010-06-07 Martin Rudalics <rudalics@gmx.at>
3106
3107 * window.c (Fselect_window): Move `record_buffer' up to the
3108 beginning of this function, so the buffer gets recorded
3109 even if the selected window does not change.
3110 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3111
5220357f
JB
31122010-06-07 Juanma Barranquero <lekktu@gmail.com>
3113
3114 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3115 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3116
3085237c
DN
31172010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3118
3119 Remove BSTRING related code, all platforms define it.
3120 * s/usg5-4.h (BSTRING): Remove definition.
3121 * s/template.h (BSTRING):
3122 * s/msdos.h (BSTRING):
3123 * s/ms-w32.h (BSTRING):
3124 * s/hpux10-20.h (BSTRING):
3125 * s/gnu-linux.h (BSTRING):
3126 * s/darwin.h (BSTRING):
3127 * s/cygwin.h (BSTRING):
3128 * s/bsd-common.h (BSTRING):
3129 * s/aix4-2.h (BSTRING): Likewise.
3130 * sysdep.c: Remove code depending on BSTRING not being defined.
3131
409f2919
JB
31322010-06-05 Juanma Barranquero <lekktu@gmail.com>
3133
3134 Remove obsolete macro BASE_LEADING_CODE_P.
3135 * character.h (BASE_LEADING_CODE_P): Remove.
3136 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3137 * buffer.c (Fset_buffer_multibyte):
3138 * indent.c (scan_for_column, compute_motion):
3139 * insdel.c (count_combining_before, count_combining_after):
3140 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3141
087fc47a
JB
31422010-06-04 Juanma Barranquero <lekktu@gmail.com>
3143
3144 Turn `directory-sep-char' into a noop.
3145
3146 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3147 (DIRECTORY_SEP): Define unconditionally.
3148
3149 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3150
3151 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3152 call dostounix_filename directly.
3153
3154 * fileio.c (CORRECT_DIR_SEPS): Remove.
3155 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3156 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3157 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3158 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3159
3160 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3161 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3162
0eb7675e
AS
31632010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3164
a628ad9d
JB
3165 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3166 (Bug#6346)
0eb7675e 3167
78edd3b7
JB
31682010-06-03 Juanma Barranquero <lekktu@gmail.com>
3169
3170 * ccl.c (Fccl_program_p): Fix typo in docstring.
3171
eb697db5
DN
31722010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3173
3174 Move UNEXEC definition to autoconf.
3175 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3176 * s/sol2-10.h (UNEXEC):
3177 * s/irix6-5.h (UNEXEC):
3178 * s/hpux10-20.h (UNEXEC):
3179 * s/gnu-linux.h (UNEXEC):
3180 * s/darwin.h (UNEXEC):
3181 * s/cygwin.h (UNEXEC):
3182 * s/bsd-common.h (UNEXEC):
3183 * s/aix4-2.h (UNEXEC):
3184 * m/alpha.h (UNEXEC): Likewise.
3185 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3186
aa3830c4
JB
31872010-06-03 Juanma Barranquero <lekktu@gmail.com>
3188
3189 Remove obsolete pre-unicode2 macros.
3190 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3191 * composite.c (composition_reseat_it):
3192 * data.c (Faset):
3193 * fns.c (Ffillarray):
3194 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3195 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3196
d234d13e
JL
31972010-06-03 Juri Linkov <juri@jurta.org>
3198
3199 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3200 (Fswitch_to_buffer): Remove unused variable `err'.
3201
0d4bcf4d
GM
32022010-06-03 Glenn Morris <rgm@gnu.org>
3203
e23dc1e2
GM
3204 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3205
05b09564
GM
3206 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3207 now that AH_BOTTOM does it.
3208
824e2978
GM
3209 * m/hp800.h (HAVE_ALLOCA):
3210 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3211
0d4bcf4d
GM
3212 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3213 Remove NOT_C_CODE tests, it is always true now.
3214
c55d2abf
DN
32152010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3216
08a494a3
DN
3217 Fix config.h includes.
3218 * xsettings.c:
3219 * xgselect.c:
3220 * nsterm.m:
3221 * nsselect.m:
3222 * nsimage.m:
3223 * nsfont.m:
3224 * nsfns.m:
3225 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3226 other files do.
3227
75934b1d
DN
3228 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3229
9f32a766
DN
3230 * s/sol2-6.h: Remove obsolete comments.
3231
c55d2abf
DN
3232 Remove unnecessary alloca.h includes.
3233 * keymap.c: Do not include alloca.h, config.h does that.
3234 * sysdep.c: Likewise. Do not define fwrite, not used.
3235
06ac62b4
SM
32362010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3237
3238 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3239 the HAVE_TERMIO where it belongs (bug#6149).
3240
1ab8293c
SM
32412010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3242
3243 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3244 of bug#6305).
3245
6dcfd253
EZ
32462010-05-30 Eli Zaretskii <eliz@gnu.org>
3247
3248 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3249 state is always cached (bug#6306).
3250
6d26bbb2
EZ
32512010-05-29 Eli Zaretskii <eliz@gnu.org>
3252
06fa4a23
EZ
3253 Fix cursor motion in bidi-reordered continued lines.
3254 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3255 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3256 over continuation lines in bidi-reordered buffers. Return
3257 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3258 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3259
f5783df3
MA
32602010-05-28 Michael Albinus <michael.albinus@gmx.de>
3261
3262 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3263
7d56b2dd
KH
32642010-05-28 Kenichi Handa <handa@m17n.org>
3265
3266 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3267 Don't sheck SPEC if it is nil.
3268 (font_list_entities): Call font_delete_unmatched if
b925d231 3269 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3270
e58d4ff7
GM
32712010-05-28 Glenn Morris <rgm@gnu.org>
3272
3273 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3274
f1a5d776
CY
32752010-05-27 Chong Yidong <cyd@stupidchicken.com>
3276
3277 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3278 whether to trash.
3279 (internal_delete_file, Frename_file): Callers changed.
3280 (delete_by_moving_to_trash): Doc fix.
3281 (Fdelete_directory_internal): Don't move to trash.
3282
3283 * callproc.c (delete_temp_file):
3284 * buffer.c (Fkill_buffer): Callers changed.
3285
3286 * lisp.h: Update prototype.
3287
f44a59e6
CY
32882010-05-27 Chong Yidong <cyd@stupidchicken.com>
3289
3290 * xdisp.c (redisplay_window): After redisplay, check if point is
3291 still valid before setting it (Bug#6177).
3292
81ac4f35
GM
32932010-05-27 Glenn Morris <rgm@gnu.org>
3294
3295 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3296 Convert comments to Makefile format.
3297
3298 * Makefile.in (bootstrap-clean): No more Makefile.c.
3299
ccd89fb3
GM
33002010-05-26 Glenn Morris <rgm@gnu.org>
3301
90278cb6
GM
3302 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3303 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3304
ccd89fb3
GM
3305 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3306 Remove.
3307 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3308
b7050583
KH
33092010-05-26 Kenichi Handa <handa@m17n.org>
3310
3311 * composite.c (composition_compute_stop_pos): Fix condition for
3312 backward scanning.
3313
e5458003
GM
33142010-05-25 Glenn Morris <rgm@gnu.org>
3315
c345fe90
GM
3316 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3317 Move before TEMACS_LDFLAGS.
3318 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3319 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3320
2e0689ab
GM
3321 * Makefile.in (NOT_C_CODE): No longer define.
3322 (config.h): No longer include.
3323
8009a5e8
GM
3324 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3325 variables it may reference.
3326
e5458003
GM
3327 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3328 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3329
10f72a37
KH
33302010-05-25 Kenichi Handa <handa@m17n.org>
3331
3332 * dispextern.h (struct composition_it): New members rule_idx and
3333 charpos.
3334
3335 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3336 that the character positions of IT point the last character of the
3337 current grapheme cluster.
3338 (next_element_from_composition): Don't change character positions
3339 of IT.
3340 (append_composite_glyph): Set glyph->charpos to
3341 it->cmp_it.charpos.
3342
3343 * composite.c (autocmp_chars): Change the first argument to RULE,
3344 and try composition with RULE only.
3345 (composition_compute_stop_pos): Record the index number of the
3346 composition rule in CMP_IT->rule_idx.
3347 (composition_reseat_it): Call autocmp_chars repeatedly until the
3348 correct rule of the composition is found.
3349 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3350 is at the last character of the current grapheme cluster when
3351 CMP_IT->reversed_p is nonzero.
3352
171eda53 33532010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3354
171eda53
SM
3355 * editfns.c (Fbyte_to_string): New function.
3356
66a9f7f4
SM
33572010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3358
3359 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3360 Suggested by Masatake YAMATO <yamato@redhat.com>.
3361
d8c315d1
EZ
33622010-05-23 Eli Zaretskii <eliz@gnu.org>
3363
171eda53 3364 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3365
f5b416d2 33662010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3367
3368 * s/netbsd.h: If terminfo is found, use it in preference to
3369 termcap. (Bug#6190) [Backport from trunk]
3370
0416466c
EZ
33712010-05-19 Eli Zaretskii <eliz@gnu.org>
3372
11117830 3373 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3374
3375 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3376 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3377 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3378 and maxpos members instead of start.pos and end.pos, respectively.
3379
3380 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3381 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3382 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3383 (try_window_reusing_current_matrix, try_window_id):
3384 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3385 (init_from_display_pos, init_iterator): Use EMACS_INT for
3386 character and byte positions.
66a9f7f4 3387 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3388 arguments for minimum and maximum buffer positions seen by
3389 display_line for this row. Don't use iterator to find the
3390 position following the maximum one; instead, increment the
11117830
EZ
3391 position found by display_line directly. Fix logic; eol_pos
3392 should be tested before the rest. Handle the case of characters
3393 delivered from display vector (bug#6036). Fix tests related to
3394 it->method. Handle the truncated_on_right_p rows.
3395 (RECORD_MAX_MIN_POS): New macro.
3396 (display_line): Use it to record the minimum and maximum buffer
3397 positions for glyphs in the row being assembled. Record the
3398 position of the newline that terminates the line. If word wrap is
3399 in effect, restore minimum and maximum positions seen up to the
3400 wrap point, when iterator returns to it.
3401 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3402 row and cursor not already at point. Restore original pre-bidi
3403 code for unidirectional buffers.
d36fe237
EZ
3404
3405 * dispnew.c (increment_row_positions, check_matrix_invariants):
3406 Increment and check row->start.pos and row->end.pos, in addition
3407 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3408
11117830
EZ
3409 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3410 Display truncated_on_left_p and truncated_on_right_p flags.
3411 Formatting fixes.
3412 (pmtxrows): Display the ordinal number of each row. Don't display
3413 rows beyond the last one.
3414
3415 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3416 it is not copied by bidi_copy_it.
3417
6e83d800
EZ
34182010-05-22 Eli Zaretskii <eliz@gnu.org>
3419
3420 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3421 (Bug#6237)
3422
110683ad
CY
34232010-05-22 Chong Yidong <cyd@stupidchicken.com>
3424
3425 * image.c (Fimage_flush): Rename from image-refresh.
3426
98fe5161
CY
34272010-05-21 Chong Yidong <cyd@stupidchicken.com>
3428
3429 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3430 just one window.
3431
3432 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3433 (clear_image_cache): If the number of cached images is unusually
3434 large, decrease the cache eviction delay (Bug#6230).
3435
e8752c66
GM
34362010-05-21 Glenn Morris <rgm@gnu.org>
3437
66dbf213
GM
3438 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3439 Move these rules to ns.mk.
3440 * ns.mk: New file.
3441
04384b2d
GM
3442 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3443
e8752c66
GM
3444 * Makefile.in (CANNOT_DUMP): New, set by configure.
3445 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3446
2e2bbddb
JL
34472010-05-20 Juri Linkov <juri@jurta.org>
3448
3449 * fileio.c (Fdelete_file): Change interative spec to use
3450 `read-file-name' like in `find-file-read-args' where the default
3451 value is `default-directory' instead of `buffer-file-name'.
3452 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3453
31c4aaf6
KR
34542010-05-20 Kevin Ryde <user42@zip.com.au>
3455
3456 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3457 (Voverriding_terminal_local_map, Vsystem_key_alist)
3458 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3459
9d5cf9b6
GM
34602010-05-20 Glenn Morris <rgm@gnu.org>
3461
3462 * Makefile.in (DEPDIR): New constant.
3463 (DEPFLAGS): Set with configure, not cpp.
3464 (MKDEPDIR): New, set by configure.
3465 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3466 (clean): Use $DEPDIR.
3467 (deps_frag): Include from configure.
3468 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3469 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3470
ead6f8f5
EZ
3471 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3472 reallocation of the cache. (Bug#6210)
3473
7f34aec3
GM
34742010-05-19 Glenn Morris <rgm@gnu.org>
3475
d494e8f2
GM
3476 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3477
c1d0dcfd
GM
3478 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3479 (GNULIB_VAR): Remove.
3480 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3481
3482 * m/ibms390x.h (LINKER):
3483 * m/macppc.h (LINKER) [GNU_LINUX]:
3484 * s/aix4-2.h (ORDINARY_LINK):
3485 * s/cygwin.h (LINKER):
3486 * s/darwin.h (ORDINARY_LINK):
3487 * s/gnu.h (ORDINARY_LINK):
3488 * s/netbsd.h (LINKER):
3489 * s/usg5-4.h (ORDINARY_LINK):
3490 Move to configure.
3491
7f34aec3
GM
3492 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3493
754790b6
CY
34942010-05-18 Chong Yidong <cyd@stupidchicken.com>
3495
3496 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3497 prevent stack overflow if number of arguments is too large
3498 (Bug#6214).
3499
161e44d1
JB
35002010-05-18 Juanma Barranquero <lekktu@gmail.com>
3501
3502 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3503
be4ff9da
GM
35042010-05-18 Glenn Morris <rgm@gnu.org>
3505
9539dc5d
GM
3506 * s/gnu-linux.h: Combine two conditionals.
3507
3508 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3509 $(POST_ALLOC_OBJ).
3510
40dc6bf4
GM
3511 * Makefile.in (RALLOC_OBJ): New, set by configure.
3512 (rallocobj): Replace with the previous variable.
3513 (otherobj): Use $RALLOC_OBJ.
3514
3515 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3516 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3517
be4ff9da
GM
3518 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3519 (gmallocobj, vmlimitobj): Replace with previous two variables.
3520 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3521
16455a85
GM
35222010-05-17 Glenn Morris <rgm@gnu.org>
3523
3524 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3525 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3526
5fdb7468
GM
35272010-05-16 Glenn Morris <rgm@gnu.org>
3528
7ca1f3f9
GM
3529 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3530
7541dad5
GM
3531 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3532
da53fab9
GM
3533 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3534 trailing "/".
3535
b02a6645
GM
3536 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3537 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3538
8877ca0f
GM
3539 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3540 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3541 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3542 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3543 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3544
5fdb7468
GM
3545 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3546 Remove ${STARTFLAGS}, nothing ever sets it.
3547
95adb4b1
DN
35482010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3549
3550 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3551
676b6304
GM
35522010-05-16 Glenn Morris <rgm@gnu.org>
3553
9beab9ce
GM
3554 * Makefile.in (LIBX_BASE): Always define.
3555
8a95f0e7
GM
3556 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3557
676b6304
GM
3558 * Makefile.in (LIBXT): Always define.
3559
6e546d18
GM
35602010-05-15 Glenn Morris <rgm@gnu.org>
3561
4235ca47 3562 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3563
6e546d18
GM
3564 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3565 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3566
8c5ff6dd
KR
35672010-05-15 Ken Raeburn <raeburn@raeburn.org>
3568
560bb7ae 3569 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3570 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3571
8b4eb796
KR
3572 * emacs.c (main): Initialize initial-environment and
3573 process-environment before generating from env, not after.
3574
8c5ff6dd
KR
3575 Handle --version reasonably in CANNOT_DUMP configuration.
3576 * emacs.c (emacs_version, emacs_copyright): New string variables.
3577 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3578 (syms_of_emacs): Defvar them, and initialize them from the C
3579 string variables.
3580 (main): If initialization hasn't been done, print initial version
3581 info from the C strings, instead of starting an interactive session.
3582
dbd3f723
EZ
35832010-05-15 Eli Zaretskii <eliz@gnu.org>
3584
d20e1419
EZ
3585 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3586 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3587 (bidi_paragraph_init): Remove redundant assertion that we are at
3588 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3589
3590 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3591 (syms_of_xdisp): Defsubr it.
3592
d36fe237
EZ
3593 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3594
dbd3f723
EZ
3595 * Makefile.in: Fix MSDOS-related comments.
3596
02be533b
GM
35972010-05-15 Glenn Morris <rgm@gnu.org>
3598
1a82cca9
GM
3599 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3600 (really-lwlib, really-oldXMenu): Always define.
3601 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3602
3df7b338
GM
3603 * Makefile.in: Simplify cpp conditional.
3604
2b5f541b
GM
3605 * Makefile.in (${ns_appdir}): Simplify using umask.
3606
02be533b
GM
3607 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3608
4e2db1fe
SM
36092010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3610
3611 * eval.c (specbind): Remove left-over duplicate test.
3612 Disallow let-binding frame-local vars. Add comment.
3613
4b292a22
EZ
36142010-05-14 Eli Zaretskii <eliz@gnu.org>
3615
2fe72643 3616 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3617 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3618 (bidi_init_it): Call it.
3619 (bidi_cache_iterator_state): Enlarge the cache if needed.
3620
4e2db1fe 3621 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3622 bidi_get_next_char_visually. All callers changed.
3623
82ebc97b
KH
36242010-05-14 Kenichi Handa <handa@m17n.org>
3625
3626 * dispextern.h (struct composition_it): New member reversed_p.
3627
3628 * composite.c (composition_compute_stop_pos): Search backward if
3629 ENDPOS < CHARPOS.
3630 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3631 Set CMP_IT->reversed_p.
b4b6e17e 3632 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3633
4e2db1fe
SM
3634 * xdisp.c (set_iterator_to_next):
3635 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3636 scanning backward. Call composition_compute_stop_pos if scan
3637 direction is changed.
3638 (next_element_from_buffer): Call composition_compute_stop_pos with
3639 negative ENDPOS if we are scanning backward.
3640 (next_element_from_composition): Pay attention to
3641 IT->cmp_it.reversed_p.
3642
0e5d7800
KH
36432010-05-14 Kenichi Handa <handa@m17n.org>
3644
560bb7ae 3645 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3646
cb027b32
GM
36472010-05-14 Glenn Morris <rgm@gnu.org>
3648
177b0288
GM
3649 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3650
fbc00890
GM
3651 * Makefile.in (mktime, X11, register): Move undefs to configure.
3652
f14d1dfd
GM
3653 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3654 (MSDOS_X_OBJ): New variable.
3655 (MSDOS_SUPPORT_REAL): New constant.
3656 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3657 (obj): Use MSDOS_X_OBJ.
3658 (lisp): Use MSDOS_SUPPORT as a variable.
3659
11842bd8
GM
3660 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3661 (GPM_MOUSE_SUPPORT): Now it's a constant.
3662 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3663 not cpp.
3664
489d31a4 3665 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3666 (ns_appresdir): Remove, unused.
e20f1f07 3667
489d31a4
GM
3668 * Makefile.in (SHELL): Move outside cpp section.
3669
cb027b32
GM
3670 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3671
5a903aa9
GM
36722010-05-13 Glenn Morris <rgm@gnu.org>
3673
3369c79f
GM
3674 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3675 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3676
d5e982a6
GM
3677 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3678 HAVE_WINDOW_SYSTEM must be too.
3679
6192e163
GM
3680 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3681 (lisp): Remove WINNT_SUPPORT.
3682
472c5d6b
GM
3683 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3684 Let configure set these variables (to empty) in this case as well.
3685
0116466b
GM
3686 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3687 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3688
5a903aa9
GM
3689 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3690 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3691 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3692 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3693 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3694 the values output by configure.
5a903aa9
GM
3695 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3696
1a0d7c06
GM
36972010-05-12 Glenn Morris <rgm@gnu.org>
3698
b5457f14
GM
3699 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3700 (LINKER_WAS_SPECIFIED): Remove.
3701
1a0d7c06
GM
3702 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3703 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3704 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3705 * s/cygwin.h (LIB_GCC):
3706 * s/freebsd.h (LIB_GCC):
3707 * s/gnu-linux.h (LIB_GCC):
3708 * s/msdos.h (LIB_GCC):
3709 * s/netbsd.h (LIB_GCC):
3710 Move to configure.
3711
3ffd4615 37122010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3713
3714 * ftfont.c: Fix incorrect parentheses of #if condition for
3715 definining M17N_FLT_USE_NEW_FEATURE.
3716
acddf8ae
GM
37172010-05-11 Glenn Morris <rgm@gnu.org>
3718
3719 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3720 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3721
ae5e04fa
EZ
37222010-05-10 Eli Zaretskii <eliz@gnu.org>
3723
3724 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3725 unibyte buffers. See
3726 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3727
7490175b
GM
37282010-05-10 Glenn Morris <rgm@gnu.org>
3729
97efb629
GM
3730 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3731 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3732 (LIBES): Use LIBS_SYSTEM as a variable.
3733 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3734 * s/aix4-2.h (LIBS_SYSTEM):
3735 * s/freebsd.h (LIBS_SYSTEM):
3736 * s/hpux10-20.h (LIBS_SYSTEM):
3737 * s/sol2-6.h (LIBS_SYSTEM):
3738 * s/unixware.h (LIBS_SYSTEM):
3739 Move to configure.
3740
7490175b
GM
3741 * s/aix4-2.h (MAIL_USE_LOCKF):
3742 * s/bsd-common.h (MAIL_USE_FLOCK):
3743 * s/darwin.h (MAIL_USE_FLOCK):
3744 * s/gnu-linux.h (MAIL_USE_FLOCK):
3745 * s/irix6-5.h (MAIL_USE_FLOCK):
3746 * s/template.h (MAIL_USE_FLOCK):
3747 Move to configure.
3748
0235128c 37492010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3750
3751 * Version 23.2 released.
3752
0235128c 37532010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3754
3755 * composite.c (autocmp_chars): Save point as marker before calling
3756 auto-composition-function (Bug#5984).
3757
3758 * lisp.h (restore_point_unwind): Add prototype.
3759
3760 * fileio.c (restore_point_unwind): Remove static attribute.
3761
0235128c 37622010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3763
3764 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3765 new feature of libotf and m17n-flt.
0235128c
SM
3766 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3767 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3768 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3769 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3770 that OUT is NULL. Use OTF_drive_gsub_with_log and
3771 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3772 OTF_drive_gpos.
3773 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3774 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3775 Setup mflt_enable_new_feature and mflt_try_otf.
3776
4721152c
J
37772010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3778
3779 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3780
3781 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3782 box and toolbar (Bug #6139).
3783 (xg_create_tool_bar): Remove comment (Bug #6139).
3784 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3785 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3786
ee0a16cf
JB
37872010-05-08 Juanma Barranquero <lekktu@gmail.com>
3788
3789 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3790 Update dependencies.
3791
96d79611
EZ
37922010-05-08 Eli Zaretskii <eliz@gnu.org>
3793
3794 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3795 R2L lines.
3796
40c17879
GM
37972010-05-08 Glenn Morris <rgm@gnu.org>
3798
7b42b29f
GM
3799 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3800
40c17879
GM
3801 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3802 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3803 (termcapobj): Replace with TERMCAP_OBJ.
3804 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3805 (LIBES): Use LIBS_TERMCAP as a variable.
3806
3807 * s/freebsd.h (osreldate.h): No longer include, since this file
3808 does not use __FreeBSD_version any more.
3809
3810 * s/aix4-2.h (TERMINFO):
3811 * s/cygwin.h (TERMINFO):
3812 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3813 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3814 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3815 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3816 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3817 * s/irix6-5.h (TERMINFO):
3818 * s/netbsd.h (LIBS_TERMCAP):
3819 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3820 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3821 * s/usg5-4.h (TERMINFO):
3822 Move to configure.
3823
94b612ad
SM
38242010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3825
3826 * eval.c (unbind_to): Don't unbind a local binding into the global
3827 binding when the local binding disappeared. Inversely, don't unbind
3828 a global binding into a newly created local binding.
3829 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3830 can specify the frame to use, when applicable. Adjust callers.
3831
15e12598 38322010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3833 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3834
3835 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3836
f724825e
EZ
38372010-05-07 Eli Zaretskii <eliz@gnu.org>
3838
5cba3209
EZ
3839 * w32fns.c: Include w32.h.
3840 (Fw32_shell_execute): Decode the error message before passing it
3841 to `error'. (Bug#6126)
3842
d16bdfc3
EZ
3843 * msdos.c (dos_set_window_size):
3844 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3845 instead of `XSYMBOL (foo)->value'.
3846
59d93e87
EZ
38472010-05-07 Eli Zaretskii <eliz@gnu.org>
3848
9fdec8bc
EZ
3849 Fix the MS-DOS build, broken by autoconfiscation.
3850
3851 * Makefile.in: Don't use Make-style comments past the "start of
3852 cpp stuff" line.
3853 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3854
3855 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3856 edited directly by msdos/sed1v2.inp).
f724825e 3857
2f86b22b
GM
38582010-05-07 Glenn Morris <rgm@gnu.org>
3859
3860 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3861 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3862 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3863 move out of cpp section.
3864 * s/freebsd.h (LD_SWITCH_SYSTEM):
3865 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3866 * s/netbsd.h (LD_SWITCH_SYSTEM):
3867 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3868
49ebbd65
DN
38692010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3870
3871 Define LIB_STANDARD and START_FILES using autoconf.
3872 * s/usg5-4.h (LIB_STANDARD):
3873 * s/netbsd.h (START_FILES):
3874 * s/irix6-5.h (LIB_STANDARD):
3875 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3876 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3877 * s/freebsd.h (START_FILES):
3878 * s/darwin.h (START_FILES):
3879 * s/cygwin.h (START_FILES):
3880 * s/aix4-2.h (LIB_STANDARD):
3881 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3882 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3883 autoconf, not cpp.
3884
d43c06d6
DN
38852010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3886
28823648
DN
3887 Remove NEED_BSDTTY and NEED_UNISTD_H.
3888 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3889 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3890 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3891 <sys/ptyio.h> and <unistd.h>.
3892
aca00430
DN
3893 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3894
d43c06d6
DN
3895 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3896 * s/gnu.h (START_FILES): Remove empty definition.
3897
3e56b11d
JD
38982010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3899
3900 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3901
e3cf0cde
GM
39022010-05-06 Glenn Morris <rgm@gnu.org>
3903
3904 * Makefile.in (CPP, LN_S): Remove unused variables.
3905
774b9a60
SM
39062010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3907
3908 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3909
4ab92842
LM
39102010-05-05 Lawrence Mitchell <wence@gmx.li>
3911
3912 * m/sparc.h: Fix typo in earlier change.
3913
178f2507
SM
39142010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
3915
3916 Misc tweaks.
3917 * eval.c (Fdefvaralias): Remove unintended nested if.
3918 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
3919
80f00217 39202010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
3921
3922 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
3923
ef03a4e6
DN
39242010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3925
58eb6cf0
DN
3926 Remove BSD_PGRPS.
3927 * s/bsd-common.h (BSD_PGRPS): Remove undef.
3928 * s/gnu-linux.h (BSD_PGRPS): Remove.
3929 * term.c (dissociate_if_controlling_tty):
3930 * sysdep.c (narrow_foreground_group, widen_foreground_group)
3931 (init_sys_modes, reset_sys_modes):
3932 * emacs.c (main):
3933 * callproc.c (Fcall_process, child_setup): Remove code depending
3934 on BSD_PGRPS.
3935
ef03a4e6
DN
3936 Remove POSIX_SIGNALS.
3937 * s/usg5-4.h (POSIX_SIGNALS):
3938 * s/netbsd.h (POSIX_SIGNALS):
3939 * s/msdos.h (POSIX_SIGNALS):
3940 * s/ms-w32.h (POSIX_SIGNALS):
3941 * s/hpux11.h (POSIX_SIGNALS):
3942 * s/gnu.h (POSIX_SIGNALS):
3943 * s/gnu-linux.h (POSIX_SIGNALS):
3944 * s/freebsd.h (POSIX_SIGNALS):
3945 * s/darwin.h (POSIX_SIGNALS):
3946 * s/cygwin.h (POSIX_SIGNALS):
3947 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
3948 * s/unixware.h:
3949 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
3950 * process.c (create_process):
3951 * syssignal.h:
3952 * sysdep.c (wait_for_termination, init_signals):
3953 * process.c (create_process):
3954 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
3955 remove all code that assumes the contrary.
3956
49628785
GM
39572010-05-04 Glenn Morris <rgm@gnu.org>
3958
27a2cdfc
GM
3959 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
3960 variable.
3961 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3962 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
3963 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
3964 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
3965 LD_SWITCH_SYSTEM_tmp.
3966 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
3967 New variables, set by configure.
3968
eb21eab5
GM
3969 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3970 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
3971 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
3972 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
3973 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
3974
49628785
GM
3975 * s/aix4-2.h (C_SWITCH_SYSTEM):
3976 * m/alpha.h (C_SWITCH_MACHINE):
3977 Move to configure.in.
3978 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
3979 New variables, set by configure.
3980 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
3981 $c_switch_machine and $c_switch_system.
3982
7dff330b
DN
39832010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
3984
3985 * s/hpux10-20.h (LIB_STANDARD): New definition.
3986 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
3987 on it, not used anymore.
3988
53967e09
CY
39892010-05-03 Chong Yidong <cyd@stupidchicken.com>
3990
3991 * eval.c (internal_condition_case_n): Rename from
3992 internal_condition_case_2.
3993 (internal_condition_case_2): New function.
3994
3995 * xdisp.c (safe_call): Use internal_condition_case_n.
3996
3997 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
3998 (internal_delete_file, Frename_file): Callers changed.
3999
4000 * buffer.c (Fkill_buffer):
4001 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4002
4003 * lisp.h: Update prototypes.
4004
3dee6fdb
GM
40052010-05-03 Glenn Morris <rgm@gnu.org>
4006
4007 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4008 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4009 (LIBXT): Set with configure, not cpp.
4010 (LIBX): Remove.
4011 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4012
a101e0fb
DN
40132010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4014
4015 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4016 The FreeBSD is not needed, the default works, Solaris version is
4017 not needed, and the remaining case is not supported by configure.
4018
f63d0028
JD
40192010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4020
4021 * xsmfns.c (CHDIR_OPT): New define.
4022 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4023 restarting emacs.
4024
4025 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4026 shut_down_emacs.
4027
4028 * emacs.c (USAGE1): Mention --chdir.
4029 (main): Handle --chdir.
4030 (standard_args): Add --chdir.
4031 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4032 #5552).
4033
e4814a9f
DN
40342010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4035
cd03c74a
DN
4036 Remove LD_SWITCH_MACHINE.
4037 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4038 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4039
c3a398a1
DN
4040 Clean up IRIX code.
4041 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4042 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4043
87e7285c
DN
4044 Clean up AIX code.
4045 * m/ibmrs6000.inp: Remove file, unused.
4046 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4047 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4048 definition ...
4049 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4050
80f00217
JB
4051 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4052 unused.
e4814a9f 4053
59ca28de
EZ
40542010-05-01 Eli Zaretskii <eliz@gnu.org>
4055
197daef4
EZ
4056 Emulate POSIX_SIGNALS on MS-Windows.
4057
4058 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4059 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4060
4061 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4062 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4063 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4064
80f00217
JB
4065 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4066 New stubs.
197daef4 4067
af7c7572
EZ
4068 Miscellaneous fixes of bidi display.
4069
59ca28de
EZ
4070 * xdisp.c (find_row_end): New function, refactored from display_line.
4071 (display_line): Use it.
017ea819
EZ
4072 (extend_face_to_end_of_line): In almost-filled rows, extend only
4073 if the row is R2L and not continued.
166e930d 4074 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4075 Preserve overlay and string info in row->end.
166e930d
EZ
4076 (insert_left_trunc_glyphs): Support addition of left truncation
4077 glyphs to R2L rows.
b47e0dcf 4078 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4079 glyph between adjacent windows. Fix a crash when a display string
4080 is continued to the next line. Don't return zero if cursor was
4081 found by `cursor' property of a display string.
b47e0dcf
EZ
4082 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4083 test for that explicitly.
59ca28de 4084
7acac9f4
GM
40852010-05-01 Glenn Morris <rgm@gnu.org>
4086
4087 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4088 for clarity.
4089 (OTHER_OBJ): Remove.
4090 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4091 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4092
45841e65
KK
40932010-05-01 Karel Klíč <kklic@redhat.com>
4094
4095 * fileio.c (Ffile_selinux_context): Context functions may return null.
4096
afc61943
DN
40972010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4098
80f00217 4099 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4100
5a1bb006
GM
41012010-04-30 Glenn Morris <rgm@gnu.org>
4102
4103 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4104 (OTHER_OBJ): Define as a separate variable, for clarity.
4105
210af043
J
41062010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4107
4108 * xsettings.c: include limits.h and update file comment.
4109
0a7df391
GM
41102010-04-30 Glenn Morris <rgm@gnu.org>
4111
d5096f16
GM
4112 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4113 Set with configure, not cpp.
4114 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4115
7eb1ac33
GM
4116 * Makefile.in (mallocobj): Remove.
4117 (otherobj): Simplify using @OTHER_OBJ@.
4118
517d086b
GM
4119 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4120 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4121 Don't bother making nsgui.h dependency platform-specific.
4122
0a7df391
GM
4123 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4124
d6d23852
SM
41252010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4126
d2630aef
SM
4127 * process.c (read_process_output, exec_sentinel): Don't burp if the
4128 sentinel/filter kills the current buffer (bug#6060).
4129
f9dddf52 4130 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4131 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4132 Remove unused var `args'.
4133 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4134 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4135 * doc.c (store_function_docstring): Use XSETCAR.
4136
f1e3642a
GM
41372010-04-28 Glenn Morris <rgm@gnu.org>
4138
faf535f8
GM
4139 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4140 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4141
c40f9449
GM
4142 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4143
658f86ca
GM
4144 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4145 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4146
bc0b5f61
GM
4147 * Makefile.in (FONT_OBJ): New, set by configure.
4148 (FONT_DRIVERS): Use $FONT_OBJ.
4149
294c50a0
GM
4150 * Makefile.in (LIBXMU): Set with configure, not cpp.
4151 * s/aix4-2.h (LIBXMU):
4152 * s/hpux10-20.h (LIBXMU):
4153 Remove definition, now set in configure.
4154
e6ec4e99
GM
4155 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4156
f1e3642a
GM
4157 * m/amdx86-64.h [i386]: Move this test to configure.in.
4158
c6ea2936
GM
41592010-04-27 Glenn Morris <rgm@gnu.org>
4160
8fdac2c3
GM
4161 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4162 * s/unixware.h (NEED_LIBW): Remove definition.
4163
986fb647
GM
4164 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4165 (TOOLKIT_LIBW): New, set by configure.
4166 (@X_TOOLKIT_TYPE@): No longer define it.
4167
c6ea2936
GM
4168 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4169 (MOTIF_LIBW): Set with configure, not cpp.
4170 * s/aix4-2.h (LIB_MOTIF):
4171 * s/gnu-linux.h (LIB_MOTIF):
4172 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4173
aaa36002
DN
41742010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4175
4176 Reduce CPP usage.
4177 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4178 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4179 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4180 definitions and undefs. Inline definitions in the only user.
4181 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4182
b678dd8b
GM
41832010-04-27 Glenn Morris <rgm@gnu.org>
4184
76cda504
GM
4185 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4186 since the defaults (set by the system file) are fine in most cases.
4187 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4188 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4189 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4190 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4191 Remove definitions, since they are set correctly in s/gnu-linux.h.
4192 * s/freebsd.h (START_FILES, LIB_STANDARD):
4193 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4194 * s/hpux10-20.h (START_FILES):
4195 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4196 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4197
b678dd8b
GM
4198 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4199 (MOTIF_LIBW): Use $LIBXP.
4200 (otherobj): Use $WIDGET_OBJ.
4201
9452ded1
DN
42022010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4203
7e10844c
DN
4204 * Makefile.in (LIBS_MACHINE): Remove, unused.
4205
9452ded1
DN
4206 Use autoconf instead of cpp for LIB_MATH.
4207 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4208 * s/cygwin.h (LIB_MATH): Likewise.
4209 * Makefile.in (LIB_MATH): Do not define with cpp.
4210 (LIBES): Use autoconf for LIB_MATH.
4211
fcebfc6a
KH
42122010-04-26 Kenichi Handa <handa@m17n.org>
4213
4214 * composite.c (Ffind_composition_internal): Fix the return value
4215 for an automatic composition.
4216
39e2ad1b
DN
42172010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4218
4219 Remove all NO_ARG_ARRAY uses.
4220 * fns.c (concat2, concat3, nconc2):
4221 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4222 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4223 * m/xtensa.h (NO_ARG_ARRAY):
4224 * m/template.h (NO_ARG_ARRAY):
4225 * m/sparc.h (NO_ARG_ARRAY):
4226 * m/sh3.h (NO_ARG_ARRAY):
4227 * m/mips.h (NO_ARG_ARRAY):
4228 * m/macppc.h (NO_ARG_ARRAY):
4229 * m/iris4d.h (NO_ARG_ARRAY):
4230 * m/intel386.h (NO_ARG_ARRAY):
4231 * m/ibms390x.h (NO_ARG_ARRAY):
4232 * m/ibms390.h (NO_ARG_ARRAY):
4233 * m/ibmrs6000.h (NO_ARG_ARRAY):
4234 * m/ia64.h (NO_ARG_ARRAY):
4235 * m/hp800.h (NO_ARG_ARRAY):
4236 * m/arm.h (NO_ARG_ARRAY):
4237 * m/amdx86-64.h (NO_ARG_ARRAY):
4238 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4239
adf4f59c
EZ
42402010-04-25 Eli Zaretskii <eliz@gnu.org>
4241
6bdf5d65
EZ
4242 * xdisp.c (display_line): Don't assume 2nd call to
4243 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4244 (iterate_out_of_display_property): New function, body from pop_it.
4245 (pop_it): Use it.
adf4f59c 4246
dfbbda83
GM
42472010-04-24 Glenn Morris <rgm@gnu.org>
4248
4249 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4250 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4251 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4252 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4253
2d4018aa
EZ
42542010-04-24 Eli Zaretskii <eliz@gnu.org>
4255
a49884a6
EZ
4256 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4257 use `get_next_display_element' and `set_iterator_to_next' to
4258 advance to the next character, when looking for the character that
4259 begins the next row.
4260
76db6fcc 4261 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4262 definition of "struct Lisp_Symbol".
4263
70eab5c1
GM
42642010-04-24 Glenn Morris <rgm@gnu.org>
4265
4266 * Makefile.in (CRT_DIR): New variable, set by configure.
4267 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4268 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4269
1ad4cc3d
DN
42702010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4271
e769f484
DN
4272 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4273
4196ff33
DN
4274 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4275
879b0ee4
DN
4276 Remove redundant flags.
4277 * s/freebsd.h (C_SWITCH_SYSTEM):
4278 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4279 * s/netbsd.h (C_SWITCH_SYSTEM):
4280 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4281 of these.
4282
03cbbcb8
DN
4283 Simplify m/intel386.h.
4284 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4285 user: ecrt0.c.
4286 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4287 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4288 the only user: s/unixware.h.
4289 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4290 from m/intel386.h.
4291 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4292 moved here from m/intel386.h.
4293
1ad4cc3d
DN
4294 * m/mips.h: Remove #if 0 code.
4295
8785b888
EZ
42962010-04-23 Eli Zaretskii <eliz@gnu.org>
4297
728588cc
EZ
4298 Fix display of composed characters from L2R scripts in bidi buffers.
4299 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4300 After advancing IT past the composition, resync the bidi iterator
4301 with IT's position. (Bug#5977)
4302
a63f80b4
DN
43032010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4304
4305 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4306 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4307
ff5dec5c
SM
43082010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4309
4310 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4311
8785b888
EZ
43122010-04-23 Eli Zaretskii <eliz@gnu.org>
4313
58ccf243 4314 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4315 * xdisp.c (pop_it): When the stack is popped after displaying
4316 from a string, bidi-iterate to exit from the text portion covered
4317 by the `display' property or overlay. (Bug#5988, bug#5920)
4318
feeb1604
DN
43192010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4320
8e324eb6
DN
4321 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4322 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4323
809fcaba
DN
4324 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4325 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4326
ed710380
DN
4327 Simplify STARTFILES definition.
4328 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4329 relying on Makefile.in to define it.
4330 * s/cygwin.h (START_FILES): Likewise.
4331 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4332
feeb1604
DN
4333 Clean up Solaris code.
4334 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4335 (LIB_MOTIF): Remove, configure takes care of this.
4336 (NOT_USING_MOTIF): Remove, unused.
4337 * xrdb.c: Remove #if 0-ed #include.
4338 (SYSV): Remove conditional for old SysV.
4339 * sysdep.c (closedir): Remove conditional code for Solaris,
4340 Solaris has closedir.
4341
a0d0b563
JD
43422010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4343
4344 * xsettings.c (read_and_apply_settings): Check if current_font is
4345 NULL before strcmp (Bug#6001).
4346
56bae7c7
DN
43472010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4348
4349 Clean up HP-UX files.
4350 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4351 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4352 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4353 * s/hpux10-20.h: ... to the only user, here.
4354
372b7a95
EZ
43552010-04-21 Eli Zaretskii <eliz@gnu.org>
4356
4357 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4358 use buffer-local values of paragraph-start and paragraph-separate.
4359 <paragraph_start_re, paragraph_separate_re>: Rename from
4360 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4361 (Bug#5992)
4362
f904c0f9
JD
43632010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4364
4365 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4366 current_tool_bar_style are new.
4367 (store_config_changed_event): Rename from store_font_changed_event.
4368 (XSETTINGS_TOOL_BAR_STYLE): New define.
4369 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4370 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4371 HAVE_XFT.
4372 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4373 store_config_changed_event.
f904c0f9
JD
4374 (parse_settings): Rename from parse_xft_settings. Read
4375 non-xft xsettings outside #ifdef HAVE_XFT.
4376 (read_settings): Renamed from read_xft_settings.
4377 (apply_xft_settings): Take current settings as parameter. Do not
4378 call read_(xft)_settings.
4379 (read_and_apply_settings): New function.
4380 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4381 read_and_apply_settings if there are settings to be read.
4382 (init_xsettings): Renamed from init_xfd_settings.
4383 Call read_and_apply_settings unconditionally.
4384 (xsettings_initialize): Call init_xsettings.
4385 (Ftool_bar_get_system_style): New function.
4386 (syms_of_xsettings): Define Qmonospace_font_name and
4387 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4388 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4389 dynamic-setting.
31a01b90 4390 Move misplaced HAVE_GCONF
f904c0f9
JD
4391
4392 * xsettings.h (Ftool_bar_get_system_style): Declare.
4393
4394 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4395 Qtext, Qboth, Qboth_horiz are new.
4396 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4397 Vtool_bar_style, tool_bar_max_label_size.
4398
4399 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4400
4401 * keyboard.c: QClabel is new.
4402 (parse_tool_bar_item): Take out QClabel from tool bar items.
4403 Try to construct a label if ther is no QClabel.
4404 (syms_of_keyboard): Intern :label as QClabel.
4405
4406 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4407 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4408 New.
4409
4410 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4411 dynamic-setting.el.
4412
4413 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4414 (xg_make_tool_item, xg_show_toolbar_item): New function.
4415 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4416 Call xg_make_tool_item to make a tool bar item.
4417 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4418
4419 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4420 into account for toolbars.
4421
c632dfda
JD
44222010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4423
4424 * data.c (make_blv): Declarations before code (Bug#5993).
4425
10efe302
GM
44262010-04-21 Glenn Morris <rgm@gnu.org>
4427
4428 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4429 Define using autoconf, not cpp.
4430 (LIBXSM): New variable, set by autoconf.
4431 (LIBXT): Use $LIBXSM.
4432
4285ac5a
DN
44332010-04-21 Dan Nicolaescu <local_user@dannlt>
4434
3ec759e7
DN
4435 Remove NOMULTIPLEJOBS, unused.
4436 * s/template.h (NOMULTIPLEJOBS):
4437 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4438
4285ac5a
DN
4439 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4440 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4441 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4442 detects -znocombreloc and passes it to the linker
4443 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4444
2807228d
GM
44452010-04-21 Glenn Morris <rgm@gnu.org>
4446
4447 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4448
574c05e2
KK
44492010-04-21 Karel Klíč <kklic@redhat.com>
4450
4451 * Makefile.in (LIBSELINUX_LIBS): New.
4452 (LIBES): Add $LIBSELINUX_LIBS.
4453 * eval.c, lisp.h (call7): New function.
4454 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4455 (Ffile_selinux_context, Fset_file_selinux_context):
4456 New functions.
4457 (Fcopy_file): New parameter preserve-selinux-context.
4458 (Frename_file): Preserve selinux context when renaming by copy-file.
4459
91eac4bb 44602010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4461 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4462
50426a04
JB
4463 Don't depend on cm.c or termcap.c on Windows, use stubs.
4464 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4465 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4466 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4467 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4468 (sys_tputs, sys_tgetstr): New stubs.
4469 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4470 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4471
938efb77
JB
44722010-04-20 Juanma Barranquero <lekktu@gmail.com>
4473
4474 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4475
b4bf28b7
SM
44762010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4477
8b1e1112
SM
4478 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4479 Just signal a warning rather than an error when inside a let.
4480 (Fmake_variable_frame_local): Add the same test.
4481
933ac235
SM
4482 * font.c (syms_of_font): Make the style table vars read-only.
4483
b4bf28b7
SM
4484 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4485 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4486
4487 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4488
93d68d0c
EZ
44892010-04-20 Eli Zaretskii <eliz@gnu.org>
4490
4491 Fix R2L paragraph display on TTY.
4492
4493 * xdisp.c (unproduce_glyphs): New function.
4494 (display_line): Use it when produced glyphs are discarded from R2L
4495 glyph rows.
4496 (append_composite_glyph): In R2L rows, prepend the glyph rather
4497 than appending it.
4498
4499 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4500 rather than append it. Set up the resolved_level and bidi_type
4501 attributes of the appended glyph.
283ccc18
EZ
4502 (produce_special_glyphs): Mirror the backslash continuation
4503 character in R2L lines.
93d68d0c 4504
283ccc18 4505 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4506
283ccc18
EZ
4507 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4508 append_stretch_glyph.
4509 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4510 off-by-one error in computing x at end of text in the row.
4511 (append_stretch_glyph): In reversed row, prepend the glyph rather
4512 than append it. Set resolved_level and bidi_type of the glyph.
4513 (extend_face_to_end_of_line): If the row is reversed, prepend a
4514 stretch glyph whose width is such that the rightmost glyph will be
4515 drawn at the right margin of the window. Fix off-by-one error on
4516 TTY frames in testing whether a line needs face extension. Fix
4517 face extension at ZV. If this is the last glyph row, use
4518 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4519 region face.
4520 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4521 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4522 row->continuation_lines_width.
283ccc18
EZ
4523 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4524 are at ZV. Fixes a crash when reseated to ZV by
4525 try_window_reusing_current_matrix.
45903529
EZ
4526 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4527 which happens with R2L glyph rows. Fixes a crash when inserting a
4528 character at end of an R2L line.
283ccc18
EZ
4529 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4530 treat them as having zero-width characters. Improve comments.
4531 Don't reverse pos_before and pos_after for reversed glyph rows.
4532 Set cursor.x to negative value when the cursor might be on the
4533 left fringe.
4534 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4535 left fringe, not the right one.
f951a506
EZ
4536 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4537 (erase_phys_cursor): For reversed cursor_row, support cursor on
4538 the left fringe.
4539
283ccc18
EZ
4540 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4541 of continuation indicators on the fringes.
4542 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4543 left fringe.
4544
f951a506
EZ
4545 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4546 draw cursor on the left fringe.
4547
4548 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4549 cursor on the left fringe.
4550
f951a506
EZ
4551 * dispnew.c (update_text_area): Handle reversed desired rows when
4552 the cursor is on the left fringe.
4553 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4554 below, not by 0, for when the cursor is on the left fringe.
4555
3bb49aaf
JD
45562010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4557
4558 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4559 widget is a scrollbar.
4560
c0be27fd
KH
45612010-04-20 Kenichi Handa <handa@m17n.org>
4562
4563 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4564 only when the arg CHARSET_LIST is nil.
4565
ce5b453a
SM
45662010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4567
4568 Make variable forwarding explicit rather the using special values.
4569 Basically, this makes the structure of buffer-local values and object
4570 forwarding explicit in the type of Lisp_Symbols rather than use
4571 special Lisp_Objects for that. This tends to lead to slightly more
4572 verbose code, but is more C-like, simpler, and makes it easier to make
4573 sure we handled all cases, among other things by letting the compiler
4574 help us check it.
4575 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4576 Removing forwarding objects.
4577 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4578 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4579 explicit rather than hiding them inside Lisp_Object "values".
4580 (XFWDTYPE): New macro.
4581 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4582 (XBUFFER_LOCAL_VALUE): Remove.
4583 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4584 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4585 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4586 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4587 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4588 Remove the Lisp_Misc_* header.
4589 (struct Lisp_Buffer_Local_Value): Redefine.
4590 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4591 (struct Lisp_Misc_Any): Add filler to get the right size.
4592 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4593 Lisp_Intfwd.
4594 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4595 (DEFVAR_KBOARD): Allocate a forwarding object.
4596 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4597 (let_shadows_global_binding_p): New function.
4598 (union Lisp_Val_Fwd): New type.
4599 (make_blv): New function.
4600 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4601 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4602 (swap_in_symval_forwarding, find_symbol_value, Fset)
4603 (let_shadows_buffer_binding_p, set_internal, default_value)
4604 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4605 (Fkill_local_variable, Fmake_variable_frame_local)
4606 (Flocal_variable_p, Flocal_variable_if_set_p)
4607 (Fvariable_binding_locus):
4608 * xdisp.c (select_frame_for_redisplay):
4609 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4610 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4611 * frame.c (store_frame_param):
4612 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4613 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4614 value structure.
4615 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4616 (clone_per_buffer_values): Only adjust markers into the current buffer.
4617 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4618 (Fbuffer_local_value, set_buffer_internal_1)
4619 (swap_out_buffer_local_variables):
4620 Adapt to the new symbol value structure.
4621 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4622 (defvar_per_buffer): Take a new arg for the fwd object.
4623 (buffer_lisp_local_variables): Return a proper alist (different fix
4624 for bug#4138).
4625 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4626 (Fgarbage_collect): Don't handle buffer_defaults specially.
4627 (mark_object): Handle new symbol value structure rather than the old
4628 special Lisp_Misc_* objects.
4629 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4630 * term.c (set_tty_color_mode):
4631 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4632 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4633 a buffer_local_flags.
4634 * print.c (print_object): Get rid of impossible forwarding objects.
4635
fd3998ff
EZ
46362010-04-19 Eli Zaretskii <eliz@gnu.org>
4637
4638 * bidi.c (bidi_get_type, bidi_get_category)
4639 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4640 (bidi_type_of_next_char, bidi_level_of_next_char):
4641 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4642
e42cd1a7
JB
46432010-04-19 Juanma Barranquero <lekktu@gmail.com>
4644
4645 * dired.c (Ffile_attributes): Fix typo in docstring.
4646
6e104790 46472010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4648
4649 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4650 NSInteger (Bug#5811).
4651
6e104790 46522010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4653
4654 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4655 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4656
6e104790 46572010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4658
4659 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4660
6e104790
SM
46612010-04-19 Chong Yidong <cyd@stupidchicken.com>
4662
4663 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4664 terminal frames (Bug#5837).
4665
37dcfea0
EZ
46662010-04-19 Eli Zaretskii <eliz@gnu.org>
4667
d1da276f
EZ
4668 * .gdbinit (xsubchartable): New command.
4669
37dcfea0
EZ
46702010-04-19 Eli Zaretskii <eliz@gnu.org>
4671
4672 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4673 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4674 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4675 and
4676 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4677
e9515805
SM
46782010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4679
4680 * alloc.c (Fpurecopy): Hash-cons if requested.
4681 (syms_of_alloc): Update purify-flag docstring.
4682
22aa44a8
JD
46832010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4684
4685 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4686 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4687
ebb5722e
EZ
46882010-04-17 Eli Zaretskii <eliz@gnu.org>
4689
4690 Fix a crash when an NSM character is inserted at BEGV.
4691
4692 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4693 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4694 NEUTRAL_B or UNKNOWN_BT.
4695
0f4442ef
EZ
46962010-04-16 Eli Zaretskii <eliz@gnu.org>
4697
4698 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4699 other rows with cursor unless they are different from this row and
4700 this row is part of a continued line. (Bug#5943)
4701
7d4e45f8
DN
47022010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4703
4704 * s/freebsd.h: Restore osreldate.h include.
4705 Suggested by Naohiro Aota.
4706
5ba5ec85
J
47072010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4708
4709 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4710
20af301d
CY
47112010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4712
4713 * s/cygwin.h: Avoid linking against static libgcc.
4714
a4b000fb
JL
47152010-04-15 Juri Linkov <juri@jurta.org>
4716
4717 * window.c: Add Qscroll_command.
4718 Remove Vscroll_preserve_screen_position_commands.
4719 (window_scroll_pixel_based, window_scroll_line_based): Check the
4720 `scroll-command' property on the last command instead of searching
4721 the last command in Vscroll_preserve_screen_position_commands.
4722 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4723 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4724 (scroll-preserve-screen-position): Doc fix.
4725 (Vscroll_preserve_screen_position_commands): Remove variable.
4726
bc319ba4
DN
47272010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4728
6bb24457
DN
4729 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4730
19d4c244
DN
47312010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4732
4733 Reduce cpp use in Makefile.in.
4734 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4735 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4736 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4737 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4738 (CRT0_COMPILE): Remove, inline it in the only user.
4739
32129746
JL
47402010-04-14 Juri Linkov <juri@jurta.org>
4741
4742 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4743 `scroll-up-command' and `M-v' from `scroll-down' to
4744 `scroll-down-command'.
4745
9013a7f8
JL
47462010-04-14 Juri Linkov <juri@jurta.org>
4747
4748 * window.c (Vscroll_preserve_screen_position_commands): New variable
4749 with the default value as the list of Qscroll_down and Qscroll_up.
4750 (window_scroll_pixel_based, window_scroll_line_based): Search the
4751 last command in the list Vscroll_preserve_screen_position_commands
4752 instead of comparing with Qscroll_up and Qscroll_down.
4753
4bef8d26
JD
47542010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4755
92848133
JD
4756 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4757 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4758 does that.
4759
4bef8d26
JD
4760 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4761 to zero.
4762
58b963f7
SM
47632010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4764
84164a0d
SM
4765 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4766
2b0a91e7
SM
4767 Try to solve the problem of spurious EOF chars in long lines of text
4768 sent to interactive subprocesses.
4769 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4770 (system_process_attributes): Remove unused var `ttotal'.
4771 * process.c (send_process): Don't bother breaking long line with EOF
4772 chars when talking to ttys any more.
4773 (wait_reading_process_output): Output a warning when called in such
4774 a way that it could block without being interruptible.
4775
58b963f7
SM
4776 Try to detect file modification within the same second.
4777 * buffer.h (struct buffer): New field modtime_size.
4778 * buffer.c (reset_buffer): Initialize it.
4779 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4780 (Fverify_visited_file_modtime): Check it.
4781 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4782 (Fset_visited_file_modtime): Set (or clear) it.
4783
01f5787b
SM
47842010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4785
4786 * process.c (status_notify): Remove unused var `ro'.
4787
83725342
JD
47882010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4789
4790 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4791 more than one visual (Bug#5938).
4792
b9465836
DN
47932010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4794
50426a04
JB
4795 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4796 Undefine.
b9465836 4797
8d9c8ece
DN
47982010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4799
b1f52161
DN
4800 Remove C_SWITCH_SYSTEM_TEMACS.
4801 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4802 (malloc, realloc, free): Use emacs, not temacs for conditional
4803 definition.
4804
4805 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4806 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4807
8d9c8ece
DN
4808 Use autoconf, not cpp for some variables.
4809 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4810 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4811 (ALL_CFLAGS): Use them as make variables.
4812 (really-lwlib, really-oldXMenu): Do not pass them.
4813
1ecb2d3f
JD
48142010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4815
4816 * xmenu.c (apply_systemfont_to_dialog): New.
4817 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4818
3a4fa2f2
SM
48192010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4820
97e53006
SM
4821 * process.c (exec_sentinel): Preserve current-buffer.
4822
3a4fa2f2
SM
4823 * process.c (read_process_output): Move the save-current-buffer to
4824 apply to both the filter and the non-filter branches.
4825
88df7221
DN
48262010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4827
4828 * s/msdos.h (UNEXEC): New definition.
4829
5634ff85
YM
48302010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4831
6eff5c3d
YM
4832 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4833 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4834
4835 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4836 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4837 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4838 TRY_WINDOW_CHECK_MARGINS.
4839
4840 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4841 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4842 width only when it is for padding.
5634ff85 4843
b13aef54
J
48442010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4845
4846 * xfns.c (Fx_show_tip): Call try_window in a loop until
4847 fonts_changed_p is zero (Bug#2423).
4848
21d28484
EZ
48492010-04-08 Eli Zaretskii <eliz@gnu.org>
4850
4851 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4852 the end of TEXT_AREA. (Bug#5856)
4853
0269ef77
JD
48542010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4855
4856 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4857 HAVE_GCONF.
4858
5930fe97
EZ
48592010-04-08 Eli Zaretskii <eliz@gnu.org>
4860
4861 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4862 prev.orig_type, for resolving type of NSM. (Bug#5858)
4863
99852628
JD
48642010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4865
4866 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4867 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4868 in current_font.
4869 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4870 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4871 New functions.
4872 (syms_of_xsettings): Initialize current_font.
4873 defsubr Sfont_get_system_normal_font.
99852628 4874
686b968e
JB
4875 * xsettings.h (Ffont_get_system_normal_font)
4876 (xsettings_get_system_normal_font): Declare.
99852628
JD
4877
4878 * xfns.c (extern xlwmenu_default_font): Remove.
4879 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4880 to xlwmenu.c.
4881
4882 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4883 menu items in UTF-8.
4884
4885 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4886 (apply_systemfont_to_menu): New function.
4887 (set_frame_menubar, create_and_show_popup_menu): Call
4888 apply_systemfont_to_menu.
4889
7fc874c4
J
48902010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4891
4892 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4893 FRAME_LINE_TO_PIXEL_Y.
4894
4895 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4896 pixelwidth/height.
4897
863bf481
DN
48982010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4899
5e5a3b92
DN
4900 Simplify code for HP machines.
4901 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4902 for GNU_LINUX, not needed.
4903 (UNEXEC, NEED_BSDTTY): Move definitions...
4904 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4905
863bf481
DN
4906 * m/iris4d.h (UNEXEC): Move definition ...
4907 * s/irix6-5.h (UNEXEC): ... here.
4908
3e6bec3b
JD
49092010-04-04 Jan Djärv <jan.h.d@swipnet.se>
4910
4911 * xfns.c (set_machine_and_pid_properties): New function.
4912 (Fx_create_frame): Call set_machine_and_pid_properties.
4913
2912322b
SM
49142010-04-03 Eli Zaretskii <eliz@gnu.org>
4915
1502b819
EZ
4916 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
4917 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
4918 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
4919
2912322b
SM
4920 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
4921 in this function. (Bug#5703)
4922
49232010-04-03 Chong Yidong <cyd@stupidchicken.com>
4924
4925 * nsterm.h: Fix last change.
4926
c435b432
DN
49272010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
4928
a568f507
DN
4929 * m/intel386.h (NO_REMAP): Move definition ...
4930 * s/msdos.h (NO_REMAP): ... here.
4931
4cd9f6c2
DN
4932 * m/vax.h (CRT0_DUMMIES): Remove, unused.
4933
c435b432
DN
4934 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
4935 used on those platforms.
4936
42a2c622
DN
49372010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
4938
4939 Remove extern errno declarations.
4940 * xterm.c:
4941 * xrdb.c:
4942 * w32term.c:
4943 * unexec.c:
4944 * unexaix.c:
4945 * sysdep.c:
4946 * process.c:
4947 * lread.c:
4948 * keyboard.c:
4949 * floatfns.c:
4950 * filelock.c:
4951 * fileio.c:
4952 * emacs.c (main):
4953 * ecrt0.c:
4954 * dispnew.c:
4955 * callproc.c:
4956 * buffer.c: Remove errno extern declarations.
4957 * s/netbsd.h (NEED_ERRNO): Remove.
4958
8224f93d
DN
49592010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
4960
4961 Remove all uses of LIBX11_SYSTEM.
4962 * Makefile.in (LIBX11_SYSTEM): Remove.
4963 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
4964 instead.
4965
814062c7
EZ
49662010-04-01 Eli Zaretskii <eliz@gnu.org>
4967
ed68db4d
EZ
4968 Remove support for DJGPP v1.x (bug#5813).
4969
4970 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
4971 * s/msdos.h:
4972 * unexec.c (make_hdr, copy_text_and_data):
4973 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 4974 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
4975 (IT_set_terminal_modes, __write, _rename, gethostname)
4976 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
4977 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
4978 the value of __DJGPP__.
ed68db4d
EZ
4979 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
4980 compatibility code.
8224f93d
DN
4981 * lread.c:
4982 * gmalloc.c (memalign):
4983 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
4984 * emacs.c (main):
4985 * dosfns.c (init_dosfns):
ed68db4d
EZ
4986 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
4987
52f4d8d5
EZ
49882010-04-01 Eli Zaretskii <eliz@gnu.org>
4989
814062c7
EZ
4990 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
4991 string with `cursor' property comes from an `after-string'
4992 overlay. (Bug#5816)
4993
0dc2e11d
GM
49942010-04-01 Glenn Morris <rgm@gnu.org>
4995
4996 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
4997 Define as Makefile variables.
4998 (LIBX): Use above variables rather than directly using autoconf.
4999
1d29df59
DN
50002010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5001
5002 Clean up BSD_SYSTEM use.
5003 * xterm.c:
5004 * process.c:
5005 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5006 for including <sys/ioctl.h>.
5007 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5008 code is only used for MSDOS.
5009
1546c559
JL
50102010-03-31 Juri Linkov <juri@jurta.org>
5011
5012 * image.c: Add `Qextension_data'.
5013 (syms_of_image): Initialize and staticpro `Qextension_data'.
5014 (Fimage_metadata): Rename from `Fimage_extension_data'.
5015 (gif_load): Put GIF extension data to the property
5016 `Qextension_data'.
5017
6521c534
CY
50182010-03-31 Chong Yidong <cyd@stupidchicken.com>
5019
5020 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5021 * nsterm.h: Fix prototype.
5022
52c30783
EZ
50232010-03-31 Eli Zaretskii <eliz@gnu.org>
5024
5025 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5026 trailing whitespace in right-to-left rows.
5027
855a0da7
SM
50282010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5029
5030 Get rid of the direct_output optimizations.
5031 * keyboard.c (nonundocount): Remove extern declaration.
5032 (command_loop_1): Remove brittle optimisation for cheap and
5033 common operations.
5034 * xdisp.c (redisplay_internal): Don't bother checking
5035 redisplay_performed_directly_p any more.
5036 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5037 any more.
5038 * dispnew.c (redisplay_performed_directly_p)
5039 (direct_output_for_insert, direct_output_forward_char):
5040 * dispextern.h (redisplay_performed_directly_p)
5041 (direct_output_for_insert, direct_output_forward_char): Remove.
5042 * cmds.c (nonundocount): Make it static.
5043
85738751 50442010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5045
5046 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5047
85738751 50482010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5049
5050 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5051 invisible (Bug#5766).
5052
85738751 50532010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5054
855a0da7
SM
5055 * xdisp.c (x_consider_frame_title, update_window_cursor):
5056 Remove HAVE_NS conditionals.
194d44e7 5057 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5058
5059 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5060 filename for the title.
5061 (ns_set_doc_edited): Do nothing if the selected window is a
5062 minibuffer window.
5063
5064 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5065 ns_set_doc_edited.
5066
5067 * nsterm.m: Remove unneeded prototype.
5068
85738751 50692010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5070
5071 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5072 in the DOC file. (Bug#5336)
5073
85738751 50742010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5075
5076 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5077
75d1428c
SM
50782010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5079
5080 * window.c (keys_of_window): Remove redundant/overridden bindings.
5081
82043cfb
EZ
50822010-03-30 Eli Zaretskii <eliz@gnu.org>
5083
5084 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5085 Restore original behavior when the iterator is not bidi_p.
5086
b5dd0ae7
DN
50872010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5088
5089 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5090
bd924a5d
EZ
50912010-03-30 Eli Zaretskii <eliz@gnu.org>
5092
5093 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5094 are outside the range of cached character positions.
5095
3580374b
JB
50962010-03-30 Juanma Barranquero <lekktu@gmail.com>
5097
5098 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5099
a7b02820
EZ
51002010-03-30 Eli Zaretskii <eliz@gnu.org>
5101
5102 Initial support for bidirectional editing.
5103
5104 * Makefile.in (obj): Include bidi.o.
5105 (bidi.o): New target.
5106
5107 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5108 ($(BLD)/bidi.$(O)): New target.
5109
5110 * bidi.c: New file.
5111
5112 * buffer.h (struct buffer): New members bidi_display_reordering
5113 and bidi_paragraph_direction.
5114
5115 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5116 and bidi_paragraph_direction.
5117 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5118 and bidi-paragraph-direction.
5119 (Fbuffer_swap_text): Swap the values of
5120 bidi_display_reordering and bidi_paragraph_direction.
5121
5122 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5123 (bidi_type_t, bidi_dir_t): New types.
5124 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5125 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5126 prev_stop, base_level_stop, and eol_pos.
5127 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5128 (IT_STACK_SIZE): Enlarge to 5.
5129 (struct glyph_row): New member reversed_p.
5130 <string_buffer_position>: Update prototype.
5131 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5132 glyph_row if bidi_it.paragraph_dir == R2L.
5133 (struct glyph): New members resolved_level and bidi_type.
5134
5135 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5136 processing or buffer's direction is right-to-left.
5137 (prepare_desired_row): Preserve the reversed_p flag.
5138 (row_equal_p): Compare the reversed_p attributes as well.
5139
5140 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5141 bidi_init_it and set it->paragraph_embedding from the current
5142 buffer's value of bidi_paragraph_direction.
5143 (reseat_1): Initialize bidi_it.first_elt.
5144 (set_iterator_to_next, next_element_from_buffer): Use the value of
5145 paragraph_embedding to determine the paragraph direction.
5146 (set_iterator_to_next): Under bidi reordering, call
5147 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5148 new_paragraph flag is set in the bidi iterator.
5149 (next_element_from_buffer): If bidi_it.first_elt is set,
5150 initialize paragraph direction and find the first character to
5151 display in the visual order. If reseated to a middle of a line,
5152 prime the bidi iterator starting at the line's beginning. Handle
5153 the situation where we overstepped stop_charpos due to
5154 non-linearity of the bidi iteration. Likewise for when we back up
5155 beyond the previous stop_charpos. When moving across stop_charpos,
5156 record it in prev_stop.
5157 (display_line): Set row->end and it->start for the next row to the
5158 next character in logical order. Always extend reversed_p rows to
5159 the end of line, even if they end at ZV. Copy the reversed_p flag
5160 to the next glyph row. Keep calling set_cursor_from_row for
5161 bidi-reordered rows even if we already have a possible candidate
5162 for cursor position. Set row_end after all the row's glyphs have
5163 been produced, by looping over the glyphs. Record the position
5164 after EOL in it->eol_pos, and use it to set end_pos of the last
5165 row produced for a continued line.
5166 <Qright_to_left, Qleft_to_right>: New variables.
5167 (syms_of_xdisp): Initialize and staticpro them.
5168 (string_buffer_position_lim): New function.
5169 (string_buffer_position): Most of code moved to
5170 string_buffer_position_lim. Last argument and return value are
5171 now EMACS_INT; all callers changed.
5172 (set_cursor_from_row): Rewritten to support bidirectional text and
5173 reversed glyph rows.
5174 (text_outside_line_unchanged_p, try_window_id): Disable
5175 optimizations if we are reordering bidirectional text and the
5176 paragraph direction can be affected by the change.
5177 (append_glyph, append_composite_glyph)
5178 (produce_image_glyph, append_stretch_glyph): Set the
5179 resolved_level and bidi_type members of each glyph.
5180 (append_glyph): If the glyph row is reversed, prepend the glyph
5181 rather than appending it.
5182 (handle_stop_backwards): New function.
5183 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5184 (reseat): call handle_stop_backwards to recompute prev_stop and
5185 base_level_stop for the new position.
5186 (handle_invisible_prop): Under bidi iteration, skip invisible text
5187 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5188 paragraph direction. Update IT->prev_stop after skipping
5189 invisible text.
5190 (move_it_in_display_line_to): New variables prev_method
5191 and prev_pos. Compare for strict equality in
5192 BUFFER_POS_REACHED_P.
5193 (try_cursor_movement): Examine all the candidate rows that occlude
5194 point, to return the best match. If rows are bidi-reordered
5195 and point moved backwards, back up to the row that is not a
5196 continuation line, and start looking for a suitable row from
5197 there.
5198
5199 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5200 rather than appending, if the glyph_row's reversed_p flag is set.
5201 Set the resolved_level and bidi_type members of each glyph.
5202
5203 * .gdbinit (pbiditype): New command.
5204 (pgx): Use it to display bidi level and type of the glyph.
5205 (pitx): Display some bidi information about the iterator.
5206 (prowlims, pmtxrows): New commands.
5207
32a8894e
DN
52082010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5209
5210 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5211 * s/usg5-4.h (LIBS_DEBUG):
5212 * s/irix6-5.h (C_DEBUG_SWITCH):
5213 * s/gnu-linux.h (LIBS_DEBUG):
5214 * s/darwin.h (LIBS_DEBUG):
5215 * s/bsd-common.h (LIBS_DEBUG):
5216 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5217 * m/iris4d.h (LIBS_DEBUG):
5218 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5219
5220 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5221 (LIBS_DEBUG): Remove definition.
5222
649dbf36
CY
52232010-03-27 Chong Yidong <cyd@stupidchicken.com>
5224
5225 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5226 Windows.
5227
cad4261f
YM
52282010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5229
5230 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5231 `connect' (Bug#5723).
5232
cd591dbc
HE
52332010-03-25 Helmut Eller <eller.helmut@gmail.com>
5234
5235 * process.c (Fmake_network_process): Call `select' for interrupted
5236 `connect' rather than creating new socket (Bug#5173).
5237
e867cb5d 52382010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5239
5240 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5241
5242 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5243
5244 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5245
e867cb5d 52462010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5247
5248 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5249 XLoadQueryFont.
5250
e867cb5d 52512010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5252
5253 * coding.c (decode_coding_ccl): Fix previous change for the
5254 multibyte case.
fb608df3
KH
5255 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5256 case that the output buffer is fullfilled.
5257 (encode_coding): Setup ccl program here.
fbdc1721 5258
5845f0ed
DN
52592010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5260
814fb708
DN
5261 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5262
5845f0ed
DN
5263 Simplify LIBS_MACHINE definitions.
5264 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5265 * m/iris4d.h (LIBS_MACHINE): Likewise.
5266 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5267 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5268 * s/netbsd.h: Remove commented out code.
5845f0ed 5269
b7064064
DN
52702010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5271
df7734b2
DN
5272 Remove dead code dealing with POSIX_SIGNALS.
5273 * atimer.c (set_alarm): Remove dead code, all USG systems define
5274 POSIX_SIGNALS.
5275 * data.c (arith_error): Likewise.
5276 * keyboard.c (input_available_signal, handle_user_signal)
5277 (interrupt_signal): Likewise.
5278 * process.c (sigchld_handler): Likewise.
5279 (create_process): Remove if 0 code. Remove HPUX conditional when
5280 !defined (POSIX_SIGNALS), it cannot be true.
5281 * syssignal.h: Remove USG5_4 and USG conditionals when
5282 !POSIX_SIGNALS, they cannot be true.
5283
b7064064
DN
5284 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5285 NO_SOCK_SIGIO, not used anymore.
5286
55da5ee3
DN
52872010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5288
0be96e3a
DN
5289 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5290 support vax on BSDs.
5291
55da5ee3
DN
5292 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5293 * s/aix4-2.h (ORDINARY_LINK): ... here.
5294
c0282183
AS
52952010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5296
82c3d67a
AS
5297 * Makefile.in (abs_builddir): Define.
5298 (bootstrap_exe): Use it.
5299 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5300
3613edce
SM
53012010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5302
5303 * Makefile.in (bootstrap_exe): Use an absolute name.
5304
7f110ddc
DN
53052010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5306
22e87574
DN
5307 Remove support for old GNU/Linux using libc version 5.
5308 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5309 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5310
05a670e6
DN
5311 Consolidate redundant definitions in s/bsd-common.h.
5312 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5313 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5314 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5315 doing it in all files that include this one.
5316 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5317 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5318 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5319 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5320 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5321 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5322 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5323 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5324 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5325
2968f561
DN
5326 Consolidate redundant definitions.
5327 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5328 it's undefined in all files that include this one.
5329 (POSIX_SIGNALS): Define here instead of doing it in all files that
5330 include this one.
5331 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5332 (POSIX_SIGNALS): Do not define.
5333 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5334 (POSIX_SIGNALS): Do not define.
5335 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5336 (POSIX_SIGNALS): Do not define.
5337
15d25dc0
DN
5338 Remove support for old UNIX System V systems.
5339 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5340 * s/usg-5-4-2.h: Remove.
5341
07e339e4
DN
5342 Remove support for Solaris on PPC and for old versions.
5343 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5344 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5345 that cancel each other.
5346 * s/sol2-3.h:
5347 * s/sol2-4.h:
5348 * s/sol2-5.h: Remove.
5349 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5350 (NO_REMAP): Remove, unused.
5351 (UNEXEC): Move definition ...
5352 * s/aix4-2.h (UNEXEC): ... here.
5353
7f110ddc
DN
5354 * s/openbsd.h: Remove support for non-ELF and for systems that do
5355 not support shared libraries.
5356 * s/netbsd.h:
5357 * s/freebsd.h: Likewise.
5358
605f35cd
DN
53592010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5360
5361 Remove non-working support for lynxos 3.0.
5362 * s/lynxos.h: Remove file.
5363
5364 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5365 COFF_BSD_SYMBOLS, nothing defines it anymore.
5366
aed71cf4
DN
53672010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5368
5369 Remove obsolete uses of HAVE_SHM.
5370 * emacs.c (standard_args):
5371 (Fdump_emacs):
5372 (syms_of_emacs): Remove code depending on HAVE_SHM.
5373
5374 * alloc.c: Remove HAVE_SHM dependent definition.
5375
5376 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5377
aded53ff
GM
53782010-03-18 Glenn Morris <rgm@gnu.org>
5379
17284745
GM
5380 * emacs.c (USAGE4): Hard-code bug address.
5381 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5382 (bug_reporting_address): Remove.
5383 (main): Don't call bug_reporting_address.
5384
aded53ff
GM
5385 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5386 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5387
303500aa
CY
53882010-03-15 Chong Yidong <cyd@stupidchicken.com>
5389
5390 * xfns.c (Fx_create_frame):
5391 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5392 on left.
5393
cef3058f
CY
53942010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5395
5396 * editfns.c (Fformat): Account for string precision when computing
5397 field width (Bug#5710).
5398
a647d59d
CY
53992010-03-12 Chong Yidong <cyd@stupidchicken.com>
5400
4fa42018
CY
5401 * xfns.c (Fx_create_frame): Set default to Qright.
5402
a647d59d
CY
5403 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5404 all window systems.
5405
6da23aaa
EZ
54062010-03-12 Eli Zaretskii <eliz@gnu.org>
5407
a96f6398 5408 These changes remove termcap.c from the build on Posix platforms.
83d02def 5409 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5410 (MSDOS_OBJ): ...to here.
5411 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5412 now identical to when LIBS_TERMCAP is defined.
5413
5414 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5415
5416 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5417
a96f6398 5418 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5419
288f9fc0
CY
54202010-03-10 Chong Yidong <cyd@stupidchicken.com>
5421
5422 * Branch for 23.2.
5423
d48cd3f4
SM
54242010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5425
5426 Cleanup setup of gl_state in various parts of the code.
5427 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5428 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5429 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5430 (skip_chars):
5431 * regex.c (regex_compile): Use it.
5432 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5433 it's now set in regex_compile when/if we need it.
5434
618db430
SM
54352010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5436
c0335e02
SM
5437 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5438 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5439 (QUIT): Use it to consolidate code and remove redundancy.
5440 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5441
254c06a8
SM
5442 * regex.c (regex_compile): Setup gl_state as well.
5443
618db430
SM
5444 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5445 (in_classes): Use CONSP before XCAR/XCDR.
5446
233f0c9f
CY
54472010-03-03 Chong Yidong <cyd@stupidchicken.com>
5448
5449 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5450 definitions, so that keyboard macros are correctly handled
5451 (Bug#5481).
5452
75f80e63
EZ
54532010-03-02 Eli Zaretskii <eliz@gnu.org>
5454
5455 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5456 text that could be relocated inside the call to emacs_mule_char.
5457 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5458 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5459
dcfb9bc4
KH
54602010-03-02 Kenichi Handa <handa@m17n.org>
5461
fc9a17bc
KH
5462 * character.c (parse_str_as_multibyte): Fix handling of the
5463 multibyte form of raw-bytes.
5464 (str_as_multibyte): Likewise.
5465
dcfb9bc4
KH
5466 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5467 form of raw-bytes.
5468
412c01b6
CY
54692010-02-28 Chong Yidong <cyd@stupidchicken.com>
5470
5471 * charset.c (load_charset_map_from_file)
5472 (load_charset_map_from_vector): Zero out allocated
5473 charset_map_entries before using them.
5474
df7e1ea0
AS
54752010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5476
5477 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5478
fe69a722
CY
54792010-02-27 Chong Yidong <cyd@stupidchicken.com>
5480
4ed28cf4
CY
5481 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5482 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5483
7379cfce
KH
54842010-02-26 Kenichi Handa <handa@m17n.org>
5485
f88cc4d6
KH
5486 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5487
7379cfce
KH
5488 * xdisp.c (reseat_to_string): Fix previous change.
5489
cf2fdcfb
CY
54902010-02-26 David Reitter <david.reitter@gmail.com>
5491
5492 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5493 Lisp_Object (Bug#4736).
5494
cc6c7c75
KH
54952010-02-25 Kenichi Handa <handa@m17n.org>
5496
5497 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5498
32e737d7
JD
54992010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5500
5501 * xterm.c (XTflash): Move declarations before statements.
5502
5503 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5504 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5505 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5506 (xg_create_tool_bar): Remove unused variables.
5507 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5508 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5509
676cae9f
CY
55102010-02-21 Chong Yidong <cyd@stupidchicken.com>
5511
5512 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5513
886cc2b8
SM
55142010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5515
5516 * term.c (fatal): Add a final \n if needed (bug#5596).
5517
ddb2d8e2
CY
55182010-02-18 Chong Yidong <cyd@stupidchicken.com>
5519
5520 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5521
2a4f8d3d
GM
55222010-02-18 Glenn Morris <rgm@gnu.org>
5523
5524 * callint.c (Finteractive): Doc fix.
5525
ebaf11b6
KH
55262010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5527
886cc2b8
SM
5528 * coding.c (record_conversion_result):
5529 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5530 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5531 memory allocation error.
5532
d0396581
KH
55332010-02-17 Kenichi Handa <handa@m17n.org>
5534
886cc2b8
SM
5535 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5536 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5537 (decode_coding): Setup ccl program here. Keep looping when the
5538 decoder stopped because the output buffer is
5539 fullfilled (bug#5534).
5540
5541 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5542
98599f74
JD
55432010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5544
471e4f04 5545 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5546 bug #5571.
886cc2b8 5547 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5548 overdrawn.
98599f74 5549
182659ae
JD
55502010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5551
5552 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5553 doing_interact here.
5554 (ice_connection_closed): New function.
5555 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5556 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5557 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5558 returns I/O error.
5559 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5560 bug #5512.
5561
9be32c4e 55622010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5563
5564 * nsfont.m (nsfont_open): The system's value for the font descent
5565 is negative, so round it down to avoid clipping.
5566
a2f3eb19
CY
55672010-02-06 Chong Yidong <cyd@stupidchicken.com>
5568
5569 * charset.c (load_charset_map_from_file)
5570 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5571 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5572
3088147c
CY
55732010-02-05 Chong Yidong <cyd@stupidchicken.com>
5574
5575 * charset.c (load_charset_map_from_file): Allocate large
5576 charset_map_entries structure on the heap rather than the stack.
5577 (Bug#5526).
5578
b57d9029
KH
55792010-01-31 Kenichi Handa <handa@m17n.org>
5580
5581 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5582 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5583
c67d885b
CY
55842010-01-31 Chong Yidong <cyd@stupidchicken.com>
5585
5586 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5587 <deactivated@gmail.com> (Bug#3605).
5588
8fab2362
CY
55892010-01-31 David De La Harpe Golden <david@harpegolden.net>
5590
5591 * fileio.c (Frename_file): Correctly rename symlinks to
5592 directories (Bug#5496).
5593
cb2a62f2
CY
55942010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5595
5596 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5597
944c7a26
AS
55982010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5599
5600 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5601
c024ac08
CY
56022010-01-29 Chong Yidong <cyd@stupidchicken.com>
5603
5604 * frame.c (DEFAULT_ROWS): Change default to 35.
5605
5606 * xfns.c (x_default_font_parameter): Change default XFT font to
5607 monospace-10 (Bug#3643).
5608
af93af83
EZ
56092010-01-29 Eli Zaretskii <eliz@gnu.org>
5610
5611 * w32inevt.c (key_event): Remove unnecessary comparison of
5612 event->uChar.AsciiChar with 128.
5613
ca0eb708
CY
56142010-01-28 Chong Yidong <cyd@stupidchicken.com>
5615
b242dbfc
CY
5616 * fileio.c (Frename_file): Fix last change (Bug#5487).
5617
ca0eb708
CY
5618 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5619
5620 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5621
45d45af5
JD
56222010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5623
5624 * xfns.c (Fx_create_frame): Remove window size matching code from
5625 2010-01-15.
a73f9c9d 5626 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5627
7e233730
JR
56282010-01-27 Jason Rumney <jasonr@gnu.org>
5629
5630 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5631 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5632
86e893e3
KH
56332010-01-27 Kenichi Handa <handa@m17n.org>
5634
5635 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5636 pattern string (Bug#4209).
86e893e3 5637
8719abec
CY
56382010-01-27 David De La Harpe Golden <david@harpegolden.net>
5639
5640 * fileio.c (Frename_file): Call copy-directory and
5641 delete-directory for directories, in order to handle cross-device
5642 renaming (Bug#3353).
5643
844794c8
JD
56442010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5645
aa3e13b5 5646 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5647 sizes 24 and 10. Bug #3643.
844794c8 5648
bd4b5750
SM
56492010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5650
8dc1adf6 5651 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5652 * keymap.c (shadow_lookup): Add `remap' arg.
5653 (describe_map, describe_vector): Update calls to shadow_lookup.
5654 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5655 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5656 perform remapping during shadow_lookup check of remapped_sequences.
5657
285d07e2
CY
56582010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5659
5660 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5661 png_check_sig, which has been removed in libpng 1.4.
5662
c6d09b8d
CY
56632010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5664
5665 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5666 lacks this header file).
5667
3d782998
YM
56682010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5669
5670 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5671 as in Emacs 22.
5672
2aff7c53
YM
56732010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5674
5675 * lisp.h (make_pure_string): String pointer arg now points to const.
5676
5677 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5678 args now point to const.
5679
74327f7a
EZ
56802010-01-22 Eli Zaretskii <eliz@gnu.org>
5681
5682 * lread.c (Fload): Don't treat files without .elc extension as
5683 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5684 them. (bug#5303)
5685
4d1e6632
KH
56862010-01-20 Kenichi Handa <handa@m17n.org>
5687
5688 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5689 treat the source as actual byte sequence.
5690
1fdede8f
AM
56912010-01-19 Alan Mackenzie <acm@muc.de>
5692
5693 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5694 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5695 `signal_after_change_p' to `coherent_change_p', and make the
5696 invocation of `modify_region' conditional on it.
5697
67477f30
JD
56982010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5699
5700 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5701 for debug purpose.
5702 (syms_of_xsettings): Declare xft-settings.
5703
244b023e
CY
57042010-01-18 Chong Yidong <cyd@stupidchicken.com>
5705
5706 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5707
617364fe
CY
57082010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5709
5710 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5711
4fe22cdf
CY
57122010-01-16 Chong Yidong <cyd@stupidchicken.com>
5713
5714 * emacs.c (standard_args): Adjust arg priorities to reflect how
5715 they are processed in startup.el.
5716
e118d2be
AS
57172010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5718
5719 * Makefile.in (lisp, shortlisp): Update.
5720
523ae620
SM
57212010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5722
5723 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5724 code, link the new kboard into all_kboard before running Lisp code,
5725 and protect the new terminal with GCPRO (Bug#5365).
5726 (x_term_init): Remove unused var `atom'.
5727 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5728
f0d13888
JD
57292010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5730
5731 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5732 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5733 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5734 this. Bug #3643.
f0d13888 5735
cc320f07
KH
57362010-01-15 Kenichi Handa <handa@m17n.org>
5737
5738 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5739
7ffdf101
CY
57402010-01-15 Chong Yidong <cyd@stupidchicken.com>
5741
5742 * nsterm.m (Qnone): Define.
5743
5744 * nsfns.m (Qnone): Move definition to nsterm.m.
5745
d12bd917
KH
57462010-01-14 Kenichi Handa <handa@m17n.org>
5747
5748 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5749 systems.
5750
d9a7c140
KH
57512010-01-14 Kenichi Handa <handa@m17n.org>
5752
5753 Make auto-composition work on all buffers even if they are
5754 fundamental mode.
5755
5756 * composite.c (Vauto_composition_mode): New variable.
5757 (composition_compute_stop_pos): Check Vauto_composition_mode
5758 instead of Vauto_composition_function.
5759 (composition_adjust_point, Ffind_composition_internal): Likewise.
5760 (syms_of_composite): Declare Lisp variable
5761 "auto-composition-mode" here.
5762
63286bb2
CY
57632010-01-13 Chong Yidong <cyd@stupidchicken.com>
5764
5765 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5766 during call to vendor-specific-keysyms (Bug#5365).
5767
c2623ee7
YM
57682010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5769
5770 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5771 Call SIGNAL_THREAD_CHECK (Bug#5333).
5772
5773 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5774 Call SIGNAL_THREAD_CHECK.
5775
0b5397c2
SM
57762010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5777
5778 Try to fix bug#5314. This is probably not the final word, tho.
5779 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5780 recent-auto-save-p as a side-effect.
5781 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5782 * buffer.c (Fkill_buffer, reset_buffer):
5783 * editfns.c (Fsubst_char_in_region):
5784 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5785 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5786
dc954cb2
KH
57872010-01-13 Kenichi Handa <handa@m17n.org>
5788
5789 Display buffer name, etc. in mode line by composing correctly.
5790
5791 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5792 STRING is not nil.
0b5397c2 5793 (display_mode_element): Adjust for the change of
dc954cb2
KH
5794 decode_mode_spec and display_line.
5795 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5796 (display_string): Handle the case that STRING is non-null and
5797 LISP_STRING is not nil.
5798
0b5397c2
SM
5799 * xterm.c (x_draw_composite_glyph_string_foreground):
5800 Pay attention to s->face->overstrike.
dc954cb2
KH
5801
5802 * composite.c (composition_reseat_it): Don't check PT if STRING is
5803 non nil.
5804
4a00eaca
YM
58052010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5806
5807 * keyboard.c (read_char): Don't apply previous change when current
5808 buffer is unchanged by command execution.
5809
60abb287
JD
58102010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5811
5812 * keyboard.c (read_char): Return after executing from special map.
5813
893db5bc
GM
58142010-01-12 Glenn Morris <rgm@gnu.org>
5815
5816 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5817 bug-gnu-emacs rather than emacs-pretest-bug.
5818
4d03ece0
CY
58192010-01-11 Chong Yidong <cyd@stupidchicken.com>
5820
5821 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5822 initializing the Lisp variables that depend on them.
5823
1df47e38
YM
58242010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5825
5826 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5827 Clear areas that will not be updated after change of menu bar lines.
5828 Clear the menu bar window's current matrix when the window gets empty.
5829
2f1c6384
CY
58302010-01-09 Chong Yidong <cyd@stupidchicken.com>
5831
e398c61c
CY
5832 * intervals.h, textprop.c (extend_property_ranges): Return value
5833 and args changed. Discard properties that begin at or after the
5834 new end (Bug#5306).
5835
5836 * editfns.c (Fformat): Caller changed.
5837
e5a29a10
CY
5838 * nsterm.m (ns_set_default_prefs): Delete function.
5839 (syms_of_nsterm): Initialize ns_command_modifier,
5840 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5841 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5842
2f1c6384
CY
5843 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5844 position (Bug#4040).
5845
d427a9fa
EZ
58462010-01-09 Eli Zaretskii <eliz@gnu.org>
5847
5848 * editfns.c (Ffloat_time): Doc fix.
5849
21b9df2f
JD
58502010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5851
5852 * xfns.c (Fx_create_frame): Don't create frame larger than display
5853 by default bug#3643.
5854
4b00d3b1
YM
58552010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5856
5857 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5858 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5859 windows above internal border.
5860
5861 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5862 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5863 windows above internal border.
5864
5865 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5866 tool bar windows specially.
5867
5868 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5869
5870 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5871 specially.
5872 (XTflash): Take account of menu bar height.
5873
5874 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5875 specially.
5876
5075d853
JD
58772010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5878
ac146f82 5879 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5880 also be true before we can return early (bug #5339).
5881
474217c8
CY
58822010-01-06 David Reitter <david.reitter@gmail.com>
5883
5884 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5885 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5886 (Bug#3233).
5887
c0e6d47d
JD
58882010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5889
d0cf45b7
JD
5890 * font.c (font_open_entity): Enable chache and call cached_font_ok
5891 for the driver if defined.
5892 (QCuser_spec): New symbol.
5893 (font_spec_from_name): Save name as user-spec.
5894 (font_load_for_lface): Keep user-spec instead of name.
5895 (font_open_by_name): Save name as user-spec.
5896 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5897 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5898
5899 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5900 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5901 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5902
5903 * font.h (struct font_driver): Add cached_font_ok.
5904
c0e6d47d
JD
5905 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5906
7c583cd8
JD
59072010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5908
5909 * xterm.c (x_new_font): Move code for setting rows/cols before
5910 resizing ...
ac146f82 5911 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
5912
5913 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
5914 (xg_frame_resized, xg_frame_set_char_size):
5915 Call xg_clear_under_internal_border.
7c583cd8 5916 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 5917
03f77f0a
CY
59182010-01-05 Chong Yidong <cyd@stupidchicken.com>
5919
5920 * keyboard.c (read_key_sequence): Catch keyboard switch after
5921 making a new tty frame (Bug#5095).
5922
2a1ef5be
KH
59232010-01-05 Kenichi Handa <handa@m17n.org>
5924
5925 * fontset.c (fontset_find_font): Fix getting the frame pointer.
5926
e3eb1dae
SM
59272010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
5928
5929 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
5930 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
5931 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
5932
777013f2
MA
59332010-01-03 Michael Albinus <michael.albinus@gmx.de>
5934
5935 * dbusbind.c (xd_add_watch): Improve debug message.
5936 (xd_remove_watch): Improve debug message. If DATA is the session
5937 bus, unset D-Bus session environment.
5938 (Fdbus_init_bus): Pass the bus as argument to
5939 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 5940
8932b1c2
CY
59412010-01-01 Chong Yidong <cyd@stupidchicken.com>
5942
87231e2c
CY
5943 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
5944
4801c5fa
CY
5945 * lread.c (syms_of_lread): Make it clearer that these are the
5946 names of loaded files (Bug#5068).
5947
8932b1c2
CY
5948 * eval.c (run_hook_with_args): Handle the case where the global
5949 value has the obsolete single-function form (Bug#5026).
5950
11e3c684
CY
59512009-12-27 Chong Yidong <cyd@stupidchicken.com>
5952
5953 * minibuf.c (Fall_completions): Minor optimization.
5954
5b28ce35
EZ
59552009-12-26 Eli Zaretskii <eliz@gnu.org>
5956
5ce6e4f4
JB
5957 * .gdbinit (pgx): Fix display of composite glyphs.
5958 Display cmp.from and cmp.to as well.
5959 (pitx): Fix last change.
5b28ce35 5960
bcffff46
KH
59612009-12-25 Kenichi Handa <handa@m17n.org>
5962
5963 * composite.h (composition_adjust_point): Update prototype.
5964
5965 * composite.c (composition_reseat_it): Don't make a composition
5966 spanning over point.
5967 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
5968 composable characters.
5969 (composition_adjust_point): New arg NEW_PT. Callers changed.
5970
5971 * keyboard.c (command_loop_1): Force redisplay if the last point
5972 was within a composition.
5973 (adjust_point_for_property): Don't adjust point for automatic
5974 composition when called after buffer modification.
5975
3f670e9a
EZ
59762009-12-19 Eli Zaretskii <eliz@gnu.org>
5977
5ce6e4f4
JB
5978 * .gdbinit (pitx): Don't use enum names, use their values.
5979 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
5980 (pgx): Don't use enum names, use their values.
5981 (pitmethod): New helper command.
5982 (pitx): Use it to display iteration method.
5983 (pgrowit): New command.
5984
ad903955
EZ
5985 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
5986
3f670e9a
EZ
5987 Update dependencies in Makefile.in.
5988
5989 * Makefile.in (alloc.o): Depend on termhooks.h.
5990 (atimer.o): Depend on blockinput.h.
5991 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
5992 and frame.h.
5993 (callint.o): Depend on systime.h, coding.h, and composite.h.
5994 (callproc.o): Depend on buffer.h.
5995 (casefiddle.o): Don't depend on charset.h.
5996 (casetab.o): Depend on character.h.
5997 (ccl.o): Depend on composite.h.
5998 (chartab.o): Depend on ccl.h.
5999 (cm.o): Depend on dispextern.h.
6000 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6001 (coding.o): Don't depend on $(INTERVALS_H).
6002 (composite.o): Don't depend on dispextern.h explicitly (it's in
6003 $(INTERVALS_H)). Depend on ccl.h.
6004 (data.o): Depend on systime.h, coding.h, composite.h,
6005 dispextern.h, font.h, and ccl.h.
6006 (dired.o): Depend on composite.h.
6007 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6008 composite.h (it's in $(INTERVALS_H)).
6009 (doc.o): Depend on systime.h, coding.h, and composite.h.
6010 (editfns.o): Don't depend explicitly on dispextern.h.
6011 (emacs.o): Depend on frame.h and coding.h.
6012 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6013 (fileio.o): Depend on frame.h and commands.h. Don't depend
6014 explicitly on dispextern.h.
6015 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6016 composite.h.
6017 (fns.o): Don't depend on termhooks.h.
6018 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6019 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6020 coding.h, $(INTERVALS_H), window.h, xterm.h.
6021 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6022 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6023 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6024 fontset.h, ccl.h, and ftfont.h.
6025 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6026 (gtkutil.o): Depend on dispextern.h and composite.h.
6027 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6028 termhooks.h, and ccl.h.
6029 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6030 (intervals.o): Depend on systime.h and coding.h.
6031 (keyboard.o): Depend on composite.h and coding.h.
6032 (keymap.o): Depend on coding.h and frame.h.
6033 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6034 (macros.o): Depend on systime.h, coding.h, and composite.h.
6035 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6036 and atimer.h.
6037 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6038 dispextern.h explicitly.
0b5397c2
SM
6039 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6040 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6041 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6042 (regex.o): Don't depend on charset.h.
6043 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6044 (search.o): Don't depend explicitly on composite.h.
6045 (sound.o): Depend on atimer.h and systime.h.
6046 (syntax.o): Don't depend explicitly on composite.h.
6047 (sysdep.o): Depend on coding.h and composite.h.
6048 (term.o): Depend on xterm.h and buffer.h.
6049 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6050 (textprop.o): Don't depend on dispextern.h explicitly.
6051 (undo.o): Depend on dispextern.h.
6052 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6053 dispextern.h and composite.h explicitly.
6054 (xdisp.o): Depend on ccl.h.
6055 (xfaces.o): Depend on coding.h and ccl.h.
6056 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6057 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6058 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6059 ftfont.h.
6060 (xgselect.o): New dependency.
6061 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6062 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6063 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6064 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6065 (xsmfns.o): Depend on frame.h and dispextern.h.
6066 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6067 sysselect.h.
6068
7a6f7fea
AS
60692009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6070
6071 * font.c (Fclear_font_cache): Pass correct cache argument to
6072 font_clear_cache.
6073
f4c21026
AS
60742009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6075
6076 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6077 twice.
6078
f7ab0997
CY
60792009-12-15 Chong Yidong <cyd@stupidchicken.com>
6080
6081 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6082 calling file-remote-p. Reported by Jim Meyering.
6083
fa8e045a
MA
60842009-12-15 Michael Albinus <michael.albinus@gmx.de>
6085
6086 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6087 avoid compiler warnings. (Bug #5217)
fa8e045a 6088
a63dba42
KH
60892009-12-14 Kenichi Handa <handa@m17n.org>
6090
6091 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6092 in 8-bit encoding.
6093
5ce6e4f4 60942009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6095
6096 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6097 tooltip windows.
6098
223e5fc6
JD
60992009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6100
36acb2a7
JD
6101 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6102 Xatom_net_window_type.
6103
6104 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6105 Xatom_net_window_type.
6106
b8f00677
JD
6107 * xterm.c (my_log_handler): New function.
6108 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6109 so we can filter out buggy messages. (Bug #5120).
b8f00677 6110
e5f0bc9a
JD
6111 * xterm.c (xg_scroll_callback): Parameter list changed,
6112 use parameter GtkScrollType to determine scroll/line/page.
6113 Only allow dragging if a button < 4 is grabbed (bug #5177).
6114 (xg_end_scroll_callback): New function.
6115 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6116 xg_create_scroll_bar.
6117
6118 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6119 (scroll_end_callback): Remove.
6120 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6121 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6122 bug #5177.
e5f0bc9a
JD
6123 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6124 bug #5177.
6125
6126 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6127 (xg_create_scroll_bar): Add GCallback end_callback.
6128
223e5fc6
JD
6129 * xftfont.c (QClcdfilter): New variable.
6130 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6131 (syms_of_xftfont): Initialize QClcdfilter.
6132
3c055b77
JD
61332009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6134
6135 * xsettings.c (struct xsettings): Add member seen.
6136 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6137 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6138 (apply_xft_settings): Only update Xft settings with what member seen
6139 indicates as new.
6140
05fe33ff
EZ
61412009-12-12 Eli Zaretskii <eliz@gnu.org>
6142
c4cc8b9a 6143 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6144 (struct glyph): Use EMACS_INT for charpos.
6145 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6146 region_beg_charpos, region_end_charpos,
6147 redisplay_end_trigger_charpos, and also for
6148 iterator_stack_entry.end_charpos and
6149 iterator_stack_entry.stop_charpos.
6150
e8d7886a
JD
61512009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6152
5ce6e4f4 6153 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6154 (xg_create_scroll_bar): Call scroll_end_callback on button release
6155 event (bug #5177).
6156 (xg_event_is_for_scrollbar): != replaced with ==.
6157
d0db2ec8
KH
61582009-12-12 Kenichi Handa <handa@m17n.org>
6159
6160 * ftfont.c (struct ftfont_info): New member matrix.
6161 (ftfont_open): Setup xftfont_info->matrix.
6162 (MFLTFontFT): New member matrix.
6163 (FLOOR, CEIL, ROUND): New macros.
6164 (ftfont_get_metrics): Handle matrix transformation.
6165 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6166
6167 * xftfont.c (struct xftfont_info): New member matrix.
6168 (xftfont_open): Setup xftfont_info->matrix.
6169
61702009-12-10 Kenichi Handa <handa@m17n.org>
6171
6172 * xdisp.c (append_space_for_newline): Consider face-remapping.
6173
2cc7b62f
AS
61742009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6175
b87dd913
AS
6176 * xsettings.c: Include "keyboard.h".
6177
eba5eb94
AS
6178 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6179
2cc7b62f
AS
6180 Fix implicit function declarations.
6181 * cmds.c: Include "frame.h".
6182 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6183 * frame.h: Move declaration of delete_frame outside of
6184 HAVE_WINDOW_SYSTEM.
6185
a4ef73c8
CY
61862009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6187
6188 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6189
6190 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6191 GTK builds.
6192
944a300c
AS
61932009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6194
6195 * unexelf.c (unexec): Don't search for .data twice.
6196
022eef62
CY
61972009-12-05 Chong Yidong <cyd@stupidchicken.com>
6198
426ac949
CY
6199 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6200 if push failed.
6201 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6202 of push_display_prop (Bug#5000).
6203
022eef62
CY
6204 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6205 value of font_list_entities (Bug#5085).
6206
be95bee9
JB
62072009-12-04 Juanma Barranquero <lekktu@gmail.com>
6208
6209 Fix `string-to-number' to deal consistently with integers and floats.
6210 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6211 trailing characters, not just whitespace.
6212 (read1): Pass new arg 0 to keep old behavior.
6213 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6214 trailing chars, as it is already done for integers. Doc fixes.
6215 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6216
24c2d7ce
EZ
62172009-12-04 Eli Zaretskii <eliz@gnu.org>
6218
0b5397c2
SM
6219 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6220 Delete unused enumeration value.
24c2d7ce 6221
7e694795
EZ
62222009-12-03 Eli Zaretskii <eliz@gnu.org>
6223
6224 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6225
84b31826
SM
62262009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6227
6228 * process.c (Fmake_network_process): Fix up the tests for
6229 "connectionless socket", so they DTRT for seqpacket sockets as well.
6230
f00c449b
SM
62312009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6232
6233 * process.c (Qseqpacket): New symbol.
6234 (HAVE_SEQPACKET): New macro.
6235 (Fmake_network_process): Accept new :type `seqpacket'.
6236 (init_process): Add `seqpacket' feature when applicable.
6237 (syms_of_process): Initialize Qseqpacket.
6238
8096a0ff
YM
62392009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6240
6241 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6242 if entity is Qnil.
6243
3e0de07f
SM
62442009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6245
6246 * print.c (print_preprocess): Preprocess the key_and_value table of
6247 hashtables, even tho they're "hidden" (bug#5082).
6248
abeafb2a
JD
62492009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6250
6251 * frame.c (frame_make_pointer_invisible)
6252 (frame_make_pointer_visible): Declare f before statements.
6253
4bf47195
EZ
62542009-11-28 Eli Zaretskii <eliz@gnu.org>
6255
6256 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6257 omitted dependencies on lisp.h.
6258
c525b3f2
JD
62592009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6260
ece2d4ed
JD
6261 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6262 is NULL.
6263
6264 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6265
6266 * frame.c (frame_make_pointer_invisible)
3e0de07f 6267 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6268 frame.
6269
c525b3f2
JD
6270 * search.c (simple_search): Remove warning by making *p const.
6271
2f00e299
DN
62722009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6273
6274 * xdisp.c (power_letter): Remove duplicate const.
6275
084b049b
JD
62762009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6277
a1fadc6f
JD
6278 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6279
5ce6e4f4 6280 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6281 defaults (bug #5025).
6282
28259cac
SM
62832009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6284
6285 * insdel.c (adjust_markers_for_delete): Move it in the
6286 right direction! (bug#4803)
6287
e8e14166
YM
62882009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6289
6290 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6291
6292 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6293
86677b58
GM
62942009-11-24 Glenn Morris <rgm@gnu.org>
6295
6296 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6297
581e51e8
JD
62982009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6299
cfc86c7a
JD
6300 * Makefile.in: Must create deps for ecrt0.o in its rule.
6301
581e51e8
JD
6302 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6303 because that is what Gtk+ font dialog understands.
6304
6305 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6306 of Fcopy_sequence.
6307 (font_open_by_name): Put name given into QCname for font-object returned.
6308
6309 * frame.c (x_set_font): Save original font name as frame parameter
6310 font-parameter.
6311
6312 * xsettings.c (set_default_xft_settings): New function.
6313 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6314 is found.
6315
8b264ecb
AS
63162009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6317
6318 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6319 searching backwards through multibyte buffer.
6320
872870b2
JD
63212009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6322
6323 * xterm.c: #include xgselect.h.
6324 (x_initialize): Call xgselect_initialize.
6325
6326 * xsettings.c (something_changedCB): C++ comments => C comments.
6327 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6328 does that now.
6329
6330 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6331 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6332 (scroll_bar_button_cb): Remove.
5ce6e4f4 6333 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6334 event.
6335 (xg_create_scroll_bar): Don't bind button-press-event and
6336 button-release-event.
6337
6338 * process.c: Include xgselect.h if defined (USE_GTK) ||
6339 defined (HAVE_GCONF).
6340 (wait_reading_process_output): Call xg_select for the same condition.
6341
6342 * xgselect.c (xg_select): New function to better integrate with
6343 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6344
6345 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6346
6347 * Makefile.in (XOBJ): Add xgselect.o.
6348
62a6e103
AS
63492009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6350
0b5397c2
SM
6351 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6352 Remove ignored second argument. All callers changed.
62a6e103
AS
6353 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6354 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6355 * xdisp.c (string_char_and_length): Likewise.
6356
b0ca0f33
DN
63572009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6358
6359 * xterm.c (x_new_font):
6360 * print.c (print_object):
6361 * cmds.c (Fself_insert_command): Move declarations before statements.
6362
dd5a6279
CY
63632009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6364
6365 * s/cygwin.h: Remove unneeded linker flags.
6366
4a8e097d
JD
63672009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6368
0d1d0d26
JD
6369 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6370
6371 * xsettings.h: Declare xsettings_get_system_font.
6372
6373 * xsettings.c (xsettings_get_system_font): New function.
6374 (init_gconf): No use initiating gconf unless we have Xft also.
6375 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6376 HAVE_GCONF.
6377
4a8e097d
JD
6378 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6379 add a blank entry so it doesn't collapse into nothing.
6380
8ab1650e
SM
63812009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6382
6383 * lread.c (Funintern): Comment out last change.
6384
82c602f0
RS
63852009-11-19 Richard Stallman <rms@gnu.org>
6386
6387 * lread.c (Funintern): Error if symbol is t or nil.
6388
87e32266
SM
63892009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6390
6391 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6392 representation of Lisp integers.
6393 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6394
1b9ac145
AS
63952009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6396
6397 * lisp.h: Remove declaration of Ffont_get_system_font.
6398 * xfns.c: Move include of "xsettings.h".
6399 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6400
dfb3c4c6
JD
64012009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6402
87e32266
SM
6403 * xsettings.c (something_changedCB, Ffont_get_system_font):
6404 Check use_system_font.
dfb3c4c6
JD
6405 (syms_of_xsettings): DEFVAR font-use-system-font.
6406
9370c1d8
AS
64072009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6408
25fe851a
AS
6409 * xfns.c (x_default_font_parameter): Remove dead assignment.
6410
9370c1d8
AS
6411 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6412
637fa988
JD
64132009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6414
87e32266 6415 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6416 not have FC_LCD_*. #define them if not there.
a6eb20d8 6417
87e32266 6418 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6419
637fa988
JD
6420 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6421
6422 * xterm.c (handle_one_xevent): Call xft_settings_event for
6423 ClientMessage, PropertyNotify and DestroyNotify.
6424 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6425 Call xsettings_initialize.
6426
6427 * xftfont.c (xftfont_fix_match): New function.
6428 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6429 Call xftfont_fix_match after XftFontMatch.
6430
6431 * xfont.c (xfont_driver): Initialize all members.
6432
87e32266
SM
6433 * xfns.c (x_default_font_parameter):
6434 Try font from Ffont_get_system_font.
637fa988
JD
6435 Do not get font from x_default_parameter if we got one from
6436 Ffont_get_system_font.
87e32266 6437 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6438
6439 * w32font.c (w32font_driver): Initialize all members.
6440
6441 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6442
6443 * lisp.h: Declare syms_of_xsettings.
6444
87e32266
SM
6445 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6446 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6447
6448 * ftfont.c (ftfont_filter_properties): New function.
6449
6450 * frame.c (x_set_font): Remove unused variable lval.
6451
87e32266 6452 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6453
6454 * font.c (font_put_extra): Don't return if val is nil, it means
6455 boolean option is off.
6456 (font_parse_fcname): Collect all extra properties in extra_props
6457 and call filter_properties for all drivers with extra_props and
6458 font as parameter.
87e32266
SM
6459 (font_open_entity): Do not use cache, it does not pick up new
6460 fontconfig settings like hinting.
637fa988
JD
6461 (font_load_for_lface): If spec had a name in it, store it in entity.
6462
a73f9c9d 6463 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6464
6465 * config.in: HAVE_GCONF is new.
6466
6467 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6468 xsettings.o is new.
6469
5a942932
KH
64702009-11-17 Kenichi Handa <handa@m17n.org>
6471
6472 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6473 back to the default font in case that no suitable font is found.
6474
b7c7a4d1
SM
64752009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6476
6477 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6478 Suggested by Chad Brown <yandros@mit.edu>.
6479 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6480
072f1e39
JD
64812009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6482
6483 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6484
5d1e70a2
AS
64852009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6486
87e32266 6487 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6488
a53cfbe5
JD
64892009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6490
473a99b7
JD
6491 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6492 has a parent.
6493
a53cfbe5 6494 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6495 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6496
6497 * config.in: Generated (AUTO_DEPEND).
6498
f04bb9b2
MA
64992009-11-13 Michael Albinus <michael.albinus@gmx.de>
6500
b7c7a4d1 6501 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6502 Vdbus_registered_functions_table, because it contains also
6503 properties. Fix docstring.
b7c7a4d1 6504 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6505
8f11f7ec
SM
65062009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6507
6508 * alloc.c (mark_object): Don't reprocess marked strings.
6509 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6510 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6511
8a605fe8
KH
65122009-11-13 Kenichi Handa <handa@m17n.org>
6513
8f11f7ec 6514 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6515 semantics of Vword_combining_categories.
6516 (Vword_combining_categories): Describe the slight change of the
6517 semantics.
6518
241c4680
EZ
65192009-11-13 Eli Zaretskii <eliz@gnu.org>
6520
6521 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6522
6523 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6524
5d58e44c
SM
65252009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6526
6527 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6528
5e13f9d3
JB
65292009-11-12 Juanma Barranquero <lekktu@gmail.com>
6530
6531 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6532
cf54c754
DR
65332009-11-11 David Reitter <david.reitter@gmail.com>
6534
6535 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6536 variables to fix 2009-11-09 change.
6537
a4ada374
DN
65382009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6539
91433552
DN
6540 * process.c (ifflag_def): Make flag_sym constant.
6541 (Fnetwork_interface_info): Use a constant pointer.
6542 (ifflag_table):
6543 * xfns.c (cursor_bits):
6544 * xdisp.c (power_letter):
6545 * termcap.c (speeds, esctab):
6546 * sysdep.c (baud_convert):
6547 * keyboard.c (lispy_accent_codes, modifier_names):
6548 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6549 (jpeg_format, tiff_format, gif_format, svg_format)
6550 (interlace_start, interlace_increment, gs_format):
6551 * gtkutil.c (separator_names):
6552 * fringe.c (swap_nibble):
6553 * fns.c (base64_value_to_char, base64_char_to_value):
6554 * fileio.c (make_temp_name_tbl):
6555 * coding.c (suffixes): Make constant.
6556
f4265f6c
DN
6557 * frame.c (make_initial_frame):
6558 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6559 build_string.
6560 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6561
04420943
DN
6562 * s/freebsd.h:
6563 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6564
0a5d24ae
DN
6565 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6566 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6567
a4ada374
DN
6568 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6569 * xterm.c (syms_of_xterm):
6570 * xfaces.c (syms_of_xfaces):
6571 * xdisp.c (syms_of_xdisp):
6572 * lread.c (syms_of_lread):
6573 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6574 build_string.
91433552 6575
a4ada374
DN
6576 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6577
af98fc7f
SM
65782009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6579
8ab1650e 6580 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6581
e90292a9
JD
65822009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6583
6584 * keyboard.h: Declare timer_check.
6585
6586 * keyboard.c (timer_check_2): New function that does what the old
6587 timer_check did.
6588 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6589 returned, i.e. don't return -1 with timers pending.
6590
6591 * process.c: Remove extern declaration of timer_check.
6592
6593 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6594 even if timer_check returned -1.
6595
af98fc7f
SM
6596 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6597 xg_dialog_data.
e90292a9
JD
6598 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6599 the event loop.
6600 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6601 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6602 Destroy the dialog after xg_dialog_run.
6603
045b83c0
SM
66042009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6605
6606 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6607
1fb99a3a
JD
66082009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6609
6610 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6611
04e452cb
JB
66122009-11-09 Juanma Barranquero <lekktu@gmail.com>
6613
6614 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6615
ef7417fd
SM
66162009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6617
6618 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6619 w32menu.c, and nsmenu.m.
6620 Simplify the obsolete case where position is nil.
6621 (cleanup_popup_menu): New function, moved from nsmenu.m.
6622 (struct skp): Remove slot `notreal'.
6623 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6624 adjust callers.
6625 (single_menu_item): Adjust call to parse_menu_item.
6626 (syms_of_menu): Defsubr x-popup-menu.
6627 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6628 (keymap_panes): Don't export any more.
6629 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6630 (xmenu_show): Declare.
6631 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6632 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6633 * keyboard.h (parse_menu_item): Update declaration.
6634 * xmenu.c (Fx_popup_menu): Remove.
6635 (syms_of_xmenu): Don't defsubr x-popup-menu.
6636 * w32menu.c (Fx_popup_menu): Remove.
6637 (syms_of_w32menu): Don't defsubr x-popup-menu.
6638 * nsmenu.m (cleanup_popup_menu): Remove.
6639 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6640 moved to menu.c's Fx_popup_menu.
6641 (Fx_popup_menu): Remove.
6642 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6643 menu_items (it's done in menu.c already).
6644
424d6179
SM
66452009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6646
6647 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6648 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6649
c0df13a6 66502009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6651
6652 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6653 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6654 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6655 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6656
2de9f71c
SM
66572009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6658
6659 Let integers use up 2 tags to give them one extra bit and thus double
6660 their range.
6661 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6662 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6663 New macros.
6664 (enum Lisp_Type): Use them. Give explicit values.
6665 (Lisp_Type_Limit): Remove.
6666 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6667 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6668 Pay attention to USE_2_TAGS_FOR_INTS.
6669 (INTEGERP): Use LISP_INT_TAG_P.
6670 * fns.c (internal_equal): Simplify the default case.
6671 (sxhash): Use case_Lisp_Int.
6672 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6673 any more.
6674 (Ftype_of): Use case_Lisp_Int.
6675 (store_symval_forwarding): Take into account the fact that Ints can
6676 now have more than one tag.
6677 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6678 (buffer_slot_type_mismatch):
2de9f71c
SM
6679 * xfaces.c (face_attr_equal_p):
6680 * print.c (print_object):
6681 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6682 Use case_Lisp_Int.
6683
323637a2
EZ
66842009-11-06 Eli Zaretskii <eliz@gnu.org>
6685
7ac65b38
EZ
6686 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6687
323637a2
EZ
6688 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6689 warning.
6690
e511451f
JD
66912009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6692
6693 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6694
6695 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6696
6697 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6698 ButtonPressRelease and MotionNotify (bug#4870).
6699
5e2327cf
DN
67002009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6701
5adc433e
DN
6702 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6703
d67b4f80
DN
6704 * xterm.c (syms_of_xterm):
6705 * xselect.c (syms_of_xselect):
6706 * xmenu.c (syms_of_xmenu):
6707 * xfns.c (syms_of_xfns):
6708 * xfaces.c (syms_of_xfaces):
6709 * xdisp.c (syms_of_xdisp):
6710 * window.c (syms_of_window):
6711 * w32fns.c (syms_of_w32fns):
6712 * undo.c (syms_of_undo):
6713 * textprop.c (syms_of_textprop):
6714 * terminal.c (syms_of_terminal):
6715 * syntax.c (syms_of_syntax):
6716 * sound.c (syms_of_sound):
6717 * search.c (syms_of_search):
6718 * print.c (syms_of_print):
6719 * minibuf.c (syms_of_minibuf):
6720 * macros.c (syms_of_macros):
6721 * keymap.c (syms_of_keymap, initial_define_key)
6722 (initial_define_lispy_key):
6723 * keyboard.c (syms_of_keyboard):
6724 * insdel.c (syms_of_insdel):
6725 * image.c (syms_of_image):
6726 * fringe.c (syms_of_fringe):
6727 * frame.c (syms_of_frame):
6728 * fontset.c (syms_of_fontset):
6729 * fns.c (syms_of_fns):
6730 * fns.c (syms_of_fns):
6731 * fileio.c (syms_of_fileio):
6732 * fileio.c (syms_of_fileio):
6733 * eval.c (syms_of_eval):
6734 * doc.c (syms_of_doc):
6735 * dispnew.c (syms_of_display):
6736 * dired.c (syms_of_dired):
6737 * dbusbind.c (syms_of_dbusbind):
6738 * data.c (syms_of_data):
6739 * composite.c (syms_of_composite):
6740 * coding.c (syms_of_coding):
6741 * cmds.c (syms_of_cmds):
6742 * charset.c (define_charset_internal, syms_of_character):
6743 * ccl.c (syms_of_ccl):
6744 * category.c (syms_of_category, init_category_once):
6745 * casetab.c (syms_of_casetab):
6746 * casefiddle.c (syms_of_casefiddle):
6747 * callint.c (syms_of_callint):
6748 * bytecode.c (syms_of_bytecode):
6749 * buffer.c (keys_of_buffer, syms_of_buffer):
6750 * alloc.c (syms_of_alloc):
6751 * process.c (syms_of_process, init_process):
6752 * lread.c (syms_of_lread, init_obarray):
6753 * font.c (build_style_table):
6754 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6755 intern_c_string, calls to make_pure_string with
6756 make_pure_c_string. Use pure_cons instead of Fcons.
6757
5e2327cf
DN
6758 * process.c (socket_options): Make it const.
6759 (set_socket_option, init_process): Use a const pointer.
6760
6761 * lread.c (intern_c_string): New function.
6762 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6763 (defvar_int): Uset it. Make the name const char*.
6764
6765 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6766 (defvar_int): Update prototypes.
6767 (DEFUN, EXFUN): Support for prototypes is now required.
6768 (intern_c_string): New prototype.
6769 (struct Lisp_Subr): Make symbol_name constant.
6770
6771 * font.c (struct table_entry): Remove unused member. Make NAMES
6772 constant.
6773 (weight_table, slant_table, width_table): Make constant.
6774
6775 * emacs.c (struct standard_args): Make name and longname constant.
6776
6777 * character.h (DEFSYM): Use intern_c_string.
6778
a56eaaef
DN
67792009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6780
6781 * alloc.c (make_pure_c_string): New function.
6782
6783 * eval.c (Fautoload): Purecopy all arguments.
6784
f6a07420
KH
67852009-11-05 Kenichi Handa <handa@m17n.org>
6786
6787 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6788 the buffer in case of replace.
6789
5d28d4b1
DN
67902009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6791
6792 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6793
b349d111
SM
67942009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6795
d528b1ce
SM
6796 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6797 when applicable (bug#4851).
6798
b349d111
SM
6799 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6800 (P_): Support for prototypes is now required.
6801
c38eb027
CY
68022009-10-31 Chong Yidong <cyd@stupidchicken.com>
6803
6804 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6805 (Bug#4827).
6806
0405f8d9
EZ
68072009-10-30 Eli Zaretskii <eliz@gnu.org>
6808
d528b1ce 6809 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6810
ca0a881a
DN
68112009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6812
6813 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6814
d528b1ce
SM
6815 * lread.c (Fload): Purecopy the file name when building
6816 Vpreloaded_file_list.
ca0a881a 6817
47e0e0e4
JR
68182009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6819
6820 * w32fns.c (syms_of_w32fns): Change default value of
6821 w32-scroll-lock-modifier to nil. (Bug#2827)
6822
057bce6f
JB
68232009-10-26 Juanma Barranquero <lekktu@gmail.com>
6824
782a943e 6825 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6826
242bc74c
AS
68272009-10-26 Andreas Schwab <schwab@redhat.com>
6828
6829 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6830
522d013a
JB
68312009-10-26 Juanma Barranquero <lekktu@gmail.com>
6832
6833 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6834 For delta < 0, skip check that only makes sense when the mini-window
6835 is going to be enlarged. (Bug#4534)
6836
18060980
CY
68372009-10-25 Chong Yidong <cyd@stupidchicken.com>
6838
6839 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6840 string in menu maps (Bug#4471).
6841
fec8f0fe
CY
68422009-10-24 Chong Yidong <cyd@stupidchicken.com>
6843
6844 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6845 FRAME_NS_VIEW on terminal frames (Bug#4765).
6846
10d66ec0
AS
68472009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6848
1cae01f7
AS
6849 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6850 DBUS_TYPE_UINTnn separately to get proper sign extension.
6851
58a12889
AS
6852 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6853 can properly handle unsigned types.
d528b1ce 6854 (make_uid, make_gid): Remove.
58a12889 6855
987c9327
AS
6856 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6857 types again.
6858
522d013a 6859 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6860 (system_process_attributes): Likewise.
6861
905a9ed3
DN
68622009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6863
6864 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6865
6866 * eval.c (Fautoload): Purecopy the filename. Simplify.
6867
6868 * category.c (Fdefine_category): Purecopy docstring.
6869
a599b3e8
AS
68702009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6871
7b792fc9
AS
6872 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6873
a599b3e8
AS
6874 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6875
b35ac83e
CY
68762009-10-23 Chong Yidong <cyd@stupidchicken.com>
6877
6878 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6879 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6880 (Bug#4775).
6881
e8903e00
SM
68822009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6883
6884 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6885 (init_fileio_once):
6886 * lisp.h (init_fileio_once): Remove.
6887 * emacs.c (main): Don't call init_fileio_once.
6888
8f43cbf3
DN
68892009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6890
6891 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6892
26898943
AS
68932009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6894
6895 * doprnt.c (doprnt): Fix overflow check.
6896
5c646d5a
JD
68972009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6898
3132a7ea
JD
6899 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6900
5c646d5a
JD
6901 * xterm.h (x_wait_for_event): Declare it.
6902
6903 * xterm.c (pending_event_wait): New variable.
6904 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6905 see pending_event_wait.eventtype.
6906 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6907 (x_new_font): Call change_frame_size with new rows/columns before we
6908 try to resize the frame.
5c646d5a 6909 (x_wait_for_event): New function.
d528b1ce
SM
6910 (x_set_window_size_1): Don't change gravity unless change_gravity
6911 is set.
5c646d5a
JD
6912 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
6913 don't change frame size, instead wait for the ConfigureNotify.
6914 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
6915 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
6916 (x_initialize): Initialize pending_event_wait.
6917
6918 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
6919 size.
6920
6921 * widget.c (EmacsFrameSetValues): Add comment.
6922 (EmacsFrameSetCharSize): Just call x_set_window_size.
6923
6924 * gtkutil.c (xg_frame_set_char_size): Flush events and call
6925 x_wait_for_event.
d528b1ce 6926 (flush_and_sync): Remove again.
5c646d5a
JD
6927 (xg_get_font_name): Suggest monospace if no previous font is known.
6928
e9c1637d
SM
69292009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
6930
6931 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 6932 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 6933
5a72cccb
YM
69342009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6935
6936 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
6937 processing pending events when event is filtered for input method.
ab04798f 6938 (Bug#3681)
5a72cccb 6939
2629aa37
JB
69402009-10-20 Juanma Barranquero <lekktu@gmail.com>
6941
6942 * fns.c: Add #endif accidentally removed in previous change.
6943
c3417a74
DN
69442009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6945
6946 * fns.c: Remove code for unsupported system: MAC_OS.
6947 * image.c: Likewise. Include setjmp.h.
6948
9685cef2
JD
69492009-10-19 Jan Djärv <jan.h.d@swipnet.se>
6950
6951 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
6952 pixel -1 (bug #4742).
6953
d7306fe6
DN
69542009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
6955
019d2c4c
DN
6956 * process.c (create_pty): Remove conditionals for no longer
6957 supported systems: UNIPLUS and RTU.
6958
ee6bacd4
DN
6959 * xterm.c:
6960 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
6961
d7306fe6
DN
6962 * alloc.c: Do not define struct catchtag.
6963 * eval.c: Move struct catchtag definition ...
6964 * lisp.h: ... here.
6965
6966 * image.c: Move png.h #include earlier to avoid warnings.
6967
6968 * xterm.c:
6969 * xsmfns.c:
6970 * xselect.c:
6971 * xrdb.c:
6972 * xmenu.c:
6973 * xftfont.c:
6974 * xfont.c:
6975 * xfns.c:
6976 * xfaces.c:
6977 * xdisp.c:
6978 * window.c:
6979 * widget.c:
6980 * w32xfns.c:
6981 * w32uniscribe.c:
6982 * w32term.c:
6983 * w32select.c:
6984 * w32reg.c:
6985 * w32proc.c:
6986 * w32menu.c:
6987 * w32inevt.c:
6988 * w32heap.c:
6989 * w32font.c:
6990 * w32fns.c:
6991 * w32console.c:
6992 * w32.c:
6993 * w16select.c:
6994 * vm-limit.c:
6995 * unexsol.c:
6996 * unexec.c:
6997 * unexcw.c:
6998 * unexaix.c:
6999 * undo.c:
7000 * tparam.c:
7001 * textprop.c:
7002 * terminfo.c:
7003 * terminal.c:
7004 * termcap.c:
7005 * term.c:
7006 * syntax.c:
7007 * sound.c:
7008 * sheap.c:
7009 * search.c:
7010 * scroll.c:
7011 * region-cache.c:
7012 * regex.c:
7013 * ralloc.c:
7014 * process.c:
7015 * print.c:
b024548b
DN
7016 * nsterm.m:
7017 * nsselect.m:
7018 * nsmenu.m:
7019 * nsimage.m:
7020 * nsfont.m:
7021 * nsfns.m:
d7306fe6
DN
7022 * msdos.c:
7023 * minibuf.c:
7024 * menu.c:
7025 * marker.c:
7026 * macros.c:
7027 * keymap.c:
7028 * keyboard.c:
7029 * intervals.c:
7030 * insdel.c:
7031 * indent.c:
7032 * gtkutil.c:
7033 * ftxfont.c:
7034 * ftfont.c:
7035 * fringe.c:
7036 * frame.c:
7037 * fontset.c:
7038 * font.c:
7039 * fns.c:
7040 * floatfns.c:
7041 * filelock.c:
7042 * fileio.c:
7043 * emacs.c:
7044 * editfns.c:
7045 * dosfns.c:
7046 * doprnt.c:
7047 * doc.c:
7048 * dispnew.c:
7049 * dired.c:
7050 * dbusbind.c:
7051 * data.c:
7052 * composite.c:
7053 * coding.c:
7054 * cmds.c:
7055 * cm.c:
7056 * chartab.c:
7057 * charset.c:
7058 * character.c:
7059 * ccl.c:
7060 * category.c:
7061 * casetab.c:
7062 * casefiddle.c:
7063 * callproc.c:
7064 * callint.c:
7065 * bytecode.c:
7066 * buffer.c:
7067 * atimer.c: Include setjmp.h. (Bug#4643)
7068
fd5f21e6
SM
70692009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7070
4c0354d7
SM
7071 Remove leftover table unibyte_to_multibyte_table.
7072 * character.c (unibyte_to_multibyte_table): Remove.
7073 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7074 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7075 * character.h (UNIBYTE_TO_CHAR): New macro.
7076 (MAKE_CHAR_MULTIBYTE): Use it.
7077 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7078 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7079 (message_dolog, set_message_1):
7080 * search.c (Freplace_match):
7081 * editfns.c (Fcompare_buffer_substrings):
7082 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7083 (concat):
7084 * insdel.c (copy_text, count_size_as_multibyte):
7085 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7086 * term.c (produce_glyphs):
7087 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7088 * regex.c (RE_CHAR_TO_MULTIBYTE):
7089 * cmds.c (internal_self_insert):
7090 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7091
fd5f21e6
SM
7092 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7093
4418646e
DN
70942009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7095
7096 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7097
35f5c1d2
JB
70982009-10-16 Juanma Barranquero <lekktu@gmail.com>
7099
7100 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7101
a0cd8f6b
AR
71022009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7103
7104 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7105 still needed under Tiger.
7106
7107 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7108
7109 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7110 __Apple__.
7111
7112 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7113
01a8d3fa
KH
71142009-10-15 Kenichi Handa <handa@m17n.org>
7115
7116 * print.c (print_object): Escape a symbol like "2E10" too.
7117
bf6c75c9 71182009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7119
7120 Cleanups and changes for 64-bit compile under Snow Leopard.
7121 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7122
7123 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7124
c5959062 7125 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7126 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7127 cast argument.
7128 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7129 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7130
7131 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7132
7133 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7134 where appropriate.
7135
7136 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7137 where appropriate.
6e4780c5
JB
7138 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7139 Use stringWithUTF8String.
bf6c75c9
AR
7140 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7141
6e4780c5
JB
7142 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7143 Add formal protocol mention to inheritance.
bf6c75c9
AR
7144 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7145
6e4780c5
JB
7146 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7147 Fix printf format.
bf6c75c9
AR
7148 (ns_query_color): Use CGFloat where appropriate.
7149 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7150 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7151 argument.
7152
3d87f118
AR
7153 * config.in (NS_HAVE_NSINTEGER): Drop.
7154
a95c8102
AR
7155 * dbusbind.c (dbus-method-return-internal)
7156 (dbus-method-error-internal): Use long format in printf, and cast
7157 argument.
7158
7159 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7160 in printf, and cast argument.
7161
6873acca 7162 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7163 cast argument.
7164
9ec6f100
GM
71652009-10-11 Glenn Morris <rgm@gnu.org>
7166
7167 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7168
5be883cd
JD
71692009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7170
7171 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7172 menu bar with a small width so it doesn't enlarge the frame.
7173
d7a39b51
JB
71742009-10-08 Juanma Barranquero <lekktu@gmail.com>
7175
7176 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7177
0c2b6f8e
GM
71782009-10-06 Glenn Morris <rgm@gnu.org>
7179
7180 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7181 SOME_MACHINE_LISP (this enters indirectly via DOC).
7182
e02131a2
EZ
71832009-10-05 Eli Zaretskii <eliz@gnu.org>
7184
7185 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7186
b4744254
EZ
71872009-10-04 Eli Zaretskii <eliz@gnu.org>
7188
7189 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7190 Doc fix.
7191
dbf64827
JB
71922009-10-03 Martin Rudalics <rudalics@gmx.at>
7193
7194 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7195
e9a0aef8
MA
71962009-10-02 Michael Albinus <michael.albinus@gmx.de>
7197
d528b1ce 7198 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7199 used anymore outside fileio.c.
7200
7201 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7202
64eb2b56
JB
72032009-10-01 Juanma Barranquero <lekktu@gmail.com>
7204
7205 * lisp.h (Qdelete_directory_internal):
7206 Declare, instead of Qdelete_directory.
7207
7208 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7209
9d28c33e
SM
72102009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7211
7212 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7213
9d8f3bd9
MA
72142009-10-01 Michael Albinus <michael.albinus@gmx.de>
7215
9d28c33e 7216 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7217 Fdelete_directory. It is not a command anymore. It has no file
7218 name handler.
7219
9694740b
SM
72202009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7221
7222 * xdisp.c (get_next_display_element): Use an enum in last change.
7223
748e162f
KH
72242009-09-28 Kenichi Handa <handa@m17n.org>
7225
9694740b 7226 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7227 unibyte_display_via_language_environment in handling
7228 Vnobreak_char_display.
7229
17efd58d
AR
72302009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7231
7232 * nsterm.h (ns_app_name): New extern variable.
7233
7234 * nsterm.m (ns_app_name): New variable.
7235 (ns_term_init): Set and use it.
7236 (ns_term_shutdown): Use it.
7237
7238 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7239 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7240
7241 * nsfns.m (ns_set_name_iconic, ns_set_name)
7242 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7243 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7244
9694740b
SM
7245 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7246 Remove double-casting in client_data comparison.
31c2d412 7247
3208cb35
YM
72482009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7249
7250 * keyboard.c (make_lispy_event): Remember last wheel direction.
7251 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7252
b7d552d6
GM
72532009-09-26 Glenn Morris <rgm@gnu.org>
7254
7255 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7256 internal.elc. Add term/pc-win.elc.
7257 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7258 term/x-win.elc.
7259 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7260 term/w32-win.elc.
7261 (NS_SUPPORT): New.
7262 (lisp): Add NS_SUPPORT.
7263 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7264
4ff670a8
DR
72652009-09-25 David Reitter <david.reitter@gmail.com>
7266
7267 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7268 on Mac OS X 10.6+ (bug#4513).
7269
feabfb6c
JB
72702009-09-24 Juanma Barranquero <lekktu@gmail.com>
7271
7272 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7273 some parts of Emacs code (like font selection) don't grok them.
7274 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7275
de59072a
AS
72762009-09-24 Andreas Schwab <schwab@redhat.com>
7277
7278 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7279
a489517b
JB
72802009-09-24 Juanma Barranquero <lekktu@gmail.com>
7281
7282 * dired.c (Fdirectory_files): Fix typo in docstring.
7283
0592970c
AR
72842009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7285
7286 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7287 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7288 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7289 under GNUstep.
7290 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7291
7292 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7293 glyph advancement.
7294
48e8a88b
AR
72952009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7296
7297 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7298 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7299
7300 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7301 deleted (bug #4492).
7302
e14f0a78
AR
7303 * nsfont.m (Vns_reg_to_script): New lisp variable.
7304 (syms_of_nsfont): Declare it.
7305 (ns_registry_to_script): New function.
7306 (ns_get_req_script): Call it.
7307 (ns_findfonts): Don't give up on non-unicode registry.
7308
7309 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7310
5b650faa
SM
73112009-09-20 Tom Tromey <tromey@redhat.com>
7312
7313 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7314 batch mode (bug#4228).
7315
a489517b 73162009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7317
7318 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7319 carefully. (Bug #4339)
0bae4e09 7320
fcfe06f3
CY
73212009-09-18 Chong Yidong <cyd@stupidchicken.com>
7322
d798ba87 7323 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7324
31642728
AR
73252009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7326
7327 * emacs.c (inhibit_x_resources): Update doc string for NS.
7328 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7329 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7330
7331 * nsterm.h (ns_no_defaults): Remove.
7332
7333 * nsterm.m (ns_no_defaults): Remove.
7334 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7335 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7336 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7337 don't update the NSWindow itself.
7338 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7339 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7340
7341 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7342 ns_use_qd_smoothing.
7343
7344 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7345 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7346 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7347 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7348
8686ac71
JB
73492009-09-17 Juanma Barranquero <lekktu@gmail.com>
7350
7351 * emacs.c (inhibit_x_resources): New variable.
7352 (main) [HAVE_NS]: Don't process --quick command line option.
7353 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7354
7355 * lisp.h (inhibit_x_resources): Declare it extern.
7356
7357 * w32reg.c (x_get_string_resource):
7358 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7359
e227ba05
EZ
73602009-09-17 Eli Zaretskii <eliz@gnu.org>
7361
362654a6
JB
7362 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7363 Add lisp/term/internal.elc.
e227ba05 7364
742d40e8
SM
73652009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7366
7367 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7368 (bug#4461).
7369
005bd5a2
DN
73702009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7371
7372 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7373
7374 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7375 (OBJECTS_MACHINE): Remove, unused.
7376
f9af9719
SM
73772009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7378
7379 * frame.c (x_get_resource_string): Remove unused.
7380
0307c7d2
JD
73812009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7382
7383 * xterm.c (x_new_font): Call change_frame_size before calling
7384 x_set_window_size, in case frame size won't change.
7385
7386 * frame.c (x_set_font): Remove dead code.
7387
428b13d6
SM
73882009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7389
7390 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7391
5766c380
SM
73922009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7393
7394 * lread.c (Fload): Don't output a message after loading an obsolete
7395 package any more (done in Lisp now).
7396
2fd0161b
CY
73972009-09-12 Chong Yidong <cyd@stupidchicken.com>
7398
7399 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7400
bc5e75b6
SM
74012009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7402
7403 * keymap.c (Fwhere_is_internal): Use nconc2.
7404
c31c985e
AM
74052009-09-11 Alan Mackenzie <acm@muc.de>
7406
7407 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7408 batch mode.
7409
78012bd2
AS
74102009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7411
7412 * xdisp.c (display_mode_element): Detect cycles.
7413
9d889332
SM
74142009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7415
7416 * keymap.c (where_is_internal): Don't erroneously return nil right after
7417 filling the cache.
7418 (where_is_internal_1): Fix up typo.
7419
7ab5d780
GM
74202009-09-11 Glenn Morris <rgm@gnu.org>
7421
7422 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7423 share a common doc-string.
7424
5238a749
SM
74252009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7426
66d77eda
SM
7427 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7428 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7429
5238a749
SM
7430 * keymap.c (QCadvertised_binding): New constant.
7431 (syms_of_keymap): Initialize it.
7432 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7433 if applicable.
7434
19f48442
SM
74352009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7436
50d4ba39
SM
7437 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7438 (parse_menu_item): Streamline since bindings are recomputed all the
7439 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7440 more and don't support lmenu's menu-alias any more either.
7441
a88a5372
SM
7442 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7443 (where_is_internal): Strip it down to only traverse the keymaps.
7444 Move the cache handling from Fwhere_is_internal to here.
7445 (Fwhere_is_internal): Move the handling of remapping and the choice of
7446 the best binding from where_is_internal to here.
7447 Unify the cached/noncached paths, so remapping is also handled
7448 correctly when the cache is used, and so the cache can be used to
7449 speed up remap-handling when applicable.
7450 Give preference to non-remapped bindings.
7451 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7452 non-remapped bindings.
7453 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7454 command remapping.
7455
19f48442
SM
7456 * xdisp.c (display_mode_element): Move list length limit from 50 to
7457 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7458
599498c3 74592009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7460
7461 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7462
f9b7b5ac
SM
74632009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7464
a53af587
JB
7465 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7466 (Bug#4334)
7467
f9b7b5ac
SM
7468 * keymap.c (where_is_internal): Filter out shadowed remappings.
7469 Assume that where_is_internal returns unshadowed bindings to simplify
7470 the code and get rid of the gotos. Use ASIZE.
7471
04f4b72d
JD
74722009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7473
4da146f2
JD
7474 * xterm.c (x_focus_changed): If we get a focusout and pointer
7475 is invisible, make it visible.
7476
04f4b72d
JD
7477 * xterm.h: Remove condition for declaration of
7478 x_*_window_to_frame.
7479
7cef7ce3
SM
74802009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7481
7482 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7483 initial terminal as well.
7484
a54fa5b7
JD
74852009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7486
7487 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7488 x_menubar_window_to_frame.
a54fa5b7 7489
50426a04 7490 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7491 (XTmouse_position): Do not return valid positions
7492 for clicks in the menubar and the toolbar for Gtk+.
7493
7494 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7495 if the widget for the event has the same top level as a frame,
7496 return the frame.
7497 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7498 internal windows, bug #4122.
7499 (x_non_menubar_window_to_frame): Remove.
7500
5a021dd0
GM
75012009-09-02 Glenn Morris <rgm@gnu.org>
7502
7503 * buffer.c (default-major-mode): Move most of the doc from here...
7504 (major-mode): ... to here.
7505
548fe2f3
NR
75062009-08-30 Nick Roberts <nickrob@snap.net.nz>
7507
7508 * process.c (wait_reading_process_output): Keep the descriptor
7509 when pty is used by a non-child process, e.g., in I/O buffer of
7510 GDB this allows inferior to be restarted.
7511
e0840eef
EZ
75122009-08-29 Eli Zaretskii <eliz@gnu.org>
7513
7514 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7515 both branches into one.
7516
82e98df4
SM
75172009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7518
7519 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7520 (main): Use enable-multibyte-characters rather than
7521 default-enable-multibyte-characters. Output a warning message when
7522 running a unibyte session.
7523
890617cb
YM
75242009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7525
7526 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7527 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7528 (copy_data_segment): Also copy __program_vars section.
7529 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7530 (dump_it) [LC_DYLD_INFO]: Use it.
7531
7532 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7533
e7adeadc
EZ
75342009-08-28 Eli Zaretskii <eliz@gnu.org>
7535
7536 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7537 $(SRC)/buildobj.h.
7538 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7539 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7540 $(SRC)/buildobj.h.
7541 (clean): Add buildobj.h.
7542
3ed8bbdc
TZ
75432009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7544
7545 * print.c (print_object): Set escapeflag to 1 when printing
7546 hashtable keys and values.
7547
155a6764
SM
75482009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7549
7550 * lread.c (read_integer): Use doubles (and potentially return a float
7551 number) as we do in string-to-number.
7552 (read1): Use strtol to read integers, signal errors on strtol's
7553 overflow and use floats if strtol's output is too large for
7554 Elisp integers.
7555
877610de
EZ
75562009-08-27 Eli Zaretskii <eliz@gnu.org>
7557
7558 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7559 (make-buildobj-SH): Fix last change.
7560 (SRC): Move to before where it's first used.
7561
ef73e7be
KH
75622009-08-27 Kenichi Handa <handa@m17n.org>
7563
550c8289
KH
7564 * process.c (send_process): Use encode_coding_object instead of
7565 encode_coding_string to perform eol-conversion even if the string
7566 is unibyte.
7567
60afa08d
KH
7568 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7569 character.
7570
ef73e7be 7571 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7572 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7573
7b3a82d7
DN
75742009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7575
5654bf63
DN
7576 * callproc.c (Fcall_process): Remove always true #if.
7577
7b3a82d7
DN
7578 * lisp.h: Replace #if 0 code for checking with text pointing to
7579 the --enable-checking configure flag.
7580
7581 * emacs.c (main): Mention the --enable-profiling configure flag
7582 instead of using CFLAGS.
7583
878bde49
KR
75842009-08-26 Ken Raeburn <raeburn@raeburn.org>
7585
7586 * Makefile.in (buildobj.h): New target.
7587 (doc.o): Depend on it.
7588 (temacs${EXEEXT}): Don't generate buildobj.lst.
7589 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7590 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7591 ($(BLD)/doc.$(O)): Depend on it.
7592 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7593 provided by Eli Zaretskii.)
7594 ($(TEMACS)): Don't generate buildobj.lst.
7595 * doc.c: Include buildobj.h.
7596 (buildobj): New static variable.
7597 (Fsnarf_documentation): Use it, instead of opening and reading
7598 buildobj.lst.
7599
1574224c
MA
76002009-08-25 Michael Albinus <michael.albinus@gmx.de>
7601
7602 * dbusbind.c (Fdbus_call_method)
7603 (Fdbus_call_method_asynchronously): Use English numeric format for
7604 timeout values in doc string.
7605
d9da2f45
KH
76062009-08-25 Kenichi Handa <handa@m17n.org>
7607
ef73e7be
KH
7608 * alloc.c (mark_char_table): New function.
7609 (mark_object): Use mark_char_table for a char-table.
7610
d9da2f45
KH
7611 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7612 (CHAR_TABLE_REF): Use it.
7613
c8edcc01
KR
76142009-08-23 Ken Raeburn <raeburn@raeburn.org>
7615
7616 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7617 before invoking the newly build emacs to check for load-path
7618 shadowing.
7619
7763401b
GM
76202009-08-22 Glenn Morris <rgm@gnu.org>
7621
7622 * Makefile.in (bootstrap_exe): New variable.
7623 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7624 Use ${bootstrap_exe}.
7625
729eadda
EZ
76262009-08-22 Eli Zaretskii <eliz@gnu.org>
7627
7628 * coding.h (encode_coding_string): Don't encode unibyte strings.
7629 (Bug#4047)
7630
eb4c6ace
MA
76312009-08-22 Michael Albinus <michael.albinus@gmx.de>
7632
7633 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7634
7635 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7636 intended as hotfix only.
7637 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7638
36e34d1b
AR
76392009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7640
7641 * nsterm.m (ns_get_color): Update documentation properly for last
7642 change, and clean up loose ends in the code left by it. Fix
7643 longstanding bug with 16-bit hex parsing, and add support for
7644 yet another X11 format (rgb:r/g/b) for compatibility.
7645 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7646 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7647
f983eb8a
SM
76482009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7649
7650 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7651
3f56d3c6
MA
76522009-08-20 Michael Albinus <michael.albinus@gmx.de>
7653
7654 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7655 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7656 (xd_initialize, xd_pending_messages): Check, whether
7657 $DBUS_SESSION_BUS_ADDRESS is set.
7658
fb641d68
YM
76592009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7660
7661 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7662
7663 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7664
cf59a374
GM
76652009-08-20 Glenn Morris <rgm@gnu.org>
7666
7667 * emacs.c (system-type): Doc fix.
7668
1373f3be
SM
76692009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7670
7671 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7672 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7673
058ed861
MA
76742009-08-18 Michael Albinus <michael.albinus@gmx.de>
7675
1373f3be
SM
7676 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7677 New functions.
058ed861
MA
7678 (xd_initialize): Revert change from 2009-08-16.
7679
563a866e 76802009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7681
7682 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7683 font-group vector, return nil.
5fc05db0 7684
e42bdf01
CY
76852009-08-17 Chong Yidong <cyd@stupidchicken.com>
7686
7687 * process.c (status_notify): Don't perform redisplay.
7688 (Fdelete_process, list_processes_1, process_send_signal):
7689 Expliticly perform redisplay.
7690 (wait_reading_process_output): Always check process status, but
7691 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7692
4230ab74
KR
76932009-08-17 Ken Raeburn <raeburn@raeburn.org>
7694
1373f3be 7695 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7696 (XFLOAT_INIT): New macro for storing a float value.
7697 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7698 * fns.c (sxhash): Copy out the value of a float in order to
7699 examine its bytes.
7700 * dbusbind.c (xd_append_arg): Likewise.
7701
4230ab74
KR
7702 * emacs.c (main): Don't call syms_of_data twice.
7703
a0645cdd
MA
77042009-08-16 Michael Albinus <michael.albinus@gmx.de>
7705
7706 * dbusbind.c (xd_initialize): Add connection file descriptor to
7707 input_wait_mask, in order to let select() detect, whether a new
7708 message has been arrived.
ca4f31ea 7709 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7710
485db0ba
MA
77112009-08-15 Michael Albinus <michael.albinus@gmx.de>
7712
1373f3be
SM
7713 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7714 New functions.
485db0ba
MA
7715
7716 * lisp.h (xd_pending_messages): Declare.
7717
7718 * keyboard.c (readable_events): Call xd_pending_messages.
7719
b5b98ff4
CY
77202009-08-15 Chong Yidong <cyd@stupidchicken.com>
7721
1373f3be 7722 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7723
f8354c6e
CY
7724 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7725
b5b98ff4
CY
7726 * buffer.c (set_buffer_internal_1)
7727 (swap_out_buffer_local_variables): Check for unbound local
7728 variables (Bug#4138).
7729
8b9fc636
EZ
77302009-08-14 Eli Zaretskii <eliz@gnu.org>
7731
7732 * process.c (create_pty): Fix last change.
7733
ce959360
CY
77342009-08-13 Chong Yidong <cyd@stupidchicken.com>
7735
7736 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7737 (xbm_load_image): Caller changed.
64b807c9 7738 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7739
c7baf7e9
NR
77402009-08-13 Nick Roberts <nickrob@snap.net.nz>
7741
7742 * process.c (create_pty): New function.
7743 (Fstart_process): Use it to allow Emacs to just associate a pty
7744 with the buffer. See associated change in gdb-mi.el.
7745 (list_processes_1): Deal with no program name.
7746 (start_process_unwind): Use pid == -2 to mean no process.
7747
1ac9108a
SM
77482009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7749
7750 * cmds.c (nonundocount): New global variable.
7751 (keys_of_cmds): Initialize it.
7752 (Fself_insert_command): Use it to combine upto 20 sequential chars
7753 into a single undo entry, just like the Qself_insert_command code in
7754 keyboard.c does.
7755 Call frame_make_pointer_invisible, also like the Qself_insert_command
7756 code in keyboard.c does.
7757 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7758 than its own local replacement for it.
7759
e267324c
KR
77602009-08-10 Ken Raeburn <raeburn@raeburn.org>
7761
1ac9108a 7762 * fns.c (concat): Don't re-set string length to its current value.
77437343 7763
1ac9108a
SM
7764 * coding.h (decode_coding_string, encode_coding_string):
7765 Use SBYTES macro.
f0bed503 7766
1ac9108a 7767 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7768 (doprnt): Merge with doprnt1, discarding lispstrings code.
7769 * lisp.h (doprnt_lisp): Don't declare.
7770
416e006d
JL
77712009-08-07 Juri Linkov <juri@jurta.org>
7772
7773 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7774
6f7d5780
DN
77752009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7776
7777 * print.c (syms_of_print): Undo previous change.
7778
f19a0f5b
TZ
77792009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7780
7781 * lread.c (read1, syms_of_lread): Read hashtables back from the
7782 readable format.
7783
7784 * print.c (print_preprocess, print_object): Print hashtables fully
7785 and readably.
7786 (syms_of_print): Provide 'hashtable-print-readable.
7787
b9173dc2
AR
77882009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7789
7790 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7791 no family set.
7792 (nsfont_open): Handle case when entity has no family.
7793
1586503c
AR
77942009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7795
7796 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7797 element, not a list, for match case.
7798
087048cd
KH
77992009-07-28 Kenichi Handa <handa@m17n.org>
7800
7801 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7802 rigidly.
7803
7804 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7805 font_parse_xlfd. Check font properties more rigidly.
7806
780c2506
DN
78072009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7808
31fd7c5c
JB
7809 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7810 bsd-common.h.
780c2506 7811
a8c0cc18
KH
78122009-07-27 Kenichi Handa <handa@m17n.org>
7813
7814 * xfaces.c (face_with_height): Call font_clear_prop.
7815
4fbe2306
CY
78162009-07-26 Chong Yidong <cyd@stupidchicken.com>
7817
111d9af3
CY
7818 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7819
7820 * xterm.c (x_term_init): Use Qx.
7821
4fbe2306
CY
7822 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7823
1ac9108a 7824 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7825 (ns_get_color): Revert 2009-07-16 change.
7826
beb0b7f9
EZ
78272009-07-25 Eli Zaretskii <eliz@gnu.org>
7828
7829 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7830 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7831
2baf5e76
KR
78322009-07-25 Ken Raeburn <raeburn@raeburn.org>
7833
1ac9108a
SM
7834 * coding.h (decode_coding_string, encode_coding_string):
7835 Use SCHARS macro.
8890e5f5 7836
2baf5e76 7837 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7838 (load_depth): Delete.
2baf5e76
KR
7839 (Qload_in_progress): New variable.
7840 (load_unwind): Don't reference load_depth or load_in_progress.
7841 (Fload): Likewise; specbind Qload_in_progress instead.
7842 (init_lread): Don't initialize load_depth.
7843 (syms_of_lread): Initialize and protect Qload_in_progress.
7844
1395c6f5
AR
78452009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7846
7847 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7848
4e2f36cf
AR
78492009-07-23 Yavor Doganov <yavor@gnu.org>
7850
7851 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7852
5dd9a6f7
AR
78532009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7854
7855 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7856 Bugs 3792, 3720, 2402.
7857 (ns_lookup_indexed_color): Check for bad index.
7858 (ns_index_color): Init unused slot to 0.
7859 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7860 Bug 3714, possibly 3082.
5dd9a6f7 7861
c902b920
JR
78622009-07-22 Jason Rumney <jasonr@gnu.org>
7863
1ac9108a
SM
7864 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7865 Position IME window at cursor (Bug#2570).
c902b920
JR
7866 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7867 (globals_of_w32fns): Dynamically load functions required above.
7868
7869 * w32term.c (w32_draw_window_cursor): Send message to reposition
7870 any IME window.
7871
090101cf
CY
78722009-07-21 Chong Yidong <cyd@stupidchicken.com>
7873
7874 * fileio.c: Revert 2009-07-16 changes.
7875 (Vauto_save_include_big_deletions): New variable.
7876 (Fdo_auto_save): Disable auto-save only if
7877 auto-save-include-big-deletions is nil.
7878
e6583e3d
CY
78792009-07-21 Chong Yidong <cyd@stupidchicken.com>
7880
7881 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7882 the overflowed pixels into account (Bug#3879).
7883
ece435a5
KR
78842009-07-21 Ken Raeburn <raeburn@raeburn.org>
7885
7886 * lread.c (load_depth): New variable.
7887 (Fload, load_unwind, init_lread): Set it to the load recursion
7888 depth; set load_in_progress as a simple boolean based on the
7889 current load_depth. (Bug#3892)
7890
40b2d973
AR
78912009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7892
7893 * nsfont.m (ns_has_attribute): Remove.
7894 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7895
10be7e0d
JL
78962009-07-18 Juri Linkov <juri@jurta.org>
7897
7898 * process.c (Fset_process_query_on_exit_flag): Mention killing
7899 a buffer in docstring.
7900
fa055055
KH
79012009-07-17 Kenichi Handa <handa@m17n.org>
7902
7903 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7904
042f7b69
YM
79052009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7906
7907 * nsfns.m (Fns_set_alpha): Remove function.
7908 (syms_of_nsfns): Don't defsubr it.
7909
7910 * nsterm.m (ns_get_color): Remove incompatible color formats.
7911 (ns_color_to_lisp): Generate #rrggbb color format string.
7912
4be941e3
RS
79132009-07-16 Richard Stallman <rms@gnu.org>
7914
7915 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
7916 (Fset_buffer_auto_saved): Handle save_length = -2.
7917
4e6b227d
CY
79182009-07-16 Chong Yidong <cyd@stupidchicken.com>
7919
7920 * xterm.c (Qx_gtk_map_stock): New var.
7921
7922 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
7923 of calling intern each time.
7924
a1856973
YM
79252009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7926
7927 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
7928 does tiling.
7929
7930 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
7931
497e54d8
KH
79322009-07-14 Kenichi Handa <handa@m17n.org>
7933
72d36834
KH
7934 * font.c (font_vconcat_entity_vectors): New function.
7935 (struct font_sort_data): New member font_driver_preference.
7936 (font_compare): Check font_driver_preference.
7937 (font_sort_entities): The format of the first argument changed.
7938 (font_delete_unmatched): Likewise.
7939 (font_list_entities): The return type changed.
7940 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
7941 (font_find_for_lface): Adjuste for the above changes.
7942 Don't suppress the checking of C even if the repertory supports it.
7943 (Flist_fonts): Adjust for the above changes.
72d36834 7944
1ac9108a
SM
7945 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
7946 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
7947 Reject a font who has adstyle property that is different from a
7948 langname derived from registry property.
1ac9108a 7949 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 7950
b6046155
EZ
79512009-07-13 Eli Zaretskii <eliz@gnu.org>
7952
7953 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
7954 local copy of dirfilename.
7955
fb6b6049
KH
79562009-07-13 Kenichi Handa <handa@m17n.org>
7957
e2402a5e
KH
7958 * chartab.c (sub_char_table_ref_and_range): Fix the range check
7959 against max_char.
7960
fb6b6049
KH
7961 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
7962 calling XSYMBOL (sym).
7963
65156807
EZ
79642009-07-11 Eli Zaretskii <eliz@gnu.org>
7965
1ac9108a
SM
7966 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
7967 New function.
7968 (directory_files_internal) [WINDOWSNT]:
7969 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
7970 the filesystem of the directory is fast or slow.
7971
7972 * w32.c (logon_network_drive): Don't assume PATH is an absolute
7973 file name.
7974 (is_slow_fs): New function.
7975 (stat): Use it to determine whether to issue more system calls to
7976 get accurate file attributes, when w32-get-true-file-attributes is
7977 `local'.
7978
e0ab5fcf
JD
79792009-07-10 Jan Djärv <jan.h.d@swipnet.se>
7980
7981 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 7982 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
7983 parameter font-parameter as default to the font dialog.
7984
784ceded
KH
79852009-07-10 Kenichi Handa <handa@m17n.org>
7986
7987 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
7988
fb8edc0b
EZ
79892009-07-09 Eli Zaretskii <eliz@gnu.org>
7990
1ac9108a 7991 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 7992
fb8edc0b
EZ
7993 * w32.c (stat): Treat UNC file names as residing on remote
7994 drives. (Bug#3542)
7995
635c75b1
KH
79962009-07-09 Kenichi Handa <handa@m17n.org>
7997
7998 * fontset.c (fontset_find_font): Fix previous change.
7999
c1d5ce94
MA
80002009-07-08 Michael Albinus <michael.albinus@gmx.de>
8001
8002 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8003 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8004 error flag.
8005
edb61b39
KH
80062009-07-08 Kenichi Handa <handa@m17n.org>
8007
374bf7e4
KH
8008 * fontset.c (fontset_find_font): Fix the logic of handling
8009 charset_matched.
8010 (font_for_char): Delete unused var.
8011 (generate_ascii_font_name): Delete it.
8012
edb61b39
KH
8013 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8014
8015 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8016 (encode_coding_sjis): Fix the code range check.
8017
0f3f018c
CY
80182009-07-07 Chong Yidong <cyd@stupidchicken.com>
8019
8020 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8021 (Fexpand_file_name): Copy string data properly (Bug#3772).
8022
fcaf6f3a
JD
80232009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8024
8025 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8026 first MapNotify.
8027
6809ca75
KH
80282009-07-07 Kenichi Handa <handa@m17n.org>
8029
8030 * character.h (unibyte_has_multibyte_table): Delete extern.
8031 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8032
8033 * charset.c (Fset_charset_priority): Update charset_unibyte.
8034 (syms_of_charset): Initialize charset_unibyte.
8035
8036 * character.c (unibyte_has_multibyte_table): Delete it.
8037 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8038 charset_unibyte.
8039 (multibyte_char_to_unibyte_safe): Likewise.
8040 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8041
1ac9108a 8042 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8043 (x_produce_glyphs): Likewise.
8044
8045 * .gdbinit (xcharset): Fix the treating $arg0.
8046
ad9e2d54
EZ
80472009-07-04 Eli Zaretskii <eliz@gnu.org>
8048
8049 Emulation of `getloadavg' on MS-Windows.
50426a04 8050 * w32.c: Include float.h.
ad9e2d54
EZ
8051 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8052 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8053 (get_native_system_info, get_system_times): New functions.
8054 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8055 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8056 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8057 g_b_init_get_system_times, and num_of_processors.
8058
0a3472c7
JR
80592009-07-03 Jason Rumney <jasonr@gnu.org>
8060
8061 * w32term.c (w32_initialize): Use standard types.
8062
80904120
EZ
80632009-07-03 Eli Zaretskii <eliz@gnu.org>
8064
8065 * dired.c (Ffile_attributes): Decode user and group names by the
8066 locale's encoding. (Bug#3443)
8067
6978862d
DN
80682009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8069
f8d23104
DN
8070 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8071 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8072
8073 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8074
8075 * term.c (init_tty): Remove spurious #ifdef.
8076
6978862d
DN
8077 * m/mips.h: Mention this file is also used for netbsd.
8078 * m/pmax.h: Remove file.
8079
e044e4fc
JD
80802009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8081
8082 * xterm.h (struct x_display_info): Add invisible_cursor.
8083 (struct x_output): Add current_cursor.
8084
8085 * xterm.c (XTtoggle_invisible_pointer): New function.
8086 (x_define_frame_cursor): Don't define cursor if invisible or the
8087 same as before. Set current_cursor.
8088 (x_create_terminal): Set toggle_invisible_pointer_hook.
8089
8090 * xfns.c (make_invisible_cursor): New function.
8091 (x_set_mouse_color): Call make_invisible_cursor.
8092 Set current_cursor.
8093 (x_window): Set current_cursor.
8094
8095 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8096
8097 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8098 inserting a character.
8099 (read_avail_input): Call frame_make_pointer_visible.
8100
8101 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8102 (frame_make_pointer_invisible, frame_make_pointer_visible):
8103 New functions.
e044e4fc
JD
8104 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8105
8106 * frame.h: Declare frame_make_pointer_invisible and
8107 frame_make_pointer_visible.
8108 (struct frame): Add pointer_invisible.
8109
574c8efa
JD
81102009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8111
7b507248
JD
8112 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8113 frame isn't visible.
8114 (xg_frame_resized): If width/height is -1, get size of window
8115 from X server.
8116
8117 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8118 for MapNotify.
8119
835bdaa7 8120 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8121 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8122 (flush_and_sync): Reintroduce.
574c8efa 8123
3f1c6666 81242009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8125
31fd7c5c 8126 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8127
8128 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8129 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8130
8131 * frame.h: Declare Qsticky.
8132
cad9ef74
JD
8133 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8134
8135 * nsfns.m (ns_frame_parm_handlers): Ditto.
8136
8137 * frame.c: Declare Qsticky.
8138 (frame_parms): Add sticky.
8139
8140 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8141
8142 * xterm.h: Declare x_set_sticky.
8143
8144 * xterm.c (x_set_sticky): New function.
8145
69b16610
JD
8146 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8147 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8148 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8149
8150 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8151
8152 * frame.c: Qmaximized is new.
8153 (x_set_frame_parameters): Do not handle fullscreen specially.
8154 Only set width and height if explicitly set.
8155 (x_set_fullscreen): Handle Qmaximized.
8156 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8157 (syms_of_frame): Initialize Qmaximized.
8158
1ac9108a
SM
8159 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8160 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8161
8162 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8163 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8164 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8165 set gravity to NorthWestGravity when USE_GTK.
8166 (set_wm_state): New function.
31fd7c5c 8167 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8168 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8169 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8170 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8171 to x_real_positions and x_fullscreen_adjust.
8172
8173 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8174 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8175 flush_and_sync.
8176 (xg_height_changed): New function.
8177 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8178 and gtk_window_set_policy. Set frame gravity after parsing the
8179 geometry string.
3f1c6666
JD
8180 (xg_update_frame_menubar, free_frame_menubar)
8181 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8182 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8183 Remove calls to xg_frame_set_char_size.
8184
fd503d99
KH
81852009-07-01 Kenichi Handa <handa@m17n.org>
8186
8187 * keyboard.c (decode_keyboard_code): New function.
8188 (tty_read_avail_input): Decode the input bytes if necessary.
8189
1ac9108a
SM
8190 * coding.c (setup_coding_system):
8191 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8192 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8193 use Qno_conversion.
8194
24ed93fb
YM
81952009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8196
8197 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8198
99061dfc
CY
81992009-06-30 Chong Yidong <cyd@stupidchicken.com>
8200
1ac9108a 8201 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8202
ff90fbde
JR
82032009-06-30 Jason Rumney <jasonr@gnu.org>
8204
8205 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8206 is already loaded.
8207 Set user model ID if supported (bug#1849).
8208
5f445726
JM
82092009-06-29 Jim Meyering <meyering@redhat.com>
8210
8211 Remove useless if-before-xfree test.
8212 * nsfont.m (nsfont_close): Remove useless test.
8213 * term.c (delete_tty): Likewise.
8214 * w32.c (system_process_attributes): Likewise.
8215 * w32font.c (w32font_close): Likewise.
8216 * xfaces.c (x_free_gc): Likewise.
8217 * xselect.c (buffer): Likewise.
8218
b9607587
AS
82192009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8220
8221 * process.c (send_process): Keep decoded string in a local
8222 variable and protect it from GC. (Bug#3521)
8223
89ba96f4
EZ
82242009-06-28 Eli Zaretskii <eliz@gnu.org>
8225
8226 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8227 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8228
098a1589
CY
82292009-06-28 Chong Yidong <cyd@stupidchicken.com>
8230
485422be
CY
8231 * xdisp.c (start_display, handle_face_prop)
8232 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8233 (redisplay_window, try_window_id, produce_image_glyph):
8234 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8235
098a1589
CY
8236 * xterm.c (x_update_window_begin, x_new_focus_frame)
8237 (x_scroll_bar_handle_click, handle_one_xevent)
8238 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8239 (x_make_frame_visible, x_make_frame_invisible)
8240 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8241 code chunks that are now obsolete.
8242
78c38319
MA
82432009-06-28 Michael Albinus <michael.albinus@gmx.de>
8244
8245 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8246 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8247 for hours, when optimzation is enabled.
8248 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8249 (xd_read_message): Make them static.
8250
4189ed40
CY
82512009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8252
8253 * term.c (turn_on_face): Allow simultaneously bold and dim
8254 terminal faces (Bug#3530).
8255
cd9b5e16
CY
82562009-06-27 Chong Yidong <cyd@stupidchicken.com>
8257
4e23bedb
CY
8258 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8259
cd9b5e16
CY
8260 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8261 truncation glyphs (Bug#3686).
8262
07cc3c35
GM
82632009-06-27 Glenn Morris <rgm@gnu.org>
8264
8265 * m/pmax.h: Restore file, with only netbsd portions.
8266
31fd7c5c 82672009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8268
cd9b5e16 8269 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8270
42d4a64f
KH
82712009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8272
8273 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8274 the arg FORCE_SYMBOL.
8275
930fe55b 82762009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8277
8278 * fontset.c (fontset_find_font): When a usable rfont_def is found
8279 in a fallback font-group, make it the first element of the group.
8280
57ebc3fd
CY
82812009-06-24 Chong Yidong <cyd@stupidchicken.com>
8282
8283 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8284
f084f942
KH
82852009-06-24 Kenichi Handa <handa@m17n.org>
8286
8287 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8288 set for C.
8289 (fontset_font): Record the availability of a font for C both in
8290 the realized fontsets of the current one and the default one.
8291
2f686c87
DN
82922009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8293
8294 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8295 conditional, it is always defined on AIX.
8296
666e158e
MB
82972009-06-23 Miles Bader <miles@gnu.org>
8298
8299 * window.c (Vrecenter_redisplay): New variable.
8300 (syms_of_window): Initialize it.
8301 (Qtty): New extern declaration.
8302 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8303
c6da7cd2
JM
83042009-06-23 Jim Meyering <meyering@redhat.com>
8305
1ac9108a
SM
8306 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8307 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8308 pointer dereferences are guaranteed to be valid.
c6da7cd2 8309
678dca3d
KH
83102009-06-23 Kenichi Handa <handa@m17n.org>
8311
74d75424
KH
8312 * emacs.c (main): Call init_font ().
8313
8314 * font.h (Vfont_log): Extern it.
8315 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8316
8317 * font.c (font_sort_entities, font_list_entities)
8318 (font_matching_entity, font_open_entity)
8319 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8320 (Vfont_log): Delete static.
8321 (font_log_env_checked): Delete this variable.
8322 (font_add_log): Don't check font_log_env_checked.
8323 (font_deferred_log): Check Vfont_log.
8324 (init_font): New function.
8325
678dca3d
KH
8326 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8327
8328 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8329
8330 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8331
8332 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8333
8334 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8335 (face_for_char): Don't call font_deferred_log here.
8336 (font_for_char): Likewise.
8337
8a668709
CY
83382009-06-22 Chong Yidong <cyd@stupidchicken.com>
8339
9a01ee33
CY
8340 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8341 rather than its background_width for drawing the overline and
8342 underline (Bug#489).
8343
8344 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8345 rather than its background_width for drawing the overline and
8346 underline (Bug#489).
ec7c9926
CY
8347 (xg_default_icon_file): New variable.
8348 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8349 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8350
8a668709
CY
8351 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8352 (load_overlay_strings): Remove externs.
8353 (fast_find_position): Function deleted.
8354 (mouse_face_from_buffer_pos): New function, based on
8355 fast_find_position. Correctly handle before-strings,
8356 display-strings, and after-strings (Bug#1220).
8357 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8358
4d4c02d8
CY
83592009-06-21 Chong Yidong <cyd@stupidchicken.com>
8360
1ac9108a 8361 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8362 (move_it_in_display_line_to, move_it_in_display_line_to)
8363 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8364
70243478
CY
83652009-06-21 Chong Yidong <cyd@stupidchicken.com>
8366
8367 * Branch for 23.1.
8368
13087e59
JR
83692009-06-21 Jason Rumney <jasonr@gnu.org>
8370
8371 * w32term.c (keyboard_codepage): New static variable.
8372 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8373 (w32_read_socket) [WM_CHAR]: Use it to decode character
8374 input (bug#3237).
8375 (w32_initialize): Initialize it.
8376 (codepage_for_locale): New function.
8377
4735b74e
KR
83782009-06-20 Ken Raeburn <raeburn@raeburn.org>
8379
8380 * process.c (status_message): Pass Faset index argument as a lisp
8381 object, so as to work with USE_LISP_UNION_TYPE.
8382
0e727afa
YM
83832009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8384
8385 * coding.c (Ffind_coding_systems_region_internal):
8386 Cache checked characters.
8387
cf299835
KH
83882009-06-18 Kenichi Handa <handa@m17n.org>
8389
1ac9108a 8390 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8391
90f20d94
AS
83922009-06-18 Andreas Schwab <aschwab@redhat.com>
8393
8394 * xdisp.c (redisplay_internal): Check that the frame is still
8395 live after redisplay of its windows.
8396 (redisplay_windows): Check that the window is still live.
8397
7f1faf1c
KH
83982009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8399
8400 * coding.c (detect_coding_utf_16): Fix previous change.
8401
cc13543e
KH
84022009-06-16 Kenichi Handa <handa@m17n.org>
8403
8404 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8405 UTF-16 by checking the dispersion of Eth and Oth bytes.
8406
977b85f4
AS
84072009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8408
8409 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8410
66bd43d1
KH
84112009-06-15 Kenichi Handa <handa@m17n.org>
8412
8413 * process.c (status_message): Fix previous change. Be sure to
8414 decode a localized string.
8415
cb5ca9c5
YM
84162009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8417
8418 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8419 add comment explaining why.
8420
ec7709ba 84212009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8422
ec7709ba 8423 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8424
4b7f335c
AR
84252009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8426
8427 * nsfont.m (ns_attribute_value): Remove.
8428 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8429 (ns_has_attribute): Shrink the normal range.
8430 (ns_findfonts): Don't worry about requested spec in determining
8431 need for synthItal.
e41820ee 8432 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8433
73b26103
SZ
84342009-06-14 Seiji Zenitani <zenitani@mac.com>
8435
8436 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8437
5753e4da
KH
84382009-06-11 Kenichi Handa <handa@m17n.org>
8439
8440 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8441 overhang for the static composition case.
8442
3561b671
KH
84432009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8444
5753e4da
KH
8445 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8446 overhang for the automatic composition case.
8447
3561b671
KH
8448 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8449 composition case.
8450
852bbd41
CY
84512009-06-10 Chong Yidong <cyd@stupidchicken.com>
8452
8453 * xdisp.c (get_next_display_element): When handling wrap-prefix
8454 and line-prefix, treat \n as a control character (bug#3502).
8455
9903d1e6
KH
84562009-06-10 Kenichi Handa <handa@m17n.org>
8457
8458 * font.c (font_parse_family_registry): Fix for one-char foundry.
8459 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8460
0bcbaaaa
CY
84612009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8462
8463 * process.c (status_message): Fix handling of multibyte signal
8464 string (Bug#3499).
8465
40aa3f13
JM
84662009-06-09 Jim Meyering <meyering@redhat.com>
8467
1f80c7e2
CY
8468 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8469 color name is missing.
40aa3f13 8470
72d51285
KH
84712009-06-09 Kenichi Handa <handa@m17n.org>
8472
8473 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8474 FROM-CODE and TO-CODE are codepoints of CHARSET.
8475
c1d04d84
AR
84762009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8477
8478 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8479
84802009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8481
8482 Changes to support :script/:lang/:otf in NS font driver.
8483 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8484 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8485 indicate not part of font driver interface, and change callers.
8486 (ns_get_family): Remove pointless null check.
8487 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8488 ns_spec_to_descriptor, ns_descriptor_to_entity.
8489 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8490 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8491 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8492 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8493 (ns_get_req_script, ns_accumulate_script_ranges)
8494 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8495 New functions.
8496 (nsfont_list, nsfont_match): Use ns_findfonts.
8497 (nsfont_open): Use font descriptor instead of traits.
8498 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8499 (dump_glyphstring): Rename to ns_dump_glyphstring.
8500
c7eb9816
AR
8501 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8502
c1d04d84
AR
8503 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8504
8505 * fontset.c (fontset_from_font): Remove NS-specific code.
8506
ec7709ba 85072009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8508
8509 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8510 nonactive windows.
8511
31fd7c5c 85122009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8513
1ac9108a 8514 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8515
68852c13 85162009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8517
8518 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8519
6756cd1d
CY
85202009-06-07 Chong Yidong <cyd@stupidchicken.com>
8521
8522 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8523 account for the overflowing of newlines into the last glyph on the
8524 display line (Bug#3482).
8525
28bf482a
DR
85262009-06-05 David Reitter <david.reitter@gmail.com>
8527
ec7709ba
JB
8528 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8529 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8530 Fns_selection_exists_p, Fns_selection_owner_p.
8531
fdb55376
JR
85322009-06-03 Jason Rumney <jasonr@gnu.org>
8533
8534 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8535 available. (Bug#3379)
8536
05129fbe
KH
85372009-05-29 Kenichi Handa <handa@m17n.org>
8538
1ac9108a
SM
8539 * coding.c (get_translation_table):
8540 Check Venable_character_translation.
05129fbe 8541
ec7709ba 85422009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8543
ec7709ba
JB
8544 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8545 (x_make_frame_visible): Move frame to front rather than calling
15891144 8546 ns_raise_frame().
ec7709ba 8547 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8548 isn't key window.
ec7709ba 8549 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8550 drawRect may be called by NSView even if the frame is hidden.
8551
ec7709ba
JB
8552 * nsfns.m (Fx_create_frame): Follow other ports in
8553 determining visibility; default to t. Ensure async_visible is set.
15891144 8554
21f73755
EZ
85552009-05-23 Eli Zaretskii <eliz@gnu.org>
8556
8557 * dired.c (Ffile_attributes): Doc fix.
8558
34001e41
CY
85592009-05-22 Chong Yidong <cyd@stupidchicken.com>
8560
8561 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8562
46306a17
SM
85632009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8564
8565 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8566 and xfont_scratch_props.
8567 (syms_of_xfont): Do it here instead.
8568 (xfont_find_ccl_program): Delete, unused.
8569 (xfont_open): Delete unused var `i'.
8570
ef6e0694
KH
85712009-05-21 Kenichi Handa <handa@m17n.org>
8572
8573 * fontset.c (Qlatin): Don't make it static.
8574
46306a17
SM
8575 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8576 New functions.
ef6e0694
KH
8577 (xfont_scripts_cache, xfont_scratch_props): New variables.
8578 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8579 (xfont_list_pattern): Argument changed. Callers changed.
8580 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8581 (xfont_list): Don't reject a font spec with :script property.
8582 (xfont_has_char): Fix setting of encoding.
8583 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8584 xfont_scratch_props.
8585
85862009-05-19 Kenichi Handa <handa@m17n.org>
8587
46306a17 8588 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8589 Callers changed.
8590
85912009-05-18 Kenichi Handa <handa@m17n.org>
8592
8593 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8594
ac71ced7
SM
85952009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8596
8597 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8598 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8599
1c6d1051
YM
86002009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8601
8602 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8603 (x_delete_terminal): Dissociate resource database from display and
8604 then call XrmDestroyDatabase before closing display.
8605
9b9b779c
AR
86062009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8607
8608 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8609 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8610 whether selected frame is viable before raising it (based on patch
8611 by David Reitter), and improve commentary.
8612 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8613
cccd42d5
KH
86142009-05-15 Kenichi Handa <handa@m17n.org>
8615
8616 * font.c (Ffont_spec): Check arguments.
8617
337fbd17
CY
86182009-05-14 Chong Yidong <cyd@stupidchicken.com>
8619
8620 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8621 weight when testing attributes (Bug#3282).
8622
47a6002f
JD
86232009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8624
8625 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8626 what we expect to get in the next ConfigureNotify event.
8627
9cb363db
YM
8628 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8629 before Xft one (Bug#1696).
8630
b9126609
CY
86312009-05-07 David Reitter <david.reitter@gmail.com>
8632
8633 * nsfns.m (Fx_display_planes): Compute bitplanes using
8634 NSBitsPerPixelFromDepth (Bug#3207).
8635
27a69fd9
CY
86362009-05-10 Chong Yidong <cyd@stupidchicken.com>
8637
8638 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8639
00f37552
TTN
86402009-05-10 Ulrich Mueller <ulm@gentoo.org>
8641
8642 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8643
2d82a920
DR
86442009-05-07 David Reitter <david.reitter@gmail.com>
8645
ec7709ba
JB
8646 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8647 Respect mouse face background.
2d82a920 8648
46b0d52d
DR
86492009-05-07 David Reitter <david.reitter@gmail.com>
8650
ec7709ba
JB
8651 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8652 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8653 in ns_update_begin and ns_update_end.
8654
ce1b23bb
SM
86552009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8656
5996e1b7
SM
8657 * nsfns.m (ns_get_screen): Rewrite.
8658 Don't presume selected-frame is of type `ns'.
8659
ba98e3a0
SM
8660 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8661 all drivers.
8662
ce1b23bb
SM
8663 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8664
bcda200f
YM
86652009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8666
8667 * keyboard.h (add_user_signal): Fix typo in extern.
8668
8669 * lisp.h (add_user_signal): Remove extern.
8670
8671 * unexelf.c (unexec): Consider a section to precede the .bss section
8672 if its addresses overlap that of .bss.
8673 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8674 instead of dumping process.
8675
864660a2
SM
86762009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8677
8678 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8679
50da4e56
SM
86802009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8681
8682 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8683
51520a1a
DN
86842009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8685
8686 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8687 any statements.
8688
409ea3a1
AS
86892009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8690
59c4c60f
AS
8691 * process.c (read_process_output): Make sure the current buffer is
8692 always restored.
8693
409ea3a1
AS
8694 * coding.c (record_conversion_result): Don't modify
8695 Vlast_code_conversion_error for successful result.
8696 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8697
56f00ed2
KH
86982009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8699
8700 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8701 (load_charset_map): Remove unnecessary code.
56f00ed2 8702
4491c9d2
DR
87032009-04-30 David Reitter <david.reitter@gmail.com>
8704
35f5b128 8705 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8706 through f24.
8707
6970f632
CY
87082009-04-30 Chong Yidong <cyd@stupidchicken.com>
8709
8710 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8711
8712 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8713 face_at_buffer_position.
8714 (face_before_or_after_it_pos, get_next_display_element)
8715 (note_mouse_highlight): Update face_at_buffer_position call.
8716
8717 * term.c (term_mouse_highlight):
8718 * msdos.c (IT_note_mouse_highlight):
8719 * fontset.c (Finternal_char_font):
35f5b128 8720 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8721
8722 * dispextern.h (face_at_buffer_position): Update prototype.
8723
0c616f63
KH
87242009-04-30 Kenichi Handa <handa@m17n.org>
8725
35f5b128 8726 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8727
ad3aaf33
AS
87282009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8729
8730 * callproc.c (Fcall_process): Fix GC protection. Make sure
8731 current buffer is always restored.
8732
c3c963a0
YM
87332009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8734
8735 * atimer.c (init_atimer): Also clear stopped_atimers.
8736
8737 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8738
7e3386cb
YM
8739 * process.c (create_process): Clean up merger residues of
8740 2008-07-17 change.
8741
91f68422
CY
87422009-04-29 Ulrich Mueller <ulm@gentoo.org>
8743
8744 * lread.c (Vread_circle): New variable.
8745 (read1): Disable recursive read if Vread_circle is nil.
8746
24b34550
KH
87472009-04-29 Kenichi Handa <handa@m17n.org>
8748
8749 * fontset.h (set_default_ascii_font): Delete extern.
8750
8751 * fontset.c (set_default_ascii_font): Delete this unused function.
8752
8753 * frame.c (x_set_font): When ARG is a font-object, check if the
8754 font-object matches with the ASCII font-spec of the frame's
9c358bda 8755 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8756
77bf07e1
AS
87572009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8758
8759 * fns.c (Flocale_info): Protect vector from GC during decoding.
8760
8761 * process.c (Fstart_process): Protect argv strings from GC during
8762 encoding.
8763
2c55aacf
AS
87642009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8765
8766 * sysdep.c: Include <ctype.h>.
8767
b892d3c9
DR
87682009-04-27 David Reitter <david.reitter@gmail.com>
8769
35f5b128 8770 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8771 Remove commented-out code.
8772
9d0644c4
JB
87732009-04-26 Johan Bockgård <bojohan@gnu.org>
8774
8775 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8776
b7053016
JR
87772009-04-25 Jason Rumney <jasonr@gnu.org>
8778
8779 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8780
4e8231f3
YM
87812009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8782
8783 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8784 Swap bytes in short integer if fringe bitmap width > 8.
8785
493dcf2c
KH
87862009-04-23 Kenichi Handa <handa@m17n.org>
8787
8788 * xfaces.c (Fx_list_fonts): If a font size is specified in
8789 PATTERN, set it in returned scalable fonts.
8790
401e9e57
CY
87912009-04-22 Chong Yidong <cyd@stupidchicken.com>
8792
708e05dc
CY
8793 * keyboard.c (Fset_input_meta_mode): Doc fix.
8794
8795 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8796
1ac9108a 8797 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8798
8799 * coding.c (Fterminal_coding_system): Doc fix.
8800
8801 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8802 (Fx_display_pixel_height, Fx_display_planes)
8803 (Fx_display_color_cells, Fx_server_max_request_size)
8804 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8805 (Fx_display_mm_height, Fx_display_mm_width)
8806 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8807 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8808 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8809 (check_x_display_info): Handle terminal objects instead of
8810 terminal ids.
8811
401e9e57
CY
8812 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8813 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8814 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8815 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8816
df80c7f0
KH
88172009-04-21 Kenichi Handa <handa@m17n.org>
8818
5a8f12af 8819 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8820 (font_score): Check AVGWIDTH too.
908567ef 8821
df80c7f0
KH
8822 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8823 worst case.
1ac9108a
SM
8824 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8825 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8826
705af33f
JR
88272009-04-19 Jason Rumney <jasonr@gnu.org>
8828
8829 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8830 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8831
8832 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8833 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8834 get_phys_cursor_geometry.
8835
b71ac3dd 8836 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8837 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8838 using get_phys_cursor_geometry.
8839
8840 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8841 correctly calculated.
8842
dc2933eb
JD
88432009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8844
1ac9108a
SM
8845 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8846 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8847 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8848 is deprecated.
8849
973e7849
AS
88502009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8851
8852 * font.c (font_put_frame_data): Use xfree instead of free.
8853
314d66f4
JB
88542009-04-17 Juanma Barranquero <lekktu@gmail.com>
8855
8856 * w32font.c (Qja, Qko): Remove declarations.
8857 (syms_of_w32font): Don't DEFSYM them.
8858
cf702558
CY
88592009-04-17 Chong Yidong <cyd@stupidchicken.com>
8860
8861 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8862
8863 * font.h (Qja, Qko): Extern them.
8864
8865 * ftfont.c (Qja, Qko): Remove declarations.
8866
8867 * xfont.c (Qja, Qko): Remove declarations.
8868
b50504f5
KH
88692009-04-17 Kenichi Handa <handa@m17n.org>
8870
bde25748
KH
8871 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8872 string from a vector to handle Latin-1 characters correctly.
8873
b50504f5
KH
8874 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8875 entity even if the cache hits.
8876
f4646fff
AS
88772009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8878
8879 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8880 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8881
e7deaab0
AS
8882 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8883 * lisp.h: Adjust prototypes.
8884
0a0e7d49
CY
88852009-04-16 Chong Yidong <cyd@stupidchicken.com>
8886
8887 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8888 change (Bug#3003).
8889
3c908a57
KH
88902009-04-16 Kenichi Handa <handa@m17n.org>
8891
1ac9108a 8892 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8893
8894 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8895 adstyle.
8896
8897 * ftfont.c (Qja, Qko): Don't make them static.
8898 (enum ftfont_cache_for): New enum.
8899 (fc_charset_table): Undo the previous change.
8900 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8901 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8902 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8903 non-scarable font, try to get AVERAGE_WIDTH.
8904 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8905 Change ft_face_cache from a list of a hash-table. Don't check
8906 `ja' and `ko' adstyle here.
8907 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8908 FTFONT_CACHE_FOR_CHARET.
8909 (ftfont_get_charset): Undo the previous change.
1ac9108a 8910 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
8911 (ftfont_close): Likewise.
8912 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
8913
8914 * font.c (font_sort_entites): Change the meaning of the arg
8915 BEST-ONLY. Don't optimize for VEC of lenght 1.
8916 (font_select_entity): Just return the value of font_sort_entites.
8917
8918 * xfaces.c (merge_face_vectors): Reflect font properties in
8919 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
8920 font_clear_prop if a face attribute doesn't change.
8921
3c908a57
KH
8922 * charset.h (charset_ksc5601): Extern it.
8923
8924 * charset.c (charset_ksc5601): New variable.
8925 (Fdefine_charset_internal): Set charset_ksc5601.
8926 (init_charset_once): Initialize charset_ksc5601 to -1.
8927
d65859c3
DN
89282009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
8929
8930 * fileio.c (history_delete_duplicates): Remove unused declaration.
8931
8932 * callint.c (history_delete_duplicates): New declaration.
8933 (Fcall_interactively): Remove command history duplicates when
8934 history_delete_duplicates is true.
8935
3ba010e5
EZ
89362009-04-14 Eli Zaretskii <eliz@gnu.org>
8937
8938 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
8939
06f19b91
KH
89402009-04-14 Kenichi Handa <handa@m17n.org>
8941
8942 * font.c (Ffont_info): Fix docstring. Fix the second element of
8943 the returned value (bug#2949).
8944
2cce8bfc
CY
89452009-04-14 Chong Yidong <cyd@stupidchicken.com>
8946
8947 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
8948
d156542d
KH
89492009-04-14 Kenichi Handa <handa@m17n.org>
8950
8951 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
8952 encoding charset is ascii_compatible.
8953
8954 * charset.c (Fdefine_charset_internal): Make charset
8955 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
8956 code_offset is 0, and covers all ASCII characters.
8957
86fa089e
SM
89582009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
8959
8960 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
8961 (ns_string_to_pasteboard_internal):
8962 * nsmenu.m (process_dialog):
8963 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
8964 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
8965 * lisp.h (Fx_load_color_file): Declare.
8966
a8a3728b
KH
89672009-04-13 Kenichi Handa <handa@m17n.org>
8968
1ac9108a 8969 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
8970 (font_select_entity): Suppress the code to optimize for the same
8971 kind of fonts.
8972 (font_load_for_lface): Get a font that supports at least ASCII
8973 characters.
8974
8975 * ftfont.c (Qja, Qko): New variables.
8976 (fc_charset_table): Delete uniquifier data for iso8859-1.
8977 (ftfont_get_latin1_charset): New function.
8978 (get_adstyle_property): New function.
8979 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
8980 bitmap fonts.
8981 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
8982 Delete iso-8859-1 range from the charset of fonts whose adstyle is
8983 `ko' or `ja'.
8984 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 8985 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
8986 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
8987 property.
8988 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
8989 (syms_of_ftfont): DEFSYM Qja and Qko.
8990
483670b5
KH
89912009-04-09 Kenichi Handa <handa@m17n.org>
8992
12b55765
KH
8993 * charset.c (map_charset_chars): For a charset of `superset'
8994 method, fix calculation of code range.
8995
483670b5
KH
8996 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
8997 from the list of extra properties.
8998 (font_clear_prop): Be sure to delete `:name' font property.
8999
57d3b93b
KH
90002009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9001
b4b2c2ca
YM
9002 * dispnew.c (redraw_overlapping_rows): Fix detection of
9003 overlapping for topmost and bottommost rows.
9004
1ac9108a 9005 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9006
472c3609
JR
90072009-04-06 Jason Rumney <jasonr@gnu.org>
9008
9009 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9010
ab193662
KH
90112009-04-06 Kenichi Handa <handa@m17n.org>
9012
9013 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9014
9015 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9016
0c26f026
KH
90172009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9018
9019 * ftfont.c (ftfont_open): Fix checking of the return value of
9020 FT_Load_Char. Fix setting font->underline_thickness.
9021
e173bbce
CY
90222009-04-04 Chong Yidong <cyd@stupidchicken.com>
9023
9024 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9025 (Fterminal_parameters, Fterminal_parameter)
9026 (Fset_terminal_parameter): In doc string, refer to terminal
9027 objects rather than terminal ids.
9028
693a2698
EZ
90292009-04-04 Eli Zaretskii <eliz@gnu.org>
9030
9031 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9032 ret_lim_data. (Bug#2867)
9033
d5221487
CY
90342009-04-03 Chong Yidong <cyd@stupidchicken.com>
9035
9036 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9037 so they don't get wider than the window, matching 2006-01-23
9038 change to the partner function in xdisp.c (Bug#2800).
9039
223509a3
KH
90402009-04-03 Kenichi Handa <handa@m17n.org>
9041
9042 * print.c (print_object): Make each lowest sub_char_table start a
9043 new line (Bug#2866).
9044
74fcd0b1
KH
90452009-04-02 Kenichi Handa <handa@m17n.org>
9046
9047 * fontset.c (fontset_font): Record no-font when a fontset
9048 explicitly tells not to try another font-specs.
9049
c542407d
SM
90502009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9051
9052 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9053
e3869731
KH
90542009-03-30 Kenichi Handa <handa@m17n.org>
9055
d8d2f142
KH
9056 * fontset.c (fontset_from_font): Specify only registry in a
9057 font-spec for all characters supported by that registry.
9058
e3869731
KH
9059 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9060 even if HAVE_M17N_FLT is not defined.
9061
5da5f805
CY
90622009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9063
9064 * ftfont.c: Conditionalize prototyping and use of
9065 ftfont_variation_glyphs.
9066
ab226c50
SM
90672009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9068
9628fed7
SM
9069 * frame.c (delete_frame): Work around compiler bug.
9070
9071 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9072 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9073 Some more EMACS_INT.
9074 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9075
9076 * xdisp.c (dump_glyph): Fix typo.
9077
ae19ba7c
SM
9078 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9079 (adjust_markers_gap_motion, adjust_markers_for_delete)
9080 (adjust_markers_for_insert, adjust_point)
9081 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9082 (make_gap, copy_text, count_size_as_multibyte, insert)
9083 (insert_and_inherit, insert_before_markers)
9084 (insert_before_markers_and_inherit, insert_1)
9085 (count_combining_before, count_combining_after, insert_1_both)
9086 (insert_from_string, insert_from_string_before_markers)
9087 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9088 (insert_from_buffer_1, adjust_after_replace)
9089 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9090 (replace_range_2, del_range, del_range_1, del_range_byte)
9091 (del_range_both, del_range_2, modify_region)
9092 (prepare_to_modify_buffer, signal_before_change)
9093 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9094 for buffer positions and sizes.
9095 * lisp.h: Adjust prototypes accordingly.
9096
9097 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9098 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9099 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9100
ab226c50
SM
9101 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9102
46dfb8fb
JD
91032009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9104
9105 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9106 lines and columns so we keep the same pixel height and width.
9107
9108 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9109 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9110 (x_handle_net_wm_state): New function to update frame parameter
9111 fullscreen.
9112 (x_term_init): Initialize atoms for _NET_WM_STATE.
9113
9114 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9115
d347e494
SM
91162009-03-27 Kevin Ryde <user42@zip.com.au>
9117
9118 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9119 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9120 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9121 (Fgpm_mouse_stop): Pass that new parameter.
9122 * termhooks.h (close_gpm): Adjust prototype.
9123
84db11d6
SM
91242009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9125
c95a5008
SM
9126 * lisp.h (Fx_focus_frame): Declare.
9127
84db11d6
SM
9128 * callint.c (Fcall_interactively): For '^' just delegate the work to
9129 handle-shift-selection.
9130 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9131
0a1958d6
CY
91322009-03-24 Chong Yidong <cyd@stupidchicken.com>
9133
0bfdff23
CY
9134 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9135
0a1958d6
CY
9136 * data.c (Qinteractive_form): New variable.
9137 (Finteractive_form): Use it.
9138
9139 * eval.c (Fcommandp): Use Qinteractive_form.
9140
58aec0d6
JR
91412009-03-24 Jason Rumney <jasonr@gnu.org>
9142
9143 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9144 Calculate total size precisely. Decode environment variables
9145 before substituting. (Bug#38)
9146
553dd618
KH
91472009-03-24 Kenichi Handa <handa@m17n.org>
9148
9149 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9150 encoding (Bug#2722).
553dd618 9151
c39ea606
JD
91522009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9153
9154 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9155 that gdpy is set.
9156
bc9b2b5e
AM
91572009-03-22 Alan Mackenzie <acm@muc.de>
9158
9159 * callint.c (Finteractive): Clarify the doc string - even
9160 promptless elements need \n separators.
9161
9f995a76
JR
91622009-03-22 Jason Rumney <jasonr@gnu.org>
9163
9164 * w32term.c (syms_of_w32term): Doc fix for
9165 x-use-underline-position-properties.
9166
22749e9a
EZ
91672009-03-21 Eli Zaretskii <eliz@gnu.org>
9168
9169 * w32.c (getpwuid): Change argument type to unsigned.
9170 (struct w32_id): Change type of `rid' member to unsigned.
9171 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9172 argument ID to unsigned. All callers changed.
9173 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9174
e00553bf
EZ
91752009-03-20 Eli Zaretskii <eliz@gnu.org>
9176
9177 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9178 negative, produce a float value.
9179
9180 * dired.c (make_uid, make_gid): New functions.
9181 (Ffile_attributes): Use them to avoid negative UID and GID.
9182
f761d6b6
JB
91832009-03-20 Juanma Barranquero <lekktu@gmail.com>
9184
9185 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9186 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9187 Fix typos in docstrings.
9188
d507f8d7
KH
91892009-03-19 Kenichi Handa <handa@m17n.org>
9190
9191 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9192 changed, use font_load_for_lface to get a new font object.
9193 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9194
9195 * frame.c (x_set_font): Handle the case that ARG is a cons.
9196
c68845e0
GM
91972009-03-19 Glenn Morris <rgm@gnu.org>
9198
9199 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9200
bfa49dd1
CY
92012009-03-19 Chong Yidong <cyd@stupidchicken.com>
9202
9203 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9204
8458d4c1
KH
92052009-03-19 Kenichi Handa <handa@m17n.org>
9206
9207 * charset.c (load_charset_map_from_file): When a mapfile can't be
9208 loaded, signal an error.
9209
78e7d1fe
EZ
92102009-03-18 Eli Zaretskii <eliz@gnu.org>
9211
9212 * dired.c (Ffile_attributes): Make sure UID and GID are always
9213 positive, even if the value is too large for a positive EMACS_INT.
9214 Doc fix.
9215
9216 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9217
5da9fdfa
YM
92182009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9219
9220 * xmenu.c (xdialog_show): Move Fredisplay call ...
9221 (Fx_popup_dialog): ... here.
9222
7519c40d
SM
92232009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9224
9225 * dired.c (file_name_completion): Disable the first optimization just
9226 installed, since it is not implemented correctly.
9227
2cd298e2
SM
92282009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9229
9230 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9231 only if the entry can affect bestmatch.
2cd298e2
SM
9232 Stop the search early, as Ftry_completion already does.
9233
48d37adf
CY
92342009-03-17 Chong Yidong <cyd@stupidchicken.com>
9235
e10c9c93 9236 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9237
9286b16a
CY
92382009-03-15 Chong Yidong <cyd@stupidchicken.com>
9239
9240 * keyboard.c (parse_menu_item): Don't display remappings as menu
9241 equivalent bindings (Bug#788).
9242
f7b146dc
JR
92432009-03-15 Jason Rumney <jasonr@gnu.org>
9244
9245 * w32term.h (WM_EMACS_PAINT): New message.
9246 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9247 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9248 before passing to lisp thread. (Bug#950)
9249
f761d6b6 92502009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9251
d93f9575
CY
9252 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9253 variable as it was never reset.
9254 (ns_term_init): Remove initialization of Lisp-settable defaults
9255 and ns_expand_space.
9256 (-setPanelFromDefaultValues): Remove ns_expand_space.
9257 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9258 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9259 i.e. no additional spacing, similar to Carbon port.
9260
d93f9575
CY
9261 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9262 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9263
305018ec
JD
92642009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9265
9266 * sound.c (alsa_configure): Remove call to deprecated
9267 snd_pcm_sw_params_set_xfer_align.
9268
f761d6b6 92692009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9270
9271 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9272 after clicking in a detached tool bar.
9273 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9274
46e722a9
SM
92752009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9276
348db3dd
SM
9277 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9278 int/Lisp_Object mixup).
46e722a9 9279
a3d16f39
KH
92802009-03-13 Kenichi Handa <handa@m17n.org>
9281
9282 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9283 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9284 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9285 (set_fontset_font): Change ARG to a vector. Handle range_list in
9286 ARG correctly.
9287 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9288 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9289 the above change.
9290 (fontset_from_font): Fix previous change.
fe24f56a 9291 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9292 entry. If FONTSET is the default fontset, don't set the extra
9293 slot of the returning char-table.
9294
b066e6b6
JB
92952009-03-12 Juanma Barranquero <lekktu@gmail.com>
9296
9297 * nsfns.m (Fx_close_connection): Doc fix.
9298 (Fns_do_applescript): Reflow docstring.
9299 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9300 (Fx_display_pixel_width, Fx_display_pixel_height)
9301 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9302 Fix typos in docstrings.
9303 (Fns_set_alpha): Fix typos in error messages.
9304
d472514e 93052009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9306
d472514e 9307 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9308 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9309 were used for such events.
9310
d472514e
JB
9311 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9312 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9313
d472514e 9314 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9315 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9316
fb930676
KH
93172009-03-11 Kenichi Handa <handa@m17n.org>
9318
ff85581a
KH
9319 * font.h (font_open_by_spec): Extern it.
9320
c50b7e98
KH
9321 * font.c (font_open_by_spec): New function.
9322 (font_open_by_name): Use font_open_by_spec.
9323
fb930676
KH
9324 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9325 fontset of the frame.
9326
9327 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9328 modify the default font of frames that use this fontset.
9329 (num_auto_fontsets): New variable.
9330 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9331 name. Be sure to set FONTSET_ASCII to the correct font name.
9332 (update_auto_fontset_alist): New function.
9333
df4e8455
JB
93342009-03-11 Juanma Barranquero <lekktu@gmail.com>
9335
9336 * makefile.w32-in: Update dependencies.
9337
0a375797
AR
93382009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9339
9340 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9341
61313fa3
SM
93422009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9343
9344 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9345
b55103fb
CY
93462009-03-10 Chong Yidong <cyd@stupidchicken.com>
9347
9348 * lread.c (Feval_buffer): Doc fix.
9349
dde2559c
KH
93502009-03-09 Kenichi Handa <handa@m17n.org>
9351
9352 * charset.c (Qfile_name_handler_alist): Extern it.
9353 (load_charset_map_from_file): Temporarily bind
9354 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9355
df4e8455 93562009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9357
47f588bb
GM
9358 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9359 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9360
4ddf94bd
AR
93612009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9362
4c9bdfc2
AR
9363 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9364 (x_set_window_size): Change back to calculated method of setting
9365 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9366 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9367 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9368
fe41ae9e
AR
9369 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9370
4c9bdfc2
AR
9371 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9372 accelerator in parens under GNUstep.
9373
825d0875
KH
93742009-03-06 Kenichi Handa <handa@m17n.org>
9375
9376 These changes are to detect incorrect composition sequence without
f3b3be74 9377 looking ahead the source. (Bug#2370)
825d0875
KH
9378
9379 * coding.h: Include "composite.h".
9380 (enum compisition_state): New enum.
9381 (struct compisition_status): New struct.
9382 (struct iso_2022_spec): New member cmp_status.
9383 (struct emacs_mule_spec): New struct.
9384 (struct coding_system): New members ctext_extended_segment_len and
9385 embedded_utf_8. Change the union member
9386 spec.emacs_mule_full_support to spec.emacs_mule.
9387
9388 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9389 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9390 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9391 (ADD_COMPOSITION_DATA): New arg nbytes.
9392 (emacs_mule_char): New arg cmp_status.
9393 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9394 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9395 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9396 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9397 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9398 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9399 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9400 (EMACS_MULE_COMPOSITION_END): New macro.
9401 (emacs_mule_finish_composition): New function.
9402 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9403 (decode_coding_emacs_mule): Avoid long looking ahead while
9404 handling composition.
9405 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9406 (ENCODE_COMPOSITION_RULE): New macro.
9407 (finish_composition): New function.
9408 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9409 (DECODE_COMPOSITION_START): New implementation.
9410 (DECODE_COMPOSITION_END): Likewise.
9411 (STORE_COMPOSITION_RULE): New macro.
9412 (decode_coding_iso_2022): Avoid long looking ahead while handling
9413 composition, CTEXT extended segment, and embedded UTF-8.
9414 (setup_coding_system): For a coding of type iso-2022, reset
9415 CODING_ISO_EXTSEGMENT_LEN (coding) and
9416 CODING_ISO_EMBEDDED_UTF_8 (coding).
9417 (get_translation): Delete arguments last_block, from_nchars,
9418 to_nchars. Callers changed.
9419 (produce_chars): Don't modify charbuf. Adjusted for the change of
9420 get_translation.
98a326f7 9421 (produce_composition): Adjust for the new annotation sequence.
825d0875 9422 (handle_composition_annotation): Likewise.
98a326f7 9423 (consume_chars): Adjust for the change of get_translation.
825d0875 9424
ccbc4452
AR
94252009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9426
4ddf94bd 9427 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9428
988a7ddb
KH
94292009-03-05 Kenichi Handa <handa@m17n.org>
9430
9431 * font.c (font_select_entity): New function.
9432 (font_find_for_lface): Use font_select_entity to select a font.
9433
9434 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9435 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9436 font with C restriction.
9437
98a326f7 94382009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9439
be1bce46 9440 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9441
10ea2b82
JR
94422009-03-04 Jason Rumney <jasonr@gnu.org>
9443
2c93b248 9444 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9445 characters that have already been read. (Bug#2569)
2c93b248 9446
10ea2b82
JR
9447 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9448 Log an error message if check_image_size failed.
9449 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9450 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9451
71a0c011
EZ
94522009-03-02 Eli Zaretskii <eliz@gnu.org>
9453
9454 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9455 when decoding process output.
9456
2f63bba8
RS
94572009-03-01 Richard M Stallman <rms@gnu.org>
9458
9459 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9460
9461 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9462
0a9564cb
EZ
94632009-02-28 Eli Zaretskii <eliz@gnu.org>
9464
9465 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9466 (decode_coding_emacs_mule, decode_coding_iso_2022)
9467 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9468 (decode_coding_raw_text, decode_coding_charset)
9469 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9470 Honor inhibit-eol-conversion. (Bug #2186)
9471
449148b3
JR
94722009-02-28 Jason Rumney <jasonr@gnu.org>
9473
9474 * coding.c (detect_coding_charset): If not checking latin extra,
9475 fail on characters between 0x80 and 0xA0. (Bug#2354)
9476
a4aee864
EZ
94772009-02-28 Eli Zaretskii <eliz@gnu.org>
9478
9479 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9480 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9481
d88bee5a
GM
94822009-02-27 Glenn Morris <rgm@gnu.org>
9483
9484 * callint.c (Finteractive): Doc fix.
9485
a808f22d
KH
94862009-02-27 Kenichi Handa <handa@m17n.org>
9487
9488 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9489
caf8d60c
CY
94902009-02-27 Chong Yidong <cyd@stupidchicken.com>
9491
9492 * font.c (font_style_to_value): Set value for unknown symbols to
9493 100 instead of 255.
b61137ea
CY
9494 (weight_table, slant_table, width_table): Treat "unspecified" as
9495 the default value.
caf8d60c 9496
1a0de25c
JB
94972009-02-26 Juanma Barranquero <lekktu@gmail.com>
9498
9499 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9500
8fc45744
JB
95012009-02-25 Juanma Barranquero <lekktu@gmail.com>
9502
107bd7d1
JB
9503 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9504 error as soon as a recursive load is detected.
8fc45744 9505
f097e223
AR
95062009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9507
9508 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9509 before caching.
9510
8810a12f
KH
95112009-02-24 Kenichi Handa <handa@m17n.org>
9512
9513 * fontset.c (fontset_find_font): Fix the condition for checking
9514 unavailable font.
9515
2c7d1565
GM
95162009-02-24 Glenn Morris <rgm@gnu.org>
9517
9518 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9519 whitespace that confuses documentation.
9520
a20878b6
MB
95212009-02-23 Miles Bader <miles@gnu.org>
9522
9523 * process.c (Flist_system_processes, Fprocess_attributes)
9524 (syms_of_process): Rename `system-process-attributes' to
9525 `process-attributes'.
9526
b3b58c01
AS
95272009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9528
1b3b981b
AS
9529 * coding.h (struct coding_system): Make safe_charsets a pointer to
9530 unsigned char.
9531 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9532 being 255.
9533 (SAFE_CHARSET_P): Likewise.
9534 (setup_iso_safe_charsets): Properly setup safe_charsets.
9535 (Fdefine_coding_system_internal): Likewise.
9536 (setup_coding_system): Likewise. Remove unneeded casts.
9537 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9538 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9539 unneeded casts.
9540
b3b58c01
AS
9541 * insdel.c (del_range_2): Don't modify gap contents when called
9542 from decode_coding_object. (Bug#1809)
9543
0b6f228c
CY
95442009-02-21 Chong Yidong <cyd@stupidchicken.com>
9545
9546 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9547 Qfont_object.
9548 (Ftype_of): Recognize font objects.
9549
9550 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9551
9552 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9553 moved to data.c.
9554
52f8870b
AR
95552009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9556
9557 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9558 async_iconified. Based on a patch by Christian Lynbech
9559 <christian.lynbech@tieto.com>.
9560 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9561
7087d5e9
GM
95622009-02-20 Glenn Morris <rgm@gnu.org>
9563
9564 * syntax.c (Fskip_chars_forward): Fix doc typo.
9565
41d2ceef
CY
95662009-02-20 Chong Yidong <cyd@stupidchicken.com>
9567
9568 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9569
1a3b7ca6
CY
95702009-02-19 Chong Yidong <cyd@stupidchicken.com>
9571
9572 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9573
73cce38d
KH
95742009-02-19 Kenichi Handa <handa@m17n.org>
9575
9576 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9577 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9578
a51092ee
DN
95792009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9580
9581 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9582
c423ecca
KH
95832009-02-18 Kenichi Handa <handa@m17n.org>
9584
9585 * font.c (font_check_otf_features): Fix handling of `nil' element.
9586 (Ffont_spec): Describe :lang and :otf in the docstring.
9587
4c1958f4
AS
95882009-02-16 Andreas Schwab <schwab@suse.de>
9589
9590 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9591 string.
9592
5704f39a
KH
95932009-02-16 Kenichi Handa <handa@m17n.org>
9594
9595 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9596 (Bug#1723)
5704f39a 9597
8f0085aa
CY
95982009-02-14 Chong Yidong <cyd@stupidchicken.com>
9599
a057d86a 9600 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9601
9602 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9603 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9604
aff01dd9
EZ
96052009-02-14 Eli Zaretskii <eliz@gnu.org>
9606
9607 * msdos.c (MAX_SCREEN_BUF): New macro.
9608 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9609 Encode the entire run of glyphs sharing the same face, instead of
9610 doing that one glyph at a time (fixes a bug with displaying
9611 double-size characters).
9612
ba301db3
AR
96132009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9614
9615 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9616
9617 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9618 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9619 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9620
9621 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9622 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9623
51d861de
SM
96242009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9625
ac146f82 9626 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9627 invisible areas.
9628
7fed8996
JR
96292009-02-12 Jason Rumney <jasonr@gnu.org>
9630
631ea4fb
JR
9631 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9632 (add_font_entity_to_list): Call check_face_name even when family
9633 is unspecified.
9634
cb4a3e42
JR
9635 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9636 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9637 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9638
7fed8996 9639 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9640 raster fonts. (Bug#2219)
7fed8996 9641
895416e3
KH
96422009-02-12 Kenichi Handa <handa@m17n.org>
9643
9644 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9645 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9646 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9647 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9648 (find_automatic_composition): While looking forward and backward,
9649 check static composition. Fix where to stop looking forward.
9650 (composition_adjust_point): Fix checking of static composition.
9651 (Fcomposition_get_gstring): Pay attention to
1dacf998 9652 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9653
9654 * lisp.h (fast_looking_at): Extern it.
9655
9656 * search.c (fast_looking_at): New function.
9657
51d861de 9658 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9659 <struct glyph>.u.cmp.to.
9660 (append_composite_glyph): Likewise.
9661
51d861de 9662 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9663 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9664 composition.
51d861de 9665 (append_composite_glyph): Adjust for the change of
895416e3
KH
9666 <strcut glyph>.u.cmp.to.
9667
8510724d
JB
96682009-02-11 Juanma Barranquero <lekktu@gmail.com>
9669
9670 * casetab.c (init_casetab_once):
9671 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9672 * font.c (font_update_lface):
9673 * fontset.c (Fnew_fontset):
9674 * ftfont.c (ftfont_drive_otf):
9675 * xfont.c (xfont_open):
9676 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9677
294fa707
SM
96782009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9679
9680 * fileio.c (Fwrite_region): !NILP -> CONSP.
9681
b5bfebec
AS
96822009-02-10 Andreas Schwab <schwab@suse.de>
9683
9684 * process.c (send_process): Properly relocate pointer into data
adab88bd 9685 when using encoded data. (Bug#2272)
b5bfebec 9686
cb84a2be
KH
96872009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9688
9689 * coding.c (detect_coding_charset): Fix previous change.
9690
89e09428
JR
96912009-02-08 Jason Rumney <jasonr@gnu.org>
9692
9693 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9694 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9695
4470a277
AS
96962009-02-07 Andreas Schwab <schwab@suse.de>
9697
9698 * unexelf.c (unexec): Fix error message.
9699
3175b12a
AR
97002009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9701
9702 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9703 when modal window is active. (Bug #2152)
3175b12a
AR
9704 (applicationShouldTerminate:): Remove now-unneeded while loop
9705 around NSRunAlertPanel.
9706
9707 * nsmenu.m (popupSession): New file-global variable.
9708 (pop_down_menu): End the popupSession before closing dialog.
9709 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9710 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9711 don't query NSApp for events (just sleep instead).
9712
8434d0b8
EZ
97132009-02-07 Eli Zaretskii <eliz@gnu.org>
9714
51d861de
SM
9715 * coding.c (syms_of_coding) <translation-table-for-input>:
9716 Modify doc string to discourage use for character code unification.
8434d0b8 9717
aa82edfd
CY
97182009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9719
9720 * atimer.c (run_timers): Update pending_atimers.
9721
2d283c7c
CY
97222009-02-06 Chong Yidong <cyd@stupidchicken.com>
9723
eb306cab
CY
9724 * image.c (svg_load_image): Fix last change.
9725
2d283c7c
CY
9726 * xfns.c (Fx_create_frame): Signal an error if no font is
9727 found (Bug#2147).
9728
4d8e170e
JB
97292009-02-05 Juanma Barranquero <lekktu@gmail.com>
9730
9731 * character.c (syms_of_character) <script-representative-chars>:
9732 Fix typo in docstring.
9733
c96169a0
AR
97342009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9735
9736 * nsmenu.m (pop_down_menu): New function.
9737 (ns_popup_dialog): Call it on unwind.
9738 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9739 call timer_check() (Bug#2154).
9740 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9741 handling_signal is set.
9742 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9743
31fd7c5c 9744 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9745
9746 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9747
9748 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9749
51d861de
SM
9750 * keyboard.c (poll_for_input_1, handle_async_input):
9751 Set handling_signal under HAVE_NS.
c96169a0 9752
aacd8ba1
GM
97532009-02-04 Glenn Morris <rgm@gnu.org>
9754
9755 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9756
4cb75c4b
KH
97572009-02-04 Kenichi Handa <handa@m17n.org>
9758
9759 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9760
9761 * charset.c (Fchar_charset): New optional arg restriction.
9762
9763 * coding.h (coding_system_charset_list): Extern it.
9764
9765 * coding.c (coding_system_charset_list): New function.
9766
9767 * composite.c: Include coding.h and termhooks.h.
9768 (composition_gstring_p): Fix for the terminal case.
9769 (composition_gstring_width): Likewise.
9770 (fill_gstring_body): Likewise.
9771 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9772 the frame.
9773 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9774 is within a composition.
867d4bb3 9775 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9776
9777 * term.c (encode_terminal_code): Fix handling of composition.
9778 (produce_composite_glyph): For static composition, get pixel_width
9779 from struct composition.
9780
826ba17e
AS
97812009-02-02 Andreas Schwab <schwab@suse.de>
9782
9783 * unexelf.c (unexec): Handle unaligned bss offset.
9784
8ad093db
AR
97852009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9786
9787 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9788 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9789
8ad093db
AR
9790 * keyboard.c (handle_interrupt): Don't call
9791 quit_throw_to_read_char() under NS.
d0a76a6e 9792
8ad093db
AR
9793 * blockinput.h: Remove NS-specific code.
9794
4d18a7a2
DN
97952009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9796
db878925
DN
9797 * dispnew.c (window_change_signal): Don't try to get the size of a
9798 suspended tty frame.
9799 * term.c (Fresume_tty): Resize if the size has changed while the
9800 tty was suspended.
9801
4d18a7a2
DN
9802 * alloc.c (mark_stack): Properly conditionalize previous change.
9803
8984df7c
JB
98042009-01-30 Juanma Barranquero <lekktu@gmail.com>
9805
9806 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9807 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9808 Remove; this code is not used on Windows.
9809
75f4f1ac
EZ
98102009-01-30 Eli Zaretskii <eliz@gnu.org>
9811
9812 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9813 EOLs that also has stray ^M characters.
9814
07a1e794
JB
98152009-01-30 Juanma Barranquero <lekktu@gmail.com>
9816
9817 * atimer.c (run_timers, alarm_signal_handler):
9818 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9819 * w32inevt.c (w32_console_read_socket):
9820 * w32term.c (w32_read_socket):
9821 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9822
a8b11cc9
CY
98232009-01-30 Chong Yidong <cyd@stupidchicken.com>
9824
9825 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9826 Initialize it as a relative filename pattern.
9827 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9828 (Fcall_process_region): Simplify temp file creation using
9829 temporary-file-directory.
9830
c279587b
EZ
98312009-01-29 Eli Zaretskii <eliz@gnu.org>
9832
9833 * msdos.c: Rename pending_signals to msdos_pending_signals.
9834 (sig_suspender, sigprocmask): Adjust.
9835
a8fe3242
CY
98362009-01-29 Chong Yidong <cyd@stupidchicken.com>
9837
9838 * keyboard.c (pending_signals): New var.
9839 (poll_for_input, input_available_signal, init_keyboard): Set it.
9840 (process_pending_signals): New function.
9841
9842 * lisp.h (QUIT): Check pending_signals instead of
9843 interrupt_input_pending. Use process_pending_signals.
9844
51d861de 9845 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9846
51d861de 9847 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9848
9849 * sysdep.c (emacs_write): Use process_pending_signals.
9850
9851 * xterm.c (XTread_socket): Update pending_signals.
9852
9853 * w32term.c (w32_read_socket): Update pending_signals.
9854
9855 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9856
6570a1c4
KH
98572009-01-29 Kenichi Handa <handa@m17n.org>
9858
9859 * xftfont.c (xftfont_has_char): New function.
9860 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9861
d72a4afa
AR
98622009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9863
9864 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9865 under GNUstep.
9866 (ns_query_color): New declaration.
9867
9868 * nsterm.m (ns_confirm_quit): New variable.
9869 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9870 (EmacsApp-applicationShouldTerminate:): Use it.
9871 (EmacsPrefsController): Let user set it.
9872 (ns_query_color): New function.
9873 (ns_defined_color): Use it.
9874 (ns_initialize): Drop.
9875 (ns_term_init): Add two lines from ns_initialize(), and set
9876 input_interrupt_mode to nil.
9877
9878 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9879 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9880
9fe78804
KH
98812009-01-28 Kenichi Handa <handa@m17n.org>
9882
9883 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9884 (fontset_get_font_group): Remember that no font-group is specified
9885 for C.
9fe78804 9886
fa57de36
CY
98872009-01-27 Chong Yidong <cyd@stupidchicken.com>
9888
930600e9
CY
9889 * fns.c (concat): Check for string overflow (bug#1787).
9890
fa57de36
CY
9891 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9892 Quadruple undo limits (bug#1501).
9893
7179ce7b
KH
98942009-01-27 Kenichi Handa <handa@m17n.org>
9895
9896 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9897 directly use GT_Get_Char_index.
9898
9899 * xftfont.c (struct xftfont_info): New member `index'.
9900
9901 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9902 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9903
5be8fcc0
CY
99042009-01-26 Kenichi Handa <handa@m17n.org>
9905
9906 * fontset.c (fontset_find_font): Fix handling of non-cons return
9907 value of fontset_get_font_group.
9908 (fontset_font): Revert last change.
9909
19ae3e61
JR
99102009-01-26 Jason Rumney <jasonr@gnu.org>
9911
9912 * w32font.c (w32font_list_internal): Return quickly if registry is
9913 unknown. Simplify final return.
9914 (add_font_entity_to_list): Break complex logic down into more
9915 manageable chunks. Move unknown registry check to
9916 w32font_list_internal.
9917
8612b71a
AR
99182009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
9919
9920 Changes to remove Feval calls from GUI under NS.
9921
d8038940
JB
9922 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
9923 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
9924 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
9925
9926 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
9927 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
9928 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
9929 instead of NON_ASCII_KEYSTROKE_EVENT.
9930 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
9931 (EmacsApp-applicationShouldTerminate:): Query user.
9932 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
9933 instead of Feval.
9934
9935 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
9936
9937 * keyboard.c (kbd_buffer_get_event): Check for it.
9938 (keys_of_keyboard): Define lispy keys for
9939 ns-put/unput-working-text.
9940
9941 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
9942 versions.
9943 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
9944
6288ae55
CY
99452009-01-25 Chong Yidong <cyd@stupidchicken.com>
9946
9947 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 9948 setting current_buffer directly. (Bug#2044)
6288ae55 9949
289e7f8f
CY
99502009-01-24 Chong Yidong <cyd@stupidchicken.com>
9951
5ce87308 9952 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 9953 any work. (Bug#1952, bug#1990).
5ce87308 9954
64cc3cf6 9955 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 9956
b3243e6f
AR
99572009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
9958
9959 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
9960 (ns_no_defaults): New declaration.
9961 (main): Use it.
e0d2e69a 9962
d900b2af 9963 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 9964
d900b2af 9965 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 9966
d900b2af
AR
9967 * nsterm.m (ns_no_defaults): New variable.
9968 (ns_initialize): Don't read defaults when ns_no_defaults.
9969 (EmacsView-readSelectionFromPasteboard:)
9970 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 9971 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
9972 (ns_dumpglyphs_stretch): New function.
9973 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 9974 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 9975
e0d2e69a
AR
9976 * nsimage.m (setPixmapData:): Set to ignore image DPI.
9977
3ac71f5d
CY
99782009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
9979
9980 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
9981 call for Sparc64.
9982
3fe53a83
AR
99832009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
9984
9985 * nsfns.m:
9986 * nsgui.h:
9987 * nsmenu.m:
9988 * nsselect.m:
9989 * nsterm.h:
9990 * nsterm.m: Remove '23' comments that indicated code added during
9991 update from emacs-20 -> emacs-23.
9992
10f87c6f 99932009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
9994
9995 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 9996 ns_alternate_modifier. (Bug#1217)
a3b53a85 9997
c7cef62d
AR
9998 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
9999 Display all shortcuts, including those w/o super modifier.
10000
575fb8bd
AR
10001 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10002
918b848b
CY
100032009-01-22 Chong Yidong <cyd@stupidchicken.com>
10004
10005 * fileio.c (Vwrite_region_post_annotation_function)
10006 (Vwrite_region_annotation_buffers): New vars.
10007 (build_annotations_unwind): Just reset
10008 Vwrite_region_annotation_buffers.
10009 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10010 Call write-region-post-annotation-function.
10011 (build_annotations): Add to Vwrite_region_annotation_buffers if
10012 buffer changes.
10013
a39e2539
AR
100142009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10015
10016 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10017 Tiger.
51d861de
SM
10018 * nsfns.m (ns_do_applescript):
10019 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10020
35ed44db
AR
100212009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10022
10023 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10024
cbe0b5bf
AR
100252009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10026
10027 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10028
6049d3a0
AR
10029 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10030
10031 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10032 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10033 handle Ctrl-tab. (Bug#1841)
10034 (ns_get_color): Use unsigned long long for scanned hex string value.
10035 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10036 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10037 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10038 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10039 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10040 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10041 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10042
d3810c21 10043 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10044 DPI. (Bug#1316)
d3810c21
AR
10045 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10046 values in onTiger section.
4c7077c3 10047
e301e634
CY
100482009-01-19 Chong Yidong <cyd@stupidchicken.com>
10049
7f82490b
CY
10050 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10051 Check return value of font_spec_from_name.
64cc3cf6 10052 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10053
10054 * font.c (font_spec_from_name): Return Qnil if font name could not
10055 be parsed.
10056 (font_parse_name): Treat a `?' character as part of an XLFD.
10057
e301e634
CY
10058 * fns.c (Fsubstring): Doc fix.
10059
1c0db158
KH
100602009-01-19 Kenichi Handa <handa@m17n.org>
10061
51d861de 10062 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10063 (ftfont_list): Likewise.
10064
acf20901
JB
100652009-01-18 Juanma Barranquero <lekktu@gmail.com>
10066
fff4e459
JB
10067 * dbusbind.c (Fdbus_register_signal):
10068 * process.c (conv_sockaddr_to_lisp):
10069 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10070
acf20901
JB
10071 * callproc.c (Fgetenv_internal): Doc fix.
10072
e7abcdfb
CY
100732009-01-16 Chong Yidong <cyd@stupidchicken.com>
10074
10075 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10076 it is not even used.
10077
b60861e6
GM
100782009-01-16 Glenn Morris <rgm@gnu.org>
10079
10080 * font.c (Ffont_variation_glyphs): Silence compiler.
10081
8db52afe
JB
100822009-01-15 Juanma Barranquero <lekktu@gmail.com>
10083
10084 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10085 Reported by David Robinow <drobinow@gmail.com>.
10086
4cddb209
KH
100872009-01-15 Kenichi Handa <handa@m17n.org>
10088
51d861de 10089 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10090
f247f67b
JR
100912009-01-14 Jason Rumney <jasonr@gnu.org>
10092
10093 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10094 never a fontset. (Bug#1562)
f247f67b 10095
f56a4450
KH
100962009-01-14 Kenichi Handa <handa@m17n.org>
10097
10098 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10099 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10100
4e99855e
CY
101012009-01-13 Chong Yidong <cyd@stupidchicken.com>
10102
10103 * font.c (font_clear_prop): If clearing the family, clear the font
10104 width index too.
10105
fff4e459 10106 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10107
24f01470
JB
101082009-01-12 Juanma Barranquero <lekktu@gmail.com>
10109
10110 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10111 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10112 functions, use sizeof.
10113
a41240a3
MR
101142009-01-12 Martin Rudalics <rudalics@gmx.at>
10115
10116 * keyboard.c (read_char): Fix case where last_nonmenu_event
10117 returned a bad value with submenus. (Bug#447)
10118
944636b8
CY
101192009-01-12 Chong Yidong <cyd@stupidchicken.com>
10120
10121 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10122 family, clear the font width index too.
10123
0dad7c6f
JR
101242009-01-11 Jason Rumney <jasonr@gnu.org>
10125
10126 * keyboard.c (cmd_error_internal): Exit when errors occur before
10127 frame creation and not in daemon mode. (Bug#1836)
10128
7c2363af
CY
101292009-01-10 Chong Yidong <cyd@stupidchicken.com>
10130
10131 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10132 of a display vector, backtrack.
10133 (try_window_reusing_current_matrix): Check glyph type before
10134 referencing charpos member.
10135
97b1b294
EZ
101362009-01-10 Eli Zaretskii <eliz@gnu.org>
10137
10138 Fix Bug #876:
10139
10140 * coding.c (inhibit_null_byte_detection): New variable.
10141 (detect_coding, detect_coding_system): Don't pay attention to null
10142 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10143 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10144 <inhibit-iso-escape-detection>: Doc fix.
10145
4624b6e3
JR
101462009-01-09 Jason Rumney <jasonr@gnu.org>
10147
10148 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10149 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10150 Only report Unicode Plane 2 fonts as unicode-sip.
10151
323b840c
CY
101522009-01-09 Chong Yidong <cyd@stupidchicken.com>
10153
51d861de
SM
10154 * xfaces.c (Fx_font_family_list): Delete function.
10155 Move compatibility version to faces.el.
323b840c 10156
51d861de 10157 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10158
eba7400d
MR
101592009-01-09 Martin Rudalics <rudalics@gmx.at>
10160
10161 * frame.c (x_set_frame_parameters): Remember requested value for
10162 fullscreen before it's reset by the parameter handler.
10163
4b09796d
GM
101642009-01-09 Glenn Morris <rgm@gnu.org>
10165
10166 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10167 (last_command_event): ... and update all users.
4b09796d
GM
10168 (last_input_char): For clarity, rename to...
10169 (last_input_event): ... and update all users.
10170 (last-command-char, last-input-char): Move to subr.el as aliases.
10171 * cmds.c, commands.h: Update for last_command_char rename.
10172
14ccea62
CY
101732009-01-08 Chong Yidong <cyd@stupidchicken.com>
10174
51d861de 10175 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10176
5f004711
JR
101772009-01-08 Jason Rumney <jasonr@gnu.org>
10178
10179 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10180 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10181 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10182 Don't declare.
fff4e459 10183 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10184 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10185
b71f6f73
KH
101862009-01-07 Kenichi Handa <handa@m17n.org>
10187
50b06221 10188 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10189 remember the coding system used for decoding in
50b06221
KH
10190 coding_system (Bug#1039).
10191
b71f6f73 10192 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10193 breaking the loop. (Bug#870)
b71f6f73
KH
10194 (decode_coding_utf_16, decode_coding_emacs_mule)
10195 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10196 (decode_coding_charset): Likewise.
10197
56f668f7
MR
101982009-01-05 Martin Rudalics <rudalics@gmx.at>
10199
10200 * frame.c (x_set_frame_parameters): Make sure height (width) get
10201 applied when fullwidth (fullheight) is set. (Bug#1522)
10202
5da9424d
JB
102032009-01-04 Juanma Barranquero <lekktu@gmail.com>
10204
10205 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10206 (utc_base): Declare as ULONGLONG, not long double.
10207 (convert_time_raw): Delete.
10208 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10209 (initialize_utc_base): New function.
10210 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10211 (convert_from_time_t): Use initialize_utc_base; compute result with
10212 64-bit arithmetic.
10213 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10214
c4605e09
EZ
102152009-01-03 Eli Zaretskii <eliz@gnu.org>
10216
9acef61c 10217 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10218 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10219 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10220 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10221 [!subprocesses]: Define.
10222 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10223 (Flist_system_processes, Fsystem_process_attributes)
10224 [!subprocesses]: Call list_system_processes and
10225 system_process_attributes instead of returning Qnil.
10226
9acef61c
JB
10227 * dosfns.c (system_process_attributes, list_system_processes):
10228 New functions.
c4605e09
EZ
10229
10230 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10231
10232 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10233 Don't use the default (no-op) implementation.
10234
8b7d0a16
JR
102352009-01-03 Jason Rumney <jasonr@gnu.org>
10236
a6d46bc1
JR
10237 * keyboard.c (parse_modifiers_uncached): Wheel events are
10238 clicks (bug#687).
10239
8b7d0a16
JR
10240 * w32term.c (x_query_colors, x_query_color): New functions.
10241
10242 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10243 (svg_load_image): Cast returned pointers from dynamically loaded
10244 functions. Eliminate W32 specific code.
10245
bfe11752
DN
102462009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10247
89e2438a
DN
10248 * nsfns.m (x_set_foreground_color, x_set_background_color)
10249 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10250 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10251 x_ prefix instead of ns_. Update references.
10252 (syms_of_nsfns): Add a FIXME comment.
10253
10254 * nsterm.m (x_set_cursor_type): New prototype.
10255 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10256
bfe11752
DN
10257 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10258 for Solaris instead of incorrectly providing Qutime and Qcutime.
10259
031da700
EZ
102602009-01-02 Eli Zaretskii <eliz@gnu.org>
10261
10262 * w32.c (process_times): Compute sum of utime and stime.
10263 (system_process_attributes): Add Qtime to the alist.
10264
10265 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10266 and add them to the alist.
10267
10268 * process.c (top level) <Qtime, Qctime>: New variables.
10269 (syms_of_process): staticpro them.
10270 (Fsystem_process_attributes): Add their documentation to the doc
10271 string.
10272
10273 * process.h: Declare Qtime and Qctime.
10274
df23bf08
JR
102752009-01-02 Jason Rumney <jasonr@gnu.org>
10276
9acef61c 10277 * image.c (Qgobject): New symbol.
df23bf08
JR
10278 (syms_of_image): Initialize it.
10279 (init_svg_functions): Load some functions from gobject library.
10280
5bbdf7aa
DN
102812009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10282
10283 * frame.c (make_terminal_frame): Remove redundant code and useless
10284 block.
10285
63136da6
AS
102862009-01-01 Andreas Schwab <schwab@suse.de>
10287
10288 * process.c (conv_sockaddr_to_lisp): Add workaround for
10289 getsockname bug on BSD.
10290
9ef69046
CY
102912009-01-01 Chong Yidong <cyd@stupidchicken.com>
10292
d6fafbe0
CY
10293 * xfns.c (x_create_tip_frame): Set border width of the X window.
10294
51d861de 10295 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10296
f9c34147
JR
102972009-01-01 Jason Rumney <jasonr@gnu.org>
10298
9acef61c 10299 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10300 Don't block input, as per earlier xterm.c changes.
10301
f5497e45
AR
103022008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10303
10304 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10305 (ns_appkit_version_int): New function.
10306 (x-server-version): Use ns_appkit_version_int and follow 21+
10307 convention of returning 3 integers.
10308
c19cab20
KH
103092008-12-30 Kenichi Handa <handa@m17n.org>
10310
10311 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10312 (CHAR_SURROGATE_PAIR_P): New macro.
10313
10314 * font.h (struct font_driver): New member get_variation_glyphs.
10315
9acef61c 10316 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10317 (Ffont_variation_glyphs): New function.
10318 (syms_of_font): Defsubr it.
10319
10320 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10321 ftfont_variation_glyphs.
10322 (setup_otf_gstring): New function.
10323 (ftfont_drive_otf): Use it.
10324 (ftfont_shape_by_flt): Handle variation selector.
10325 (ftfont_variation_glyphs): New function.
10326
28cd591f
MR
103272008-12-30 Martin Rudalics <rudalics@gmx.at>
10328
10329 * frame.c (Vemacs_iconified): Remove.
10330
7f714baf
JR
103312008-12-30 Jason Rumney <jasonr@gnu.org>
10332
10333 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10334 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10335
9d2d22ab
CY
103362008-12-30 Chong Yidong <cyd@stupidchicken.com>
10337
10338 * indent.c (Fvertical_motion): Don't advance iterator if we have
10339 reseated to the desired position.
10340
10341 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10342 checking for pos match.
10343
545312c2
KH
103442008-12-30 Kenichi Handa <handa@m17n.org>
10345
1ede3eb6
KH
10346 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10347 just get the low 8-bit of the code.
10348
545312c2
KH
10349 * font.c (font_intern_prop): Validate str as multibyte.
10350
bd7bbf29
DN
103512008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10352
31e0750e
DN
10353 * dispextern.h (struct face): Move lface and hash from the middle
10354 of bitfields.
10355
bd7bbf29
DN
10356 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10357
b5672e7c
DN
103582008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10359
10360 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10361 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10362 instead of intervals.h.
10363
d704470f
AS
103642008-12-26 Andreas Schwab <schwab@suse.de>
10365
10366 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10367 cons.
10368
54b33868
MR
103692008-12-26 Martin Rudalics <rudalics@gmx.at>
10370
10371 * textprop.c (Qminibuffer_prompt): New variable.
10372 (syms_of_textprop): Initialize it.
10373 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10374 in minibuffer-prompt face. (Bug#1662)
10375
40b615d6
JR
103762008-12-25 Jason Rumney <jasonr@gnu.org>
10377
10378 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10379
baae5c2d
JR
103802008-12-24 Jason Rumney <jasonr@gnu.org>
10381
10382 * ralloc.c (r_alloc_reset_variable): New function.
10383
10384 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10385 record of what points where. (Bug#716)
baae5c2d 10386
a9051c88
DN
103872008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10388
10389 * minibuf.c (read_minibuf): Follow the non-interactive case when
10390 running as a daemon, before detaching.
10391
8b146312
AS
103922008-12-22 Andreas Schwab <schwab@suse.de>
10393
10394 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10395 * gtkutil.c (free_widget_value): Use xfree instead of free.
10396
56f2de10
MR
103972008-12-22 Martin Rudalics <rudalics@gmx.at>
10398
10399 * frame.c (delete_frame): New function derived from
10400 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10401 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10402 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10403 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10404 * frame.h: Extern delete_frame.
10405 * window.c (window_loop):
10406 * terminal.c (delete_terminal):
10407 * xterm.c (x_connection_closed):
10408 * xfns.c (Fx_hide_tip):
9acef61c 10409 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10410
1fc200d6
JR
104112008-12-21 Jason Rumney <jasonr@gnu.org>
10412
10413 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10414 when character maps to .notdef character.
10415
5e252df2
SM
104162008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10417
10418 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10419
99b72cc4
JR
104202008-12-20 Jason Rumney <jasonr@gnu.org>
10421
10422 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10423 a graphical frame on Windows. (Bug#1325)
99b72cc4 10424
acc49a52
JD
104252008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10426
10427 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10428
6ea15123
CY
104292008-12-20 Chong Yidong <cyd@stupidchicken.com>
10430
10431 * minibuf.c (Fread_buffer): Doc fix.
10432
b2dab6c8
JR
104332008-12-20 Jason Rumney <jasonr@gnu.org>
10434
54ea0c87 10435 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10436 server name in UNC paths. (Bug#719)
54ea0c87 10437
b2dab6c8 10438 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10439 charbuf. (Bug#1035)
b2dab6c8 10440
6d1921be
DN
104412008-12-19 Daniel Engeler <engeler@gmail.com>
10442
10443 * sysdep.c (serial_configure): Fix typo.
10444
53934c98
DN
104452008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10446
10447 * sysdep.c: Include alloca.h.
f4f634e8
DN
10448 (system_process_attributes): Add implementation for Solaris.
10449
10450 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10451
06e111a6
DN
104522008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10453
10454 Reorganize implementation of Flist_system_processes and
10455 Fsystem_process_attributes. No functional changes.
10456 * process.c: Don't #include pwd.h, grp.h and limits.h.
10457 (Flist_system_processes): Just call list_system_processes.
10458 (Fsystem_process_attributes): Just call system_process_attributes.
10459 (procfs_list_system_processes, time_from_jiffies)
10460 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10461 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10462
10463 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10464 (list_system_processes): Rename from
10465 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10466 Provide a do nothing implementation.
10467 (system_process_attributes): Rename from
10468 procfs_list_system_processes.
10469 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10470 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10471
10472 * w32.c (list_system_processes): Rename from
10473 w32_list_system_processes.
10474 (system_process_attributes): Rename from
10475 w32_system_process_attributes.
10476
10477 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10478
10479 * process.h (w32_list_system_processes)
10480 (w32_system_process_attributes): Remove.
362654a6
JB
10481 (list_system_processes, system_process_attributes):
10482 New prototypes.
06e111a6 10483
6a705b23
KH
104842008-12-19 Kenichi Handa <handa@m17n.org>
10485
10486 * xfont.c (xfont_decode_coding_xlfd): New function.
10487 (xfont_encode_coding_xlfd): New function.
10488 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10489 (xfont_list): Decode and encode XLFD by iso-8859-1.
10490 (xfont_match): Likewise.
10491 (xfont_list_family): Likewise.
10492 (xfont_open): Likewise.
10493
d66c0241 10494 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10495 names are utf-8.
10496
d66c0241 10497 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10498 names are utf-8.
10499
5a130941
JD
105002008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10501
10502 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10503 changed.
bfd20325
JD
10504 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10505 clicked on a detached tool bar button.
5a130941 10506
fd95644b
DN
105072008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10508
10509 * emacs.c (main): Print and error and exit when no data is read
10510 from the pipe.
10511
e6eee6ae
JR
105122008-12-17 Jason Rumney <jasonr@gnu.org>
10513
10514 * w32font.c (w32font_has_char): Always return -1.
10515
a35dd56b
KH
105162008-12-16 Kenichi Handa <handa@m17n.org>
10517
10518 * font.c (font_open_entity): Fix previous change.
10519
0e3635c2
DN
105202008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10521
10522 * process.c: Include <limits.h>.
10523
d4835507 105242008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10525
10526 * font.c (font_update_drivers): Fix mistake in reconstructing the
10527 driver list.
10528
105292008-12-16 Chong Yidong <cyd@stupidchicken.com>
10530
10531 * font.c (font_clear_cache): Fix format of font cache data.
10532
e2cbc401
CY
105332008-12-15 Chong Yidong <cyd@stupidchicken.com>
10534
10535 * xftfont.c (xftfont_open): Free Xft font pattern if
10536 XftFontOpenPattern fails.
10537
10538 * xterm.c (x_free_frame_resources): Remove extraneous call to
10539 free_frame_faces.
10540
b131d535
CY
105412008-12-13 Chong Yidong <cyd@stupidchicken.com>
10542
10543 * xterm.c (x_delete_display): Move xim_close_dpy call to
10544 x_delete_terminal.
10545 (x_delete_terminal): Call xim_close_dpy.
10546
e6df5336
JR
105472008-12-13 Jason Rumney <jasonr@gnu.org>
10548
10549 * w32font.c (intern_font_name): New function.
10550 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10551 (w32font_open_internal, Fx_select_font): Decode font name.
10552 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10553
10554 * w32font.h (intern_font_name): Declare new function.
10555
10556 * w32uniscribe.c (add_opentype_font_name_to_list):
10557 Use intern_font_name.
10558
20d68145
CY
105592008-12-13 Chong Yidong <cyd@stupidchicken.com>
10560
9f2554de
CY
10561 * frame.c (Fdelete_frame): Call free_font_driver_list.
10562
3d9bec9a
CY
10563 * font.c (free_font_driver_list): Implement missing function.
10564
20d68145
CY
10565 * w32term.c (w32_term_init): Don't initialize the image cache
10566 here; it will be done in init_frame_faces.
10567
10568 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10569 (struct x_display_info): Remove unused member null_pixel. New
10570 member xim_callback_data.
10571
10572 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10573 (xim_initialize): Save pointer to callback function data.
10574 (xim_close_dpy): Free callback function data. Call XCloseIM,
10575 reverting 2008-11-04 change by David Smith.
10576 (x_term_init): Don't initialize the image cache here; it will be
10577 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10578 (x_delete_display): Free x_dnd_atoms member.
10579
96f9306b
KH
105802008-12-13 Kenichi Handa <handa@m17n.org>
10581
6dec9044
JB
10582 * font.c (font_rescale_ratio): Moved from xfaces.c.
10583 Argument type changed. Handle a font-spec too.
96f9306b 10584 (font_score): Check Vface_font_rescale_alist.
6dec9044 10585 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10586
10587 * xfaces.c (font_rescale_ratio): Moved to font.c.
10588
8d5b4964
CY
105892008-12-13 Chong Yidong <cyd@stupidchicken.com>
10590
10591 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10592
e6df5336
JR
105932008-12-12 Jason Rumney <jasonr@gnu.org>
10594
10595 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10596 Vwindow_system_version to the real w32 major version.
10597
97c6058a
DN
105982008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10599
10600 * term.c (init_tty): Move setting the terminal name before the
10601 potential user: maybe_fatal.
10602
ec4e88d7
CY
106032008-12-11 Chong Yidong <cyd@stupidchicken.com>
10604
d4835507
JB
10605 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10606 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10607
b4233ec9
JR
106082008-12-11 Jason Rumney <jasonr@gnu.org>
10609
8ec71e23 10610 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10611 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10612
b4233ec9 10613 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10614 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10615
011a0143
JB
106162008-12-11 Juanma Barranquero <lekktu@gmail.com>
10617
10618 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10619
3c309f34
JB
106202008-12-11 Juanma Barranquero <lekktu@gmail.com>
10621
10622 * process.c (Fsystem_process_attributes, syms_of_process):
10623 Fix typo in name of Ssystem_process_attributes.
10624 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10625
fedc6ab5
JB
106262008-12-11 Juanma Barranquero <lekktu@gmail.com>
10627
10628 * syntax.c (Fmodify_syntax_entry): Doc fix.
10629
ba3de0e8
JB
106302008-12-10 Juanma Barranquero <lekktu@gmail.com>
10631
10632 * font.c (Ffont_spec): Move usage to end of docstring.
10633
174f1c74
JR
106342008-12-10 Jason Rumney <jasonr@gnu.org>
10635
10636 * w32font.c (Qcham): New symbol.
10637 (font_supported_scripts): Add cham, and comments for other new
10638 scripts in bitfield from OpenType spec.
9d32f818
JR
10639 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10640 contain characters beyond the bmp.
174f1c74 10641
7b649478
KH
106422008-12-10 Kenichi Handa <handa@m17n.org>
10643
10644 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10645 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10646 Qunicode_sip.
10647
2133e2d1
JB
106482008-12-10 Juanma Barranquero <lekktu@gmail.com>
10649
10650 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10651 (Fcoding_system_put): Use QCdefault_char.
10652 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10653
9af886ee
CY
106542008-12-09 Chong Yidong <cyd@stupidchicken.com>
10655
74d819eb
CY
10656 * xftfont.c (syms_of_xftfont): Fix typo.
10657
4ccfa1c0 10658 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10659
7c19d3ae
DN
106602008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10661
10662 * emacs.c (main): Close daemon_pipe on exec.
10663
567826bb
CY
106642008-12-08 Chong Yidong <cyd@stupidchicken.com>
10665
10666 * termchar.h (struct tty): New members termcap_term_buffer and
10667 termcap_strings_buffer.
10668
10669 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10670 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10671 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10672 All callers changed.
10673 (init_tty): Store termcap data and string buffers in new struct
10674 tty members termcap_term_buffer and termcap_strings_buffer.
10675 (delete_tty): Free them.
4ccfa1c0 10676 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10677
aa96c42b
SZ
106782008-12-07 Seiji Zenitani <zenitani@mac.com>
10679
10680 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10681 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10682
b7e1d896
CY
106832008-12-06 Chong Yidong <cyd@stupidchicken.com>
10684
10685 * coding.c (make_conversion_work_buffer): Disable buffer
10686 modification hooks in the work buffer.
10687
b5ec91a5
EZ
106882008-12-05 Eli Zaretskii <eliz@gnu.org>
10689
10690 * process.c (procfs_system_process_attributes): If `nread' has a
10691 negative value, assign zero to it.
10692
a5d2a52b
CY
106932008-12-05 Chong Yidong <cyd@stupidchicken.com>
10694
68c5540b 10695 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10696
7bf1bb21
KH
106972008-12-05 Kenichi Handa <handa@m17n.org>
10698
10699 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10700 second character is a combining character.
10701
2fdc7d00
EZ
107022008-12-05 Eli Zaretskii <eliz@gnu.org>
10703
10704 * process.c (procfs_system_process_attributes): Don't use cmd,
10705 cmdsize, and q without initializing them first.
10706
bf6bfba8
JR
107072008-12-04 Jason Rumney <jasonr@gnu.org>
10708
10709 * w32font.c (w32font_draw): Initialize orig_clip before getting
10710 it, and delete it when finished.
10711
a3b1a468
DN
107122008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10713
10714 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10715 case when running as a daemon before detaching.
10716
8b8be8eb
JB
107172008-12-03 Juanma Barranquero <lekktu@gmail.com>
10718
805f2638 10719 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10720
b1bde622
KH
107212008-12-03 Kenichi Handa <handa@m17n.org>
10722
e500c47d
KH
10723 * font.c (font_at): Set `multibyte' at first.
10724
ca516334
KH
10725 * coding.c (decode_coding_charset): Check type of an element of
10726 vector VALIDS.
7bf1bb21 10727 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10728
4ccfa1c0 10729 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10730 (font_for_char): Likewise.
10731
1e5ecd37
CY
107322008-12-03 Chong Yidong <cyd@stupidchicken.com>
10733
d5b01609 10734 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10735 (font_update_lface): Handle fonts with corrupted size specs,
10736 i.e. non-int and non-float.
d5b01609 10737
11e3a6e4 10738 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10739 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10740 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10741
ab06788b
CY
10742 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10743
1e5ecd37 10744 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10745 underline_minimum_offset for underline position.
1e5ecd37 10746
63c125ab
DN
107472008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10748
10749 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10750
10751 * character.c (c_string_width): Specify the type for LEN.
10752
3a8406e1
KH
107532008-12-03 Kenichi Handa <handa@m17n.org>
10754
4ccfa1c0 10755 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10756 (decode_coding_utf_8): Likewise.
4ccfa1c0 10757 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10758 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10759
651df7d9
CY
107602008-12-02 Chong Yidong <cyd@stupidchicken.com>
10761
10762 * keyboard.c (make_lispy_position): Only use PT if the selected
10763 window is current.
10764
1f625c6c
AS
107652008-12-02 Andreas Schwab <schwab@suse.de>
10766
f7741ce9
AS
10767 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10768
1f625c6c
AS
10769 * doprnt.c (doprnt1): Fix size of charbuf.
10770
92bc2678
CY
107712008-12-02 Chong Yidong <cyd@stupidchicken.com>
10772
10773 * keyboard.c (timer_check): Revert last change.
10774
93b9e8cc
JB
107752008-12-02 Juanma Barranquero <lekktu@gmail.com>
10776
10777 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10778
fd7a37d5
JB
107792008-12-01 Juanma Barranquero <lekktu@gmail.com>
10780
10781 * makefile.w32-in: Update dependencies.
10782 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10783
c115043b
AS
107842008-12-01 Andreas Schwab <schwab@suse.de>
10785
10786 * font.c (register_font_driver): Use xmalloc.
10787 (font_put_frame_data): Likewise.
10788
f5668d2a
CY
107892008-12-01 Chong Yidong <cyd@stupidchicken.com>
10790
860d96be
CY
10791 * xfaces.c (realize_x_face): Make abort condition clearer.
10792
f5668d2a
CY
10793 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10794
379c17e7
CY
107952008-11-30 Chong Yidong <cyd@stupidchicken.com>
10796
10797 * keyboard.c (timer_check): After a timer runs, ensure that the
10798 selected window's buffer is current.
10799
35f36d65
JB
108002008-11-30 Juanma Barranquero <lekktu@gmail.com>
10801
f952c61c
JB
10802 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10803 It was accidentally restored by the Unicode merge.
10804
35f36d65
JB
10805 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10806
b23077df
JB
108072008-11-29 Juanma Barranquero <lekktu@gmail.com>
10808
10809 * w32proc.c: Include "coding.h".
10810 (Fw32_short_file_name): Encode filename passed to Windows API.
10811 (Fw32_long_file_name): Encode filename passed to Windows API and
10812 decode back the result. (Bug#1433)
10813
b8ebe9dd
KH
108142008-11-29 Kenichi Handa <handa@m17n.org>
10815
8cc53f96
KH
10816 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10817 not before accessing it.
10818
b8ebe9dd
KH
10819 * charset.c (Fdefine_charset_internal): After calculating
10820 min_char, max_char, and fastmap, copy the charset structure again.
10821 (encode_char): Fix the previous change.
10822
59bc82c0
SZ
108232008-11-28 Seiji Zenitani <zenitani@mac.com>
10824
10825 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10826
10827 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10828
10829 * nsterm.m (x_set_frame_alpha): New function.
10830
32247e3d
EZ
108312008-11-27 Eli Zaretskii <eliz@gnu.org>
10832
10833 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10834
b003e5ff
JB
108352008-11-27 Juanma Barranquero <lekktu@gmail.com>
10836
10837 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10838 pointer to check_face_name.
10839
708550f5
KH
108402008-11-27 Kenichi Handa <handa@m17n.org>
10841
10842 * category.h (SET_CATEGORY_SET): Call set_category_set.
10843 (set_category_set): Extern it.
10844
10845 * category.c (hash_get_category_set): New function.
10846 (Fmodify_category_entry): Adjusted for the change of
10847 char_table_ref_and_range. Call hash_get_category_set to get a
10848 category set to store in the table.
10849
10850 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10851 Funify_charset.
10852
2ae37cf0 10853 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10854 (DECODE_CHAR): Check if the decoder vector is ready.
10855 (ENCODE_CHAR): Check if the encoder char-table is ready.
10856 (maybe_unify_char): Extern it.
10857
10858 * charset.c (Vchar_unified_charset_table): Delete it.
10859 (inhibit_load_charset_map): New variable.
10860 (temp_charset_work): New variable.
10861 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10862 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10863 New macros.
10864 (load_charset_map): Meaning of control_flag changed. If
10865 inhibit_load_charset_map is nonzero, setup a table in
10866 temp_charset_work.
10867 (load_charset): New argument control_flag.
10868 (map_charset_for_dump): New function.
10869 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10870 map_charset_for_dump.
10871 (Fdefine_charset_internal): If the charset method is MAP, load
10872 mapping tables by calling load_charset.
10873 (Funify_charset): Don't load a mapping table but directly set
10874 Vchar_unify_table.
10875 (maybe_unify_char): New function.
10876 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10877 Handle the case of inhibit_load_charset_map being nonzero.
10878 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10879 Handle the case of inhibit_load_charset_map being nonzero.
10880 (Fclear_charset_maps): Just free temp_charset_work.
10881 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10882 variable.
10883
10884 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10885 change of char_table_ref_and_range.
10886 (char_table_ref_and_range): Change the meaning of argument FROM
10887 and TO. Now the caller must provide initial values for *FROM
10888 and *TO.
10889
10890 * fontset.c (fontset_add): Adjusted for the change of
10891 char_table_ref_and_range.
10892 (fontset_get_font_group): Likewise.
10893 (Ffontset_info): Likewise.
10894
10895 * keymap.c (describe_vector): Adjusted for the change of
10896 char_table_ref_and_range. For char-table, put boundary between
10897 non-ASCII and 8-bit characters.
10898
10899 * print.c (print_object): For bool-vector, delete unnecessary
10900 check of ASCII_BYTE_P.
10901
9196133b
JR
109022008-11-26 Jason Rumney <jasonr@gnu.org>
10903
10904 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10905 leading in font height. (Bug#879)
9196133b 10906
9f688acf
GM
109072008-11-26 Glenn Morris <rgm@gnu.org>
10908
10909 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
10910 redefinition with ifdef. (Bug#1383)
10911
90d19aff
AR
109122008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10913
10914 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
10915
4ccfa1c0 109162008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
10917
10918 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
10919 New EmacsView methods.
10920 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
10921 Fixes bug #1048,1357,1414.
10922
109232008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
10924
10925 Fix bug #1362.
10926 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
10927 is not an indexed color.
10928 * nsterm.m (free_indexed_color): Add argument checking.
10929 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
10930
e7d5ecb3
CY
109312008-11-24 Chong Yidong <cyd@stupidchicken.com>
10932
10933 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
10934 Document confirm-after-completion value for
10935 minibuffer-completion-confirm.
10936
c285743c
JR
109372008-11-24 Jason Rumney <jasonr@gnu.org>
10938
10939 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
10940 warning.
10941
b0857706
JR
109422008-11-23 Jason Rumney <jasonr@gnu.org>
10943
10944 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
10945 restored before returning.
10946
10947 * w32font.c (check_face_name): New function.
10948 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 10949 fonts. (Bug#642)
b0857706 10950
ee50ff07
MR
109512008-11-22 Martin Rudalics <rudalics@gmx.at>
10952
10953 * buffer.c (Fswitch_to_buffer): Reword and mention new option
10954 confirm-nonexistent-file-or-buffer in doc-string.
10955
b8ff72fa
SM
109562008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
10957
10958 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
10959 Fix copy/paste typo. Add checks.
10960
cee53ed4
KH
109612008-11-21 Kenichi Handa <handa@m17n.org>
10962
10963 * coding.c (detect_coding_iso_2022): Reject invalid composition
10964 sequence.
10965 (DECODE_COMPOSITION_START): If the current source is the last
10966 block, and the current composition doesn't end, regard this
10967 sequence as invalid.
10968 (decode_coding_iso_2022): Handle invalid composition sequence.
10969
f6ef1e65
MR
109702008-11-20 Martin Rudalics <rudalics@gmx.at>
10971
10972 * window.c (coordinates_in_window): Don't return
10973 ON_VERTICAL_BORDER for the rightmost position of a mode/header
10974 line when the window is not the rightmost one. (Bug#1372)
10975
e08b1705
MR
109762008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
10977
10978 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
10979
ad98e89f
EZ
109802008-11-15 Eli Zaretskii <eliz@gnu.org>
10981
10982 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
10983 and bright_bg if noninteractive is non-zero.
10984
fb098a4b
CY
109852008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10986
10987 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
10988 x_draw_glyph_string_background.
10989
10990 * w32term.c (x_draw_glyph_string): Likewise.
10991
ce952b6e
CY
109922008-11-15 Chong Yidong <cyd@stupidchicken.com>
10993
10994 * xterm.c (x_draw_glyph_string): Stop drawing the background of
10995 the next glyph string once past the overhang width.
10996
10997 * nsterm.m (ns_draw_glyph_string): Likewise.
10998
10999 * w32term.c (x_draw_glyph_string): Likewise.
11000
26ea7079
CY
110012008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11002
11003 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11004 double file close.
11005
1c33c906
MR
110062008-11-14 Martin Rudalics <rudalics@gmx.at>
11007
11008 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11009 dedicated status of window before attempting to display another
11010 buffer in it.
11011
8fc29035
JB
110122008-11-14 Juanma Barranquero <lekktu@gmail.com>
11013
11014 * msdos.c (Fmsdos_long_file_names):
11015 (syms_of_msdos) <dos-unsupported-char-glyph>:
11016 * dosfns.c (Fint86): Fix typos in docstrings.
11017
55fb4286
EZ
110182008-11-14 Eli Zaretskii <eliz@gnu.org>
11019
11020 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11021
3fda0315
KY
110222008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11023
11024 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11025
7e849c17
CY
110262008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11027
11028 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11029
11030 * frame.h: Negative alpha means "don't touch".
11031
11032 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11033
11034 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11035
b9fd67bd
DN
110362008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11037
11038 * hftctl.c:
11039 * chpdef.h:
11040 * acldef.h: Remove files used only for systems no longer supported.
11041
11042 * Makefile.in: Fix .o alphabetical ordering.
11043 (hftctl.o): Remove dependency, file removed.
11044 (keymap.o, print.o): Depend on charset.h.
11045
d5998e03
KH
110462008-11-10 Kenichi Handa <handa@m17n.org>
11047
2ae37cf0 11048 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11049
be70e183
CY
110502008-11-08 Chong Yidong <cyd@stupidchicken.com>
11051
11052 * dired.c (file_name_completion): If completion_ignore_case is
11053 enabled, ignore case when checking completion-regexp-list.
11054
7cf94eac
EZ
110552008-11-08 Eli Zaretskii <eliz@gnu.org>
11056
11057 * vm-limit.c (get_lim_data): Fix last change.
11058
ee107a89
KH
110592008-11-08 Kenichi Handa <handa@m17n.org>
11060
11061 * character.c (Fget_byte): New function.
11062 (syms_of_character): Defsubr Fget_byte.
11063
5fd15622
CY
110642008-11-07 Chong Yidong <cyd@stupidchicken.com>
11065
11066 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11067 cursor position is valid after scrolling.
11068
13d62fad
JB
110692008-11-06 Juanma Barranquero <lekktu@gmail.com>
11070
11071 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11072
a1dd2936
GM
110732008-11-06 Glenn Morris <rgm@gnu.org>
11074
11075 * xterm.c (handle_one_xevent): Don't let popup menus cause
11076 mouse-autoselect-window related window switching. (Bug#1261)
11077
860cd236
CY
110782008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11079
11080 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11081
653a3150
AS
110822008-11-04 Andreas Schwab <schwab@suse.de>
11083
11084 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11085
870f5cac
CY
110862008-11-03 Chong Yidong <cyd@stupidchicken.com>
11087
11088 * xfns.c (Fx_wm_set_size_hint): New function.
11089
1e02f3cb
MR
110902008-11-03 Martin Rudalics <rudalics@gmx.at>
11091
11092 * textprop.c (Fprevious_single_char_property_change): Return 0
11093 when there's no change in a string. (Bug#1301)
11094
e630dfc6
MR
110952008-11-02 Martin Rudalics <rudalics@gmx.at>
11096
11097 * frame.c (do_switch_frame): New argument NORECORD passed to
11098 Fselect_window.
11099 (Fselect_frame): New argument NORECORD passed to
11100 do_switch_frame.
11101 (Fset_frame_selected_window): New argument NORECORD passed to
11102 Fselect_frame.
11103 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11104 in call of do_switch_frame.
11105 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11106 Handle NORECORD argument in call of Fselect_frame.
11107 * lisp.h (do_switch_frame, Fselect_frame)
11108 (Fset_frame_selected_window): Adjust declarations.
11109 * window.c (select_frame_norecord): New function.
11110 (run_window_configuration_change_hook): Use it and call
11111 Fselect_frame with NORECORD set.
11112 (Fselect_window): Pass NORECORD to Fselect_frame.
11113 (Fset_window_configuration): Handle NORECORD argument in call of
11114 do_switch_frame.
11115 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11116 Fset_frame_selected_window.
11117 * keyboard.c (command_loop_1): Handle NORECORD in call of
11118 Fselect_frame (currently ifdefd).
11119
9020b223
GM
111202008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11121
11122 * emacs.c (USAGE2): Untabify.
11123
793ffee8
SM
111242008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11125
11126 * composite.c (fill_gstring_header): Fix copy/paste typo.
11127
ab6d1131
MR
111282008-10-31 Martin Rudalics <rudalics@gmx.at>
11129
11130 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11131 (Fother_window): Rename argument and rewrite doc-string.
11132 (select_window_norecord): Fix return value. (Bug#1276)
11133
601a9cf1
JB
111342008-10-30 Juanma Barranquero <lekktu@gmail.com>
11135
11136 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11137 new frames overriding foreground for tooltips. Based on similar patch
11138 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11139
813b0652
CY
111402008-10-29 Chong Yidong <cyd@stupidchicken.com>
11141
11142 * emacs.c (Fdaemon_initialized): Initialize nfd.
11143
4414f58f
MR
111442008-10-29 Martin Rudalics <rudalics@gmx.at>
11145
11146 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11147 (Fwindow_text_height): Clarify doc-strings.
11148 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11149 doc-string of window-scroll-functions.
11150
ecdcaa09
RS
111512008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11152
11153 * category.c (syms_of_category): Fix typo in docstring.
11154
23fe745a
JB
111552008-10-28 Juanma Barranquero <lekktu@gmail.com>
11156
11157 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11158 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11159 Fix typos in docstrings.
11160
ff808935
DN
111612008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11162
11163 * emacs.c (daemon_pipe): Make non-static.
11164 (IS_DAEMON): Move definition ...
11165 * lisp.h (IS_DAEMON): ... here.
11166 (daemon_pipe): Declare.
11167 (is_daemon): Remove.
11168 * dispnew.c (init_display): Use IS_DAEMON.
11169
fc012771
SM
111702008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11171
11172 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11173 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11174
11175 * emacs.c (is_daemon): Remove.
11176 (main): Don't set is_daemon.
11177 (IS_DAEMON): New macro.
11178 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11179 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11180 parent exits.
11181 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11182
d8bdbe6f
CY
111832008-10-27 Chong Yidong <cyd@stupidchicken.com>
11184
d1a072bf
CY
11185 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11186 over-sized glyph, draw it with the default glyph width.
11187
e2e325aa
CY
11188 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11189 glyph, draw it with the default glyph width.
11190
11191 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11192 glyph, draw it with the default glyph width.
11193
d8bdbe6f
CY
11194 * xdisp.c (try_scrolling): When computing the distance from the
11195 scroll margin to PT, try moving some distance past the window
11196 bottom before giving up.
11197
7bfac547
MR
111982008-10-27 Martin Rudalics <rudalics@gmx.at>
11199
11200 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11201 (Fset_window_buffer): Explain in doc-string that a window can be
11202 "strongly" dedicated to its buffer.
11203
4ff029f6
DN
112042008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11205
11206 * emacs.c (daemon_name): New variable.
11207 (main): Deal with --daemon=SERVER_NAME.
11208 (Fdaemonp): Return a name if one was passed to --daemon.
11209
5790ef40
DN
112102008-10-26 Romain Francoise <romain@orebokech.com>
11211
f9bd0df9 11212 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11213 (main): Create a pipe before forking, make the parent exit only after
11214 the child has closed its end of the pipe. Move closing the
11215 descriptors ...
11216 (Fdaemon_initialized): ... here. New function.
11217
f5385255
SM
112182008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11219
4d632321
SM
11220 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11221 the previous unoptimized table.
11222
f5385255
SM
11223 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11224 the distinction between non-nil and non-t value of `dedicated'.
11225
6c56a0f3
CY
112262008-10-25 Chong Yidong <cyd@stupidchicken.com>
11227
11228 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11229 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11230
fec89261
MR
112312008-10-25 Martin Rudalics <rudalics@gmx.at>
11232
11233 * window.c (Fget_buffer_window, Fdelete_windows_on)
11234 (Freplace_buffer_in_windows): Make buffer argument optional and
11235 rename to buffer_or_name.
11236
34fcddd0
CY
112372008-10-24 Chong Yidong <cyd@stupidchicken.com>
11238
f5385255
SM
11239 * xdisp.c (handle_single_display_spec, handle_display_prop):
11240 Undo 2005-05-16 change.
34fcddd0
CY
11241 (handle_stop): Pop iterator if it's loaded with an empty string.
11242 (get_overlay_strings_1): Don't save iterator if it's loaded with
11243 an empty string (bug#1201).
11244
064766f2
KH
112452008-10-24 Kenichi Handa <handa@m17n.org>
11246
11247 * ftfont.c (ftfont_otf_features): Fix previous change.
11248 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11249 calling ftfont_otf_features.
11250
f9bd0df9 112512008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11252
11253 * font.c (font_match_p): Fix for the case that a vector of
11254 characters is in script-representative-chars.
11255
1dae9197
MA
112562008-10-24 Michael Albinus <michael.albinus@gmx.de>
11257
11258 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11259 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11260 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11261 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11262 macro. (Bug#1186)
1dae9197 11263
f9bd0df9 112642008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11265
11266 * s/sol2-10.h: New file.
11267
878a4584
JB
112682008-10-23 Juanma Barranquero <lekktu@gmail.com>
11269
11270 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11271 poor beast has survived 9+ years and the jump from xterm.c!).
11272
cd265ca6
MR
112732008-10-23 Martin Rudalics <rudalics@gmx.at>
11274
11275 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11276 Reword doc-string.
f5385255 11277 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11278
472a4dc9
JB
112792008-10-23 Juanma Barranquero <lekktu@gmail.com>
11280
11281 * character.c (syms_of_character) <script-representative-chars>:
11282 <unicode-category-table>: Doc fixes.
11283
159bd5a2
NF
112842008-10-23 Noah Friedman <friedman@splode.com>
11285
11286 * coding.c (make_conversion_work_buffer): Check that
11287 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11288 Fget_buffer_create.
11289
49f9c344
KH
112902008-10-23 Kenichi Handa <handa@m17n.org>
11291
11292 * font.c (font_add_log): Check the values of extra properties.
11293
12bb3111
MR
112942008-10-22 Martin Rudalics <rudalics@gmx.at>
11295
11296 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11297 Reword doc-string.
11298 (Fset_window_parameter): Use NILP.
11299 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11300 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11301
bbeb4e99
JB
113022008-10-22 Juanma Barranquero <lekktu@gmail.com>
11303
11304 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11305
113062008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11307
11308 * nsfns.m (ns_appkit_version): New function.
11309 (x-server-version): Use it.
11310 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11311 (x-server-vendor): Don't check_ns().
11312
11313 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11314
a9b555d3
JB
113152008-10-22 Juanma Barranquero <lekktu@gmail.com>
11316
11317 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11318 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11319
4626499f
KH
113202008-10-22 Kenichi Handa <handa@m17n.org>
11321
e3681952
KH
11322 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11323 scripts.
11324
4626499f
KH
11325 * category.c (word_boundary_p): Check scripts instead of charset.
11326 Handle nil value in word-separating-categories and
11327 word-combining-categories.
11328 (syms_of_category): Fix docstrings of word-separating-categories
11329 and word-combining-categories.
11330
1560f91a
EZ
113312008-10-21 Eli Zaretskii <eliz@gnu.org>
11332
11333 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11334 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11335
f4668441
MR
113362008-10-21 Martin Rudalics <rudalics@gmx.at>
11337
11338 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11339 Rename arg "buffer" to "buffer_or_name".
11340 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11341 it optional.
11342 (no_switch_window): Remove since the return value is not used.
a9b555d3 11343 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11344 Consider window as dedicated when Fwindow_dedicated_p returns a
11345 non-nil value.
11346 * lisp.h: Remove prototype for no_switch_window.
11347
fd75ddb2
JD
113482008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11349
11350 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11351 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11352
07295713
KH
113532008-10-21 Kenichi Handa <handa@m17n.org>
11354
11355 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11356 check Vlatin_extra_code_table.
11357
712adc82
EZ
113582008-10-20 Eli Zaretskii <eliz@gnu.org>
11359
11360 * fileio.c (Fset_file_modes): Doc fix.
11361
f549eb0b
MA
113622008-10-19 Michael Albinus <michael.albinus@gmx.de>
11363
11364 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11365 in arrays.
11366
aac0c6e3
MR
113672008-10-19 Martin Rudalics <rudalics@gmx.at>
11368
11369 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11370 Mention kill-buffer in doc-string.
11371 (Fset_window_buffer): Reinsert tem check removed in last commit.
11372 (Fenlarge_window, Fshrink_window): Have argument names and
11373 doc-string follow Elisp manual more closely.
11374
113752008-10-18 Eli Zaretskii <eliz@gnu.org>
11376
11377 * fileio.c (Fset_file_modes): Doc fix.
11378
113792008-10-18 Martin Rudalics <rudalics@gmx.at>
11380
11381 * window.c (Fwindow_width, Fset_window_start)
11382 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11383 (Fdelete_windows_on, Freplace_buffer_in_windows):
11384 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11385 (Fwindow_dedicated_p): Make window argument optional.
11386 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11387 (Fset_window_buffer): Respect any non-nil dedicated value for
11388 window. Rename "buffer" argument to "buffer_or_name".
11389
113902008-10-18 Ulrich Mueller <ulm@gentoo.org>
11391
11392 * m/sh3.h: New file, machine description for SuperH.
11393
113942008-10-17 Martin Rudalics <rudalics@gmx.at>
11395
11396 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11397
113982008-10-17 Kenichi Handa <handa@m17n.org>
11399
11400 * ftfont.c (ftfont_otf_features): Fix indexing
11401 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11402
114032008-10-16 Magnus Henoch <mange@freemail.hu>
11404
11405 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11406 (Fdbus_call_method_asynchronously): Ditto.
11407 This change makes C-h f display the argument list.
11408
114092008-10-16 Chong Yidong <cyd@stupidchicken.com>
11410
11411 * fileio.c (Fexpand_file_name): Doc fix.
11412
11413 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11414 of :foreground and :background equivalent to unspecified (20.x
11415 compatibility).
11416
114172008-10-15 Eli Zaretskii <eliz@gnu.org>
11418
11419 * buffer.c (syms_of_buffer): Doc fix.
11420
114212008-10-14 Kenichi Handa <handa@m17n.org>
11422
11423 * font.c (font_clear_prop): When clearing font width, clear the
11424 average width field too.
11425
114262008-10-12 Andreas Schwab <schwab@suse.de>
11427
11428 * ftfont.c (ftfont_shape_by_flt): Make static.
11429 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11430
11431 * font.c: Don't include <m17n-flt.h>.
11432
114332008-10-10 Eli Zaretskii <eliz@gnu.org>
11434
11435 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11436
114372008-10-09 Eli Zaretskii <eliz@gnu.org>
11438
11439 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11440 away code.
11441
114422008-10-09 Chong Yidong <cyd@stupidchicken.com>
11443
11444 * dispnew.c (update_text_area): Avoid looping due to large glyph
11445 overhangs (bug#1070).
11446
114472008-10-09 Kenichi Handa <handa@m17n.org>
11448
11449 * fontset.c (face_for_char): If face->fontset is negative, just
11450 return ascii_face.
11451
f5385255
SM
11452 * font.c (font_delete_unmatched): Fix previous change.
11453 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11454
114552008-10-09 Martin Rudalics <rudalics@gmx.at>
11456
11457 * frame.c (Fraise_frame): On text-only terminals select frame in
11458 order to make it visible. (Bug#1061)
11459
114602008-10-08 Chong Yidong <cyd@stupidchicken.com>
11461
11462 * fontset.c (fontset_find_font): Check frame validity.
11463
114642008-10-07 Chong Yidong <cyd@stupidchicken.com>
11465
a9b555d3 11466 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11467 (xg_display_close): Allow Emacs to close all displays (bug#985).
11468
114692008-10-06 Andreas Schwab <schwab@suse.de>
11470
f5385255 11471 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11472
114732008-10-06 Chong Yidong <cyd@stupidchicken.com>
11474
f5385255 11475 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11476
a9b555d3 11477 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11478
11479 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11480 during initialization.
11481
114822008-10-04 Eli Zaretskii <eliz@gnu.org>
11483
11484 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11485 whole thing on MSDOS frames as well as on a TTY.
11486
11487 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11488 well as for TTY.
11489 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11490 well as on a TTY.
11491
11492 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11493 as well as for TTY.
11494
11495 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11496
11497 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11498 MSDOS frames as well.
11499
115002008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11501
11502 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11503 correct arguments.
b71ac3dd 11504 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11505
115062008-10-03 Glenn Morris <rgm@gnu.org>
11507
11508 * emacs.c (USAGE1): Add --daemon.
11509
115102008-10-02 Eli Zaretskii <eliz@gnu.org>
11511
11512 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11513 100, so it's in percents as advertised.
11514
115152008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11516
11517 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11518 (ns_output.current_cursor, ns_output.desired_cursor)
11519 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11520 (FRAME_NEW_CURSOR_COLOR): Remove.
11521
11522 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11523 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11524 enumeration (HOLLOW_BOX_CURSOR, etc.).
11525
11526 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11527 (draw_window_cursor): Simplify code.
f5385255
SM
11528 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11529 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11530 updates manually.
a9b555d3
JB
11531 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11532 Use core Emacs cursor types.
aac0c6e3 11533
b8ff72fa 11534 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11535
115362008-10-02 Martin Rudalics <rudalics@gmx.at>
11537
11538 * process.c (Faccept_process_output): Fix doc-string.
11539
115402008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11541
11542 * gmalloc.c (__sbrk): Also define for uClibc.
11543
11544 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11545 for uClibc.
11546
115472008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11548
11549 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11550 styles.
11551 (nsfont_open): Reenable the cache.
11552
115532008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11554
11555 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11556 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11557
115582008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11559
11560 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11561 a suspended terminal.
11562
115632008-09-30 Michael Albinus <michael.albinus@gmx.de>
11564
11565 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11566
115672008-09-30 Eli Zaretskii <eliz@gnu.org>
11568
11569 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11570
115712008-09-30 Chong Yidong <cyd@stupidchicken.com>
11572
11573 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11574 in a continued line coincides with a line beginning.
11575
115762008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11577
11578 * nsfont.m (nsfont_trait_distance): Fix bug.
11579 (nsfont_list): Return a list rather than a vector (syncs with Handa
11580 changes of 2008-05-14).
11581 (nsfont_open): Improve logging.
11582
115832008-09-29 Andreas Schwab <schwab@suse.de>
11584
11585 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11586
115872008-09-28 Martin Rudalics <rudalics@gmx.at>
11588
11589 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11590 name as char-resolve-modifiers.
11591 Reported by: Markus Triska <markus.triska@gmx.at>
11592
115932008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11594
11595 * dispnew.c (init_display): Return earlier when running as a daemon.
11596
115972008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11598
11599 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11600
116012008-09-27 Eli Zaretskii <eliz@gnu.org>
11602
11603 * composite.c (Fcomposition_get_gstring)
11604 (Fcompose_region_internal, Fcompose_string_internal)
11605 (Ffind_composition_internal): Doc fix.
11606 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11607 (syms_of_composite) <auto-composition-function>: Doc fix.
11608 (syms_of_composite) <composition-function-table>: Doc fix.
11609
116102008-09-25 Chong Yidong <cyd@stupidchicken.com>
11611
11612 * search.c (wordify): New argument for lax word-ends.
11613 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11614
116152008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11616
11617 * lisp.h (is_daemon): Declare.
11618 * dispnew.c (init_display): Do not try to initialize the terminal
11619 when running as a daemon.
11620
116212008-09-22 Chong Yidong <cyd@stupidchicken.com>
11622
11623 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11624 x_display_pixel_height.
11625
116262008-09-22 Martin Rudalics <rudalics@gmx.at>
11627
11628 * undo.c (record_point): Don't call Fundo_boundary for first
11629 change. (Bug#731)
11630
116312008-09-22 Juanma Barranquero <lekktu@gmail.com>
11632
11633 * emacs.c (Fdaemonp): Doc fix.
11634
116352008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11636
11637 * emacs.c (main): Place #ifdef in the proper place.
11638
116392008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11640
11641 * emacs.c (standard_args): Add --daemon.
11642 (main): Disconnect from the terminal when --daemon is passed.
11643 (is_daemon): New variable.
11644 (Fdaemonp): New function.
11645 (syms_of_emacs): Defsubr it.
11646
116472008-09-20 Chong Yidong <cyd@stupidchicken.com>
11648
11649 * xdisp.c (get_next_display_element): Handle string display
11650 correctly when checking for the end of a box run.
11651
116522008-09-20 Glenn Morris <rgm@gnu.org>
11653
11654 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11655 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11656 (Frename_file): Avoid copying to trash if a rename involves
11657 a delete. (Bug#964).
11658
116592008-09-20 Eli Zaretskii <eliz@gnu.org>
11660
11661 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11662 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11663 frames as well as termcap frames.
11664 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11665 get_named_tty.
11666
116672008-09-19 Eli Zaretskii <eliz@gnu.org>
11668
11669 * process.c (procfs_system_process_attributes): Fix cmdline in
11670 case /proc/PID/cmdline is empty.
11671
11672 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11673 x_display_pixel_height.
11674
116752008-09-19 Juanma Barranquero <lekktu@gmail.com>
11676
11677 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11678
11679 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11680 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11681
116822008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11683
11684 * dispextern.h (struct it): Move line_wrap away from the middle of
11685 bitfields. Move voffset in struct iterator_stack_entry after the
11686 bitfields. Move tab_width near after another short.
11687
116882008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11689
11690 * frame.h (struct frame): Move alpha from the middle of bitfields.
11691
11692 * window.h (struct window): Move frozen_window_start_p after the
11693 rest of the bitfields to reduce padding.
11694
116952008-09-18 Chong Yidong <cyd@stupidchicken.com>
11696
11697 * xterm.h (x_display_info): Remove `height' and `width' members.
11698
11699 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11700
11701 * w32term.h (w32_display_info): Remove `height', `width',
11702 `height_in', and `width_in' members.
11703
b8ff72fa
SM
11704 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11705 New functions.
aac0c6e3
MR
11706 (x_calc_absolute_position): Use them.
11707 (x_term_init): Omit removed `height' and `width' members.
11708
b8ff72fa
SM
11709 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11710 New functions.
aac0c6e3
MR
11711 (w32_read_socket, x_calc_absolute_position): Use them.
11712 (w32_initialize_display_info, w32_term_init): Omit removed members
11713 of w32_display_info.
11714
b8ff72fa
SM
11715 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11716 New functions.
11717 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11718
b8ff72fa
SM
11719 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11720 New functions.
aac0c6e3
MR
11721 (x_calc_absolute_position): Use them.
11722 (x_term_init): Omit removed `height' and `width' members.
11723
11724 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11725 (compute_tip_xy):
11726 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11727 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11728 x_display_pixel_width.
11729
117302008-09-18 Kenichi Handa <handa@m17n.org>
11731
11732 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11733 (composition_compute_stop_pos): Fix handling of static composition.
11734 (Fcomposition_get_gstring): Check FROM and TO at first.
11735
117362008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11737
46e722a9 11738 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11739 mixup (YAILOM).
11740
117412008-09-17 Chong Yidong <cyd@stupidchicken.com>
11742
11743 * indent.c (Fvertical_motion): Use position reported by iterator
11744 instead of PT for determining screen motion (bug#943).
11745
117462008-09-17 Romain Francoise <romain@orebokech.com>
11747
11748 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11749
117502008-09-17 Kenichi Handa <handa@m17n.org>
11751
11752 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11753
11754 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11755 if necessary.
11756
117572008-09-16 Kenichi Handa <handa@m17n.org>
11758
11759 * coding.c (make_conversion_work_buffer): Avoid calling
11760 Fget_buffer_create if it is not necessary.
11761
117622008-09-15 Martin Rudalics <rudalics@gmx.at>
11763
11764 * window.c (Fselect_window): Don't update window_select_count and
11765 use_time when norecord is not nil.
11766
117672008-09-14 Kenichi Handa <handa@m17n.org>
11768
11769 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11770 specpdl_ptr.
11771
117722008-09-12 Kenichi Handa <handa@m17n.org>
11773
11774 * indent.c (scan_for_column): Don't handle automatic composition
11775 if the current buffer is not associated with a window.
11776
11777 * composite.c (composition_reseat_it): If the current buffer is
11778 not associated with a window, ignore the automatic composition.
11779 (find_automatic_composition): Likewise.
11780
117812008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11782
11783 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11784 (Fgpm_mouse_stop): Use it.
11785 * termhooks.h (close_gpm): Declare.
11786 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11787 connection if Gpm_GetEvent fails.
11788
11789 * window.c (set_window_buffer): Always preserve current-buffer.
11790
117912008-09-12 Glenn Morris <rgm@gnu.org>
11792
11793 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11794
117952008-09-11 Glenn Morris <rgm@gnu.org>
11796
11797 * charset.c (charset-map-path): Doc fix.
11798
117992008-09-10 Kenichi Handa <handa@m17n.org>
11800
11801 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11802
11803 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11804 compose a grapheme cluster with the preceding base glyph.
11805
11806 * composite.c (composition_compute_stop_pos): Fix previous change.
11807 Reset cmp_it->id to -1 at first.
11808
118092008-09-10 Glenn Morris <rgm@gnu.org>
11810
11811 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11812
118132008-09-09 Chong Yidong <cyd@stupidchicken.com>
11814
11815 * keyboard.c (read_key_sequence): Reapply translation maps when
11816 switching keyboards.
11817
118182008-09-09 Kenichi Handa <handa@m17n.org>
11819
11820 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11821 characters.
11822
11823 * composite.c (FORWARD_CHAR): Fix calculation
11824 of (POSITION).pos_byte.
11825 (composition_compute_stop_pos): Limit the search of composition to
11826 at most 500 characters ahead. If we reach the limit or find a
11827 newline, set cmp_it->ch to -2 and return 0.
11828 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11829
118302008-09-08 Kenichi Handa <handa@m17n.org>
11831
11832 * indent.c (Fvertical_motion): Be sure to set
11833 it_overshoot_expected if it.cmp_it.id is non-negative.
11834
118352008-09-07 Andreas Schwab <schwab@suse.de>
11836
11837 * callproc.c (Fcall_process): Don't hold references to string data
11838 across garbage collection. Move initialisation of new_argv down
11839 to avoid compiler bug.
11840
118412008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11842
11843 * process.c (Fsystem_process_attributes): Doc fix.
11844
118452008-09-07 Chong Yidong <cyd@stupidchicken.com>
11846
11847 * callproc.c (Fcall_process): Canonicalize current directory name.
11848
11849 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11850 iterator advances to the next line if the current line ends in a
11851 continued tab.
11852
118532008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11854
11855 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11856 member to point to cmp_from.
11857
11858 * xdisp.c: Doc fix for references to gidx data member.
11859
118602008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11861
11862 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11863
118642008-09-07 Kenichi Handa <handa@m17n.org>
11865
11866 * composite.c (FORWARD_CHAR): Check STOP after
11867 incrementing (POSITION).pos.
11868
118692008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11870
11871 * process.c (Fsystem_process_attributes): Doc fix.
11872
118732008-09-06 Chong Yidong <cyd@stupidchicken.com>
11874
11875 * keyboard.c (Ftop_level): Doc fix.
11876
118772008-09-06 Eli Zaretskii <eliz@gnu.org>
11878
11879 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11880 minibuffer, don't let lower part of menu invade the echo area.
11881
11882 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11883 "char *q" to access menu text and advance through it. Revert the
11884 change that displayed ">" instead of ASCII character 0x10.
11885
118862008-09-05 Eli Zaretskii <eliz@gnu.org>
11887
11888 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11889 toggle boxes and radio buttons on MS-DOS as well.
11890
118912008-09-05 Kenichi Handa <handa@m17n.org>
11892
11893 * composite.c (autocmp_chars): Check lookback count.
11894 (composition_compute_stop_pos): Set cmp_it->lookback.
11895 (composition_reseat_it): Check lookback count.
11896 (struct position_record): New struct.
11897 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11898 (find_automatic_composition): New function.
11899 (composition_adjust_point): Use find_automatic_composition.
11900
11901 * dispextern.h (struct composition_it): New member lookback.
11902
119032008-09-02 Chong Yidong <cyd@stupidchicken.com>
11904
11905 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11906 if moving by a single line.
11907
119082008-09-02 Andreas Schwab <schwab@suse.de>
11909
11910 * xterm.c (x_delete_display): Fix merge error.
11911
11912 * fileio.c (Fexpand_file_name): Remove unused variables.
11913
119142008-09-02 Eli Zaretskii <eliz@gnu.org>
11915
11916 * fileio.c (Fexpand_file_name): Copy argument `name' into local
11917 storage on all platforms, not just on DOS_NT.
11918
119192008-09-02 Jason Rumney <jasonr@gnu.org>
11920
b8ff72fa
SM
11921 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
11922 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
11923
119242008-09-01 Chong Yidong <cyd@stupidchicken.com>
11925
11926 * xfaces.c (Finternal_set_alternative_font_family_alist)
11927 (Finternal_set_alternative_font_registry_alist): Properly copy
11928 entire alist structure.
11929
119302008-09-01 Kenichi Handa <handa@m17n.org>
11931
d66c0241 11932 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 11933 representative chars of the script is a vector.
d66c0241
JB
11934 (ftfont_list): Handle the case where the representative chars of
11935 the script is a vector.
aac0c6e3
MR
11936
11937 * character.c (syms_of_character): Docstring of
11938 script-representative-chars fixed.
11939
119402008-08-31 Eli Zaretskii <eliz@gnu.org>
11941
11942 * msdos.c (BUILD_CHAR_GLYPH): New macro.
11943 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
11944 the menu. Allocate larger buffer for `text', to account for
11945 possible ^C characters.
11946
119472008-08-31 Martin Rudalics <rudalics@gmx.at>
11948
11949 * xdisp.c (prepare_menu_bars): Don't call
11950 Vwindow_size_change_functions with arg Qt.
11951
119522008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
11953
11954 * font.h (font_range):
11955 * fileio.c (report_file_error):
46e722a9
SM
11956 * composite.c (composition_update_it): Yet another int/Lisp_Object
11957 mixup (YAILOM).
aac0c6e3
MR
11958
119592008-08-30 Glenn Morris <rgm@gnu.org>
11960
11961 * data.c (Fmake_variable_frame_local): Doc fix.
11962
11963 * frame.c (Fmodify_frame_parameters): Doc fix.
11964
119652008-08-30 Eli Zaretskii <eliz@gnu.org>
11966
11967 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
11968 needed by GetTokenInformation.
11969 (w32_system_process_attributes): Check return values of all system
11970 APIs.
11971
11972 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
11973 only when the state changes.
11974 (IT_update_begin, IT_update_end): Add termscript trace.
11975
11976 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
11977 clipboard is unavailable. Set dst to NULL if it doesn't point to
11978 malloc'ed data.
11979 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
11980 passing random values to xfree.
11981
11982 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 11983 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
11984
119852008-08-29 Jason Rumney <jasonr@gnu.org>
11986
11987 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
11988
119892008-08-29 Eli Zaretskii <eliz@gnu.org>
11990
11991 * composite.c (fill_gstring_body): Avoid compiler warnings.
11992
11993 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
11994 LGLYPH_SET_CODE to avoid compiler warnings.
11995
2ae37cf0 11996 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
11997
11998 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
11999
12000 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12001 LGLYPH_SET_CODE.
12002
120032008-08-29 Kenichi Handa <handa@m17n.org>
12004
12005 * fileio.c (report_file_error): Don't downcase the first character
12006 of errstring if it is still unibyte.
12007
120082008-08-29 Kenichi Handa <handa@m17n.org>
12009
12010 These changes are to re-implement the automatic composition so
12011 that it doesn't use text properties.
12012
12013 * Makefile.in (ftfont.o): Depend on composite.h.
12014 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12015
12016 * character.h (Vunicode_category_table): Extern it.
12017
12018 * character.c (Vunicode_category_table): New variable.
12019 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12020
12021 * chartab.c (optimize_sub_char_table): Perform more greedy
12022 optimization.
12023
b8ff72fa
SM
12024 * composite.h (enum composition_method):
12025 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12026 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12027 (Vcomposition_function_table): Extern it.
12028 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12029 (composition_gstring_put_cache, composition_gstring_from_id)
12030 (composition_gstring_p, composition_gstring_width)
12031 (composition_compute_stop_pos, composition_reseat_it)
12032 (composition_update_it, composition_adjust_point): Extern them.
12033 (Fcomposition_get_gstring): EXFUN it.
12034
d66c0241 12035 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12036 (Vcomposition_function_table)
12037 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12038 (gstring_hash_table, gstring_work, gstring_work_headers):
12039 New variables.
aac0c6e3
MR
12040 (gstring_lookup_cache, composition_gstring_put_cache)
12041 (composition_gstring_from_id, composition_gstring_p)
12042 (composition_gstring_width, fill_gstring_header)
12043 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12044 (composition_reseat_it, composition_update_it)
b8ff72fa 12045 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12046 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12047 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12048 Defsubr composition_get_gstring.
aac0c6e3
MR
12049
12050 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12051 cmp_id.
12052 (struct glyph_string): Delete the member gidx. New members
12053 cmp_id, cmp_from, and cmp_to.
12054 (enum it_method): Delete GET_FROM_COMPOSITION.
12055 (struct composition_it): New struct.
12056 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12057 Delete c, len, cmp_id, cmp_len in u.comp.
12058
12059 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12060 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12061 (enum lglyph_indices): Likewise.
b8ff72fa 12062 (font_range): Adjust extern.
aac0c6e3
MR
12063 (font_fill_lglyph_metrics): Extern it.
12064
12065 * font.c (QCf): New variable.
12066 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12067 (font_prepare_composition): Delete this function.
12068 (font_range): Type and arguments changed.
12069 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12070 (font_fill_lglyph_metrics): New function.
b8ff72fa 12071 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12072 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12073 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12074 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12075
12076 * fontset.h (font_for_char): Extern it.
12077
12078 * fontset.c (font_for_char): New function.
12079
12080 * ftfont.c: Include composite.h.
12081 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12082 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12083
12084 * indent.c: Include composite.h and dispextern.h.
12085 (check_composition): Delete this function.
12086 (scan_for_column): Handle composition by
12087 composition_compute_stop_pos, composition_reseat_it, and
12088 composition_update_it.
12089 (compute_motion): Likewise.
12090 (Fvertical_motion): Fix checking of composition.
12091
12092 * keyboard.c (adjust_point_for_property): Check composition by
12093 composition_adjust_point.
12094
b8ff72fa 12095 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12096 struct glyph_string.
12097
b8ff72fa
SM
12098 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12099 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12100 struct glyph.
12101 (produce_composite_glyph): Likewise.
12102
b8ff72fa
SM
12103 * w32term.c (x_draw_composite_glyph_string_foreground):
12104 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12105 (x_draw_glyph_string): Likewise.
12106
12107 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12108 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12109
12110 * xdisp.c: Include font.h.
12111 (it_props): Delete the entry for Qauto_composed.
12112 (init_iterator): Initialize it->cmp_it.id to -1.
12113 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12114 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12115 (handle_auto_composed_prop): Delete it.
12116 (handle_composition_prop): Handle only static composition.
12117 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12118 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12119 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12120 (pop_it): Likewise.
12121 (get_next_element): Delete next_element_from_composition.
12122 (CHAR_COMPOSED_P): New macro.
12123 (get_next_display_element): For automatic composition, get a face
12124 from the font in the glyph-string.
12125 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12126 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12127 (next_element_from_string): Check if the character at the current
12128 position is composed by CHAR_COMPOSED_P.
12129 (next_element_from_buffer): Likewise.
d66c0241
JB
12130 (next_element_from_composition): Adjust for the change of struct it.
12131 Update it->cmp_it.
b8ff72fa
SM
12132 (dump_glyph): Adjust for the change of struct glyph.
12133 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12134 it and struct glyph. Don't handle automatic composition here.
12135 (fill_gstring_glyph_string): New function.
12136 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12137 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12138 (BUILD_GSTRING_GLYPH_STRING): New macro.
12139 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12140 automatic composition.
b8ff72fa 12141 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12142 struct glyph.
b8ff72fa 12143 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12144
b8ff72fa 12145 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12146 the change of struct glyph_string.
12147 (x_draw_glyph_string): Likewise.
12148
121492008-08-29 Glenn Morris <rgm@gnu.org>
12150
12151 * buffer.c (word-wrap): Doc fix.
12152 * xdisp.c (truncate-partial-width-windows): Doc fix.
12153 Increase default to 50.
12154
121552008-08-29 Chong Yidong <cyd@stupidchicken.com>
12156
12157 * xdisp.c (update_tool_bar_unwind): New function.
12158 (update_tool_bar): Temporarily set selected frame before building
12159 tool-bar items.
12160
121612008-08-28 Michael Albinus <michael.albinus@gmx.de>
12162
12163 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12164 snprintf, respectively.
12165 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12166
121672008-08-28 Chong Yidong <cyd@stupidchicken.com>
12168
12169 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12170 LDFLAGS to GNUstep CC invocation.
12171
121722008-08-27 Chong Yidong <cyd@stupidchicken.com>
12173
12174 * indent.c (Fvertical_motion): Revert last change. Handle the
12175 general case where we are moving forward, and PT spans multiple
12176 screen lines.
12177
12178 * eval.c (find_handler_clause): Temporarily increase
12179 max-lisp-eval-depth while printing the backtrace buffer, to
12180 guarantee that help-mode code can run.
12181
121822008-08-27 Eli Zaretskii <eliz@gnu.org>
12183
12184 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12185 colors under -rv.
12186 (IT_set_frame_parameters): Don't swap foreground and background
12187 colors if `(reverse . t)' is present in the frame properties.
12188 (internal_terminal_init): Call init_frame_faces only for the
12189 initial frame.
12190
121912008-08-27 Andreas Schwab <schwab@suse.de>
12192
12193 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12194
121952008-08-27 Andreas Schwab <schwab@suse.de>
12196
12197 * search.c (search_buffer): Set char_base to zero only at the end.
12198
121992008-08-27 Kenichi Handa <handa@m17n.org>
12200
b8ff72fa 12201 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12202
122032008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12204
12205 * xterm.c (x_term_init): Temporarily hide the partially
12206 initialized terminal while calling vendor-specific-keysyms.
12207
122082008-08-26 Eli Zaretskii <eliz@gnu.org>
12209
12210 * msdos.c (internal_terminal_init): Most initializations done only
12211 once, especially initial_screen_colors[] and termscript open.
12212
122132008-08-26 Chong Yidong <cyd@stupidchicken.com>
12214
12215 * eval.c (Fcondition_case): Doc fix.
12216
12217 * widgetprv.h (EmacsFramePart): Change font member to the new font
12218 struct.
12219
12220 * widget.c: Include character.h and font.h for XSETFONT.
12221 (setup_frame_gcs): Compute X font id from font struct, just once.
12222
122232008-08-26 Eli Zaretskii <eliz@gnu.org>
12224
12225 * term.c (get_named_tty): Fix last change.
12226
122272008-08-26 Chong Yidong <cyd@stupidchicken.com>
12228
12229 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12230 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12231
122322008-08-25 Eli Zaretskii <eliz@gnu.org>
12233
12234 * frame.c (do_switch_frame): Mark previously displayed frame as
12235 obscured for FRAME_MSDOS_P frames as well.
12236
122372008-08-24 Eli Zaretskii <eliz@gnu.org>
12238
12239 * frame.c (make_terminal_frame): Initialize f->terminal,
12240 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12241 Set the top frame to newly created frame.
12242 (Fmake_terminal_frame): Reuse the_only_display_info.
12243
12244 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12245 estimating available memory.
12246
b97439ce 122472008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12248
12249 * nsterm.m (ns_draw_window_cursor): Don't call
12250 NSDisableScreenUpdates and NSEnableScreenUpdates on
12251 non-NS_IMPL_COCOA systems.
12252
122532008-08-23 Andreas Schwab <schwab@suse.de>
12254
12255 * process.c (procfs_system_process_attributes): Fix use of
12256 uninitialized variables.
12257
122582008-08-23 Eli Zaretskii <eliz@gnu.org>
12259
12260 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12261
12262 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12263 calling tty-set-up-initial-frame-faces.
12264
b8ff72fa
SM
12265 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12266 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12267
12268 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12269 addition to output_termcap.
12270
12271 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12272
12273 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12274 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12275 highlight.
12276
12277 * process.c [!subprocesses]: Define QCname.
12278 (syms_of_process): Intern and staticpro it.
12279
12280 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12281 Adjust for changes in encoding/decoding routines.
12282 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12283 encode_coding and decode_coding.
12284
b8ff72fa 12285 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12286
12287 * dosfns.c: Include frame.h before termhooks.h.
12288 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12289 variable termscript.
12290
12291 * s/msdos.h (USER_FULL_NAME): Define.
12292 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12293
12294 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12295 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12296 pw->pw_gecos.
12297
12298 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12299 SELECTED_FRAME as additional (1st) argument.
12300 (tty_read_avail_input): Handle output_msdos_raw in
12301 addition to output_termcap.
12302
12303 * msdos.c: Include frame.h before termhooks.h.
12304 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12305 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12306 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12307 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12308 (IT_set_terminal_modes, IT_reset_terminal_modes)
12309 (IT_set_frame_parameters): Use tty->termscript instead of a global
12310 variable termscript.
12311 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12312 global variable terminal_coding. Don't refer to
12313 Vnonascii_translation_table.
12314 (internal_terminal_init): Set Vwindow_system in current_kboard.
12315 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12316 Announce date and time of session start, if termscript is open.
12317 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12318 term.c:init_tty). Open termscript only of not already open.
12319 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12320 here instead of dos_ttraw. Don't initialize display if this is an
12321 initial tty. Don't set FRAME_FONT.
12322 (Vwindow_system_version): Bump to 23.
12323 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12324 is available, set up mouse_position_hook.
12325 (dos_ttraw, IT_set_terminal_modes): If called with initial
12326 terminal, do nothing.
12327 (IT_set_frame_parameters): Handle the Qtty_type frame
12328 parameter by calling internal_terminal_init.
12329 (dos_set_window_size, show_mouse_face)
12330 (clear_mouse_face, IT_note_mode_line_highlight)
12331 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12332 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12333 (initialize_msdos_display): New function.
12334 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12335 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12336 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12337 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12338 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12339 (request_sigio, unrequest_sigio): Don't define, now defined on
12340 sysdep.c.
12341 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12342
12343 * term.c [MSDOS]: Include msdos.h.
12344 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12345 conditional to DOS_NT. Allow only one call to this function in a
12346 session. Don't allocate a new struct tty_display_info; instead,
12347 reuse the_only_display_info. Call get_tty_size to get screen
12348 dimensions. Call init_baud_rate to set bad_rate.
12349 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12350 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12351 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12352 (get_tty_terminal, get_named_tty, Ftty_type)
12353 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12354 output_termcap.
b8ff72fa
SM
12355 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12356 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12357 only when subprocesses are supported.
aac0c6e3
MR
12358
12359 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12360 f->output_data.x.
12361 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12362 terminal devices.
12363
5582fbc7 12364 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12365 x_output.
12366 (FRAME_FONT): Use output_data.tty.
12367 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12368 (struct x_display_info): Rename from display_info. Update all users in
12369 msdos.c.
aac0c6e3 12370 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12371 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12372 (dos_ttraw): Update prototype.
12373
12374 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12375 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12376
123772008-08-23 Jason Rumney <jasonr@gnu.org>
12378
12379 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12380 (fn_TIFFSetDirectory): New library function used.
12381 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12382 (tiff_load): Use :index to select among multiple images. Set count
12383 property when multiple images exist.
12384 (gif_format): Use :index, not :image.
12385
123862008-08-23 Chong Yidong <cyd@stupidchicken.com>
12387
12388 * xdisp.c (try_scrolling): Check INT_MAX instead of
12389 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12390 to obtain INT_MAX.
12391
123922008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12393
12394 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12395
123962008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12397
12398 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12399 GNUstep library location.
12400
124012008-08-21 Chong Yidong <cyd@stupidchicken.com>
12402
12403 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12404 before using it.
12405
12406 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12407
124082008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12409
12410 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12411 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12412 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12413 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12414 (EmacsApp-cursor_blink_handler): Remove declaration.
12415 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12416 match 01 Feb 2008 changes in xterm.c.
12417 (ns_read_socket): Add cast to avoid warning.
12418 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12419 GNUstep.
12420
124212008-08-20 Chong Yidong <cyd@stupidchicken.com>
12422
12423 * xselect.c (x_get_foreign_selection): Return nil if desired
12424 selection could not be obtained, instead of signalling an error.
12425
124262008-08-20 David Reitter <david.reitter@gmail.com>
12427
12428 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12429 * nsterm.m: Remove ns-specific code for cursor blinking.
12430 (ns_draw_window_cursor): Clear cursor properly rather than
12431 redrawing the area. Respect width of bar cursors.
12432 These changes enable the use of generic blink-cursor-mode and
12433 generic cursor types in NS and support smooth cursor movements (do
12434 not blink off after command).
12435 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12436 Nextstep, too.
12437
124382008-08-19 Kenichi Handa <handa@m17n.org>
12439
12440 * font.c (Vfont_log_deferred): New variable.
12441 (font_add_log): Check Vfont_log_deferred.
12442 (font_deferred_log): New function.
12443
12444 * font.h (font_deferred_log): Extern it.
12445
12446 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12447 for sorting.
12448 (face_for_char): Use deferred log.
12449
124502008-08-18 Kenichi Handa <handa@m17n.org>
12451
12452 * fontset.c (face_for_char): Add font log.
12453
12454 * font.c (font_add_log): Add the font properties :script, :lang,
12455 and :otf in the log.
12456
124572008-08-17 Chong Yidong <cyd@stupidchicken.com>
12458
12459 * xdisp.c: Remove dead code.
12460 (handle_invisible_prop, next_overlay_string): Defer call to
12461 setup_for_ellipsis.
12462 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12463
124642008-08-15 Chong Yidong <cyd@stupidchicken.com>
12465
12466 * xfaces.c (lookup_derived_face): Properly handle possible zero
12467 return value of get_lface_attributes.
12468 (merge_faces): Don't tell lookup_derived_face to signal an error
12469 if face is not found.
12470
12471 * dired.c (Fdirectory_files): Doc fix.
12472
12473 * process.c (make_process): Initialize kill_without_query struct
12474 member.
12475
124762008-08-15 Eli Zaretskii <eliz@gnu.org>
12477
12478 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12479 Alternative calculation of totphys for Visual Studio 6.
12480
12481 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12482
12483 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12484 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12485 All users changed.
12486 (stat): Only root directory passed to GetDriveType. Allow RAM
12487 disk as well as local fixed disk when w32-get-true-file-attributes
12488 is set to `local'.
12489 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12490 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12491 (w32_cached_id, w32_add_to_cache): New functions.
12492 (get_name_and_id): Look account names in the cache before calling
12493 lookup_account_sid.
12494 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12495 New initialization flags.
12496 (globals_of_w32): Initialize them to zero.
12497 (w32_system_process_attributes): Use w32_cached_id and
12498 w32_add_to_cache.
12499
125002008-08-14 Lawrence Mitchell <wence@gmx.li>
12501
12502 * lread.c (Fread_char, Fread_char_exclusive): If no character
12503 event is read before timeout is reached, return nil, rather than
12504 converting to a number.
12505
125062008-08-14 Chong Yidong <cyd@stupidchicken.com>
12507
12508 * fns.c (use_dialog_box): Doc fix.
12509
12510 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12511 on OS X.
12512
125132008-08-13 Chong Yidong <cyd@stupidchicken.com>
12514
12515 * frame.c (Qns_parse_geometry): New var.
12516 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12517
125182008-08-11 Chong Yidong <cyd@stupidchicken.com>
12519
12520 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12521 space character in calculating tabs.
12522
125232008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12524
12525 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12526
125272008-08-10 Glenn Morris <rgm@gnu.org>
12528
12529 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12530 silence gcc "limited range of data type" warnings in some
12531 make_fixnum_or_float calls.
12532
125332008-08-09 Eli Zaretskii <eliz@gnu.org>
12534
12535 * w32.c (w32_system_process_attributes): If the process does not
12536 exist, return nil.
12537
12538 * w32.c: Include thelp32.h, psapi.h and coding.h.
12539 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12540 declarations.
12541 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12542 (Process32Next_Proc): New typedefs.
12543 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12544 (g_b_init_process32_next, g_b_init_open_thread_token)
12545 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12546 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12547 (g_b_init_get_process_working_set_size)
12548 (g_b_init_global_memory_status_ex): New static variables.
12549 (globals_of_w32): Initialize them.
12550 (create_toolhelp32_snapshot, process32_first, process32_next)
12551 (open_thread_token, impersonate_self, revert_to_self)
12552 (get_process_memory_info, get_process_working_set_size)
12553 (global_memory_status, global_memory_status_ex): New wrapper
12554 functions.
12555 (w32_list_system_processes, w32_system_process_attributes)
12556 (enable_privilege, restore_privilege, ltime, process_times):
12557 New functions.
12558 (convert_time_raw): New function.
12559 (convert_time): Remove conversion of FILETIME into time in 100
12560 nsec units, call convert_time_raw instead.
12561
12562 * process.h (w32_list_system_processes, w32_system_process_attributes):
12563 Add prototypes.
12564 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12565 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12566 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12567 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12568
12569 * process.c (Fsystem_process_attributes): Doc fix.
12570
125712008-08-08 Chong Yidong <cyd@stupidchicken.com>
12572
12573 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12574 a continued multi-char glyph; if so, advance to the actual glyph.
12575
125762008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12577
12578 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12579
12580 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12581 (.m.o): Use it.
12582 * config.in: Regenerate.
12583
125842008-08-07 Chong Yidong <cyd@stupidchicken.com>
12585
12586 * xdisp.c (redisplay_window): Revert last change.
12587 (try_window): Check bottom scroll margin too.
12588
125892008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12590
12591 * config.in: Regenerate.
12592
12593 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12594 -list-load-path-shadows'.
12595 (nsgui.h): Reduce number of things depending on it.
12596
125972008-08-06 Chong Yidong <cyd@stupidchicken.com>
12598
12599 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12600 instead of window-end which does the wrong thing at eob.
12601 (try_cursor_movement): Minor optimization.
12602 (redisplay_window): If scroll margin is defined, don't assume
12603 window doesn't need scrolling.
12604
126052008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12606
12607 * config.in: Regenerate.
12608
12609 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12610 (mostlyclean): Don't delete *.d under NS.
12611
12612 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12613
126142008-08-06 Kenichi Handa <handa@m17n.org>
12615
12616 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12617
126182008-08-06 Andreas Schwab <schwab@suse.de>
12619
12620 * config.in: Regenerate.
12621
126222008-08-05 Chong Yidong <cyd@stupidchicken.com>
12623
12624 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12625 forcing a window start.
12626
12627 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12628 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12629
126302008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12631
12632 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12633 argument.
12634
126352008-08-05 Juanma Barranquero <lekktu@gmail.com>
12636
12637 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12638 <scroll-down-aggressively, before-change-functions>:
12639 <after-change-functions>: Reflow docstrings.
12640
126412008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12642 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12643
12644 Dock menu customization, based on a patch by Ken Raeburn, plus some
12645 other fixes.
12646 * nsmenu.m (dockMenu): New variable.
12647 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12648
12649 * nsterm.h (dockMenu): Declare.
12650
12651 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12652 (ns_term_init): Initialize dockMenu.
12653 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12654 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12655 left.
12656
12657 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12658
126592008-08-04 Chong Yidong <cyd@stupidchicken.com>
12660
12661 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12662
12663 * config.in: Regenerate.
12664
126652008-08-04 Seiji Zenitani <zenitani@mac.com>
12666
12667 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12668
126692008-08-04 Chong Yidong <cyd@stupidchicken.com>
12670
12671 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12672
126732008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12674
12675 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12676
12677 * keyboard.h: Comment an #endif.
12678
12679 * lisp.h (have_menus_p): Adjust comment.
12680
12681 * menu.c (find_and_return_menu_selection): Fix comparison with
12682 client_data.
12683
12684 * nsmenu.m (popup_activated_flag): New variable.
12685 (popup_activated): New function.
12686 (menu-or-popup-active-p): New exported lisp definition.
12687 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12688 when popup done.
12689 (ns_popup_dialog): Set popup_activated_flag.
12690
12691 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12692 version for GNUstep (handled by conditional typedef in nsterm.m).
12693 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12694 in rgb.txt).
12695
12696 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12697
12698 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12699
12700 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12701
12702 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12703 shortcircuit if popup_activated like GTK and X toolkit.
12704
12705 * m/inter386.h: Change DARWIN to DARWIN_OS.
12706
12707 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12708 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12709 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12710 comment on NO_SOCK_SIGIO.
12711
127122008-08-03 Chong Yidong <cyd@stupidchicken.com>
12713
12714 * nsterm.m (windowDidResize): Remove stopModal call.
12715
127162008-08-03 Andreas Schwab <schwab@suse.de>
12717
12718 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12719 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12720
127212008-08-02 Chong Yidong <cyd@stupidchicken.com>
12722
12723 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12724 Don't use uninitialized pointer variable when using getrlimit.
12725
127262008-08-02 Jason Rumney <jasonr@gnu.org>
12727
12728 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12729
127302008-08-02 Eli Zaretskii <eliz@gnu.org>
12731
12732 * alloc.c (NSTATICS): Bump to 0x640.
12733
12734 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12735
12736 * lisp.h: Add prototype for directory_files_internal.
12737
12738 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12739 New functions.
12740 (syms_of_process): Defsubr them. Add initializations for various
12741 Q* symbols used in procfs_system_process_attributes.
12742 (procfs_list_system_processes, procfs_system_process_attributes)
12743 [HAVE_PROCFS]: New functions.
12744 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12745 (procfs_get_total_memory): New functions.
12746
127472008-08-01 Juanma Barranquero <lekktu@gmail.com>
12748
12749 * xfaces.c (Fx_load_color_file): Fix previous change;
12750 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12751
127522008-08-01 Michael Albinus <michael.albinus@gmx.de>
12753
12754 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12755
127562008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12757
12758 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12759
127602008-08-01 Chong Yidong <cyd@stupidchicken.com>
12761
12762 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12763
12764 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12765 define NSApplicationDelegateReplySuccess.
12766 (EmacsView -converstationIdentifier): Use long instead of
12767 NSInteger for GNUstep, since it doesn't have NSInteger.
12768
12769 * xmenu.c: Revert last change.
12770
12771 * keyboard.h: Fix last change.
12772
127732008-08-01 Juanma Barranquero <lekktu@gmail.com>
12774
12775 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12776 on Windows.
12777
127782008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12779
12780 Warning clearing and clean-up in NS port.
12781 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12782 Add prototypes.
12783 * nsgui.h (FACE_DEFAULT): Remove, unused.
12784 (XGCValues): Change colors to unsigned long.
12785 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12786 nsterm.m.
12787 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12788 (ns_list_fonts): Remove, unused.
12789 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12790 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12791 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12792 (nsfont_draw): Compare face colors to 0, not nil.
12793 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12794 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12795 (-addSubmenuWithTitle:): Use NSMenuItem class.
12796 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12797 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12798 (ns_clip_to_row): Make gc arg a BOOL.
12799 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12800 ns_clip_to_row() call.
12801 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12802 used). Cast FRAME_FONT assignments.
12803 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12804 (ns_string_to_lispmod): Change arg to const char.
12805 (ns_term_init): Use NSMenuItem class.
12806 (EmacsApp -openFile:): Move to different section of file.
12807 (EmacsApp -application:openFiles:): Don't return a value, call
12808 -replyToOpenOrPrint:.
12809 (EmacsView -keyDown:): Fix up cast.
12810 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12811 (EmacsView -menuDown:): Cast tag in call to
12812 find_and_call_menu_selection().
12813 (ns_list_fonts): Remove, unused.
12814 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12815 (ns_fontname_to_xlfd): Make static.
12816 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12817 Remove prototypes (now in keyboard.h).
12818 (next_menubar_widget_id): Remove, unused.
12819 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12820 Remove prototypes (now in keyboard.h).
12821 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12822
128232008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12824
12825 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12826 (floatfns.o): Depend on syssignal.h.
12827 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12828
12829 * systty.h: Fix previous change that removed BSD_TERMIOS.
12830 Add comments to #ifdefs.
12831
128322008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12833
12834 * w32fns.c (w32-load-color-file): Remove.
12835 (x-open-connection): Use renamed Fx_load_color_file.
12836 * xfaces.c (x-load-color-file): Add.
12837 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12838 Emacs.clr.
12839 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12840
128412008-07-31 Michael Albinus <michael.albinus@gmx.de>
12842
12843 * dbusbind.c (Fdbus_call_method_asynchronously)
12844 (Fdbus_method_error_internal): New defuns.
12845 (xd_read_message): Handle also reply messages.
12846 (Vdbus_registered_functions_table): Extend docstring.
12847
128482008-07-31 Juanma Barranquero <lekktu@gmail.com>
12849
12850 * keyboard.c (gobble_input): Fix previous change.
12851
128522008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12853
12854 * bitmaps/README:
12855 * xfns.c:
12856 * termcap.c:
12857 * term.c:
12858 * syswait.h:
12859 * systty.h:
12860 * systime.h:
12861 * syssignal.h:
12862 * sysdep.c:
12863 * process.h:
12864 * process.c:
12865 * print.c:
12866 * ndir.h:
12867 * lread.c:
12868 * keyboard.c:
12869 * getpagesize.h:
12870 * floatfns.c:
12871 * fileio.c:
12872 * emacs.c:
12873 * doc.c:
12874 * dispnew.c:
12875 * dired.c:
12876 * data.c:
12877 * callproc.c:
12878 * buffer.c:
12879 * README:
12880 * Makefile.in:
12881 * s/template.h:
12882 * s/msdos.h:
12883 * m/vax.h: Remove VMS support.
12884 * s/vms.h:
12885 * vlimit.h:
12886 * uaf.h:
12887 * temacs.opt:
12888 * param.h:
12889 * ioctl.h: Remove file.
12890
128912008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12892
12893 * s/ms-w32.h (MULTI_KBOARD): Remove.
12894 * xterm.c:
12895 * xselect.c:
12896 * xfns.c:
12897 * window.c:
12898 * w32term.c:
12899 * w32fns.c:
12900 * terminal.c:
12901 * termhooks.h:
12902 * term.c:
12903 * sysdep.c:
12904 * keyboard.h:
12905 * keyboard.c:
12906 * frame.h:
12907 * frame.c:
12908 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12909 * config.in: Regenerate.
12910
129112008-07-30 Jason Rumney <jasonr@gnu.org>
12912
12913 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
12914
12915 * w32font.c (w32font_encode_char): Leave as unicode if in range.
12916 (w32font_open_internal): Get unicode version of textmetrics.
12917 Don't enable or disable glyph indices here.
12918 (w32font_open): Disable use of glyph indices.
12919
12920 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
12921
129222008-07-30 Chong Yidong <cyd@stupidchicken.com>
12923
12924 * minibuf.c (Vread_buffer_function): Doc fix.
12925
129262008-07-30 John Paul Wallington <jpw@pobox.com>
12927
12928 * minibuf.c (read_buffer_completion_ignore_case): New var.
12929 (Fread_buffer): Use it.
12930
129312008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
12932
12933 * systty.h (sensemode): Remove empty #if. Remove reference to
12934 BSD_TERMIOS, unused.
12935
12936 * sysdep.c: Remove reference to DGUX.
12937 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
12938
12939 * config.in: Regenerate.
12940
129412008-07-30 Jason Rumney <jasonr@gnu.org>
12942
12943 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
12944
129452008-07-29 Jason Rumney <jasonr@gnu.org>
12946
12947 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
12948 is populated.
12949 (uniscribe_encode_char): Always use uniscribe.
12950 Avoid using context if cache is populated.
12951
129522008-07-29 Jan Djärv <jan.h.d@swipnet.se>
12953
12954 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
12955 open menu.
12956
12957 * gtkutil.c (menu_nav_ended): Remove.
12958 (create_menus): Remove signal connect for menu_nav_ended.
12959
129602008-07-28 Chong Yidong <cyd@stupidchicken.com>
12961
12962 * xdisp.c (redisplay_window): Check return value of
12963 compute_window_start_on_continuation_line before forcing a window
12964 start.
12965
129662008-07-28 Jason Rumney <jasonr@gnu.org>
12967
12968 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
12969
12970 * w32term.c (w32_enable_unicode_output, cleartype_active):
12971 Remove obsolete display options.
12972 (x_draw_glyph_string_background): Don't use old cleartype_active
12973 workaround.
12974 (w32_initialize): Remove cleartype_active initialization.
12975 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
12976
129772008-07-28 Andreas Schwab <schwab@suse.de>
12978
12979 * lisp.h (init_weak_hash_tables, syms_of_font)
12980 (xd_read_queued_messages, syms_of_dbusbind): Declare.
12981 (remove_hash_entry): Don't declare.
12982 * eval.c (maybe_call_debugger): Make static and move before use.
12983 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
12984 * xdisp.c: Include "gtkutil.h" if USE_GTK.
12985 * xterm.h (x_set_frame_alpha): Declare.
12986
129872008-07-28 Jan Djärv <jan.h.d@swipnet.se>
12988
12989 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
12990 (create_menus): Connect selection-done to menu_nav_ended.
12991
129922008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12993
12994 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
12995 Set Vx_resource_name to a fallback. Replace read of 'buffered'
12996 parameter with read of 'alpha' one.
12997 (Qns_frame_parameter): Remove.
5582fbc7 12998 * nsselect.m (selection-coding-system)
aac0c6e3
MR
12999 (next-selection-coding-system, Vselection_coding_system)
13000 (Vnext_selection_coding_system): Drop.
13001
130022008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13003
13004 * nsfns.m (do-applescript, do_applescript): Rename to
13005 ns-do-applescript, ns_do_applescript, and move within file.
13006
130072008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13008
13009 Remove support for Mac Carbon.
13010 * mactoolbox.c:
13011 * macterm.h:
13012 * macterm.c:
13013 * macselect.c:
13014 * macmenu.c:
13015 * macgui.h:
13016 * macfns.c:
13017 * mac.c: Remove file.
13018 * s/darwin.h:
13019 * m/intel386.h:
13020 * xfaces.c:
13021 * xdisp.c:
13022 * window.c:
13023 * tparam.c:
13024 * termhooks.h:
13025 * termcap.c:
13026 * term.c:
13027 * syssignal.h:
13028 * sysselect.h:
13029 * sysdep.c:
13030 * process.c:
13031 * lread.c:
13032 * lisp.h:
13033 * keyboard.c:
13034 * image.c:
13035 * fringe.c:
13036 * frame.h:
13037 * frame.c:
13038 * fontset.c:
13039 * font.h:
13040 * font.c:
13041 * fns.c:
13042 * fileio.c:
13043 * emacs.c:
13044 * dispnew.c:
13045 * dispextern.h:
13046 * config.in:
13047 * atimer.c:
2ae37cf0 13048 * Makefile.in: Remove code for Carbon.
aac0c6e3 13049
f0131492 130502008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13051
13052 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13053
130542008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13055
13056 * macterm.h (kCGBitmapByteOrder32Host): New define for
13057 non-universal SDKs.
13058
13059 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13060 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13061
13062 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13063 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13064
130652008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13066
13067 * w32inevt.c: Include dispextern.h.
13068
130692008-07-26 Andreas Schwab <schwab@suse.de>
13070
13071 * print.c (print_object): Fix off-by-one in last change.
13072
130732008-07-25 Juanma Barranquero <lekktu@gmail.com>
13074
13075 * term.c (syms_of_term): Don't initialize default_orig_pair,
13076 default_set_foreground and default_set_background on Windows.
13077
130782008-07-25 Jason Rumney <jasonr@gnu.org>
13079
13080 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13081 ScriptItemize. Clean up return value checking. Remove unused
13082 variables.
13083 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13084 shaping engine.
13085
13086 * w32font.c (w32font_has_char): Handle the case where we can't
13087 determine the script for a character.
13088
130892008-07-25 Chong Yidong <cyd@stupidchicken.com>
13090
13091 * term.c (syms_of_term): Initialize default_orig_pair,
13092 default_set_foreground, and default_set_background.
13093
13094 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13095 clash (bug#86).
13096 (getloadavg): Callers changed.
13097
13098 * image.c (svg_load_image): Fix last change.
13099 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13100 image size is valid. Use g_object_unref instead of deprecated
13101 rsvg_handle_free to free rsvg handle.
13102 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13103
131042008-07-25 Jason Rumney <jasonr@gnu.org>
13105
13106 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13107 surrogates before looking up glyph index.
13108 (w32font_text_extents): Encode as surrogates if falling back to
13109 functions that need UTF-16 wide chars.
13110
13111 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13112 BMP as surrogates before looking up glyph index.
13113
131142008-07-25 Chong Yidong <cyd@stupidchicken.com>
13115
13116 * image.c (svg_load_image): Check for failure in return value of
13117 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13118
131192008-07-25 Jason Rumney <jasonr@gnu.org>
13120
13121 * w32font.c (Fx_select_font): Reverse sense of second arg.
13122
131232008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13124
13125 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13126 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13127
13128 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13129 (PURESIZE): Use it.
13130
131312008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13132
13133 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13134 * m/alpha.h (TEXT_END):
13135 * m/ibmrs6000.h (TEXT_END):
13136 * m/macppc.h (TEXT_END):
13137 * s/darwin.h (TEXT_END):
13138 * s/msdos.h (TEXT_END): Remove, unused.
13139 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13140 * s/cygwin.h: Remove comment.
13141
13142 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13143 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13144 * m/intel386.h (DOT_GLOBAL_START):
13145 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13146 (USG): Remove, file not used on USG platforms.
13147
13148 * Makefile.in (HAVE_X11): Remove empty #else.
13149
131502008-07-24 Andreas Schwab <schwab@suse.de>
13151
13152 * fileio.c (Finsert_file_contents): Properly adjust undo list
13153 after format conversion.
13154
131552008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13156
13157 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13158 (menu_nav_ended): Remove.
13159 (create_menus): Remove signal connect for menu_nav_ended.
13160 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13161 create_menus.
13162 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13163
131642008-07-23 Jason Rumney <jasonr@gnu.org>
13165
13166 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13167 with opened font.
13168 (w32font_open): Set font type to gdi.
13169
13170 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13171
131722008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13173
13174 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13175 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13176 defines it.
13177 * unexec.c (ADDR_CORRECT): Define unconditionally.
13178
13179 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13180
13181 * unexec.c: Remove code depending on !COFF and USG, the file is
13182 not used for such systems.
13183
13184 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13185 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13186 (LD_SWITCH_SYSTEM_1): Remove, update users.
13187
13188 * s/darwin.h (DATA_END):
13189 * m/intel386.h (DATA_END):
13190 * m/ibmrs6000.h (DATA_END):
13191 * m/alpha.h (DATA_END): Remove, unused.
13192
13193 * config.in: Regenerate.
13194 * s/ms-w32.h (subprocesses): Define unconditionally.
13195 * s/template.h (subprocesses): Update comment.
13196 * s/vms.h (subprocesses):
13197 * s/usg5-4.h (subprocesses):
13198 * s/hpux10-20.h (subprocesses):
13199 * s/gnu-linux.h (subprocesses):
13200 * s/cygwin.h (subprocesses):
13201 * s/bsd-common.h (subprocesses):
13202 * s/aix4-2.h (subprocesses):
13203 * s/darwin.h (subprocesses): Do not define, defined by default now.
13204
13205 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13206 Remove all references.
13207 (temacs): Add GNUstep specific ld flags.
13208
13209 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13210 similarly to what X does.
13211
132122008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13213
13214 * nsfns.m (x-list-fonts): Remove.
13215 (syms_of_nsfns): Drop the x-list-fonts declaration.
13216 * nsterm.m: Get rid of remaining "//" comments.
13217
132182008-07-22 Chong Yidong <cyd@stupidchicken.com>
13219
13220 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13221
13222 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13223 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13224 (Fns_own_selection_internal, Fx_disown_selection_internal)
13225 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13226
13227 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13228 ... */' style of docstrings. Doc fixes.
13229
132302008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13231
13232 * terminfo.c (UP, BC, PC): Undo previous change.
13233
13234 * nsfns.m: Rename ns prefixed functions/variables to the
13235 corresponding x versions. Update references.
13236
132372008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13238
13239 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13240
132412008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13242
13243 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13244 Remove forwarding functions.
13245 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13246 non-static.
13247 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13248 non-static.
13249 (ns_frame_parm_handlers): Use the new names.
13250 (syms_of_nsfns): Move to the end of file.
13251
13252 * nsterm.m (syms_of_nsterm): Move to the end of file.
13253
13254 * dispnew.c (init_display): Remove code for X10.
13255
132562008-07-22 Jason Rumney <jasonr@gnu.org>
13257
13258 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13259 bare drive.
13260
132612008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13262
13263 * nsterm.m (syms_of_nsterm): Remove debugging println.
13264
132652008-07-22 David Reitter <david.reitter@gmail.com>
13266
13267 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13268 Carbon implementation of the same functionality: execute arbitrary
13269 AppleScript code.
13270
132712008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13272
13273 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13274 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13275 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13276 (Fx_display_mm_height, Fx_display_mm_width)
13277 (Fx_display_backing_store, Fx_display_visual_class)
13278 (Fx_display_save_under, Fx_open_connection)
13279 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13280 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13281 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13282 (Fx_display_pixel_width, Fx_display_pixel_height)
13283 (Fx_display_usable_bounds, Fx_display_planes)
13284 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13285 ... */' style of docstrings.
13286
132872008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13288
13289 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13290 on this platform.
13291 (mips):
13292 * m/iris4d.h (mips): Do not define.
13293 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13294
13295 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13296
13297 * image.c:
13298 * nsfns.m:
13299 * nsselect.m:
13300 * nsterm.h:
13301 * nsterm.m: Rename ns prefixed functions/variables to the
13302 corresponding x versions. Update references.
13303
13304 * m/ibms390x.h (NO_REMAP): Do not undefine.
13305
13306 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13307
133082008-07-21 Chong Yidong <cyd@stupidchicken.com>
13309
13310 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13311 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13312 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13313 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13314 (Fns_display_mm_height, Fns_display_mm_width)
13315 (Fns_display_backing_store, Fns_display_visual_class)
13316 (Fns_display_save_under, Fns_open_connection)
13317 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13318 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13319 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13320 (Fns_display_pixel_width, Fns_display_pixel_height)
13321 (Fns_display_usable_bounds, Fx_display_planes)
13322 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13323
133242008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13325
13326 * print.c (print_object): Check print_depth before searching for
13327 circularities.
13328
133292008-07-21 Michael Albinus <michael.albinus@gmx.de>
13330
13331 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13332 only sprintf.
13333
133342008-07-21 Kenichi Handa <handa@m17n.org>
13335
13336 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13337
133382008-07-20 Andreas Schwab <schwab@suse.de>
13339
13340 * syntax.c (find_start_pos, find_start_value)
13341 (find_start_value_byte, find_start_begv, find_defun_start)
13342 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13343
133442008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13345
13346 * s/sol2-3.h: Insert contents of s/sol2.h.
13347 (LD_SWITCH_SYSTEM): Remove redundant definition.
13348 * s/sol2.h: Remove, unused.
13349
133502008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13351
13352 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13353
133542008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13355
13356 * Makefile.in (ns_appdir): Fix typo in find command.
13357
133582008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13359
13360 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13361
13362 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13363 added not supported anymore.
13364
13365 * s/usg5-4-2.h (LIBS_SYSTEM):
13366 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13367
13368 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13369 * s/lynxos.h (GETPGRP_NO_ARG):
13370 * s/hpux10-20.h (NO_SIOCTL_H):
13371 * s/gnu.h (GETPGRP_NO_ARG):
13372 * s/gnu-linux.h (NO_SIOCTL_H):
13373 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13374 * s/cygwin.h (GETPGRP_NO_ARG):
13375 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13376 (C_DEBUG_SWITCH): Remove duplicate definition.
13377
13378 * m/ibms390.h: Remove boilerplate comments.
13379
13380 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13381
13382 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13383 (wait_reading_process_output): Remove code for SunOS, platform not
13384 supported anymore. Use SOLARIS2 instead of sun.
13385
133862008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13387
13388 * font.c (font_open_by_name): Under NS, default lface height to zero.
13389 (font_open_for_lface): Under NS, set size based on frame fontsize.
13390 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13391 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13392
133932008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13394
13395 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13396 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13397 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13398 YES/NO.
13399 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13400 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13401 * Makefile.in (clean): Clear out build destination dir.
13402
134032008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13404
13405 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13406 xterm, xselect.
13407 * lisp.h: Remove declaration of hash_remove.
13408 * nsgui.h: Remove redefinitions of hash_remove.
13409 * fns.c (hash_remove): Rename to hash_remove_from_table.
13410
134112008-07-19 Seiji Zenitani <zenitani@mac.com>
13412
13413 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13414 strdup() the family UTF8String before modifying it.
13415
134162008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13417
13418 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13419 NS_FACE_BACKGROUND with 0 instead of nil.
13420 * nsfont.m (nsfont_draw): Same.
13421
134222008-07-19 Chong Yidong <cyd@stupidchicken.com>
13423
13424 * nsfns.m (ns_set_background_color): Fix crash.
13425
134262008-07-18 Chong Yidong <cyd@stupidchicken.com>
13427
13428 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13429
134302008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13431
13432 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13433
134342008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13435
13436 * gtkutil.c: Include <config.h> instead of "config.h".
13437
13438 * lisp.h (Foverlay_buffer): Add EXFUN.
13439
13440 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13441 child process to complete child_setup. Undo 2005-09-21 change.
13442
13443 * s/darwin.h: Mention setsid after vfork.
13444
134452008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13446
13447 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13448 Depend on macgui.h.
13449
13450 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13451 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13452
13453 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13454 and f19.
13455 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13456
13457 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13458 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13459 Remove enumerators.
13460
13461 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13462 Check if FACE_FROM_ID returns NULL.
13463
134642008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13465
13466 * w32inevt.c (change_frame_size): Remove extern declaration.
13467 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13468 change_frame_size.
13469
134702008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13471
13472 * getloadavg.c: Revert last change (2008-07-15).
13473
134742008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13475
13476 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13477 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13478 from configure.
13479
134802008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13481
13482 * s/sol2.h:
13483 * s/sol2-4.h: Reorganize conditionals.
13484
13485 * ecrt0.c: Remove code depending on m68000, not used anymore.
13486
13487 * fns.c (hash_remove): Make static.
13488 * lisp.h (hash_remove): Don't prototype.
13489
13490 * m/ibmrs6000.h:
13491 * m/ibms390x.h:
13492 * m/macppc.h: Remove boilerplate comments.
13493
13494 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13495 Solaris, which does not need them.
13496
13497 * m/vax.h: Remove comments about unsupported systems.
13498
13499 * s/darwin.h: Reorganize ifdefs.
13500
135012008-07-17 Andreas Schwab <schwab@suse.de>
13502
13503 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13504
135052008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13506
13507 Use SDATA. Follow coding convention of placing operators at
13508 beginning of next line rather than end of previous line, and placing
13509 spaces around infix operators.
13510
13511 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13512 in case it was defined already.
13513 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13514 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13515 ns_default.
13516 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13517 Lisp_Objects.
13518 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13519 (ns_defined_color, ns_color_to_lisp): Declare.
13520 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13521 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13522 it's accepted even with USE_LISP_UNION_TYPE.
13523 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13524 (update_frame_tool_bar): Remove apparently obsolete tests for
13525 non-integerness of f->tool_bar_lines.
13526 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13527 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13528 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13529 (nsfont_open): Don't confuse NULL for Qnil.
13530 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13531 * menu.h (find_and_call_menu_selection):
13532 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13533 (find_and_return_menu_selection): Always return something.
13534 * frame.h: Include dispextern.h for Display_Info.
13535 (display_x_get_resource): Declare.
13536
135372008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13538
13539 * syntax.c: Remove stdio.h include accidentally introduced in
13540 Emacs.app commit.
13541 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13542 NS_IMPL_COCOA.
13543 * keyboard.c (handle_async_input, input_available_signal): Remove
13544 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13545
135462008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13547
13548 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13549 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13550 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13551 Use SDATA.
13552
13553 * keymap.c: Remove all NS-specific code.
13554 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13555 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13556 where_is_preferred_modifier, return a different value depending on how
13557 preferred is the binding.
13558 (where_is_internal): Adjust accordingly.
13559 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13560 Adjust to new preferred_sequence_p.
13561 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13562 * keyboard.c (parse_solitary_modifier): Not static any more.
13563 * keyboard.h (parse_solitary_modifier): Declare.
13564
135652008-07-16 Andreas Schwab <schwab@suse.de>
13566
13567 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13568 of easymenu.
13569
135702008-07-16 Chong Yidong <cyd@stupidchicken.com>
13571
13572 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13573 that we don't move off the line.
13574
135752008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13576
13577 * keyboard.c (Qsuper): Remove.
13578 (parse_menu_item): Don't call where_is_internal specially for NS.
13579
135802008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13581
13582 * s/gnu-linux.h: Remove boilerplate comments.
13583
13584 * m/alpha.h (__ELF__): Consolidate conditions.
13585
13586 * m/m68k.h (linux): Use GNU_LINUX instead.
13587 Remove boilerplate comments.
13588
13589 * m/intel386.h: Undo refactoring from previous change.
13590 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13591 too, remove dead code.
13592 (linux): Use GNU_LINUX instead.
13593
135942008-07-16 Jason Rumney <jasonr@gnu.org>
13595
13596 * w32gui.h: Repeat 26 June changes lost by last change.
13597
135982008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13599
13600 * systty.h: Remove code for Aix on 386, unsupported platform.
13601
13602 * s/ms-w32.h: Remove boilerplate comments.
13603 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13604
13605 * s/gnu-linux.h (TERM): Remove support.
13606 (HAVE_SYSVIPC): Remove, unused.
13607 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13608 for this system.
13609
13610 * process.c: Remove support for IRIS, unused.
13611 Remove support for TERM, not relevant anymore.
13612
13613 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13614 used with the definition.
13615
13616 * s/aix4-2.h (static): Do not undef.
13617
13618 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13619 only used on Aix.
13620 (HAVE_SYSVIPC): Remove, unused.
13621
13622 * m/hp800.h (CANNOT_DUMP): Do not undef.
13623
13624 * m/alpha.h: Fix comment.
13625
13626 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13627 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13628 used by this configuration.
13629 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13630 * unexec.c: Remove code depending on HPUX and
13631 USG_SHARED_LIBRARIES, not used with this file. Remove code
13632 depending on IRIS, unused. Remove if 0-ed code.
13633
13634 * s/template.h: Remove comments about static.
13635
13636 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13637 Remove if 0-ed code.
13638 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13639 were the same as the default.
13640 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13641 Remove boilerplate comments.
13642 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13643 (HAVE_SYSVIPC): Remove, unused.
13644 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13645
13646 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13647 Remove boilerplate comments.
13648 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13649 Remove boilerplate comments.
13650 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13651 Remove boilerplate comments.
13652 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13653
13654 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13655 USG systems which do not use DATA_SEG_BITS.
13656 Refactor code. Remove boilerplate comments.
13657
13658 * m/ibms390.h:
13659 * m/m68k.h:
13660 * s/bsd-common.h:
13661 * s/cygwin.h:
13662 * s/darwin.h:
13663 * s/freebsd.h:
13664 * s/gnu.h:
13665 * s/msdos.h: Remove boilerplate comments.
13666
13667 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13668 do not use this file.
aac0c6e3
MR
13669 (IRIS_4D): Remove, unused.
13670
13671 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13672 do not use this file.
aac0c6e3
MR
13673 (SIGN_EXTEND_CHAR):
13674 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13675 * unexmips.c: Remove file, unused.
13676
13677 * editfns.c (Fuser_full_name): Replace the only use of
13678 USER_FULL_NAME with its value.
13679 * config.in: Regenerate.
13680
136812008-07-16 David Reitter <david.reitter@gmail.com>
13682
13683 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13684 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13685
136862008-07-16 Glenn Morris <rgm@gnu.org>
13687
13688 * emacs.c (system-type): Doc fix.
13689
136902008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13691
13692 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13693 If the cache doesn't work, let's fix it, rather than work around it.
13694
136952008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13696
13697 * Makefile.in: Correct additions for nsfont.o in last commit.
13698 * nsfont.m: New file (forgot last commit).
13699
137002008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13701
13702 * callproc.c (set_initial_environment): Initialize
13703 Vprocess_environment under CANNOT_DUMP (fixes crash when
13704 batch-compiling for bootstrap).
13705
137062008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13707 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13708
c4cc8b9a
JB
13709 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13710 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13711
137122008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13713
13714 Changes and additions for NeXTstep windowing system (Cocoa and
13715 GNUstep) support.
13716
13717 * Makefile.in:
13718 * config.in: Support defines and build commands for NS port.
13719 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13720 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13721 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13722 windowing.
13723 (struct face): Add synth_ital field.
13724 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13725 (init_display): Initialize Vinitial_window_system to "ns" when so
13726 compiled.
13727 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13728 (display_arg): Use under NS.
13729 (main): Under NS, allocate autorelease pool and handle command line
13730 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13731 (standard_args): Add NS-specific args.
13732 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13733 * font.c (DEFAULT_ENCODING): New variable.
13734 (font_find_for_lface): Use it.
13735 (syms_of_font): Load syms_of_nsfont under NS.
13736 * font.h: Declare nsfont_driver when compiled under NS.
13737 * fontset.c: When compiling under NS, include nsterm.h.
13738 (fontset_from_font): Autoconstruct fontset under NS.
13739 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13740 symbol, document and use it.
13741 (do_switch_frame): When for_deletion under Cocoa, add
13742 Fraise_frame(Qnil).
13743 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13744 (x_get_arg): Allow "yes" and "no" as boolean values.
13745 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13746 Qright under Cocoa.
13747 (focus-follows-mouse): Default to 0 under NS.
13748 * frame.h (enum output_method): Add output_ns.
13749 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13750 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13751 (FRAME_WINDOW_P): NS-specific definition.
13752 * fringe.c (max_used_fringe_bitmap): Make public.
13753 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13754 (getloadavg): Use NeXT code under descendant OS's.
13755 * image.c (includes and header section, x_create_bitmap_from_data)
13756 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13757 (image_background_transparent, x_clear_image_1)
13758 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13759 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13760 (x_to_xcolors, x_from_xcolors, x_disable_image)
13761 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13762 other GUIs, including XPM support using code originally written for
13763 Carbon GUI.
13764 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13765 using NS API.
13766 (image_ascent): Use font metrics macros instead of direct struct field
13767 access.
13768 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13769 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13770 Also, handle NS as GTK for menu bar purposes.
13771 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13772 toolkit where they differ.
13773 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13774 use cachelist, still needed under NS.
13775 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13776 (struct widget_value): Define it here for menu.c.
13777 * keymap.c (includes): Include modifier internals.
13778 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13779 NS.
13780 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13781 support for preferring sequences using certain modifiers, specified by
13782 the FIRSTONLY argument.
13783 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13784 under NS GNUstep implementation.
13785 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13786 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13787 * menu.c: Include nsterm.h under NS.
13788 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13789 (free_menubar_widget_tree_value, update_submenu_strings)
13790 (find_and_call_menu_selection): Treat NS as X and NT.
13791 (find_and_return_menu_selection): New function, used for popup menus.
13792 * nsgui.h:
13793 * nsterm.h:
13794 * nsfns.m:
13795 * nsimage.m:
13796 * nsmenu.m:
13797 * nsselect.m:
13798 * nsterm.m: New files.
13799 * process.c (wait_reading_process_output): Under NS, call ns_select()
13800 instead of plain select().
13801 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13802 beginning of buffer.
13803 * sysselect.h (init_process): Rename when compiling under Cocoa to
13804 avoid name conflict.
13805 * termhooks.h (display_info): Add ns_display_info to union.
13806 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13807 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13808 COCOA environment.
13809 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13810 unexec() signature. (Note, this will dump, but the resulting file
13811 crashes; unexosx is used instead; keeping around for reference and
13812 possible aid in getting dump working under GNUstep.)
13813 * w32gui.h (button_type, widget_value): Remove definitions (now in
13814 keyboard.h).
13815 * window.c: Include nsterm.h when compiling under NS.
13816 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13817 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13818 other GUI windowing systems.
13819 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13820 GTK.
13821 (x_consider_frame_title): Under NS, set icon type and frame
13822 modified-state indicator; use ns_set_name_as_filename() when using
13823 formatted title.
13824 (update_window_cursor): Make public when compiling under NS.
13825 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13826 (hourglass_atimer, Vhourglass_delay
13827 * xfaces.c (header section, init_frame_faces, clear_font_table)
13828 (defined_color, unload_color, x_face_list_fonts)
13829 (prepare_face_for_display): Add NS support parallel to other GUIs.
13830 Emulate GCs like other non-X GUIs.
13831 (split_font_name): Don't lowercase font name under NS.
13832 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13833 under NS.
13834 * s/darwin.h: Add support for compilation under NS.
13835
138362008-07-15 Jason Rumney <jasonr@gnu.org>
13837
13838 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13839 (w32_show_hourglass): Rename from show_hourglass.
13840 (w32_hide_hourglass): Rename from hide_hourglass.
13841 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13842 (Vhourglass_delay): Declare extern.
13843 (hourglass_started): Remove.
13844
13845 * xdisp.c (Vhourglass_delay): Remove static.
13846 (hourglass_started, start_hourglass, cancel_hourglass):
13847 Don't include these versions on WINDOWSNT.
13848
138492008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13850
13851 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13852 variables (formerly in xfns.c).
13853 (show_hourglass, hide_hourglass): New prototypes (same).
13854 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13855 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13856 in xfns.c).
13857 (syms_of_xdisp): Declare/initialize display-hourglass,
13858 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13859 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13860 formerly in xfns.c.
13861 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13862 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13863 (start_hourglass, cancel_hourglass): Remove.
13864 (show_hourglass, hide_hourglass): Remove prototypes and static
13865 modifiers.
13866 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13867 hourglass_atimer, hourglass_shown_p declaration/initialization.
13868 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13869 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13870 (start_hourglass, cancel_hourglass): Remove.
13871 (show_hourglass, hide_hourglass): Remove prototypes and static
13872 modifiers.
13873 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13874 hourglass_atimer, hourglass_shown_p declaration/initialization.
13875 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13876 (DEFAULT_HOURGLASS_DELAY): Remove.
13877 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13878 hourglass_shown_p declaration/initialization.
13879
138802008-07-14 Jason Rumney <jasonr@gnu.org>
13881
13882 * w32fns.c (w32_get_arg): Remove wrapper function.
13883 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13884 directly.
13885 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13886
138872008-07-14 Kenichi Handa <handa@m17n.org>
13888
13889 * xfont.c (xfont_open): Add workaround for X's bug.
13890
138912008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13892
13893 * fontset.c: Include <stdio.h> unconditionally.
13894
138952008-07-13 Michael Albinus <michael.albinus@gmx.de>
13896
13897 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13898 for filtering.
13899
139002008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13901
13902 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13903
13904 * m/macppc.h:
13905 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13906
c4cc8b9a 13907 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13908 (SPECIAL_EMACS_INT):
13909 * m/ia64.h (SPECIAL_EMACS_INT):
13910 * m/amdx86-64.h (SPECIAL_EMACS_INT):
13911 * s/gnu.h (NLIST_STRUCT):
13912 * s/aix4-2.h (X11R5_INHIBIT_I18N):
13913 * s/gnu-linux.h (LINUX):
13914 * s/msdos.h (HAVE_FACES):
13915 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
13916
13917 * systty.h:
13918 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
13919 anymore.
13920
139212008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
13922
13923 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
13924 always defined as int.
13925
13926 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
13927 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
13928 * s/gnu-linux.h (HAVE_WAIT_HEADER):
13929 * s/freebsd.h (HAVE_WAIT_HEADER):
13930 * s/bsd-common.h (HAVE_UNION_WAIT):
13931 * s/aix4-2.h (HAVE_WAIT_HEADER):
13932 * m/mips.h (HAVE_UNION_WAIT):
13933 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
13934 (COFF, static): Do not define, they are undefined later in the file.
13935
13936 * process.c (update_status): Don't use a union.
13937 (status_convert):
13938 (sigchld_handler): Use int instead of WAITTYPE.
13939
139402008-07-12 Chong Yidong <cyd@stupidchicken.com>
13941
13942 * indent.c (Fvertical_motion): Restore hscroll before moving to
13943 goal column.
13944
139452008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13946
13947 * lisp.h: Remove left over code.
13948
139492008-07-11 Andreas Schwab <schwab@suse.de>
13950
13951 * lisp.h: Fix logic in last change.
13952
13953 * menu.h: New file.
13954 * menu.c: Include it.
13955 * xmenu.c: Likewise.
13956 * Makefile.in: Update dependencies.
13957
139582008-07-11 Kenichi Handa <handa@m17n.org>
13959
13960 * fontset.c (fontset_from_font): Cancel the previous change.
13961
139622008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13963
13964 * lisp.h:
13965 * w32heap.c:
13966 * emacs.c:
13967 * alloc.c: Replace all references of NO_UNION_TYPE with
13968 USE_LISP_UNION_TYPE.
13969
13970 * m/xtensa.h (NO_UNION_TYPE):
13971 * m/vax.h (NO_UNION_TYPE):
13972 * m/template.h (NO_UNION_TYPE):
13973 * m/sparc.h (NO_UNION_TYPE):
13974 * m/mips.h (NO_UNION_TYPE):
13975 * m/macppc.h (NO_UNION_TYPE):
13976 * m/m68k.h (NO_UNION_TYPE):
13977 * m/iris4d.h (NO_UNION_TYPE):
13978 * m/intel386.h (NO_UNION_TYPE):
13979 * m/ibms390x.h (NO_UNION_TYPE):
13980 * m/ibms390.h (NO_UNION_TYPE):
13981 * m/ibmrs6000.h (NO_UNION_TYPE):
13982 * m/ia64.h (NO_UNION_TYPE):
13983 * m/hp800.h (NO_UNION_TYPE):
13984 * m/arm.h (NO_UNION_TYPE):
13985 * m/amdx86-64.h (NO_UNION_TYPE):
13986 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
13987 defining it the same.
13988
139892008-07-10 Chong Yidong <cyd@stupidchicken.com>
13990
13991 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
13992
139932008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
13994
13995 * fileio.c:
50426a04 13996 * sysdep.c:
aac0c6e3
MR
13997 * systty.h:
13998 * m/ibmrs6000.h:
13999 * m/iris4d.h:
14000 * s/aix4-2.h:
14001 * s/freebsd.h:
14002 * s/gnu-linux.h:
14003 * s/hpux10-20.h:
14004 * s/hpux11.h:
14005 * s/netbsd.h:
14006 * s/sol2-3.h:
14007 * s/sol2-4.h:
14008 * s/sol2.h:
14009 * s/usg5-4.h:
14010 * s/vms.h: Remove references to unused variables.
14011
140122008-07-10 Andreas Schwab <schwab@suse.de>
14013
14014 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14015 pattern before matching the generic family.
14016
140172008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14018
14019 * unexec.c:
14020 * s/vms.h:
14021 * s/usg5-4-2.h:
14022 * s/sol2-5.h:
14023 * s/freebsd.h:
14024 * s/darwin.h: Remove dead code.
14025
14026 * m/template.h:
14027 * m/sparc.h:
14028 * m/mips.h:
14029 * m/m68k.h:
14030 * m/iris4d.h:
14031 * m/intel386.h:
14032 * m/ibms390x.h:
14033 * m/ibms390.h:
14034 * m/ia64.h:
14035 * m/hp800.h:
14036 * m/arm.h:
14037 * m/amdx86-64.h: Remove dead code and references to unused
14038 and compiler defined symbols.
14039
14040 * unexmips.c:
14041 * unexelf.c: Remove references to desupported systems.
14042
14043 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14044
14045 * m/powermac.h: Remove boilerplate comments.
14046 (NO_REMAP): Remove unused definition.
14047
14048 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14049 define them.
14050
140512008-07-10 Kenichi Handa <handa@m17n.org>
14052
14053 * xfont.c (xfont_open): Log the reason of failure.
14054
140552008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14056
14057 * fontset.c (fontset_get_font_group):
14058 * font.c (font_check_otf): Specify argument types.
14059
140602008-07-09 Kenichi Handa <handa@m17n.org>
14061
14062 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14063 non-ASCII char is found.
14064
14065 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14066 (reorder_font_vector): Change the arg preferred_family to font.
14067 Prefer the spec matching with font.
14068 (fontset_get_font_group): New function.
14069 (fontset_find_font): Change the format of an element of a realized
14070 fontset. Use fontset_get_font_group.
14071 (fontset_font): Try the current fontset, the default fontset, the
14072 fallbacks of the current fontset, and the fallbacks of the default
14073 fontset in this order.
14074 (face_for_char): Delete the shortcut to use the current font.
14075 (fontset_from_font): Don't set fonts for Latin in the fontset.
14076
14077 * font.h (font_make_object, font_match_p): Adjust prototypes.
14078
14079 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14080
14081 * font.c (font_make_object): New arg entity and pixelsize.
14082 (font_check_otf_features, font_check_otf): New functions.
14083 (font_match_p): Check :lang, :script, and :otf properties.
14084
14085 * xfont.c (xfont_open): Adjust it for the change of
14086 font_make_object.
14087 (xfont_text_extents): Fix initial setting of metrics.
14088
14089 * ftfont.c (struct ftfont_info): New member index, delete member
14090 fc_charset_idx. Make the member order compatible with struct
14091 xftfont_info.
14092 (fc_charset_table): Change charset names to registry names.
14093 (ftfont_pattern_entity): Delete the args registry and
14094 fc_charset_idx. Change the value of :font-entity property
14095 to (FONTNAME . INDEX). Always set :registry property to
14096 `iso10646-1'.
14097 (struct ftfont_cache_data): New struct.
14098 (ftfont_lookup_cache): New arg for_face.
14099 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14100 (ftfont_driver): Set the member otf_capability.
14101 (ftfont_get_charset): Adjust it for the change of
14102 fc_charset_table.
14103 (OTF_TAG_SYM): New macro.
14104 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14105 for the change of fc_charset_table.
14106 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14107 ftfont_pattern_entity. Add FC_INDEX to objset.
14108 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14109 and ftfont_pattern_entity.
14110 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14111 font_make_object, struct ftfont_info.
14112 (ftfont_has_char): Use ftfont_get_fc_charset.
14113 (ftfont_otf_features, ftfont_otf_capability): New functions.
14114 (ftfont_shape): Use ftfont_get_otf.
14115 (ftfont_text_extents): Fix initial setting of metrics.
14116
14117 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14118 member order compatible with struct ftfont_info.
14119 (xftfont_open): Add FC_CHARSET to the pattern. Set
14120 xftfont_info->ft_size. Don't unlock the face. Check BDF
14121 properties if appropriate.
14122 (xftfont_close): Unlock the face.
14123 (xftfont_anchor_point, xftfont_shape): Deleted.
14124 (syms_of_xftfont): Don't set members anchor_point and shape of
14125 xftfont_driver.
14126
14127 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14128 font_make_object.
14129
14130 * w32font.c (w32font_open): Adjust it for the change of
14131 font_make_object.
14132 (w32font_open_internal): Don't set properties of font_object here.
14133
141342008-07-08 Chong Yidong <cyd@stupidchicken.com>
14135
14136 * macfns.c (x_create_tip_frame):
14137 * w32fns.c (x_create_tip_frame):
14138 * xfns.c (x_create_tip_frame): Pass parameter argument to
14139 face-set-after-frame-default.
14140
14141 * xfaces.c (Finternal_merge_in_global_face): Save merged
14142 attributes for the default face back into the face vector.
14143
141442008-07-08 Andreas Schwab <schwab@suse.de>
14145
14146 * fontset.h: Declare fontset_from_font. Don't declare
14147 new_fontset_from_font and fontset_from_font_name.
14148 * xterm.c: Include "fontset.h".
14149 * Makefile.in (xterm.o): Update dependencies.
14150
141512008-07-08 Glenn Morris <rgm@gnu.org>
14152
14153 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14154 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14155
141562008-07-07 Chong Yidong <cyd@stupidchicken.com>
14157
14158 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14159 (x_set_frame_parameters): Don't bind it.
14160
141612008-07-07 Juanma Barranquero <lekktu@gmail.com>
14162
14163 * w32fns.c (map_w32_filename): Declare extern.
14164
141652008-07-07 Jason Rumney <jasonr@gnu.org>
14166
14167 * w32term.c (WS_EX_LAYERED): Define if not already.
14168
141692008-07-06 Chong Yidong <cyd@stupidchicken.com>
14170
14171 * xfaces.c (set_font_frame_param): Don't try to set the font
14172 parameter if it is still unspecified in the lface.
14173
141742008-07-05 Chong Yidong <cyd@stupidchicken.com>
14175
14176 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14177 face if it didn't already exist.
14178
14179 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14180
141812008-07-05 Andreas Schwab <schwab@suse.de>
14182
14183 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14184
141852008-07-05 Chong Yidong <cyd@stupidchicken.com>
14186
14187 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14188 word-wrapping.
14189 (IT_DISPLAYING_WHITESPACE): New macro.
14190 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14191 when word-wrapping. Simplify word-wrapping logic. Use correct
14192 pixel positions when saving copies of the iterator.
14193 (display_line): Use proper wrap point if the last character on a
14194 line was preceded by whitespace.
14195
141962008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14197
14198 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14199
142002008-07-04 Kenichi Handa <handa@m17n.org>
14201
14202 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14203
14204 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14205
142062008-07-02 Jason Rumney <jasonr@gnu.org>
14207
14208 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14209 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14210
14211 * xdisp.c (next_element_from_display_vector): Move assignment out
14212 of if statement.
14213
142142008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14215
14216 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14217
14218 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14219 (syms_of_fileio): Initialize and export them.
14220 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14221
14222 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14223 (Fsystem_move_file_to_trash): New function.
14224 (syms_of_w32fns): Export it to lisp.
14225
142262008-07-01 Jason Rumney <jasonr@gnu.org>
14227
14228 * w32font.c (w32font_text_extents): Don't count overhang as part
14229 of width.
14230
142312008-06-30 Miles Bader <miles@gnu.org>
14232
14233 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14234 Add `avoid_cursor_p' field.
14235
14236 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14237 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14238 (append_glyph, append_composite_glyph, produce_image_glyph)
14239 (append_stretch_glyph): Initialize avoid_cursor_p.
14240 (get_it_property): Rename from `get_line_height_property'.
14241 (x_produce_glyphs): Use get_it_property.
14242 (handle_line_prefix, push_display_prop): New functions.
14243 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14244 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14245 New variables.
14246 (syms_of_xdisp): Initialize them.
14247
142482008-06-30 Kenichi Handa <handa@m17n.org>
14249
14250 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14251 XftDefaultSubstitute (they are called in XftFontMatch).
14252 (xftfont_open): Fix args to ftfont_font_format.
14253
14254 * ftfont.c (fc_charset_table): New member lang.
14255 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14256 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14257 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14258 (ftfont_open): Fix args to ftfont_font_format.
14259 (ftfont_font_format): New arg filename.
14260
142612008-06-30 Chong Yidong <cyd@stupidchicken.com>
14262
14263 * xfaces.c (Finternal_merge_in_global_face): If default face was
14264 modified, realize it again. Update the font face attribute.
14265
142662008-06-29 Jason Rumney <jasonr@gnu.org>
14267
14268 * w32term.c (x_set_frame_alpha): Fix logic.
14269
142702008-06-29 Kenichi Handa <handa@m17n.org>
14271
14272 * fontset.c (Finternal_char_font): Return font-object instead of
14273 font-name.
14274
14275 * composite.c (get_composition_id): Fix the width calculation for TAB.
14276
142772008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14278
14279 * indent.c (Fvertical_motion): Properly handle float column arg.
14280
142812008-06-28 Jason Rumney <jasonr@gnu.org>
14282
14283 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14284 (pfnSetLayeredWindowAttributes): New function pointer.
14285 (w32_initialize): Initialize it when supported.
14286 (x_set_frame_alpha): New function.
14287
14288 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14289 (w32_frame_parm_handlers): Set alpha handler.
14290
14291 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14292
142932008-06-27 Jason Rumney <jasonr@gnu.org>
14294
14295 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14296 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14297 (w32_to_x_charset, x_to_w32_charset)
14298 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14299 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14300 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14301 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14302 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14303 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14304 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14305 (Qw32_charset_unicode): Remove.
14306 (syms_of_w32fns): Update for above changes.
14307
14308 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14309 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14310 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14311 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14312 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14313 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14314 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14315 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14316 (syms_of_w32font): Update for above changes.
14317
143182008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14319
14320 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14321 removed #if.
14322 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14323
143242008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14325 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14326
14327 * makefile.w32-in (LOCAL_FLAGS):
14328 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14329
14330 * sysdep.c (_spawnlp, _getpid):
14331 Declare with explicit _cdecl instead of _CRTAPI1.
14332
14333 * editfns.c (Fget_internal_run_time):
14334 Check for WINDOWSNT with #ifdef, not #if.
14335
143362008-06-26 Jason Rumney <jasonr@gnu.org>
14337
14338 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14339
14340 * w32term.c (x_draw_glyph_string_foreground)
14341 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14342 Use FONT_HANDLE macro.
14343 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14344
14345 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14346 (uniscribe_encode_char): Use FONT_HANDLE macro.
14347
14348 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14349 (w32font_text_extents): Use precast w32_font.
14350 (w32font_close): Free cached metrics.
14351 (w32font_open_internal): Allocate space for name on stack.
14352
143532008-06-26 Chong Yidong <cyd@stupidchicken.com>
14354
14355 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14356
143572008-06-26 Jason Rumney <jasonr@gnu.org>
14358
14359 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14360 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14361
143622008-06-26 Juanma Barranquero <lekktu@gmail.com>
14363
14364 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14365
143662008-06-26 Jason Rumney <jasonr@gnu.org>
14367
14368 * w32bdf.c, w32bdf.h: Remove obsolete files.
14369
14370 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14371
14372 * w32gui.h: Don't include w32bdf.h.
14373 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14374 Remove obsolete font support.
14375
14376 * w32font.h (struct w32font_info): Remove compat_w32_font.
14377 Add hfont member.
14378 (FONT_COMPAT): Remove obsolete macro.
14379
14380 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14381 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14382 (w32font_open_internal): Remove compat code. Set new hfont member.
14383 (Fx_select_font): Use new hfont member.
14384
14385 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14386 (uniscribe_encode_char): Use new hfont member.
14387
14388 * w32term.c (x_draw_glyph_string_foreground)
14389 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14390 (x_draw_glyph_string): Use metrics in w32font_info.
14391
143922008-06-26 Kenichi Handa <handa@m17n.org>
14393
14394 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14395
143962008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14397
14398 * unexnext.c:
14399 * m/ews4800.h:
14400 * m/hp9000s300.h:
14401 * m/ibm370aix.h:
14402 * m/mips-siemens.h:
14403 * m/ncr386.h:
14404 * m/next.h:
14405 * m/pmax.h:
14406 * m/powerpcle.h:
14407 * m/tandem-s2.h:
14408 * s/386bsd.h:
14409 * s/bsd386.h:
14410 * s/bsd4-1.h:
14411 * s/bsd4-2.h:
14412 * s/bsdos2-1.h:
14413 * s/bsdos2.h:
14414 * s/bsdos3.h:
14415 * s/bsdos4.h:
14416 * s/nextstep.h:
14417 * s/ultrix4-3.h:
14418 * s/usg5-0.h:
14419 * s/usg5-2-2.h:
14420 * s/usg5-2.h:
14421 * s/usg5-4-3.h:
14422 * s/ux4800.h:
14423 * s/uxpds.h:
14424 * s/uxpv.h: Remove support for obsolete systems.
14425 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14426 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14427 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14428 Remove, insert contents in s/aix4-2.h.
14429 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14430 * s/bsd4-3.h: Rename to ...
14431 * s/bsd-common.h: ... this.
14432 * data.c:
14433 * doc.c:
14434 * ecrt0.c:
14435 * emacs.c:
14436 * fileio.c:
14437 * floatfns.c:
14438 * keyboard.c:
14439 * mem-limits.h:
14440 * print.c:
14441 * process.c:
14442 * sysdep.c:
14443 * syssignal.h:
14444 * systty.h:
14445 * syswait.h:
14446 * term.c:
14447 * unexec.c:
14448 * unexelf.c:
14449 * unexhp9k800.c:
14450 * m/hp800.h:
14451 * m/ibmrs6000.h:
14452 * m/mips.h:
14453 * m/vax.h:
14454 * s/darwin.h:
14455 * s/freebsd.h:
14456 * s/gnu.h:
14457 * s/ms-w32.h:
14458 * s/msdos.h:
14459 * s/netbsd.h:
14460 * s/template.h: Remove references to obsolete variables.
14461
14462 * Makefile.in: Add dependencies for all unexec files.
14463 (admindir): Remove unused variable.
14464 (UNEXEC_SRC): Remove references.
14465
144662008-06-25 Chong Yidong <cyd@stupidchicken.com>
14467
14468 * xfns.c (x_default_font_parameter): If Xft is available, first
14469 try Monospace-12 for the default font.
14470
144712008-06-25 Jason Rumney <jasonr@gnu.org>
14472
14473 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14474
144752008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14476
14477 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14478
14479 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14480
144812008-06-25 Juanma Barranquero <lekktu@gmail.com>
14482
14483 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14484 <scroll-conservatively>: Fix typo in docstring.
14485
14486 * xselect.c (Fx_send_client_event): Doc fix.
14487
144882008-06-25 Kenichi Handa <handa@m17n.org>
14489
14490 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14491
14492 * font.c (font_parse_fcname): Remove unused variables.
14493 (font_sort_entites): Delete the arg SPEC. Caller changed.
14494 Fix for the case of ! best_only.
14495 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14496
14497 * lisp.h (Fstring_to_unibyte): EXFUN it.
14498
14499 * character.h (str_to_unibyte): Extern it.
14500
14501 * character.c (str_to_unibyte): New function.
14502
14503 * fns.c (Fstring_to_unibyte): New function.
14504 (syms_of_fns): Defsubr it.
14505
145062008-06-24 Kenichi Handa <handa@m17n.org>
14507
14508 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14509 DPI too.
14510 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14511
145122008-06-24 Andreas Schwab <schwab@suse.de>
14513
14514 * Makefile.in (${lispsource}loaddefs.el): Rename from
14515 ../lisp/loaddefs.el.
14516 (bootstrap-clean): Do what distclean does but don't remove
14517 Makefile.
14518 (distclean): Depend on bootstrap-clean and remove Makefile.
14519
145202008-06-24 Chong Yidong <cyd@stupidchicken.com>
14521
14522 * buffer.h (struct buffer): New member word_wrap.
14523
14524 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14525 word-wrap.
14526 (init_buffer_once): Initialize them.
14527
14528 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14529 line_wrap enum possessing three possible values.
14530
14531 * termopts.h: Replace truncate_partial_width_windows with
14532 Vtruncate_partial_width_windows.
14533
14534 * dispnew.c (direct_output_for_insert): Avoid direct output when
14535 inserting a space with word wrap on.
14536
14537 * indent.c (compute_motion): Obey integer values of
14538 truncate-partial-width-windows.
14539
14540 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14541 replacing truncate_partial_width_windows.
14542 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14543 truncate only if the window width is below that integer.
14544 (start_display, resize_mini_window, produce_stretch_glyph)
14545 (display_string, move_it_in_display_line_to): Use line_wrap.
14546 (back_to_previous_visible_line_start, reseat_1): Reset
14547 string_from_display_prop_p.
14548 (display_line): Extend default face to end of line when wrapping.
14549
145502008-06-24 Kim F. Storm <storm@cua.dk>
14551
14552 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14553 to wrap continued lines at word boundaries.
14554
145552008-06-24 Jason Rumney <jasonr@gnu.org>
14556
14557 * font.c (Ffont_face_attributes): Multiply pixel size before point
14558 conversion to avoid multiplying rounding error.
14559
145602008-06-23 Jason Rumney <jasonr@gnu.org>
14561
14562 * w32term.c (x_draw_glyph_string_background)
14563 (x_draw_glyph_string): Remove old bdf font code.
14564
14565 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14566
145672008-06-22 Kenichi Handa <handa@m17n.org>
14568
14569 * font.c (font_find_for_lface): Try the adstyle specified in
14570 the property of LFACE_FONT of LFACE (if any).
14571
145722008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14573 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14574
14575 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14576
145772008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14578
14579 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14580 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14581 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14582 (witness-emacs): Remove.
14583 (lisp, shortlisp): Move loaddefs.el earlier.
14584 (mostlyclean): Forget about witness-emacs.
14585
145862008-06-22 Glenn Morris <rgm@gnu.org>
14587
14588 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14589 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14590
145912008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14592
14593 * Makefile.in (PRECOMP): Remove.
14594 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14595 (witness-emacs): Run `compile-first'.
14596 (.el.elc): Use the new compile-onefile target.
14597
145982008-06-21 Kenichi Handa <handa@m17n.org>
14599
14600 * xftfont.c (xftfont_open): Handle QCembolden only when
14601 FC_EMBOLDEN is defined.
14602
146032008-06-21 Andreas Schwab <schwab@suse.de>
14604
14605 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14606 (.el.elc): Likewise.
14607
146082008-06-21 Miles Bader <miles@gnu.org>
14609
14610 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14611 build dir, not the lisp source dir.
14612
146132008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14614
14615 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14616 (bootstrapclean): Remove.
14617 (.el.elc): New rule.
14618 (PRECOMP): New var.
14619 (../lisp/subdirs.el): Remove.
14620 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14621 (witness-emacs): New target.
14622 (mostlyclean): Remove witness-emacs as well.
14623 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14624 Add witness-emacs dependency.
14625
146262008-06-20 Chong Yidong <cyd@stupidchicken.com>
14627
14628 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14629 defined by the font.
14630
146312008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14632
14633 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14634 (bootstrap-clean): New target that keeps TAGS around.
14635 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14636 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14637
146382008-06-20 Jason Rumney <jasonr@gnu.org>
14639
14640 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14641 Remove obsolete font code.
14642
14643 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14644 to determine language support.
14645
146462008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14647
14648 * sysdep.c (cfsetspeed): New fun extracted from the code.
14649 (cfmakeraw): Move before first use.
14650
146512008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14652
14653 * sysdep.c (cfmakeraw): Provide fallback implementation.
14654 (serial_configure): Provide fallback implementation of cfsetspeed.
14655
146562008-06-20 Kenichi Handa <handa@m17n.org>
14657
14658 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14659 the pattern.
14660
14661 * fontset.c (fontset_from_font): Copy font_spec before changing
14662 the elements.
14663
14664 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14665
146662008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14667
14668 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14669 for explicit `font' parameters.
14670
14671 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14672
146732008-06-19 Kenichi Handa <handa@m17n.org>
14674
14675 * frame.c: Include <ctype.h>.
14676 (x_set_font_backend): Allow spacing characters in the X resource
14677 for FontBackend.
14678
146792008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14680
14681 * w32fns.c, xfns.c (Qfont_param): New var.
14682 (syms_of_w32fns): Initialize it.
14683 (x_default_font_parameter): Record explicit `font' into
14684 `font-parameter'.
14685
146862008-06-18 Kenichi Handa <handa@m17n.org>
14687
14688 * font.c (font_parse_xlfd): Fix previous change.
14689 (font_parse_fcname): Don't use :fc-unknown-spec.
14690 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14691 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14692 (font_add_log): Prepend the driver name to the resulting fonts.
14693
14694 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14695 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14696 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14697
14698 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14699 (QCembolden): New variables.
14700 (syms_of_xftfont): DEFSYM them.
14701 (xftfont_open): Call XftFontMatch. Don't trust the result of
14702 XftTextExtents8 if the pixel_size is less than 5.
14703
147042008-06-18 Andreas Schwab <schwab@suse.de>
14705
14706 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14707 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14708
147092008-06-18 Jason Rumney <jasonr@gnu.org>
14710
14711 * w32font.c (w32font_list, w32font_match): Add logging.
14712
14713 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14714
147152008-06-17 Chong Yidong <cyd@stupidchicken.com>
14716
14717 * font.c (font_parse_fcname): Store divider characters for
14718 unknown-spec list. For known key symbols, intern using correct
14719 symbol name.
14720
147212008-06-17 Kenichi Handa <handa@m17n.org>
14722
14723 * xfaces.c (realize_default_face): If the frame is not on window
14724 system, set the fontset of face to nil.
14725
147262008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14727
14728 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14729
147302008-06-16 Juanma Barranquero <lekktu@gmail.com>
14731
14732 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14733 (build_font_name_from_vector): Delete externs.
14734
14735 * xfaces.c (struct font_name): Don't declare.
14736
147372008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14738
14739 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14740
147412008-06-16 Chong Yidong <cyd@stupidchicken.com>
14742
14743 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14744
147452008-06-16 Juanma Barranquero <lekktu@gmail.com>
14746
14747 * font.c (Ffont_spec): Fix usage in docstring.
14748 (Ffont_face_attributes): Doc fix.
14749
147502008-06-16 Andreas Schwab <schwab@suse.de>
14751
14752 * font.c (Ffont_face_attributes): Fix definition.
14753
147542008-06-16 Jason Rumney <jasonr@gnu.org>
14755
14756 * font.h (font_style_symbolic_from_value): Remove.
14757
14758 * font.c (font_style_symbolic_from_value): Remove.
14759 (font_style_symbolic): Revert to pre 2008-06-13 version.
14760
14761 * w32font.c (w32_to_fc_weight): New function.
14762 (w32font_full_name, logfont_to_fcname): Use it.
14763
147642008-06-16 Kenichi Handa <handa@m17n.org>
14765
14766 * font.c (font_check_object): Delete it.
14767 (font_clear_cache): Check if a font-object is alive.
14768 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14769 font-object to nil.
14770 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14771 (font_at): Don't call font_check_object.
14772 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14773
147742008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14775
14776 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14777
147782008-06-16 Chong Yidong <cyd@stupidchicken.com>
14779
14780 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14781
147822008-06-15 Chong Yidong <cyd@stupidchicken.com>
14783
14784 * font.c (font_parse_fcname): Only one decimal point.
14785 (font_unparse_fcname): Handle data in family and foundry indices
14786 as symbols, not strings.
14787 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14788
14789 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14790
14791 * font.h (font_unparse_gtkname): Add prototype.
14792
147932008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14794
14795 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14796
147972008-06-15 Andreas Schwab <schwab@suse.de>
14798
14799 * font.c (font_update_drivers): Fix crash when no drivers match.
14800
148012008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14802
14803 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14804 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14805
148062008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14807
14808 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14809
148102008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14811
14812 * process.c (Fserial_process_configure, Fprocess_send_eof):
14813 Use EQ to compare Lisp_Objects.
14814
148152008-06-13 Jason Rumney <jasonr@gnu.org>
14816
14817 * w32fns.c (Fw32_select_font): Remove old font API function.
14818
14819 * w32font.c (logfont_to_fcname): New function.
14820 (Fx_select_font): New font dialog function compatible with
14821 GTK/fontconfig version.
14822
14823 * font.c (font_style_symbolic_from_value): New function.
14824 (font_style_symbolic): Use it.
14825
14826 * font.h (font_style_symbolic_from_value): Declare new function.
14827
148282008-06-13 Juanma Barranquero <lekktu@gmail.com>
14829
14830 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14831 <font-width-table>: Fix typos in docstrings.
14832
148332008-06-13 Daniel Engeler <engeler@gmail.com>
14834
14835 These changes add serial port access.
14836 * process.c: Add HAVE_SERIAL.
14837 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14838 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14839 (list_processes_1, select_wrapper, Fstop_process)
14840 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14841 (status_notify): Modify to handle serial processes.
14842 [HAVE_SERIAL] (Fserial_process_configure)
14843 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14844 New functions.
14845 * process.h (struct Lisp_Process): Add `type'.
14846 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14847 New functions.
14848 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14849 serial ports.
b71ac3dd 14850 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14851 * w32.h: Add FILE_SERIAL.
14852 (struct _child_process): Add ovl_read, ovl_write.
14853
148542008-06-13 Kenichi Handa <handa@m17n.org>
14855
14856 * dispextern.h (enum lface_attribute_index): New member
14857 LFACE_FOUNDRY_INDEX.
14858
14859 * font.c (font_score): Delete arg alternate_families. Check only
14860 weight, slant, width, and size. Ignore the difference of alias
14861 style symbols.
14862 (font_sort_entites): Adjust for the above change. Reflect the
14863 order of font-driver to scores.
14864 (font_list_entities): Don't check alternate_familes here.
14865 (font_clear_prop): Handle foundry.
14866 (font_update_lface): Don't parse "foundry-family" form here.
14867 Handle FONT_FOUNDRY_INDEX.
14868 (font_find_for_lface): Likewise. Handle alternate families here.
14869 If registry is nil, try iso8859-1 and ascii-0.
14870 (font_open_for_lface): Pay attention to size in ENTITY.
14871 (font_open_by_name): Simplify by calling font_load_for_lface.
14872 (free_font_driver_list): Delete it.
14873 (font_update_drivers): Preserve the order of backends.
14874 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14875 of font_score and font_sort_entites.
14876 (font_update_sort_order): Likewise.
14877
14878 * xfaces.c (LFACE_FOUNDRY): New macro.
14879 (check_lface_attrs): Check foundry.
14880 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14881 (merge_face_vectors): Check foundry.
14882 (merge_face_ref): Likewise.
14883 (Finternal_set_lisp_face_attribute): Likewise.
14884 (x_update_menu_appearance): Likewise.
14885 (Finternal_get_lisp_face_attribute): Likewise.
14886 (lface_hash): Likewise.
14887 (lface_same_font_attributes_p): Likewise.
14888 (x_supports_face_attributes_p): Likewise.
14889 (tty_supports_face_attributes_p): Likewise.
14890 (Finternal_set_alternative_font_family_alist): Intern strings.
14891 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14892 (realize_default_face): Set LFACE_FOUNDRY (lface).
14893
14894 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14895 font-driver at first.
14896
14897 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14898
148992008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14900
14901 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14902
149032008-06-12 Jim Meyering <meyering@redhat.com>
14904
14905 Make unexec_free handle NULL the same way free does.
14906 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14907
149082008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14909
14910 * character.h (CHAR_TO_BYTE_SAFE): New macro.
14911 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
14912 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
14913 (WEAK_ALIAS): Simplify.
14914 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
14915 when searching a unibyte buffer.
14916
149172008-06-12 Chong Yidong <cyd@stupidchicken.com>
14918
14919 * xfns.c (Fx_select_font): Rename from x-font-dialog.
14920
149212008-06-12 Juanma Barranquero <lekktu@gmail.com>
14922
14923 * w32font.c: Include ctype.h.
14924
149252008-06-11 Jason Rumney <jasonr@gnu.org>
14926
14927 * w32font.c (w32font_encode_char): Detect missing glyphs that are
14928 misreported as space.
14929 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
14930 as aliases for registry iso10646-1.
14931
149322008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
14933
14934 * buffer.c (clone_per_buffer_values): Skip `name'.
14935
149362008-06-11 Chong Yidong <cyd@stupidchicken.com>
14937
14938 * font.c (font_parse_fcname): Fix last change; accept decimal
14939 points in font size.
14940
149412008-06-10 Jason Rumney <jasonr@gnu.org>
14942
14943 * w32uniscribe.c (add_opentype_font_name_to_list):
14944 Skip non unicode fonts.
14945
149462008-06-10 Chong Yidong <cyd@stupidchicken.com>
14947
14948 * xfns.c (Fx_font_dialog): New function.
14949
14950 * gtkutil.c (xg_dialog_response_cb): Rename from
14951 xg_file_response_callback.
14952 (pop_down_dialog): Rename from pop_down_file_dialog.
14953 (xg_get_file_name): Callers changed.
14954 (xg_get_font_name): New function.
14955
14956 * gtkutil.h (xg_get_font_name): Insert prototype.
14957
149582008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14959
14960 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
14961 x_underline_minimum_display_offset.
14962 (syms_of_xdisp): Declare it here rather than in xterm.c.
14963 * dispextern.h (underline_minimum_offset): Declare it.
14964 * w32term.c (x_draw_glyph_string): Use it.
14965 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
14966 (syms_of_xterm): Don't declare it any more.
14967 (x_draw_glyph_string): Adjust to the new name.
14968
8719abec 149692008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
14970
14971 * xterm.c (x_underline_minimum_display_offset): New var.
14972 (x_draw_glyph_string): Use it.
14973 (syms_of_xterm): Declare it.
14974
149752008-06-10 Chong Yidong <cyd@stupidchicken.com>
14976
14977 * font.c (font_parse_fcname): Accept GTK-style font names too.
14978
149792008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
14980
14981 * dired.c (file_name_completion): Don't return t if the match is exact
14982 but with different capitalization.
14983 * minibuf.c (Ftry_completion): Simplify.
14984
14985 * window.c (Vwindow_point_insertion_type): New var.
14986 (set_window_buffer): Use it.
14987 (syms_of_window): Init and export it to Lisp.
14988
149892008-06-10 Kenichi Handa <handa@m17n.org>
14990
14991 * font.h (font_intern_prop): Prototype adjusted.
14992
14993 * font.c (font_intern_prop): New arg force_symbol.
14994 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
14995 Adjust for the change of font_intern_prop.
14996
14997 * ftfont.c (ftfont_pattern_entity):
14998 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
14999 (w32_registry):
15000 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15001 the change of font_intern_prop.
15002
150032008-06-09 Juanma Barranquero <lekktu@gmail.com>
15004
15005 * w32menu.c (digest_single_submenu): Declare extern.
15006
150072008-06-09 Jason Rumney <jasonr@gnu.org>
15008
15009 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15010
15011 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15012 (parse_single_submenu): Remove.
15013 (digest_single_submenu): Remove.
15014 (syms_of_w32menu): Don't initialise variables that have moved
15015 to menu.c.
15016 (set_frame_menubar): Sync with version in xmenu.c.
15017 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15018
15019 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15020 Make static again.
15021
150222008-06-09 Jason Rumney <jasonr@gnu.org>
15023
15024 Changes to w32 files related to the move of common menu code
15025 to menu.c on 2008-06-08 by Chong Yidong.
15026
15027 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15028 defs to w32gui.h.
15029 (single_keymap_panes, push_menu_item, push_menu_pane):
15030 Make globally visible.
15031
15032 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15033 (local_free, malloc_widget_value, free_widget_value)
15034 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15035 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15036 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15037 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15038 (menu_items, menu_items_allocated, menu_items_used)
15039 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15040 (init_menu_items, finish_menu_items, discard_menu_items)
15041 (grow_menu_items, push_submenu_start, push_submenu_end)
15042 (push_left_right_boundary, push_menu_pane, push_menu_item)
15043 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15044 (free_menubar_widget_tree_value, parse_single_submenu)
15045 (update_submenu_strings): Remove functions.
15046 (xmalloc_widget_value): Remove and declare extern.
15047
15048 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15049 (OBJ1): Build it.
15050
15051 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15052 (local_heap, local_alloc, local_free, malloc_widget_value)
15053 (free_widget_value): Define here.
15054
150552008-06-09 Kenichi Handa <handa@m17n.org>
15056
15057 * font.h (Qascii_0): Extern it.
15058
15059 * font.c (Qascii_0): New variable.
15060 (syms_of_font): DEFSYM it.
15061 (font_open_by_name): If the registry "iso8859-1" fails, try also
15062 "ascii-0".
15063
15064 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15065
150662008-06-08 Kenichi Handa <handa@m17n.org>
15067
15068 * .gdbinit (xfont): New command.
15069
150702008-06-08 Andreas Schwab <schwab@suse.de>
15071
15072 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15073 * Makefile.in (menu.o): Update dependencies.
15074
15075 * Makefile.in (obj): Always add menu.o.
15076 * emacs.c (main): Always call syms_of_menu.
15077 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15078
150792008-06-08 Chong Yidong <cyd@stupidchicken.com>
15080
15081 * Makefile.in: Compile menu.c.
15082
15083 * lisp.h: Declare syms_of_menu.
15084
15085 * emacs.c (main): Call syms_of_menu.
15086
15087 * keyboard.h: Relocate platform-independent menu definitions from
15088 xmenu.c.
15089
15090 * menu.c: New file. Relocate platform-independent menu
15091 definitions from xmenu.c. Suggested by Adrian Robert.
15092
15093 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15094 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15095 (menu_items_used, menu_items_n_panes)
15096 (menu_items_submenu_depth): Move to keyboard.h.
15097 (init_menu_items, finish_menu_items, unuse_menu_items)
15098 (discard_menu_items, restore_menu_items, save_menu_items)
15099 (grow_menu_items, push_submenu_start, push_submenu_end)
15100 (push_left_right_boundary, push_menu_pane, push_menu_item)
15101 (keymap_panes, single_keymap_panes, single_menu_item)
15102 (list_of_panes, list_of_items, find_and_call_menu_selection)
15103 (xmalloc_widget_value, free_menubar_widget_value_tree)
15104 (parse_single_submenu, digest_single_submenu)
15105 (update_submenu_strings): Move to menu.c.
15106
151072008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15108
15109 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15110
151112008-06-06 Miles Bader <miles@gnu.org>
15112
15113 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15114 face, not frame default.
15115
151162008-06-05 Martin Rudalics <rudalics@gmx.at>
15117
15118 * window.c (pop_up_windows, pop_up_frames)
15119 (display_buffer_reuse_frames, Vpop_up_frame_function)
15120 (Vdisplay_buffer_function, Veven_window_heights)
15121 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15122 (Vspecial_display_function, Vsame_window_buffer_names)
15123 (Vsame_window_regexps, split_height_threshold)
15124 (Vsplit_window_preferred_function): Move those vars to window.el.
15125 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15126 (Fdisplay_buffer): Move those functions to window.el.
15127 (syms_of_window): Remove corresponding declarations.
15128 (display_buffer): New function.
15129 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15130 * dispnew.c (Flast_nonminibuf_frame): New function.
15131 * buffer.c (Fpop_to_buffer): Move to window.el.
15132
151332008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15134
15135 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15136
151372008-06-05 Kenichi Handa <handa@m17n.org>
15138
15139 * coding.c (detect_coding): Fix previous change.
15140 (detect_coding_system): Likewise.
15141
151422008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15143
15144 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15145
15146 * keymap.c (Vminibuffer_local_filename_must_match_map):
15147 Rename from Vminibuffer_local_must_match_filename_map.
15148 (syms_of_keymap):
15149 * minibuf.c (Fcompleting_read): Adjust accordingly.
15150 * commands.h: Rename declaration as well.
15151
151522008-06-05 Kenichi Handa <handa@m17n.org>
15153
15154 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15155 family name.
15156 (Ffont_put): Likewise.
15157
15158 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15159 current font-spec.
15160
15161 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15162 is unspecified.
15163
15164 * xfaces.c (realize_x_face): If the font-related face attributes
15165 are the same as those of default face, realize a new fontset from
15166 default->fontset.
15167 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15168
151692008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15170
15171 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15172 (move_it_in_display_line): New wrapper.
15173
15174 * window.c (window_scroll_pixel_based_preserve_x)
15175 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15176 (window_scroll_pixel_based, window_scroll_line_based):
15177 Use them to preserve column positions.
15178 (syms_of_window): Initialize them.
15179
15180 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15181 (HPOS . VPOS) pair.
15182
15183 * dispextern.h (move_it_in_display_line): Declare.
15184
151852008-06-05 Juanma Barranquero <lekktu@gmail.com>
15186
15187 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15188 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15189 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15190
151912008-06-04 Juanma Barranquero <lekktu@gmail.com>
15192
15193 * window.c (Fset_window_parameter): Doc fix.
15194 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15195
151962008-06-04 Joakim Verona <joakim@verona.se>
15197
15198 * window.h (struct window): Add new member window_parameters.
15199
15200 * window.c (Fwindow_parameters, Fwindow_parameter)
15201 (Fset_window_parameter): New defuns.
15202 (syms_of_window): Defsubr the new defuns.
15203 (make_window): Initialize window_parameters to nil.
15204
152052008-06-04 John Paul Wallington <jpw@pobox.com>
15206
15207 * eval.c (Fdefmacro): Doc fix.
15208
152092008-06-04 Kenichi Handa <handa@m17n.org>
15210
15211 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15212 Be sure to call setup_coding_system when we find a proper coding system.
15213 (detect_coding_system): Fix handling of coding->head_ascii.
15214
152152008-06-03 Andreas Schwab <schwab@suse.de>
15216
15217 * font.c (font_prop_validate_spacing): Fix last change.
15218
152192008-06-03 Kenichi Handa <handa@m17n.org>
15220
15221 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15222 (font_parse_fcname): Fix handling of unknown key.
15223
15224 * xfont.c (xfont_list): Try an alias.
15225
15226 * charset.c (char_charset): Return NULL if the arg charset_list is
15227 specified and C doesn't belong to any of them.
15228
152292008-06-02 Chip Coldwell <coldwell@redhat.com>
15230
15231 * font.c (font_pixel_size): Don't take cdr of an integer.
15232
152332008-06-02 Jim Meyering <meyering@redhat.com>
15234
15235 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15236 * alloc.c (xfree): Return right away for a NULL arg.
15237 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15238 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15239 * mac.c (create_apple_event_from_event_ref): Likewise.
15240 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15241 Likewise.
15242 * doprnt.c (doprnt1): Likewise.
15243 * frame.c (frame): Likewise.
15244 * keyboard.c (wipe_kboard): Likewise.
15245 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15246 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15247 * term.c (tty_default_color_capabilities, maybe_fatal)
15248 (delete_tty): Likewise.
15249 * w16select.c (string): Likewise.
15250 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15251 * w32bdf.c (w32_free_bdf_font): Likewise.
15252 * w32fns.c (w32_unload_font): Likewise.
15253 * w32font.c (w32font_close): Likewise.
15254 * window.c (size_window): Likewise.
15255 * xselect.c (receive_incremental_selection): Likewise.
15256 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15257 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15258 * w32.c (stat): Likewise.
15259
15260 Remove useless if-before-free tests.
15261 * editfns.c (Fset_time_zone_rule): Likewise.
15262 * lread.c (nosuffix): Likewise.
15263 * ralloc.c (get_bloc): Likewise.
15264 * regex.c (reg_free): Likewise.
15265 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15266 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15267 * xsmfns.c (smc_save_yourself_CB): Likewise.
15268
152692008-06-02 Kenichi Handa <handa@m17n.org>
15270
15271 * font.c (font_find_for_lface): Handle float font size.
15272 (font_open_for_lface): Likewise.
15273
15274 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15275 comparing the properties.
15276
152772008-06-01 Jason Rumney <jasonr@gnu.org>
15278
15279 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15280 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15281 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15282 Don't add empty script list.
15283 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15284
152852008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15286
15287 * Makefile.in (dot, dotdot): Remove, update users.
15288 ".." has been used elsewhere in the file for a long time.
15289 (LIBXT_STATIC): Remove conditional based on unused variable.
15290
152912008-06-01 Miles Bader <miles@gnu.org>
15292
15293 * xfaces.c (Vface_remapping_alist): New variable.
15294 (syms_of_xfaces): Initialize it.
15295 (enum named_merge_point_kind): New type.
15296 (struct named_merge_point): Add `named_merge_point_kind' field.
15297 (push_named_merge_point): Make cycle detection respect different
15298 named-merge-point kinds.
15299 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15300 Remove face-name alias resolution.
15301 (lface_from_face_name): New definition using
15302 `lface_from_face_name_no_resolve'.
15303 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15304 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15305 (get_lface_attributes): New definition that layers face-remapping on
15306 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15307 (lookup_basic_face): New function.
15308 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15309 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15310 `get_lface_attributes'.
15311 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15312 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15313 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15314
15315 * xdisp.c (init_iterator): Pass base_face_id through
15316 `lookup_basic_face' when we actually use it as a face-id.
15317 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15318 DEFAULT_FACE_ID.
15319
15320 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15321 lookup the initial face-id.
15322
15323 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15324
153252008-06-01 Juanma Barranquero <lekktu@gmail.com>
15326
15327 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15328 (Fremove_text_properties): Fix typos in docstrings.
15329
153302008-05-31 Kenichi Handa <handa@m17n.org>
15331
15332 * font.c (font_list_entities): Fix the car part of data to be
15333 stored in the cache.
15334
15335 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15336
153372008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15338
15339 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15340 Add a `test' argument so another predicate than `equal' can be used.
15341 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15342 (map_char_table): Remove unused vars `c' and `i'.
15343 * lisp.h (Foptimize_char_table): Adjust declaration.
15344 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15345
153462008-05-30 Kenichi Handa <handa@m17n.org>
15347
15348 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15349 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15350 defined.
15351
153522008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15353
15354 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15355 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15356 frame-local settings for the same variable.
15357
153582008-05-30 Kenichi Handa <handa@m17n.org>
15359
15360 * fontset.c (Ffont_info): Move to font.c.
15361 (syms_of_fontset): Delete defsubr of Sfont_info.
15362
15363 * font.c (font_style_to_value, font_score): Delete casting of the
15364 args to xstcasecmp.
15365 (register_font_driver): Increment num_font_drivers only when
15366 registering the driver globally.
15367 (Ffont_info): Move from fontset.c. Handle a font object too.
15368 (syms_of_font): Defsubr Sfont_info.
15369
153702008-05-29 Kenichi Handa <handa@m17n.org>
15371
15372 * coding.h (enum define_coding_utf8_arg_index): New enum.
15373 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15374 coding_attr_utf_bom.
15375 (enum utf_bom_type): Rename from utf_16_bom_type.
15376 (struct utf_16_spec): Adjust for the above change.
15377 (struct coding_system): Add utf_8_bom in `spec' union.
15378
15379 * coding.c (CODING_UTF_8_BOM): New macro.
15380 (enum coding_category): Delete coding_category_utf_8, add
15381 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15382 coding_category_utf_8_sig.
15383 (CATEGORY_MASK_UTF_8): Delete it.
15384 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15385 (CATEGORY_MASK_UTF_8_SIG): New macros.
15386 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15387 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15388 CATEGORY_MASK_UTF_8_SIG.
15389 (CATEGORY_MASK_UTF_8): New macro.
15390 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15391 (detect_coding_utf_8): Check BOM.
15392 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15393 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15394 (encode_coding_utf_16): Likewise.
15395 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15396 (detect_coding, detect_coding_system): Handle utf-8-auto.
15397 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15398 (syms_of_coding): Fix setting up of Vcoding_category_table.
15399
154002008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15401
15402 * process.c (Faccept_process_output): If `millisec' is non-nil,
15403 `seconds' default to 0.
15404 (wait_reading_process_output): Also return non-nil if we read output
15405 from a non-running process.
15406
154072008-05-29 Jason Rumney <jasonr@gnu.org>
15408
15409 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15410 `raster' specified.
15411 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15412 in the uniscribe backend, but disallow any font that has no
15413 unicode subrange support.
15414
154152008-05-29 Juanma Barranquero <lekktu@gmail.com>
15416
15417 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15418 Fix typos in docstrings.
15419
154202008-05-29 Kenichi Handa <handa@m17n.org>
15421
15422 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15423 (Fx_family_fonts): Set frame correctly.
15424
154252008-05-28 Jason Rumney <jasonr@gnu.org>
15426
15427 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15428
154292008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15430
15431 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15432 calling build_annotations.
15433
154342008-05-28 Juanma Barranquero <lekktu@gmail.com>
15435
15436 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15437 (Fencode_coding_string):
15438 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15439 <latin-extra-code-table>: Fix typos in docstrings.
15440 (syms_of_coding) <coding-system-alist>: Doc fix.
15441 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15442
154432008-05-28 Kenichi Handa <handa@m17n.org>
15444
15445 * fontset.c (Ffont_info): Don't call font_close_object.
15446
15447 * font.c (font_parse_family_registry): Use Ffont_put to validate
15448 foundry and family.
15449 (font_delete_unmatched): Don't check spacing.
15450 (font_list_entities): Add spacing to the spec to list fonts.
15451
15452 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15453 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15454
15455 * coding.c (encode_coding_raw_text): Fix previous change.
15456 (encode_coding_object): When the dst_object is a buffer and is
15457 different from src_object, move gap to PT.
15458
154592008-05-27 Chong Yidong <cyd@stupidchicken.com>
15460
15461 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15462
154632008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15464
15465 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15466 all branches. Compute it differently.
15467
15468 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15469
154702008-05-27 Juanma Barranquero <lekktu@gmail.com>
15471
15472 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15473 into "else if () ... else ...".
15474
154752008-05-27 Jason Rumney <jasonr@gnu.org>
15476
15477 * w32font.c (w32font_open_internal): Determine if glyph indices
15478 are likely to work here.
15479
154802008-05-27 Chong Yidong <cyd@stupidchicken.com>
15481
15482 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15483 draw overlap glyphs with appropriate highlighting.
15484
154852008-05-27 Kenichi Handa <handa@m17n.org>
15486
15487 * xfont.c (xfont_open): Fix calculation of font->average_width.
15488
154892008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15490
15491 * casefiddle.c (casify_object): Try to guess better whether the
15492 argument is a byte or a char.
15493
154942008-05-26 Andreas Schwab <schwab@suse.de>
15495
15496 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15497 Always send multiples of format size.
15498
15499 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15500
155012008-05-26 Jason Rumney <jasonr@gnu.org>
15502
15503 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15504 (compute_metrics): Don't set failure if we just cleared the cache.
15505 (w32_weight_table): Remove unused variable.
15506 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15507 backwards compatibility.
15508
155092008-05-25 Kenichi Handa <handa@m17n.org>
15510
15511 * w32term.c (x_draw_glyph_string):
15512 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15513
15514 * xfaces.c: Delete unused function prototypes.
15515 (xstrlwr, font_frame): Delete them.
15516 (clear_face_cache): Delete unused variable.
15517
15518 * xftfont.c (xftfont_open): Delete unused variable.
15519 If underline_thickness is not 1, adjust underline_position.
15520
15521 * ftxfont.c (ftxfont_open): Delete unused variable.
15522
15523 * fontset.c (face_for_char): Optimize for the case of no charset
15524 property.
15525
15526 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15527 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15528 (otf_open, font_otf_capability, generate_otf_features)
15529 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15530 Comment out by surrounding "#if 0" and "#endif" for the moment.
15531 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15532 (syms_of_font): Codes for accessing above commented out.
15533
155342008-05-24 Eli Zaretskii <eliz@gnu.org>
15535
15536 * w32proc.c: Include dispextern.h.
15537
15538 * w32.c: Include dispextern.h.
15539
155402008-05-23 Juanma Barranquero <lekktu@gmail.com>
15541
15542 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15543 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15544 Fix typos in docstrings.
15545
155462008-05-23 Jason Rumney <jasonr@gnu.org>
15547
15548 * xsmfns.c: Remove includes that are already included by config.h.
15549
155502008-05-23 Kenichi Handa <handa@m17n.org>
15551
15552 * charset.c (Qemacs, charset_emacs): New variables.
15553 (char_charset): Fix for non-Unicode characters.
15554 (syms_of_charset): Define charset_emacs.
15555
15556 * w32term.c (x_draw_glyph_string): Be sure to update
15557 s->underline_thickness and s->underline_position. Be sure to draw
15558 underline within the current line area.
15559
15560 * xterm.c (x_draw_glyph_string): Be sure to update
15561 s->underline_thickness and s->underline_position. Be sure to draw
15562 underline within the current line area.
15563
15564 * fontset.c: Delete unused variables and add casting for char *
15565 throughout the file.
15566 (fontset_font): Try the fallback fonts of the current fontset
15567 before consulting the default fontset.
15568
15569 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15570
15571 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15572
155732008-05-22 Jason Rumney <jasonr@gnu.org>
15574
15575 * font.c: Don't include strings.h.
15576
15577 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15578
15579 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15580 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15581 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15582 to call xstrcasecmp.
15583
15584 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15585
15586 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15587
15588 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15589
15590 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15591
155922008-05-22 Kenichi Handa <handa@m17n.org>
15593
15594 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15595
15596 * font.c (font_prop_validate_style): Adjust for the format
15597 change of font_style_table.
15598
15599 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15600 two args.
15601
15602 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15603 two args.
15604
156052008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15606
15607 * minibuf.c (keys_of_minibuf): Delete.
15608 * lisp.h (keys_of_minibuf): Delete.
15609 * emacs.c (main): Don't call keys_of_minibuf.
15610
156112008-05-22 Kenichi Handa <handa@m17n.org>
15612
15613 * ftfont.c (ftfont_resolve_generic_family): Rename from
15614 ftfont_list_generic_family. Return a single family for each
15615 generic family.
15616 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15617 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15618 Call font_add_log.
15619 (ftfont_match): Call font_add_log.
15620
15621 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15622 (FONT_DEBUG): Define it.
15623 (font_add_log): Extern it.
15624 (font_assert): Rename from xassert.
15625
15626 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15627 (xfont_list_family): Call font_add_log.
15628 (xfont_match): Likewise.
15629 (memq_no_quit): Delete.
15630
15631 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15632 call of Ffont_xlfd_name.
15633
15634 * xfaces.c (struct table_entry, slant_table, weight_table)
15635 (swidth_table): Move to font.c.
15636
15637 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15638 xassert are changed to font_assert. Delete many unused variables.
15639 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15640 New variables.
15641 (struct table_entry): Move from xfaces.c and modified.
15642 (weight_table, slant_table, width_table): Move from xfaces.c and
15643 contents adjusted for the change of struct table_entry.
15644 (font_style_to_value, font_style_symbolic): Adjust for the
15645 format change of font_style_table.
15646 (font_parse_family_registry): Don't overwrite existing foundry and
15647 family of font_spec.
15648 (font_score): Fix calculation of diff for sizes.
15649 (font_sort_entites): Call font_add_log.
15650 (font_delete_unmatched): Return a newly created list.
15651 (font_list_entities): Fix previous change. Call font_add_log.
15652 (font_matching_entity, font_open_entity, font_close_entity):
15653 Call font_add_log.
15654 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15655 (Finternal_set_font_style_table): Delete.
15656 (BUILD_STYLE_TABLE): New macro.
15657 (build_style_table): New function.
15658 (Vfont_log, font_log_env_checked): New variables.
15659 (font_add_log): New function.
15660 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15661 Declare Lisp variables "font-weight-table", "font-slant-table",
15662 "font-width-table", and "font-log". Initialize font_style_table.
15663
156642008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15665
15666 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15667
156682008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15669 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15670
15671 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15672 (Vframe_alpha_lower_limit): New variable.
15673 (x_set_alpha): New function.
15674
15675 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15676
15677 * xfns.c (x-create-frame, Qalpha):
15678 Initialize the frame parameter `alpha'.
15679 * xterm.c (OPAQUE, OPACITY): New.
15680 (x_set_frame_alpha): New function.
15681 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15682
15683 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15684 * w32fns.c (w32_frame_parm_handlers): Likewise.
15685
156862008-05-20 Jason Rumney <jasonr@gnu.org>
15687
15688 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15689 truetype fonts to opentype list.
15690
156912008-05-20 Juanma Barranquero <lekktu@gmail.com>
15692
15693 * fontset.c (Ffontset_info): Doc fix.
15694 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15695 <ignore-relative-composition>: Fix typos in docstrings.
15696
15697 * font.c (syms-of-font) <font-encoding-alist>:
15698 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15699 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15700 (Ffont_otf_alternates): Doc fixes.
15701
157022008-05-20 Kenichi Handa <handa@m17n.org>
15703
15704 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15705 font.h through out the file.
15706 (FONT_DRIVERS): Rename from FONTOBJ.
15707 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15708 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15709
15710 * emacs.c (main): Call syms_of_font unconditionally.
15711
15712 * font.h (find_font_encoding): Extern it.
15713
15714 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15715 fontset.c.
194d44e7 15716 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15717 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15718 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15719 only when HAVE_WINDOW_SYSTEM is defined.
15720 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15721 when HAVE_WINDOW_SYSTEM is defined.
15722
15723 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15724 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15725
15726 * xfaces.c: Include font.h unconditionally.
15727 (merge_face_ref, merge_face_vectors)
15728 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15729
157302008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15731
15732 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15733 indirect_variable.
15734 * eval.c (lisp_indirect_variable): New fun.
15735 (Fuser_variable_p): Use it.
15736
157372008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15738
15739 * lisp.h (indirect_variable):
15740 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15741 Use Lisp_Symbol pointers rather than Lisp_Object.
15742 Adjust callers.
15743 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15744 To this end, change calling-convention.
15745
15746 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15747 if some non-hidden buffers are selected by string&pred.
15748
157492008-05-19 Chong Yidong <cyd@stupidchicken.com>
15750
15751 * process.c (wait_reading_process_output): Always check status
15752 when in batch mode.
15753
157542008-05-19 Kenichi Handa <handa@m17n.org>
15755
15756 * font.c (font_list_entities): Fix handling of cache.
15757 (font_matching_entity): Likewise.
15758
15759 * ftfont.c (cs_iso8859_1): Delete.
15760 (ft_face_cache): New variable.
15761 (struct ftfont_info): New member fc_charset_idx.
15762 (ftfont_build_basic_charsets): Delete.
15763 (fc_charset_table): New variable.
15764 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15765 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15766 Callers changed.
15767 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15768 (ftfont_spec_pattern): New argument fc_charset_idx.
15769 Check registry more rigidly. Change callers.
15770 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15771 change of :font-entity property of the font.
15772
15773 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15774 property of the font.
15775
157762008-05-18 Juanma Barranquero <lekktu@gmail.com>
15777
15778 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15779 (Funencodable_char_position, Fcheck_coding_systems_region)
15780 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15781 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15782 (Ffind_operation_coding_system, Fset_coding_system_priority)
15783 (Fcoding_system_eol_type): Doc fixes.
15784
157852008-05-17 Glenn Morris <rgm@gnu.org>
15786
15787 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15788
157892008-05-16 Eli Zaretskii <eliz@gnu.org>
15790
15791 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15792 and st_gid.
15793
15794 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15795 HAVE_WINDOW_SYSTEM is not defined.
15796
15797 * xfaces.c (merge_face_ref, merge_face_vectors)
15798 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15799 HAVE_WINDOW_SYSTEM is defined.
15800 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15801
158022008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15803
15804 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15805
158062008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15807
15808 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15809
158102008-05-15 Kenichi Handa <handa@m17n.org>
15811
15812 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15813 preference.
15814
158152008-05-15 Glenn Morris <rgm@gnu.org>
15816
15817 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15818
158192008-05-15 Chong Yidong <cyd@stupidchicken.com>
15820
15821 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15822 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15823
15824 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15825
158262008-05-15 Kenichi Handa <handa@m17n.org>
15827
15828 * ftfont.c (ftfont_list): Downcase family name to check generic
15829 families.
15830
15831 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15832 font-spec for QCfont value.
15833
15834 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15835 buffer. Check the return value of it.
15836
158372008-05-14 Jason Rumney <jasonr@gnu.org>
15838
15839 * w32term.c (w32_get_glyph_overhangs): Remove.
15840 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15841
158422008-05-14 Kenichi Handa <handa@m17n.org>
15843
15844 * font.c (font_prop_validate): Make nil a valid value.
15845 (font_clear_cache): Check if the cached vector of entities is nil
15846 or not.
15847
158482008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15849
15850 * emacs.c (main_thread): Conditionalize on
15851 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15852 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15853
15854 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15855 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15856 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15857
158582008-05-14 Kenichi Handa <handa@m17n.org>
15859
15860 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15861 has no corresponding coding system.
15862
158632008-05-14 Jason Rumney <jasonr@gnu.org>
15864
15865 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15866
15867 * w32font.h (w32font_open_internal): Update declaration.
15868
15869 * w32font.c (w32font_open_internal): Change last argument from
15870 w32font_info struct to font object. Fill in font object from
15871 font_entity. Get Outline metrics if possible. Use them to
15872 calculate underline position and thickness. Use xlfd name as name
15873 property. Don't set codepage.
15874 (w32font_open): Pass font_object to w32font_open_internal. Don't
15875 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15876 (w32font_draw): Use s->font.
15877 (clear_cached_metrics): Don't clear non-existent blocks.
15878
15879 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15880 font was not found.
15881 (x_draw_glyph_string): Use underline position and thickness from font.
15882
15883 * w32uniscribe.c (uniscribe_open): Pass font_object to
15884 w32font_open_internal.
15885
158862008-05-14 Kenichi Handa <handa@m17n.org>
15887
15888 These changes are to delete all legacy font-handling codes, and
15889 make Emacs use only font-backends.
15890
15891 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15892 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15893
15894 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15895
15896 * charset.h (Vcharset_non_preferred_head)
15897 (Vcurrent_iso639_language): Extern them.
15898
15899 * charset.c (Vcharset_non_preferred_head): New variable.
15900 (Vcurrent_iso639_language): New variable.
15901 (syms_of_charset): Declare it as a Lisp variable.
15902 (char_charset): Don't check non preferred charsets. As a last
15903 resort, return charset_unicode.
15904 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15905
15906 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15907 conditionals. Don't check enable_font_backend. Delete all codes
15908 used only when USE_FONT_BACKEND is not defined.
15909
15910 * dispextern.h (struct glyph_string): Change type of `font' to
15911 `struct font *'.
15912 (struct glyph_string): New member underline_position and
15913 underline_thickness.
15914 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
15915 (struct face): Change type of `font' to `struct font *'. Remove
15916 members `font_name', `font_info_id'.
15917 (per_char_metric, encode_char): Delete externs.
15918 (calc_pixel_width_or_height): Adjust the prototype.
15919
15920 * emacs.c (enable_font_backend): Delete extern.
15921 (main): Don't set enable_font_backend. Don't check the command
15922 line argument "-disable-font-backend".
15923
15924 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
15925 (enum font_property_index): New members FONT_DPI_INDEX,
15926 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
15927 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
15928 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
15929 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
15930 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
15931 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
15932 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
15933 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
15934 (struct font_spec, struct font_entity): New structs.
15935 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
15936 (struct font): Many members from old "struct font_info" moved to
15937 here. Members font and entity deleted.
15938 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
15939 the new font-related objects.
15940 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
15941 (CHECK_FONT_GET_OBJECT): Likewise.
15942 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
15943 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
15944 (struct font_driver): New members case_sensitive anc check. Type
15945 of the member list and open changed.
15946 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
15947 (font_symbolic_width, font_find_object, font_get_spec)
15948 (font_set_lface_from_name): Delete extern.
15949 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
15950
15951 * font.c: Include <strings.h>.
15952 (enable_font_backend): Delete it.
15953 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
15954 (CHECK_VALIDATE_FONT_SPEC): Delete it.
15955 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
15956 (null_string): Delete it.
15957 (null_vector): Make it static.
15958 (font_family_alist): Delete it.
15959 (Qnormal): Extern it.
15960 (QCextra, QClanguage): Delete it.
15961 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
15962 (font_make_spec, font_make_entity, font_make_object)
15963 (font_intern_prop): Renamed from intern_downcase. Don't downcase
15964 the string. Callers changed.
15965 (font_pixel_size): Adjusted for the format change of font-related
15966 objects.
15967 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
15968 (font_style_to_value, font_style_symbolic): New function.
15969 (build_font_family_alist): Delete it.
15970 (font_registry_charsets): Use Fassoc_string instead of
15971 assq_no_quit.
15972 (font_prop_validate_symbol): Don't return null_string.
15973 (font_prop_validate_style): Adjusted for the change of
15974 style-related values in a font vector.
15975 (font_property_table): Delete entries for QClanguage and
15976 QCantialias, add entries for QCavgwidth.
15977 (get_font_prop_index): Delete the 2nd argument FROM.
15978 (font_prop_validate): Arguments changed.
15979 (font_put_extra): Adjusted for the change of font-related objects.
15980 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
15981 (font_parse_fcname, font_unparse_fcname)
15982 (font_prepare_composition): Likewise.
15983 (font_parse_family_registry): Renamed from font_merge_old_spec.
15984 (otf_open): Delete the 1st arg entity.
15985 (font_otf_capability): Adjusted for the above change.
15986 (font_score): New arg alternate_families. Adjusted for the change
15987 of font-related objects.
15988 (font_sort_entites): New arg best_only.
15989 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
15990 Delete them.
15991 (font_match_p): Check alternate families.
15992 (font_find_object): Delete it.
15993 (font_check_object): New function.
15994 (font_clear_cache): Adjusted for the change of font-related objects.
15995 (font_delete_unmatched): New arg.
15996 (font_list_entities): Call font_driver->list with a spec that
15997 doesn't specify style-related properties.
15998 (font_matching_entity): Arguments changed. Caller changed.
15999 (font_open_entity): Adjusted for the change of font-related objects.
16000 (font_close_object, font_has_char, font_encode_char)
16001 (font_get_name, font_get_spec): Likewise.
16002 (font_spec_from_name, font_clear_prop, font_update_lface):
16003 New functions.
16004 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16005 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16006 (font_at): Adjusted for the change of font-related objects.
16007 (font_range): New function.
16008 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16009 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16010 (Fcopy_font_spec, Fmerge_font_spec): New function.
16011 (Ffont_family_list): Renamed from list-families.
16012 (Finternal_set_font_style_table): Arguments changed.
16013 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16014 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16015 change of font-related objects.
16016 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16017
16018 * fontset.h (struct font_info): Delete it. Most members go to
16019 struct font.
16020 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16021 (enum FONT_SPEC_INDEX): Delete it.
16022 (font_info, list_fonts_func, load_font_func, query_font_func)
16023 (set_frame_fontset_func, find_ccl_program_func)
16024 (get_font_repertory_func, new_fontset_from_font_name): Delete
16025 externs.
16026 (fontset_from_font_name): Extern it.
16027 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16028 (FONT_INFO_FROM_FACE): Deleted.
16029 (face_for_font): Adjust prototype.
16030
16031 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16032 conditionals. Don't check enable_font_backend. Delete all codes
16033 used only when USE_FONT_BACKEND is not defined.
16034 (get_font_info_func, list_font_func, load_font_func)
16035 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16036 (get_font_repertory_func): Delete them.
16037 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16038 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16039 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16040 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16041 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16042 (fontset_compare_rfontdef): New function.
16043 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16044 rfont-defs by qsort. Adjusted for the change of font-group vector.
16045 (load_font_get_repertory): Deleted.
16046 (fontset_find_font): Use new macros to ref/set elements of
16047 font-def and rfont-def.
16048 (fontset_font): Fix the timing of remembering that no font for C.
16049 (free_face_fontset): Do nothing if the face has no fontset.
16050 (face_suitable_for_char_p): Use new macros to ref/set elements of
16051 rfont-def.
16052 (face_for_char): Likewise. Call face_for_char with font_object.
16053 (fs_load_font): Delete. Delete #pragma surrounding it.
16054 (fs_query_fontset): Use strcasecmp instead of strcmp.
16055 (generate_ascii_font_name): Adjusted for the format change of
16056 font-spec.
16057 (Fset_fontset_font): Likewise. Use new macros to set elements of
16058 font-def.
16059 (Fnew_fontset): Use font_unparse_xlfd to generate
16060 FONTSET_ASCII (fontset).
16061 (new_fontset_from_font_name): Deleted.
16062 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16063 a fontset is already created for the font. FIx updating of
16064 Vfontset_alias_alist.
16065 (fontset_ascii_font): Deleted.
16066 (Ffont_info): Adjusted for the format change of font-spec.
16067 (Finternal_char_font): Likewise.
16068 (Ffontset_info): Likewise.
16069 (syms_of_fontset): Don't check load_font_func.
16070
16071 * fns.c (internal_equal): Handle PREV_FONT.
16072
16073 * frame.h: Delete USE_FONT_BACKEND conditional.
16074
16075 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16076 conditionals. Don't check enable_font_backend. Delete all codes
16077 used only when USE_FONT_BACKEND is not defined.
16078 (x_set_font): Call x_new_font, not x_new_fontset2.
16079 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16080 already set for the frame.
16081
16082 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16083 a font-entity by font_make_entity. Use font_intern_prop instead
16084 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16085 font property. If a font is scalable, set avgwidth property to 0.
16086 Set font-entity property by font_put_extra.
16087 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16088 (ffont_driver): Adjusted for the change of struct font_driver.
16089 (ftfont_spec_pattern): New function.
16090 (ftfont_list): Return a list, not vector.
16091 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16092 (ftfont_list_family): Don't downcase names.
16093 (ftfont_free_entity): Deleted.
16094 (ftfont_open): Return a font-object. Adjusted for the change of
16095 struct font. Get underline_thickness and underline_position from
16096 font property. Don't update dpyinfo->smallest_font_height and
16097 dpyinfo->smallest_char_width.
16098 (ftfont_close): Don't free `struct font'.
16099 (ftfont_has_char): Adjusted for the format change of font-entity.
16100 (ftfont_encode_char, ftfont_text_extents): Likewise.
16101
16102 * ftxfont.c (ftxfont_list): Return a list, not vector.
16103 (ftxfont_open): Return a font-object. Adjusted for the change of
16104 struct font. Get underline_thickness and underline_position from
16105 font property. Don't update dpyinfo->smallest_font_height and
16106 dpyinfo->smallest_char_width.
16107 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16108 (ftxfont_draw): Adjusted for the change of struct font.
16109
16110 * image.c (image_ascent): Don't include "charset.h". Include
16111 "character.h" and "font.h".
16112
16113 * lisp.h (enum pvec_type): New member PREV_FONT.
16114 (Fassoc_string): EXFUN it.
16115
16116 * print.c: Include font.h.
16117 (print_object): Handle font-related objects.
16118
16119 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16120 conditionals. Don't check enable_font_backend. Delete all codes
16121 used only when USE_FONT_BACKEND is not defined.
16122 (handle_auto_composed_prop): Do nothing if it->f is not on a
16123 window system. Check how many following characters can be
16124 displayed by the same font.
16125 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16126 'struct font *'.
16127 (get_char_face_and_encoding): Assign the whole encoding task to
16128 the `encode-char' method of a font driver.
16129 (fill_composite_glyph_string): Adjusted for the change of `struct
16130 face' and `struct glyph_string'.
16131 (fill_glyph_string): Likewise.
16132 (get_per_char_metric): Arguments changed.
16133 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16134 and `struct glyph_string'.
16135 (produce_stretch_glyph, calc_line_height_property)
16136 (x_produce_glyphs): Likewise.
16137
16138 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16139 conditionals. Don't check enable_font_backend. Delete all codes
16140 used only when USE_FONT_BACKEND is not defined. Use
16141 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16142 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16143 (Qp): Extern them.
16144 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16145 Deleted.
16146 (struct font_name): Deleted.
16147 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16148 (compare_fonts_by_sort_order): New function.
16149 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16150 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16151 Deleted.
16152 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16153 compare_fonts_by_sort_order.
16154 (Fx_font_family_list): Call Ffont_family_list.
16155 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16156 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16157 (face_symbolic_slant, face_symbolic_swidth)
16158 (split_font_name_into_vector, build_font_name_from_vector)
16159 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16160 (font_rescale_ratio, split_font_name, build_font_name)
16161 (free_font_names, sort_fonts, x_face_list_fonts)
16162 (face_font_available_p, sorted_font_list, cmp_font_names)
16163 (font_list_1, concat_font_list, font_list, remove_duplicates):
16164 Deleted.
16165 (Fx_list_fonts): Use Ffont_list.
16166 (LFACE_AVGWIDTH): Deleted.
16167 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16168 by FONTP.
16169 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16170 (set_lface_from_font_name): Delete it.
16171 (set_lface_from_font): Renamed from
16172 set_lface_from_font_and_fontset. Caller changed. Don't set
16173 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16174 for face.
16175 (merge_face_vectors): Copy font-spec if necessary.
16176 Clear properties of the font-spec if necessary.
16177 (merge_face_ref): Clear properties of the font-spec if necessary.
16178 (Finternal_set_lisp_face_attribute): Likewise.
16179 (set_font_frame_param): Use font_load_for_lface to load a
16180 font-object, and call Fmodify_frame_parameters with it.
16181 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16182 font name by Ffont_xlfd_name.
16183 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16184 QCslant, and QCwidth.
16185 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16186 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16187 Compare fonts by EQ.
16188 (lookup_non_ascii_face): Deleted.
16189 (face_for_font): The 2nd argument changed.
16190 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16191 Check atomic font properties by case insensitive.
16192 (realize_non_ascii_face): Set face->overstrike correctly.
16193 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16194 (dump_realized_face): Get font name from
16195 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16196
16197 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
16198 conditionals. Don't check enable_font_backend. Delete all codes
16199 used only when USE_FONT_BACKEND is not defined.
16200 (xic_create_xfontset): Original code deleted and renamed from
16201 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16202 (x_make_gc): Don't set GCFont in GCs.
16203 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16204 opened by "fixed".
16205 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16206 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16207 get_font_repertory_func.
16208
16209 * xfont.c: Include <stdlib.h> and "ccl.h".
16210 (struct xfont_info): New structure.
16211 (xfont_query_font): Deleted.
16212 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16213 moved from xterm.c.
16214 (xfont_driver): Adjusted for the change of struct font_driver.
16215 (compare_font_names): New function.
16216 (xfont_list_pattern): Sort font names case insensitively. Make
16217 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16218 (xfont_list): Return a list, not vector.
16219 (xfont_match): If the font doesn't have QCname property, generate
16220 a name from the other font properties.
16221 (xfont_open): Return a font-object. Adjusted for the change of
16222 struct font. Get underline_thickness and underline_position from
16223 font property. Don't update dpyinfo->smallest_font_height and
16224 dpyinfo->smallest_char_width.
16225 (xfont_close): Don't free struct font.
16226 (xfont_prepare_face): Adjusted for the change of struct font.
16227 (xfont_done_face): Deleted.
16228 (xfont_has_char): Adjusted for the change of struct font.
16229 (xfont_encode_char, xfont_draw): Likewise.
16230 (xfont_check): New function.
16231
16232 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16233 callback function.
16234 (xftfont_match): Adjusted for the format change of font-entity.
16235 (xftfont_open): Adjusted for the format change of font-entity and
16236 font-object. Adjusted for the change of struct font. Return a
16237 font-object. Don't update dpyinfo->smallest_font_height and
16238 dpyinfo->smallest_char_width.
16239 (xftfont_close): Block input while calling XftFontClose.
16240 (xftfont_prepare_face): Don't block input while calling
16241 xftfont_get_colors. Adjusted for the change of struct font.
16242 (xftfont_shape): Return value of error case fixed.
16243
16244 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16245
16246 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16247 conditionals.
16248 (FONT_WIDTH): Return (f)->max_width.
16249 (struct x_display_info): Delete member `font'.
16250 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16251 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16252 (struct x_output): Change type of `font' to `struct font *'.
16253
16254 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16255 conditionals. Don't check enable_font_backend. Delete all codes
16256 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16257 (x_per_char_metric, x_encode_char): Deleted.
16258 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16259 (x_compute_glyph_string_overhangs): Adjusted for the change of
16260 `struct face'.
16261 (x_draw_glyph_string_foreground)
16262 (x_draw_composite_glyph_string_foreground): Likewise.
16263 (x_draw_glyph_string): Likewise. Use font->underline_position and
16264 font->underline_thickness.
16265 (x_new_font): Renamed from x_new_fontset2.
16266 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16267 (x_check_font): Call `check' method of a font driver.
16268 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16269 (x_query_font, x_get_font_repertory): Deleted.
16270 (x_find_ccl_program): Renamed and moved to xfont.c.
16271 (x_redisplay_interface): Adjusted for the change of `struct
16272 redisplay_interface'.
16273
16274 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16275 conditionals. Don't check enable_font_backend. Delete all codes
16276 used only when USE_FONT_BACKEND is not defined. Surround non-used
16277 code by "#ifdef OLD_FONT" and "endif".
16278 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16279
16280 * w32font.h (struct w32font_info): New member.
16281 (FONT_COMPAT): New macro.
16282 (w32font_open_internal): Prototype adjusted.
16283
16284 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16285 OLD_FONT" and "endif".
16286
16287 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16288 conditionals. Don't check enable_font_backend. Delete all codes
16289 used only when USE_FONT_BACKEND is not defined.
16290 (w32font_open): Return a font-object. Make a font-object by
16291 font_make_object. Adjusted for the change of struct w32font_info.
16292 (w32font_close): Don't free struct font. Adjusted for the change
16293 of struct w32font_info.
16294 (w32font_encode_char, w32font_text_extents, w32font_draw):
16295 Adjusted for the change of struct w32font_info.
16296 (w32font_draw): Likewise.
16297 (w32font_list_internal): Return a list, not vector.
16298 (w32font_open_internal): Change the 4th arg to font-object.
16299 Adjusted for the change of struct w32font_info and font-object format.
16300 (add_font_name_to_list): Don't downcase names.
16301 (w32_enumfont_pattern_entity): Make a font-entity by
16302 font_make_entity. Adjusted for the format change of font-entity.
16303 Use FONT_SET_STYLE to set a style-related font property. If a
16304 font is scalable, set avgwidth property to 0. Set font-entity
16305 property by font_put_extra.
16306 (font_matches_spec): Adjusted for the format change of font-entity.
16307 (w32_weight_table, w32_decode_weight): New variables.
16308 (w32_encode_weight): New function.
16309 (fill_in_logfont): Adjusted for the format change of font-spec.
16310 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16311 weight value.
16312 (w32font_driver): Adjusted for the change of struct font_driver.
16313
16314 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16315 conditionals. Don't check enable_font_backend. Surround non-used
16316 code by "#ifdef OLD_FONT" and "endif".
16317 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16318 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16319
16320 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16321 conditionals. Don't check enable_font_backend. Delete all codes
16322 used only when USE_FONT_BACKEND is not defined. Surround non-used
16323 code by "#ifdef OLD_FONT" and "endif".
16324
16325 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16326 (uniscribe_open): Return value changed to font-object.
16327 Adjusted for the format change of font-object.
16328 (uniscribe_otf_capability): Adjusted for the change of struct font.
16329 (add_opentype_font_name_to_list): Don't downcase names.
16330 (uniscribe_font_driver): Adjusted for the change of struct
16331 font_driver.
16332
163332008-05-13 Chong Yidong <cyd@stupidchicken.com>
16334
16335 * dispnew.c (update_frame_1): Check if tty output is still valid
16336 before flushing it.
16337
163382008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16339
16340 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16341 to Gtk+ menus.
16342
163432008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16344
16345 * dired.c (file_name_completion): Tweak the code so as to always do it
16346 in a single pass. Tighten the scope of some variables.
16347
16348 * dired.c (Qdefault_directory): New var.
16349 (file_name_completion): Use it instead of Fexpand_file_name.
16350 (syms_of_dired): Initialize it.
16351
163522008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16353
16354 * fileio.c (double_dollars): Remove dead code.
16355
163562008-05-10 Eli Zaretskii <eliz@gnu.org>
16357
16358 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16359 Mention w32-get-true-file-attributes in doc string.
16360
16361 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16362
163632008-05-09 Glenn Morris <rgm@gnu.org>
16364
16365 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16366 2008-04-23.
16367
163682008-05-09 Eli Zaretskii <eliz@gnu.org>
16369
16370 Support for reporting owner and group of each file on MS-Windows:
16371 * dired.c (stat_uname, stat_gname): New functions, with special
16372 implementation for w32.
16373 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16374
16375 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16376 (dflt_group_name): New static variable.
16377 (dflt_group): Rename from the_group.
16378 (init_user_info): Init dflt_group fields. Get user's group name
16379 from LookupAccountSid.
16380 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16381 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16382 New initialization states.
16383 (globals_of_w32): Initialize them to zero. Initialize the default
16384 group name to "None".
16385 (GetFileSecurity_Name): New global var, the name of the function
16386 to call for GetFileSecurity.
16387 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16388 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16389 (get_file_security, get_security_descriptor_owner)
16390 (get_security_descriptor_group, is_valid_sid)
16391 (get_file_security_desc, get_rid, get_name_and_id)
16392 (get_file_owner_and_group): New functions.
16393 (stat): Use get_file_security_desc and get_file_owner_and_group to
16394 report the owner and primary group of each file. Don't ignore the
16395 high 32 bits of file's size, now that st_size is 64-bit wide.
16396 Fix test when to get true file attributes.
16397 (init_user_info): Use get_rid instead of equivalent inline code.
16398 (fstat): Don't ignore the high 32 bits of file's size.
16399
164002008-05-09 Chong Yidong <cyd@stupidchicken.com>
16401
16402 * image.c (png_load): Use correct bit-depth for setting background
16403 color.
16404
164052008-05-08 Eli Zaretskii <eliz@gnu.org>
16406
16407 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16408 epa-hook.elc.
16409
164102008-05-08 Juanma Barranquero <lekktu@gmail.com>
16411
16412 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16413
164142008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16415
16416 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16417 because the original parameters are in pure storage now.
16418 (mac_window): Remove unused params. Update callers.
16419
164202008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16421
16422 * lread.c (substitute_object_recurse): Use lower-level primitives.
16423 Don't signal errors when traversing sub-char-tables.
16424 Don't loop over all the possible characters when traversing char-tables.
16425
16426 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16427 just like we do in print.c.
16428
164292008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16430
16431 * minibuf.c (Ftry_completion): Remove code left over from when we used
16432 scmp instead of Fcompare_strings.
16433
164342008-05-04 Juanma Barranquero <lekktu@gmail.com>
16435
16436 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16437
164382008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16439
16440 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16441 Create bitmap context in native byte order.
16442
16443 * macterm.c (XDrawLine)
16444 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16445 context in native byte order.
16446
164472008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16448
16449 * config.in: Regenerate.
16450
16451 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16452 New definitions for Image I/O support.
16453 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16454 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16455 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16456 (mac_data_provider_release_data, image_load_image_io)
16457 [USE_MAC_IMAGE_IO]: New functions.
16458 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16459 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16460 (init_image_func_pointer) [MAC_OSX]: Remove function.
16461 (image_load_quartz2d) [MAC_OSX]: Check availability of
16462 CGImageCreateWithPNGDataProvider at compile time.
16463 Use lowercase `false' for boolean constant.
16464 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16465 Use image_load_image_io.
16466 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16467 Don't check MyCGImageCreateWithPNGDataProvider.
16468 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16469 Don't call init_image_func_pointer.
16470
16471 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16472
16473 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16474 Make variable non-static.
16475 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16476 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16477
16478 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16479 (RED_FROM_ULONG): Mask off higher bits.
16480 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16481
16482 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16483 Include AvailabilityMacros.h.
16484 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16485 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16486
164872008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16488
16489 * chartab.c (Fset_char_table_range): If range is t, really set all
16490 chars to that value.
16491
164922008-05-03 Eli Zaretskii <eliz@gnu.org>
16493
16494 * dired.c (Ffile_attributes): Don't allow the device number become
16495 negative.
16496
164972008-05-02 Daiki Ueno <ueno@unixuser.org>
16498
16499 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16500
165012008-05-02 Juri Linkov <juri@jurta.org>
16502
16503 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16504 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16505 DEFAULT argument as a list of default values in docstrings.
16506
165072008-05-01 Chong Yidong <cyd@stupidchicken.com>
16508
16509 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16510
165112008-05-01 Martin Rudalics <rudalics@gmx.at>
16512
16513 * dispnew.c (change_frame_size_1): Preserve small windows when
16514 shrinking frames by calling set_window_height|width with third
16515 arg 2.
16516
16517 * window.h (struct window): Replace field too_small_ok by field
16518 resize_proportionally.
16519
16520 * window.c (make_window): Initialize resize_proportionally.
16521 (enlarge_window): Temporarily set resize_proportionally to make
16522 sure that shrink_windows does scale the window proportionally.
16523 (shrink_windows): When window has resize_proportionally set try
16524 to shrink it proportionally by stealing from other windows.
16525 (struct saved_window, Fset_window_configuration)
16526 (compare_window_configurations): Handle resize_proportionally.
16527 (WINDOW_TOTAL_SIZE): New macro.
16528 (window_min_size, shrink_windows, size_window): Use it.
16529 (check_min_window_sizes): Remove. Invalid values of
16530 window-min-height|width are handled by window_min_size_2 now.
16531 (size_window, Fsplit_window, enlarge_window)
16532 (adjust_window_trailing_edge, grow_mini_window): Don't call
16533 check_min_window_sizes.
16534 (window_min_size_2, window_min_size_1, window_min_size):
16535 New argument safe_p for retrieving "safe" minimum sizes.
16536 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16537 (adjust_window_trailing_edge, grow_mini_window):
16538 Adjust arguments of window_min_size... functions.
16539 (shrink_windows): Argument min_size removed. New argument
16540 safe_p allows shrinking windows to their safe minimum sizes.
16541 Calculate minimum size and decide whether a window shall be
16542 deleted for each window individually.
16543 (size_window): When nodelete_p equals 2, tell shrink_windows to
16544 delete windows only if their new minimum size is no more safe.
16545 (shrink_window_lowest_first): Call window_min_size_1 to make
16546 sure to preserve modeline of bottom-most window when resizing
16547 the minibuffer.
16548 (Fset_window_configuration, Fcurrent_window_configuration)
16549 (compare_window_configurations): Do not handle
16550 window-min-height|width any more.
16551 (syms_of_window): Clarify window-min-height|width doc-strings.
16552
165532008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16554
16555 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16556 some more. Copy some of the code from Ftry_completions.
16557 Remove special case code that dates back to initial revision when the
16558 slash was only added when necessary and that can't trigger nowadays.
16559
165602008-04-27 Kenichi Handa <handa@m17n.org>
16561
16562 * font.c (font_prop_validate): Signal `error' instead of `font'.
16563
165642008-04-29 Jason Rumney <jasonr@gnu.org>
16565
16566 * w32fns.c (Fw32_battery_status): New defun.
16567 (syms_of_w32fns): Defsubr it.
16568
165692008-04-28 Andreas Schwab <schwab@suse.de>
16570
16571 * dired.c (file_name_completion): Fix another mixing of encoded
16572 and decoded names.
16573
165742008-04-28 Juanma Barranquero <lekktu@gmail.com>
16575
16576 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16577
165782008-04-27 Juanma Barranquero <lekktu@gmail.com>
16579
16580 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16581
165822008-04-27 Andreas Schwab <schwab@suse.de>
16583
16584 * dired.c (file_name_completion): Fix inappropriate mixing of
16585 encoded and decoded names.
16586
16587 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16588
16589 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16590
165912008-04-26 Eli Zaretskii <eliz@gnu.org>
16592
16593 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16594 2008-03-31, it's not needed anymore with `struct stat' definition
16595 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16596 for the same reasons.
16597
165982008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16599
16600 * m/sparc.h: Additional redefinitions for GNU/Linux.
16601
166022008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16603
16604 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16605 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16606 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16607 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16608 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16609 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16610 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16611 Likewise.
16612
16613 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16614 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16615 (mac_ax_number_of_characters): Add externs.
16616 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16617 [USE_MAC_TSM]: Likewise.
16618 (mac_handle_text_input_event) [MAC_OSX]:
16619 Handle kEventTextInputOffsetToPos for no active input area case.
16620 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16621 (mac_handle_document_access_event)
16622 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16623 (install_application_handler) [MAC_OSX]: Register handlers for
16624 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16625 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16626 Register mac_handle_document_access_event.
16627
16628 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16629 Make functions non-static.
16630
166312008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16632
16633 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16634 (read_file_name_completion_ignore_case, insert_default_directory)
16635 (Qdefault_directory): Move to minibuffer.el.
16636 (Fread_file_name): Call the new `read-file-name' instead.
16637
166382008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16639
16640 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16641 Make function non-static.
16642 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16643 Remove function.
16644 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16645 Move to mactoolbox.c.
16646 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16647
16648 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16649 (mac_rect_make): New macro.
16650
16651 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16652 instead of float.
16653 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16654 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16655 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16656 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16657 CGRectMake.
16658 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16659 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16660 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16661 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16662 instead of WindowRef in argument type.
16663 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16664 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16665 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16666 instead of DISPLAY. All uses changed.
16667 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16668 (x_calc_absolute_position): Simplify so as not to use
16669 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16670
16671 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16672 instead of WindowRef in argument type.
16673 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16674 [TARGET_API_MAC_CARBON]: Remove externs.
16675 (create_apple_event, mac_event_parameters_to_lisp)
16676 [TARGET_API_MAC_CARBON]: Add externs.
16677
16678 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16679 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16680 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16681 is clicked.
16682 (x_activate_menubar): Remove extern for saved_menu_event_location.
16683 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16684 Move from mac.c.
16685
166862008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16687
16688 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16689 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16690
166912008-04-23 Jason Rumney <jasonr@gnu.org>
16692
16693 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16694 attributes only for local files.
16695
16696 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16697 default to Qlocal.
16698
166992008-04-22 Juri Linkov <juri@jurta.org>
16700
16701 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16702 read-buffer-to-switch instead of using the letter "B".
16703
167042008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16705
16706 * fileio.c (Qdefault_directory): New variable.
16707 (Fread_file_name): Use it to pass `dir' to the completion functions.
16708
167092008-04-20 Chong Yidong <cyd@stupidchicken.com>
16710
16711 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16712
167132008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16714
16715 * keyboard.c (Vpre_help_message): Remove.
16716 (show_help_echo): Remove default C code.
16717
16718 * dired.c (directory_files_internal, file_name_completion):
16719 Only call ENCODE_FILE if the string is indeed decoded.
16720
167212008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16722
16723 * Makefile.in (TOOLKIT_DEFINES): Remove.
16724 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16725
167262008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16727
16728 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16729 (mactoolbox.o): New target.
16730
16731 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16732 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16733
16734 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16735 Use mac_set_frame_window_background instead of XSetWindowBackground.
16736 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16737 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16738 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16739 instead of SetWindowTitleWithCFString.
16740 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16741 Move function to mactoolbox.c.
16742 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16743 Use mac_set_window_modified instead of SetWindowModified.
16744 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16745 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16746 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16747 FrontNonFloatingWindow. Use mac_activate_window instead of
16748 ActivateWindow. Use mac_active_non_floating_window instead of
16749 ActiveNonFloatingWindow.
16750 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16751 Use mac_show_hourglass and mac_hide_hourglass.
16752 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16753 instead of GetGlobalMouse.
16754 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16755 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16756 Use mac_bring_window_to_front instead of BringToFront.
16757 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16758 mactoolbox.c.
16759 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16760 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16761 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16762 mactoolbox.c.
16763
16764 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16765 (XtPointer): Move typedef from macmenu.c.
16766 (enum button_type): Move enum from macmenu.c.
16767 (widget_value): Move typedef from macmenu.c.
16768 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16769 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16770 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16771 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16772 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16773 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16774 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16775 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16776 (Selection): Move typedef from macselect.c.
16777 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16778 macterm.c.
16779 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16780 (mac_is_window_collapsed, mac_bring_window_to_front)
16781 (mac_send_window_behind, mac_hide_window, mac_show_window)
16782 (mac_collapse_window, mac_front_non_floating_window)
16783 (mac_active_non_floating_window, mac_activate_window)
16784 (mac_move_window_structure, mac_move_window, mac_size_window)
16785 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16786
16787 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16788 (enum mac_menu_kind): Move enum to mactoolbox.c.
16789 (min_menu_id): Move variable to mactoolbox.c.
16790 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16791 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16792 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16793 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16794 [TARGET_API_MAC_CARBON]: Likewise.
16795 (XtPointer): Move typedef to macgui.h.
16796 (enum button_type): Move enum to macgui.h.
16797 (widget_value): Move typedef to macgui.h.
16798 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16799 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16800 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16801 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16802 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16803 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16804 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16805 (popup_activated_flag): Make variable non-static.
16806 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16807 (add_menu_item, fill_menu, dispose_menus):
16808 Move functions to mactoolbox.c.
16809 (restore_show_help_function, menu_target_item_handler)
16810 (install_menu_target_item_handler, mac_handle_dialog_event)
16811 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16812 [TARGET_API_MAC_CARBON]: Likewise.
16813 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16814 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16815 (find_and_call_menu_selection, name_is_separator): Make function
16816 non-static.
16817 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16818 to mactoolbox.c.
16819 (set_frame_menubar): Don't call install_menu_quit_handler.
16820 (menu_item_selection): New variable.
16821 (mac_menu_show): Use create_and_show_popup_menu.
16822 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16823 selection but set variable menu_item_selection. All uses changed.
16824 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16825 Call install_menu_quit_handler. Move to mactoolbox.c.
16826
16827 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16828 (Selection): Move typedef to macgui.h.
16829 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16830 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16831 Make variables non-static.
16832 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16833 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16834 Make functions non-static.
16835 (Vmac_service_selection) [MAC_OSX]: Likewise.
16836 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16837 (mac_valid_selection_target_p, mac_clear_selection)
16838 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16839 (mac_put_selection_value, mac_selection_has_target_p)
16840 (mac_get_selection_value, mac_get_selection_target_list)
16841 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16842 Move functions to mactoolbox.c.
16843 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16844 Likewise.
16845 (copy_scrap_flavor_data, mac_handle_service_event)
16846 (install_service_handler) [MAC_OSX]: Likewise.
16847 (syms_of_macselect) <Vmac_dnd_known_types>:
16848 Use mac_dnd_default_known_types.
16849
16850 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16851 Move to mactoolbox.c.
16852 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16853 (Fx_selection_owner_p): Add EXFUN.
16854 (install_window_handler, remove_window_handler, XSetWindowBackground):
16855 Remove externs.
16856 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16857 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16858 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16859 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16860 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16861 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16862 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16863 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16864 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16865 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16866 (mac_valid_selection_target_p, mac_clear_selection)
16867 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16868 (mac_put_selection_value, mac_selection_has_target_p)
16869 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16870 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16871 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16872 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16873 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16874 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16875 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16876 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16877 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16878
16879 * mactoolbox.c: New file.
16880
168812008-04-18 Jason Rumney <jasonr@gnu.org>
16882
16883 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16884
168852008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16886
16887 * character.c (Fmultibyte_char_to_unibyte):
16888 Return latin1 chars unchanged.
16889
16890 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16891 relocated if it points to `name'.
16892
168932008-04-17 Kenichi Handa <handa@m17n.org>
16894
16895 * data.c (Faset): Allow setting a multibyte character in an
16896 ASCII-only unibyte string.
16897
16898 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16899
169002008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16901
16902 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16903 done in config.h.
16904
169052008-04-16 Juanma Barranquero <lekktu@gmail.com>
16906
16907 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16908 (Fchar_direction): Add usage in the docstring.
16909
169102008-04-15 Chong Yidong <cyd@stupidchicken.com>
16911
16912 * keyboard.c (read_key_sequence): Remove always-true checks.
16913
169142008-04-14 Jason Rumney <jasonr@gnu.org>
16915
16916 * w32font.c (w32font_open_internal): Set max_bounds.descent in
16917 compatibility struct, for better underline positioning.
16918
169192008-04-13 David Hansen <david.hansen@gmx.net>
16920
16921 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
16922 string.
16923
169242008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
16925
16926 * m/hp800.h (XUINT, XSET): Remove.
16927
169282008-04-12 Juanma Barranquero <lekktu@gmail.com>
16929
16930 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
16931 previous change.
16932
169332008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
16934
16935 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
16936 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
16937
169382008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16939
16940 * keymap.h (map_keymap_canonical): Declare.
16941 * xmenu.c (single_keymap_panes): Use it.
16942
169432008-04-11 Glenn Morris <rgm@gnu.org>
16944
16945 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
16946 set the target's value to that of the alias.
16947
169482008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
16949
16950 * term.c (set_tty_color_mode): Left over typo.
16951
169522008-04-10 Michael Albinus <michael.albinus@gmx.de>
16953
16954 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
16955 only after check for file name handler functions. Signal, when
16956 native functionality is not supported.
16957 (syms_of_fileio): Declare it unconditionally.
16958
169592008-04-10 Jason Rumney <jasonr@gnu.org>
16960
16961 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
16962 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
16963
16964 * w32.c (logon_network_drive): Also logon to remote drives that
16965 are mapped to drive letters.
16966
169672008-04-10 Glenn Morris <rgm@gnu.org>
16968
16969 * xdisp.c (truncate-partial-width-windows): Doc fix.
16970
169712008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
16972
16973 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
16974 Move functions to minibuffer.el.
16975 (syms_of_fileio): Don't declare them.
16976
169772008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
16978
16979 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
16980 (syms_of_minibuf): Remove its initialization.
16981
16982 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
16983
169842008-04-09 Juanma Barranquero <lekktu@gmail.com>
16985
16986 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
16987
169882008-04-09 Jason Rumney <jasonr@gnu.org>
16989
16990 * makefile.w32-in (distclean): Delete makefile too.
16991 (maintainer-clean): New target.
16992
16993 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
16994
16995 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
16996 for new font backend and composite cases.
16997
169982008-04-09 Jan Djärv <jan.h.d@swipnet.se>
16999
17000 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17001 Most of the code moved to run_timers.
17002 (do_pending_atimers): Call run_timers.
17003 (run_timers): New function.
17004
17005 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17006 run atimers.
17007
17008 * process.c (wait_reading_process_output): The same as above.
17009
170102008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17011
17012 * minibuf.c (last_exact_completion): Remove variable.
17013 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17014 (complete_and_exit_1, complete_and_exit_2)
17015 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17016 (Fdisplay_completion_list, display_completion_list_1)
17017 (Fminibuffer_completion_help, Fself_insert_and_exit)
17018 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17019 minibuffer.el.
17020 (syms_of_minibuf): Remove corresponding initializations.
17021
17022 * keyboard.c (Qdeactivate_mark): New var.
17023 (command_loop_1): Use it to call `deactivate-mark'.
17024 (syms_of_keyboard): Initialize it.
17025
17026 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17027 to another frame.
17028 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17029 Don't call set_tty_color_mode.
17030 (store_frame_param): Reset previous_frame rather than call
17031 set_tty_color_mode.
17032 * term.c (set_tty_color_mode): Rewrite.
17033 * dispextern.h (set_tty_color_mode): New type.
17034 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17035
170362008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17037
17038 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17039 for generic chars, which do not exist any more in emacs-unicode.
17040
170412008-04-08 Michael Albinus <michael.albinus@gmx.de>
17042
17043 * coding.c (detect_coding_emacs_mule)
17044 (Ffind_operation_coding_system): Fix typo.
17045
170462008-04-08 Jason Rumney <jasonr@gnu.org>
17047
17048 * w32uniscribe.c (SNAME): Extract only symbol name.
17049
17050 * w32font.h (struct w32_metric_cache): New struct.
17051 (w32font_info): Use it.
17052 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17053 (CACHE_BLOCKSIZE): New constants.
17054
17055 * w32font.c (Qja, Qko, Qzh): New symbols.
17056 (syms_of_w32font): Initialise them.
17057 (font_matches_spec): Use them to filter by language.
17058 (recompute_cached_metrics): Remove function.
17059 (compute_metrics, clear_cached_metrics): New functions.
17060 (w32font_encode_char): Use them to manage metric cache.
17061 (w32font_text_extents): Cache metrics for all glyphs on demand.
17062 Delay converting glyph indices to WORD until needed.
17063 (w32font_open_internal): Initialize metric cache to empty.
17064 (registry_to_w32_charset): Charset should always be a symbol.
17065 (fill_in_logfont, list_all_matching_fonts): Family should
17066 always be a symbol.
17067
170682008-04-06 Jason Rumney <jasonr@gnu.org>
17069
17070 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17071 Give up if glyph indices not supported. Use uniscribe obtained
17072 ABC widths for individual metrics. Map glyph clusters back to
17073 characters using fClusterStart flag. Return number of glyphs
17074 produced, not chars processed.
17075 (uniscribe_shape): Map char at FROM to current glyph.
17076
170772008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17078
17079 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17080 Use SetMenuItemHierarchicalMenu.
17081
170822008-04-05 Jason Rumney <jasonr@gnu.org>
17083
17084 * image.c (pbm_load): Allow color values up to 65535.
17085 Throw an error if max_color_idx is outside the supported range.
17086 Report an error when image size is invalid.
17087 Read two bytes at a time when raw images have max_color_idx above 255.
17088
aac0c6e3
MR
170892008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17090
17091 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17092 append "CCL: Quitted" when the CCL program is quitted.
17093 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17094
17095 * ccl.h (struct ccl_program): New member quit_silently.
17096
170972008-04-05 Chong Yidong <cyd@stupidchicken.com>
17098
17099 * search.c (compile_pattern_1): Treat non-nil and non-string of
17100 search-spaces-regexp as nil.
17101
17102 * minibuf.c (Fassoc_string): Tweak docstring.
17103
171042008-04-05 Eli Zaretskii <eliz@gnu.org>
17105
17106 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17107 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17108 2008-03-14 to force inode be positive.
17109
17110 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17111 _S_* ones, since we now use our own sys/stat.h.
17112 (stat, fstat): Don't mangle the inode number.
17113 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17114
171152008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17116
17117 * frame.h (struct frame): Give one more bit to `visible' since we use
17118 values larger than 1 to indicate obscured frames on ttys.
17119
17120 * keymap.c (Qkeymap_canonicalize): New var.
17121 (Fmap_keymap_internal): New fun.
17122 (describe_map): Use keymap-canonicalize.
17123
17124 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17125 (Fundo_boundary): Set them.
17126 (syms_of_undo): Initialize them.
17127 (record_point): Use them instead of last_point_position*.
17128 (last_undo_buffer): Change type.
17129
171302008-04-04 Jason Rumney <jasonr@gnu.org>
17131
17132 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17133 (recompute_cached_metrics): Don't set ascent and descent per char.
17134
17135 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17136 (uniscribe_check_otf): Add GC protection before consing.
17137 Rearrange loop for counting features.
17138
171392008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17140
17141 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17142 buffer with byte-size of source buffer.
17143
171442008-04-03 Chong Yidong <cyd@stupidchicken.com>
17145
17146 * callint.c (Fcall_interactively): Handle temporary region even
17147 when shift-select-mode is off.
17148
171492008-04-03 Jason Rumney <jasonr@gnu.org>
17150
17151 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17152
171532008-04-03 Kenichi Handa <handa@m17n.org>
17154
17155 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17156 (CATEGORY_MASK_UTF_16): Likewise.
17157 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17158 binary file.
17159 (detect_coding): Add null-byte detection for a binary file.
17160 (detect_coding_system): Likewise.
17161
171622008-04-03 Jason Rumney <jasonr@gnu.org>
17163
17164 * w32uniscribe.c: New file.
17165
17166 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17167
17168 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17169
17170 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17171 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17172 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17173 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17174 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17175 (Qphonetic): New symbols.
17176 (syms_of_w32font): Initialize them.
17177 (font_supported_scripts): Use them.
17178 (w32font_list_family): List all charsets.
17179 (w32font_text_extents, recompute_cached_metrics): Fix metric
17180 calculations.
17181 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17182 Give opentype fonts their own format.
17183 (font_matches_spec): New arguments backend and logfont.
17184 Handle :otf spec for uniscribe backend.
17185 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17186 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17187
17188 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17189 font backend.
17190 (globals_of_w32fns): Initialize uniscribe font backend.
17191
17192 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17193 dependencies.
17194 (w32uniscribe.$(O)): New file to build.
17195 (FONT_OBJ): Include w32uniscribe.$(O).
17196 (LIBS): Add uniscribe libraries.
17197
17198 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17199
172002008-04-02 Chong Yidong <cyd@stupidchicken.com>
17201
17202 * callint.c (Vshift_select_mode): New var.
17203 (Finteractive): Document new ^ spec.
17204 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17205 is present.
17206
17207 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17208 (command_loop_1): Avoid running the direct display versions of
17209 forward-char and backward-char if shift-selection may occur.
17210 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17211 shift-translation takes place.
17212
17213 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17214 avoid clobbering by define-minor-mode.
17215
17216 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17217 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17218
17219 * syntax.c (Fforward_word): Add ^ interactive spec.
17220
17221 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17222 (Fscroll_right): Add ^ interactive spec.
17223
172242008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17225
17226 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17227
17228 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17229
17230 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17231
172322008-03-31 Juri Linkov <juri@jurta.org>
17233
17234 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17235
172362008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17237
17238 * gtkutil.c (xg_set_geometry): Fix indentation.
17239 (xg_resize_outer_widget): Remove.
17240 (x_wm_size_hint_off): Fix indentation.
17241 (xg_frame_set_char_size): Call flush_and_sync after
17242 gtk_window_resize.
17243 (x_wm_set_size_hint): Pass NULL as geometry window to
17244 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17245 Add menu bar and tool bar height to base height.
17246 (xg_update_frame_menubar, free_frame_menubar)
17247 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17248 (update_frame_tool_bar, free_frame_tool_bar):
17249 Change xg_resize_outer_widget to xg_frame_set_char_size.
17250
172512008-03-30 Michael Albinus <michael.albinus@gmx.de>
17252
17253 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17254 (Fdbus_call_method): New parameter TIMEOUT.
17255 (dbus-send-signal): Optimize UNGCPRO call.
17256
172572008-03-29 Juri Linkov <juri@jurta.org>
17258
17259 * window.c (Fdisplay_buffer): Move call to
17260 Vsplit_window_preferred_function out of conditions that check
17261 if window is eligible for vertical splitting.
17262 When Vsplit_window_preferred_function is non-nil, call it and use
17263 its non-nil return value as window. Otherwise, continue doing
17264 vertical splitting using Fsplit_window with arg horflag=nil.
17265 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17266 default value from `split-window' to nil.
17267
172682008-03-29 Juri Linkov <juri@jurta.org>
17269
17270 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17271 for interactive code letters 'b' and 'B'.
17272
172732008-03-29 Eli Zaretskii <eliz@gnu.org>
17274
17275 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17276 multibyte string.
17277
172782008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17279
17280 * keyboard.c (pending_funcalls): New var.
17281 (timer_check): Run it.
17282 (syms_of_keyboard): Initialize it.
17283 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17284 (Vdelete_terminal_functions): New vars.
17285 (syms_of_terminal): Initialize them.
17286 (Fdelete_terminal): Run delete-terminal-functions.
17287 * xdisp.c (safe_eval): Rewrite.
17288 (safe_call2): New fun.
17289 * frame.c (Qdelete_frame_functions): New var.
17290 (syms_of_frame): Initialize it.
17291 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17292 * lisp.h (safe_call2, pending_funcalls): Declare.
17293
172942008-03-28 Andreas Schwab <schwab@suse.de>
17295
17296 * indent.c (Fmove_to_column): Move declaration before statements.
17297
172982008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17299
17300 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17301 (struct frame): Use bit fields for boolean vars.
17302
17303 * process.c (server_accept_connection): Simplify naming.
17304 (emacs_get_tty_pgrp): Use SDATA.
17305
17306 * coding.c (decode_coding_object): Fix last change.
17307
173082008-03-27 Jason Rumney <jasonr@gnu.org>
17309
17310 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17311
173122008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17313
17314 * charset.c (Fdefine_charset_internal): Change the way of
17315 registering charsets in Vcharset_order_list.
17316 (syms_of_charset): Make the charset `eight-bit' supplementary.
17317
173182008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17319
17320 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17321 operations, to avoid having the difference between pointers
17322 overflow.
17323
173242008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17325
17326 * indent.c (check_display_width): New fun.
17327 (scan_for_column): Use it.
17328
17329 * data.c (syms_of_data): Mark most-positive-fixnum and
17330 most-negative-fixnum as constants.
17331
17332 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17333
17334 * indent.c (scan_for_column): Extract from current_column_1.
17335 Merge with the same code from Fmove_to_column.
17336 (current_column_1, Fmove_to_column): Use it.
17337
173382008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17339
17340 * keymap.c (map_keymap_internal): New fun.
17341 (map_keymap): Use it.
17342 (Fmap_keymap_internal): New fun.
17343 (Fmap_keymap): Remove left-out test from before make_save_value.
17344
17345 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17346
17347 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17348 Use XCAR/XCDR.
17349
17350 * process.h (struct Lisp_Process): Remove filter_multibyte.
17351 * process.c (QCfilter_multibyte): Remove.
17352 (setup_process_coding_systems): Don't use filter_multibyte.
17353 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17354 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17355 (Fset_process_filter_multibyte): Change the coding-system to
17356 approximate the previous behavior.
17357 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17358 coding-system.
17359
17360 * coding.c (decode_coding_object): When not decoding into a buffer,
17361 obey the coding system's preference of (uni|multi)byte.
17362
173632008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17364
17365 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17366 every char is changed and has a different byte-length.
17367 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17368 Fix int -> EMACS_INT.
17369
173702008-03-23 David Hansen <david.hansen@gmx.net>
17371
17372 * dbusbind.c (xd_read_message): Remove extra copying of message
17373 strings. Check for NULL `interface' or `member'.
17374
173752008-03-22 Eli Zaretskii <eliz@gnu.org>
17376
17377 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17378 cFileName a file name that includes `?' characters, use the 8+3
17379 alias in cAlternateFileName instead.
17380
173812008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17382
17383 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17384
173852008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17386
17387 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17388 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17389 work on current_buffer only instead (that was already the case
17390 for some of the code anyway).
17391 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17392 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17393 (SET_PT, SET_PT_BOTH): Adjust.
17394 * intervals.h (set_point, temp_set_point, set_point_both)
17395 (temp_set_point_both): Remove redundant declarations.
17396
173972008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17398
17399 * fileio.c (Finsert_file_contents):
17400 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17401 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17402 when buffer != current_buffer anyway.
17403
174042008-03-20 Andreas Schwab <schwab@suse.de>
17405
17406 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17407 as default.
17408
174092008-03-19 Jason Rumney <jasonr@gnu.org>
17410
17411 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17412 (syms_of_w32fns): Initialize them.
17413 (HOURGLASS_ID): New constant.
17414 (x_window_to_frame): Don't check hourglass_window.
17415 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17416 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17417 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17418 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17419 Only change the cursor if hourglass is not active.
17420 (Fx_create_frame): Initialize frame's current_cursor.
17421 (hourglass_atimer): Remove.
17422 (hourglass_started): New function.
17423 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17424 (show_hourglass): Adapt to w32, changing argument to frame.
17425
17426 * w32term.h (struct w32_output): Remove hourglass_window.
17427 Add current_cursor.
17428
17429 * eval.c (call_debugger, Fsignal):
17430 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17431 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17432 (Fexecute_extended_command, cancel_hourglass_unwind):
17433 * minibuf.c (read_minibuf):
17434 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17435
174362008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17437
17438 * window.c (run_funs): New fun.
17439 (run_window_configuration_change_hook): Use it to run the buffer-local
17440 and the global part of the hook.
17441
17442 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17443 (unwind_format_mode_line): Restore selected window.
17444 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17445
174462008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17447
17448 * editfns.c (Fchar_equal): Check they are valid characters.
17449
17450 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17451
174522008-03-17 Andreas Schwab <schwab@suse.de>
17453
17454 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17455 against a charset.
17456
17457 * lisp.h (Fbuffer_list): Declare.
17458
174592008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17460
aac0c6e3
MR
17461 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17462 handlebox_widget is != 0.
17463
174642008-03-16 Juri Linkov <juri@jurta.org>
17465
17466 * callint.c (Fcall_interactively): For interactive code letters
17467 'b' and 'B' put the buffer list into the list of default "future"
17468 values of the minibuffer.
17469
174702008-03-16 Andreas Schwab <schwab@suse.de>
17471
17472 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17473 modifiers.
17474
17475 * regex.c (re_match_2_internal): Correct matching of a charset
17476 against latin-1 characters.
17477
174782008-03-16 Kenichi Handa <handa@m17n.org>
17479
17480 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17481 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17482 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17483 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17484 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17485 CHAR_STRING_ADVANCE.
17486 (produce_chars): Fix for the case that the source and the
17487 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17488 instead of CHAR_STRING_ADVANCE.
17489 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17490 STRING_CHAR_ADVANCE.
17491
174922008-03-15 Andreas Schwab <schwab@suse.de>
17493
17494 * regex.c (re_match_2_internal): Correct matching of eight bit
17495 characters in unibyte strings.
17496
174972008-03-15 Martin Rudalics <rudalics@gmx.at>
17498
17499 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17500 at end of range when it coincides with the end of the buffer.
17501
175022008-03-14 Eli Zaretskii <eliz@gnu.org>
17503
17504 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17505
17506 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17507
175082008-03-14 Jason Rumney <jasonr@gnu.org>
17509
17510 * editfns.c (initial_tz): New variable.
17511 (syms_of_editfns): Initialize it.
17512 (Fset_time_zone_rule): Set it when first called.
17513 Use it when TZSTRING is nil.
17514
17515 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17516 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17517 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17518 (globals_of_w32fns): Initialize them.
17519 (compute_tip_xy): Use them to position tooltips.
17520
175212008-03-14 Glenn Morris <rgm@gnu.org>
17522
17523 * emacs.c (main): Revert previous change.
17524 (standard_args): Revert -internal-script back to -scriptload,
17525 and remove the long-option form.
17526
175272008-03-13 Glenn Morris <rgm@gnu.org>
17528
17529 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17530 Remove option -enable-font-backend.
17531
175322008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17533
17534 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17535
175362008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17537
17538 * xterm.c (x_connection_closed): For GTK: If this is the last
17539 terminal just exit without closing the display.
17540
175412008-03-11 Jason Rumney <jasonr@gnu.org>
17542
17543 * w32font.c (w32font_full_name): Use floor to round.
17544
f0131492 175452008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17546
17547 * sound.c (alsa_configure): Declare vol at beginning of block.
17548
17549 * fontset.c (Ffontset_info): Remove extra semicolon.
17550
175512008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17552
17553 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17554 size of resulting string.
17555
175562008-03-10 Jason Rumney <jasonr@gnu.org>
17557
17558 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17559
175602008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17561
17562 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17563 Don't pretend as if characters with display property haven't been
17564 consumed for string-replacing-string case.
17565
175662008-03-08 Kim F. Storm <storm@cua.dk>
17567
17568 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17569 (get_next_display_element, next_element_from_string)
17570 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17571
175722008-03-08 Andreas Schwab <schwab@suse.de>
17573
17574 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17575
175762008-03-06 Jason Rumney <jasonr@gnu.org>
17577
17578 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17579 when charset not specified. Only translate ANSI to unicode when
17580 font_type is truetype.
17581 (w32font_coverage_ok): New function.
17582 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17583
175842008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17585
17586 * lread.c (Fread_char): Resolve modifiers.
17587 (Fread_char_exclusive): Likewise.
17588
17589 * character.c (char_resolve_modifier_mask): New function.
17590 (char_string): Use char_resolve_modifier_mask.
17591 (Fchar_resolve_modifiers): New function.
17592 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17593 function.
17594
175952008-03-04 Jason Rumney <jasonr@gnu.org>
17596
17597 * makefile.w32-in: Always include w32font.c in the build.
17598 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17599
176002008-03-04 Andreas Schwab <schwab@suse.de>
17601
17602 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17603 (versionclean): Likewise.
17604
176052008-03-04 Juanma Barranquero <lekktu@gmail.com>
17606
17607 * .cvsignore: Add oo.
17608
176092008-03-03 Andreas Schwab <schwab@suse.de>
17610
17611 * coding.c (decode_coding_object): Inhibit gap shrinking while
17612 decoding in place.
17613
176142008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17615
17616 * w32term.c: Remove unused include "gnu.h".
17617 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17618
17619 * gnu.h: Rename to ...
17620 * emacs-icon.h: ... this.
17621 * xterm.c: Use emacs-icon.h instead of gnu.h.
17622 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17623
176242008-03-03 Juanma Barranquero <lekktu@gmail.com>
17625
17626 * w32font.c: Include math.h.
17627
176282008-03-03 Jason Rumney <jasonr@gnu.org>
17629
17630 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17631 Compute options separately.
17632 (w32font_open_internal): Set glyph_idx before caching metrics.
17633
17634 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17635 Define if system headers don't.
17636 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17637 (w32font_encode_char): Don't declare here.
17638
17639 * w32font.c (Quniscribe, QCformat): New symbols.
17640 (syms_of_w32font): Define them.
17641 (w32font_has_char): Indicate uncertainty.
17642 (w32font_encode_char): Encode as glyph point. Make static.
17643 (recompute_cached_metrics): New function.
17644 (w32font_open_internal): Use it. Set font to use glyph points
17645 initially. Set format based on type of font.
17646 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17647 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17648 on it. Set format based on information available here.
17649 (add_font_entity_to_list): Identify backend based on opentype_only.
17650
176512008-03-02 Andreas Schwab <schwab@suse.de>
17652
17653 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17654
17655 * coding.c (decode_coding_big5, produce_chars):
17656 Fix typos in last change.
17657
176582008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17659
17660 * gnu.h: New icon.
17661
176622008-03-02 Kenichi Handa <handa@m17n.org>
17663
17664 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17665 `dos', don't decode '\r' if that is the last in the source.
17666 (decode_coding_utf_16, decode_coding_emacs_mule)
17667 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17668 (decode_coding_raw_text, decode_coding_charset): Likewise.
17669 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17670
176712008-03-01 Jason Rumney <jasonr@gnu.org>
17672
17673 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17674
176752008-03-01 Kim F. Storm <storm@cua.dk>
17676
17677 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17678
176792008-03-01 Jason Rumney <jasonr@gnu.org>
17680
17681 * w32font.c (w32font_full_name): New function.
17682 (w32font_open_internal): Use it.
17683
176842008-03-01 Kim F. Storm <storm@cua.dk>
17685
17686 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17687
176882008-03-01 Jason Rumney <jasonr@gnu.org>
17689
17690 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17691
176922008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17693
17694 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17695 xg_frame_resized when the event is for the edit widget.
17696
17697 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17698
17699 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17700 set_char_size.
17701 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17702 operations on widgets here. Just set frame size if needed.
17703 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17704 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17705 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17706 the whole frame.
17707 (xg_create_tool_bar): Move attachment of the tool bar to
17708 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17709 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17710
177112008-03-01 Jason Rumney <jasonr@gnu.org>
17712
17713 * w32fns.c (w32_msg_pump): Disable debug code.
17714
177152008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17716
17717 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17718
177192008-02-29 Chong Yidong <cyd@stupidchicken.com>
17720
17721 * xdisp.c (next_overlay_string): Don't set
17722 overlay_strings_at_end_processed_p if we're currently reading from
17723 a display string.
17724
177252008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17726
17727 * xdisp.c (get_overlay_strings_1): Fix typo.
17728
177292008-02-29 Chong Yidong <cyd@stupidchicken.com>
17730
17731 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17732
177332008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17734
17735 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17736
17737 * xdisp.c (display_mode_element): Cancel the previous change.
17738 (decode_mode_spec): Likewise.
17739 (handle_auto_composed_prop): Don't make composition if it->string
17740 is a string.
17741
177422008-02-27 Kim F. Storm <storm@cua.dk>
17743
17744 * lisp.h (GLYPH): Change type from int to struct with separate char
17745 and face_id members.
17746 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17747 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17748 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17749 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17750 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17751 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17752 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17753 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17754 handle new Lisp glyph code encoding, either an integer or a cons.
17755
17756 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17757 (GLYPH_ALIAS): Delete.
17758 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17759 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17760 (GLYPH_FROM_CHAR): Replace macro by ...
17761 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17762
17763 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17764 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17765 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17766 (GLYPH_INVALID_P): New macro.
17767 (spec_glyph_lookup_face): Update prototype.
17768
17769 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17770 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17771 new glyph code encoding.
17772 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17773 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17774
17775 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17776 Adapt to new glyph type and new glyph code encoding.
17777
17778 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17779
17780 * indent.c (current_column, current_column_1, Fmove_to_column)
17781 (compute_motion): Adapt to new glyph code encoding.
17782
17783 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17784
177852008-02-27 Chong Yidong <cyd@stupidchicken.com>
17786
17787 * process.c (wait_reading_process_output): Check for window
17788 changes caused by timers.
17789 Suggested by Johan Bockgård.
17790
177912008-02-27 Glenn Morris <rgm@gnu.org>
17792
17793 * emacs.c (USAGE1): Add `--disable-font-backend'.
17794
177952008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17796
17797 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17798 is made to the buffer.
17799
178002008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17801
17802 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17803 (face_at_string_position):
17804 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17805 (face_at_string_position):
17806 * xdisp.c (display_string, next_overlay_change):
17807 * buffer.h (overlays_at):
17808 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17809 Update callers.
17810
178112008-02-26 Chong Yidong <cyd@stupidchicken.com>
17812
17813 * editfns.c (Fformat): Doc fix.
17814
178152008-02-26 Juanma Barranquero <lekktu@gmail.com>
17816
17817 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17818 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17819 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17820
178212008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17822
17823 * buffer.c (Fbuffer_swap_text): New function.
17824 (syms_of_buffer): Defsubr it.
17825
178262008-02-25 Chong Yidong <cyd@stupidchicken.com>
17827
17828 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17829
178302008-02-25 Jason Rumney <jasonr@gnu.org>
17831
17832 * w32font.c (w32font_draw): Draw one character at a time when padding.
17833
178342008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17835
17836 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17837 Handle a nil arg. Use run_window_configuration_change_hook.
17838 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17839 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17840 Use run_window_configuration_change_hook.
17841
178422008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17843
17844 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17845 1-pixel width.
17846
178472008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17848
17849 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17850 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17851 if the glyph in the font is zero pixel with.
17852
17853 * dispextern.h (struct glyph_string): New member padding_p.
17854
17855 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17856
17857 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17858
17859 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17860
17861 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17862
17863 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17864
178652008-02-25 Jason Rumney <jasonr@gnu.org>
17866
17867 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17868
178692008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17870
17871 Allow fine-grained image-cache flushing.
17872 * dispextern.h (struct image): Add `dependencies' field.
17873 (clear_image_caches): Change arg to Lisp_Object.
17874 * image.c (make_image): Initialize `dependencies' field.
17875 (clear_image_cache): Change arg to allow fine-grained flushing.
17876 Perform the flush even if image-cache-eviction-delay is nil.
17877 (clear_image_caches): Change arg to Lisp_Object.
17878 (Fclear_image_cache): Expand meaning of the argument.
17879 (mark_image): Mark `dependencies' field.
17880 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17881 (lface_hash): Use XHASH rather than XFASTINT.
17882 (face_at_buffer_position): Fix int -> EMACS_INT position.
17883 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17884 (select_frame_for_redisplay): Remove code duplication.
17885 (redisplay_internal): Adapt arg to call to clear_image_caches.
17886
178872008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17888
17889 * s/vms4-0.h:
17890 * s/vms4-2.h:
17891 * s/vms4-4.h:
17892 * s/vms5-5.h: Remove, unused.
17893
17894 * s/irix5-2.h:
17895 * s/irix6-0.h:
17896 * s/riscos5.h:
17897 * s/mach-bsd4-3.h:
17898 * m/mips4.h: Remove files for obsolete systems.
17899
17900 * Makefile.in:
17901 * filelock.c:
17902 * unexmips.c:
17903 * m/hp9000s300.h:
17904 * m/iris4d.h:
17905 * s/aix3-1.h:
17906 * s/hpux.h:
17907 * s/msdos.h:
17908 * s/usg5-0.h:
17909 * s/usg5-2-2.h:
17910 * s/usg5-2.h:
17911 * s/usg5-3.h: Remove references to obsolete variables.
17912
17913 * s/irix5-0.h: Remove, move all the contents ...
17914 * s/irix6-5.h: ... here. Simplify.
17915 * config.in: Regenerate.
17916
179172008-02-24 Jason Rumney <jasonr@gnu.org>
17918
17919 * w32term.c (x_draw_glyph_string_background): Clear the background
17920 manually when cleartype is in use.
17921 (x_draw_glyph_string_foreground): Draw text transparently when
17922 cleartype is in use.
17923
17924 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
17925 a font into it unless we have to.
17926
179272008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
17928
17929 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
17930 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 17931
aac0c6e3
MR
179322008-02-18 Jason Rumney <jasonr@gnu.org>
17933
17934 * w32fns.c (Fw32_shell_execute): Encode parameters.
17935
179362008-02-09 Eli Zaretskii <eliz@gnu.org>
17937
17938 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
17939
179402008-02-05 Juanma Barranquero <lekktu@gmail.com>
17941
17942 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
17943
179442008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
17945
17946 * xterm.c (x_set_offset): Don't change the gravity if
17947 CHANGE_GRAVITY is -1.
17948
179492008-02-23 Chong Yidong <cyd@stupidchicken.com>
17950
17951 * fileio.c (auto_save_error_occurred): New var.
17952 (auto_save_error): Set it.
17953 (Fdo_auto_save): Don't overwrite the error message if an auto-save
17954 error occurred.
17955
179562008-02-23 Eli Zaretskii <eliz@gnu.org>
17957
17958 * w32.c (globals_of_w32): Add initializations for
17959 g_b_init_get_sid_sub_authority and
17960 g_b_init_get_sid_sub_authority_count.
17961
179622008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
17963
17964 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
17965 (font_parse_xlfd): Use them for sanity check.
17966 (Finternal_set_font_style_table): Make sure the table is bijective.
17967
17968 Consolidate the image_cache to the terminal struct.
17969 * termhooks.h (P_): Remove redundant def.
17970 (struct terminal): New field `image_cache'.
17971 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
17972 of FRAME_X_IMAGE_CACHE.
17973 * xterm.h (struct x_display_info): Remove image_cache field.
17974 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17975 * w32term.h (struct w32_display_info): Remove image_cache field.
17976 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17977 * macterm.h (struct mac_display_info): Remove image_cache field.
17978 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
17979 * xterm.c (x_term_init):
17980 * w32term.c (w32_term_init):
17981 * macterm.c (mac_term_init): Set the image_cache in the terminal.
17982 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
17983 Remove declarations.
17984 (clear_image_caches, mark_image_cache): New declarations.
17985 * xfaces.c (clear_face_cache):
17986 * xdisp.c (redisplay_internal): Use clear_image_caches.
17987 * image.c (clear_image_cache): Don't check that a frame is on
17988 a window-system before checking if it shares the same cache.
17989 (clear_image_caches): New function.
17990 (Fclear_image_cache): Use it.
17991 (mark_image): Move from allo.c.
17992 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
17993 * alloc.c (mark_image, mark_image_cache): Move to image.c.
17994 (mark_object): Don't call mark_image_cache for frames.
17995 (mark_terminals): Call mark_image_cache.
17996
17997 * lisp.h (Fdelete_terminal): Declare.
17998
17999 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18000 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18001 wrong_type_argument.
18002
180032008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18004
18005 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18006 malayalam.el, and tamil.el. Add sinhala.el.
18007
180082008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18009
18010 * xterm.c (x_connection_closed): Consolidate identical tests.
18011 (x_delete_terminal): Don't crash if called via x_connection_closed.
18012
180132008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18014
18015 * xdisp.c (decode_mode_spec): New arg string.
18016 (display_mode_element): Adjust for the above change.
18017
180182008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18019
18020 * callint.c (Fcall_interactively): Use AREF.
18021
180222008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18023
18024 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18025
180262008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18027
18028 * xfns.c (Fx_show_tip): Set string to " " if empty.
18029
180302008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18031
18032 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18033 with Qt.
18034
180352008-02-17 Kenichi Handa <handa@m17n.org>
18036
18037 * ftfont.c (ftfont_shape): Return Lispy number.
18038
18039 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18040 for GCs.
18041 (Finternal_set_font_selection_order): Call font_update_sort_order
18042 only when enable_font_backend is set.
18043 (realize_x_face): Set face->font_info to that of default face only
18044 when enable_font_backend is set.
18045
18046 * xdisp.c (handle_composition_prop): Set it->c to the fist
18047 character of the composed region.
18048 (fill_composite_glyph_string): Set base_face->font_info to
18049 s->font_info. Get a face for ascii from base_face->ascii_face.
18050 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18051 with a face already decided.
18052 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18053 non-negative.
18054 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18055 call font_prepare_composition unconditionally.
18056
18057 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18058
18059 * xterm.h (struct x_display_info): New member font.
18060
18061 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18062 (x_set_mouse_face_gc, x_new_font): Likewise.
18063 (x_term_init): Setup display_info->font.
18064 (x_delete_terminal): Free display_info->font.
18065
18066 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18067
18068 * ftxfont.c (ftxfont_default_fid): Delete it.
18069 (ftxfont_open): Set xfont->fid to 0.
18070 (ftxfont_end_for_frame): Clear data specific to the frame and the
18071 font-driver.
18072
18073 * xftfont.c (xftfont_default_fid): Delete it.
18074 (xftfont_open): Set xfont->fid to 0.
18075
18076 * fontset.c (FONTSET_OBJLIST): New macro.
18077 (fontset_find_font): Update font-object list of the fontset.
18078 (free_realized_fontset): New function.
18079 (free_face_fontset): Call free_realized_fontset.
18080 (Ffont_info): Call font_close_object only when enable_font_backend
18081 is set.
18082
18083 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18084 [HAVE_NTGUI]: Include w32term.h.
18085 [MAC_OS]: Include macterm.ch.
18086 (font_otf_ValueRecord): Use make_number.
18087 (font_finish_cache): Fix handling of reference count.
18088 (font_clear_cache): Update num_fonts.
18089 (font_open_entity): Update smallest_char_width and
18090 smallest_font_height of the frame.
18091 (font_close_object): Update num_fonts.
18092 (Fclear_font_cache): Fix finding the target cache data.
18093
180942008-02-16 Glenn Morris <rgm@gnu.org>
18095
18096 * fontset.c (Finternal_char_font): Fix compilation warning.
18097
180982008-02-16 Eli Zaretskii <eliz@gnu.org>
18099
18100 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18101 instead of char arrays. Enlarge the size of array passed to
18102 get_token_information.
18103
18104 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18105 warnings.
18106
181072008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18108
18109 * .gdbinit: Don't set `args', it breaks gdb --args.
18110
181112008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18112
18113 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18114 within a narrowed buffer.
18115
181162008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18117
18118 * coding.c (decode_coding_object, encode_coding_object):
18119 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18120
181212008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18122
18123 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18124 hardcoding 1.
18125 (detect_coding_system):
18126 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18127 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18128 * insdel.c (insert_from_gap):
18129 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18130 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18131 (string_to_multibyte):
18132 * character.c (chars_in_text, multibyte_chars_in_text):
18133 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18134
18135 * character.h (FETCH_STRING_CHAR_ADVANCE)
18136 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18137 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18138 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18139
18140 * casefiddle.c (casify_region): Only call after-change and composition
18141 functions on the part of the region that was changed.
18142
18143 * keyboard.c (read_avail_input):
18144 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18145
181462008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18147
18148 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18149 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18150
181512008-02-11 Juanma Barranquero <lekktu@gmail.com>
18152
18153 * w32menu.c (push_submenu_start, push_submenu_end)
18154 (push_left_right_boundary, push_menu_pane, push_menu_item):
18155 * keyboard.c (read_key_sequence): Don't pass args with side effects
18156 to AREF, it fails when compiling with -DENABLE_CHECKING.
18157
181582008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18159
18160 * Makefile.in (${lispsource}international/charprop.el):
18161 Delete this target.
18162
18163 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18164 emacs-unicode-2.
18165
181662008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18167
18168 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18169
181702008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18171
18172 * frame.c (Qnoelisp): New symbol.
18173 (syms_of_frame): Initialize it.
18174 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18175 harmless Elisp code, from a strong `force' from x_connection_closed.
18176 * frame.h (Qnoelisp): Declare.
18177 * xterm.c (x_connection_closed): Pass `noelisp'.
18178
18179 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18180 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18181 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18182 rather than `int' for the type of `type'.
18183
181842008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18185
18186 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18187
18188 * Makefile.in (GNUC): Remove support for gcc-1.x.
18189
181902008-02-10 Richard Stallman <rms@gnu.org>
18191
18192 * lisp.h (ASET): Use AREF, not ASLOT.
18193
181942008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18195
18196 * lisp.h (ASET): Check bounds.
18197
181982008-02-10 Glenn Morris <rgm@gnu.org>
18199
18200 * buffer.c (mode-name): Doc fix.
18201
182022008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18203
18204 * Makefile.in:
18205 * emacs.c:
18206 * gmalloc.c:
18207 * keyboard.c:
18208 * lisp.h:
18209 * m/ibm370aix.h:
18210 * process.c:
18211 * regex.c:
18212 * s/hpux.h:
18213 * sysdep.c:
18214 * sysselect.h:
18215 * systty.h:
18216 * unexec.c:
18217 * w32term.c:
18218 * xsmfns.c:
18219 * xterm.c: Remove code that deals with obsolete variables.
18220
18221 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18222
18223 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18224 nothing else needs it anymore.
18225
182262008-02-09 Eli Zaretskii <eliz@gnu.org>
18227
18228 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18229 instead of unibyte_char_to_multibyte.
18230
182312008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18232
18233 * s/gnu-linux.h: Remove commented out code.
18234
18235 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18236
18237 * Makefile.in: Update what RMS says about using autoconf.
18238 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18239 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18240 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18241 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18242
182432008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18244
18245 * keymap.c (Fkey_description): Move side effect outside of macro call.
18246
18247 * xfaces.c (Finternal_make_lisp_face):
18248 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18249
18250 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18251 (syms_of_fontset): Use ASET.
18252
18253 * fns.c (concat): Move side effect outside of macro call.
18254 (hash_clear): Use ASET.
18255
182562008-02-08 Richard Stallman <rms@gnu.org>
18257
18258 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18259 If FORCE, and frame has a surrogate minibuffer for another frame,
18260 delete the other frame first.
18261
182622008-02-07 Timo Savola <timo.savola@iki.fi>
18263
18264 * xterm.c (x_detect_focus_change): Handle embed client message.
18265 (handle_one_xevent): Ditto.
18266 (handle_one_xevent): If embedded and we get a button press/release,
18267 request focus.
18268 (xembed_set_info, xembed_send_message): New functions.
18269 (x_make_frame_visible): Call xembed_set_info if embedded.
18270 (x_make_frame_invisible): Call xembed_set_info if embedded.
18271 (x_term_init): Initialize Xatom_XEMBED.
18272 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18273 (x_iconify_frame): Ditto.
18274
18275 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18276 (enum xembed_info, enum xembed_message, enum xembed_focus)
18277 (enum xembed_modifier, enum xembed_accelerator): New.
18278 (xembed_set_info, xembed_send_message): Declare.
18279 (FRAME_X_EMBEDDED_P): New.
18280
18281 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18282 gtk_plug_new.
18283
18284 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18285 window ID of a frame.
18286 (x_window): Reparent frame if embedded.
18287 (Fx_create_frame): Don't set border width if embedded.
18288
18289 * emacs.c (USAGE3): Add --parent-id.
18290 (standard_args): Ditto.
18291
182922008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18293
18294 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18295
182962008-02-07 Jim Meyering <meyering@redhat.com>
18297
18298 Use "do...while (0)", not "if (1)...else" in macro definitions.
18299 The latter provokes a warning from gcc about the empty else, when
18300 followed by ";". Also, without that trailing semicolon, it would
18301 silently swallow up any following statement.
18302 * syntax.h (SETUP_SYNTAX_TABLE)
18303 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18304 * buffer.h (DECODE_POSITION): Likewise.
18305 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18306 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18307 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18308 (FETCH_CHAR_ADVANCE): Likewise.
18309 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18310
183112008-02-07 Jim Meyering <meyering@redhat.com>
18312
18313 * lread.c [lint]: Don't include <sys/inode.h>.
18314
183152008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18316
18317 * xselect.c (x_handle_dnd_message):
18318 * xmenu.c (digest_single_submenu, xmenu_show):
18319 * xdisp.c (with_echo_area_buffer_unwind_data)
18320 (format_mode_line_unwind_data, unwind_format_mode_line)
18321 (display_menu_bar):
18322 * eval.c (Ffetch_bytecode):
18323 * doc.c (store_function_docstring):
18324 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18325 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18326 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18327
183282008-02-07 Kenichi Handa <handa@m17n.org>
18329
18330 * ftxfont.c (ftxfont_open): Don't set
18331 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18332
18333 * ftfont.c (ftfont_open): Fix previous change.
18334
183352008-02-06 Jason Rumney <jasonr@gnu.org>
18336
18337 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18338 Use cached metrics for ASCII characters.
18339 (w32font_open_internal): Don't set font's owning_frame.
18340 Cache metrics for ASCII characters.
18341
18342 * w32font.h (struct w32font_info): Add ascii_metrics.
18343 Remove owning_frame.
18344
183452008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18346
18347 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18348 to negative value.
18349
18350 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18351
18352 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18353
18354 * charset.c (syms_of_charset): Set QCtest and Qeq.
18355
183562008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18357
18358 * process.c (Fstart_process):
18359 * callproc.c (Fcall_process): Handle the case where
18360 Funhandled_file_name_directory returns nil.
18361
18362 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18363 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18364 * font.c (check_gstring): Use them and AREF to access the vector before
18365 we know it's really a gstring.
18366 (Ffont_shape_text): Fix typo.
46e722a9 18367 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18368
18369 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18370 Declare.
18371
18372 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18373
183742008-02-05 Jason Rumney <jasonr@gnu.org>
18375
18376 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18377 Set smallest_font_height and smallest_char_width in display info.
18378
183792008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18380
18381 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18382
183832008-02-05 Miles Bader <miles@gnu.org>
18384
18385 * xfaces.c (get_lface_attributes, merge_named_face)
18386 (lookup_named_face, lookup_derived_face, realize_named_face):
18387 Revert 2008-02-01 change by cyd@stupidchicken.com.
18388
183892008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18390
18391 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18392 fallback fonts.
18393 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18394
183952008-02-04 Jason Rumney <jasonr@gnu.org>
18396
18397 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18398 set full_name.
18399 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18400
184012008-02-03 Jason Rumney <jasonr@gnu.org>
18402
18403 * makefile.w32-in (OBJ1): Include font.o here.
18404 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18405
184062008-02-02 Jason Rumney <jasonr@gnu.org>
18407
18408 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18409
184102008-02-01 Jason Rumney <jasonr@gnu.org>
18411
18412 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18413
18414 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18415
184162008-02-01 Andreas Schwab <schwab@suse.de>
18417
18418 * Makefile.in (shortlisp, lisp): Update for rename of
18419 ../lisp/language/myanmar.el.
18420
184212008-02-01 Chong Yidong <cyd@stupidchicken.com>
18422
18423 * xfaces.c (get_lface_attributes): Delete function.
18424 (merge_named_face, lookup_named_face, lookup_derived_face)
18425 (realize_named_face): Call lface_from_face_name directly, and use
18426 the fact that merge_face_vectors does not alter its FROM argument.
18427
184282008-02-01 Jason Rumney <jasonr@gnu.org>
18429
18430 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18431 input in the default locale. Handle non-Unicode multibyte input.
18432
184332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18434
18435 * fontset.c (reorder_font_vector): Exclude nil elements from the
18436 font group. Don't try multiple fonts.
18437 (fontset_font): Adjust for the above change.
18438 (Finternal_char_font): Return nil if the found font doesn't
18439 contain the character ch.
18440
18441 * Makefile.in (lisp, shortlisp): Add cham.el.
18442
184432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18444
18445 * font.h (FONTP): Make it return 1 also for a font-object.
18446
18447 * .gdbinit (xfontset): New function.
18448
18449 * font.c (font_find_for_lface): Check if the character C is
18450 supported or not only for the first font.
18451
18452 * fontset.c (reorder_font_vector): Fix typo.
18453 (fontset_find_font): Don't add a font-spec specifying a script.
18454 Use 0 (not Qt) for the indication of empty font-group. Change the
18455 format of RFONT-DEF. Return Qt if no font in the font-group
18456 support the character.
18457 (fontset_font): Adjust for the above change. If no font was
18458 found the character, remember that.
18459 (face_for_char): Adjust for the change of RFONT-DEF.
18460 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18461 no font for the target.
18462 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18463
184642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18465
18466 * font.c (font_load_for_face): Handle the case that the font in
18467 face->lface is a string.
18468
184692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18470
18471 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18472
184732008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18474
18475 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18476 Fix previous change. If the frame is not on a window system,
18477 signal an error.
18478
184792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18480
18481 * coding.c (decode_coding_object, encode_coding_object): Adjust
18482 marker positions after conversion.
18483
18484 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18485
184862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18487
18488 * font.c (font_find_for_lface): Fix the handling of the return
18489 value of font_has_char.
18490 (Ffont_shape_text): Fix previous change.
18491
18492 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18493 (fontset_ref_and_range): Delete it.
18494 (fontset_find_font): Call char_table_ref_and_range instead of
18495 FONTSET_REF_AND_RANGE.
18496 (make_fontset): Don't setup font groups of Latin here.
18497 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18498 (new_fontset_from_font): Make the specified font the default for
18499 all Latin characters.
18500
185012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18502
18503 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18504 is on a window system before accessing the fontset of the frame.
18505
185062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18507
18508 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18509
18510 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18511 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18512
18513 * font.c (Ffont_shape_text): If the font driver doesn't have a
18514 shaper function, make zero-width glyphs to have at least one-pixel
18515 width. Fix setting of `to' field of glyphs.
18516
185172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18518
18519 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18520 glyphs.
18521
18522 * font.h (struct font_driver): Improve docstring of member `shape'.
18523
185242008-02-01 Kenichi Handa <handa@m17n.org>
18525
18526 * composite.c (syms_of_composite): Fix docstring of
18527 auto-composition-function.
18528
18529 * font.h (LGLYPH_SIZE): New macro.
18530
18531 * font.c (Ffont_fill_gstring): Stop filling when a character not
18532 supported by the font is found.
18533 (Ffont_shape_text): When a shape callback function returns nil,
18534 try at most two more times with larger gstring.
18535 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18536
18537 * xdisp.c (handle_auto_composed_prop): Change the argument to
18538 auto-composition-function.
18539
18540 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18541 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18542 Lispy glyph and store it in the lgstring.
18543
18544 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18545
18546 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18547
185482008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18549
18550 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18551
18552 * fontset.c (Vfont_encoding_charset_alist): New variable.
18553 (syms_of_fontset): DEFVAR it.
18554 (reorder_font_vector, fontset_find_font): Optimize for the case of
18555 no need of reordering.
18556 (face_for_char): Map the charset property by
18557 Vfont_encoding_charset_alist.
18558
185592008-02-01 Jason Rumney <jasonr@gnu.org>
18560
18561 * w32font.c (logfonts_match): Don't check adstyle here.
18562 (font_matches_spec): Check here against physical font instead.
18563 (add_font_entity_to_list): Avoid some substitutions.
18564
18565 * font.c (font_parse_fcname): Default weight and slant to normal.
18566 (font_score): Prefer normal fonts if weight or slant unspecified.
18567 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18568 match freetype scores.
18569
185702008-02-01 Jason Rumney <jasonr@gnu.org>
18571
18572 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18573 font, as it may have been deleted.
18574 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18575 most common hyphenless variation.
18576 (logfonts_match): Check generic family.
18577 (font_matches_spec): Don't check generic family here.
18578 (fill_in_logfont): Set generic family based on adstyle.
18579
18580 * w32font.h (w32font_get_cache): Update declaration.
18581
185822008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18583
18584 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18585
18586 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18587 If none of the new drivers are available, call font_update_drivers
18588 with the old drivers.
18589
18590 * w32font.c (w32font_get_cache): Adjust the argument type.
18591
18592 * xfont.c (xfont_get_cache): Adjust the argument type.
18593
18594 * font.h (struct font_driver): Change argument type of get_cache.
18595
18596 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18597
18598 * font.c (Ffont_get): Fix arguments to Fassoc.
18599 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18600 (font_clear_cache): New function.
18601 (font_list_entities, font_matching_entity): Use font_get_cache.
18602 (font_update_drivers): Call font_clear_cache when finishing a driver.
18603
18604 * fontset.c (fontset_find_font): Fix previous change.
18605
186062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18607
18608 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18609 dpyinfo->font_table.
18610 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18611 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18612
18613 * font.c (font_at): Handle the case that the arg C is negative.
18614 Handle the unibyte case.
18615 (Ffont_at): Call font_at with the arg C -1.
18616
18617 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18618 the position here, and call font_at with the arg C -1.
18619 Don't check the range of the existing composition at the point.
18620
186212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18622
18623 * fontset.c (fontset_add): New args charset_id and family.
18624 Change caller.
18625 (load_font_get_repertory, fontset_find_font): Assume that
18626 font_spec is always a font-spec object.
18627 (Fset_fontset_font): Always store a font-spec object in a fontset.
18628
18629 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18630 instead of get_property_and_range.
18631
186322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18633
18634 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18635 (xftfont_open): Don't keep locking face.
18636 (xftfont_close): Don't unlock face.
18637 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18638
18639 * fontset.c (fontset_find_font): Don't prefer a font of
18640 supplementary charset.
18641
186422008-02-01 Kenichi Handa <handa@m17n.org>
18643
18644 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18645 script, langsys_tag to langsys, new member script.
18646 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18647 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18648 listing to the script specified in that property. Fix arg to
18649 OTF_check_features.
18650
186512008-02-01 Jason Rumney <jasonr@gnu.org>
18652
18653 * w32font.h: New file.
18654
18655 * w32font.c: Include it.
18656 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18657 (w32font_open): Set owning_frame.
18658 (w32font_text_extents): Use owning_frame.
18659 (struct font_callback_data): Add opentype_only field.
18660 (add_font_entity_to_list): Use it to filter fonts.
18661 Don't check against full name.
18662 (w32font_list_internal): New function.
18663 (w32font_list): Use it.
18664 (w32font_match_internal): New function.
18665 (w32font_match): Use it.
18666 (w32font_open_internal): New function.
18667 (w32font_open): Use it.
18668 (w32font_get_cache, w32font_close, w32font_has_char)
18669 (w32font_encode_char, w32font_text_extents, w32font_draw):
18670 Make non-static.
18671
18672 * makefile.w32-in (w32font.o): Depend on w32font.h.
18673
186742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18675
18676 * charset.c (Fdefine_charset_internal): Record a supplementary
18677 charset at the tail of Vcharset_order_list.
18678
18679 * font.c (Ffont_shape_text): Fix the return value.
18680
18681 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18682
18683 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18684
186852008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18686
18687 * ftfont.c (struct OpenTypeSpec): New struct.
18688 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18689 (ftfont_get_open_type_spec): New function.
18690 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18691
18692 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18693
186942008-02-01 Jason Rumney <jasonr@gnu.org>
18695
18696 * w32font.c (add_font_entity_to_list): Compare only the beginning
18697 of full name.
18698
186992008-02-01 Kenichi Handa <handa@m17n.org>
18700
18701 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18702 Never return HANDLED_RECOMPUTE_PROPS.
18703
187042008-02-01 Kenichi Handa <handa@m17n.org>
18705
18706 * font.c (font_gstring_produce): Delete it.
18707
18708 * composite.h (COMPOSITION_METHOD):
18709 Handle COMPOSITION_WITH_GLYPH_STRING.
18710
187112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18712
18713 * xfont.c (Qx): Delete.
18714 (syms_of_xfont): Don't initialize Qx.
18715
18716 * composite.h (enum composition_method):
18717 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18718
187192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18720
18721 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18722 (choose_face_font): Accept new form of font-spec.
18723
18724 * frame.h (font_driver_list): Declare it unconditionally.
18725 (struct frame): Define members font_driver_list and font_data_list
18726 unconditionally.
18727
18728 * fontset.c: Include "font.h" unconditionally.
18729 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18730 (Fset_fontset_font): Accept a font-spec object.
18731
18732 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18733 PIXEL_SIZE part a wild card.
18734
18735 * dispextern.h (struct glyph_string): Define members clip and
18736 num_clips unconditionally.
18737 (struct face): Define members font_info and extra unconditionally.
18738
18739 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18740 ftfont_info only when HAVE_LIBOTF is defined.
18741
187422008-02-01 Andreas Schwab <schwab@suse.de>
18743
18744 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18745 and end.
18746
187472008-02-01 Jason Rumney <jasonr@gnu.org>
18748
18749 * w32font.c (w32font_driver): Add new fields.
18750
187512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18752
18753 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18754 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18755 (LIBES): Add @M17N_FLT_CFLAGS@.
18756
18757 * composite.c (compose_text): Don't treat the new style
18758 composition specially.
18759
18760 * emacs.c (main): Call syms_of_font unconditionally.
18761
18762 * font.h (FONT_ENTITY_NOT_LOADABLE)
18763 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18764 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18765 (struct font_driver): New member shape.
18766 (font_registry_charsets): Extern it.
18767 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18768 (font_otf_capability, font_drive_otf): Delete their externs.
18769
18770 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18771 (font_charset_alist, font_registry_charsets): Move from xfont.c
18772 and rename.
18773 (font_prop_validate_otf): New function.
18774 (font_property_table): Register it for QCotf.
18775 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18776 (font_drive_otf): Delete.
18777 (font_prepare_composition): New arg F. Adjust for the change of
18778 lispy gstring.
18779 (font_find_for_lface): New arg C.
18780 (font_load_for_face): Adjust for the change of font_find_for_lface.
18781 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18782 lispy gstring.
18783 (Ffont_shape_text): New function.
18784 (Fopen_font): If the font size is not given, use 12-pixel.
18785 (Ffont_at): New arg STRING.
18786 (syms_of_font): Initalize font_charset_alist.
18787 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18788 conditionally.
18789
18790 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18791 fonts of the same font-spec. Change the format of RFONT-DEF.
18792 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18793 Adjust for the change of RFONT-DEF.
18794 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18795
18796 * ftfont.h: New file.
18797
18798 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18799 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18800 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18801 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18802 font_otf_capability and font_drive_otf, set ftfont_shape.
18803 (ftfont_list): Adjust for the change of :otf property value.
18804 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18805 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18806 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18807 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18808 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18809 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18810
18811 * w32term.c (x_draw_composite_glyph_string_foreground):
18812 Adjust for the change of lispy gstring.
18813
18814 * xdisp.c (handle_composition_prop): Adjust for the change of
18815 lispy gstring. Call a function for auto-composition with the
18816 third arg it->window.
18817 (fill_composite_glyph_string): Adjust for the change of lispy string.
18818 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18819
18820 * xfaces.c (set_font_frame_param): Adjust for the change of
18821 font_find_for_lface.
18822
18823 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18824 (xfont_registry_charsets): Likewise. Change caller.
18825 (syms_of_xfont): Don't handle x_font_charset_alist.
18826
18827 * xftfont.c: Include "ftfont.h".
18828 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18829 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18830 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18831 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18832 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18833 Set xftfont_driver.shape to xftfont_shape.
18834
18835 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18836 the change of lispy gstring.
18837
188382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18839
18840 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18841
188422008-02-01 Jason Rumney <jasonr@gnu.org>
18843
18844 * w32font.c (w32font_draw): Fill background manually.
18845
188462008-02-01 Jason Rumney <jasonr@gnu.org>
18847
18848 * font.c (Qfontp): Remove unused symbol.
18849 (QCantialias): New symbol.
18850 (syms_of_font): Define it.
18851 (font_property_table): Set a validator for QCantialias.
18852
18853 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18854 Define if not already.
18855 (QCfamily): Share with xfaces.c.
18856 (Qstandard, Qsubpixel, Qnatural): New symbols.
18857 (syms_of_w32font): Define them. Don't define QCfamily here.
18858 (w32_antialias_type, lispy_antialias_type): New functions.
18859 (w32_enumfont_pattern_entity): New arg requested_font.
18860 Set antialias parameter if non-default was requested.
18861 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18862
188632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18864
18865 * lread.c (read1): Undo the previous change.
18866
188672008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18868
18869 * frame.c (Fdelete_frame): Call font_update_drivers only when
18870 USE_FONT_BACKEND is defined.
18871
188722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18873
18874 * font.h (struct font_bitmap): New member bits_per_pixel.
18875 (struct font_driver): New members start_for_frame and end_for_frame.
18876 (struct font_data_list): New struct.
18877 (font_put_frame_data, font_get_frame_data): Extern them.
18878
18879 * frame.h (struct frame): New member font_data_list.
18880
18881 * font.c (font_update_drivers): Call driver->start_for_frame and
18882 driver->end_for_frame at proper timings.
18883 (font_put_frame_data, font_get_frame_data): New functions.
18884 (Ffont_spec): Add usage in the docstring.
18885
18886 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18887 (Fdelete_frame): Call font_update_drivers.
18888
18889 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18890 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18891 (xftfont_get_xft_draw): New function.
18892 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18893 (xftfont_end_for_frame): New function.
18894 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18895
18896 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18897 Change argument. Cache GCs in the per-frame data.
18898 (struct ftxfont_frame_data): New struct.
18899 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18900 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18901 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18902 (ftxfont_end_for_frame): New function.
18903 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18904
18905 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18906
189072008-02-01 Kenichi Handa <handa@m17n.org>
18908
18909 * xselect.c (Vselection_coding_system)
18910 (Vnext_selection_coding_system): Delete them.
18911 (syms_of_xselect): Don't declare selection-coding-system and
18912 next-selection-coding-system. They are declared in select.el.
18913
189142008-02-01 Jason Rumney <jasonr@gnu.org>
18915
18916 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
18917
18918 * w32fns.c: Include imm.h.
18919 (get_composition_string_fn, get_ime_context_fn): New optional
18920 system functions.
18921 (globals_of_w32fns): Load them from imm32.dll.
18922 (ignore_ime_char): New flag.
18923 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
18924 WM_IME_ENDCOMPOSITION messages.
18925
18926 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
18927 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
18928
189292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18930
18931 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
18932 (READCHAR_REPORT_MULTIBYTE): New macro.
18933 (readchar): New 2nd arg MULTIBYTE.
18934 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
18935 Make symbol's name multibyte according to the multibyteness of the
18936 source.
18937
189382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18939
18940 * xfaces.c (face_for_overlay_string): Call lookup_face with
18941 correct arguments (fix of synching with the trunk).
18942
189432008-02-01 Kenichi Handa <handa@m17n.org>
18944
18945 * font.c (font_prop_validate_symbol, font_prop_validate_style)
18946 (font_prop_validate_non_neg, font_prop_validate_spacing):
18947 Delete argument prop_index.
18948 (font_property_table): Change arguments to validater. Change Callers.
18949 (font_lispy_object): Delete.
18950 (font_at): Use font_find_object instead fo font_lispy_object.
18951
189522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18953
18954 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
18955 and file names.
18956
189572008-02-01 Jason Rumney <jasonr@gnu.org>
18958
18959 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
18960 (font_matches_spec): Remove debug output.
18961 (add_font_entity_to_list): Avoid using substituted fonts.
18962
189632008-02-01 Jason Rumney <jasonr@gnu.org>
18964
18965 * doc.c (Fsnarf_documentation):
18966 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
18967
189682008-02-01 Miles Bader <miles@gnu.org>
18969
18970 * dispextern.h (struct glyph_row): Only define "clip" field if
18971 HAVE_WINDOW_SYSTEM is defined.
18972
189732008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18974
18975 Fix up multi-tty merge.
18976
18977 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
18978 and indentation.
18979
18980 * xfaces.c (free_realized_face, clear_face_gcs):
18981 Include font_done_for_face in the input_blocked section, just in case.
18982
18983 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
18984 (get_char_face_and_encoding): Undo last change and remove the *other*
18985 duplicate definition (i.e. keep the one that's better scoped and that
18986 includes code for the font-backend).
18987
18988 * terminal.c (create_terminal): Default keyboard_coding to
18989 `no-conversion' and terminal_coding to `undecided'.
18990
18991 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
18992
18993 * fontset.c (free_realized_fontsets): Check that the table entry does
18994 contain a fontset before trying to compare it to `base'.
18995
18996 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
18997 syms_of_charset, and syms_of_coding earlier because init_window_once
18998 now needs Vcoding_system_hash_table to be setup.
18999
19000 * coding.h (default_buffer_file_coding): Remove.
19001
19002 * coding.c (default_buffer_file_coding): Remove.
19003 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19004 than ->symbol, and use the terminal-local coding system.
19005 (syms_of_coding): Don't setup the coding-systems that are not
19006 terminal-local.
19007 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19008
19009 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19010 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19011
19012 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19013 in chartab.c and were re-added here by mistake.
19014 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19015
19016 * doc.c (Fsnarf_documentation):
19017 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19018 src to etc.
19019
19020 * ChangeLog.10: Add mistakenly removed entry.
19021
190222008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19023
19024 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19025
190262008-02-01 Miles Bader <miles@gnu.org>
19027
19028 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19029 Add extra args to FACE_FOR_CHAR.
19030
190312008-02-01 Kenichi Handa <handa@m17n.org>
19032
19033 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19034 in sequence.
19035
19036 * chartab.c (map_sub_char_table, map_char_table): If the range
19037 contains just one character, call the function with that character
19038 even if the depth is not 3.
19039
190402008-02-01 Jason Rumney <jasonr@gnu.org>
19041
19042 * w32font.c (w32font_text_extents): Calculate metrics for the
19043 whole string.
19044
190452008-02-01 Jason Rumney <jasonr@gnu.org>
19046
19047 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19048
190492008-02-01 Jason Rumney <jasonr@gnu.org>
19050
19051 * w32term.c (x_set_glyph_string_clipping): Use
19052 get_glyph_string_clip_rects.
19053 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19054 Adjust for the change of struct glyph_string.
19055
19056 * w32font.c (w32font_draw): Do clipping here.
19057
190582008-02-01 Kenichi Handa <handa@m17n.org>
19059
19060 * xftfont.c (xftfont_draw): Adjust for the change of struct
19061 glyph_string.
19062
19063 * xterm.c (x_set_glyph_string_clipping): Use
19064 get_glyph_string_clip_rects.
19065 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19066 Adjust for the change of struct glyph_string.
19067
19068 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19069 the resulting clip(s}.
19070 (expose_overlaps): Add arg r. Change callers. Set it to
19071 row->clip temporarily.
19072 (expose_window): Redraw rows overlapping the exposed area.
19073
19074 * dispextern.h (struct glyph_row): New member clip.
19075 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19076 clip_height, new member clip, and num_clips.
19077
190782008-02-01 Kenichi Handa <handa@m17n.org>
19079
19080 * data.c (Fchar_or_string_p): Fix docstring.
19081
190822008-02-01 Kenichi Handa <handa@m17n.org>
19083
19084 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19085 create a temporary XftDraw object.
19086
190872008-02-01 Kenichi Handa <handa@m17n.org>
19088
19089 * font.c (Ffontp): Fix docstring.
19090
19091 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19092 strong evidence of ISO-2022.
19093
190942008-02-01 Kenichi Handa <handa@m17n.org>
19095
19096 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19097 SYNTAX_ENTRY_FOLLOW_PARENT.
19098
190992008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19100
19101 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19102 its type.
19103 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19104 Update to the new type of weak_hash_tables and next_weak.
19105
19106 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19107 a plain C pointer to Lisp_Hash_Table.
19108
19109 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19110 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19111 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19112 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19113 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19114 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19115 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19116 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19117 (GC_EQ): Remove since they've been identical to their non-GC_
19118 alter-egos ever since the markbit was eradicated.
19119
19120 * alloc.c:
19121 * buffer.c:
19122 * buffer.h:
19123 * data.c:
19124 * fileio.c:
19125 * filelock.c:
19126 * fns.c:
19127 * frame.h:
19128 * lisp.h:
19129 * macterm.c:
19130 * print.c:
19131 * process.c:
19132 * w32fns.c:
19133 * w32menu.c:
19134 * w32term.c:
19135 * xfns.c:
19136 * xmenu.c:
19137 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19138
191392008-02-01 Kenichi Handa <handa@m17n.org>
19140
19141 * chartab.c (map_sub_char_table): Make it work for the top-level
19142 char-table. Fix handling of parent char-table.
19143 (map_char_table): Adjust for the above change.
19144
191452008-02-01 Jason Rumney <jasonr@gnu.org>
19146
19147 * w32font.c (Qgdi): Rename from Qw32.
19148
191492008-02-01 Jason Rumney <jasonr@gnu.org>
19150
19151 * w32bdf.c (get_quoted_string): Make function static.
19152
191532008-02-01 Kenichi Handa <handa@m17n.org>
19154
19155 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19156 bigger ascent and descent than those of the font, use them as
19157 font's ascent and descent.
19158
191592008-02-01 Kenichi Handa <handa@m17n.org>
19160
19161 * Makefile.in (${lispsource}international/charprop.el): Move this
19162 target within "#ifdef HAVE_UNIDATA" and "#endif".
19163
191642008-02-01 Kenichi Handa <handa@m17n.org>
19165
19166 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19167 (shortlisp): Add ../lisp/language/tai-viet.el.
19168
191692008-02-01 Ulrich Mueller <ulm@gentoo.org>
19170
19171 * Makefile.in (${lispsource}international/charprop.el): Depend on
19172 temacs${EXEEXT}.
19173
191742008-02-01 Jason Rumney <jasonr@gnu.org>
19175
19176 * w32font.c (w32font_close): Delete the GDI font object.
19177
19178 * w32menu.c: Include character.h.
19179
19180 * w32proc.c: Likewise.
19181
19182 * w32select.c: Likewise.
19183
19184 * makefile.w32-in (w32proc.o): Depend on character.h.
19185
191862008-02-01 Jason Rumney <jasonr@gnu.org>
19187
19188 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19189
19190 * w32menu.c (syms_of_w32menu): Likewise.
19191
19192 * w32proc.c (syms_of_ntproc): Likewise.
19193
19194 * w32select.c (syms_of_w32select): Likewise.
19195
19196 * w32term.c (syms_of_w32term): Likewise.
19197
191982008-02-01 Jason Rumney <jasonr@gnu.org>
19199
19200 * w32font.c (w32font_draw): Delete brush after using it.
19201
192022008-02-01 Jason Rumney <jasonr@gnu.org>
19203
19204 * w32font.c (w32font_open): Don't set font_idx.
19205 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19206 to font settings.
19207 (w32font_draw): Fill background explicitly.
19208
192092008-02-01 Jason Rumney <jasonr@gnu.org>
19210
19211 * w32term.c (w32_initialize): Don't call w32font_initialize.
19212
19213 * w32font.c (w32font_info): Remove subranges.
19214 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19215 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19216 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19217 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19218 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19219 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19220 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19221 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19222 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19223 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19224 New symbols.
19225 (font_callback_data): New struct.
19226 (w32font_list, w32font_match): Use it.
19227 (w32font_open): Don't populate subranges.
19228 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19229 (w32font_encode_char): Always return unicode code-point as-is.
19230 (w32font_text_extents): Supply a transformation matrix to
19231 GetGlyphOutline. Never look up by glyph index. Avoid looping
19232 twice. Use unicode version of GetTexExtentPoint32 instead of
19233 glyph index version.
19234 (set_fonts_frame): Remove.
19235 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19236 set frame parameter. Use backward compatible fake foundries.
19237 Save generic family in extra slot under QCfamily. Make width slot
19238 constant. Save QCspacing value. Save list of scripts instead of
19239 binary subranges.
19240 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19241 (add_font_entity_to_list): Use font_callback_data struct. Filter
19242 unwanted fonts.
19243 (add_one_font_entity_to_list): Use font_callback_data struct.
19244 (w32_registry): Default to iso10646_1.
19245 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19246 string font registries. Don't fill in font name if it is a generic
19247 family name, fill family instead. Use spacing, family and script
19248 extra info to fill pitch, family and charset fields.
19249 (list_all_matching_fonts): Use font_callback_data struct.
19250 (unicode_range_for_char): Remove.
19251 (font_supported_scripts): New function.
19252 (w32font_initialize): Remove.
19253 (syms_of_w32font): Update which symbols are defined.
19254
192552008-02-01 Jason Rumney <jasonr@gnu.org>
19256
19257 * font.c (font_pixel_size): Reverse assq_no_quit args.
19258
19259 * w32term.h (FONT_WIDTH): Report max width, not average.
19260 (FONT_MAX_WIDTH): Remove.
19261 (FONT_AVG_WIDTH): New macro.
19262
19263 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19264 redefinition of FONT_WIDTH.
19265
19266 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19267 (w32_cache_char_metrics): Use FONT_WIDTH.
19268
19269 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19270
192712008-02-01 Jason Rumney <jasonr@gnu.org>
19272
19273 * w32font.c (w32font_open): Make lfHeight negative.
19274
19275 * w32fns.c (x_default_font_parameter): Use new style font name.
19276 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19277
192782008-02-01 Jason Rumney <jasonr@gnu.org>
19279
19280 * w32font.c (QCsubranges): New symbol.
19281 (w32font_open, w32font_has_char): Get subranges from subproperty
19282 of extra.
19283 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19284 (syms_of_w32font): Define :subranges symbol.
19285
19286 * font.c (font_put_extra): Expose externally.
19287
19288 * font.h (font_put_extra): Move declaration from font.c.
19289
19290 * font.c (Ffont_get): Use font driver to determine otf capability.
19291 (adjust_anchor): Check if driver defines anchor_point before using.
19292
19293 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19294 (w32font_draw): Use options.
19295 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19296 Fix detection of truetype fonts.
19297 (registry_to_w32_charset): Handle charsets other than iso8859-1
19298 expressed as lisp symbols.
19299 (w32_registry): Express charset as lisp symbol.
19300 (fill_in_logfont): Reverse pixel and point height logic.
19301 Don't set width here. Set quality to default.
19302
19303 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19304 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19305
19306 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19307 Remove redundant loop and allocation.
19308
19309 * makefile.w32-in (font.o, w32font.o): New objects.
19310 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19311 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19312
19313 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19314 STORE_XCHARB a valid l-value.
19315
19316 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19317 calculations for non-Truetype fonts.
19318 (x_draw_glyph_string): Sync with xterm.c.
19319 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19320 Remove redundant code.
19321 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19322
19323 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19324 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19325
19326 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19327 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19328
19329 * w32font.c: New file for w32 font backend.
19330
193312008-02-01 Kenichi Handa <handa@m17n.org>
19332
19333 * term.c: Don't include "buffer.h" twice.
19334
193352008-02-01 Kenichi Handa <handa@m17n.org>
19336
19337 * character.c (Funibyte_string): New function.
19338 (syms_of_character): Defsubr it.
19339
193402008-02-01 Jason Rumney <jasonr@gnu.org>
19341
19342 * w32term.c [USE_FONT_BACKEND]:
19343 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19344 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19345 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19346 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19347 (x_free_frame_resources): Sync with xterm.c.
19348
193492008-02-01 Andreas Schwab <schwab@suse.de>
19350
19351 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19352 char-table size.
19353
193542008-02-01 Kenichi Handa <handa@m17n.org>
19355
19356 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19357
193582008-02-01 Kenichi Handa <handa@m17n.org>
19359
19360 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19361 font_otf_gpos, add font_drive_otf.
19362
19363 * fontset.c (fontset_find_font): Pay attention to font size
19364 specified for a font.
19365 (reorder_font_vector): Check contents of font_def.
19366
19367 * font.c (struct otf_list): Delete it.
19368 (otf_list): Make it a lisp variable.
19369 (otf_open): Use lispy otf_list.
19370 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19371 (check_otf_features): New function.
19372 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19373 New functions.
19374 (font_drive_otf): New function merging font_otf_gsub and
19375 font_otf_gpos.
19376 (font_open_for_lface): New arg spec. Change argument order.
19377 (font_load_for_face): Adjust for the change of font_open_for_lface.
19378 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19379 Ffont_otf_gpos.
19380 (syms_of_font): Staticpro otf_list. Delete defsubr of
19381 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19382
19383 * xfaces.c (set_font_frame_param): Adjust for the change of
19384 font_open_for_lface.
19385
19386 * font.h (font_open_for_lface): Adjust prototype.
19387 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19388 member otf_drive.
19389 (font_otf_gsub, font_otf_gpos): Delete externs.
19390 (font_drive_otf): Extern it.
19391
193922008-02-01 Kenichi Handa <handa@m17n.org>
19393
19394 * font.c (font_at): If the window W is not on a window system,
19395 return Qnil.
19396
19397 * coding.c (produce_chars, encode_coding): Don't call
19398 insert_from_gap if no characters to produce.
19399
194002008-02-01 Kenichi Handa <handa@m17n.org>
19401
19402 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19403 Fclear_face_cache.
19404
19405 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19406
194072008-02-01 Miles Bader <miles@gnu.org>
19408
19409 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19410 Parse "--disable-font-backend" option.
19411 (standard_args): Add "--disable-font-backend" option.
19412
194132008-02-01 Kenichi Handa <handa@m17n.org>
19414
19415 * fontset.c (fontset_find_font): New function.
19416 (fontset_font): Use fontset_find_font.
19417 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19418 Register the specified font for all Latin characters.
19419 (new_fontset_from_font): Register the specified font for all Latin
19420 characters.
19421 (dump_fontset): For a realized fontset, include the base fontset
19422 name in the returned vector.
19423
194242008-02-01 Kenichi Handa <handa@m17n.org>
19425
19426 * character.h (CHAR_STRING): Cast C to unsigned on calling
19427 char_string.
19428
19429 * character.c (char_string): Type of arg C changed to unsigned.
19430 Signal an error if C is an invalid character code.
19431
19432 * editfns.c (general_insert_function, Fchar_to_string):
19433 Use CHARACTERP, not INTEGERP.
19434
194352008-02-01 Kenichi Handa <handa@m17n.org>
19436
19437 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19438 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19439
19440 * regex.c (analyse_first): Fix for multibyte characters in "case
19441 charset:" and "case categoryspec:".
19442
194432008-02-01 Andreas Schwab <schwab@suse.de>
19444
19445 * Makefile.in (LIBES): Move standard libraries to the end.
19446
194472008-02-01 Kenichi Handa <handa@m17n.org>
19448
19449 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19450 nonzero, don't shrink the buffer nextb.
19451
19452 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19453
19454 * coding.c (coding_alloc_by_making_gap): New arg offset.
19455 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19456 offset.
19457 (decode_coding_iso_2022): Update coding->safe_charsets.
19458 (decode_coding_gap): Temporarily set
19459 current_buffer->text->inhibit_shrinking to 1.
19460
194612008-02-01 Kenichi Handa <handa@m17n.org>
19462
19463 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19464 indexing into elements of s->cmp and s->char2b.
19465
194662008-02-01 Juanma Barranquero <lekktu@gmail.com>
19467
19468 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19469
194702008-02-01 Kenichi Handa <handa@m17n.org>
19471
19472 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19473 target_multibyte instead of multibyte.
19474 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19475 (bcmp_translate): Change the argument name from multibyte to
19476 target_multibyte.
19477
194782008-02-01 Kenichi Handa <handa@m17n.org>
19479
19480 These changes are to compile a regexp into a pattern that can be
19481 used both for multibyte and unibyte targets.
19482
19483 * Makefile.in (search.o): Depend on charset.h.
19484
19485 * character.c (multibyte_char_to_unibyte_safe): New function.
19486
19487 * search.c: Include "charset.h".
19488 (compile_pattern_1): Delete argument multibyte. Don't set
19489 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19490 (compile_pattern): Don't compare cp->buf.target_multibyte.
19491 Compare cp->buf.charset_unibyte.
19492 (compile_pattern): Set cp->buf.target_multibyte.
19493
19494 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19495
19496 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19497
19498 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19499 multibyte. Change callers.
19500 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19501 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19502 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19503 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19504 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19505 (regex_compile): Make the compiled pattern usable both for
19506 multibyte and unibyte targets.
19507 (analyse_first): Make the fastmap usable both for multibyte and
19508 unibyte targets.
19509 (TRANSLATE_VIA_MULTIBYTE): Delete.
19510 (re_match_2_internal): Pay attention to the case that the
19511 multibyteness of bufp and target may be different.
19512
195132008-02-01 Kenichi Handa <handa@m17n.org>
19514
19515 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19516 empty box occupy at least one column width.
19517
195182008-02-01 Miles Bader <miles@gnu.org>
19519
19520 * Makefile.in: Remove redundant HAVE_XFT clause.
19521
195222008-02-01 Kenichi Handa <handa@m17n.org>
19523
19524 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19525
195262008-02-01 Kenichi Handa <handa@m17n.org>
19527
19528 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19529 being nil.
19530
195312008-02-01 Kenichi Handa <handa@m17n.org>
19532
19533 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19534
195352008-02-01 Kenichi Handa <handa@m17n.org>
19536
19537 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19538
195392008-02-01 Kenichi Handa <handa@m17n.org>
19540
19541 * search.c (simple_search): Fix previous change.
19542
195432008-02-01 Kenichi Handa <handa@m17n.org>
19544
19545 * xftfont.c (ftfont_font_format): Extern declaration.
19546
19547 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19548
19549 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19550 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19551
19552 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19553 (ftfont_font_format): Fix previous change.
19554
19555 * font.h (Ffont_xlfd_name): EXFUN it.
19556
19557 * font.c (font_parse_xlfd): Fix the array size of `f'.
19558 (register_font_driver): Use EQ to compare driver->type.
19559
19560 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19561 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19562 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19563
195642008-02-01 Kenichi Handa <handa@m17n.org>
19565
19566 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19567 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19568
195692008-02-01 Kenichi Handa <handa@m17n.org>
19570
19571 * xfont.c (xfont_open): Set font->format.
19572
19573 * xftfont.c (xftfont_open): Set font->format.
19574
19575 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19576 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19577 (ftfont_open): Set font->format.
19578 (ftfont_font_format): New function.
19579
19580 * font.h (struct font): New member format.
19581
19582 * font.c (Qopentype): New variable.
19583 (syms_of_font): Defsym it.
19584 (Fquery_font): Change the format of the last element of the return
19585 value.
19586
195872008-02-01 Kenichi Handa <handa@m17n.org>
19588
19589 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19590 last resort.
19591
195922008-02-01 Kenichi Handa <handa@m17n.org>
19593
19594 * coding.c (detect_coding_charset): Fix detection of multi-byte
19595 charset.
19596
195972008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19598
19599 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19600
196012008-02-01 Kenichi Handa <handa@m17n.org>
19602
19603 * xdisp.c (get_next_display_element): Set it->face_id for the
19604 first component of a composition.
19605 (x_produce_glyphs): Check if the font is changed or not for composition.
19606
196072008-02-01 Kenichi Handa <handa@m17n.org>
19608
19609 * fontset.c (Qlatin): New variable.
19610 (syms_of_fontset): Define it as a lisp symbol.
19611 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19612
196132008-02-01 Kenichi Handa <handa@m17n.org>
19614
19615 * font.c (font_unparse_fcname): Pay attention to the case that
19616 some of font property is a null string.
19617
196182008-02-01 Kenichi Handa <handa@m17n.org>
19619
19620 * term.c: Include "composite.h".
19621 (encode_terminal_code): Output all components of composition.
19622 Check the size of encode_terminal_src.
19623 (produce_glyphs): For composition, call produce_composite_glyph.
19624 (append_composite_glyph, produce_composite_glyph): New functions.
19625
19626 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19627 is not found, get font_info from the current ascii face.
19628
196292008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19632 buffer-file-name to Qnil before calling insert_from_buffer.
19633
19634 * font.c (font_unparse_fcname): Pay attention to the case that
19635 foundry is a null string.
19636
196372008-02-01 Kenichi Handa <handa@m17n.org>
19638
19639 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19640
19641 * font.c (Qunicode_sip): New variable.
19642 (syms_of_font): Declare it as a Lisp symbol.
19643
19644 * font.h (Qunicode_sip): Extern it.
19645
196462008-02-01 Kenichi Handa <handa@m17n.org>
19647
19648 * composite.c (get_composition_id): Pay attention to TAB component.
19649
19650 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19651 TAB. Adjust for the change of s->char2b which always points to
19652 the first element of allocated memory.
19653
19654 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19655
19656 * xdisp.c (handle_composition_prop): Set it->c to the first
19657 non-TAB component.
19658 (fill_composite_glyph_string): Change argument.
19659 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19660 (x_produce_glyphs): Fix handling of left/right padding.
19661
196622008-02-01 Kenichi Handa <handa@m17n.org>
19663
19664 * coding.c (detect_coding_system): Fix for handling off
19665 inhibit_iso_escape_detection. Fix for the case that no coding
19666 system is defined for a specific coding category.
19667
196682008-02-01 Kenichi Handa <handa@m17n.org>
19669
19670 * font.c (font_matching_entity): Delete unused local var.
19671
19672 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19673 opening a font.
19674
19675 * fileio.c (Finsert_file_contents): On recovering a file, assume
19676 Unix-like eol.
19677 (choose_write_coding_system): On auto-saving a file, force
19678 Unix-like eol.
19679
19680 * coding.c (setup_coding_system): Fix setting of
19681 coding->common_flags based on eol_type.
19682 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19683 inherit from it.
19684
196852008-02-01 Kenichi Handa <handa@m17n.org>
19686
19687 * alloc.c (NSTATICS): Increas to 0x600.
19688
196892008-02-01 Kenichi Handa <handa@m17n.org>
19690
19691 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19692 (ftfont_list): Don't check :name property.
19693 (ftfont_match): New function.
19694 (ftfont_pattern_entity): If the pattern doesn't contain
19695 FC_SPACING, don't assume FC_MONO.
19696
19697 * font.h (struct font_driver): New member `match'.
19698 (font_update_drivers): Adjust prototype.
19699
19700 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19701 property of FONT.
19702 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19703 them unconditionally.
19704 (font_matching_entity): New function.
19705 (font_open_by_name): Try font_matching_entity if exact match is
19706 not found.
19707 (font_update_drivers): Delete the arg FONT. Return a list of
19708 actually used backends. Don't free faces, font caches here.
19709 Don't store data in frame parameters. Don't call x_set_font.
19710 (Ffont_spec): Store :name property as is.
19711 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19712 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19713 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19714 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19715 Call font->driver->otf_gsub instead of font_otf_gsub.
19716
19717 * frame.c (x_set_font_backend): Do more works that were done in
19718 font_update_drivers before.
19719
19720 * xfont.c (xfont_match): New function.
19721 (xfont_driver): Set xfont_driver.match to xfont_match.
19722 (xfont_draw): Set font in GC if necessary.
19723
19724 * ftxfont.c (ftxfont_match): New function.
19725 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19726
19727 * xftfont.c (xftfont_match): New function.
19728 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19729
197302008-02-01 Kenichi Handa <handa@m17n.org>
19731
19732 * font.h (struct font): New member scalable.
19733 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19734 (font_otf_gsub): Adjust prototype.
19735
19736 * font.c (font_otf_capability): Fix handling of the default langsys.
19737 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19738 Check the contents of SPEC.
19739 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19740 (check_gstring): New function.
19741 (REPLACEMENT_CHARACTER): New macro.
19742 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19743 glyph codes of GSTRING.
19744 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19745 (font_prepare_composition): Set cmp->glyph_len.
19746 (font_open_entity): Set font->scalable.
19747 (Ffont_get): Handle :otf property.
19748 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19749 functions.
19750 (Fquery_font): Use font->font.full_name.
19751 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19752 Sfont_otf_alternates.
19753
19754 * ftfont.c (ftfont_open): Set font->font.full_name and
19755 font->font.name properly. Fix calculation of font->font.height
19756 and font->min_width.
19757
19758 * ftxfont.c (ftxfont_create_gcs): New function.
19759 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19760 (ftxfont_draw_backgrond): Fix filling region.
19761 (ftxfont_default_fid): New function.
19762 (ftxfont_open): Set xfont->fid to the return value of
19763 ftxfont_default_fid.
19764 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19765 (ftxfont_done_face): Free only GCs that are created by
19766 ftxfont_create_gcs.
19767 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19768
19769 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19770 Clip to src->width, etc (not src->clip_XXX).
19771
19772 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19773 FontBackend frame parameter.
19774
197752008-02-01 Kenichi Handa <handa@m17n.org>
19776
19777 * font.h (struct font_driver_list): New member `on'.
19778 (Fclear_font_cache): EXFUN it.
19779 (font_update_drivers): Extern it.
19780
19781 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19782 (font_list_entities): Check driver_list->on.
19783 (register_font_driver): Initalize `on' member to 0.
19784 (font_update_drivers): New function.
19785 (Fclear_font_cache): Check driver_list->on.
19786
19787 * frame.h (Qfont_backend): Extern it.
19788 (x_set_font_backend): Extern it.
19789
19790 * frame.c (Qfont_backend): New variable.
19791 (frame_parms): New element for font-backend.
19792 (x_set_font_backend): New function.
19793
19794 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19795 FontBackend frame parameter.
19796 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19797 x_set_font_backend.
19798
19799 * xfont.c (xfont_list): Don't try listing by :name property if the
19800 name is not for XLFD.
19801
198022008-02-01 Kenichi Handa <handa@m17n.org>
19803
19804 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19805 (LGLYPH_SET_TO): New macros.
19806 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19807 element of G is vector or not.
19808 (font_at): Extern it.
19809
19810 * font.c: Include window.h.
19811 (font_lispy_object): New function.
19812 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19813 end of valid glyph.
19814 (font_close_object): Fix getting (struct font *).
19815 (font_at): New function.
19816 (Ffont_get): If FONT is a font-object, get entity from it.
19817 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19818 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19819 range check.
19820 (Ffont_at): New function.
19821 (syms_of_font): Defsubr Sfont_at.
19822
19823 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19824 before the entry for Qcomposition.
19825 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19826 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19827 the font in gstring.
19828 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19829 LGLYPH_FORM (g) to detect the end of valid glyph.
19830 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19831 we are composing with gstring.
19832
19833 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19834 Check if adjustment is vector or not.
19835
19836 * Makefile.in (font.o): Make it depends on window.h.
19837
198382008-02-01 Kenichi Handa <handa@m17n.org>
19839
19840 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19841 adjustment is vector or not.
19842
198432008-02-01 Miles Bader <miles@gnu.org>
19844
19845 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19846
198472008-02-01 Kenichi Handa <handa@m17n.org>
19848
19849 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19850 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19851 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19852
19853 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19854 (DEVICE_DELTA): Fix typo.
19855 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19856 LGLYPH format.
19857
19858 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19859 the change of LGLYPH format.
19860
198612008-02-01 Kenichi Handa <handa@m17n.org>
19862
19863 * ftfont.c (ftfont_list): Fix typo.
19864 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19865
198662008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19867
19868 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19869
19870 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19871 xftface_info is non-NULL.
19872
198732008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19874
19875 * ftfont.c (ftfont_list): Move misplaced #endif.
19876
198772008-02-01 Kenichi Handa <handa@m17n.org>
19878
19879 * ftfont.c (ftfont_list): Pay attention to the case that
19880 FC_CAPABILITY is not defined.
19881
198822008-02-01 Kenichi Handa <handa@m17n.org>
19883
19884 * xftfont.c (xftfont_open): Set charset related members to -1.
19885
19886 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19887 QCname.
19888 (ftfont_open): Set charset related members to -1.
19889
19890 * fontset.c (Votf_script_alist): New variable.
19891 (syms_of_fontset): Initialize it.
19892 (fontset_font): Delete unused variable.
19893
19894 * fontset.h (Votf_script_alist): Extern it.
19895
19896 * font.c (font_find_for_lface): Optimize code.
19897
19898 * font.h (font_close_object, font_merge_old_spec): Extern them.
19899
199002008-02-01 Kenichi Handa <handa@m17n.org>
19901
19902 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19903 (syms_of_font): Initialize them.
19904 (font_pixel_size): Allow float value in dpi.
19905 (font_prop_validate_type): Delete.
19906 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19907 Change caller.
19908 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19909 (font_prop_validate_extra): Delete.
19910 (font_prop_validate_spacing): New function.
19911 (font_property_table): Add elements for all known properties.
19912 (get_font_prop_index): Rename from check_font_prop_name. New
19913 argument FROM. Change caller.
19914 (font_prop_validate): Validate all known properties.
19915 (font_put_extra): Delete argument force. Change caller.
19916 (font_expand_wildcards): Make it static. Fix the way of shrinking
19917 the possible range.
19918 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
19919 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
19920 Change caller.
19921 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
19922 (font_parse_fcname): Delete argument merge. Fix parsing of point
19923 size. Don't validate properties values here. Change caller.
19924 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
19925 (font_open_by_name): Delete unused variable.
19926 (Ffont_spec): Likewise. Validate property values.
19927 (Ffont_match_p): New function.
19928
19929 * font.h (QCscalable): Extern it.
19930 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
19931
19932 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
19933
19934 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
19935 (xfont_list_pattern): New function.
19936 (xfont_list): Use xfont_list_pattern.
19937
199382008-02-01 Kenichi Handa <handa@m17n.org>
19939
19940 * font.h (Flist_fonts): EXFUN it.
19941
199422008-02-01 Jason Rumney <jasonr@gnu.org>
19943
19944 * w32term.c (w32_initialize): Add back smoothing_type and
19945 smoothing_enabled definitions.
19946
199472008-02-01 Kenichi Handa <handa@m17n.org>
19948
19949 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
19950 s->face->font on determining underline position.
19951
199522008-02-01 Kenichi Handa <handa@m17n.org>
19953
19954 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
19955 (font_has_char): Accept font-object too.
19956 (font_find_for_lface): Try at first with a size specified in face.
19957
199582008-02-01 Kenichi Handa <handa@m17n.org>
19959
19960 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
19961 font_open_by_name.
19962
199632008-02-01 Kenichi Handa <handa@m17n.org>
19964
19965 * font.h (QCspacing, QCdpi): Extern them.
19966 (enum font_spacing): New enum.
19967 (FONT_PIXEL_SIZE_QUANTUM): New macro.
19968
19969 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
19970 (QCspacing, QCdpi): New variables.
19971 (syms_of_font): Initialize them.
19972 (font_pixel_size): New function.
19973 (font_put_extra): New function.
19974 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
19975 in FONT_EXTRA.
19976 (font_parse_fcname): Handle enumerated values (e.g. bold).
19977 Fix handling font size. Add QCname property that contains only
19978 unknown properties.
19979 (font_score): Change argument. Change caller. Pay attention to
19980 FONT_PIXEL_SIZE_QUANTUM.
19981 (font_sort_entites, font_list_entities, font_find_for_lface)
19982 (font_open_for_lface, font_open_by_name): Fix handling of font size.
19983 (Ffont_spec): Add QCname property that contains only unknown properties.
19984
19985 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
19986 include weight in listing pattern, instead check weight of each
19987 listed font. Don't include scalable in pattern. Pay attention to
19988 FONT_PIXEL_SIZE_QUANTUM.
19989
199902008-02-01 Kenichi Handa <handa@m17n.org>
19991
19992 * font.c (font_parse_fcname): Fix parsing of point-size.
19993 (font_unparse_fcname): Produce symbolic names for style properties.
19994 (font_list_entities): Handle float size correctly.
19995 (font_open_by_name): Prefer `normal' property values if the name
19996 doesn't specify them.
19997
19998 * fontset.c (Finternal_char_font): Use font_get_name, not
19999 Ffont_xlfd_name.
20000
20001 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20002 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20003 pattern. Don't force scalable.
20004
20005 * xftfont.c (xftfont_open): For generating a name, start from
20006 96-byte buffer.
20007
200082008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20009
20010 * frame.h (x_new_fontset2): Fix prototype.
20011
200122008-02-01 Kenichi Handa <handa@m17n.org>
20013
20014 * font.h (struct font_driver): Delete member parse_name.
20015 (font_match_p, font_get_spec, font_parse_fcname)
20016 (font_unparse_fcname): Extern them.
20017 (font_get_name): Adjust prototype.
20018
20019 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20020 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20021 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20022 unnecessary checks for weight, slant, and swidth.
20023 (font_parse_fcname): New function.
20024 (font_unparse_fcname): New function.
20025 (font_parse_name): New function.
20026 (font_match_p): New function.
20027 (font_get_name): Change return value to Lisp string.
20028 (font_get_spec): New function.
20029 (Qunspecified, Qignore_defface): Don't extern them.
20030 (font_find_for_lface): Assume that LFACE is fully specified.
20031 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20032 object, use it for FACE.
20033 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20034 driver->parse_name.
20035 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20036
20037 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20038 prototype.
20039
20040 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20041 argument F. Don't call Fnew_fontset. Instead, directly call
20042 make_fontset.
20043
20044 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20045
20046 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20047 of x_new_fontset2.
20048
20049 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20050 (Qsans__serif): New variables.
20051 (ftfont_generic_family_list): New variable.
20052 (syms_of_ftfont): Initialize the above variables.
20053 (ftfont_pattern_entity): Delete argument NAME.
20054 (ftfont_list_generic_family): New function.
20055 (ftfont_parse_name): Delete this function.
20056 (ftfont_list): Try generic family only when FcFontList found no font.
20057 (ftfont_list_family): Fix args to FcObjectSetBuild.
20058
20059 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20060 object in attrs[LFACE_FONT_INDEX].
20061 (set_lface_from_font_name): Cancel all changes for font-backend.
20062 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20063 function.
20064 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20065 font object in QCfont attribute.
20066 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20067 (realize_default_face) [USE_FONT_BACKEND]: Call
20068 set_lface_from_font_and_fontset.
20069
20070 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20071 "fixed", and signal error here if no suitable font was found.
20072
20073 * xfont.c (xfont_parse_name): Delete this function.
20074
20075 * xftfont.c (xftfont_open): Change coding style of error
20076 handling. Generate fontconfig's fontname pattern.
20077
20078 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20079 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20080
20081 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20082 Both args FONTSET and FONT_OBJECT must be existing ones.
20083
200842008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20085
20086 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20087
200882008-02-01 Kenichi Handa <handa@m17n.org>
20089
20090 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20091
20092 * font.h (struct font): Fix typo.
20093
20094 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20095 XLFD_XXX_INDEX.
20096 (enum xlfd_field_mask): New enum.
20097 (intern_font_field): Changed argument. Change caller. If digits
20098 are followed by non-digits, return a symbol.
20099 (font_expand_wildcards): New function.
20100 (font_parse_xlfd): Fix wildcard handling.
20101 (Ffont_spec): If :name is specified, reflect the info in the other
20102 properties.
20103
20104 * ftfont.c (ftfont_pattern_entity): Fix typo.
20105 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20106 locale.
20107
201082008-02-01 Kenichi Handa <handa@m17n.org>
20109
20110 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20111
20112 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20113 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20114 registry doesn't specify encoding part.
20115 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20116 (font_open_by_name): At first try parsing the name.
20117 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20118 as Lisp symbols.
20119
20120 * fontset.c (reorder_font_vector): Pay attention to the case that
20121 the 3rd element of font_def is nil.
20122 (fontset_font): For the default fontset, append one more fontset
20123 elements for a script-based font specification. Don't add script
20124 attribute on finding a font.
20125 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20126 font name.
20127 (fontset_ascii_font): If a font can't be opened, return nil.
20128
20129 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20130 (ftfont_pattern_entity): New function.
20131 (ftfont_get_cache): Assume that freetype_font_cache is already
20132 initialized.
20133 (ftfont_list): Handle the case that a file is specified in font
20134 name. Use ftfont_pattern_entity to generate entities.
20135 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20136 (syms_of_ftfont): Initialize freetype_font_cache.
20137
20138 * xftfont.c (xftfont_open): Make the font name fontconfig's
20139 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20140 (xftfont_close): Free font->font.name if not NULL.
20141
20142 * xfont.c (xfont_list): If script is specified for a font, return
20143 null_vector.
20144 (xfont_list_family): Declare argument type.
20145
20146 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20147 name, set LFACE_FONT (lface) to nil.
20148
20149 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20150 return Qnil.
20151
201522008-02-01 Kenichi Handa <handa@m17n.org>
20153
20154 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20155 (standard_args): Add "-enable-font-backend".
20156
201572008-02-01 Kenichi Handa <handa@m17n.org>
20158
20159 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20160 (struct xftdraw_list, xftdraw_list): Delete them.
20161 (register_xftdraw, check_xftdraw): Delete them.
20162 (xftfont_prepare_face): Don't call register_xftdraw.
20163 (xftfont_done_face): Don't call check_xftdraw.
20164 (xftfont_draw): Get background color only when with_background is
20165 nonzero.
20166
20167 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20168
201692008-02-01 Kenichi Handa <handa@m17n.org>
20170
20171 These changes are for the new font handling codes.
20172
20173 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20174 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20175 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20176 (FONTSRC, FONTOBJ): New variables.
20177 (obj): Add $(FONTOBJ).
20178 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20179 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20180 @LIBOTF_LIBS@.
20181 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20182 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20183
20184 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20185
20186 * character.h (Vscript_representative_chars): Extern it.
20187
20188 * character.c (Vscript_representative_chars): New variable.
20189 (syms_of_character): Declare it as a Lisp variable.
20190
20191 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20192 enable_font_backend is nonzero, accept the composition method
20193 COMPOSITION_WITH_GLYPH_STRING.
20194
20195 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20196 enumeration COMPOSITION_WITH_GLYPH_STRING.
20197
20198 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20199 members clip_x, clip_y, clip_width, and clip_height.
20200 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20201
20202 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20203 --enable-font-backend. Call syms_of_font.
20204
20205 * fns.c (assoc_no_quit): New function.
20206
20207 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20208 (face_for_font, new_fontset_from_font)
20209 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20210
20211 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20212 (fontset_font, fontset_ascii, face_for_char)
20213 (make_fontset_for_ascii_face, Ffont_info)
20214 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20215 is nonzero, use font-backend mechanism.
20216 (find_font_encoding): Make it non-static.
20217 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20218 New functions.
20219
20220 * frame.h (struct frame): New members resx and resy.
20221 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20222 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20223
20224 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20225 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20226
20227 * lisp.h (assoc_no_quit): Extern it.
20228
20229 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20230 Through out the file, use FONT_INFO_FROM_FACE instead of
20231 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20232 rif->per_char_metric.
20233 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20234 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20235 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20236 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20237 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20238 nonzero, use font-backend mechanism.
20239 (get_per_char_metric): New function.
20240
20241 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20242 (set_lface_from_font_name)
20243 (set_font_frame_param, free_realized_face)
20244 (prepare_face_for_display, clear_face_gcs)
20245 (Finternal_set_font_selection_order, realize_x_face)
20246 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20247 font-backend mechanism.
20248 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20249 (load_face_font) [USE_FONT_BACKEND]: Abort.
20250 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20251 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20252
20253 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20254 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20255 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20256 nonzero, register all available font drivers. Call
20257 x_default_font_parameter for deciding a font.
20258 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20259
20260 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20261 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20262 (x_set_glyph_string_clipping_exactly)
20263 (x_compute_glyph_string_overhangs)
20264 (x_draw_glyph_string_foreground)
20265 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20266 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20267 enable_font_backend is nonzero, use font-backend mechanism.
20268 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20269
202702008-02-01 Kenichi Handa <handa@m17n.org>
20271
20272 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20273 system_eol_type.
20274 (syms_of_coding): Initialize system_eol_type.
20275
20276 * process.c (Fset_process_coding_system): Inherit system's eol
20277 format if necessary.
20278
202792008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20280
20281 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20282
202832008-02-01 Kenichi Handa <handa@m17n.org>
20284
20285 * coding.c (decode_eol): Pay attention to buffer relocation in
20286 del_range_2.
20287 (decode_coding): Call decode_eol before restoring undo_list.
20288
202892008-02-01 Kenichi Handa <handa@m17n.org>
20290
20291 * charset.c (Fdefine_charset_internal): Fix setting of
20292 emacs_mule_bytes.
20293
202942008-02-01 Kenichi Handa <handa@m17n.org>
20295
20296 * keyboard.c (read_char): Check if C is a character or not before
20297 looking up Vkeyboard_translate_table.
20298
202992008-02-01 Kenichi Handa <handa@m17n.org>
20300
20301 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20302 condition to terminate the loop.
20303
203042008-02-01 Kenichi Handa <handa@m17n.org>
20305
20306 * coding.c (produce_composition): Compare charbuf[i] instead of
20307 args[i] against 0.
20308 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20309
203102008-02-01 Kenichi Handa <handa@m17n.org>
20311
20312 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20313 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20314 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20315 detect_coding.
20316 (emacs_mule_char): Handle old style (Emacs 20) component character
20317 of a composition.
20318 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20319 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20320 composition rule.
20321 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20322
203232008-02-01 Kenichi Handa <handa@m17n.org>
20324
20325 * coding.c (encode_coding_ccl): Allocate destination dynamically
20326 when necessary.
20327
203282008-02-01 Kenichi Handa <handa@m17n.org>
20329
20330 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20331 the loop. When quitted, show a proper error message.
20332
203332008-02-01 Kenichi Handa <handa@m17n.org>
20334
20335 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20336 src->clip_head and src->clip_tail temporarily instead of src->hl.
20337
20338 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20339 character sequence.
20340 (Fccl_execute_on_string): Use ASET, not XSET.
20341
203422008-02-01 Kenichi Handa <handa@m17n.org>
20343
20344 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20345
203462008-02-01 Kenichi Handa <handa@m17n.org>
20347
20348 * coding.c (decode_coding): Fix the condition of terminating the
20349 decoding loop.
20350
203512008-02-01 Kenichi Handa <handa@m17n.org>
20352
20353 * data.c (Faset): On setting a character bigger than 255 in a
20354 unibyte string, signal an error instead of make the string multibyte.
20355
203562008-02-01 Kenichi Handa <handa@m17n.org>
20357
20358 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20359 made by a mapping table.
20360
203612008-02-01 Kenichi Handa <handa@m17n.org>
20362
20363 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20364 not.
20365 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20366 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20367
20368 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20369 s->face is NULL or not.
20370
203712008-02-01 Kenichi Handa <handa@m17n.org>
20372
20373 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20374 (x_draw_glyph_string): Fix drawing of right_overhang and
20375 left_overhang around/on cursor.
20376
20377 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20378
203792008-02-01 Kenichi Handa <handa@m17n.org>
20380
20381 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20382
203832008-02-01 Kenichi Handa <handa@m17n.org>
20384
20385 * coding.c (Fdefine_coding_system_internal)
20386 (Fdefine_coding_system_alias): Avoid a duplicated element in
20387 Vcoding_system_alist.
20388
203892008-02-01 Kenichi Handa <handa@m17n.org>
20390
20391 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20392
20393 * coding.c (Qcoding_system_define_form): New variable.
20394 (syms_of_coding): Intern and staticpro it.
20395 (Fcoding_system_p): Check Qcoding_system_define_form.
20396 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20397
20398 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20399 Fcoding_system_p.
20400 (CHECK_CODING_SYSTEM): If ID is not available, call
20401 Fcheck_coding_system.
20402 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20403 Try also Fcheck_coding_system.
20404
204052008-02-01 Kenichi Handa <handa@m17n.org>
20406
20407 * coding.c (code_conversion_restore): GCPRO arg.
20408
204092008-02-01 Kenichi Handa <handa@m17n.org>
20410
20411 * character.c (lisp_string_width): Check multibyteness of STRING.
20412
204132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20414
20415 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20416 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20417 (decode_mac_font_name): Use decode_coding_c_string instead of
20418 decode_coding.
20419 (x_load_font): Initialize fontp->fontset to -1. Set
20420 fontp->encoding_type.
20421
204222008-02-01 Kenichi Handa <handa@m17n.org>
20423
20424 * search.c (search_buffer): Give up BM search on case-fold-search
20425 if one of a target character has a case-equivalence of different
3b59c351 20426 byte length even if that target character is an ASCII.
aac0c6e3
MR
20427 (simple_search): Fix calculation of byte length of matched text.
20428 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20429
204302008-02-01 Kenichi Handa <handa@m17n.org>
20431
20432 * coding.c (decode_coding): Fix handling of invalid bytes.
20433
204342008-02-01 Kenichi Handa <handa@m17n.org>
20435
20436 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20437 Unicode characters.
20438
204392008-02-01 Kenichi Handa <handa@m17n.org>
20440
20441 * coding.c (encode_coding_object): If a pre-write-conversion
20442 function makes a new buffer, kill it.
20443
204442008-02-01 Kenichi Handa <handa@m17n.org>
20445
20446 * coding.c (QCascii_compatible_p): New variable.
20447 (syms_of_coding): Initialize it.
20448 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20449 calling string_char.
20450 (record_conversion_result): Add `default:' case.
20451 (coding_charset_list): Delete unused variable `coding_type'.
20452 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20453 property in the plist of the coding system.
20454 (Fcoding_system_put): Check QCascii_compatible_p.
20455
204562008-02-01 Miles Bader <miles@gnu.org>
20457
20458 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20459 removed calculation of frame `f', as it's now used.
20460
204612008-02-01 Kenichi Handa <handa@m17n.org>
20462
20463 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20464 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20465 (UNIDATA): New variable.
20466 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20467 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20468 $(RUN_TEMACS) unconditionally.
20469
204702008-02-01 Kenichi Handa <handa@m17n.org>
20471
20472 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20473 (admindir): New variable.
20474 ($(lispsource)international/charprop.el): New target.
20475
204762008-02-01 Miles Bader <miles@gnu.org>
20477
20478 * character.c (chars-in-region): Remove obsolete function.
20479 (syms_of_character): Remove its initialization.
20480
204812008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20482
20483 * w32select.c (validate_coding_system)
20484 (setup_windows_coding_system): New functions.
20485 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20486 setup_windows_coding_system.
20487 (setup_config, Fw32_get_clipboard_data): Use
20488 validate_coding_system.
20489 (Fx_selection_exists): Move call to setup_config to a place
20490 where signals are allowed.
20491
20492 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20493 (Fcheck_coding_system): Add declarations.
20494
204952008-02-01 Kenichi Handa <handa@m17n.org>
20496
20497 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20498
204992008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20500
20501 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20502 string as the second argument for x_new_fontset.
20503
205042008-02-01 Kenichi Handa <handa@m17n.org>
20505
20506 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20507 (encode_coding_object): Use safe_call instead of call2.
20508
205092008-02-01 Kenichi Handa <handa@m17n.org>
20510
20511 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20512
20513 * Makefile.in (lisp): Include charprop.el.
20514
205152008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20516
20517 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20518 Not sure if it's unnecessary.
20519
205202008-02-01 Steven Tamm <steventamm@mac.com>
20521
20522 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20523 some possibly unnecessary fontset checking code that crashed
20524 when creating a new frame.
20525
205262008-02-01 Kenichi Handa <handa@m17n.org>
20527
20528 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20529 lookup_face.
20530
20531 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20532
20533 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20534
205352008-02-01 Kenichi Handa <handa@m17n.org>
20536
20537 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20538 (coding_charset_list): New function.
20539
20540 * coding.h (coding_charset_list): Extern it.
20541
205422008-02-01 Kenichi Handa <handa@m17n.org>
20543
20544 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20545 concatenation of family and registry.
20546
205472008-02-01 Kenichi Handa <handa@m17n.org>
20548
20549 * character.h (BYTE8_STRING): Fix typo.
20550
20551 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20552 string to multibyte (sync to HEAD).
20553
20554 * casefiddle.c (casify_region): Handle changes in byte-length
20555 using replace_range_2 (sync to HEAD).
20556
205572008-02-01 Andreas Schwab <schwab@suse.de>
20558
20559 * chartab.c (map_char_table): GCPRO table and arg.
20560
205612008-02-01 Kenichi Handa <handa@m17n.org>
20562
20563 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20564 already at limit.
20565
205662008-02-01 Kenichi Handa <handa@m17n.org>
20567
20568 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20569 instead of fast_c_string_match_ignore_case.
20570 (find_font_encoding): Change argument to Lisp_Object. Use
20571 fast_string_match_ignore_case instead of
20572 fast_c_string_match_ignore_case. Change caller.
20573
205742008-02-01 Kenichi Handa <handa@m17n.org>
20575
20576 * xdisp.c (get_next_display_element): In unibyte case, decide to
20577 display in octal form by checking a character by
20578 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20579
20580 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20581
20582 * character.c (unibyte_has_multibyte_table): New variable.
20583
20584 * character.h (unibyte_has_multibyte_table): Extern it.
20585 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20586
205872008-02-01 Kenichi Handa <handa@m17n.org>
20588
20589 * coding.c (encode_coding_iso_2022): Fix handling of charset
20590 annotation.
20591
205922008-02-01 Kenichi Handa <handa@m17n.org>
20593
20594 * coding.c (setup_coding_system): If coding_system is nil, use
20595 Qundecided.
20596 (Fterminal_coding_system): Return nil if terminal coding system is
20597 `undecided'.
20598 (syms_of_coding): Define coding-system `undecided' here. Setup
20599 terminal_coding as `undecided'.
20600
206012008-02-01 Kenichi Handa <handa@m17n.org>
20602
20603 * xdisp.c (message_dolog, set_message_1): Call
20604 unibyte_char_to_multibyte with arg type int.
20605
20606 * lread.c (read1): Fix reading of a char-table.
20607
20608 * print.c (print_object): Include sub char-table in circularities
20609 detection.
20610
206112008-02-01 Kenichi Handa <handa@m17n.org>
20612
20613 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20614 Append the found sequences in car of ARGS instead of prepending.
20615
206162008-02-01 Kenichi Handa <handa@m17n.org>
20617
20618 * fileio.c (report_file_error): Make a unibyte string from
20619 strerror (errorno).
20620 (Fsubstitute_in_file_name): Fix the arg to
20621 unibyte_char_to_multibyte. It is evaluated twice.
20622
206232008-02-01 Kenichi Handa <handa@m17n.org>
20624
20625 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20626
206272008-02-01 Kenichi Handa <handa@m17n.org>
20628
20629 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20630 BOM is not found.
20631 (detect_coding, detect_coding_system): Optimization for ISO-2022
20632 when no 8-bit data is found.
20633
206342008-02-01 Jason Rumney <jasonr@gnu.org>
20635
20636 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20637
206382008-02-01 Kenichi Handa <handa@m17n.org>
20639
20640 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20641 CHARS.
20642
206432008-02-01 Steven Tamm <steventamm@mac.com>
20644
20645 * macterm.c (mac_encode_char): Add charset argument and update
20646 to use encoding_type.
20647 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20648 switch to pure fontset.
20649 (decode_mac_font_name): Temporarily remove decoding.
20650 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20651 (x_load_font): Temporarily remove encoding.
20652
206532008-02-01 Kenichi Handa <handa@m17n.org>
20654
20655 * xfaces.c (Fface_font): If frame is not on a window system,
20656 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20657 refer to face->font.
20658 (split_font_name_into_vector, build_font_name_from_vector)
20659 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20660 when HAVE_WINDOW_SYSTEM is defined.
20661
206622008-02-01 Kenichi Handa <handa@m17n.org>
20663
20664 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20665 (x_produce_glyphs): Fix setting of members of cmp in case
20666 cmp->glyph_len is zero.
20667
20668 * fontset.c (Fset_fontset_font): Fix docstring.
20669 (Ffontset_info): Make it backward compatible. New arg ALL.
20670
206712008-02-01 Kim F. Storm <storm@cua.dk>
20672
20673 * process.c (read_process_output): Grow decoding_buf when needed;
20674 this could cause a crash in allocate_string and compact_small_strings.
20675
206762008-02-01 Kenichi Handa <handa@m17n.org>
20677
20678 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20679
206802008-02-01 Kenichi Handa <handa@m17n.org>
20681
20682 * coding.c (setup_coding_system): Set coding->common_flags
20683 correctly for raw-text.
20684 (consume_chars): On encoding unibyte text by raw-text, don't check
20685 multibyte form.
20686 (encode_coding): On encoding by raw-text, never use translation tables.
20687
20688 * fileio.c (e_write): Short cut for the case of no encoding.
20689
206902008-02-01 Kenichi Handa <handa@m17n.org>
20691
20692 * coding.c (detect_coding, detect_coding_system): Delete unused
20693 variables.
20694
206952008-02-01 Kenichi Handa <handa@m17n.org>
20696
20697 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20698 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20699
207002008-02-01 Kenichi Handa <handa@m17n.org>
20701
20702 * coding.c (Ffind_coding_systems_region_internal): Include
20703 raw-text and no-conversion in the result.
20704
207052008-02-01 Kenichi Handa <handa@m17n.org>
20706
20707 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20708 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20709 FONT_DEF.
20710 (font_def_arg, add_arg, from_arg, to_arg): New args.
20711 (set_fontset_font): Change argument.
20712 (Fset_fontset_font): Fix for the case that TARGET is a script
20713 name and charset name.
20714 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20715
207162008-02-01 Kenichi Handa <handa@m17n.org>
20717
20718 * fontset.c (fontset_font): Rename from fontset_face. Change return
20719 value.
20720 (face_suitable_for_char_p, face_for_char): Adjust for the change
20721 of fontset_font.
20722 (make_fontset_for_ascii_face): Fix setting of the fontset element
20723 for ASCII.
20724 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20725 to get a font name.
20726 (Ffontset_info): Adjust for the change of fontset_font.
20727
20728 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20729
20730 * character.h (LEADING_CODE_LATIN_1_MIN)
20731 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20732
207332008-02-01 Kenichi Handa <handa@m17n.org>
20734
20735 * editfns.c (check_translation): New function.
20736 (Ftranslate_region_internal): Handle M:N mapping.
20737
207382008-02-01 Kenichi Handa <handa@m17n.org>
20739
20740 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20741
207422008-02-01 Kenichi Handa <handa@m17n.org>
20743
20744 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20745 goto invalid_code.
20746 (decode_coding_iso_2022): Fix handling of invalid designation.
20747
20748 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20749 after calling code_conversion_save.
20750
207512008-02-01 Kenichi Handa <handa@m17n.org>
20752
20753 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20754
20755 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20756
20757 * fontset.c: Include "intervals.h".
20758 (fontset_face): Fix comparing of Lisp_Objects.
20759 (free_face_fontset, new_fontset_from_font_name): Fix
20760 Lisp_Object/int mixup.
20761
20762 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20763
20764 * coding.c: Add many prototypes for static functions.
20765 (get_translation_table): Allow max_lookup to be NULL.
20766 (decode_coding, Ffind_coding_systems_region_internal)
20767 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20768 get_translation_table with max_lookup NULL.
20769
207702008-02-01 Kenichi Handa <handa@m17n.org>
20771
20772 * coding.c (get_translation_table): Declare it as Lisp_Object.
20773 (LOOKUP_TRANSLATION_TABLE): New macro.
20774 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20775 instead of CHAR_TABLE_REF.
20776
207772008-02-01 Kenichi Handa <handa@m17n.org>
20778
20779 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20780 annotation data format.
20781 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20782 Change arguments FROM and TO to single argument NCHARS. Change caller.
20783 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20784 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20785 (decode_coding_ccl, decode_coding_charset): Pay attention to
20786 coding->charbuf_used.
20787 (get_translation): New function.
20788 (produce_chars): New arguments translation_table and last_block.
20789 Translate characters here. Return number of carryover chars.
20790 Change caller.
20791 (produce_composition): New argument pos. Change caller.
20792 Adjust for the change of annotation data format.
20793 (produce_charset, produce_annotation): Likewise.
20794 (decode_coding, encode_coding): Don't call translate_chars.
20795 (consume_chars): New arg translation_table. Change caller.
20796 (translate_chars): Delete.
20797 (syms_of_coding): Make translation-table's number of extra slots 2.
20798
207992008-02-01 Kenichi Handa <handa@m17n.org>
20800
20801 * search.c (simple_search): Fix setting this_pos_byte in backward
20802 search.
20803
20804 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20805 byte sequence.
20806 (detect_coding_ccl): Fix setting of the variable valids.
20807
208082008-02-01 Kenichi Handa <handa@m17n.org>
20809
20810 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20811
20812 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20813
20814 * editfns.c (Ftranslate_region_internal): Rename from
20815 Ftranslate_region. Accept a char-table in TABLE.
20816 (syms_of_editfns): Defsubr Stranslate_region_internal.
20817
20818 * xfaces.c (set_lface_from_font_name): If a font is specified for
20819 a frame, generate a fontset from the font.
20820 (build_scalable_font_name): If the scalable font is requested for
20821 a specific size, don't change that size.
20822 (try_font_list): Try a scalable font also in the case that a
20823 pattern string is specified.
20824
208252008-02-01 Kenichi Handa <handa@m17n.org>
20826
20827 * xfaces.c (Fface_font): New optional arg CHARACTER.
20828
208292008-02-01 Kenichi Handa <handa@m17n.org>
20830
20831 * charset.h (CHARSET_OFFSET): New macro.
20832
208332008-02-01 Kenichi Handa <handa@m17n.org>
20834
20835 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20836
20837 * fontset.c (fontset_face): Handle the case that repertory is a
20838 char-table.
20839 (find_font_encoding): Return nil for unknown encoding.
20840 (Fset_fontset_font): Ignore a font of unknown encoding.
20841
208422008-02-01 Kenichi Handa <handa@m17n.org>
20843
20844 * keymap.c (describe_vector): Handle default value of a char table.
20845
20846 * fontset.c (fontset_face): Handle fallback fonts correctly.
20847 (Ffontset_info): Return infomation about fallback fonts.
20848
208492008-02-01 Kenichi Handa <handa@m17n.org>
20850
20851 * fontset.c (FONTSET_DEFAULT): New macro.
20852 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20853 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20854 the case that it is nil.
20855 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20856 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20857
20858 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20859 subset or superset.
20860
208612008-02-01 Kenichi Handa <handa@m17n.org>
20862
20863 * emacs.c (main): Call init_charset after syms_of_XXX.
20864
20865 * charset.c (Vcharset_map_directory): Delete.
20866 (Vcharset_map_path): New variable.
20867 (load_charset_map_from_file): Use Vcharset_map_path instead.
20868 (init_charset): Initialize Vcharset_map_path.
20869 (syms_of_charset): Delete declaration of "charset-map-directory",
20870 add declaration of "charset-map-path".
20871
208722008-02-01 Kenichi Handa <handa@m17n.org>
20873
20874 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20875 ASCII only string.
20876
20877 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20878
20879 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20880 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20881
208822008-02-01 Kenichi Handa <handa@m17n.org>
20883
20884 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20885
20886 * coding.c (QCmnemonic, QCdefalut_char)
20887 (QCdecode_translation_table, QCencode_translation_table)
20888 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20889 (get_translation_table): Return a list of translation tables if
20890 necessary.
20891 (decode_coding): Call get_translation_table with ENCODEP 0.
20892 (char_encodable_p): If translation_table is non-nil, always call
20893 translate_char.
20894 (Fdefine_coding_system_internal): Accept list of translation
20895 tables as :encode-translation-table and :decode-translation-table.
20896 (Fcoding_system_put): New function.
20897 (syms_of_coding): Declare new symbols. Defsubr
20898 Scoding_system_put.
20899 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20900 typically JISX0212.
20901
20902 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20903 when the charset is superset type.
20904
20905 * character.c (translate_char): Accept list of translation tables.
20906
209072008-02-01 Kenichi Handa <handa@m17n.org>
20908
20909 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
20910 (CODING_ATTR_TRANS_TBL): New macro.
20911
20912 * coding.c (get_translation_table): New function.
20913 (translate_chars): Fix the bug of skipping annotation data.
20914 (decode_coding, encode_coding): Utilize get_translation_table.
20915 (char_encodable_p, Funencodable_char_position): Translate char if
20916 necessary.
20917 (Ffind_coding_systems_region_internal)
20918 (Fcheck_coding_systems_region): Setup translation table for encode
20919 in a coding system attribute vector in advance.
20920 (Fdefine_coding_system_internal): Allow a symbol as translation
20921 table. For shift-jis type coding system, allow 4th charset.
20922
209232008-02-01 Kenichi Handa <handa@m17n.org>
20924
20925 * coding.c (decode_coding_sjis): Check the first byte rigidly.
20926
20927 * xdisp.c (get_next_display_element): Pass -1 as POS to
20928 FACE_FOR_CHAR if displaying a C-string.
20929
209302008-02-01 Kenichi Handa <handa@m17n.org>
20931
20932 * composite.c (get_composition_id): Handle xoff and yoff in a
20933 composition rule.
20934
20935 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
20936 (struct composition): New member lbearing and rbearing.
20937
20938 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
20939 (x_get_glyph_overhangs): Handle a composition glyph.
20940 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
20941
20942 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
20943 composition glyph.
20944
209452008-02-01 Kenichi Handa <handa@m17n.org>
20946
20947 * print.c: Include charset.h.
20948 (Vprint_charset_text_property): New variable.
20949 (Qdefault): Extern it.
20950 (PRINT_STRING_NON_CHARSET_FOUND)
20951 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
20952 (print_check_string_result): New variable.
20953 (print_check_string_charset_prop): New function.
20954 (print_prune_charset_plist): New variable.
20955 (print_prune_string_charset): New function.
20956 (print_object): Call print_prune_string_charset if
20957 Vprint_charset_text_property is not t.
20958 (print_interval): Print nothing if interval->plist is nil.
20959 (syms_of_print): Declare Vprint_charset_text_property as a lisp
20960 variable. Init and staticpro print_prune_charset_plist.
20961
209622008-02-01 Kenichi Handa <handa@m17n.org>
20963
20964 * fontset.c (new_fontset_from_font_name): Use the specified font
20965 for all characters in the new fontset.
20966
20967 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20968 OBJECT args.
20969
20970 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
20971 OBJECT args for composition too.
20972
20973 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
20974 OBJECT args.
20975
209762008-02-01 Kenichi Handa <handa@m17n.org>
20977
20978 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
20979
20980 * fontset.c (reorder_font_vector): Adjust for the change of
20981 FONT_DEF format.
20982 (fontset_face): New arg id. Change caller.
20983 (face_for_char): New args pos and object.
20984 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
20985 (fs_query_fontset): Check NAME by Fassoc too.
20986 (Fset_fontset_font): Allow non-XLFD font name.
20987 (Ffontset_info): Adjust for the change of FONT_DEF format.
20988
20989 * fontset.h (face_for_char): Adjust prototype.
20990
20991 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
20992 (append_space, extend_face_to_end_of_line)
20993 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20994 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
20995
20996 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
20997 POS and OBJECT args.
20998
20999 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21000 POS and OBJECT args.
21001
210022008-02-01 Jason Rumney <jasonr@gnu.org>
21003
21004 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21005 of GlobalAlloc'ed memory.
21006
210072008-02-01 Kenichi Handa <handa@m17n.org>
21008
21009 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21010
21011 * charset.h (charset_table_used): Delete extern.
21012
21013 * charset.c (charset_table_used): Make it static.
21014 (map_charset_chars): Fix args to c_function with.
21015
21016 * chartab.c (map_sub_char_table_for_charset): Fix args to
21017 c_function with.
21018
21019 * coding.h (enum coding_result_code): Delete
21020 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21021
21022 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21023 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21024 (Vlast_code_conversion_error): New variables.
21025 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21026 (ONE_MORE_BYTE): Record error if any instead of signaling an
21027 error. If non-ASCII multibyte char is found, return the negative
21028 value of the code. All callers changed to check it.
21029 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21030 (record_conversion_result): New function. Change all codes setting
21031 coding->result to call this function.
21032 (detect_coding_utf_8, decode_coding_utf_8)
21033 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21034 Don't use the local variable incomplete.
21035 (emacs_mule_char): Change the second arg to `const'.
21036 (decode_coding): Fix of flushing out unprocessed data.
21037 (make_conversion_work_buffer): Fix making of a work buffer.
21038 (decode_coding_object): Return coding->dst_object.
21039
21040 * fontset.c (set_fontset_font): Fix args.
21041
21042 * lisp.h (CHARACTERBITS): Define as 22.
21043
21044 * process.c (send_process): Be sure to set coding->src_multibyte.
21045
21046 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21047
210482008-02-01 Kenichi Handa <handa@m17n.org>
21049
21050 * xdisp.c (handle_auto_composed_prop): Give limit to
21051 Fnext_single_char_property_change.
21052
210532008-02-01 Kenichi Handa <handa@m17n.org>
21054
21055 * composite.c (syms_of_composite): Don't make the composition hash
21056 table weak.
21057
21058 * fontset.c (Fset_fontset_font): Fix docstring.
21059
21060 * lisp.h (detect_coding_system): Adjust prototype.
21061
21062 * fileio.c (kill_workbuf_unwind): Delete this function.
21063 (Finsert_file_contents): Adjust the call of detect_coding_system.
21064 Get conversion_buffer by code_conversion_save. Use the macro
21065 CODING_MAY_REQUIRE_DECODING. After decoding, update
21066 coding_system.
21067
21068 * coding.h (make_conversion_work_buffer): Delete extern.
21069 (code_conversion_save): Extern it.
21070
21071 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21072 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21073 (decode_coding_utf_8): Don't do eol converion.
21074 (detect_coding_utf_16): Check coding->src_chars, not
21075 coding->src_bytes. Add heuristics for those that have no signature.
21076 (decode_coding_emacs_mule, decode_coding_iso_2022)
21077 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21078 Don't do eol converion.
21079 (adjust_coding_eol_type): Return a new coding system.
21080 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21081 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21082 each change.
21083 (decode_coding): Pay attention to undo_list. Do eol conversion for
21084 all types of coding-systems (if necessary).
21085 (Vcode_conversion_work_buf_list): Delete it.
21086 (Vcode_conversion_reused_workbuf): Rename from
21087 Vcode_conversion_reused_work_buf.
21088 (Vcode_conversion_workbuf_name): New variable.
21089 (reused_workbuf_in_use): New variable.
21090 (make_conversion_work_buffer): Delete the arg DEPTH.
21091 (code_conversion_restore): Change argument to cons.
21092 (code_conversion_save): Delete the argument BUFFER. Change callers.
21093 (detect_coding_system): New argument src_chars. Change callers.
21094 Fix for utf-16 detection.
21095 (init_coding_once): Don't use ISO_carriage_return.
21096 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21097 reused_workbuf_in_use.
21098
210992008-02-01 Kenichi Handa <handa@m17n.org>
21100
21101 * keymap.c (store_in_keymap): Pay attention to the case that idx
21102 is a cons specifying a character range.
21103
211042008-02-01 Kenichi Handa <handa@m17n.org>
21105
21106 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21107 HANDLED_RECOMPUTE_PROPS.
21108
21109 * coding.c (Fdefine_coding_system_internal): Fix checking of
21110 ascii compatibility.
21111
211122008-02-01 Kenichi Handa <handa@m17n.org>
21113
21114 * charset.c (find_charsets_in_text): Delete unused locale variable.
21115 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21116
21117 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21118 Resync charset_list to Vemacs_mule_charset_list.
21119
21120 * keymap.c (store_in_keymap): Pay attention to the case that idx
21121 is a cons specifying a character range.
21122
211232008-02-01 Kenichi Handa <handa@m17n.org>
21124
21125 * composite.c (update_compositions): Bind inhibit-read-only, etc
21126 to t before calling remove-list-of-text-properties.
21127
21128 * print.c (print_object): Always print ASCII chars as is.
21129
211302008-02-01 Kenichi Handa <handa@m17n.org>
21131
21132 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21133
21134 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21135 is a char table.
21136
211372008-02-01 Kenichi Handa <handa@m17n.org>
21138
21139 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21140
211412008-02-01 Kenichi Handa <handa@m17n.org>
21142
21143 * xfaces.c (set_lface_from_font_name): Fix for the case that
21144 FONTNAME is not fontset name.
21145
211462008-02-01 Kenichi Handa <handa@m17n.org>
21147
21148 * fns.c (base64_encode_1): Fix previous change.
21149
211502008-02-01 Kenichi Handa <handa@m17n.org>
21151
21152 * fontset.c (set_fontset_font): New function.
21153 (Fset_fontset_font): If a font is specified for a charset, use
21154 map_charset_chars to store the font spec in a fontset.
21155
211562008-02-01 Kenichi Handa <handa@m17n.org>
21157
21158 * fontset.c (fontset_face): Create a fallback fontset on demand.
21159 (make_fontset): Don't create a fallback fontset here.
21160 (free_face_fontset): Free a fallback fontset (if any) too.
21161 (n_auto_fontsets): Delete this variable.
21162 (auto_fontset_alist): New variable.
21163 (new_fontset_from_font_name): Check auto_fontset_alist.
21164 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21165 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21166 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21167 Defsubr Sfontset_list_all.
21168
211692008-02-01 Kenichi Handa <handa@m17n.org>
21170
21171 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21172
211732008-02-01 Kenichi Handa <handa@m17n.org>
21174
21175 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21176
211772008-02-01 Kenichi Handa <handa@m17n.org>
21178
21179 * editfns.c (Fgoto_char): Fix docstring.
21180
211812008-02-01 Kenichi Handa <handa@m17n.org>
21182
21183 * insdel.c (insert_from_gap): Adjust intervals correctly.
21184
211852008-02-01 Jason Rumney <jasonr@gnu.org>
21186
21187 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21188 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21189 (w32_initialize): Try to load it.
21190 (x_get_font_repertory): Use it if available.
21191 (w32_encode_char): Add shortcut for unicode output.
21192
21193 * w32fns.c (w32_load_system_font): Default charset to -1.
21194 (x_to_w32_charset): Match all fonts for unicode.
21195 (w32_to_x_charset): New parameter matching. Don't return partial
21196 or wildcard charsets.
21197 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21198 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21199 (w32_to_x_font): Match charset to real charset.
21200 (enum_font_cb2): Always list unicode versions.
21201
21202 * makefile.w32-in (temacs): Increase EMHEAP.
21203
212042008-02-01 Jason Rumney <jasonr@gnu.org>
21205
21206 * w32term.c (w32_encode_char): New charset parameter.
21207 font_info.encoding becomes encoding_type.
21208 (x_get_font_repertory): New function. Warning: stub only!
21209 (x_new_font): Return quickly if font already set.
21210 (x_new_fontset): fontsetname parameter is Lisp_Object.
21211 Use new fs_query_fontset. Try new_fontset_from_font_name.
21212 Use fontset_name for return value.
21213
21214 * w32term.h: Declare x_get_font_repertory.
21215
21216 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21217 place of find_charset_in_text. Use encode_coding_object in place
21218 of encode_coding.
21219 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21220 decode_coding.
21221
21222 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21223 of x_new_fontset.
21224 (w32_load_system_font): Initialize charset as unicode.
21225 font_info.encoding becomes encoding_type.
21226 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21227 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21228 (syms_of_w32fns): Set get_font_repertory_func.
21229
21230 * w32console.c: Include character.h. Use terminal_encode_buffer
21231 from term.c.
21232 (write_glyphs): Use new version of encode_terminal_code. Use
21233 encode_coding_object in place of encode_coding.
21234
21235 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21236 encoding becomes encoding_type.
21237
21238 * term.c (terminal_encode_buffer): Make externally visible.
21239
21240 * makefile.w32-in: Add character.h dependancies.
21241 (character.o, chartab.o): New targets.
21242
212432008-02-01 Kenichi Handa <handa@m17n.org>
21244
21245 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21246 CODING_ID_EOL_TYPE.
21247
212482008-02-01 Andreas Schwab <schwab@suse.de>
21249
21250 * coding.c (produce_chars): Revert last change.
21251
212522008-02-01 Kenichi Handa <handa@m17n.org>
21253
21254 * charset.h (charset_unicode): Extern it.
21255
21256 * charset.c (string_xstring_p): Check by (C >= 0x100).
21257 (find_charsets_in_text): Change format of the arc CHARSETS. New
21258 arg MULTIBYTE.
21259 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21260 change of find_charsets_in_text.
21261 (Fsplit_char): Fix doc. Never return unknown.
21262
21263 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21264
21265 * coding.c (Fdefine_coding_system_alias): Update
21266 Vcoding_system_list.
21267
21268 * fontset.c (load_font_get_repertory): Pay attention to the case
21269 that ENCODING of a font is specified by a char-table.
21270
21271 * xterm.c (x_get_font_repertory): Handle the case that the
21272 encoding of font is other than Unicode.
21273
212742008-02-01 Kenichi Handa <handa@m17n.org>
21275
21276 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21277 if a character is encodable by the terminal coding system. If
21278 not, produces proper number of `?'s. Update
21279 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21280 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21281
212822008-02-01 Kenichi Handa <handa@m17n.org>
21283
21284 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21285 variables.
21286 (encode_terminal_code): Change argument. Encode multiple
21287 characters at once. Store the result of encoding in
21288 terminal_encode_buffer.
21289 (write_glyphs, insert_glyphs): Adjust for the change of
21290 encode_terminal_code.
21291 (term_init): Initialize terminal_encode_buffer and
21292 terminal_encode_buf_size.
21293
21294 * coding.c (consume_chars): If coding->src_object is nil, don't
21295 check annotation.
21296
212972008-02-01 Kenichi Handa <handa@m17n.org>
21298
21299 * character.c (char_string): Use ASCII_CHAR_P instead of
21300 SINGLE_BYTE_CHAR_P.
21301
213022008-02-01 Kenichi Handa <handa@m17n.org>
21303
21304 * xdisp.c (handle_auto_composed_prop): Check if the last
21305 characters of auto-composed region is newly composed with the
21306 following characters.
21307 (handle_composition_prop): Fix checking of point being inside
21308 composition.
21309
213102008-02-01 Kenichi Handa <handa@m17n.org>
21311
21312 * fns.c (concat): Don't change multibyteness of the result by
21313 concatenating an 8-bit character.
21314
21315 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21316 multibyteness of the result when newelt is an 8-bit character.
21317
213182008-02-01 Dave Love <fx@gnu.org>
21319
21320 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21321 EMACS_INT.
21322
21323 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21324
21325 * xfaces.c (face_numeric_value): Declare dim size_t.
21326 (Finternal_lisp_face_equal_p): Remove unused f.
21327
21328 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21329 (MATRIX_ROW): Remove unused vars.
21330 (draw_glyphs, x_insert_glyphs, fast_find_position)
21331 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21332 byte/char counts.
21333
21334 * regex.c (regex_compile): Remove unused var.
21335
21336 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21337
21338 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21339 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21340
21341 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21342
21343 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21344
21345 * fileio.c (Fwrite_region): Remove unused var.
21346
21347 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21348 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21349
21350 * composite.c (Fremove_list_of_text_properties): Declare.
21351
21352 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21353 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21354 (coding_inherit_eol_type): Remove unused attrs.
21355 (detect_coding): Cast arg of detect_eol.
21356
21357 * charset.c (syms_of_charset): Remove unused var p.
21358 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21359 byte/char counts.
21360
21361 * casetab.c (set_case_table): Remove unused var.
21362
21363 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21364 unused vars.
21365
213662008-02-01 Dave Love <fx@gnu.org>
21367
21368 * xterm.c (x_bitmap_mask): Declare.
21369
213702008-02-01 Dave Love <fx@gnu.org>
21371
21372 * xterm.c (x_term_init): Fix type error.
21373
21374 * lisp.h: Add Funibyte_char_to_multibyte.
21375
21376 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21377 (Fset_coding_system_priority): Doc fix.
21378
21379 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21380
21381 * indent.c (check_composition): Make start and end EMACS_INT.
21382
21383 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21384
21385 * xdisp.c (handle_composition_prop, check_point_in_composition):
21386 Make buffer positions EMACS_INT.
21387
21388 * composite.c (find_composition, run_composition_function)
21389 (update_compositions, Ffind_composition_internal): Make buffer
21390 positions EMACS_INT.
21391
21392 * composite.h (find_composition, update_compositions): Make
21393 position args EMACS_INT.
21394
21395 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21396
21397 * intervals.c (get_property_and_range):
21398 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21399
21400 * unexalpha.c: Don't include varargs.h.
21401
214022008-02-01 Dave Love <fx@gnu.org>
21403
21404 * coding.h (ENCODE_UTF_8): New.
21405
21406 * Makefile.in (gtkutil.o): Depend on coding.h.
21407
21408 * coding.c (Fset_coding_system_priority): Doc fix.
21409
214102008-02-01 Kenichi Handa <handa@m17n.org>
21411
21412 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21413 the case of auto saving.
21414
214152008-02-01 Andreas Schwab <schwab@suse.de>
21416
21417 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21418 `range' from GC.
21419
214202008-02-01 Kenichi Handa <handa@m17n.org>
21421
21422 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21423
214242008-02-01 Kenichi Handa <handa@m17n.org>
21425
21426 * fileio.c (choose_write_coding_system): Return a decided coding system.
21427 (Fwrite_region): Set Vlast_coding_system_used to the return value
21428 of choose_write_coding_system.
21429
214302008-02-01 Kenichi Handa <handa@m17n.org>
21431
21432 * charset.c (Fset_charset_priority): Pay attention to duplicated
21433 arguments.
21434
21435 * coding.c (QCcategory): New variable.
21436 (syms_of_coding): Defsym it. Set all elements of
21437 Vcoding_category_table and their symbol values.
21438 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21439 coding-category-XXX, and coding-category-list.
21440 (Fdefine_coding_system_internal): Add category in the plist.
21441
214422008-02-01 Kenichi Handa <handa@m17n.org>
21443
21444 * callproc.c (Fcall_process): Handle carryover correctly.
21445
21446 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21447 (raw_text_coding_system): Check NILP (coding_system).
21448 (coding_inherit_eol_type): Check NILP (coding_system) and
21449 NILP (parent).
21450 (consume_chars): Fix for the case of raw-text.
21451
21452 * process.c (read_process_output): Handle carryover correctly.
21453
214542008-02-01 Dave Love <fx@gnu.org>
21455
21456 * regex.c (re_search_2): Fix last change.
21457
214582008-02-01 Kenichi Handa <handa@m17n.org>
21459
21460 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21461 target_multibyte. Even in a unibyte case, return a converted
21462 multibyte char.
21463 (GET_CHAR_AFTER): New macro.
21464 (PATFETCH): Translate via multibyte char.
21465 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21466 (SETUP_MULTIBYTE_RANGE): New macro.
21467 (regex_compile): Setup compiled code so that its multibyteness
21468 matches that of a target. Fix the handling of "[X-YZ]" using
21469 SETUP_MULTIBYTE_RANGE.
21470 (analyse_first) <charset>: For filling fastmap for all multibyte
21471 characters, don't check by BASE_LEADING_CODE_P.
21472 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21473 the same as RE_MULTIBYTE_P (bufp) now.
21474 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21475 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21476 (TRANSLATE_VIA_MULTIBYTE): New macro.
21477 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21478 It is the same as RE_MULTIBYTE_P (bufp) now.
21479 <exactn>: Translate via multibyte.
21480 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21481 translate it.
21482 <charset, charset_not>: Fetch a character by
21483 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21484 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21485 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21486 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21487 by GET_CHAR_AFTER.
21488 (bcmp_translate): Likewise.
21489
21490 * search.c (compile_pattern): Check the member target_multibyte,
21491 not the member multibyte of buf.
21492
21493 * lread.c (read1): While reading a string, set force_singlebyte
21494 and force_multibyte correctly.
21495
21496 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21497 up of unibyte_to_multibyte_table.
21498
214992008-02-01 Kenichi Handa <handa@m17n.org>
21500
21501 * coding.c (setup_coding_system): If coding has
21502 post-read-conversion or pre-write-conversion, set
21503 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21504 respectively.
21505 (decode_coding_gap): Run post-read-conversion if any.
21506
21507 * fileio.c (Finsert_file_contents): Even if we read into a
21508 unibyte buffer, check if we must decode the result or not.
21509
215102008-02-01 Kenichi Handa <handa@m17n.org>
21511
21512 * coding.c (make_conversion_work_buffer): Change the work buffer
21513 name to the same one as that of Emacs 21.
21514
215152008-02-01 Kenichi Handa <handa@m17n.org>
21516
21517 * coding.h (make_conversion_work_buffer): Adjust prototype.
21518 (code_conversion_restore): Don't extern it.
21519
21520 * coding.c (detected_mask): Delete unused variable.
21521 (decode_coding_iso_2022): Pay attention to the byte sequence of
21522 CTEXT extended segment, and retain those bytes as is.
21523 (decode_coding_ccl): Delete unused variable `valids'.
21524 (setup_coding_system): Delete unused variable `category'.
21525 (consume_chars): Delete unused variable `category'. Make it work
21526 for non-multibyte case.
21527 (make_conversion_work_buffer): Change argument.
21528 (saved_coding): Delete unused variable.
21529 (code_conversion_restore): Don't check saved_coding->destination.
21530 (code_conversion_save): New function.
21531 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21532 instead of record_unwind_protect.
21533 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21534 (detect_coding_system): Delete unused variable `mask'.
21535 (Fdefine_coding_system_internal): Delete unused variable id.
21536
21537 * fileio.c (kill_workbuf_unwind): New function.
21538 (Finsert_file_contents): On replacing, call
21539 make_conversion_work_buffer with correct args, and call
21540 record_unwind_protect with the first arg kill_workbuf_unwind.
21541
21542 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21543
215442008-02-01 Kenichi Handa <handa@m17n.org>
21545
21546 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21547 (fontset_add): Fix for the case that TO is less than TO1.
21548 (Ffontset_info): Don't use fallback fontset on checking the
21549 default fontset.
21550 (dump_fontset): New function for debugging.
21551
21552 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21553 coding_type is Qcharset.
21554
215552008-02-01 Kenichi Handa <handa@m17n.org>
21556
21557 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21558 (map_char_table): Don't inherit the value from the parent on
21559 initializing VAL. Adjust for the above change.
21560
215612008-02-01 Kenichi Handa <handa@m17n.org>
21562
21563 * coding.c (Qsignature, Qendian): Delete these variables.
21564 (syms_of_coding): Don't initialize them.
21565 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21566 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21567 detect_info->found.
21568 (decode_coding_utf_16): Don't detect BOM here.
21569 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21570 is NOT utf_16_without_bom.
21571 (setup_coding_system): For a coding system of type utf-16, check
21572 if the attribute :endian is Qbig or not (not nil or not), and set
21573 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21574 (detect_coding): If coding type is utf-16 and BOM detection is
21575 required, detect it.
21576 (Fdefine_coding_system_internal): For a coding system of type
21577 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21578
215792008-02-01 Kenichi Handa <handa@m17n.org>
21580
21581 * coding.c (coding_set_source): Fix for the case that the current
21582 buffer is different from coding->src_object.
21583 (decode_coding_object): Don't use the conversion work buffer if
21584 DST_OBJECT is a buffer.
21585
215862008-02-01 Dave Love <fx@gnu.org>
21587
21588 * lread.c (read_emacs_mule_char) [len==2]: Index
21589 emacs_mule_charset correctly.
21590
215912008-02-01 Dave Love <fx@gnu.org>
21592
21593 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21594 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21595 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21596 treated specially.)
21597 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21598 (detected_mask): Remove Big5 bits.
21599
216002008-02-01 Kenichi Handa <handa@m17n.org>
21601
21602 The following changes are to make the font rescaling facility
21603 compatible with Emacs 21.
21604
21605 * xfaces.c (Vface_font_rescale_alist): Rename from
21606 Vface_resizing_fonts.
21607 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21608 (font_rescale_ratio): Rename from font_resizing_ratio.
21609 (split_font_name): Set font->rescale_ratio.
21610 (better_font_p): Pay attention to font->rescale_ratio.
21611 (build_scalable_font_name): Likewise. Change RESX, and RESY
21612 fields.
21613 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21614
216152008-02-01 Kenichi Handa <handa@m17n.org>
21616
21617 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21618 (Qutf_16_le): Remove these variables.
21619 (syms_of_coding): Don't DEFSYM them.
21620 (decode_coding_utf_16): Fix handling of BOM.
21621 (encode_coding_utf_16): Fix handling of BOM.
21622
216232008-02-01 Kenichi Handa <handa@m17n.org>
21624
21625 * fileio.c (Finsert_file_contents): On replacing, before decoding
21626 the file into the work buffer, set point of the work buffer to the end.
21627
216282008-02-01 Dave Love <fx@gnu.org>
21629
21630 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21631
216322008-02-01 Dave Love <fx@gnu.org>
21633
21634 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21635 and fix C types.
21636
216372008-02-01 Kenichi Handa <handa@m17n.org>
21638
21639 * xdisp.c (SKIP_GLYPHS): New macro.
21640 (set_cursor_from_row): Pay attention to string display properties.
21641
21642 * category.c (copy_category_entry): Fix for the case that RANGE
21643 is an integer.
21644
21645 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21646
21647 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21648
216492008-02-01 Kenichi Handa <handa@m17n.org>
21650
21651 * charset.c (Fcharset_id_internal): New function.
21652 (syms_of_charset): Defsubr it.
21653
21654 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21655 with the last arg charset_list acquired from coding.
21656 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21657 the attribute coding_attr_ccl_valids.
21658
21659 * coding.h (enum define_coding_ccl_arg_index): Set the first
21660 member coding_arg_ccl_decoder to coding_arg_max.
21661
21662 * ccl.h (ccl_driver): Adjust prototype.
21663
21664 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21665 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21666 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21667 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21668 last arg Qnil.
21669
216702008-02-01 Kenichi Handa <handa@m17n.org>
21671
21672 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21673 call encode_char.
21674
21675 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21676
216772008-02-01 Dave Love <fx@gnu.org>
21678
21679 * composite.c (syms_of_composite): Make composition_hash_table weak.
21680
216812008-02-01 Kenichi Handa <handa@m17n.org>
21682
21683 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21684 (font_name_registry): Don't extern them.
21685 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21686
21687 * fontset.h (Qfontset): Don't extern it.
21688 (new_fontset_from_font_name): Extern it.
21689
21690 * fontset.c: Give 8 extra slots to fontset objects.
21691 (Qfontset_info): New variable.
21692 (syms_of_fontset): Defsym it.
21693 (FONTSET_FALLBACK): New macro.
21694 (fontset_face): Try also the default fontset.
21695 (make_fontset): Realize a fallback fontset from the default fontset.
21696 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21697 using split_font_name_into_vector and build_font_name_from_vector.
21698 (Fset_fontset_font): Access the elements of font_spec by enum
21699 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21700 name by using split_font_name_into_vector.
21701 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21702 generate a proper font name from the fontset name. Update
21703 Vfontset_alias_alist.
21704 (n_auto_fontsets): New variable.
21705 (new_fontset_from_font_name): New function.
21706 (Ffont_info): Store the information about fonts generated from the
21707 default fontset in the first extra slot of the returned char-table.
21708
21709 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21710 (font_name_registry): Delete function.
21711 (split_font_name_into_vector): New function.
21712 (build_font_name_from_vector): New function.
21713 (font_list): The argument REGISTRY is now a list of registry names.
21714 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21715 specifies an explicit font name, return the name as is. Make a
21716 list of registy names.
21717
21718 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21719 of x_new_fontset.
21720 (Fx_create_frame): Don't call x_new_fontset here. Just use
21721 x_list_fonts to check the existence of fonts.
21722
21723 * xterm.h (x_new_fontset): Adjust prototype.
21724
21725 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21726 string. Use new_fontset_from_font_name to create a fontset from a
21727 font name.
21728
217292008-02-01 Kenichi Handa <handa@m17n.org>
21730
21731 * syntax.c (Vfind_word_boundary_function_table): New name for
21732 Vnext_word_boundary_function_table.
21733 (find-word-boundary-function-table): New name for
21734 next-word-boundary-function-table.
21735
217362008-02-01 Dave Love <fx@gnu.org>
21737
21738 * Makefile.in: Fix some dependencies.
21739
21740 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21741 set it to nil before returning.
21742
21743 * composite.c (update_compositions): Fix type error.
21744
21745 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21746
217472008-02-01 Kenichi Handa <handa@m17n.org>
21748
21749 * xterm.c (x_new_font): Optimize for the case that the font is
21750 already set for the frame.
21751
217522008-02-01 Kenichi Handa <handa@m17n.org>
21753
21754 * chartab.c (char_table_ascii): Check if the char table contents
21755 is sub-char-table or not.
21756 (char_table_set, char_table_set_range): Fix argument to
21757 char_table_ascii.
21758
21759 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21760 (detect_coding_utf_8, detect_coding_utf_16)
21761 (detect_coding_emacs_mule, detect_coding_iso_2022)
21762 (detect_coding_sjis, detect_coding_big5)
21763 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21764 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21765 sequence is valid in this coding system. Change callers.
21766 (MAX_ANNOTATION_LENGTH): New macro.
21767 (ADD_ANNOTATION_DATA): New macro.
21768 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21769 ADD_ANNOTATION_DATA. Change the format of annotation data.
21770 (ADD_CHARSET_DATA): New macro.
21771 (emacs_mule_char): New argument ID. Change callers.
21772 (decode_coding_emacs_mule, decode_coding_iso_2022)
21773 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21774 Produce charset annotation data in coding->charbuf.
21775 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21776 to charset annotation data in coding->charbuf.
21777 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21778 coding->common_flags if the coding system is iso-2022 based and
21779 uses designation.
21780 (produce_composition): Adjust for the new annotation data format.
21781 (produce_charset): New function.
21782 (produce_annotation): Handle charset annotation.
21783 (handle_composition_annotation, handle_charset_annotation): New
21784 functions.
21785 (consume_chars): Handle charset annotation. Utilize the above two
21786 functions.
21787 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21788 buffer, get the deleted text as a string and set
21789 coding->src_object to that string.
21790 (detect_coding, detect_coding_system): Use the new struct
21791 coding_detection_info.
21792
21793 * coding.h (struct coding_detection_info): New structure.
21794 (struct coding_system): Adjust prototype of the member `detector'.
21795 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21796
217972008-02-01 Kenichi Handa <handa@m17n.org>
21798
21799 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21800
218012008-02-01 Dave Love <fx@gnu.org>
21802
21803 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21804 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21805 to new local and nullify apropos_accumulate before returning.
21806 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21807
218082008-02-01 Kenichi Handa <handa@m17n.org>
21809
21810 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21811 correctly.
e3eea1fc 21812
aac0c6e3
MR
218132008-02-01 Dave Love <fx@gnu.org>
21814
21815 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21816
218172008-02-01 Kenichi Handa <handa@m17n.org>
21818
21819 The following changes are to make character composition happen
21820 automatically on displaying.
21821
21822 * Makefile.in (lisp, shortlisp): Add composite.elc.
21823
21824 * composite.h (Qauto_composed, Vauto_composition_function)
21825 (Qauto_composition_function): Extern them.
21826
21827 * composite.c (Vcomposition_function_table)
21828 (Qcomposition_function_table): Delete variables.
21829 (Qauto_composed, Vauto_composition_function)
21830 (Qauto_composition_function): New variables.
21831 (run_composition_function): Don't call
21832 compose-chars-after-function.
21833 (update_compositions): Clear `auto-composed' text property.
21834 (compose_chars_in_text): Delete this function.
21835 (syms_of_composite): Staticpro Qauto_composed and
21836 Qauto_composition_function. Declare Vauto_composition_function as
21837 a Lisp variable.
21838
21839 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21840
21841 * xdisp.c (it_props): Add an entry for Qauto_composed.
21842 (handle_auto_composed_prop): New function.
21843
21844 * xselect.c (selection_data_to_lisp_data): Don't call
21845 compose_chars_in_text.
21846
218472008-02-01 Dave Love <fx@gnu.org>
21848
21849 * keyboard.c (read_char): Modify checking around use of
21850 Vkeyboard_translate_table.
21851
21852 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21853 and fix C types.
21854
218552008-02-01 Kenichi Handa <handa@m17n.org>
21856
21857 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21858 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21859 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21860 the case that the last byte is '\r' correctly.
21861 (decode_coding): Flush out the unprocessed data correctly.
21862 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21863
218642008-02-01 Dave Love <fx@gnu.org>
21865
21866 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21867 Add XK_ISO... case.
21868 (xaw_scroll_callback): Revert last change.
21869
218702008-02-01 Kenichi Handa <handa@m17n.org>
21871
21872 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21873
218742008-02-01 Kenichi Handa <handa@m17n.org>
21875
21876 * xfaces.c (Vface_resizing_fonts): New variable.
21877 (struct font_name): New member `resizing_ratio'.
21878 (font_resizing_ratio): New function.
21879 (split_font_name): Set font->resizing_ratio.
21880 (better_font_p): Pay attention to font->resizing_ratio.
21881 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21882 RESX, and RESY fields.
21883 (try_alternative_families): Try scalable fonts if
21884 Vscalable_fonts_allowed is not Qt.
21885 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21886
218872008-02-01 Dave Love <fx@gnu.org>
21888
21889 * xterm.c (xaw_scroll_callback): Cast correctly.
21890
218912008-02-01 Dave Love <fx@gnu.org>
21892
21893 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21894 (lispy_kana_keys): Comment out.
21895 (make_lispy_event) [XK_kana_A]: Comment out.
21896
21897 * xterm.c (xaw_scroll_callback): Cast call_data.
21898 (XTread_socket): Deal with ASCII keysyms.
21899 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21900
219012008-02-01 Dave Love <fx@gnu.org>
21902
21903 * xterm.c (Vx_keysym_table): New.
21904 (syms_of_xterm): Initialize it.
21905 (XTread_socket): Use it.
21906 From head: Eliminate incorrect optimization that tried to avoid
21907 decoding the output of X*LookupString.
21908 (x_get_font_repertory): Delete charset declaration.
21909
219102008-02-01 Kenichi Handa <handa@m17n.org>
21911
21912 * coding.c (detect_coding_charset): If only ASCII bytes are found,
21913 return 0.
21914 (Fdefine_coding_system_internal): Setup
21915 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
21916
219172008-02-01 Dave Love <fx@gnu.org>
21918
21919 * coding.c (Fcheck_coding_system): Doc fix.
21920
21921 * editfns.c (Finsert_byte): Return a proper value.
21922
219232008-02-01 Kenichi Handa <handa@m17n.org>
21924
21925 * coding.c (decode_coding): Fix args to translate_chars. Pay
21926 attention to Vstandard_translation_table_for_decode.
21927 (encode_coding): Fix args to translate_chars. Pay attention to
21928 Vstandard_translation_table_for_encode.
21929
21930 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
21931 SINGLE_BYTE_CHAR_P.
21932
21933 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
21934 not by SINGLE_BYTE_CHAR_P.
21935
21936 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
21937 SINGLE_BYTE_CHAR_P.
21938
21939 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
21940 SINGLE_BYTE_CHAR_P.
21941
21942 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
21943 by SINGLE_BYTE_CHAR_P.
21944
21945 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
21946 SINGLE_BYTE_CHAR_P.
21947
219482008-02-01 Dave Love <fx@gnu.org>
21949
21950 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
21951
219522008-02-01 Dave Love <fx@gnu.org>
21953
21954 * fns.c (Flanginfo): Fix typo.
21955
21956 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
21957
219582008-02-01 Kenichi Handa <handa@m17n.org>
21959
21960 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
21961 (detect_coding_emacs_mule, detect_coding_iso_2022)
21962 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
21963 incomplete byte sequence. Don't update *mask when correctly detected.
21964 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
21965 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
21966 (detect_coding, detect_coding_system): Adjust for the changes above.
21967
219682008-02-01 Kenichi Handa <handa@m17n.org>
21969
21970 * character.c (char_string): Rename from
21971 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
21972 (string_char): Rename from string_char.
21973
21974 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
21975 if C is greater than MAX_3_BYTE_CHAR.
21976 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
21977 string_char instead of string_char_with_unification.
21978
219792008-02-01 Dave Love <fx@gnu.org>
21980
21981 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
21982
219832008-02-01 Kenichi Handa <handa@m17n.org>
21984
21985 * keymap.c (push_key_description): Pay attention to force_multibyte.
21986
21987 * regex.c (re_search_2): Fix for the case of unibyte buffer.
21988
219892008-02-01 Dave Love <fx@gnu.org>
21990
21991 * charset.c (define_charset_internal): Rename `supprementary'.
21992
21993 * Makefile.in (lisp, shortlisp): Remove latin-N.
21994
219952008-02-01 Dave Love <fx@gnu.org>
21996
21997 * xfns.c (x_window, x_window): Use use_xim.
21998
21999 * xterm.c (use_xim): Initialize.
22000 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22001 (x_term_init): Maybe set use_xim.
22002
22003 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22004
220052008-02-01 Kenichi Handa <handa@m17n.org>
22006
22007 * search.c (search_buffer): Fix case-fold-search of multibyte
22008 characters.
22009 (boyer_moore): Rename the last argument to char_high_bits.
22010
220112008-02-01 Kenichi Handa <handa@m17n.org>
22012
22013 * xdisp.c (display_string): Fix for the case of zero width glyph.
22014
22015 * xfns.c (x_set_font): Change the error message of the case that
22016 x_new_fontset returns Qt.
22017
22018 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22019 (Finternal_set_lisp_face_attribute): Use signal_error for the
22020 error of invalid fontset.
22021
22022 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22023 fontset, return Qt.
22024
220252008-02-01 Dave Love <fx@gnu.org>
22026
22027 * unexelf.c (unexec): Make .got handling not SGI-specific.
22028
22029 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22030
22031 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22032
22033 * keyboard.c (read_key_sequence): Fix type error.
22034
22035 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22036 type error.
22037
22038 * fontset.c (fontset_add): Return Lisp_Object.
22039
220402008-02-01 Dave Love <fx@gnu.org>
22041
22042 * charset.h (charset_ordered_list_tick): Declare extern.
22043
220442008-02-01 Kenichi Handa <handa@m17n.org>
22045
22046 The following changes (and some of 2008-02-01 changes of mine) are
22047 for handling syntax, category, and case conversion for unibyte
22048 characters by converting them to multibyte on the fly. With these
22049 changes, we don't have to setup syntax and case tables for unibyte
22050 characters in each language environment.
22051
22052 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22053 multibyte if necessary.
22054
22055 * bytecode.c (Fbyte_code): Likewise.
22056
22057 * character.h (LEADING_CODE_LATIN_1_MIN)
22058 (LEADING_CODE_LATIN_1_MAX): New macros.
22059 (unibyte_to_multibyte_table): Extern it.
22060 (unibyte_char_to_multibyte): New macro.
22061 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22062 (CHAR_LEADING_CODE): New macro.
22063 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22064
22065 * character.c (unibyte_to_multibyte_table): New variable.
22066 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22067 (multibyte_char_to_unibyte): If C is an eight-bit character,
22068 convert it to the corresponding byte value.
22069
22070 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22071 not 1, signals an error. Update the elements of
22072 unibyte_to_multibyte_table.
22073 (init_charset_once): Initialize unibyte_to_multibyte_table.
22074 (syms_of_charset): Define the charset `iso-8859-1'.
22075
22076 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22077 as is without converting it to unibyte. In a unibyte buffer,
22078 convert C to multibyte before checking the syntax.
22079
22080 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22081
22082 * minibuf.c (Fminibuffer_complete_word): Use the macro
22083 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22084
22085 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22086
22087 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22088 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22089 that is zero, convert an eight-bit char to multibyte.
22090 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22091 non-emacs case.
22092 (PATFETCH): Convert an eight-bit char to multibyte.
22093 (HANDLE_UNIBYTE_RANGE): New macro.
22094 (regex_compile): Setup the compiled pattern for multibyte chars
22095 even if the given regex string is unibyte. Use PATFETCH_RAW
22096 instead of PATFETCH in many places. To handle `charset'
22097 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22098 only for ASCII chars.
22099 (analyse_first) <exactn>: Simplify because the compiled pattern
22100 is multibyte.
22101 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22102 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22103 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22104 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22105 multibyte always 1.
22106 (re_search_2): In emacs, set the locale variable multibyte to 1,
22107 otherwise to 0. New local variable target_multibyte. Check it
22108 to decide the multibyteness of STR1 and STR2. If
22109 target_multibyte is zero, convert unibyte chars to multibyte
22110 before translating and checking fastmap.
22111 (TARGET_CHAR_AND_LENGTH): New macro.
22112 (re_match_2_internal): In emacs, set the locale variable multibyte
22113 to 1, otherwise to 0. New local variable target_multibyte. Check
22114 it to decide the multibyteness of STR1 and STR2. Use
22115 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22116 <charset, charset_not>: If multibyte is nonzero, check fastmap
22117 only for ASCII chars. Call bcmp_translate with
22118 target_multibyte, not with multibyte.
22119 <begline>: Declare the local variable C as `unsigned'.
22120 (bcmp_translate): Change the last arg name to target_multibyte.
22121
22122 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22123 the regexp pattern and the matching target. Set cp->buf.multibyte
22124 to the multibyteness of the regexp pattern. Set
22125 cp->but.target_multibyte to the multibyteness of the matching target.
22126 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22127 FETCH_STRING_CHAR_ADVANCE.
22128 (Freplace_match): Convert unibyte chars to multibyte.
22129
22130 * syntax.c (char_quoted, back_comment, scan_words)
22131 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22132 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22133 unibyte chars to multibyte.
22134 (skip_chars): Delete the arg syntaxp, and move the code for
22135 handling syntaxes to skip_syntaxes. Change callers.
22136 Fix the case that the multibyteness of STRING and the current
22137 buffer doesn't match.
22138 (skip_syntaxes): New function.
22139 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22140 SINGLE_BYTE_CHAR_P.
22141
221422008-02-01 Kenichi Handa <handa@m17n.org>
22143
22144 * xfaces.c (QCfontset): New variable.
22145 (LFACE_FONTSET): New macro.
22146 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22147 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22148 (Finternal_set_lisp_face_attribute)
22149 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22150 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22151 check also LFACE_FONTSET_INDEX.
22152 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22153 attrs[LFACE_FONT_INDEX].
22154 (syms_of_xfaces): Intern and staticpro QCfontset.
22155
22156 * dispextern.h (enum lface_attribute_index): New member
22157 LFACE_FONTSET_INDEX.
22158
22159 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22160
221612008-02-01 Kenichi Handa <handa@m17n.org>
22162
22163 * coding.c (coding_set_destination): Fix coding->destination for
22164 the case converting a region.
22165 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22166 (encode_coding_object): Fix coding->dst_pos and
22167 coding->dst_pos_byte for the case converting a region.
22168
22169 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22170
22171 * character.h (BYTE8_STRING): New macro.
22172
22173 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22174
221752008-02-01 Kenichi Handa <handa@m17n.org>
22176
22177 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22178 characters by octal form.
22179
22180 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22181
22182 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22183 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22184 _fetch_multibyte_char_len.
22185 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22186
22187 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22188
22189 * casefiddle.c (casify_object): Simplify. Handle the case that
22190 the case conversion change the byte length.
22191 (casify_region): Likewise.
22192
22193 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22194
22195 * character.c (_fetch_multibyte_char_len): Delete this variable.
22196 (syms_of_character): Setup Vprintable_chars.
22197
22198 * editfns.c (Fchar_equal): Fix for the unibyte case.
22199 (Finsert_byte): New function.
22200 (syms_of_editfns): Defsubr it.
22201
22202 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22203 of direct code 0x3ffff.
22204
22205 * search.c (Freplace_match): Fix for the unibyte case.
22206
222072008-02-01 Kenichi Handa <handa@m17n.org>
22208
22209 * lread.c (safe_to_load_p): Fix the logic.
22210
22211 * syntax.c (scan_words): Don't treat characters belonging to
22212 different scripts as constituting a word.
22213
22214 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22215
22216 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22217
22218 * emacs.c (main): In the case of --unibyte, instead of aborting on
22219 finding non-empty buffer, make it unibyte.
22220
222212008-02-01 Kenichi Handa <handa@m17n.org>
22222
22223 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22224 to create a fontset.
22225
222262008-02-01 Dave Love <fx@gnu.org>
22227
22228 * character.c (Funibyte_char_to_multibyte): Doc fix.
22229
22230 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22231
222322008-02-01 Kenichi Handa <handa@m17n.org>
22233
22234 * fontset.c (fontset_add): Make the type `int'.
22235 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22236
22237 * character.c (unibyte_char_to_multibyte)
22238 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22239 charset_unibyte, not charset_primary.
22240
22241 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22242
22243 * charset.c (charset_unibyte): Rename from charset_primary.
22244 (Funibyte_charset): Rename from Fprimary_charset.
22245 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22246 (syms_of_charset): Adjust for the above changes.
22247
22248 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22249 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22250 it->multibyte_p is zero.
22251
22252 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22253 Delete extern.
22254
222552008-02-01 Kenichi Handa <handa@m17n.org>
22256
22257 * coding.c (Fdefine_coding_system_internal): Fix category setting
22258 for a coding system of type iso-2022.
22259
222602008-02-01 Kenichi Handa <handa@m17n.org>
22261
22262 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22263
222642008-02-01 Kenichi Handa <handa@m17n.org>
22265
22266 * syntax.c (Vnext_word_boundary_function_table): New variable.
22267 (next-word-boundary-function-table): Declare it as a Lisp variable
22268 in syms_of_syntax.
22269 (scan_words): Call functions in Vnext_word_boundary_function_table
22270 if any.
22271
22272 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22273
22274 * fontset.c (fs_load_font): If fontp->charset is not negative,
22275 return fontp without setting its members.
22276
222772008-02-01 Dave Love <fx@gnu.org>
22278
22279 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22280
22281 * m/sparc.h (HAVE_ALLOCA): Delete.
22282
22283 * s/irix6-5.h: Don't include strings.h.
22284 (bcopy, bzero, bcmp): Don't undef.
22285
22286 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22287
22288 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22289 (TIOCSIGSEND): Don't test IRIX6.
22290 (bcopy, bzero, bcmp): Define conditionally.
22291
222922008-02-01 Kenichi Handa <handa@m17n.org>
22293
22294 * buffer.c (Qas, Qmake, Qto): New variables.
22295 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22296 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22297
22298 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22299 we are inserting a process output into a multibyte buffer.
22300
22301 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22302 multibyte_char_to_unibyte.
22303
22304 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22305 by the primary charset, make it eight-bit char.
22306 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22307
22308 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22309 (charset_8_bit__control, charset_8_bit_graphic)
22310 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22311 (define_charset_internal): New function.
22312 (syms_of_charset): Call define_charset_internal for pre-defined
22313 charsets.
22314
22315 * charset.h (charset_8_bit): Extern it.
22316
22317 * coding.c (make_conversion_work_buffer): Adjust for the change
22318 of Fset_buffer_multibyte.
22319 (encode_coding_raw_text): Increment p0 in the loop.
22320
22321 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22322
22323 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22324 for the change of Fset_buffer_multibyte.
22325
22326 * fns.c (Fstring_to_multibyte): New function.
22327 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22328
223292008-02-01 Dave Love <fx@gnu.org>
22330
22331 * xfns.c (x_put_x_image): Declare args.
22332
22333 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22334 (try_font_list): Declare an arg.
22335
22336 * xdisp.c (message2_nolog, set_message): Declare an arg.
22337
22338 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22339
22340 * syntax.c (scan_sexps_forward): Declare an arg.
22341
22342 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22343 Declare an arg.
22344
22345 * lisp.h (Fnew_fontset): Declare.
22346
22347 * keymap.c (push_key_description): Call CHARACTERP correctly.
22348
22349 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22350 (face_for_char): Delete unused vars.
22351 (Fset_fontset_font): Doc fix. Delete unused vars.
22352
22353 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22354
22355 * composite.c (update_compositions): Declare arg.
22356
22357 * cm.c (calccost, cmgoto): Declare args.
22358
22359 * charset.c: Remove `emacs' conditional. Doc fixes.
22360 (map_char_table_for_charset): Declare.
22361
22362 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22363
22364 * ccl.c: Remove `emacs' conditional.
22365
223662008-02-01 Kenichi Handa <handa@m17n.org>
22367
22368 The following changes are to allow specifying multiple font
22369 patterns for a character range (specified by script or charset).
22370
22371 * Makefile.in (abbrev.o): Depend on syntax.h.
22372 (xfaces.o): Depend on charset.h.
22373
22374 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22375 SINGLE_BYTE_CHAR_P.
22376
22377 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22378
22379 * character.h (Vchar_script_table): Extern it.
22380
22381 * character.c (Vscript_alist): Delete.
22382 (Vchar_script_table, Qchar_script_table): New variable.
22383 (syms_of_character): Declare Vchar_script_table as a lisp variable
22384 and initialize it.
22385
22386 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22387 have property char-table-extra-slots, make no extra slot.
22388
22389 * dispextern.h (struct face): Delete member `charset'.
22390 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22391 SINGLE_BYTE_CHAR_P.
22392 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22393 Add prototypes.
22394 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22395 (generate_ascii_font_name): Rename from generate_ascii_font.
22396
22397 * fontset.h (get_font_repertory_func): New prototype.
22398 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22399 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22400
22401 * fontset.c (Qprepend, Qappend): New variables.
22402 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22403 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22404 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22405 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22406 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22407 (load_font_get_repertory): New functions.
22408 (fontset_set): Delete.
22409 (fontset_face): New arg FACE. Return face ID, not face.
22410 Complete re-write to handle new fontset structure. Change caller.
22411 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22412 (face_for_char): Don't call lookup_face.
22413 (make_fontset_for_ascii_face): New arg FACE.
22414 (fs_load_font): New arg CHARSET_ID. Don't check
22415 Vfont_encoding_alist here.
22416 (find_font_encoding): New function.
22417 (list_fontsets): Use STRINGP, not ! NILP.
22418 (accumulate_script_ranges): New function.
22419 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22420 re-written to handle new fontset structure.
22421 (Ffontset_font): Return a copy of element.
22422 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22423 docstring of font-encoding-alist.
22424
22425 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22426 (Fset_fotset_font): Fix arguments to 5.
22427
22428 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22429
22430 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22431 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22432 (highlight_trailing_whitespace): Adjust for the change of
22433 lookup_named_face.
22434
22435 * xfaces.c: Include charset.h.
22436 (load_face_font): Delete argument C. Change caller.
22437 (generate_ascii_font_name): Rename from generate_ascii_font.
22438 (font_name_registry): New function.
22439 (cache_face): Store ascii faces before non-ascii faces in buckets.
22440 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22441 Lookup only ascii faces.
22442 (lookup_non_ascii_face): New function.
22443 (lookup_named_face): Delete argument C. Change caller.
22444 (lookup_derived_face): Delete argument C. Change caller.
22445 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22446 a string, just call font_list with it.
22447 (choose_face_font): Delete arguments FACE and C. New arg
22448 FONT_SPEC. Change caller.
22449 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22450 Change caller.
22451 (realize_non_ascii_face): New function.
22452 (realize_x_face): Call load_face_font here.
22453 (realize_tty_face): Delete argument C. Change caller.
22454 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22455 get a face ID.
22456 (dump_realized_face): Don't print charset of FACE.
22457
22458 * xfns.c (x_set_font): Always call x_new_fontset and
22459 store_frame_parameter.
22460 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22461 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22462
22463 * xterm.h (x_get_font_repertory): Extern it.
22464
22465 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22466 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22467 it->multibyte_p is zero.
22468 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22469 (x_new_fontset): If FONTSETNAME doesn't match any existing
22470 fontsets, create a new one.
22471 (x_get_font_repertory): New function.
22472
224732008-02-01 Kenichi Handa <handa@m17n.org>
22474
22475 * coding.c (Ffind_coding_systems_region_internal): Detect an
22476 ASCII only string correctly.
22477
22478 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22479 version is 0.
22480
224812008-02-01 Kenichi Handa <handa@m17n.org>
22482
22483 * lread.c: Include "coding.h".
22484 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22485 (load_each_byte, unread_char): New variables.
22486 (readchar_backlog): Delete.
22487 (readchar): Return a character unless load_each_byte is nonzero.
22488 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22489 cons. If unread_char is not -1, simply return it.
22490 (unreadchar): Handle the case that readcharfun is
22491 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22492 (read_multibyte): Delete.
22493 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22494 (read_emacs_mule_char): New functions.
22495 (Fload): Even if the file doesn't have the extension ".elc", if
22496 safe_to_load_p returns a positive version number, assume that the
22497 file contains bytecompiled code. If the version is less than 22,
22498 load the file while decoding multibyte sequences by emacs-mule.
22499 (readevalloop): Don't use readchar_backlog.
22500 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22501 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22502 (read_escape): Delete the arg BYTEREP.
22503 (read1): Set load_each_byte to 1 temporarily while handling
22504 #@NUMBER. Don't call read_multibyte.
22505 (read_vector): Call Fread with a cons. If readcharfun is
22506 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22507 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22508 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22509 and Qload_force_doc_strings.
22510
225112008-02-01 Kenichi Handa <handa@m17n.org>
22512
22513 * xdisp.c (face_before_or_after_it_pos): Call
22514 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22515
225162008-02-01 Kenichi Handa <handa@m17n.org>
22517
22518 * character.h (TRAILING_CODE_P): New macro.
22519 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22520 (string_char_with_unification): Fix prototype.
22521 (Vscript_alist): Extern it.
22522
22523 * character.c (Vscript_alist): New variable.
22524 (string_char_with_unification, str_as_unibyte)
22525 (string_escape_byte8): Add `const' to local variables.
22526 (syms_of_character): Declare script-alist as a Lisp variable.
22527
22528 * charset.h (Vcharset_ordered_list): Extern it.
22529 (charset_ordered_list_tick): Extern it.
22530 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22531 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22532 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22533 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22534 (Funify_charset): Adjust for the change of Funify_charset.
22535
22536 * charset.c (charset_ordered_list_tick): New variable.
22537 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22538 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22539 deunify instead of unify a charset.
aac0c6e3
MR
22540 (string_xstring_p): Add `const' to local variables.
22541 (find_charsets_in_text): Add `const' to arguments and local variables.
22542 (encode_char): Adjust for the change of Funify_charset. Fix
22543 detecting of invalid code.
22544 (Fset_charset_priority): Increment charset_ordered_list_tick.
22545 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22546 and TO_CODE.
22547
22548 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22549 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22550 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22551 (decode_coding_ccl, consume_chars)
22552 (Ffind_coding_systems_region_internal)
22553 (Fcheck_coding_systems_region): Add `const' to local variables.
22554
22555 * print.c (print_object): Use octal form for printing the
22556 contents of a bool vector.
22557
225582008-02-01 Dave Love <fx@gnu.org>
22559
22560 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22561 <version == 20>: Refuse to load.
22562
225632008-02-01 Dave Love <fx@gnu.org>
22564
22565 * fns.c: Move coding.h.
22566 (Qcodeset, Qdays, Qmonths): New.
22567 (concat): Use CHARACTERP instead of INTEGERP.
22568 (Flocale_codeset): Delete.
22569 (Flanginfo): New function.
22570 (syms_of_fns): Change accordingly.
22571
22572 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22573
225742008-02-01 Dave Love <fx@gnu.org>
22575
22576 * casetab.c (init_casetab_once, init_casetab_once): Fix
22577 CHAR_TABLE_SET call.
22578
22579 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22580
22581 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22582
22583 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22584 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22585 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22586
22587 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22588
22589 * coding.c (ENCODE_DESIGNATION, decode_eol)
22590 (make_conversion_work_buffer, code_conversion_restore)
22591 (Fdefine_coding_system_internal): Convert Lisp types.
22592 (code_conversion_restore): Use EQ, not ==.
22593 (Fencode_coding_string): Fix code_convert_string call.
22594
22595 * coding.h (code_convert_region): Fix prototype.
22596
22597 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22598
22599 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22600 (Ffontset_info): Convert Lisp types.
22601
22602 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22603
22604 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22605
22606 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22607
22608 * chartab.c: Include "...h", not <...h> in some cases.
22609
22610 * callproc.c (Fcall_process): Remove unused variables.
22611
226122008-02-01 Dave Love <fx@gnu.org>
22613
22614 * coding.c (Fset_coding_system_priority): Allow null arg list.
22615
226162008-02-01 Dave Love <fx@gnu.org>
22617
22618 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22619 (Fself_insert_and_exit): Use CHARACTERP.
22620
22621 * callproc.c (Fcall_process): Remove unused vars.
22622
22623 * xterm.c (XTread_socket): Add extra dead keysyms.
22624
22625 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22626
22627 * dispextern.h: Remove prototypes for redraw_frame,
22628 redraw_garbaged_frames.
22629
22630 * cmds.c (Fself_insert_command): Use CHARACTERP.
22631
22632 * chartab.c (make_sub_char_table): Remove unused var.
22633 (Fset_char_table_default, Fmap_char_table): Doc fix.
22634
22635 * keymap.c (access_keymap): Remove generic char code.
22636 (push_key_description): Use CHARACTERP.
22637
226382008-02-01 Dave Love <fx@gnu.org>
22639
22640 * charset.c: Doc fixes.
22641 (Funify_charset): Extra checking.
22642
226432008-02-01 Dave Love <fx@gnu.org>
22644
22645 * lread.c: Remove some unused variables.
22646 (safe_to_load_p): If safe, return the magic number version byte.
22647 (Fload): Maybe use load-with-code-conversion.
22648
226492008-02-01 Kenichi Handa <handa@m17n.org>
22650
22651 * category.c (Fmodify_category_entry): Don't modify the contents
22652 of category_set for characters out of the range. Avoid
22653 unnecessary modification.
22654
22655 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22656 Vchar_unify_table. The default value of the table is now nil.
22657
22658 * character.c (syms_of_character): Setup Vchar_width_table for
22659 eight-bit-control and raw-byte chars.
22660
22661 * charset.h (enum define_charset_arg_index): Delete
22662 charset_arg_parents and add charset_arg_subset and
22663 charset_arg_superset.
22664 (enum charset_attr_index): Delete charset_parents and add
22665 charset_subset and charset_superset.
22666 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22667 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22668 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22669 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22670 (CHARSET_SUPERSET): New macros.
22671 (charset_work): Extern it.
22672 (ENCODE_CHAR): Use charset_work.
22673 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22674 (map_charset_chars): Extern it.
22675
22676 * charset.c (load_charset_map): Set the default value of encoder
22677 and deunifier char-tables to nil.
22678 (map_charset_chars): Change argument. Change callers. Use
22679 map_char_table_for_charset instead of map_char_table.
22680 (Fmap_charset_chars): New optional args from_code and to_code.
22681 (Fdefine_charset_internal): Adjust for the change of
22682 `define-charset' (:parents -> :subset or :superset).
22683 (charset_work): New variable.
22684 (encode_char, syms_of_charset): Adjust for the change of
22685 Fdefine_charset_internal.
22686 (Ffind_charset_string): Setup the vector `charsets' correctly.
22687
22688 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22689 the previous change.
22690 (char_table_ref_and_range): Adjust for the above change.
22691 (map_sub_char_table_for_charset): New function.
22692 (map_char_table_for_charset): New function.
22693
22694 * keymap.c (describe_vector): Handle a char-table directly here.
22695 (describe_char_table): Delete.
22696
22697 * lisp.h (map_charset_chars): Delete.
22698
226992008-02-01 Dave Love <fx@gnu.org>
22700
22701 * fns.c (count_combining): Comment out (unused).
22702 (Flocale_codeset): New.
22703 (syms_of_fns): Defsubr it.
22704
22705 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22706 (size_t): Remove.
22707
227082008-02-01 Dave Love <fx@gnu.org>
22709
22710 * Makefile.in (chartab.o): Depend on charset.h.
22711
227122008-02-01 Kenichi Handa <handa@m17n.org>
22713
22714 * character.c (syms_of_character): Set the default value of
22715 Vprintable_chars to Qnil.
22716
227172008-02-01 Dave Love <fx@gnu.org>
22718
22719 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22720
227212008-02-01 Kenichi Handa <handa@m17n.org>
22722
22723 * charset.c (load_charset_map): Handle the case that from < to
22724 correctly.
22725
22726 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22727 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22728 Pay attention to raw-8-bit chars.
22729
227302008-02-01 Kenichi Handa <handa@m17n.org>
22731
22732 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22733 It is not bytecompiled now.
22734
22735 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22736 (charset_jisx0208): New variables.
22737 (Fdefine_charset_internal): Setup them if appropriate.
22738 (init_charset_once): Initialize them to -1.
22739
22740 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22741 (charset_jisx0208): Extern them.
22742
22743 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22744 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22745 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22746 (setup_iso_safe_charsets): Fix arguments to Fassq.
22747 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22748 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22749 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22750 (encode_coding_iso_2022): Change the 1st arg to
22751 ENCODE_ISO_CHARACTER to a variable.
22752
227532008-02-01 Kenichi Handa <handa@m17n.org>
22754
22755 * charset.h (enum define_charset_arg_index): New enums
22756 charset_arg_min_code and charset_arg_max_code.
22757 (struct charset): New member char_index_offset.
22758
22759 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22760 Take charset->char_index_offset into account.
22761 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22762 args[charset_arg_max_code]. Setup charset.char_index_offset.
22763 (syms_of_charset): Fix args to Fdefine_charset_internal.
22764
227652008-02-01 Dave Love <fx@gnu.org>
22766
22767 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22768
227692008-02-01 Dave Love <fx@gnu.org>
22770
22771 * coding.c: Doc fixes.
22772 (Fcoding_system_aliases): Fix return value.
22773 (Qmac): Remove (duplicated) definition.
22774
227752008-02-01 Dave Love <fx@gnu.org>
22776
362654a6
JB
22777 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22778 New functions.
aac0c6e3
MR
22779
22780 * character.c (Fstring): Doc fix.
22781
22782 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22783
362654a6 22784 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22785 (font-encoding-alist): Doc fix.
22786
227872008-02-01 Dave Love <fx@gnu.org>
22788
22789 * term.c (costs_set): Declare static, non-initialized for pcc.
22790 (encode_terminal_code): Remove unused var.
22791
22792 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22793 for K&R.
22794
22795 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22796
22797 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22798 (suffixes): Move out of make_subsidiaries for K&R.
22799
22800 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22801
22802 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22803
228042008-02-01 Dave Love <fx@gnu.org>
22805
22806 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22807
22808 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22809
228102008-02-01 Yong Lu <lyongu@asia-infonet.com>
22811
22812 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22813
22814 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22815
228162008-02-01 Kenichi Handa <handa@m17n.org>
22817
22818 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22819 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22820
228212008-02-01 Kenichi Handa <handa@m17n.org>
22822
22823 * coding.c (decode_coding_charset): Adjust for the change of
22824 Fdefine_coding_system_internal.
22825 (Fdefine_coding_system_internal): For a coding system of
22826 `charset' type, store a list of charset IDs in
22827 `charset_attr_charset_valids' element of coding attributes.
22828
228292008-02-01 Kenichi Handa <handa@m17n.org>
22830
22831 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22832 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22833 caller. Handle 2-byte and 3-byte charsets correctly.
22834 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22835 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22836 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22837 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22838 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22839 sequence.
22840 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22841 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22842 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22843 and alt&rule composition.
22844 (decode_coding_iso_2022): Handle composition correctly.
22845 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22846
22847 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22848 re-defining a charset. If the charset has :emacs-mule-id, setup
22849 emacs_mule_bytes.
22850 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22851
228522008-02-01 Kenichi Handa <handa@m17n.org>
22853
22854 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22855 (encode_coding_big5, encode_coding_charset): If coding requires safe
22856 encoding, produce a character specified by
22857 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22858
228592008-02-01 Dave Love <fx@gnu.org>
22860
22861 * xterm.c (XSetIMValues): Declare.
22862
22863 * process.c: Conditionally include sys/wait.h, pty.h.
22864
22865 * print.c (print_object): Fix print format for 64-bit systems.
22866
22867 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22868
22869 * buffer.c (emacs_strerror): Declare.
22870
22871 * fontset.c (Fclear_face_cache): Declare.
22872 (accumulate_font_info): Comment-out (unused).
22873 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22874 variables.
22875
22876 * character.h (string_escape_byte8): Declare.
22877
22878 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22879 unused vars.
22880 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22881 (Fmap_charset_chars): Doc fix.
22882
22883 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22884 (Fset_coding_system_priority, Fset_coding_system_priority)
22885 (Fdefine_coding_system_internal): Doc fix.
22886
228872008-02-01 Dave Love <fx@gnu.org>
22888
22889 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22890
228912008-02-01 Kenichi Handa <handa@m17n.org>
22892
22893 * character.c (string_escape_byte8): Make multibyte string with
22894 correct size.
22895
22896 * charset.c (Fmake_char): Delete unnecessary code.
22897
228982008-02-01 Kenichi Handa <handa@m17n.org>
22899
22900 * xfns.c (x_encode_text): Allocate coding.destination here, and
22901 call encode_coding_object with dst_object Qnil.
22902
22903 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22904 multibyte form correctly.
22905
22906 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22907 against Vfont_encoding_alist.
22908
22909 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
22910 handling of charset list.
22911 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
22912 (decode_coding_object): Move point to coding->dst_pos before
22913 calling post-read-conversion function.
22914 (encode_coding_object): Give correct arguments to
22915 pre-write-conversion. Ignore the return value of
22916 pre-write-conversion function. Pay attention to the case that
22917 pre-write-conversion changes the current buffer. If dst_object is
22918 Qt, even if coding->src_bytes is zero, allocate at least one byte
22919 to coding->destination.
22920
22921 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
22922
22923 * charset.c (Fmake_char): Make it more backward compatible.
22924 (Fmap_charset_chars): Fix docstring.
22925
229262008-02-01 Dave Love <fx@gnu.org>
22927
22928 * coding.c: Doc fixes.
22929 (Fdefine_coding_system_alias): Use names, not symbols, in
22930 coding-system-alist.
22931
229322008-02-01 Kenichi Handa <handa@m17n.org>
22933
22934 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
22935 of calling free_realized_face.
22936
229372008-02-01 Yong Lu <lyongu@asia-infonet.com>
22938
22939 * charset.c (read_hex): Don't treat SPC as a comment starter.
22940 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
22941 (Fdecode_char): Fix typo.
22942
229432008-02-01 Kenichi Handa <handa@m17n.org>
22944
22945 * charset.h (struct charset): New member `code_space_mask'.
22946
22947 * coding.c (coding_set_source): Delete the local variable beg_byte.
22948 (encode_coding_charset, Fdefine_coding_system_internal):
22949 Delete the local variable charset.
22950 (Fdefine_coding_system_internal): Setup
22951 attrs[coding_attr_charset_valids] correctly.
22952
22953 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
22954 member to check if CODE is valid or not.
22955 (Fdefine_charset_internal): Initialize `code_space_mask' member.
22956 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
22957 is within the range of charset->min_code and carset->max_code.
22958
229592008-02-01 Dave Love <fx@gnu.org>
22960
22961 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
22962
22963 * dispextern.h (generate_ascii_font): Fix return type.
22964
22965 * xfaces.c (generate_ascii_font): Fix arg declaration.
22966
22967 * coding.c (coding_inherit_eol_type)
22968 (Fset_terminal_coding_system_internal)
22969 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
22970
229712008-02-01 Kenichi Handa <handa@m17n.org>
22972
22973 * coding.c (decode_coding_charset, encode_coding_charset): Handle
22974 multiple charsets correctly.
22975
229762008-02-01 Kenichi Handa <handa@m17n.org>
22977
22978 * search.c (boyer_moore): Fix handling of multibyte character
22979 translation.
22980
22981 * xdisp.c (display_mode_element): When the variable `elt' is
22982 changed, update `this' and `lisp_string'.
22983
229842008-02-01 Kenichi Handa <handa@m17n.org>
22985
22986 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
22987
22988 * callproc.c (Fcall_process): Be sure to give the current buffer
22989 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
22990
22991 * charset.c (struct charset_map_entries): New struct.
22992 (load_charset_map): Rename from parse_charset_map. New args
22993 entries and n_entries. Change caller.
22994 (load_charset_map_from_file): Rename from load_charset_map.
22995 Change caller. New arg control_flag. Call load_charset_map at
22996 the tail.
22997 (load_charset_map_from_vector): New function.
22998 (Fdefine_charset_internal): Setup charset.compact_codes_p.
22999 (encode_char): If the charset is compact, change a character index
23000 to a code point.
23001
23002 * coding.c (coding_alloc_by_making_gap): Check the case that the
23003 source and destination are the same correctly.
23004 (decode_coding_raw_text): Set coding->consumed_char and
23005 coding->consumed to 0.
23006 (produce_chars): If coding->chars_at_source is nonzero, update
23007 coding->consumed_char and coding->consumed before calling
23008 alloc_destination.
23009 (Fdefine_coding_system_alias): Register ALIAS in
23010 Vcoding_system_alist.
23011 (syms_of_coding): Define `no-conversion' coding system at the tail.
23012
23013 * fileio.c (Finsert_file_contents): Set coding_system instead of
23014 val. If the current buffer is multibyte, always call
23015 decode_coding_gap.
23016
23017 * xfaces.c (try_font_list): Give higher priority to fontset's
23018 family than face's family.
23019
230202008-02-01 Kenichi Handa <handa@m17n.org>
23021
23022 * callproc.c (Fcall_process): Be sure to give the current buffer
23023 to decode_coding_c_string.
23024
23025 * xfaces.c (try_font_list): Give a family specified in a fontset
23026 higher priority than a family specified in a face.
23027
230282008-02-01 Kenichi Handa <handa@m17n.org>
23029
23030 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23031 Fix arguments to insert_from_buffer.
23032
23033 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23034
230352008-02-01 Kenichi Handa <handa@m17n.org>
23036
23037 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23038 (decode_coding_gap): Set coding->dst_multibyte correctly.
23039
230402008-02-01 Kenichi Handa <handa@m17n.org>
23041
23042 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23043 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23044 (encode_coding_utf_16): Substitute coding->default_char for
23045 non-Unicode characters.
23046 (decode_coding): Don't call record_insert here.
23047 (setup_coding_system): Initialize `surrogate' of
23048 coding->spec.utf_16 to 0.
23049 (EMIT_ONE_BYTE): Fix for multibyte case.
23050
23051 * insdel.c (insert_from_gap): Call record_insert.
23052
230532008-02-01 Kenichi Handa <handa@m17n.org>
23054
23055 * casefiddle.c (casify_region): Fix multibyte case.
23056
23057 * character.c (c_string_width): Add return type `int'.
23058 (char_string_with_unification): Delete arg ADVANCED.
23059
23060 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23061 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23062 (CHAR_STRING_ADVANCE): Make it do-while statement.
23063
23064 * chartab.c (sub_char_table_set_range): Optimize for the case
23065 DEPTH == 3. Add workaround code for a GCC optimization bug.
23066
23067 * charset.c (parse_charset_map): Remove an unused variable.
23068
23069 * coding.c: Delete unused variables.
23070
23071 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23072 earlier. If inserted is zero and the coding system doesn't
23073 require flushing, don't call decode_coding_gap.
23074
23075 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23076
230772008-02-01 Kenichi Handa <handa@m17n.org>
23078
23079 The following changes are for using Unicode as an internal
23080 character model, and use UTF-8 format for buffer/string
23081 representation.
23082
23083 * .gdbinit (xchartable): Adjust for the change of char table structure.
23084 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23085
23086 * Makefile.in (obj): Add character.o and chartab.o.
23087 (lisp, shortlisp): Remove utf-8.elc.
23088 (*.o): For many files, change dependency on charset.h to
23089 character.h, and add dependency on character.h.
23090 (character.o, chartab.o): New targets.
23091
23092 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23093 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23094 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23095 of "charset.h".
23096
23097 * dired.c, filelock.c: Include "character.h".
23098
23099 * alloc.c: Include "character.h" instead of "charset.h".
23100 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23101 (syms_of_alloc): Remove defsubr for Smake_char_table.
23102
23103 * buffer.c: Include "character.h" instead of "charset.h", don't
23104 include "coding.h".
23105 (Fset_buffer_multibyte): Adjust for UTF-8.
23106
23107 * buffer.h: EXFUN Fbuffer_live_p.
23108
23109 * callproc.c: Include "character.h" instead of "charset.h".
23110 (Fcall_process): Big change for the new code-conversion APIs.
23111
23112 * casetab.c: Include "character.h" instead of "charset.h".
23113 (set_canon, set_identity, shuffle): Adjust for the new
23114 map_char_table spec.
23115 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23116 accessing the char table structure.
23117
23118 * chartab.c: New file that implements char table.
23119
23120 * category.c: Include "character.h".
23121 (copy_category_entry): New function.
23122 (copy_category_table): Call map_char_table and copy_category_entry.
23123 (Fmake_category_table): Initialize all top-level slots.
23124 (char_category_set): New function.
23125 (modify_lower_category_set): Delete.
23126 (Fmodify_category_entry): Call char_table_ref_and_range.
23127
23128 * category.h (CATEGORY_SET): Just call char_category_set.
23129
23130 * ccl.c: Include "character.h".
23131 (Qccl, Qcclp): New variables.
23132 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23133 it's less than 256.
23134 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23135 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23136 and DST type.
23137 (ccl_driver): Change types of argument, adjust code accordingly.
23138 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23139 ccl_driver.
23140 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23141
23142 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23143 New members src_multibyte, dst_multibyte, consumed, and produced.
23144 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23145 (CODING_SPEC_CCL_PROGRAM): New macro.
23146 (ccl_driver): Update prototype.
23147 (Qccl, Qcclp, Fccl_program_p): Extern them.
23148 (CHECK_CCL_PROGRAM): New macro.
23149
23150 * character.c, character.h, chartab.c: New files.
23151
23152 * charset.c: Mostly re-written. Move character and multibyte sequence
23153 handling codes to character.c.
23154
23155 * charset.h: Mostly re-written. Move character and multibyte sequence
23156 handling codes to character.h.
23157
23158 * coding.c, coding.h: Mostly re-written.
23159
23160 * composite.c: Include "character.h" instead of "charset.h".
23161 (CHAR_WIDTH): Move to character.h.
23162 (HASH_KEY, HASH_VALUE): Delete.
23163
23164 * composite.h (enum composition_method): Change order of enumeration
23165 symbols.
23166
23167 * data.c: Include "character.h" instead of "charset.h".
23168 (Faref): Call CHAR_TABLE_REF for a char table.
23169 (Faset): Call CHAR_TABLE_SET for a char table.
23170
23171 * dispextern.h (free_realized_face, check_face_attribytes)
23172 (generate_ascii_font): Extern them.
23173 (free_realized_multibyte_face): Delete extern.
23174
23175 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23176 table structure.
23177
23178 * editfns.c: Include "character.h" instead of "charset.h".
23179 (Fchar_to_string): Always call CHAR_STRING.
23180
23181 * emacs.c (main): Call init_charset_once, init_charset,
23182 syms_of_chartab, and syms_of_character.
23183
23184 * fileio.c: Include "character.h" instead of "charset.h".
23185 (Finsert_file_contents): Big change for the new code-conversion API.
23186 (choose_write_coding_system, Fwrite_region): Likewise.
23187 (build_annotations_2): Delete.
23188 (e_write): Big change for the new code-conversion API.
23189
23190 * fns.c: Include "character.h" instead of "charset.h".
23191 (copy_sub_char_table): Move to chartab.c.
23192 (Fcopy_sequence): Call copy_char_table for a char table.
23193 (concat): Delete codes calling count_multibyte.
23194 (string_char_to_byte, string_byte_to_char): Adjust for the new
23195 multibyte form.
23196 (internal_equal): Adjust for the change of char table structure.
23197 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23198 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23199 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23200 (char_table_translate, optimize_sub_char_table)
23201 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23202 chartab.c.
23203 (char_table_ref_and_index): Delete.
23204 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23205 (Fmd5): Call preferred_coding_system instead of accessing
23206 Vcoding_category_list. Adjust for the new code-conversion API.
23207 (syms_of_fns): Move defsubr for char table related functions to
23208 chartab.c.
23209
23210 * fontset.c: Mostly re-written.
23211
23212 * fontset.h (struct font_info): Change type of the member encoding_type.
23213 (enum FONT_SPEC_INDEX): New enum.
23214 (fontset_font_pattern, fs_load_font): Update prototype.
23215 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23216
23217 * indent.c: Include "character.h" instead of "charset.h".
23218 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23219
23220 * insdel.c: Include "character.h" instead of "charset.h".
23221 (copy_text): Don't refer to Vnonascii_translation_table.
23222 (insert_from_gap): New function.
23223
23224 * keyboard.c: Include "character.h" instead of "charset.h".
23225 (command_loop_1): Never call direct_output_forward_char before
23226 a non-ASCII character.
23227 (read_char): If Vkeyboard_translate_table is a char table, always
23228 translate a character.
23229
23230 * keymap.c: Include "character.h".
23231 (store_in_keymap): Handle the case that IDX is a cons.
23232 (Fdefine_key): Handle the case that KEY is a cons and the car part
23233 is also a cons (range).
23234 (push_key_description): Adjust for the new character code.
23235 (describe_vector): Call describe_char_table for a char table.
23236 (describe_char_table): New function.
23237
23238 * keymap.h (describe_char_table): Extern it.
23239
23240 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23241 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23242 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23243 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23244 Delete.
23245 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23246 structure.
23247 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23248 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23249 (CHARTAB_SIZE_BITS_3): New macros.
23250 (chartab_size): Extern it.
23251 (struct Lisp_Char_Table): Re-design.
23252 (struct Lisp_Sub_Char_Table): New structure.
23253 (HASH_KEY, HASH_VALUE): Move from fns.c.
23254 (CHARACTERBITS): Define as 22.
23255 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23256 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23257 (GC_SUB_CHAR_TABLE_P): New macro.
23258 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23259 (code_convert_string_norecord): Deleted extern.
23260 (init_character_once, syms_of_character, init_charset)
23261 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23262
23263 * lread.c: Include "character.h".
23264 (read_multibyte): New arg NBYTES.
23265 (read_escape): Change the meaning of returned *BYTEREP.
23266 (to_multibyte): Delete.
23267 (read1): Adjust the handling of char table and string.
23268
23269 * print.c: Include "character.h" instead of "charset.h".
23270 (print_string): Convert 8-bit raw bytes to octal form by
23271 string_escape_byte8.
23272 (print_object): Adjust for the new multibyte form. Print 8-bit
23273 raw bytes always in octal form. Handle sub char table correctly.
23274
23275 * process.c: Include "character.h" instead of "charset.h".
23276 (read_process_output, send_process): Adjust for the new
23277 code-conversion API.
23278
23279 * puresize.h (BASE_PURESIZE): Increase.
23280
23281 * regex.c: Include "character.h" instead of "charset.h".
23282 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23283 (regex_compile): Accept a range whose starting and ending
23284 character have different leading bytes.
23285 (analyse_first): Adjust for the above change.
23286
23287 * search.c: Include "character.h" instead of "charset.h".
23288 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23289 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23290
23291 * syntax.c: Include "character.h" instead of "charset.h".
23292 (syntax_parent_lookup): Delete.
23293 (Fmodify_syntax_entry): Accept a cons as CHAR.
23294 (skip_chars): Adjust for the new multibyte form.
23295 (init_syntax_once): Call char_table_set_range instead of directly
23296 accessing the structure of a char table.
23297
23298 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23299 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23300 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23301 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23302
23303 * term.c: Include "buffer.h" and "character.h".
23304 (encode_terminal_code, write_glyphs): Adjust for the new
23305 code-conversion API.
23306 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23307
23308 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23309
23310 * xdisp.c: Include "character.h".
23311 (get_next_display_element): Adjust for the new multibyte form.
23312 (disp_char_vector): Adjust for the new char table structure.
23313 (decode_mode_spec_coding): Adjust for the new structure of
23314 coding system.
23315 (decode_mode_spec): Adjust for the new code-conversion API.
23316
23317 * xfaces.c: Include "character.h" instead of "charset.h".
23318 (load_face_font): Adjust for the change of choose_face_font and
23319 FS_LOAD_FONT.
23320 (generate_ascii_font): New function.
23321 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23322 (set_font_frame_param): Adjust for the change of choose_face_font.
23323 (free_realized_face): Make it public.
23324 (free_realized_faces_for_fontset): Rename from
23325 free_realized_multibyte_face. Free also faces realized for ASCII.
23326 (choose_face_font): Change arguments. Adjust for the change of
23327 fontset_font_pattern and FS_LOAD_FONT.
23328
23329 * xfns.c: Include "character.h".
23330 (x_encode_text): Adjust for the new code-conversion API.
23331
23332 * xselect.c: Don't include "charset.h".
23333 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23334
23335 * xterm.c: Include "character.h".
23336 (x_encode_char): New argument CHARSET. Change caller.
23337 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23338 Call ENCODE_CHAR instead of SPLIT_CHAR.
23339 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23340 CHAR_WIDTH instead of CHARSET_WIDTH.
23341 (XTread_socket): Adjust for the new code-conversion API.
23342 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23343 (x_load_font): Adjust for the change of struct font.
23344
233452008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23346
23347 * xfaces.c (face_at_buffer_position): Remove unused vars.
23348
233492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23350
23351 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23352 Fix overflow checking.
23353
233542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23355
23356 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23357 Cancel previous change.
23358
233592008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23360
23361 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23362 ccl->eight_bit_control. Fix check for buffer overflow.
23363 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23364 (ccl_driver): Initialize extra_bytes to 0.
23365
233662008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23367
23368 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23369 return it ORed with ctrl_modifier.
23370
233712008-01-29 Miles Bader <miles@gnu.org>
23372
23373 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23374
233752008-01-28 Jason Rumney <jasonr@gnu.org>
23376
23377 * w32.c (stat): Don't double check for networked drive.
23378
233792008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23380
23381 * window.c (run_window_configuration_change_hook): New function.
23382 Code extracted from set_window_buffer. Set the selected frame.
23383 (set_window_buffer): Use it.
23384 * window.h (run_window_configuration_change_hook): Declare.
23385 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23386
23387 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23388
233892008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23390
23391 * Makefile.in: Remove references to unused macros.
23392
233932008-01-26 Eli Zaretskii <eliz@gnu.org>
23394
23395 * w32.c (g_b_init_get_sid_sub_authority)
23396 (g_b_init_get_sid_sub_authority_count): New static variables.
23397 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23398 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23399 (init_user_info): Use them to retrieve uid and gid.
23400 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23401 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23402 st_uid and st_gid of the file.
23403
234042008-01-26 Jason Rumney <jasonr@gnu.org>
23405
23406 * w32.c (logon_network_drive): New function.
23407 (stat): Use it.
23408
234092008-01-26 Chong Yidong <cyd@stupidchicken.com>
23410
23411 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23412 invisible text covered with an ellipsis.
23413
234142008-01-25 Richard Stallman <rms@gnu.org>
23415
23416 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23417 jump back to beginning. Move some other initializations after that.
23418 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23419 New variables.
23420 (syms_of_xdisp): Init them.
23421
23422 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23423
23424 * buffer.c (reset_buffer_local_variables):
23425 Implement `permanent-local-hook'.
23426 (Qpermanent_local_hook): New variable.
23427 (syms_of_buffer): Init and staticpro it.
23428
234292008-01-25 Michael Albinus <michael.albinus@gmx.de>
23430
23431 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23432
234332008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23434
23435 * fns.c (Fclrhash): Return TABLE.
23436
234372008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23438
23439 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23440 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23441 is set even without positional changes.
23442 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23443
23444 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23445
234462008-01-23 Jason Rumney <jasonr@gnu.org>
23447
23448 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23449
23450 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23451 the unicode range available in MULE by locale-coding-system.
23452 Improve dbcs lead byte detection. Set event timestamp and modifiers
23453 earlier.
23454
234552008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23456
23457 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23458 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23459 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23460 when used on child processes.
23461
234622008-01-21 Michael Albinus <michael.albinus@gmx.de>
23463
23464 * dbusbind.c (Fdbus_method_return_internal): Rename from
23465 Fdbus_method_return.
23466 (Fdbus_unregister_object): Move to dbus.el.
23467 (Fdbus_call_method, Fdbus_method_return_internal)
23468 (Fdbus_send_signal): Improve debug messages.
23469
234702008-01-20 Martin Rudalics <rudalics@gmx.at>
23471
23472 * undo.c (undo_inhibit_record_point): New variable.
23473 (syms_of_undo): Initialize it.
23474 (record_point): Don't record point when undo_inhibit_record_point
23475 is set.
23476
234772008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23478
23479 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23480
23481 * xdisp.c (Qauto_hscroll_mode): New var.
23482 (syms_of_xdisp): Initialize it.
23483 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23484 window's buffer.
23485 (hscroll_windows): Don't check automatic_hscrolling_p here.
23486
23487 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23488 vscroll if we're setting window-buffer to the value it already has.
23489
234902008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23491
23492 * m/intel386.h: Remove references to XENIX.
23493
234942008-01-17 Andreas Schwab <schwab@suse.de>
23495
23496 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23497 instead of HAVE_X86_64_LIB64_DIR.
23498 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23499
235002008-01-17 Glenn Morris <rgm@gnu.org>
23501
23502 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23503 to HAVE_X86_64_LIB64_DIR.
23504
235052008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23506
23507 * s/irix3-3.h:
23508 * s/irix4-0.h:
23509 * s/386-ix.h:
23510 * s/domain.h:
23511 * s/hpux9-x11r4.h:
23512 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23513
23514 * sysdep.c: Remove code containing references to symbols defined
23515 by unsupported systems.
23516
235172008-01-16 Glenn Morris <rgm@gnu.org>
23518
23519 * coding.c (select-safe-coding-system-function): Doc fix.
23520
235212008-01-15 Glenn Morris <rgm@gnu.org>
23522
23523 * config.in: Revert 2008-01-13 change: this is a generated file.
23524
235252008-01-13 Tom Tromey <tromey@redhat.com>
23526
23527 * lisp.h: Fix typo.
23528
235292008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23530
23531 * m/sequent-ptx.h:
23532 * m/sequent.h:
23533 * s/ptx.h:
23534 * s/ptx4-2.h:
23535 * s/ptx4.h: Remove files for systems no longer supported.
23536
23537 * callproc.c (Fcall_process): Fix previous change.
23538
235392008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23540
23541 * unexsunos4.c: Remove file, system not supported anymore.
23542
23543 * m/mips.h:
23544 * m/intel386.h:
23545 * callproc.c:
23546 * config.in:
23547 * ecrt0.c:
23548 * emacs.c:
23549 * fileio.c:
23550 * frame.c:
23551 * getpagesize.h:
23552 * keyboard.c:
23553 * lread.c:
23554 * process.c:
23555 * puresize.h:
23556 * sysdep.c:
23557 * systty.h:
23558 * syswait.h:
23559 * unexec.c:
23560 * xdisp.c:
23561 * alloc.c: Remove code containing references to symbols defined by
23562 unsupported systems.
23563
235642008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23565
23566 * coding.c (detect_coding_mask): Fix previous change.
23567
235682008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23569
23570 * coding.c (detect_coding_iso2022): New arg
23571 latin_extra_code_state. Allow Latin extra codes only
23572 when *latin_extra_code_state is nonzero.
23573 (detect_coding_mask): If there is a NULL byte, detect the encoding
23574 as UTF-16 or binary. If Latin extra codes exist, detect the
23575 encoding as ISO-2022 only when there's no other proper encoding is
23576 found.
23577
235782008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23579
23580 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23581 #ifdef MAC_OS.
23582
235832008-01-08 Richard Stallman <rms@gnu.org>
23584
23585 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23586
235872008-01-06 Nick Roberts <nickrob@snap.net.nz>
23588
23589 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23590 menu bar in parentheses.
23591
235922008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23593
23594 * m/7300.h:
23595 * m/acorn.h:
23596 * m/alliant-2800.h:
23597 * m/alliant.h:
23598 * m/alliant1.h:
23599 * m/alliant4.h:
23600 * m/altos.h:
23601 * m/amdahl.h:
23602 * m/apollo.h:
23603 * m/att3b.h:
23604 * m/aviion-intel.h:
23605 * m/aviion.h:
23606 * m/celerity.h:
23607 * m/clipper.h:
23608 * m/cnvrgnt.h:
23609 * m/convex.h:
23610 * m/cydra5.h:
23611 * m/delta88k.h:
23612 * m/dpx2.h:
23613 * m/dual.h:
23614 * m/elxsi.h:
23615 * m/f301.h:
23616 * m/gould-np1.h:
23617 * m/gould.h:
23618 * m/i860.h:
23619 * m/ibmps2-aix.h:
23620 * m/ibmrt-aix.h:
23621 * m/ibmrt.h:
23622 * m/irist.h:
23623 * m/is386.h:
23624 * m/isi-ov.h:
23625 * m/mega68.h:
23626 * m/mg1.h:
23627 * m/news-r6.h:
23628 * m/news-risc.h:
23629 * m/news.h:
23630 * m/nh3000.h:
23631 * m/nh4000.h:
23632 * m/ns16000.h:
23633 * m/ns32000.h:
23634 * m/nu.h:
23635 * m/orion.h:
23636 * m/orion105.h:
23637 * m/paragon.h:
23638 * m/pfa50.h:
23639 * m/plexus.h:
23640 * m/pyramid.h:
23641 * m/pyrmips.h:
23642 * m/sh3el.h:
23643 * m/sps7.h:
23644 * m/sr2k.h:
23645 * m/stride.h:
23646 * m/sun1.h:
23647 * m/sun2.h:
23648 * m/sun3-68881.h:
23649 * m/sun3-fpa.h:
23650 * m/sun3-soft.h:
23651 * m/sun3.h:
23652 * m/sun386.h:
23653 * m/symmetry.h:
23654 * m/tad68k.h:
23655 * m/tahoe.h:
23656 * m/targon31.h:
23657 * m/tek4300.h:
23658 * m/tekxd88.h:
23659 * m/tower32.h:
23660 * m/tower32v3.h:
23661 * m/ustation.h:
23662 * m/wicat.h:
23663 * m/xps100.h:
23664 * s/cxux.h:
23665 * s/cxux7.h:
23666 * s/dgux.h:
23667 * s/dgux4.h:
23668 * s/dgux5-4-3.h:
23669 * s/dgux5-4r2.h:
23670 * s/esix.h:
23671 * s/esix5r4.h:
23672 * s/hiuxmpp.h:
23673 * s/hiuxwe2.h:
23674 * s/iris3-5.h:
23675 * s/iris3-6.h:
23676 * s/isc2-2.h:
23677 * s/isc3-0.h:
23678 * s/isc4-0.h:
23679 * s/isc4-1.h:
23680 * s/newsos5.h:
23681 * s/newsos6.h:
23682 * s/osf1.h:
23683 * s/osf5-0.h:
23684 * s/riscix1-1.h:
23685 * s/riscix12.h:
23686 * s/sco4.h:
23687 * s/sco5.h:
23688 * s/sunos4-0.h:
23689 * s/sunos4-1.h:
23690 * s/sunos413.h:
23691 * s/sunos4shr.h:
23692 * s/umax.h:
23693 * s/unipl5-2.h:
23694 * s/xenix.h:
23695 * cxux-crt0.s:
23696 * unexapollo.c:
23697 * unexconvex.c:
23698 * unexenix.c:
23699 * unexsni.c: Remove files for systems no longer supported.
23700
23701 * m/intel386.h: Remove references to unsupported systems.
23702
23703 * w32.c (get_emacs_configuration): Remove reference to i860.
23704
23705 * sysdep.c: Remove dead code.
23706
237072008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23708
23709 * s/rtu.h:
23710 * m/masscomp.h: Remove files. Platform is obsolete.
23711
237122008-01-04 Michael Albinus <michael.albinus@gmx.de>
23713
23714 * dbusbind.c (Fdbus_method_return): New function.
23715 (xd_read_message): Add the serial number to the event.
23716 (Fdbus_register_method): Activate the function.
23717
237182008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23719
23720 * keyboard.c (read_key_sequence): Fix typo.
23721
237222008-01-03 Michael Albinus <michael.albinus@gmx.de>
23723
23724 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23725 (xd_signature, xd_append_arg): Handle element type detection for
23726 empty arrays.
23727 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23728 SDATA () calls; this must be solved more general.
23729 (Fdbus_register_signal): Use SBYTES instead of strlen.
23730
237312008-01-03 Magnus Henoch <magnus@zemdatav>
23732
23733 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23734 unsigned int for byte values (necessary for big-endian platform).
23735 (Fdbus_call_method): Handle the case of no returned arguments.
23736
237372007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23738
23739 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23740
237412007-12-31 Magnus Henoch <mange@freemail.hu>
23742
23743 * dbusbind.c (xd_signature): Signature of variant is just "v".
23744
237452007-12-30 Michael Albinus <michael.albinus@gmx.de>
23746
23747 * dbusbind.c: Fix several errors and compiler warnings.
23748 Reported by Tom Tromey <tromey@redhat.com>.
23749 (XD_ERROR, XD_DEBUG_MESSAGE)
23750 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23751 (xd_append_arg): Part for basic D-Bus types rewritten.
23752 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23753 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23754 appropriate.
23755 (xd_read_message): Return Qnil. Don't signal an error; it is not
23756 useful during event reading.
23757 (Fdbus_register_signal): Signal an error if the check for
23758 FUNCTIONP fails.
23759 (Fdbus_register_method): New function. The implementation is not
23760 complete, the call of the function signals an error therefore.
23761 (Fdbus_unregister_object): New function, renamed from
23762 Fdbus_unregister_signal. The initial check signals an error, if
23763 the object is not well formed.
23764
237652007-12-30 Richard Stallman <rms@gnu.org>
23766
23767 * textprop.c (get_char_property_and_overlay):
23768 Signal error if POSITION is out of range in a buffer.
23769
237702007-12-29 Martin Rudalics <rudalics@gmx.at>
23771
23772 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23773 because the original parameters are in pure storage now.
23774
237752007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23776
23777 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23778
237792007-12-22 Eli Zaretskii <eliz@gnu.org>
23780
23781 * callint.c (syms_of_callint) <command-history>: Add reference to
23782 history-length in the doc string.
23783
237842007-12-17 Jason Rumney <jasonr@gnu.org>
23785
23786 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23787 before passing as wParam.
23788
237892007-12-22 Michael Albinus <michael.albinus@gmx.de>
23790
23791 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23792 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23793 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23794 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23795 as number.
23796 (Fdbus_call_method): Fix docstring.
23797
237982007-12-21 Michael Albinus <michael.albinus@gmx.de>
23799
23800 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23801 New macros.
23802 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23803 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23804 Simplify.
23805 (xd_signature): New function.
23806 (xd_append_arg): Compute also signatures. Major rewrite.
23807 (xd_retrieve_arg): Make debug messages friendly.
23808 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23809 Check for signatures of arguments.
23810
238112007-12-19 Michael Albinus <michael.albinus@gmx.de>
23812
23813 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23814 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23815 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23816 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23817 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23818 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23819 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23820 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23821 (xd_retrieve_value): Remove. Functionality included in ...
23822 (xd_append_arg): New function.
23823 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23824
238252007-12-16 Michael Albinus <michael.albinus@gmx.de>
23826
23827 * dbusbind.c (top): Include <stdio.h>.
23828 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23829 dbus_message_new_method_call and dbus_message_new_signal.
23830 (Fdbus_register_signal): Rename unique_name to uname.
23831 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23832 non-existing unique name. Fix typos in matching rule. Return an
23833 object which is useful in Fdbus_unregister_signal.
23834 (Fdbus_unregister_signal): Reimplementation, in order to remove
23835 only the corresponding entry.
23836 (Vdbus_registered_functions_table): Change the order of entries.
23837 Apply these changes in xd_read_message and Fdbus_register_signal.
23838
238392007-12-16 Andreas Schwab <schwab@suse.de>
23840
23841 * fileio.c (Finsert_file_contents): Fix overflow check to not
23842 depend on undefined integer overflow.
23843
238442007-12-14 Jason Rumney <jasonr@gnu.org>
23845
23846 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23847 for characters above 127.
23848
238492007-12-13 Jason Rumney <jasonr@gnu.org>
23850
23851 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23852 before dereferencing array.
23853 (lookup_vk_code): Remove zero comparison.
23854
238552007-12-14 Michael Albinus <michael.albinus@gmx.de>
23856
23857 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23858 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23859 Use `unsigned int' instead of `uint'.
23860 (xd_read_message, Fdbus_register_signal): Split expressions into
23861 multiple lines before operators "&&" and "||", according to the
23862 GNU Coding Standards.
23863
238642007-12-14 Eli Zaretskii <eliz@gnu.org>
23865
23866 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23867
238682007-12-12 Juri Linkov <juri@jurta.org>
23869
23870 * buffer.c (Frename_buffer): In interactive spec replace
23871 `read-buffer' with `read-string' that uses `buffer-name-history'
23872 as history, and the current buffer's name as default.
23873
238742007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23875
23876 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23877 manipulating the backtrace manually.
23878 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23879 (struct backtrace, backtrace_list): Remove.
23880 (command_loop_1): Remove dead var `no_direct'.
23881
23882 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23883 preserve non-built-in buffer-local variables.
23884 (Fkill_all_local_variables): Don't re-create&re-set permanent
23885 buffer-local variables.
23886
238872007-12-09 Juri Linkov <juri@jurta.org>
23888
23889 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23890 Lisp code that uses `read-buffer' with current buffer as default.
23891
238922007-12-08 Michael Albinus <michael.albinus@gmx.de>
23893
23894 * dbusbind.c (xd_read_message): Generate an event for every
23895 registered handler. There might be several handlers registered
23896 for the same signal.
23897 (Fdbus_register_signal): Don't overwrite a registration for the
23898 same signal. Add a new registration if handlers are different.
23899 (Vdbus_registered_functions_table): Rework doc string.
23900
239012007-12-07 Michael Albinus <michael.albinus@gmx.de>
23902
23903 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23904 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23905 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23906 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23907 Unify argument lists.
23908 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23909 arguments and hash table keys. Use unique name for service.
23910 (Fdbus_unregister_signal): Remove checks.
23911 (Vdbus_registered_functions_table): Fix doc string.
23912
239132007-12-05 Magnus Henoch <mange@freemail.hu>
23914
23915 * process.c (make_process): Initialize pty_flag to 0.
23916
239172007-12-05 Jason Rumney <jasonr@gnu.org>
23918
23919 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
23920 specified XBMs.
23921
239222007-12-05 Richard Stallman <rms@gnu.org>
23923
23924 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
23925
239262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23927
23928 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
23929 New variable.
23930 (mac_try_close_socket) [MAC_OSX]: New function.
23931 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
23932 Update cfsockets_for_select. Replace invalid CFRunLoop source.
23933
23934 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
23935 Use mac_try_close_socket.
23936
239372007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23938
23939 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
23940 reloc_base.
23941 (copy_dysymtab): Compute relocation base here.
23942 (rebase_reloc_address) [__ppc64__]: New function.
23943 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
23944 changed.
23945
239462007-12-05 Jason Rumney <jasonr@gnu.org>
23947
23948 * w32proc.c (sys_spawnve): Quote args with wildcards.
23949
239502007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23951
23952 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
23953 __objc_* sections.
23954 (unrelocate) [_LP64]: Set relocation base to address of data segment.
23955
239562007-12-05 Michael Albinus <michael.albinus@gmx.de>
23957
23958 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
23959 Move check for Vdbus_registered_functions_table to
23960 xd_read_queued_messages.
23961 (xd_read_queued_messages): Protect xd_read_message calls by
23962 internal_condition_case_1.
23963
239642007-12-04 Michael Albinus <michael.albinus@gmx.de>
23965
23966 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
23967 Qdbus_system_bus and Qdbus_session_bus, respectively.
23968 (Vdbus_intern_symbols): Remove.
23969 (Vdbus_registered_functions_table): New hash table.
23970 (XD_SYMBOL_INTERN_SYMBOL): Remove.
23971 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
23972 Rewrite in order to manage registered functions by hash table
23973 Vdbus_registered_functions_table.
23974
239752007-12-03 Jan Djärv <jan.h.d@swipnet.se>
23976
23977 * xterm.c: Update URL to Window Manager Specification in comment.
23978
239792007-12-02 Michael Albinus <michael.albinus@gmx.de>
23980
23981 * config.in (HAVE_DBUS): Add.
23982
23983 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
23984 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
23985 (obj): Add $(DBUS_OBJ).
23986 (LIBES): Add $(DBUS_LIBS).
23987 (dbusbind.o): New target.
23988
23989 * dbusbind.c: New file.
23990
23991 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
23992
23993 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
23994 (Qdbus_event): New Lisp symbol.
23995 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
23996 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 23997 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
23998
23999 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24000
240012007-12-01 Richard Stallman <rms@gnu.org>
24002
24003 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24004
240052007-11-30 Jason Rumney <jasonr@gnu.org>
24006
24007 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24008 (w32con_reset_terminal_modes): Clear screen buffer.
24009 (w32_face_attributes): Don't use color indexes that are out of range.
24010 Only reverse the default colors.
24011
24012 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24013 WINDOWSNT.
24014
24015 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24016
240172007-11-29 Jason Rumney <jasonr@gnu.org>
24018
24019 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24020 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24021 if the terminal colors are initialized.
24022 (unspecified_fg, unspecified_bg): Remove unused declarations.
24023
240242007-11-29 Andreas Schwab <schwab@suse.de>
24025
24026 * keyboard.c (apply_modifiers): Fix typo.
24027
240282007-11-29 Richard Stallman <rms@gnu.org>
24029
24030 * keymap.c (Fcurrent_local_map): Doc fix.
24031
240322007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24033
24034 * s/gnu-kfreebsd.h: New file.
24035
240362007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24037
24038 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24039 Don't cast redundantly.
24040
24041 * keyboard.c (KEY_TO_CHAR): New macro.
24042 (parse_modifiers, apply_modifiers): Accept integer arguments.
24043 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24044 for chars and symbol keys.
24045 After doing such remapping, apply function-key-map again.
24046
240472007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24048
24049 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24050 compiled anymore.
24051
240522007-11-26 Andreas Schwab <schwab@suse.de>
24053
24054 * process.c (list_processes_1): Fix indentation level of the
24055 command column.
24056
240572007-11-23 Andreas Schwab <schwab@suse.de>
24058
24059 * editfns.c (Fformat): Handle %c specially since it requires the
24060 argument to be of type int.
24061
240622007-11-23 Markus Triska <markus.triska@gmx.at>
24063
24064 * emacs.c (main): Call init_editfns before init_process, since
24065 init_process sets Vprocess_connection_type depending on OS release.
24066
240672007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24068
24069 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24070 (find_symbol_value): Use do_symval_forwarding.
24071
24072 * data.c (set_internal): Set the value in the `cons-cell' (for
24073 Buffer_Local_values) not only for frame-local variables.
24074
240752007-11-22 Andreas Schwab <schwab@suse.de>
24076
24077 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24078 values to sprintf.
24079 * keymap.c (Fsingle_key_description): Likewise.
24080 * print.c (print_object): Likewise.
24081
240822007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24083
24084 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24085 file for image is nil.
24086
240872007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24088
24089 * term.c: Include stdarg.h.
24090 (fatal): Implement using varargs.
24091 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24092
240932007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24094
24095 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24096 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24097 Update call to buffer_slot_type_mismatch.
24098 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24099 (buffer_slot_type_mismatch): Update.
24100 * buffer.c (buffer_local_types): Remove.
24101 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24102 (defvar_per_buffer): Set the type in the buffer_objfwd.
24103
241042007-11-21 Jason Rumney <jasonr@gnu.org>
24105
24106 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24107 CreateFileMapping returns NULL on failure.
24108
241092007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24110
24111 * search.c (Fset_match_data): Remove the `evaporate' feature.
24112 (unwind_set_match_data): Don't use the `evaporate' feature.
24113
241142007-11-21 Jason Rumney <jasonr@gnu.org>
24115
24116 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24117
24118 * w32console.c (w32con_write_glyphs): Remove unused variables.
24119
241202007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24121
24122 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24123
24124 * s/darwin.h (MULTI_KBOARD): Remove.
24125
24126 * macfns.c (x_create_tip_frame, Fx_create_frame)
24127 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24128
241292007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24130
24131 * buffer.c (Fbuffer_local_value): Remove redundant test.
24132 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24133 than in `current-buffer' to match the comment.
24134 Do the swap using swap_in_global_binding.
24135
24136 * data.c (store_symval_forwarding, set_internal):
24137 * eval.c (specbind): Remove dead code.
24138
24139 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24140 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24141 Since we do not want to see internal Lisp_*fwd objects here.
24142
241432007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24144
24145 * sysdep.c (init_system_name): Use getaddrinfo if available.
24146
24147 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24148 (x_scroll_bar_note_movement): start, end, with, height in struct
24149 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24150
241512007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24152
24153 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24154
241552007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24156
24157 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24158 This undoes Richard's change of 14-Oct-2002.
24159
24160 * alloc.c (allocate_other_vector):
24161 * lisp.h (allocate_other_vector): Remove.
24162
24163 * window.c (struct save_window_data): Move non-lisp data to the end
24164 and make it `int' rather than Lisp_Object.
24165 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24166 Done wrap/unwrap integer values.
24167 (Fset_window_configuration, compare_window_configurations):
24168 Update use of fields to their new types.
24169
24170 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24171 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24172 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24173 (SET_SCROLL_BAR_X_WINDOW): Remove.
24174 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24175 Access the new x_window field directly.
24176 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24177 Don't wrap/unwrap integers into Lisp_Objects.
24178 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24179 (x_scroll_bar_report_motion):
24180 Don't wrap/unwrap integers into Lisp_Objects.
24181 (x_term_init): Use SDATA.
24182 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24183 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24184 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24185 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24186 * xfns.c (x_set_background_color):
24187 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24188 Access the new x_window field directly.
24189
24190 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24191 (allocate_pseudovector): Make non-static.
24192
24193 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24194 (allocate_pseudovector): Declare.
24195 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24196
241972007-11-15 Andreas Schwab <schwab@suse.de>
24198
24199 * editfns.c (Fformat): Correctly format EMACS_INT values.
24200 Also take precision into account when formatting an integer.
24201
24202 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24203
242042007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24205
24206 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24207 (syms_of_keyboard): Defsubr it.
24208
24209 * data.c (swap_in_global_binding): Fix longstanding bug where
24210 store_symval_forwarding was not called with the right second argument,
24211 thus causing objfwd-ing from being dropped.
24212
242132007-11-14 Juanma Barranquero <lekktu@gmail.com>
24214
24215 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24216 (Fx_display_pixel_height, Fx_display_planes)
24217 (Fx_display_color_cells, Fx_server_max_request_size)
24218 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24219 (Fx_display_visual_class, Fx_display_save_under):
24220 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24221 (Fx_display_pixel_height, Fx_display_planes)
24222 (Fx_display_color_cells, Fx_server_max_request_size)
24223 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24224 (Fx_display_mm_height, Fx_display_mm_width)
24225 (Fx_display_backing_store, Fx_display_visual_class)
24226 (Fw32_select_font, Fx_display_save_under):
24227 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24228 (Fx_display_pixel_height, Fx_display_planes)
24229 (Fx_display_color_cells, Fx_server_max_request_size)
24230 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24231 (Fx_display_save_under): Fix typos in docstrings.
24232
242332007-11-14 Juanma Barranquero <lekktu@gmail.com>
24234
24235 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24236 corresponding to deleted entries; they are an implementation detail.
24237 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24238 Remove variables.
24239 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24240 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24241 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24242 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24243 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24244 (Fw32_define_rgb_color, Fw32_load_color_file)
24245 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24246 Fix typos in docstrings.
24247 (Fx_server_version): Reflow docstring.
24248 (Fw32_shell_execute): Doc fixes.
24249
242502007-11-13 Juanma Barranquero <lekktu@gmail.com>
24251
24252 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24253 if w32_parse_hot_key returned nil.
24254
242552007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24256
24257 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24258
242592007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24260
aac0c6e3
MR
24261 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24262
24263 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24264
24265 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24266 Remove W32_SCROLL_BAR_CLICK_EVENT.
24267
24268 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24269 Add MULTIMEDIA_KEY_EVENT.
24270
24271 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24272 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24273 (make_lispy_event) [WINDOWSNT]: Use it to translate
24274 MULTIMEDIA_KEY_EVENT.
24275
24276 * w32term.h (WM_APPCOMMAND): Define if not already.
24277 (GET_APPCOMMAND_LPARAM): Likewise.
24278
24279 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24280 WM_APPCOMMAND.
24281
24282 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24283 (syms_of_w32fns): Export and initialize it.
24284 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24285
242862007-11-09 Chong Yidong <cyd@stupidchicken.com>
24287
24288 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24289 twice.
24290
24291 * xdisp.c (handle_face_prop): Fix last change.
24292
242932007-11-09 Richard Stallman <rms@gnu.org>
24294
24295 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24296 not just for after-strings and before-strings.
24297 Call face_for_overlay_string and pass the overlay to it.
24298 (handle_display_prop): Determine whether property came from an overlay.
24299 Pass OVERLAY arg to handle_single_display_spec.
24300 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24301 (load_overlay_strings): Fill in it->string_overlays.
24302 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24303
24304 * xfaces.c (face_for_overlay_string): Function renamed from
24305 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24306
24307 * dispextern.h (struct it): New elt string_overlays.
24308 New elt from_overlay, also in stack.
24309 Rearrange a few elements.
24310 (face_for_overlay_string): Decl renamed from
24311 face_at_buffer_position_no_overlays, and add argument.
24312
243132007-11-09 Richard Stallman <rms@gnu.org>
24314
24315 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24316 to get the base face for an overlay string.
24317
24318 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24319
24320 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24321
24322 * xdisp.c (handle_stop): Move some code out of loop.
24323
243242007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24325
24326 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24327 Fix conversion from Lisp object to ATSUFontID.
24328
243292007-11-09 Jason Rumney <jasonr@gnu.org>
24330
24331 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24332
243332007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24334
24335 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24336 Don't assume regions are aligned to page boundary.
24337 (print_load_command_name): Add LC_UUID if defined.
24338
243392007-11-09 Richard Stallman <rms@gnu.org>
24340
24341 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24342
243432007-11-07 Jason Rumney <jasonr@gnu.org>
24344
24345 * s/windows95.h: Remove.
24346
243472007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24348
24349 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24350 abort with a message on unhandled store_type values.
24351
243522007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24353
24354 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24355 Remove HAVE_X11R5 and HAVE_X11R4.
24356
243572007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24358
24359 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24360
243612007-11-01 Johan Bockgård <bojohan@gnu.org>
24362
24363 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24364 Don't set s->stippled_p here, since it has already been set by
24365 x_set_glyph_string_gc from x_draw_glyph_string.
24366
243672007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24368
24369 * sunfns.c: Remove file.
24370
24371 * m/sun386.h:
24372 * m/sun2.h:
24373 * m/sparc.h: Remove Sun windows code.
24374
243752007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24376
24377 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24378 (init_keyboard): Set current_kboard's window-system to nil.
24379 (tty_read_avail_input): Typo.
24380 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24381
243822007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24383
24384 * s/usg5-4.h:
24385 * s/usg5-3.h:
24386 * s/ptx.h:
24387 * m/is386.h:
24388 * m/ibmps2-aix.h:
24389 * Makefile.in: Remove all mentions of X10.
24390
24391 * dispnew.c (syms_of_display): Don't mention version 10.
24392
243932007-10-28 Juanma Barranquero <lekktu@gmail.com>
24394
24395 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24396 ($(BLD)/abbrev.$(O)): Remove.
24397
243982007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24399
24400 Rewrite abbrev.c in Elisp.
24401 * image.c (Qcount): Don't declare as extern.
24402 (syms_of_image): Initialize and staticpro `Qcount'.
24403 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24404 * emacs.c (main): Don't call syms_of_abbrev.
24405 * Makefile.in (obj): Remove abbrev.o.
24406 (abbrev.o): Remove.
24407 * abbrev.c: Remove.
24408
244092007-10-26 Martin Rudalics <rudalics@gmx.at>
24410
24411 * window.c (window_min_size_2): Don't count header-line.
24412
244132007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24414
24415 * frame.h (struct frame): Move all bit fields after the first bit
24416 field to take advantage of the available space. Group all the
24417 chars together to reduce wasted space due to padding.
24418
244192007-10-26 Juanma Barranquero <lekktu@gmail.com>
24420
24421 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24422
24423 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24424 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24425 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24426 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24427 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24428 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24429 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24430 (last_marked, mark_object_loop_halt): Make static.
24431
24432 * frame.c (syms_of_frame) <delete-frame-functions>:
24433 Fix typo in docstring.
24434
244352007-10-25 Juanma Barranquero <lekktu@gmail.com>
24436
24437 * w32.c (init_environment): Fix tiny memory leak.
24438 (w32_get_resource): Remove unused variable `ok'.
24439
244402007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24441
24442 Make `window-system' into a keyboard-local variable (rather than
24443 frame-local as done originally by multi-tty).
24444
24445 * keyboard.h (struct kboard): Add Vwindow_system.
24446 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24447 (mark_kboards): Mark Vwindow_system.
24448
24449 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24450 (init_display): Don't set the obsolete `window-system' frame-param.
24451
24452 * xterm.c (x_term_init):
24453 * w32term.c (w32_create_terminal):
24454 * term.c (init_tty): Set Vwindow_system.
24455 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24456 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24457
24458 * xfns.c (Fx_create_frame, x_create_tip_frame):
24459 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24460 * macfns.c (Fx_create_frame):
24461 Don't set the obsolete `window-system' frame-param.
24462
24463 * frame.h (Qwindow_system): Remove.
24464 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24465 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24466
244672007-10-24 Richard Stallman <rms@gnu.org>
24468
24469 * frame.c (x_figure_window_size): For fullscreen case,
24470 set USPosition | PPosition without clobbering rest of window_prompting.
24471
24472 * keyboard.c (Fcurrent_idle_time): Doc fix.
24473
24474 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24475
244762007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24477
24478 * process.c (unwind_request_sigio): Only define if __ultrix__.
24479
24480 * callproc.c (child_setup): Remove spurious *.
24481
24482 * lisp.h (Fget_text_property): Declare.
24483 (have_menus_p): Declare it here rather than in sys-dep header files.
24484 * macterm.h (have_menus_p):
24485 * msdos.h (have_menus_p):
24486 * xterm.h (have_menus_p): Remove.
24487
24488 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24489 (Fmake_variable_frame_local): Just check the variable's const-ness
24490 rather than checking nil or t.
24491
244922007-10-22 Jason Rumney <jasonr@gnu.org>
24493
24494 * w32fns.c: Include math.h.
24495 (w32_abort): Declaration moved to nt/config.nt.
24496
24497 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24498 (abort): Redefinition moved to nt/config.nt.
24499
24500 * m/windowsnt.h: Remove.
24501
245022007-10-22 Juanma Barranquero <lekktu@gmail.com>
24503
24504 * emacs.c (Fdump_emacs): Fix typo in message.
24505 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24506 <installation-directory>: Reflow docstring.
24507
245082007-10-22 Juri Linkov <juri@jurta.org>
24509
24510 * minibuf.c: Allow minibuffer default to be a list of default values.
24511 With empty input use the first element of this list as returned default.
24512 (string_to_object)
24513 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24514 (read_minibuf): If defalt is cons, set histstring to its car.
24515 (Fread_string): If default_value is cons, set val to its car.
24516 (Fread_buffer): If def is cons, use its car.
24517 (Fcompleting_read): If defalt is cons, set val to its car.
24518
245192007-10-21 Michael Albinus <michael.albinus@gmx.de>
24520
24521 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24522
245232007-10-20 Juanma Barranquero <lekktu@gmail.com>
24524
24525 * doc.c (Fdocumentation): Check for advice in all cases.
24526
245272007-10-19 Chong Yidong <cyd@stupidchicken.com>
24528
24529 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24530
245312007-10-19 Richard Stallman <rms@gnu.org>
24532
24533 * doc.c (Fdocumentation): Check for and handle an advised function.
24534
245352007-10-19 Juanma Barranquero <lekktu@gmail.com>
24536
24537 * process.c (Fset_process_filter): Doc fix.
24538
245392007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24540
24541 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24542 which caused key-translation-map to applied repeatedly (thus breaking
24543 double-mode).
24544
245452007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24546
24547 * xselect.c (x_own_selection, x_handle_selection_clear)
24548 (x_clear_frame_selections):
24549 * w32menu.c (list_of_panes, list_of_items):
24550 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24551 * textprop.c (validate_plist, interval_has_all_properties)
24552 (interval_has_some_properties, interval_has_some_properties_list)
24553 (add_properties, text_property_list):
24554 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24555 * minibuf.c (Fassoc_string):
24556 * macselect.c (x_own_selection, x_clear_frame_selections)
24557 (Fx_disown_selection_internal):
24558 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24559 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24560
245612007-10-17 Chong Yidong <cyd@stupidchicken.com>
24562
24563 * process.c: Link to libs for calling res_init() if available.
24564 (Fmake_network_process): Call res_init() before getaddrinfo or
24565 gethostbyname, if possible.
24566
245672007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24568
24569 * lread.c (read1): Set pvectype for char_tables.
24570
24571 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24572 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24573 Add type checks.
24574 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24575
24576 * alloc.c (free_misc): Use XMISCTYPE.
24577 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24578
245792007-10-17 Glenn Morris <rgm@gnu.org>
24580
24581 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24582 (syms_of_minibuf): Add Qcompletion_ignore_case.
24583 * dired.c (Qcompletion_ignore_case): Change to external.
24584 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24585 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24586 (Fread_file_name): Use it rather than intern'ing.
24587
24588 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24589 (Fread_coding_system): Ignore case of user input.
24590
245912007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24592
24593 * xdisp.c (handle_display_prop): Ignore display specs after
24594 replacing one when string text is being replaced.
24595 (handle_single_display_spec): Pretend as if characters with display
24596 property haven't been consumed only when buffer text is being replaced.
24597
245982007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24599
24600 * xfns.c (Fx_create_frame, Fx_display_list):
24601 * window.c (window_fixed_size_p, enlarge_window)
24602 (shrink_window_lowest_first):
24603 * macterm.c (init_font_name_table):
24604 * macfns.c (Fx_create_frame, Fx_display_list):
24605 * lread.c (close_load_descs):
24606 * keyboard.c (read_char_x_menu_prompt):
24607 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24608 * coding.c (code_convert_region_unwind): Test the type of an object
24609 rather than just !NILP before extracting data from it.
24610
24611 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24612
24613 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24614 (XMISCANY): New macro.
24615 (XMISCTYPE): Use it.
24616 (struct Lisp_Misc_Any): New type.
24617 (union Lisp_Misc): Use it.
24618 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24619 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24620 (find_symbol_value, set_internal, default_value, Fset_default)
24621 (Fmake_variable_buffer_local, Fmake_local_variable)
24622 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24623 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24624 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24625 * alloc.c (allocate_buffer): Set the size and tag.
24626 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24627 Use XMISCANY.
24628 (die): Follow the GNU convention for error messages.
24629 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24630 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24631 tag any more.
24632 (set_buffer_internal_1):
24633 * frame.c (store_frame_param):
24634 * eval.c (specbind):
24635 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24636
24637 * doc.c (Fsnarf_documentation): Simplify.
24638
246392007-10-14 Juanma Barranquero <lekktu@gmail.com>
24640
24641 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24642 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24643
246442007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24645
24646 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24647
246482007-10-14 Juanma Barranquero <lekktu@gmail.com>
24649
24650 * eval.c (do_autoload): Don't save autoloads.
24651
24652 * data.c (Ffset): Save autoload of the function being set.
24653
246542007-10-07 John Paul Wallington <jpw@pobox.com>
24655
24656 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24657 parameter before setting up faces.
24658
246592007-10-13 Eli Zaretskii <eliz@gnu.org>
24660
24661 * ccl.c (Fregister_code_conversion_map):
24662 * keyboard.c (append_tool_bar_item): Reformat last change.
24663
24664 * lisp.h (eabs): Rename from `abs'. All callers changed.
24665
246662007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24667
24668 * buffer.c (add_overlay_mod_hooklist):
24669 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24670 * fontset.c (make_fontset):
24671 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24672 (append_tool_bar_item):
24673 * macmenu.c (grow_menu_items):
24674 * w32menu.c (grow_menu_items):
24675 * xmenu.c (grow_menu_items): Use larger_vector.
24676
246772007-10-13 Eli Zaretskii <eliz@gnu.org>
24678
24679 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24680 selected frame'' on MSDOS).
24681
246822007-10-12 Martin Rudalics <rudalics@gmx.at>
24683
24684 * frame.c (Qexplicit_name): New variable.
24685 (x_report_frame_params): Report it in parameter alist.
24686 (syms_of_frame): Intern and staticpro it.
24687
246882007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24689
24690 * macfns.c (x_create_tip_frame): Set terminal for frame.
24691
246922007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24693
24694 * frame.c (Qenvironment): Remove.
24695 (syms_of_frame) <Qenvironment>: Don't initialize.
24696 (Fdelete_frame): Don't treat the `environment' param specially.
24697 * frame.h (Qenvironment): Don't declare.
24698 * callproc.c (set_initial_environment): Don't set unused frame param.
24699
24700 * frame.c (Fframe_with_environment): Remove.
24701 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24702
24703 * lisp.h (Fframe_with_environment): Don't declare.
24704
247052007-10-10 Juanma Barranquero <lekktu@gmail.com>
24706
24707 * indent.c (indent_tabs_mode, last_known_column)
24708 (last_known_column_modified): Make static.
24709 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24710
247112007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24712
24713 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24714
247152007-10-09 Jason Rumney <jasonr@gnu.org>
24716
24717 * w32term.c (x_set_window_size): Disable code that attempts to tell
24718 Lisp code about a size change before it actually happens.
24719
247202007-10-09 Richard Stallman <rms@gnu.org>
24721
24722 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24723 return HANDLED_RETURN.
24724
247252007-10-08 Martin Rudalics <rudalics@gmx.at>
24726
24727 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24728 when there's an unread command event.
24729
24730 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24731 window autoselection act appropriately when leaving selected frame.
24732 (syms_of_frame): Initialize focus_follows_mouse.
24733 * frame.h (focus_follows_mouse): Extern it.
24734 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24735 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24736 * msdos.c (dos_rawgetc): Likewise.
24737 * w32term.c (w32_read_socket): Likewise.
24738 * xterm.c (handle_one_xevent): Likewise.
24739 * xdisp.c (syms_of_xdisp): In doc-string of
24740 mouse-autoselect-window mention focus-follows-mouse.
24741
247422007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24743
24744 * macterm.c (mac_load_query_font): Fix missing return value.
24745 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24746 Add BLOCK_INPUT.
24747
247482007-10-08 Richard Stallman <rms@gnu.org>
24749
24750 * xdisp.c (get_window_cursor_type): Implement documented behavior
24751 for cursor-in-non-selected-windows = t.
24752
247532007-10-08 Jason Rumney <jasonr@gnu.org>
24754
24755 * w32.c (w32_get_resource): Always close registry keys.
24756
247572007-10-08 Jason Rumney <jasonr@gnu.org>
24758
24759 * makefile.w32-in (LIBS): Add COMCTL32.
24760
24761 * w32fns.c (globals_of_w32fns): Init common controls.
24762
247632007-10-08 Richard Stallman <rms@gnu.org>
24764
24765 * image.c (our_memory_buffer): Rename from omfib_buffer.
24766
247672007-10-08 Richard Stallman <rms@gnu.org>
24768
24769 * buffer.c (Foverlays_at): Doc fix.
24770
247712007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24772
24773 * fns.c (Fplist_put): Preserve uneven tail data.
24774
247752007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24776
24777 * termhooks.h (enum event_kind): Remove trailing comma.
24778
24779 * frame.h (enum): Remove trailing comma.
24780
247812007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24782
24783 * w32proc.c (delete_child): Don't terminate threads of zombies.
24784
247852007-10-08 Martin Rudalics <rudalics@gmx.at>
24786
24787 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24788
24789 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24790 last-repeatable-command.
24791 (init_kboard): Initialize Vlast_repeatable_command.
24792 (command_loop_1): Set it to real_this_command unless that was
24793 bound to an input event.
24794 (mark_kboards): Mark it.
24795
247962007-10-08 Richard Stallman <rms@gnu.org>
24797
24798 * eval.c (condition-case): Doc fix.
24799
248002007-10-08 Masatake YAMATO <jet@gyve.org>
24801
24802 * xfaces.c (tty_supports_face_attributes_p): Fix code
24803 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24804 was copied and not edited.
24805
248062007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24807
24808 Add new `input-decode-map' keymap and use it for terminal
24809 escape sequences.
24810 * keyboard.h (struct kboard): Add Vinput_decode_map.
24811 Remove Vlocal_key_translation_map.
24812 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24813 (init_kboard): Init input-decode-map.
24814 Replace local-key-translation-map back with key-translation-map.
24815 (syms_of_keyboard): Declare input-decode-map.
24816 Remove local-key-translation-map. Update docstrings.
24817 (mark_kboards): Mark Vinput_decode_map.
24818 Don't mark Vlocal_key_translation_map.
24819 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24820 Replace local-key-translation-map back with key-translation-map.
24821 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24822 Bind in input-decode-map rather than function-key-map.
24823
24824 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24825 This was made redundant by the previous introduction of XSETPVECTYPE.
24826
248272007-10-09 Richard Stallman <rms@gnu.org>
24828
24829 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24830
248312007-09-29 Richard Stallman <rms@gnu.org>
24832
24833 * eval.c (internal_condition_case_2, internal_condition_case_1)
24834 (internal_condition_case): Reenable abort if x_catching_errors ()
24835 to see if that really happens and why.
24836
248372007-10-06 Andreas Schwab <schwab@suse.de>
24838
24839 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24840
248412007-10-04 Juanma Barranquero <lekktu@gmail.com>
24842
24843 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24844
248452007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24846
24847 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24848
248492007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24850
24851 * window.h (struct window):
24852 * window.c (struct save_window_data, struct saved_window):
24853 * termhooks.h (struct terminal):
24854 * process.h (struct Lisp_Process):
24855 * frame.h (struct frame):
24856 * buffer.h (struct buffer):
24857 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24858 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24859 The size field of (pseudo)vectors is now unsigned.
24860 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24861
24862 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24863 Turn `count' into an integer.
24864
24865 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24866 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24867 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24868 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24869 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24870
24871 * alloc.c (allocate_pseudovector): New fun.
24872 (ALLOCATE_PSEUDOVECTOR): New macro.
24873 (allocate_window, allocate_terminal, allocate_frame)
24874 (allocate_process): Use it.
24875 (mark_vectorlike): New function.
24876 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24877 (mark_terminals): Use it.
24878 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24879 (Fmake_byte_code): Use XSETPVECTYPE.
24880
24881 * frame.c (Fframe_parameters): Minor simplification.
24882
24883 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24884
24885 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24886
24887 * buffer.c (Fget_buffer_create, init_buffer_once):
24888 * lread.c (defsubr):
24889 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24890
24891 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24892 defined differently in the m/*.h files.
24893 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24894 (XSETPVECTYPE): New macro.
24895 (XSETPSEUDOVECTOR): Use it.
24896
24897 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24898 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24899
24900 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24901 * lread.c (defvar_per_buffer):
24902 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24903
24904 * window.c (candidate_window_p): Only consider as visible frames that
24905 are on the same terminal.
24906
24907 * m/ibms390x.h (MARKBIT): Remove unused macro.
24908
249092007-10-01 Juanma Barranquero <lekktu@gmail.com>
24910
24911 * lread.c (Fload): Fix typo in docstring.
24912
249132007-10-01 Michaël Cadilhac <michael@cadilhac.name>
24914
24915 * floatfns.c (Fexpt): Manually check for overflows, so that a power
24916 of a non-zero value can't yield zero.
24917
249182007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
24919
24920 * term.c (term_clear_mouse_face, term_mouse_highlight)
24921 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
24922
24923 * print.c (safe_debug_print): Use XHASH.
24924
24925 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
24926 Lisp elements such as tags.
24927 (XHASH): New macro.
24928 (EQ): Use it.
24929 (SREF, SSET, STRING_COPYIN): Use SDATA.
24930 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
24931
24932 * alloc.c (mark_terminal): Remove left-over declaration.
24933 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
24934 (allocate_vectorlike): Remove type argument. Adjust callers.
24935 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
24936 Only handle the one remaining MEM_TYPE_VECTORLIKE.
24937
24938 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
24939 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
24940 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
24941 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
24942 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
24943 Use them.
24944
24945 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
24946 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
24947 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
24948
249492007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
24950
24951 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
24952 loaded by default.
24953
249542007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
24955
24956 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
24957 on this tty.
24958 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
24959
24960 * term.c (mouse_face_window): Rename from Qmouse_face_window.
24961 Update all users.
24962 (handle_one_term_event): Use Gpm_DrawPointer.
24963 (Fgpm_mouse_start): Rename from Fterm_open_connection.
24964 Signal errors instead of returning nil. Always return nil.
24965 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
24966 Make it a noop if gpm-mouse was not activated.
24967 (syms_of_term): Update names.
24968
249692007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
24970
24971 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
24972 (init_sys_modes): Check that gpm_tty is the current tty.
24973
24974 * alloc.c (allocate_terminal): Set the vector size to only count the
24975 lisp fields. Initialize those to nil.
24976 (mark_object): Don't treat terminals specially.
24977 (mark_terminal): Remove.
24978 (mark_terminals): Use mark_object instead.
24979
24980 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
24981 the GC to the beginning.
24982
24983 * indent.h:
24984 * indent.c: Use EMACS_INT for ints coming from Elisp data.
24985
24986 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
24987
249882007-09-25 Jason Rumney <jasonr@gnu.org>
24989
24990 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
24991
24992 * w32console.c (create_w32cons_output): Remove.
24993
24994 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
24995
24996 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
24997 (reset_sys_modes): Use reset_terminal_modes_hook.
24998
249992007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25000
25001 * eval.c (do_autoload): Don't output any message.
25002
250032007-09-24 Juri Linkov <juri@jurta.org>
25004
25005 * emacs.c (standard_args): Change priority of "--no-splash"
25006 from 40 to 3. Add "--no-desktop" with the same priority.
25007
250082007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25009
25010 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25011 and optimize the case where they are all 1.
25012
250132007-09-23 Johannes Weiner <hannes@saeurebad.de>
25014
25015 * lisp.h (abs): Define if not defined.
25016 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25017 Don't define `abs', since it's defined in lisp.h.
25018
250192007-09-22 Eli Zaretskii <eliz@gnu.org>
25020
25021 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25022 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25023 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25024 (init_tty): Use DEV_TTY instead of "/dev/tty".
25025 [WINDOWSNT]: No need to protect from NAME arg being null.
25026
250272007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25028
25029 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25030 up the tty state.
25031
250322007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25033
25034 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25035 (gpm_tty): Change its type.
25036 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25037 (gpm_tty): Change its type and initialize it.
25038 (Fterm_open_connection): Check the frame is indeed a tty.
25039 Use the new gpm_tty.
25040 (Fterm_close_connection): Use the new gpm_tty.
25041 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25042 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25043
250442007-09-21 Juanma Barranquero <lekktu@gmail.com>
25045
25046 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25047 underline_color, to draw strike-through.
25048
250492007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25050
25051 * lisp.h (allocate_terminal): Declare.
25052
25053 * window.c (candidate_window_p): Consider frames that are being placed
25054 by the user as somewhere between visible and iconified.
25055 (window_loop): Prefer windows on the current frame.
25056 (Fselect_window): Move the use of select-frame to the beginning so we
25057 can just delegate all the work (it'll call us back anyway).
25058
25059 * frame.c (Qdisplay_environment_variable):
25060 * frame.h (Qdisplay_environment_variable): Delete.
25061
25062 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25063 of the first arg, since that value may be a union.
25064
25065 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25066 parameter rather than Qdisplay_environment_variable. If all else
25067 fails, look for DISPLAY in initial-environment.
25068
250692007-09-21 Glenn Morris <rgm@gnu.org>
25070
25071 * Makefile.in (emacstool): Remove target.
25072 (lisp, shortlisp): Remove termdev.elc.
25073
250742007-09-21 Markus Triska <markus.triska@gmx.at>
25075
25076 * xterm.c (x_delete_display): Compile session management conditionally.
25077
250782007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25079
25080 * callproc.c (getenv_internal_1): New function.
25081 (getenv_internal): Use it.
25082 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25083
25084 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25085 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25086 (Fset_terminal_parameter): Work with dead terminals as well.
25087 (Fmodify_terminal_parameters): Remove.
25088
25089 * terminal.c (get_terminal): Handle terminals.
25090 Make sure the terminal returned is live.
25091 (create_terminal): Use allocate_terminal.
25092 (mark_terminals): Move to alloc.c.
25093 (delete_terminal): Use terminal->name as liveness status.
25094 NULL out fields after freeing their contents.
25095 Don't deallocate the object.
25096 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25097 rather than an int.
25098 (Fterminal_live_p): Accept non-integer arguments.
25099 (Fterminal_list): Return terminal objects rather than an ints.
25100
25101 * alloc.c (enum mem_type): New member for `terminal' objects.
25102 (allocate_terminal): New function.
25103 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25104 Handle terminals.
25105 (mark_terminal): New fun.
25106 (mark_terminals): Move from terminal.c.
25107
25108 * term.c (get_tty_terminal): Don't treat output_initial specially.
25109 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25110 (delete_tty): Use terminal->name as liveness status.
25111
25112 * termhooks.h (struct terminal): Make it into a pseudovector.
25113 Remove `deleted' replaced by checking `name's nullness.
25114
25115 * print.c (print_object): Handle terminals.
25116
25117 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25118 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25119
25120 * frame.c (make_terminal_frame):
25121 * keyboard.c (tty_read_avail_input):
25122 * w32term.c (x_delete_terminal):
25123 * xfns.c (Fx_create_frame, x_create_tip_frame):
25124 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25125
251262007-09-20 Glenn Morris <rgm@gnu.org>
25127
25128 * process.c (Fmake_network_process): Doc fix.
25129
251302007-09-19 Jason Rumney <jasonr@gnu.org>
25131
25132 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25133
251342007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25135
25136 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25137 Fix a C warning regarding variable constness.
25138
25139 * xterm.c (handle_one_xevent): Fix a C warning.
25140
251412007-09-18 Jason Rumney <jasonr@gnu.org>
25142
25143 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25144
251452007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25146
25147 * gtkutil.c (gdpy_def): New variable.
25148 (xg_initialize): Initialize gdpy_def.
25149 (xg_display_close): If no other display exists, set gdpy_def to a
25150 new connection.
25151
251522007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25153
25154 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25155 when we have no file name for the icon.
25156 (xg_tool_bar_expose_callback): Remove.
25157 (xg_create_tool_bar): Don't connect expose signal to
25158 xg_tool_bar_expose_callback.
25159 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25160
251612007-09-16 Andreas Schwab <schwab@suse.de>
25162
25163 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25164 values instead of zapping them.
25165
251662007-09-14 Glenn Morris <rgm@gnu.org>
25167
25168 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25169 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25170 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25171 scope and rename to omfib_buffer for clarity.
25172 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25173
251742007-09-14 Kenichi Handa <handa@m17n.org>
25175
25176 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25177
251782007-09-13 Jason Rumney <jasonr@gnu.org>
25179
25180 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25181
25182 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25183
25184 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25185 (mac_term_init): Call here instead, passing rif.
25186
251872007-09-13 Glenn Morris <rgm@gnu.org>
25188
25189 * s/hpux.h: No longer define `static' as nothing.
25190
251912007-09-13 Johan Bockgård <bojohan@gnu.org>
25192
25193 * callint.c (Fcall_interactively): Remove unused var `fun'.
25194
251952007-09-12 Romain Francoise <romain@orebokech.com>
25196
25197 * window.c (prefer_window_split_horizontally, display_buffer):
25198 Revert 2007-09-08 change.
25199
252002007-09-12 Glenn Morris <rgm@gnu.org>
25201
25202 * alloca.c: Remove file.
25203 * Makefile.in (alloca): Do not undef.
25204 (allocaobj, alloca.o): Remove.
25205 (otherobj): Remove allocaobj.
25206 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25207 * regex.c (C_ALLOCA): Remove all references and code that was only
25208 used when this was defined.
25209 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25210 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25211 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25212
25213 * Makefile.in (SOURCES, unlock, relock): Delete.
25214
25215 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25216 (menu_grab_callback): All uses changed.
25217
25218 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25219 (x_reply_selection_request): All uses changed.
25220
252212007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25222
25223 * lread.c (load_warn_old_style_backquotes): Change message to look
25224 better when it appears in the middle of byte-compiler messages.
25225
252262007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25227
25228 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25229
25230 * xterm.c (x_create_terminal): Add comment.
25231
25232 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25233
252342007-09-10 Richard Stallman <rms@gnu.org>
25235
25236 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25237
252382007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25239
25240 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25241 (DEFUN): Document `intspec', use it instead of `prompt'.
25242
25243 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25244
25245 * data.c (Finteractive_form): If the interactive specification starts
25246 with a `(', use it as a Lisp form.
25247
25248 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25249 name and file modes.
25250
25251 * callint.c (Fcall_interactively): Comment fixes.
25252
252532007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25254
25255 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25256 and compiled functions.
25257
252582007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25259
25260 * window.c (prefer_window_split_horizontally): New variable.
25261 (display_buffer): Consider splitting window horizontally depending
25262 on prefer_window_split_horizontally.
25263
252642007-09-08 Eli Zaretskii <eliz@gnu.org>
25265
25266 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25267
252682007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25269
25270 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25271
25272 * frame.c (x_set_frame_parameters): Check number is positive before
25273 using XFASTINT.
25274
25275 * window.c (freeze_window_start): Don't presume selected_window holds
25276 a window object.
25277 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25278
252792007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25280
25281 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25282
252832007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25284
25285 * window.c (Vsplit_window_preferred_function): New var.
25286 (Fdisplay_buffer): Use it.
25287 (syms_of_window): Export, and initialize it.
25288
252892007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25290
25291 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25292
252932007-09-06 Glenn Morris <rgm@gnu.org>
25294
25295 * gtkutil.c (menu_grab_callback) <cnt>:
25296 * xselect.c (x_reply_selection_request) <cnt>: Move static
25297 variable to file scope.
25298
252992007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25300
25301 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25302 consistent values of selected_frame and selected_window.
25303
253042007-09-04 Jason Rumney <jasonr@gnu.org>
25305
25306 * w32console.c (initialize_w32_display): Zero unused hooks.
25307
253082007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25309
25310 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25311 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25312
253132007-09-04 Jason Rumney <jasonr@gnu.org>
25314
25315 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25316 in w32console.c. Set up input. Remove XXX comments that have been
25317 confirmed as correct.
25318
25319 * s/ms-w32.h (MULTI_KBOARD): Define.
25320
25321 * w32console.c (one_and_only_w32cons): Remove.
25322 (initialize_w32_display): Take terminal argument.
25323
25324 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25325 initialize_w32_display.
25326 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25327
25328 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25329
25330 * keyboard.c (discard_mouse_events): Discard it.
25331 (make_lispy_event): Translate it to a lisp event.
25332 (lispy_wheel_names): Add wheel-left and right events.
25333 (syms_of_keyboard): Enlarge wheel_syms.
25334
25335 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25336 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25337
25338 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25339
25340 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25341 from WM_MOUSEHWHEEL.
25342 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25343
25344 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25345 terminal.
25346
25347 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25348 keyboard for the terminal.
25349
253502007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25351
25352 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25353 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25354 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25355 and resume-tty-function to resume-tty-hook.
25356 (Fsuspend_tty, Fresume_tty): Use new names.
25357
253582007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25359
25360 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25361 if it starts with "n:".
25362
253632007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25364
25365 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25366
253672007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25368
25369 * frame.h:
25370 * frame.c (Qterm_environment_variable): Remove.
25371 (syms_of_frame): Don't init and staticpro it.
25372
25373 * callproc.c (getenv_internal): Remove special case for $TERM.
25374
25375 * callproc.c (Vinitial_environment): New variable.
25376 (set_initial_environment): Initialize it.
25377 (syms_of_callproc): Declare it.
25378 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25379 TERM under which a process runs is never related to the TERM in which
25380 Emacs is running.
25381
253822007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25383
25384 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25385 * s/darwin.h: ... do it here.
25386
253872007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25388
25389 * lisp.h (set_initial_environment): Rename from set_global_environment.
25390
25391 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25392 removed by mistake on the multi-tty branch.
25393
25394 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25395 (Fmodify_frame_parameters): Return a value.
25396
25397 * image.c (png_load): Comment-out var only used in commented-out code.
25398
25399 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25400 before passing it to mark_object.
25401
25402 * xfaces.c (internal_resolve_face_name): Return a value.
25403 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25404
25405 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25406 (x_icon): Comment-out var only used in commented-out code.
25407
254082007-08-29 Romain Francoise <romain@orebokech.com>
25409
25410 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25411 QUIT hasn't been provided.
25412
254132007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25414
25415 * callproc.c (child_setup, getenv_internal): Use the
25416 display-environment-variable and term-environment-variable frame params.
25417 (set_initial_environment): Initialise Vprocess_environment.
25418
25419 * config.in: Disable multi-keyboard support on a mac.
25420
25421 * frame.c (Qterm_environment_variable)
25422 (Qdisplay_environment_variable): New variables.
25423 (syms_of_frame): Intern and staticpro them.
25424 (Fmake_terminal_frame): Disable output method test.
25425
25426 * frame.h: Declare them here.
25427
25428 * macfns.c (x_set_mouse_color): Get rif from the frame.
25429 (x_set_tool_bar_lines): Don't use updating_frame.
25430 (mac_window): Add 2 new parameters for consistency with other systems.
25431 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25432 frame parameters following what is done in X11 and w32. Don't use
25433 FRAME_MAC_DISPLAY_INFO.
25434 (Fx_open_connection, start_hourglass): Remove window-system check.
25435 (x_create_tip_frame): Get the keyboard from the terminal.
25436
25437 * macmenu.c: Reorder includes.
25438 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25439
25440 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25441 terminal parameter.
25442 (x_clear_frame): Add a frame parameter.
25443 (note_mouse_movement): Get rif from the frame.
25444 (mac_term_init): Initialize the terminal.
25445 (mac_initialize): Make static and move terminal initialization ...
25446 (mac_create_terminal): ... to this new function.
25447
25448 * macterm.h (struct mac_display_info): Add terminal.
25449 (mac_initialize): Delete declaration.
25450
25451 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25452
25453 * sysdep.c: Comment out text after #endif.
25454
25455 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25456 is defined. Better initialize ttys in windows. Use terminal
25457 specific mouse_position_hook.
25458
25459 * termhooks.h (union display_info): Add mac_display_info.
25460
25461 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25462 Set the default minibuffer frame, window_system and the rest of the
25463 frame parameters following what is done in X11.
25464
25465 * w32term.c (w32_initialize): Make static.
25466
25467 * xselect.c (x_handle_selection_clear): Only access
25468 terminal->kboard when MULTI_KBOARD is defined.
25469
25470 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25471 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25472
254732007-08-29 Jason Rumney <jasonr@gnu.org>
25474
25475 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25476 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25477
25478 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25479 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25480
25481 * keyboard.c (restore_kboard_configuration): Only define when
25482 MULTI_KBOARD defined.
25483
25484 * makefile.w32-in: Update dependancies from Makefile.in.
25485 (OBJ1): Add terminal.$(O)
25486
25487 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25488 Don't define function body.
25489 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25490
25491 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25492
25493 * w32.c (request_sigio, unrequest_sigio): Remove.
25494
25495 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25496 (w32con_clear_frame, w32con_clear_end_of_line)
25497 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25498 (w32con_delete_glyphs, w32con_set_terminal_window)
25499 (scroll_line, w32_sys_ring_bell): Add frame arg.
25500 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25501 Add terminal arg.
25502 (PICK_FRAME): Remove.
25503 (w32con_write_glyphs): Use frame specific terminal coding.
25504 (one_and_only_w32cons): New global variable.
25505 (initialize_w32_display): Use it for storing hooks.
25506 (create_w32cons_output): New function.
25507
25508 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25509 arg a frame.
25510
25511 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25512 Set window_system.
25513 (x_set_tool_bar_lines): Don't use updating_frame.
25514 (Fx_create_frame): Set terminal and ref count.
25515 (Fx_open_connection): Remove window-system check.
25516
25517 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25518
25519 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25520 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25521 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25522 Add frame arg.
25523 (x_delete_terminal, w32_create_terminal): New functions.
25524 (w32_term_init): Create a terminal.
25525 (w32_initialize): Move terminal specific initialization to
25526 w32_create_terminal.
25527
25528 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25529 (w32_clear_rect, w32_clear_area): Use background from frame.
25530 (w32_display_info): Add terminal.
25531 (w32_sys_ring_bell, x_delete_display): Declare here.
25532
25533 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25534
25535 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25536
255372007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25538
25539 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25540 Fix get_named_tty calls for the controlling tty.
25541
255422007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25543
194d44e7 25544 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25545
255462007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25547
25548 * term.c (tty_insert_glyphs): Add missing first parameter.
25549
255502007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25551
25552 * buffer.c (Fbuffer_list, Fbury_buffer):
25553 Take frame->buried_buffer_list into account.
25554
25555 * cm.c (current_tty): New variable, for cmputc().
25556 (cmputc): Use it.
25557 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25558 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25559 (cmgoto): Add tty parameter. Pass it on to calccost().
25560 Use emacs_tputs() instead of tputs().
25561
25562 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25563 tputs().
25564 (current_tty): New variable, for cmputc().
25565 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25566
25567 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25568 (internal_condition_case, internal_condition_case_1)
25569 (internal_condition_case_2): Don't abort when x_catching_errors.
25570
25571 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25572 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25573 prevent crashes caused by bogus longjmps in read_char.
25574
25575 * keymap.h (Fset_keymap_parent): Add EXFUN.
25576
25577 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25578 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25579 Remove redundant definition.
25580
25581 * macfns.c (x_set_mouse_color, x_make_gc):
25582 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25583
25584 * w32term.c (x_free_frame_resources):
25585 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25586 (w32_initialize): Use the accessor macros for terminal characteristics.
25587
25588 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25589 Use the accessor macros for terminal characteristics.
25590 * msdos.c (internal_terminal_init): Use the accessor macros for
25591 terminal characteristics.
25592 (ScreenVisualBell, internal_terminal_init):
25593 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25594
25595 * termopts.h (no_redraw_on_reenter): Declare.
25596
25597 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25598 (mark_terminals, mark_ttys): Declare.
25599 (Fgarbage_collect): Call them.
25600 (mark_object): Mark buried_buffer_list.
25601
25602 * prefix-args.c: Include stdlib.h for exit.
25603
25604 * syssignal.h: Add comment.
25605
25606 * indent.c: Include stdio.h.
25607
25608 * window.h (Vinitial_window_system): Declare.
25609 (Vwindow_system): Delete declaration.
25610
25611 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25612
25613 * image.c (lookup_image): Don't initialize `c' until the xasserts
25614 have been run.
25615
25616 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25617 FRAME_FOREGROUND_PIXEL.
25618
25619 * print.c (print_preprocess): Don't lose print_depth levels while
25620 iterating.
25621
25622 * widget.c (update_from_various_frame_slots):
25623 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25624
25625 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25626 frames.
25627 (window_internal_height): Remove bogus make_number call.
25628 (init_window_once): Call make_terminal_frame with two zero parameters.
25629
25630 * fileio.c (Fread_file_name): Update comment.
25631
25632 * callint.c (Fcall_interactively):
25633 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25634 Make sure it is correctly unwound.
25635
25636 * xsmfns.c (x_session_close): New function.
25637
25638 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25639 Delete declarations.
25640
25641 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25642 (x_output): Remove background_pixel and foreground_pixel fields.
25643 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25644 (x_delete_device, x_session_close): Declare.
25645
25646 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25647 (read_filtered_event): Call `read_char' with a local
25648 `wrong_kboard_jmpbuf'.
25649
25650 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25651 Don't call single_kboard_state. Use FRAME_RIF.
25652
25653 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25654 systems.
25655
25656 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25657 (Fframe_with_environment, Fset_input_meta_mode)
25658 (Fset_quit_char): EXFUN.
25659 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25660 (init_sys_modes, reset_sys_modes): Update prototypes.
25661 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25662
25663 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25664 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25665 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25666 Delete declarations.
25667 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25668 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25669 New declarations.
25670
25671 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25672 already does that during init_display(). Call syms_of_keymap
25673 before syms_of_keyboard. Call `syms_of_terminal'.
25674 Call set_initial_environment, not set_process_environment.
25675 (shut_down_emacs): Call reset_all_sys_modes() instead of
25676 reset_sys_modes().
25677
25678 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25679 (internal_resolve_face_name, resolve_face_name_error): New functions.
25680 (resolve_face_name): Protect against loops and errors thrown by Fget.
25681 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25682 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25683
25684 * scroll.c: Replace CURTTY() with local variables throughout the
25685 file (where applicable).
25686 (calculate_scrolling, calculate_direct_scrolling)
25687 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25688 characteristics.
25689
25690 * keymap.c (Vfunction_key_map): Remove.
25691 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25692 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25693 (Vkey_translation_map): Remove.
25694 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25695 (Fdescribe_buffer_bindings)
25696 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25697 Update for terminal-local key-translation-map.
25698
25699 * Makefile.in (callproc.o): Update dependencies.
25700 (lisp, shortlisp): Add termdev.elc.
25701 (obj): Add terminal.o.
25702 (terminal.o): Add dependencies.
25703 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25704 (data.o, fns.o): Add termhooks.h dependency.
25705 (SOME_MACHINE_LISP): Add dnd.elc.
25706 (minibuf.o): Fix typo.
25707 Update dependencies.
25708
25709 * data.c (do_symval_forwarding, store_symval_forwarding)
25710 (find_symbol_value): Use the selected frame's keyboard, not
25711 current_kboard.
25712
25713 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25714 Vwindow_system.
25715
25716 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25717 Fmenu_bar_open.
25718 (syms_of_xmenu): Update defsubr.
25719 (mouse_position_for_popup, Fx_popup_menu)
25720 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25721 (set_frame_menubar, free_frame_menubar)
b97439ce 25722 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25723 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25724 an X frame.
25725
25726 * xselect.c (x_own_selection): Abort if not an X frame.
25727 (some_frame_on_display): Check if it is an X frame.
25728 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25729
25730 * coding.c: Include frame.h and termhooks.h.
25731 (terminal_coding, keyboard_coding): Delete.
25732 (Fset_terminal_coding_system_internal)
25733 (Fset_keyboard_coding_system_internal)
25734 (Fkeyboard_coding_system)
25735 (Fterminal_coding_system): Add a terminal parameter.
25736 Get terminal_coding from the terminal.
25737 (init_coding_once): Don't call setup_coding_system here.
25738
25739 * dispextern.h (set_scroll_region, turn_off_insert)
25740 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25741 (tty_clear_end_of_line, tty_setup_colors)
25742 (delete_tty, updating_frame)
25743 (produce_special_glyphs, produce_glyphs, write_glyphs)
25744 (insert_glyphs): Remove.
25745 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25746 (tty_turn_off_highlight, get_tty_size): Add declaration.
25747 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25748
25749 * frame.h (enum output_method): Add output_initial.
25750 (struct x_output): Delete.
25751 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25752 Access foreground_pixel and background_pixel directly from the frame.
25753 (tty_display): Delete.
25754 (struct frame): Add buried_buffer_list, foreground_pixel,
25755 background_pixel and terminal. Delete kboard.
25756 (union output_data): Add tty.
25757 (FRAME_KBOARD): Get the kboard from the terminal.
25758 (FRAME_INITIAL_P): New macro.
25759 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25760 (Qterm_environment_variable, Qdisplay_environment_variable)
25761 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25762 New declarations.
25763
25764 * termchar.h (tty_output, tty_display_info): New structures.
25765 (tty_list): Declare.
25766 (FRAME_TTY, CURTTY): New macros.
25767 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25768 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25769 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25770 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25771
25772 * callproc.c: Include frame.h and termhooks.h, for terminal
25773 parameters.
25774 (add_env): New function.
25775 (child_setup): Use it.
25776 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25777 (getenv_internal): Fix get_terminal_param call.
25778 (Fgetenv_internal, egetenv): Update doc.
25779 (syms_of_callproc): Initialize Vprocess_environment to nil.
25780 Register and initialize them. Remove obsolete defvars. Update doc
25781 strings.
25782 (child_setup): Handle Vlocal_environment_variables.
25783 (getenv_internal): Add terminal parameter.
25784 Handle Vlocal_environment_variables.
25785 (Fgetenv_internal): Add terminal parameter.
25786 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25787 environment in a frame (not terminal) parameter. Update doc strings.
25788 (set_initial_environment): Rename from set_global_environment.
25789 Store Emacs environment in initial frame parameter.
25790
25791 * xdisp.c (redisplay_internal): Update references to
25792 `previous_terminal_frame'.
25793 (display_mode_line, Fformat_mode_line): Replace calls to
25794 `push_frame_kboard' with `push_kboard'.
25795 (get_glyph_string_clip_rects): Add extra parentheses and
25796 braces to prevent compiler warnings.
25797 (calc_pixel_width_or_height): Add xassert to check that the
25798 frame is alive. Don't call `lookup_image' on a termcap frame.
25799 (message2_nolog, message3_nolog, redisplay_internal)
25800 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25801 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25802 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25803 (Fx_display_pixel_width, Fx_display_pixel_height)
25804 (Fx_display_planes, Fx_display_color_cells)
25805 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25806 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25807 (Fx_display_backing_store, Fx_display_visual_class)
25808 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25809 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25810
25811 * xfns.c (x_set_foreground_color x_set_background_color)
25812 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25813 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25814 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25815 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25816 terminal that is being deleted.
25817 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25818 frame parameter, and make sure it overrides any user-supplied setting.
25819 (Fx_close_connection, Fx_synchronize): Unify argument names with
25820 the rest of the DEFUNs.
25821
25822 * dispnew.c (Fsend_string_to_terminal): Update call to
25823 `get_tty_terminal'.
25824 (Fredraw_frame, Fsend_string_to_terminal)
25825 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25826 FRAME_TERMCAP_P and FRAME_TTY.
25827 (window_change_signal): Don't believe width/height values that are
25828 impossibly small.
25829 (Vinitial_window_system): Rename from Vwindow_system.
25830 (termscript, Wcm, rif): Delete.
25831
25832 * termhooks.h (struct terminal): New struct containing the
25833 previously global text display hooks and new members NAME,
25834 DELETED and PARAM_ALIST.
25835 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25836 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25837 (FRAME_RIF): New macros.
25838 (get_terminal_param, get_device): New declarations.
25839 (termscript): Delete declaration.
25840
25841 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25842 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25843 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25844 FRAME_FOREGROUND_PIXEL.
25845 (x_fully_uncatch_errors): Disable definition.
25846 (x_scroll_bar_expose): Fix reference to foreground pixel.
25847 (XTread_socket): Disable loop on all X displays.
25848 (x_delete_terminal): Don't set terminal->deleted and let
25849 delete_terminal delete the frames on the terminal.
25850 (x_delete_display): Doc update to reflect changes in
25851 delete_terminal.
25852 (x_display_info) <terminal>: Move member earlier in the struct.
25853 (deleting_tty): Remove old variable.
25854 (Fsuspend_tty): Call clear_tty_hooks.
25855 (Fresume_tty, init_tty): Call set_tty_hooks.
25856 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25857 errors on X frames.
25858 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25859 (handle_one_xevent): Initialize `f' to NULL.
25860 (x_delete_terminal, x_create_terminal): New functions.
25861 (XTset_terminal_modes, XTreset_terminal_modes)
25862 (XTread_socket, x_connection_closed, x_term_init)
25863 (x_term_init, x_delete_display): Add terminal parameter.
25864 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25865 X connections.
25866
25867 * frame.c: Include termchar.h.
25868 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25869 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25870 (Qdisplay_environment_variable): New vars.
25871 (Fframep): Deal with output_initial.
25872 (Fframe-live-p): Doc fix.
25873 (Fwindow-system): New function.
25874 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25875 (make_terminal_frame): Don't create frames on a terminal that is
25876 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25877 (store_frame_param): Check for found_for_frame before calling XFRAME.
25878 (Fmake_terminal_frame): Handle NULL tty names correctly.
25879 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25880 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25881 frames to refer to a deleted frame in their 'environment parameter.
25882 (Fframe_with_environment): New function.
25883 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25884 (get_future_frame_param): New function.
25885 (Fmake_terminal_frame): Use it.
25886 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25887
25888 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25889 * sysdep.c (reset_sys_modes): Update for renames.
25890
25891 * keyboard.c (tty_read_avail_input): New function.
25892 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25893 (syms_of_keyboard): Defsubr them.
25894 (Fset_input_meta_mode, Fset_quit_char): New functions.
25895 (Fset_input_mode): Split to above functions.
25896 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25897 parameter. Use it in call to `read_char'.
25898 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25899 Set wrong_kboard_jmpbuf correctly in recursive calls.
25900 Use current_kboard to access Vkeyboard_translate_table.
25901 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25902 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25903 Update longjmp invocations. Remember the original current_kboard,
25904 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25905 changes it. Comment out unnecessary calls to
25906 `record_single_kboard_state' and `any_kboard_state'.
25907 Update recursive calls.
25908 (wrong_kboard_jmpbuf): Remove global variable.
25909 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
25910 Handle deleted interrupted_kboards correctly; that is a legal
25911 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
25912 and read_char calls. Abort if interrupted_kboard died in read_char.
25913 (any_kboard_state, single_kboard_state)
25914 (push_frame_kboard): Remove function.
25915 (pop_kboard): Switch out of single_kboard mode if the kboard has
25916 been deleted. Remove unused variable. Help debugging by not
25917 changing current_kboard unnecessarily. Set current_kboard to the
25918 kboard of the selected frame when the stored kboard object has
25919 been deleted before pop_kboard.
25920 (temporarily_switch_to_single_kboard): Change first parameter to a
25921 frame pointer. Throw an error when caller wants to change kboards
25922 while in single_kboard mode. Don't push_kboard if we weren't in
25923 single kboard state. Don't pop_kboard if we popped into any
25924 kboard state.
25925 (restore_kboard_configuration): Abort if pop_kboard changed the
25926 kboard in single_kboard mode. Call pop_kboard only after setting
25927 up single_kboard mode.
25928 (Frecursive_edit): Switch to single_kboard mode only in nested
25929 command loops.
25930 (cmd_error, command_loop, command_loop_1, timer_check):
25931 Comment out unnecessary call to `any_kboard_state' and
25932 `record_single_kboard_state'.
25933 (delete_kboard): Exit single_kboard mode if we have just deleted
25934 that kboard. Use FRAME_KBOARD.
25935 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
25936 `fatal_error_signal'.
25937 (record_single_kboard_state): Don't push_kboard if we weren't in
25938 single kboard state. Don't pop_kboard if we popped into any
25939 kboard state.
25940 (push_frame_kboard): Rename to push_kboard.
25941 (kbd_buffer_get_event): Use FRAME_TERMINAL.
25942 (read_avail_input): Read input from all terminals.
25943 (mark_kboards): Also mark Vkeyboard_translate_table.
25944 (kbd_buffer_store_event_hold): Simplify condition.
25945 (read_key_sequence): Reinitialize fkey and keytran at each replay.
25946 (Vkeyboard_translate_table): Move to struct kboard.
25947 (init_kboard): Initialize Vkeyboard_translate_table.
25948 (syms_of_keyboard): Use DEFVAR_KBOARD to define
25949 Vkeyboard_translate_table. Update doc strings. Update docs of
25950 local-function-key-map and function-key-map.
25951
25952 * terminal.c: New file.
25953
25954 * term.c: Include errno.h.
25955 (Vring_bell_function, device_list, initial_device)
25956 (next_device_id, ring_bell, update_begin, update_end)
25957 (set_terminal_window, cursor_to, raw_cursor_to)
25958 (clear_to_end, clear_frame, clear_end_of_line)
25959 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
25960 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
25961 (syms_of_term): Move their initialization to terminal.c.
25962 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
25963 (Ftty_display_color_cells)
25964 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
25965 (clear_tty_hooks, set_tty_hooks)
25966 (init_tty, maybe_fatal): New functions.
25967 (Ftty_type): Return nil if terminal is not on a tty instead of
25968 throwing an error. Doc update.
25969 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
25970 Doc update. Initialize new subrs and variables.
25971 (delete_tty): Use terminal->deleted.
25972 (tty_set_terminal_modes): Rename from set_terminal_modes.
25973 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
25974 (set_scroll_region): Rename to `tty_set_scroll_region'.
25975 (turn_on_insert): Rename to `tty_turn_on_insert'.
25976 (turn_off_insert): Rename to `tty_turn_off_insert'.
25977 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
25978 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
25979 (toggle_highligh): Rename to `tty_toggle_highlight'.
25980 (background_highlight): Rename to `tty_background_highlight'.
25981 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
25982 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
25983 (tty_set_scroll_region, tty_background_highlight)
25984 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
25985 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
25986 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
25987 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
25988 Add static modifier.
25989 (tty_reset_terminal_modes, tty_set_terminal_window)
25990 (tty_set_scroll_region, tty_background_highlight)
25991 (tty_highlight_if_desired, tty_cursor_to)
25992 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
25993 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
25994 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
25995 renames.
25996
259972007-08-28 Jan Djärv <jan.h.d@swipnet.se>
25998
25999 * keyboard.c: Qrtl is new.
26000 (parse_tool_bar_item): Handle :rtl keyword.
26001 (syms_of_keyboard): Intern :rtl keyword.
26002
26003 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26004
26005 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26006 so no Lisp code is executed.
26007 (file_for_image, find_rtl_image): New functions.
26008 (xg_get_image_for_pixmap): Use file_for_image.
26009 (update_frame_tool_bar): If direction is RTL, use RTL image if
26010 defined. Use Gtk stock images if defined.
26011
260122007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26013
26014 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26015 for nonexistent or zero-width glyph in composition glyph.
26016
260172007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26018
26019 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26020
26021 * xdisp.c (Finvisible_p): New function.
26022 (syms_of_xdisp): defsubr it.
26023
260242007-08-24 Juanma Barranquero <lekktu@gmail.com>
26025
26026 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26027 Doc fixes.
26028
260292007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26030
26031 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26032
260332007-08-24 Martin Rudalics <rudalics@gmx.at>
26034
26035 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26036 whether decoding has modified buffer contents.
26037
260382007-08-24 Jason Rumney <jasonr@gnu.org>
26039
26040 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26041 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26042 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26043 (init_svg_functions) [HAVE_NTGUI]: New function.
26044 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26045 (svg_load_image): Use them.
26046 (svg_load_image) [HAVE_NTGUI]: Implement background.
26047
260482007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26049
26050 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26051 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26052 (LIBX): Remove @RSVG_LIBS@.
26053 (LIBES): Add $(RSVG_LIBS).
26054
26055 * image.c (svg_load_image): Blend with specified background if exists.
26056 Use IMAGE_BACKGROUND. Add Mac OS Support.
26057
26058 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26059 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26060 Remove macros.
26061 [MAC_OSX] (socket_callback): Do nothing.
26062 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26063 ReceiveNextEvent.
26064 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26065 socket_callback.
26066 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26067
260682007-08-22 Glenn Morris <rgm@gnu.org>
26069
26070 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26071
260722007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26073
26074 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26075
26076 * image.c: Add support for SVG images. Some additional comments
26077 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26078 (svg_image_p): New function to test for SVG image.
26079 (svg_load): New function to load SVG image.
26080 (svg_load_image): New function, helper for svg_load.
26081 (Qsvg): New Lisp_object.
26082 (svg_keyword_index): New enum.
26083 (svg_format): New static `image_keyword' struct.
26084 (svg_type): New static `image_type' struct.
26085 (librsvg/rsvg.h): Include it.
26086
260872007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26088
26089 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26090
260912007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26092
26093 * lread.c (Qold_style_backquotes): New var.
26094 (syms_of_lread): Init and staticpro it.
26095 (load_warn_old_style_backquotes): New fun.
26096 (Fload): Use them to warn about old style backquotes.
26097 (end_of_file_error, Fload): Remove unused vars.
26098
26099 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26100
26101 * lread.c (Vold_style_backquotes): New var.
26102 (syms_of_lread): Init and export it to Elisp.
26103 (read1): Set it when we find an old-style (back)quote.
26104
261052007-08-22 Jason Rumney <jasonr@gnu.org>
26106
26107 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26108
261092007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26110
26111 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26112
261132007-08-19 Richard Stallman <rms@gnu.org>
26114
26115 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26116
261172007-08-19 Andreas Schwab <schwab@suse.de>
26118
26119 * alloc.c (pure): Round PURESIZE up.
26120
261212007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26122
26123 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26124 active frame.
26125
261262007-08-16 Richard Stallman <rms@gnu.org>
26127
26128 * eval.c (Fcommandp): Add parens to clarify.
26129
26130 * minibuf.c (Fall_completions): Use enum for type of table.
26131
26132 * emacs.c (USAGE2): Improve text.
26133
261342007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26135
26136 * term.c (tty_default_color_capabilities): Declare static
26137 variables in file scope, to avoid HPUX compiler problem.
26138
261392007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26140
26141 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26142 to gtk_toolbar_insert.
26143
261442007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26145
26146 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26147
26148 * insdel.c (reset_var_on_error): New fun.
26149 (signal_before_change, signal_after_change):
26150 Use it to reset (after|before)-change-functions to nil in case of error.
26151 Bind inhibit-modification-hooks to t.
26152 Don't bind (after|before)-change-functions to nil while they run.
26153
261542007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26155
26156 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26157 filling pixmap with stippled background.
26158
261592007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26160
26161 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26162 Don't use invisible frame as parent window for repositioning.
26163
261642007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26165
26166 * print.c (new_backquote_output): Rename from old_backquote_output.
26167 (print): Inverse its logic (according to its name) so as to match the
26168 behavior of new_backquote_flag in lread.c.
26169
261702007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26171
26172 * gmalloc.c (posix_memalign): New function.
26173
26174 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26175 ActivateControl/DeactivateControl here.
26176 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26177 frame-notice-user-settings is non-nil.
26178 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26179 for kEventParamFMFontStyle.
26180 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26181 mac_pass_command_to_system and mac_pass_control_to_system here.
26182 (XTread_socket): Call ActivateControl/DeactivateControl here.
26183 (XTread_socket) [TARGET_API_MAC_CARBON]:
26184 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26185 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26186 for window repositioning.
26187
261882007-08-08 Glenn Morris <rgm@gnu.org>
26189
26190 * Replace `iff' in doc-strings and comments.
26191
261922007-08-07 Chong Yidong <cyd@stupidchicken.com>
26193
26194 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26195
261962007-08-07 Martin Rudalics <rudalics@gmx.at>
26197
26198 * fileio.c (Finsert_file_contents): Run format-decode and
26199 after_insert_file_functions on entire buffer when REPLACE is
26200 non-nil and inhibit modification_hooks and point_motion_hooks.
26201 For consistency, run after_insert_file_functions iff something
26202 got inserted. Move signal_after_change and update_compositions
26203 after code running after_insert_file_functions. Make sure that
26204 undo_list doesn't record intermediate steps of the decoding process.
26205
262062007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26207
26208 * emacs.c (main)
26209 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26210 Call malloc_enable_thread on interactive startup.
26211
26212 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26213 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26214 [USE_PTHREAD]: Conditionalize with it.
26215 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26216 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26217 New functions.
26218
262192007-08-06 Chong Yidong <cyd@stupidchicken.com>
26220
26221 * xdisp.c (redisplay_window): When restoring original buffer
26222 position, make sure it is still valid.
26223
26224 * image.c (png_load): Ignore png-supplied background color.
26225
262262007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26227
26228 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26229 Use kCFAbsoluteTimeIntervalSince1970.
26230
26231 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26232 New variable.
26233 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26234 event loop should be quit.
26235 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26236 Quit dialog event loop if quit_dialog_event_loop is set.
26237
26238 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26239 (Selection): New typedef. Use instead of ScrapRef.
26240 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26241 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26242 (mac_clear_selection): Rename from clear_scrap.
26243 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26244 scrap_has_target_type. All uses changed.
26245 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26246 (mac_selection_has_target_p): New functions.
26247 (mac_put_selection_value): Rename from put_scrap_string.
26248 (mac_get_selection_value): Rename from get_scrap_string.
26249 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26250 (put_scrap_private_timestamp, scrap_has_target_type)
26251 (get_scrap_private_timestamp): Remove functions.
26252 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26253 (x_own_selection, x_get_local_selection):
26254 Use mac_valid_selection_value_p.
26255 (x_own_selection): Don't use put_scrap_private_timestamp.
26256 Record OWNERSHIP-INFO into Vselection_alist instead.
26257 (x_get_local_selection): Don't check type if request is local.
26258 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26259 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26260
262612007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26262
26263 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26264 add comment explaining why.
26265
262662007-08-03 Richard Stallman <rms@gnu.org>
26267
26268 * fileio.c (Fvisited_file_modtime): Use make_time.
26269
262702007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26271
26272 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26273 build.
26274
262752007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26276
26277 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26278
262792007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26280
26281 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26282
262832007-07-30 Richard Stallman <rms@gnu.org>
26284
26285 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26286
262872007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26288
26289 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26290
262912007-07-28 Nick Roberts <nickrob@snap.net.nz>
26292
26293 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26294 remote default-directory.
26295
26296 * buffer.c (mode-line-format): Update doc string.
26297
262982007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26299
26300 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26301 scroll bar gap.
26302 (x_scroll_bar_create): Set bar->fringe_extended_p.
26303 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26304 on frame edge. Check fringe background extension. Don't clear
26305 extended fringe background area.
26306
26307 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26308 (w32_fill_area): Enclose multiple statements with do ... while (0).
26309
26310 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26311 Extend fringe background to scroll bar gap.
26312 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26313 Set bar->fringe_extended_p.
26314 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26315 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26316 background extension. Don't clear extended fringe background area.
26317
26318 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26319 New member fringe_extended_p.
26320
263212007-07-25 Glenn Morris <rgm@gnu.org>
26322
26323 * Relicense all FSF files to GPLv3 or later.
26324
26325 * COPYING: Switch to GPLv3.
26326
263272007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26328
26329 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26330
26331 * data.c (Finteractive_form): Check for the presence of an
26332 `interactive-form' symbol property more thoroughly.
26333
26334 * data.c (Finteractive_form): Use an `interactive-form' property if
26335 present, analogous to the function-documentation property.
26336
263372007-07-24 Jason Rumney <jasonr@gnu.org>
26338
26339 * w32fns.c (x_real_positions): Get real position from OS instead of
26340 calculating it.
26341
263422007-07-23 Jason Rumney <jasonr@gnu.org>
26343
26344 * filelock.c (current_lock_owner): Allow for @ sign in username.
26345
263462007-07-22 Nick Roberts <nickrob@snap.net.nz>
26347
26348 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26349 remote default-directory.
26350
26351 * buffer.c (mode-line-format): Describe above case in doc string.
26352
263532007-07-20 Eli Zaretskii <eliz@gnu.org>
26354
26355 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26356 Define if not defined.
26357
263582007-07-18 Jason Rumney <jasonr@gnu.org>
26359
26360 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26361
263622007-07-18 Richard Stallman <rms@gnu.org>
26363
26364 * data.c (Fsetq_default): Doc fix.
26365
26366 * eval.c (Fsetq): Doc fix.
26367
263682007-07-18 Juanma Barranquero <lekktu@gmail.com>
26369
26370 * coding.c (Ffind_operation_coding_system):
26371 * eval.c (For, Fand): Doc fixes.
26372 Reported by Johan Bockgård.
26373
263742007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26375
26376 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26377
26378 * xterm.h: Declare x_ewmh_activate_frame.
26379
26380 * xterm.c (x_ewmh_activate_frame): New function.
26381 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26382
263832007-07-17 Martin Rudalics <rudalics@gmx.at>
26384
26385 * window.c (Fdisplay_buffer): If largest or LRU window is the
26386 only window, split it even if it is not eligible for splitting.
26387 This restores the original behavior broken by the 2007-07-15
26388 change.
26389
263902007-07-17 Glenn Morris <rgm@gnu.org>
26391
26392 * abbrev.c (abbrev_check_chars): New function.
26393 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26394 Call abbrev_check_chars to check abbrev characters are word
26395 constituents. Doc fix.
26396
263972007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26398
26399 * process.c (Fstart_process, Fmake_network_process)
26400 (read_process_output): Fix up last changes.
26401
264022007-07-16 Eli Zaretskii <eliz@gnu.org>
26403
26404 * makefile.w32-in (clean): Don't delete *~.
26405
264062007-07-16 Andreas Schwab <schwab@suse.de>
26407
26408 * window.c (Fdisplay_buffer): Use NILP.
26409 (Fset_window_scroll_bars): Likewise.
26410
264112007-07-15 Martin Rudalics <rudalics@gmx.at>
26412
26413 * window.c (window_min_size_2): New function.
26414 (window_min_size_1, size_window, Fdisplay_buffer)
26415 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26416 windows without mode- or header-lines when window-min-height is
26417 too small.
26418 (size_window): Reset nodelete_p after testing it, following an
26419 earlier note by Kim F. Storm.
26420 (display_buffer): Do not set split_height_threshold to twice the
26421 value of window_min_height to avoid changing the value of a
26422 customizable variable. Rather explicitly check whether the
26423 height of the window that shall be splitted is at least as large
26424 as split_height_threshold.
26425 (Fwindow_full_width_p): New defun.
26426 (syms_of_window): Defsubr it.
26427
26428 * window.h: Add EXFUN for Fwindow_full_width_p.
26429
264302007-07-14 Jason Rumney <jasonr@gnu.org>
26431
26432 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26433
264342007-07-14 Richard Stallman <rms@gnu.org>
26435
26436 * eval.c (maybe_call_debugger): New function.
26437 (find_handler_clause): Use maybe_call_debugger.
26438 Call it when the handler says `debug'.
26439 Eliminate DEBUGGER_VALUE_PTR.
26440 (Fsignal): Eliminate debugger_value.
26441 (Qdebug): New variable.
26442 (syms_of_eval): Initialize it.
26443
264442007-07-14 Juanma Barranquero <lekktu@gmail.com>
26445
26446 * eval.c (Fprogn):
26447 * keyboard.c (Ftrack_mouse):
26448 * print.c (Fwith_output_to_temp_buffer):
26449 * window.c (Fsave_window_excursion): Doc fix.
26450
264512007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26452
26453 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26454
264552007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26456
26457 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26458 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26459 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26460 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26461 Remove unused encoding_carryover.
26462 * process.c: Adjust all functions accordingly.
26463
264642007-07-12 Richard Stallman <rms@gnu.org>
26465
26466 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26467
264682007-07-11 Jason Rumney <jasonr@gnu.org>
26469
26470 * makefile.w32-in (LIBS): Include OLE32.
26471
26472 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26473 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26474
264752007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26476
26477 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26478 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26479 from a Lisp_Object into a bare pointer.
26480 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26481 Adjust the code correspondingly.
26482
26483 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26484
26485 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26486 (term_show_mouse_face): Remove unused var `j'.
26487 (handle_one_term_event): Remove unused vars `i' and `j'.
26488 Don't cast return value of ttyname since it's not necessary.
26489
264902007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26491
26492 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26493 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26494
26495 * fns.c (map_char_table): Use an array of int for `indices' rather than
26496 an array of Lisp_Objects (which are only ever integers anyway).
26497 (Fmap_char_table): Update caller.
26498 * lisp.h: Update prototype.
26499 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26500 * fontset.c (Ffontset_info):
26501 * casetab.c (set_case_table): Update callers.
26502
26503 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26504
26505 * keymap.c (struct accessible_keymaps_data)
26506 (struct where_is_internal_data): New structures.
26507 (accessible_keymaps_1, where_is_internal_1): Use them to change
26508 interface to adhere to the one used by map_keymap.
26509 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26510 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26511
26512 * keymap.h (map_keymap_function_t): More informative prototype.
26513
265142007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26515
26516 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26517 (looking_at_1): Don't change search_regs and last_thing_searched
26518 if `inhibit-changing-match-data' is non-nil.
26519 (string_match_1, search_buffer, set_search_regs): Likewise.
26520 (syms_of_search): Add Lisp level definition for
26521 `inhibit-changing-match-data' and set it to nil.
26522 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26523 start and end of the match, instead of using values in search_regs.
26524
265252007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26526
26527 * minibuf.c (Fcompleting_read): New value `confirm-only'
26528 for `require-match'.
26529
265302007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26531
26532 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26533 part of the 2007-06-27 change to syms_of_fileio.
26534
265352007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26536
26537 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26538 Check WINDOWP before using XWINDOW. Consolidate return statements.
26539
265402007-06-27 Richard Stallman <rms@gnu.org>
26541
26542 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26543
265442007-06-27 Juanma Barranquero <lekktu@gmail.com>
26545
26546 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26547
265482007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26549
26550 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26551 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26552 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26553 (_free_internal, memalign): Use them.
26554 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26555 Initialize to PTHREAD_MUTEX_INITIALIZER.
26556 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26557 (morecore_nolock): Rename from morecore. All uses changed.
26558 Use only nolock versions of internal allocation functions.
26559 (_malloc_internal_nolock, _realloc_internal_nolock)
26560 (_free_internal_nolock): New functions created from
26561 _malloc_internal, _realloc_internal, and _free_internal.
26562 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26563 Copy hook value to automatic variable before its use.
26564 (memalign): Copy hook value to automatic variable before its use.
26565
265662007-06-26 Kenichi Handa <handa@m17n.org>
26567
26568 * coding.c (Ffind_operation_coding_system): Docstring improved.
26569 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26570
265712007-06-25 David Kastrup <dak@gnu.org>
26572
26573 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26574 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26575 cater for additional parameter.
26576
26577 * keymap.h: Adjust number of parameters to `current-active-maps'.
26578
26579 * doc.c (Fsubstitute_command_keys): Adjust call of
26580 `current-active-maps'.
26581
265822007-06-25 David Kastrup <dak@gnu.org>
26583
26584 * callint.c (Fcall_interactively): Make the parsing of interactive
26585 specs somewhat more readable.
26586
265872007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26588
26589 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26590 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26591 if extended background has already been filled.
26592
265932007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26594
26595 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26596 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26597
26598 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26599 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26600 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26601 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26602 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26603 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26604 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26605 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26606 Run timers during dialog popup.
26607 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26608
266092007-06-21 Jason Rumney <jasonr@gnu.org>
26610
26611 * image.c (convert_mono_to_color_image): Swap fore and background.
26612
266132007-06-20 Jason Rumney <jasonr@gnu.org>
26614
26615 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26616 (w32_free_bdf_font): Unmap memory not handle.
26617
266182007-06-20 Sam Steingold <sds@gnu.org>
26619
26620 * gmalloc.c (__morecore): Fix the declaration to comply with the
26621 definition.
26622
266232007-06-20 Juanma Barranquero <lekktu@gmail.com>
26624
26625 * w32term.c (w32_delete_display): Remove leftover declaration.
26626 (w32_define_cursor, w32_initialize): Make static.
26627
26628 * w32.c (_wsa_errlist): Fix typo in error message.
26629 (init_environment): Ignore any environment variable from the
26630 registry having a null value.
26631
266322007-06-20 Glenn Morris <rgm@gnu.org>
26633
26634 * Makefile.in (LIBGIF): Default to -lgif.
26635
266362007-06-17 Jason Rumney <jasonr@gnu.org>
26637
26638 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26639 unicode strings.
26640
266412007-06-16 Juanma Barranquero <lekktu@gmail.com>
26642
26643 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26644 Fix typo in docstring.
26645
266462007-06-16 Eli Zaretskii <eliz@gnu.org>
26647
26648 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26649 and their keybindings.
26650
266512007-06-15 Chong Yidong <cyd@stupidchicken.com>
26652
26653 * composite.c (update_compositions): Fix last fix.
26654
266552007-06-14 Jason Rumney <jasonr@gnu.org>
26656
26657 * w32.c (get_process_times_fn): New function pointer.
26658 (globals_of_w32): Intialize it if present in kernel32.dll.
26659 (w32_get_internal_run_time): New function.
26660
26661 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26662
266632007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26664
26665 * composite.c (update_compositions): Check the validness of
26666 compositions.
26667
266682007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26669
26670 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26671 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26672
26673 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26674 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26675
26676 * macgui.h (USE_MAC_TOOLBAR): New define.
26677
26678 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26679 Return immediately unless popup is activated.
26680
26681 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26682 background to scroll bar gap.
26683 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26684 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26685 scroll bars on frame edge. Check fringe background extension.
26686 Don't clear extended fringe background area.
26687 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26688 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26689 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26690 [USE_MAC_TOOLBAR]: New macros.
26691 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26692 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26693 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26694 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26695 [USE_MAC_TOOLBAR]: New functions.
26696 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26697 manually if previous repositioning has failed.
26698 (mac_handle_keyboard_event): Use precomputed event kind.
26699 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26700 as tool bar item click. Handle mouse movement over tool bar items.
26701
26702 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26703 toolbar_win_gravity.
26704 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26705 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26706 Add externs.
26707
26708 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26709 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26710
267112007-06-14 Chong Yidong <cyd@stupidchicken.com>
26712
26713 * image.c (search_image_cache): Remove unused variable.
26714
267152007-06-13 Chong Yidong <cyd@stupidchicken.com>
26716
26717 * xfns.c, xmenu.c: Link to xaw3d if available.
26718
267192007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26720
26721 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26722 frame_foreground and frame_background.
26723
26724 * image.c (lookup_image): Save frame foreground and background colors.
26725 (search_image_cache): Check if saved and current frame colors match.
26726
267272007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26728
26729 * regex.c (regex_compile): Remove the `regnum' counter.
26730 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26731
267322007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26733
26734 * term.c: Include intervals.h to declare Fget_text_property.
26735
267362007-06-10 Jason Rumney <jasonr@gnu.org>
26737
26738 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26739
267402007-06-08 Juanma Barranquero <lekktu@gmail.com>
26741
26742 * callint.c (Fcall_interactively):
26743 * editfns.c (Fdelete_and_extract_region):
26744 * fileio.c (Fread_file_name):
26745 * fns.c (Fmapconcat):
26746 * keyboard.c (cmd_error_internal):
26747 * keymap.c (Fkey_description):
26748 * lread.c (openp):
26749 * minibuf.c (read_minibuf):
26750 * search.c (wordify):
26751 * sunfns.c (sel_read):
26752 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26753 * xfns.c (x_default_scroll_bar_color_parameter):
26754 * xmenu.c (menu_help_callback):
26755 * xselect.c (Fx_get_atom_name):
26756 * xterm.c (x_term_init): Use empty_unibyte_string.
26757
267582007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26759
26760 * alloc.c (init_strings): Initialize canonical empty strings.
26761 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26762 canonical empty string when the requested size is 0.
26763
26764 * emacs.c (empty_unibyte_string): Rename from empty_string.
26765 (empty_multibyte_string): New canonical empty string.
26766 (syms_of_emacs): Don't initialize empty_string.
26767
26768 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26769 string, if appropriate.
26770 (empty_unibyte_string, empty_multibyte_string): New externs.
26771 (empty_string): Remove extern.
26772
26773 * lread.c (syms_of_lread): Use empty_unibyte_string.
26774
267752007-06-07 Jason Rumney <jasonr@gnu.org>
26776
26777 * s/ms-w32.h: Don't define HAVE_TZNAME.
26778
26779 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26780
267812007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26782
26783 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26784
26785 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26786 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26787
26788 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26789 Don't call next handler.
26790 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26791 Remove argument. Install handler to application.
26792 (set_frame_menubar): Don't change deep_p.
26793 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26794 FRAME_OUTER_TO_INNER_DIFF_Y.
26795 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26796 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26797 [HAVE_DIALOGS]: New macros.
26798 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26799 Use them.
26800 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26801
26802 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26803 init_service_handler. All callers changed. Return OSStatus value.
26804
26805 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26806 All callers changed so as not to call SetPortWindowPort.
26807 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26808 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26809 mac_draw_string_common.
26810 (mac_draw_image_string_qd): Likewise.
26811 (mac_draw_string_common): Use them. Add INLINE.
26812 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26813 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26814 GetGlobalMouse.
26815 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26816 and FRAME_OUTER_TO_INNER_DIFF_Y.
26817 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26818 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26819 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26820 repositioning window to mac_handle_window_event.
26821 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26822 saving window location to mac_handle_window_event
26823 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26824 (install_menu_target_item_handler): Remove argument in extern.
26825 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26826 Also accept command events.
26827 (do_keystroke): New function created from XTread_socket.
26828 (init_command_handler): Remove functions.
26829 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26830 and save window location by kEventWindowShowing and kEventWindowHiding
26831 handlers here. Don't call next handler for window state change and
26832 focus events.
26833 (mac_handle_application_event, mac_handle_keyboard_event)
26834 [TARGET_API_MAC_CARBON]: New functions.
26835 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26836 kEventWindowShowing and kEventWindowHiding events. Move installation
26837 of mouse, font, text input and menu target item handlers to
26838 install_application_handler.
26839 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26840 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26841 New function.
26842 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26843 Register it.
26844 (XTread_socket) [TARGET_API_MAC_CARBON]:
26845 Consolidate SendEventToEventTarget calls.
26846 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26847 Move application activation handler to mac_handle_application_event.
26848 Move keyboard handler to mac_handle_keyboard_event.
26849 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26850 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26851 init_command_handler. Call install_application_handler.
26852
26853 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26854 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26855
268562007-06-07 Glenn Morris <rgm@gnu.org>
26857
26858 * emacs.c (main): Use `emacs-copyright' in --version output.
26859
268602007-06-06 Chong Yidong <cyd@stupidchicken.com>
26861
26862 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26863
268642007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26865
26866 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26867
26868 * macgui.h: Replace WindowPtr with WindowRef.
26869
26870 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26871 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26872 Replace ControlHandle with ControlRef.
26873 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26874
26875 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26876 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26877 Replace ControlHandle with ControlRef.
26878 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26879 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26880
26881 * macterm.h (struct scroll_bar): Rename member control_handle_low
26882 and control_handle_high to control_ref_low and control_ref_high.
26883 All uses changed.
26884 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26885 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26886 respectively. All uses changed.
26887 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26888 (install_window_handler, remove_window_handler): Replace WindowPtr
26889 with WindowRef in externs.
26890
268912007-06-05 Juanma Barranquero <lekktu@gmail.com>
26892
26893 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26894
268952007-06-03 Nick Roberts <nickrob@snap.net.nz>
26896
26897 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26898
26899 * frame.c (Fmouse_position, Fmouse_pixel_position):
26900 Condition on HAVE_GPM too.
26901
26902 * term.c (term_mouse_highlight): Remove unused variables.
26903 (Fterm_open_connection): Set gpm_zerobased to 1.
26904 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26905 Use zero based co-ordinates.
26906 (handle_one_term_event): Report a drag as mouse movement too.
26907
26908 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26909
269102007-06-03 Chong Yidong <cyd@stupidchicken.com>
26911
26912 * image.c (search_image_cache): New function. Require background
26913 color match if background color is unspecified in the image spec.
26914 (uncache_image, lookup_image): Use it.
26915
269162007-06-01 Juanma Barranquero <lekktu@gmail.com>
26917
26918 * window.c (Fshrink_window): Reflow docstring.
26919
269202007-06-02 Chong Yidong <cyd@stupidchicken.com>
26921
26922 * Version 22.1 released.
26923
269242007-06-01 Richard Stallman <rms@gnu.org>
26925
26926 * xfns.c (x_encode_text): Add GCPRO.
26927
269282007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26929
26930 * xfns.c (x_set_name_internal): Save encoded name before
26931 x_encode_text in case string data is relocated.
26932
269332007-05-31 Richard Stallman <rms@gnu.org>
26934
26935 * buffer.c (syms_of_buffer): Doc fix.
26936
269372007-05-30 Nick Roberts <nickrob@snap.net.nz>
26938
26939 * sysdep.c (init_sys_modes): Add rather than replace with
26940 O_NONBLOCK.
26941
26942 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
26943 term_mouse_moveto.
26944
26945 * termhooks.h (term_mouse_moveto): New extern.
26946
26947 * term.c (mouse_face_window): Rename...
26948 (Qmouse_face_window): ...to this.
26949 (term_show_mouse_face, term_clear_mouse_face)
26950 (term_mouse_highlight): Use Qmouse_face_window.
26951 (term_mouse_moveto): New function.
26952 (term_mouse_position): Make it work.
26953 (syms_of_term): Uncomment assignment to mouse_position_hook.
26954 Staticpro Qmouse_face_window.
26955
269562007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26957
26958 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
26959 around current_column call.
26960
269612007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
26962
26963 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
26964 * xdisp.c (next_element_from_buffer):
26965 * window.c (delete_window):
26966 * term.c (term_mouse_highlight):
26967 * msdos.c (getdefdir):
26968 * macterm.c (mac_create_bitmap_from_bitmap_data)
26969 (init_font_name_table):
26970 * fns.c (Fsxhash):
26971 * data.c (Fmake_local_variable):
26972 * ccl.c (ccl_driver): Likewise.
26973
269742007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26975
26976 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
26977 Call mac_wakeup_from_rne on window size change.
26978
269792007-05-25 Chong Yidong <cyd@stupidchicken.com>
26980
26981 * image.c (uncache_image): Fix typo.
26982
269832007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
26984
26985 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
26986
269872007-05-22 Richard Stallman <rms@gnu.org>
26988
26989 * xterm.c (x_connection_closed): Remove NO_RETURN.
26990
269912007-05-22 Martin Rudalics <rudalics@gmx.at>
26992
26993 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
26994
269952007-05-21 Chong Yidong <cyd@stupidchicken.com>
26996
26997 * image.c (uncache_image): New function.
26998 (Fimage_refresh): New function.
26999
270002007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27001
27002 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27003
270042007-05-20 Nick Roberts <nickrob@snap.net.nz>
27005
27006 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27007 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27008
270092007-05-20 Nick Roberts <nickrob@snap.net.nz>
27010
27011 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27012 conditional on [HAVE_GPM_H].
27013
270142007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27015
27016 * syntax.c (skip_chars): Update syntax-table only after we checked that
27017 the new location is valid.
27018
270192007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27020
27021 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27022 mac_get_window_bounds.
27023
270242007-05-20 Nick Roberts <nickrob@snap.net.nz>
27025
27026 * Makefile.in (LIBGPM): Allow it to be set from configure.
27027 If set then link Emacs with it.
27028
27029 * config.in: Regenerate.
27030
27031 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27032 New externs.
27033
27034 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27035 Include gpm.h.
27036 (handle_one_term_event, term_gpm): New externs.
27037
27038 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27039 and allow it to be interrupted by SIGIO.
27040
27041 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27042 (wait_reading_process_output): Wait on gpm_fd too.
27043 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27044 (add_gpm_wait_descriptor_called_flag): New variable.
27045 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27046
27047 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27048 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27049 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27050 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27051 (make_lispy_event): Add case GPM_CLICK_EVENT.
27052 (read_avail_input): Handle mouse input.
27053
27054 * term.c (write_glyphs_with_face): New function.
27055 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27056 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27057 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27058 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27059 (last_mouse_x, last_mouse_y): New variables.
27060 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27061 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27062 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27063 (Fterm_close_connection): New functions.
27064 (term_init): Initialise mouse_face_window.
27065
270662007-05-19 Chong Yidong <cyd@stupidchicken.com>
27067
27068 * xdisp.c (redisplay_window): If first window line is a
27069 continuation line, recompute the new window start instead of
27070 recentering.
27071
270722007-05-18 Glenn Morris <rgm@gnu.org>
27073
27074 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27075 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27076
270772007-05-17 Glenn Morris <rgm@gnu.org>
27078
27079 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27080
270812007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27082
27083 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27084 dead key repeat and up events.
27085
270862007-05-14 Chong Yidong <cyd@stupidchicken.com>
27087
27088 * image.c (pbm_load): Check image size for monochrome pbm.
27089
270902007-05-13 Chong Yidong <cyd@stupidchicken.com>
27091
27092 * xterm.c (XTread_socket): Revert last change.
27093
270942007-05-12 Chong Yidong <cyd@stupidchicken.com>
27095
27096 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27097
27098 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27099
271002007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27101
27102 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27103 mixup (YAILOM).
27104
271052007-05-07 Andreas Schwab <schwab@suse.de>
27106
27107 * keymap.c (Flookup_key): Fix typo in last change.
27108
271092007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27110
27111 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27112 mapping for unibyte strings.
27113
271142007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27115
27116 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27117 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27118
271192007-04-29 Richard Stallman <rms@gnu.org>
27120
27121 * insdel.c (replace_range): For undo, record insertion first.
27122
271232007-04-29 Andreas Schwab <schwab@suse.de>
27124
27125 * lisp.h (VECSIZE): Use OFFSETOF.
27126
271272007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27128
27129 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27130 disabled lines.
27131
271322007-04-28 Richard Stallman <rms@gnu.org>
27133
27134 * lread.c (read_escape): In a string, \s is always space.
27135
271362007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27137
27138 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27139
27140 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27141 submenu for menu bar items.
27142
27143See ChangeLog.10 for earlier changes.
27144
27145;; Local Variables:
27146;; coding: utf-8
27147;; add-log-time-zone-rule: t
aac0c6e3
MR
27148;; End:
27149
e3eb1dae 27150 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27151
27152 This file is part of GNU Emacs.
27153
27154 GNU Emacs is free software: you can redistribute it and/or modify
27155 it under the terms of the GNU General Public License as published by
27156 the Free Software Foundation, either version 3 of the License, or
27157 (at your option) any later version.
27158
27159 GNU Emacs is distributed in the hope that it will be useful,
27160 but WITHOUT ANY WARRANTY; without even the implied warranty of
27161 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27162 GNU General Public License for more details.
27163
27164 You should have received a copy of the GNU General Public License
27165 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27166
27167;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40