Fix some more uses of int instead of EMACS_INT.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
14162469
EZ
12010-09-23 Eli Zaretskii <eliz@gnu.org>
2
3 * font.c (font_intern_prop): Use EMACS_INT for string length
4 variables.
5
6 * character.c (parse_str_as_multibyte, str_as_multibyte)
7 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
8 (string_count_byte8, string_escape_byte8): Use EMACS_INT for
9 string length arguments, variables, and return values.
10
11 * character.h (parse_str_as_multibyte, str_as_multibyte)
12 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte): Adjust
13 prototypes.
14
15 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
16 variables.
17
18 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
19 (Fmake_string): Protect against too large strings.
20 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
21 (live_misc_p): Use ptrdiff_t instead of int for pointer
22 differences.
23 (string_bytes, check_sblock, check_string_free_list)
24 (allocate_string_data, compact_small_strings, Fmake_string)
25 (Fmake_bool_vector, make_string, make_unibyte_string)
26 (make_multibyte_string, make_string_from_bytes)
27 (make_specified_string_string, Fmake_list, Fmake_vector): Use
28 EMACS_INT for string length variables and arguments.
29 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
30 (Fpurecopy): Use EMACS_INT for string size.
31 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
32 for vector size.
33
34 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
35 (make_string_from_bytes, make_specified_string_string)
36 (make_pure_string, string_bytes): Adjust prototypes.
37
c8a66ab8
EZ
382010-09-22 Eli Zaretskii <eliz@gnu.org>
39
40 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
41 (check_translation): Use EMACS_INT for buffer positions and
42 length.
43
44 * undo.c (record_marker_adjustment, record_delete)
45 (record_change, record_point, record_insert)
46 (record_property_change, Fprimitive_undo): Use EMACS_INT for
47 buffer positions.
48
49 * lisp.h (record_marker_adjustment, record_delete)
50 (record_change, record_point, record_insert)
51 (record_property_change, Fprimitive_undo): Adjust prototypes.
52
38c54d9d
JB
532010-09-22 Juanma Barranquero <lekktu@gmail.com>
54 Eli Zaretskii <eliz@gnu.org>
55
56 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
57
413d18e7
EZ
582010-09-22 Eli Zaretskii <eliz@gnu.org>
59
60 * minibuf.c (Fminibuffer_contents)
61 (Fminibuffer_contents_no_properties)
62 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
63 positions.
64
65 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
66 mark.
67
68 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
69 (allocate_string_data): Accept EMACS_INT for string length.
70
71 * editfns.c (Ffield_string, Ffield_string_no_properties)
72 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
73 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
74 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
75 (Ffield_end): Use EMACS_INT for buffer positions.
76
77 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
78 point with mark.
79
80 * lisp.h (allocate_string_data, make_uninit_string)
81 (make_uninit_multibyte_string, make_buffer_string)
82 (make_buffer_string_both): Adjust prototypes.
83
4b9832a6
CY
842010-09-22 Chong Yidong <cyd@stupidchicken.com>
85
86 * xml.c: Switch to GNU indentation.
87 (make_dom): Change parse tree format to match xml.el.
88 (Fxml_parse_html_string_internal): Rename from html-parse-string.
89 (Fxml_parse_string_internal): Rename from xml-parse-string.
90
86282aab
KH
912010-09-22 Kenichi Handa <handa@m17n.org>
92
93 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
94 only if we are not at a composition.
95 (set_iterator_to_next): Give it->end_charpos to
96 composition_compute_stop_pos.
97 (set_iterator_to_next, next_element_from_buffer): Likewise.
98
99 * dispnew.c (buffer_posn_from_coords): Fix position when the
100 current display element is a grapheme cluster in bidi-reordered
101 region.
102
840b985a
AR
1032010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
104
105 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
106 the regions may overlap.
107
5bc88f4b
JB
1082010-09-21 Juanma Barranquero <lekktu@gmail.com>
109
110 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
111
92bc9a36
DN
1122010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
113
d19e096e
DN
114 * emacs.c: Do not include sys/ioctl.h, not needed.
115
92bc9a36
DN
116 * doprnt.c: Do not include stdlib.h, config.h does it.
117 Move #include before macro definition.
118
15f844ac
DN
1192010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
120
48e24408
DN
121 * Makefile.in (temacs): Link using $(CC) not $(LD).
122 (LD_FIRSTFLAG): Define using autoconf.
123 (LD): Remove.
124
65539506
DN
125 Remove HAVE_TERMIOS definitions.
126 * s/usg5-4-common.h (HAVE_TERMIOS):
127 * s/template.h (HAVE_TERMIOS):
128 * s/gnu-linux.h (HAVE_TERMIOS):
129 * s/darwin.h (HAVE_TERMIOS):
130 * s/cygwin.h (HAVE_TERMIOS):
131 * s/bsd-common.h (HAVE_TERMIOS):
132 * s/aix4-2.h (HAVE_TERMIOS):
133 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
134 defined on all non-MS platforms.
135 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
136
15f844ac
DN
137 * xterm.c (xt_action_hook): Use const.
138
7d701334
JB
1392010-09-20 Juanma Barranquero <lekktu@gmail.com>
140
141 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
142 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
143 (gethostname) [!HAVE_SOCKETS]: Remove.
144 (SOCK_REPLACE_HANDLE): Remove macro.
145 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
146 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
147 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
148 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
149
f3ec267a
EZ
1502010-09-18 Eli Zaretskii <eliz@gnu.org>
151
152 * deps.mk (xml.o): Add dependencies.
153
93acd23d
JB
154 * xdisp.c (Fcurrent_bidi_paragraph_direction):
155 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
156
157 * bidi.c (bidi_paragraph_init): Accept an additional argument
158 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
159 search back until a paragraph with a strong directional character
160 is found, and use that to determine paragraph's base direction.
161
162 * dispextern.h (bidi_paragraph_init): Update prototype.
163
69e847be
EZ
1642010-09-17 Eli Zaretskii <eliz@gnu.org>
165
166 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
167 of w32api >= 3.15. (Bug#6989)
168
283357a7
LMI
1692010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
170
171 * process.c (wait_reading_process_output): Don't message about
172 accept-process-output unless the time limit really is zero.
173
4ddb20d6
SM
1742010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
175
176 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
177 int/Lisp_Object mixup).
178
e24ad6dd
J
1792010-09-17 Jan Djärv <jan.h.d@swipnet.se>
180
181 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
182 not HELP.
183
fb0cf781
J
1842010-09-17 Stephen Berman <stephen.berman@gmx.net>
185
186 * frame.c (Ftool_bar_pixel_width): New function to expose tool
187 bar's pixel width to Lisp (Bug#7048).
188
4ddb20d6
SM
1892010-09-14 Juanma Barranquero <lekktu@gmail.com>
190
191 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 192
318a04c6
J
1932010-09-17 Jan Djärv <jan.h.d@swipnet.se>
194
195 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
196 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
197
78a21772
KH
1982010-09-17 Kenichi Handa <handa@m17n.org>
199
200 * ftfont.c (ftfont_check_otf): Fix previous change.
201
fa3f6039
KH
2022010-09-14 Kenichi Handa <handa@m17n.org>
203
204 * ftfont.c (ftfont_check_otf): Fix the case of checking just
205 existence of GSUB or GPOS.
206
2b5491fa
JB
2072010-09-14 Juanma Barranquero <lekktu@gmail.com>
208
209 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
210
c97c655f
LMI
2112010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
212
2b5491fa 213 * xml.c (parse_buffer): Renamed to parse_string(), since that's
c97c655f
LMI
214 what it does.
215 (parse_string): Return nil when the document can't be parsed.
216
6664fc59 2172010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
218
219 * xterm.c (get_current_vm_state): New function.
220 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
221 want_fullscreen so set_wm_state calls are few (Bug#7013).
222 (x_handle_net_wm_state): Move code to get_current_vm_state and
223 call that function.
224
6664fc59 2252010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
226
227 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
228
6664fc59 2292010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
230
231 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
232 we may use designation or locking-shift.
233
6664fc59 2342010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
235
236 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
237 sequence when the source is multibyte.
238
1da70e99
AS
2392010-09-14 Andreas Schwab <schwab@linux-m68k.org>
240
6664fc59
JB
241 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
242 Don't make first argument optional. Doc fix.
1da70e99 243
26632d8d
LMI
2442010-09-14 Leo <sdl.web@gmail.com> (tiny change)
245
246 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
247 parameters for the doc string.
248
21fa8e37
LMI
2492010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
250
251 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
252
5616cc54
SM
2532010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
254
255 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
256 (syms_of_fns): Don't defsubr Sy_or_n_p.
257 * lisp.h: Don't declare Fy_or_n_p.
258 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
259
381408e2
LMI
2602010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
261
262 * xml.c (Fxml_parse_buffer): New function to parse XML files.
263
2642010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
265
266 * xml.c: New file.
267 (Fhtml_parse_buffer): New function to interface to the libxml2
268 html parsing function.
269
733946e7
JB
2702010-09-05 Juanma Barranquero <lekktu@gmail.com>
271
272 * biditype.h: Regenerate.
273
7574650a
AS
2742010-09-04 Andreas Schwab <schwab@linux-m68k.org>
275
276 * nsimage.m (ns_load_image): Check argument types.
277
278 * image.c: Remove all uses of gcpro.
279 (xpm_load): Check all lisp types.
280 (pbm_load): Likewise.
281 (png_load): Likewise.
282 (jpeg_load): Likewise.
283 (tiff_load): Likewise.
284 (gif_load): Likewise.
285 (imagemagick_load_image): Likewise.
286 (imagemagick_load): Likewise.
287 (svg_load): Likewise.
288 (gs_load): Likewise.
289
6e6b8e25
EZ
2902010-09-04 Eli Zaretskii <eliz@gnu.org>
291
292 * w32uniscribe.c (uniscribe_shape): Update commentary. Don't
293 try to reorder grapheme clusters, since LGSTRING should always
294 hold them in the logical order.
295 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
296 return glyph codes in the logical order.
297
dbfe4532
AS
2982010-09-04 Andreas Schwab <schwab@linux-m68k.org>
299
300 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 301 (imagemagick_load_image): Fix type mismatch.
5e5992c2 302 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 303
6d7cc563
JD
3042010-09-02 Jan Djärv <jan.h.d@swipnet.se>
305
306 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
307
308 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
309
310 * xselect.c: Remove declaration of cut-buffer objects and functions.
311 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
312 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
313 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
314 (Fx_rotate_cut_buffers_internal): Remove.
315 (syms_of_xselect): Remove defsubr of above.
316 Remove intern of QCUT_BUFFERn.
317
8f4e9110
SM
3182010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
319
320 * cmds.c (Vblink_paren_function): Remove.
321 (internal_self_insert): Make it insert N chars at a time.
322 Don't call blink-paren-function.
323 (Fself_insert_command): Adjust accordingly.
324 (syms_of_cmds): Don't declare blink-paren-function.
325
d419e1d9
KH
3262010-08-31 Kenichi Handa <handa@m17n.org>
327
328 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
329 characters.
330
331 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
332 (produce_glyphs): Don't set it->char_to_display here.
333 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
334 (produce_special_glyphs): Set temp_it.char_to_display before
335 calling produce_glyphs.
336
337 * xdisp.c (get_next_display_element): Set it->char_to_display
338 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
339 characters.
340 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
341 calling PRODUCE_GLYPHS.
342 (append_space_for_newline): Save and store it->char_to_display.
343 Set it->char_to_display before calling PRODUCE_GLYPHS.
344 (extend_face_to_end_of_line): Set it->char_to_display before
345 calling PRODUCE_GLYPHS.
346 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
347 character to its byte value.
348 (get_char_glyph_code): New function.
349 (produce_stretch_glyph): Set it2.char_to_display too before
350 calling x_produce_glyphs.
351 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
352 non-ASCII characters. Don't set it->char_to_display here.
353 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 354 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 355
b819f760
SM
3562010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
357
358 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
359
07fa68a7
CY
3602010-08-31 Chong Yidong <cyd@stupidchicken.com>
361
362 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
363
cd196f12
SM
3642010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
365
366 * marker.c (Fcopy_marker): Make the first arg optional.
367
49a752bb
KH
3682010-08-30 Kenichi Handa <handa@m17n.org>
369
370 * composite.c (composition_update_it): Fix computing of
371 cmp_it->width.
372
769ae9e1
KH
3732010-08-29 Kenichi Handa <handa@m17n.org>
374
9e69cb05 375 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 376 corresponding bytes.
9e69cb05 377
4520b858
J
3782010-08-29 Jan Djärv <jan.h.d@swipnet.se>
379
380 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
381
fe50eb41
KH
3822010-08-26 Kenichi Handa <handa@m17n.org>
383
384 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
385 on calling composition_compute_stop_pos.
386
f6aa6ec6
KH
3872010-08-25 Kenichi Handa <handa@m17n.org>
388
9dfdbc0a
KH
389 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
390 :otf.
391
f6aa6ec6
KH
392 * composite.c (composition_compute_stop_pos): Don't break
393 composition at PT.
394 (composition_reseat_it): Likewise. Fix calculation of character
395 position starting a composition.
396 (Fcomposition_get_gstring): Don't limit the number of components
397 for automatic composition.
398
ff94e32c
KH
3992010-08-25 Kenichi Handa <handa@m17n.org>
400
401 * composite.c (composition_compute_stop_pos): In forward search,
402 pay attention to the possibility that some character after ENDPOS
403 will be composed with charactrs before ENDPOS.
404
1c409d0b
CY
4052010-08-24 Chong Yidong <cyd@stupidchicken.com>
406
407 * keyboard.c (command_loop_1): Don't clobber primary selection
408 during handle-switch-frame (Bug#6872).
409
0c372655
MA
4102010-08-23 Michael Albinus <michael.albinus@gmx.de>
411
412 * dbusbind.c: Accept UNIX domain sockets as bus address.
413 (Fdbus_close_bus): New function.
414 (Vdbus_registered_buses): New variable.
415 (xd_initialize): Implement string as bus address.
416 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
417 (Fdbus_get_unique_name, Fdbus_call_method)
418 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
419 (Fdbus_method_error_internal, Fdbus_send_signal)
420 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
421 check. This is done in xd_initialize_bus. Adapt doc string, if
422 necessary.
423 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
424 Vdbus_registered_buses.
425 (Vdbus_registered_objects_table): Create hash.
426
7133b7ee
JL
4272010-08-22 Juri Linkov <juri@jurta.org>
428
429 * keyboard.c (Fexecute_extended_command): Move reading a command name
430 with `completing-read' to a new Elisp function `read-extended-command'.
431 Call it to read a command to `function' (bug#5364, bug#5214).
432
198a7a97
CY
4332010-08-22 Chong Yidong <cyd@stupidchicken.com>
434
435 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
436
b0126eac 4372010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
438
439 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
440 instead of SAFE_ALLOCA.
441
b0126eac 4422010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
443
444 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
445 (Bug#6214).
446
b0126eac 4472010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
448
449 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
450
b0126eac
CY
4512010-08-22 Jan Djärv <jan.h.d@swipnet.se>
452
453 * doc.c (Fsnarf_documentation): Initialize skip_file before
454 build-files test.
455
692f3ddc 4562010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 457
692f3ddc
JB
458 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
459 New definitions.
b0126eac
CY
460 (HAVE_TERMIO): Remove.
461
5f2f0bc1
EZ
4622010-08-22 Eli Zaretskii <eliz@gnu.org>
463
b613941b
EZ
464 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
465
a583bbef
EZ
466 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
467 for w32.
468
469 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
470 it's done in nt/config.nt.
471
472 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
473
5f2f0bc1
EZ
474 * unexcoff.c (report_error, make_hdr, write_segment)
475 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
476 Convert argument lists and prototypes to ANSI C.
477 (make_hdr, write_segment): Remove unused variables.
478 (unexec): Remove commented-out line. Initialize `new' to shut up
479 compiler warnings.
480
a7ebc409
DN
4812010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
482
483 Simplify termio code.
484 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
485 HAVE_TERMIO code is obsolete.
486 Replace HAVE_TERMIOS conditionals with !DOS_NT.
487 * systty.h: Do not define HAVE_TCATTR.
488 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
489 Do not define EMACS_HAVE_TTY_PGRP. Only define
490 EMACS_GET_TTY_PGRP for !DOS_NT.
491 * sysdep.c: Include sysselect.h unconditionally. Do not include
492 sys/ioctl.h and termios.h, systty.h does it. Use
493 HAVE_SYS_UTSNAME_H instead of USG as an include guard.
494 (init_baud_rate): Remove HAVE_TERMIO code.
495 (child_setup_tty): Remove HAVE_TERMIO code.
496 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
497 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
498 (new_ltchars, new_tchars): Remove, unused.
499 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
500 code. Remove special casing for __mips__, it was a no-op. Remove
501 HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
502 (init_sys_modes): Remove HPUX special case.
503 * process.c: Include stdlib.h unconditionally. Do not include
504 fcntl.h, systty.h does it. Remove conditional code for
505 HAVE_SERIAL, it is always true.
506 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
507 always true when SIGNALS_VIA_CHARACTERS is true.
508 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
509 !WINDOWSNT means HAVE_TERMIOS.
510 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
511 conditional, which is true for all HAVE_TERMIOS systems.
512 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
513 instead of HAVE_TERMIOS.
514 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
515 EMACS_HAVE_TTY_PGRP.
516 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
517 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
518 anyway.
519
40629f17
EZ
5202010-08-21 Eli Zaretskii <eliz@gnu.org>
521
522 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
523 mirroring pixel positions.
524
d931da8c
DN
5252010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
526
b5c76d0c
DN
527 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
528 write only.
529 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
530 malloc_sbrk_used, nothing uses them.
531
74815588
DN
532 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
533 defined, unconditionally defined in lisp.h.
534
f5817d1c
DN
535 * term.c: Do not include <termios.h>, systty.h does it.
536
d931da8c
DN
537 * s/unixware.h (HAVE_TCATTR):
538 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
539 systty.h defines it when HAVE_TERMIOS is defined.
540
ff2de6d2 5412010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 542
b43c883c 543 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 544 terminals: add one-character offset for R2L lines.
b43c883c 545
491a1546
EZ
546 * emacs.c <emacs_version>: Add a comment regarding
547 msdos/mainmake.v2's dependency on the syntax of this declaration.
548
2396cbba
EZ
5492010-08-20 Eli Zaretskii <eliz@gnu.org>
550
551 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
552 position for R2L lines by mirroring the pixel position wrt the
553 text are box. Improve commentary.
554
7df6150a
AS
5552010-08-20 Andreas Schwab <schwab@linux-m68k.org>
556
557 * image.c (imagemagick_clear_image): Remove debugging output.
558
a2e5caf7
SM
5592010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
560
561 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
562 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
563 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
564 self-insert-face.
565 (syms_of_cmds): Initialize the new vars.
566
20d60baf
JR
5672010-08-19 Jason Rumney <jasonr@gnu.org>
568
cc477da7
JR
569 * w32menu.c (set_frame_menubar): Remove call to undefined function.
570
20d60baf
JR
571 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
572
2c0ac867
J
5732010-08-19 Jan Djärv <jan.h.d@swipnet.se>
574
575 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
576
93352106
EZ
5772010-08-18 Eli Zaretskii <eliz@gnu.org>
578
579 * xterm.c (x_draw_bar_cursor):
580 * w32term.c (x_draw_bar_cursor): If the character under cursor is
581 R2L, draw the bar cursor on its right rather than on its left.
582
c785836d
SM
5832010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
584
0193499f
SM
585 * eval.c (Fdefmacro): Only obey one declaration.
586
c785836d
SM
587 * casefiddle.c (casify_region): Setup gl_state.
588
9cb728a5
J
5892010-08-18 Jan Djärv <jan.h.d@swipnet.se>
590
591 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
592
e1e18511
J
5932010-08-18 Jan Djärv <jan.h.d@swipnet.se>
594
595 * gtkutil.c (update_frame_tool_bar): Literal stings are const char*.
596
64cb6c78
J
5972010-08-18 David De La Harpe Golden <david@harpegolden.net>
598
599 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
600 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
601 QPRIMARY => NXPrimaryPboard.
602 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
603 NXPrimaryPboard => QPRIMARY.
604 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
605 NXSecondaryPboard = SecondarySelection.
606 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
607
0c9b8993
GM
6082010-08-18 Joakim Verona <joakim@verona.se>
609
610 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
611 defined:
612 (imagemagick_image_p): New function to test for ImageMagic image.
613 (imagemagick_load): New function to load ImageMagick image.
614 (imagemagick_load_image): New function, helper for imagemagick_load.
615 (imagemagick-types): New function.
616 (Qimagemagick): New Lisp_object.
617 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 618
c3554f68
SM
6192010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
620
621 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
622 is a string.
623
1ff2e434
J
6242010-08-17 Jan Djärv <jan.h.d@swipnet.se>
625
626 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
627 x_set_tool_bar_position handler.
628
0cc56427
EZ
6292010-08-17 Eli Zaretskii <eliz@gnu.org>
630
631 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
632 x_set_tool_bar_position handler, needed to support changes from
633 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
634
e45a249b
JD
6352010-08-16 Jan Djärv <jan.h.d@swipnet.se>
636
921242c6
J
637 * nsselect.m: include keyboard.h for QPRIMARY, remove its
638 declaration (Bug#6863).
573d150b 639 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 640
e45a249b
JD
641 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
642
643 * keyboard.h (QPRIMARY): Declare (Bug#6864).
644
7c23dd44
CY
6452010-08-16 Chong Yidong <cyd@stupidchicken.com>
646
647 * keyboard.c (command_loop_1): Avoid setting selection twice,
648 since it's done in deactivate-mark as well.
649 (Vselect_active_regions): Change default to t. Replace `lazy'
650 with non-default value `only', meaning only set PRIMARY for
651 temporarily active regions.
652
653 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
654 select-active-regions.
655
0005830c
J
6562010-08-15 Jan Djärv <jan.h.d@swipnet.se>
657
658 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
659 isn't a string.
660
603dfc72
AS
6612010-08-15 Andreas Schwab <schwab@linux-m68k.org>
662
663 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
664
c25ce9d0
J
6652010-08-15 Jan Djärv <jan.h.d@swipnet.se>
666
c3554f68
SM
667 * keyboard.c (parse_tool_bar_item): malloc buf.
668 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
669 new_lbl (Bug#6855).
c25ce9d0 670
5872c762
EZ
6712010-08-14 Eli Zaretskii <eliz@gnu.org>
672
b236615c
EZ
673 * xterm.c (x_draw_stretch_glyph_string):
674 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
675 the cursor on the right edge of the stretch glyph.
676
c3554f68
SM
677 * xdisp.c (window_box_right_offset, window_box_right):
678 Fix commentary.
b236615c 679
5872c762
EZ
680 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
681 direction when point is inside a run of whitespace characters.
682
683 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
684
e66f9a1b
JR
6852010-08-14 Jason Rumney <jasonr@gnu.org>
686
687 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
688
79d6f59e
CY
6892010-08-14 Chong Yidong <cyd@stupidchicken.com>
690
691 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
692
1c9b4129
JR
6932010-08-13 Jason Rumney <jasonr@gnu.org>
694
695 * w32menu.c (simple_dialog_show): Use unicode message box if available.
696 (MessageBoxW_Proc): New function typedef.
697 (unicode-message-box): New function pointer.
698 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
699
2b4e6277
J
7002010-08-13 Jan Djärv <jan.h.d@swipnet.se>
701
702 * frame.h (Qtool_bar_position): Declare.
703
704 * xfns.c (Fx_create_frame): Call x_default_parameter for
705 Qtool_bar_position.
706
94c97d85
EZ
7072010-08-13 Eli Zaretskii <eliz@gnu.org>
708
8ee81892
EZ
709 * unexcoff.c: Remove the parts used when "emacs" is not defined.
710 (report_error, report_error_1): Ditto.
711 (write_segment): Remove "#if 0" unused code.
712 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
713 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
714 (start_of_text): Remove unused function (was used only if NO_REMAP
715 was NOT defined).
716
891ef8f7
EZ
717 * msdos.c (IT_set_face): Fix format string to match argument
718 types.
719 (IT_write_glyphs, IT_note_mode_line_highlight)
720 (IT_set_frame_parameters): Remove unused variables.
721 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
722 (IT_set_terminal_modes): Disambiguate expression in if clause.
723 (Fmsdos_remember_default_colors): Return Qnil.
724 (IT_set_frame_parameters): Add parens to disambiguate boolean
725 expression for logging the cursor type to termscript.
726 (keyboard_layout_list, keypad_translate_map)
727 (grey_key_translate_map): Add braces in inner initializers.
728 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
729 (dos_rawgetc): Remove unused label.
730 (XMenuActivate): Add braces to remove ambiguous `else'.
731 (dos_ttraw): Always return a value.
732 (spawnve): Declare.
733 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
734
735 * dosfns.h (x_set_title): Declare.
736
737 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
738 Remove unused variables.
739
740 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
741 variables.
742 (init_dosfns): Declare get_lim_data.
743 (system_process_attributes): Declare Fget_internal_run_time.
744
38e41e0e
EZ
745 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
746 list to be consistent with menu.h.
747
94c97d85
EZ
748 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
749 warnings due to mixing of "char *" and "const char *".
750
c5683ceb
SM
7512010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
752
753 Introduce a new comment style "c" flag.
754 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
755 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
756 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
757 (syntax_prefix_flag_p): New function.
758 (Fstring_to_syntax): Understand new "c" flag.
759 (Finternal_describe_syntax_value): Recognize new flag; use the
760 SYNTAX_FLAGS_* macros.
761 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
762 comment style to accomodate the new styles.
763 (back_comment, forw_comment, Fforward_comment, scan_lists)
764 (scan_sexps_forward): Update code to obey the new comment style flag.
765
766 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
767
768 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
769
7aee76f4
J
7702010-08-11 Jan Djärv <jan.h.d@swipnet.se>
771
3a46642b
J
772 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
773 first.
94dff98f 774 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
775
776 * gtkutil.h (xg_check_special_colors): Declare.
777
778 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
779 (xg_create_frame_widgets): Connect theme name changes to
780 style_changed_cb.
781
42ca4633
J
782 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
783 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
784 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 785 string literal. file is const char*.
42ca4633
J
786
787 * xsmfns.c (NOSPLASH_OPT): Change to char[].
788 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
789 props. Free them at the end.
790
791 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
792
c5683ceb
SM
793 * xrdb.c (get_system_app): Make path const and use char *p for
794 non-const char.
42ca4633
J
795
796 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 797 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
798 char *.
799 (button_names): Is const char *.
800 (xdialog_show): error_name and pane_string is const.
801
802 * process.h (synch_process_death): Is const char*.
803
804 * w32menu.c (w32_menu_show):
805 * nsmenu.m (ns_menu_show): error parameter is const char **.
806
807 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
808 is const char **.
809
810 * menu.c (Fx_popup_menu): error_name is const.
811
812 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
813 with unsigned char and XtPointer with void *.
814
815 * gtkutil.h: Replace widget_value with struct _widget_value.
816 (enum button_type, struct _widget_value): Remove and use the one from
817 keyboard.h.
818
819 * gtkutil.c (get_utf8_string): Always return an allocated string.
820 Parameter is const.
821 (create_dialog, xg_create_one_menuitem, create_menus)
822 (xg_item_label_same_p, xg_update_menu_item): Free result from
823 get_utf8_string.
824 (xg_separator_p, xg_item_label_same_p): label is const.
825
826 * font.h (font_open_by_name): Make name const.
827
828 * font.c (font_open_by_name): Make name const.
829
830 * floatfns.c (matherr): Use a const char* variable for x->name.
831
832 * emacs.c (main): Pass char[] to putenv instead of literal.
833
834 * callproc.c (synch_process_death): Make const.
835 (Fcall_process): Make signame const.
836
9c5bd55a
J
837 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
838 (addDisplayItemWithImage): Use const char*.
839
840 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
841 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
842
843 * nsfont.m (ns_descriptor_to_entity): Use const char*.
844
845 * keyboard.h (_widget_value): name, value and key are const char*.
846
7aee76f4
J
847 * unexmacosx.c (unexec_error): Use const char *.
848
09d93395
DN
8492010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
850
851 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 852 (font_parse_name, font_open_by_name):
09d93395 853 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 854 (font_parse_name, font_open_by_name): Remove const.
09d93395 855
671d409f
AS
8562010-08-09 Andreas Schwab <schwab@linux-m68k.org>
857
858 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
859 definition.
860
861 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
862 * m/amdx86-64.h: Likewise.
863 * m/arm.h: Likewise.
864 * m/hp800.h: Likewise.
865 * m/ia64.h: Likewise.
866 * m/ibmrs6000.h: Likewise.
867 * m/ibms390.h: Likewise.
868 * m/intel386.h: Likewise.
869 * m/iris4d.h: Likewise.
870 * m/m68k.h: Likewise.
871 * m/macppc.h: Likewise.
872 * m/mips.h: Likewise.
873 * m/sh3.h: Likewise.
874 * m/sparc.h: Likewise.
875 * m/template.h: Likewise.
876 * m/vax.h: Likewise.
877 * m/xtensa.h: Likewise.
878 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
879 WORDS_BIG_ENDIAN.
880 * lisp.h: Likewise.
881 * md5.c: Likewise.
882 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
883
8ea90aa3
DN
8842010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
885
886 Use const char* instead of char*.
887 Reduce the number of warnings with -Wwrite-strings.
888 * xrdb.c (get_environ_db, get_system_name):
889 * unexelf.c (find_section):
890 * term.c (string_cost, string_cost_one_line, per_line_cost)
891 (get_named_tty, init_tty):
892 * sysdep.c (sys_subshell):
893 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
894 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
895 * search.c (Freplace_match):
896 * process.c (Fmake_network_process, send_process, init_process):
897 * lread.c (Fload, init_lread):
898 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
899 * keyboard.c (parse_tool_bar_item, struct event_head):
900 * gtkutil.h (xg_get_font_name):
901 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
902 (make_widget_for_menu_item, make_menu_item, create_menus)
903 (xg_make_tool_item):
904 * font.c (parse_matrix, font_parse_name):
905 * floatfns.c (rounding_driver, float_error_fn_name):
906 * filelock.c (get_boot_time_1, lock_file_1):
907 * fileio.c (barf_or_query_if_file_exists, check_writable):
908 * editfns.c (get_system_name, get_operating_system_release)
909 (Fencode_time, Fset_time_zone_rule):
910 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
911 * buffer.c (defvar_per_buffer): Use const.
912
7815fe19 9132010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 914
692f3ddc 915 * charset.c: Include <stdlib.h>.
7a84eee5
KH
916 (struct charset_sort_data): New struct.
917 (charset_compare): New function.
692f3ddc 918 (Fsort_charsets): New function.
7a84eee5
KH
919 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
920
921 * coding.c (decode_coding_iso_2022): Fix checking of dimension
922 number in CTEXT extended segment.
923
7815fe19 9242010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
925
926 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
927 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
928
7815fe19 9292010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
930
931 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
932 (Fhash_table_size): Fix typos in docstrings.
933 (Fmake_hash_table): Doc fix.
934
7815fe19 9352010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
936
937 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
938 Doc fix (bug#5625).
939
7815fe19 9402010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
941
942 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
943 the MSDOS definition.
944
1b6d8cf0
DN
9452010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
946
675e2c69
DN
947 Use const char* instead of char*.
948 * xterm.c (x_create_toolkit_scroll_bar):
949 * xfont.c (xfont_list_pattern):
950 * xfns.c (x_default_scroll_bar_color_parameter)
951 (xic_create_fontsetname, x_default_font_parameter)
952 (x_screen_planes):
953 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
954 (store_mode_line_string, decode_mode_spec, display_string):
955 * menu.c (digest_single_submenu):
956 * keymap.h (initial_define_key, initial_define_lispy_key):
957 * keymap.c (initial_define_key, initial_define_lispy_key):
958 * image.c (image_error, image_keyword):
959 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
960 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
961 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
962 (ftfont_list, ftfont_match):
963 * frame.c (frame_parm_table):
964 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
965 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
966 (font_add_log, font_deferred_log):
967 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
968 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
969 (font_add_log, font_deferred_log):
970 * emacs.c (argmatch):
971 * dispextern.h (struct it):
972 * coding.c (ENCODE_DESIGNATION):
973 * charset.c (define_charset_internal): Use const.
974
25717ca1
DN
975 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
976
c5683ceb
SM
977 * xrdb.c: Remove include guard.
978 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
979 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
980 realloc->xrealloc instead of using #defines.
981
efb41e21
EZ
9822010-08-08 Eli Zaretskii <eliz@gnu.org>
983
cd21226d 984 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
985 * editfns.c (Fline_beginning_position, Fline_end_position):
986 State in the doc strings that start and end of line are in the
987 logical order.
cd21226d 988
efb41e21
EZ
989 * xdisp.c (display_line): Move the handling of overlay arrow after
990 the call to find_row_edges. (Bug#6699)
991
746812d9
CY
9922010-08-07 Chong Yidong <cyd@stupidchicken.com>
993
994 * keyboard.c (command_loop_1):
995 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
996
9852377f
CY
9972010-08-07 Chong Yidong <cyd@stupidchicken.com>
998
999 * insdel.c (prepare_to_modify_buffer): Save active region text to
1000 Vsaved_region_selection.
1001
1002 * xselect.c (QPRIMARY): Move to keyboard.c.
1003
1004 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
1005 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
1006 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 1007
0e9c8657
JB
10082010-08-07 Juanma Barranquero <lekktu@gmail.com>
1009
1010 * alloc.c (lisp_malloc):
1011 * buffer.c (set_buffer_internal, set_buffer_internal_1):
1012 * charset.h (emacs_mule_charset):
1013 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
1014 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
1015 (bitch_at_user):
1016 * lisp.h (Fcheck_coding_system, Fget_text_property)
1017 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
1018 Remove duplicate declarations.
1019
648801d1
DN
10202010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1021
32bc6709
DN
1022 * process.c: Simplify include logic.
1023
3ef1d108
DN
1024 * keyboard.h (quit_char): Add declaration.
1025 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
1026 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
1027 Add declarations.
3ef1d108
DN
1028 * sysdep.c:
1029 * w32.c: Remove the above declarations.
1030
97ec208f
DN
1031 Remove extern declarations in .c files, .h files have them.
1032 * xterm.c:
1033 * xdisp.c:
97ec208f
DN
1034 * msdos.c:
1035 * image.c:
1036 * gtkutil.c:
1037 * fileio.c:
1038 * eval.c: Remove declarations.
1039
94eed851
DN
1040 * frame.c (frame_params): Make const.
1041
36e053eb
DN
1042 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
1043
0e843971
DN
1044 * emacs.c (emacs_copyright, emacs_version): Make static.
1045 (Vinitial_window_system, Vauto_save_list_file_name)
1046 (Vinhibit_redisplay): Remove declarations.
1047 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
1048 for AIX.
1049
648801d1
DN
1050 Use const for some arrays and functions.
1051 * xterm.h (xg_set_icon_from_xpm_data):
1052 * xfns.c (xg_set_icon_from_xpm_data):
1053 * term.c (fkeys):
1054 * keyboard.c (lispy_accent_keys, lispy_function_keys)
1055 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
1056 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
1057 (frame.c frame_parms):
1058 * emacs-icon.h (gnu_xpm_bits):
1059 * callint.c (callint_argfuns): Use const.
1060
8646d999
J
10612010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1062
1063 * sysdep.c: Move include term.h last of includes (Bug#6812).
1064
cb4545ad
EZ
10652010-08-06 Eli Zaretskii <eliz@gnu.org>
1066
1067 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
1068
1069 * msdos.c (IT_display_cursor): Log cursor position on termscript.
1070
1071 * .gdbinit (pgx): Display the avoid_cursor_p flag.
1072
da7e2be6
JB
10732010-08-06 Juanma Barranquero <lekktu@gmail.com>
1074
1075 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
1076
3d608a86
J
10772010-08-06 Jan Djärv <jan.h.d@swipnet.se>
1078
7908fb60
J
1079 * xterm.h (x_get_focus_frame): Declare.
1080
1081 * keyboard.h (poll_for_input_1): Unconditionally declare.
1082
4094bf36
J
1083 * nsterm.h (x_set_menu_bar_lines): Declare.
1084
1085 * window.c: Don't include menu.h, it depends on lots of other .h-files.
1086
3d608a86
J
1087 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
1088
1089 * window.c: Include menu.h.
1090
1091 * unexmacosx.c (print_region_list, print_regions)
1092 (build_region_list, find_emacs_zone_regions)
1093 (unexec_regions_merge, read_load_commands, dump_it)
1094 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
1095
1096 * term.c: Check HAVE_SYS_IOCTL_H.
1097
686b968e 1098 * sysdep.c: Check HAVE_TERM_H.
3d608a86 1099
686b968e 1100 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
1101
1102 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
1103 (ns_ring_bell, ns_defined_color, hide_hourglass)
1104 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
1105 Convert to ANSI C prototypes.
1106 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
1107 before code.
1108
1109 * nsterm.h : Include sysselect.h.
1110 (x_sync, x_get_focus_frame, x_set_mouse_position)
1111 (x_set_mouse_pixel_position, x_make_frame_visible)
1112 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
1113 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
1114 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
1115 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 1116 Declare.
3d608a86
J
1117
1118 * nsmenu.m (popup_activated, name_is_separator)
1119 (syms_of_nsmenu): Convert to ANSI C prototypes.
1120 (runMenuAt): Prototypes and move declarations before code.
1121
1122 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
1123
1124 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
1125 prototypes.
1126
1127 * nsfns.m (have_menus_p, ns_display_info_for_name)
1128 (x_set_cursor_type, ns_appkit_version_str)
1129 (ns_appkit_version_int, ns_do_applescript)
1130 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
1131 (syms_of_nsfns): Convert to ANSI C prototypes.
1132
1133 * menu.h (x_set_menu_bar_line): Declare.
1134 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
1135
1136 * lisp.h (fmod_float): Declare.
1137
1138 * image.c (xpm_scan, xpm_make_color_table_v)
1139 (xpm_put_color_table_v, xpm_get_color_table_v)
1140 (xpm_make_color_table_h, xpm_put_color_table_h)
1141 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
1142 (xpm_load): Convert to ANSI C prototypes.
1143
1144 * emacs.c: Include nsterm.h if HAVE_NS.
1145
1146 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
1147
fce70521
DN
11482010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
1149
1150 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
1151 subprocesses, only MSDOS does not define HAVE_SOCKETS.
1152 (socket_options): Use const char* for name.
1153
a11889ab
JB
11542010-08-06 Juanma Barranquero <lekktu@gmail.com>
1155
1156 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
1157
1158 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
1159 Don't declare xmalloc_widget_value and digest_single_submenu.
1160
1161 * w32font.c (Qlatin): Remove declaration.
1162
1163 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
1164
c95b508f 1165 * dired.c (compile_pattern): Restore declaration.
a11889ab 1166
6254cdda
DN
11672010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
1168
04bab72c
DN
1169 Remove extern declarations in .c files, .h files have them.
1170 * data.c:
1171 * dired.c:
1172 * editfns.c:
1173 * filelock.c:
1174 * fns.c:
1175 * font.c:
1176 * fontset.c:
1177 * frame.c:
1178 * fringe.c:
1179 * ftfont.c:
1180 * gtkutil.c:
1181 * indent.c:
1182 * keyboard.c:
1183 * keymap.c:
1184 * lread.c:
1185 * menu.c:
1186 * print.c:
1187 * search.c:
1188 * sound.c:
1189 * window.c:
1190 * xdisp.c:
1191 * xfaces.c:
1192 * xfns.c:
1193 * xfont.c:
1194 * xftfont.c:
1195 * xmenu.c:
1196 * xterm.c: Remove declarations.
1197
dff94ed5
DN
1198 Cleanup syssignal.h.
1199 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
1200 (main_thread): Move down to remove #ifdef.
1201 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
1202 Remove conditional definition following unconditional ones.
1203
99f3388e
DN
1204 * lisp.h: Remove HAVE_SHM code, unused.
1205 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
1206 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
1207 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
1208 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
1209 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
1210 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
1211 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
1212 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
1213 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
1214 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
1215 (Qwindow_scroll_functions, Vafter_load_alist)
1216 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
1217 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
1218 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
1219 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
1220 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
1221 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
1222 (initial_argv, last_nonmenu_event, load_in_progress)
1223 (noninteractive_need_newline, scroll_margin): Add declarations.
1224
1225 * keyboard.h (xmalloc_widget_value, digest_single_submenu): Remove
1226 declarations, menu.h has them.
1227 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
1228 (Vinput_method_function, Qinput_method_function)
1229 (Qevent_symbol_element_mask, last_event_timestamp):
1230 * dispextern.h (Voverflow_newline_into_fringe):
1231 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
1232 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
1233 (syms_of_w32font, syms_of_nsfont):
1234 * fontset.h (find_font_encoding, Qlatin):
1235 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
1236 (Vtool_bar_mode, set_frame_menubar):
1237 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
1238 * xterm.h (Qx_gtk_map_stock):
1239 * keymap.h (meta_prefix_char): Add declarations.
1240
9f5dd6f2
DN
1241 * term.c: Remove dead code.
1242
6254cdda
DN
1243 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
1244 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
1245 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
1246 which is what was there before BSD_PGRPS was removed.
1247
29cf3e20
EZ
12482010-08-05 Eli Zaretskii <eliz@gnu.org>
1249
1250 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
1251
1252 * unexcoff.c: Renamed from unexec.c.
1253
aaa0a19a
SM
12542010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
1255
1256 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
1257
8d1d9587
JB
12582010-08-03 Johan Bockgård <bojohan@gnu.org>
1259
1260 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 1261 (Bug#6744)
8d1d9587 1262
9a747ba6
JD
12632010-08-02 Jan Djärv <jan.h.d@swipnet.se>
1264
4d464ae4
JD
1265 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
1266 to TRUE if depth of screen is < 16.
1267
ac01763e
JD
1268 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
1269 USE_GTK_TOOLTIP.
e0d62a9b
JB
1270 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
1271 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 1272 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
1273 USE_GTK_TOOLTIP.
1274 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
1275
1276 * xterm.h (USE_GTK_TOOLTIP): New define.
1277 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
1278
9a747ba6
JD
1279 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
1280 to Control-D (Bug#6771).
1281
7b0815ba
JB
12822010-08-02 Juanma Barranquero <lekktu@gmail.com>
1283
1284 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
1285 Wording by Drew Adams <drew.adams@oracle.com>.
1286
aa1859f5
J
12872010-08-01 Jan Djärv <jan.h.d@swipnet.se>
1288
1289 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
1290 ttip_lbl.
1291
1292 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
1293 calling gtk_widget_queue_draw.
1294 (x_free_frame_resources): Call xg_free_frame_widgets.
1295
1296 * xfns.c (x_gtk_use_system_tooltips): New variable.
1297 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
1298 new gtkutil tooltip functions to show the tooltip.
1299 (Fx_hide_tip): Call xg_hide_tooltip.
1300 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
1301
1302 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
1303 (xg_show_tooltip, xg_hide_tooltip): Declare.
1304
1305 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
1306 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
1307 New functions.
aa1859f5
J
1308 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
1309 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
1310 Remove code that is commented out.
1311
76417ef4
SM
13122010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
1313
1314 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
1315
16041401
CY
13162010-07-31 Chong Yidong <cyd@stupidchicken.com>
1317
1318 * xselect.c (x_own_selection): Use list4.
1319
2c09a58f
DN
13202010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
1321
1322 * buffer.c (Qwindow): Do not define, already defined in data.c.
1323 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
1324
59df9fdd 13252010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 1326
59df9fdd
JB
1327 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
1328 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
1329 * config.in: Undef HAVE_DIRENT_H.
1c97e857 1330 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 1331 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 1332
1b231651
DN
13332010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1334
1335 Rename s/usg5-4.h -> s/usg5-4-common.h.
1336 * s/usg5-4.h: Rename file to ...
1337 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
1338 * s/unixware.h:
1339 * s/sol2-6.h:
1340 * s/irix6-5.h: Update includes accordingly.
1341
bfeabdc3
JD
13422010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1343
2ebf1083
J
1344 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
1345
bfeabdc3 1346 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
1347 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
1348 Remove toolbar_height.
1349 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
1350 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
1351 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
1352 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
1353
1354 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1355
1356 * xfns.c (x_set_tool_bar_position): New function.
1357 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
1358 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 1359 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
1360
1361 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
1362 and FRAME_TOOLBAR_LEFT_WIDTH.
1363
1364 * gtkutil.h (xg_change_toolbar_position): Declare.
1365
1366 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
1367 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
1368 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
1369 (xg_create_frame_widgets): Create a hobox for placing widgets
1370 vertically. Use gtk_box_pack_start.
1371 (xg_height_or_width_changed): Renamed from xg_height_changed.
1372 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
1373 (xg_update_frame_menubar, free_frame_menubar): Change to
1374 xg_height_or_width_changed.
1375 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
1376 size correctly. Remove hardcoded 4, instead use handlebox size -
1377 toolbar size.
1378 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 1379 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
1380 (xg_pack_tool_bar): POS is a new parameter.
1381 Set orientation of tool bar based on pos.
1382 Only make handlebox_widget if NULL.
1383 Check if tool bar goes to vbox or hbox depending on pos.
1384 (xg_update_tool_bar_sizes): New function.
686b968e 1385 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
1386 height, call xg_update_tool_bar_sizes instead.
1387 (free_frame_tool_bar): Remove from hbox or vbox depending on
1388 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
1389 (xg_change_toolbar_position): New function.
1390
1391 * frame.h (struct frame): Add tool_bar_position.
1392 (Qbottom): Declare.
1393
1394 * frame.c (Qtool_bar_position): New variable.
1395 (make_frame): Set tool_bar_position to Qtop.
1396 (frame_parms): Add tool-bar-position.
1397 (x_report_frame_params): Store tool_bar_position.
1398 (x_set_fringe_width): Reset wm size hint after fringe changes.
1399
26469a38
DN
14002010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1401
1402 Make lisp_time_argument declaration work on all systems.
1403 * lisp.h (lisp_time_argument): Move declaration ...
1404 * systime.h (lisp_time_argument): ... here
1405 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
1406
8848b728
JD
14072010-07-29 Jan Djärv <jan.h.d@swipnet.se>
1408
1409 * vm-limit.c (POINTER): Add typedef for it.
1410 (start_of_data): Change return type from POINTER to char *.
1411
1412 * frame.h (Qtty_color_mode): Move declaration out of ifdef
1413 HAVE_WINDOW_SYSTEM.
1414
76fd1ee9
DN
14152010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
1416
0441987e
DN
1417 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
1418 Remove reference to __osf__, unused.
1419
56a000c7
DN
1420 * mem-limits.h: Remove duplicated includes.
1421 (NULL): Remove definition, unused.
1422 (POINTER): Remove definition.
1423 (start_of_data): Use char* in prototype, as the function
1424 definition does.
1425
e6cba650
DN
1426 Remove extern declarations from .c files, and them to .h files.
1427 * keyboard.h (Qhelp_echo, waiting_for_input)
1428 (input_available_clear_time, ignore_mouse_drag_p)
1429 (Vdouble_click_time, real_this_command, Vthis_original_command):
1430 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
1431 (Voverriding_local_map_menu_flag):
1432 * lisp.h (Qinteractive_form, use_file_dialog)
1433 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
1434 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
1435 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
1436 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
1437 (Qfunction, debug_on_next_call, Qfield)
1438 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
1439 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
1440 (Qfile_directory_p, Qinsert_file_contents)
1441 (Qcompletion_ignore_case, Qcompletion_ignore_case)
1442 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
1443 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
1444 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
1445 (Qminibuffer_prompt)
1446 (Vtemporary_file_directory,char_ins_del_vector, Qface):
1447 * xterm.h (gray_bitmap_width, gray_bitmap_height)
1448 (gray_bitmap_bits, xic_create_fontsetname):
1449 * coding.h (Vtranslation_table_for_input): Add extern declarations.
1450
1451 * xsmfns.c (Vuser_login_name):
1452 * xrdb.c (Vdouble_click_time):
1453 * xfaces.c (xic_create_fontsetname):
1454 * w32select.c (waiting_for_input):
1455 * print.c (minibuffer_auto_raise):
1456 * msdos.c (Qhelp_echo):
1457 * macros.c (real_this_command):
1458 * keymap.c (Voverriding_local_map):
1459 * xterm.c (poll_for_input_1, gray_bitmap_width)
1460 (gray_bitmap_height, gray_bitmap_bits;
1461 * xmenu.c ( Voverriding_local_map)
1462 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
1463 (use_file_dialog, Xt_app_con):
1464 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
1465 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
1466 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
1467 (Qtool_bar_lines, ignore_mouse_drag_p):
1468 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
1469 (Qrear_nonsticky, nconc2):
1470 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
1471 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
1472 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
1473 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
1474 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
1475 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
1476 (gc_in_progress):
1477 * doc.c (Voverriding_local_map, Qremap):
1478 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
1479 (Vcompletion_regexp_list):
1480 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
1481 (Qcompletion_ignore_case):
1482 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
1483 (Vhistory_length, Vthis_original_command, real_this_command)
1484 (Qface, Qminibuffer_prompt, history_delete_duplicates):
1485 * image.c (Qrisky_local_variable):
1486 * fontset.c (QCname):
1487 * fns.c (minibuffer_auto_raise, QCname):
1488 * dispnew.c (char_ins_del_cost):
1489 * composite.c (font_fill_lglyph_metrics):
1490 * cmds.c (Qface, Vtranslation_table_for_input):
1491 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
1492 * ccl.c (charset_unicode):
1493 * callproc.c (Vtemporary_file_directory):
1494 * buffer.c (emacs_strerror): Remove extern declarations.
1495
1496 * data.c (Qwindow): Make non-static, used from other files too.
1497 * frame.c (validate_x_resource_name): Remove shadow definition for i.
1498
76fd1ee9
DN
1499 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
1500 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
1501 * s/usg5-4.h (COFF):
1502 * s/template.h:
1503 * s/msdos.h (COFF, NO_REMAP):
1504 * s/ms-w32.h (NO_REMAP):
1505 * s/hpux10-20.h (NO_REMAP):
1506 * m/sparc.h (SEGMENT_MASK):
1507 * m/m68k.h (NO_REMAP):
1508 * m/intel386.h (SEGMENT_MASK):
1509 * m/arm.h (NO_REMAP):
1510 * m/alpha.h (COFF):
1511 * m/template.h: Remove references to unused defines.
1512
8a52f00a
JD
15132010-07-28 Jan Djärv <jan.h.d@swipnet.se>
1514
1515 * xsettings.c (Ftool_bar_get_system_style): Also check for
1516 Qtext_image_horiz.
1517
1518 * xdisp.c (Qtext_image_horiz): Define.
1519 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 1520 to documentation of tool-bar-style.
8a52f00a
JD
1521
1522 * lisp.h (Qtext_image_horiz): Declare.
1523
1524 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
1525 style text_image_horiz.
1526
89dc303e
DN
15272010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
1528
60799703
DN
1529 * emacs.c (Fkill_emacs): Remove return statement.
1530
37254dc1
DN
1531 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
1532 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
1533 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys): Remove
1534 local extern declarations.
1535
71c7345a
DN
1536 * xmenu.c: Do not included lwlib.h, not needed.
1537
6ba577cb
DN
1538 * m/iris4d.h (XUINT, XSET): Remove, not needed.
1539
fdb183d6
DN
1540 * process.c: Move definitions earlier to minimize #ifdefs.
1541
1542 * xterm.h (x_get_customization_string, x_load_resources)
1543 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
1544 (x_check_errors, x_property_data_to_lisp, defined_color)
1545 (xic_set_xfontset, x_defined_color): Use const.
1546
1547 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
1548 (x_text_icon, x_check_errors, x_connection_closed): Use const.
1549
1550 * xselect.c (selection_data_to_lisp_data)
1551 (x_property_data_to_lisp):
1552 * xrdb.c (x_get_string_resource, file_p)
1553 (x_get_customization_string, magic_file_p, search_magic_path)
1554 (get_system_app, get_user_app, x_load_resources, x_get_resource)
1555 (x_get_string_resource): Use const.
1556
1557 * xfns.c: Include xlwmenu.h when USE_LUCID.
1558 (x_defined_color, xic_set_xfontset): Use const.
1559 (Fx_hide_tip): Remove local extern declaration.
1560
1561 * xfaces.c (Qmouse_face): Remove declaration.
1562 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 1563 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
1564
1565 * xdisp.c (do_mouse_tracking): Remove declaration.
1566 (add_to_log): Use const.
1567
1568 * minibuf.c (Qmouse_face): Remove declaration.
1569
1570 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
1571
1572 * keyboard.h (do_mouse_tracking): Add declaration.
1573
1574 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
1575 (QCdata, QCtype, Qcenter): Remove declarations.
1576
1577 * frame.c (x_get_resource_string, x_get_string_resource)
1578 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1579 (x_default_parameter): Use const.
1580
1581 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
1582 (QCheight, QCsize, QCname): Remove declarations.
1583
1584 * emacs.c (main): Remove local extern declaration.
1585
1586 * editfns.c (region_limit, syms_of_editfns): Remove local extern
1587 declarations.
1588
1589 * dispnew.c: Remove duplicate #include <unistd.h>.
1590 (update_window, update_frame_1, init_display): Remove local extern
1591 declarations.
1592
1593 * dispextern.h (add_to_log): Remove declaration.
1594 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
1595 (x_frame_get_and_record_arg, x_default_parameter): Add const.
1596
1597 * dired.c (scmp): Add const.
1598 (directory_files_internal): Remove local extern declaration.
1599
1600 * data.c (Finteractive_form): Use const.
1601
1602 * composite.c (syms_of_composite): Remove local extern declarations.
1603
1604 * charset.c (add_to_log): Remove declaration.
1605
1606 * character.c (strwidth, parse_str_to_multibyte): Add const.
1607
1608 * character.h (strwidth, parse_str_to_multibyte): Likewise.
1609
1610 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
1611
89dc303e 1612 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
1613 (Lisp_Subr): Make doc and intspec constant.
1614 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
1615 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
1616 (QCheight, QCsize, QCname, QCwidth, QCforeground)
1617 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
1618 (display_arg): Add declarations.
89dc303e 1619
0ed082fe 16202010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
1621
1622 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
1623
0ed082fe
JB
1624 * window.c (Fwindow_height): Doc fix (bug#6518).
1625
16262010-07-27 Juanma Barranquero <lekktu@gmail.com>
1627
1628 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
1629
ccaf0336
DN
16302010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
1631
977105dc
DN
1632 * keyboard.c (Ftop_level, Fexit_recursive_edit)
1633 (Fabort_recursive_edit): Remove return statements in NO_RETURN
1634 functions.
1635
f5ada890
DN
1636 * frame.h (Qtty_color_mode): Add declaration.
1637
ccaf0336
DN
1638 * lisp.h (Ftop_level, Fexit_recursive_edit)
1639 (Fabort_recursive_edit): Mark as NO_RETURN.
1640
dfe3c90f
KH
16412010-07-26 Kenichi Handa <handa@m17n.org>
1642
1643 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 1644 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 1645
7d383292
JB
16462010-07-26 Juanma Barranquero <lekktu@gmail.com>
1647
1648 * lread.c (unreadpure, mapatoms_1): Make static.
1649
da31e629
JB
16502010-07-25 Juanma Barranquero <lekktu@gmail.com>
1651
1652 * terminfo.c (tparam): Fix prototype of tparm.
1653
7bfa6d77
AS
16542010-07-25 Andreas Schwab <schwab@linux-m68k.org>
1655
dcc19aac
AS
1656 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
1657 find start of text segment.
1658 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
1659 is defined.
1660
7bfa6d77
AS
1661 * callproc.c (set_initial_environment): Avoid unbalanced braces.
1662
63f9a672
KB
16632010-07-25 Ken Brown <kbrown@cornell.edu>
1664
1665 * vm-limit.c (check_memory_limits): Fix previous change;
1666 accidentally reverted an earlier change.
1667
24933075
KB
16682010-07-25 Ken Brown <kbrown@cornell.edu>
1669
1670 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
1671 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
1672
361358ea
JB
16732010-07-25 Juanma Barranquero <lekktu@gmail.com>
1674
1675 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
1676 * dired.c (opendir, readdir): Fix prototypes.
1677 * editfns.c (w32_get_internal_run_time): Fix prototypes.
1678 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
1679 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
1680 (telldir): Remove declaration.
1681 * ralloc.c (real_morecore, __morecore): Fix prototypes.
1682 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
1683 * syssignal.h (strsignal): Fix prototype.
1684 * term.c (tparam): Fix prototype.
1685 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
1686 (term_get_fkeys): Set inside "#ifndef DOS_NT".
1687 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
1688 and __morecore.
1689 * w32gui.h (XParseGeometry): Fix prototype.
1690 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
1691 * w32term.c (my_set_focus): Declare inside #if 0.
1692 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
1693 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
1694 (drain_message_queue, get_next_msg, post_msg, parse_button)
1695 (ClipboardSequence_Proc): Fix prototypes.
1696 (wait_for_sync): Remove declaration.
1697
630b9592
JB
16982010-07-24 Juanma Barranquero <lekktu@gmail.com>
1699
1700 * w32fns.c (w32_to_x_color): Remove, unused.
1701
6a0d6611
AS
17022010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1703
1704 * lisp.h: Remove leftover P_.
1705
4e8608ff
DN
17062010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
1707
1708 * ecrt0.c, unexalpha.c: Remove files, unused.
1709
c8197983
AS
17102010-07-24 Andreas Schwab <schwab@linux-m68k.org>
1711
1712 * cmds.c (internal_self_insert): Make static.
1713 * lisp.h (internal_self_insert): Remove declaration.
1714
97b372d7
JB
17152010-07-23 Juanma Barranquero <lekktu@gmail.com>
1716
33ac0414
JB
1717 * alloc.c (free_float):
1718 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
1719 * frame.c (delete_frame_handler):
1720 * ralloc.c (reorder_bloc):
1721 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
1722 Remove unused static functions.
1723
94da8397
JB
1724 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
1725 it is called only from NS code.
1726
2e6c8532
JB
1727 * w32term.c (my_set_focus): #ifdef away; it is called only from
1728 "#ifdef 0" code.
1729
97b372d7
JB
1730 * w32fns.c (x_edge_detection):
1731 * xfaces.c (may_use_scalable_font_p):
1732 Remove obsolete static declarations.
1733
7c3320d8
JB
17342010-07-20 Juanma Barranquero <lekktu@gmail.com>
1735
1736 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
1737 (emacs_blocked_realloc, uninterrupt_malloc):
1738 * fringe.c (w32_reset_fringes):
1739 * image.c (convert_mono_to_color_image, lookup_rgb_color)
1740 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
1741 * sound.c (be2hs, do_play_sound):
1742 * vm-limit.c (get_lim_data, ret_lim_data):
1743 * w32term.c (x_free_frame_resources):
1744 * xfaces.c (x_create_gc, x_free_gc):
1745 Convert definitions to standard C.
1746
d5273788
SM
17472010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
1748
1749 * eval.c (Feval, Ffuncall): Use the new names.
1750
1751 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
1752 (DEFUN): Add braces around the union initialisation and use ## to
1753 specify the right union alternative and avoid a cast.
1754
8d16a259
JB
17552010-07-18 Juanma Barranquero <lekktu@gmail.com>
1756
1757 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
1758
3b8eff32
CY
17592010-07-17 Chong Yidong <cyd@stupidchicken.com>
1760
1761 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
1762
499322ce
J
17632010-07-17 Jan Djärv <jan.h.d@swipnet.se>
1764
1765 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
1766 is related to the menu bar (Bug#6499).
a628ad9d 1767 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 1768
f6003da5 17692010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
1770
1771 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
1772
1773 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
1774
1775 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
1776 i.e. don't put back ButtonRelease (Bug#6608).
1777
1778 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
1779 instead of Window. Call xg_event_is_for_menubar when
1780 USE_GTK (Bug#6499).
1781
1782 * gtkutil.h (xg_event_is_for_menubar): Declare.
1783
1784 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
1785
f6003da5 17862010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
1787
1788 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
1789 when it's the same as the old foreground. (Bug#6609)
1790
23243f29
J
17912010-07-16 Jan Djärv <jan.h.d@swipnet.se>
1792
1793 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
1794 widget is non-null (Bug#6645).
1795
2b23d2a6
AS
17962010-07-15 Andreas Schwab <schwab@linux-m68k.org>
1797
01b564ff
AS
1798 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
1799 Convert old-style definition.
1800
2b23d2a6
AS
1801 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
1802 timestamp argument.
1803
c4affd2c
EZ
18042010-07-15 Eli Zaretskii <eliz@gnu.org>
1805
1806 * fringe.c (update_window_fringes): Restore mistakenly reverted
1807 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
1808
cf28cebc
J
18092010-07-14 Jan Djärv <jan.h.d@swipnet.se>
1810
1811 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
1812 (SET_SAVED_KEY_EVENT): Remove (not used).
1813 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
1814 remove size parameter.
1815 (handle_one_xevent): Check popup_activated () for menu for Xt also.
1816 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
1817 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
1818 ButtonRelease.
6b2c4bd9
J
1819 (x_set_window_size_1): scroll_bar_actual_width is always
1820 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
1821
1822 * xdisp.c (pending_menu_activation): Remove extern declaration.
1823 (prepare_menu_bars): Remove setting of pending_menu_activation.
1824
1825 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
1826 (x_activate_menubar): Set popup_activated_flag for Xt also.
1827 Remove setting of pending_menu_activation.
cf28cebc
J
1828 (set_frame_menubar): Remove check of pending_menu_activation.
1829 Declare menubar_size before code. Correct spelling in comment.
1830
f6c1c771
KH
18312010-07-14 Kenichi Handa <handa@m17n.org>
1832
1833 * font.c (font_open_entity): Cancel previous change.
1834 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
1835
20477505
EZ
18362010-07-13 Eli Zaretskii <eliz@gnu.org>
1837
77defa9a
EZ
1838 Remove subprocesses #ifdefs.
1839 * process.c <inhibit_sentinels>: Move to the common part.
1840 (Fwaiting_for_user_input_p): Move to the common part; return nil
1841 if async subprocesses aren't supported.
1842 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
1843 MS-DOS. Remove "#ifdef subprocesses".
1844 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
1845 (gettimeofday): Remove "#ifdef subprocesses".
1846 (wait_without_blocking): Remove function.
1847 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
1848 Remove "#ifdef subprocesses".
1849 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
1850 compiled on MS-DOS.
1851 * callproc.c (Fcall_process) [!MSDOS]: Don't call
1852 wait_for_termination on MS-DOS.
1853 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
1854 initialization of inhibit_sentinels.
1855 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
1856 subprocesses" conditional.
1857 * callproc.c (Fcall_process) [!subprocesses]: Don't call
1858 wait_for_termination, since `buffer' cannot be an integer when
1859 async subprocesses are not supported
1860 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
1861 for ifdefing away the call to Fprocess_status.
1862
20477505
EZ
1863 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
1864 away the entire body of the function.
1865
b3ffc17c
DN
18662010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
1867
01faa934
DN
1868 Remove subprocesses #ifdefs from term.c.
1869 * process.c (add_keyboard_wait_descriptor)
1870 (delete_keyboard_wait_descriptor): Move to common section, do
1871 nothing when subprocesses is not defined.
a628ad9d
JB
1872 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
1873 Remove subprocesses #ifdefs.
01faa934 1874
b3ffc17c
DN
1875 Convert maybe_fatal to standard C.
1876 * lisp.h (verror): Declare.
1877 * eval.c (verror): New function containing the code from ...
1878 (error): ... this. Call verror.
1879 * term.c (vfatal): New function containing the code from ...
1880 (fatal): ... this. Call vfatal.
1881 (maybe_fatal): Convert to standard C, use variable number of
1882 arguments. Declare as non-return.
1883 (init_tty): Fix maybe_fatal call.
1884
0521f580
DN
18852010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1886
1887 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
1888 (_scroll_bar_note_movement): Convert definitions to standard C.
1889 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
1890 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
1891
ebd15611
DN
18922010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1893
1894 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
1895 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
1896 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
1897 (xaw_jump_callback, xaw_scroll_callback)
1898 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
1899 (x_wm_set_size_hint, x_activate_timeout_atimer): Convert
1900 definitions to standard C.
1901 * xmenu.c (menubar_id_to_frame, popup_get_selection)
1902 (popup_activate_callback, popup_deactivate_callback)
1903 (menu_highlight_callback, menubar_selection_callback)
1904 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
1905 (free_frame_menubar, popup_selection_callback, as)
1906 (create_and_show_popup_menu, dialog_selection_callback)
1907 (create_and_show_dialog):
1908 * xfns.c (hack_wm_protocols, x_window):
1909 * xfaces.c (x_update_menu_appearance):
1910 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
1911 (char_to_pixel_size, round_size_to_char, get_wm_shell)
1912 (set_frame_size, update_wm_hints, setup_frame_gcs)
1913 (update_various_frame_slots, update_from_various_frame_slots)
1914 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
1915 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
1916 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
1917
de06a2dd
AS
19182010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1919
a628ad9d 1920 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 1921
fc549af9
EZ
19222010-07-12 Eli Zaretskii <eliz@gnu.org>
1923
1924 * process.c (setup_process_coding_systems): Move to the part
1925 shared by non-subprocesses systems, and make its body empty when
1926 subprocesses is not defined.
1927 (close_process_descs): Move to the part shared by non-subprocesses
1928 systems.
1408902e
EZ
1929 (wait_reading_process_output) [!subprocesses]: Convert arg list to
1930 ANSI C.
fc549af9 1931
d5a3eaaf
AS
19322010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1933
1934 * editfns.c (transpose_markers): Convert old-style definition.
1935 * emacs.c (abort, shut_down_emacs, fixup_locale)
1936 (synchronize_system_time_locale)
1937 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
1938 * floatfns.c (extract_float, matherr, init_floatfns)
1939 (syms_of_floatfns): Likewise.
1940 * fns.c (make_hash_table): Likewise.
1941 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
1942 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
1943 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
1944 (ftfont_variation_glyphs): Likewise.
1945 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
1946 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
1947 * lread.c (read_filtered_event): Likewise.
1948 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
1949 * process.c (wait_reading_process_output): Likewise.
1950 * scroll.c (do_line_insertion_deletion_costs): Likewise.
1951 * search.c (search_buffer, boyer_moore): Likewise.
1952 * syntax.c (scan_sexps_forward): Likewise.
1953 * xdisp.c (try_scrolling): Likewise.
1954 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
1955 (face_at_string_position): Likewise.
1956 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
1957 * xselect.c (x_get_window_property, receive_incremental_selection)
1958 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
1959 Likewise.
1960 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
1961
6f704c76
DN
19622010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
1963
ded80a25
DN
1964 * callproc.c (child_setup): Remove subprocesses conditional.
1965 Remove code dealing with SET_EMACS_PRIORITY, unused.
1966
49d937f4 1967 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
1968 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
1969
1970 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
1971 (__do_global_dtors, __main): Use void in definition.
1972 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
1973 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
1974 the only users from ...
1975 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
1976 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
1977 (HAVE_VOLATILE): Remove, unused.
1978
6f704c76
DN
1979 Convert more function definitions to standard C.
1980 * xdisp.c (window_box_edges, handle_single_display_spec)
1981 (display_string): Convert definition to standard C.
1982 * scroll.c (do_direct_scrolling, scrolling_1):
1983 * dispnew.c (allocate_matrices_for_frame_redisplay)
1984 (mirrored_line_dance):
1985 * coding.c (code_convert_string):
1986 * charset.c (map_charset_chars):
1987 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
1988 (Fregister_ccl_program, Fregister_code_conversion_map):
1989 * keyboard.c (kbd_buffer_nr_stored): Likewise.
1990 (head_table): Make static and const.
1991
e6cfa7c3
AS
19922010-07-12 Andreas Schwab <schwab@linux-m68k.org>
1993
1994 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
1995 (PROFILING_LDFLAGS): Set from substitution.
1996 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
1997 CFLAGS last.
1998
892dd565
KH
19992010-07-12 Kenichi Handa <handa@m17n.org>
2000
6f2cdcd1
KH
2001 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
2002 (shortlisp): Likewise.
2003
892dd565
KH
2004 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
2005
2006 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
2007 of FONT_ENTITY_INDEX.
2008 (Ffont_get): If KEY is :otf and the font-object doesn't have the
2009 property, get the property value dynamically.
2010 (Ffont_put): Accept font-entity and font-object too.
2011 (Ffont_get_glyhphs): Renamed from Fget_font_glyphs. Arguments and
2012 return value changed.
2013 (syms_of_font): Adjusted for the above change.
2014
ae96d47a
AS
20152010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2016
c8fc18ee
AS
2017 * blockinput.h: Remove obsolete comment.
2018
89887d67
AS
2019 * lisp.h: Include <stddef.h>.
2020 (OFFSETOF): Don't define.
2021 (VECSIZE): Use offsetof instead of OFFSETOF.
2022 (PSEUDOVECSIZE): Likewise.
2023 * process.c (conv_sockaddr_to_lisp): Likewise.
2024 * alloc.c: Don't include <stddef.h>.
2025 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
2026
ae96d47a
AS
2027 * process.c: Remove obsolete comment.
2028
635c0aa1
CY
20292010-07-11 Chong Yidong <cyd@stupidchicken.com>
2030
2031 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
2032
a64df650
AS
20332010-07-11 Andreas Schwab <schwab@linux-m68k.org>
2034
8966b757
AS
2035 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
2036 index, rindex.
2037 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
2038 * editfns.c (Fuser_full_name, Fformat): Likewise.
2039 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
2040 * fileio.c (Ffile_symlink_p): Likewise.
2041 * filelock.c (current_lock_owner): Likewise.
2042 * font.c (font_parse_name, font_parse_family_registry): Likewise.
2043 * fontset.c (fontset_pattern_regexp): Likewise.
2044 * lread.c (read1): Likewise.
2045 * sysdep.c (init_system_name): Likewise.
2046 * xfns.c (select_visual): Likewise.
2047 * s/hpux10-20.h (index, rindex): Don't define.
2048 * s/ms-w32.h (index): Likewise.
2049 * s/usg5-4.h: Likewise.
2050
cf237e27
AS
2051 * callproc.c (relocate_fd): Use F_DUPFD if defined.
2052
a8fe7202
AS
2053 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
2054 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
2055 (egetenv): Likewise.
2056 * doprnt.c (doprnt): Likewise.
2057 * editfns.c (set_time_zone_rule, format2): Likewise.
2058 * emacs.c (decode_env_path): Likewise.
2059 * eval.c (signal_error, error): Likewise.
2060 * insdel.c (replace_range_2): Likewise.
2061 * keyboard.c (cmd_error_internal): Likewise.
2062 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
2063 * print.c (write_string, write_string_1, print_error_message):
2064 Likewise.
2065 * vm-limit.c (warn_function, memory_warnings): Likewise.
2066 * xdisp.c (message1, message1_nolog, message_with_string)
2067 (vmessage, message, message_nolog): Likewise.
2068 * emacs.c: Remove duplicate declaration.
2069 * keyboard.h: Likewise.
2070 * lisp.h: Update prototypes.
2071
bb8e180f
AS
2072 * eval.c: Fix indentation problem.
2073
83380e65
AS
2074 * keyboard.c: Include "process.h"
2075
a64df650
AS
2076 * eval.c: Remove obsolete noinline declaration.
2077 * fns.c: Likewise.
2078
6a8033e1
KR
20792010-07-11 Ken Raeburn <raeburn@raeburn.org>
2080
2081 * doprnt.c (doprnt): Take a va_list argument instead of count and
2082 pointer.
2083 * eval.c (error): Change to a standard-C variadic function.
2084 * xdisp.c (vmessage): Renamed from message, made static, and
2085 changed to take a va_list argument.
2086 (message): New variadic wrapper.
2087 (message_nolog): Now a variadic function, calling vmessage.
2088 * lisp.h: Include stdarg.h for va_list.
2089 (doprnt, error, message, message_nolog): Decls updated.
2090
462aa963
EZ
20912010-07-11 Eli Zaretskii <eliz@gnu.org>
2092
2093 * process.c (syms_of_process) <delete-exited-processes>: Define
2094 even if !subprocesses.
2095 (delete_exited_processes): Ditto.
2096
2097 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
2098 (delete_exited_processes): Don't define.
2099
48104462
CY
21002010-07-10 Chong Yidong <cyd@stupidchicken.com>
2101
2102 * frame.c (make_frame): Initialize menu_bar_lines and
2103 tool_bar_lines members.
2104 (make_initial_frame, make_terminal_frame): Initialize
2105 menu_bar_lines using value of menu-bar-mode.
2106
2107 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
2108
f388c88a
EZ
21092010-07-10 Eli Zaretskii <eliz@gnu.org>
2110
2111 * process.c: Reshuffle #include's. Condition some of the global
2112 and static variables on `subprocesses'.
2113 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2114 Leave only one implementation.
2115 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
2116 (kill_buffer_processes, Flist_system_processes)
2117 (Fprocess_attributes, init_process, syms_of_process): Unify the
2118 implementations for with subprocesses and without them.
2119
723f5a07
J
21202010-07-09 Jan Djärv <jan.h.d@swipnet.se>
2121
2122 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
2123 correct size for Motif.
2124 (free_frame_menubar): Call x_set_window_size to update frame size.
2125
2126 * xfns.c (x_window): Set borderWidth to 0 for pane and
2127 EmacsFrame. Frame size calculation is wrong otherwise.
2128
2536a4b7
MA
21292010-07-09 Michael Albinus <michael.albinus@gmx.de>
2130
2131 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
2132 allows to suppress errors when polling in Emacs' main loop.
2133 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
2134 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
2135 (Fdbus_method_error_internal, Fdbus_send_signal)
2136 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
2137 (Fdbus_register_method): Use it. (Bug#6579)
2138
5842a27b
DN
21392010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2140
2141 * alloc.c: Convert DEFUNs to standard C.
2142 * buffer.c:
2143 * bytecode.c:
2144 * callint.c:
2145 * callproc.c:
2146 * casefiddle.c:
2147 * casetab.c:
2148 * category.c:
2149 * character.c:
2150 * charset.c:
2151 * chartab.c:
2152 * cmds.c:
2153 * coding.c:
2154 * composite.c:
2155 * data.c:
2156 * dbusbind.c:
2157 * dired.c:
2158 * dispnew.c:
2159 * doc.c:
2160 * dosfns.c:
2161 * editfns.c:
2162 * emacs.c:
2163 * eval.c:
2164 * fileio.c:
2165 * filelock.c:
2166 * floatfns.c:
2167 * fns.c:
2168 * font.c:
2169 * fontset.c:
2170 * frame.c:
2171 * fringe.c:
2172 * image.c:
2173 * indent.c:
2174 * insdel.c:
2175 * keyboard.c:
2176 * keymap.c:
2177 * lread.c:
2178 * macros.c:
2179 * marker.c:
2180 * menu.c:
2181 * minibuf.c:
2182 * msdos.c:
2183 * nsfns.m:
2184 * nsmenu.m:
2185 * nsselect.m:
2186 * print.c:
2187 * process.c:
2188 * search.c:
2189 * sound.c:
2190 * syntax.c:
2191 * term.c:
2192 * terminal.c:
2193 * textprop.c:
2194 * undo.c:
2195 * w16select.c:
2196 * w32console.c:
2197 * w32fns.c:
2198 * w32font.c:
2199 * w32menu.c:
2200 * w32proc.c:
2201 * w32select.c:
2202 * window.c:
2203 * xdisp.c:
2204 * xfaces.c:
2205 * xfns.c:
2206 * xmenu.c:
2207 * xselect.c:
2208 * xsettings.c:
2209 * xsmfns.c: Likewise.
2210
d568829b
EZ
22112010-07-08 Eli Zaretskii <eliz@gnu.org>
2212
2213 * process.c (kbd_is_on_hold, hold_keyboard_input)
2214 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
2215
52214050
J
22162010-07-08 Jan Djärv <jan.h.d@swipnet.se>
2217
2218 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
2219 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
2220 unless USE_LUCID.
2221
313d9eb2
DN
22222010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
2223
a628ad9d
JB
2224 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
2225 declaration.
d8825aa3 2226
295d0d8f
DN
2227 Clean up include guards.
2228 * tparam.c: Remove include guards for config.h, string.h and code
2229 that assumes #ifndef emacs.
2230 * termcap.c:
2231 * unexalpha.c:
2232 * sysdep.c:
2233 * filemode.c:
2234 * filelock.c:
2235 * bidi.c: Likewise.
2236
49d9e6b0
DN
2237 Remove prefix-args.c
2238 * prefix-args.c: Remove file.
2239 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
2240 * Makefile.in (temacs${EXEEXT}): Remove references to
2241 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
2242 (mostlyclean): Remove reference to prefix-args.
2243 (prefix-args): Remove.
2244
313d9eb2
DN
2245 Simplify cstart_of_data, start_of_code and related code.
2246 * mem-limits.h: Remove !emacs and _LIBC conditional code.
2247 (start_of_data): Merge into start_of_data function.
2248 * sysdep.c (start_of_text): Remove. Move simplified versions of
2249 it in the only users: unexaix.c and unexec.c.
2250 (read_input_waiting): Remove local declaration of quit_char.
2251 (start, etext): Remove declarations.
2252 (start_of_data): Merge with the version in mem-limits.h and move
2253 to vm-limits.c.
2254 * vm-limit.c (start_of_data): Merged and simplified version of the
2255 code formerly in mem-limits.h and sysdep.c.
2256 * unexec.c (start): New declaration, moved from sysdep.c.
2257 (start_of_text): Simplified version of the code formerly in sysdep.c.
2258 * unexaix.c (start_of_text): Simplified version of the code
2259 formerly in sysdep.c.
2260 * m/alpha.h (HAVE_TEXT_START): Remove.
2261 (TEXT_START): Move ...
2262 * unexalpha.c (TEXT_START): ... here.
2263 * s/hpux10-20.h (TEXT_START): Remove.
2264 * s/darwin.h (TEXT_START):
2265 * m/mips.h (TEXT_START):
2266 * m/macppc.h (HAVE_TEXT_START):
2267 * m/m68k.h (TEXT_START):
2268 * m/iris4d.h (TEXT_START):
2269 * m/intel386.h (TEXT_START):
2270 * m/ibmrs6000.h (TEXT_START):
2271 * m/ia64.h (HAVE_TEXT_START):
2272 * s/msdos.h (TEXT_START): Likewise.
2273
72af86bd
AS
22742010-07-07 Andreas Schwab <schwab@linux-m68k.org>
2275
2276 * alloc.c (overrun_check_malloc, overrun_check_realloc)
2277 (overrun_check_free, xstrdup, allocate_string)
2278 (allocate_string_data, compact_small_strings, Fmake_string)
2279 (make_unibyte_string, make_multibyte_string)
2280 (make_string_from_bytes, make_specified_string, make_float)
2281 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
2282 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
2283 memcpy, memmove, memset, memcmp.
2284 * atimer.c (start_atimer, set_alarm): Likewise.
2285 * buffer.c (clone_per_buffer_values, report_overlay_modification)
2286 (mmap_realloc, init_buffer_once): Likewise.
2287 * callint.c (Fcall_interactively): Likewise.
2288 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
2289 (getenv_internal_1): Likewise.
2290 * casefiddle.c (casify_object): Likewise.
2291 * ccl.c (ccl_driver): Likewise.
2292 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
2293 * charset.c (load_charset_map_from_file)
2294 (load_charset_map_from_file, load_charset_map_from_vector)
2295 (Fdefine_charset_internal): Likewise.
2296 * cm.c (Wcm_clear): Likewise.
2297 * coding.c (decode_eol, decode_coding_object)
2298 (Fset_coding_system_priority, make_subsidiaries): Likewise.
2299 * data.c (Faset): Likewise.
2300 * dired.c (directory_files_internal, file_name_completion_stat):
2301 Likewise.
2302 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
2303 (clear_glyph_row, copy_row_except_pointers)
2304 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
2305 (save_current_matrix, restore_current_matrix)
2306 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
2307 (mirror_line_dance, scrolling_window): Likewise.
2308 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
2309 Likewise.
2310 * doprnt.c (doprnt): Likewise.
2311 * editfns.c (Fuser_full_name, make_buffer_string_both)
2312 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
2313 * emacs.c (sort_args): Likewise.
2314 * eval.c (Fapply, Ffuncall): Likewise.
2315 * fileio.c (Ffile_name_directory, make_temp_name)
2316 (Fexpand_file_name, search_embedded_absfilename)
2317 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
2318 (auto_save_error): Likewise.
2319 * fns.c (Fstring_equal, Fcopy_sequence, concat)
2320 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
2321 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
2322 (Fmake_hash_table): Likewise.
2323 * fringe.c (Fdefine_fringe_bitmap): Likewise.
2324 * ftfont.c (ftfont_text_extents): Likewise.
2325 * getloadavg.c (getloadavg): Likewise.
2326 * image.c (define_image_type, make_image, make_image_cache)
2327 (x_create_x_image_and_pixmap, xbm_image_p)
2328 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
2329 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
2330 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
2331 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
2332 (tiff_image_p, tiff_read_from_memory, gif_image_p)
2333 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
2334 Likewise.
2335 * indent.c (scan_for_column, compute_motion): Likewise.
2336 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
2337 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
2338 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
2339 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
2340 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
2341 (store_user_signal_events, menu_bar_items, tool_bar_items)
2342 (process_tool_bar_item, append_tool_bar_item)
2343 (read_char_minibuf_menu_prompt, read_key_sequence)
2344 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
2345 Likewise.
2346 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
2347 Likewise.
2348 * lisp.h (STRING_COPYIN): Likewise.
2349 * lread.c (Fload, read1, oblookup): Likewise.
2350 * msdos.c (Frecent_doskeys): Likewise.
2351 * nsfns.m (Fx_create_frame): Likewise.
2352 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
2353 Likewise.
2354 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
2355 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
2356 Likewise.
2357 * nsmenu.m (ns_update_menubar): Likewise.
2358 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
2359 * print.c (print_unwind, printchar, strout, print_string)
2360 (print_error_message): Likewise.
2361 * process.c (conv_lisp_to_sockaddr, set_socket_option)
2362 (Fmake_network_process, Fnetwork_interface_list)
2363 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
2364 (init_process): Likewise.
2365 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
2366 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
2367 Likewise.
2368 * scroll.c (do_scrolling, do_direct_scrolling)
2369 (scrolling_max_lines_saved): Likewise.
2370 * search.c (search_buffer, wordify, Freplace_match): Likewise.
2371 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
2372 * syntax.c (skip_chars, skip_syntaxes): Likewise.
2373 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
2374 (emacs_set_tty): Likewise.
2375 * term.c (encode_terminal_code, calculate_costs)
2376 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
2377 Likewise.
2378 * termcap.c (tgetst1, gobble_line): Likewise.
2379 * termhooks.h (EVENT_INIT): Likewise.
2380 * tparam.c (tparam1): Likewise.
2381 * unexalpha.c (unexec): Likewise.
2382 * unexec.c (write_segment): Likewise.
2383 * unexmacosx.c (unexec_write_zero): Likewise.
2384 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
2385 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
2386 * w32font.c (w32font_list_family, w32font_text_extents)
2387 (w32font_list_internal, w32font_match_internal)
2388 (w32font_open_internal, compute_metrics, Fx_select_font):
2389 Likewise.
2390 * w32menu.c (set_frame_menubar, add_menu_item)
2391 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
2392 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
2393 * w32uniscribe.c (uniscribe_list_family): Likewise.
2394 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
2395 * window.c (make_window, replace_window, set_window_buffer)
2396 (Fsplit_window): Likewise.
2397 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
2398 (add_to_log, message3, x_consider_frame_title)
2399 (append_space_for_newline, extend_face_to_end_of_line)
2400 (decode_mode_spec_coding, init_glyph_string): Likewise.
2401 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
2402 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
2403 (face_attr_equal_p, make_realized_face, make_face_cache)
2404 (free_realized_faces, lookup_named_face, smaller_face)
2405 (face_with_height, lookup_derived_face)
2406 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
2407 (Finternal_set_font_selection_order, realize_default_face)
2408 (compute_char_face, face_at_buffer_position)
2409 (face_for_overlay_string, face_at_string_position, merge_faces):
2410 Likewise.
2411 * xfns.c (xic_create_fontsetname, Fx_create_frame)
2412 (Fx_window_property, x_create_tip_frame)
2413 (Fx_backspace_delete_keys_p): Likewise.
2414 * xfont.c (xfont_list, xfont_match, xfont_list_family)
2415 (xfont_text_extents): Likewise.
2416 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
2417 * xrdb.c (magic_file_p, x_get_resource): Likewise.
2418 * xselect.c (x_queue_event, x_get_window_property)
2419 (receive_incremental_selection): Likewise.
2420 * xsmfns.c (x_session_check_input): Likewise.
2421 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
2422 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
2423 Likewise.
2424 * character.h (BCOPY_SHORT): Removed.
2425 * config.in: Regenerate.
2426 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
2427 * emacs.c (main) [PROFILING]: Don't declare
2428 dump_opcode_frequencies.
2429 * lisp.h (safe_bcopy): Remove declaration.
2430 (memset) [!HAVE_MEMSET]: Declare.
2431 (memcpy) [!HAVE_MEMCPY]: Likewise.
2432 (memmove) [!HAVE_MEMMOVE]: Likewise.
2433 (memcmp) [!HAVE_MEMCMP]: Likewise.
2434 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
2435 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
2436 Don't define.
2437 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
2438 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
2439 (BCOPY_DOWNWARD_SAFE): Don't define.
2440 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
2441 (memcpy) [!HAVE_MEMCPY]: Define.
2442 (memmove) [!HAVE_MEMMOVE]: Define.
2443 (memcmp) [!HAVE_MEMCMP]: Define.
2444
cb768704
J
24452010-07-07 Jan Djärv <jan.h.d@swipnet.se>
2446
2447 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
2448 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
2449 New functions.
cb768704
J
2450 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
2451 select on empty input mask.
2452 (init_process): Initialize kbd_is_on_hold to 0.
2453
2454 * process.h (hold_keyboard_input, unhold_keyboard_input)
2455 (kbd_on_hold_p): Declare.
2456
2457 * keyboard.c (input_available_signal): Declare.
2458 (kbd_buffer_nr_stored): New function.
2459 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
2460 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
2461 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
2462 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
2463 (tty_read_avail_input): If input is on hold, return.
2464 Don't read more that free slots in kbd_buffer (Bug#6571).
2465
3a8ce822
EZ
24662010-07-07 Eli Zaretskii <eliz@gnu.org>
2467
2468 * msdos.h:
2469 * msdos.c:
2470 * dosfns.c:
2471 * w16select.c: Convert function definitions to ANSI C.
2472
a628ad9d
JB
2473 * msdos.h (ctrl_break_func, install_ctrl_break_check):
2474 Remove unused prototypes.
3a8ce822 2475
cf84bb53
JB
24762010-07-07 Juanma Barranquero <lekktu@gmail.com>
2477
2478 * coding.c, sysdep.c: Convert some more functions to standard C.
2479
1a4990fb
JB
24802010-07-07 Juanma Barranquero <lekktu@gmail.com>
2481
2482 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
2483 (encode_coding_object): Use SPECPDL_INDEX.
2484 (syms_of_coding): Use DOS_NT.
2485
c0f2f16b
DN
24862010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
2487
48fb6855
DN
2488 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
2489
c0f2f16b
DN
2490 Make the function member of Lisp_Subr use standard C prototypes.
2491 * lisp.h (struct Lisp_Subr): Use a union for the function member.
2492 (DECL_ALIGN): Add a cast for the function.
2493 * eval.c (Feval, Ffuncall): Use the proper type for each type
2494 function call.
2495
67aecef9
CY
24962010-07-06 Chong Yidong <cyd@stupidchicken.com>
2497
2498 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
2499 fringe face id, so face-remapping-alist works (Bug#6091).
2500
b56ceb92
JB
25012010-07-06 Juanma Barranquero <lekktu@gmail.com>
2502
2503 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
2504 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
2505 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
2506
7af07b96
AS
25072010-07-06 Andreas Schwab <schwab@linux-m68k.org>
2508
2509 * xterm.c (x_get_keysym_name): Change type of parameter to int.
2510 * lisp.h: Declare x_get_keysym_name.
2511 * keyboard.c (modify_event_symbol): Don't declare
2512 x_get_keysym_name here.
2513
69e24e34
DN
25142010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
2515
2516 * ecrt0.c: Revert conversion to standard C.
2517
d3da34e0 25182010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
2519
2520 * vm-limit.c (memory_warnings):
2521 * keyboard.c (modify_event_symbol):
2522 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
2523 (round2, emacs_rint):
2524 * process.c (send_process, old_sigpipe): Convert function
2525 definitions and declarations to standard C.
2526
25272010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
2528
2529 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
2530 * xdisp.c: Convert function definitions to standard C.
2531
2532 * cm.c (cmputc): Arg C is now int, not char.
2533 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
2534
00be444c
J
25352010-07-05 James Cloos <cloos@jhcloos.com>
2536
2537 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
2538
2539 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
2540 _NET_WM_ICON_NAME atoms.
2541
2542 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
2543 and _NET_WM_ICON_NAME properties, too, matching what is
2544 done in the Gtk+ case.
2545
e4c8d29a
J
25462010-07-05 Jan Djärv <jan.h.d@swipnet.se>
2547
ff919460
J
2548 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
2549
e4c8d29a
J
2550 * xsmfns.c (SSDATA): New macro.
2551 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
2552 passed to strlen/strcpy/strcat.
2553 (create_client_leader_window): Surround with #ifndef USE_GTK. Cast
2554 7:th arg to XChangeProperty to (unsigned char *)
2555
2556 * xsettings.c (something_changedCB, parse_settings)
2557 (apply_xft_settings): Reformat prototype.
2558 (something_changedCB, init_gconf): Remove unused variable i.
2559 (read_settings): Remove unused variable long_len.
2560
2561 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
2562 (xg_get_image_for_pixmap, create_dialog)
2563 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
2564 (menuitem_highlight_callback, make_menu_item)
2565 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
2566 (xg_create_scroll_bar, xg_update_scrollbar_pos)
2567 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
2568 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
2569 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
2570 (xg_tool_bar_item_expose_callback): Reformat prototype.
2571 (xg_update_menubar): GList *group => GSList *group.
2572 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
2573 before use.
2574 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
2575 to GTK_IMAGE (wimage).
2576
dd4c5104
DN
25772010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
2578
898b4c5c
DN
2579 * atimer.c: Use "" instead of <> for local includes for
2580 consistency with the rest of the code.
2581
dd4c5104
DN
2582 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
2583 * xrdb.c (get_system_name):
2584 * window.c (shrink_windows):
2585 * syntax.c (forw_comment):
2586 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
2587 (ins_del_costs):
2588 * mem-limits.h (start_of_data):
2589 * lread.c (readevalloop):
2590 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
2591 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
2592 * frame.c (x_get_focus_frame):
2593 * floatfns.c (fmod_float):
2594 * fileio.c (choose_write_coding_system):
2595 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
2596 (malloc_initialize_hook, sort_args, synchronize_locale):
2597 * doprnt.c (doprnt):
2598 * dired.c (compile_pattern):
2599 * data.c (fmod_float):
2600 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
2601 (map_char_table_for_charset):
2602 * charset.c (define_charset_internal):
2603 * alloc.c (Fgarbage_collect): Convert declarations or definitions
2604 to standard C.
2605
9a39b306 26062010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 2607 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
2608
2609 * lread.c (read1): Fix up last change to not mess up `c'.
2610
e6cb2cbb
JB
26112010-07-04 Juanma Barranquero <lekktu@gmail.com>
2612
2613 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
2614
438105ed
JB
26152010-07-04 Juanma Barranquero <lekktu@gmail.com>
2616
2617 Fix prototypes.
2618
e5447b22 2619 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 2620 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
2621 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
2622 arg, as required by internal_condition_case_1.
dcc7404b 2623 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
2624 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
2625 (analyse_first): Fix "const const".
e5447b22 2626 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 2627 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 2628 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 2629
971de7fb
DN
26302010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
2631
2632 * alloc.c: Convert function definitions to standard C.
2633 * atimer.c:
2634 * bidi.c:
2635 * bytecode.c:
2636 * callint.c:
2637 * callproc.c:
2638 * casefiddle.c:
2639 * casetab.c:
2640 * category.c:
2641 * ccl.c:
2642 * character.c:
2643 * charset.c:
2644 * chartab.c:
2645 * cmds.c:
2646 * coding.c:
2647 * composite.c:
2648 * data.c:
2649 * dbusbind.c:
2650 * dired.c:
2651 * dispnew.c:
2652 * doc.c:
2653 * doprnt.c:
2654 * ecrt0.c:
2655 * editfns.c:
2656 * fileio.c:
2657 * filelock.c:
2658 * filemode.c:
2659 * fns.c:
2660 * font.c:
2661 * fontset.c:
2662 * frame.c:
2663 * fringe.c:
2664 * ftfont.c:
2665 * ftxfont.c:
2666 * gtkutil.c:
2667 * indent.c:
2668 * insdel.c:
2669 * intervals.c:
2670 * keymap.c:
2671 * lread.c:
2672 * macros.c:
2673 * marker.c:
2674 * md5.c:
2675 * menu.c:
2676 * minibuf.c:
2677 * prefix-args.c:
2678 * print.c:
2679 * ralloc.c:
2680 * regex.c:
2681 * region-cache.c:
2682 * scroll.c:
2683 * search.c:
2684 * sound.c:
2685 * strftime.c:
2686 * syntax.c:
2687 * sysdep.c:
2688 * termcap.c:
2689 * terminal.c:
2690 * terminfo.c:
2691 * textprop.c:
2692 * tparam.c:
2693 * undo.c:
2694 * unexelf.c:
2695 * window.c:
2696 * xfaces.c:
2697 * xfns.c:
2698 * xfont.c:
2699 * xftfont.c:
2700 * xgselect.c:
2701 * xmenu.c:
2702 * xrdb.c:
2703 * xselect.c:
2704 * xsettings.c:
2705 * xsmfns.c:
2706 * xterm.c: Likewise.
2707
ae492bec
EZ
27082010-07-03 Eli Zaretskii <eliz@gnu.org>
2709
76ea4cc9
EZ
2710 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
2711 frames other than the initial one. Fix reversal of colors when
2712 `reverse' is specified in the frame parameters. Call
2713 update_face_from_frame_parameter instead of
2714 internal-set-lisp-face-attribute. Initialize screen colors from
2715 initial_screen_colors[] when f->default_face_done_p is zero,
2716 instead of depending on being called with default-frame-alist as
2717 the alist argument.
2718
2719 * xfaces.c (update_face_from_frame_parameter): Move out of
2720 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
2721 with HAVE_WINDOW_SYSTEM.
2722
1e6255ae
EZ
2723 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
2724 to menu-bar-mode, if not set in the frame parameters or in
2725 default-frame-alist.
2726
ae492bec
EZ
2727 * w32console.c (sys_tputs): Adjust argument list to prototype in
2728 term.c.
2729
3a35a84c
JB
27302010-07-03 Juanma Barranquero <lekktu@gmail.com>
2731
2732 * lisp.h (memory_warnings): Fix prototype.
2733
2734 * cm.h (evalcost): Fix prototype.
2735
2736 * cm.c (evalcost): Fix arg type.
2737
c532d349
DN
27382010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2739
2740 * term.c (term_clear_mouse_face, Fidentity):
2741 * syssignal.h (signal_handler_t):
2742 * lisp.h (memory_warnings):
2743 * coding.h (preferred_coding_system):
2744 * cm.h (evalcost):
2745 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
2746
c0b36d46
EZ
27472010-07-02 Eli Zaretskii <eliz@gnu.org>
2748
2749 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
2750 from prototypes.
2751
2752 * msdos.h (load_pixmap): Don't define away.
2753
383e0970
J
27542010-07-02 Jan Djärv <jan.h.d@swipnet.se>
2755
f57e2426
J
2756 * lisp.h:
2757 * atimer.h: Remove define for P_.
2758
2759 * alloc.c: Remove __P and P_ from .c and .m files.
2760 * atimer.c:
2761 * buffer.c:
2762 * callint.c:
2763 * category.c:
2764 * charset.c:
2765 * chartab.c:
2766 * cm.c:
2767 * coding.c:
2768 * composite.c:
2769 * data.c:
2770 * dired.c:
2771 * dispnew.c:
2772 * doc.c:
2773 * editfns.c:
2774 * emacs.c:
2775 * eval.c:
2776 * fileio.c:
2777 * filelock.c:
2778 * fns.c:
2779 * font.c:
2780 * fontset.c:
2781 * frame.c:
2782 * ftfont.c:
2783 * ftxfont.c:
2784 * gmalloc.c:
2785 * gtkutil.c:
2786 * image.c:
2787 * indent.c:
2788 * intervals.c:
2789 * keyboard.c:
2790 * keymap.c:
2791 * lread.c:
2792 * marker.c:
2793 * menu.c:
2794 * minibuf.c:
2795 * print.c:
2796 * process.c:
2797 * scroll.c:
2798 * search.c:
2799 * sound.c:
2800 * strftime.c:
2801 * syntax.c:
2802 * sysdep.c:
2803 * term.c:
2804 * terminal.c:
2805 * textprop.c:
2806 * unexalpha.c:
2807 * w32console.c:
2808 * w32fns.c:
2809 * w32font.c:
2810 * w32menu.c:
2811 * w32term.c:
2812 * w32uniscribe.c:
2813 * window.c:
2814 * xdisp.c:
2815 * xfaces.c:
2816 * xfns.c:
2817 * xfont.c:
2818 * xftfont.c:
2819 * xmenu.c:
2820 * xselect.c:
2821 * xterm.c: Likewise.
2822
383e0970 2823 Remove P_ and __P macros.
f57e2426
J
2824 * atimer.h: Remove P_ and __P macros.
2825 * buffer.h:
383e0970
J
2826 * category.h:
2827 * ccl.h:
2828 * character.h:
2829 * charset.h:
2830 * cm.h:
2831 * coding.h:
2832 * composite.h:
2833 * dispextern.h:
2834 * disptab.h:
9e892c8d 2835 * dosfns.h:
383e0970
J
2836 * font.h:
2837 * fontset.h:
2838 * frame.h:
2839 * gtkutil.h:
2840 * indent.h:
2841 * intervals.h:
2842 * keyboard.h:
2843 * keymap.h:
2844 * lisp.h:
2845 * macros.h:
2846 * md5.h:
2847 * menu.h:
2848 * msdos.h:
2849 * nsterm.h:
2850 * puresize.h:
2851 * region-cache.h:
2852 * syntax.h:
2853 * syssignal.h:
2854 * systime.h:
2855 * termhooks.h:
9e892c8d 2856 * w32font.h:
383e0970
J
2857 * w32term.h:
2858 * widget.h:
2859 * window.h:
2860 * xgselect.h:
2861 * xsettings.h:
2862 * xterm.h: Likewise.
2863
98601119
DN
28642010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
2865
d9170db5
DN
2866 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
2867
98601119
DN
2868 Cleanup old code.
2869 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
2870 * syssignal.h: Remove code for Lynx, not supported anymore.
2871 * vm-limit.c: Remove unused code the depends on emacs not being
2872 defined and NO_LIM_DATA being defined.
2873 * mem-limits.h: Remove dead code.
2874
1f984e12
J
28752010-07-01 Jan Djärv <jan.h.d@swipnet.se>
2876
c49d071a
J
2877 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
2878
9d5405ec
J
2879 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
2880 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
2881
7a18115b
J
2882 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
2883 parameters, they are already absolute.
2884
a628ad9d
JB
2885 * nsterm.m (x_set_window_size, initFrameFromEmacs):
2886 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 2887
a628ad9d 2888 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 2889
a628ad9d
JB
2890 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
2891 Update FRAME_TOOLBAR_HEIGHT.
581a8100 2892
a628ad9d
JB
2893 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
2894 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 2895
c1ef4455
CY
28962010-06-30 Chong Yidong <cyd@stupidchicken.com>
2897
2898 * frame.c (get_future_frame_param, Fmake_terminal_frame): Don't
2899 check default-frame-alist.
2900
ce8f5a9a
AS
29012010-06-30 Andreas Schwab <schwab@linux-m68k.org>
2902
2903 * process.c (create_process): Avoid using invalid file descriptors.
2904
2905 * callproc.c (child_setup): Avoid closing a file descriptor twice.
2906
bf935339
J
29072010-06-30 Jan Djärv <jan.h.d@swipnet.se>
2908
2909 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
2910 Improve documentation. Return font regardless of use_system_font.
2911 (syms_of_xsettings): Improve documentation for font-use-system-font.
2912
7c33a057
CY
29132010-07-10 Chong Yidong <cyd@stupidchicken.com>
2914
2ec1b5ee
CY
2915 * xfaces.c (realize_face): Garbage the frame if a face is removed
2916 (Bug#6593).
2917
29182010-07-05 Andreas Schwab <schwab@linux-m68k.org>
2919
2920 * keyboard.c: Remove duplicate <setjmp.h>.
2921 (read_key_sequence): Remove volatile qualifiers.
2922
29232010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2924
2925 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
2926 (struct glyph_row): New members left_fringe_offset and
2927 right_fringe_offset.
2928
2929 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
2930 specially.
2931 * w32term.c (w32_draw_fringe_bitmap): Likewise.
2932 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
2933
2934 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 2935 Take account of bitmap offset.
2ec1b5ee
CY
2936 (draw_window_fringes): Take account of window vscroll.
2937 (update_window_fringes): Likewise. Extend top-aligned top indicator
2938 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
2939 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
2940 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
2941
29422010-07-04 Juanma Barranquero <lekktu@gmail.com>
2943
2944 * w32fns.c (Qtooltip): Declare.
2945 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
2946
29472010-07-03 Jan Djärv <jan.h.d@swipnet.se>
2948
2949 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
2950 grab on just Press (Bug#6499).
2951
29522010-07-02 Chong Yidong <cyd@stupidchicken.com>
2953
2954 * frame.c (Qtooltip): New var.
2955 (delete_frame): Use it. Fix faulty if statement. Don't update
2956 mode line for tooltip frames. Suggested by Martin Rudalics.
2957
2958 * xfns.c (x_create_tip_frame):
2959 * w32fns.c (x_create_tip_frame): Use it.
2960
29612010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
2962
2963 * xftfont.c (xftfont_open): Check font width one by one also when
2964 spacing is dual.
2965
2966 * ftfont.c (ftfont_open): Ditto.
2967
6259c2ec
GM
29682010-06-30 Glenn Morris <rgm@gnu.org>
2969
a46007e9
GM
2970 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
2971
6259c2ec
GM
2972 * Makefile.in (CANNOT_DUMP): Update for configure name change.
2973
2974 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
2975 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
2976 * s/darwin.h (SYSTEM_MALLOC):
2977 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
2978
5d1d3d04
J
29792010-06-29 Jan Djärv <jan.h.d@swipnet.se>
2980
2981 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
2982 (ns_get_screen): Don't assign integer to f.
2983 (Fx_display_color_cells): Declarations before statements.
2984
e547b051
J
29852010-06-28 Jan Djärv <jan.h.d@swipnet.se>
2986
5fc8e5bc
J
2987 * xfns.c (x_default_font_parameter): Remove got_from_system
2988 (Bug#6526).
2989
e547b051
J
2990 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
2991 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper): New
2992 defines based on what configure finds.
2993
2994 * xterm.c (XTflash): Use gtk_widget_get_window.
2995 (xg_scroll_callback): Use gtk_adjustment_get_upper and
2996 gtk_adjustment_get_page_size.
2997 (handle_one_xevent): Use gtk_widget_get_mapped.
2998 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
2999 messages.
3000
3001 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
3002
3003 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
3004 HAVE_GTK_FILE_SELECTION_NEW.
3005
3006 * gtkutil.c (xg_display_open, xg_display_close): Remove
3007 HAVE_GTK_MULTIDISPLAY, it is always defined.
3008 (xg_display_open): Return type is void.
3009 (gtk_widget_set_has_window)
3010 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
3011 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
3012 (gtk_adjustment_set_page_increment)
3013 (gtk_adjustment_get_step_increment): #define these if not found
3014 by configure.
3015 (remove_submenu): New define based on Gtk+ version.
3016 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar): Use
3017 gtk_widget_get_window.
3018 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
3019 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
3020 (create_dialog): Use gtk_dialog_get_action_area and
3021 gtk_dialog_get_content_area.
3022 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
3023 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
3024 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
3025 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item): Use
3026 g_object_ref and g_object_unref.
3027 (xg_update_menu_item, xg_tool_bar_menu_proxy): Use
3028 gtk_widget_get_sensitive.
3029 (xg_update_submenu): Use remove_submenu.
3030 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
3031 properties instead to get old x and y position.
3032 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
3033 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 3034 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
3035 (xg_get_tool_bar_widgets): New function.
3036 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
3037 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
3038 (toolbar_set_orientation): New #define based on if configure
3039 finds gtk_orientable_set_orientation.
3040 (xg_create_tool_bar): Call toolbar_set_orientation.
3041 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
3042 instead of gtk_box_pack_start_defaults.
3043
b9229673
CY
30442010-06-28 Chong Yidong <cyd@stupidchicken.com>
3045
3046 * cmds.c (Fdelete_backward_char): Move into Lisp.
3047
bbc803b0
DN
30482010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
3049
3050 * s/freebsd.h (BSD4_2): Remove redundant definition.
3051 bsd-common.h defines it already.
3052
6431f2e6
CY
30532010-06-27 Chong Yidong <cyd@stupidchicken.com>
3054
3055 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
3056 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
3057 tool-bar-mode, which are now set using these X resources at
3058 startup, to determine the defaults (Bug#2249).
3059
3060 * w32fns.c (Fx_create_frame):
3061 * nsfns.m (Fx_create_frame): Likewise.
3062
3063 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
3064
8c079ebb
JB
30652010-06-24 Juanma Barranquero <lekktu@gmail.com>
3066
3067 * gtkutil.c (xg_update_scrollbar_pos):
3068 Avoid C99 mid-block variable declaration.
3069
e9b7ab96
JD
30702010-06-22 Jan Djärv <jan.h.d@swipnet.se>
3071
bc869eca
JD
3072 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
3073
2b7e356a 3074 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
3075
3076 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
3077 if height is less than scroll bar min size.
3078 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
3079
e9b7ab96
JD
3080 * xfns.c (x_default_font_parameter): Try to open font from system
3081 before using it (bug#6478). Rename got_from_gconf to got_from_system.
3082
a628ad9d 30832010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
3084
3085 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
3086
70c4cfbb
EZ
30872010-06-20 Eli Zaretskii <eliz@gnu.org>
3088
3089 * xdisp.c (try_scrolling): When scroll-conservatively is set to
3090 most-positive-fixnum, be extra accurate when scrolling window
3091 start, to avoid missing the cursor line.
3092
ad5a12b5
EZ
30932010-06-19 Eli Zaretskii <eliz@gnu.org>
3094
3095 * xdisp.c (try_scrolling): Compute the limit for searching point
3096 in forward scroll from scroll_max, instead of an arbitrary limit
3097 of 10 screen lines. See
3098 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
3099 and
3100 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
3101 for details.
3102
2a64315a 31032010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
3104
3105 * editfns.c (Fbyte_to_string): Pacify compiler.
3106
288cf4e9
SM
31072010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
3108
3109 * lread.c (read1): Phase out old-style backquotes a bit more.
3110
6e6e5760
EZ
31112010-06-12 Eli Zaretskii <eliz@gnu.org>
3112
cbc4fd20
EZ
3113 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
3114 bidimirror.h.
3115
3116 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
3117
317fbf33
EZ
3118 * bidi.c (bidi_initialize): Remove explicit initialization of
3119 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 3120 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 3121 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
3122
3123 * biditype.h: New file.
3124
cbc4fd20
EZ
3125 * bidimirror.h: New file.
3126
6e6e5760
EZ
3127 * window.c (syms_of_window): Doc fix (bug#6409).
3128
4176cba2
RF
31292010-06-12 Romain Francoise <romain@orebokech.com>
3130
3131 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
3132 ediff-hook.
3133
cb4bfcb5
GM
31342010-06-10 Glenn Morris <rgm@gnu.org>
3135
64c60c2f
GM
3136 * editfns.c (Fbyte_to_string): Pacify compiler.
3137
cb4bfcb5
GM
3138 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
3139
2ec1b5ee
CY
31402010-06-26 Andreas Schwab <schwab@linux-m68k.org>
3141
3142 * alloc.c (Fmake_byte_code): Don't access undefined argument
3143 (Bug#6517).
3144
31452010-06-25 Chong Yidong <cyd@stupidchicken.com>
3146
3147 * xdisp.c (next_element_from_image): Ensure that after-strings are
3148 read the next time we hit handle_stop (Bug#1336).
3149
31502010-06-23 Andreas Schwab <schwab@linux-m68k.org>
3151
3152 * lread.c (read1): Signal error if #s is not followed by paren.
3153
31542010-06-19 Chong Yidong <cyd@stupidchicken.com>
3155
3156 * image.c (free_image): Mark frame as garbaged (Bug#6426).
3157
3158 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
3159
31602010-06-15 Glenn Morris <rgm@gnu.org>
3161
3162 * editfns.c (Fbyte_to_string): Pacify compiler.
3163
e454a4a3
SM
31642010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
3165
3166 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
3167 Check `object's type before accessing its guts.
3168
c1b1acc2
DN
31692010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
3170
3171 * s/usg5-4.h: Fix previous change.
3172 Suggested by Lawrence Mitchell <wence@gmx.li>
3173
657d4c0b
AS
31742010-06-08 Andreas Schwab <schwab@linux-m68k.org>
3175
3176 * minibuf.c (Fall_completions): Add more checks.
3177
9b27fd9f
JB
31782010-06-08 Juanma Barranquero <lekktu@gmail.com>
3179
3180 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
3181
a99ebb40
DN
31822010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
3183
d7c5d87d
DN
3184 * lread.c (X_OK): Remove, unused.
3185
0263a941
DN
3186 * dispnew.c: Remove obsolete comment.
3187
a99ebb40
DN
3188 Remove INCLUDED_FCNTL.
3189 * xterm.c (INCLUDED_FCNTL):
3190 * callproc.c (INCLUDED_FCNTL):
3191 * alloc.c (INCLUDED_FCNTL):
3192 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
3193 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
3194
13b5221f
MR
31952010-06-07 Martin Rudalics <rudalics@gmx.at>
3196
3197 * window.c (Fselect_window): Move `record_buffer' up to the
3198 beginning of this function, so the buffer gets recorded
3199 even if the selected window does not change.
3200 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
3201
5220357f
JB
32022010-06-07 Juanma Barranquero <lekktu@gmail.com>
3203
3204 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
3205 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
3206
3085237c
DN
32072010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
3208
3209 Remove BSTRING related code, all platforms define it.
3210 * s/usg5-4.h (BSTRING): Remove definition.
3211 * s/template.h (BSTRING):
3212 * s/msdos.h (BSTRING):
3213 * s/ms-w32.h (BSTRING):
3214 * s/hpux10-20.h (BSTRING):
3215 * s/gnu-linux.h (BSTRING):
3216 * s/darwin.h (BSTRING):
3217 * s/cygwin.h (BSTRING):
3218 * s/bsd-common.h (BSTRING):
3219 * s/aix4-2.h (BSTRING): Likewise.
3220 * sysdep.c: Remove code depending on BSTRING not being defined.
3221
409f2919
JB
32222010-06-05 Juanma Barranquero <lekktu@gmail.com>
3223
3224 Remove obsolete macro BASE_LEADING_CODE_P.
3225 * character.h (BASE_LEADING_CODE_P): Remove.
3226 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
3227 * buffer.c (Fset_buffer_multibyte):
3228 * indent.c (scan_for_column, compute_motion):
3229 * insdel.c (count_combining_before, count_combining_after):
3230 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
3231
087fc47a
JB
32322010-06-04 Juanma Barranquero <lekktu@gmail.com>
3233
3234 Turn `directory-sep-char' into a noop.
3235
3236 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
3237 (DIRECTORY_SEP): Define unconditionally.
3238
3239 * s/ms-w32.h (DIRECTORY_SEP): Remove.
3240
3241 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
3242 call dostounix_filename directly.
3243
3244 * fileio.c (CORRECT_DIR_SEPS): Remove.
3245 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
3246 (Fsubstitute_in_file_name): Use dostounix_filename instead.
3247 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
3248 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
3249
3250 * w32proc.c (CORRECT_DIR_SEPS): Remove.
3251 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
3252
0eb7675e
AS
32532010-06-03 Andreas Schwab <schwab@linux-m68k.org>
3254
a628ad9d
JB
3255 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
3256 (Bug#6346)
0eb7675e 3257
78edd3b7
JB
32582010-06-03 Juanma Barranquero <lekktu@gmail.com>
3259
3260 * ccl.c (Fccl_program_p): Fix typo in docstring.
3261
eb697db5
DN
32622010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
3263
3264 Move UNEXEC definition to autoconf.
3265 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
3266 * s/sol2-10.h (UNEXEC):
3267 * s/irix6-5.h (UNEXEC):
3268 * s/hpux10-20.h (UNEXEC):
3269 * s/gnu-linux.h (UNEXEC):
3270 * s/darwin.h (UNEXEC):
3271 * s/cygwin.h (UNEXEC):
3272 * s/bsd-common.h (UNEXEC):
3273 * s/aix4-2.h (UNEXEC):
3274 * m/alpha.h (UNEXEC): Likewise.
3275 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
3276
aa3830c4
JB
32772010-06-03 Juanma Barranquero <lekktu@gmail.com>
3278
3279 Remove obsolete pre-unicode2 macros.
3280 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
3281 * composite.c (composition_reseat_it):
3282 * data.c (Faset):
3283 * fns.c (Ffillarray):
3284 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
3285 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
3286
d234d13e
JL
32872010-06-03 Juri Linkov <juri@jurta.org>
3288
3289 * buffer.c (Fother_buffer): Add CHECK_FRAME.
3290 (Fswitch_to_buffer): Remove unused variable `err'.
3291
0d4bcf4d
GM
32922010-06-03 Glenn Morris <rgm@gnu.org>
3293
e23dc1e2
GM
3294 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
3295
05b09564
GM
3296 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
3297 now that AH_BOTTOM does it.
3298
824e2978
GM
3299 * m/hp800.h (HAVE_ALLOCA):
3300 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
3301
0d4bcf4d
GM
3302 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
3303 Remove NOT_C_CODE tests, it is always true now.
3304
c55d2abf
DN
33052010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
3306
08a494a3
DN
3307 Fix config.h includes.
3308 * xsettings.c:
3309 * xgselect.c:
3310 * nsterm.m:
3311 * nsselect.m:
3312 * nsimage.m:
3313 * nsfont.m:
3314 * nsfns.m:
3315 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
3316 other files do.
3317
75934b1d
DN
3318 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
3319
9f32a766
DN
3320 * s/sol2-6.h: Remove obsolete comments.
3321
c55d2abf
DN
3322 Remove unnecessary alloca.h includes.
3323 * keymap.c: Do not include alloca.h, config.h does that.
3324 * sysdep.c: Likewise. Do not define fwrite, not used.
3325
06ac62b4
SM
33262010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
3327
3328 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
3329 the HAVE_TERMIO where it belongs (bug#6149).
3330
1ab8293c
SM
33312010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
3332
3333 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
3334 of bug#6305).
3335
6dcfd253
EZ
33362010-05-30 Eli Zaretskii <eliz@gnu.org>
3337
3338 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
3339 state is always cached (bug#6306).
3340
6d26bbb2
EZ
33412010-05-29 Eli Zaretskii <eliz@gnu.org>
3342
06fa4a23
EZ
3343 Fix cursor motion in bidi-reordered continued lines.
3344 * xdisp.c (try_cursor_movement): Backup to non-continuation line
3345 only after finding point's row. Fix the logic. Rewrite the loop
6d26bbb2
EZ
3346 over continuation lines in bidi-reordered buffers. Return
3347 CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
3348 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
3349
f5783df3
MA
33502010-05-28 Michael Albinus <michael.albinus@gmx.de>
3351
3352 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
3353
7d56b2dd
KH
33542010-05-28 Kenichi Handa <handa@m17n.org>
3355
3356 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
3357 Don't sheck SPEC if it is nil.
3358 (font_list_entities): Call font_delete_unmatched if
b925d231 3359 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 3360
e58d4ff7
GM
33612010-05-28 Glenn Morris <rgm@gnu.org>
3362
3363 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
3364
f1a5d776
CY
33652010-05-27 Chong Yidong <cyd@stupidchicken.com>
3366
3367 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
3368 whether to trash.
3369 (internal_delete_file, Frename_file): Callers changed.
3370 (delete_by_moving_to_trash): Doc fix.
3371 (Fdelete_directory_internal): Don't move to trash.
3372
3373 * callproc.c (delete_temp_file):
3374 * buffer.c (Fkill_buffer): Callers changed.
3375
3376 * lisp.h: Update prototype.
3377
f44a59e6
CY
33782010-05-27 Chong Yidong <cyd@stupidchicken.com>
3379
3380 * xdisp.c (redisplay_window): After redisplay, check if point is
3381 still valid before setting it (Bug#6177).
3382
81ac4f35
GM
33832010-05-27 Glenn Morris <rgm@gnu.org>
3384
3385 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
3386 Convert comments to Makefile format.
3387
3388 * Makefile.in (bootstrap-clean): No more Makefile.c.
3389
ccd89fb3
GM
33902010-05-26 Glenn Morris <rgm@gnu.org>
3391
90278cb6
GM
3392 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
3393 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
3394
ccd89fb3
GM
3395 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3396 Remove.
3397 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3398
b7050583
KH
33992010-05-26 Kenichi Handa <handa@m17n.org>
3400
3401 * composite.c (composition_compute_stop_pos): Fix condition for
3402 backward scanning.
3403
e5458003
GM
34042010-05-25 Glenn Morris <rgm@gnu.org>
3405
c345fe90
GM
3406 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
3407 Move before TEMACS_LDFLAGS.
3408 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3409 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
3410
2e0689ab
GM
3411 * Makefile.in (NOT_C_CODE): No longer define.
3412 (config.h): No longer include.
3413
8009a5e8
GM
3414 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
3415 variables it may reference.
3416
e5458003
GM
3417 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
3418 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
3419
10f72a37
KH
34202010-05-25 Kenichi Handa <handa@m17n.org>
3421
3422 * dispextern.h (struct composition_it): New members rule_idx and
3423 charpos.
3424
3425 * xdisp.c (set_iterator_to_next): While scanning backward, assume
3426 that the character positions of IT point the last character of the
3427 current grapheme cluster.
3428 (next_element_from_composition): Don't change character positions
3429 of IT.
3430 (append_composite_glyph): Set glyph->charpos to
3431 it->cmp_it.charpos.
3432
3433 * composite.c (autocmp_chars): Change the first argument to RULE,
3434 and try composition with RULE only.
3435 (composition_compute_stop_pos): Record the index number of the
3436 composition rule in CMP_IT->rule_idx.
3437 (composition_reseat_it): Call autocmp_chars repeatedly until the
3438 correct rule of the composition is found.
3439 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
3440 is at the last character of the current grapheme cluster when
3441 CMP_IT->reversed_p is nonzero.
3442
171eda53 34432010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 3444
171eda53
SM
3445 * editfns.c (Fbyte_to_string): New function.
3446
66a9f7f4
SM
34472010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
3448
3449 * process.c (Fmake_network_process): Set :host to nil if it's not used.
3450 Suggested by Masatake YAMATO <yamato@redhat.com>.
3451
d8c315d1
EZ
34522010-05-23 Eli Zaretskii <eliz@gnu.org>
3453
171eda53 3454 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 3455
f5b416d2 34562010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
3457
3458 * s/netbsd.h: If terminfo is found, use it in preference to
3459 termcap. (Bug#6190) [Backport from trunk]
3460
0416466c
EZ
34612010-05-19 Eli Zaretskii <eliz@gnu.org>
3462
11117830 3463 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
3464
3465 * dispextern.h (struct glyph_row): New members minpos and maxpos.
3466 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
3467 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
3468 and maxpos members instead of start.pos and end.pos, respectively.
3469
3470 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
3471 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
3472 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
3473 (try_window_reusing_current_matrix, try_window_id):
3474 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
3475 (init_from_display_pos, init_iterator): Use EMACS_INT for
3476 character and byte positions.
66a9f7f4 3477 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
3478 arguments for minimum and maximum buffer positions seen by
3479 display_line for this row. Don't use iterator to find the
3480 position following the maximum one; instead, increment the
11117830
EZ
3481 position found by display_line directly. Fix logic; eol_pos
3482 should be tested before the rest. Handle the case of characters
3483 delivered from display vector (bug#6036). Fix tests related to
3484 it->method. Handle the truncated_on_right_p rows.
3485 (RECORD_MAX_MIN_POS): New macro.
3486 (display_line): Use it to record the minimum and maximum buffer
3487 positions for glyphs in the row being assembled. Record the
3488 position of the newline that terminates the line. If word wrap is
3489 in effect, restore minimum and maximum positions seen up to the
3490 wrap point, when iterator returns to it.
3491 (try_window_reusing_current_matrix): Give up if in bidi-reordered
3492 row and cursor not already at point. Restore original pre-bidi
3493 code for unidirectional buffers.
d36fe237
EZ
3494
3495 * dispnew.c (increment_row_positions, check_matrix_invariants):
3496 Increment and check row->start.pos and row->end.pos, in addition
3497 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
3498
11117830
EZ
3499 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
3500 Display truncated_on_left_p and truncated_on_right_p flags.
3501 Formatting fixes.
3502 (pmtxrows): Display the ordinal number of each row. Don't display
3503 rows beyond the last one.
3504
3505 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
3506 it is not copied by bidi_copy_it.
3507
6e83d800
EZ
35082010-05-22 Eli Zaretskii <eliz@gnu.org>
3509
3510 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
3511 (Bug#6237)
3512
110683ad
CY
35132010-05-22 Chong Yidong <cyd@stupidchicken.com>
3514
3515 * image.c (Fimage_flush): Rename from image-refresh.
3516
98fe5161
CY
35172010-05-21 Chong Yidong <cyd@stupidchicken.com>
3518
3519 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
3520 just one window.
3521
3522 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
3523 (clear_image_cache): If the number of cached images is unusually
3524 large, decrease the cache eviction delay (Bug#6230).
3525
e8752c66
GM
35262010-05-21 Glenn Morris <rgm@gnu.org>
3527
66dbf213
GM
3528 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
3529 Move these rules to ns.mk.
3530 * ns.mk: New file.
3531
04384b2d
GM
3532 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
3533
e8752c66
GM
3534 * Makefile.in (CANNOT_DUMP): New, set by configure.
3535 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
3536
2e2bbddb
JL
35372010-05-20 Juri Linkov <juri@jurta.org>
3538
3539 * fileio.c (Fdelete_file): Change interative spec to use
3540 `read-file-name' like in `find-file-read-args' where the default
3541 value is `default-directory' instead of `buffer-file-name'.
3542 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
3543
31c4aaf6
KR
35442010-05-20 Kevin Ryde <user42@zip.com.au>
3545
3546 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
3547 (Voverriding_terminal_local_map, Vsystem_key_alist)
3548 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
3549
9d5cf9b6
GM
35502010-05-20 Glenn Morris <rgm@gnu.org>
3551
3552 * Makefile.in (DEPDIR): New constant.
3553 (DEPFLAGS): Set with configure, not cpp.
3554 (MKDEPDIR): New, set by configure.
3555 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
3556 (clean): Use $DEPDIR.
3557 (deps_frag): Include from configure.
3558 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
3559 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
3560
ead6f8f5
EZ
3561 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state): Fix
3562 reallocation of the cache. (Bug#6210)
3563
7f34aec3
GM
35642010-05-19 Glenn Morris <rgm@gnu.org>
3565
d494e8f2
GM
3566 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
3567
c1d0dcfd
GM
3568 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
3569 (GNULIB_VAR): Remove.
3570 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
3571
3572 * m/ibms390x.h (LINKER):
3573 * m/macppc.h (LINKER) [GNU_LINUX]:
3574 * s/aix4-2.h (ORDINARY_LINK):
3575 * s/cygwin.h (LINKER):
3576 * s/darwin.h (ORDINARY_LINK):
3577 * s/gnu.h (ORDINARY_LINK):
3578 * s/netbsd.h (LINKER):
3579 * s/usg5-4.h (ORDINARY_LINK):
3580 Move to configure.
3581
7f34aec3
GM
3582 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
3583
754790b6
CY
35842010-05-18 Chong Yidong <cyd@stupidchicken.com>
3585
3586 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
3587 prevent stack overflow if number of arguments is too large
3588 (Bug#6214).
3589
161e44d1
JB
35902010-05-18 Juanma Barranquero <lekktu@gmail.com>
3591
3592 * charset.c (load_charset_map_from_file): Don't call close after fclose.
3593
be4ff9da
GM
35942010-05-18 Glenn Morris <rgm@gnu.org>
3595
9539dc5d
GM
3596 * s/gnu-linux.h: Combine two conditionals.
3597
3598 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
3599 $(POST_ALLOC_OBJ).
3600
40dc6bf4
GM
3601 * Makefile.in (RALLOC_OBJ): New, set by configure.
3602 (rallocobj): Replace with the previous variable.
3603 (otherobj): Use $RALLOC_OBJ.
3604
3605 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
3606 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
3607
be4ff9da
GM
3608 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
3609 (gmallocobj, vmlimitobj): Replace with previous two variables.
3610 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
3611
16455a85
GM
36122010-05-17 Glenn Morris <rgm@gnu.org>
3613
3614 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
3615 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
3616
5fdb7468
GM
36172010-05-16 Glenn Morris <rgm@gnu.org>
3618
7ca1f3f9
GM
3619 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
3620
7541dad5
GM
3621 * Makefile.in (clean): Get rid of HAVE_NS conditional.
3622
da53fab9
GM
3623 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
3624 trailing "/".
3625
b02a6645
GM
3626 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
3627 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
3628
8877ca0f
GM
3629 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
3630 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
3631 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
3632 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
3633 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
3634
5fdb7468
GM
3635 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
3636 Remove ${STARTFLAGS}, nothing ever sets it.
3637
95adb4b1
DN
36382010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
3639
3640 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
3641
676b6304
GM
36422010-05-16 Glenn Morris <rgm@gnu.org>
3643
9beab9ce
GM
3644 * Makefile.in (LIBX_BASE): Always define.
3645
8a95f0e7
GM
3646 * Makefile.in (LIBX_OTHER): Move out of cpp section.
3647
676b6304
GM
3648 * Makefile.in (LIBXT): Always define.
3649
6e546d18
GM
36502010-05-15 Glenn Morris <rgm@gnu.org>
3651
4235ca47 3652 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 3653
6e546d18
GM
3654 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
3655 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
3656
8c5ff6dd
KR
36572010-05-15 Ken Raeburn <raeburn@raeburn.org>
3658
560bb7ae 3659 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
3660 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
3661
8b4eb796
KR
3662 * emacs.c (main): Initialize initial-environment and
3663 process-environment before generating from env, not after.
3664
8c5ff6dd
KR
3665 Handle --version reasonably in CANNOT_DUMP configuration.
3666 * emacs.c (emacs_version, emacs_copyright): New string variables.
3667 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
3668 (syms_of_emacs): Defvar them, and initialize them from the C
3669 string variables.
3670 (main): If initialization hasn't been done, print initial version
3671 info from the C strings, instead of starting an interactive session.
3672
dbd3f723
EZ
36732010-05-15 Eli Zaretskii <eliz@gnu.org>
3674
d20e1419
EZ
3675 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
3676 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
3677 (bidi_paragraph_init): Remove redundant assertion that we are at
3678 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
3679
3680 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
3681 (syms_of_xdisp): Defsubr it.
3682
d36fe237
EZ
3683 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
3684
dbd3f723
EZ
3685 * Makefile.in: Fix MSDOS-related comments.
3686
02be533b
GM
36872010-05-15 Glenn Morris <rgm@gnu.org>
3688
1a82cca9
GM
3689 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
3690 (really-lwlib, really-oldXMenu): Always define.
3691 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
3692
3df7b338
GM
3693 * Makefile.in: Simplify cpp conditional.
3694
2b5f541b
GM
3695 * Makefile.in (${ns_appdir}): Simplify using umask.
3696
02be533b
GM
3697 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
3698
4e2db1fe
SM
36992010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
3700
3701 * eval.c (specbind): Remove left-over duplicate test.
3702 Disallow let-binding frame-local vars. Add comment.
3703
4b292a22
EZ
37042010-05-14 Eli Zaretskii <eliz@gnu.org>
3705
2fe72643 3706 Make the cache of bidi iterator states dynamically allocated.
1edbd309 3707 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
3708 (bidi_init_it): Call it.
3709 (bidi_cache_iterator_state): Enlarge the cache if needed.
3710
4e2db1fe 3711 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
3712 bidi_get_next_char_visually. All callers changed.
3713
82ebc97b
KH
37142010-05-14 Kenichi Handa <handa@m17n.org>
3715
3716 * dispextern.h (struct composition_it): New member reversed_p.
3717
3718 * composite.c (composition_compute_stop_pos): Search backward if
3719 ENDPOS < CHARPOS.
3720 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
3721 Set CMP_IT->reversed_p.
b4b6e17e 3722 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 3723
4e2db1fe
SM
3724 * xdisp.c (set_iterator_to_next):
3725 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
3726 scanning backward. Call composition_compute_stop_pos if scan
3727 direction is changed.
3728 (next_element_from_buffer): Call composition_compute_stop_pos with
3729 negative ENDPOS if we are scanning backward.
3730 (next_element_from_composition): Pay attention to
3731 IT->cmp_it.reversed_p.
3732
0e5d7800
KH
37332010-05-14 Kenichi Handa <handa@m17n.org>
3734
560bb7ae 3735 * font.c (font_range): Return the range for the font found at first.
0e5d7800 3736
cb027b32
GM
37372010-05-14 Glenn Morris <rgm@gnu.org>
3738
177b0288
GM
3739 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
3740
fbc00890
GM
3741 * Makefile.in (mktime, X11, register): Move undefs to configure.
3742
f14d1dfd
GM
3743 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
3744 (MSDOS_X_OBJ): New variable.
3745 (MSDOS_SUPPORT_REAL): New constant.
3746 (MSDOS_SUPPORT): Set as a variable, not with cpp.
3747 (obj): Use MSDOS_X_OBJ.
3748 (lisp): Use MSDOS_SUPPORT as a variable.
3749
11842bd8
GM
3750 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
3751 (GPM_MOUSE_SUPPORT): Now it's a constant.
3752 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
3753 not cpp.
3754
489d31a4 3755 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 3756 (ns_appresdir): Remove, unused.
e20f1f07 3757
489d31a4
GM
3758 * Makefile.in (SHELL): Move outside cpp section.
3759
cb027b32
GM
3760 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
3761
5a903aa9
GM
37622010-05-13 Glenn Morris <rgm@gnu.org>
3763
3369c79f
GM
3764 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
3765 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
3766
d5e982a6
GM
3767 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
3768 HAVE_WINDOW_SYSTEM must be too.
3769
6192e163
GM
3770 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
3771 (lisp): Remove WINNT_SUPPORT.
3772
472c5d6b
GM
3773 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
3774 Let configure set these variables (to empty) in this case as well.
3775
0116466b
GM
3776 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
3777 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
3778
5a903aa9
GM
3779 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
3780 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
3781 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
3782 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
3783 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 3784 the values output by configure.
5a903aa9
GM
3785 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
3786
1a0d7c06
GM
37872010-05-12 Glenn Morris <rgm@gnu.org>
3788
b5457f14
GM
3789 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
3790 (LINKER_WAS_SPECIFIED): Remove.
3791
1a0d7c06
GM
3792 * Makefile.in (LIB_GCC): Set using configure, not cpp.
3793 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
3794 * m/arm.h (LIB_GCC) [GNU_LINUX]:
3795 * s/cygwin.h (LIB_GCC):
3796 * s/freebsd.h (LIB_GCC):
3797 * s/gnu-linux.h (LIB_GCC):
3798 * s/msdos.h (LIB_GCC):
3799 * s/netbsd.h (LIB_GCC):
3800 Move to configure.
3801
3ffd4615 38022010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
3803
3804 * ftfont.c: Fix incorrect parentheses of #if condition for
3805 definining M17N_FLT_USE_NEW_FEATURE.
3806
acddf8ae
GM
38072010-05-11 Glenn Morris <rgm@gnu.org>
3808
3809 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
3810 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
3811
ae5e04fa
EZ
38122010-05-10 Eli Zaretskii <eliz@gnu.org>
3813
3814 * xdisp.c (init_iterator): Don't turn on bidi reordering in
3815 unibyte buffers. See
3816 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
3817
7490175b
GM
38182010-05-10 Glenn Morris <rgm@gnu.org>
3819
97efb629
GM
3820 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
3821 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
3822 (LIBES): Use LIBS_SYSTEM as a variable.
3823 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
3824 * s/aix4-2.h (LIBS_SYSTEM):
3825 * s/freebsd.h (LIBS_SYSTEM):
3826 * s/hpux10-20.h (LIBS_SYSTEM):
3827 * s/sol2-6.h (LIBS_SYSTEM):
3828 * s/unixware.h (LIBS_SYSTEM):
3829 Move to configure.
3830
7490175b
GM
3831 * s/aix4-2.h (MAIL_USE_LOCKF):
3832 * s/bsd-common.h (MAIL_USE_FLOCK):
3833 * s/darwin.h (MAIL_USE_FLOCK):
3834 * s/gnu-linux.h (MAIL_USE_FLOCK):
3835 * s/irix6-5.h (MAIL_USE_FLOCK):
3836 * s/template.h (MAIL_USE_FLOCK):
3837 Move to configure.
3838
0235128c 38392010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
3840
3841 * Version 23.2 released.
3842
0235128c 38432010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
3844
3845 * composite.c (autocmp_chars): Save point as marker before calling
3846 auto-composition-function (Bug#5984).
3847
3848 * lisp.h (restore_point_unwind): Add prototype.
3849
3850 * fileio.c (restore_point_unwind): Remove static attribute.
3851
0235128c 38522010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
3853
3854 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
3855 new feature of libotf and m17n-flt.
0235128c
SM
3856 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
3857 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
3858 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
3859 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
3860 that OUT is NULL. Use OTF_drive_gsub_with_log and
3861 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
3862 OTF_drive_gpos.
3863 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
3864 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
3865 Setup mflt_enable_new_feature and mflt_try_otf.
3866
4721152c
J
38672010-05-08 Jan Djärv <jan.h.d@swipnet.se>
3868
3869 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
3870
3871 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
3872 box and toolbar (Bug #6139).
3873 (xg_create_tool_bar): Remove comment (Bug #6139).
3874 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
3875 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
3876
ee0a16cf
JB
38772010-05-08 Juanma Barranquero <lekktu@gmail.com>
3878
3879 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
3880 Update dependencies.
3881
96d79611
EZ
38822010-05-08 Eli Zaretskii <eliz@gnu.org>
3883
3884 * fringe.c (update_window_fringes): Set up truncation bitmaps for
3885 R2L lines.
3886
40c17879
GM
38872010-05-08 Glenn Morris <rgm@gnu.org>
3888
7b42b29f
GM
3889 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
3890
40c17879
GM
3891 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
3892 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
3893 (termcapobj): Replace with TERMCAP_OBJ.
3894 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
3895 (LIBES): Use LIBS_TERMCAP as a variable.
3896
3897 * s/freebsd.h (osreldate.h): No longer include, since this file
3898 does not use __FreeBSD_version any more.
3899
3900 * s/aix4-2.h (TERMINFO):
3901 * s/cygwin.h (TERMINFO):
3902 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3903 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
3904 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3905 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
3906 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
3907 * s/irix6-5.h (TERMINFO):
3908 * s/netbsd.h (LIBS_TERMCAP):
3909 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
3910 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
3911 * s/usg5-4.h (TERMINFO):
3912 Move to configure.
3913
94b612ad
SM
39142010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
3915
3916 * eval.c (unbind_to): Don't unbind a local binding into the global
3917 binding when the local binding disappeared. Inversely, don't unbind
3918 a global binding into a newly created local binding.
3919 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
3920 can specify the frame to use, when applicable. Adjust callers.
3921
15e12598 39222010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 3923 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
3924
3925 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
3926
f724825e
EZ
39272010-05-07 Eli Zaretskii <eliz@gnu.org>
3928
5cba3209
EZ
3929 * w32fns.c: Include w32.h.
3930 (Fw32_shell_execute): Decode the error message before passing it
3931 to `error'. (Bug#6126)
3932
d16bdfc3
EZ
3933 * msdos.c (dos_set_window_size):
3934 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
3935 instead of `XSYMBOL (foo)->value'.
3936
59d93e87
EZ
39372010-05-07 Eli Zaretskii <eliz@gnu.org>
3938
9fdec8bc
EZ
3939 Fix the MS-DOS build, broken by autoconfiscation.
3940
3941 * Makefile.in: Don't use Make-style comments past the "start of
3942 cpp stuff" line.
3943 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
3944
3945 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
3946 edited directly by msdos/sed1v2.inp).
f724825e 3947
2f86b22b
GM
39482010-05-07 Glenn Morris <rgm@gnu.org>
3949
3950 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
3951 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
3952 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
3953 move out of cpp section.
3954 * s/freebsd.h (LD_SWITCH_SYSTEM):
3955 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
3956 * s/netbsd.h (LD_SWITCH_SYSTEM):
3957 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
3958
49ebbd65
DN
39592010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
3960
3961 Define LIB_STANDARD and START_FILES using autoconf.
3962 * s/usg5-4.h (LIB_STANDARD):
3963 * s/netbsd.h (START_FILES):
3964 * s/irix6-5.h (LIB_STANDARD):
3965 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
3966 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
3967 * s/freebsd.h (START_FILES):
3968 * s/darwin.h (START_FILES):
3969 * s/cygwin.h (START_FILES):
3970 * s/aix4-2.h (LIB_STANDARD):
3971 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
3972 * Makefile.in (STARTFILES): Rename to START_FILES, define using
3973 autoconf, not cpp.
3974
d43c06d6
DN
39752010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
3976
28823648
DN
3977 Remove NEED_BSDTTY and NEED_UNISTD_H.
3978 * s/hpux10-20.h (NEED_BSDTTY): Remove.
3979 * s/aix4-2.h (NEED_UNISTD_H): Remove.
3980 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
3981 <sys/ptyio.h> and <unistd.h>.
3982
aca00430
DN
3983 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
3984
d43c06d6
DN
3985 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
3986 * s/gnu.h (START_FILES): Remove empty definition.
3987
3e56b11d
JD
39882010-05-06 Jan Djärv <jan.h.d@swipnet.se>
3989
3990 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
3991
e3cf0cde
GM
39922010-05-06 Glenn Morris <rgm@gnu.org>
3993
3994 * Makefile.in (CPP, LN_S): Remove unused variables.
3995
774b9a60
SM
39962010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
3997
3998 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
3999
4ab92842
LM
40002010-05-05 Lawrence Mitchell <wence@gmx.li>
4001
4002 * m/sparc.h: Fix typo in earlier change.
4003
178f2507
SM
40042010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4005
4006 Misc tweaks.
4007 * eval.c (Fdefvaralias): Remove unintended nested if.
4008 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
4009
80f00217 40102010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
4011
4012 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
4013
ef03a4e6
DN
40142010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4015
58eb6cf0
DN
4016 Remove BSD_PGRPS.
4017 * s/bsd-common.h (BSD_PGRPS): Remove undef.
4018 * s/gnu-linux.h (BSD_PGRPS): Remove.
4019 * term.c (dissociate_if_controlling_tty):
4020 * sysdep.c (narrow_foreground_group, widen_foreground_group)
4021 (init_sys_modes, reset_sys_modes):
4022 * emacs.c (main):
4023 * callproc.c (Fcall_process, child_setup): Remove code depending
4024 on BSD_PGRPS.
4025
ef03a4e6
DN
4026 Remove POSIX_SIGNALS.
4027 * s/usg5-4.h (POSIX_SIGNALS):
4028 * s/netbsd.h (POSIX_SIGNALS):
4029 * s/msdos.h (POSIX_SIGNALS):
4030 * s/ms-w32.h (POSIX_SIGNALS):
4031 * s/hpux11.h (POSIX_SIGNALS):
4032 * s/gnu.h (POSIX_SIGNALS):
4033 * s/gnu-linux.h (POSIX_SIGNALS):
4034 * s/freebsd.h (POSIX_SIGNALS):
4035 * s/darwin.h (POSIX_SIGNALS):
4036 * s/cygwin.h (POSIX_SIGNALS):
4037 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
4038 * s/unixware.h:
4039 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
4040 * process.c (create_process):
4041 * syssignal.h:
4042 * sysdep.c (wait_for_termination, init_signals):
4043 * process.c (create_process):
4044 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
4045 remove all code that assumes the contrary.
4046
49628785
GM
40472010-05-04 Glenn Morris <rgm@gnu.org>
4048
27a2cdfc
GM
4049 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
4050 variable.
4051 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4052 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
4053 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
4054 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
4055 LD_SWITCH_SYSTEM_tmp.
4056 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
4057 New variables, set by configure.
4058
eb21eab5
GM
4059 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4060 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
4061 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
4062 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
4063 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
4064
49628785
GM
4065 * s/aix4-2.h (C_SWITCH_SYSTEM):
4066 * m/alpha.h (C_SWITCH_MACHINE):
4067 Move to configure.in.
4068 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
4069 New variables, set by configure.
4070 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
4071 $c_switch_machine and $c_switch_system.
4072
7dff330b
DN
40732010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
4074
4075 * s/hpux10-20.h (LIB_STANDARD): New definition.
4076 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
4077 on it, not used anymore.
4078
53967e09
CY
40792010-05-03 Chong Yidong <cyd@stupidchicken.com>
4080
4081 * eval.c (internal_condition_case_n): Rename from
4082 internal_condition_case_2.
4083 (internal_condition_case_2): New function.
4084
4085 * xdisp.c (safe_call): Use internal_condition_case_n.
4086
4087 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
4088 (internal_delete_file, Frename_file): Callers changed.
4089
4090 * buffer.c (Fkill_buffer):
4091 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
4092
4093 * lisp.h: Update prototypes.
4094
3dee6fdb
GM
40952010-05-03 Glenn Morris <rgm@gnu.org>
4096
4097 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
4098 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
4099 (LIBXT): Set with configure, not cpp.
4100 (LIBX): Remove.
4101 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
4102
a101e0fb
DN
41032010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4104
4105 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
4106 The FreeBSD is not needed, the default works, Solaris version is
4107 not needed, and the remaining case is not supported by configure.
4108
f63d0028
JD
41092010-05-02 Jan Djärv <jan.h.d@swipnet.se>
4110
4111 * xsmfns.c (CHDIR_OPT): New define.
4112 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
4113 restarting emacs.
4114
4115 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
4116 shut_down_emacs.
4117
4118 * emacs.c (USAGE1): Mention --chdir.
4119 (main): Handle --chdir.
4120 (standard_args): Add --chdir.
4121 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
4122 #5552).
4123
e4814a9f
DN
41242010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
4125
cd03c74a
DN
4126 Remove LD_SWITCH_MACHINE.
4127 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
4128 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
4129
c3a398a1
DN
4130 Clean up IRIX code.
4131 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
4132 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
4133
87e7285c
DN
4134 Clean up AIX code.
4135 * m/ibmrs6000.inp: Remove file, unused.
4136 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
4137 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
4138 definition ...
4139 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
4140
80f00217
JB
4141 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
4142 unused.
e4814a9f 4143
59ca28de
EZ
41442010-05-01 Eli Zaretskii <eliz@gnu.org>
4145
197daef4
EZ
4146 Emulate POSIX_SIGNALS on MS-Windows.
4147
4148 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
4149 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
4150
4151 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
4152 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
4153 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
4154
80f00217
JB
4155 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
4156 New stubs.
197daef4 4157
af7c7572
EZ
4158 Miscellaneous fixes of bidi display.
4159
59ca28de
EZ
4160 * xdisp.c (find_row_end): New function, refactored from display_line.
4161 (display_line): Use it.
017ea819
EZ
4162 (extend_face_to_end_of_line): In almost-filled rows, extend only
4163 if the row is R2L and not continued.
166e930d 4164 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 4165 Preserve overlay and string info in row->end.
166e930d
EZ
4166 (insert_left_trunc_glyphs): Support addition of left truncation
4167 glyphs to R2L rows.
b47e0dcf 4168 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
4169 glyph between adjacent windows. Fix a crash when a display string
4170 is continued to the next line. Don't return zero if cursor was
4171 found by `cursor' property of a display string.
b47e0dcf
EZ
4172 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
4173 test for that explicitly.
59ca28de 4174
7acac9f4
GM
41752010-05-01 Glenn Morris <rgm@gnu.org>
4176
4177 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
4178 for clarity.
4179 (OTHER_OBJ): Remove.
4180 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
4181 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
4182
45841e65
KK
41832010-05-01 Karel Klíč <kklic@redhat.com>
4184
4185 * fileio.c (Ffile_selinux_context): Context functions may return null.
4186
afc61943
DN
41872010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
4188
80f00217 4189 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 4190
5a1bb006
GM
41912010-04-30 Glenn Morris <rgm@gnu.org>
4192
4193 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
4194 (OTHER_OBJ): Define as a separate variable, for clarity.
4195
210af043
J
41962010-04-30 Jan Djärv <jan.h.d@swipnet.se>
4197
4198 * xsettings.c: include limits.h and update file comment.
4199
0a7df391
GM
42002010-04-30 Glenn Morris <rgm@gnu.org>
4201
d5096f16
GM
4202 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
4203 Set with configure, not cpp.
4204 (LIBW): Remove, replace with $TOOLKIT_LIBW.
4205
7eb1ac33
GM
4206 * Makefile.in (mallocobj): Remove.
4207 (otherobj): Simplify using @OTHER_OBJ@.
4208
517d086b
GM
4209 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
4210 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
4211 Don't bother making nsgui.h dependency platform-specific.
4212
0a7df391
GM
4213 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
4214
d6d23852
SM
42152010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
4216
d2630aef
SM
4217 * process.c (read_process_output, exec_sentinel): Don't burp if the
4218 sentinel/filter kills the current buffer (bug#6060).
4219
f9dddf52 4220 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
4221 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
4222 Remove unused var `args'.
4223 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
4224 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
4225 * doc.c (store_function_docstring): Use XSETCAR.
4226
f1e3642a
GM
42272010-04-28 Glenn Morris <rgm@gnu.org>
4228
faf535f8
GM
4229 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
4230 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
4231
c40f9449
GM
4232 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
4233
658f86ca
GM
4234 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
4235 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
4236
bc0b5f61
GM
4237 * Makefile.in (FONT_OBJ): New, set by configure.
4238 (FONT_DRIVERS): Use $FONT_OBJ.
4239
294c50a0
GM
4240 * Makefile.in (LIBXMU): Set with configure, not cpp.
4241 * s/aix4-2.h (LIBXMU):
4242 * s/hpux10-20.h (LIBXMU):
4243 Remove definition, now set in configure.
4244
e6ec4e99
GM
4245 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
4246
f1e3642a
GM
4247 * m/amdx86-64.h [i386]: Move this test to configure.in.
4248
c6ea2936
GM
42492010-04-27 Glenn Morris <rgm@gnu.org>
4250
8fdac2c3
GM
4251 * Makefile.in (LIBXTR6): Set with configure, not cpp.
4252 * s/unixware.h (NEED_LIBW): Remove definition.
4253
986fb647
GM
4254 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
4255 (TOOLKIT_LIBW): New, set by configure.
4256 (@X_TOOLKIT_TYPE@): No longer define it.
4257
c6ea2936
GM
4258 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
4259 (MOTIF_LIBW): Set with configure, not cpp.
4260 * s/aix4-2.h (LIB_MOTIF):
4261 * s/gnu-linux.h (LIB_MOTIF):
4262 * s/unixware.h (LIB_MOTIF): Move to configure.in.
4263
aaa36002
DN
42642010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
4265
4266 Reduce CPP usage.
4267 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
4268 (obj): Use autoconf for unexec instead of cpp.
ed6281b0
DN
4269 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE): Remove
4270 definitions and undefs. Inline definitions in the only user.
4271 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 4272
b678dd8b
GM
42732010-04-27 Glenn Morris <rgm@gnu.org>
4274
76cda504
GM
4275 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
4276 since the defaults (set by the system file) are fine in most cases.
4277 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
4278 * m/ibms390x.h (START_FILES, LIB_STANDARD):
4279 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
4280 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
4281 Remove definitions, since they are set correctly in s/gnu-linux.h.
4282 * s/freebsd.h (START_FILES, LIB_STANDARD):
4283 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
4284 * s/hpux10-20.h (START_FILES):
4285 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
4286 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
4287
b678dd8b
GM
4288 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
4289 (MOTIF_LIBW): Use $LIBXP.
4290 (otherobj): Use $WIDGET_OBJ.
4291
9452ded1
DN
42922010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
4293
7e10844c
DN
4294 * Makefile.in (LIBS_MACHINE): Remove, unused.
4295
9452ded1
DN
4296 Use autoconf instead of cpp for LIB_MATH.
4297 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
4298 * s/cygwin.h (LIB_MATH): Likewise.
4299 * Makefile.in (LIB_MATH): Do not define with cpp.
4300 (LIBES): Use autoconf for LIB_MATH.
4301
fcebfc6a
KH
43022010-04-26 Kenichi Handa <handa@m17n.org>
4303
4304 * composite.c (Ffind_composition_internal): Fix the return value
4305 for an automatic composition.
4306
39e2ad1b
DN
43072010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
4308
4309 Remove all NO_ARG_ARRAY uses.
4310 * fns.c (concat2, concat3, nconc2):
4311 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
4312 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
4313 * m/xtensa.h (NO_ARG_ARRAY):
4314 * m/template.h (NO_ARG_ARRAY):
4315 * m/sparc.h (NO_ARG_ARRAY):
4316 * m/sh3.h (NO_ARG_ARRAY):
4317 * m/mips.h (NO_ARG_ARRAY):
4318 * m/macppc.h (NO_ARG_ARRAY):
4319 * m/iris4d.h (NO_ARG_ARRAY):
4320 * m/intel386.h (NO_ARG_ARRAY):
4321 * m/ibms390x.h (NO_ARG_ARRAY):
4322 * m/ibms390.h (NO_ARG_ARRAY):
4323 * m/ibmrs6000.h (NO_ARG_ARRAY):
4324 * m/ia64.h (NO_ARG_ARRAY):
4325 * m/hp800.h (NO_ARG_ARRAY):
4326 * m/arm.h (NO_ARG_ARRAY):
4327 * m/amdx86-64.h (NO_ARG_ARRAY):
4328 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
4329
adf4f59c
EZ
43302010-04-25 Eli Zaretskii <eliz@gnu.org>
4331
6bdf5d65
EZ
4332 * xdisp.c (display_line): Don't assume 2nd call to
4333 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
4334 (iterate_out_of_display_property): New function, body from pop_it.
4335 (pop_it): Use it.
adf4f59c 4336
dfbbda83
GM
43372010-04-24 Glenn Morris <rgm@gnu.org>
4338
4339 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
4340 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
4341 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
4342 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
4343
2d4018aa
EZ
43442010-04-24 Eli Zaretskii <eliz@gnu.org>
4345
a49884a6
EZ
4346 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
4347 use `get_next_display_element' and `set_iterator_to_next' to
4348 advance to the next character, when looking for the character that
4349 begins the next row.
4350
76db6fcc 4351 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
4352 definition of "struct Lisp_Symbol".
4353
70eab5c1
GM
43542010-04-24 Glenn Morris <rgm@gnu.org>
4355
4356 * Makefile.in (CRT_DIR): New variable, set by configure.
4357 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
4358 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
4359
1ad4cc3d
DN
43602010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4361
e769f484
DN
4362 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
4363
4196ff33
DN
4364 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
4365
879b0ee4
DN
4366 Remove redundant flags.
4367 * s/freebsd.h (C_SWITCH_SYSTEM):
4368 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
4369 * s/netbsd.h (C_SWITCH_SYSTEM):
4370 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
4371 of these.
4372
03cbbcb8
DN
4373 Simplify m/intel386.h.
4374 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
4375 user: ecrt0.c.
4376 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
4377 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
4378 the only user: s/unixware.h.
4379 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
4380 from m/intel386.h.
4381 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Definitions
4382 moved here from m/intel386.h.
4383
1ad4cc3d
DN
4384 * m/mips.h: Remove #if 0 code.
4385
8785b888
EZ
43862010-04-23 Eli Zaretskii <eliz@gnu.org>
4387
728588cc
EZ
4388 Fix display of composed characters from L2R scripts in bidi buffers.
4389 * xdisp.c (set_iterator_to_next, next_element_from_composition):
4390 After advancing IT past the composition, resync the bidi iterator
4391 with IT's position. (Bug#5977)
4392
a63f80b4
DN
43932010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4394
4395 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
4396 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
4397
ff5dec5c
SM
43982010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
4399
4400 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
4401
8785b888
EZ
44022010-04-23 Eli Zaretskii <eliz@gnu.org>
4403
58ccf243 4404 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
4405 * xdisp.c (pop_it): When the stack is popped after displaying
4406 from a string, bidi-iterate to exit from the text portion covered
4407 by the `display' property or overlay. (Bug#5988, bug#5920)
4408
feeb1604
DN
44092010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
4410
8e324eb6
DN
4411 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
4412 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
4413
809fcaba
DN
4414 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
4415 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
4416
ed710380
DN
4417 Simplify STARTFILES definition.
4418 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
4419 relying on Makefile.in to define it.
4420 * s/cygwin.h (START_FILES): Likewise.
4421 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
4422
feeb1604
DN
4423 Clean up Solaris code.
4424 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
4425 (LIB_MOTIF): Remove, configure takes care of this.
4426 (NOT_USING_MOTIF): Remove, unused.
4427 * xrdb.c: Remove #if 0-ed #include.
4428 (SYSV): Remove conditional for old SysV.
4429 * sysdep.c (closedir): Remove conditional code for Solaris,
4430 Solaris has closedir.
4431
a0d0b563
JD
44322010-04-22 Jan Djärv <jan.h.d@swipnet.se>
4433
4434 * xsettings.c (read_and_apply_settings): Check if current_font is
4435 NULL before strcmp (Bug#6001).
4436
56bae7c7
DN
44372010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
4438
4439 Clean up HP-UX files.
4440 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
4441 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
4442 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
4443 * s/hpux10-20.h: ... to the only user, here.
4444
372b7a95
EZ
44452010-04-21 Eli Zaretskii <eliz@gnu.org>
4446
4447 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
4448 use buffer-local values of paragraph-start and paragraph-separate.
4449 <paragraph_start_re, paragraph_separate_re>: Rename from
4450 fallback_paragraph_start_re and fallback_paragraph_separate_re.
4451 (Bug#5992)
4452
f904c0f9
JD
44532010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4454
4455 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
4456 current_tool_bar_style are new.
4457 (store_config_changed_event): Rename from store_font_changed_event.
4458 (XSETTINGS_TOOL_BAR_STYLE): New define.
4459 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
4460 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
4461 HAVE_XFT.
4462 (something_changedCB): store_font_changed_event is now
c4cc8b9a 4463 store_config_changed_event.
f904c0f9
JD
4464 (parse_settings): Rename from parse_xft_settings. Read
4465 non-xft xsettings outside #ifdef HAVE_XFT.
4466 (read_settings): Renamed from read_xft_settings.
4467 (apply_xft_settings): Take current settings as parameter. Do not
4468 call read_(xft)_settings.
4469 (read_and_apply_settings): New function.
4470 (xft_settings_event): Do non-xft stuff out of HAVE_XFT. Call
4471 read_and_apply_settings if there are settings to be read.
4472 (init_xsettings): Renamed from init_xfd_settings.
4473 Call read_and_apply_settings unconditionally.
4474 (xsettings_initialize): Call init_xsettings.
4475 (Ftool_bar_get_system_style): New function.
4476 (syms_of_xsettings): Define Qmonospace_font_name and
4477 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 4478 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 4479 dynamic-setting.
31a01b90 4480 Move misplaced HAVE_GCONF
f904c0f9
JD
4481
4482 * xsettings.h (Ftool_bar_get_system_style): Declare.
4483
4484 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
4485 Qtext, Qboth, Qboth_horiz are new.
4486 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
4487 Vtool_bar_style, tool_bar_max_label_size.
4488
4489 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
4490
4491 * keyboard.c: QClabel is new.
4492 (parse_tool_bar_item): Take out QClabel from tool bar items.
4493 Try to construct a label if ther is no QClabel.
4494 (syms_of_keyboard): Intern :label as QClabel.
4495
4496 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
4497 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
4498 New.
4499
4500 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
4501 dynamic-setting.el.
4502
4503 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
4504 (xg_make_tool_item, xg_show_toolbar_item): New function.
4505 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
4506 Call xg_make_tool_item to make a tool bar item.
4507 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
4508
4509 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
4510 into account for toolbars.
4511
c632dfda
JD
45122010-04-21 Jan Djärv <jan.h.d@swipnet.se>
4513
4514 * data.c (make_blv): Declarations before code (Bug#5993).
4515
10efe302
GM
45162010-04-21 Glenn Morris <rgm@gnu.org>
4517
4518 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
4519 Define using autoconf, not cpp.
4520 (LIBXSM): New variable, set by autoconf.
4521 (LIBXT): Use $LIBXSM.
4522
4285ac5a
DN
45232010-04-21 Dan Nicolaescu <local_user@dannlt>
4524
3ec759e7
DN
4525 Remove NOMULTIPLEJOBS, unused.
4526 * s/template.h (NOMULTIPLEJOBS):
4527 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
4528
4285ac5a
DN
4529 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
4530 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
4531 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
4532 detects -znocombreloc and passes it to the linker
4533 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
4534
2807228d
GM
45352010-04-21 Glenn Morris <rgm@gnu.org>
4536
4537 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
4538
574c05e2
KK
45392010-04-21 Karel Klíč <kklic@redhat.com>
4540
4541 * Makefile.in (LIBSELINUX_LIBS): New.
4542 (LIBES): Add $LIBSELINUX_LIBS.
4543 * eval.c, lisp.h (call7): New function.
4544 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
4545 (Ffile_selinux_context, Fset_file_selinux_context):
4546 New functions.
4547 (Fcopy_file): New parameter preserve-selinux-context.
4548 (Frename_file): Preserve selinux context when renaming by copy-file.
4549
91eac4bb 45502010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 4551 Eli Zaretskii <eliz@gnu.org>
91eac4bb 4552
50426a04
JB
4553 Don't depend on cm.c or termcap.c on Windows, use stubs.
4554 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
4555 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
4556 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
4557 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
4558 (sys_tputs, sys_tgetstr): New stubs.
4559 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
4560 (tputs, tgetstr): New; define to sys_*.
91eac4bb 4561
938efb77
JB
45622010-04-20 Juanma Barranquero <lekktu@gmail.com>
4563
4564 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
4565
b4bf28b7
SM
45662010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4567
8b1e1112
SM
4568 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
4569 Just signal a warning rather than an error when inside a let.
4570 (Fmake_variable_frame_local): Add the same test.
4571
933ac235
SM
4572 * font.c (syms_of_font): Make the style table vars read-only.
4573
b4bf28b7
SM
4574 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
4575 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
4576
4577 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
4578
93d68d0c
EZ
45792010-04-20 Eli Zaretskii <eliz@gnu.org>
4580
4581 Fix R2L paragraph display on TTY.
4582
4583 * xdisp.c (unproduce_glyphs): New function.
4584 (display_line): Use it when produced glyphs are discarded from R2L
4585 glyph rows.
4586 (append_composite_glyph): In R2L rows, prepend the glyph rather
4587 than appending it.
4588
4589 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
4590 rather than append it. Set up the resolved_level and bidi_type
4591 attributes of the appended glyph.
283ccc18
EZ
4592 (produce_special_glyphs): Mirror the backslash continuation
4593 character in R2L lines.
93d68d0c 4594
283ccc18 4595 Implement display of R2L paragraphs in GUI sessions.
26cdf528 4596
283ccc18
EZ
4597 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
4598 append_stretch_glyph.
4599 (set_cursor_from_row) <cursor_x>: Remove unused variable. Fix
4600 off-by-one error in computing x at end of text in the row.
4601 (append_stretch_glyph): In reversed row, prepend the glyph rather
4602 than append it. Set resolved_level and bidi_type of the glyph.
4603 (extend_face_to_end_of_line): If the row is reversed, prepend a
4604 stretch glyph whose width is such that the rightmost glyph will be
4605 drawn at the right margin of the window. Fix off-by-one error on
4606 TTY frames in testing whether a line needs face extension. Fix
4607 face extension at ZV. If this is the last glyph row, use
4608 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
4609 region face.
4610 (set_cursor_from_row, display_line): Use
26cdf528
EZ
4611 MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
4612 row->continuation_lines_width.
283ccc18
EZ
4613 (next_element_from_buffer): Don't call bidi_paragraph_init if we
4614 are at ZV. Fixes a crash when reseated to ZV by
4615 try_window_reusing_current_matrix.
45903529
EZ
4616 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
4617 which happens with R2L glyph rows. Fixes a crash when inserting a
4618 character at end of an R2L line.
283ccc18
EZ
4619 (set_cursor_from_row): Don't be fooled by truncated rows: don't
4620 treat them as having zero-width characters. Improve comments.
4621 Don't reverse pos_before and pos_after for reversed glyph rows.
4622 Set cursor.x to negative value when the cursor might be on the
4623 left fringe.
4624 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
4625 left fringe, not the right one.
f951a506
EZ
4626 (notice_overwritten_cursor, draw_phys_cursor_glyph)
4627 (erase_phys_cursor): For reversed cursor_row, support cursor on
4628 the left fringe.
4629
283ccc18
EZ
4630 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
4631 of continuation indicators on the fringes.
4632 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
4633 left fringe.
4634
f951a506
EZ
4635 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
4636 draw cursor on the left fringe.
4637
4638 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
4639 cursor on the left fringe.
4640
f951a506
EZ
4641 * dispnew.c (update_text_area): Handle reversed desired rows when
4642 the cursor is on the left fringe.
4643 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
4644 below, not by 0, for when the cursor is on the left fringe.
4645
3bb49aaf
JD
46462010-04-20 Jan Djärv <jan.h.d@swipnet.se>
4647
4648 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
4649 widget is a scrollbar.
4650
c0be27fd
KH
46512010-04-20 Kenichi Handa <handa@m17n.org>
4652
4653 * charset.c (char_charset): Consider Vcharset_non_preferred_head
4654 only when the arg CHARSET_LIST is nil.
4655
ce5b453a
SM
46562010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
4657
4658 Make variable forwarding explicit rather the using special values.
4659 Basically, this makes the structure of buffer-local values and object
4660 forwarding explicit in the type of Lisp_Symbols rather than use
4661 special Lisp_Objects for that. This tends to lead to slightly more
4662 verbose code, but is more C-like, simpler, and makes it easier to make
4663 sure we handled all cases, among other things by letting the compiler
4664 help us check it.
4665 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
4666 Removing forwarding objects.
4667 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
4668 (struct Lisp_Symbol): Make the various forms of variable-forwarding
4669 explicit rather than hiding them inside Lisp_Object "values".
4670 (XFWDTYPE): New macro.
4671 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
4672 (XBUFFER_LOCAL_VALUE): Remove.
4673 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
4674 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
4675 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
4676 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
4677 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
4678 Remove the Lisp_Misc_* header.
4679 (struct Lisp_Buffer_Local_Value): Redefine.
4680 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
4681 (struct Lisp_Misc_Any): Add filler to get the right size.
4682 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
4683 Lisp_Intfwd.
4684 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
4685 (DEFVAR_KBOARD): Allocate a forwarding object.
4686 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
4687 (let_shadows_global_binding_p): New function.
4688 (union Lisp_Val_Fwd): New type.
4689 (make_blv): New function.
4690 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
4691 (store_symval_forwarding, swap_in_global_binding, Fboundp)
4692 (swap_in_symval_forwarding, find_symbol_value, Fset)
4693 (let_shadows_buffer_binding_p, set_internal, default_value)
4694 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
4695 (Fkill_local_variable, Fmake_variable_frame_local)
4696 (Flocal_variable_p, Flocal_variable_if_set_p)
4697 (Fvariable_binding_locus):
4698 * xdisp.c (select_frame_for_redisplay):
4699 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
4700 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
4701 * frame.c (store_frame_param):
4702 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
4703 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
4704 value structure.
4705 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
4706 (clone_per_buffer_values): Only adjust markers into the current buffer.
4707 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
4708 (Fbuffer_local_value, set_buffer_internal_1)
4709 (swap_out_buffer_local_variables):
4710 Adapt to the new symbol value structure.
4711 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
4712 (defvar_per_buffer): Take a new arg for the fwd object.
4713 (buffer_lisp_local_variables): Return a proper alist (different fix
4714 for bug#4138).
4715 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
4716 (Fgarbage_collect): Don't handle buffer_defaults specially.
4717 (mark_object): Handle new symbol value structure rather than the old
4718 special Lisp_Misc_* objects.
4719 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
4720 * term.c (set_tty_color_mode):
4721 * bidi.c (bidi_initialize): Don't access the ->value field directly.
4722 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
4723 a buffer_local_flags.
4724 * print.c (print_object): Get rid of impossible forwarding objects.
4725
fd3998ff
EZ
47262010-04-19 Eli Zaretskii <eliz@gnu.org>
4727
4728 * bidi.c (bidi_get_type, bidi_get_category)
4729 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
4730 (bidi_type_of_next_char, bidi_level_of_next_char):
4731 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 4732
e42cd1a7
JB
47332010-04-19 Juanma Barranquero <lekktu@gmail.com>
4734
4735 * dired.c (Ffile_attributes): Fix typo in docstring.
4736
6e104790 47372010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
4738
4739 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
4740 NSInteger (Bug#5811).
4741
6e104790 47422010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
4743
4744 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
4745 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
4746
6e104790 47472010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
4748
4749 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
4750
6e104790
SM
47512010-04-19 Chong Yidong <cyd@stupidchicken.com>
4752
4753 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
4754 terminal frames (Bug#5837).
4755
37dcfea0
EZ
47562010-04-19 Eli Zaretskii <eliz@gnu.org>
4757
d1da276f
EZ
4758 * .gdbinit (xsubchartable): New command.
4759
37dcfea0
EZ
47602010-04-19 Eli Zaretskii <eliz@gnu.org>
4761
4762 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 4763 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
4764 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
4765 and
4766 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
4767
e9515805
SM
47682010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
4769
4770 * alloc.c (Fpurecopy): Hash-cons if requested.
4771 (syms_of_alloc): Update purify-flag docstring.
4772
22aa44a8
JD
47732010-04-18 Jan Djärv <jan.h.d@swipnet.se>
4774
4775 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
4776 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
4777
ebb5722e
EZ
47782010-04-17 Eli Zaretskii <eliz@gnu.org>
4779
4780 Fix a crash when an NSM character is inserted at BEGV.
4781
4782 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
4783 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
4784 NEUTRAL_B or UNKNOWN_BT.
4785
0f4442ef
EZ
47862010-04-16 Eli Zaretskii <eliz@gnu.org>
4787
4788 * xdisp.c (set_cursor_from_row): Don't consider possibility of
4789 other rows with cursor unless they are different from this row and
4790 this row is part of a continued line. (Bug#5943)
4791
7d4e45f8
DN
47922010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
4793
4794 * s/freebsd.h: Restore osreldate.h include.
4795 Suggested by Naohiro Aota.
4796
5ba5ec85
J
47972010-04-16 Jan Djärv <jan.h.d@swipnet.se>
4798
4799 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
4800
20af301d
CY
48012010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
4802
4803 * s/cygwin.h: Avoid linking against static libgcc.
4804
a4b000fb
JL
48052010-04-15 Juri Linkov <juri@jurta.org>
4806
4807 * window.c: Add Qscroll_command.
4808 Remove Vscroll_preserve_screen_position_commands.
4809 (window_scroll_pixel_based, window_scroll_line_based): Check the
4810 `scroll-command' property on the last command instead of searching
4811 the last command in Vscroll_preserve_screen_position_commands.
4812 (syms_of_window): Initialize and staticpro `Qscroll_command'.
4813 Put Qscroll_command property on Qscroll_up and Qscroll_down.
4814 (scroll-preserve-screen-position): Doc fix.
4815 (Vscroll_preserve_screen_position_commands): Remove variable.
4816
bc319ba4
DN
48172010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4818
6bb24457
DN
4819 * xdisp.c (message): Do not use NO_ARG_ARRAY.
4820
19d4c244
DN
48212010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
4822
4823 Reduce cpp use in Makefile.in.
4824 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
4825 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
4826 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
4827 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
4828 (CRT0_COMPILE): Remove, inline it in the only user.
4829
32129746
JL
48302010-04-14 Juri Linkov <juri@jurta.org>
4831
4832 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
4833 `scroll-up-command' and `M-v' from `scroll-down' to
4834 `scroll-down-command'.
4835
9013a7f8
JL
48362010-04-14 Juri Linkov <juri@jurta.org>
4837
4838 * window.c (Vscroll_preserve_screen_position_commands): New variable
4839 with the default value as the list of Qscroll_down and Qscroll_up.
4840 (window_scroll_pixel_based, window_scroll_line_based): Search the
4841 last command in the list Vscroll_preserve_screen_position_commands
4842 instead of comparing with Qscroll_up and Qscroll_down.
4843
4bef8d26
JD
48442010-04-13 Jan Djärv <jan.h.d@swipnet.se>
4845
92848133
JD
4846 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
4847 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
4848 does that.
4849
4bef8d26
JD
4850 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
4851 to zero.
4852
58b963f7
SM
48532010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4854
84164a0d
SM
4855 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
4856
2b0a91e7
SM
4857 Try to solve the problem of spurious EOF chars in long lines of text
4858 sent to interactive subprocesses.
4859 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
4860 (system_process_attributes): Remove unused var `ttotal'.
4861 * process.c (send_process): Don't bother breaking long line with EOF
4862 chars when talking to ttys any more.
4863 (wait_reading_process_output): Output a warning when called in such
4864 a way that it could block without being interruptible.
4865
58b963f7
SM
4866 Try to detect file modification within the same second.
4867 * buffer.h (struct buffer): New field modtime_size.
4868 * buffer.c (reset_buffer): Initialize it.
4869 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
4870 (Fverify_visited_file_modtime): Check it.
4871 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
4872 (Fset_visited_file_modtime): Set (or clear) it.
4873
01f5787b
SM
48742010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
4875
4876 * process.c (status_notify): Remove unused var `ro'.
4877
83725342
JD
48782010-04-12 Jan Djärv <jan.h.d@swipnet.se>
4879
4880 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
4881 more than one visual (Bug#5938).
4882
b9465836
DN
48832010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
4884
50426a04
JB
4885 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
4886 Undefine.
b9465836 4887
8d9c8ece
DN
48882010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
4889
b1f52161
DN
4890 Remove C_SWITCH_SYSTEM_TEMACS.
4891 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
4892 (malloc, realloc, free): Use emacs, not temacs for conditional
4893 definition.
4894
4895 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
4896 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
4897
8d9c8ece
DN
4898 Use autoconf, not cpp for some variables.
4899 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
4900 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
4901 (ALL_CFLAGS): Use them as make variables.
4902 (really-lwlib, really-oldXMenu): Do not pass them.
4903
1ecb2d3f
JD
49042010-04-11 Jan Djärv <jan.h.d@swipnet.se>
4905
4906 * xmenu.c (apply_systemfont_to_dialog): New.
4907 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
4908
3a4fa2f2
SM
49092010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
4910
97e53006
SM
4911 * process.c (exec_sentinel): Preserve current-buffer.
4912
3a4fa2f2
SM
4913 * process.c (read_process_output): Move the save-current-buffer to
4914 apply to both the filter and the non-filter branches.
4915
88df7221
DN
49162010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
4917
4918 * s/msdos.h (UNEXEC): New definition.
4919
5634ff85
YM
49202010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4921
6eff5c3d
YM
4922 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
4923 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
4924
4925 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
4926 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
4927 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
4928 TRY_WINDOW_CHECK_MARGINS.
4929
4930 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
4931 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
4932 width only when it is for padding.
5634ff85 4933
b13aef54
J
49342010-04-09 Jan Djärv <jan.h.d@swipnet.se>
4935
4936 * xfns.c (Fx_show_tip): Call try_window in a loop until
4937 fonts_changed_p is zero (Bug#2423).
4938
21d28484
EZ
49392010-04-08 Eli Zaretskii <eliz@gnu.org>
4940
4941 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
4942 the end of TEXT_AREA. (Bug#5856)
4943
0269ef77
JD
49442010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4945
4946 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
4947 HAVE_GCONF.
4948
5930fe97
EZ
49492010-04-08 Eli Zaretskii <eliz@gnu.org>
4950
4951 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
4952 prev.orig_type, for resolving type of NSM. (Bug#5858)
4953
99852628
JD
49542010-04-08 Jan Djärv <jan.h.d@swipnet.se>
4955
4956 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
4957 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
4958 in current_font.
4959 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
4960 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
4961 New functions.
4962 (syms_of_xsettings): Initialize current_font.
4963 defsubr Sfont_get_system_normal_font.
99852628 4964
686b968e
JB
4965 * xsettings.h (Ffont_get_system_normal_font)
4966 (xsettings_get_system_normal_font): Declare.
99852628
JD
4967
4968 * xfns.c (extern xlwmenu_default_font): Remove.
4969 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
4970 to xlwmenu.c.
4971
4972 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
4973 menu items in UTF-8.
4974
4975 * xmenu.c: include xsettings.h and xlwmenu.h if USE_LUCID.
4976 (apply_systemfont_to_menu): New function.
4977 (set_frame_menubar, create_and_show_popup_menu): Call
4978 apply_systemfont_to_menu.
4979
7fc874c4
J
49802010-04-07 Jan Djärv <jan.h.d@swipnet.se>
4981
4982 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
4983 FRAME_LINE_TO_PIXEL_Y.
4984
4985 * xterm.c (x_set_window_size_1): Don't add border_width/height to
4986 pixelwidth/height.
4987
863bf481
DN
49882010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
4989
5e5a3b92
DN
4990 Simplify code for HP machines.
4991 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
4992 for GNU_LINUX, not needed.
4993 (UNEXEC, NEED_BSDTTY): Move definitions...
4994 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
4995
863bf481
DN
4996 * m/iris4d.h (UNEXEC): Move definition ...
4997 * s/irix6-5.h (UNEXEC): ... here.
4998
3e6bec3b
JD
49992010-04-04 Jan Djärv <jan.h.d@swipnet.se>
5000
5001 * xfns.c (set_machine_and_pid_properties): New function.
5002 (Fx_create_frame): Call set_machine_and_pid_properties.
5003
2912322b
SM
50042010-04-03 Eli Zaretskii <eliz@gnu.org>
5005
1502b819
EZ
5006 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char): Check
5007 bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
5008 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
5009
2912322b
SM
5010 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
5011 in this function. (Bug#5703)
5012
50132010-04-03 Chong Yidong <cyd@stupidchicken.com>
5014
5015 * nsterm.h: Fix last change.
5016
c435b432
DN
50172010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
5018
a568f507
DN
5019 * m/intel386.h (NO_REMAP): Move definition ...
5020 * s/msdos.h (NO_REMAP): ... here.
5021
4cd9f6c2
DN
5022 * m/vax.h (CRT0_DUMMIES): Remove, unused.
5023
c435b432
DN
5024 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
5025 used on those platforms.
5026
42a2c622
DN
50272010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
5028
5029 Remove extern errno declarations.
5030 * xterm.c:
5031 * xrdb.c:
5032 * w32term.c:
5033 * unexec.c:
5034 * unexaix.c:
5035 * sysdep.c:
5036 * process.c:
5037 * lread.c:
5038 * keyboard.c:
5039 * floatfns.c:
5040 * filelock.c:
5041 * fileio.c:
5042 * emacs.c (main):
5043 * ecrt0.c:
5044 * dispnew.c:
5045 * callproc.c:
5046 * buffer.c: Remove errno extern declarations.
5047 * s/netbsd.h (NEED_ERRNO): Remove.
5048
8224f93d
DN
50492010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
5050
5051 Remove all uses of LIBX11_SYSTEM.
5052 * Makefile.in (LIBX11_SYSTEM): Remove.
5053 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
5054 instead.
5055
814062c7
EZ
50562010-04-01 Eli Zaretskii <eliz@gnu.org>
5057
ed68db4d
EZ
5058 Remove support for DJGPP v1.x (bug#5813).
5059
5060 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
5061 * s/msdos.h:
5062 * unexec.c (make_hdr, copy_text_and_data):
5063 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 5064 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
5065 (IT_set_terminal_modes, __write, _rename, gethostname)
5066 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
5067 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
5068 the value of __DJGPP__.
ed68db4d
EZ
5069 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
5070 compatibility code.
8224f93d
DN
5071 * lread.c:
5072 * gmalloc.c (memalign):
5073 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
5074 * emacs.c (main):
5075 * dosfns.c (init_dosfns):
ed68db4d
EZ
5076 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
5077
52f4d8d5
EZ
50782010-04-01 Eli Zaretskii <eliz@gnu.org>
5079
814062c7
EZ
5080 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
5081 string with `cursor' property comes from an `after-string'
5082 overlay. (Bug#5816)
5083
0dc2e11d
GM
50842010-04-01 Glenn Morris <rgm@gnu.org>
5085
5086 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
5087 Define as Makefile variables.
5088 (LIBX): Use above variables rather than directly using autoconf.
5089
1d29df59
DN
50902010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
5091
5092 Clean up BSD_SYSTEM use.
5093 * xterm.c:
5094 * process.c:
5095 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
5096 for including <sys/ioctl.h>.
5097 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
5098 code is only used for MSDOS.
5099
1546c559
JL
51002010-03-31 Juri Linkov <juri@jurta.org>
5101
5102 * image.c: Add `Qextension_data'.
5103 (syms_of_image): Initialize and staticpro `Qextension_data'.
5104 (Fimage_metadata): Rename from `Fimage_extension_data'.
5105 (gif_load): Put GIF extension data to the property
5106 `Qextension_data'.
5107
6521c534
CY
51082010-03-31 Chong Yidong <cyd@stupidchicken.com>
5109
5110 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
5111 * nsterm.h: Fix prototype.
5112
52c30783
EZ
51132010-03-31 Eli Zaretskii <eliz@gnu.org>
5114
5115 * xdisp.c (highlight_trailing_whitespace): Support highlight of
5116 trailing whitespace in right-to-left rows.
5117
855a0da7
SM
51182010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5119
5120 Get rid of the direct_output optimizations.
5121 * keyboard.c (nonundocount): Remove extern declaration.
5122 (command_loop_1): Remove brittle optimisation for cheap and
5123 common operations.
5124 * xdisp.c (redisplay_internal): Don't bother checking
5125 redisplay_performed_directly_p any more.
5126 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
5127 any more.
5128 * dispnew.c (redisplay_performed_directly_p)
5129 (direct_output_for_insert, direct_output_forward_char):
5130 * dispextern.h (redisplay_performed_directly_p)
5131 (direct_output_for_insert, direct_output_forward_char): Remove.
5132 * cmds.c (nonundocount): Make it static.
5133
85738751 51342010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
5135
5136 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
5137
85738751 51382010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
5139
5140 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
5141 invisible (Bug#5766).
5142
85738751 51432010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 5144
855a0da7
SM
5145 * xdisp.c (x_consider_frame_title, update_window_cursor):
5146 Remove HAVE_NS conditionals.
194d44e7 5147 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
5148
5149 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
5150 filename for the title.
5151 (ns_set_doc_edited): Do nothing if the selected window is a
5152 minibuffer window.
5153
5154 * nsterm.h: Add prototypes for ns_set_name_as_filename and
5155 ns_set_doc_edited.
5156
5157 * nsterm.m: Remove unneeded prototype.
5158
85738751 51592010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
5160
5161 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
5162 in the DOC file. (Bug#5336)
5163
85738751 51642010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
5165
5166 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
5167
75d1428c
SM
51682010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
5169
5170 * window.c (keys_of_window): Remove redundant/overridden bindings.
5171
82043cfb
EZ
51722010-03-30 Eli Zaretskii <eliz@gnu.org>
5173
5174 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
5175 Restore original behavior when the iterator is not bidi_p.
5176
b5dd0ae7
DN
51772010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5178
5179 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
5180
bd924a5d
EZ
51812010-03-30 Eli Zaretskii <eliz@gnu.org>
5182
5183 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
5184 are outside the range of cached character positions.
5185
3580374b
JB
51862010-03-30 Juanma Barranquero <lekktu@gmail.com>
5187
5188 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
5189
a7b02820
EZ
51902010-03-30 Eli Zaretskii <eliz@gnu.org>
5191
5192 Initial support for bidirectional editing.
5193
5194 * Makefile.in (obj): Include bidi.o.
5195 (bidi.o): New target.
5196
5197 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
5198 ($(BLD)/bidi.$(O)): New target.
5199
5200 * bidi.c: New file.
5201
5202 * buffer.h (struct buffer): New members bidi_display_reordering
5203 and bidi_paragraph_direction.
5204
5205 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
5206 and bidi_paragraph_direction.
5207 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
5208 and bidi-paragraph-direction.
5209 (Fbuffer_swap_text): Swap the values of
5210 bidi_display_reordering and bidi_paragraph_direction.
5211
5212 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
5213 (bidi_type_t, bidi_dir_t): New types.
5214 (bidi_saved_info, bidi_stack, bidi_it): New structures.
5215 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
5216 prev_stop, base_level_stop, and eol_pos.
5217 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
5218 (IT_STACK_SIZE): Enlarge to 5.
5219 (struct glyph_row): New member reversed_p.
5220 <string_buffer_position>: Update prototype.
5221 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
5222 glyph_row if bidi_it.paragraph_dir == R2L.
5223 (struct glyph): New members resolved_level and bidi_type.
5224
5225 * dispnew.c (direct_output_forward_char): Give up if we need bidi
5226 processing or buffer's direction is right-to-left.
5227 (prepare_desired_row): Preserve the reversed_p flag.
5228 (row_equal_p): Compare the reversed_p attributes as well.
5229
5230 * xdisp.c (init_iterator): Initialize it->bidi_p. Call
5231 bidi_init_it and set it->paragraph_embedding from the current
5232 buffer's value of bidi_paragraph_direction.
5233 (reseat_1): Initialize bidi_it.first_elt.
5234 (set_iterator_to_next, next_element_from_buffer): Use the value of
5235 paragraph_embedding to determine the paragraph direction.
5236 (set_iterator_to_next): Under bidi reordering, call
5237 bidi_get_next_char_visually. Call bidi_paragraph_init if the
5238 new_paragraph flag is set in the bidi iterator.
5239 (next_element_from_buffer): If bidi_it.first_elt is set,
5240 initialize paragraph direction and find the first character to
5241 display in the visual order. If reseated to a middle of a line,
5242 prime the bidi iterator starting at the line's beginning. Handle
5243 the situation where we overstepped stop_charpos due to
5244 non-linearity of the bidi iteration. Likewise for when we back up
5245 beyond the previous stop_charpos. When moving across stop_charpos,
5246 record it in prev_stop.
5247 (display_line): Set row->end and it->start for the next row to the
5248 next character in logical order. Always extend reversed_p rows to
5249 the end of line, even if they end at ZV. Copy the reversed_p flag
5250 to the next glyph row. Keep calling set_cursor_from_row for
5251 bidi-reordered rows even if we already have a possible candidate
5252 for cursor position. Set row_end after all the row's glyphs have
5253 been produced, by looping over the glyphs. Record the position
5254 after EOL in it->eol_pos, and use it to set end_pos of the last
5255 row produced for a continued line.
5256 <Qright_to_left, Qleft_to_right>: New variables.
5257 (syms_of_xdisp): Initialize and staticpro them.
5258 (string_buffer_position_lim): New function.
5259 (string_buffer_position): Most of code moved to
5260 string_buffer_position_lim. Last argument and return value are
5261 now EMACS_INT; all callers changed.
5262 (set_cursor_from_row): Rewritten to support bidirectional text and
5263 reversed glyph rows.
5264 (text_outside_line_unchanged_p, try_window_id): Disable
5265 optimizations if we are reordering bidirectional text and the
5266 paragraph direction can be affected by the change.
5267 (append_glyph, append_composite_glyph)
5268 (produce_image_glyph, append_stretch_glyph): Set the
5269 resolved_level and bidi_type members of each glyph.
5270 (append_glyph): If the glyph row is reversed, prepend the glyph
5271 rather than appending it.
5272 (handle_stop_backwards): New function.
5273 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
5274 (reseat): call handle_stop_backwards to recompute prev_stop and
5275 base_level_stop for the new position.
5276 (handle_invisible_prop): Under bidi iteration, skip invisible text
5277 using bidi_get_next_char_visually. If we are `reseat'ed, init the
5278 paragraph direction. Update IT->prev_stop after skipping
5279 invisible text.
5280 (move_it_in_display_line_to): New variables prev_method
5281 and prev_pos. Compare for strict equality in
5282 BUFFER_POS_REACHED_P.
5283 (try_cursor_movement): Examine all the candidate rows that occlude
5284 point, to return the best match. If rows are bidi-reordered
5285 and point moved backwards, back up to the row that is not a
5286 continuation line, and start looking for a suitable row from
5287 there.
5288
5289 * term.c (append_glyph): Reverse glyphs by pre-pending them,
5290 rather than appending, if the glyph_row's reversed_p flag is set.
5291 Set the resolved_level and bidi_type members of each glyph.
5292
5293 * .gdbinit (pbiditype): New command.
5294 (pgx): Use it to display bidi level and type of the glyph.
5295 (pitx): Display some bidi information about the iterator.
5296 (prowlims, pmtxrows): New commands.
5297
32a8894e
DN
52982010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
5299
5300 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
5301 * s/usg5-4.h (LIBS_DEBUG):
5302 * s/irix6-5.h (C_DEBUG_SWITCH):
5303 * s/gnu-linux.h (LIBS_DEBUG):
5304 * s/darwin.h (LIBS_DEBUG):
5305 * s/bsd-common.h (LIBS_DEBUG):
5306 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
5307 * m/iris4d.h (LIBS_DEBUG):
5308 * m/hp800.h (LIBS_DEBUG): Remove definitions.
5309
5310 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
5311 (LIBS_DEBUG): Remove definition.
5312
649dbf36
CY
53132010-03-27 Chong Yidong <cyd@stupidchicken.com>
5314
5315 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
5316 Windows.
5317
cad4261f
YM
53182010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5319
5320 * process.c (Fmake_network_process): Don't call turn_on_atimers around
5321 `connect' (Bug#5723).
5322
cd591dbc
HE
53232010-03-25 Helmut Eller <eller.helmut@gmail.com>
5324
5325 * process.c (Fmake_network_process): Call `select' for interrupted
5326 `connect' rather than creating new socket (Bug#5173).
5327
e867cb5d 53282010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
5329
5330 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
5331
5332 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
5333
5334 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
5335
e867cb5d 53362010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
5337
5338 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
5339 XLoadQueryFont.
5340
e867cb5d 53412010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
5342
5343 * coding.c (decode_coding_ccl): Fix previous change for the
5344 multibyte case.
fb608df3
KH
5345 (encode_coding_ccl): Don't setup ccl program here. Fix for the
5346 case that the output buffer is fullfilled.
5347 (encode_coding): Setup ccl program here.
fbdc1721 5348
5845f0ed
DN
53492010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
5350
814fb708
DN
5351 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
5352
5845f0ed
DN
5353 Simplify LIBS_MACHINE definitions.
5354 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
5355 * m/iris4d.h (LIBS_MACHINE): Likewise.
5356 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
5357 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 5358 * s/netbsd.h: Remove commented out code.
5845f0ed 5359
b7064064
DN
53602010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
5361
df7734b2
DN
5362 Remove dead code dealing with POSIX_SIGNALS.
5363 * atimer.c (set_alarm): Remove dead code, all USG systems define
5364 POSIX_SIGNALS.
5365 * data.c (arith_error): Likewise.
5366 * keyboard.c (input_available_signal, handle_user_signal)
5367 (interrupt_signal): Likewise.
5368 * process.c (sigchld_handler): Likewise.
5369 (create_process): Remove if 0 code. Remove HPUX conditional when
5370 !defined (POSIX_SIGNALS), it cannot be true.
5371 * syssignal.h: Remove USG5_4 and USG conditionals when
5372 !POSIX_SIGNALS, they cannot be true.
5373
b7064064
DN
5374 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
5375 NO_SOCK_SIGIO, not used anymore.
5376
55da5ee3
DN
53772010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
5378
0be96e3a
DN
5379 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
5380 support vax on BSDs.
5381
55da5ee3
DN
5382 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
5383 * s/aix4-2.h (ORDINARY_LINK): ... here.
5384
c0282183
AS
53852010-03-21 Andreas Schwab <schwab@linux-m68k.org>
5386
82c3d67a
AS
5387 * Makefile.in (abs_builddir): Define.
5388 (bootstrap_exe): Use it.
5389 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 5390
3613edce
SM
53912010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
5392
5393 * Makefile.in (bootstrap_exe): Use an absolute name.
5394
7f110ddc
DN
53952010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5396
22e87574
DN
5397 Remove support for old GNU/Linux using libc version 5.
5398 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
5399 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
5400
05a670e6
DN
5401 Consolidate redundant definitions in s/bsd-common.h.
5402 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5403 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5404 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
5405 doing it in all files that include this one.
5406 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5407 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5408 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5409 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5410 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5411 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5412 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
5413 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
5414 (LDAV_SYMBOL, KERNEL_FILE): Remove.
5415
2968f561
DN
5416 Consolidate redundant definitions.
5417 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
5418 it's undefined in all files that include this one.
5419 (POSIX_SIGNALS): Define here instead of doing it in all files that
5420 include this one.
5421 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5422 (POSIX_SIGNALS): Do not define.
5423 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5424 (POSIX_SIGNALS): Do not define.
5425 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
5426 (POSIX_SIGNALS): Do not define.
5427
15d25dc0
DN
5428 Remove support for old UNIX System V systems.
5429 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
5430 * s/usg-5-4-2.h: Remove.
5431
07e339e4
DN
5432 Remove support for Solaris on PPC and for old versions.
5433 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
5434 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
5435 that cancel each other.
5436 * s/sol2-3.h:
5437 * s/sol2-4.h:
5438 * s/sol2-5.h: Remove.
5439 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
5440 (NO_REMAP): Remove, unused.
5441 (UNEXEC): Move definition ...
5442 * s/aix4-2.h (UNEXEC): ... here.
5443
7f110ddc
DN
5444 * s/openbsd.h: Remove support for non-ELF and for systems that do
5445 not support shared libraries.
5446 * s/netbsd.h:
5447 * s/freebsd.h: Likewise.
5448
605f35cd
DN
54492010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5450
5451 Remove non-working support for lynxos 3.0.
5452 * s/lynxos.h: Remove file.
5453
5454 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
5455 COFF_BSD_SYMBOLS, nothing defines it anymore.
5456
aed71cf4
DN
54572010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
5458
5459 Remove obsolete uses of HAVE_SHM.
5460 * emacs.c (standard_args):
5461 (Fdump_emacs):
5462 (syms_of_emacs): Remove code depending on HAVE_SHM.
5463
5464 * alloc.c: Remove HAVE_SHM dependent definition.
5465
5466 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
5467
aded53ff
GM
54682010-03-18 Glenn Morris <rgm@gnu.org>
5469
17284745
GM
5470 * emacs.c (USAGE4): Hard-code bug address.
5471 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
5472 (bug_reporting_address): Remove.
5473 (main): Don't call bug_reporting_address.
5474
aded53ff
GM
5475 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
5476 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
5477
303500aa
CY
54782010-03-15 Chong Yidong <cyd@stupidchicken.com>
5479
5480 * xfns.c (Fx_create_frame):
5481 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
5482 on left.
5483
cef3058f
CY
54842010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
5485
5486 * editfns.c (Fformat): Account for string precision when computing
5487 field width (Bug#5710).
5488
a647d59d
CY
54892010-03-12 Chong Yidong <cyd@stupidchicken.com>
5490
4fa42018
CY
5491 * xfns.c (Fx_create_frame): Set default to Qright.
5492
a647d59d
CY
5493 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
5494 all window systems.
5495
6da23aaa
EZ
54962010-03-12 Eli Zaretskii <eliz@gnu.org>
5497
a96f6398 5498 These changes remove termcap.c from the build on Posix platforms.
83d02def 5499 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
5500 (MSDOS_OBJ): ...to here.
5501 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
5502 now identical to when LIBS_TERMCAP is defined.
5503
5504 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
5505
5506 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
5507
a96f6398 5508 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 5509
288f9fc0
CY
55102010-03-10 Chong Yidong <cyd@stupidchicken.com>
5511
5512 * Branch for 23.2.
5513
d48cd3f4
SM
55142010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
5515
5516 Cleanup setup of gl_state in various parts of the code.
5517 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
5518 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
5519 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
5520 (skip_chars):
5521 * regex.c (regex_compile): Use it.
5522 (re_compile_pattern): Don't set gl_state.current_syntax_table since
5523 it's now set in regex_compile when/if we need it.
5524
618db430
SM
55252010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
5526
c0335e02
SM
5527 Make it possible to C-g in a tight bytecode loop again (bug#5680).
5528 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
5529 (QUIT): Use it to consolidate code and remove redundancy.
5530 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
5531
254c06a8
SM
5532 * regex.c (regex_compile): Setup gl_state as well.
5533
618db430
SM
5534 * syntax.c (skip_chars): Setup gl_state (bug#3823).
5535 (in_classes): Use CONSP before XCAR/XCDR.
5536
233f0c9f
CY
55372010-03-03 Chong Yidong <cyd@stupidchicken.com>
5538
5539 * keymap.c (Fwhere_is_internal): Use Fequal to compare
5540 definitions, so that keyboard macros are correctly handled
5541 (Bug#5481).
5542
75f80e63
EZ
55432010-03-02 Eli Zaretskii <eliz@gnu.org>
5544
5545 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
5546 text that could be relocated inside the call to emacs_mule_char.
5547 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
5548 (CODING_DECODE_CHAR): Add a comment describing its purpose.
5549
dcfb9bc4
KH
55502010-03-02 Kenichi Handa <handa@m17n.org>
5551
fc9a17bc
KH
5552 * character.c (parse_str_as_multibyte): Fix handling of the
5553 multibyte form of raw-bytes.
5554 (str_as_multibyte): Likewise.
5555
dcfb9bc4
KH
5556 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
5557 form of raw-bytes.
5558
412c01b6
CY
55592010-02-28 Chong Yidong <cyd@stupidchicken.com>
5560
5561 * charset.c (load_charset_map_from_file)
5562 (load_charset_map_from_vector): Zero out allocated
5563 charset_map_entries before using them.
5564
df7e1ea0
AS
55652010-02-27 Andreas Schwab <schwab@linux-m68k.org>
5566
5567 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
5568
fe69a722
CY
55692010-02-27 Chong Yidong <cyd@stupidchicken.com>
5570
4ed28cf4
CY
5571 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
5572 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 5573
7379cfce
KH
55742010-02-26 Kenichi Handa <handa@m17n.org>
5575
f88cc4d6
KH
5576 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
5577
7379cfce
KH
5578 * xdisp.c (reseat_to_string): Fix previous change.
5579
cf2fdcfb
CY
55802010-02-26 David Reitter <david.reitter@gmail.com>
5581
5582 * nsfont.m (nsfont_draw): ns_antialias_text should be a
5583 Lisp_Object (Bug#4736).
5584
cc6c7c75
KH
55852010-02-25 Kenichi Handa <handa@m17n.org>
5586
5587 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
5588
32e737d7
JD
55892010-02-24 Jan Djärv <jan.h.d@swipnet.se>
5590
5591 * xterm.c (XTflash): Move declarations before statements.
5592
5593 * gtkutil.c (xg_get_gdk_display): Remove (unused).
5594 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
5595 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
5596 (xg_create_tool_bar): Remove unused variables.
5597 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 5598 (xg_create_frame_widgets): Remove variable grav.
32e737d7 5599
676cae9f
CY
56002010-02-21 Chong Yidong <cyd@stupidchicken.com>
5601
5602 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
5603
886cc2b8
SM
56042010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
5605
5606 * term.c (fatal): Add a final \n if needed (bug#5596).
5607
ddb2d8e2
CY
56082010-02-18 Chong Yidong <cyd@stupidchicken.com>
5609
5610 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
5611
2a4f8d3d
GM
56122010-02-18 Glenn Morris <rgm@gnu.org>
5613
5614 * callint.c (Finteractive): Doc fix.
5615
ebaf11b6
KH
56162010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
5617
886cc2b8
SM
5618 * coding.c (record_conversion_result):
5619 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
5620 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
5621 memory allocation error.
5622
d0396581
KH
56232010-02-17 Kenichi Handa <handa@m17n.org>
5624
886cc2b8
SM
5625 * coding.c (decode_coding_ccl): Don't setup ccl program here.
5626 Fix for the case that the output buffer is fullfilled.
d0396581
KH
5627 (decode_coding): Setup ccl program here. Keep looping when the
5628 decoder stopped because the output buffer is
5629 fullfilled (bug#5534).
5630
5631 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
5632
98599f74
JD
56332010-02-13 Jan Djärv <jan.h.d@swipnet.se>
5634
471e4f04 5635 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 5636 bug #5571.
886cc2b8 5637 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 5638 overdrawn.
98599f74 5639
182659ae
JD
56402010-02-10 Jan Djärv <jan.h.d@swipnet.se>
5641
5642 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
5643 doing_interact here.
5644 (ice_connection_closed): New function.
5645 (x_session_check_input, smc_die_CB, ice_io_error_handler)
5646 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
5647 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
5648 returns I/O error.
5649 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
5650 bug #5512.
5651
9be32c4e 56522010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
5653
5654 * nsfont.m (nsfont_open): The system's value for the font descent
5655 is negative, so round it down to avoid clipping.
5656
a2f3eb19
CY
56572010-02-06 Chong Yidong <cyd@stupidchicken.com>
5658
5659 * charset.c (load_charset_map_from_file)
5660 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 5661 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 5662
3088147c
CY
56632010-02-05 Chong Yidong <cyd@stupidchicken.com>
5664
5665 * charset.c (load_charset_map_from_file): Allocate large
5666 charset_map_entries structure on the heap rather than the stack.
5667 (Bug#5526).
5668
b57d9029
KH
56692010-01-31 Kenichi Handa <handa@m17n.org>
5670
5671 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 5672 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 5673
c67d885b
CY
56742010-01-31 Chong Yidong <cyd@stupidchicken.com>
5675
5676 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
5677 <deactivated@gmail.com> (Bug#3605).
5678
8fab2362
CY
56792010-01-31 David De La Harpe Golden <david@harpegolden.net>
5680
5681 * fileio.c (Frename_file): Correctly rename symlinks to
5682 directories (Bug#5496).
5683
cb2a62f2
CY
56842010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
5685
5686 * nsterm.m (ns_ring_bell): Handle visible bell like X.
5687
944c7a26
AS
56882010-01-30 Andreas Schwab <schwab@linux-m68k.org>
5689
5690 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
5691
c024ac08
CY
56922010-01-29 Chong Yidong <cyd@stupidchicken.com>
5693
5694 * frame.c (DEFAULT_ROWS): Change default to 35.
5695
5696 * xfns.c (x_default_font_parameter): Change default XFT font to
5697 monospace-10 (Bug#3643).
5698
af93af83
EZ
56992010-01-29 Eli Zaretskii <eliz@gnu.org>
5700
5701 * w32inevt.c (key_event): Remove unnecessary comparison of
5702 event->uChar.AsciiChar with 128.
5703
ca0eb708
CY
57042010-01-28 Chong Yidong <cyd@stupidchicken.com>
5705
b242dbfc
CY
5706 * fileio.c (Frename_file): Fix last change (Bug#5487).
5707
ca0eb708
CY
5708 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
5709
5710 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
5711
45d45af5
JD
57122010-01-28 Jan Djärv <jan.h.d@swipnet.se>
5713
5714 * xfns.c (Fx_create_frame): Remove window size matching code from
5715 2010-01-15.
a73f9c9d 5716 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 5717
7e233730
JR
57182010-01-27 Jason Rumney <jasonr@gnu.org>
5719
5720 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 5721 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 5722
86e893e3
KH
57232010-01-27 Kenichi Handa <handa@m17n.org>
5724
5725 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 5726 pattern string (Bug#4209).
86e893e3 5727
8719abec
CY
57282010-01-27 David De La Harpe Golden <david@harpegolden.net>
5729
5730 * fileio.c (Frename_file): Call copy-directory and
5731 delete-directory for directories, in order to handle cross-device
5732 renaming (Bug#3353).
5733
844794c8
JD
57342010-01-25 Jan Djärv <jan.h.d@swipnet.se>
5735
aa3e13b5 5736 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 5737 sizes 24 and 10. Bug #3643.
844794c8 5738
bd4b5750
SM
57392010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
5740
8dc1adf6 5741 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
5742 * keymap.c (shadow_lookup): Add `remap' arg.
5743 (describe_map, describe_vector): Update calls to shadow_lookup.
5744 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
5745 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
5746 perform remapping during shadow_lookup check of remapped_sequences.
5747
285d07e2
CY
57482010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
5749
5750 * image.c (png_load): Use png_sig_cmp instead of the obsolete
5751 png_check_sig, which has been removed in libpng 1.4.
5752
c6d09b8d
CY
57532010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
5754
5755 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
5756 lacks this header file).
5757
3d782998
YM
57582010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5759
5760 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
5761 as in Emacs 22.
5762
2aff7c53
YM
57632010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5764
5765 * lisp.h (make_pure_string): String pointer arg now points to const.
5766
5767 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
5768 args now point to const.
5769
74327f7a
EZ
57702010-01-22 Eli Zaretskii <eliz@gnu.org>
5771
5772 * lread.c (Fload): Don't treat files without .elc extension as
5773 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
5774 them. (bug#5303)
5775
4d1e6632
KH
57762010-01-20 Kenichi Handa <handa@m17n.org>
5777
5778 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
5779 treat the source as actual byte sequence.
5780
1fdede8f
AM
57812010-01-19 Alan Mackenzie <acm@muc.de>
5782
5783 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 5784 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
5785 `signal_after_change_p' to `coherent_change_p', and make the
5786 invocation of `modify_region' conditional on it.
5787
67477f30
JD
57882010-01-19 Jan Djärv <jan.h.d@swipnet.se>
5789
5790 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
5791 for debug purpose.
5792 (syms_of_xsettings): Declare xft-settings.
5793
244b023e
CY
57942010-01-18 Chong Yidong <cyd@stupidchicken.com>
5795
5796 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
5797
617364fe
CY
57982010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5799
5800 * xterm.c (event_handler_gdk): Block input (Bug#5037).
5801
4fe22cdf
CY
58022010-01-16 Chong Yidong <cyd@stupidchicken.com>
5803
5804 * emacs.c (standard_args): Adjust arg priorities to reflect how
5805 they are processed in startup.el.
5806
e118d2be
AS
58072010-01-16 Andreas Schwab <schwab@linux-m68k.org>
5808
5809 * Makefile.in (lisp, shortlisp): Update.
5810
523ae620
SM
58112010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
5812
5813 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
5814 code, link the new kboard into all_kboard before running Lisp code,
5815 and protect the new terminal with GCPRO (Bug#5365).
5816 (x_term_init): Remove unused var `atom'.
5817 (x_delete_display, x_delete_terminal): Remove unused var `i'.
5818
f0d13888
JD
58192010-01-15 Jan Djärv <jan.h.d@swipnet.se>
5820
5821 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
5822 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
5823 to find out usable size of the desktop. Don't make frames larger than
ac146f82 5824 this. Bug #3643.
f0d13888 5825
cc320f07
KH
58262010-01-15 Kenichi Handa <handa@m17n.org>
5827
5828 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
5829
7ffdf101
CY
58302010-01-15 Chong Yidong <cyd@stupidchicken.com>
5831
5832 * nsterm.m (Qnone): Define.
5833
5834 * nsfns.m (Qnone): Move definition to nsterm.m.
5835
d12bd917
KH
58362010-01-14 Kenichi Handa <handa@m17n.org>
5837
5838 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
5839 systems.
5840
d9a7c140
KH
58412010-01-14 Kenichi Handa <handa@m17n.org>
5842
5843 Make auto-composition work on all buffers even if they are
5844 fundamental mode.
5845
5846 * composite.c (Vauto_composition_mode): New variable.
5847 (composition_compute_stop_pos): Check Vauto_composition_mode
5848 instead of Vauto_composition_function.
5849 (composition_adjust_point, Ffind_composition_internal): Likewise.
5850 (syms_of_composite): Declare Lisp variable
5851 "auto-composition-mode" here.
5852
63286bb2
CY
58532010-01-13 Chong Yidong <cyd@stupidchicken.com>
5854
5855 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
5856 during call to vendor-specific-keysyms (Bug#5365).
5857
c2623ee7
YM
58582010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5859
5860 * keyboard.c (input_available_signal) [SYNC_INPUT]:
5861 Call SIGNAL_THREAD_CHECK (Bug#5333).
5862
5863 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
5864 Call SIGNAL_THREAD_CHECK.
5865
0b5397c2
SM
58662010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
5867
5868 Try to fix bug#5314. This is probably not the final word, tho.
5869 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
5870 recent-auto-save-p as a side-effect.
5871 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
5872 * buffer.c (Fkill_buffer, reset_buffer):
5873 * editfns.c (Fsubst_char_in_region):
5874 * fileio.c (Finsert_file_contents, Fdo_auto_save)
5875 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
5876
dc954cb2
KH
58772010-01-13 Kenichi Handa <handa@m17n.org>
5878
5879 Display buffer name, etc. in mode line by composing correctly.
5880
5881 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
5882 STRING is not nil.
0b5397c2 5883 (display_mode_element): Adjust for the change of
dc954cb2
KH
5884 decode_mode_spec and display_line.
5885 (decode_mode_spec): Change arg MULTIBYTE to STRING.
5886 (display_string): Handle the case that STRING is non-null and
5887 LISP_STRING is not nil.
5888
0b5397c2
SM
5889 * xterm.c (x_draw_composite_glyph_string_foreground):
5890 Pay attention to s->face->overstrike.
dc954cb2
KH
5891
5892 * composite.c (composition_reseat_it): Don't check PT if STRING is
5893 non nil.
5894
4a00eaca
YM
58952010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5896
5897 * keyboard.c (read_char): Don't apply previous change when current
5898 buffer is unchanged by command execution.
5899
60abb287
JD
59002010-01-12 Jan Djärv <jan.h.d@swipnet.se>
5901
5902 * keyboard.c (read_char): Return after executing from special map.
5903
893db5bc
GM
59042010-01-12 Glenn Morris <rgm@gnu.org>
5905
5906 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
5907 bug-gnu-emacs rather than emacs-pretest-bug.
5908
4d03ece0
CY
59092010-01-11 Chong Yidong <cyd@stupidchicken.com>
5910
5911 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
5912 initializing the Lisp variables that depend on them.
5913
1df47e38
YM
59142010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5915
5916 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
5917 Clear areas that will not be updated after change of menu bar lines.
5918 Clear the menu bar window's current matrix when the window gets empty.
5919
2f1c6384
CY
59202010-01-09 Chong Yidong <cyd@stupidchicken.com>
5921
e398c61c
CY
5922 * intervals.h, textprop.c (extend_property_ranges): Return value
5923 and args changed. Discard properties that begin at or after the
5924 new end (Bug#5306).
5925
5926 * editfns.c (Fformat): Caller changed.
5927
e5a29a10
CY
5928 * nsterm.m (ns_set_default_prefs): Delete function.
5929 (syms_of_nsterm): Initialize ns_command_modifier,
5930 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
5931 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
5932
2f1c6384
CY
5933 * xdisp.c (pos_visible_p): Check for invisible text at the correct
5934 position (Bug#4040).
5935
d427a9fa
EZ
59362010-01-09 Eli Zaretskii <eliz@gnu.org>
5937
5938 * editfns.c (Ffloat_time): Doc fix.
5939
21b9df2f
JD
59402010-01-09 Jan Djärv <jan.h.d@swipnet.se>
5941
5942 * xfns.c (Fx_create_frame): Don't create frame larger than display
5943 by default bug#3643.
5944
4b00d3b1
YM
59452010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5946
5947 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
5948 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
5949 windows above internal border.
5950
5951 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
5952 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
5953 windows above internal border.
5954
5955 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
5956 tool bar windows specially.
5957
5958 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
5959
5960 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
5961 specially.
5962 (XTflash): Take account of menu bar height.
5963
5964 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
5965 specially.
5966
5075d853
JD
59672010-01-08 Jan Djärv <jan.h.d@swipnet.se>
5968
ac146f82 5969 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
5970 also be true before we can return early (bug #5339).
5971
474217c8
CY
59722010-01-06 David Reitter <david.reitter@gmail.com>
5973
5974 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
5975 (Fns_display_usable_bounds): Rewrite, computing bounds properly
5976 (Bug#3233).
5977
c0e6d47d
JD
59782010-01-06 Jan Djärv <jan.h.d@swipnet.se>
5979
d0cf45b7
JD
5980 * font.c (font_open_entity): Enable chache and call cached_font_ok
5981 for the driver if defined.
5982 (QCuser_spec): New symbol.
5983 (font_spec_from_name): Save name as user-spec.
5984 (font_load_for_lface): Keep user-spec instead of name.
5985 (font_open_by_name): Save name as user-spec.
5986 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 5987 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
5988
5989 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
5990 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
5991 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
5992
5993 * font.h (struct font_driver): Add cached_font_ok.
5994
c0e6d47d
JD
5995 * xterm.c (x_clear_frame): Queue draw for scroll bars.
5996
7c583cd8
JD
59972010-01-05 Jan Djärv <jan.h.d@swipnet.se>
5998
5999 * xterm.c (x_new_font): Move code for setting rows/cols before
6000 resizing ...
ac146f82 6001 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
6002
6003 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
6004 (xg_frame_resized, xg_frame_set_char_size):
6005 Call xg_clear_under_internal_border.
7c583cd8 6006 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 6007
03f77f0a
CY
60082010-01-05 Chong Yidong <cyd@stupidchicken.com>
6009
6010 * keyboard.c (read_key_sequence): Catch keyboard switch after
6011 making a new tty frame (Bug#5095).
6012
2a1ef5be
KH
60132010-01-05 Kenichi Handa <handa@m17n.org>
6014
6015 * fontset.c (fontset_find_font): Fix getting the frame pointer.
6016
e3eb1dae
SM
60172010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
6018
6019 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
6020 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
6021 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
6022
777013f2
MA
60232010-01-03 Michael Albinus <michael.albinus@gmx.de>
6024
6025 * dbusbind.c (xd_add_watch): Improve debug message.
6026 (xd_remove_watch): Improve debug message. If DATA is the session
6027 bus, unset D-Bus session environment.
6028 (Fdbus_init_bus): Pass the bus as argument to
6029 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 6030
8932b1c2
CY
60312010-01-01 Chong Yidong <cyd@stupidchicken.com>
6032
87231e2c
CY
6033 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
6034
4801c5fa
CY
6035 * lread.c (syms_of_lread): Make it clearer that these are the
6036 names of loaded files (Bug#5068).
6037
8932b1c2
CY
6038 * eval.c (run_hook_with_args): Handle the case where the global
6039 value has the obsolete single-function form (Bug#5026).
6040
11e3c684
CY
60412009-12-27 Chong Yidong <cyd@stupidchicken.com>
6042
6043 * minibuf.c (Fall_completions): Minor optimization.
6044
5b28ce35
EZ
60452009-12-26 Eli Zaretskii <eliz@gnu.org>
6046
5ce6e4f4
JB
6047 * .gdbinit (pgx): Fix display of composite glyphs.
6048 Display cmp.from and cmp.to as well.
6049 (pitx): Fix last change.
5b28ce35 6050
bcffff46
KH
60512009-12-25 Kenichi Handa <handa@m17n.org>
6052
6053 * composite.h (composition_adjust_point): Update prototype.
6054
6055 * composite.c (composition_reseat_it): Don't make a composition
6056 spanning over point.
6057 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
6058 composable characters.
6059 (composition_adjust_point): New arg NEW_PT. Callers changed.
6060
6061 * keyboard.c (command_loop_1): Force redisplay if the last point
6062 was within a composition.
6063 (adjust_point_for_property): Don't adjust point for automatic
6064 composition when called after buffer modification.
6065
3f670e9a
EZ
60662009-12-19 Eli Zaretskii <eliz@gnu.org>
6067
5ce6e4f4
JB
6068 * .gdbinit (pitx): Don't use enum names, use their values.
6069 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
6070 (pgx): Don't use enum names, use their values.
6071 (pitmethod): New helper command.
6072 (pitx): Use it to display iteration method.
6073 (pgrowit): New command.
6074
ad903955
EZ
6075 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
6076
3f670e9a
EZ
6077 Update dependencies in Makefile.in.
6078
6079 * Makefile.in (alloc.o): Depend on termhooks.h.
6080 (atimer.o): Depend on blockinput.h.
6081 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
6082 and frame.h.
6083 (callint.o): Depend on systime.h, coding.h, and composite.h.
6084 (callproc.o): Depend on buffer.h.
6085 (casefiddle.o): Don't depend on charset.h.
6086 (casetab.o): Depend on character.h.
6087 (ccl.o): Depend on composite.h.
6088 (chartab.o): Depend on ccl.h.
6089 (cm.o): Depend on dispextern.h.
6090 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
6091 (coding.o): Don't depend on $(INTERVALS_H).
6092 (composite.o): Don't depend on dispextern.h explicitly (it's in
6093 $(INTERVALS_H)). Depend on ccl.h.
6094 (data.o): Depend on systime.h, coding.h, composite.h,
6095 dispextern.h, font.h, and ccl.h.
6096 (dired.o): Depend on composite.h.
6097 (dispnew.o): Depend on coding.h. Don't depend explicitly on
6098 composite.h (it's in $(INTERVALS_H)).
6099 (doc.o): Depend on systime.h, coding.h, and composite.h.
6100 (editfns.o): Don't depend explicitly on dispextern.h.
6101 (emacs.o): Depend on frame.h and coding.h.
6102 (eval.o): Depend on coding.h, composite.h, and xterm.h.
6103 (fileio.o): Depend on frame.h and commands.h. Don't depend
6104 explicitly on dispextern.h.
6105 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
6106 composite.h.
6107 (fns.o): Don't depend on termhooks.h.
6108 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
6109 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
6110 coding.h, $(INTERVALS_H), window.h, xterm.h.
6111 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
6112 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
6113 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
6114 fontset.h, ccl.h, and ftfont.h.
6115 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6116 (gtkutil.o): Depend on dispextern.h and composite.h.
6117 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
6118 termhooks.h, and ccl.h.
6119 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
6120 (intervals.o): Depend on systime.h and coding.h.
6121 (keyboard.o): Depend on composite.h and coding.h.
6122 (keymap.o): Depend on coding.h and frame.h.
6123 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
6124 (macros.o): Depend on systime.h, coding.h, and composite.h.
6125 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
6126 and atimer.h.
6127 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
6128 dispextern.h explicitly.
0b5397c2
SM
6129 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
6130 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
6131 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
6132 (regex.o): Don't depend on charset.h.
6133 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
6134 (search.o): Don't depend explicitly on composite.h.
6135 (sound.o): Depend on atimer.h and systime.h.
6136 (syntax.o): Don't depend explicitly on composite.h.
6137 (sysdep.o): Depend on coding.h and composite.h.
6138 (term.o): Depend on xterm.h and buffer.h.
6139 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
6140 (textprop.o): Don't depend on dispextern.h explicitly.
6141 (undo.o): Depend on dispextern.h.
6142 (window.o): Depend on coding.h and termhooks.h. Don't depend on
6143 dispextern.h and composite.h explicitly.
6144 (xdisp.o): Depend on ccl.h.
6145 (xfaces.o): Depend on coding.h and ccl.h.
6146 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
6147 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
6148 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
6149 ftfont.h.
6150 (xgselect.o): New dependency.
6151 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
6152 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
6153 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
6154 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
6155 (xsmfns.o): Depend on frame.h and dispextern.h.
6156 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
6157 sysselect.h.
6158
7a6f7fea
AS
61592009-12-19 Andreas Schwab <schwab@linux-m68k.org>
6160
6161 * font.c (Fclear_font_cache): Pass correct cache argument to
6162 font_clear_cache.
6163
f4c21026
AS
61642009-12-16 Andreas Schwab <schwab@linux-m68k.org>
6165
6166 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
6167 twice.
6168
f7ab0997
CY
61692009-12-15 Chong Yidong <cyd@stupidchicken.com>
6170
6171 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
6172 calling file-remote-p. Reported by Jim Meyering.
6173
fa8e045a
MA
61742009-12-15 Michael Albinus <michael.albinus@gmx.de>
6175
6176 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 6177 avoid compiler warnings. (Bug #5217)
fa8e045a 6178
a63dba42
KH
61792009-12-14 Kenichi Handa <handa@m17n.org>
6180
6181 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
6182 in 8-bit encoding.
6183
5ce6e4f4 61842009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
6185
6186 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
6187 tooltip windows.
6188
223e5fc6
JD
61892009-12-13 Jan Djärv <jan.h.d@swipnet.se>
6190
36acb2a7
JD
6191 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
6192 Xatom_net_window_type.
6193
6194 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
6195 Xatom_net_window_type.
6196
b8f00677
JD
6197 * xterm.c (my_log_handler): New function.
6198 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 6199 so we can filter out buggy messages. (Bug #5120).
b8f00677 6200
e5f0bc9a
JD
6201 * xterm.c (xg_scroll_callback): Parameter list changed,
6202 use parameter GtkScrollType to determine scroll/line/page.
6203 Only allow dragging if a button < 4 is grabbed (bug #5177).
6204 (xg_end_scroll_callback): New function.
6205 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
6206 xg_create_scroll_bar.
6207
6208 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
6209 (scroll_end_callback): Remove.
6210 (xg_create_scroll_bar): Add parameter end_callback, bind it to
6211 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 6212 bug #5177.
e5f0bc9a
JD
6213 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
6214 bug #5177.
6215
6216 * gtkutil.h (XG_LAST_SB_DATA): Remove.
6217 (xg_create_scroll_bar): Add GCallback end_callback.
6218
223e5fc6
JD
6219 * xftfont.c (QClcdfilter): New variable.
6220 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
6221 (syms_of_xftfont): Initialize QClcdfilter.
6222
3c055b77
JD
62232009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6224
6225 * xsettings.c (struct xsettings): Add member seen.
6226 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 6227 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
6228 (apply_xft_settings): Only update Xft settings with what member seen
6229 indicates as new.
6230
05fe33ff
EZ
62312009-12-12 Eli Zaretskii <eliz@gnu.org>
6232
c4cc8b9a 6233 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
6234 (struct glyph): Use EMACS_INT for charpos.
6235 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
6236 region_beg_charpos, region_end_charpos,
6237 redisplay_end_trigger_charpos, and also for
6238 iterator_stack_entry.end_charpos and
6239 iterator_stack_entry.stop_charpos.
6240
e8d7886a
JD
62412009-12-12 Jan Djärv <jan.h.d@swipnet.se>
6242
5ce6e4f4 6243 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
6244 (xg_create_scroll_bar): Call scroll_end_callback on button release
6245 event (bug #5177).
6246 (xg_event_is_for_scrollbar): != replaced with ==.
6247
d0db2ec8
KH
62482009-12-12 Kenichi Handa <handa@m17n.org>
6249
6250 * ftfont.c (struct ftfont_info): New member matrix.
6251 (ftfont_open): Setup xftfont_info->matrix.
6252 (MFLTFontFT): New member matrix.
6253 (FLOOR, CEIL, ROUND): New macros.
6254 (ftfont_get_metrics): Handle matrix transformation.
6255 (ftfont_shape_by_flt): New arg matrix. Callers changed.
6256
6257 * xftfont.c (struct xftfont_info): New member matrix.
6258 (xftfont_open): Setup xftfont_info->matrix.
6259
62602009-12-10 Kenichi Handa <handa@m17n.org>
6261
6262 * xdisp.c (append_space_for_newline): Consider face-remapping.
6263
2cc7b62f
AS
62642009-12-09 Andreas Schwab <schwab@linux-m68k.org>
6265
b87dd913
AS
6266 * xsettings.c: Include "keyboard.h".
6267
eba5eb94
AS
6268 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
6269
2cc7b62f
AS
6270 Fix implicit function declarations.
6271 * cmds.c: Include "frame.h".
6272 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
6273 * frame.h: Move declaration of delete_frame outside of
6274 HAVE_WINDOW_SYSTEM.
6275
a4ef73c8
CY
62762009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
6277
6278 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
6279
6280 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
6281 GTK builds.
6282
944a300c
AS
62832009-12-07 Andreas Schwab <schwab@linux-m68k.org>
6284
6285 * unexelf.c (unexec): Don't search for .data twice.
6286
022eef62
CY
62872009-12-05 Chong Yidong <cyd@stupidchicken.com>
6288
426ac949
CY
6289 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
6290 if push failed.
6291 (handle_line_prefix): Set avoid_cursor_p here. Check return value
6292 of push_display_prop (Bug#5000).
6293
022eef62
CY
6294 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
6295 value of font_list_entities (Bug#5085).
6296
be95bee9
JB
62972009-12-04 Juanma Barranquero <lekktu@gmail.com>
6298
6299 Fix `string-to-number' to deal consistently with integers and floats.
6300 * lread.c (isfloat_string): New argument ignore_trailing to accept all
6301 trailing characters, not just whitespace.
6302 (read1): Pass new arg 0 to keep old behavior.
6303 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
6304 trailing chars, as it is already done for integers. Doc fixes.
6305 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
6306
24c2d7ce
EZ
63072009-12-04 Eli Zaretskii <eliz@gnu.org>
6308
0b5397c2
SM
6309 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
6310 Delete unused enumeration value.
24c2d7ce 6311
7e694795
EZ
63122009-12-03 Eli Zaretskii <eliz@gnu.org>
6313
6314 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
6315
84b31826
SM
63162009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
6317
6318 * process.c (Fmake_network_process): Fix up the tests for
6319 "connectionless socket", so they DTRT for seqpacket sockets as well.
6320
f00c449b
SM
63212009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
6322
6323 * process.c (Qseqpacket): New symbol.
6324 (HAVE_SEQPACKET): New macro.
6325 (Fmake_network_process): Accept new :type `seqpacket'.
6326 (init_process): Add `seqpacket' feature when applicable.
6327 (syms_of_process): Initialize Qseqpacket.
6328
8096a0ff
YM
63292009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6330
6331 * font.c (font_load_for_lface, font_open_by_name): Don't store name
6332 if entity is Qnil.
6333
3e0de07f
SM
63342009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
6335
6336 * print.c (print_preprocess): Preprocess the key_and_value table of
6337 hashtables, even tho they're "hidden" (bug#5082).
6338
abeafb2a
JD
63392009-11-29 Jan Djärv <jan.h.d@swipnet.se>
6340
6341 * frame.c (frame_make_pointer_invisible)
6342 (frame_make_pointer_visible): Declare f before statements.
6343
4bf47195
EZ
63442009-11-28 Eli Zaretskii <eliz@gnu.org>
6345
6346 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
6347 omitted dependencies on lisp.h.
6348
c525b3f2
JD
63492009-11-27 Jan Djärv <jan.h.d@swipnet.se>
6350
ece2d4ed
JD
6351 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
6352 is NULL.
6353
6354 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
6355
6356 * frame.c (frame_make_pointer_invisible)
3e0de07f 6357 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
6358 frame.
6359
c525b3f2
JD
6360 * search.c (simple_search): Remove warning by making *p const.
6361
2f00e299
DN
63622009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
6363
6364 * xdisp.c (power_letter): Remove duplicate const.
6365
084b049b
JD
63662009-11-25 Jan Djärv <jan.h.d@swipnet.se>
6367
a1fadc6f
JD
6368 * term.c (delete_tty): Remove check for last terminal (bug#4970).
6369
5ce6e4f4 6370 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
6371 defaults (bug #5025).
6372
28259cac
SM
63732009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
6374
6375 * insdel.c (adjust_markers_for_delete): Move it in the
6376 right direction! (bug#4803)
6377
e8e14166
YM
63782009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6379
6380 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
6381
6382 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
6383
86677b58
GM
63842009-11-24 Glenn Morris <rgm@gnu.org>
6385
6386 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
6387
581e51e8
JD
63882009-11-23 Jan Djärv <jan.h.d@swipnet.se>
6389
cfc86c7a
JD
6390 * Makefile.in: Must create deps for ecrt0.o in its rule.
6391
581e51e8
JD
6392 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
6393 because that is what Gtk+ font dialog understands.
6394
6395 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
6396 of Fcopy_sequence.
6397 (font_open_by_name): Put name given into QCname for font-object returned.
6398
6399 * frame.c (x_set_font): Save original font name as frame parameter
6400 font-parameter.
6401
6402 * xsettings.c (set_default_xft_settings): New function.
6403 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
6404 is found.
6405
8b264ecb
AS
64062009-11-22 Andreas Schwab <schwab@linux-m68k.org>
6407
6408 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
6409 searching backwards through multibyte buffer.
6410
872870b2
JD
64112009-11-21 Jan Djärv <jan.h.d@swipnet.se>
6412
6413 * xterm.c: #include xgselect.h.
6414 (x_initialize): Call xgselect_initialize.
6415
6416 * xsettings.c (something_changedCB): C++ comments => C comments.
6417 (init_gconf): Do not deal with any GLib file descriptors, xg_select
6418 does that now.
6419
6420 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
6421 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
6422 (scroll_bar_button_cb): Remove.
5ce6e4f4 6423 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
6424 event.
6425 (xg_create_scroll_bar): Don't bind button-press-event and
6426 button-release-event.
6427
6428 * process.c: Include xgselect.h if defined (USE_GTK) ||
6429 defined (HAVE_GCONF).
6430 (wait_reading_process_output): Call xg_select for the same condition.
6431
6432 * xgselect.c (xg_select): New function to better integrate with
6433 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
6434
6435 * xgselect.h: New file, declare xg_select, xgselect_initialize.
6436
6437 * Makefile.in (XOBJ): Add xgselect.o.
6438
62a6e103
AS
64392009-11-21 Andreas Schwab <schwab@linux-m68k.org>
6440
0b5397c2
SM
6441 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
6442 Remove ignored second argument. All callers changed.
62a6e103
AS
6443 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
6444 (RE_STRING_CHAR_AND_LENGTH): Likewise.
6445 * xdisp.c (string_char_and_length): Likewise.
6446
b0ca0f33
DN
64472009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
6448
6449 * xterm.c (x_new_font):
6450 * print.c (print_object):
6451 * cmds.c (Fself_insert_command): Move declarations before statements.
6452
dd5a6279
CY
64532009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
6454
6455 * s/cygwin.h: Remove unneeded linker flags.
6456
4a8e097d
JD
64572009-11-20 Jan Djärv <jan.h.d@swipnet.se>
6458
0d1d0d26
JD
6459 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
6460
6461 * xsettings.h: Declare xsettings_get_system_font.
6462
6463 * xsettings.c (xsettings_get_system_font): New function.
6464 (init_gconf): No use initiating gconf unless we have Xft also.
6465 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
6466 HAVE_GCONF.
6467
4a8e097d
JD
6468 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
6469 add a blank entry so it doesn't collapse into nothing.
6470
8ab1650e
SM
64712009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6472
6473 * lread.c (Funintern): Comment out last change.
6474
82c602f0
RS
64752009-11-19 Richard Stallman <rms@gnu.org>
6476
6477 * lread.c (Funintern): Error if symbol is t or nil.
6478
87e32266
SM
64792009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
6480
6481 * insdel.c (make_gap_larger): Don't make as many assumptions about the
6482 representation of Lisp integers.
6483 Reported by MJ Chan <mjchan.inbox@gmail.com>.
6484
1b9ac145
AS
64852009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6486
6487 * lisp.h: Remove declaration of Ffont_get_system_font.
6488 * xfns.c: Move include of "xsettings.h".
6489 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
6490
dfb3c4c6
JD
64912009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6492
87e32266
SM
6493 * xsettings.c (something_changedCB, Ffont_get_system_font):
6494 Check use_system_font.
dfb3c4c6
JD
6495 (syms_of_xsettings): DEFVAR font-use-system-font.
6496
9370c1d8
AS
64972009-11-17 Andreas Schwab <schwab@linux-m68k.org>
6498
25fe851a
AS
6499 * xfns.c (x_default_font_parameter): Remove dead assignment.
6500
9370c1d8
AS
6501 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
6502
637fa988
JD
65032009-11-17 Jan Djärv <jan.h.d@swipnet.se>
6504
87e32266 6505 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 6506 not have FC_LCD_*. #define them if not there.
a6eb20d8 6507
87e32266 6508 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 6509
637fa988
JD
6510 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
6511
6512 * xterm.c (handle_one_xevent): Call xft_settings_event for
6513 ClientMessage, PropertyNotify and DestroyNotify.
6514 (x_term_init): If we have XFT, get DPI from Xft.dpi.
6515 Call xsettings_initialize.
6516
6517 * xftfont.c (xftfont_fix_match): New function.
6518 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
6519 Call xftfont_fix_match after XftFontMatch.
6520
6521 * xfont.c (xfont_driver): Initialize all members.
6522
87e32266
SM
6523 * xfns.c (x_default_font_parameter):
6524 Try font from Ffont_get_system_font.
637fa988
JD
6525 Do not get font from x_default_parameter if we got one from
6526 Ffont_get_system_font.
87e32266 6527 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
6528
6529 * w32font.c (w32font_driver): Initialize all members.
6530
6531 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
6532
6533 * lisp.h: Declare syms_of_xsettings.
6534
87e32266
SM
6535 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
6536 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
6537
6538 * ftfont.c (ftfont_filter_properties): New function.
6539
6540 * frame.c (x_set_font): Remove unused variable lval.
6541
87e32266 6542 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
6543
6544 * font.c (font_put_extra): Don't return if val is nil, it means
6545 boolean option is off.
6546 (font_parse_fcname): Collect all extra properties in extra_props
6547 and call filter_properties for all drivers with extra_props and
6548 font as parameter.
87e32266
SM
6549 (font_open_entity): Do not use cache, it does not pick up new
6550 fontconfig settings like hinting.
637fa988
JD
6551 (font_load_for_lface): If spec had a name in it, store it in entity.
6552
a73f9c9d 6553 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
6554
6555 * config.in: HAVE_GCONF is new.
6556
6557 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
6558 xsettings.o is new.
6559
5a942932
KH
65602009-11-17 Kenichi Handa <handa@m17n.org>
6561
6562 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
6563 back to the default font in case that no suitable font is found.
6564
b7c7a4d1
SM
65652009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
6566
6567 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
6568 Suggested by Chad Brown <yandros@mit.edu>.
6569 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
6570
072f1e39
JD
65712009-11-16 Jan Djärv <jan.h.d@swipnet.se>
6572
6573 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
6574
5d1e70a2
AS
65752009-11-14 Andreas Schwab <schwab@linux-m68k.org>
6576
87e32266 6577 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 6578
a53cfbe5
JD
65792009-11-14 Jan Djärv <jan.h.d@swipnet.se>
6580
473a99b7
JD
6581 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
6582 has a parent.
6583
a53cfbe5 6584 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 6585 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
6586
6587 * config.in: Generated (AUTO_DEPEND).
6588
f04bb9b2
MA
65892009-11-13 Michael Albinus <michael.albinus@gmx.de>
6590
b7c7a4d1 6591 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
6592 Vdbus_registered_functions_table, because it contains also
6593 properties. Fix docstring.
b7c7a4d1 6594 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 6595
8f11f7ec
SM
65962009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
6597
6598 * alloc.c (mark_object): Don't reprocess marked strings.
6599 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
6600 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
6601
8a605fe8
KH
66022009-11-13 Kenichi Handa <handa@m17n.org>
6603
8f11f7ec 6604 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
6605 semantics of Vword_combining_categories.
6606 (Vword_combining_categories): Describe the slight change of the
6607 semantics.
6608
241c4680
EZ
66092009-11-13 Eli Zaretskii <eliz@gnu.org>
6610
6611 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
6612
6613 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
6614
5d58e44c
SM
66152009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
6616
6617 * xdisp.c (syms_of_xdisp): Fix typo in last change.
6618
5e13f9d3
JB
66192009-11-12 Juanma Barranquero <lekktu@gmail.com>
6620
6621 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
6622
cf54c754
DR
66232009-11-11 David Reitter <david.reitter@gmail.com>
6624
6625 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
6626 variables to fix 2009-11-09 change.
6627
a4ada374
DN
66282009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
6629
91433552
DN
6630 * process.c (ifflag_def): Make flag_sym constant.
6631 (Fnetwork_interface_info): Use a constant pointer.
6632 (ifflag_table):
6633 * xfns.c (cursor_bits):
6634 * xdisp.c (power_letter):
6635 * termcap.c (speeds, esctab):
6636 * sysdep.c (baud_convert):
6637 * keyboard.c (lispy_accent_codes, modifier_names):
6638 * image.c (xbm_format, xpm_format, pbm_format, png_format)
6639 (jpeg_format, tiff_format, gif_format, svg_format)
6640 (interlace_start, interlace_increment, gs_format):
6641 * gtkutil.c (separator_names):
6642 * fringe.c (swap_nibble):
6643 * fns.c (base64_value_to_char, base64_char_to_value):
6644 * fileio.c (make_temp_name_tbl):
6645 * coding.c (suffixes): Make constant.
6646
f4265f6c
DN
6647 * frame.c (make_initial_frame):
6648 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
6649 build_string.
6650 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
6651
04420943
DN
6652 * s/freebsd.h:
6653 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
6654
0a5d24ae
DN
6655 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
6656 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
6657
a4ada374
DN
6658 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
6659 * xterm.c (syms_of_xterm):
6660 * xfaces.c (syms_of_xfaces):
6661 * xdisp.c (syms_of_xdisp):
6662 * lread.c (syms_of_lread):
6663 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
6664 build_string.
91433552 6665
a4ada374
DN
6666 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
6667
af98fc7f
SM
66682009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6669
8ab1650e 6670 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 6671
e90292a9
JD
66722009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6673
6674 * keyboard.h: Declare timer_check.
6675
6676 * keyboard.c (timer_check_2): New function that does what the old
6677 timer_check did.
6678 (timer_check): Call timer_check_2 until -1 or a non-zero time is
6679 returned, i.e. don't return -1 with timers pending.
6680
6681 * process.c: Remove extern declaration of timer_check.
6682
6683 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
6684 even if timer_check returned -1.
6685
af98fc7f
SM
6686 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
6687 xg_dialog_data.
e90292a9
JD
6688 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
6689 the event loop.
6690 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
6691 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
6692 Destroy the dialog after xg_dialog_run.
6693
045b83c0
SM
66942009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
6695
6696 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
6697
1fb99a3a
JD
66982009-11-10 Jan Djärv <jan.h.d@swipnet.se>
6699
6700 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
6701
04e452cb
JB
67022009-11-09 Juanma Barranquero <lekktu@gmail.com>
6703
6704 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
6705
ef7417fd
SM
67062009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
6707
6708 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
6709 w32menu.c, and nsmenu.m.
6710 Simplify the obsolete case where position is nil.
6711 (cleanup_popup_menu): New function, moved from nsmenu.m.
6712 (struct skp): Remove slot `notreal'.
6713 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
6714 adjust callers.
6715 (single_menu_item): Adjust call to parse_menu_item.
6716 (syms_of_menu): Defsubr x-popup-menu.
6717 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
6718 (keymap_panes): Don't export any more.
6719 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
6720 (xmenu_show): Declare.
6721 * keyboard.c (parse_menu_item): Remove arg `notreal'.
6722 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
6723 * keyboard.h (parse_menu_item): Update declaration.
6724 * xmenu.c (Fx_popup_menu): Remove.
6725 (syms_of_xmenu): Don't defsubr x-popup-menu.
6726 * w32menu.c (Fx_popup_menu): Remove.
6727 (syms_of_w32menu): Don't defsubr x-popup-menu.
6728 * nsmenu.m (cleanup_popup_menu): Remove.
6729 (ns_menu_show): Rename from ns_popup_menu and remove all the code
6730 moved to menu.c's Fx_popup_menu.
6731 (Fx_popup_menu): Remove.
6732 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
6733 menu_items (it's done in menu.c already).
6734
424d6179
SM
67352009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
6736
6737 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
6738 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
6739
c0df13a6 67402009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
6741
6742 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 6743 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
6744 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
6745 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
6746
2de9f71c
SM
67472009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6748
6749 Let integers use up 2 tags to give them one extra bit and thus double
6750 their range.
6751 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
6752 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
6753 New macros.
6754 (enum Lisp_Type): Use them. Give explicit values.
6755 (Lisp_Type_Limit): Remove.
6756 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
6757 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
6758 Pay attention to USE_2_TAGS_FOR_INTS.
6759 (INTEGERP): Use LISP_INT_TAG_P.
6760 * fns.c (internal_equal): Simplify the default case.
6761 (sxhash): Use case_Lisp_Int.
6762 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
6763 any more.
6764 (Ftype_of): Use case_Lisp_Int.
6765 (store_symval_forwarding): Take into account the fact that Ints can
6766 now have more than one tag.
6767 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 6768 (buffer_slot_type_mismatch):
2de9f71c
SM
6769 * xfaces.c (face_attr_equal_p):
6770 * print.c (print_object):
6771 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
6772 Use case_Lisp_Int.
6773
323637a2
EZ
67742009-11-06 Eli Zaretskii <eliz@gnu.org>
6775
7ac65b38
EZ
6776 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
6777
323637a2
EZ
6778 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
6779 warning.
6780
e511451f
JD
67812009-11-06 Jan Djärv <jan.h.d@swipnet.se>
6782
6783 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
6784
6785 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
6786
6787 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
6788 ButtonPressRelease and MotionNotify (bug#4870).
6789
5e2327cf
DN
67902009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
6791
5adc433e
DN
6792 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
6793
d67b4f80
DN
6794 * xterm.c (syms_of_xterm):
6795 * xselect.c (syms_of_xselect):
6796 * xmenu.c (syms_of_xmenu):
6797 * xfns.c (syms_of_xfns):
6798 * xfaces.c (syms_of_xfaces):
6799 * xdisp.c (syms_of_xdisp):
6800 * window.c (syms_of_window):
6801 * w32fns.c (syms_of_w32fns):
6802 * undo.c (syms_of_undo):
6803 * textprop.c (syms_of_textprop):
6804 * terminal.c (syms_of_terminal):
6805 * syntax.c (syms_of_syntax):
6806 * sound.c (syms_of_sound):
6807 * search.c (syms_of_search):
6808 * print.c (syms_of_print):
6809 * minibuf.c (syms_of_minibuf):
6810 * macros.c (syms_of_macros):
6811 * keymap.c (syms_of_keymap, initial_define_key)
6812 (initial_define_lispy_key):
6813 * keyboard.c (syms_of_keyboard):
6814 * insdel.c (syms_of_insdel):
6815 * image.c (syms_of_image):
6816 * fringe.c (syms_of_fringe):
6817 * frame.c (syms_of_frame):
6818 * fontset.c (syms_of_fontset):
6819 * fns.c (syms_of_fns):
6820 * fns.c (syms_of_fns):
6821 * fileio.c (syms_of_fileio):
6822 * fileio.c (syms_of_fileio):
6823 * eval.c (syms_of_eval):
6824 * doc.c (syms_of_doc):
6825 * dispnew.c (syms_of_display):
6826 * dired.c (syms_of_dired):
6827 * dbusbind.c (syms_of_dbusbind):
6828 * data.c (syms_of_data):
6829 * composite.c (syms_of_composite):
6830 * coding.c (syms_of_coding):
6831 * cmds.c (syms_of_cmds):
6832 * charset.c (define_charset_internal, syms_of_character):
6833 * ccl.c (syms_of_ccl):
6834 * category.c (syms_of_category, init_category_once):
6835 * casetab.c (syms_of_casetab):
6836 * casefiddle.c (syms_of_casefiddle):
6837 * callint.c (syms_of_callint):
6838 * bytecode.c (syms_of_bytecode):
6839 * buffer.c (keys_of_buffer, syms_of_buffer):
6840 * alloc.c (syms_of_alloc):
6841 * process.c (syms_of_process, init_process):
6842 * lread.c (syms_of_lread, init_obarray):
6843 * font.c (build_style_table):
6844 * emacs.c (syms_of_emacs, main): Replace calls to intern with
6845 intern_c_string, calls to make_pure_string with
6846 make_pure_c_string. Use pure_cons instead of Fcons.
6847
5e2327cf
DN
6848 * process.c (socket_options): Make it const.
6849 (set_socket_option, init_process): Use a const pointer.
6850
6851 * lread.c (intern_c_string): New function.
6852 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6853 (defvar_int): Uset it. Make the name const char*.
6854
6855 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
6856 (defvar_int): Update prototypes.
6857 (DEFUN, EXFUN): Support for prototypes is now required.
6858 (intern_c_string): New prototype.
6859 (struct Lisp_Subr): Make symbol_name constant.
6860
6861 * font.c (struct table_entry): Remove unused member. Make NAMES
6862 constant.
6863 (weight_table, slant_table, width_table): Make constant.
6864
6865 * emacs.c (struct standard_args): Make name and longname constant.
6866
6867 * character.h (DEFSYM): Use intern_c_string.
6868
a56eaaef
DN
68692009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
6870
6871 * alloc.c (make_pure_c_string): New function.
6872
6873 * eval.c (Fautoload): Purecopy all arguments.
6874
f6a07420
KH
68752009-11-05 Kenichi Handa <handa@m17n.org>
6876
6877 * fileio.c (Finsert_file_contents): Be sure set coding-system of
6878 the buffer in case of replace.
6879
5d28d4b1
DN
68802009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
6881
6882 * puresize.h (BASE_PURESIZE): Increase to 1620000.
6883
b349d111
SM
68842009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
6885
d528b1ce
SM
6886 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
6887 when applicable (bug#4851).
6888
b349d111
SM
6889 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
6890 (P_): Support for prototypes is now required.
6891
c38eb027
CY
68922009-10-31 Chong Yidong <cyd@stupidchicken.com>
6893
6894 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
6895 (Bug#4827).
6896
0405f8d9
EZ
68972009-10-30 Eli Zaretskii <eliz@gnu.org>
6898
d528b1ce 6899 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 6900
ca0a881a
DN
69012009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
6902
6903 * puresize.h (BASE_PURESIZE): Increase to 1470000.
6904
d528b1ce
SM
6905 * lread.c (Fload): Purecopy the file name when building
6906 Vpreloaded_file_list.
ca0a881a 6907
47e0e0e4
JR
69082009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
6909
6910 * w32fns.c (syms_of_w32fns): Change default value of
6911 w32-scroll-lock-modifier to nil. (Bug#2827)
6912
057bce6f
JB
69132009-10-26 Juanma Barranquero <lekktu@gmail.com>
6914
782a943e 6915 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 6916
242bc74c
AS
69172009-10-26 Andreas Schwab <schwab@redhat.com>
6918
6919 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
6920
522d013a
JB
69212009-10-26 Juanma Barranquero <lekktu@gmail.com>
6922
6923 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
6924 For delta < 0, skip check that only makes sense when the mini-window
6925 is going to be enlarged. (Bug#4534)
6926
18060980
CY
69272009-10-25 Chong Yidong <cyd@stupidchicken.com>
6928
6929 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
6930 string in menu maps (Bug#4471).
6931
fec8f0fe
CY
69322009-10-24 Chong Yidong <cyd@stupidchicken.com>
6933
6934 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
6935 FRAME_NS_VIEW on terminal frames (Bug#4765).
6936
10d66ec0
AS
69372009-10-24 Andreas Schwab <schwab@linux-m68k.org>
6938
1cae01f7
AS
6939 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
6940 DBUS_TYPE_UINTnn separately to get proper sign extension.
6941
58a12889
AS
6942 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
6943 can properly handle unsigned types.
d528b1ce 6944 (make_uid, make_gid): Remove.
58a12889 6945
987c9327
AS
6946 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
6947 types again.
6948
522d013a 6949 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
6950 (system_process_attributes): Likewise.
6951
905a9ed3
DN
69522009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
6953
6954 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
6955
6956 * eval.c (Fautoload): Purecopy the filename. Simplify.
6957
6958 * category.c (Fdefine_category): Purecopy docstring.
6959
a599b3e8
AS
69602009-10-23 Andreas Schwab <schwab@linux-m68k.org>
6961
7b792fc9
AS
6962 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
6963
a599b3e8
AS
6964 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
6965
b35ac83e
CY
69662009-10-23 Chong Yidong <cyd@stupidchicken.com>
6967
6968 * window.c (Fwindow_edges, Fwindow_pixel_edges)
6969 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
6970 (Bug#4775).
6971
e8903e00
SM
69722009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
6973
6974 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
6975 (init_fileio_once):
6976 * lisp.h (init_fileio_once): Remove.
6977 * emacs.c (main): Don't call init_fileio_once.
6978
8f43cbf3
DN
69792009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
6980
6981 * puresize.h (BASE_PURESIZE): Increase to 1430000.
6982
26898943
AS
69832009-10-21 Andreas Schwab <schwab@linux-m68k.org>
6984
6985 * doprnt.c (doprnt): Fix overflow check.
6986
5c646d5a
JD
69872009-10-21 Jan Djärv <jan.h.d@swipnet.se>
6988
3132a7ea
JD
6989 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
6990
5c646d5a
JD
6991 * xterm.h (x_wait_for_event): Declare it.
6992
6993 * xterm.c (pending_event_wait): New variable.
6994 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
6995 see pending_event_wait.eventtype.
6996 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
6997 (x_new_font): Call change_frame_size with new rows/columns before we
6998 try to resize the frame.
5c646d5a 6999 (x_wait_for_event): New function.
d528b1ce
SM
7000 (x_set_window_size_1): Don't change gravity unless change_gravity
7001 is set.
5c646d5a
JD
7002 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
7003 don't change frame size, instead wait for the ConfigureNotify.
7004 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
7005 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
7006 (x_initialize): Initialize pending_event_wait.
7007
7008 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
7009 size.
7010
7011 * widget.c (EmacsFrameSetValues): Add comment.
7012 (EmacsFrameSetCharSize): Just call x_set_window_size.
7013
7014 * gtkutil.c (xg_frame_set_char_size): Flush events and call
7015 x_wait_for_event.
d528b1ce 7016 (flush_and_sync): Remove again.
5c646d5a
JD
7017 (xg_get_font_name): Suggest monospace if no previous font is known.
7018
e9c1637d
SM
70192009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
7020
7021 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 7022 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 7023
5a72cccb
YM
70242009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7025
7026 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
7027 processing pending events when event is filtered for input method.
ab04798f 7028 (Bug#3681)
5a72cccb 7029
2629aa37
JB
70302009-10-20 Juanma Barranquero <lekktu@gmail.com>
7031
7032 * fns.c: Add #endif accidentally removed in previous change.
7033
c3417a74
DN
70342009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7035
7036 * fns.c: Remove code for unsupported system: MAC_OS.
7037 * image.c: Likewise. Include setjmp.h.
7038
9685cef2
JD
70392009-10-19 Jan Djärv <jan.h.d@swipnet.se>
7040
7041 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
7042 pixel -1 (bug #4742).
7043
d7306fe6
DN
70442009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
7045
019d2c4c
DN
7046 * process.c (create_pty): Remove conditionals for no longer
7047 supported systems: UNIPLUS and RTU.
7048
ee6bacd4
DN
7049 * xterm.c:
7050 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
7051
d7306fe6
DN
7052 * alloc.c: Do not define struct catchtag.
7053 * eval.c: Move struct catchtag definition ...
7054 * lisp.h: ... here.
7055
7056 * image.c: Move png.h #include earlier to avoid warnings.
7057
7058 * xterm.c:
7059 * xsmfns.c:
7060 * xselect.c:
7061 * xrdb.c:
7062 * xmenu.c:
7063 * xftfont.c:
7064 * xfont.c:
7065 * xfns.c:
7066 * xfaces.c:
7067 * xdisp.c:
7068 * window.c:
7069 * widget.c:
7070 * w32xfns.c:
7071 * w32uniscribe.c:
7072 * w32term.c:
7073 * w32select.c:
7074 * w32reg.c:
7075 * w32proc.c:
7076 * w32menu.c:
7077 * w32inevt.c:
7078 * w32heap.c:
7079 * w32font.c:
7080 * w32fns.c:
7081 * w32console.c:
7082 * w32.c:
7083 * w16select.c:
7084 * vm-limit.c:
7085 * unexsol.c:
7086 * unexec.c:
7087 * unexcw.c:
7088 * unexaix.c:
7089 * undo.c:
7090 * tparam.c:
7091 * textprop.c:
7092 * terminfo.c:
7093 * terminal.c:
7094 * termcap.c:
7095 * term.c:
7096 * syntax.c:
7097 * sound.c:
7098 * sheap.c:
7099 * search.c:
7100 * scroll.c:
7101 * region-cache.c:
7102 * regex.c:
7103 * ralloc.c:
7104 * process.c:
7105 * print.c:
b024548b
DN
7106 * nsterm.m:
7107 * nsselect.m:
7108 * nsmenu.m:
7109 * nsimage.m:
7110 * nsfont.m:
7111 * nsfns.m:
d7306fe6
DN
7112 * msdos.c:
7113 * minibuf.c:
7114 * menu.c:
7115 * marker.c:
7116 * macros.c:
7117 * keymap.c:
7118 * keyboard.c:
7119 * intervals.c:
7120 * insdel.c:
7121 * indent.c:
7122 * gtkutil.c:
7123 * ftxfont.c:
7124 * ftfont.c:
7125 * fringe.c:
7126 * frame.c:
7127 * fontset.c:
7128 * font.c:
7129 * fns.c:
7130 * floatfns.c:
7131 * filelock.c:
7132 * fileio.c:
7133 * emacs.c:
7134 * editfns.c:
7135 * dosfns.c:
7136 * doprnt.c:
7137 * doc.c:
7138 * dispnew.c:
7139 * dired.c:
7140 * dbusbind.c:
7141 * data.c:
7142 * composite.c:
7143 * coding.c:
7144 * cmds.c:
7145 * cm.c:
7146 * chartab.c:
7147 * charset.c:
7148 * character.c:
7149 * ccl.c:
7150 * category.c:
7151 * casetab.c:
7152 * casefiddle.c:
7153 * callproc.c:
7154 * callint.c:
7155 * bytecode.c:
7156 * buffer.c:
7157 * atimer.c: Include setjmp.h. (Bug#4643)
7158
fd5f21e6
SM
71592009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
7160
4c0354d7
SM
7161 Remove leftover table unibyte_to_multibyte_table.
7162 * character.c (unibyte_to_multibyte_table): Remove.
7163 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
7164 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
7165 * character.h (UNIBYTE_TO_CHAR): New macro.
7166 (MAKE_CHAR_MULTIBYTE): Use it.
7167 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
7168 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
7169 (message_dolog, set_message_1):
7170 * search.c (Freplace_match):
7171 * editfns.c (Fcompare_buffer_substrings):
7172 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
7173 (concat):
7174 * insdel.c (copy_text, count_size_as_multibyte):
7175 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
7176 * term.c (produce_glyphs):
7177 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
7178 * regex.c (RE_CHAR_TO_MULTIBYTE):
7179 * cmds.c (internal_self_insert):
7180 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
7181
fd5f21e6
SM
7182 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
7183
4418646e
DN
71842009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
7185
7186 * puresize.h (BASE_PURESIZE): Increase to 1310000.
7187
35f5c1d2
JB
71882009-10-16 Juanma Barranquero <lekktu@gmail.com>
7189
7190 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
7191
a0cd8f6b
AR
71922009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
7193
7194 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
7195 still needed under Tiger.
7196
7197 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
7198
7199 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
7200 __Apple__.
7201
7202 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
7203
01a8d3fa
KH
72042009-10-15 Kenichi Handa <handa@m17n.org>
7205
7206 * print.c (print_object): Escape a symbol like "2E10" too.
7207
bf6c75c9 72082009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
7209
7210 Cleanups and changes for 64-bit compile under Snow Leopard.
7211 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
7212
7213 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
7214
c5959062 7215 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
7216 (ns_findfonts, nsfont_list_family): Use long format in printf, and
7217 cast argument.
7218 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 7219 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
7220
7221 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
7222
7223 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
7224 where appropriate.
7225
7226 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
7227 where appropriate.
6e4780c5
JB
7228 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
7229 Use stringWithUTF8String.
bf6c75c9
AR
7230 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
7231
6e4780c5
JB
7232 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
7233 Add formal protocol mention to inheritance.
bf6c75c9
AR
7234 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
7235
6e4780c5
JB
7236 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
7237 Fix printf format.
bf6c75c9
AR
7238 (ns_query_color): Use CGFloat where appropriate.
7239 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 7240 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
7241 argument.
7242
3d87f118
AR
7243 * config.in (NS_HAVE_NSINTEGER): Drop.
7244
a95c8102
AR
7245 * dbusbind.c (dbus-method-return-internal)
7246 (dbus-method-error-internal): Use long format in printf, and cast
7247 argument.
7248
7249 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
7250 in printf, and cast argument.
7251
6873acca 7252 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
7253 cast argument.
7254
9ec6f100
GM
72552009-10-11 Glenn Morris <rgm@gnu.org>
7256
7257 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
7258
5be883cd
JD
72592009-10-08 Jan Djärv <jan.h.d@swipnet.se>
7260
7261 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
7262 menu bar with a small width so it doesn't enlarge the frame.
7263
d7a39b51
JB
72642009-10-08 Juanma Barranquero <lekktu@gmail.com>
7265
7266 * fontset.c (Fset_fontset_font): Fix typos in error messages.
7267
0c2b6f8e
GM
72682009-10-06 Glenn Morris <rgm@gnu.org>
7269
7270 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
7271 SOME_MACHINE_LISP (this enters indirectly via DOC).
7272
e02131a2
EZ
72732009-10-05 Eli Zaretskii <eliz@gnu.org>
7274
7275 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
7276
b4744254
EZ
72772009-10-04 Eli Zaretskii <eliz@gnu.org>
7278
7279 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
7280 Doc fix.
7281
dbf64827
JB
72822009-10-03 Martin Rudalics <rudalics@gmx.at>
7283
7284 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
7285
e9a0aef8
MA
72862009-10-02 Michael Albinus <michael.albinus@gmx.de>
7287
d528b1ce 7288 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
7289 used anymore outside fileio.c.
7290
7291 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
7292
64eb2b56
JB
72932009-10-01 Juanma Barranquero <lekktu@gmail.com>
7294
7295 * lisp.h (Qdelete_directory_internal):
7296 Declare, instead of Qdelete_directory.
7297
7298 * w32fns.c (Fsystem_move_file_to_trash): Use it.
7299
9d28c33e
SM
73002009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
7301
7302 * eval.c (Fcalled_interactively_p): Add `kind' argument.
7303
9d8f3bd9
MA
73042009-10-01 Michael Albinus <michael.albinus@gmx.de>
7305
9d28c33e 7306 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
7307 Fdelete_directory. It is not a command anymore. It has no file
7308 name handler.
7309
9694740b
SM
73102009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
7311
7312 * xdisp.c (get_next_display_element): Use an enum in last change.
7313
748e162f
KH
73142009-09-28 Kenichi Handa <handa@m17n.org>
7315
9694740b 7316 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
7317 unibyte_display_via_language_environment in handling
7318 Vnobreak_char_display.
7319
17efd58d
AR
73202009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7321
7322 * nsterm.h (ns_app_name): New extern variable.
7323
7324 * nsterm.m (ns_app_name): New variable.
7325 (ns_term_init): Set and use it.
7326 (ns_term_shutdown): Use it.
7327
7328 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
7329 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
7330
7331 * nsfns.m (ns_set_name_iconic, ns_set_name)
7332 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
7333 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
7334
9694740b
SM
7335 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
7336 Remove double-casting in client_data comparison.
31c2d412 7337
3208cb35
YM
73382009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7339
7340 * keyboard.c (make_lispy_event): Remember last wheel direction.
7341 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
7342
b7d552d6
GM
73432009-09-26 Glenn Morris <rgm@gnu.org>
7344
7345 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
7346 internal.elc. Add term/pc-win.elc.
7347 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
7348 term/x-win.elc.
7349 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
7350 term/w32-win.elc.
7351 (NS_SUPPORT): New.
7352 (lisp): Add NS_SUPPORT.
7353 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
7354
4ff670a8
DR
73552009-09-25 David Reitter <david.reitter@gmail.com>
7356
7357 * nsmenu.m (EmacsMenu-clear): Recognize application menu
7358 on Mac OS X 10.6+ (bug#4513).
7359
feabfb6c
JB
73602009-09-24 Juanma Barranquero <lekktu@gmail.com>
7361
7362 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
7363 some parts of Emacs code (like font selection) don't grok them.
7364 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 7365
de59072a
AS
73662009-09-24 Andreas Schwab <schwab@redhat.com>
7367
7368 * coding.c (decode_coding_iso_2022): Fix operator precedence.
7369
a489517b
JB
73702009-09-24 Juanma Barranquero <lekktu@gmail.com>
7371
7372 * dired.c (Fdirectory_files): Fix typo in docstring.
7373
0592970c
AR
73742009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7375
7376 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
7377 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
7378 (EmacsScroller-setPosition:portion:whole:): Remove -display call
7379 under GNUstep.
7380 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
7381
7382 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
7383 glyph advancement.
7384
48e8a88b
AR
73852009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
7386
7387 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 7388 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
7389
7390 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
7391 deleted (bug #4492).
7392
e14f0a78
AR
7393 * nsfont.m (Vns_reg_to_script): New lisp variable.
7394 (syms_of_nsfont): Declare it.
7395 (ns_registry_to_script): New function.
7396 (ns_get_req_script): Call it.
7397 (ns_findfonts): Don't give up on non-unicode registry.
7398
7399 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
7400
5b650faa
SM
74012009-09-20 Tom Tromey <tromey@redhat.com>
7402
7403 * eval.c (find_handler_clause): Make stack-trace-on-error work in
7404 batch mode (bug#4228).
7405
a489517b 74062009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
7407
7408 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 7409 carefully. (Bug #4339)
0bae4e09 7410
fcfe06f3
CY
74112009-09-18 Chong Yidong <cyd@stupidchicken.com>
7412
d798ba87 7413 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 7414
31642728
AR
74152009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
7416
7417 * emacs.c (inhibit_x_resources): Update doc string for NS.
7418 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 7419 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
7420
7421 * nsterm.h (ns_no_defaults): Remove.
7422
7423 * nsterm.m (ns_no_defaults): Remove.
7424 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
7425 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
7426 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
7427 don't update the NSWindow itself.
7428 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 7429 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
7430
7431 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
7432 ns_use_qd_smoothing.
7433
7434 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
7435 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 7436 (x-close-connection): Drop PSFlush() under OS X.
a489517b 7437 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 7438
8686ac71
JB
74392009-09-17 Juanma Barranquero <lekktu@gmail.com>
7440
7441 * emacs.c (inhibit_x_resources): New variable.
7442 (main) [HAVE_NS]: Don't process --quick command line option.
7443 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
7444
7445 * lisp.h (inhibit_x_resources): Declare it extern.
7446
7447 * w32reg.c (x_get_string_resource):
7448 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
7449
e227ba05
EZ
74502009-09-17 Eli Zaretskii <eliz@gnu.org>
7451
362654a6
JB
7452 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
7453 Add lisp/term/internal.elc.
e227ba05 7454
742d40e8
SM
74552009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7456
7457 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
7458 (bug#4461).
7459
005bd5a2
DN
74602009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
7461
7462 * puresize.h (BASE_PURESIZE): Increase to 1290000.
7463
7464 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
7465 (OBJECTS_MACHINE): Remove, unused.
7466
f9af9719
SM
74672009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
7468
7469 * frame.c (x_get_resource_string): Remove unused.
7470
0307c7d2
JD
74712009-09-15 Jan Djärv <jan.h.d@swipnet.se>
7472
7473 * xterm.c (x_new_font): Call change_frame_size before calling
7474 x_set_window_size, in case frame size won't change.
7475
7476 * frame.c (x_set_font): Remove dead code.
7477
428b13d6
SM
74782009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
7479
7480 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
7481
5766c380
SM
74822009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7483
7484 * lread.c (Fload): Don't output a message after loading an obsolete
7485 package any more (done in Lisp now).
7486
2fd0161b
CY
74872009-09-12 Chong Yidong <cyd@stupidchicken.com>
7488
7489 * fns.c (syms_of_fns): Doc fix (Bug#4227).
7490
bc5e75b6
SM
74912009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7492
7493 * keymap.c (Fwhere_is_internal): Use nconc2.
7494
c31c985e
AM
74952009-09-11 Alan Mackenzie <acm@muc.de>
7496
7497 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
7498 batch mode.
7499
78012bd2
AS
75002009-09-11 Andreas Schwab <schwab@linux-m68k.org>
7501
7502 * xdisp.c (display_mode_element): Detect cycles.
7503
9d889332
SM
75042009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7505
7506 * keymap.c (where_is_internal): Don't erroneously return nil right after
7507 filling the cache.
7508 (where_is_internal_1): Fix up typo.
7509
7ab5d780
GM
75102009-09-11 Glenn Morris <rgm@gnu.org>
7511
7512 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
7513 share a common doc-string.
7514
5238a749
SM
75152009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
7516
66d77eda
SM
7517 * keymap.c (get_keymap): Return the actual keymap symbol rather than
7518 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
7519
5238a749
SM
7520 * keymap.c (QCadvertised_binding): New constant.
7521 (syms_of_keymap): Initialize it.
7522 (Fwhere_is_internal): Try and use bindings from :advertised-binding
7523 if applicable.
7524
19f48442
SM
75252009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
7526
50d4ba39
SM
7527 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
7528 (parse_menu_item): Streamline since bindings are recomputed all the
7529 time anyway. Don't bother checking Vdefine_key_rebound_commands any
7530 more and don't support lmenu's menu-alias any more either.
7531
a88a5372
SM
7532 * keymap.c (where_is_internal_data): Make noindirect a boolean.
7533 (where_is_internal): Strip it down to only traverse the keymaps.
7534 Move the cache handling from Fwhere_is_internal to here.
7535 (Fwhere_is_internal): Move the handling of remapping and the choice of
7536 the best binding from where_is_internal to here.
7537 Unify the cached/noncached paths, so remapping is also handled
7538 correctly when the cache is used, and so the cache can be used to
7539 speed up remap-handling when applicable.
7540 Give preference to non-remapped bindings.
7541 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
7542 non-remapped bindings.
7543 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
7544 command remapping.
7545
19f48442
SM
7546 * xdisp.c (display_mode_element): Move list length limit from 50 to
7547 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
7548
599498c3 75492009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
7550
7551 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
7552
f9b7b5ac
SM
75532009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
7554
a53af587
JB
7555 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
7556 (Bug#4334)
7557
f9b7b5ac
SM
7558 * keymap.c (where_is_internal): Filter out shadowed remappings.
7559 Assume that where_is_internal returns unshadowed bindings to simplify
7560 the code and get rid of the gotos. Use ASIZE.
7561
04f4b72d
JD
75622009-09-04 Jan Djärv <jan.h.d@swipnet.se>
7563
4da146f2
JD
7564 * xterm.c (x_focus_changed): If we get a focusout and pointer
7565 is invisible, make it visible.
7566
04f4b72d
JD
7567 * xterm.h: Remove condition for declaration of
7568 x_*_window_to_frame.
7569
7cef7ce3
SM
75702009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
7571
7572 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
7573 initial terminal as well.
7574
a54fa5b7
JD
75752009-09-02 Jan Djärv <jan.h.d@swipnet.se>
7576
7577 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 7578 x_menubar_window_to_frame.
a54fa5b7 7579
50426a04 7580 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
7581 (XTmouse_position): Do not return valid positions
7582 for clicks in the menubar and the toolbar for Gtk+.
7583
7584 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
7585 if the widget for the event has the same top level as a frame,
7586 return the frame.
7587 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
7588 internal windows, bug #4122.
7589 (x_non_menubar_window_to_frame): Remove.
7590
5a021dd0
GM
75912009-09-02 Glenn Morris <rgm@gnu.org>
7592
7593 * buffer.c (default-major-mode): Move most of the doc from here...
7594 (major-mode): ... to here.
7595
548fe2f3
NR
75962009-08-30 Nick Roberts <nickrob@snap.net.nz>
7597
7598 * process.c (wait_reading_process_output): Keep the descriptor
7599 when pty is used by a non-child process, e.g., in I/O buffer of
7600 GDB this allows inferior to be restarted.
7601
e0840eef
EZ
76022009-08-29 Eli Zaretskii <eliz@gnu.org>
7603
7604 * xdisp.c (redisplay_internal): Remove redundant test and collapse
7605 both branches into one.
7606
82e98df4
SM
76072009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
7608
7609 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
7610 (main): Use enable-multibyte-characters rather than
7611 default-enable-multibyte-characters. Output a warning message when
7612 running a unibyte session.
7613
890617cb
YM
76142009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7615
7616 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
7617 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
7618 (copy_data_segment): Also copy __program_vars section.
7619 (copy_dyld_info) [LC_DYLD_INFO]: New function.
7620 (dump_it) [LC_DYLD_INFO]: Use it.
7621
7622 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
7623
e7adeadc
EZ
76242009-08-28 Eli Zaretskii <eliz@gnu.org>
7625
7626 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
7627 $(SRC)/buildobj.h.
7628 (buildobj.h): Renamed from $(SRC)/buildobj.h.
7629 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
7630 $(SRC)/buildobj.h.
7631 (clean): Add buildobj.h.
7632
3ed8bbdc
TZ
76332009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
7634
7635 * print.c (print_object): Set escapeflag to 1 when printing
7636 hashtable keys and values.
7637
155a6764
SM
76382009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
7639
7640 * lread.c (read_integer): Use doubles (and potentially return a float
7641 number) as we do in string-to-number.
7642 (read1): Use strtol to read integers, signal errors on strtol's
7643 overflow and use floats if strtol's output is too large for
7644 Elisp integers.
7645
877610de
EZ
76462009-08-27 Eli Zaretskii <eliz@gnu.org>
7647
7648 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
7649 (make-buildobj-SH): Fix last change.
7650 (SRC): Move to before where it's first used.
7651
ef73e7be
KH
76522009-08-27 Kenichi Handa <handa@m17n.org>
7653
550c8289
KH
7654 * process.c (send_process): Use encode_coding_object instead of
7655 encode_coding_string to perform eol-conversion even if the string
7656 is unibyte.
7657
60afa08d
KH
7658 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
7659 character.
7660
ef73e7be 7661 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 7662 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 7663
7b3a82d7
DN
76642009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
7665
5654bf63
DN
7666 * callproc.c (Fcall_process): Remove always true #if.
7667
7b3a82d7
DN
7668 * lisp.h: Replace #if 0 code for checking with text pointing to
7669 the --enable-checking configure flag.
7670
7671 * emacs.c (main): Mention the --enable-profiling configure flag
7672 instead of using CFLAGS.
7673
878bde49
KR
76742009-08-26 Ken Raeburn <raeburn@raeburn.org>
7675
7676 * Makefile.in (buildobj.h): New target.
7677 (doc.o): Depend on it.
7678 (temacs${EXEEXT}): Don't generate buildobj.lst.
7679 (mostlyclean): Delete buildobj.h, not buildobj.lst.
7680 * makefile.w32-in ($(SRC)/buildobj.h): New target.
7681 ($(BLD)/doc.$(O)): Depend on it.
7682 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
7683 provided by Eli Zaretskii.)
7684 ($(TEMACS)): Don't generate buildobj.lst.
7685 * doc.c: Include buildobj.h.
7686 (buildobj): New static variable.
7687 (Fsnarf_documentation): Use it, instead of opening and reading
7688 buildobj.lst.
7689
1574224c
MA
76902009-08-25 Michael Albinus <michael.albinus@gmx.de>
7691
7692 * dbusbind.c (Fdbus_call_method)
7693 (Fdbus_call_method_asynchronously): Use English numeric format for
7694 timeout values in doc string.
7695
d9da2f45
KH
76962009-08-25 Kenichi Handa <handa@m17n.org>
7697
ef73e7be
KH
7698 * alloc.c (mark_char_table): New function.
7699 (mark_object): Use mark_char_table for a char-table.
7700
d9da2f45
KH
7701 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
7702 (CHAR_TABLE_REF): Use it.
7703
c8edcc01
KR
77042009-08-23 Ken Raeburn <raeburn@raeburn.org>
7705
7706 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
7707 before invoking the newly build emacs to check for load-path
7708 shadowing.
7709
7763401b
GM
77102009-08-22 Glenn Morris <rgm@gnu.org>
7711
7712 * Makefile.in (bootstrap_exe): New variable.
7713 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
7714 Use ${bootstrap_exe}.
7715
729eadda
EZ
77162009-08-22 Eli Zaretskii <eliz@gnu.org>
7717
7718 * coding.h (encode_coding_string): Don't encode unibyte strings.
7719 (Bug#4047)
7720
eb4c6ace
MA
77212009-08-22 Michael Albinus <michael.albinus@gmx.de>
7722
7723 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
7724
7725 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
7726 intended as hotfix only.
7727 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
7728
36e34d1b
AR
77292009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
7730
7731 * nsterm.m (ns_get_color): Update documentation properly for last
7732 change, and clean up loose ends in the code left by it. Fix
7733 longstanding bug with 16-bit hex parsing, and add support for
7734 yet another X11 format (rgb:r/g/b) for compatibility.
7735 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
7736 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
7737
f983eb8a
SM
77382009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
7739
7740 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
7741
3f56d3c6
MA
77422009-08-20 Michael Albinus <michael.albinus@gmx.de>
7743
7744 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
7745 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
7746 (xd_initialize, xd_pending_messages): Check, whether
7747 $DBUS_SESSION_BUS_ADDRESS is set.
7748
fb641d68
YM
77492009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7750
7751 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
7752
7753 * nsterm.m (ns_get_color): Remove incompatible color formats again.
7754
cf59a374
GM
77552009-08-20 Glenn Morris <rgm@gnu.org>
7756
7757 * emacs.c (system-type): Doc fix.
7758
1373f3be
SM
77592009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
7760
7761 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
7762 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
7763
058ed861
MA
77642009-08-18 Michael Albinus <michael.albinus@gmx.de>
7765
1373f3be
SM
7766 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
7767 New functions.
058ed861
MA
7768 (xd_initialize): Revert change from 2009-08-16.
7769
563a866e 77702009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
7771
7772 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 7773 font-group vector, return nil.
5fc05db0 7774
e42bdf01
CY
77752009-08-17 Chong Yidong <cyd@stupidchicken.com>
7776
7777 * process.c (status_notify): Don't perform redisplay.
7778 (Fdelete_process, list_processes_1, process_send_signal):
7779 Expliticly perform redisplay.
7780 (wait_reading_process_output): Always check process status, but
7781 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
7782
4230ab74
KR
77832009-08-17 Ken Raeburn <raeburn@raeburn.org>
7784
1373f3be 7785 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
7786 (XFLOAT_INIT): New macro for storing a float value.
7787 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
7788 * fns.c (sxhash): Copy out the value of a float in order to
7789 examine its bytes.
7790 * dbusbind.c (xd_append_arg): Likewise.
7791
4230ab74
KR
7792 * emacs.c (main): Don't call syms_of_data twice.
7793
a0645cdd
MA
77942009-08-16 Michael Albinus <michael.albinus@gmx.de>
7795
7796 * dbusbind.c (xd_initialize): Add connection file descriptor to
7797 input_wait_mask, in order to let select() detect, whether a new
7798 message has been arrived.
ca4f31ea 7799 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 7800
485db0ba
MA
78012009-08-15 Michael Albinus <michael.albinus@gmx.de>
7802
1373f3be
SM
7803 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
7804 New functions.
485db0ba
MA
7805
7806 * lisp.h (xd_pending_messages): Declare.
7807
7808 * keyboard.c (readable_events): Call xd_pending_messages.
7809
b5b98ff4
CY
78102009-08-15 Chong Yidong <cyd@stupidchicken.com>
7811
1373f3be 7812 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 7813
f8354c6e
CY
7814 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
7815
b5b98ff4
CY
7816 * buffer.c (set_buffer_internal_1)
7817 (swap_out_buffer_local_variables): Check for unbound local
7818 variables (Bug#4138).
7819
8b9fc636
EZ
78202009-08-14 Eli Zaretskii <eliz@gnu.org>
7821
7822 * process.c (create_pty): Fix last change.
7823
ce959360
CY
78242009-08-13 Chong Yidong <cyd@stupidchicken.com>
7825
7826 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
7827 (xbm_load_image): Caller changed.
64b807c9 7828 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 7829
c7baf7e9
NR
78302009-08-13 Nick Roberts <nickrob@snap.net.nz>
7831
7832 * process.c (create_pty): New function.
7833 (Fstart_process): Use it to allow Emacs to just associate a pty
7834 with the buffer. See associated change in gdb-mi.el.
7835 (list_processes_1): Deal with no program name.
7836 (start_process_unwind): Use pid == -2 to mean no process.
7837
1ac9108a
SM
78382009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
7839
7840 * cmds.c (nonundocount): New global variable.
7841 (keys_of_cmds): Initialize it.
7842 (Fself_insert_command): Use it to combine upto 20 sequential chars
7843 into a single undo entry, just like the Qself_insert_command code in
7844 keyboard.c does.
7845 Call frame_make_pointer_invisible, also like the Qself_insert_command
7846 code in keyboard.c does.
7847 * keyboard.c (command_loop_1): Use the new global nonundocount rather
7848 than its own local replacement for it.
7849
e267324c
KR
78502009-08-10 Ken Raeburn <raeburn@raeburn.org>
7851
1ac9108a 7852 * fns.c (concat): Don't re-set string length to its current value.
77437343 7853
1ac9108a
SM
7854 * coding.h (decode_coding_string, encode_coding_string):
7855 Use SBYTES macro.
f0bed503 7856
1ac9108a 7857 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
7858 (doprnt): Merge with doprnt1, discarding lispstrings code.
7859 * lisp.h (doprnt_lisp): Don't declare.
7860
416e006d
JL
78612009-08-07 Juri Linkov <juri@jurta.org>
7862
7863 * puresize.h (BASE_PURESIZE): Increase to 1270000.
7864
6f7d5780
DN
78652009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7866
7867 * print.c (syms_of_print): Undo previous change.
7868
f19a0f5b
TZ
78692009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
7870
7871 * lread.c (read1, syms_of_lread): Read hashtables back from the
7872 readable format.
7873
7874 * print.c (print_preprocess, print_object): Print hashtables fully
7875 and readably.
7876 (syms_of_print): Provide 'hashtable-print-readable.
7877
b9173dc2
AR
78782009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
7879
7880 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
7881 no family set.
7882 (nsfont_open): Handle case when entity has no family.
7883
1586503c
AR
78842009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7885
7886 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
7887 element, not a list, for match case.
7888
087048cd
KH
78892009-07-28 Kenichi Handa <handa@m17n.org>
7890
7891 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
7892 rigidly.
7893
7894 * xfont.c (xfont_list_pattern): Don't ignore the return value of
7895 font_parse_xlfd. Check font properties more rigidly.
7896
780c2506
DN
78972009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
7898
31fd7c5c
JB
7899 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
7900 bsd-common.h.
780c2506 7901
a8c0cc18
KH
79022009-07-27 Kenichi Handa <handa@m17n.org>
7903
7904 * xfaces.c (face_with_height): Call font_clear_prop.
7905
4fbe2306
CY
79062009-07-26 Chong Yidong <cyd@stupidchicken.com>
7907
111d9af3
CY
7908 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
7909
7910 * xterm.c (x_term_init): Use Qx.
7911
4fbe2306
CY
7912 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
7913
1ac9108a 7914 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
7915 (ns_get_color): Revert 2009-07-16 change.
7916
beb0b7f9
EZ
79172009-07-25 Eli Zaretskii <eliz@gnu.org>
7918
7919 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 7920 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 7921
2baf5e76
KR
79222009-07-25 Ken Raeburn <raeburn@raeburn.org>
7923
1ac9108a
SM
7924 * coding.h (decode_coding_string, encode_coding_string):
7925 Use SCHARS macro.
8890e5f5 7926
2baf5e76 7927 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 7928 (load_depth): Delete.
2baf5e76
KR
7929 (Qload_in_progress): New variable.
7930 (load_unwind): Don't reference load_depth or load_in_progress.
7931 (Fload): Likewise; specbind Qload_in_progress instead.
7932 (init_lread): Don't initialize load_depth.
7933 (syms_of_lread): Initialize and protect Qload_in_progress.
7934
1395c6f5
AR
79352009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
7936
7937 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
7938
4e2f36cf
AR
79392009-07-23 Yavor Doganov <yavor@gnu.org>
7940
7941 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
7942
5dd9a6f7
AR
79432009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
7944
7945 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
7946 Bugs 3792, 3720, 2402.
7947 (ns_lookup_indexed_color): Check for bad index.
7948 (ns_index_color): Init unused slot to 0.
7949 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
7950 Bug 3714, possibly 3082.
5dd9a6f7 7951
c902b920
JR
79522009-07-22 Jason Rumney <jasonr@gnu.org>
7953
1ac9108a
SM
7954 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
7955 Position IME window at cursor (Bug#2570).
c902b920
JR
7956 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
7957 (globals_of_w32fns): Dynamically load functions required above.
7958
7959 * w32term.c (w32_draw_window_cursor): Send message to reposition
7960 any IME window.
7961
090101cf
CY
79622009-07-21 Chong Yidong <cyd@stupidchicken.com>
7963
7964 * fileio.c: Revert 2009-07-16 changes.
7965 (Vauto_save_include_big_deletions): New variable.
7966 (Fdo_auto_save): Disable auto-save only if
7967 auto-save-include-big-deletions is nil.
7968
e6583e3d
CY
79692009-07-21 Chong Yidong <cyd@stupidchicken.com>
7970
7971 * xdisp.c (move_it_to): For continued lines ending in a tab, take
7972 the overflowed pixels into account (Bug#3879).
7973
ece435a5
KR
79742009-07-21 Ken Raeburn <raeburn@raeburn.org>
7975
7976 * lread.c (load_depth): New variable.
7977 (Fload, load_unwind, init_lread): Set it to the load recursion
7978 depth; set load_in_progress as a simple boolean based on the
7979 current load_depth. (Bug#3892)
7980
40b2d973
AR
79812009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7982
7983 * nsfont.m (ns_has_attribute): Remove.
7984 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
7985
10be7e0d
JL
79862009-07-18 Juri Linkov <juri@jurta.org>
7987
7988 * process.c (Fset_process_query_on_exit_flag): Mention killing
7989 a buffer in docstring.
7990
fa055055
KH
79912009-07-17 Kenichi Handa <handa@m17n.org>
7992
7993 * casetab.c (shuffle): Fix the logic of setting up the cycle.
7994
042f7b69
YM
79952009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7996
7997 * nsfns.m (Fns_set_alpha): Remove function.
7998 (syms_of_nsfns): Don't defsubr it.
7999
8000 * nsterm.m (ns_get_color): Remove incompatible color formats.
8001 (ns_color_to_lisp): Generate #rrggbb color format string.
8002
4be941e3
RS
80032009-07-16 Richard Stallman <rms@gnu.org>
8004
8005 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
8006 (Fset_buffer_auto_saved): Handle save_length = -2.
8007
4e6b227d
CY
80082009-07-16 Chong Yidong <cyd@stupidchicken.com>
8009
8010 * xterm.c (Qx_gtk_map_stock): New var.
8011
8012 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
8013 of calling intern each time.
8014
a1856973
YM
80152009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8016
8017 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
8018 does tiling.
8019
8020 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
8021
497e54d8
KH
80222009-07-14 Kenichi Handa <handa@m17n.org>
8023
72d36834
KH
8024 * font.c (font_vconcat_entity_vectors): New function.
8025 (struct font_sort_data): New member font_driver_preference.
8026 (font_compare): Check font_driver_preference.
8027 (font_sort_entities): The format of the first argument changed.
8028 (font_delete_unmatched): Likewise.
8029 (font_list_entities): The return type changed.
8030 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
8031 (font_find_for_lface): Adjuste for the above changes.
8032 Don't suppress the checking of C even if the repertory supports it.
8033 (Flist_fonts): Adjust for the above changes.
72d36834 8034
1ac9108a
SM
8035 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
8036 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
8037 Reject a font who has adstyle property that is different from a
8038 langname derived from registry property.
1ac9108a 8039 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 8040
b6046155
EZ
80412009-07-13 Eli Zaretskii <eliz@gnu.org>
8042
8043 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
8044 local copy of dirfilename.
8045
fb6b6049
KH
80462009-07-13 Kenichi Handa <handa@m17n.org>
8047
e2402a5e
KH
8048 * chartab.c (sub_char_table_ref_and_range): Fix the range check
8049 against max_char.
8050
fb6b6049
KH
8051 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
8052 calling XSYMBOL (sym).
8053
65156807
EZ
80542009-07-11 Eli Zaretskii <eliz@gnu.org>
8055
1ac9108a
SM
8056 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
8057 New function.
8058 (directory_files_internal) [WINDOWSNT]:
8059 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
8060 the filesystem of the directory is fast or slow.
8061
8062 * w32.c (logon_network_drive): Don't assume PATH is an absolute
8063 file name.
8064 (is_slow_fs): New function.
8065 (stat): Use it to determine whether to issue more system calls to
8066 get accurate file attributes, when w32-get-true-file-attributes is
8067 `local'.
8068
e0ab5fcf
JD
80692009-07-10 Jan Djärv <jan.h.d@swipnet.se>
8070
8071 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 8072 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
8073 parameter font-parameter as default to the font dialog.
8074
784ceded
KH
80752009-07-10 Kenichi Handa <handa@m17n.org>
8076
8077 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
8078
fb8edc0b
EZ
80792009-07-09 Eli Zaretskii <eliz@gnu.org>
8080
1ac9108a 8081 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 8082
fb8edc0b
EZ
8083 * w32.c (stat): Treat UNC file names as residing on remote
8084 drives. (Bug#3542)
8085
635c75b1
KH
80862009-07-09 Kenichi Handa <handa@m17n.org>
8087
8088 * fontset.c (fontset_find_font): Fix previous change.
8089
c1d5ce94
MA
80902009-07-08 Michael Albinus <michael.albinus@gmx.de>
8091
8092 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
8093 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
8094 error flag.
8095
edb61b39
KH
80962009-07-08 Kenichi Handa <handa@m17n.org>
8097
374bf7e4
KH
8098 * fontset.c (fontset_find_font): Fix the logic of handling
8099 charset_matched.
8100 (font_for_char): Delete unused var.
8101 (generate_ascii_font_name): Delete it.
8102
edb61b39
KH
8103 * coding.h (JIS_TO_SJIS2): Fix the code range check.
8104
8105 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
8106 (encode_coding_sjis): Fix the code range check.
8107
0f3f018c
CY
81082009-07-07 Chong Yidong <cyd@stupidchicken.com>
8109
8110 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
8111 (Fexpand_file_name): Copy string data properly (Bug#3772).
8112
fcaf6f3a
JD
81132009-07-07 Jan Djärv <jan.h.d@swipnet.se>
8114
8115 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
8116 first MapNotify.
8117
6809ca75
KH
81182009-07-07 Kenichi Handa <handa@m17n.org>
8119
8120 * character.h (unibyte_has_multibyte_table): Delete extern.
8121 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
8122
8123 * charset.c (Fset_charset_priority): Update charset_unibyte.
8124 (syms_of_charset): Initialize charset_unibyte.
8125
8126 * character.c (unibyte_has_multibyte_table): Delete it.
8127 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
8128 charset_unibyte.
8129 (multibyte_char_to_unibyte_safe): Likewise.
8130 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
8131
1ac9108a 8132 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
8133 (x_produce_glyphs): Likewise.
8134
8135 * .gdbinit (xcharset): Fix the treating $arg0.
8136
ad9e2d54
EZ
81372009-07-04 Eli Zaretskii <eliz@gnu.org>
8138
8139 Emulation of `getloadavg' on MS-Windows.
50426a04 8140 * w32.c: Include float.h.
ad9e2d54
EZ
8141 (g_b_init_get_native_system_info, g_b_init_get_system_times)
8142 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
8143 (get_native_system_info, get_system_times): New functions.
8144 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
8145 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
8146 (globals_of_w32): Initialize g_b_init_get_native_system_info,
8147 g_b_init_get_system_times, and num_of_processors.
8148
0a3472c7
JR
81492009-07-03 Jason Rumney <jasonr@gnu.org>
8150
8151 * w32term.c (w32_initialize): Use standard types.
8152
80904120
EZ
81532009-07-03 Eli Zaretskii <eliz@gnu.org>
8154
8155 * dired.c (Ffile_attributes): Decode user and group names by the
8156 locale's encoding. (Bug#3443)
8157
6978862d
DN
81582009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
8159
f8d23104
DN
8160 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
8161 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
8162
8163 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
8164
8165 * term.c (init_tty): Remove spurious #ifdef.
8166
6978862d
DN
8167 * m/mips.h: Mention this file is also used for netbsd.
8168 * m/pmax.h: Remove file.
8169
e044e4fc
JD
81702009-07-03 Jan Djärv <jan.h.d@swipnet.se>
8171
8172 * xterm.h (struct x_display_info): Add invisible_cursor.
8173 (struct x_output): Add current_cursor.
8174
8175 * xterm.c (XTtoggle_invisible_pointer): New function.
8176 (x_define_frame_cursor): Don't define cursor if invisible or the
8177 same as before. Set current_cursor.
8178 (x_create_terminal): Set toggle_invisible_pointer_hook.
8179
8180 * xfns.c (make_invisible_cursor): New function.
8181 (x_set_mouse_color): Call make_invisible_cursor.
8182 Set current_cursor.
8183 (x_window): Set current_cursor.
8184
8185 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
8186
8187 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
8188 inserting a character.
8189 (read_avail_input): Call frame_make_pointer_visible.
8190
8191 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
8192 (frame_make_pointer_invisible, frame_make_pointer_visible):
8193 New functions.
e044e4fc
JD
8194 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
8195
8196 * frame.h: Declare frame_make_pointer_invisible and
8197 frame_make_pointer_visible.
8198 (struct frame): Add pointer_invisible.
8199
574c8efa
JD
82002009-07-02 Jan Djärv <jan.h.d@swipnet.se>
8201
7b507248
JD
8202 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
8203 frame isn't visible.
8204 (xg_frame_resized): If width/height is -1, get size of window
8205 from X server.
8206
8207 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
8208 for MapNotify.
8209
835bdaa7 8210 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 8211 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 8212 (flush_and_sync): Reintroduce.
574c8efa 8213
3f1c6666 82142009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 8215
31fd7c5c 8216 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
8217
8218 * xterm.c (x_handle_net_wm_state): Also look for sticky.
8219 (x_term_init): Initialize Xatom_net_wm_state_sticky.
8220
8221 * frame.h: Declare Qsticky.
8222
cad9ef74
JD
8223 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
8224
8225 * nsfns.m (ns_frame_parm_handlers): Ditto.
8226
8227 * frame.c: Declare Qsticky.
8228 (frame_parms): Add sticky.
8229
8230 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
8231
8232 * xterm.h: Declare x_set_sticky.
8233
8234 * xterm.c (x_set_sticky): New function.
8235
69b16610
JD
8236 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
8237 (xg_tool_bar_menu_proxy): Attach enter/leave events to
8238 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
8239
8240 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
8241
8242 * frame.c: Qmaximized is new.
8243 (x_set_frame_parameters): Do not handle fullscreen specially.
8244 Only set width and height if explicitly set.
8245 (x_set_fullscreen): Handle Qmaximized.
8246 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
8247 (syms_of_frame): Initialize Qmaximized.
8248
1ac9108a
SM
8249 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
8250 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
8251
8252 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
8253 for Expose event. Add call to x_check_fullscreen for MapNotify event.
8254 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
8255 set gravity to NorthWestGravity when USE_GTK.
8256 (set_wm_state): New function.
31fd7c5c 8257 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
8258 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
8259 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 8260 or the case when no window manager is running. That means remove calls
3f1c6666
JD
8261 to x_real_positions and x_fullscreen_adjust.
8262
8263 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
8264 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
8265 flush_and_sync.
8266 (xg_height_changed): New function.
8267 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
8268 and gtk_window_set_policy. Set frame gravity after parsing the
8269 geometry string.
3f1c6666
JD
8270 (xg_update_frame_menubar, free_frame_menubar)
8271 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
8272 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
8273 Remove calls to xg_frame_set_char_size.
8274
fd503d99
KH
82752009-07-01 Kenichi Handa <handa@m17n.org>
8276
8277 * keyboard.c (decode_keyboard_code): New function.
8278 (tty_read_avail_input): Decode the input bytes if necessary.
8279
1ac9108a
SM
8280 * coding.c (setup_coding_system):
8281 Initialize coding->carryover_bytes to 0.
fd503d99
KH
8282 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
8283 use Qno_conversion.
8284
24ed93fb
YM
82852009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8286
8287 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
8288
99061dfc
CY
82892009-06-30 Chong Yidong <cyd@stupidchicken.com>
8290
1ac9108a 8291 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 8292
ff90fbde
JR
82932009-06-30 Jason Rumney <jasonr@gnu.org>
8294
8295 * w32term.c (w32_initialize): Use GetModuleHandle for library that
8296 is already loaded.
8297 Set user model ID if supported (bug#1849).
8298
5f445726
JM
82992009-06-29 Jim Meyering <meyering@redhat.com>
8300
8301 Remove useless if-before-xfree test.
8302 * nsfont.m (nsfont_close): Remove useless test.
8303 * term.c (delete_tty): Likewise.
8304 * w32.c (system_process_attributes): Likewise.
8305 * w32font.c (w32font_close): Likewise.
8306 * xfaces.c (x_free_gc): Likewise.
8307 * xselect.c (buffer): Likewise.
8308
b9607587
AS
83092009-06-28 Andreas Schwab <schwab@linux-m68k.org>
8310
8311 * process.c (send_process): Keep decoded string in a local
8312 variable and protect it from GC. (Bug#3521)
8313
89ba96f4
EZ
83142009-06-28 Eli Zaretskii <eliz@gnu.org>
8315
8316 * term.c (create_tty_output) [MSDOS]: #ifdef away.
8317 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
8318
098a1589
CY
83192009-06-28 Chong Yidong <cyd@stupidchicken.com>
8320
485422be
CY
8321 * xdisp.c (start_display, handle_face_prop)
8322 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
8323 (redisplay_window, try_window_id, produce_image_glyph):
8324 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 8325
098a1589
CY
8326 * xterm.c (x_update_window_begin, x_new_focus_frame)
8327 (x_scroll_bar_handle_click, handle_one_xevent)
8328 (handle_one_xevent, XTread_socket, x_focus_on_frame)
8329 (x_make_frame_visible, x_make_frame_invisible)
8330 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
8331 code chunks that are now obsolete.
8332
78c38319
MA
83332009-06-28 Michael Albinus <michael.albinus@gmx.de>
8334
8335 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
8336 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
8337 for hours, when optimzation is enabled.
8338 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
8339 (xd_read_message): Make them static.
8340
4189ed40
CY
83412009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
8342
8343 * term.c (turn_on_face): Allow simultaneously bold and dim
8344 terminal faces (Bug#3530).
8345
cd9b5e16
CY
83462009-06-27 Chong Yidong <cyd@stupidchicken.com>
8347
4e23bedb
CY
8348 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
8349
cd9b5e16
CY
8350 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
8351 truncation glyphs (Bug#3686).
8352
07cc3c35
GM
83532009-06-27 Glenn Morris <rgm@gnu.org>
8354
8355 * m/pmax.h: Restore file, with only netbsd portions.
8356
31fd7c5c 83572009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 8358
cd9b5e16 8359 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 8360
42d4a64f
KH
83612009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
8362
8363 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
8364 the arg FORCE_SYMBOL.
8365
930fe55b 83662009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
8367
8368 * fontset.c (fontset_find_font): When a usable rfont_def is found
8369 in a fallback font-group, make it the first element of the group.
8370
57ebc3fd
CY
83712009-06-24 Chong Yidong <cyd@stupidchicken.com>
8372
8373 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
8374
f084f942
KH
83752009-06-24 Kenichi Handa <handa@m17n.org>
8376
8377 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
8378 set for C.
8379 (fontset_font): Record the availability of a font for C both in
8380 the realized fontsets of the current one and the default one.
8381
2f686c87
DN
83822009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
8383
8384 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
8385 conditional, it is always defined on AIX.
8386
666e158e
MB
83872009-06-23 Miles Bader <miles@gnu.org>
8388
8389 * window.c (Vrecenter_redisplay): New variable.
8390 (syms_of_window): Initialize it.
8391 (Qtty): New extern declaration.
8392 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
8393
c6da7cd2
JM
83942009-06-23 Jim Meyering <meyering@redhat.com>
8395
1ac9108a
SM
8396 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
8397 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 8398 pointer dereferences are guaranteed to be valid.
c6da7cd2 8399
678dca3d
KH
84002009-06-23 Kenichi Handa <handa@m17n.org>
8401
74d75424
KH
8402 * emacs.c (main): Call init_font ().
8403
8404 * font.h (Vfont_log): Extern it.
8405 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
8406
8407 * font.c (font_sort_entities, font_list_entities)
8408 (font_matching_entity, font_open_entity)
8409 (font_close_object): Change font_add_log to FONT_ADD_LOG.
8410 (Vfont_log): Delete static.
8411 (font_log_env_checked): Delete this variable.
8412 (font_add_log): Don't check font_log_env_checked.
8413 (font_deferred_log): Check Vfont_log.
8414 (init_font): New function.
8415
678dca3d
KH
8416 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
8417
8418 * w32font.c: Change font_add_log to FONT_ADD_LOG.
8419
8420 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
8421
8422 * xfont.c: Change font_add_log to FONT_ADD_LOG.
8423
8424 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
8425 (face_for_char): Don't call font_deferred_log here.
8426 (font_for_char): Likewise.
8427
8a668709
CY
84282009-06-22 Chong Yidong <cyd@stupidchicken.com>
8429
9a01ee33
CY
8430 * w32term.c (x_draw_glyph_string): Use the glyph string's width
8431 rather than its background_width for drawing the overline and
8432 underline (Bug#489).
8433
8434 * xterm.c (x_draw_glyph_string): Use the glyph string's width
8435 rather than its background_width for drawing the overline and
8436 underline (Bug#489).
ec7c9926
CY
8437 (xg_default_icon_file): New variable.
8438 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
8439 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 8440
8a668709
CY
8441 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
8442 (load_overlay_strings): Remove externs.
8443 (fast_find_position): Function deleted.
8444 (mouse_face_from_buffer_pos): New function, based on
8445 fast_find_position. Correctly handle before-strings,
8446 display-strings, and after-strings (Bug#1220).
8447 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
8448
4d4c02d8
CY
84492009-06-21 Chong Yidong <cyd@stupidchicken.com>
8450
1ac9108a 8451 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
8452 (move_it_in_display_line_to, move_it_in_display_line_to)
8453 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
8454
70243478
CY
84552009-06-21 Chong Yidong <cyd@stupidchicken.com>
8456
8457 * Branch for 23.1.
8458
13087e59
JR
84592009-06-21 Jason Rumney <jasonr@gnu.org>
8460
8461 * w32term.c (keyboard_codepage): New static variable.
8462 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
8463 (w32_read_socket) [WM_CHAR]: Use it to decode character
8464 input (bug#3237).
8465 (w32_initialize): Initialize it.
8466 (codepage_for_locale): New function.
8467
4735b74e
KR
84682009-06-20 Ken Raeburn <raeburn@raeburn.org>
8469
8470 * process.c (status_message): Pass Faset index argument as a lisp
8471 object, so as to work with USE_LISP_UNION_TYPE.
8472
0e727afa
YM
84732009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8474
8475 * coding.c (Ffind_coding_systems_region_internal):
8476 Cache checked characters.
8477
cf299835
KH
84782009-06-18 Kenichi Handa <handa@m17n.org>
8479
1ac9108a 8480 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 8481
90f20d94
AS
84822009-06-18 Andreas Schwab <aschwab@redhat.com>
8483
8484 * xdisp.c (redisplay_internal): Check that the frame is still
8485 live after redisplay of its windows.
8486 (redisplay_windows): Check that the window is still live.
8487
7f1faf1c
KH
84882009-06-17 Andreas Schwab <schwab@linux-m68k.org>
8489
8490 * coding.c (detect_coding_utf_16): Fix previous change.
8491
cc13543e
KH
84922009-06-16 Kenichi Handa <handa@m17n.org>
8493
8494 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
8495 UTF-16 by checking the dispersion of Eth and Oth bytes.
8496
977b85f4
AS
84972009-06-15 Andreas Schwab <schwab@linux-m68k.org>
8498
8499 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
8500
66bd43d1
KH
85012009-06-15 Kenichi Handa <handa@m17n.org>
8502
8503 * process.c (status_message): Fix previous change. Be sure to
8504 decode a localized string.
8505
cb5ca9c5
YM
85062009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8507
8508 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
8509 add comment explaining why.
8510
ec7709ba 85112009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 8512
ec7709ba 8513 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 8514
4b7f335c
AR
85152009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
8516
8517 * nsfont.m (ns_attribute_value): Remove.
8518 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
8519 (ns_has_attribute): Shrink the normal range.
8520 (ns_findfonts): Don't worry about requested spec in determining
8521 need for synthItal.
e41820ee 8522 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 8523
73b26103
SZ
85242009-06-14 Seiji Zenitani <zenitani@mac.com>
8525
8526 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
8527
5753e4da
KH
85282009-06-11 Kenichi Handa <handa@m17n.org>
8529
8530 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8531 overhang for the static composition case.
8532
3561b671
KH
85332009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8534
5753e4da
KH
8535 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
8536 overhang for the automatic composition case.
8537
3561b671
KH
8538 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
8539 composition case.
8540
852bbd41
CY
85412009-06-10 Chong Yidong <cyd@stupidchicken.com>
8542
8543 * xdisp.c (get_next_display_element): When handling wrap-prefix
8544 and line-prefix, treat \n as a control character (bug#3502).
8545
9903d1e6
KH
85462009-06-10 Kenichi Handa <handa@m17n.org>
8547
8548 * font.c (font_parse_family_registry): Fix for one-char foundry.
8549 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
8550
0bcbaaaa
CY
85512009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
8552
8553 * process.c (status_message): Fix handling of multibyte signal
8554 string (Bug#3499).
8555
40aa3f13
JM
85562009-06-09 Jim Meyering <meyering@redhat.com>
8557
1f80c7e2
CY
8558 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
8559 color name is missing.
40aa3f13 8560
72d51285
KH
85612009-06-09 Kenichi Handa <handa@m17n.org>
8562
8563 * charset.c (Fmap_charset_chars): In docstring, state clearly that
8564 FROM-CODE and TO-CODE are codepoints of CHARSET.
8565
c1d04d84
AR
85662009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8567
8568 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
8569
85702009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
8571
8572 Changes to support :script/:lang/:otf in NS font driver.
8573 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
8574 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
8575 indicate not part of font driver interface, and change callers.
8576 (ns_get_family): Remove pointless null check.
8577 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
8578 ns_spec_to_descriptor, ns_descriptor_to_entity.
8579 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
8580 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
8581 (ns_spec_to_descriptor, ns_descriptor_to_entity)
8582 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
8583 (ns_get_req_script, ns_accumulate_script_ranges)
8584 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
8585 New functions.
8586 (nsfont_list, nsfont_match): Use ns_findfonts.
8587 (nsfont_open): Use font descriptor instead of traits.
8588 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
8589 (dump_glyphstring): Rename to ns_dump_glyphstring.
8590
c7eb9816
AR
8591 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
8592
c1d04d84
AR
8593 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
8594
8595 * fontset.c (fontset_from_font): Remove NS-specific code.
8596
ec7709ba 85972009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
8598
8599 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
8600 nonactive windows.
8601
31fd7c5c 86022009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 8603
1ac9108a 8604 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 8605
68852c13 86062009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
8607
8608 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
8609
6756cd1d
CY
86102009-06-07 Chong Yidong <cyd@stupidchicken.com>
8611
8612 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
8613 account for the overflowing of newlines into the last glyph on the
8614 display line (Bug#3482).
8615
28bf482a
DR
86162009-06-05 David Reitter <david.reitter@gmail.com>
8617
ec7709ba
JB
8618 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
8619 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
8620 Fns_selection_exists_p, Fns_selection_owner_p.
8621
fdb55376
JR
86222009-06-03 Jason Rumney <jasonr@gnu.org>
8623
8624 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
8625 available. (Bug#3379)
8626
05129fbe
KH
86272009-05-29 Kenichi Handa <handa@m17n.org>
8628
1ac9108a
SM
8629 * coding.c (get_translation_table):
8630 Check Venable_character_translation.
05129fbe 8631
ec7709ba 86322009-05-26 David Reitter <david.reitter@gmail.com>
15891144 8633
ec7709ba
JB
8634 * nsterm.m (ns_raise_frame): Only raise frame if visible.
8635 (x_make_frame_visible): Move frame to front rather than calling
15891144 8636 ns_raise_frame().
ec7709ba 8637 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 8638 isn't key window.
ec7709ba 8639 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
8640 drawRect may be called by NSView even if the frame is hidden.
8641
ec7709ba
JB
8642 * nsfns.m (Fx_create_frame): Follow other ports in
8643 determining visibility; default to t. Ensure async_visible is set.
15891144 8644
21f73755
EZ
86452009-05-23 Eli Zaretskii <eliz@gnu.org>
8646
8647 * dired.c (Ffile_attributes): Doc fix.
8648
34001e41
CY
86492009-05-22 Chong Yidong <cyd@stupidchicken.com>
8650
8651 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
8652
46306a17
SM
86532009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
8654
8655 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
8656 and xfont_scratch_props.
8657 (syms_of_xfont): Do it here instead.
8658 (xfont_find_ccl_program): Delete, unused.
8659 (xfont_open): Delete unused var `i'.
8660
ef6e0694
KH
86612009-05-21 Kenichi Handa <handa@m17n.org>
8662
8663 * fontset.c (Qlatin): Don't make it static.
8664
46306a17
SM
8665 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
8666 New functions.
ef6e0694
KH
8667 (xfont_scripts_cache, xfont_scratch_props): New variables.
8668 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
8669 (xfont_list_pattern): Argument changed. Callers changed.
8670 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
8671 (xfont_list): Don't reject a font spec with :script property.
8672 (xfont_has_char): Fix setting of encoding.
8673 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
8674 xfont_scratch_props.
8675
86762009-05-19 Kenichi Handa <handa@m17n.org>
8677
46306a17 8678 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
8679 Callers changed.
8680
86812009-05-18 Kenichi Handa <handa@m17n.org>
8682
8683 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
8684
ac71ced7
SM
86852009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
8686
8687 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
8688 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
8689
1c6d1051
YM
86902009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8691
8692 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
8693 (x_delete_terminal): Dissociate resource database from display and
8694 then call XrmDestroyDatabase before closing display.
8695
9b9b779c
AR
86962009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
8697
8698 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
8699 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
8700 whether selected frame is viable before raising it (based on patch
8701 by David Reitter), and improve commentary.
8702 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 8703
cccd42d5
KH
87042009-05-15 Kenichi Handa <handa@m17n.org>
8705
8706 * font.c (Ffont_spec): Check arguments.
8707
337fbd17
CY
87082009-05-14 Chong Yidong <cyd@stupidchicken.com>
8709
8710 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
8711 weight when testing attributes (Bug#3282).
8712
47a6002f
JD
87132009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8714
8715 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
8716 what we expect to get in the next ConfigureNotify event.
8717
9cb363db
YM
8718 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
8719 before Xft one (Bug#1696).
8720
b9126609
CY
87212009-05-07 David Reitter <david.reitter@gmail.com>
8722
8723 * nsfns.m (Fx_display_planes): Compute bitplanes using
8724 NSBitsPerPixelFromDepth (Bug#3207).
8725
27a69fd9
CY
87262009-05-10 Chong Yidong <cyd@stupidchicken.com>
8727
8728 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
8729
00f37552
TTN
87302009-05-10 Ulrich Mueller <ulm@gentoo.org>
8731
8732 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
8733
2d82a920
DR
87342009-05-07 David Reitter <david.reitter@gmail.com>
8735
ec7709ba
JB
8736 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
8737 Respect mouse face background.
2d82a920 8738
46b0d52d
DR
87392009-05-07 David Reitter <david.reitter@gmail.com>
8740
ec7709ba
JB
8741 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
8742 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
8743 in ns_update_begin and ns_update_end.
8744
ce1b23bb
SM
87452009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8746
5996e1b7
SM
8747 * nsfns.m (ns_get_screen): Rewrite.
8748 Don't presume selected-frame is of type `ns'.
8749
ba98e3a0
SM
8750 * font.c (font_update_drivers): Sanity fallback to avoid disabling
8751 all drivers.
8752
ce1b23bb
SM
8753 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
8754
bcda200f
YM
87552009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8756
8757 * keyboard.h (add_user_signal): Fix typo in extern.
8758
8759 * lisp.h (add_user_signal): Remove extern.
8760
8761 * unexelf.c (unexec): Consider a section to precede the .bss section
8762 if its addresses overlap that of .bss.
8763 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
8764 instead of dumping process.
8765
864660a2
SM
87662009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
8767
8768 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
8769
50da4e56
SM
87702009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8771
8772 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
8773
51520a1a
DN
87742009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
8775
8776 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
8777 any statements.
8778
409ea3a1
AS
87792009-05-02 Andreas Schwab <schwab@linux-m68k.org>
8780
59c4c60f
AS
8781 * process.c (read_process_output): Make sure the current buffer is
8782 always restored.
8783
409ea3a1
AS
8784 * coding.c (record_conversion_result): Don't modify
8785 Vlast_code_conversion_error for successful result.
8786 (alloc_destination): Don't clobber conversion result. (Bug#1650)
8787
56f00ed2
KH
87882009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
8789
8790 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 8791 (load_charset_map): Remove unnecessary code.
56f00ed2 8792
4491c9d2
DR
87932009-04-30 David Reitter <david.reitter@gmail.com>
8794
35f5b128 8795 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
8796 through f24.
8797
6970f632
CY
87982009-04-30 Chong Yidong <cyd@stupidchicken.com>
8799
8800 * xfaces.c (face_at_buffer_position): New arg base_face_id.
8801
8802 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
8803 face_at_buffer_position.
8804 (face_before_or_after_it_pos, get_next_display_element)
8805 (note_mouse_highlight): Update face_at_buffer_position call.
8806
8807 * term.c (term_mouse_highlight):
8808 * msdos.c (IT_note_mouse_highlight):
8809 * fontset.c (Finternal_char_font):
35f5b128 8810 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
8811
8812 * dispextern.h (face_at_buffer_position): Update prototype.
8813
0c616f63
KH
88142009-04-30 Kenichi Handa <handa@m17n.org>
8815
35f5b128 8816 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 8817
ad3aaf33
AS
88182009-04-29 Andreas Schwab <schwab@linux-m68k.org>
8819
8820 * callproc.c (Fcall_process): Fix GC protection. Make sure
8821 current buffer is always restored.
8822
c3c963a0
YM
88232009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8824
8825 * atimer.c (init_atimer): Also clear stopped_atimers.
8826
8827 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
8828
7e3386cb
YM
8829 * process.c (create_process): Clean up merger residues of
8830 2008-07-17 change.
8831
91f68422
CY
88322009-04-29 Ulrich Mueller <ulm@gentoo.org>
8833
8834 * lread.c (Vread_circle): New variable.
8835 (read1): Disable recursive read if Vread_circle is nil.
8836
24b34550
KH
88372009-04-29 Kenichi Handa <handa@m17n.org>
8838
8839 * fontset.h (set_default_ascii_font): Delete extern.
8840
8841 * fontset.c (set_default_ascii_font): Delete this unused function.
8842
8843 * frame.c (x_set_font): When ARG is a font-object, check if the
8844 font-object matches with the ASCII font-spec of the frame's
9c358bda 8845 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 8846
77bf07e1
AS
88472009-04-28 Andreas Schwab <schwab@linux-m68k.org>
8848
8849 * fns.c (Flocale_info): Protect vector from GC during decoding.
8850
8851 * process.c (Fstart_process): Protect argv strings from GC during
8852 encoding.
8853
2c55aacf
AS
88542009-04-27 Andreas Schwab <schwab@linux-m68k.org>
8855
8856 * sysdep.c: Include <ctype.h>.
8857
b892d3c9
DR
88582009-04-27 David Reitter <david.reitter@gmail.com>
8859
35f5b128 8860 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
8861 Remove commented-out code.
8862
9d0644c4
JB
88632009-04-26 Johan Bockgård <bojohan@gnu.org>
8864
8865 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
8866
b7053016
JR
88672009-04-25 Jason Rumney <jasonr@gnu.org>
8868
8869 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
8870
4e8231f3
YM
88712009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8872
8873 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
8874 Swap bytes in short integer if fringe bitmap width > 8.
8875
493dcf2c
KH
88762009-04-23 Kenichi Handa <handa@m17n.org>
8877
8878 * xfaces.c (Fx_list_fonts): If a font size is specified in
8879 PATTERN, set it in returned scalable fonts.
8880
401e9e57
CY
88812009-04-22 Chong Yidong <cyd@stupidchicken.com>
8882
708e05dc
CY
8883 * keyboard.c (Fset_input_meta_mode): Doc fix.
8884
8885 * dispnew.c (Fsend_string_to_terminal): Doc fix.
8886
1ac9108a 8887 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
8888
8889 * coding.c (Fterminal_coding_system): Doc fix.
8890
8891 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
8892 (Fx_display_pixel_height, Fx_display_planes)
8893 (Fx_display_color_cells, Fx_server_max_request_size)
8894 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8895 (Fx_display_mm_height, Fx_display_mm_width)
8896 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
8897 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
8898 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
8899 (check_x_display_info): Handle terminal objects instead of
8900 terminal ids.
8901
401e9e57
CY
8902 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
8903 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
8904 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
8905 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 8906
df80c7f0
KH
89072009-04-21 Kenichi Handa <handa@m17n.org>
8908
5a8f12af 8909 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 8910 (font_score): Check AVGWIDTH too.
908567ef 8911
df80c7f0
KH
8912 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
8913 worst case.
1ac9108a
SM
8914 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
8915 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 8916
705af33f
JR
89172009-04-19 Jason Rumney <jasonr@gnu.org>
8918
8919 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 8920 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
8921
8922 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
8923 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
8924 get_phys_cursor_geometry.
8925
b71ac3dd 8926 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
8927 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
8928 using get_phys_cursor_geometry.
8929
8930 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
8931 correctly calculated.
8932
dc2933eb
JD
89332009-04-19 Jan Djärv <jan.h.d@swipnet.se>
8934
1ac9108a
SM
8935 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
8936 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
8937 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
8938 is deprecated.
8939
973e7849
AS
89402009-04-18 Andreas Schwab <schwab@linux-m68k.org>
8941
8942 * font.c (font_put_frame_data): Use xfree instead of free.
8943
314d66f4
JB
89442009-04-17 Juanma Barranquero <lekktu@gmail.com>
8945
8946 * w32font.c (Qja, Qko): Remove declarations.
8947 (syms_of_w32font): Don't DEFSYM them.
8948
cf702558
CY
89492009-04-17 Chong Yidong <cyd@stupidchicken.com>
8950
8951 * font.c (Qja, Qko): Move definitions here from ftfont.c.
8952
8953 * font.h (Qja, Qko): Extern them.
8954
8955 * ftfont.c (Qja, Qko): Remove declarations.
8956
8957 * xfont.c (Qja, Qko): Remove declarations.
8958
b50504f5
KH
89592009-04-17 Kenichi Handa <handa@m17n.org>
8960
bde25748
KH
8961 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
8962 string from a vector to handle Latin-1 characters correctly.
8963
b50504f5
KH
8964 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
8965 entity even if the cache hits.
8966
f4646fff
AS
89672009-04-16 Andreas Schwab <schwab@linux-m68k.org>
8968
8969 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 8970 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 8971
e7deaab0
AS
8972 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
8973 * lisp.h: Adjust prototypes.
8974
0a0e7d49
CY
89752009-04-16 Chong Yidong <cyd@stupidchicken.com>
8976
8977 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
8978 change (Bug#3003).
8979
3c908a57
KH
89802009-04-16 Kenichi Handa <handa@m17n.org>
8981
1ac9108a 8982 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
8983
8984 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
8985 adstyle.
8986
8987 * ftfont.c (Qja, Qko): Don't make them static.
8988 (enum ftfont_cache_for): New enum.
8989 (fc_charset_table): Undo the previous change.
8990 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
8991 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
8992 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
8993 non-scarable font, try to get AVERAGE_WIDTH.
8994 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
8995 Change ft_face_cache from a list of a hash-table. Don't check
8996 `ja' and `ko' adstyle here.
8997 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
8998 FTFONT_CACHE_FOR_CHARET.
8999 (ftfont_get_charset): Undo the previous change.
1ac9108a 9000 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
9001 (ftfont_close): Likewise.
9002 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
9003
9004 * font.c (font_sort_entites): Change the meaning of the arg
9005 BEST-ONLY. Don't optimize for VEC of lenght 1.
9006 (font_select_entity): Just return the value of font_sort_entites.
9007
9008 * xfaces.c (merge_face_vectors): Reflect font properties in
9009 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
9010 font_clear_prop if a face attribute doesn't change.
9011
3c908a57
KH
9012 * charset.h (charset_ksc5601): Extern it.
9013
9014 * charset.c (charset_ksc5601): New variable.
9015 (Fdefine_charset_internal): Set charset_ksc5601.
9016 (init_charset_once): Initialize charset_ksc5601 to -1.
9017
d65859c3
DN
90182009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9019
9020 * fileio.c (history_delete_duplicates): Remove unused declaration.
9021
9022 * callint.c (history_delete_duplicates): New declaration.
9023 (Fcall_interactively): Remove command history duplicates when
9024 history_delete_duplicates is true.
9025
3ba010e5
EZ
90262009-04-14 Eli Zaretskii <eliz@gnu.org>
9027
9028 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
9029
06f19b91
KH
90302009-04-14 Kenichi Handa <handa@m17n.org>
9031
9032 * font.c (Ffont_info): Fix docstring. Fix the second element of
9033 the returned value (bug#2949).
9034
2cce8bfc
CY
90352009-04-14 Chong Yidong <cyd@stupidchicken.com>
9036
9037 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
9038
d156542d
KH
90392009-04-14 Kenichi Handa <handa@m17n.org>
9040
9041 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
9042 encoding charset is ascii_compatible.
9043
9044 * charset.c (Fdefine_charset_internal): Make charset
9045 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
9046 code_offset is 0, and covers all ASCII characters.
9047
86fa089e
SM
90482009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9049
9050 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
9051 (ns_string_to_pasteboard_internal):
9052 * nsmenu.m (process_dialog):
9053 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
9054 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
9055 * lisp.h (Fx_load_color_file): Declare.
9056
a8a3728b
KH
90572009-04-13 Kenichi Handa <handa@m17n.org>
9058
1ac9108a 9059 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
9060 (font_select_entity): Suppress the code to optimize for the same
9061 kind of fonts.
9062 (font_load_for_lface): Get a font that supports at least ASCII
9063 characters.
9064
9065 * ftfont.c (Qja, Qko): New variables.
9066 (fc_charset_table): Delete uniquifier data for iso8859-1.
9067 (ftfont_get_latin1_charset): New function.
9068 (get_adstyle_property): New function.
9069 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
9070 bitmap fonts.
9071 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
9072 Delete iso-8859-1 range from the charset of fonts whose adstyle is
9073 `ko' or `ja'.
9074 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 9075 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
9076 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
9077 property.
9078 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
9079 (syms_of_ftfont): DEFSYM Qja and Qko.
9080
483670b5
KH
90812009-04-09 Kenichi Handa <handa@m17n.org>
9082
12b55765
KH
9083 * charset.c (map_charset_chars): For a charset of `superset'
9084 method, fix calculation of code range.
9085
483670b5
KH
9086 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
9087 from the list of extra properties.
9088 (font_clear_prop): Be sure to delete `:name' font property.
9089
57d3b93b
KH
90902009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9091
b4b2c2ca
YM
9092 * dispnew.c (redraw_overlapping_rows): Fix detection of
9093 overlapping for topmost and bottommost rows.
9094
1ac9108a 9095 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 9096
472c3609
JR
90972009-04-06 Jason Rumney <jasonr@gnu.org>
9098
9099 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
9100
ab193662
KH
91012009-04-06 Kenichi Handa <handa@m17n.org>
9102
9103 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
9104
9105 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
9106
0c26f026
KH
91072009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9108
9109 * ftfont.c (ftfont_open): Fix checking of the return value of
9110 FT_Load_Char. Fix setting font->underline_thickness.
9111
e173bbce
CY
91122009-04-04 Chong Yidong <cyd@stupidchicken.com>
9113
9114 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
9115 (Fterminal_parameters, Fterminal_parameter)
9116 (Fset_terminal_parameter): In doc string, refer to terminal
9117 objects rather than terminal ids.
9118
693a2698
EZ
91192009-04-04 Eli Zaretskii <eliz@gnu.org>
9120
9121 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
9122 ret_lim_data. (Bug#2867)
9123
d5221487
CY
91242009-04-03 Chong Yidong <cyd@stupidchicken.com>
9125
9126 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
9127 so they don't get wider than the window, matching 2006-01-23
9128 change to the partner function in xdisp.c (Bug#2800).
9129
223509a3
KH
91302009-04-03 Kenichi Handa <handa@m17n.org>
9131
9132 * print.c (print_object): Make each lowest sub_char_table start a
9133 new line (Bug#2866).
9134
74fcd0b1
KH
91352009-04-02 Kenichi Handa <handa@m17n.org>
9136
9137 * fontset.c (fontset_font): Record no-font when a fontset
9138 explicitly tells not to try another font-specs.
9139
c542407d
SM
91402009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
9141
9142 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
9143
e3869731
KH
91442009-03-30 Kenichi Handa <handa@m17n.org>
9145
d8d2f142
KH
9146 * fontset.c (fontset_from_font): Specify only registry in a
9147 font-spec for all characters supported by that registry.
9148
e3869731
KH
9149 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
9150 even if HAVE_M17N_FLT is not defined.
9151
5da5f805
CY
91522009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
9153
9154 * ftfont.c: Conditionalize prototyping and use of
9155 ftfont_variation_glyphs.
9156
ab226c50
SM
91572009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
9158
9628fed7
SM
9159 * frame.c (delete_frame): Work around compiler bug.
9160
9161 * editfns.c (general_insert_function): Adjust to insdel.c changes.
9162 * insdel.c (prepare_to_modify_buffer, signal_before_change):
9163 Some more EMACS_INT.
9164 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
9165
9166 * xdisp.c (dump_glyph): Fix typo.
9167
ae19ba7c
SM
9168 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
9169 (adjust_markers_gap_motion, adjust_markers_for_delete)
9170 (adjust_markers_for_insert, adjust_point)
9171 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
9172 (make_gap, copy_text, count_size_as_multibyte, insert)
9173 (insert_and_inherit, insert_before_markers)
9174 (insert_before_markers_and_inherit, insert_1)
9175 (count_combining_before, count_combining_after, insert_1_both)
9176 (insert_from_string, insert_from_string_before_markers)
9177 (insert_from_string_1, insert_from_gap, insert_from_buffer)
9178 (insert_from_buffer_1, adjust_after_replace)
9179 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
9180 (replace_range_2, del_range, del_range_1, del_range_byte)
9181 (del_range_both, del_range_2, modify_region)
9182 (prepare_to_modify_buffer, signal_before_change)
9183 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
9184 for buffer positions and sizes.
9185 * lisp.h: Adjust prototypes accordingly.
9186
9187 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
9188 (non_regular_inserted, non_regular_nbytes, read_non_regular)
9189 (Finsert_file_contents): Use EMACS_INT for buffer positions.
9190
ab226c50
SM
9191 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
9192
46dfb8fb
JD
91932009-03-27 Jan Djärv <jan.h.d@swipnet.se>
9194
9195 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
9196 lines and columns so we keep the same pixel height and width.
9197
9198 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
9199 the property _NET_WM_STATE has changed.
46dfb8fb
JD
9200 (x_handle_net_wm_state): New function to update frame parameter
9201 fullscreen.
9202 (x_term_init): Initialize atoms for _NET_WM_STATE.
9203
9204 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
9205
d347e494
SM
92062009-03-27 Kevin Ryde <user42@zip.com.au>
9207
9208 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
9209 Gpm_GetEvent as an error that justifies closing the filedescriptor.
9210 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
9211 (Fgpm_mouse_stop): Pass that new parameter.
9212 * termhooks.h (close_gpm): Adjust prototype.
9213
84db11d6
SM
92142009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
9215
c95a5008
SM
9216 * lisp.h (Fx_focus_frame): Declare.
9217
84db11d6
SM
9218 * callint.c (Fcall_interactively): For '^' just delegate the work to
9219 handle-shift-selection.
9220 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
9221
0a1958d6
CY
92222009-03-24 Chong Yidong <cyd@stupidchicken.com>
9223
0bfdff23
CY
9224 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
9225
0a1958d6
CY
9226 * data.c (Qinteractive_form): New variable.
9227 (Finteractive_form): Use it.
9228
9229 * eval.c (Fcommandp): Use Qinteractive_form.
9230
58aec0d6
JR
92312009-03-24 Jason Rumney <jasonr@gnu.org>
9232
9233 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
9234 Calculate total size precisely. Decode environment variables
9235 before substituting. (Bug#38)
9236
553dd618
KH
92372009-03-24 Kenichi Handa <handa@m17n.org>
9238
9239 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 9240 encoding (Bug#2722).
553dd618 9241
c39ea606
JD
92422009-03-23 Jan Djärv <jan.h.d@swipnet.se>
9243
9244 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
9245 that gdpy is set.
9246
bc9b2b5e
AM
92472009-03-22 Alan Mackenzie <acm@muc.de>
9248
9249 * callint.c (Finteractive): Clarify the doc string - even
9250 promptless elements need \n separators.
9251
9f995a76
JR
92522009-03-22 Jason Rumney <jasonr@gnu.org>
9253
9254 * w32term.c (syms_of_w32term): Doc fix for
9255 x-use-underline-position-properties.
9256
22749e9a
EZ
92572009-03-21 Eli Zaretskii <eliz@gnu.org>
9258
9259 * w32.c (getpwuid): Change argument type to unsigned.
9260 (struct w32_id): Change type of `rid' member to unsigned.
9261 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
9262 argument ID to unsigned. All callers changed.
9263 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
9264
e00553bf
EZ
92652009-03-20 Eli Zaretskii <eliz@gnu.org>
9266
9267 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
9268 negative, produce a float value.
9269
9270 * dired.c (make_uid, make_gid): New functions.
9271 (Ffile_attributes): Use them to avoid negative UID and GID.
9272
f761d6b6
JB
92732009-03-20 Juanma Barranquero <lekktu@gmail.com>
9274
9275 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
9276 (syms_of_keyboard) <command-hook-internal, input-method-function>:
9277 Fix typos in docstrings.
9278
d507f8d7
KH
92792009-03-19 Kenichi Handa <handa@m17n.org>
9280
9281 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
9282 changed, use font_load_for_lface to get a new font object.
9283 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
9284
9285 * frame.c (x_set_font): Handle the case that ARG is a cons.
9286
c68845e0
GM
92872009-03-19 Glenn Morris <rgm@gnu.org>
9288
9289 * fileio.c (Fsubstitute_in_file_name): Doc fix.
9290
bfa49dd1
CY
92912009-03-19 Chong Yidong <cyd@stupidchicken.com>
9292
9293 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
9294
8458d4c1
KH
92952009-03-19 Kenichi Handa <handa@m17n.org>
9296
9297 * charset.c (load_charset_map_from_file): When a mapfile can't be
9298 loaded, signal an error.
9299
78e7d1fe
EZ
93002009-03-18 Eli Zaretskii <eliz@gnu.org>
9301
9302 * dired.c (Ffile_attributes): Make sure UID and GID are always
9303 positive, even if the value is too large for a positive EMACS_INT.
9304 Doc fix.
9305
9306 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
9307
5da9fdfa
YM
93082009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9309
9310 * xmenu.c (xdialog_show): Move Fredisplay call ...
9311 (Fx_popup_dialog): ... here.
9312
7519c40d
SM
93132009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
9314
9315 * dired.c (file_name_completion): Disable the first optimization just
9316 installed, since it is not implemented correctly.
9317
2cd298e2
SM
93182009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
9319
9320 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 9321 only if the entry can affect bestmatch.
2cd298e2
SM
9322 Stop the search early, as Ftry_completion already does.
9323
48d37adf
CY
93242009-03-17 Chong Yidong <cyd@stupidchicken.com>
9325
e10c9c93 9326 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 9327
9286b16a
CY
93282009-03-15 Chong Yidong <cyd@stupidchicken.com>
9329
9330 * keyboard.c (parse_menu_item): Don't display remappings as menu
9331 equivalent bindings (Bug#788).
9332
f7b146dc
JR
93332009-03-15 Jason Rumney <jasonr@gnu.org>
9334
9335 * w32term.h (WM_EMACS_PAINT): New message.
9336 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
9337 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
9338 before passing to lisp thread. (Bug#950)
9339
f761d6b6 93402009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 9341
d93f9575
CY
9342 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
9343 variable as it was never reset.
9344 (ns_term_init): Remove initialization of Lisp-settable defaults
9345 and ns_expand_space.
9346 (-setPanelFromDefaultValues): Remove ns_expand_space.
9347 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
9348 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
9349 i.e. no additional spacing, similar to Carbon port.
9350
d93f9575
CY
9351 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
9352 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 9353
305018ec
JD
93542009-03-14 Jan Djärv <jan.h.d@swipnet.se>
9355
9356 * sound.c (alsa_configure): Remove call to deprecated
9357 snd_pcm_sw_params_set_xfer_align.
9358
f761d6b6 93592009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
9360
9361 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
9362 after clicking in a detached tool bar.
9363 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
9364
46e722a9
SM
93652009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
9366
348db3dd
SM
9367 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
9368 int/Lisp_Object mixup).
46e722a9 9369
a3d16f39
KH
93702009-03-13 Kenichi Handa <handa@m17n.org>
9371
9372 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 9373 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
9374 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
9375 (set_fontset_font): Change ARG to a vector. Handle range_list in
9376 ARG correctly.
9377 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 9378 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
9379 the above change.
9380 (fontset_from_font): Fix previous change.
fe24f56a 9381 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
9382 entry. If FONTSET is the default fontset, don't set the extra
9383 slot of the returning char-table.
9384
b066e6b6
JB
93852009-03-12 Juanma Barranquero <lekktu@gmail.com>
9386
9387 * nsfns.m (Fx_close_connection): Doc fix.
9388 (Fns_do_applescript): Reflow docstring.
9389 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
9390 (Fx_display_pixel_width, Fx_display_pixel_height)
9391 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
9392 Fix typos in docstrings.
9393 (Fns_set_alpha): Fix typos in error messages.
9394
d472514e 93952009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 9396
d472514e 9397 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
9398 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
9399 were used for such events.
9400
d472514e
JB
9401 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
9402 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 9403
d472514e 9404 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
9405 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
9406
fb930676
KH
94072009-03-11 Kenichi Handa <handa@m17n.org>
9408
ff85581a
KH
9409 * font.h (font_open_by_spec): Extern it.
9410
c50b7e98
KH
9411 * font.c (font_open_by_spec): New function.
9412 (font_open_by_name): Use font_open_by_spec.
9413
fb930676
KH
9414 * frame.c (x_set_font): When ARG is a font-object, don't alter the
9415 fontset of the frame.
9416
9417 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
9418 modify the default font of frames that use this fontset.
9419 (num_auto_fontsets): New variable.
9420 (fontset_from_font): Use num_auto_fontsets to decide a fontset
9421 name. Be sure to set FONTSET_ASCII to the correct font name.
9422 (update_auto_fontset_alist): New function.
9423
df4e8455
JB
94242009-03-11 Juanma Barranquero <lekktu@gmail.com>
9425
9426 * makefile.w32-in: Update dependencies.
9427
0a375797
AR
94282009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9429
9430 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
9431
61313fa3
SM
94322009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
9433
9434 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
9435
b55103fb
CY
94362009-03-10 Chong Yidong <cyd@stupidchicken.com>
9437
9438 * lread.c (Feval_buffer): Doc fix.
9439
dde2559c
KH
94402009-03-09 Kenichi Handa <handa@m17n.org>
9441
9442 * charset.c (Qfile_name_handler_alist): Extern it.
9443 (load_charset_map_from_file): Temporarily bind
9444 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
9445
df4e8455 94462009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 9447
47f588bb
GM
9448 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
9449 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 9450
4ddf94bd
AR
94512009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
9452
4c9bdfc2
AR
9453 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
9454 (x_set_window_size): Change back to calculated method of setting
9455 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
9456 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
9457 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
9458
fe41ae9e
AR
9459 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
9460
4c9bdfc2
AR
9461 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
9462 accelerator in parens under GNUstep.
9463
825d0875
KH
94642009-03-06 Kenichi Handa <handa@m17n.org>
9465
9466 These changes are to detect incorrect composition sequence without
f3b3be74 9467 looking ahead the source. (Bug#2370)
825d0875
KH
9468
9469 * coding.h: Include "composite.h".
9470 (enum compisition_state): New enum.
9471 (struct compisition_status): New struct.
9472 (struct iso_2022_spec): New member cmp_status.
9473 (struct emacs_mule_spec): New struct.
9474 (struct coding_system): New members ctext_extended_segment_len and
9475 embedded_utf_8. Change the union member
9476 spec.emacs_mule_full_support to spec.emacs_mule.
9477
9478 * coding.c (CODING_ISO_CMP_STATUS): New macro.
9479 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 9480 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
9481 (ADD_COMPOSITION_DATA): New arg nbytes.
9482 (emacs_mule_char): New arg cmp_status.
9483 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
9484 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
9485 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
9486 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
9487 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
9488 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
9489 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
9490 (EMACS_MULE_COMPOSITION_END): New macro.
9491 (emacs_mule_finish_composition): New function.
9492 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
9493 (decode_coding_emacs_mule): Avoid long looking ahead while
9494 handling composition.
9495 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
9496 (ENCODE_COMPOSITION_RULE): New macro.
9497 (finish_composition): New function.
9498 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
9499 (DECODE_COMPOSITION_START): New implementation.
9500 (DECODE_COMPOSITION_END): Likewise.
9501 (STORE_COMPOSITION_RULE): New macro.
9502 (decode_coding_iso_2022): Avoid long looking ahead while handling
9503 composition, CTEXT extended segment, and embedded UTF-8.
9504 (setup_coding_system): For a coding of type iso-2022, reset
9505 CODING_ISO_EXTSEGMENT_LEN (coding) and
9506 CODING_ISO_EMBEDDED_UTF_8 (coding).
9507 (get_translation): Delete arguments last_block, from_nchars,
9508 to_nchars. Callers changed.
9509 (produce_chars): Don't modify charbuf. Adjusted for the change of
9510 get_translation.
98a326f7 9511 (produce_composition): Adjust for the new annotation sequence.
825d0875 9512 (handle_composition_annotation): Likewise.
98a326f7 9513 (consume_chars): Adjust for the change of get_translation.
825d0875 9514
ccbc4452
AR
95152009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
9516
4ddf94bd 9517 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 9518
988a7ddb
KH
95192009-03-05 Kenichi Handa <handa@m17n.org>
9520
9521 * font.c (font_select_entity): New function.
9522 (font_find_for_lface): Use font_select_entity to select a font.
9523
9524 * fontset.c (fontset_find_font): If a font found without
a8a3728b 9525 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
9526 font with C restriction.
9527
98a326f7 95282009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 9529
be1bce46 9530 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 9531
10ea2b82
JR
95322009-03-04 Jason Rumney <jasonr@gnu.org>
9533
2c93b248 9534 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 9535 characters that have already been read. (Bug#2569)
2c93b248 9536
10ea2b82
JR
9537 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
9538 Log an error message if check_image_size failed.
9539 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 9540 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 9541
71a0c011
EZ
95422009-03-02 Eli Zaretskii <eliz@gnu.org>
9543
9544 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
9545 when decoding process output.
9546
2f63bba8
RS
95472009-03-01 Richard M Stallman <rms@gnu.org>
9548
9549 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
9550
9551 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
9552
0a9564cb
EZ
95532009-02-28 Eli Zaretskii <eliz@gnu.org>
9554
9555 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
9556 (decode_coding_emacs_mule, decode_coding_iso_2022)
9557 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
9558 (decode_coding_raw_text, decode_coding_charset)
9559 (setup_coding_system, decode_eol, decode_coding, consume_chars):
9560 Honor inhibit-eol-conversion. (Bug #2186)
9561
449148b3
JR
95622009-02-28 Jason Rumney <jasonr@gnu.org>
9563
9564 * coding.c (detect_coding_charset): If not checking latin extra,
9565 fail on characters between 0x80 and 0xA0. (Bug#2354)
9566
a4aee864
EZ
95672009-02-28 Eli Zaretskii <eliz@gnu.org>
9568
9569 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 9570 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 9571
d88bee5a
GM
95722009-02-27 Glenn Morris <rgm@gnu.org>
9573
9574 * callint.c (Finteractive): Doc fix.
9575
a808f22d
KH
95762009-02-27 Kenichi Handa <handa@m17n.org>
9577
9578 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
9579
caf8d60c
CY
95802009-02-27 Chong Yidong <cyd@stupidchicken.com>
9581
9582 * font.c (font_style_to_value): Set value for unknown symbols to
9583 100 instead of 255.
b61137ea
CY
9584 (weight_table, slant_table, width_table): Treat "unspecified" as
9585 the default value.
caf8d60c 9586
1a0de25c
JB
95872009-02-26 Juanma Barranquero <lekktu@gmail.com>
9588
9589 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
9590
8fc45744
JB
95912009-02-25 Juanma Barranquero <lekktu@gmail.com>
9592
107bd7d1
JB
9593 * lread.c (Fload): Stop checking Vloads_in_progress and signal
9594 error as soon as a recursive load is detected.
8fc45744 9595
f097e223
AR
95962009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
9597
9598 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
9599 before caching.
9600
8810a12f
KH
96012009-02-24 Kenichi Handa <handa@m17n.org>
9602
9603 * fontset.c (fontset_find_font): Fix the condition for checking
9604 unavailable font.
9605
2c7d1565
GM
96062009-02-24 Glenn Morris <rgm@gnu.org>
9607
9608 * xfaces.c (Finternal_set_font_selection_order): Remove leading
9609 whitespace that confuses documentation.
9610
a20878b6
MB
96112009-02-23 Miles Bader <miles@gnu.org>
9612
9613 * process.c (Flist_system_processes, Fprocess_attributes)
9614 (syms_of_process): Rename `system-process-attributes' to
9615 `process-attributes'.
9616
b3b58c01
AS
96172009-02-22 Andreas Schwab <schwab@linux-m68k.org>
9618
1b3b981b
AS
9619 * coding.h (struct coding_system): Make safe_charsets a pointer to
9620 unsigned char.
9621 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
9622 being 255.
9623 (SAFE_CHARSET_P): Likewise.
9624 (setup_iso_safe_charsets): Properly setup safe_charsets.
9625 (Fdefine_coding_system_internal): Likewise.
9626 (setup_coding_system): Likewise. Remove unneeded casts.
9627 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
9628 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
9629 unneeded casts.
9630
b3b58c01
AS
9631 * insdel.c (del_range_2): Don't modify gap contents when called
9632 from decode_coding_object. (Bug#1809)
9633
0b6f228c
CY
96342009-02-21 Chong Yidong <cyd@stupidchicken.com>
9635
9636 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
9637 Qfont_object.
9638 (Ftype_of): Recognize font objects.
9639
9640 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
9641
9642 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
9643 moved to data.c.
9644
52f8870b
AR
96452009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
9646
9647 * nsterm.m (x_make_frame_invisible): Unset async_visible,
9648 async_iconified. Based on a patch by Christian Lynbech
9649 <christian.lynbech@tieto.com>.
9650 (EmacsView-windowDidMiniaturize:): Unset async_visible.
9651
7087d5e9
GM
96522009-02-20 Glenn Morris <rgm@gnu.org>
9653
9654 * syntax.c (Fskip_chars_forward): Fix doc typo.
9655
41d2ceef
CY
96562009-02-20 Chong Yidong <cyd@stupidchicken.com>
9657
9658 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
9659
1a3b7ca6
CY
96602009-02-19 Chong Yidong <cyd@stupidchicken.com>
9661
9662 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
9663
73cce38d
KH
96642009-02-19 Kenichi Handa <handa@m17n.org>
9665
9666 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 9667 Don't overflow coding->carryover. (Bug#2370)
73cce38d 9668
a51092ee
DN
96692009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
9670
9671 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
9672
c423ecca
KH
96732009-02-18 Kenichi Handa <handa@m17n.org>
9674
9675 * font.c (font_check_otf_features): Fix handling of `nil' element.
9676 (Ffont_spec): Describe :lang and :otf in the docstring.
9677
4c1958f4
AS
96782009-02-16 Andreas Schwab <schwab@suse.de>
9679
9680 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
9681 string.
9682
5704f39a
KH
96832009-02-16 Kenichi Handa <handa@m17n.org>
9684
9685 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 9686 (Bug#1723)
5704f39a 9687
8f0085aa
CY
96882009-02-14 Chong Yidong <cyd@stupidchicken.com>
9689
a057d86a 9690 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
9691
9692 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
9693 (handle_line_prefix): Suppress wrapping of wrap prefixes.
9694
aff01dd9
EZ
96952009-02-14 Eli Zaretskii <eliz@gnu.org>
9696
9697 * msdos.c (MAX_SCREEN_BUF): New macro.
9698 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
9699 Encode the entire run of glyphs sharing the same face, instead of
9700 doing that one glyph at a time (fixes a bug with displaying
9701 double-size characters).
9702
ba301db3
AR
97032009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
9704
9705 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
9706
9707 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
9708 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 9709 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
9710
9711 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 9712 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 9713
51d861de
SM
97142009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
9715
ac146f82 9716 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
9717 invisible areas.
9718
7fed8996
JR
97192009-02-12 Jason Rumney <jasonr@gnu.org>
9720
631ea4fb
JR
9721 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
9722 (add_font_entity_to_list): Call check_face_name even when family
9723 is unspecified.
9724
cb4a3e42
JR
9725 * w32term.c (x_display_pixel_height, x_display_pixel_width):
9726 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 9727 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 9728
7fed8996 9729 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 9730 raster fonts. (Bug#2219)
7fed8996 9731
895416e3
KH
97322009-02-12 Kenichi Handa <handa@m17n.org>
9733
9734 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
9735 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
9736 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 9737 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9738 (find_automatic_composition): While looking forward and backward,
9739 check static composition. Fix where to stop looking forward.
9740 (composition_adjust_point): Fix checking of static composition.
9741 (Fcomposition_get_gstring): Pay attention to
1dacf998 9742 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
9743
9744 * lisp.h (fast_looking_at): Extern it.
9745
9746 * search.c (fast_looking_at): New function.
9747
51d861de 9748 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
9749 <struct glyph>.u.cmp.to.
9750 (append_composite_glyph): Likewise.
9751
51d861de 9752 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
9753 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
9754 composition.
51d861de 9755 (append_composite_glyph): Adjust for the change of
895416e3
KH
9756 <strcut glyph>.u.cmp.to.
9757
8510724d
JB
97582009-02-11 Juanma Barranquero <lekktu@gmail.com>
9759
9760 * casetab.c (init_casetab_once):
9761 * coding.c (ALLOC_CONVERSION_WORK_AREA):
9762 * font.c (font_update_lface):
9763 * fontset.c (Fnew_fontset):
9764 * ftfont.c (ftfont_drive_otf):
9765 * xfont.c (xfont_open):
9766 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
9767
294fa707
SM
97682009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
9769
9770 * fileio.c (Fwrite_region): !NILP -> CONSP.
9771
b5bfebec
AS
97722009-02-10 Andreas Schwab <schwab@suse.de>
9773
9774 * process.c (send_process): Properly relocate pointer into data
adab88bd 9775 when using encoded data. (Bug#2272)
b5bfebec 9776
cb84a2be
KH
97772009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
9778
9779 * coding.c (detect_coding_charset): Fix previous change.
9780
89e09428
JR
97812009-02-08 Jason Rumney <jasonr@gnu.org>
9782
9783 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 9784 disappeared while hourglass was displayed. (Bug #2193)
89e09428 9785
4470a277
AS
97862009-02-07 Andreas Schwab <schwab@suse.de>
9787
9788 * unexelf.c (unexec): Fix error message.
9789
3175b12a
AR
97902009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
9791
9792 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 9793 when modal window is active. (Bug #2152)
3175b12a
AR
9794 (applicationShouldTerminate:): Remove now-unneeded while loop
9795 around NSRunAlertPanel.
9796
9797 * nsmenu.m (popupSession): New file-global variable.
9798 (pop_down_menu): End the popupSession before closing dialog.
9799 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
9800 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
9801 don't query NSApp for events (just sleep instead).
9802
8434d0b8
EZ
98032009-02-07 Eli Zaretskii <eliz@gnu.org>
9804
51d861de
SM
9805 * coding.c (syms_of_coding) <translation-table-for-input>:
9806 Modify doc string to discourage use for character code unification.
8434d0b8 9807
aa82edfd
CY
98082009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9809
9810 * atimer.c (run_timers): Update pending_atimers.
9811
2d283c7c
CY
98122009-02-06 Chong Yidong <cyd@stupidchicken.com>
9813
eb306cab
CY
9814 * image.c (svg_load_image): Fix last change.
9815
2d283c7c
CY
9816 * xfns.c (Fx_create_frame): Signal an error if no font is
9817 found (Bug#2147).
9818
4d8e170e
JB
98192009-02-05 Juanma Barranquero <lekktu@gmail.com>
9820
9821 * character.c (syms_of_character) <script-representative-chars>:
9822 Fix typo in docstring.
9823
c96169a0
AR
98242009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
9825
9826 * nsmenu.m (pop_down_menu): New function.
9827 (ns_popup_dialog): Call it on unwind.
9828 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
9829 call timer_check() (Bug#2154).
9830 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
9831 handling_signal is set.
9832 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
9833
31fd7c5c 9834 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
9835
9836 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
9837
9838 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
9839
51d861de
SM
9840 * keyboard.c (poll_for_input_1, handle_async_input):
9841 Set handling_signal under HAVE_NS.
c96169a0 9842
aacd8ba1
GM
98432009-02-04 Glenn Morris <rgm@gnu.org>
9844
9845 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
9846
4cb75c4b
KH
98472009-02-04 Kenichi Handa <handa@m17n.org>
9848
9849 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
9850
9851 * charset.c (Fchar_charset): New optional arg restriction.
9852
9853 * coding.h (coding_system_charset_list): Extern it.
9854
9855 * coding.c (coding_system_charset_list): New function.
9856
9857 * composite.c: Include coding.h and termhooks.h.
9858 (composition_gstring_p): Fix for the terminal case.
9859 (composition_gstring_width): Likewise.
9860 (fill_gstring_body): Likewise.
9861 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
9862 the frame.
9863 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
9864 is within a composition.
867d4bb3 9865 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
9866
9867 * term.c (encode_terminal_code): Fix handling of composition.
9868 (produce_composite_glyph): For static composition, get pixel_width
9869 from struct composition.
9870
826ba17e
AS
98712009-02-02 Andreas Schwab <schwab@suse.de>
9872
9873 * unexelf.c (unexec): Handle unaligned bss offset.
9874
8ad093db
AR
98752009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
9876
9877 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
9878 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 9879
8ad093db
AR
9880 * keyboard.c (handle_interrupt): Don't call
9881 quit_throw_to_read_char() under NS.
d0a76a6e 9882
8ad093db
AR
9883 * blockinput.h: Remove NS-specific code.
9884
4d18a7a2
DN
98852009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
9886
db878925
DN
9887 * dispnew.c (window_change_signal): Don't try to get the size of a
9888 suspended tty frame.
9889 * term.c (Fresume_tty): Resize if the size has changed while the
9890 tty was suspended.
9891
4d18a7a2
DN
9892 * alloc.c (mark_stack): Properly conditionalize previous change.
9893
8984df7c
JB
98942009-01-30 Juanma Barranquero <lekktu@gmail.com>
9895
9896 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
9897 * w32term.c (w32_read_socket) [SYNC_INPUT]:
9898 Remove; this code is not used on Windows.
9899
75f4f1ac
EZ
99002009-01-30 Eli Zaretskii <eliz@gnu.org>
9901
9902 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
9903 EOLs that also has stray ^M characters.
9904
07a1e794
JB
99052009-01-30 Juanma Barranquero <lekktu@gmail.com>
9906
9907 * atimer.c (run_timers, alarm_signal_handler):
9908 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
9909 * w32inevt.c (w32_console_read_socket):
9910 * w32term.c (w32_read_socket):
9911 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
9912
a8b11cc9
CY
99132009-01-30 Chong Yidong <cyd@stupidchicken.com>
9914
9915 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
9916 Initialize it as a relative filename pattern.
9917 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
9918 (Fcall_process_region): Simplify temp file creation using
9919 temporary-file-directory.
9920
c279587b
EZ
99212009-01-29 Eli Zaretskii <eliz@gnu.org>
9922
9923 * msdos.c: Rename pending_signals to msdos_pending_signals.
9924 (sig_suspender, sigprocmask): Adjust.
9925
a8fe3242
CY
99262009-01-29 Chong Yidong <cyd@stupidchicken.com>
9927
9928 * keyboard.c (pending_signals): New var.
9929 (poll_for_input, input_available_signal, init_keyboard): Set it.
9930 (process_pending_signals): New function.
9931
9932 * lisp.h (QUIT): Check pending_signals instead of
9933 interrupt_input_pending. Use process_pending_signals.
9934
51d861de 9935 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 9936
51d861de 9937 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
9938
9939 * sysdep.c (emacs_write): Use process_pending_signals.
9940
9941 * xterm.c (XTread_socket): Update pending_signals.
9942
9943 * w32term.c (w32_read_socket): Update pending_signals.
9944
9945 * w32inevt.c (w32_console_read_socket): Update pending_signals.
9946
6570a1c4
KH
99472009-01-29 Kenichi Handa <handa@m17n.org>
9948
9949 * xftfont.c (xftfont_has_char): New function.
9950 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
9951
d72a4afa
AR
99522009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
9953
9954 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
9955 under GNUstep.
9956 (ns_query_color): New declaration.
9957
9958 * nsterm.m (ns_confirm_quit): New variable.
9959 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
9960 (EmacsApp-applicationShouldTerminate:): Use it.
9961 (EmacsPrefsController): Let user set it.
9962 (ns_query_color): New function.
9963 (ns_defined_color): Use it.
9964 (ns_initialize): Drop.
9965 (ns_term_init): Add two lines from ns_initialize(), and set
9966 input_interrupt_mode to nil.
9967
9968 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 9969 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 9970
9fe78804
KH
99712009-01-28 Kenichi Handa <handa@m17n.org>
9972
9973 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
9974 (fontset_get_font_group): Remember that no font-group is specified
9975 for C.
9fe78804 9976
fa57de36
CY
99772009-01-27 Chong Yidong <cyd@stupidchicken.com>
9978
930600e9
CY
9979 * fns.c (concat): Check for string overflow (bug#1787).
9980
fa57de36
CY
9981 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
9982 Quadruple undo limits (bug#1501).
9983
7179ce7b
KH
99842009-01-27 Kenichi Handa <handa@m17n.org>
9985
9986 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
9987 directly use GT_Get_Char_index.
9988
9989 * xftfont.c (struct xftfont_info): New member `index'.
9990
9991 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 9992 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 9993
5be8fcc0
CY
99942009-01-26 Kenichi Handa <handa@m17n.org>
9995
9996 * fontset.c (fontset_find_font): Fix handling of non-cons return
9997 value of fontset_get_font_group.
9998 (fontset_font): Revert last change.
9999
19ae3e61
JR
100002009-01-26 Jason Rumney <jasonr@gnu.org>
10001
10002 * w32font.c (w32font_list_internal): Return quickly if registry is
10003 unknown. Simplify final return.
10004 (add_font_entity_to_list): Break complex logic down into more
10005 manageable chunks. Move unknown registry check to
10006 w32font_list_internal.
10007
8612b71a
AR
100082009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
10009
10010 Changes to remove Feval calls from GUI under NS.
10011
d8038940
JB
10012 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
10013 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
10014 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
10015
10016 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
10017 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
10018 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
10019 instead of NON_ASCII_KEYSTROKE_EVENT.
10020 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
10021 (EmacsApp-applicationShouldTerminate:): Query user.
10022 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
10023 instead of Feval.
10024
10025 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
10026
10027 * keyboard.c (kbd_buffer_get_event): Check for it.
10028 (keys_of_keyboard): Define lispy keys for
10029 ns-put/unput-working-text.
10030
10031 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
10032 versions.
10033 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
10034
6288ae55
CY
100352009-01-25 Chong Yidong <cyd@stupidchicken.com>
10036
10037 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 10038 setting current_buffer directly. (Bug#2044)
6288ae55 10039
289e7f8f
CY
100402009-01-24 Chong Yidong <cyd@stupidchicken.com>
10041
5ce87308 10042 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 10043 any work. (Bug#1952, bug#1990).
5ce87308 10044
64cc3cf6 10045 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 10046
b3243e6f
AR
100472009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
10048
10049 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
10050 (ns_no_defaults): New declaration.
10051 (main): Use it.
e0d2e69a 10052
d900b2af 10053 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 10054
d900b2af 10055 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 10056
d900b2af
AR
10057 * nsterm.m (ns_no_defaults): New variable.
10058 (ns_initialize): Don't read defaults when ns_no_defaults.
10059 (EmacsView-readSelectionFromPasteboard:)
10060 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 10061 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
10062 (ns_dumpglyphs_stretch): New function.
10063 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 10064 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 10065
e0d2e69a
AR
10066 * nsimage.m (setPixmapData:): Set to ignore image DPI.
10067
3ac71f5d
CY
100682009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
10069
10070 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
10071 call for Sparc64.
10072
3fe53a83
AR
100732009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
10074
10075 * nsfns.m:
10076 * nsgui.h:
10077 * nsmenu.m:
10078 * nsselect.m:
10079 * nsterm.h:
10080 * nsterm.m: Remove '23' comments that indicated code added during
10081 update from emacs-20 -> emacs-23.
10082
10f87c6f 100832009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
10084
10085 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 10086 ns_alternate_modifier. (Bug#1217)
a3b53a85 10087
c7cef62d
AR
10088 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
10089 Display all shortcuts, including those w/o super modifier.
10090
575fb8bd
AR
10091 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
10092
918b848b
CY
100932009-01-22 Chong Yidong <cyd@stupidchicken.com>
10094
10095 * fileio.c (Vwrite_region_post_annotation_function)
10096 (Vwrite_region_annotation_buffers): New vars.
10097 (build_annotations_unwind): Just reset
10098 Vwrite_region_annotation_buffers.
10099 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
10100 Call write-region-post-annotation-function.
10101 (build_annotations): Add to Vwrite_region_annotation_buffers if
10102 buffer changes.
10103
a39e2539
AR
101042009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10105
10106 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
10107 Tiger.
51d861de
SM
10108 * nsfns.m (ns_do_applescript):
10109 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 10110
35ed44db
AR
101112009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
10112
10113 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
10114
cbe0b5bf
AR
101152009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
10116
10117 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 10118
6049d3a0
AR
10119 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
10120
10121 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
10122 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
10123 handle Ctrl-tab. (Bug#1841)
10124 (ns_get_color): Use unsigned long long for scanned hex string value.
10125 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 10126 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 10127 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 10128 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 10129 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 10130 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 10131 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 10132
d3810c21 10133 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 10134 DPI. (Bug#1316)
d3810c21
AR
10135 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
10136 values in onTiger section.
4c7077c3 10137
e301e634
CY
101382009-01-19 Chong Yidong <cyd@stupidchicken.com>
10139
7f82490b
CY
10140 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
10141 Check return value of font_spec_from_name.
64cc3cf6 10142 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
10143
10144 * font.c (font_spec_from_name): Return Qnil if font name could not
10145 be parsed.
10146 (font_parse_name): Treat a `?' character as part of an XLFD.
10147
e301e634
CY
10148 * fns.c (Fsubstring): Doc fix.
10149
1c0db158
KH
101502009-01-19 Kenichi Handa <handa@m17n.org>
10151
51d861de 10152 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
10153 (ftfont_list): Likewise.
10154
acf20901
JB
101552009-01-18 Juanma Barranquero <lekktu@gmail.com>
10156
fff4e459
JB
10157 * dbusbind.c (Fdbus_register_signal):
10158 * process.c (conv_sockaddr_to_lisp):
10159 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
10160
acf20901
JB
10161 * callproc.c (Fgetenv_internal): Doc fix.
10162
e7abcdfb
CY
101632009-01-16 Chong Yidong <cyd@stupidchicken.com>
10164
10165 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
10166 it is not even used.
10167
b60861e6
GM
101682009-01-16 Glenn Morris <rgm@gnu.org>
10169
10170 * font.c (Ffont_variation_glyphs): Silence compiler.
10171
8db52afe
JB
101722009-01-15 Juanma Barranquero <lekktu@gmail.com>
10173
10174 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
10175 Reported by David Robinow <drobinow@gmail.com>.
10176
4cddb209
KH
101772009-01-15 Kenichi Handa <handa@m17n.org>
10178
51d861de 10179 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 10180
f247f67b
JR
101812009-01-14 Jason Rumney <jasonr@gnu.org>
10182
10183 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 10184 never a fontset. (Bug#1562)
f247f67b 10185
f56a4450
KH
101862009-01-14 Kenichi Handa <handa@m17n.org>
10187
10188 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 10189 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 10190
4e99855e
CY
101912009-01-13 Chong Yidong <cyd@stupidchicken.com>
10192
10193 * font.c (font_clear_prop): If clearing the family, clear the font
10194 width index too.
10195
fff4e459 10196 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 10197
24f01470
JB
101982009-01-12 Juanma Barranquero <lekktu@gmail.com>
10199
10200 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
10201 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
10202 functions, use sizeof.
10203
a41240a3
MR
102042009-01-12 Martin Rudalics <rudalics@gmx.at>
10205
10206 * keyboard.c (read_char): Fix case where last_nonmenu_event
10207 returned a bad value with submenus. (Bug#447)
10208
944636b8
CY
102092009-01-12 Chong Yidong <cyd@stupidchicken.com>
10210
10211 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
10212 family, clear the font width index too.
10213
0dad7c6f
JR
102142009-01-11 Jason Rumney <jasonr@gnu.org>
10215
10216 * keyboard.c (cmd_error_internal): Exit when errors occur before
10217 frame creation and not in daemon mode. (Bug#1836)
10218
7c2363af
CY
102192009-01-10 Chong Yidong <cyd@stupidchicken.com>
10220
10221 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
10222 of a display vector, backtrack.
10223 (try_window_reusing_current_matrix): Check glyph type before
10224 referencing charpos member.
10225
97b1b294
EZ
102262009-01-10 Eli Zaretskii <eliz@gnu.org>
10227
10228 Fix Bug #876:
10229
10230 * coding.c (inhibit_null_byte_detection): New variable.
10231 (detect_coding, detect_coding_system): Don't pay attention to null
10232 bytes if inhibit_null_byte_detection is non-zero.
51d861de 10233 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
10234 <inhibit-iso-escape-detection>: Doc fix.
10235
4624b6e3
JR
102362009-01-09 Jason Rumney <jasonr@gnu.org>
10237
10238 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 10239 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
10240 Only report Unicode Plane 2 fonts as unicode-sip.
10241
323b840c
CY
102422009-01-09 Chong Yidong <cyd@stupidchicken.com>
10243
51d861de
SM
10244 * xfaces.c (Fx_font_family_list): Delete function.
10245 Move compatibility version to faces.el.
323b840c 10246
51d861de 10247 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 10248
eba7400d
MR
102492009-01-09 Martin Rudalics <rudalics@gmx.at>
10250
10251 * frame.c (x_set_frame_parameters): Remember requested value for
10252 fullscreen before it's reset by the parameter handler.
10253
4b09796d
GM
102542009-01-09 Glenn Morris <rgm@gnu.org>
10255
10256 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 10257 (last_command_event): ... and update all users.
4b09796d
GM
10258 (last_input_char): For clarity, rename to...
10259 (last_input_event): ... and update all users.
10260 (last-command-char, last-input-char): Move to subr.el as aliases.
10261 * cmds.c, commands.h: Update for last_command_char rename.
10262
14ccea62
CY
102632009-01-08 Chong Yidong <cyd@stupidchicken.com>
10264
51d861de 10265 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 10266
5f004711
JR
102672009-01-08 Jason Rumney <jasonr@gnu.org>
10268
10269 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
10270 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
10271 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
10272 Don't declare.
fff4e459 10273 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
10274 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
10275
b71f6f73
KH
102762009-01-07 Kenichi Handa <handa@m17n.org>
10277
50b06221 10278 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 10279 remember the coding system used for decoding in
50b06221
KH
10280 coding_system (Bug#1039).
10281
b71f6f73 10282 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 10283 breaking the loop. (Bug#870)
b71f6f73
KH
10284 (decode_coding_utf_16, decode_coding_emacs_mule)
10285 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
10286 (decode_coding_charset): Likewise.
10287
56f668f7
MR
102882009-01-05 Martin Rudalics <rudalics@gmx.at>
10289
10290 * frame.c (x_set_frame_parameters): Make sure height (width) get
10291 applied when fullwidth (fullheight) is set. (Bug#1522)
10292
5da9424d
JB
102932009-01-04 Juanma Barranquero <lekktu@gmail.com>
10294
10295 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
10296 (utc_base): Declare as ULONGLONG, not long double.
10297 (convert_time_raw): Delete.
10298 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
10299 (initialize_utc_base): New function.
10300 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
10301 (convert_from_time_t): Use initialize_utc_base; compute result with
10302 64-bit arithmetic.
10303 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
10304
c4605e09
EZ
103052009-01-03 Eli Zaretskii <eliz@gnu.org>
10306
9acef61c 10307 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
10308 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
10309 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
10310 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
10311 [!subprocesses]: Define.
10312 (syms_of_process) [!subprocesses]: Intern and staticpro them.
10313 (Flist_system_processes, Fsystem_process_attributes)
10314 [!subprocesses]: Call list_system_processes and
10315 system_process_attributes instead of returning Qnil.
10316
9acef61c
JB
10317 * dosfns.c (system_process_attributes, list_system_processes):
10318 New functions.
c4605e09
EZ
10319
10320 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
10321
10322 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
10323 Don't use the default (no-op) implementation.
10324
8b7d0a16
JR
103252009-01-03 Jason Rumney <jasonr@gnu.org>
10326
a6d46bc1
JR
10327 * keyboard.c (parse_modifiers_uncached): Wheel events are
10328 clicks (bug#687).
10329
8b7d0a16
JR
10330 * w32term.c (x_query_colors, x_query_color): New functions.
10331
10332 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
10333 (svg_load_image): Cast returned pointers from dynamically loaded
10334 functions. Eliminate W32 specific code.
10335
bfe11752
DN
103362009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
10337
89e2438a
DN
10338 * nsfns.m (x_set_foreground_color, x_set_background_color)
10339 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
10340 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
10341 x_ prefix instead of ns_. Update references.
10342 (syms_of_nsfns): Add a FIXME comment.
10343
10344 * nsterm.m (x_set_cursor_type): New prototype.
10345 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
10346
bfe11752
DN
10347 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
10348 for Solaris instead of incorrectly providing Qutime and Qcutime.
10349
031da700
EZ
103502009-01-02 Eli Zaretskii <eliz@gnu.org>
10351
10352 * w32.c (process_times): Compute sum of utime and stime.
10353 (system_process_attributes): Add Qtime to the alist.
10354
10355 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
10356 and add them to the alist.
10357
10358 * process.c (top level) <Qtime, Qctime>: New variables.
10359 (syms_of_process): staticpro them.
10360 (Fsystem_process_attributes): Add their documentation to the doc
10361 string.
10362
10363 * process.h: Declare Qtime and Qctime.
10364
df23bf08
JR
103652009-01-02 Jason Rumney <jasonr@gnu.org>
10366
9acef61c 10367 * image.c (Qgobject): New symbol.
df23bf08
JR
10368 (syms_of_image): Initialize it.
10369 (init_svg_functions): Load some functions from gobject library.
10370
5bbdf7aa
DN
103712009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
10372
10373 * frame.c (make_terminal_frame): Remove redundant code and useless
10374 block.
10375
63136da6
AS
103762009-01-01 Andreas Schwab <schwab@suse.de>
10377
10378 * process.c (conv_sockaddr_to_lisp): Add workaround for
10379 getsockname bug on BSD.
10380
9ef69046
CY
103812009-01-01 Chong Yidong <cyd@stupidchicken.com>
10382
d6fafbe0
CY
10383 * xfns.c (x_create_tip_frame): Set border width of the X window.
10384
51d861de 10385 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 10386
f9c34147
JR
103872009-01-01 Jason Rumney <jasonr@gnu.org>
10388
9acef61c 10389 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
10390 Don't block input, as per earlier xterm.c changes.
10391
f5497e45
AR
103922008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
10393
10394 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
10395 (ns_appkit_version_int): New function.
10396 (x-server-version): Use ns_appkit_version_int and follow 21+
10397 convention of returning 3 integers.
10398
c19cab20
KH
103992008-12-30 Kenichi Handa <handa@m17n.org>
10400
10401 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
10402 (CHAR_SURROGATE_PAIR_P): New macro.
10403
10404 * font.h (struct font_driver): New member get_variation_glyphs.
10405
9acef61c 10406 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
10407 (Ffont_variation_glyphs): New function.
10408 (syms_of_font): Defsubr it.
10409
10410 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
10411 ftfont_variation_glyphs.
10412 (setup_otf_gstring): New function.
10413 (ftfont_drive_otf): Use it.
10414 (ftfont_shape_by_flt): Handle variation selector.
10415 (ftfont_variation_glyphs): New function.
10416
28cd591f
MR
104172008-12-30 Martin Rudalics <rudalics@gmx.at>
10418
10419 * frame.c (Vemacs_iconified): Remove.
10420
7f714baf
JR
104212008-12-30 Jason Rumney <jasonr@gnu.org>
10422
10423 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 10424 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 10425
9d2d22ab
CY
104262008-12-30 Chong Yidong <cyd@stupidchicken.com>
10427
10428 * indent.c (Fvertical_motion): Don't advance iterator if we have
10429 reseated to the desired position.
10430
10431 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
10432 checking for pos match.
10433
545312c2
KH
104342008-12-30 Kenichi Handa <handa@m17n.org>
10435
1ede3eb6
KH
10436 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
10437 just get the low 8-bit of the code.
10438
545312c2
KH
10439 * font.c (font_intern_prop): Validate str as multibyte.
10440
bd7bbf29
DN
104412008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10442
31e0750e
DN
10443 * dispextern.h (struct face): Move lface and hash from the middle
10444 of bitfields.
10445
bd7bbf29
DN
10446 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
10447
b5672e7c
DN
104482008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
10449
10450 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
10451 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
10452 instead of intervals.h.
10453
d704470f
AS
104542008-12-26 Andreas Schwab <schwab@suse.de>
10455
10456 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
10457 cons.
10458
54b33868
MR
104592008-12-26 Martin Rudalics <rudalics@gmx.at>
10460
10461 * textprop.c (Qminibuffer_prompt): New variable.
10462 (syms_of_textprop): Initialize it.
10463 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
10464 in minibuffer-prompt face. (Bug#1662)
10465
40b615d6
JR
104662008-12-25 Jason Rumney <jasonr@gnu.org>
10467
10468 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
10469
baae5c2d
JR
104702008-12-24 Jason Rumney <jasonr@gnu.org>
10471
10472 * ralloc.c (r_alloc_reset_variable): New function.
10473
10474 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 10475 record of what points where. (Bug#716)
baae5c2d 10476
a9051c88
DN
104772008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
10478
10479 * minibuf.c (read_minibuf): Follow the non-interactive case when
10480 running as a daemon, before detaching.
10481
8b146312
AS
104822008-12-22 Andreas Schwab <schwab@suse.de>
10483
10484 * buffer.c (init_buffer): Use realloc instead of xrealloc.
10485 * gtkutil.c (free_widget_value): Use xfree instead of free.
10486
56f2de10
MR
104872008-12-22 Martin Rudalics <rudalics@gmx.at>
10488
10489 * frame.c (delete_frame): New function derived from
10490 Fdelete_frame to handle Qnoelisp value for FORCE argument.
10491 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
10492 (Fdelete_frame): Call delete_frame. Remove line from doc-string
10493 saying that FORCE non-nil doesn't run `delete-frame-functions'.
10494 * frame.h: Extern delete_frame.
10495 * window.c (window_loop):
10496 * terminal.c (delete_terminal):
10497 * xterm.c (x_connection_closed):
10498 * xfns.c (Fx_hide_tip):
9acef61c 10499 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 10500
1fc200d6
JR
105012008-12-21 Jason Rumney <jasonr@gnu.org>
10502
10503 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
10504 when character maps to .notdef character.
10505
5e252df2
SM
105062008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
10507
10508 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
10509
99b72cc4
JR
105102008-12-20 Jason Rumney <jasonr@gnu.org>
10511
10512 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 10513 a graphical frame on Windows. (Bug#1325)
99b72cc4 10514
acc49a52
JD
105152008-12-20 Jan Djärv <jan.h.d@swipnet.se>
10516
10517 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
10518
6ea15123
CY
105192008-12-20 Chong Yidong <cyd@stupidchicken.com>
10520
10521 * minibuf.c (Fread_buffer): Doc fix.
10522
b2dab6c8
JR
105232008-12-20 Jason Rumney <jasonr@gnu.org>
10524
54ea0c87 10525 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 10526 server name in UNC paths. (Bug#719)
54ea0c87 10527
b2dab6c8 10528 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 10529 charbuf. (Bug#1035)
b2dab6c8 10530
6d1921be
DN
105312008-12-19 Daniel Engeler <engeler@gmail.com>
10532
10533 * sysdep.c (serial_configure): Fix typo.
10534
53934c98
DN
105352008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10536
10537 * sysdep.c: Include alloca.h.
f4f634e8
DN
10538 (system_process_attributes): Add implementation for Solaris.
10539
10540 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 10541
06e111a6
DN
105422008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
10543
10544 Reorganize implementation of Flist_system_processes and
10545 Fsystem_process_attributes. No functional changes.
10546 * process.c: Don't #include pwd.h, grp.h and limits.h.
10547 (Flist_system_processes): Just call list_system_processes.
10548 (Fsystem_process_attributes): Just call system_process_attributes.
10549 (procfs_list_system_processes, time_from_jiffies)
10550 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
10551 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
10552
10553 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
10554 (list_system_processes): Rename from
10555 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
10556 Provide a do nothing implementation.
10557 (system_process_attributes): Rename from
10558 procfs_list_system_processes.
10559 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 10560 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
10561
10562 * w32.c (list_system_processes): Rename from
10563 w32_list_system_processes.
10564 (system_process_attributes): Rename from
10565 w32_system_process_attributes.
10566
10567 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
10568
10569 * process.h (w32_list_system_processes)
10570 (w32_system_process_attributes): Remove.
362654a6
JB
10571 (list_system_processes, system_process_attributes):
10572 New prototypes.
06e111a6 10573
6a705b23
KH
105742008-12-19 Kenichi Handa <handa@m17n.org>
10575
10576 * xfont.c (xfont_decode_coding_xlfd): New function.
10577 (xfont_encode_coding_xlfd): New function.
10578 (xfont_list_pattern): Decode XLFD by iso-8859-1.
10579 (xfont_list): Decode and encode XLFD by iso-8859-1.
10580 (xfont_match): Likewise.
10581 (xfont_list_family): Likewise.
10582 (xfont_open): Likewise.
10583
d66c0241 10584 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
10585 names are utf-8.
10586
d66c0241 10587 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
10588 names are utf-8.
10589
5a130941
JD
105902008-12-18 Jan Djärv <jan.h.d@swipnet.se>
10591
10592 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
10593 changed.
bfd20325
JD
10594 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
10595 clicked on a detached tool bar button.
5a130941 10596
fd95644b
DN
105972008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
10598
10599 * emacs.c (main): Print and error and exit when no data is read
10600 from the pipe.
10601
e6eee6ae
JR
106022008-12-17 Jason Rumney <jasonr@gnu.org>
10603
10604 * w32font.c (w32font_has_char): Always return -1.
10605
a35dd56b
KH
106062008-12-16 Kenichi Handa <handa@m17n.org>
10607
10608 * font.c (font_open_entity): Fix previous change.
10609
0e3635c2
DN
106102008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
10611
10612 * process.c: Include <limits.h>.
10613
d4835507 106142008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
10615
10616 * font.c (font_update_drivers): Fix mistake in reconstructing the
10617 driver list.
10618
106192008-12-16 Chong Yidong <cyd@stupidchicken.com>
10620
10621 * font.c (font_clear_cache): Fix format of font cache data.
10622
e2cbc401
CY
106232008-12-15 Chong Yidong <cyd@stupidchicken.com>
10624
10625 * xftfont.c (xftfont_open): Free Xft font pattern if
10626 XftFontOpenPattern fails.
10627
10628 * xterm.c (x_free_frame_resources): Remove extraneous call to
10629 free_frame_faces.
10630
b131d535
CY
106312008-12-13 Chong Yidong <cyd@stupidchicken.com>
10632
10633 * xterm.c (x_delete_display): Move xim_close_dpy call to
10634 x_delete_terminal.
10635 (x_delete_terminal): Call xim_close_dpy.
10636
e6df5336
JR
106372008-12-13 Jason Rumney <jasonr@gnu.org>
10638
10639 * w32font.c (intern_font_name): New function.
10640 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
10641 (w32font_open_internal, Fx_select_font): Decode font name.
10642 (fill_in_logfont, list_all_matching_fonts): Encode font name.
10643
10644 * w32font.h (intern_font_name): Declare new function.
10645
10646 * w32uniscribe.c (add_opentype_font_name_to_list):
10647 Use intern_font_name.
10648
20d68145
CY
106492008-12-13 Chong Yidong <cyd@stupidchicken.com>
10650
9f2554de
CY
10651 * frame.c (Fdelete_frame): Call free_font_driver_list.
10652
3d9bec9a
CY
10653 * font.c (free_font_driver_list): Implement missing function.
10654
20d68145
CY
10655 * w32term.c (w32_term_init): Don't initialize the image cache
10656 here; it will be done in init_frame_faces.
10657
10658 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
10659 (struct x_display_info): Remove unused member null_pixel. New
10660 member xim_callback_data.
10661
10662 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
10663 (xim_initialize): Save pointer to callback function data.
10664 (xim_close_dpy): Free callback function data. Call XCloseIM,
10665 reverting 2008-11-04 change by David Smith.
10666 (x_term_init): Don't initialize the image cache here; it will be
10667 done in init_frame_faces. Remove ancient "null_pixel" cruft.
10668 (x_delete_display): Free x_dnd_atoms member.
10669
96f9306b
KH
106702008-12-13 Kenichi Handa <handa@m17n.org>
10671
6dec9044
JB
10672 * font.c (font_rescale_ratio): Moved from xfaces.c.
10673 Argument type changed. Handle a font-spec too.
96f9306b 10674 (font_score): Check Vface_font_rescale_alist.
6dec9044 10675 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
10676
10677 * xfaces.c (font_rescale_ratio): Moved to font.c.
10678
8d5b4964
CY
106792008-12-13 Chong Yidong <cyd@stupidchicken.com>
10680
10681 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
10682
e6df5336
JR
106832008-12-12 Jason Rumney <jasonr@gnu.org>
10684
10685 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
10686 Vwindow_system_version to the real w32 major version.
10687
97c6058a
DN
106882008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
10689
10690 * term.c (init_tty): Move setting the terminal name before the
10691 potential user: maybe_fatal.
10692
ec4e88d7
CY
106932008-12-11 Chong Yidong <cyd@stupidchicken.com>
10694
d4835507
JB
10695 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
10696 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 10697
b4233ec9
JR
106982008-12-11 Jason Rumney <jasonr@gnu.org>
10699
8ec71e23 10700 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 10701 SYMBOL_CHARSET. (Bug#547)
8ec71e23 10702
b4233ec9 10703 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 10704 size for surrogates. (Bug#1096, bug#872)
b4233ec9 10705
011a0143
JB
107062008-12-11 Juanma Barranquero <lekktu@gmail.com>
10707
10708 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
10709
3c309f34
JB
107102008-12-11 Juanma Barranquero <lekktu@gmail.com>
10711
10712 * process.c (Fsystem_process_attributes, syms_of_process):
10713 Fix typo in name of Ssystem_process_attributes.
10714 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
10715
fedc6ab5
JB
107162008-12-11 Juanma Barranquero <lekktu@gmail.com>
10717
10718 * syntax.c (Fmodify_syntax_entry): Doc fix.
10719
ba3de0e8
JB
107202008-12-10 Juanma Barranquero <lekktu@gmail.com>
10721
10722 * font.c (Ffont_spec): Move usage to end of docstring.
10723
174f1c74
JR
107242008-12-10 Jason Rumney <jasonr@gnu.org>
10725
10726 * w32font.c (Qcham): New symbol.
10727 (font_supported_scripts): Add cham, and comments for other new
10728 scripts in bitfield from OpenType spec.
9d32f818
JR
10729 (add_font_entity_to_list): Limit unicode-sip fonts to those that
10730 contain characters beyond the bmp.
174f1c74 10731
7b649478
KH
107322008-12-10 Kenichi Handa <handa@m17n.org>
10733
10734 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 10735 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
10736 Qunicode_sip.
10737
2133e2d1
JB
107382008-12-10 Juanma Barranquero <lekktu@gmail.com>
10739
10740 * coding.c (QCdefault_char): Rename from QCdefalut_char.
10741 (Fcoding_system_put): Use QCdefault_char.
10742 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
10743
9af886ee
CY
107442008-12-09 Chong Yidong <cyd@stupidchicken.com>
10745
74d819eb
CY
10746 * xftfont.c (syms_of_xftfont): Fix typo.
10747
4ccfa1c0 10748 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 10749
7c19d3ae
DN
107502008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
10751
10752 * emacs.c (main): Close daemon_pipe on exec.
10753
567826bb
CY
107542008-12-08 Chong Yidong <cyd@stupidchicken.com>
10755
10756 * termchar.h (struct tty): New members termcap_term_buffer and
10757 termcap_strings_buffer.
10758
10759 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 10760 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
10761 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
10762 All callers changed.
10763 (init_tty): Store termcap data and string buffers in new struct
10764 tty members termcap_term_buffer and termcap_strings_buffer.
10765 (delete_tty): Free them.
4ccfa1c0 10766 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 10767
aa96c42b
SZ
107682008-12-07 Seiji Zenitani <zenitani@mac.com>
10769
10770 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 10771 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 10772
b7e1d896
CY
107732008-12-06 Chong Yidong <cyd@stupidchicken.com>
10774
10775 * coding.c (make_conversion_work_buffer): Disable buffer
10776 modification hooks in the work buffer.
10777
b5ec91a5
EZ
107782008-12-05 Eli Zaretskii <eliz@gnu.org>
10779
10780 * process.c (procfs_system_process_attributes): If `nread' has a
10781 negative value, assign zero to it.
10782
a5d2a52b
CY
107832008-12-05 Chong Yidong <cyd@stupidchicken.com>
10784
68c5540b 10785 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 10786
7bf1bb21
KH
107872008-12-05 Kenichi Handa <handa@m17n.org>
10788
10789 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
10790 second character is a combining character.
10791
2fdc7d00
EZ
107922008-12-05 Eli Zaretskii <eliz@gnu.org>
10793
10794 * process.c (procfs_system_process_attributes): Don't use cmd,
10795 cmdsize, and q without initializing them first.
10796
bf6bfba8
JR
107972008-12-04 Jason Rumney <jasonr@gnu.org>
10798
10799 * w32font.c (w32font_draw): Initialize orig_clip before getting
10800 it, and delete it when finished.
10801
a3b1a468
DN
108022008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
10803
10804 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
10805 case when running as a daemon before detaching.
10806
8b8be8eb
JB
108072008-12-03 Juanma Barranquero <lekktu@gmail.com>
10808
805f2638 10809 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 10810
b1bde622
KH
108112008-12-03 Kenichi Handa <handa@m17n.org>
10812
e500c47d
KH
10813 * font.c (font_at): Set `multibyte' at first.
10814
ca516334
KH
10815 * coding.c (decode_coding_charset): Check type of an element of
10816 vector VALIDS.
7bf1bb21 10817 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 10818
4ccfa1c0 10819 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
10820 (font_for_char): Likewise.
10821
1e5ecd37
CY
108222008-12-03 Chong Yidong <cyd@stupidchicken.com>
10823
d5b01609 10824 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
10825 (font_update_lface): Handle fonts with corrupted size specs,
10826 i.e. non-int and non-float.
d5b01609 10827
11e3a6e4 10828 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 10829 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 10830 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 10831
ab06788b
CY
10832 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
10833
1e5ecd37 10834 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 10835 underline_minimum_offset for underline position.
1e5ecd37 10836
63c125ab
DN
108372008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
10838
10839 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
10840
10841 * character.c (c_string_width): Specify the type for LEN.
10842
3a8406e1
KH
108432008-12-03 Kenichi Handa <handa@m17n.org>
10844
4ccfa1c0 10845 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 10846 (decode_coding_utf_8): Likewise.
4ccfa1c0 10847 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 10848 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 10849
651df7d9
CY
108502008-12-02 Chong Yidong <cyd@stupidchicken.com>
10851
10852 * keyboard.c (make_lispy_position): Only use PT if the selected
10853 window is current.
10854
1f625c6c
AS
108552008-12-02 Andreas Schwab <schwab@suse.de>
10856
f7741ce9
AS
10857 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
10858
1f625c6c
AS
10859 * doprnt.c (doprnt1): Fix size of charbuf.
10860
92bc2678
CY
108612008-12-02 Chong Yidong <cyd@stupidchicken.com>
10862
10863 * keyboard.c (timer_check): Revert last change.
10864
93b9e8cc
JB
108652008-12-02 Juanma Barranquero <lekktu@gmail.com>
10866
10867 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
10868
fd7a37d5
JB
108692008-12-01 Juanma Barranquero <lekktu@gmail.com>
10870
10871 * makefile.w32-in: Update dependencies.
10872 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
10873
c115043b
AS
108742008-12-01 Andreas Schwab <schwab@suse.de>
10875
10876 * font.c (register_font_driver): Use xmalloc.
10877 (font_put_frame_data): Likewise.
10878
f5668d2a
CY
108792008-12-01 Chong Yidong <cyd@stupidchicken.com>
10880
860d96be
CY
10881 * xfaces.c (realize_x_face): Make abort condition clearer.
10882
f5668d2a
CY
10883 * gtkutil.c (update_frame_tool_bar): Initialize variable.
10884
379c17e7
CY
108852008-11-30 Chong Yidong <cyd@stupidchicken.com>
10886
10887 * keyboard.c (timer_check): After a timer runs, ensure that the
10888 selected window's buffer is current.
10889
35f36d65
JB
108902008-11-30 Juanma Barranquero <lekktu@gmail.com>
10891
f952c61c
JB
10892 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
10893 It was accidentally restored by the Unicode merge.
10894
35f36d65
JB
10895 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
10896
b23077df
JB
108972008-11-29 Juanma Barranquero <lekktu@gmail.com>
10898
10899 * w32proc.c: Include "coding.h".
10900 (Fw32_short_file_name): Encode filename passed to Windows API.
10901 (Fw32_long_file_name): Encode filename passed to Windows API and
10902 decode back the result. (Bug#1433)
10903
b8ebe9dd
KH
109042008-11-29 Kenichi Handa <handa@m17n.org>
10905
8cc53f96
KH
10906 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
10907 not before accessing it.
10908
b8ebe9dd
KH
10909 * charset.c (Fdefine_charset_internal): After calculating
10910 min_char, max_char, and fastmap, copy the charset structure again.
10911 (encode_char): Fix the previous change.
10912
59bc82c0
SZ
109132008-11-28 Seiji Zenitani <zenitani@mac.com>
10914
10915 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
10916
10917 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
10918
10919 * nsterm.m (x_set_frame_alpha): New function.
10920
32247e3d
EZ
109212008-11-27 Eli Zaretskii <eliz@gnu.org>
10922
10923 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
10924
b003e5ff
JB
109252008-11-27 Juanma Barranquero <lekktu@gmail.com>
10926
10927 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
10928 pointer to check_face_name.
10929
708550f5
KH
109302008-11-27 Kenichi Handa <handa@m17n.org>
10931
10932 * category.h (SET_CATEGORY_SET): Call set_category_set.
10933 (set_category_set): Extern it.
10934
10935 * category.c (hash_get_category_set): New function.
10936 (Fmodify_category_entry): Adjusted for the change of
10937 char_table_ref_and_range. Call hash_get_category_set to get a
10938 category set to store in the table.
10939
10940 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
10941 Funify_charset.
10942
2ae37cf0 10943 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
10944 (DECODE_CHAR): Check if the decoder vector is ready.
10945 (ENCODE_CHAR): Check if the encoder char-table is ready.
10946 (maybe_unify_char): Extern it.
10947
10948 * charset.c (Vchar_unified_charset_table): Delete it.
10949 (inhibit_load_charset_map): New variable.
10950 (temp_charset_work): New variable.
10951 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
10952 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
10953 New macros.
10954 (load_charset_map): Meaning of control_flag changed. If
10955 inhibit_load_charset_map is nonzero, setup a table in
10956 temp_charset_work.
10957 (load_charset): New argument control_flag.
10958 (map_charset_for_dump): New function.
10959 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
10960 map_charset_for_dump.
10961 (Fdefine_charset_internal): If the charset method is MAP, load
10962 mapping tables by calling load_charset.
10963 (Funify_charset): Don't load a mapping table but directly set
10964 Vchar_unify_table.
10965 (maybe_unify_char): New function.
10966 (decode_char): Don't handle the deleted method MAP_DEFERRED.
10967 Handle the case of inhibit_load_charset_map being nonzero.
10968 (encode_char): Don't handle the deleted method MAP_DEFERRED.
10969 Handle the case of inhibit_load_charset_map being nonzero.
10970 (Fclear_charset_maps): Just free temp_charset_work.
10971 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
10972 variable.
10973
10974 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
10975 change of char_table_ref_and_range.
10976 (char_table_ref_and_range): Change the meaning of argument FROM
10977 and TO. Now the caller must provide initial values for *FROM
10978 and *TO.
10979
10980 * fontset.c (fontset_add): Adjusted for the change of
10981 char_table_ref_and_range.
10982 (fontset_get_font_group): Likewise.
10983 (Ffontset_info): Likewise.
10984
10985 * keymap.c (describe_vector): Adjusted for the change of
10986 char_table_ref_and_range. For char-table, put boundary between
10987 non-ASCII and 8-bit characters.
10988
10989 * print.c (print_object): For bool-vector, delete unnecessary
10990 check of ASCII_BYTE_P.
10991
9196133b
JR
109922008-11-26 Jason Rumney <jasonr@gnu.org>
10993
10994 * w32font.c (w32font_open_internal): Don't include external
9acef61c 10995 leading in font height. (Bug#879)
9196133b 10996
9f688acf
GM
109972008-11-26 Glenn Morris <rgm@gnu.org>
10998
10999 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
11000 redefinition with ifdef. (Bug#1383)
11001
90d19aff
AR
110022008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11003
11004 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
11005
4ccfa1c0 110062008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
11007
11008 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
11009 New EmacsView methods.
11010 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
11011 Fixes bug #1048,1357,1414.
11012
110132008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
11014
11015 Fix bug #1362.
11016 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
11017 is not an indexed color.
11018 * nsterm.m (free_indexed_color): Add argument checking.
11019 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
11020
e7d5ecb3
CY
110212008-11-24 Chong Yidong <cyd@stupidchicken.com>
11022
11023 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
11024 Document confirm-after-completion value for
11025 minibuffer-completion-confirm.
11026
c285743c
JR
110272008-11-24 Jason Rumney <jasonr@gnu.org>
11028
11029 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
11030 warning.
11031
b0857706
JR
110322008-11-23 Jason Rumney <jasonr@gnu.org>
11033
11034 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
11035 restored before returning.
11036
11037 * w32font.c (check_face_name): New function.
11038 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 11039 fonts. (Bug#642)
b0857706 11040
ee50ff07
MR
110412008-11-22 Martin Rudalics <rudalics@gmx.at>
11042
11043 * buffer.c (Fswitch_to_buffer): Reword and mention new option
11044 confirm-nonexistent-file-or-buffer in doc-string.
11045
b8ff72fa
SM
110462008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
11047
11048 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
11049 Fix copy/paste typo. Add checks.
11050
cee53ed4
KH
110512008-11-21 Kenichi Handa <handa@m17n.org>
11052
11053 * coding.c (detect_coding_iso_2022): Reject invalid composition
11054 sequence.
11055 (DECODE_COMPOSITION_START): If the current source is the last
11056 block, and the current composition doesn't end, regard this
11057 sequence as invalid.
11058 (decode_coding_iso_2022): Handle invalid composition sequence.
11059
f6ef1e65
MR
110602008-11-20 Martin Rudalics <rudalics@gmx.at>
11061
11062 * window.c (coordinates_in_window): Don't return
11063 ON_VERTICAL_BORDER for the rightmost position of a mode/header
11064 line when the window is not the rightmost one. (Bug#1372)
11065
e08b1705
MR
110662008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
11067
11068 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
11069
ad98e89f
EZ
110702008-11-15 Eli Zaretskii <eliz@gnu.org>
11071
11072 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
11073 and bright_bg if noninteractive is non-zero.
11074
fb098a4b
CY
110752008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11076
11077 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
11078 x_draw_glyph_string_background.
11079
11080 * w32term.c (x_draw_glyph_string): Likewise.
11081
ce952b6e
CY
110822008-11-15 Chong Yidong <cyd@stupidchicken.com>
11083
11084 * xterm.c (x_draw_glyph_string): Stop drawing the background of
11085 the next glyph string once past the overhang width.
11086
11087 * nsterm.m (ns_draw_glyph_string): Likewise.
11088
11089 * w32term.c (x_draw_glyph_string): Likewise.
11090
26ea7079
CY
110912008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
11092
11093 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
11094 double file close.
11095
1c33c906
MR
110962008-11-14 Martin Rudalics <rudalics@gmx.at>
11097
11098 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
11099 dedicated status of window before attempting to display another
11100 buffer in it.
11101
8fc29035
JB
111022008-11-14 Juanma Barranquero <lekktu@gmail.com>
11103
11104 * msdos.c (Fmsdos_long_file_names):
11105 (syms_of_msdos) <dos-unsupported-char-glyph>:
11106 * dosfns.c (Fint86): Fix typos in docstrings.
11107
55fb4286
EZ
111082008-11-14 Eli Zaretskii <eliz@gnu.org>
11109
11110 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
11111
3fda0315
KY
111122008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
11113
11114 * puresize.h (BASE_PURESIZE): Increase to 1260000.
11115
7e849c17
CY
111162008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
11117
11118 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
11119
11120 * frame.h: Negative alpha means "don't touch".
11121
11122 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
11123
11124 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
11125
b9fd67bd
DN
111262008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
11127
11128 * hftctl.c:
11129 * chpdef.h:
11130 * acldef.h: Remove files used only for systems no longer supported.
11131
11132 * Makefile.in: Fix .o alphabetical ordering.
11133 (hftctl.o): Remove dependency, file removed.
11134 (keymap.o, print.o): Depend on charset.h.
11135
d5998e03
KH
111362008-11-10 Kenichi Handa <handa@m17n.org>
11137
2ae37cf0 11138 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 11139
be70e183
CY
111402008-11-08 Chong Yidong <cyd@stupidchicken.com>
11141
11142 * dired.c (file_name_completion): If completion_ignore_case is
11143 enabled, ignore case when checking completion-regexp-list.
11144
7cf94eac
EZ
111452008-11-08 Eli Zaretskii <eliz@gnu.org>
11146
11147 * vm-limit.c (get_lim_data): Fix last change.
11148
ee107a89
KH
111492008-11-08 Kenichi Handa <handa@m17n.org>
11150
11151 * character.c (Fget_byte): New function.
11152 (syms_of_character): Defsubr Fget_byte.
11153
5fd15622
CY
111542008-11-07 Chong Yidong <cyd@stupidchicken.com>
11155
11156 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
11157 cursor position is valid after scrolling.
11158
13d62fad
JB
111592008-11-06 Juanma Barranquero <lekktu@gmail.com>
11160
11161 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
11162
a1dd2936
GM
111632008-11-06 Glenn Morris <rgm@gnu.org>
11164
11165 * xterm.c (handle_one_xevent): Don't let popup menus cause
11166 mouse-autoselect-window related window switching. (Bug#1261)
11167
860cd236
CY
111682008-11-04 David Smith <davidsmith@acm.org> (tiny change)
11169
11170 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
11171
653a3150
AS
111722008-11-04 Andreas Schwab <schwab@suse.de>
11173
11174 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
11175
870f5cac
CY
111762008-11-03 Chong Yidong <cyd@stupidchicken.com>
11177
11178 * xfns.c (Fx_wm_set_size_hint): New function.
11179
1e02f3cb
MR
111802008-11-03 Martin Rudalics <rudalics@gmx.at>
11181
11182 * textprop.c (Fprevious_single_char_property_change): Return 0
11183 when there's no change in a string. (Bug#1301)
11184
e630dfc6
MR
111852008-11-02 Martin Rudalics <rudalics@gmx.at>
11186
11187 * frame.c (do_switch_frame): New argument NORECORD passed to
11188 Fselect_window.
11189 (Fselect_frame): New argument NORECORD passed to
11190 do_switch_frame.
11191 (Fset_frame_selected_window): New argument NORECORD passed to
11192 Fselect_frame.
11193 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
11194 in call of do_switch_frame.
11195 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
11196 Handle NORECORD argument in call of Fselect_frame.
11197 * lisp.h (do_switch_frame, Fselect_frame)
11198 (Fset_frame_selected_window): Adjust declarations.
11199 * window.c (select_frame_norecord): New function.
11200 (run_window_configuration_change_hook): Use it and call
11201 Fselect_frame with NORECORD set.
11202 (Fselect_window): Pass NORECORD to Fselect_frame.
11203 (Fset_window_configuration): Handle NORECORD argument in call of
11204 do_switch_frame.
11205 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
11206 Fset_frame_selected_window.
11207 * keyboard.c (command_loop_1): Handle NORECORD in call of
11208 Fselect_frame (currently ifdefd).
11209
9020b223
GM
112102008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
11211
11212 * emacs.c (USAGE2): Untabify.
11213
793ffee8
SM
112142008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
11215
11216 * composite.c (fill_gstring_header): Fix copy/paste typo.
11217
ab6d1131
MR
112182008-10-31 Martin Rudalics <rudalics@gmx.at>
11219
11220 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
11221 (Fother_window): Rename argument and rewrite doc-string.
11222 (select_window_norecord): Fix return value. (Bug#1276)
11223
601a9cf1
JB
112242008-10-30 Juanma Barranquero <lekktu@gmail.com>
11225
11226 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
11227 new frames overriding foreground for tooltips. Based on similar patch
11228 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
11229
813b0652
CY
112302008-10-29 Chong Yidong <cyd@stupidchicken.com>
11231
11232 * emacs.c (Fdaemon_initialized): Initialize nfd.
11233
4414f58f
MR
112342008-10-29 Martin Rudalics <rudalics@gmx.at>
11235
11236 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
11237 (Fwindow_text_height): Clarify doc-strings.
11238 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
11239 doc-string of window-scroll-functions.
11240
ecdcaa09
RS
112412008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
11242
11243 * category.c (syms_of_category): Fix typo in docstring.
11244
23fe745a
JB
112452008-10-28 Juanma Barranquero <lekktu@gmail.com>
11246
11247 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
11248 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
11249 Fix typos in docstrings.
11250
ff808935
DN
112512008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
11252
11253 * emacs.c (daemon_pipe): Make non-static.
11254 (IS_DAEMON): Move definition ...
11255 * lisp.h (IS_DAEMON): ... here.
11256 (daemon_pipe): Declare.
11257 (is_daemon): Remove.
11258 * dispnew.c (init_display): Use IS_DAEMON.
11259
fc012771
SM
112602008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
11261
11262 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
11263 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
11264
11265 * emacs.c (is_daemon): Remove.
11266 (main): Don't set is_daemon.
11267 (IS_DAEMON): New macro.
11268 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 11269 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
11270 parent exits.
11271 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
11272
d8bdbe6f
CY
112732008-10-27 Chong Yidong <cyd@stupidchicken.com>
11274
d1a072bf
CY
11275 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
11276 over-sized glyph, draw it with the default glyph width.
11277
e2e325aa
CY
11278 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11279 glyph, draw it with the default glyph width.
11280
11281 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
11282 glyph, draw it with the default glyph width.
11283
d8bdbe6f
CY
11284 * xdisp.c (try_scrolling): When computing the distance from the
11285 scroll margin to PT, try moving some distance past the window
11286 bottom before giving up.
11287
7bfac547
MR
112882008-10-27 Martin Rudalics <rudalics@gmx.at>
11289
11290 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
11291 (Fset_window_buffer): Explain in doc-string that a window can be
11292 "strongly" dedicated to its buffer.
11293
4ff029f6
DN
112942008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
11295
11296 * emacs.c (daemon_name): New variable.
11297 (main): Deal with --daemon=SERVER_NAME.
11298 (Fdaemonp): Return a name if one was passed to --daemon.
11299
5790ef40
DN
113002008-10-26 Romain Francoise <romain@orebokech.com>
11301
f9bd0df9 11302 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
11303 (main): Create a pipe before forking, make the parent exit only after
11304 the child has closed its end of the pipe. Move closing the
11305 descriptors ...
11306 (Fdaemon_initialized): ... here. New function.
11307
f5385255
SM
113082008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
11309
4d632321
SM
11310 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
11311 the previous unoptimized table.
11312
f5385255
SM
11313 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
11314 the distinction between non-nil and non-t value of `dedicated'.
11315
6c56a0f3
CY
113162008-10-25 Chong Yidong <cyd@stupidchicken.com>
11317
11318 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 11319 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 11320
fec89261
MR
113212008-10-25 Martin Rudalics <rudalics@gmx.at>
11322
11323 * window.c (Fget_buffer_window, Fdelete_windows_on)
11324 (Freplace_buffer_in_windows): Make buffer argument optional and
11325 rename to buffer_or_name.
11326
34fcddd0
CY
113272008-10-24 Chong Yidong <cyd@stupidchicken.com>
11328
f5385255
SM
11329 * xdisp.c (handle_single_display_spec, handle_display_prop):
11330 Undo 2005-05-16 change.
34fcddd0
CY
11331 (handle_stop): Pop iterator if it's loaded with an empty string.
11332 (get_overlay_strings_1): Don't save iterator if it's loaded with
11333 an empty string (bug#1201).
11334
064766f2
KH
113352008-10-24 Kenichi Handa <handa@m17n.org>
11336
11337 * ftfont.c (ftfont_otf_features): Fix previous change.
11338 (ftfont_otf_capability): Check FeatureList.FeatureCount before
11339 calling ftfont_otf_features.
11340
f9bd0df9 113412008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
11342
11343 * font.c (font_match_p): Fix for the case that a vector of
11344 characters is in script-representative-chars.
11345
1dae9197
MA
113462008-10-24 Michael Albinus <michael.albinus@gmx.de>
11347
11348 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 11349 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
11350 (xd_read_queued_messages): Catch Qdbus_error from the macros.
11351 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 11352 macro. (Bug#1186)
1dae9197 11353
f9bd0df9 113542008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
11355
11356 * s/sol2-10.h: New file.
11357
878a4584
JB
113582008-10-23 Juanma Barranquero <lekktu@gmail.com>
11359
11360 * xdisp.c (fill_glyph_string): Fix typo in source (though the
11361 poor beast has survived 9+ years and the jump from xterm.c!).
11362
cd265ca6
MR
113632008-10-23 Martin Rudalics <rudalics@gmx.at>
11364
11365 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
11366 Reword doc-string.
f5385255 11367 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 11368
472a4dc9
JB
113692008-10-23 Juanma Barranquero <lekktu@gmail.com>
11370
11371 * character.c (syms_of_character) <script-representative-chars>:
11372 <unicode-category-table>: Doc fixes.
11373
159bd5a2
NF
113742008-10-23 Noah Friedman <friedman@splode.com>
11375
11376 * coding.c (make_conversion_work_buffer): Check that
11377 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
11378 Fget_buffer_create.
11379
49f9c344
KH
113802008-10-23 Kenichi Handa <handa@m17n.org>
11381
11382 * font.c (font_add_log): Check the values of extra properties.
11383
12bb3111
MR
113842008-10-22 Martin Rudalics <rudalics@gmx.at>
11385
11386 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11387 Reword doc-string.
11388 (Fset_window_parameter): Use NILP.
11389 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 11390 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 11391
bbeb4e99
JB
113922008-10-22 Juanma Barranquero <lekktu@gmail.com>
11393
11394 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
11395
113962008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
11397
11398 * nsfns.m (ns_appkit_version): New function.
11399 (x-server-version): Use it.
11400 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
11401 (x-server-vendor): Don't check_ns().
11402
11403 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
11404
a9b555d3
JB
114052008-10-22 Juanma Barranquero <lekktu@gmail.com>
11406
11407 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
11408 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
11409
4626499f
KH
114102008-10-22 Kenichi Handa <handa@m17n.org>
11411
e3681952
KH
11412 * syntax.c (scan_words): Call word_boundary_p instead of comparing
11413 scripts.
11414
4626499f
KH
11415 * category.c (word_boundary_p): Check scripts instead of charset.
11416 Handle nil value in word-separating-categories and
11417 word-combining-categories.
11418 (syms_of_category): Fix docstrings of word-separating-categories
11419 and word-combining-categories.
11420
1560f91a
EZ
114212008-10-21 Eli Zaretskii <eliz@gnu.org>
11422
11423 * coding.c (Fencode_coding_region, Fdecode_coding_region)
11424 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
11425
f4668441
MR
114262008-10-21 Martin Rudalics <rudalics@gmx.at>
11427
11428 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
11429 Rename arg "buffer" to "buffer_or_name".
11430 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
11431 it optional.
11432 (no_switch_window): Remove since the return value is not used.
a9b555d3 11433 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
11434 Consider window as dedicated when Fwindow_dedicated_p returns a
11435 non-nil value.
11436 * lisp.h: Remove prototype for no_switch_window.
11437
fd75ddb2
JD
114382008-10-21 Jan Djärv <jan.h.d@swipnet.se>
11439
11440 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 11441 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 11442
07295713
KH
114432008-10-21 Kenichi Handa <handa@m17n.org>
11444
11445 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
11446 check Vlatin_extra_code_table.
11447
712adc82
EZ
114482008-10-20 Eli Zaretskii <eliz@gnu.org>
11449
11450 * fileio.c (Fset_file_modes): Doc fix.
11451
f549eb0b
MA
114522008-10-19 Michael Albinus <michael.albinus@gmx.de>
11453
11454 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
11455 in arrays.
11456
aac0c6e3
MR
114572008-10-19 Martin Rudalics <rudalics@gmx.at>
11458
11459 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
11460 Mention kill-buffer in doc-string.
11461 (Fset_window_buffer): Reinsert tem check removed in last commit.
11462 (Fenlarge_window, Fshrink_window): Have argument names and
11463 doc-string follow Elisp manual more closely.
11464
114652008-10-18 Eli Zaretskii <eliz@gnu.org>
11466
11467 * fileio.c (Fset_file_modes): Doc fix.
11468
114692008-10-18 Martin Rudalics <rudalics@gmx.at>
11470
11471 * window.c (Fwindow_width, Fset_window_start)
11472 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
11473 (Fdelete_windows_on, Freplace_buffer_in_windows):
11474 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
11475 (Fwindow_dedicated_p): Make window argument optional.
11476 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
11477 (Fset_window_buffer): Respect any non-nil dedicated value for
11478 window. Rename "buffer" argument to "buffer_or_name".
11479
114802008-10-18 Ulrich Mueller <ulm@gentoo.org>
11481
11482 * m/sh3.h: New file, machine description for SuperH.
11483
114842008-10-17 Martin Rudalics <rudalics@gmx.at>
11485
11486 * window.c (Fsplit_window): Rename arg horflag to horizontal.
11487
114882008-10-17 Kenichi Handa <handa@m17n.org>
11489
11490 * ftfont.c (ftfont_otf_features): Fix indexing
11491 gsub_gpos->FeatureList.Feature. Check the validity of indices.
11492
114932008-10-16 Magnus Henoch <mange@freemail.hu>
11494
11495 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
11496 (Fdbus_call_method_asynchronously): Ditto.
11497 This change makes C-h f display the argument list.
11498
114992008-10-16 Chong Yidong <cyd@stupidchicken.com>
11500
11501 * fileio.c (Fexpand_file_name): Doc fix.
11502
11503 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
11504 of :foreground and :background equivalent to unspecified (20.x
11505 compatibility).
11506
115072008-10-15 Eli Zaretskii <eliz@gnu.org>
11508
11509 * buffer.c (syms_of_buffer): Doc fix.
11510
115112008-10-14 Kenichi Handa <handa@m17n.org>
11512
11513 * font.c (font_clear_prop): When clearing font width, clear the
11514 average width field too.
11515
115162008-10-12 Andreas Schwab <schwab@suse.de>
11517
11518 * ftfont.c (ftfont_shape_by_flt): Make static.
11519 * ftfont.h (ftfont_shape_by_flt): Don't declare.
11520
11521 * font.c: Don't include <m17n-flt.h>.
11522
115232008-10-10 Eli Zaretskii <eliz@gnu.org>
11524
11525 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
11526
115272008-10-09 Eli Zaretskii <eliz@gnu.org>
11528
11529 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
11530 away code.
11531
115322008-10-09 Chong Yidong <cyd@stupidchicken.com>
11533
11534 * dispnew.c (update_text_area): Avoid looping due to large glyph
11535 overhangs (bug#1070).
11536
115372008-10-09 Kenichi Handa <handa@m17n.org>
11538
11539 * fontset.c (face_for_char): If face->fontset is negative, just
11540 return ascii_face.
11541
f5385255
SM
11542 * font.c (font_delete_unmatched): Fix previous change.
11543 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
11544
115452008-10-09 Martin Rudalics <rudalics@gmx.at>
11546
11547 * frame.c (Fraise_frame): On text-only terminals select frame in
11548 order to make it visible. (Bug#1061)
11549
115502008-10-08 Chong Yidong <cyd@stupidchicken.com>
11551
11552 * fontset.c (fontset_find_font): Check frame validity.
11553
115542008-10-07 Chong Yidong <cyd@stupidchicken.com>
11555
a9b555d3 11556 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
11557 (xg_display_close): Allow Emacs to close all displays (bug#985).
11558
115592008-10-06 Andreas Schwab <schwab@suse.de>
11560
f5385255 11561 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
11562
115632008-10-06 Chong Yidong <cyd@stupidchicken.com>
11564
f5385255 11565 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 11566
a9b555d3 11567 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
11568
11569 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
11570 during initialization.
11571
115722008-10-04 Eli Zaretskii <eliz@gnu.org>
11573
11574 * xdisp.c (redisplay_internal): If frame switched, redisplay the
11575 whole thing on MSDOS frames as well as on a TTY.
11576
11577 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
11578 well as for TTY.
11579 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
11580 well as on a TTY.
11581
11582 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
11583 as well as for TTY.
11584
11585 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
11586
11587 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
11588 MSDOS frames as well.
11589
115902008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11591
11592 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
11593 correct arguments.
b71ac3dd 11594 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
11595
115962008-10-03 Glenn Morris <rgm@gnu.org>
11597
11598 * emacs.c (USAGE1): Add --daemon.
11599
116002008-10-02 Eli Zaretskii <eliz@gnu.org>
11601
11602 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
11603 100, so it's in percents as advertised.
11604
116052008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
11606
11607 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
11608 (ns_output.current_cursor, ns_output.desired_cursor)
11609 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
11610 (FRAME_NEW_CURSOR_COLOR): Remove.
11611
11612 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 11613 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
11614 enumeration (HOLLOW_BOX_CURSOR, etc.).
11615
11616 * nsterm.m (ns_frame_rehighlight): Remove commented code.
11617 (draw_window_cursor): Simplify code.
f5385255
SM
11618 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
11619 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 11620 updates manually.
a9b555d3
JB
11621 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
11622 Use core Emacs cursor types.
aac0c6e3 11623
b8ff72fa 11624 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
11625
116262008-10-02 Martin Rudalics <rudalics@gmx.at>
11627
11628 * process.c (Faccept_process_output): Fix doc-string.
11629
116302008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
11631
11632 * gmalloc.c (__sbrk): Also define for uClibc.
11633
11634 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
11635 for uClibc.
11636
116372008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11638
11639 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
11640 styles.
11641 (nsfont_open): Reenable the cache.
11642
116432008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
11644
11645 * font.c (font_matching_entity): Reflect ATTRS in font selection.
11646 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
11647
116482008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
11649
11650 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
11651 a suspended terminal.
11652
116532008-09-30 Michael Albinus <michael.albinus@gmx.de>
11654
11655 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
11656
116572008-09-30 Eli Zaretskii <eliz@gnu.org>
11658
11659 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
11660
116612008-09-30 Chong Yidong <cyd@stupidchicken.com>
11662
11663 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
11664 in a continued line coincides with a line beginning.
11665
116662008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
11667
11668 * nsfont.m (nsfont_trait_distance): Fix bug.
11669 (nsfont_list): Return a list rather than a vector (syncs with Handa
11670 changes of 2008-05-14).
11671 (nsfont_open): Improve logging.
11672
116732008-09-29 Andreas Schwab <schwab@suse.de>
11674
11675 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
11676
116772008-09-28 Martin Rudalics <rudalics@gmx.at>
11678
11679 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
11680 name as char-resolve-modifiers.
11681 Reported by: Markus Triska <markus.triska@gmx.at>
11682
116832008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
11684
11685 * dispnew.c (init_display): Return earlier when running as a daemon.
11686
116872008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
11688
11689 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
11690
116912008-09-27 Eli Zaretskii <eliz@gnu.org>
11692
11693 * composite.c (Fcomposition_get_gstring)
11694 (Fcompose_region_internal, Fcompose_string_internal)
11695 (Ffind_composition_internal): Doc fix.
11696 (syms_of_composite) <compose-chars-after-function>: Doc fix.
11697 (syms_of_composite) <auto-composition-function>: Doc fix.
11698 (syms_of_composite) <composition-function-table>: Doc fix.
11699
117002008-09-25 Chong Yidong <cyd@stupidchicken.com>
11701
11702 * search.c (wordify): New argument for lax word-ends.
11703 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
11704
117052008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
11706
11707 * lisp.h (is_daemon): Declare.
11708 * dispnew.c (init_display): Do not try to initialize the terminal
11709 when running as a daemon.
11710
117112008-09-22 Chong Yidong <cyd@stupidchicken.com>
11712
11713 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
11714 x_display_pixel_height.
11715
117162008-09-22 Martin Rudalics <rudalics@gmx.at>
11717
11718 * undo.c (record_point): Don't call Fundo_boundary for first
11719 change. (Bug#731)
11720
117212008-09-22 Juanma Barranquero <lekktu@gmail.com>
11722
11723 * emacs.c (Fdaemonp): Doc fix.
11724
117252008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
11726
11727 * emacs.c (main): Place #ifdef in the proper place.
11728
117292008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
11730
11731 * emacs.c (standard_args): Add --daemon.
11732 (main): Disconnect from the terminal when --daemon is passed.
11733 (is_daemon): New variable.
11734 (Fdaemonp): New function.
11735 (syms_of_emacs): Defsubr it.
11736
117372008-09-20 Chong Yidong <cyd@stupidchicken.com>
11738
11739 * xdisp.c (get_next_display_element): Handle string display
11740 correctly when checking for the end of a box run.
11741
117422008-09-20 Glenn Morris <rgm@gnu.org>
11743
11744 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
11745 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
11746 (Frename_file): Avoid copying to trash if a rename involves
11747 a delete. (Bug#964).
11748
117492008-09-20 Eli Zaretskii <eliz@gnu.org>
11750
11751 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
11752 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
11753 frames as well as termcap frames.
11754 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
11755 get_named_tty.
11756
117572008-09-19 Eli Zaretskii <eliz@gnu.org>
11758
11759 * process.c (procfs_system_process_attributes): Fix cmdline in
11760 case /proc/PID/cmdline is empty.
11761
11762 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
11763 x_display_pixel_height.
11764
117652008-09-19 Juanma Barranquero <lekktu@gmail.com>
11766
11767 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
11768
11769 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
11770 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
11771
117722008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
11773
11774 * dispextern.h (struct it): Move line_wrap away from the middle of
11775 bitfields. Move voffset in struct iterator_stack_entry after the
11776 bitfields. Move tab_width near after another short.
11777
117782008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
11779
11780 * frame.h (struct frame): Move alpha from the middle of bitfields.
11781
11782 * window.h (struct window): Move frozen_window_start_p after the
11783 rest of the bitfields to reduce padding.
11784
117852008-09-18 Chong Yidong <cyd@stupidchicken.com>
11786
11787 * xterm.h (x_display_info): Remove `height' and `width' members.
11788
11789 * nsterm.h (ns_display_info): Remove `height' and `width' members.
11790
11791 * w32term.h (w32_display_info): Remove `height', `width',
11792 `height_in', and `width_in' members.
11793
b8ff72fa
SM
11794 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11795 New functions.
aac0c6e3
MR
11796 (x_calc_absolute_position): Use them.
11797 (x_term_init): Omit removed `height' and `width' members.
11798
b8ff72fa
SM
11799 * w32term.c (x_display_pixel_height, x_display_pixel_width):
11800 New functions.
aac0c6e3
MR
11801 (w32_read_socket, x_calc_absolute_position): Use them.
11802 (w32_initialize_display_info, w32_term_init): Omit removed members
11803 of w32_display_info.
11804
b8ff72fa
SM
11805 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
11806 New functions.
11807 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 11808
b8ff72fa
SM
11809 * xterm.c (x_display_pixel_height, x_display_pixel_width):
11810 New functions.
aac0c6e3
MR
11811 (x_calc_absolute_position): Use them.
11812 (x_term_init): Omit removed `height' and `width' members.
11813
11814 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
11815 (compute_tip_xy):
11816 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
11817 * xmenu.c (menu_position_func): Use x_display_pixel_height and
11818 x_display_pixel_width.
11819
118202008-09-18 Kenichi Handa <handa@m17n.org>
11821
11822 * composite.c (fill_gstring_header): Don't check FROM and TO here.
11823 (composition_compute_stop_pos): Fix handling of static composition.
11824 (Fcomposition_get_gstring): Check FROM and TO at first.
11825
118262008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
11827
46e722a9 11828 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
11829 mixup (YAILOM).
11830
118312008-09-17 Chong Yidong <cyd@stupidchicken.com>
11832
11833 * indent.c (Fvertical_motion): Use position reported by iterator
11834 instead of PT for determining screen motion (bug#943).
11835
118362008-09-17 Romain Francoise <romain@orebokech.com>
11837
11838 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
11839
118402008-09-17 Kenichi Handa <handa@m17n.org>
11841
11842 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
11843
11844 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
11845 if necessary.
11846
118472008-09-16 Kenichi Handa <handa@m17n.org>
11848
11849 * coding.c (make_conversion_work_buffer): Avoid calling
11850 Fget_buffer_create if it is not necessary.
11851
118522008-09-15 Martin Rudalics <rudalics@gmx.at>
11853
11854 * window.c (Fselect_window): Don't update window_select_count and
11855 use_time when norecord is not nil.
11856
118572008-09-14 Kenichi Handa <handa@m17n.org>
11858
11859 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
11860 specpdl_ptr.
11861
118622008-09-12 Kenichi Handa <handa@m17n.org>
11863
11864 * indent.c (scan_for_column): Don't handle automatic composition
11865 if the current buffer is not associated with a window.
11866
11867 * composite.c (composition_reseat_it): If the current buffer is
11868 not associated with a window, ignore the automatic composition.
11869 (find_automatic_composition): Likewise.
11870
118712008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
11872
11873 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
11874 (Fgpm_mouse_stop): Use it.
11875 * termhooks.h (close_gpm): Declare.
11876 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
11877 connection if Gpm_GetEvent fails.
11878
11879 * window.c (set_window_buffer): Always preserve current-buffer.
11880
118812008-09-12 Glenn Morris <rgm@gnu.org>
11882
11883 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
11884
118852008-09-11 Glenn Morris <rgm@gnu.org>
11886
11887 * charset.c (charset-map-path): Doc fix.
11888
118892008-09-10 Kenichi Handa <handa@m17n.org>
11890
11891 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
11892
11893 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
11894 compose a grapheme cluster with the preceding base glyph.
11895
11896 * composite.c (composition_compute_stop_pos): Fix previous change.
11897 Reset cmp_it->id to -1 at first.
11898
118992008-09-10 Glenn Morris <rgm@gnu.org>
11900
11901 * Makefile.in (character.o, chartab.o): Fix config.h typo.
11902
119032008-09-09 Chong Yidong <cyd@stupidchicken.com>
11904
11905 * keyboard.c (read_key_sequence): Reapply translation maps when
11906 switching keyboards.
11907
119082008-09-09 Kenichi Handa <handa@m17n.org>
11909
11910 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
11911 characters.
11912
11913 * composite.c (FORWARD_CHAR): Fix calculation
11914 of (POSITION).pos_byte.
11915 (composition_compute_stop_pos): Limit the search of composition to
11916 at most 500 characters ahead. If we reach the limit or find a
11917 newline, set cmp_it->ch to -2 and return 0.
11918 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
11919
119202008-09-08 Kenichi Handa <handa@m17n.org>
11921
11922 * indent.c (Fvertical_motion): Be sure to set
11923 it_overshoot_expected if it.cmp_it.id is non-negative.
11924
119252008-09-07 Andreas Schwab <schwab@suse.de>
11926
11927 * callproc.c (Fcall_process): Don't hold references to string data
11928 across garbage collection. Move initialisation of new_argv down
11929 to avoid compiler bug.
11930
119312008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11932
11933 * process.c (Fsystem_process_attributes): Doc fix.
11934
119352008-09-07 Chong Yidong <cyd@stupidchicken.com>
11936
11937 * callproc.c (Fcall_process): Canonicalize current directory name.
11938
11939 * xdisp.c (move_it_to): When moving by vpos, ensure that the
11940 iterator advances to the next line if the current line ends in a
11941 continued tab.
11942
119432008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
11944
11945 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
11946 member to point to cmp_from.
11947
11948 * xdisp.c: Doc fix for references to gidx data member.
11949
119502008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
11951
11952 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
11953
119542008-09-07 Kenichi Handa <handa@m17n.org>
11955
11956 * composite.c (FORWARD_CHAR): Check STOP after
11957 incrementing (POSITION).pos.
11958
119592008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
11960
11961 * process.c (Fsystem_process_attributes): Doc fix.
11962
119632008-09-06 Chong Yidong <cyd@stupidchicken.com>
11964
11965 * keyboard.c (Ftop_level): Doc fix.
11966
119672008-09-06 Eli Zaretskii <eliz@gnu.org>
11968
11969 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
11970 minibuffer, don't let lower part of menu invade the echo area.
11971
11972 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
11973 "char *q" to access menu text and advance through it. Revert the
11974 change that displayed ">" instead of ASCII character 0x10.
11975
119762008-09-05 Eli Zaretskii <eliz@gnu.org>
11977
11978 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
11979 toggle boxes and radio buttons on MS-DOS as well.
11980
119812008-09-05 Kenichi Handa <handa@m17n.org>
11982
11983 * composite.c (autocmp_chars): Check lookback count.
11984 (composition_compute_stop_pos): Set cmp_it->lookback.
11985 (composition_reseat_it): Check lookback count.
11986 (struct position_record): New struct.
11987 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
11988 (find_automatic_composition): New function.
11989 (composition_adjust_point): Use find_automatic_composition.
11990
11991 * dispextern.h (struct composition_it): New member lookback.
11992
119932008-09-02 Chong Yidong <cyd@stupidchicken.com>
11994
11995 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
11996 if moving by a single line.
11997
119982008-09-02 Andreas Schwab <schwab@suse.de>
11999
12000 * xterm.c (x_delete_display): Fix merge error.
12001
12002 * fileio.c (Fexpand_file_name): Remove unused variables.
12003
120042008-09-02 Eli Zaretskii <eliz@gnu.org>
12005
12006 * fileio.c (Fexpand_file_name): Copy argument `name' into local
12007 storage on all platforms, not just on DOS_NT.
12008
120092008-09-02 Jason Rumney <jasonr@gnu.org>
12010
b8ff72fa
SM
12011 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
12012 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
12013
120142008-09-01 Chong Yidong <cyd@stupidchicken.com>
12015
12016 * xfaces.c (Finternal_set_alternative_font_family_alist)
12017 (Finternal_set_alternative_font_registry_alist): Properly copy
12018 entire alist structure.
12019
120202008-09-01 Kenichi Handa <handa@m17n.org>
12021
d66c0241 12022 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 12023 representative chars of the script is a vector.
d66c0241
JB
12024 (ftfont_list): Handle the case where the representative chars of
12025 the script is a vector.
aac0c6e3
MR
12026
12027 * character.c (syms_of_character): Docstring of
12028 script-representative-chars fixed.
12029
120302008-08-31 Eli Zaretskii <eliz@gnu.org>
12031
12032 * msdos.c (BUILD_CHAR_GLYPH): New macro.
12033 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
12034 the menu. Allocate larger buffer for `text', to account for
12035 possible ^C characters.
12036
120372008-08-31 Martin Rudalics <rudalics@gmx.at>
12038
12039 * xdisp.c (prepare_menu_bars): Don't call
12040 Vwindow_size_change_functions with arg Qt.
12041
120422008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
12043
12044 * font.h (font_range):
12045 * fileio.c (report_file_error):
46e722a9
SM
12046 * composite.c (composition_update_it): Yet another int/Lisp_Object
12047 mixup (YAILOM).
aac0c6e3
MR
12048
120492008-08-30 Glenn Morris <rgm@gnu.org>
12050
12051 * data.c (Fmake_variable_frame_local): Doc fix.
12052
12053 * frame.c (Fmodify_frame_parameters): Doc fix.
12054
120552008-08-30 Eli Zaretskii <eliz@gnu.org>
12056
12057 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
12058 needed by GetTokenInformation.
12059 (w32_system_process_attributes): Check return values of all system
12060 APIs.
12061
12062 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
12063 only when the state changes.
12064 (IT_update_begin, IT_update_end): Add termscript trace.
12065
12066 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
12067 clipboard is unavailable. Set dst to NULL if it doesn't point to
12068 malloc'ed data.
12069 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
12070 passing random values to xfree.
12071
12072 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 12073 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
12074
120752008-08-29 Jason Rumney <jasonr@gnu.org>
12076
12077 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
12078
120792008-08-29 Eli Zaretskii <eliz@gnu.org>
12080
12081 * composite.c (fill_gstring_body): Avoid compiler warnings.
12082
12083 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
12084 LGLYPH_SET_CODE to avoid compiler warnings.
12085
2ae37cf0 12086 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
12087
12088 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
12089
12090 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
12091 LGLYPH_SET_CODE.
12092
120932008-08-29 Kenichi Handa <handa@m17n.org>
12094
12095 * fileio.c (report_file_error): Don't downcase the first character
12096 of errstring if it is still unibyte.
12097
120982008-08-29 Kenichi Handa <handa@m17n.org>
12099
12100 These changes are to re-implement the automatic composition so
12101 that it doesn't use text properties.
12102
12103 * Makefile.in (ftfont.o): Depend on composite.h.
12104 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
12105
12106 * character.h (Vunicode_category_table): Extern it.
12107
12108 * character.c (Vunicode_category_table): New variable.
12109 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
12110
12111 * chartab.c (optimize_sub_char_table): Perform more greedy
12112 optimization.
12113
b8ff72fa
SM
12114 * composite.h (enum composition_method):
12115 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
12116 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
12117 (Vcomposition_function_table): Extern it.
12118 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
12119 (composition_gstring_put_cache, composition_gstring_from_id)
12120 (composition_gstring_p, composition_gstring_width)
12121 (composition_compute_stop_pos, composition_reseat_it)
12122 (composition_update_it, composition_adjust_point): Extern them.
12123 (Fcomposition_get_gstring): EXFUN it.
12124
d66c0241 12125 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
12126 (Vcomposition_function_table)
12127 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
12128 (gstring_hash_table, gstring_work, gstring_work_headers):
12129 New variables.
aac0c6e3
MR
12130 (gstring_lookup_cache, composition_gstring_put_cache)
12131 (composition_gstring_from_id, composition_gstring_p)
12132 (composition_gstring_width, fill_gstring_header)
12133 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
12134 (composition_reseat_it, composition_update_it)
b8ff72fa 12135 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
12136 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
12137 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 12138 Defsubr composition_get_gstring.
aac0c6e3
MR
12139
12140 * dispextern.h (struct glyph): New union u.cmp. Delete the member
12141 cmp_id.
12142 (struct glyph_string): Delete the member gidx. New members
12143 cmp_id, cmp_from, and cmp_to.
12144 (enum it_method): Delete GET_FROM_COMPOSITION.
12145 (struct composition_it): New struct.
12146 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
12147 Delete c, len, cmp_id, cmp_len in u.comp.
12148
12149 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 12150 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 12151 (enum lglyph_indices): Likewise.
b8ff72fa 12152 (font_range): Adjust extern.
aac0c6e3
MR
12153 (font_fill_lglyph_metrics): Extern it.
12154
12155 * font.c (QCf): New variable.
12156 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12157 (font_prepare_composition): Delete this function.
12158 (font_range): Type and arguments changed.
12159 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
12160 (font_fill_lglyph_metrics): New function.
b8ff72fa 12161 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 12162 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
12163 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
12164 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
12165
12166 * fontset.h (font_for_char): Extern it.
12167
12168 * fontset.c (font_for_char): New function.
12169
12170 * ftfont.c: Include composite.h.
12171 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 12172 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
12173
12174 * indent.c: Include composite.h and dispextern.h.
12175 (check_composition): Delete this function.
12176 (scan_for_column): Handle composition by
12177 composition_compute_stop_pos, composition_reseat_it, and
12178 composition_update_it.
12179 (compute_motion): Likewise.
12180 (Fvertical_motion): Fix checking of composition.
12181
12182 * keyboard.c (adjust_point_for_property): Check composition by
12183 composition_adjust_point.
12184
b8ff72fa 12185 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
12186 struct glyph_string.
12187
b8ff72fa
SM
12188 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
12189 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
12190 struct glyph.
12191 (produce_composite_glyph): Likewise.
12192
b8ff72fa
SM
12193 * w32term.c (x_draw_composite_glyph_string_foreground):
12194 Adjust for the change of struct glyph_string.
aac0c6e3
MR
12195 (x_draw_glyph_string): Likewise.
12196
12197 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
12198 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
12199
12200 * xdisp.c: Include font.h.
12201 (it_props): Delete the entry for Qauto_composed.
12202 (init_iterator): Initialize it->cmp_it.id to -1.
12203 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 12204 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
12205 (handle_auto_composed_prop): Delete it.
12206 (handle_composition_prop): Handle only static composition.
12207 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
12208 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 12209 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
12210 (pop_it): Likewise.
12211 (get_next_element): Delete next_element_from_composition.
12212 (CHAR_COMPOSED_P): New macro.
12213 (get_next_display_element): For automatic composition, get a face
12214 from the font in the glyph-string.
12215 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 12216 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
12217 (next_element_from_string): Check if the character at the current
12218 position is composed by CHAR_COMPOSED_P.
12219 (next_element_from_buffer): Likewise.
d66c0241
JB
12220 (next_element_from_composition): Adjust for the change of struct it.
12221 Update it->cmp_it.
b8ff72fa
SM
12222 (dump_glyph): Adjust for the change of struct glyph.
12223 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
12224 it and struct glyph. Don't handle automatic composition here.
12225 (fill_gstring_glyph_string): New function.
12226 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 12227 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
12228 (BUILD_GSTRING_GLYPH_STRING): New macro.
12229 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
12230 automatic composition.
b8ff72fa 12231 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 12232 struct glyph.
b8ff72fa 12233 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 12234
b8ff72fa 12235 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
12236 the change of struct glyph_string.
12237 (x_draw_glyph_string): Likewise.
12238
122392008-08-29 Glenn Morris <rgm@gnu.org>
12240
12241 * buffer.c (word-wrap): Doc fix.
12242 * xdisp.c (truncate-partial-width-windows): Doc fix.
12243 Increase default to 50.
12244
122452008-08-29 Chong Yidong <cyd@stupidchicken.com>
12246
12247 * xdisp.c (update_tool_bar_unwind): New function.
12248 (update_tool_bar): Temporarily set selected frame before building
12249 tool-bar items.
12250
122512008-08-28 Michael Albinus <michael.albinus@gmx.de>
12252
12253 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
12254 snprintf, respectively.
12255 (xd_append_arg): Convert strings with Fstring_make_unibyte.
12256
122572008-08-28 Chong Yidong <cyd@stupidchicken.com>
12258
12259 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
12260 LDFLAGS to GNUstep CC invocation.
12261
122622008-08-27 Chong Yidong <cyd@stupidchicken.com>
12263
12264 * indent.c (Fvertical_motion): Revert last change. Handle the
12265 general case where we are moving forward, and PT spans multiple
12266 screen lines.
12267
12268 * eval.c (find_handler_clause): Temporarily increase
12269 max-lisp-eval-depth while printing the backtrace buffer, to
12270 guarantee that help-mode code can run.
12271
122722008-08-27 Eli Zaretskii <eliz@gnu.org>
12273
12274 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
12275 colors under -rv.
12276 (IT_set_frame_parameters): Don't swap foreground and background
12277 colors if `(reverse . t)' is present in the frame properties.
12278 (internal_terminal_init): Call init_frame_faces only for the
12279 initial frame.
12280
122812008-08-27 Andreas Schwab <schwab@suse.de>
12282
12283 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
12284
122852008-08-27 Andreas Schwab <schwab@suse.de>
12286
12287 * search.c (search_buffer): Set char_base to zero only at the end.
12288
122892008-08-27 Kenichi Handa <handa@m17n.org>
12290
b8ff72fa 12291 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
12292
122932008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
12294
12295 * xterm.c (x_term_init): Temporarily hide the partially
12296 initialized terminal while calling vendor-specific-keysyms.
12297
122982008-08-26 Eli Zaretskii <eliz@gnu.org>
12299
12300 * msdos.c (internal_terminal_init): Most initializations done only
12301 once, especially initial_screen_colors[] and termscript open.
12302
123032008-08-26 Chong Yidong <cyd@stupidchicken.com>
12304
12305 * eval.c (Fcondition_case): Doc fix.
12306
12307 * widgetprv.h (EmacsFramePart): Change font member to the new font
12308 struct.
12309
12310 * widget.c: Include character.h and font.h for XSETFONT.
12311 (setup_frame_gcs): Compute X font id from font struct, just once.
12312
123132008-08-26 Eli Zaretskii <eliz@gnu.org>
12314
12315 * term.c (get_named_tty): Fix last change.
12316
123172008-08-26 Chong Yidong <cyd@stupidchicken.com>
12318
12319 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 12320 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
12321
123222008-08-25 Eli Zaretskii <eliz@gnu.org>
12323
12324 * frame.c (do_switch_frame): Mark previously displayed frame as
12325 obscured for FRAME_MSDOS_P frames as well.
12326
123272008-08-24 Eli Zaretskii <eliz@gnu.org>
12328
12329 * frame.c (make_terminal_frame): Initialize f->terminal,
12330 f->terminal->reference_count, and scroll bars on MS-DOS as well.
12331 Set the top frame to newly created frame.
12332 (Fmake_terminal_frame): Reuse the_only_display_info.
12333
12334 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
12335 estimating available memory.
12336
b97439ce 123372008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
12338
12339 * nsterm.m (ns_draw_window_cursor): Don't call
12340 NSDisableScreenUpdates and NSEnableScreenUpdates on
12341 non-NS_IMPL_COCOA systems.
12342
123432008-08-23 Andreas Schwab <schwab@suse.de>
12344
12345 * process.c (procfs_system_process_attributes): Fix use of
12346 uninitialized variables.
12347
123482008-08-23 Eli Zaretskii <eliz@gnu.org>
12349
12350 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
12351
12352 * dispnew.c (init_display): Remove MS-DOS specific conditions for
12353 calling tty-set-up-initial-frame-faces.
12354
b8ff72fa
SM
12355 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
12356 Allow MSDOS frames along with X frames.
aac0c6e3
MR
12357
12358 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
12359 addition to output_termcap.
12360
12361 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
12362
12363 * termchar.h (FRAME_TTY): Support output_msdos_raw.
12364 (struct tty_display_info) [MSDOS]: Add fields related to mouse
12365 highlight.
12366
12367 * process.c [!subprocesses]: Define QCname.
12368 (syms_of_process): Intern and staticpro it.
12369
12370 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
12371 Adjust for changes in encoding/decoding routines.
12372 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
12373 encode_coding and decode_coding.
12374
b8ff72fa 12375 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
12376
12377 * dosfns.c: Include frame.h before termhooks.h.
12378 (dos_cleanup): Use CURTTY ()->termscript instead of a global
12379 variable termscript.
12380
12381 * s/msdos.h (USER_FULL_NAME): Define.
12382 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
12383
12384 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
12385 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
12386 pw->pw_gecos.
12387
12388 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
12389 SELECTED_FRAME as additional (1st) argument.
12390 (tty_read_avail_input): Handle output_msdos_raw in
12391 addition to output_termcap.
12392
12393 * msdos.c: Include frame.h before termhooks.h.
12394 (mouse_on, mouse_off, mouse_moveto, mouse_init)
12395 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
12396 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
12397 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
12398 (IT_set_terminal_modes, IT_reset_terminal_modes)
12399 (IT_set_frame_parameters): Use tty->termscript instead of a global
12400 variable termscript.
12401 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
12402 global variable terminal_coding. Don't refer to
12403 Vnonascii_translation_table.
12404 (internal_terminal_init): Set Vwindow_system in current_kboard.
12405 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
12406 Announce date and time of session start, if termscript is open.
12407 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
12408 term.c:init_tty). Open termscript only of not already open.
12409 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
12410 here instead of dos_ttraw. Don't initialize display if this is an
12411 initial tty. Don't set FRAME_FONT.
12412 (Vwindow_system_version): Bump to 23.
12413 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
12414 is available, set up mouse_position_hook.
12415 (dos_ttraw, IT_set_terminal_modes): If called with initial
12416 terminal, do nothing.
12417 (IT_set_frame_parameters): Handle the Qtty_type frame
12418 parameter by calling internal_terminal_init.
12419 (dos_set_window_size, show_mouse_face)
12420 (clear_mouse_face, IT_note_mode_line_highlight)
12421 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
12422 (dos_rawgetc): Use tty_display_info instead of x_display_info.
12423 (initialize_msdos_display): New function.
12424 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
12425 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
12426 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
12427 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 12428 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
12429 (request_sigio, unrequest_sigio): Don't define, now defined on
12430 sysdep.c.
12431 (IT_write_glyphs): Rewrite to use encode_terminal_code.
12432
12433 * term.c [MSDOS]: Include msdos.h.
12434 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
12435 conditional to DOS_NT. Allow only one call to this function in a
12436 session. Don't allocate a new struct tty_display_info; instead,
12437 reuse the_only_display_info. Call get_tty_size to get screen
12438 dimensions. Call init_baud_rate to set bad_rate.
12439 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
12440 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 12441 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
12442 (get_tty_terminal, get_named_tty, Ftty_type)
12443 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
12444 output_termcap.
b8ff72fa
SM
12445 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
12446 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 12447 only when subprocesses are supported.
aac0c6e3
MR
12448
12449 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
12450 f->output_data.x.
12451 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
12452 terminal devices.
12453
5582fbc7 12454 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
12455 x_output.
12456 (FRAME_FONT): Use output_data.tty.
12457 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
12458 (struct x_display_info): Rename from display_info. Update all users in
12459 msdos.c.
aac0c6e3 12460 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 12461 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
12462 (dos_ttraw): Update prototype.
12463
12464 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
12465 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
12466
124672008-08-23 Jason Rumney <jasonr@gnu.org>
12468
12469 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
12470 (fn_TIFFSetDirectory): New library function used.
12471 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
12472 (tiff_load): Use :index to select among multiple images. Set count
12473 property when multiple images exist.
12474 (gif_format): Use :index, not :image.
12475
124762008-08-23 Chong Yidong <cyd@stupidchicken.com>
12477
12478 * xdisp.c (try_scrolling): Check INT_MAX instead of
12479 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
12480 to obtain INT_MAX.
12481
124822008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
12483
12484 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
12485
124862008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
12487
12488 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
12489 GNUstep library location.
12490
124912008-08-21 Chong Yidong <cyd@stupidchicken.com>
12492
12493 * xfaces.c (x_update_menu_appearance): Check validity of menu font
12494 before using it.
12495
12496 * puresize.h (BASE_PURESIZE): Increase to 1250000.
12497
124982008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12499
12500 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
12501 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
12502 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
12503 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
12504 (EmacsApp-cursor_blink_handler): Remove declaration.
12505 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
12506 match 01 Feb 2008 changes in xterm.c.
12507 (ns_read_socket): Add cast to avoid warning.
12508 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
12509 GNUstep.
12510
125112008-08-20 Chong Yidong <cyd@stupidchicken.com>
12512
12513 * xselect.c (x_get_foreign_selection): Return nil if desired
12514 selection could not be obtained, instead of signalling an error.
12515
125162008-08-20 David Reitter <david.reitter@gmail.com>
12517
12518 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
12519 * nsterm.m: Remove ns-specific code for cursor blinking.
12520 (ns_draw_window_cursor): Clear cursor properly rather than
12521 redrawing the area. Respect width of bar cursors.
12522 These changes enable the use of generic blink-cursor-mode and
12523 generic cursor types in NS and support smooth cursor movements (do
12524 not blink off after command).
12525 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
12526 Nextstep, too.
12527
125282008-08-19 Kenichi Handa <handa@m17n.org>
12529
12530 * font.c (Vfont_log_deferred): New variable.
12531 (font_add_log): Check Vfont_log_deferred.
12532 (font_deferred_log): New function.
12533
12534 * font.h (font_deferred_log): Extern it.
12535
12536 * fontset.c (reorder_font_vector): Use encoding charset of fonts
12537 for sorting.
12538 (face_for_char): Use deferred log.
12539
125402008-08-18 Kenichi Handa <handa@m17n.org>
12541
12542 * fontset.c (face_for_char): Add font log.
12543
12544 * font.c (font_add_log): Add the font properties :script, :lang,
12545 and :otf in the log.
12546
125472008-08-17 Chong Yidong <cyd@stupidchicken.com>
12548
12549 * xdisp.c: Remove dead code.
12550 (handle_invisible_prop, next_overlay_string): Defer call to
12551 setup_for_ellipsis.
12552 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
12553
125542008-08-15 Chong Yidong <cyd@stupidchicken.com>
12555
12556 * xfaces.c (lookup_derived_face): Properly handle possible zero
12557 return value of get_lface_attributes.
12558 (merge_faces): Don't tell lookup_derived_face to signal an error
12559 if face is not found.
12560
12561 * dired.c (Fdirectory_files): Doc fix.
12562
12563 * process.c (make_process): Initialize kill_without_query struct
12564 member.
12565
125662008-08-15 Eli Zaretskii <eliz@gnu.org>
12567
12568 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
12569 Alternative calculation of totphys for Visual Studio 6.
12570
12571 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
12572
12573 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
12574 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
12575 All users changed.
12576 (stat): Only root directory passed to GetDriveType. Allow RAM
12577 disk as well as local fixed disk when w32-get-true-file-attributes
12578 is set to `local'.
12579 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
12580 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
12581 (w32_cached_id, w32_add_to_cache): New functions.
12582 (get_name_and_id): Look account names in the cache before calling
12583 lookup_account_sid.
12584 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
12585 New initialization flags.
12586 (globals_of_w32): Initialize them to zero.
12587 (w32_system_process_attributes): Use w32_cached_id and
12588 w32_add_to_cache.
12589
125902008-08-14 Lawrence Mitchell <wence@gmx.li>
12591
12592 * lread.c (Fread_char, Fread_char_exclusive): If no character
12593 event is read before timeout is reached, return nil, rather than
12594 converting to a number.
12595
125962008-08-14 Chong Yidong <cyd@stupidchicken.com>
12597
12598 * fns.c (use_dialog_box): Doc fix.
12599
12600 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
12601 on OS X.
12602
126032008-08-13 Chong Yidong <cyd@stupidchicken.com>
12604
12605 * frame.c (Qns_parse_geometry): New var.
12606 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
12607
126082008-08-11 Chong Yidong <cyd@stupidchicken.com>
12609
12610 * xdisp.c (x_produce_glyphs): Handle the case when font has no
12611 space character in calculating tabs.
12612
126132008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
12614
12615 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
12616
126172008-08-10 Glenn Morris <rgm@gnu.org>
12618
12619 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
12620 silence gcc "limited range of data type" warnings in some
12621 make_fixnum_or_float calls.
12622
126232008-08-09 Eli Zaretskii <eliz@gnu.org>
12624
12625 * w32.c (w32_system_process_attributes): If the process does not
12626 exist, return nil.
12627
12628 * w32.c: Include thelp32.h, psapi.h and coding.h.
12629 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
12630 declarations.
12631 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
12632 (Process32Next_Proc): New typedefs.
12633 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
12634 (g_b_init_process32_next, g_b_init_open_thread_token)
12635 (g_b_init_impersonate_self, g_b_init_revert_to_self)
12636 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
12637 (g_b_init_get_process_working_set_size)
12638 (g_b_init_global_memory_status_ex): New static variables.
12639 (globals_of_w32): Initialize them.
12640 (create_toolhelp32_snapshot, process32_first, process32_next)
12641 (open_thread_token, impersonate_self, revert_to_self)
12642 (get_process_memory_info, get_process_working_set_size)
12643 (global_memory_status, global_memory_status_ex): New wrapper
12644 functions.
12645 (w32_list_system_processes, w32_system_process_attributes)
12646 (enable_privilege, restore_privilege, ltime, process_times):
12647 New functions.
12648 (convert_time_raw): New function.
12649 (convert_time): Remove conversion of FILETIME into time in 100
12650 nsec units, call convert_time_raw instead.
12651
12652 * process.h (w32_list_system_processes, w32_system_process_attributes):
12653 Add prototypes.
12654 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
12655 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
12656 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
12657 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
12658
12659 * process.c (Fsystem_process_attributes): Doc fix.
12660
126612008-08-08 Chong Yidong <cyd@stupidchicken.com>
12662
12663 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
12664 a continued multi-char glyph; if so, advance to the actual glyph.
12665
126662008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12667
12668 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
12669
12670 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
12671 (.m.o): Use it.
12672 * config.in: Regenerate.
12673
126742008-08-07 Chong Yidong <cyd@stupidchicken.com>
12675
12676 * xdisp.c (redisplay_window): Revert last change.
12677 (try_window): Check bottom scroll margin too.
12678
126792008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12680
12681 * config.in: Regenerate.
12682
12683 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
12684 -list-load-path-shadows'.
12685 (nsgui.h): Reduce number of things depending on it.
12686
126872008-08-06 Chong Yidong <cyd@stupidchicken.com>
12688
12689 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
12690 instead of window-end which does the wrong thing at eob.
12691 (try_cursor_movement): Minor optimization.
12692 (redisplay_window): If scroll margin is defined, don't assume
12693 window doesn't need scrolling.
12694
126952008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
12696
12697 * config.in: Regenerate.
12698
12699 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
12700 (mostlyclean): Don't delete *.d under NS.
12701
12702 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
12703
127042008-08-06 Kenichi Handa <handa@m17n.org>
12705
12706 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
12707
127082008-08-06 Andreas Schwab <schwab@suse.de>
12709
12710 * config.in: Regenerate.
12711
127122008-08-05 Chong Yidong <cyd@stupidchicken.com>
12713
12714 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
12715 forcing a window start.
12716
12717 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
12718 (auto_save_1): Update modtime when auto-save-list-file-name is on.
12719
127202008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12721
12722 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
12723 argument.
12724
127252008-08-05 Juanma Barranquero <lekktu@gmail.com>
12726
12727 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
12728 <scroll-down-aggressively, before-change-functions>:
12729 <after-change-functions>: Reflow docstrings.
12730
127312008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 12732 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
12733
12734 Dock menu customization, based on a patch by Ken Raeburn, plus some
12735 other fixes.
12736 * nsmenu.m (dockMenu): New variable.
12737 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
12738
12739 * nsterm.h (dockMenu): Declare.
12740
12741 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
12742 (ns_term_init): Initialize dockMenu.
12743 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
12744 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
12745 left.
12746
12747 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
12748
127492008-08-04 Chong Yidong <cyd@stupidchicken.com>
12750
12751 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
12752
12753 * config.in: Regenerate.
12754
127552008-08-04 Seiji Zenitani <zenitani@mac.com>
12756
12757 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
12758
127592008-08-04 Chong Yidong <cyd@stupidchicken.com>
12760
12761 * nsterm.h (find_and_call_menu_selection): Fix prototype.
12762
127632008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
12764
12765 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
12766
12767 * keyboard.h: Comment an #endif.
12768
12769 * lisp.h (have_menus_p): Adjust comment.
12770
12771 * menu.c (find_and_return_menu_selection): Fix comparison with
12772 client_data.
12773
12774 * nsmenu.m (popup_activated_flag): New variable.
12775 (popup_activated): New function.
12776 (menu-or-popup-active-p): New exported lisp definition.
12777 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
12778 when popup done.
12779 (ns_popup_dialog): Set popup_activated_flag.
12780
12781 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
12782 version for GNUstep (handled by conditional typedef in nsterm.m).
12783 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
12784 in rgb.txt).
12785
12786 * process.c (init_process): Use DARWIN_OS, not DARWIN.
12787
12788 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
12789
12790 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
12791
12792 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
12793 shortcircuit if popup_activated like GTK and X toolkit.
12794
12795 * m/inter386.h: Change DARWIN to DARWIN_OS.
12796
12797 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
12798 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
12799 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
12800 comment on NO_SOCK_SIGIO.
12801
128022008-08-03 Chong Yidong <cyd@stupidchicken.com>
12803
12804 * nsterm.m (windowDidResize): Remove stopModal call.
12805
128062008-08-03 Andreas Schwab <schwab@suse.de>
12807
12808 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
12809 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
12810
128112008-08-02 Chong Yidong <cyd@stupidchicken.com>
12812
12813 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
12814 Don't use uninitialized pointer variable when using getrlimit.
12815
128162008-08-02 Jason Rumney <jasonr@gnu.org>
12817
12818 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
12819
128202008-08-02 Eli Zaretskii <eliz@gnu.org>
12821
12822 * alloc.c (NSTATICS): Bump to 0x640.
12823
12824 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
12825
12826 * lisp.h: Add prototype for directory_files_internal.
12827
12828 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
12829 New functions.
12830 (syms_of_process): Defsubr them. Add initializations for various
12831 Q* symbols used in procfs_system_process_attributes.
12832 (procfs_list_system_processes, procfs_system_process_attributes)
12833 [HAVE_PROCFS]: New functions.
12834 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
12835 (procfs_get_total_memory): New functions.
12836
128372008-08-01 Juanma Barranquero <lekktu@gmail.com>
12838
12839 * xfaces.c (Fx_load_color_file): Fix previous change;
12840 it is #ifdef WINDOWSNT, not WINDOWS_NT.
12841
128422008-08-01 Michael Albinus <michael.albinus@gmx.de>
12843
12844 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
12845
128462008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12847
12848 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
12849
128502008-08-01 Chong Yidong <cyd@stupidchicken.com>
12851
12852 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
12853
12854 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
12855 define NSApplicationDelegateReplySuccess.
12856 (EmacsView -converstationIdentifier): Use long instead of
12857 NSInteger for GNUstep, since it doesn't have NSInteger.
12858
12859 * xmenu.c: Revert last change.
12860
12861 * keyboard.h: Fix last change.
12862
128632008-08-01 Juanma Barranquero <lekktu@gmail.com>
12864
12865 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
12866 on Windows.
12867
128682008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12869
12870 Warning clearing and clean-up in NS port.
12871 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
12872 Add prototypes.
12873 * nsgui.h (FACE_DEFAULT): Remove, unused.
12874 (XGCValues): Change colors to unsigned long.
12875 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
12876 nsterm.m.
12877 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
12878 (ns_list_fonts): Remove, unused.
12879 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
12880 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
12881 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
12882 (nsfont_draw): Compare face colors to 0, not nil.
12883 * nsmenu.m (struct widget_value): Drop unneeded declaration.
12884 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
12885 (-addSubmenuWithTitle:): Use NSMenuItem class.
12886 (ns_popup_menu): Use NO, not NULL, for enabled setting.
12887 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
12888 (ns_clip_to_row): Make gc arg a BOOL.
12889 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
12890 ns_clip_to_row() call.
12891 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
12892 used). Cast FRAME_FONT assignments.
12893 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
12894 (ns_string_to_lispmod): Change arg to const char.
12895 (ns_term_init): Use NSMenuItem class.
12896 (EmacsApp -openFile:): Move to different section of file.
12897 (EmacsApp -application:openFiles:): Don't return a value, call
12898 -replyToOpenOrPrint:.
12899 (EmacsView -keyDown:): Fix up cast.
12900 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
12901 (EmacsView -menuDown:): Cast tag in call to
12902 find_and_call_menu_selection().
12903 (ns_list_fonts): Remove, unused.
12904 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
12905 (ns_fontname_to_xlfd): Make static.
12906 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
12907 Remove prototypes (now in keyboard.h).
12908 (next_menubar_widget_id): Remove, unused.
12909 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
12910 Remove prototypes (now in keyboard.h).
12911 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
12912
129132008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
12914
12915 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
12916 (floatfns.o): Depend on syssignal.h.
12917 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
12918
12919 * systty.h: Fix previous change that removed BSD_TERMIOS.
12920 Add comments to #ifdefs.
12921
129222008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
12923
12924 * w32fns.c (w32-load-color-file): Remove.
12925 (x-open-connection): Use renamed Fx_load_color_file.
12926 * xfaces.c (x-load-color-file): Add.
12927 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
12928 Emacs.clr.
12929 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
12930
129312008-07-31 Michael Albinus <michael.albinus@gmx.de>
12932
12933 * dbusbind.c (Fdbus_call_method_asynchronously)
12934 (Fdbus_method_error_internal): New defuns.
12935 (xd_read_message): Handle also reply messages.
12936 (Vdbus_registered_functions_table): Extend docstring.
12937
129382008-07-31 Juanma Barranquero <lekktu@gmail.com>
12939
12940 * keyboard.c (gobble_input): Fix previous change.
12941
129422008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12943
12944 * bitmaps/README:
12945 * xfns.c:
12946 * termcap.c:
12947 * term.c:
12948 * syswait.h:
12949 * systty.h:
12950 * systime.h:
12951 * syssignal.h:
12952 * sysdep.c:
12953 * process.h:
12954 * process.c:
12955 * print.c:
12956 * ndir.h:
12957 * lread.c:
12958 * keyboard.c:
12959 * getpagesize.h:
12960 * floatfns.c:
12961 * fileio.c:
12962 * emacs.c:
12963 * doc.c:
12964 * dispnew.c:
12965 * dired.c:
12966 * data.c:
12967 * callproc.c:
12968 * buffer.c:
12969 * README:
12970 * Makefile.in:
12971 * s/template.h:
12972 * s/msdos.h:
12973 * m/vax.h: Remove VMS support.
12974 * s/vms.h:
12975 * vlimit.h:
12976 * uaf.h:
12977 * temacs.opt:
12978 * param.h:
12979 * ioctl.h: Remove file.
12980
129812008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
12982
12983 * s/ms-w32.h (MULTI_KBOARD): Remove.
12984 * xterm.c:
12985 * xselect.c:
12986 * xfns.c:
12987 * window.c:
12988 * w32term.c:
12989 * w32fns.c:
12990 * terminal.c:
12991 * termhooks.h:
12992 * term.c:
12993 * sysdep.c:
12994 * keyboard.h:
12995 * keyboard.c:
12996 * frame.h:
12997 * frame.c:
12998 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
12999 * config.in: Regenerate.
13000
130012008-07-30 Jason Rumney <jasonr@gnu.org>
13002
13003 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
13004
13005 * w32font.c (w32font_encode_char): Leave as unicode if in range.
13006 (w32font_open_internal): Get unicode version of textmetrics.
13007 Don't enable or disable glyph indices here.
13008 (w32font_open): Disable use of glyph indices.
13009
13010 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
13011
130122008-07-30 Chong Yidong <cyd@stupidchicken.com>
13013
13014 * minibuf.c (Vread_buffer_function): Doc fix.
13015
130162008-07-30 John Paul Wallington <jpw@pobox.com>
13017
13018 * minibuf.c (read_buffer_completion_ignore_case): New var.
13019 (Fread_buffer): Use it.
13020
130212008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
13022
13023 * systty.h (sensemode): Remove empty #if. Remove reference to
13024 BSD_TERMIOS, unused.
13025
13026 * sysdep.c: Remove reference to DGUX.
13027 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
13028
13029 * config.in: Regenerate.
13030
130312008-07-30 Jason Rumney <jasonr@gnu.org>
13032
13033 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
13034
130352008-07-29 Jason Rumney <jasonr@gnu.org>
13036
13037 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
13038 is populated.
13039 (uniscribe_encode_char): Always use uniscribe.
13040 Avoid using context if cache is populated.
13041
130422008-07-29 Jan Djärv <jan.h.d@swipnet.se>
13043
13044 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
13045 open menu.
13046
13047 * gtkutil.c (menu_nav_ended): Remove.
13048 (create_menus): Remove signal connect for menu_nav_ended.
13049
130502008-07-28 Chong Yidong <cyd@stupidchicken.com>
13051
13052 * xdisp.c (redisplay_window): Check return value of
13053 compute_window_start_on_continuation_line before forcing a window
13054 start.
13055
130562008-07-28 Jason Rumney <jasonr@gnu.org>
13057
13058 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
13059
13060 * w32term.c (w32_enable_unicode_output, cleartype_active):
13061 Remove obsolete display options.
13062 (x_draw_glyph_string_background): Don't use old cleartype_active
13063 workaround.
13064 (w32_initialize): Remove cleartype_active initialization.
13065 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
13066
130672008-07-28 Andreas Schwab <schwab@suse.de>
13068
13069 * lisp.h (init_weak_hash_tables, syms_of_font)
13070 (xd_read_queued_messages, syms_of_dbusbind): Declare.
13071 (remove_hash_entry): Don't declare.
13072 * eval.c (maybe_call_debugger): Make static and move before use.
13073 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
13074 * xdisp.c: Include "gtkutil.h" if USE_GTK.
13075 * xterm.h (x_set_frame_alpha): Declare.
13076
130772008-07-28 Jan Djärv <jan.h.d@swipnet.se>
13078
13079 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
13080 (create_menus): Connect selection-done to menu_nav_ended.
13081
130822008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13083
13084 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
13085 Set Vx_resource_name to a fallback. Replace read of 'buffered'
13086 parameter with read of 'alpha' one.
13087 (Qns_frame_parameter): Remove.
5582fbc7 13088 * nsselect.m (selection-coding-system)
aac0c6e3
MR
13089 (next-selection-coding-system, Vselection_coding_system)
13090 (Vnext_selection_coding_system): Drop.
13091
130922008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
13093
13094 * nsfns.m (do-applescript, do_applescript): Rename to
13095 ns-do-applescript, ns_do_applescript, and move within file.
13096
130972008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13098
13099 Remove support for Mac Carbon.
13100 * mactoolbox.c:
13101 * macterm.h:
13102 * macterm.c:
13103 * macselect.c:
13104 * macmenu.c:
13105 * macgui.h:
13106 * macfns.c:
13107 * mac.c: Remove file.
13108 * s/darwin.h:
13109 * m/intel386.h:
13110 * xfaces.c:
13111 * xdisp.c:
13112 * window.c:
13113 * tparam.c:
13114 * termhooks.h:
13115 * termcap.c:
13116 * term.c:
13117 * syssignal.h:
13118 * sysselect.h:
13119 * sysdep.c:
13120 * process.c:
13121 * lread.c:
13122 * lisp.h:
13123 * keyboard.c:
13124 * image.c:
13125 * fringe.c:
13126 * frame.h:
13127 * frame.c:
13128 * fontset.c:
13129 * font.h:
13130 * font.c:
13131 * fns.c:
13132 * fileio.c:
13133 * emacs.c:
13134 * dispnew.c:
13135 * dispextern.h:
13136 * config.in:
13137 * atimer.c:
2ae37cf0 13138 * Makefile.in: Remove code for Carbon.
aac0c6e3 13139
f0131492 131402008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
13141
13142 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
13143
131442008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13145
13146 * macterm.h (kCGBitmapByteOrder32Host): New define for
13147 non-universal SDKs.
13148
13149 * image.c (mac_create_cg_image_from_image, image_load_image_io)
13150 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13151
13152 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
13153 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
13154
131552008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
13156
13157 * w32inevt.c: Include dispextern.h.
13158
131592008-07-26 Andreas Schwab <schwab@suse.de>
13160
13161 * print.c (print_object): Fix off-by-one in last change.
13162
131632008-07-25 Juanma Barranquero <lekktu@gmail.com>
13164
13165 * term.c (syms_of_term): Don't initialize default_orig_pair,
13166 default_set_foreground and default_set_background on Windows.
13167
131682008-07-25 Jason Rumney <jasonr@gnu.org>
13169
13170 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
13171 ScriptItemize. Clean up return value checking. Remove unused
13172 variables.
13173 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
13174 shaping engine.
13175
13176 * w32font.c (w32font_has_char): Handle the case where we can't
13177 determine the script for a character.
13178
131792008-07-25 Chong Yidong <cyd@stupidchicken.com>
13180
13181 * term.c (syms_of_term): Initialize default_orig_pair,
13182 default_set_foreground, and default_set_background.
13183
13184 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
13185 clash (bug#86).
13186 (getloadavg): Callers changed.
13187
13188 * image.c (svg_load_image): Fix last change.
13189 (svg_load_image): Use rsvg_handle_get_dimensions to check that
13190 image size is valid. Use g_object_unref instead of deprecated
13191 rsvg_handle_free to free rsvg handle.
13192 (x_from_xcolors): Don't initialize pixmap (silence compiler).
13193
131942008-07-25 Jason Rumney <jasonr@gnu.org>
13195
13196 * w32font.c (w32font_encode_char): Encode characters outside BMP as
13197 surrogates before looking up glyph index.
13198 (w32font_text_extents): Encode as surrogates if falling back to
13199 functions that need UTF-16 wide chars.
13200
13201 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
13202 BMP as surrogates before looking up glyph index.
13203
132042008-07-25 Chong Yidong <cyd@stupidchicken.com>
13205
13206 * image.c (svg_load_image): Check for failure in return value of
13207 rsvg_handle_get_pixbuf. Free rsvg handle when done.
13208
132092008-07-25 Jason Rumney <jasonr@gnu.org>
13210
13211 * w32font.c (Fx_select_font): Reverse sense of second arg.
13212
132132008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
13214
13215 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
13216 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
13217
13218 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
13219 (PURESIZE): Use it.
13220
132212008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
13222
13223 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
13224 * m/alpha.h (TEXT_END):
13225 * m/ibmrs6000.h (TEXT_END):
13226 * m/macppc.h (TEXT_END):
13227 * s/darwin.h (TEXT_END):
13228 * s/msdos.h (TEXT_END): Remove, unused.
13229 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
13230 * s/cygwin.h: Remove comment.
13231
13232 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
13233 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
13234 * m/intel386.h (DOT_GLOBAL_START):
13235 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
13236 (USG): Remove, file not used on USG platforms.
13237
13238 * Makefile.in (HAVE_X11): Remove empty #else.
13239
132402008-07-24 Andreas Schwab <schwab@suse.de>
13241
13242 * fileio.c (Finsert_file_contents): Properly adjust undo list
13243 after format conversion.
13244
132452008-07-24 Jan Djärv <jan.h.d@swipnet.se>
13246
13247 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
13248 (menu_nav_ended): Remove.
13249 (create_menus): Remove signal connect for menu_nav_ended.
13250 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
13251 create_menus.
13252 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
13253
132542008-07-23 Jason Rumney <jasonr@gnu.org>
13255
13256 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
13257 with opened font.
13258 (w32font_open): Set font type to gdi.
13259
13260 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
13261
132622008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
13263
13264 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
13265 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
13266 defines it.
13267 * unexec.c (ADDR_CORRECT): Define unconditionally.
13268
13269 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
13270
13271 * unexec.c: Remove code depending on !COFF and USG, the file is
13272 not used for such systems.
13273
13274 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
13275 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
13276 (LD_SWITCH_SYSTEM_1): Remove, update users.
13277
13278 * s/darwin.h (DATA_END):
13279 * m/intel386.h (DATA_END):
13280 * m/ibmrs6000.h (DATA_END):
13281 * m/alpha.h (DATA_END): Remove, unused.
13282
13283 * config.in: Regenerate.
13284 * s/ms-w32.h (subprocesses): Define unconditionally.
13285 * s/template.h (subprocesses): Update comment.
13286 * s/vms.h (subprocesses):
13287 * s/usg5-4.h (subprocesses):
13288 * s/hpux10-20.h (subprocesses):
13289 * s/gnu-linux.h (subprocesses):
13290 * s/cygwin.h (subprocesses):
13291 * s/bsd-common.h (subprocesses):
13292 * s/aix4-2.h (subprocesses):
13293 * s/darwin.h (subprocesses): Do not define, defined by default now.
13294
13295 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
13296 Remove all references.
13297 (temacs): Add GNUstep specific ld flags.
13298
13299 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
13300 similarly to what X does.
13301
133022008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13303
13304 * nsfns.m (x-list-fonts): Remove.
13305 (syms_of_nsfns): Drop the x-list-fonts declaration.
13306 * nsterm.m: Get rid of remaining "//" comments.
13307
133082008-07-22 Chong Yidong <cyd@stupidchicken.com>
13309
13310 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
13311
13312 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
13313 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
13314 (Fns_own_selection_internal, Fx_disown_selection_internal)
13315 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
13316
13317 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
13318 ... */' style of docstrings. Doc fixes.
13319
133202008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13321
13322 * terminfo.c (UP, BC, PC): Undo previous change.
13323
13324 * nsfns.m: Rename ns prefixed functions/variables to the
13325 corresponding x versions. Update references.
13326
133272008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
13328
13329 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
13330
133312008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
13332
13333 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
13334 Remove forwarding functions.
13335 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
13336 non-static.
13337 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
13338 non-static.
13339 (ns_frame_parm_handlers): Use the new names.
13340 (syms_of_nsfns): Move to the end of file.
13341
13342 * nsterm.m (syms_of_nsterm): Move to the end of file.
13343
13344 * dispnew.c (init_display): Remove code for X10.
13345
133462008-07-22 Jason Rumney <jasonr@gnu.org>
13347
13348 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
13349 bare drive.
13350
133512008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
13352
13353 * nsterm.m (syms_of_nsterm): Remove debugging println.
13354
133552008-07-22 David Reitter <david.reitter@gmail.com>
13356
13357 * nsfns.m (do_applescript, F_do_applescript): NS version of the
13358 Carbon implementation of the same functionality: execute arbitrary
13359 AppleScript code.
13360
133612008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
13362
13363 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
13364 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
13365 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13366 (Fx_display_mm_height, Fx_display_mm_width)
13367 (Fx_display_backing_store, Fx_display_visual_class)
13368 (Fx_display_save_under, Fx_open_connection)
13369 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
13370 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
13371 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13372 (Fx_display_pixel_width, Fx_display_pixel_height)
13373 (Fx_display_usable_bounds, Fx_display_planes)
13374 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
13375 ... */' style of docstrings.
13376
133772008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
13378
13379 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
13380 on this platform.
13381 (mips):
13382 * m/iris4d.h (mips): Do not define.
13383 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
13384
13385 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
13386
13387 * image.c:
13388 * nsfns.m:
13389 * nsselect.m:
13390 * nsterm.h:
13391 * nsterm.m: Rename ns prefixed functions/variables to the
13392 corresponding x versions. Update references.
13393
13394 * m/ibms390x.h (NO_REMAP): Do not undefine.
13395
13396 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
13397
133982008-07-21 Chong Yidong <cyd@stupidchicken.com>
13399
13400 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
13401 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
13402 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
13403 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
13404 (Fns_display_mm_height, Fns_display_mm_width)
13405 (Fns_display_backing_store, Fns_display_visual_class)
13406 (Fns_display_save_under, Fns_open_connection)
13407 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
13408 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
13409 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
13410 (Fns_display_pixel_width, Fns_display_pixel_height)
13411 (Fns_display_usable_bounds, Fx_display_planes)
13412 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
13413
134142008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
13415
13416 * print.c (print_object): Check print_depth before searching for
13417 circularities.
13418
134192008-07-21 Michael Albinus <michael.albinus@gmx.de>
13420
13421 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
13422 only sprintf.
13423
134242008-07-21 Kenichi Handa <handa@m17n.org>
13425
13426 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
13427
134282008-07-20 Andreas Schwab <schwab@suse.de>
13429
13430 * syntax.c (find_start_pos, find_start_value)
13431 (find_start_value_byte, find_start_begv, find_defun_start)
13432 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
13433
134342008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13435
13436 * s/sol2-3.h: Insert contents of s/sol2.h.
13437 (LD_SWITCH_SYSTEM): Remove redundant definition.
13438 * s/sol2.h: Remove, unused.
13439
134402008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13441
13442 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
13443
134442008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13445
13446 * Makefile.in (ns_appdir): Fix typo in find command.
13447
134482008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
13449
13450 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
13451
13452 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
13453 added not supported anymore.
13454
13455 * s/usg5-4-2.h (LIBS_SYSTEM):
13456 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
13457
13458 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13459 * s/lynxos.h (GETPGRP_NO_ARG):
13460 * s/hpux10-20.h (NO_SIOCTL_H):
13461 * s/gnu.h (GETPGRP_NO_ARG):
13462 * s/gnu-linux.h (NO_SIOCTL_H):
13463 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
13464 * s/cygwin.h (GETPGRP_NO_ARG):
13465 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
13466 (C_DEBUG_SWITCH): Remove duplicate definition.
13467
13468 * m/ibms390.h: Remove boilerplate comments.
13469
13470 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
13471
13472 * process.c (HAVE_SERIAL): Consolidate ifdefs.
13473 (wait_reading_process_output): Remove code for SunOS, platform not
13474 supported anymore. Use SOLARIS2 instead of sun.
13475
134762008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13477
13478 * font.c (font_open_by_name): Under NS, default lface height to zero.
13479 (font_open_for_lface): Under NS, set size based on frame fontsize.
13480 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
13481 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
13482
134832008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13484
13485 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
13486 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
13487 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
13488 YES/NO.
13489 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
13490 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
13491 * Makefile.in (clean): Clear out build destination dir.
13492
134932008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13494
13495 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
13496 xterm, xselect.
13497 * lisp.h: Remove declaration of hash_remove.
13498 * nsgui.h: Remove redefinitions of hash_remove.
13499 * fns.c (hash_remove): Rename to hash_remove_from_table.
13500
135012008-07-19 Seiji Zenitani <zenitani@mac.com>
13502
13503 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
13504 strdup() the family UTF8String before modifying it.
13505
135062008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
13507
13508 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
13509 NS_FACE_BACKGROUND with 0 instead of nil.
13510 * nsfont.m (nsfont_draw): Same.
13511
135122008-07-19 Chong Yidong <cyd@stupidchicken.com>
13513
13514 * nsfns.m (ns_set_background_color): Fix crash.
13515
135162008-07-18 Chong Yidong <cyd@stupidchicken.com>
13517
13518 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
13519
135202008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
13521
13522 * puresize.h (BASE_PURESIZE): Increase to 1240000.
13523
135242008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13525
13526 * gtkutil.c: Include <config.h> instead of "config.h".
13527
13528 * lisp.h (Foverlay_buffer): Add EXFUN.
13529
13530 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
13531 child process to complete child_setup. Undo 2005-09-21 change.
13532
13533 * s/darwin.h: Mention setsid after vfork.
13534
135352008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13536
13537 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
13538 Depend on macgui.h.
13539
13540 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
13541 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
13542
13543 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
13544 and f19.
13545 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
13546
13547 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
13548 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
13549 Remove enumerators.
13550
13551 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
13552 Check if FACE_FROM_ID returns NULL.
13553
135542008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
13555
13556 * w32inevt.c (change_frame_size): Remove extern declaration.
13557 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
13558 change_frame_size.
13559
135602008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13561
13562 * getloadavg.c: Revert last change (2008-07-15).
13563
135642008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
13565
13566 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 13567 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
13568 from configure.
13569
135702008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
13571
13572 * s/sol2.h:
13573 * s/sol2-4.h: Reorganize conditionals.
13574
13575 * ecrt0.c: Remove code depending on m68000, not used anymore.
13576
13577 * fns.c (hash_remove): Make static.
13578 * lisp.h (hash_remove): Don't prototype.
13579
13580 * m/ibmrs6000.h:
13581 * m/ibms390x.h:
13582 * m/macppc.h: Remove boilerplate comments.
13583
13584 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
13585 Solaris, which does not need them.
13586
13587 * m/vax.h: Remove comments about unsupported systems.
13588
13589 * s/darwin.h: Reorganize ifdefs.
13590
135912008-07-17 Andreas Schwab <schwab@suse.de>
13592
13593 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
13594
135952008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
13596
13597 Use SDATA. Follow coding convention of placing operators at
13598 beginning of next line rather than end of previous line, and placing
13599 spaces around infix operators.
13600
13601 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
13602 in case it was defined already.
13603 USE @GNUSTEP_MAKEFILES@ rather than envvars.
13604 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
13605 ns_default.
13606 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
13607 Lisp_Objects.
13608 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
13609 (ns_defined_color, ns_color_to_lisp): Declare.
13610 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
13611 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
13612 it's accepted even with USE_LISP_UNION_TYPE.
13613 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
13614 (update_frame_tool_bar): Remove apparently obsolete tests for
13615 non-integerness of f->tool_bar_lines.
13616 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
13617 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
13618 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
13619 (nsfont_open): Don't confuse NULL for Qnil.
13620 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
13621 * menu.h (find_and_call_menu_selection):
13622 * menu.c (find_and_call_menu_selection): Use just int for vector size.
13623 (find_and_return_menu_selection): Always return something.
13624 * frame.h: Include dispextern.h for Display_Info.
13625 (display_x_get_resource): Declare.
13626
136272008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
13628
13629 * syntax.c: Remove stdio.h include accidentally introduced in
13630 Emacs.app commit.
13631 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
13632 NS_IMPL_COCOA.
13633 * keyboard.c (handle_async_input, input_available_signal): Remove
13634 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
13635
136362008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13637
13638 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
13639 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
13640 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
13641 Use SDATA.
13642
13643 * keymap.c: Remove all NS-specific code.
13644 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
13645 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
13646 where_is_preferred_modifier, return a different value depending on how
13647 preferred is the binding.
13648 (where_is_internal): Adjust accordingly.
13649 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
13650 Adjust to new preferred_sequence_p.
13651 (syms_of_keymap): Declare `where-is-preferred-modifier'.
13652 * keyboard.c (parse_solitary_modifier): Not static any more.
13653 * keyboard.h (parse_solitary_modifier): Declare.
13654
136552008-07-16 Andreas Schwab <schwab@suse.de>
13656
13657 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
13658 of easymenu.
13659
136602008-07-16 Chong Yidong <cyd@stupidchicken.com>
13661
13662 * xdisp.c (move_it_in_display_line): Account for word wrap, so
13663 that we don't move off the line.
13664
136652008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
13666
13667 * keyboard.c (Qsuper): Remove.
13668 (parse_menu_item): Don't call where_is_internal specially for NS.
13669
136702008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13671
13672 * s/gnu-linux.h: Remove boilerplate comments.
13673
13674 * m/alpha.h (__ELF__): Consolidate conditions.
13675
13676 * m/m68k.h (linux): Use GNU_LINUX instead.
13677 Remove boilerplate comments.
13678
13679 * m/intel386.h: Undo refactoring from previous change.
13680 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
13681 too, remove dead code.
13682 (linux): Use GNU_LINUX instead.
13683
136842008-07-16 Jason Rumney <jasonr@gnu.org>
13685
13686 * w32gui.h: Repeat 26 June changes lost by last change.
13687
136882008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
13689
13690 * systty.h: Remove code for Aix on 386, unsupported platform.
13691
13692 * s/ms-w32.h: Remove boilerplate comments.
13693 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
13694
13695 * s/gnu-linux.h (TERM): Remove support.
13696 (HAVE_SYSVIPC): Remove, unused.
13697 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
13698 for this system.
13699
13700 * process.c: Remove support for IRIS, unused.
13701 Remove support for TERM, not relevant anymore.
13702
13703 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
13704 used with the definition.
13705
13706 * s/aix4-2.h (static): Do not undef.
13707
13708 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
13709 only used on Aix.
13710 (HAVE_SYSVIPC): Remove, unused.
13711
13712 * m/hp800.h (CANNOT_DUMP): Do not undef.
13713
13714 * m/alpha.h: Fix comment.
13715
13716 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
13717 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
13718 used by this configuration.
13719 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
13720 * unexec.c: Remove code depending on HPUX and
13721 USG_SHARED_LIBRARIES, not used with this file. Remove code
13722 depending on IRIS, unused. Remove if 0-ed code.
13723
13724 * s/template.h: Remove comments about static.
13725
13726 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
13727 Remove if 0-ed code.
13728 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
13729 were the same as the default.
13730 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
13731 Remove boilerplate comments.
13732 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
13733 (HAVE_SYSVIPC): Remove, unused.
13734 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
13735
13736 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13737 Remove boilerplate comments.
13738 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13739 Remove boilerplate comments.
13740 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
13741 Remove boilerplate comments.
13742 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
13743
13744 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
13745 USG systems which do not use DATA_SEG_BITS.
13746 Refactor code. Remove boilerplate comments.
13747
13748 * m/ibms390.h:
13749 * m/m68k.h:
13750 * s/bsd-common.h:
13751 * s/cygwin.h:
13752 * s/darwin.h:
13753 * s/freebsd.h:
13754 * s/gnu.h:
13755 * s/msdos.h: Remove boilerplate comments.
13756
13757 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 13758 do not use this file.
aac0c6e3
MR
13759 (IRIS_4D): Remove, unused.
13760
13761 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 13762 do not use this file.
aac0c6e3
MR
13763 (SIGN_EXTEND_CHAR):
13764 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
13765 * unexmips.c: Remove file, unused.
13766
13767 * editfns.c (Fuser_full_name): Replace the only use of
13768 USER_FULL_NAME with its value.
13769 * config.in: Regenerate.
13770
137712008-07-16 David Reitter <david.reitter@gmail.com>
13772
13773 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
13774 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
13775
137762008-07-16 Glenn Morris <rgm@gnu.org>
13777
13778 * emacs.c (system-type): Doc fix.
13779
137802008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
13781
13782 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
13783 If the cache doesn't work, let's fix it, rather than work around it.
13784
137852008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13786
13787 * Makefile.in: Correct additions for nsfont.o in last commit.
13788 * nsfont.m: New file (forgot last commit).
13789
137902008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
13791
13792 * callproc.c (set_initial_environment): Initialize
13793 Vprocess_environment under CANNOT_DUMP (fixes crash when
13794 batch-compiling for bootstrap).
13795
137962008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 13797 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 13798
c4cc8b9a
JB
13799 * frame.c (make_initial_frame): Call init_frame_faces(f) in
13800 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
13801
138022008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13803
13804 Changes and additions for NeXTstep windowing system (Cocoa and
13805 GNUstep) support.
13806
13807 * Makefile.in:
13808 * config.in: Support defines and build commands for NS port.
13809 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
13810 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
13811 * dispextern.h: Include nsgui.h and add needed typedefs under NS
13812 windowing.
13813 (struct face): Add synth_ital field.
13814 * dispnew.c: Include nsterm.h when compiling under NS windowing.
13815 (init_display): Initialize Vinitial_window_system to "ns" when so
13816 compiled.
13817 * emacs.c: Include GSConfig.h when compiling under GNUstep.
13818 (display_arg): Use under NS.
13819 (main): Under NS, allocate autorelease pool and handle command line
13820 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
13821 (standard_args): Add NS-specific args.
13822 (shut_down_emacs): Shut down NS terminal if compiled under NS.
13823 * font.c (DEFAULT_ENCODING): New variable.
13824 (font_find_for_lface): Use it.
13825 (syms_of_font): Load syms_of_nsfont under NS.
13826 * font.h: Declare nsfont_driver when compiled under NS.
13827 * fontset.c: When compiling under NS, include nsterm.h.
13828 (fontset_from_font): Autoconstruct fontset under NS.
13829 * frame.c (various): Under NS, include nsterm.h, add Qns window system
13830 symbol, document and use it.
13831 (do_switch_frame): When for_deletion under Cocoa, add
13832 Fraise_frame(Qnil).
13833 (x_set_frame_parameters): Ensure font attribute changes are picked up.
13834 (x_get_arg): Allow "yes" and "no" as boolean values.
13835 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
13836 Qright under Cocoa.
13837 (focus-follows-mouse): Default to 0 under NS.
13838 * frame.h (enum output_method): Add output_ns.
13839 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
13840 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
13841 (FRAME_WINDOW_P): NS-specific definition.
13842 * fringe.c (max_used_fringe_bitmap): Make public.
13843 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
13844 (getloadavg): Use NeXT code under descendant OS's.
13845 * image.c (includes and header section, x_create_bitmap_from_data)
13846 (x_create_bitmap_from_file, free_bitmap_record, image_background)
13847 (image_background_transparent, x_clear_image_1)
13848 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
13849 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
13850 (x_to_xcolors, x_from_xcolors, x_disable_image)
13851 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
13852 other GUIs, including XPM support using code originally written for
13853 Carbon GUI.
13854 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
13855 using NS API.
13856 (image_ascent): Use font metrics macros instead of direct struct field
13857 access.
13858 * keyboard.c (includes): Add nsterm.h when compiling under NS.
13859 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
13860 Also, handle NS as GTK for menu bar purposes.
13861 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
13862 toolkit where they differ.
13863 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
13864 use cachelist, still needed under NS.
13865 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
13866 (struct widget_value): Define it here for menu.c.
13867 * keymap.c (includes): Include modifier internals.
13868 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
13869 NS.
13870 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
13871 support for preferring sequences using certain modifiers, specified by
13872 the FIRSTONLY argument.
13873 * lisp.h (hash_remove): Rename to avoid name clash when compiling
13874 under NS GNUstep implementation.
13875 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
13876 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
13877 * menu.c: Include nsterm.h under NS.
13878 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
13879 (free_menubar_widget_tree_value, update_submenu_strings)
13880 (find_and_call_menu_selection): Treat NS as X and NT.
13881 (find_and_return_menu_selection): New function, used for popup menus.
13882 * nsgui.h:
13883 * nsterm.h:
13884 * nsfns.m:
13885 * nsimage.m:
13886 * nsmenu.m:
13887 * nsselect.m:
13888 * nsterm.m: New files.
13889 * process.c (wait_reading_process_output): Under NS, call ns_select()
13890 instead of plain select().
13891 * syntax.c (char_quoted): Under NS, avoid a crash when called near
13892 beginning of buffer.
13893 * sysselect.h (init_process): Rename when compiling under Cocoa to
13894 avoid name conflict.
13895 * termhooks.h (display_info): Add ns_display_info to union.
13896 * terminal.c (Fterminal_live_p): Add ns to terminal types.
13897 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
13898 COCOA environment.
13899 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
13900 unexec() signature. (Note, this will dump, but the resulting file
13901 crashes; unexosx is used instead; keeping around for reference and
13902 possible aid in getting dump working under GNUstep.)
13903 * w32gui.h (button_type, widget_value): Remove definitions (now in
13904 keyboard.h).
13905 * window.c: Include nsterm.h when compiling under NS.
13906 * xdisp.c (includes): Include nsterm.h when compiling under NS.
13907 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
13908 other GUI windowing systems.
13909 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
13910 GTK.
13911 (x_consider_frame_title): Under NS, set icon type and frame
13912 modified-state indicator; use ns_set_name_as_filename() when using
13913 formatted title.
13914 (update_window_cursor): Make public when compiling under NS.
13915 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
13916 (hourglass_atimer, Vhourglass_delay
13917 * xfaces.c (header section, init_frame_faces, clear_font_table)
13918 (defined_color, unload_color, x_face_list_fonts)
13919 (prepare_face_for_display): Add NS support parallel to other GUIs.
13920 Emulate GCs like other non-X GUIs.
13921 (split_font_name): Don't lowercase font name under NS.
13922 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
13923 under NS.
13924 * s/darwin.h: Add support for compilation under NS.
13925
139262008-07-15 Jason Rumney <jasonr@gnu.org>
13927
13928 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
13929 (w32_show_hourglass): Rename from show_hourglass.
13930 (w32_hide_hourglass): Rename from hide_hourglass.
13931 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
13932 (Vhourglass_delay): Declare extern.
13933 (hourglass_started): Remove.
13934
13935 * xdisp.c (Vhourglass_delay): Remove static.
13936 (hourglass_started, start_hourglass, cancel_hourglass):
13937 Don't include these versions on WINDOWSNT.
13938
139392008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
13940
13941 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
13942 variables (formerly in xfns.c).
13943 (show_hourglass, hide_hourglass): New prototypes (same).
13944 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
13945 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
13946 in xfns.c).
13947 (syms_of_xdisp): Declare/initialize display-hourglass,
13948 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
13949 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
13950 formerly in xfns.c.
13951 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13952 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13953 (start_hourglass, cancel_hourglass): Remove.
13954 (show_hourglass, hide_hourglass): Remove prototypes and static
13955 modifiers.
13956 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
13957 hourglass_atimer, hourglass_shown_p declaration/initialization.
13958 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
13959 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
13960 (start_hourglass, cancel_hourglass): Remove.
13961 (show_hourglass, hide_hourglass): Remove prototypes and static
13962 modifiers.
13963 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
13964 hourglass_atimer, hourglass_shown_p declaration/initialization.
13965 * w32fns.c (display_hourglass_p, Vhourglass_delay)
13966 (DEFAULT_HOURGLASS_DELAY): Remove.
13967 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
13968 hourglass_shown_p declaration/initialization.
13969
139702008-07-14 Jason Rumney <jasonr@gnu.org>
13971
13972 * w32fns.c (w32_get_arg): Remove wrapper function.
13973 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
13974 directly.
13975 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
13976
139772008-07-14 Kenichi Handa <handa@m17n.org>
13978
13979 * xfont.c (xfont_open): Add workaround for X's bug.
13980
139812008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13982
13983 * fontset.c: Include <stdio.h> unconditionally.
13984
139852008-07-13 Michael Albinus <michael.albinus@gmx.de>
13986
13987 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
13988 for filtering.
13989
139902008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
13991
13992 * s/vms.h: Use __GNUC__ instead of _GNUC_.
13993
13994 * m/macppc.h:
13995 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
13996
c4cc8b9a 13997 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
13998 (SPECIAL_EMACS_INT):
13999 * m/ia64.h (SPECIAL_EMACS_INT):
14000 * m/amdx86-64.h (SPECIAL_EMACS_INT):
14001 * s/gnu.h (NLIST_STRUCT):
14002 * s/aix4-2.h (X11R5_INHIBIT_I18N):
14003 * s/gnu-linux.h (LINUX):
14004 * s/msdos.h (HAVE_FACES):
14005 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
14006
14007 * systty.h:
14008 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
14009 anymore.
14010
140112008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
14012
14013 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
14014 always defined as int.
14015
14016 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
14017 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
14018 * s/gnu-linux.h (HAVE_WAIT_HEADER):
14019 * s/freebsd.h (HAVE_WAIT_HEADER):
14020 * s/bsd-common.h (HAVE_UNION_WAIT):
14021 * s/aix4-2.h (HAVE_WAIT_HEADER):
14022 * m/mips.h (HAVE_UNION_WAIT):
14023 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
14024 (COFF, static): Do not define, they are undefined later in the file.
14025
14026 * process.c (update_status): Don't use a union.
14027 (status_convert):
14028 (sigchld_handler): Use int instead of WAITTYPE.
14029
140302008-07-12 Chong Yidong <cyd@stupidchicken.com>
14031
14032 * indent.c (Fvertical_motion): Restore hscroll before moving to
14033 goal column.
14034
140352008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14036
14037 * lisp.h: Remove left over code.
14038
140392008-07-11 Andreas Schwab <schwab@suse.de>
14040
14041 * lisp.h: Fix logic in last change.
14042
14043 * menu.h: New file.
14044 * menu.c: Include it.
14045 * xmenu.c: Likewise.
14046 * Makefile.in: Update dependencies.
14047
140482008-07-11 Kenichi Handa <handa@m17n.org>
14049
14050 * fontset.c (fontset_from_font): Cancel the previous change.
14051
140522008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
14053
14054 * lisp.h:
14055 * w32heap.c:
14056 * emacs.c:
14057 * alloc.c: Replace all references of NO_UNION_TYPE with
14058 USE_LISP_UNION_TYPE.
14059
14060 * m/xtensa.h (NO_UNION_TYPE):
14061 * m/vax.h (NO_UNION_TYPE):
14062 * m/template.h (NO_UNION_TYPE):
14063 * m/sparc.h (NO_UNION_TYPE):
14064 * m/mips.h (NO_UNION_TYPE):
14065 * m/macppc.h (NO_UNION_TYPE):
14066 * m/m68k.h (NO_UNION_TYPE):
14067 * m/iris4d.h (NO_UNION_TYPE):
14068 * m/intel386.h (NO_UNION_TYPE):
14069 * m/ibms390x.h (NO_UNION_TYPE):
14070 * m/ibms390.h (NO_UNION_TYPE):
14071 * m/ibmrs6000.h (NO_UNION_TYPE):
14072 * m/ia64.h (NO_UNION_TYPE):
14073 * m/hp800.h (NO_UNION_TYPE):
14074 * m/arm.h (NO_UNION_TYPE):
14075 * m/amdx86-64.h (NO_UNION_TYPE):
14076 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
14077 defining it the same.
14078
140792008-07-10 Chong Yidong <cyd@stupidchicken.com>
14080
14081 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
14082
140832008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14084
14085 * fileio.c:
50426a04 14086 * sysdep.c:
aac0c6e3
MR
14087 * systty.h:
14088 * m/ibmrs6000.h:
14089 * m/iris4d.h:
14090 * s/aix4-2.h:
14091 * s/freebsd.h:
14092 * s/gnu-linux.h:
14093 * s/hpux10-20.h:
14094 * s/hpux11.h:
14095 * s/netbsd.h:
14096 * s/sol2-3.h:
14097 * s/sol2-4.h:
14098 * s/sol2.h:
14099 * s/usg5-4.h:
14100 * s/vms.h: Remove references to unused variables.
14101
141022008-07-10 Andreas Schwab <schwab@suse.de>
14103
14104 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
14105 pattern before matching the generic family.
14106
141072008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
14108
14109 * unexec.c:
14110 * s/vms.h:
14111 * s/usg5-4-2.h:
14112 * s/sol2-5.h:
14113 * s/freebsd.h:
14114 * s/darwin.h: Remove dead code.
14115
14116 * m/template.h:
14117 * m/sparc.h:
14118 * m/mips.h:
14119 * m/m68k.h:
14120 * m/iris4d.h:
14121 * m/intel386.h:
14122 * m/ibms390x.h:
14123 * m/ibms390.h:
14124 * m/ia64.h:
14125 * m/hp800.h:
14126 * m/arm.h:
14127 * m/amdx86-64.h: Remove dead code and references to unused
14128 and compiler defined symbols.
14129
14130 * unexmips.c:
14131 * unexelf.c: Remove references to desupported systems.
14132
14133 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
14134
14135 * m/powermac.h: Remove boilerplate comments.
14136 (NO_REMAP): Remove unused definition.
14137
14138 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
14139 define them.
14140
141412008-07-10 Kenichi Handa <handa@m17n.org>
14142
14143 * xfont.c (xfont_open): Log the reason of failure.
14144
141452008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
14146
14147 * fontset.c (fontset_get_font_group):
14148 * font.c (font_check_otf): Specify argument types.
14149
141502008-07-09 Kenichi Handa <handa@m17n.org>
14151
14152 * coding.c (detect_coding_utf_8): Set detect_info->found only when
14153 non-ASCII char is found.
14154
14155 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
14156 (reorder_font_vector): Change the arg preferred_family to font.
14157 Prefer the spec matching with font.
14158 (fontset_get_font_group): New function.
14159 (fontset_find_font): Change the format of an element of a realized
14160 fontset. Use fontset_get_font_group.
14161 (fontset_font): Try the current fontset, the default fontset, the
14162 fallbacks of the current fontset, and the fallbacks of the default
14163 fontset in this order.
14164 (face_for_char): Delete the shortcut to use the current font.
14165 (fontset_from_font): Don't set fonts for Latin in the fontset.
14166
14167 * font.h (font_make_object, font_match_p): Adjust prototypes.
14168
14169 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
14170
14171 * font.c (font_make_object): New arg entity and pixelsize.
14172 (font_check_otf_features, font_check_otf): New functions.
14173 (font_match_p): Check :lang, :script, and :otf properties.
14174
14175 * xfont.c (xfont_open): Adjust it for the change of
14176 font_make_object.
14177 (xfont_text_extents): Fix initial setting of metrics.
14178
14179 * ftfont.c (struct ftfont_info): New member index, delete member
14180 fc_charset_idx. Make the member order compatible with struct
14181 xftfont_info.
14182 (fc_charset_table): Change charset names to registry names.
14183 (ftfont_pattern_entity): Delete the args registry and
14184 fc_charset_idx. Change the value of :font-entity property
14185 to (FONTNAME . INDEX). Always set :registry property to
14186 `iso10646-1'.
14187 (struct ftfont_cache_data): New struct.
14188 (ftfont_lookup_cache): New arg for_face.
14189 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
14190 (ftfont_driver): Set the member otf_capability.
14191 (ftfont_get_charset): Adjust it for the change of
14192 fc_charset_table.
14193 (OTF_TAG_SYM): New macro.
14194 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
14195 for the change of fc_charset_table.
14196 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
14197 ftfont_pattern_entity. Add FC_INDEX to objset.
14198 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
14199 and ftfont_pattern_entity.
14200 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
14201 font_make_object, struct ftfont_info.
14202 (ftfont_has_char): Use ftfont_get_fc_charset.
14203 (ftfont_otf_features, ftfont_otf_capability): New functions.
14204 (ftfont_shape): Use ftfont_get_otf.
14205 (ftfont_text_extents): Fix initial setting of metrics.
14206
14207 * xftfont.c (struct xftfont_info): New member ft_size. Make the
14208 member order compatible with struct ftfont_info.
14209 (xftfont_open): Add FC_CHARSET to the pattern. Set
14210 xftfont_info->ft_size. Don't unlock the face. Check BDF
14211 properties if appropriate.
14212 (xftfont_close): Unlock the face.
14213 (xftfont_anchor_point, xftfont_shape): Deleted.
14214 (syms_of_xftfont): Don't set members anchor_point and shape of
14215 xftfont_driver.
14216
14217 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
14218 font_make_object.
14219
14220 * w32font.c (w32font_open): Adjust it for the change of
14221 font_make_object.
14222 (w32font_open_internal): Don't set properties of font_object here.
14223
142242008-07-08 Chong Yidong <cyd@stupidchicken.com>
14225
14226 * macfns.c (x_create_tip_frame):
14227 * w32fns.c (x_create_tip_frame):
14228 * xfns.c (x_create_tip_frame): Pass parameter argument to
14229 face-set-after-frame-default.
14230
14231 * xfaces.c (Finternal_merge_in_global_face): Save merged
14232 attributes for the default face back into the face vector.
14233
142342008-07-08 Andreas Schwab <schwab@suse.de>
14235
14236 * fontset.h: Declare fontset_from_font. Don't declare
14237 new_fontset_from_font and fontset_from_font_name.
14238 * xterm.c: Include "fontset.h".
14239 * Makefile.in (xterm.o): Update dependencies.
14240
142412008-07-08 Glenn Morris <rgm@gnu.org>
14242
14243 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
14244 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
14245
142462008-07-07 Chong Yidong <cyd@stupidchicken.com>
14247
14248 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
14249 (x_set_frame_parameters): Don't bind it.
14250
142512008-07-07 Juanma Barranquero <lekktu@gmail.com>
14252
14253 * w32fns.c (map_w32_filename): Declare extern.
14254
142552008-07-07 Jason Rumney <jasonr@gnu.org>
14256
14257 * w32term.c (WS_EX_LAYERED): Define if not already.
14258
142592008-07-06 Chong Yidong <cyd@stupidchicken.com>
14260
14261 * xfaces.c (set_font_frame_param): Don't try to set the font
14262 parameter if it is still unspecified in the lface.
14263
142642008-07-05 Chong Yidong <cyd@stupidchicken.com>
14265
14266 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
14267 face if it didn't already exist.
14268
14269 * xdisp.c (try_window_id): Give up if word-wrapping is on.
14270
142712008-07-05 Andreas Schwab <schwab@suse.de>
14272
14273 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
14274
142752008-07-05 Chong Yidong <cyd@stupidchicken.com>
14276
14277 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
14278 word-wrapping.
14279 (IT_DISPLAYING_WHITESPACE): New macro.
14280 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
14281 when word-wrapping. Simplify word-wrapping logic. Use correct
14282 pixel positions when saving copies of the iterator.
14283 (display_line): Use proper wrap point if the last character on a
14284 line was preceded by whitespace.
14285
142862008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
14287
14288 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
14289
142902008-07-04 Kenichi Handa <handa@m17n.org>
14291
14292 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
14293
14294 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
14295
142962008-07-02 Jason Rumney <jasonr@gnu.org>
14297
14298 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 14299 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
14300
14301 * xdisp.c (next_element_from_display_vector): Move assignment out
14302 of if statement.
14303
143042008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
14305
14306 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
14307
14308 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
14309 (syms_of_fileio): Initialize and export them.
14310 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
14311
14312 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
14313 (Fsystem_move_file_to_trash): New function.
14314 (syms_of_w32fns): Export it to lisp.
14315
143162008-07-01 Jason Rumney <jasonr@gnu.org>
14317
14318 * w32font.c (w32font_text_extents): Don't count overhang as part
14319 of width.
14320
143212008-06-30 Miles Bader <miles@gnu.org>
14322
14323 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
14324 Add `avoid_cursor_p' field.
14325
14326 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
14327 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
14328 (append_glyph, append_composite_glyph, produce_image_glyph)
14329 (append_stretch_glyph): Initialize avoid_cursor_p.
14330 (get_it_property): Rename from `get_line_height_property'.
14331 (x_produce_glyphs): Use get_it_property.
14332 (handle_line_prefix, push_display_prop): New functions.
14333 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
14334 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
14335 New variables.
14336 (syms_of_xdisp): Initialize them.
14337
143382008-06-30 Kenichi Handa <handa@m17n.org>
14339
14340 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
14341 XftDefaultSubstitute (they are called in XftFontMatch).
14342 (xftfont_open): Fix args to ftfont_font_format.
14343
14344 * ftfont.c (fc_charset_table): New member lang.
14345 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 14346 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
14347 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
14348 (ftfont_open): Fix args to ftfont_font_format.
14349 (ftfont_font_format): New arg filename.
14350
143512008-06-30 Chong Yidong <cyd@stupidchicken.com>
14352
14353 * xfaces.c (Finternal_merge_in_global_face): If default face was
14354 modified, realize it again. Update the font face attribute.
14355
143562008-06-29 Jason Rumney <jasonr@gnu.org>
14357
14358 * w32term.c (x_set_frame_alpha): Fix logic.
14359
143602008-06-29 Kenichi Handa <handa@m17n.org>
14361
14362 * fontset.c (Finternal_char_font): Return font-object instead of
14363 font-name.
14364
14365 * composite.c (get_composition_id): Fix the width calculation for TAB.
14366
143672008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
14368
14369 * indent.c (Fvertical_motion): Properly handle float column arg.
14370
143712008-06-28 Jason Rumney <jasonr@gnu.org>
14372
14373 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
14374 (pfnSetLayeredWindowAttributes): New function pointer.
14375 (w32_initialize): Initialize it when supported.
14376 (x_set_frame_alpha): New function.
14377
14378 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
14379 (w32_frame_parm_handlers): Set alpha handler.
14380
14381 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
14382
143832008-06-27 Jason Rumney <jasonr@gnu.org>
14384
14385 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
14386 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
14387 (w32_to_x_charset, x_to_w32_charset)
14388 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14389 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14390 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14391 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14392 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14393 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14394 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
14395 (Qw32_charset_unicode): Remove.
14396 (syms_of_w32fns): Update for above changes.
14397
14398 * w32font.c (w32_to_x_charset, x_to_w32_charset)
14399 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
14400 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
14401 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
14402 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
14403 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
14404 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
14405 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
14406 (syms_of_w32font): Update for above changes.
14407
144082008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
14409
14410 * s/usg5-4.h: Fix previous change: keep the correct branch of a
14411 removed #if.
14412 (USG_SHARED_LIBRARIES): Remove duplicate definition.
14413
144142008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 14415 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
14416
14417 * makefile.w32-in (LOCAL_FLAGS):
14418 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
14419
14420 * sysdep.c (_spawnlp, _getpid):
14421 Declare with explicit _cdecl instead of _CRTAPI1.
14422
14423 * editfns.c (Fget_internal_run_time):
14424 Check for WINDOWSNT with #ifdef, not #if.
14425
144262008-06-26 Jason Rumney <jasonr@gnu.org>
14427
14428 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
14429
14430 * w32term.c (x_draw_glyph_string_foreground)
14431 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
14432 Use FONT_HANDLE macro.
14433 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
14434
14435 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14436 (uniscribe_encode_char): Use FONT_HANDLE macro.
14437
14438 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
14439 (w32font_text_extents): Use precast w32_font.
14440 (w32font_close): Free cached metrics.
14441 (w32font_open_internal): Allocate space for name on stack.
14442
144432008-06-26 Chong Yidong <cyd@stupidchicken.com>
14444
14445 * xdisp.c (extend_face_to_end_of_line): Fix last change.
14446
144472008-06-26 Jason Rumney <jasonr@gnu.org>
14448
14449 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
14450 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
14451
144522008-06-26 Juanma Barranquero <lekktu@gmail.com>
14453
14454 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
14455
144562008-06-26 Jason Rumney <jasonr@gnu.org>
14457
14458 * w32bdf.c, w32bdf.h: Remove obsolete files.
14459
14460 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
14461
14462 * w32gui.h: Don't include w32bdf.h.
14463 (XCharStruct, enum w32_char_font_type, W32FontStruct):
14464 Remove obsolete font support.
14465
14466 * w32font.h (struct w32font_info): Remove compat_w32_font.
14467 Add hfont member.
14468 (FONT_COMPAT): Remove obsolete macro.
14469
14470 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
14471 (w32font_encode_char, w32font_text_extents): Use new hfont member.
14472 (w32font_open_internal): Remove compat code. Set new hfont member.
14473 (Fx_select_font): Use new hfont member.
14474
14475 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
14476 (uniscribe_encode_char): Use new hfont member.
14477
14478 * w32term.c (x_draw_glyph_string_foreground)
14479 (x_draw_composite_glyph_string_foreground): Use new hfont member.
14480 (x_draw_glyph_string): Use metrics in w32font_info.
14481
144822008-06-26 Kenichi Handa <handa@m17n.org>
14483
14484 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
14485
144862008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
14487
14488 * unexnext.c:
14489 * m/ews4800.h:
14490 * m/hp9000s300.h:
14491 * m/ibm370aix.h:
14492 * m/mips-siemens.h:
14493 * m/ncr386.h:
14494 * m/next.h:
14495 * m/pmax.h:
14496 * m/powerpcle.h:
14497 * m/tandem-s2.h:
14498 * s/386bsd.h:
14499 * s/bsd386.h:
14500 * s/bsd4-1.h:
14501 * s/bsd4-2.h:
14502 * s/bsdos2-1.h:
14503 * s/bsdos2.h:
14504 * s/bsdos3.h:
14505 * s/bsdos4.h:
14506 * s/nextstep.h:
14507 * s/ultrix4-3.h:
14508 * s/usg5-0.h:
14509 * s/usg5-2-2.h:
14510 * s/usg5-2.h:
14511 * s/usg5-4-3.h:
14512 * s/ux4800.h:
14513 * s/uxpds.h:
14514 * s/uxpv.h: Remove support for obsolete systems.
14515 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 14516 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
14517 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
14518 Remove, insert contents in s/aix4-2.h.
14519 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
14520 * s/bsd4-3.h: Rename to ...
14521 * s/bsd-common.h: ... this.
14522 * data.c:
14523 * doc.c:
14524 * ecrt0.c:
14525 * emacs.c:
14526 * fileio.c:
14527 * floatfns.c:
14528 * keyboard.c:
14529 * mem-limits.h:
14530 * print.c:
14531 * process.c:
14532 * sysdep.c:
14533 * syssignal.h:
14534 * systty.h:
14535 * syswait.h:
14536 * term.c:
14537 * unexec.c:
14538 * unexelf.c:
14539 * unexhp9k800.c:
14540 * m/hp800.h:
14541 * m/ibmrs6000.h:
14542 * m/mips.h:
14543 * m/vax.h:
14544 * s/darwin.h:
14545 * s/freebsd.h:
14546 * s/gnu.h:
14547 * s/ms-w32.h:
14548 * s/msdos.h:
14549 * s/netbsd.h:
14550 * s/template.h: Remove references to obsolete variables.
14551
14552 * Makefile.in: Add dependencies for all unexec files.
14553 (admindir): Remove unused variable.
14554 (UNEXEC_SRC): Remove references.
14555
145562008-06-25 Chong Yidong <cyd@stupidchicken.com>
14557
14558 * xfns.c (x_default_font_parameter): If Xft is available, first
14559 try Monospace-12 for the default font.
14560
145612008-06-25 Jason Rumney <jasonr@gnu.org>
14562
14563 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
14564
145652008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
14566
14567 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
14568
14569 * buffer.c (syms_of_buffer): Remove default-word-wrap.
14570
145712008-06-25 Juanma Barranquero <lekktu@gmail.com>
14572
14573 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
14574 <scroll-conservatively>: Fix typo in docstring.
14575
14576 * xselect.c (Fx_send_client_event): Doc fix.
14577
145782008-06-25 Kenichi Handa <handa@m17n.org>
14579
14580 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
14581
14582 * font.c (font_parse_fcname): Remove unused variables.
14583 (font_sort_entites): Delete the arg SPEC. Caller changed.
14584 Fix for the case of ! best_only.
14585 (font_delete_unmatched): Check DPI and AVGWIDTH too.
14586
14587 * lisp.h (Fstring_to_unibyte): EXFUN it.
14588
14589 * character.h (str_to_unibyte): Extern it.
14590
14591 * character.c (str_to_unibyte): New function.
14592
14593 * fns.c (Fstring_to_unibyte): New function.
14594 (syms_of_fns): Defsubr it.
14595
145962008-06-24 Kenichi Handa <handa@m17n.org>
14597
14598 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
14599 DPI too.
14600 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
14601
146022008-06-24 Andreas Schwab <schwab@suse.de>
14603
14604 * Makefile.in (${lispsource}loaddefs.el): Rename from
14605 ../lisp/loaddefs.el.
14606 (bootstrap-clean): Do what distclean does but don't remove
14607 Makefile.
14608 (distclean): Depend on bootstrap-clean and remove Makefile.
14609
146102008-06-24 Chong Yidong <cyd@stupidchicken.com>
14611
14612 * buffer.h (struct buffer): New member word_wrap.
14613
14614 * buffer.c (syms_of_buffer): New variables default-word-wrap and
14615 word-wrap.
14616 (init_buffer_once): Initialize them.
14617
14618 * dispextern.h (struct it): Replace bool truncate_lines_p with a
14619 line_wrap enum possessing three possible values.
14620
14621 * termopts.h: Replace truncate_partial_width_windows with
14622 Vtruncate_partial_width_windows.
14623
14624 * dispnew.c (direct_output_for_insert): Avoid direct output when
14625 inserting a space with word wrap on.
14626
14627 * indent.c (compute_motion): Obey integer values of
14628 truncate-partial-width-windows.
14629
14630 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
14631 replacing truncate_partial_width_windows.
14632 (init_iterator): If Vtruncate_partial_width_windows is an integer,
14633 truncate only if the window width is below that integer.
14634 (start_display, resize_mini_window, produce_stretch_glyph)
14635 (display_string, move_it_in_display_line_to): Use line_wrap.
14636 (back_to_previous_visible_line_start, reseat_1): Reset
14637 string_from_display_prop_p.
14638 (display_line): Extend default face to end of line when wrapping.
14639
146402008-06-24 Kim F. Storm <storm@cua.dk>
14641
14642 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
14643 to wrap continued lines at word boundaries.
14644
146452008-06-24 Jason Rumney <jasonr@gnu.org>
14646
14647 * font.c (Ffont_face_attributes): Multiply pixel size before point
14648 conversion to avoid multiplying rounding error.
14649
146502008-06-23 Jason Rumney <jasonr@gnu.org>
14651
14652 * w32term.c (x_draw_glyph_string_background)
14653 (x_draw_glyph_string): Remove old bdf font code.
14654
14655 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
14656
146572008-06-22 Kenichi Handa <handa@m17n.org>
14658
14659 * font.c (font_find_for_lface): Try the adstyle specified in
14660 the property of LFACE_FONT of LFACE (if any).
14661
146622008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 14663 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
14664
14665 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
14666
146672008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
14668
14669 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
14670 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
14671 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
14672 (witness-emacs): Remove.
14673 (lisp, shortlisp): Move loaddefs.el earlier.
14674 (mostlyclean): Forget about witness-emacs.
14675
146762008-06-22 Glenn Morris <rgm@gnu.org>
14677
14678 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
14679 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
14680
146812008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14682
14683 * Makefile.in (PRECOMP): Remove.
14684 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
14685 (witness-emacs): Run `compile-first'.
14686 (.el.elc): Use the new compile-onefile target.
14687
146882008-06-21 Kenichi Handa <handa@m17n.org>
14689
14690 * xftfont.c (xftfont_open): Handle QCembolden only when
14691 FC_EMBOLDEN is defined.
14692
146932008-06-21 Andreas Schwab <schwab@suse.de>
14694
14695 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
14696 (.el.elc): Likewise.
14697
146982008-06-21 Miles Bader <miles@gnu.org>
14699
14700 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
14701 build dir, not the lisp source dir.
14702
147032008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
14704
14705 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
14706 (bootstrapclean): Remove.
14707 (.el.elc): New rule.
14708 (PRECOMP): New var.
14709 (../lisp/subdirs.el): Remove.
14710 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
14711 (witness-emacs): New target.
14712 (mostlyclean): Remove witness-emacs as well.
14713 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
14714 Add witness-emacs dependency.
14715
147162008-06-20 Chong Yidong <cyd@stupidchicken.com>
14717
14718 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
14719 defined by the font.
14720
147212008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14722
14723 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
14724 (bootstrap-clean): New target that keeps TAGS around.
14725 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
14726 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
14727
147282008-06-20 Jason Rumney <jasonr@gnu.org>
14729
14730 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
14731 Remove obsolete font code.
14732
14733 * w32font.c (font_matches_spec): Use csb bitfield from font signature
14734 to determine language support.
14735
147362008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14737
14738 * sysdep.c (cfsetspeed): New fun extracted from the code.
14739 (cfmakeraw): Move before first use.
14740
147412008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
14742
14743 * sysdep.c (cfmakeraw): Provide fallback implementation.
14744 (serial_configure): Provide fallback implementation of cfsetspeed.
14745
147462008-06-20 Kenichi Handa <handa@m17n.org>
14747
14748 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
14749 the pattern.
14750
14751 * fontset.c (fontset_from_font): Copy font_spec before changing
14752 the elements.
14753
14754 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
14755
147562008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
14757
14758 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
14759 for explicit `font' parameters.
14760
14761 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
14762
147632008-06-19 Kenichi Handa <handa@m17n.org>
14764
14765 * frame.c: Include <ctype.h>.
14766 (x_set_font_backend): Allow spacing characters in the X resource
14767 for FontBackend.
14768
147692008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
14770
14771 * w32fns.c, xfns.c (Qfont_param): New var.
14772 (syms_of_w32fns): Initialize it.
14773 (x_default_font_parameter): Record explicit `font' into
14774 `font-parameter'.
14775
147762008-06-18 Kenichi Handa <handa@m17n.org>
14777
14778 * font.c (font_parse_xlfd): Fix previous change.
14779 (font_parse_fcname): Don't use :fc-unknown-spec.
14780 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
14781 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
14782 (font_add_log): Prepend the driver name to the resulting fonts.
14783
14784 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
14785 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
14786 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
14787
14788 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
14789 (QCembolden): New variables.
14790 (syms_of_xftfont): DEFSYM them.
14791 (xftfont_open): Call XftFontMatch. Don't trust the result of
14792 XftTextExtents8 if the pixel_size is less than 5.
14793
147942008-06-18 Andreas Schwab <schwab@suse.de>
14795
14796 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
14797 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
14798
147992008-06-18 Jason Rumney <jasonr@gnu.org>
14800
14801 * w32font.c (w32font_list, w32font_match): Add logging.
14802
14803 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
14804
148052008-06-17 Chong Yidong <cyd@stupidchicken.com>
14806
14807 * font.c (font_parse_fcname): Store divider characters for
14808 unknown-spec list. For known key symbols, intern using correct
14809 symbol name.
14810
148112008-06-17 Kenichi Handa <handa@m17n.org>
14812
14813 * xfaces.c (realize_default_face): If the frame is not on window
14814 system, set the fontset of face to nil.
14815
148162008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14817
14818 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
14819
148202008-06-16 Juanma Barranquero <lekktu@gmail.com>
14821
14822 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
14823 (build_font_name_from_vector): Delete externs.
14824
14825 * xfaces.c (struct font_name): Don't declare.
14826
148272008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
14828
14829 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
14830
148312008-06-16 Chong Yidong <cyd@stupidchicken.com>
14832
14833 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
14834
148352008-06-16 Juanma Barranquero <lekktu@gmail.com>
14836
14837 * font.c (Ffont_spec): Fix usage in docstring.
14838 (Ffont_face_attributes): Doc fix.
14839
148402008-06-16 Andreas Schwab <schwab@suse.de>
14841
14842 * font.c (Ffont_face_attributes): Fix definition.
14843
148442008-06-16 Jason Rumney <jasonr@gnu.org>
14845
14846 * font.h (font_style_symbolic_from_value): Remove.
14847
14848 * font.c (font_style_symbolic_from_value): Remove.
14849 (font_style_symbolic): Revert to pre 2008-06-13 version.
14850
14851 * w32font.c (w32_to_fc_weight): New function.
14852 (w32font_full_name, logfont_to_fcname): Use it.
14853
148542008-06-16 Kenichi Handa <handa@m17n.org>
14855
14856 * font.c (font_check_object): Delete it.
14857 (font_clear_cache): Check if a font-object is alive.
14858 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
14859 font-object to nil.
14860 (font_close_object): Don't check FONT_CLOSE_OBJECT.
14861 (font_at): Don't call font_check_object.
14862 (Ffont_get): Return a symbol for :weight, :slant, and :width.
14863
148642008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
14865
14866 * puresize.h (BASE_PURESIZE): Increase to 1230000.
14867
148682008-06-16 Chong Yidong <cyd@stupidchicken.com>
14869
14870 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
14871
148722008-06-15 Chong Yidong <cyd@stupidchicken.com>
14873
14874 * font.c (font_parse_fcname): Only one decimal point.
14875 (font_unparse_fcname): Handle data in family and foundry indices
14876 as symbols, not strings.
14877 (font_unparse_gtkname, Ffont_face_attributes): New functions.
14878
14879 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
14880
14881 * font.h (font_unparse_gtkname): Add prototype.
14882
148832008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
14884
14885 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
14886
148872008-06-15 Andreas Schwab <schwab@suse.de>
14888
14889 * font.c (font_update_drivers): Fix crash when no drivers match.
14890
148912008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
14892
14893 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
14894 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
14895
148962008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
14897
14898 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
14899
149002008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
14901
14902 * process.c (Fserial_process_configure, Fprocess_send_eof):
14903 Use EQ to compare Lisp_Objects.
14904
149052008-06-13 Jason Rumney <jasonr@gnu.org>
14906
14907 * w32fns.c (Fw32_select_font): Remove old font API function.
14908
14909 * w32font.c (logfont_to_fcname): New function.
14910 (Fx_select_font): New font dialog function compatible with
14911 GTK/fontconfig version.
14912
14913 * font.c (font_style_symbolic_from_value): New function.
14914 (font_style_symbolic): Use it.
14915
14916 * font.h (font_style_symbolic_from_value): Declare new function.
14917
149182008-06-13 Juanma Barranquero <lekktu@gmail.com>
14919
14920 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
14921 <font-width-table>: Fix typos in docstrings.
14922
149232008-06-13 Daniel Engeler <engeler@gmail.com>
14924
14925 These changes add serial port access.
14926 * process.c: Add HAVE_SERIAL.
14927 (Fdelete_process, Fprocess_status, Fset_process_buffer)
14928 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
14929 (list_processes_1, select_wrapper, Fstop_process)
14930 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
14931 (status_notify): Modify to handle serial processes.
14932 [HAVE_SERIAL] (Fserial_process_configure)
14933 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
14934 New functions.
14935 * process.h (struct Lisp_Process): Add `type'.
14936 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
14937 New functions.
14938 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
14939 serial ports.
b71ac3dd 14940 (serial_open, serial_configure): New functions.
aac0c6e3
MR
14941 * w32.h: Add FILE_SERIAL.
14942 (struct _child_process): Add ovl_read, ovl_write.
14943
149442008-06-13 Kenichi Handa <handa@m17n.org>
14945
14946 * dispextern.h (enum lface_attribute_index): New member
14947 LFACE_FOUNDRY_INDEX.
14948
14949 * font.c (font_score): Delete arg alternate_families. Check only
14950 weight, slant, width, and size. Ignore the difference of alias
14951 style symbols.
14952 (font_sort_entites): Adjust for the above change. Reflect the
14953 order of font-driver to scores.
14954 (font_list_entities): Don't check alternate_familes here.
14955 (font_clear_prop): Handle foundry.
14956 (font_update_lface): Don't parse "foundry-family" form here.
14957 Handle FONT_FOUNDRY_INDEX.
14958 (font_find_for_lface): Likewise. Handle alternate families here.
14959 If registry is nil, try iso8859-1 and ascii-0.
14960 (font_open_for_lface): Pay attention to size in ENTITY.
14961 (font_open_by_name): Simplify by calling font_load_for_lface.
14962 (free_font_driver_list): Delete it.
14963 (font_update_drivers): Preserve the order of backends.
14964 (syms_of_font): Setting of sort_shift_bits adjusted for the change
14965 of font_score and font_sort_entites.
14966 (font_update_sort_order): Likewise.
14967
14968 * xfaces.c (LFACE_FOUNDRY): New macro.
14969 (check_lface_attrs): Check foundry.
14970 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
14971 (merge_face_vectors): Check foundry.
14972 (merge_face_ref): Likewise.
14973 (Finternal_set_lisp_face_attribute): Likewise.
14974 (x_update_menu_appearance): Likewise.
14975 (Finternal_get_lisp_face_attribute): Likewise.
14976 (lface_hash): Likewise.
14977 (lface_same_font_attributes_p): Likewise.
14978 (x_supports_face_attributes_p): Likewise.
14979 (tty_supports_face_attributes_p): Likewise.
14980 (Finternal_set_alternative_font_family_alist): Intern strings.
14981 (Finternal_set_alternative_font_registry_alist): Downcase strings.
14982 (realize_default_face): Set LFACE_FOUNDRY (lface).
14983
14984 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
14985 font-driver at first.
14986
14987 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
14988
149892008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
14990
14991 * lread.c (Fload): Use xfree, not free on saved_doc_string.
14992
149932008-06-12 Jim Meyering <meyering@redhat.com>
14994
14995 Make unexec_free handle NULL the same way free does.
14996 * unexmacosx.c (unexec_free): Ignore a NULL argument.
14997
149982008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
14999
15000 * character.h (CHAR_TO_BYTE_SAFE): New macro.
15001 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
15002 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
15003 (WEAK_ALIAS): Simplify.
15004 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
15005 when searching a unibyte buffer.
15006
150072008-06-12 Chong Yidong <cyd@stupidchicken.com>
15008
15009 * xfns.c (Fx_select_font): Rename from x-font-dialog.
15010
150112008-06-12 Juanma Barranquero <lekktu@gmail.com>
15012
15013 * w32font.c: Include ctype.h.
15014
150152008-06-11 Jason Rumney <jasonr@gnu.org>
15016
15017 * w32font.c (w32font_encode_char): Detect missing glyphs that are
15018 misreported as space.
15019 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
15020 as aliases for registry iso10646-1.
15021
150222008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
15023
15024 * buffer.c (clone_per_buffer_values): Skip `name'.
15025
150262008-06-11 Chong Yidong <cyd@stupidchicken.com>
15027
15028 * font.c (font_parse_fcname): Fix last change; accept decimal
15029 points in font size.
15030
150312008-06-10 Jason Rumney <jasonr@gnu.org>
15032
15033 * w32uniscribe.c (add_opentype_font_name_to_list):
15034 Skip non unicode fonts.
15035
150362008-06-10 Chong Yidong <cyd@stupidchicken.com>
15037
15038 * xfns.c (Fx_font_dialog): New function.
15039
15040 * gtkutil.c (xg_dialog_response_cb): Rename from
15041 xg_file_response_callback.
15042 (pop_down_dialog): Rename from pop_down_file_dialog.
15043 (xg_get_file_name): Callers changed.
15044 (xg_get_font_name): New function.
15045
15046 * gtkutil.h (xg_get_font_name): Insert prototype.
15047
150482008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15049
15050 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
15051 x_underline_minimum_display_offset.
15052 (syms_of_xdisp): Declare it here rather than in xterm.c.
15053 * dispextern.h (underline_minimum_offset): Declare it.
15054 * w32term.c (x_draw_glyph_string): Use it.
15055 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
15056 (syms_of_xterm): Don't declare it any more.
15057 (x_draw_glyph_string): Adjust to the new name.
15058
8719abec 150592008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
15060
15061 * xterm.c (x_underline_minimum_display_offset): New var.
15062 (x_draw_glyph_string): Use it.
15063 (syms_of_xterm): Declare it.
15064
150652008-06-10 Chong Yidong <cyd@stupidchicken.com>
15066
15067 * font.c (font_parse_fcname): Accept GTK-style font names too.
15068
150692008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
15070
15071 * dired.c (file_name_completion): Don't return t if the match is exact
15072 but with different capitalization.
15073 * minibuf.c (Ftry_completion): Simplify.
15074
15075 * window.c (Vwindow_point_insertion_type): New var.
15076 (set_window_buffer): Use it.
15077 (syms_of_window): Init and export it to Lisp.
15078
150792008-06-10 Kenichi Handa <handa@m17n.org>
15080
15081 * font.h (font_intern_prop): Prototype adjusted.
15082
15083 * font.c (font_intern_prop): New arg force_symbol.
15084 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
15085 Adjust for the change of font_intern_prop.
15086
15087 * ftfont.c (ftfont_pattern_entity):
15088 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
15089 (w32_registry):
15090 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
15091 the change of font_intern_prop.
15092
150932008-06-09 Juanma Barranquero <lekktu@gmail.com>
15094
15095 * w32menu.c (digest_single_submenu): Declare extern.
15096
150972008-06-09 Jason Rumney <jasonr@gnu.org>
15098
15099 * w32term.c (x_make_frame_visible): Use alternate restore flags.
15100
15101 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
15102 (parse_single_submenu): Remove.
15103 (digest_single_submenu): Remove.
15104 (syms_of_w32menu): Don't initialise variables that have moved
15105 to menu.c.
15106 (set_frame_menubar): Sync with version in xmenu.c.
15107 (w32_menu_show): Sync with xmenu_show in xmenu.c.
15108
15109 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
15110 Make static again.
15111
151122008-06-09 Jason Rumney <jasonr@gnu.org>
15113
15114 Changes to w32 files related to the move of common menu code
15115 to menu.c on 2008-06-08 by Chong Yidong.
15116
15117 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
15118 defs to w32gui.h.
15119 (single_keymap_panes, push_menu_item, push_menu_pane):
15120 Make globally visible.
15121
15122 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
15123 (local_free, malloc_widget_value, free_widget_value)
15124 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
15125 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
15126 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
15127 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
15128 (menu_items, menu_items_allocated, menu_items_used)
15129 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
15130 (init_menu_items, finish_menu_items, discard_menu_items)
15131 (grow_menu_items, push_submenu_start, push_submenu_end)
15132 (push_left_right_boundary, push_menu_pane, push_menu_item)
15133 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
15134 (free_menubar_widget_tree_value, parse_single_submenu)
15135 (update_submenu_strings): Remove functions.
15136 (xmalloc_widget_value): Remove and declare extern.
15137
15138 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
15139 (OBJ1): Build it.
15140
15141 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
15142 (local_heap, local_alloc, local_free, malloc_widget_value)
15143 (free_widget_value): Define here.
15144
151452008-06-09 Kenichi Handa <handa@m17n.org>
15146
15147 * font.h (Qascii_0): Extern it.
15148
15149 * font.c (Qascii_0): New variable.
15150 (syms_of_font): DEFSYM it.
15151 (font_open_by_name): If the registry "iso8859-1" fails, try also
15152 "ascii-0".
15153
15154 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
15155
151562008-06-08 Kenichi Handa <handa@m17n.org>
15157
15158 * .gdbinit (xfont): New command.
15159
151602008-06-08 Andreas Schwab <schwab@suse.de>
15161
15162 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
15163 * Makefile.in (menu.o): Update dependencies.
15164
15165 * Makefile.in (obj): Always add menu.o.
15166 * emacs.c (main): Always call syms_of_menu.
15167 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
15168
151692008-06-08 Chong Yidong <cyd@stupidchicken.com>
15170
15171 * Makefile.in: Compile menu.c.
15172
15173 * lisp.h: Declare syms_of_menu.
15174
15175 * emacs.c (main): Call syms_of_menu.
15176
15177 * keyboard.h: Relocate platform-independent menu definitions from
15178 xmenu.c.
15179
15180 * menu.c: New file. Relocate platform-independent menu
15181 definitions from xmenu.c. Suggested by Adrian Robert.
15182
15183 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 15184 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
15185 (menu_items_used, menu_items_n_panes)
15186 (menu_items_submenu_depth): Move to keyboard.h.
15187 (init_menu_items, finish_menu_items, unuse_menu_items)
15188 (discard_menu_items, restore_menu_items, save_menu_items)
15189 (grow_menu_items, push_submenu_start, push_submenu_end)
15190 (push_left_right_boundary, push_menu_pane, push_menu_item)
15191 (keymap_panes, single_keymap_panes, single_menu_item)
15192 (list_of_panes, list_of_items, find_and_call_menu_selection)
15193 (xmalloc_widget_value, free_menubar_widget_value_tree)
15194 (parse_single_submenu, digest_single_submenu)
15195 (update_submenu_strings): Move to menu.c.
15196
151972008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
15198
15199 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
15200
152012008-06-06 Miles Bader <miles@gnu.org>
15202
15203 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
15204 face, not frame default.
15205
152062008-06-05 Martin Rudalics <rudalics@gmx.at>
15207
15208 * window.c (pop_up_windows, pop_up_frames)
15209 (display_buffer_reuse_frames, Vpop_up_frame_function)
15210 (Vdisplay_buffer_function, Veven_window_heights)
15211 (Vspecial_display_buffer_names, Vspecial_display_regexps)
15212 (Vspecial_display_function, Vsame_window_buffer_names)
15213 (Vsame_window_regexps, split_height_threshold)
15214 (Vsplit_window_preferred_function): Move those vars to window.el.
15215 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
15216 (Fdisplay_buffer): Move those functions to window.el.
15217 (syms_of_window): Remove corresponding declarations.
15218 (display_buffer): New function.
15219 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
15220 * dispnew.c (Flast_nonminibuf_frame): New function.
15221 * buffer.c (Fpop_to_buffer): Move to window.el.
15222
152232008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15224
15225 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
15226
152272008-06-05 Kenichi Handa <handa@m17n.org>
15228
15229 * coding.c (detect_coding): Fix previous change.
15230 (detect_coding_system): Likewise.
15231
152322008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15233
15234 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
15235
15236 * keymap.c (Vminibuffer_local_filename_must_match_map):
15237 Rename from Vminibuffer_local_must_match_filename_map.
15238 (syms_of_keymap):
15239 * minibuf.c (Fcompleting_read): Adjust accordingly.
15240 * commands.h: Rename declaration as well.
15241
152422008-06-05 Kenichi Handa <handa@m17n.org>
15243
15244 * font.c (Ffont_spec): Don't use font_parse_family_registry for
15245 family name.
15246 (Ffont_put): Likewise.
15247
15248 * fontset.c (fontset_find_font): Call font_open_for_lface with the
15249 current font-spec.
15250
15251 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
15252 is unspecified.
15253
15254 * xfaces.c (realize_x_face): If the font-related face attributes
15255 are the same as those of default face, realize a new fontset from
15256 default->fontset.
15257 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
15258
152592008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
15260
15261 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
15262 (move_it_in_display_line): New wrapper.
15263
15264 * window.c (window_scroll_pixel_based_preserve_x)
15265 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
15266 (window_scroll_pixel_based, window_scroll_line_based):
15267 Use them to preserve column positions.
15268 (syms_of_window): Initialize them.
15269
15270 * indent.c (Fvertical_motion): Extend first arg to allow passing an
15271 (HPOS . VPOS) pair.
15272
15273 * dispextern.h (move_it_in_display_line): Declare.
15274
152752008-06-05 Juanma Barranquero <lekktu@gmail.com>
15276
15277 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
15278 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
15279 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
15280
152812008-06-04 Juanma Barranquero <lekktu@gmail.com>
15282
15283 * window.c (Fset_window_parameter): Doc fix.
15284 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
15285
152862008-06-04 Joakim Verona <joakim@verona.se>
15287
15288 * window.h (struct window): Add new member window_parameters.
15289
15290 * window.c (Fwindow_parameters, Fwindow_parameter)
15291 (Fset_window_parameter): New defuns.
15292 (syms_of_window): Defsubr the new defuns.
15293 (make_window): Initialize window_parameters to nil.
15294
152952008-06-04 John Paul Wallington <jpw@pobox.com>
15296
15297 * eval.c (Fdefmacro): Doc fix.
15298
152992008-06-04 Kenichi Handa <handa@m17n.org>
15300
15301 * coding.c (detect_coding): Fix handling of coding->head_ascii.
15302 Be sure to call setup_coding_system when we find a proper coding system.
15303 (detect_coding_system): Fix handling of coding->head_ascii.
15304
153052008-06-03 Andreas Schwab <schwab@suse.de>
15306
15307 * font.c (font_prop_validate_spacing): Fix last change.
15308
153092008-06-03 Kenichi Handa <handa@m17n.org>
15310
15311 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
15312 (font_parse_fcname): Fix handling of unknown key.
15313
15314 * xfont.c (xfont_list): Try an alias.
15315
15316 * charset.c (char_charset): Return NULL if the arg charset_list is
15317 specified and C doesn't belong to any of them.
15318
153192008-06-02 Chip Coldwell <coldwell@redhat.com>
15320
15321 * font.c (font_pixel_size): Don't take cdr of an integer.
15322
153232008-06-02 Jim Meyering <meyering@redhat.com>
15324
15325 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
15326 * alloc.c (xfree): Return right away for a NULL arg.
15327 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
15328 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
15329 * mac.c (create_apple_event_from_event_ref): Likewise.
15330 (create_apple_event_from_drag_ref, cfstring_create_normalized):
15331 Likewise.
15332 * doprnt.c (doprnt1): Likewise.
15333 * frame.c (frame): Likewise.
15334 * keyboard.c (wipe_kboard): Likewise.
15335 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
15336 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
15337 * term.c (tty_default_color_capabilities, maybe_fatal)
15338 (delete_tty): Likewise.
15339 * w16select.c (string): Likewise.
15340 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
15341 * w32bdf.c (w32_free_bdf_font): Likewise.
15342 * w32fns.c (w32_unload_font): Likewise.
15343 * w32font.c (w32font_close): Likewise.
15344 * window.c (size_window): Likewise.
15345 * xselect.c (receive_incremental_selection): Likewise.
15346 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
15347 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
15348 * w32.c (stat): Likewise.
15349
15350 Remove useless if-before-free tests.
15351 * editfns.c (Fset_time_zone_rule): Likewise.
15352 * lread.c (nosuffix): Likewise.
15353 * ralloc.c (get_bloc): Likewise.
15354 * regex.c (reg_free): Likewise.
15355 * xftfont.c (xftfont_open, xftfont_close): Likewise.
15356 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
15357 * xsmfns.c (smc_save_yourself_CB): Likewise.
15358
153592008-06-02 Kenichi Handa <handa@m17n.org>
15360
15361 * font.c (font_find_for_lface): Handle float font size.
15362 (font_open_for_lface): Likewise.
15363
15364 * xfaces.c (x_supports_face_attributes_p): Check face->font before
15365 comparing the properties.
15366
153672008-06-01 Jason Rumney <jasonr@gnu.org>
15368
15369 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
15370 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
15371 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
15372 Don't add empty script list.
15373 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
15374
153752008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
15376
15377 * Makefile.in (dot, dotdot): Remove, update users.
15378 ".." has been used elsewhere in the file for a long time.
15379 (LIBXT_STATIC): Remove conditional based on unused variable.
15380
153812008-06-01 Miles Bader <miles@gnu.org>
15382
15383 * xfaces.c (Vface_remapping_alist): New variable.
15384 (syms_of_xfaces): Initialize it.
15385 (enum named_merge_point_kind): New type.
15386 (struct named_merge_point): Add `named_merge_point_kind' field.
15387 (push_named_merge_point): Make cycle detection respect different
15388 named-merge-point kinds.
15389 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
15390 Remove face-name alias resolution.
15391 (lface_from_face_name): New definition using
15392 `lface_from_face_name_no_resolve'.
15393 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
15394 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
15395 (get_lface_attributes): New definition that layers face-remapping on
15396 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
15397 (lookup_basic_face): New function.
15398 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
15399 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
15400 `get_lface_attributes'.
15401 (face_at_buffer_position): Use `lookup_basic_face' to lookup
15402 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
15403 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
15404
15405 * xdisp.c (init_iterator): Pass base_face_id through
15406 `lookup_basic_face' when we actually use it as a face-id.
15407 (handle_single_display_prop): Use `lookup_basic_face' to lookup
15408 DEFAULT_FACE_ID.
15409
15410 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
15411 lookup the initial face-id.
15412
15413 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
15414
154152008-06-01 Juanma Barranquero <lekktu@gmail.com>
15416
15417 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
15418 (Fremove_text_properties): Fix typos in docstrings.
15419
154202008-05-31 Kenichi Handa <handa@m17n.org>
15421
15422 * font.c (font_list_entities): Fix the car part of data to be
15423 stored in the cache.
15424
15425 * ftfont.c (ftfont_font_format): Don't use strcasestr.
15426
154272008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15428
15429 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
15430 Add a `test' argument so another predicate than `equal' can be used.
15431 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
15432 (map_char_table): Remove unused vars `c' and `i'.
15433 * lisp.h (Foptimize_char_table): Adjust declaration.
15434 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
15435
154362008-05-30 Kenichi Handa <handa@m17n.org>
15437
15438 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
15439 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
15440 defined.
15441
154422008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
15443
15444 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
15445 (Fmake_variable_frame_local): Disallow mixing buffer-local and
15446 frame-local settings for the same variable.
15447
154482008-05-30 Kenichi Handa <handa@m17n.org>
15449
15450 * fontset.c (Ffont_info): Move to font.c.
15451 (syms_of_fontset): Delete defsubr of Sfont_info.
15452
15453 * font.c (font_style_to_value, font_score): Delete casting of the
15454 args to xstcasecmp.
15455 (register_font_driver): Increment num_font_drivers only when
15456 registering the driver globally.
15457 (Ffont_info): Move from fontset.c. Handle a font object too.
15458 (syms_of_font): Defsubr Sfont_info.
15459
154602008-05-29 Kenichi Handa <handa@m17n.org>
15461
15462 * coding.h (enum define_coding_utf8_arg_index): New enum.
15463 (enum coding_attr_index): Change coding_attr_utf_16_bom to
15464 coding_attr_utf_bom.
15465 (enum utf_bom_type): Rename from utf_16_bom_type.
15466 (struct utf_16_spec): Adjust for the above change.
15467 (struct coding_system): Add utf_8_bom in `spec' union.
15468
15469 * coding.c (CODING_UTF_8_BOM): New macro.
15470 (enum coding_category): Delete coding_category_utf_8, add
15471 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
15472 coding_category_utf_8_sig.
15473 (CATEGORY_MASK_UTF_8): Delete it.
15474 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
15475 (CATEGORY_MASK_UTF_8_SIG): New macros.
15476 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
15477 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
15478 CATEGORY_MASK_UTF_8_SIG.
15479 (CATEGORY_MASK_UTF_8): New macro.
15480 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
15481 (detect_coding_utf_8): Check BOM.
15482 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
15483 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
15484 (encode_coding_utf_16): Likewise.
15485 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
15486 (detect_coding, detect_coding_system): Handle utf-8-auto.
15487 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
15488 (syms_of_coding): Fix setting up of Vcoding_category_table.
15489
154902008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
15491
15492 * process.c (Faccept_process_output): If `millisec' is non-nil,
15493 `seconds' default to 0.
15494 (wait_reading_process_output): Also return non-nil if we read output
15495 from a non-running process.
15496
154972008-05-29 Jason Rumney <jasonr@gnu.org>
15498
15499 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
15500 `raster' specified.
15501 (add_font_entity_to_list): Allow non-opentype truetype fonts back
15502 in the uniscribe backend, but disallow any font that has no
15503 unicode subrange support.
15504
155052008-05-29 Juanma Barranquero <lekktu@gmail.com>
15506
15507 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
15508 Fix typos in docstrings.
15509
155102008-05-29 Kenichi Handa <handa@m17n.org>
15511
15512 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
15513 (Fx_family_fonts): Set frame correctly.
15514
155152008-05-28 Jason Rumney <jasonr@gnu.org>
15516
15517 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
15518
155192008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
15520
15521 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
15522 calling build_annotations.
15523
155242008-05-28 Juanma Barranquero <lekktu@gmail.com>
15525
15526 * coding.c (Fdecode_coding_region, Fencode_coding_region)
15527 (Fencode_coding_string):
15528 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
15529 <latin-extra-code-table>: Fix typos in docstrings.
15530 (syms_of_coding) <coding-system-alist>: Doc fix.
15531 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
15532
155332008-05-28 Kenichi Handa <handa@m17n.org>
15534
15535 * fontset.c (Ffont_info): Don't call font_close_object.
15536
15537 * font.c (font_parse_family_registry): Use Ffont_put to validate
15538 foundry and family.
15539 (font_delete_unmatched): Don't check spacing.
15540 (font_list_entities): Add spacing to the spec to list fonts.
15541
15542 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
15543 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
15544
15545 * coding.c (encode_coding_raw_text): Fix previous change.
15546 (encode_coding_object): When the dst_object is a buffer and is
15547 different from src_object, move gap to PT.
15548
155492008-05-27 Chong Yidong <cyd@stupidchicken.com>
15550
15551 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
15552
155532008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15554
15555 * coding.c (encode_coding_raw_text): Set coding->produced_char for
15556 all branches. Compute it differently.
15557
15558 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
15559
155602008-05-27 Juanma Barranquero <lekktu@gmail.com>
15561
15562 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
15563 into "else if () ... else ...".
15564
155652008-05-27 Jason Rumney <jasonr@gnu.org>
15566
15567 * w32font.c (w32font_open_internal): Determine if glyph indices
15568 are likely to work here.
15569
155702008-05-27 Chong Yidong <cyd@stupidchicken.com>
15571
15572 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
15573 draw overlap glyphs with appropriate highlighting.
15574
155752008-05-27 Kenichi Handa <handa@m17n.org>
15576
15577 * xfont.c (xfont_open): Fix calculation of font->average_width.
15578
155792008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
15580
15581 * casefiddle.c (casify_object): Try to guess better whether the
15582 argument is a byte or a char.
15583
155842008-05-26 Andreas Schwab <schwab@suse.de>
15585
15586 * xselect.c (x_reply_selection_request): Properly handle format == 32.
15587 Always send multiples of format size.
15588
15589 * xterm.c (x_set_frame_alpha): Fix type mismatch.
15590
155912008-05-26 Jason Rumney <jasonr@gnu.org>
15592
15593 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
15594 (compute_metrics): Don't set failure if we just cleared the cache.
15595 (w32_weight_table): Remove unused variable.
15596 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
15597 backwards compatibility.
15598
155992008-05-25 Kenichi Handa <handa@m17n.org>
15600
15601 * w32term.c (x_draw_glyph_string):
15602 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
15603
15604 * xfaces.c: Delete unused function prototypes.
15605 (xstrlwr, font_frame): Delete them.
15606 (clear_face_cache): Delete unused variable.
15607
15608 * xftfont.c (xftfont_open): Delete unused variable.
15609 If underline_thickness is not 1, adjust underline_position.
15610
15611 * ftxfont.c (ftxfont_open): Delete unused variable.
15612
15613 * fontset.c (face_for_char): Optimize for the case of no charset
15614 property.
15615
15616 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
15617 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
15618 (otf_open, font_otf_capability, generate_otf_features)
15619 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
15620 Comment out by surrounding "#if 0" and "#endif" for the moment.
15621 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
15622 (syms_of_font): Codes for accessing above commented out.
15623
156242008-05-24 Eli Zaretskii <eliz@gnu.org>
15625
15626 * w32proc.c: Include dispextern.h.
15627
15628 * w32.c: Include dispextern.h.
15629
156302008-05-23 Juanma Barranquero <lekktu@gmail.com>
15631
15632 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
15633 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
15634 Fix typos in docstrings.
15635
156362008-05-23 Jason Rumney <jasonr@gnu.org>
15637
15638 * xsmfns.c: Remove includes that are already included by config.h.
15639
156402008-05-23 Kenichi Handa <handa@m17n.org>
15641
15642 * charset.c (Qemacs, charset_emacs): New variables.
15643 (char_charset): Fix for non-Unicode characters.
15644 (syms_of_charset): Define charset_emacs.
15645
15646 * w32term.c (x_draw_glyph_string): Be sure to update
15647 s->underline_thickness and s->underline_position. Be sure to draw
15648 underline within the current line area.
15649
15650 * xterm.c (x_draw_glyph_string): Be sure to update
15651 s->underline_thickness and s->underline_position. Be sure to draw
15652 underline within the current line area.
15653
15654 * fontset.c: Delete unused variables and add casting for char *
15655 throughout the file.
15656 (fontset_font): Try the fallback fonts of the current fontset
15657 before consulting the default fontset.
15658
15659 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
15660
15661 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
15662
156632008-05-22 Jason Rumney <jasonr@gnu.org>
15664
15665 * font.c: Don't include strings.h.
15666
15667 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
15668
15669 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
15670 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
15671 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
15672 to call xstrcasecmp.
15673
15674 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
15675
15676 * fontset.c (fs_query_fontset): Use xstrcasecmp.
15677
15678 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
15679
15680 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
15681
156822008-05-22 Kenichi Handa <handa@m17n.org>
15683
15684 * puresize.h (BASE_PURESIZE): Increase to 1220000.
15685
15686 * font.c (font_prop_validate_style): Adjust for the format
15687 change of font_style_table.
15688
15689 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
15690 two args.
15691
15692 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
15693 two args.
15694
156952008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
15696
15697 * minibuf.c (keys_of_minibuf): Delete.
15698 * lisp.h (keys_of_minibuf): Delete.
15699 * emacs.c (main): Don't call keys_of_minibuf.
15700
157012008-05-22 Kenichi Handa <handa@m17n.org>
15702
15703 * ftfont.c (ftfont_resolve_generic_family): Rename from
15704 ftfont_list_generic_family. Return a single family for each
15705 generic family.
15706 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
15707 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
15708 Call font_add_log.
15709 (ftfont_match): Call font_add_log.
15710
15711 * font.h (Ffont_xlfd_name): EXFUN adjusted.
15712 (FONT_DEBUG): Define it.
15713 (font_add_log): Extern it.
15714 (font_assert): Rename from xassert.
15715
15716 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
15717 (xfont_list_family): Call font_add_log.
15718 (xfont_match): Likewise.
15719 (memq_no_quit): Delete.
15720
15721 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
15722 call of Ffont_xlfd_name.
15723
15724 * xfaces.c (struct table_entry, slant_table, weight_table)
15725 (swidth_table): Move to font.c.
15726
15727 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
15728 xassert are changed to font_assert. Delete many unused variables.
15729 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
15730 New variables.
15731 (struct table_entry): Move from xfaces.c and modified.
15732 (weight_table, slant_table, width_table): Move from xfaces.c and
15733 contents adjusted for the change of struct table_entry.
15734 (font_style_to_value, font_style_symbolic): Adjust for the
15735 format change of font_style_table.
15736 (font_parse_family_registry): Don't overwrite existing foundry and
15737 family of font_spec.
15738 (font_score): Fix calculation of diff for sizes.
15739 (font_sort_entites): Call font_add_log.
15740 (font_delete_unmatched): Return a newly created list.
15741 (font_list_entities): Fix previous change. Call font_add_log.
15742 (font_matching_entity, font_open_entity, font_close_entity):
15743 Call font_add_log.
15744 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
15745 (Finternal_set_font_style_table): Delete.
15746 (BUILD_STYLE_TABLE): New macro.
15747 (build_style_table): New function.
15748 (Vfont_log, font_log_env_checked): New variables.
15749 (font_add_log): New function.
15750 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
15751 Declare Lisp variables "font-weight-table", "font-slant-table",
15752 "font-width-table", and "font-log". Initialize font_style_table.
15753
157542008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
15755
15756 * xterm.c (x_set_frame_alpha): Move declarations before statements.
15757
157582008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 15759 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
15760
15761 * frame.c (Qalpha): Add a new frame parameter `alpha'.
15762 (Vframe_alpha_lower_limit): New variable.
15763 (x_set_alpha): New function.
15764
15765 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
15766
15767 * xfns.c (x-create-frame, Qalpha):
15768 Initialize the frame parameter `alpha'.
15769 * xterm.c (OPAQUE, OPACITY): New.
15770 (x_set_frame_alpha): New function.
15771 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
15772
15773 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
15774 * w32fns.c (w32_frame_parm_handlers): Likewise.
15775
157762008-05-20 Jason Rumney <jasonr@gnu.org>
15777
15778 * w32font.c (add_font_entity_to_list): Don't add non-opentype
15779 truetype fonts to opentype list.
15780
157812008-05-20 Juanma Barranquero <lekktu@gmail.com>
15782
15783 * fontset.c (Ffontset_info): Doc fix.
15784 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
15785 <ignore-relative-composition>: Fix typos in docstrings.
15786
15787 * font.c (syms-of-font) <font-encoding-alist>:
15788 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
15789 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
15790 (Ffont_otf_alternates): Doc fixes.
15791
157922008-05-20 Kenichi Handa <handa@m17n.org>
15793
15794 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
15795 font.h through out the file.
15796 (FONT_DRIVERS): Rename from FONTOBJ.
15797 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
15798 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
15799
15800 * emacs.c (main): Call syms_of_font unconditionally.
15801
15802 * font.h (find_font_encoding): Extern it.
15803
15804 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
15805 fontset.c.
194d44e7 15806 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
15807 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
15808 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
15809 only when HAVE_WINDOW_SYSTEM is defined.
15810 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
15811 when HAVE_WINDOW_SYSTEM is defined.
15812
15813 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
15814 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
15815
15816 * xfaces.c: Include font.h unconditionally.
15817 (merge_face_ref, merge_face_vectors)
15818 (Finternal_set_lisp_face_attribute): Cancel the previous change.
15819
158202008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
15821
15822 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
15823 indirect_variable.
15824 * eval.c (lisp_indirect_variable): New fun.
15825 (Fuser_variable_p): Use it.
15826
158272008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
15828
15829 * lisp.h (indirect_variable):
15830 * data.c (indirect_variable, let_shadows_buffer_binding_p):
15831 Use Lisp_Symbol pointers rather than Lisp_Object.
15832 Adjust callers.
15833 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
15834 To this end, change calling-convention.
15835
15836 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
15837 if some non-hidden buffers are selected by string&pred.
15838
158392008-05-19 Chong Yidong <cyd@stupidchicken.com>
15840
15841 * process.c (wait_reading_process_output): Always check status
15842 when in batch mode.
15843
158442008-05-19 Kenichi Handa <handa@m17n.org>
15845
15846 * font.c (font_list_entities): Fix handling of cache.
15847 (font_matching_entity): Likewise.
15848
15849 * ftfont.c (cs_iso8859_1): Delete.
15850 (ft_face_cache): New variable.
15851 (struct ftfont_info): New member fc_charset_idx.
15852 (ftfont_build_basic_charsets): Delete.
15853 (fc_charset_table): New variable.
15854 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
15855 . FC_CHARSET_IDX) as :font-entity property in the font entity.
15856 Callers changed.
15857 (ftfont_lookup_cache, ftfont_get_charset): New functions.
15858 (ftfont_spec_pattern): New argument fc_charset_idx.
15859 Check registry more rigidly. Change callers.
15860 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
15861 change of :font-entity property of the font.
15862
15863 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
15864 property of the font.
15865
158662008-05-18 Juanma Barranquero <lekktu@gmail.com>
15867
15868 * coding.c (Fcoding_system_p): Rename argument to match docstring.
15869 (Funencodable_char_position, Fcheck_coding_systems_region)
15870 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
15871 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
15872 (Ffind_operation_coding_system, Fset_coding_system_priority)
15873 (Fcoding_system_eol_type): Doc fixes.
15874
158752008-05-17 Glenn Morris <rgm@gnu.org>
15876
15877 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
15878
158792008-05-16 Eli Zaretskii <eliz@gnu.org>
15880
15881 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
15882 and st_gid.
15883
15884 * frame.c (Fdelete_frame): Don't call font_update_drivers if
15885 HAVE_WINDOW_SYSTEM is not defined.
15886
15887 * xfaces.c (merge_face_ref, merge_face_vectors)
15888 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
15889 HAVE_WINDOW_SYSTEM is defined.
15890 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
15891
158922008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
15893
15894 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
15895
158962008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15897
15898 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
15899
159002008-05-15 Kenichi Handa <handa@m17n.org>
15901
15902 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
15903 preference.
15904
159052008-05-15 Glenn Morris <rgm@gnu.org>
15906
15907 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
15908
159092008-05-15 Chong Yidong <cyd@stupidchicken.com>
15910
15911 * fns.c (init_fns): Don't initialize weak_hash_tables here.
15912 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
15913
15914 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
15915
159162008-05-15 Kenichi Handa <handa@m17n.org>
15917
15918 * ftfont.c (ftfont_list): Downcase family name to check generic
15919 families.
15920
15921 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
15922 font-spec for QCfont value.
15923
15924 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
15925 buffer. Check the return value of it.
15926
159272008-05-14 Jason Rumney <jasonr@gnu.org>
15928
15929 * w32term.c (w32_get_glyph_overhangs): Remove.
15930 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
15931
159322008-05-14 Kenichi Handa <handa@m17n.org>
15933
15934 * font.c (font_prop_validate): Make nil a valid value.
15935 (font_clear_cache): Check if the cached vector of entities is nil
15936 or not.
15937
159382008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15939
15940 * emacs.c (main_thread): Conditionalize on
15941 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15942 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
15943
15944 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
15945 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
15946 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
15947
159482008-05-14 Kenichi Handa <handa@m17n.org>
15949
15950 * coding.c (detect_coding_iso_2022): Ignore a coding category that
15951 has no corresponding coding system.
15952
159532008-05-14 Jason Rumney <jasonr@gnu.org>
15954
15955 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
15956
15957 * w32font.h (w32font_open_internal): Update declaration.
15958
15959 * w32font.c (w32font_open_internal): Change last argument from
15960 w32font_info struct to font object. Fill in font object from
15961 font_entity. Get Outline metrics if possible. Use them to
15962 calculate underline position and thickness. Use xlfd name as name
15963 property. Don't set codepage.
15964 (w32font_open): Pass font_object to w32font_open_internal. Don't
15965 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
15966 (w32font_draw): Use s->font.
15967 (clear_cached_metrics): Don't clear non-existent blocks.
15968
15969 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
15970 font was not found.
15971 (x_draw_glyph_string): Use underline position and thickness from font.
15972
15973 * w32uniscribe.c (uniscribe_open): Pass font_object to
15974 w32font_open_internal.
15975
159762008-05-14 Kenichi Handa <handa@m17n.org>
15977
15978 These changes are to delete all legacy font-handling codes, and
15979 make Emacs use only font-backends.
15980
15981 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
15982 (frame.o, image.o, print.o): Depend on $(FONTSRC).
15983
15984 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
15985
15986 * charset.h (Vcharset_non_preferred_head)
15987 (Vcurrent_iso639_language): Extern them.
15988
15989 * charset.c (Vcharset_non_preferred_head): New variable.
15990 (Vcurrent_iso639_language): New variable.
15991 (syms_of_charset): Declare it as a Lisp variable.
15992 (char_charset): Don't check non preferred charsets. As a last
15993 resort, return charset_unicode.
15994 (Fset_charset_priority): Update Vcharset_non_preferred_head.
15995
15996 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
15997 conditionals. Don't check enable_font_backend. Delete all codes
15998 used only when USE_FONT_BACKEND is not defined.
15999
16000 * dispextern.h (struct glyph_string): Change type of `font' to
16001 `struct font *'.
16002 (struct glyph_string): New member underline_position and
16003 underline_thickness.
16004 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
16005 (struct face): Change type of `font' to `struct font *'. Remove
16006 members `font_name', `font_info_id'.
16007 (per_char_metric, encode_char): Delete externs.
16008 (calc_pixel_width_or_height): Adjust the prototype.
16009
16010 * emacs.c (enable_font_backend): Delete extern.
16011 (main): Don't set enable_font_backend. Don't check the command
16012 line argument "-disable-font-backend".
16013
16014 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
16015 (enum font_property_index): New members FONT_DPI_INDEX,
16016 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
16017 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
16018 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
16019 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
16020 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
16021 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
16022 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
16023 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
16024 (struct font_spec, struct font_entity): New structs.
16025 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
16026 (struct font): Many members from old "struct font_info" moved to
16027 here. Members font and entity deleted.
16028 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
16029 the new font-related objects.
16030 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
16031 (CHECK_FONT_GET_OBJECT): Likewise.
16032 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
16033 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
16034 (struct font_driver): New members case_sensitive anc check. Type
16035 of the member list and open changed.
16036 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
16037 (font_symbolic_width, font_find_object, font_get_spec)
16038 (font_set_lface_from_name): Delete extern.
16039 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
16040
16041 * font.c: Include <strings.h>.
16042 (enable_font_backend): Delete it.
16043 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
16044 (CHECK_VALIDATE_FONT_SPEC): Delete it.
16045 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
16046 (null_string): Delete it.
16047 (null_vector): Make it static.
16048 (font_family_alist): Delete it.
16049 (Qnormal): Extern it.
16050 (QCextra, QClanguage): Delete it.
16051 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
16052 (font_make_spec, font_make_entity, font_make_object)
16053 (font_intern_prop): Renamed from intern_downcase. Don't downcase
16054 the string. Callers changed.
16055 (font_pixel_size): Adjusted for the format change of font-related
16056 objects.
16057 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
16058 (font_style_to_value, font_style_symbolic): New function.
16059 (build_font_family_alist): Delete it.
16060 (font_registry_charsets): Use Fassoc_string instead of
16061 assq_no_quit.
16062 (font_prop_validate_symbol): Don't return null_string.
16063 (font_prop_validate_style): Adjusted for the change of
16064 style-related values in a font vector.
16065 (font_property_table): Delete entries for QClanguage and
16066 QCantialias, add entries for QCavgwidth.
16067 (get_font_prop_index): Delete the 2nd argument FROM.
16068 (font_prop_validate): Arguments changed.
16069 (font_put_extra): Adjusted for the change of font-related objects.
16070 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
16071 (font_parse_fcname, font_unparse_fcname)
16072 (font_prepare_composition): Likewise.
16073 (font_parse_family_registry): Renamed from font_merge_old_spec.
16074 (otf_open): Delete the 1st arg entity.
16075 (font_otf_capability): Adjusted for the above change.
16076 (font_score): New arg alternate_families. Adjusted for the change
16077 of font-related objects.
16078 (font_sort_entites): New arg best_only.
16079 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
16080 Delete them.
16081 (font_match_p): Check alternate families.
16082 (font_find_object): Delete it.
16083 (font_check_object): New function.
16084 (font_clear_cache): Adjusted for the change of font-related objects.
16085 (font_delete_unmatched): New arg.
16086 (font_list_entities): Call font_driver->list with a spec that
16087 doesn't specify style-related properties.
16088 (font_matching_entity): Arguments changed. Caller changed.
16089 (font_open_entity): Adjusted for the change of font-related objects.
16090 (font_close_object, font_has_char, font_encode_char)
16091 (font_get_name, font_get_spec): Likewise.
16092 (font_spec_from_name, font_clear_prop, font_update_lface):
16093 New functions.
16094 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
16095 (font_prepare_for_face, font_done_for_face, font_open_by_name)
16096 (font_at): Adjusted for the change of font-related objects.
16097 (font_range): New function.
16098 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
16099 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
16100 (Fcopy_font_spec, Fmerge_font_spec): New function.
16101 (Ffont_family_list): Renamed from list-families.
16102 (Finternal_set_font_style_table): Arguments changed.
16103 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
16104 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
16105 change of font-related objects.
16106 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
16107
16108 * fontset.h (struct font_info): Delete it. Most members go to
16109 struct font.
16110 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
16111 (enum FONT_SPEC_INDEX): Delete it.
16112 (font_info, list_fonts_func, load_font_func, query_font_func)
16113 (set_frame_fontset_func, find_ccl_program_func)
16114 (get_font_repertory_func, new_fontset_from_font_name): Delete
16115 externs.
16116 (fontset_from_font_name): Extern it.
16117 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
16118 (FONT_INFO_FROM_FACE): Deleted.
16119 (face_for_font): Adjust prototype.
16120
16121 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
16122 conditionals. Don't check enable_font_backend. Delete all codes
16123 used only when USE_FONT_BACKEND is not defined.
16124 (get_font_info_func, list_font_func, load_font_func)
16125 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
16126 (get_font_repertory_func): Delete them.
16127 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
16128 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
16129 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
16130 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
16131 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
16132 (fontset_compare_rfontdef): New function.
16133 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
16134 rfont-defs by qsort. Adjusted for the change of font-group vector.
16135 (load_font_get_repertory): Deleted.
16136 (fontset_find_font): Use new macros to ref/set elements of
16137 font-def and rfont-def.
16138 (fontset_font): Fix the timing of remembering that no font for C.
16139 (free_face_fontset): Do nothing if the face has no fontset.
16140 (face_suitable_for_char_p): Use new macros to ref/set elements of
16141 rfont-def.
16142 (face_for_char): Likewise. Call face_for_char with font_object.
16143 (fs_load_font): Delete. Delete #pragma surrounding it.
16144 (fs_query_fontset): Use strcasecmp instead of strcmp.
16145 (generate_ascii_font_name): Adjusted for the format change of
16146 font-spec.
16147 (Fset_fontset_font): Likewise. Use new macros to set elements of
16148 font-def.
16149 (Fnew_fontset): Use font_unparse_xlfd to generate
16150 FONTSET_ASCII (fontset).
16151 (new_fontset_from_font_name): Deleted.
16152 (fontset_from_font): Renamed from new_fontset_from_font. Check if
16153 a fontset is already created for the font. FIx updating of
16154 Vfontset_alias_alist.
16155 (fontset_ascii_font): Deleted.
16156 (Ffont_info): Adjusted for the format change of font-spec.
16157 (Finternal_char_font): Likewise.
16158 (Ffontset_info): Likewise.
16159 (syms_of_fontset): Don't check load_font_func.
16160
16161 * fns.c (internal_equal): Handle PREV_FONT.
16162
16163 * frame.h: Delete USE_FONT_BACKEND conditional.
16164
16165 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
16166 conditionals. Don't check enable_font_backend. Delete all codes
16167 used only when USE_FONT_BACKEND is not defined.
16168 (x_set_font): Call x_new_font, not x_new_fontset2.
16169 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
16170 already set for the frame.
16171
16172 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
16173 a font-entity by font_make_entity. Use font_intern_prop instead
16174 of intern_downcase. Use FONT_SET_STYLE to set a style-related
16175 font property. If a font is scalable, set avgwidth property to 0.
16176 Set font-entity property by font_put_extra.
16177 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
16178 (ffont_driver): Adjusted for the change of struct font_driver.
16179 (ftfont_spec_pattern): New function.
16180 (ftfont_list): Return a list, not vector.
16181 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
16182 (ftfont_list_family): Don't downcase names.
16183 (ftfont_free_entity): Deleted.
16184 (ftfont_open): Return a font-object. Adjusted for the change of
16185 struct font. Get underline_thickness and underline_position from
16186 font property. Don't update dpyinfo->smallest_font_height and
16187 dpyinfo->smallest_char_width.
16188 (ftfont_close): Don't free `struct font'.
16189 (ftfont_has_char): Adjusted for the format change of font-entity.
16190 (ftfont_encode_char, ftfont_text_extents): Likewise.
16191
16192 * ftxfont.c (ftxfont_list): Return a list, not vector.
16193 (ftxfont_open): Return a font-object. Adjusted for the change of
16194 struct font. Get underline_thickness and underline_position from
16195 font property. Don't update dpyinfo->smallest_font_height and
16196 dpyinfo->smallest_char_width.
16197 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
16198 (ftxfont_draw): Adjusted for the change of struct font.
16199
16200 * image.c (image_ascent): Don't include "charset.h". Include
16201 "character.h" and "font.h".
16202
16203 * lisp.h (enum pvec_type): New member PREV_FONT.
16204 (Fassoc_string): EXFUN it.
16205
16206 * print.c: Include font.h.
16207 (print_object): Handle font-related objects.
16208
16209 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
16210 conditionals. Don't check enable_font_backend. Delete all codes
16211 used only when USE_FONT_BACKEND is not defined.
16212 (handle_auto_composed_prop): Do nothing if it->f is not on a
16213 window system. Check how many following characters can be
16214 displayed by the same font.
16215 (calc_pixel_width_or_height): Type of the 4th arg is changed to
16216 'struct font *'.
16217 (get_char_face_and_encoding): Assign the whole encoding task to
16218 the `encode-char' method of a font driver.
16219 (fill_composite_glyph_string): Adjusted for the change of `struct
16220 face' and `struct glyph_string'.
16221 (fill_glyph_string): Likewise.
16222 (get_per_char_metric): Arguments changed.
16223 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
16224 and `struct glyph_string'.
16225 (produce_stretch_glyph, calc_line_height_property)
16226 (x_produce_glyphs): Likewise.
16227
16228 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
16229 conditionals. Don't check enable_font_backend. Delete all codes
16230 used only when USE_FONT_BACKEND is not defined. Use
16231 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
16232 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
16233 (Qp): Extern them.
16234 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
16235 Deleted.
16236 (struct font_name): Deleted.
16237 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
16238 (compare_fonts_by_sort_order): New function.
16239 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
16240 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
16241 Deleted.
16242 (Fx_family_fonts): Use font_list_entities, and sort fonts by
16243 compare_fonts_by_sort_order.
16244 (Fx_font_family_list): Call Ffont_family_list.
16245 (face_numeric_value, face_numeric_weight, face_numeric_slant)
16246 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
16247 (face_symbolic_slant, face_symbolic_swidth)
16248 (split_font_name_into_vector, build_font_name_from_vector)
16249 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
16250 (font_rescale_ratio, split_font_name, build_font_name)
16251 (free_font_names, sort_fonts, x_face_list_fonts)
16252 (face_font_available_p, sorted_font_list, cmp_font_names)
16253 (font_list_1, concat_font_list, font_list, remove_duplicates):
16254 Deleted.
16255 (Fx_list_fonts): Use Ffont_list.
16256 (LFACE_AVGWIDTH): Deleted.
16257 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
16258 by FONTP.
16259 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
16260 (set_lface_from_font_name): Delete it.
16261 (set_lface_from_font): Renamed from
16262 set_lface_from_font_and_fontset. Caller changed. Don't set
16263 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
16264 for face.
16265 (merge_face_vectors): Copy font-spec if necessary.
16266 Clear properties of the font-spec if necessary.
16267 (merge_face_ref): Clear properties of the font-spec if necessary.
16268 (Finternal_set_lisp_face_attribute): Likewise.
16269 (set_font_frame_param): Use font_load_for_lface to load a
16270 font-object, and call Fmodify_frame_parameters with it.
16271 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
16272 font name by Ffont_xlfd_name.
16273 (Finternal_lisp_face_attribute_values): Don't check QCweight,
16274 QCslant, and QCwidth.
16275 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
16276 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
16277 Compare fonts by EQ.
16278 (lookup_non_ascii_face): Deleted.
16279 (face_for_font): The 2nd argument changed.
16280 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
16281 Check atomic font properties by case insensitive.
16282 (realize_non_ascii_face): Set face->overstrike correctly.
16283 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
16284 (dump_realized_face): Get font name from
16285 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
16286
16287 * xfns.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 (xic_create_xfontset): Original code deleted and renamed from
16291 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
16292 (x_make_gc): Don't set GCFont in GCs.
16293 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
16294 opened by "fixed".
16295 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
16296 find_ccl_program_func, query_font_func, set_frame_fontset_func,
16297 get_font_repertory_func.
16298
16299 * xfont.c: Include <stdlib.h> and "ccl.h".
16300 (struct xfont_info): New structure.
16301 (xfont_query_font): Deleted.
16302 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
16303 moved from xterm.c.
16304 (xfont_driver): Adjusted for the change of struct font_driver.
16305 (compare_font_names): New function.
16306 (xfont_list_pattern): Sort font names case insensitively. Make
16307 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
16308 (xfont_list): Return a list, not vector.
16309 (xfont_match): If the font doesn't have QCname property, generate
16310 a name from the other font properties.
16311 (xfont_open): Return a font-object. Adjusted for the change of
16312 struct font. Get underline_thickness and underline_position from
16313 font property. Don't update dpyinfo->smallest_font_height and
16314 dpyinfo->smallest_char_width.
16315 (xfont_close): Don't free struct font.
16316 (xfont_prepare_face): Adjusted for the change of struct font.
16317 (xfont_done_face): Deleted.
16318 (xfont_has_char): Adjusted for the change of struct font.
16319 (xfont_encode_char, xfont_draw): Likewise.
16320 (xfont_check): New function.
16321
16322 * xftfont.c (xftfont_list): Adjusted for the change of `list'
16323 callback function.
16324 (xftfont_match): Adjusted for the format change of font-entity.
16325 (xftfont_open): Adjusted for the format change of font-entity and
16326 font-object. Adjusted for the change of struct font. Return a
16327 font-object. Don't update dpyinfo->smallest_font_height and
16328 dpyinfo->smallest_char_width.
16329 (xftfont_close): Block input while calling XftFontClose.
16330 (xftfont_prepare_face): Don't block input while calling
16331 xftfont_get_colors. Adjusted for the change of struct font.
16332 (xftfont_shape): Return value of error case fixed.
16333
16334 * xrdb.c (x_load_resources): Don't setup a fontset resource.
16335
16336 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
16337 conditionals.
16338 (FONT_WIDTH): Return (f)->max_width.
16339 (struct x_display_info): Delete member `font'.
16340 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
16341 (x_find_ccl_program, x_get_font_repertory): Delete externs.
16342 (struct x_output): Change type of `font' to `struct font *'.
16343
16344 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
16345 conditionals. Don't check enable_font_backend. Delete all codes
16346 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
16347 (x_per_char_metric, x_encode_char): Deleted.
16348 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
16349 (x_compute_glyph_string_overhangs): Adjusted for the change of
16350 `struct face'.
16351 (x_draw_glyph_string_foreground)
16352 (x_draw_composite_glyph_string_foreground): Likewise.
16353 (x_draw_glyph_string): Likewise. Use font->underline_position and
16354 font->underline_thickness.
16355 (x_new_font): Renamed from x_new_fontset2.
16356 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
16357 (x_check_font): Call `check' method of a font driver.
16358 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
16359 (x_query_font, x_get_font_repertory): Deleted.
16360 (x_find_ccl_program): Renamed and moved to xfont.c.
16361 (x_redisplay_interface): Adjusted for the change of `struct
16362 redisplay_interface'.
16363
16364 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
16365 conditionals. Don't check enable_font_backend. Delete all codes
16366 used only when USE_FONT_BACKEND is not defined. Surround non-used
16367 code by "#ifdef OLD_FONT" and "endif".
16368 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
16369
16370 * w32font.h (struct w32font_info): New member.
16371 (FONT_COMPAT): New macro.
16372 (w32font_open_internal): Prototype adjusted.
16373
16374 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
16375 OLD_FONT" and "endif".
16376
16377 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
16378 conditionals. Don't check enable_font_backend. Delete all codes
16379 used only when USE_FONT_BACKEND is not defined.
16380 (w32font_open): Return a font-object. Make a font-object by
16381 font_make_object. Adjusted for the change of struct w32font_info.
16382 (w32font_close): Don't free struct font. Adjusted for the change
16383 of struct w32font_info.
16384 (w32font_encode_char, w32font_text_extents, w32font_draw):
16385 Adjusted for the change of struct w32font_info.
16386 (w32font_draw): Likewise.
16387 (w32font_list_internal): Return a list, not vector.
16388 (w32font_open_internal): Change the 4th arg to font-object.
16389 Adjusted for the change of struct w32font_info and font-object format.
16390 (add_font_name_to_list): Don't downcase names.
16391 (w32_enumfont_pattern_entity): Make a font-entity by
16392 font_make_entity. Adjusted for the format change of font-entity.
16393 Use FONT_SET_STYLE to set a style-related font property. If a
16394 font is scalable, set avgwidth property to 0. Set font-entity
16395 property by font_put_extra.
16396 (font_matches_spec): Adjusted for the format change of font-entity.
16397 (w32_weight_table, w32_decode_weight): New variables.
16398 (w32_encode_weight): New function.
16399 (fill_in_logfont): Adjusted for the format change of font-spec.
16400 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
16401 weight value.
16402 (w32font_driver): Adjusted for the change of struct font_driver.
16403
16404 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
16405 conditionals. Don't check enable_font_backend. Surround non-used
16406 code by "#ifdef OLD_FONT" and "endif".
16407 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
16408 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
16409
16410 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
16411 conditionals. Don't check enable_font_backend. Delete all codes
16412 used only when USE_FONT_BACKEND is not defined. Surround non-used
16413 code by "#ifdef OLD_FONT" and "endif".
16414
16415 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
16416 (uniscribe_open): Return value changed to font-object.
16417 Adjusted for the format change of font-object.
16418 (uniscribe_otf_capability): Adjusted for the change of struct font.
16419 (add_opentype_font_name_to_list): Don't downcase names.
16420 (uniscribe_font_driver): Adjusted for the change of struct
16421 font_driver.
16422
164232008-05-13 Chong Yidong <cyd@stupidchicken.com>
16424
16425 * dispnew.c (update_frame_1): Check if tty output is still valid
16426 before flushing it.
16427
164282008-05-13 Jan Djärv <jan.h.d@swipnet.se>
16429
16430 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
16431 to Gtk+ menus.
16432
164332008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
16434
16435 * dired.c (file_name_completion): Tweak the code so as to always do it
16436 in a single pass. Tighten the scope of some variables.
16437
16438 * dired.c (Qdefault_directory): New var.
16439 (file_name_completion): Use it instead of Fexpand_file_name.
16440 (syms_of_dired): Initialize it.
16441
164422008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
16443
16444 * fileio.c (double_dollars): Remove dead code.
16445
164462008-05-10 Eli Zaretskii <eliz@gnu.org>
16447
16448 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
16449 Mention w32-get-true-file-attributes in doc string.
16450
16451 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
16452
164532008-05-09 Glenn Morris <rgm@gnu.org>
16454
16455 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
16456 2008-04-23.
16457
164582008-05-09 Eli Zaretskii <eliz@gnu.org>
16459
16460 Support for reporting owner and group of each file on MS-Windows:
16461 * dired.c (stat_uname, stat_gname): New functions, with special
16462 implementation for w32.
16463 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
16464
16465 * w32.c: Rename the_passwd_* to dflt_passwd_*.
16466 (dflt_group_name): New static variable.
16467 (dflt_group): Rename from the_group.
16468 (init_user_info): Init dflt_group fields. Get user's group name
16469 from LookupAccountSid.
16470 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
16471 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
16472 New initialization states.
16473 (globals_of_w32): Initialize them to zero. Initialize the default
16474 group name to "None".
16475 (GetFileSecurity_Name): New global var, the name of the function
16476 to call for GetFileSecurity.
16477 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
16478 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
16479 (get_file_security, get_security_descriptor_owner)
16480 (get_security_descriptor_group, is_valid_sid)
16481 (get_file_security_desc, get_rid, get_name_and_id)
16482 (get_file_owner_and_group): New functions.
16483 (stat): Use get_file_security_desc and get_file_owner_and_group to
16484 report the owner and primary group of each file. Don't ignore the
16485 high 32 bits of file's size, now that st_size is 64-bit wide.
16486 Fix test when to get true file attributes.
16487 (init_user_info): Use get_rid instead of equivalent inline code.
16488 (fstat): Don't ignore the high 32 bits of file's size.
16489
164902008-05-09 Chong Yidong <cyd@stupidchicken.com>
16491
16492 * image.c (png_load): Use correct bit-depth for setting background
16493 color.
16494
164952008-05-08 Eli Zaretskii <eliz@gnu.org>
16496
16497 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
16498 epa-hook.elc.
16499
165002008-05-08 Juanma Barranquero <lekktu@gmail.com>
16501
16502 * font.c (Ffont_match_p): Don't use `iff' in docstring.
16503
165042008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
16505
16506 * macfns.c (Fx_create_frame): Make a copy of frame parameters
16507 because the original parameters are in pure storage now.
16508 (mac_window): Remove unused params. Update callers.
16509
165102008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
16511
16512 * lread.c (substitute_object_recurse): Use lower-level primitives.
16513 Don't signal errors when traversing sub-char-tables.
16514 Don't loop over all the possible characters when traversing char-tables.
16515
16516 * print.c (print_preprocess): Add sub-char-tables to the print-table,
16517 just like we do in print.c.
16518
165192008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
16520
16521 * minibuf.c (Ftry_completion): Remove code left over from when we used
16522 scmp instead of Fcompare_strings.
16523
165242008-05-04 Juanma Barranquero <lekktu@gmail.com>
16525
16526 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
16527
165282008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16529
16530 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
16531 Create bitmap context in native byte order.
16532
16533 * macterm.c (XDrawLine)
16534 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
16535 context in native byte order.
16536
165372008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16538
16539 * config.in: Regenerate.
16540
16541 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
16542 New definitions for Image I/O support.
16543 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
16544 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
16545 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16546 (mac_data_provider_release_data, image_load_image_io)
16547 [USE_MAC_IMAGE_IO]: New functions.
16548 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
16549 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
16550 (init_image_func_pointer) [MAC_OSX]: Remove function.
16551 (image_load_quartz2d) [MAC_OSX]: Check availability of
16552 CGImageCreateWithPNGDataProvider at compile time.
16553 Use lowercase `false' for boolean constant.
16554 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
16555 Use image_load_image_io.
16556 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
16557 Don't check MyCGImageCreateWithPNGDataProvider.
16558 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
16559 Don't call init_image_func_pointer.
16560
16561 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
16562
16563 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
16564 Make variable non-static.
16565 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
16566 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
16567
16568 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
16569 (RED_FROM_ULONG): Mask off higher bits.
16570 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
16571
16572 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
16573 Include AvailabilityMacros.h.
16574 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
16575 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
16576
165772008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
16578
16579 * chartab.c (Fset_char_table_range): If range is t, really set all
16580 chars to that value.
16581
165822008-05-03 Eli Zaretskii <eliz@gnu.org>
16583
16584 * dired.c (Ffile_attributes): Don't allow the device number become
16585 negative.
16586
165872008-05-02 Daiki Ueno <ueno@unixuser.org>
16588
16589 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
16590
165912008-05-02 Juri Linkov <juri@jurta.org>
16592
16593 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
16594 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
16595 DEFAULT argument as a list of default values in docstrings.
16596
165972008-05-01 Chong Yidong <cyd@stupidchicken.com>
16598
16599 * puresize.h (BASE_PURESIZE): Increase to 1210000.
16600
166012008-05-01 Martin Rudalics <rudalics@gmx.at>
16602
16603 * dispnew.c (change_frame_size_1): Preserve small windows when
16604 shrinking frames by calling set_window_height|width with third
16605 arg 2.
16606
16607 * window.h (struct window): Replace field too_small_ok by field
16608 resize_proportionally.
16609
16610 * window.c (make_window): Initialize resize_proportionally.
16611 (enlarge_window): Temporarily set resize_proportionally to make
16612 sure that shrink_windows does scale the window proportionally.
16613 (shrink_windows): When window has resize_proportionally set try
16614 to shrink it proportionally by stealing from other windows.
16615 (struct saved_window, Fset_window_configuration)
16616 (compare_window_configurations): Handle resize_proportionally.
16617 (WINDOW_TOTAL_SIZE): New macro.
16618 (window_min_size, shrink_windows, size_window): Use it.
16619 (check_min_window_sizes): Remove. Invalid values of
16620 window-min-height|width are handled by window_min_size_2 now.
16621 (size_window, Fsplit_window, enlarge_window)
16622 (adjust_window_trailing_edge, grow_mini_window): Don't call
16623 check_min_window_sizes.
16624 (window_min_size_2, window_min_size_1, window_min_size):
16625 New argument safe_p for retrieving "safe" minimum sizes.
16626 (Fdisplay_buffer, Fsplit_window, enlarge_window)
16627 (adjust_window_trailing_edge, grow_mini_window):
16628 Adjust arguments of window_min_size... functions.
16629 (shrink_windows): Argument min_size removed. New argument
16630 safe_p allows shrinking windows to their safe minimum sizes.
16631 Calculate minimum size and decide whether a window shall be
16632 deleted for each window individually.
16633 (size_window): When nodelete_p equals 2, tell shrink_windows to
16634 delete windows only if their new minimum size is no more safe.
16635 (shrink_window_lowest_first): Call window_min_size_1 to make
16636 sure to preserve modeline of bottom-most window when resizing
16637 the minibuffer.
16638 (Fset_window_configuration, Fcurrent_window_configuration)
16639 (compare_window_configurations): Do not handle
16640 window-min-height|width any more.
16641 (syms_of_window): Clarify window-min-height|width doc-strings.
16642
166432008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
16644
16645 * dired.c (file_name_completion): Fix up the encoding/decoding issue
16646 some more. Copy some of the code from Ftry_completions.
16647 Remove special case code that dates back to initial revision when the
16648 slash was only added when necessary and that can't trigger nowadays.
16649
166502008-04-27 Kenichi Handa <handa@m17n.org>
16651
16652 * font.c (font_prop_validate): Signal `error' instead of `font'.
16653
166542008-04-29 Jason Rumney <jasonr@gnu.org>
16655
16656 * w32fns.c (Fw32_battery_status): New defun.
16657 (syms_of_w32fns): Defsubr it.
16658
166592008-04-28 Andreas Schwab <schwab@suse.de>
16660
16661 * dired.c (file_name_completion): Fix another mixing of encoded
16662 and decoded names.
16663
166642008-04-28 Juanma Barranquero <lekktu@gmail.com>
16665
16666 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
16667
166682008-04-27 Juanma Barranquero <lekktu@gmail.com>
16669
16670 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
16671
166722008-04-27 Andreas Schwab <schwab@suse.de>
16673
16674 * dired.c (file_name_completion): Fix inappropriate mixing of
16675 encoded and decoded names.
16676
16677 * xterm.c (XTread_socket): Fix use of uninitialized variable.
16678
16679 * puresize.h (BASE_PURESIZE): Increase to 1200000.
16680
166812008-04-26 Eli Zaretskii <eliz@gnu.org>
16682
16683 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
16684 2008-03-31, it's not needed anymore with `struct stat' definition
16685 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
16686 for the same reasons.
16687
166882008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
16689
16690 * m/sparc.h: Additional redefinitions for GNU/Linux.
16691
166922008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16693
16694 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
16695 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
16696 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
16697 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
16698 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16699 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
16700 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16701 Likewise.
16702
16703 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
16704 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
16705 (mac_ax_number_of_characters): Add externs.
16706 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
16707 [USE_MAC_TSM]: Likewise.
16708 (mac_handle_text_input_event) [MAC_OSX]:
16709 Handle kEventTextInputOffsetToPos for no active input area case.
16710 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16711 (mac_handle_document_access_event)
16712 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
16713 (install_application_handler) [MAC_OSX]: Register handlers for
16714 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
16715 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
16716 Register mac_handle_document_access_event.
16717
16718 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
16719 Make functions non-static.
16720
167212008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
16722
16723 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
16724 (read_file_name_completion_ignore_case, insert_default_directory)
16725 (Qdefault_directory): Move to minibuffer.el.
16726 (Fread_file_name): Call the new `read-file-name' instead.
16727
167282008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16729
16730 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
16731 Make function non-static.
16732 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
16733 Remove function.
16734 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16735 Move to mactoolbox.c.
16736 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
16737
16738 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
16739 (mac_rect_make): New macro.
16740
16741 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
16742 instead of float.
16743 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16744 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
16745 (XSetBackground) [USE_CG_DRAWING]: Likewise.
16746 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
16747 CGRectMake.
16748 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
16749 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
16750 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
16751 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16752 instead of WindowRef in argument type.
16753 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
16754 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
16755 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
16756 instead of DISPLAY. All uses changed.
16757 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
16758 (x_calc_absolute_position): Simplify so as not to use
16759 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
16760
16761 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
16762 instead of WindowRef in argument type.
16763 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
16764 [TARGET_API_MAC_CARBON]: Remove externs.
16765 (create_apple_event, mac_event_parameters_to_lisp)
16766 [TARGET_API_MAC_CARBON]: Add externs.
16767
16768 * mactoolbox.c (Vmac_ts_script_language_on_focus)
16769 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
16770 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
16771 is clicked.
16772 (x_activate_menubar): Remove extern for saved_menu_event_location.
16773 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
16774 Move from mac.c.
16775
167762008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16777
16778 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
16779 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
16780
167812008-04-23 Jason Rumney <jasonr@gnu.org>
16782
16783 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
16784 attributes only for local files.
16785
16786 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
16787 default to Qlocal.
16788
167892008-04-22 Juri Linkov <juri@jurta.org>
16790
16791 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
16792 read-buffer-to-switch instead of using the letter "B".
16793
167942008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
16795
16796 * fileio.c (Qdefault_directory): New variable.
16797 (Fread_file_name): Use it to pass `dir' to the completion functions.
16798
167992008-04-20 Chong Yidong <cyd@stupidchicken.com>
16800
16801 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
16802
168032008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
16804
16805 * keyboard.c (Vpre_help_message): Remove.
16806 (show_help_echo): Remove default C code.
16807
16808 * dired.c (directory_files_internal, file_name_completion):
16809 Only call ENCODE_FILE if the string is indeed decoded.
16810
168112008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16812
16813 * Makefile.in (TOOLKIT_DEFINES): Remove.
16814 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
16815
168162008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16817
16818 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
16819 (mactoolbox.o): New target.
16820
16821 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
16822 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
16823
16824 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
16825 Use mac_set_frame_window_background instead of XSetWindowBackground.
16826 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
16827 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
16828 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
16829 instead of SetWindowTitleWithCFString.
16830 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
16831 Move function to mactoolbox.c.
16832 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
16833 Use mac_set_window_modified instead of SetWindowModified.
16834 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
16835 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
16836 (Fx_focus_frame): Use mac_front_non_floating_window instead of
16837 FrontNonFloatingWindow. Use mac_activate_window instead of
16838 ActivateWindow. Use mac_active_non_floating_window instead of
16839 ActiveNonFloatingWindow.
16840 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
16841 Use mac_show_hourglass and mac_hide_hourglass.
16842 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
16843 instead of GetGlobalMouse.
16844 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
16845 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
16846 Use mac_bring_window_to_front instead of BringToFront.
16847 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
16848 mactoolbox.c.
16849 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
16850 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
16851 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
16852 mactoolbox.c.
16853
16854 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
16855 (XtPointer): Move typedef from macmenu.c.
16856 (enum button_type): Move enum from macmenu.c.
16857 (widget_value): Move typedef from macmenu.c.
16858 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
16859 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16860 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16861 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16862 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16863 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16864 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16865 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
16866 (Selection): Move typedef from macselect.c.
16867 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
16868 macterm.c.
16869 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
16870 (mac_is_window_collapsed, mac_bring_window_to_front)
16871 (mac_send_window_behind, mac_hide_window, mac_show_window)
16872 (mac_collapse_window, mac_front_non_floating_window)
16873 (mac_active_non_floating_window, mac_activate_window)
16874 (mac_move_window_structure, mac_move_window, mac_size_window)
16875 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
16876
16877 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
16878 (enum mac_menu_kind): Move enum to mactoolbox.c.
16879 (min_menu_id): Move variable to mactoolbox.c.
16880 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
16881 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
16882 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
16883 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
16884 [TARGET_API_MAC_CARBON]: Likewise.
16885 (XtPointer): Move typedef to macgui.h.
16886 (enum button_type): Move enum to macgui.h.
16887 (widget_value): Move typedef to macgui.h.
16888 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
16889 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
16890 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
16891 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
16892 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
16893 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
16894 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
16895 (popup_activated_flag): Make variable non-static.
16896 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
16897 (add_menu_item, fill_menu, dispose_menus):
16898 Move functions to mactoolbox.c.
16899 (restore_show_help_function, menu_target_item_handler)
16900 (install_menu_target_item_handler, mac_handle_dialog_event)
16901 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
16902 [TARGET_API_MAC_CARBON]: Likewise.
16903 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
16904 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16905 (find_and_call_menu_selection, name_is_separator): Make function
16906 non-static.
16907 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
16908 to mactoolbox.c.
16909 (set_frame_menubar): Don't call install_menu_quit_handler.
16910 (menu_item_selection): New variable.
16911 (mac_menu_show): Use create_and_show_popup_menu.
16912 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
16913 selection but set variable menu_item_selection. All uses changed.
16914 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
16915 Call install_menu_quit_handler. Move to mactoolbox.c.
16916
16917 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
16918 (Selection): Move typedef to macgui.h.
16919 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
16920 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
16921 Make variables non-static.
16922 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16923 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
16924 Make functions non-static.
16925 (Vmac_service_selection) [MAC_OSX]: Likewise.
16926 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
16927 (mac_valid_selection_target_p, mac_clear_selection)
16928 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16929 (mac_put_selection_value, mac_selection_has_target_p)
16930 (mac_get_selection_value, mac_get_selection_target_list)
16931 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
16932 Move functions to mactoolbox.c.
16933 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
16934 Likewise.
16935 (copy_scrap_flavor_data, mac_handle_service_event)
16936 (install_service_handler) [MAC_OSX]: Likewise.
16937 (syms_of_macselect) <Vmac_dnd_known_types>:
16938 Use mac_dnd_default_known_types.
16939
16940 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
16941 Move to mactoolbox.c.
16942 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
16943 (Fx_selection_owner_p): Add EXFUN.
16944 (install_window_handler, remove_window_handler, XSetWindowBackground):
16945 Remove externs.
16946 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
16947 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
16948 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
16949 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
16950 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
16951 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
16952 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
16953 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
16954 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
16955 (create_and_show_popup_menu, mac_get_selection_from_symbol)
16956 (mac_valid_selection_target_p, mac_clear_selection)
16957 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
16958 (mac_put_selection_value, mac_selection_has_target_p)
16959 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
16960 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
16961 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
16962 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
16963 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
16964 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
16965 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
16966 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16967 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
16968
16969 * mactoolbox.c: New file.
16970
169712008-04-18 Jason Rumney <jasonr@gnu.org>
16972
16973 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
16974
169752008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
16976
16977 * character.c (Fmultibyte_char_to_unibyte):
16978 Return latin1 chars unchanged.
16979
16980 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
16981 relocated if it points to `name'.
16982
169832008-04-17 Kenichi Handa <handa@m17n.org>
16984
16985 * data.c (Faset): Allow setting a multibyte character in an
16986 ASCII-only unibyte string.
16987
16988 * lisp.h (STRING_SET_MULTIBYTE): New macro.
16989
169902008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
16991
16992 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
16993 done in config.h.
16994
169952008-04-16 Juanma Barranquero <lekktu@gmail.com>
16996
16997 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
16998 (Fchar_direction): Add usage in the docstring.
16999
170002008-04-15 Chong Yidong <cyd@stupidchicken.com>
17001
17002 * keyboard.c (read_key_sequence): Remove always-true checks.
17003
170042008-04-14 Jason Rumney <jasonr@gnu.org>
17005
17006 * w32font.c (w32font_open_internal): Set max_bounds.descent in
17007 compatibility struct, for better underline positioning.
17008
170092008-04-13 David Hansen <david.hansen@gmx.net>
17010
17011 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
17012 string.
17013
170142008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
17015
17016 * m/hp800.h (XUINT, XSET): Remove.
17017
170182008-04-12 Juanma Barranquero <lekktu@gmail.com>
17019
17020 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
17021 previous change.
17022
170232008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
17024
17025 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
17026 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
17027
170282008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17029
17030 * keymap.h (map_keymap_canonical): Declare.
17031 * xmenu.c (single_keymap_panes): Use it.
17032
170332008-04-11 Glenn Morris <rgm@gnu.org>
17034
17035 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
17036 set the target's value to that of the alias.
17037
170382008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
17039
17040 * term.c (set_tty_color_mode): Left over typo.
17041
170422008-04-10 Michael Albinus <michael.albinus@gmx.de>
17043
17044 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
17045 only after check for file name handler functions. Signal, when
17046 native functionality is not supported.
17047 (syms_of_fileio): Declare it unconditionally.
17048
170492008-04-10 Jason Rumney <jasonr@gnu.org>
17050
17051 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
17052 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
17053
17054 * w32.c (logon_network_drive): Also logon to remote drives that
17055 are mapped to drive letters.
17056
170572008-04-10 Glenn Morris <rgm@gnu.org>
17058
17059 * xdisp.c (truncate-partial-width-windows): Doc fix.
17060
170612008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
17062
17063 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
17064 Move functions to minibuffer.el.
17065 (syms_of_fileio): Don't declare them.
17066
170672008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17068
17069 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
17070 (syms_of_minibuf): Remove its initialization.
17071
17072 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
17073
170742008-04-09 Juanma Barranquero <lekktu@gmail.com>
17075
17076 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
17077
170782008-04-09 Jason Rumney <jasonr@gnu.org>
17079
17080 * makefile.w32-in (distclean): Delete makefile too.
17081 (maintainer-clean): New target.
17082
17083 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
17084
17085 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
17086 for new font backend and composite cases.
17087
170882008-04-09 Jan Djärv <jan.h.d@swipnet.se>
17089
17090 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
17091 Most of the code moved to run_timers.
17092 (do_pending_atimers): Call run_timers.
17093 (run_timers): New function.
17094
17095 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
17096 run atimers.
17097
17098 * process.c (wait_reading_process_output): The same as above.
17099
171002008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
17101
17102 * minibuf.c (last_exact_completion): Remove variable.
17103 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
17104 (complete_and_exit_1, complete_and_exit_2)
17105 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
17106 (Fdisplay_completion_list, display_completion_list_1)
17107 (Fminibuffer_completion_help, Fself_insert_and_exit)
17108 (Fexit_minibuffer, Fminibuffer_message): Move functions to
17109 minibuffer.el.
17110 (syms_of_minibuf): Remove corresponding initializations.
17111
17112 * keyboard.c (Qdeactivate_mark): New var.
17113 (command_loop_1): Use it to call `deactivate-mark'.
17114 (syms_of_keyboard): Initialize it.
17115
17116 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
17117 to another frame.
17118 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
17119 Don't call set_tty_color_mode.
17120 (store_frame_param): Reset previous_frame rather than call
17121 set_tty_color_mode.
17122 * term.c (set_tty_color_mode): Rewrite.
17123 * dispextern.h (set_tty_color_mode): New type.
17124 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
17125
171262008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
17127
17128 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
17129 for generic chars, which do not exist any more in emacs-unicode.
17130
171312008-04-08 Michael Albinus <michael.albinus@gmx.de>
17132
17133 * coding.c (detect_coding_emacs_mule)
17134 (Ffind_operation_coding_system): Fix typo.
17135
171362008-04-08 Jason Rumney <jasonr@gnu.org>
17137
17138 * w32uniscribe.c (SNAME): Extract only symbol name.
17139
17140 * w32font.h (struct w32_metric_cache): New struct.
17141 (w32font_info): Use it.
17142 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
17143 (CACHE_BLOCKSIZE): New constants.
17144
17145 * w32font.c (Qja, Qko, Qzh): New symbols.
17146 (syms_of_w32font): Initialise them.
17147 (font_matches_spec): Use them to filter by language.
17148 (recompute_cached_metrics): Remove function.
17149 (compute_metrics, clear_cached_metrics): New functions.
17150 (w32font_encode_char): Use them to manage metric cache.
17151 (w32font_text_extents): Cache metrics for all glyphs on demand.
17152 Delay converting glyph indices to WORD until needed.
17153 (w32font_open_internal): Initialize metric cache to empty.
17154 (registry_to_w32_charset): Charset should always be a symbol.
17155 (fill_in_logfont, list_all_matching_fonts): Family should
17156 always be a symbol.
17157
171582008-04-06 Jason Rumney <jasonr@gnu.org>
17159
17160 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
17161 Give up if glyph indices not supported. Use uniscribe obtained
17162 ABC widths for individual metrics. Map glyph clusters back to
17163 characters using fClusterStart flag. Return number of glyphs
17164 produced, not chars processed.
17165 (uniscribe_shape): Map char at FROM to current glyph.
17166
171672008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17168
17169 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
17170 Use SetMenuItemHierarchicalMenu.
17171
171722008-04-05 Jason Rumney <jasonr@gnu.org>
17173
17174 * image.c (pbm_load): Allow color values up to 65535.
17175 Throw an error if max_color_idx is outside the supported range.
17176 Report an error when image size is invalid.
17177 Read two bytes at a time when raw images have max_color_idx above 255.
17178
aac0c6e3
MR
171792008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
17180
17181 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
17182 append "CCL: Quitted" when the CCL program is quitted.
17183 (setup_ccl_program): Initialize ccl->quit_silently to zero.
17184
17185 * ccl.h (struct ccl_program): New member quit_silently.
17186
171872008-04-05 Chong Yidong <cyd@stupidchicken.com>
17188
17189 * search.c (compile_pattern_1): Treat non-nil and non-string of
17190 search-spaces-regexp as nil.
17191
17192 * minibuf.c (Fassoc_string): Tweak docstring.
17193
171942008-04-05 Eli Zaretskii <eliz@gnu.org>
17195
17196 * dired.c (Ffile_attributes): Support inode numbers wider than 32
17197 bits. Remove ugly WINDOWSNT-specific kludge introduced on
17198 2008-03-14 to force inode be positive.
17199
17200 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
17201 _S_* ones, since we now use our own sys/stat.h.
17202 (stat, fstat): Don't mangle the inode number.
17203 (init_user_info): Don't restrict UID and GID to 0-60000 range.
17204
172052008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
17206
17207 * frame.h (struct frame): Give one more bit to `visible' since we use
17208 values larger than 1 to indicate obscured frames on ttys.
17209
17210 * keymap.c (Qkeymap_canonicalize): New var.
17211 (Fmap_keymap_internal): New fun.
17212 (describe_map): Use keymap-canonicalize.
17213
17214 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
17215 (Fundo_boundary): Set them.
17216 (syms_of_undo): Initialize them.
17217 (record_point): Use them instead of last_point_position*.
17218 (last_undo_buffer): Change type.
17219
172202008-04-04 Jason Rumney <jasonr@gnu.org>
17221
17222 * w32font.c (w32font_text_extents): Use font's ascent and descent.
17223 (recompute_cached_metrics): Don't set ascent and descent per char.
17224
17225 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
17226 (uniscribe_check_otf): Add GC protection before consing.
17227 Rearrange loop for counting features.
17228
172292008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
17230
17231 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
17232 buffer with byte-size of source buffer.
17233
172342008-04-03 Chong Yidong <cyd@stupidchicken.com>
17235
17236 * callint.c (Fcall_interactively): Handle temporary region even
17237 when shift-select-mode is off.
17238
172392008-04-03 Jason Rumney <jasonr@gnu.org>
17240
17241 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
17242
172432008-04-03 Kenichi Handa <handa@m17n.org>
17244
17245 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
17246 (CATEGORY_MASK_UTF_16): Likewise.
17247 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
17248 binary file.
17249 (detect_coding): Add null-byte detection for a binary file.
17250 (detect_coding_system): Likewise.
17251
172522008-04-03 Jason Rumney <jasonr@gnu.org>
17253
17254 * w32uniscribe.c: New file.
17255
17256 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
17257
17258 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
17259
17260 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
17261 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
17262 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
17263 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
17264 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
17265 (Qphonetic): New symbols.
17266 (syms_of_w32font): Initialize them.
17267 (font_supported_scripts): Use them.
17268 (w32font_list_family): List all charsets.
17269 (w32font_text_extents, recompute_cached_metrics): Fix metric
17270 calculations.
17271 (w32_enumfont_pattern_entity): Make full_type a DWORD.
17272 Give opentype fonts their own format.
17273 (font_matches_spec): New arguments backend and logfont.
17274 Handle :otf spec for uniscribe backend.
17275 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
17276 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
17277
17278 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
17279 font backend.
17280 (globals_of_w32fns): Initialize uniscribe font backend.
17281
17282 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
17283 dependencies.
17284 (w32uniscribe.$(O)): New file to build.
17285 (FONT_OBJ): Include w32uniscribe.$(O).
17286 (LIBS): Add uniscribe libraries.
17287
17288 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
17289
172902008-04-02 Chong Yidong <cyd@stupidchicken.com>
17291
17292 * callint.c (Vshift_select_mode): New var.
17293 (Finteractive): Document new ^ spec.
17294 (Fcall_interactively): Call handle-shift-selection if the ^ spec
17295 is present.
17296
17297 * keyboard.c (Vthis_command_keys_shift_translated): New var.
17298 (command_loop_1): Avoid running the direct display versions of
17299 forward-char and backward-char if shift-selection may occur.
17300 (read_key_sequence): Set Vthis_command_keys_shift_translated if
17301 shift-translation takes place.
17302
17303 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
17304 avoid clobbering by define-minor-mode.
17305
17306 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
17307 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
17308
17309 * syntax.c (Fforward_word): Add ^ interactive spec.
17310
17311 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
17312 (Fscroll_right): Add ^ interactive spec.
17313
173142008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
17315
17316 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
17317
17318 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
17319
17320 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
17321
173222008-03-31 Juri Linkov <juri@jurta.org>
17323
17324 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
17325
173262008-03-30 Jan Djärv <jan.h.d@swipnet.se>
17327
17328 * gtkutil.c (xg_set_geometry): Fix indentation.
17329 (xg_resize_outer_widget): Remove.
17330 (x_wm_size_hint_off): Fix indentation.
17331 (xg_frame_set_char_size): Call flush_and_sync after
17332 gtk_window_resize.
17333 (x_wm_set_size_hint): Pass NULL as geometry window to
17334 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
17335 Add menu bar and tool bar height to base height.
17336 (xg_update_frame_menubar, free_frame_menubar)
17337 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
17338 (update_frame_tool_bar, free_frame_tool_bar):
17339 Change xg_resize_outer_widget to xg_frame_set_char_size.
17340
173412008-03-30 Michael Albinus <michael.albinus@gmx.de>
17342
17343 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
17344 (Fdbus_call_method): New parameter TIMEOUT.
17345 (dbus-send-signal): Optimize UNGCPRO call.
17346
173472008-03-29 Juri Linkov <juri@jurta.org>
17348
17349 * window.c (Fdisplay_buffer): Move call to
17350 Vsplit_window_preferred_function out of conditions that check
17351 if window is eligible for vertical splitting.
17352 When Vsplit_window_preferred_function is non-nil, call it and use
17353 its non-nil return value as window. Otherwise, continue doing
17354 vertical splitting using Fsplit_window with arg horflag=nil.
17355 (syms_of_window) <Vsplit_window_preferred_function>: Change the
17356 default value from `split-window' to nil.
17357
173582008-03-29 Juri Linkov <juri@jurta.org>
17359
17360 * callint.c (Fcall_interactively): Revert 2008-03-16 change
17361 for interactive code letters 'b' and 'B'.
17362
173632008-03-29 Eli Zaretskii <eliz@gnu.org>
17364
17365 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
17366 multibyte string.
17367
173682008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
17369
17370 * keyboard.c (pending_funcalls): New var.
17371 (timer_check): Run it.
17372 (syms_of_keyboard): Initialize it.
17373 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
17374 (Vdelete_terminal_functions): New vars.
17375 (syms_of_terminal): Initialize them.
17376 (Fdelete_terminal): Run delete-terminal-functions.
17377 * xdisp.c (safe_eval): Rewrite.
17378 (safe_call2): New fun.
17379 * frame.c (Qdelete_frame_functions): New var.
17380 (syms_of_frame): Initialize it.
17381 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
17382 * lisp.h (safe_call2, pending_funcalls): Declare.
17383
173842008-03-28 Andreas Schwab <schwab@suse.de>
17385
17386 * indent.c (Fmove_to_column): Move declaration before statements.
17387
173882008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
17389
17390 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
17391 (struct frame): Use bit fields for boolean vars.
17392
17393 * process.c (server_accept_connection): Simplify naming.
17394 (emacs_get_tty_pgrp): Use SDATA.
17395
17396 * coding.c (decode_coding_object): Fix last change.
17397
173982008-03-27 Jason Rumney <jasonr@gnu.org>
17399
17400 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
17401
174022008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
17403
17404 * charset.c (Fdefine_charset_internal): Change the way of
17405 registering charsets in Vcharset_order_list.
17406 (syms_of_charset): Make the charset `eight-bit' supplementary.
17407
174082008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
17409
17410 * regex.c (EXTEND_BUFFER): Change order of pointer addition
17411 operations, to avoid having the difference between pointers
17412 overflow.
17413
174142008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
17415
17416 * indent.c (check_display_width): New fun.
17417 (scan_for_column): Use it.
17418
17419 * data.c (syms_of_data): Mark most-positive-fixnum and
17420 most-negative-fixnum as constants.
17421
17422 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
17423
17424 * indent.c (scan_for_column): Extract from current_column_1.
17425 Merge with the same code from Fmove_to_column.
17426 (current_column_1, Fmove_to_column): Use it.
17427
174282008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
17429
17430 * keymap.c (map_keymap_internal): New fun.
17431 (map_keymap): Use it.
17432 (Fmap_keymap_internal): New fun.
17433 (Fmap_keymap): Remove left-out test from before make_save_value.
17434
17435 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
17436
17437 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
17438 Use XCAR/XCDR.
17439
17440 * process.h (struct Lisp_Process): Remove filter_multibyte.
17441 * process.c (QCfilter_multibyte): Remove.
17442 (setup_process_coding_systems): Don't use filter_multibyte.
17443 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
17444 (read_process_output): Don't adjust multibyteness to filter_multibyte.
17445 (Fset_process_filter_multibyte): Change the coding-system to
17446 approximate the previous behavior.
17447 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
17448 coding-system.
17449
17450 * coding.c (decode_coding_object): When not decoding into a buffer,
17451 obey the coding system's preference of (uni|multi)byte.
17452
174532008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
17454
17455 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
17456 every char is changed and has a different byte-length.
17457 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
17458 Fix int -> EMACS_INT.
17459
174602008-03-23 David Hansen <david.hansen@gmx.net>
17461
17462 * dbusbind.c (xd_read_message): Remove extra copying of message
17463 strings. Check for NULL `interface' or `member'.
17464
174652008-03-22 Eli Zaretskii <eliz@gnu.org>
17466
17467 * w32.c (readdir): If FindFirstFile/FindNextFile return in
17468 cFileName a file name that includes `?' characters, use the 8+3
17469 alias in cAlternateFileName instead.
17470
174712008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
17472
17473 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
17474
174752008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17476
17477 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
17478 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
17479 work on current_buffer only instead (that was already the case
17480 for some of the code anyway).
17481 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
17482 (temp_set_point, temp_set_point_both): Use EMACS_INT.
17483 (SET_PT, SET_PT_BOTH): Adjust.
17484 * intervals.h (set_point, temp_set_point, set_point_both)
17485 (temp_set_point_both): Remove redundant declarations.
17486
174872008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
17488
17489 * fileio.c (Finsert_file_contents):
17490 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
17491 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
17492 when buffer != current_buffer anyway.
17493
174942008-03-20 Andreas Schwab <schwab@suse.de>
17495
17496 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
17497 as default.
17498
174992008-03-19 Jason Rumney <jasonr@gnu.org>
17500
17501 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
17502 (syms_of_w32fns): Initialize them.
17503 (HOURGLASS_ID): New constant.
17504 (x_window_to_frame): Don't check hourglass_window.
17505 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
17506 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
17507 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
17508 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
17509 Only change the cursor if hourglass is not active.
17510 (Fx_create_frame): Initialize frame's current_cursor.
17511 (hourglass_atimer): Remove.
17512 (hourglass_started): New function.
17513 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
17514 (show_hourglass): Adapt to w32, changing argument to frame.
17515
17516 * w32term.h (struct w32_output): Remove hourglass_window.
17517 Add current_cursor.
17518
17519 * eval.c (call_debugger, Fsignal):
17520 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
17521 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
17522 (Fexecute_extended_command, cancel_hourglass_unwind):
17523 * minibuf.c (read_minibuf):
17524 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
17525
175262008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
17527
17528 * window.c (run_funs): New fun.
17529 (run_window_configuration_change_hook): Use it to run the buffer-local
17530 and the global part of the hook.
17531
17532 * xdisp.c (format_mode_line_unwind_data): Add window argument.
17533 (unwind_format_mode_line): Restore selected window.
17534 (x_consider_frame_title, Fformat_mode_line): Set selected window.
17535
175362008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
17537
17538 * editfns.c (Fchar_equal): Check they are valid characters.
17539
17540 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
17541
175422008-03-17 Andreas Schwab <schwab@suse.de>
17543
17544 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
17545 against a charset.
17546
17547 * lisp.h (Fbuffer_list): Declare.
17548
175492008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 17550
aac0c6e3
MR
17551 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
17552 handlebox_widget is != 0.
17553
175542008-03-16 Juri Linkov <juri@jurta.org>
17555
17556 * callint.c (Fcall_interactively): For interactive code letters
17557 'b' and 'B' put the buffer list into the list of default "future"
17558 values of the minibuffer.
17559
175602008-03-16 Andreas Schwab <schwab@suse.de>
17561
17562 * keyboard.c (read_key_sequence): Fix downcasing of letters with
17563 modifiers.
17564
17565 * regex.c (re_match_2_internal): Correct matching of a charset
17566 against latin-1 characters.
17567
175682008-03-16 Kenichi Handa <handa@m17n.org>
17569
17570 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
17571 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
17572 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
17573 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
17574 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
17575 CHAR_STRING_ADVANCE.
17576 (produce_chars): Fix for the case that the source and the
17577 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
17578 instead of CHAR_STRING_ADVANCE.
17579 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
17580 STRING_CHAR_ADVANCE.
17581
175822008-03-15 Andreas Schwab <schwab@suse.de>
17583
17584 * regex.c (re_match_2_internal): Correct matching of eight bit
17585 characters in unibyte strings.
17586
175872008-03-15 Martin Rudalics <rudalics@gmx.at>
17588
17589 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
17590 at end of range when it coincides with the end of the buffer.
17591
175922008-03-14 Eli Zaretskii <eliz@gnu.org>
17593
17594 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
17595
17596 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
17597
175982008-03-14 Jason Rumney <jasonr@gnu.org>
17599
17600 * editfns.c (initial_tz): New variable.
17601 (syms_of_editfns): Initialize it.
17602 (Fset_time_zone_rule): Set it when first called.
17603 Use it when TZSTRING is nil.
17604
17605 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
17606 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
17607 (monitor_from_point_fn, get_monitor_info_fn): New globals.
17608 (globals_of_w32fns): Initialize them.
17609 (compute_tip_xy): Use them to position tooltips.
17610
176112008-03-14 Glenn Morris <rgm@gnu.org>
17612
17613 * emacs.c (main): Revert previous change.
17614 (standard_args): Revert -internal-script back to -scriptload,
17615 and remove the long-option form.
17616
176172008-03-13 Glenn Morris <rgm@gnu.org>
17618
17619 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
17620 Remove option -enable-font-backend.
17621
176222008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
17623
17624 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
17625
176262008-03-11 Jan Djärv <jan.h.d@swipnet.se>
17627
17628 * xterm.c (x_connection_closed): For GTK: If this is the last
17629 terminal just exit without closing the display.
17630
176312008-03-11 Jason Rumney <jasonr@gnu.org>
17632
17633 * w32font.c (w32font_full_name): Use floor to round.
17634
f0131492 176352008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
17636
17637 * sound.c (alsa_configure): Declare vol at beginning of block.
17638
17639 * fontset.c (Ffontset_info): Remove extra semicolon.
17640
176412008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
17642
17643 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
17644 size of resulting string.
17645
176462008-03-10 Jason Rumney <jasonr@gnu.org>
17647
17648 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
17649
176502008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17651
17652 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
17653 Don't pretend as if characters with display property haven't been
17654 consumed for string-replacing-string case.
17655
176562008-03-08 Kim F. Storm <storm@cua.dk>
17657
17658 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
17659 (get_next_display_element, next_element_from_string)
17660 (next_element_from_ellipsis, next_element_from_buffer): Use it.
17661
176622008-03-08 Andreas Schwab <schwab@suse.de>
17663
17664 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
17665
176662008-03-06 Jason Rumney <jasonr@gnu.org>
17667
17668 * w32font.c (w32_registry): Take font_type argument. Use ANSI
17669 when charset not specified. Only translate ANSI to unicode when
17670 font_type is truetype.
17671 (w32font_coverage_ok): New function.
17672 (add_font_entity_to_list): Use it to filter unsuitable fonts.
17673
176742008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
17675
17676 * lread.c (Fread_char): Resolve modifiers.
17677 (Fread_char_exclusive): Likewise.
17678
17679 * character.c (char_resolve_modifier_mask): New function.
17680 (char_string): Use char_resolve_modifier_mask.
17681 (Fchar_resolve_modifiers): New function.
17682 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
17683 function.
17684
176852008-03-04 Jason Rumney <jasonr@gnu.org>
17686
17687 * makefile.w32-in: Always include w32font.c in the build.
17688 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
17689
176902008-03-04 Andreas Schwab <schwab@suse.de>
17691
17692 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
17693 (versionclean): Likewise.
17694
176952008-03-04 Juanma Barranquero <lekktu@gmail.com>
17696
17697 * .cvsignore: Add oo.
17698
176992008-03-03 Andreas Schwab <schwab@suse.de>
17700
17701 * coding.c (decode_coding_object): Inhibit gap shrinking while
17702 decoding in place.
17703
177042008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
17705
17706 * w32term.c: Remove unused include "gnu.h".
17707 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
17708
17709 * gnu.h: Rename to ...
17710 * emacs-icon.h: ... this.
17711 * xterm.c: Use emacs-icon.h instead of gnu.h.
17712 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
17713
177142008-03-03 Juanma Barranquero <lekktu@gmail.com>
17715
17716 * w32font.c: Include math.h.
17717
177182008-03-03 Jason Rumney <jasonr@gnu.org>
17719
17720 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
17721 Compute options separately.
17722 (w32font_open_internal): Set glyph_idx before caching metrics.
17723
17724 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
17725 Define if system headers don't.
17726 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
17727 (w32font_encode_char): Don't declare here.
17728
17729 * w32font.c (Quniscribe, QCformat): New symbols.
17730 (syms_of_w32font): Define them.
17731 (w32font_has_char): Indicate uncertainty.
17732 (w32font_encode_char): Encode as glyph point. Make static.
17733 (recompute_cached_metrics): New function.
17734 (w32font_open_internal): Use it. Set font to use glyph points
17735 initially. Set format based on type of font.
17736 (w32font_text_extents, w32font_draw): Optionally use glyph points.
17737 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
17738 on it. Set format based on information available here.
17739 (add_font_entity_to_list): Identify backend based on opentype_only.
17740
177412008-03-02 Andreas Schwab <schwab@suse.de>
17742
17743 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
17744
17745 * coding.c (decode_coding_big5, produce_chars):
17746 Fix typos in last change.
17747
177482008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
17749
17750 * gnu.h: New icon.
17751
177522008-03-02 Kenichi Handa <handa@m17n.org>
17753
17754 * coding.c (decode_coding_utf_8): When eol-type of CODING is
17755 `dos', don't decode '\r' if that is the last in the source.
17756 (decode_coding_utf_16, decode_coding_emacs_mule)
17757 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17758 (decode_coding_raw_text, decode_coding_charset): Likewise.
17759 (produce_chars): Don't decode EOL here. Use EMACS_INT.
17760
177612008-03-01 Jason Rumney <jasonr@gnu.org>
17762
17763 * w32font.c (w32font_full_name): Report point size for scalable fonts.
17764
177652008-03-01 Kim F. Storm <storm@cua.dk>
17766
17767 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
17768
177692008-03-01 Jason Rumney <jasonr@gnu.org>
17770
17771 * w32font.c (w32font_full_name): New function.
17772 (w32font_open_internal): Use it.
17773
177742008-03-01 Kim F. Storm <storm@cua.dk>
17775
17776 * dispnew.c (line_draw_cost): Fix invalid glyph check.
17777
177782008-03-01 Jason Rumney <jasonr@gnu.org>
17779
17780 * font.c (font_unparse_fcname): Increase len when style is a symbol.
17781
177822008-03-01 Jan Djärv <jan.h.d@swipnet.se>
17783
17784 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
17785 xg_frame_resized when the event is for the edit widget.
17786
17787 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
17788
17789 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
17790 set_char_size.
17791 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
17792 operations on widgets here. Just set frame size if needed.
17793 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
17794 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
17795 (x_wm_set_size_hint): Set size hints on the edit widget only, not
17796 the whole frame.
17797 (xg_create_tool_bar): Move attachment of the tool bar to
17798 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
17799 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
17800
178012008-03-01 Jason Rumney <jasonr@gnu.org>
17802
17803 * w32fns.c (w32_msg_pump): Disable debug code.
17804
178052008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
17806
17807 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
17808
178092008-02-29 Chong Yidong <cyd@stupidchicken.com>
17810
17811 * xdisp.c (next_overlay_string): Don't set
17812 overlay_strings_at_end_processed_p if we're currently reading from
17813 a display string.
17814
178152008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
17816
17817 * xdisp.c (get_overlay_strings_1): Fix typo.
17818
178192008-02-29 Chong Yidong <cyd@stupidchicken.com>
17820
17821 * xdisp.c (get_overlay_strings_1): Add missing argument type.
17822
178232008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
17824
17825 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
17826
17827 * xdisp.c (display_mode_element): Cancel the previous change.
17828 (decode_mode_spec): Likewise.
17829 (handle_auto_composed_prop): Don't make composition if it->string
17830 is a string.
17831
178322008-02-27 Kim F. Storm <storm@cua.dk>
17833
17834 * lisp.h (GLYPH): Change type from int to struct with separate char
17835 and face_id members.
17836 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
17837 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
17838 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
17839 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
17840 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
17841 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
17842 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
17843 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
17844 handle new Lisp glyph code encoding, either an integer or a cons.
17845
17846 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
17847 (GLYPH_ALIAS): Delete.
17848 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
17849 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
17850 (GLYPH_FROM_CHAR): Replace macro by ...
17851 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
17852
17853 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
17854 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
17855 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
17856 (GLYPH_INVALID_P): New macro.
17857 (spec_glyph_lookup_face): Update prototype.
17858
17859 * dispnew.c (line_draw_cost): Adapt to new glyph type.
17860 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
17861 new glyph code encoding.
17862 (spec_glyph_lookup_face): No return value; update passed glyph instead.
17863 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
17864
17865 * xdisp.c (get_next_display_element, next_element_from_display_vector):
17866 Adapt to new glyph type and new glyph code encoding.
17867
17868 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
17869
17870 * indent.c (current_column, current_column_1, Fmove_to_column)
17871 (compute_motion): Adapt to new glyph code encoding.
17872
17873 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
17874
178752008-02-27 Chong Yidong <cyd@stupidchicken.com>
17876
17877 * process.c (wait_reading_process_output): Check for window
17878 changes caused by timers.
17879 Suggested by Johan Bockgård.
17880
178812008-02-27 Glenn Morris <rgm@gnu.org>
17882
17883 * emacs.c (USAGE1): Add `--disable-font-backend'.
17884
178852008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
17886
17887 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
17888 is made to the buffer.
17889
178902008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
17891
17892 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
17893 (face_at_string_position):
17894 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
17895 (face_at_string_position):
17896 * xdisp.c (display_string, next_overlay_change):
17897 * buffer.h (overlays_at):
17898 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
17899 Update callers.
17900
179012008-02-26 Chong Yidong <cyd@stupidchicken.com>
17902
17903 * editfns.c (Fformat): Doc fix.
17904
179052008-02-26 Juanma Barranquero <lekktu@gmail.com>
17906
17907 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
17908 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
17909 (Ffont_otf_alternates, Fquery_font): Doc fixes.
17910
179112008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17912
17913 * buffer.c (Fbuffer_swap_text): New function.
17914 (syms_of_buffer): Defsubr it.
17915
179162008-02-25 Chong Yidong <cyd@stupidchicken.com>
17917
17918 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
17919
179202008-02-25 Jason Rumney <jasonr@gnu.org>
17921
17922 * w32font.c (w32font_draw): Draw one character at a time when padding.
17923
179242008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
17925
17926 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
17927 Handle a nil arg. Use run_window_configuration_change_hook.
17928 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
17929 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
17930 Use run_window_configuration_change_hook.
17931
179322008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17933
17934 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
17935 1-pixel width.
17936
179372008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
17938
17939 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
17940 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
17941 if the glyph in the font is zero pixel with.
17942
17943 * dispextern.h (struct glyph_string): New member padding_p.
17944
17945 * w32font.c (w32font_draw): Pay attention to s->padding_p.
17946
17947 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
17948
17949 * xfont.c (xfont_draw): Pay attention to s->padding_p.
17950
17951 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
17952
17953 * font.c: If the font driver doesn't have `shape' function, return Qnil.
17954
179552008-02-25 Jason Rumney <jasonr@gnu.org>
17956
17957 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
17958
179592008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
17960
17961 Allow fine-grained image-cache flushing.
17962 * dispextern.h (struct image): Add `dependencies' field.
17963 (clear_image_caches): Change arg to Lisp_Object.
17964 * image.c (make_image): Initialize `dependencies' field.
17965 (clear_image_cache): Change arg to allow fine-grained flushing.
17966 Perform the flush even if image-cache-eviction-delay is nil.
17967 (clear_image_caches): Change arg to Lisp_Object.
17968 (Fclear_image_cache): Expand meaning of the argument.
17969 (mark_image): Mark `dependencies' field.
17970 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
17971 (lface_hash): Use XHASH rather than XFASTINT.
17972 (face_at_buffer_position): Fix int -> EMACS_INT position.
17973 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
17974 (select_frame_for_redisplay): Remove code duplication.
17975 (redisplay_internal): Adapt arg to call to clear_image_caches.
17976
179772008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
17978
17979 * s/vms4-0.h:
17980 * s/vms4-2.h:
17981 * s/vms4-4.h:
17982 * s/vms5-5.h: Remove, unused.
17983
17984 * s/irix5-2.h:
17985 * s/irix6-0.h:
17986 * s/riscos5.h:
17987 * s/mach-bsd4-3.h:
17988 * m/mips4.h: Remove files for obsolete systems.
17989
17990 * Makefile.in:
17991 * filelock.c:
17992 * unexmips.c:
17993 * m/hp9000s300.h:
17994 * m/iris4d.h:
17995 * s/aix3-1.h:
17996 * s/hpux.h:
17997 * s/msdos.h:
17998 * s/usg5-0.h:
17999 * s/usg5-2-2.h:
18000 * s/usg5-2.h:
18001 * s/usg5-3.h: Remove references to obsolete variables.
18002
18003 * s/irix5-0.h: Remove, move all the contents ...
18004 * s/irix6-5.h: ... here. Simplify.
18005 * config.in: Regenerate.
18006
180072008-02-24 Jason Rumney <jasonr@gnu.org>
18008
18009 * w32term.c (x_draw_glyph_string_background): Clear the background
18010 manually when cleartype is in use.
18011 (x_draw_glyph_string_foreground): Draw text transparently when
18012 cleartype is in use.
18013
18014 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
18015 a font into it unless we have to.
18016
180172008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18018
18019 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
18020 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 18021
aac0c6e3
MR
180222008-02-18 Jason Rumney <jasonr@gnu.org>
18023
18024 * w32fns.c (Fw32_shell_execute): Encode parameters.
18025
180262008-02-09 Eli Zaretskii <eliz@gnu.org>
18027
18028 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
18029
180302008-02-05 Juanma Barranquero <lekktu@gmail.com>
18031
18032 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
18033
180342008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
18035
18036 * xterm.c (x_set_offset): Don't change the gravity if
18037 CHANGE_GRAVITY is -1.
18038
180392008-02-23 Chong Yidong <cyd@stupidchicken.com>
18040
18041 * fileio.c (auto_save_error_occurred): New var.
18042 (auto_save_error): Set it.
18043 (Fdo_auto_save): Don't overwrite the error message if an auto-save
18044 error occurred.
18045
180462008-02-23 Eli Zaretskii <eliz@gnu.org>
18047
18048 * w32.c (globals_of_w32): Add initializations for
18049 g_b_init_get_sid_sub_authority and
18050 g_b_init_get_sid_sub_authority_count.
18051
180522008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
18053
18054 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
18055 (font_parse_xlfd): Use them for sanity check.
18056 (Finternal_set_font_style_table): Make sure the table is bijective.
18057
18058 Consolidate the image_cache to the terminal struct.
18059 * termhooks.h (P_): Remove redundant def.
18060 (struct terminal): New field `image_cache'.
18061 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
18062 of FRAME_X_IMAGE_CACHE.
18063 * xterm.h (struct x_display_info): Remove image_cache field.
18064 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18065 * w32term.h (struct w32_display_info): Remove image_cache field.
18066 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18067 * macterm.h (struct mac_display_info): Remove image_cache field.
18068 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
18069 * xterm.c (x_term_init):
18070 * w32term.c (w32_term_init):
18071 * macterm.c (mac_term_init): Set the image_cache in the terminal.
18072 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
18073 Remove declarations.
18074 (clear_image_caches, mark_image_cache): New declarations.
18075 * xfaces.c (clear_face_cache):
18076 * xdisp.c (redisplay_internal): Use clear_image_caches.
18077 * image.c (clear_image_cache): Don't check that a frame is on
18078 a window-system before checking if it shares the same cache.
18079 (clear_image_caches): New function.
18080 (Fclear_image_cache): Use it.
18081 (mark_image): Move from allo.c.
18082 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
18083 * alloc.c (mark_image, mark_image_cache): Move to image.c.
18084 (mark_object): Don't call mark_image_cache for frames.
18085 (mark_terminals): Call mark_image_cache.
18086
18087 * lisp.h (Fdelete_terminal): Declare.
18088
18089 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
18090 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
18091 wrong_type_argument.
18092
180932008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
18094
18095 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
18096 malayalam.el, and tamil.el. Add sinhala.el.
18097
180982008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
18099
18100 * xterm.c (x_connection_closed): Consolidate identical tests.
18101 (x_delete_terminal): Don't crash if called via x_connection_closed.
18102
181032008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
18104
18105 * xdisp.c (decode_mode_spec): New arg string.
18106 (display_mode_element): Adjust for the above change.
18107
181082008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
18109
18110 * callint.c (Fcall_interactively): Use AREF.
18111
181122008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
18113
18114 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
18115
181162008-02-18 Jan Djärv <jan.h.d@swipnet.se>
18117
18118 * xfns.c (Fx_show_tip): Set string to " " if empty.
18119
181202008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
18121
18122 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
18123 with Qt.
18124
181252008-02-17 Kenichi Handa <handa@m17n.org>
18126
18127 * ftfont.c (ftfont_shape): Return Lispy number.
18128
18129 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
18130 for GCs.
18131 (Finternal_set_font_selection_order): Call font_update_sort_order
18132 only when enable_font_backend is set.
18133 (realize_x_face): Set face->font_info to that of default face only
18134 when enable_font_backend is set.
18135
18136 * xdisp.c (handle_composition_prop): Set it->c to the fist
18137 character of the composed region.
18138 (fill_composite_glyph_string): Set base_face->font_info to
18139 s->font_info. Get a face for ascii from base_face->ascii_face.
18140 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
18141 with a face already decided.
18142 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
18143 non-negative.
18144 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
18145 call font_prepare_composition unconditionally.
18146
18147 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
18148
18149 * xterm.h (struct x_display_info): New member font.
18150
18151 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
18152 (x_set_mouse_face_gc, x_new_font): Likewise.
18153 (x_term_init): Setup display_info->font.
18154 (x_delete_terminal): Free display_info->font.
18155
18156 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
18157
18158 * ftxfont.c (ftxfont_default_fid): Delete it.
18159 (ftxfont_open): Set xfont->fid to 0.
18160 (ftxfont_end_for_frame): Clear data specific to the frame and the
18161 font-driver.
18162
18163 * xftfont.c (xftfont_default_fid): Delete it.
18164 (xftfont_open): Set xfont->fid to 0.
18165
18166 * fontset.c (FONTSET_OBJLIST): New macro.
18167 (fontset_find_font): Update font-object list of the fontset.
18168 (free_realized_fontset): New function.
18169 (free_face_fontset): Call free_realized_fontset.
18170 (Ffont_info): Call font_close_object only when enable_font_backend
18171 is set.
18172
18173 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
18174 [HAVE_NTGUI]: Include w32term.h.
18175 [MAC_OS]: Include macterm.ch.
18176 (font_otf_ValueRecord): Use make_number.
18177 (font_finish_cache): Fix handling of reference count.
18178 (font_clear_cache): Update num_fonts.
18179 (font_open_entity): Update smallest_char_width and
18180 smallest_font_height of the frame.
18181 (font_close_object): Update num_fonts.
18182 (Fclear_font_cache): Fix finding the target cache data.
18183
181842008-02-16 Glenn Morris <rgm@gnu.org>
18185
18186 * fontset.c (Finternal_char_font): Fix compilation warning.
18187
181882008-02-16 Eli Zaretskii <eliz@gnu.org>
18189
18190 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
18191 instead of char arrays. Enlarge the size of array passed to
18192 get_token_information.
18193
18194 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
18195 warnings.
18196
181972008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
18198
18199 * .gdbinit: Don't set `args', it breaks gdb --args.
18200
182012008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
18202
18203 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
18204 within a narrowed buffer.
18205
182062008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
18207
18208 * coding.c (decode_coding_object, encode_coding_object):
18209 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
18210
182112008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
18212
18213 * coding.c (coding_set_destination): Use BEG_BYTE rather than
18214 hardcoding 1.
18215 (detect_coding_system):
18216 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
18217 (string_char_to_byte, string_byte_to_char, insert_from_gap):
18218 * insdel.c (insert_from_gap):
18219 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
18220 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
18221 (string_to_multibyte):
18222 * character.c (chars_in_text, multibyte_chars_in_text):
18223 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
18224
18225 * character.h (FETCH_STRING_CHAR_ADVANCE)
18226 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
18227 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
18228 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
18229
18230 * casefiddle.c (casify_region): Only call after-change and composition
18231 functions on the part of the region that was changed.
18232
18233 * keyboard.c (read_avail_input):
18234 * frame.c (Fdelete_frame): Call Fdelete_terminal.
18235
182362008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18237
18238 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
18239 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
18240
182412008-02-11 Juanma Barranquero <lekktu@gmail.com>
18242
18243 * w32menu.c (push_submenu_start, push_submenu_end)
18244 (push_left_right_boundary, push_menu_pane, push_menu_item):
18245 * keyboard.c (read_key_sequence): Don't pass args with side effects
18246 to AREF, it fails when compiling with -DENABLE_CHECKING.
18247
182482008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
18249
18250 * Makefile.in (${lispsource}international/charprop.el):
18251 Delete this target.
18252
18253 * search.c (boyer_moore): Fix incorrect synching of the trunk and
18254 emacs-unicode-2.
18255
182562008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
18257
18258 * terminal.c (Fdelete_terminal): Clean up the `force' path.
18259
182602008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18261
18262 * frame.c (Qnoelisp): New symbol.
18263 (syms_of_frame): Initialize it.
18264 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
18265 harmless Elisp code, from a strong `force' from x_connection_closed.
18266 * frame.h (Qnoelisp): Declare.
18267 * xterm.c (x_connection_closed): Pass `noelisp'.
18268
18269 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
18270 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
18271 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
18272 rather than `int' for the type of `type'.
18273
182742008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
18275
18276 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
18277
18278 * Makefile.in (GNUC): Remove support for gcc-1.x.
18279
182802008-02-10 Richard Stallman <rms@gnu.org>
18281
18282 * lisp.h (ASET): Use AREF, not ASLOT.
18283
182842008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
18285
18286 * lisp.h (ASET): Check bounds.
18287
182882008-02-10 Glenn Morris <rgm@gnu.org>
18289
18290 * buffer.c (mode-name): Doc fix.
18291
182922008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18293
18294 * Makefile.in:
18295 * emacs.c:
18296 * gmalloc.c:
18297 * keyboard.c:
18298 * lisp.h:
18299 * m/ibm370aix.h:
18300 * process.c:
18301 * regex.c:
18302 * s/hpux.h:
18303 * sysdep.c:
18304 * sysselect.h:
18305 * systty.h:
18306 * unexec.c:
18307 * w32term.c:
18308 * xsmfns.c:
18309 * xterm.c: Remove code that deals with obsolete variables.
18310
18311 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
18312
18313 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
18314 nothing else needs it anymore.
18315
183162008-02-09 Eli Zaretskii <eliz@gnu.org>
18317
18318 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
18319 instead of unibyte_char_to_multibyte.
18320
183212008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
18322
18323 * s/gnu-linux.h: Remove commented out code.
18324
18325 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
18326
18327 * Makefile.in: Update what RMS says about using autoconf.
18328 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
18329 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
18330 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
18331 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
18332
183332008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
18334
18335 * keymap.c (Fkey_description): Move side effect outside of macro call.
18336
18337 * xfaces.c (Finternal_make_lisp_face):
18338 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
18339
18340 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
18341 (syms_of_fontset): Use ASET.
18342
18343 * fns.c (concat): Move side effect outside of macro call.
18344 (hash_clear): Use ASET.
18345
183462008-02-08 Richard Stallman <rms@gnu.org>
18347
18348 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
18349 If FORCE, and frame has a surrogate minibuffer for another frame,
18350 delete the other frame first.
18351
183522008-02-07 Timo Savola <timo.savola@iki.fi>
18353
18354 * xterm.c (x_detect_focus_change): Handle embed client message.
18355 (handle_one_xevent): Ditto.
18356 (handle_one_xevent): If embedded and we get a button press/release,
18357 request focus.
18358 (xembed_set_info, xembed_send_message): New functions.
18359 (x_make_frame_visible): Call xembed_set_info if embedded.
18360 (x_make_frame_invisible): Call xembed_set_info if embedded.
18361 (x_term_init): Initialize Xatom_XEMBED.
18362 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
18363 (x_iconify_frame): Ditto.
18364
18365 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
18366 (enum xembed_info, enum xembed_message, enum xembed_focus)
18367 (enum xembed_modifier, enum xembed_accelerator): New.
18368 (xembed_set_info, xembed_send_message): Declare.
18369 (FRAME_X_EMBEDDED_P): New.
18370
18371 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
18372 gtk_plug_new.
18373
18374 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
18375 window ID of a frame.
18376 (x_window): Reparent frame if embedded.
18377 (Fx_create_frame): Don't set border width if embedded.
18378
18379 * emacs.c (USAGE3): Add --parent-id.
18380 (standard_args): Ditto.
18381
183822008-02-07 Jan Djärv <jan.h.d@swipnet.se>
18383
18384 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
18385
183862008-02-07 Jim Meyering <meyering@redhat.com>
18387
18388 Use "do...while (0)", not "if (1)...else" in macro definitions.
18389 The latter provokes a warning from gcc about the empty else, when
18390 followed by ";". Also, without that trailing semicolon, it would
18391 silently swallow up any following statement.
18392 * syntax.h (SETUP_SYNTAX_TABLE)
18393 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
18394 * buffer.h (DECODE_POSITION): Likewise.
18395 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
18396 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
18397 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
18398 (FETCH_CHAR_ADVANCE): Likewise.
18399 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
18400
184012008-02-07 Jim Meyering <meyering@redhat.com>
18402
18403 * lread.c [lint]: Don't include <sys/inode.h>.
18404
184052008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
18406
18407 * xselect.c (x_handle_dnd_message):
18408 * xmenu.c (digest_single_submenu, xmenu_show):
18409 * xdisp.c (with_echo_area_buffer_unwind_data)
18410 (format_mode_line_unwind_data, unwind_format_mode_line)
18411 (display_menu_bar):
18412 * eval.c (Ffetch_bytecode):
18413 * doc.c (store_function_docstring):
18414 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
18415 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
18416 * buffer.c (add_overlay_mod_hooklist): Use ASET.
18417
184182008-02-07 Kenichi Handa <handa@m17n.org>
18419
18420 * ftxfont.c (ftxfont_open): Don't set
18421 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
18422
18423 * ftfont.c (ftfont_open): Fix previous change.
18424
184252008-02-06 Jason Rumney <jasonr@gnu.org>
18426
18427 * w32font.c (w32font_text_extents): Fill in lbearing metric.
18428 Use cached metrics for ASCII characters.
18429 (w32font_open_internal): Don't set font's owning_frame.
18430 Cache metrics for ASCII characters.
18431
18432 * w32font.h (struct w32font_info): Add ascii_metrics.
18433 Remove owning_frame.
18434
184352008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
18436
18437 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
18438 to negative value.
18439
18440 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
18441
18442 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
18443
18444 * charset.c (syms_of_charset): Set QCtest and Qeq.
18445
184462008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
18447
18448 * process.c (Fstart_process):
18449 * callproc.c (Fcall_process): Handle the case where
18450 Funhandled_file_name_directory returns nil.
18451
18452 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
18453 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
18454 * font.c (check_gstring): Use them and AREF to access the vector before
18455 we know it's really a gstring.
18456 (Ffont_shape_text): Fix typo.
46e722a9 18457 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
18458
18459 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
18460 Declare.
18461
18462 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
18463
184642008-02-05 Jason Rumney <jasonr@gnu.org>
18465
18466 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
18467 Set smallest_font_height and smallest_char_width in display info.
18468
184692008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
18470
18471 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
18472
184732008-02-05 Miles Bader <miles@gnu.org>
18474
18475 * xfaces.c (get_lface_attributes, merge_named_face)
18476 (lookup_named_face, lookup_derived_face, realize_named_face):
18477 Revert 2008-02-01 change by cyd@stupidchicken.com.
18478
184792008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
18480
18481 * fontset.c (Ffontset_info): Handle the case of inhibitting the
18482 fallback fonts.
18483 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
18484
184852008-02-04 Jason Rumney <jasonr@gnu.org>
18486
18487 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
18488 set full_name.
18489 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
18490
184912008-02-03 Jason Rumney <jasonr@gnu.org>
18492
18493 * makefile.w32-in (OBJ1): Include font.o here.
18494 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
18495
184962008-02-02 Jason Rumney <jasonr@gnu.org>
18497
18498 * makefile.w32-in (temacs): Bump EMHEAP to 21.
18499
185002008-02-01 Jason Rumney <jasonr@gnu.org>
18501
18502 * s/cygwin.h: Define VIRT_ADDR_VARIES.
18503
18504 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
18505
185062008-02-01 Andreas Schwab <schwab@suse.de>
18507
18508 * Makefile.in (shortlisp, lisp): Update for rename of
18509 ../lisp/language/myanmar.el.
18510
185112008-02-01 Chong Yidong <cyd@stupidchicken.com>
18512
18513 * xfaces.c (get_lface_attributes): Delete function.
18514 (merge_named_face, lookup_named_face, lookup_derived_face)
18515 (realize_named_face): Call lface_from_face_name directly, and use
18516 the fact that merge_face_vectors does not alter its FROM argument.
18517
185182008-02-01 Jason Rumney <jasonr@gnu.org>
18519
18520 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
18521 input in the default locale. Handle non-Unicode multibyte input.
18522
185232008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18524
18525 * fontset.c (reorder_font_vector): Exclude nil elements from the
18526 font group. Don't try multiple fonts.
18527 (fontset_font): Adjust for the above change.
18528 (Finternal_char_font): Return nil if the found font doesn't
18529 contain the character ch.
18530
18531 * Makefile.in (lisp, shortlisp): Add cham.el.
18532
185332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18534
18535 * font.h (FONTP): Make it return 1 also for a font-object.
18536
18537 * .gdbinit (xfontset): New function.
18538
18539 * font.c (font_find_for_lface): Check if the character C is
18540 supported or not only for the first font.
18541
18542 * fontset.c (reorder_font_vector): Fix typo.
18543 (fontset_find_font): Don't add a font-spec specifying a script.
18544 Use 0 (not Qt) for the indication of empty font-group. Change the
18545 format of RFONT-DEF. Return Qt if no font in the font-group
18546 support the character.
18547 (fontset_font): Adjust for the above change. If no font was
18548 found the character, remember that.
18549 (face_for_char): Adjust for the change of RFONT-DEF.
18550 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
18551 no font for the target.
18552 (Finternal_char_font): Adjust for the change of RFONT-DEF.
18553
185542008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18555
18556 * font.c (font_load_for_face): Handle the case that the font in
18557 face->lface is a string.
18558
185592008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18560
18561 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
18562
185632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18564
18565 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
18566 Fix previous change. If the frame is not on a window system,
18567 signal an error.
18568
185692008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18570
18571 * coding.c (decode_coding_object, encode_coding_object): Adjust
18572 marker positions after conversion.
18573
18574 * lisp.h (struct Lisp_Marker): New member need_adjustment.
18575
185762008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18577
18578 * font.c (font_find_for_lface): Fix the handling of the return
18579 value of font_has_char.
18580 (Ffont_shape_text): Fix previous change.
18581
18582 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
18583 (fontset_ref_and_range): Delete it.
18584 (fontset_find_font): Call char_table_ref_and_range instead of
18585 FONTSET_REF_AND_RANGE.
18586 (make_fontset): Don't setup font groups of Latin here.
18587 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
18588 (new_fontset_from_font): Make the specified font the default for
18589 all Latin characters.
18590
185912008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18592
18593 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
18594 is on a window system before accessing the fontset of the frame.
18595
185962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18597
18598 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
18599
18600 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
18601 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
18602
18603 * font.c (Ffont_shape_text): If the font driver doesn't have a
18604 shaper function, make zero-width glyphs to have at least one-pixel
18605 width. Fix setting of `to' field of glyphs.
18606
186072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18608
18609 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
18610 glyphs.
18611
18612 * font.h (struct font_driver): Improve docstring of member `shape'.
18613
186142008-02-01 Kenichi Handa <handa@m17n.org>
18615
18616 * composite.c (syms_of_composite): Fix docstring of
18617 auto-composition-function.
18618
18619 * font.h (LGLYPH_SIZE): New macro.
18620
18621 * font.c (Ffont_fill_gstring): Stop filling when a character not
18622 supported by the font is found.
18623 (Ffont_shape_text): When a shape callback function returns nil,
18624 try at most two more times with larger gstring.
18625 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
18626
18627 * xdisp.c (handle_auto_composed_prop): Change the argument to
18628 auto-composition-function.
18629
18630 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
18631 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
18632 Lispy glyph and store it in the lgstring.
18633
18634 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
18635
18636 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
18637
186382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18639
18640 * font.c (Ffont_shape_text): Avoid unnecessary composition.
18641
18642 * fontset.c (Vfont_encoding_charset_alist): New variable.
18643 (syms_of_fontset): DEFVAR it.
18644 (reorder_font_vector, fontset_find_font): Optimize for the case of
18645 no need of reordering.
18646 (face_for_char): Map the charset property by
18647 Vfont_encoding_charset_alist.
18648
186492008-02-01 Jason Rumney <jasonr@gnu.org>
18650
18651 * w32font.c (logfonts_match): Don't check adstyle here.
18652 (font_matches_spec): Check here against physical font instead.
18653 (add_font_entity_to_list): Avoid some substitutions.
18654
18655 * font.c (font_parse_fcname): Default weight and slant to normal.
18656 (font_score): Prefer normal fonts if weight or slant unspecified.
18657 (font_score) [WINDOWSNT]: Scale weight difference down to closer
18658 match freetype scores.
18659
186602008-02-01 Jason Rumney <jasonr@gnu.org>
18661
18662 * w32font.c (w32font_text_extents): Don't use the frame stored in the
18663 font, as it may have been deleted.
18664 (w32_enumfont_pattern_entity): Map generic family to adstyle using
18665 most common hyphenless variation.
18666 (logfonts_match): Check generic family.
18667 (font_matches_spec): Don't check generic family here.
18668 (fill_in_logfont): Set generic family based on adstyle.
18669
18670 * w32font.h (w32font_get_cache): Update declaration.
18671
186722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18673
18674 * ftfont.c (ftfont_get_cache): Adjust the argument type.
18675
18676 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
18677 If none of the new drivers are available, call font_update_drivers
18678 with the old drivers.
18679
18680 * w32font.c (w32font_get_cache): Adjust the argument type.
18681
18682 * xfont.c (xfont_get_cache): Adjust the argument type.
18683
18684 * font.h (struct font_driver): Change argument type of get_cache.
18685
18686 * xftfont.c (xftfont_start_for_frame): Delete prototype.
18687
18688 * font.c (Ffont_get): Fix arguments to Fassoc.
18689 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
18690 (font_clear_cache): New function.
18691 (font_list_entities, font_matching_entity): Use font_get_cache.
18692 (font_update_drivers): Call font_clear_cache when finishing a driver.
18693
18694 * fontset.c (fontset_find_font): Fix previous change.
18695
186962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18697
18698 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
18699 dpyinfo->font_table.
18700 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
18701 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
18702
18703 * font.c (font_at): Handle the case that the arg C is negative.
18704 Handle the unibyte case.
18705 (Ffont_at): Call font_at with the arg C -1.
18706
18707 * xdisp.c (handle_auto_composed_prop): Don't get a character at
18708 the position here, and call font_at with the arg C -1.
18709 Don't check the range of the existing composition at the point.
18710
187112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18712
18713 * fontset.c (fontset_add): New args charset_id and family.
18714 Change caller.
18715 (load_font_get_repertory, fontset_find_font): Assume that
18716 font_spec is always a font-spec object.
18717 (Fset_fontset_font): Always store a font-spec object in a fontset.
18718
18719 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
18720 instead of get_property_and_range.
18721
187222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18723
18724 * xftfont.c (struct xftfont_info): Delete the member ft_face.
18725 (xftfont_open): Don't keep locking face.
18726 (xftfont_close): Don't unlock face.
18727 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
18728
18729 * fontset.c (fontset_find_font): Don't prefer a font of
18730 supplementary charset.
18731
187322008-02-01 Kenichi Handa <handa@m17n.org>
18733
18734 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
18735 script, langsys_tag to langsys, new member script.
18736 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 18737 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
18738 listing to the script specified in that property. Fix arg to
18739 OTF_check_features.
18740
187412008-02-01 Jason Rumney <jasonr@gnu.org>
18742
18743 * w32font.h: New file.
18744
18745 * w32font.c: Include it.
18746 (struct w32font_info): Add owning_frame field. Move to w32font.h.
18747 (w32font_open): Set owning_frame.
18748 (w32font_text_extents): Use owning_frame.
18749 (struct font_callback_data): Add opentype_only field.
18750 (add_font_entity_to_list): Use it to filter fonts.
18751 Don't check against full name.
18752 (w32font_list_internal): New function.
18753 (w32font_list): Use it.
18754 (w32font_match_internal): New function.
18755 (w32font_match): Use it.
18756 (w32font_open_internal): New function.
18757 (w32font_open): Use it.
18758 (w32font_get_cache, w32font_close, w32font_has_char)
18759 (w32font_encode_char, w32font_text_extents, w32font_draw):
18760 Make non-static.
18761
18762 * makefile.w32-in (w32font.o): Depend on w32font.h.
18763
187642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18765
18766 * charset.c (Fdefine_charset_internal): Record a supplementary
18767 charset at the tail of Vcharset_order_list.
18768
18769 * font.c (Ffont_shape_text): Fix the return value.
18770
18771 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
18772
18773 * xdisp.c (handle_auto_composed_prop): Fix previous change.
18774
187752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18776
18777 * ftfont.c (struct OpenTypeSpec): New struct.
18778 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
18779 (ftfont_get_open_type_spec): New function.
18780 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
18781
18782 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
18783
187842008-02-01 Jason Rumney <jasonr@gnu.org>
18785
18786 * w32font.c (add_font_entity_to_list): Compare only the beginning
18787 of full name.
18788
187892008-02-01 Kenichi Handa <handa@m17n.org>
18790
18791 * xdisp.c (handle_auto_composed_prop): Simplify the code.
18792 Never return HANDLED_RECOMPUTE_PROPS.
18793
187942008-02-01 Kenichi Handa <handa@m17n.org>
18795
18796 * font.c (font_gstring_produce): Delete it.
18797
18798 * composite.h (COMPOSITION_METHOD):
18799 Handle COMPOSITION_WITH_GLYPH_STRING.
18800
188012008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18802
18803 * xfont.c (Qx): Delete.
18804 (syms_of_xfont): Don't initialize Qx.
18805
18806 * composite.h (enum composition_method):
18807 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
18808
188092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18810
18811 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
18812 (choose_face_font): Accept new form of font-spec.
18813
18814 * frame.h (font_driver_list): Declare it unconditionally.
18815 (struct frame): Define members font_driver_list and font_data_list
18816 unconditionally.
18817
18818 * fontset.c: Include "font.h" unconditionally.
18819 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
18820 (Fset_fontset_font): Accept a font-spec object.
18821
18822 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
18823 PIXEL_SIZE part a wild card.
18824
18825 * dispextern.h (struct glyph_string): Define members clip and
18826 num_clips unconditionally.
18827 (struct face): Define members font_info and extra unconditionally.
18828
18829 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
18830 ftfont_info only when HAVE_LIBOTF is defined.
18831
188322008-02-01 Andreas Schwab <schwab@suse.de>
18833
18834 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
18835 and end.
18836
188372008-02-01 Jason Rumney <jasonr@gnu.org>
18838
18839 * w32font.c (w32font_driver): Add new fields.
18840
188412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18842
18843 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
18844 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
18845 (LIBES): Add @M17N_FLT_CFLAGS@.
18846
18847 * composite.c (compose_text): Don't treat the new style
18848 composition specially.
18849
18850 * emacs.c (main): Call syms_of_font unconditionally.
18851
18852 * font.h (FONT_ENTITY_NOT_LOADABLE)
18853 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
18854 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
18855 (struct font_driver): New member shape.
18856 (font_registry_charsets): Extern it.
18857 (font_find_for_lface, font_prepare_composition): Adjust prototype.
18858 (font_otf_capability, font_drive_otf): Delete their externs.
18859
18860 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
18861 (font_charset_alist, font_registry_charsets): Move from xfont.c
18862 and rename.
18863 (font_prop_validate_otf): New function.
18864 (font_property_table): Register it for QCotf.
18865 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
18866 (font_drive_otf): Delete.
18867 (font_prepare_composition): New arg F. Adjust for the change of
18868 lispy gstring.
18869 (font_find_for_lface): New arg C.
18870 (font_load_for_face): Adjust for the change of font_find_for_lface.
18871 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
18872 lispy gstring.
18873 (Ffont_shape_text): New function.
18874 (Fopen_font): If the font size is not given, use 12-pixel.
18875 (Ffont_at): New arg STRING.
18876 (syms_of_font): Initalize font_charset_alist.
18877 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
18878 conditionally.
18879
18880 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
18881 fonts of the same font-spec. Change the format of RFONT-DEF.
18882 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
18883 Adjust for the change of RFONT-DEF.
18884 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
18885
18886 * ftfont.h: New file.
18887
18888 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
18889 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18890 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18891 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
18892 font_otf_capability and font_drive_otf, set ftfont_shape.
18893 (ftfont_list): Adjust for the change of :otf property value.
18894 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
18895 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
18896 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
18897 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18898 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
18899 (otf_gstring, gstring, m17n_flt_initialized): New variables.
18900
18901 * w32term.c (x_draw_composite_glyph_string_foreground):
18902 Adjust for the change of lispy gstring.
18903
18904 * xdisp.c (handle_composition_prop): Adjust for the change of
18905 lispy gstring. Call a function for auto-composition with the
18906 third arg it->window.
18907 (fill_composite_glyph_string): Adjust for the change of lispy string.
18908 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
18909
18910 * xfaces.c (set_font_frame_param): Adjust for the change of
18911 font_find_for_lface.
18912
18913 * xfont.c (x_font_charset_alist): Move to font.c and rename.
18914 (xfont_registry_charsets): Likewise. Change caller.
18915 (syms_of_xfont): Don't handle x_font_charset_alist.
18916
18917 * xftfont.c: Include "ftfont.h".
18918 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
18919 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
18920 (xftfont_close) [HAVE_LIBOTF]: Close otf.
18921 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
18922 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
18923 Set xftfont_driver.shape to xftfont_shape.
18924
18925 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
18926 the change of lispy gstring.
18927
189282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18929
18930 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
18931
189322008-02-01 Jason Rumney <jasonr@gnu.org>
18933
18934 * w32font.c (w32font_draw): Fill background manually.
18935
189362008-02-01 Jason Rumney <jasonr@gnu.org>
18937
18938 * font.c (Qfontp): Remove unused symbol.
18939 (QCantialias): New symbol.
18940 (syms_of_font): Define it.
18941 (font_property_table): Set a validator for QCantialias.
18942
18943 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
18944 Define if not already.
18945 (QCfamily): Share with xfaces.c.
18946 (Qstandard, Qsubpixel, Qnatural): New symbols.
18947 (syms_of_w32font): Define them. Don't define QCfamily here.
18948 (w32_antialias_type, lispy_antialias_type): New functions.
18949 (w32_enumfont_pattern_entity): New arg requested_font.
18950 Set antialias parameter if non-default was requested.
18951 (fill_in_logfont): Fill in lfQuality if :antialias specified.
18952
189532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18954
18955 * lread.c (read1): Undo the previous change.
18956
189572008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
18958
18959 * frame.c (Fdelete_frame): Call font_update_drivers only when
18960 USE_FONT_BACKEND is defined.
18961
189622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18963
18964 * font.h (struct font_bitmap): New member bits_per_pixel.
18965 (struct font_driver): New members start_for_frame and end_for_frame.
18966 (struct font_data_list): New struct.
18967 (font_put_frame_data, font_get_frame_data): Extern them.
18968
18969 * frame.h (struct frame): New member font_data_list.
18970
18971 * font.c (font_update_drivers): Call driver->start_for_frame and
18972 driver->end_for_frame at proper timings.
18973 (font_put_frame_data, font_get_frame_data): New functions.
18974 (Ffont_spec): Add usage in the docstring.
18975
18976 * frame.c (make_frame): Initialize f->font_data_list to NULL.
18977 (Fdelete_frame): Call font_update_drivers.
18978
18979 * xftfont.c (struct xftface_info): Delete the member xft_draw.
18980 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
18981 (xftfont_get_xft_draw): New function.
18982 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
18983 (xftfont_end_for_frame): New function.
18984 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
18985
18986 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
18987 Change argument. Cache GCs in the per-frame data.
18988 (struct ftxfont_frame_data): New struct.
18989 (ftxfont_draw_bitmap): New arg gc_fore and flush.
18990 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
18991 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
18992 (ftxfont_end_for_frame): New function.
18993 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
18994
18995 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
18996
189972008-02-01 Kenichi Handa <handa@m17n.org>
18998
18999 * xselect.c (Vselection_coding_system)
19000 (Vnext_selection_coding_system): Delete them.
19001 (syms_of_xselect): Don't declare selection-coding-system and
19002 next-selection-coding-system. They are declared in select.el.
19003
190042008-02-01 Jason Rumney <jasonr@gnu.org>
19005
19006 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
19007
19008 * w32fns.c: Include imm.h.
19009 (get_composition_string_fn, get_ime_context_fn): New optional
19010 system functions.
19011 (globals_of_w32fns): Load them from imm32.dll.
19012 (ignore_ime_char): New flag.
19013 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
19014 WM_IME_ENDCOMPOSITION messages.
19015
19016 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
19017 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
19018
190192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19020
19021 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
19022 (READCHAR_REPORT_MULTIBYTE): New macro.
19023 (readchar): New 2nd arg MULTIBYTE.
19024 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
19025 Make symbol's name multibyte according to the multibyteness of the
19026 source.
19027
190282008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19029
19030 * xfaces.c (face_for_overlay_string): Call lookup_face with
19031 correct arguments (fix of synching with the trunk).
19032
190332008-02-01 Kenichi Handa <handa@m17n.org>
19034
19035 * font.c (font_prop_validate_symbol, font_prop_validate_style)
19036 (font_prop_validate_non_neg, font_prop_validate_spacing):
19037 Delete argument prop_index.
19038 (font_property_table): Change arguments to validater. Change Callers.
19039 (font_lispy_object): Delete.
19040 (font_at): Use font_find_object instead fo font_lispy_object.
19041
190422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
19043
19044 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
19045 and file names.
19046
190472008-02-01 Jason Rumney <jasonr@gnu.org>
19048
19049 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
19050 (font_matches_spec): Remove debug output.
19051 (add_font_entity_to_list): Avoid using substituted fonts.
19052
190532008-02-01 Jason Rumney <jasonr@gnu.org>
19054
19055 * doc.c (Fsnarf_documentation):
19056 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
19057
190582008-02-01 Miles Bader <miles@gnu.org>
19059
19060 * dispextern.h (struct glyph_row): Only define "clip" field if
19061 HAVE_WINDOW_SYSTEM is defined.
19062
190632008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19064
19065 Fix up multi-tty merge.
19066
19067 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
19068 and indentation.
19069
19070 * xfaces.c (free_realized_face, clear_face_gcs):
19071 Include font_done_for_face in the input_blocked section, just in case.
19072
19073 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
19074 (get_char_face_and_encoding): Undo last change and remove the *other*
19075 duplicate definition (i.e. keep the one that's better scoped and that
19076 includes code for the font-backend).
19077
19078 * terminal.c (create_terminal): Default keyboard_coding to
19079 `no-conversion' and terminal_coding to `undecided'.
19080
19081 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
19082
19083 * fontset.c (free_realized_fontsets): Check that the table entry does
19084 contain a fontset before trying to compare it to `base'.
19085
19086 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
19087 syms_of_charset, and syms_of_coding earlier because init_window_once
19088 now needs Vcoding_system_hash_table to be setup.
19089
19090 * coding.h (default_buffer_file_coding): Remove.
19091
19092 * coding.c (default_buffer_file_coding): Remove.
19093 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
19094 than ->symbol, and use the terminal-local coding system.
19095 (syms_of_coding): Don't setup the coding-systems that are not
19096 terminal-local.
19097 (Fdefine_coding_system_internal): Use XCAR/XCDR.
19098
19099 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
19100 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
19101
19102 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
19103 in chartab.c and were re-added here by mistake.
19104 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
19105
19106 * doc.c (Fsnarf_documentation):
19107 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
19108 src to etc.
19109
19110 * ChangeLog.10: Add mistakenly removed entry.
19111
191122008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
19113
19114 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
19115
191162008-02-01 Miles Bader <miles@gnu.org>
19117
19118 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
19119 Add extra args to FACE_FOR_CHAR.
19120
191212008-02-01 Kenichi Handa <handa@m17n.org>
19122
19123 * keymap.c (where_is_internal_1): If key is a cons, store the copy
19124 in sequence.
19125
19126 * chartab.c (map_sub_char_table, map_char_table): If the range
19127 contains just one character, call the function with that character
19128 even if the depth is not 3.
19129
191302008-02-01 Jason Rumney <jasonr@gnu.org>
19131
19132 * w32font.c (w32font_text_extents): Calculate metrics for the
19133 whole string.
19134
191352008-02-01 Jason Rumney <jasonr@gnu.org>
19136
19137 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
19138
191392008-02-01 Jason Rumney <jasonr@gnu.org>
19140
19141 * w32term.c (x_set_glyph_string_clipping): Use
19142 get_glyph_string_clip_rects.
19143 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19144 Adjust for the change of struct glyph_string.
19145
19146 * w32font.c (w32font_draw): Do clipping here.
19147
191482008-02-01 Kenichi Handa <handa@m17n.org>
19149
19150 * xftfont.c (xftfont_draw): Adjust for the change of struct
19151 glyph_string.
19152
19153 * xterm.c (x_set_glyph_string_clipping): Use
19154 get_glyph_string_clip_rects.
19155 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
19156 Adjust for the change of struct glyph_string.
19157
19158 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
19159 the resulting clip(s}.
19160 (expose_overlaps): Add arg r. Change callers. Set it to
19161 row->clip temporarily.
19162 (expose_window): Redraw rows overlapping the exposed area.
19163
19164 * dispextern.h (struct glyph_row): New member clip.
19165 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
19166 clip_height, new member clip, and num_clips.
19167
191682008-02-01 Kenichi Handa <handa@m17n.org>
19169
19170 * data.c (Fchar_or_string_p): Fix docstring.
19171
191722008-02-01 Kenichi Handa <handa@m17n.org>
19173
19174 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
19175 create a temporary XftDraw object.
19176
191772008-02-01 Kenichi Handa <handa@m17n.org>
19178
19179 * font.c (Ffontp): Fix docstring.
19180
19181 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
19182 strong evidence of ISO-2022.
19183
191842008-02-01 Kenichi Handa <handa@m17n.org>
19185
19186 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
19187 SYNTAX_ENTRY_FOLLOW_PARENT.
19188
191892008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
19190
19191 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
19192 its type.
19193 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
19194 Update to the new type of weak_hash_tables and next_weak.
19195
19196 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
19197 a plain C pointer to Lisp_Hash_Table.
19198
19199 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
19200 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
19201 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
19202 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
19203 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
19204 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
19205 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
19206 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
19207 (GC_EQ): Remove since they've been identical to their non-GC_
19208 alter-egos ever since the markbit was eradicated.
19209
19210 * alloc.c:
19211 * buffer.c:
19212 * buffer.h:
19213 * data.c:
19214 * fileio.c:
19215 * filelock.c:
19216 * fns.c:
19217 * frame.h:
19218 * lisp.h:
19219 * macterm.c:
19220 * print.c:
19221 * process.c:
19222 * w32fns.c:
19223 * w32menu.c:
19224 * w32term.c:
19225 * xfns.c:
19226 * xmenu.c:
19227 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
19228
192292008-02-01 Kenichi Handa <handa@m17n.org>
19230
19231 * chartab.c (map_sub_char_table): Make it work for the top-level
19232 char-table. Fix handling of parent char-table.
19233 (map_char_table): Adjust for the above change.
19234
192352008-02-01 Jason Rumney <jasonr@gnu.org>
19236
19237 * w32font.c (Qgdi): Rename from Qw32.
19238
192392008-02-01 Jason Rumney <jasonr@gnu.org>
19240
19241 * w32bdf.c (get_quoted_string): Make function static.
19242
192432008-02-01 Kenichi Handa <handa@m17n.org>
19244
19245 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
19246 bigger ascent and descent than those of the font, use them as
19247 font's ascent and descent.
19248
192492008-02-01 Kenichi Handa <handa@m17n.org>
19250
19251 * Makefile.in (${lispsource}international/charprop.el): Move this
19252 target within "#ifdef HAVE_UNIDATA" and "#endif".
19253
192542008-02-01 Kenichi Handa <handa@m17n.org>
19255
19256 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
19257 (shortlisp): Add ../lisp/language/tai-viet.el.
19258
192592008-02-01 Ulrich Mueller <ulm@gentoo.org>
19260
19261 * Makefile.in (${lispsource}international/charprop.el): Depend on
19262 temacs${EXEEXT}.
19263
192642008-02-01 Jason Rumney <jasonr@gnu.org>
19265
19266 * w32font.c (w32font_close): Delete the GDI font object.
19267
19268 * w32menu.c: Include character.h.
19269
19270 * w32proc.c: Likewise.
19271
19272 * w32select.c: Likewise.
19273
19274 * makefile.w32-in (w32proc.o): Depend on character.h.
19275
192762008-02-01 Jason Rumney <jasonr@gnu.org>
19277
19278 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
19279
19280 * w32menu.c (syms_of_w32menu): Likewise.
19281
19282 * w32proc.c (syms_of_ntproc): Likewise.
19283
19284 * w32select.c (syms_of_w32select): Likewise.
19285
19286 * w32term.c (syms_of_w32term): Likewise.
19287
192882008-02-01 Jason Rumney <jasonr@gnu.org>
19289
19290 * w32font.c (w32font_draw): Delete brush after using it.
19291
192922008-02-01 Jason Rumney <jasonr@gnu.org>
19293
19294 * w32font.c (w32font_open): Don't set font_idx.
19295 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
19296 to font settings.
19297 (w32font_draw): Fill background explicitly.
19298
192992008-02-01 Jason Rumney <jasonr@gnu.org>
19300
19301 * w32term.c (w32_initialize): Don't call w32font_initialize.
19302
19303 * w32font.c (w32font_info): Remove subranges.
19304 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
19305 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
19306 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
19307 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
19308 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
19309 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
19310 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
19311 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
19312 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
19313 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
19314 New symbols.
19315 (font_callback_data): New struct.
19316 (w32font_list, w32font_match): Use it.
19317 (w32font_open): Don't populate subranges.
19318 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
19319 (w32font_encode_char): Always return unicode code-point as-is.
19320 (w32font_text_extents): Supply a transformation matrix to
19321 GetGlyphOutline. Never look up by glyph index. Avoid looping
19322 twice. Use unicode version of GetTexExtentPoint32 instead of
19323 glyph index version.
19324 (set_fonts_frame): Remove.
19325 (w32_enumfont_pattern_entity): Add frame parameter, use it to
19326 set frame parameter. Use backward compatible fake foundries.
19327 Save generic family in extra slot under QCfamily. Make width slot
19328 constant. Save QCspacing value. Save list of scripts instead of
19329 binary subranges.
19330 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
19331 (add_font_entity_to_list): Use font_callback_data struct. Filter
19332 unwanted fonts.
19333 (add_one_font_entity_to_list): Use font_callback_data struct.
19334 (w32_registry): Default to iso10646_1.
19335 (fill_in_logfont): Use dpi from extra slot. Don't bother with
19336 string font registries. Don't fill in font name if it is a generic
19337 family name, fill family instead. Use spacing, family and script
19338 extra info to fill pitch, family and charset fields.
19339 (list_all_matching_fonts): Use font_callback_data struct.
19340 (unicode_range_for_char): Remove.
19341 (font_supported_scripts): New function.
19342 (w32font_initialize): Remove.
19343 (syms_of_w32font): Update which symbols are defined.
19344
193452008-02-01 Jason Rumney <jasonr@gnu.org>
19346
19347 * font.c (font_pixel_size): Reverse assq_no_quit args.
19348
19349 * w32term.h (FONT_WIDTH): Report max width, not average.
19350 (FONT_MAX_WIDTH): Remove.
19351 (FONT_AVG_WIDTH): New macro.
19352
19353 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
19354 redefinition of FONT_WIDTH.
19355
19356 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
19357 (w32_cache_char_metrics): Use FONT_WIDTH.
19358
19359 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
19360
193612008-02-01 Jason Rumney <jasonr@gnu.org>
19362
19363 * w32font.c (w32font_open): Make lfHeight negative.
19364
19365 * w32fns.c (x_default_font_parameter): Use new style font name.
19366 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
19367
193682008-02-01 Jason Rumney <jasonr@gnu.org>
19369
19370 * w32font.c (QCsubranges): New symbol.
19371 (w32font_open, w32font_has_char): Get subranges from subproperty
19372 of extra.
19373 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
19374 (syms_of_w32font): Define :subranges symbol.
19375
19376 * font.c (font_put_extra): Expose externally.
19377
19378 * font.h (font_put_extra): Move declaration from font.c.
19379
19380 * font.c (Ffont_get): Use font driver to determine otf capability.
19381 (adjust_anchor): Check if driver defines anchor_point before using.
19382
19383 * w32font.c (w32font_open): Handle size, height and pixel_size better.
19384 (w32font_draw): Use options.
19385 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
19386 Fix detection of truetype fonts.
19387 (registry_to_w32_charset): Handle charsets other than iso8859-1
19388 expressed as lisp symbols.
19389 (w32_registry): Express charset as lisp symbol.
19390 (fill_in_logfont): Reverse pixel and point height logic.
19391 Don't set width here. Set quality to default.
19392
19393 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
19394 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
19395
19396 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19397 Remove redundant loop and allocation.
19398
19399 * makefile.w32-in (font.o, w32font.o): New objects.
19400 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
19401 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
19402
19403 * xdisp.c (fill_composite_glyph_string): Make the first arg to
19404 STORE_XCHARB a valid l-value.
19405
19406 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
19407 calculations for non-Truetype fonts.
19408 (x_draw_glyph_string): Sync with xterm.c.
19409 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
19410 Remove redundant code.
19411 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
19412
19413 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
19414 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
19415
19416 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
19417 (x_to_w32_charset, w32_to_x_charset): Expose externally.
19418
19419 * w32font.c: New file for w32 font backend.
19420
194212008-02-01 Kenichi Handa <handa@m17n.org>
19422
19423 * term.c: Don't include "buffer.h" twice.
19424
194252008-02-01 Kenichi Handa <handa@m17n.org>
19426
19427 * character.c (Funibyte_string): New function.
19428 (syms_of_character): Defsubr it.
19429
194302008-02-01 Jason Rumney <jasonr@gnu.org>
19431
19432 * w32term.c [USE_FONT_BACKEND]:
19433 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
19434 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
19435 (x_draw_glyph_string, x_draw_glyph_string_foreground)
19436 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
19437 (x_free_frame_resources): Sync with xterm.c.
19438
194392008-02-01 Andreas Schwab <schwab@suse.de>
19440
19441 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
19442 char-table size.
19443
194442008-02-01 Kenichi Handa <handa@m17n.org>
19445
19446 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
19447
194482008-02-01 Kenichi Handa <handa@m17n.org>
19449
19450 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
19451 font_otf_gpos, add font_drive_otf.
19452
19453 * fontset.c (fontset_find_font): Pay attention to font size
19454 specified for a font.
19455 (reorder_font_vector): Check contents of font_def.
19456
19457 * font.c (struct otf_list): Delete it.
19458 (otf_list): Make it a lisp variable.
19459 (otf_open): Use lispy otf_list.
19460 (generate_otf_features): Rename from parse_gsub_gpos_spec.
19461 (check_otf_features): New function.
19462 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
19463 New functions.
19464 (font_drive_otf): New function merging font_otf_gsub and
19465 font_otf_gpos.
19466 (font_open_for_lface): New arg spec. Change argument order.
19467 (font_load_for_face): Adjust for the change of font_open_for_lface.
19468 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
19469 Ffont_otf_gpos.
19470 (syms_of_font): Staticpro otf_list. Delete defsubr of
19471 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
19472
19473 * xfaces.c (set_font_frame_param): Adjust for the change of
19474 font_open_for_lface.
19475
19476 * font.h (font_open_for_lface): Adjust prototype.
19477 (struct font_driver): Delete members otf_gsub and otf_gpos, add
19478 member otf_drive.
19479 (font_otf_gsub, font_otf_gpos): Delete externs.
19480 (font_drive_otf): Extern it.
19481
194822008-02-01 Kenichi Handa <handa@m17n.org>
19483
19484 * font.c (font_at): If the window W is not on a window system,
19485 return Qnil.
19486
19487 * coding.c (produce_chars, encode_coding): Don't call
19488 insert_from_gap if no characters to produce.
19489
194902008-02-01 Kenichi Handa <handa@m17n.org>
19491
19492 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
19493 Fclear_face_cache.
19494
19495 * xfaces.c (face_for_font): Check also face->font==font->font.font.
19496
194972008-02-01 Miles Bader <miles@gnu.org>
19498
19499 * emacs.c (main): Change default value of `enable_font_backend' to 1.
19500 Parse "--disable-font-backend" option.
19501 (standard_args): Add "--disable-font-backend" option.
19502
195032008-02-01 Kenichi Handa <handa@m17n.org>
19504
19505 * fontset.c (fontset_find_font): New function.
19506 (fontset_font): Use fontset_find_font.
19507 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
19508 Register the specified font for all Latin characters.
19509 (new_fontset_from_font): Register the specified font for all Latin
19510 characters.
19511 (dump_fontset): For a realized fontset, include the base fontset
19512 name in the returned vector.
19513
195142008-02-01 Kenichi Handa <handa@m17n.org>
19515
19516 * character.h (CHAR_STRING): Cast C to unsigned on calling
19517 char_string.
19518
19519 * character.c (char_string): Type of arg C changed to unsigned.
19520 Signal an error if C is an invalid character code.
19521
19522 * editfns.c (general_insert_function, Fchar_to_string):
19523 Use CHARACTERP, not INTEGERP.
19524
195252008-02-01 Kenichi Handa <handa@m17n.org>
19526
19527 * character.h (MIN_MULTIBYTE_LEADING_CODE)
19528 (MAX_MULTIBYTE_LEADING_CODE): New macros.
19529
19530 * regex.c (analyse_first): Fix for multibyte characters in "case
19531 charset:" and "case categoryspec:".
19532
195332008-02-01 Andreas Schwab <schwab@suse.de>
19534
19535 * Makefile.in (LIBES): Move standard libraries to the end.
19536
195372008-02-01 Kenichi Handa <handa@m17n.org>
19538
19539 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
19540 nonzero, don't shrink the buffer nextb.
19541
19542 * buffer.h (struct buffer_text): New member inhibit_shrinking.
19543
19544 * coding.c (coding_alloc_by_making_gap): New arg offset.
19545 (alloc_destination): Call coding_alloc_by_making_gap with the arg
19546 offset.
19547 (decode_coding_iso_2022): Update coding->safe_charsets.
19548 (decode_coding_gap): Temporarily set
19549 current_buffer->text->inhibit_shrinking to 1.
19550
195512008-02-01 Kenichi Handa <handa@m17n.org>
19552
19553 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
19554 indexing into elements of s->cmp and s->char2b.
19555
195562008-02-01 Juanma Barranquero <lekktu@gmail.com>
19557
19558 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
19559
195602008-02-01 Kenichi Handa <handa@m17n.org>
19561
19562 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
19563 target_multibyte instead of multibyte.
19564 (re_match_2_internal): Call bcmp_translate with target_multibyte.
19565 (bcmp_translate): Change the argument name from multibyte to
19566 target_multibyte.
19567
195682008-02-01 Kenichi Handa <handa@m17n.org>
19569
19570 These changes are to compile a regexp into a pattern that can be
19571 used both for multibyte and unibyte targets.
19572
19573 * Makefile.in (search.o): Depend on charset.h.
19574
19575 * character.c (multibyte_char_to_unibyte_safe): New function.
19576
19577 * search.c: Include "charset.h".
19578 (compile_pattern_1): Delete argument multibyte. Don't set
19579 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
19580 (compile_pattern): Don't compare cp->buf.target_multibyte.
19581 Compare cp->buf.charset_unibyte.
19582 (compile_pattern): Set cp->buf.target_multibyte.
19583
19584 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
19585
19586 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
19587
19588 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
19589 multibyte. Change callers.
19590 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
19591 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
19592 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
19593 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
19594 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
19595 (regex_compile): Make the compiled pattern usable both for
19596 multibyte and unibyte targets.
19597 (analyse_first): Make the fastmap usable both for multibyte and
19598 unibyte targets.
19599 (TRANSLATE_VIA_MULTIBYTE): Delete.
19600 (re_match_2_internal): Pay attention to the case that the
19601 multibyteness of bufp and target may be different.
19602
196032008-02-01 Kenichi Handa <handa@m17n.org>
19604
19605 * xdisp.c (x_produce_glyphs): When a font is not found, make the
19606 empty box occupy at least one column width.
19607
196082008-02-01 Miles Bader <miles@gnu.org>
19609
19610 * Makefile.in: Remove redundant HAVE_XFT clause.
19611
196122008-02-01 Kenichi Handa <handa@m17n.org>
19613
19614 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
19615
196162008-02-01 Kenichi Handa <handa@m17n.org>
19617
19618 * fontset.c (Finternal_char_font): Fix for the case of POSITION
19619 being nil.
19620
196212008-02-01 Kenichi Handa <handa@m17n.org>
19622
19623 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
19624
196252008-02-01 Kenichi Handa <handa@m17n.org>
19626
19627 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
19628
196292008-02-01 Kenichi Handa <handa@m17n.org>
19630
19631 * search.c (simple_search): Fix previous change.
19632
196332008-02-01 Kenichi Handa <handa@m17n.org>
19634
19635 * xftfont.c (ftfont_font_format): Extern declaration.
19636
19637 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
19638
19639 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
19640 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
19641
19642 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
19643 (ftfont_font_format): Fix previous change.
19644
19645 * font.h (Ffont_xlfd_name): EXFUN it.
19646
19647 * font.c (font_parse_xlfd): Fix the array size of `f'.
19648 (register_font_driver): Use EQ to compare driver->type.
19649
19650 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
19651 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
19652 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
19653
196542008-02-01 Kenichi Handa <handa@m17n.org>
19655
19656 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
19657 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
19658
196592008-02-01 Kenichi Handa <handa@m17n.org>
19660
19661 * xfont.c (xfont_open): Set font->format.
19662
19663 * xftfont.c (xftfont_open): Set font->format.
19664
19665 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
19666 (ftfont_list): Include FC_FONTFORMAT in FcObject.
19667 (ftfont_open): Set font->format.
19668 (ftfont_font_format): New function.
19669
19670 * font.h (struct font): New member format.
19671
19672 * font.c (Qopentype): New variable.
19673 (syms_of_font): Defsym it.
19674 (Fquery_font): Change the format of the last element of the return
19675 value.
19676
196772008-02-01 Kenichi Handa <handa@m17n.org>
19678
19679 * xfns.c (xic_create_xfontset): Try the default fontset name as a
19680 last resort.
19681
196822008-02-01 Kenichi Handa <handa@m17n.org>
19683
19684 * coding.c (detect_coding_charset): Fix detection of multi-byte
19685 charset.
19686
196872008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
19688
19689 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
19690
196912008-02-01 Kenichi Handa <handa@m17n.org>
19692
19693 * xdisp.c (get_next_display_element): Set it->face_id for the
19694 first component of a composition.
19695 (x_produce_glyphs): Check if the font is changed or not for composition.
19696
196972008-02-01 Kenichi Handa <handa@m17n.org>
19698
19699 * fontset.c (Qlatin): New variable.
19700 (syms_of_fontset): Define it as a lisp symbol.
19701 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
19702
197032008-02-01 Kenichi Handa <handa@m17n.org>
19704
19705 * font.c (font_unparse_fcname): Pay attention to the case that
19706 some of font property is a null string.
19707
197082008-02-01 Kenichi Handa <handa@m17n.org>
19709
19710 * term.c: Include "composite.h".
19711 (encode_terminal_code): Output all components of composition.
19712 Check the size of encode_terminal_src.
19713 (produce_glyphs): For composition, call produce_composite_glyph.
19714 (append_composite_glyph, produce_composite_glyph): New functions.
19715
19716 * xdisp.c (x_produce_glyphs): In handling composition, if a font
19717 is not found, get font_info from the current ascii face.
19718
197192008-02-01 Kenichi Handa <handa@m17n.org>
19720
19721 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
19722 buffer-file-name to Qnil before calling insert_from_buffer.
19723
19724 * font.c (font_unparse_fcname): Pay attention to the case that
19725 foundry is a null string.
19726
197272008-02-01 Kenichi Handa <handa@m17n.org>
19728
19729 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
19730
19731 * font.c (Qunicode_sip): New variable.
19732 (syms_of_font): Declare it as a Lisp symbol.
19733
19734 * font.h (Qunicode_sip): Extern it.
19735
197362008-02-01 Kenichi Handa <handa@m17n.org>
19737
19738 * composite.c (get_composition_id): Pay attention to TAB component.
19739
19740 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
19741 TAB. Adjust for the change of s->char2b which always points to
19742 the first element of allocated memory.
19743
19744 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
19745
19746 * xdisp.c (handle_composition_prop): Set it->c to the first
19747 non-TAB component.
19748 (fill_composite_glyph_string): Change argument.
19749 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
19750 (x_produce_glyphs): Fix handling of left/right padding.
19751
197522008-02-01 Kenichi Handa <handa@m17n.org>
19753
19754 * coding.c (detect_coding_system): Fix for handling off
19755 inhibit_iso_escape_detection. Fix for the case that no coding
19756 system is defined for a specific coding category.
19757
197582008-02-01 Kenichi Handa <handa@m17n.org>
19759
19760 * font.c (font_matching_entity): Delete unused local var.
19761
19762 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
19763 opening a font.
19764
19765 * fileio.c (Finsert_file_contents): On recovering a file, assume
19766 Unix-like eol.
19767 (choose_write_coding_system): On auto-saving a file, force
19768 Unix-like eol.
19769
19770 * coding.c (setup_coding_system): Fix setting of
19771 coding->common_flags based on eol_type.
19772 (coding_inherit_eol_type): If PARENT is not nil, be sure to
19773 inherit from it.
19774
197752008-02-01 Kenichi Handa <handa@m17n.org>
19776
19777 * alloc.c (NSTATICS): Increas to 0x600.
19778
197792008-02-01 Kenichi Handa <handa@m17n.org>
19780
19781 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
19782 (ftfont_list): Don't check :name property.
19783 (ftfont_match): New function.
19784 (ftfont_pattern_entity): If the pattern doesn't contain
19785 FC_SPACING, don't assume FC_MONO.
19786
19787 * font.h (struct font_driver): New member `match'.
19788 (font_update_drivers): Adjust prototype.
19789
19790 * font.c (font_parse_fcname, font_parse_name): Don't change :name
19791 property of FONT.
19792 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
19793 them unconditionally.
19794 (font_matching_entity): New function.
19795 (font_open_by_name): Try font_matching_entity if exact match is
19796 not found.
19797 (font_update_drivers): Delete the arg FONT. Return a list of
19798 actually used backends. Don't free faces, font caches here.
19799 Don't store data in frame parameters. Don't call x_set_font.
19800 (Ffont_spec): Store :name property as is.
19801 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
19802 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
19803 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
19804 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
19805 Call font->driver->otf_gsub instead of font_otf_gsub.
19806
19807 * frame.c (x_set_font_backend): Do more works that were done in
19808 font_update_drivers before.
19809
19810 * xfont.c (xfont_match): New function.
19811 (xfont_driver): Set xfont_driver.match to xfont_match.
19812 (xfont_draw): Set font in GC if necessary.
19813
19814 * ftxfont.c (ftxfont_match): New function.
19815 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
19816
19817 * xftfont.c (xftfont_match): New function.
19818 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
19819
198202008-02-01 Kenichi Handa <handa@m17n.org>
19821
19822 * font.h (struct font): New member scalable.
19823 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
19824 (font_otf_gsub): Adjust prototype.
19825
19826 * font.c (font_otf_capability): Fix handling of the default langsys.
19827 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
19828 Check the contents of SPEC.
19829 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
19830 (check_gstring): New function.
19831 (REPLACEMENT_CHARACTER): New macro.
19832 (font_otf_gsub): New arg alternate_subst. Be sure to set all
19833 glyph codes of GSTRING.
19834 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
19835 (font_prepare_composition): Set cmp->glyph_len.
19836 (font_open_entity): Set font->scalable.
19837 (Ffont_get): Handle :otf property.
19838 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
19839 functions.
19840 (Fquery_font): Use font->font.full_name.
19841 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
19842 Sfont_otf_alternates.
19843
19844 * ftfont.c (ftfont_open): Set font->font.full_name and
19845 font->font.name properly. Fix calculation of font->font.height
19846 and font->min_width.
19847
19848 * ftxfont.c (ftxfont_create_gcs): New function.
19849 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
19850 (ftxfont_draw_backgrond): Fix filling region.
19851 (ftxfont_default_fid): New function.
19852 (ftxfont_open): Set xfont->fid to the return value of
19853 ftxfont_default_fid.
19854 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
19855 (ftxfont_done_face): Free only GCs that are created by
19856 ftxfont_create_gcs.
19857 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
19858
19859 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
19860 Clip to src->width, etc (not src->clip_XXX).
19861
19862 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
19863 FontBackend frame parameter.
19864
198652008-02-01 Kenichi Handa <handa@m17n.org>
19866
19867 * font.h (struct font_driver_list): New member `on'.
19868 (Fclear_font_cache): EXFUN it.
19869 (font_update_drivers): Extern it.
19870
19871 * font.c (font_unparse_fcname): Fix typo (swidth->width).
19872 (font_list_entities): Check driver_list->on.
19873 (register_font_driver): Initalize `on' member to 0.
19874 (font_update_drivers): New function.
19875 (Fclear_font_cache): Check driver_list->on.
19876
19877 * frame.h (Qfont_backend): Extern it.
19878 (x_set_font_backend): Extern it.
19879
19880 * frame.c (Qfont_backend): New variable.
19881 (frame_parms): New element for font-backend.
19882 (x_set_font_backend): New function.
19883
19884 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
19885 FontBackend frame parameter.
19886 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
19887 x_set_font_backend.
19888
19889 * xfont.c (xfont_list): Don't try listing by :name property if the
19890 name is not for XLFD.
19891
198922008-02-01 Kenichi Handa <handa@m17n.org>
19893
19894 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
19895 (LGLYPH_SET_TO): New macros.
19896 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
19897 element of G is vector or not.
19898 (font_at): Extern it.
19899
19900 * font.c: Include window.h.
19901 (font_lispy_object): New function.
19902 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
19903 end of valid glyph.
19904 (font_close_object): Fix getting (struct font *).
19905 (font_at): New function.
19906 (Ffont_get): If FONT is a font-object, get entity from it.
19907 (Ffont_make_gstring): Initialize elements of glyphs with nil.
19908 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
19909 range check.
19910 (Ffont_at): New function.
19911 (syms_of_font): Defsubr Sfont_at.
19912
19913 * xdisp.c (it_props): Move the entry for Qauto_composed to just
19914 before the entry for Qcomposition.
19915 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
19916 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
19917 the font in gstring.
19918 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
19919 LGLYPH_FORM (g) to detect the end of valid glyph.
19920 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
19921 we are composing with gstring.
19922
19923 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
19924 Check if adjustment is vector or not.
19925
19926 * Makefile.in (font.o): Make it depends on window.h.
19927
199282008-02-01 Kenichi Handa <handa@m17n.org>
19929
19930 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
19931 adjustment is vector or not.
19932
199332008-02-01 Miles Bader <miles@gnu.org>
19934
19935 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
19936
199372008-02-01 Kenichi Handa <handa@m17n.org>
19938
19939 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
19940 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
19941 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
19942
19943 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
19944 (DEVICE_DELTA): Fix typo.
19945 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
19946 LGLYPH format.
19947
19948 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
19949 the change of LGLYPH format.
19950
199512008-02-01 Kenichi Handa <handa@m17n.org>
19952
19953 * ftfont.c (ftfont_list): Fix typo.
19954 (ftfont_build_basic_charsets): Don't include letters with diacritics.
19955
199562008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19957
19958 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
19959
19960 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
19961 xftface_info is non-NULL.
19962
199632008-02-01 Jan Djärv <jan.h.d@swipnet.se>
19964
19965 * ftfont.c (ftfont_list): Move misplaced #endif.
19966
199672008-02-01 Kenichi Handa <handa@m17n.org>
19968
19969 * ftfont.c (ftfont_list): Pay attention to the case that
19970 FC_CAPABILITY is not defined.
19971
199722008-02-01 Kenichi Handa <handa@m17n.org>
19973
19974 * xftfont.c (xftfont_open): Set charset related members to -1.
19975
19976 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
19977 QCname.
19978 (ftfont_open): Set charset related members to -1.
19979
19980 * fontset.c (Votf_script_alist): New variable.
19981 (syms_of_fontset): Initialize it.
19982 (fontset_font): Delete unused variable.
19983
19984 * fontset.h (Votf_script_alist): Extern it.
19985
19986 * font.c (font_find_for_lface): Optimize code.
19987
19988 * font.h (font_close_object, font_merge_old_spec): Extern them.
19989
199902008-02-01 Kenichi Handa <handa@m17n.org>
19991
19992 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
19993 (syms_of_font): Initialize them.
19994 (font_pixel_size): Allow float value in dpi.
19995 (font_prop_validate_type): Delete.
19996 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
19997 Change caller.
19998 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
19999 (font_prop_validate_extra): Delete.
20000 (font_prop_validate_spacing): New function.
20001 (font_property_table): Add elements for all known properties.
20002 (get_font_prop_index): Rename from check_font_prop_name. New
20003 argument FROM. Change caller.
20004 (font_prop_validate): Validate all known properties.
20005 (font_put_extra): Delete argument force. Change caller.
20006 (font_expand_wildcards): Make it static. Fix the way of shrinking
20007 the possible range.
20008 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
20009 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
20010 Change caller.
20011 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
20012 (font_parse_fcname): Delete argument merge. Fix parsing of point
20013 size. Don't validate properties values here. Change caller.
20014 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
20015 (font_open_by_name): Delete unused variable.
20016 (Ffont_spec): Likewise. Validate property values.
20017 (Ffont_match_p): New function.
20018
20019 * font.h (QCscalable): Extern it.
20020 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
20021
20022 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
20023
20024 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
20025 (xfont_list_pattern): New function.
20026 (xfont_list): Use xfont_list_pattern.
20027
200282008-02-01 Kenichi Handa <handa@m17n.org>
20029
20030 * font.h (Flist_fonts): EXFUN it.
20031
200322008-02-01 Jason Rumney <jasonr@gnu.org>
20033
20034 * w32term.c (w32_initialize): Add back smoothing_type and
20035 smoothing_enabled definitions.
20036
200372008-02-01 Kenichi Handa <handa@m17n.org>
20038
20039 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
20040 s->face->font on determining underline position.
20041
200422008-02-01 Kenichi Handa <handa@m17n.org>
20043
20044 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
20045 (font_has_char): Accept font-object too.
20046 (font_find_for_lface): Try at first with a size specified in face.
20047
200482008-02-01 Kenichi Handa <handa@m17n.org>
20049
20050 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
20051 font_open_by_name.
20052
200532008-02-01 Kenichi Handa <handa@m17n.org>
20054
20055 * font.h (QCspacing, QCdpi): Extern them.
20056 (enum font_spacing): New enum.
20057 (FONT_PIXEL_SIZE_QUANTUM): New macro.
20058
20059 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
20060 (QCspacing, QCdpi): New variables.
20061 (syms_of_font): Initialize them.
20062 (font_pixel_size): New function.
20063 (font_put_extra): New function.
20064 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
20065 in FONT_EXTRA.
20066 (font_parse_fcname): Handle enumerated values (e.g. bold).
20067 Fix handling font size. Add QCname property that contains only
20068 unknown properties.
20069 (font_score): Change argument. Change caller. Pay attention to
20070 FONT_PIXEL_SIZE_QUANTUM.
20071 (font_sort_entites, font_list_entities, font_find_for_lface)
20072 (font_open_for_lface, font_open_by_name): Fix handling of font size.
20073 (Ffont_spec): Add QCname property that contains only unknown properties.
20074
20075 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
20076 include weight in listing pattern, instead check weight of each
20077 listed font. Don't include scalable in pattern. Pay attention to
20078 FONT_PIXEL_SIZE_QUANTUM.
20079
200802008-02-01 Kenichi Handa <handa@m17n.org>
20081
20082 * font.c (font_parse_fcname): Fix parsing of point-size.
20083 (font_unparse_fcname): Produce symbolic names for style properties.
20084 (font_list_entities): Handle float size correctly.
20085 (font_open_by_name): Prefer `normal' property values if the name
20086 doesn't specify them.
20087
20088 * fontset.c (Finternal_char_font): Use font_get_name, not
20089 Ffont_xlfd_name.
20090
20091 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
20092 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
20093 pattern. Don't force scalable.
20094
20095 * xftfont.c (xftfont_open): For generating a name, start from
20096 96-byte buffer.
20097
200982008-02-01 Jan Djärv <jan.h.d@swipnet.se>
20099
20100 * frame.h (x_new_fontset2): Fix prototype.
20101
201022008-02-01 Kenichi Handa <handa@m17n.org>
20103
20104 * font.h (struct font_driver): Delete member parse_name.
20105 (font_match_p, font_get_spec, font_parse_fcname)
20106 (font_unparse_fcname): Extern them.
20107 (font_get_name): Adjust prototype.
20108
20109 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
20110 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
20111 (font_expand_wildcards): Fix handling ENCODING field. Avoid
20112 unnecessary checks for weight, slant, and swidth.
20113 (font_parse_fcname): New function.
20114 (font_unparse_fcname): New function.
20115 (font_parse_name): New function.
20116 (font_match_p): New function.
20117 (font_get_name): Change return value to Lisp string.
20118 (font_get_spec): New function.
20119 (Qunspecified, Qignore_defface): Don't extern them.
20120 (font_find_for_lface): Assume that LFACE is fully specified.
20121 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
20122 object, use it for FACE.
20123 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
20124 driver->parse_name.
20125 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
20126
20127 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
20128 prototype.
20129
20130 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
20131 argument F. Don't call Fnew_fontset. Instead, directly call
20132 make_fontset.
20133
20134 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
20135
20136 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
20137 of x_new_fontset2.
20138
20139 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
20140 (Qsans__serif): New variables.
20141 (ftfont_generic_family_list): New variable.
20142 (syms_of_ftfont): Initialize the above variables.
20143 (ftfont_pattern_entity): Delete argument NAME.
20144 (ftfont_list_generic_family): New function.
20145 (ftfont_parse_name): Delete this function.
20146 (ftfont_list): Try generic family only when FcFontList found no font.
20147 (ftfont_list_family): Fix args to FcObjectSetBuild.
20148
20149 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
20150 object in attrs[LFACE_FONT_INDEX].
20151 (set_lface_from_font_name): Cancel all changes for font-backend.
20152 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
20153 function.
20154 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
20155 font object in QCfont attribute.
20156 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
20157 (realize_default_face) [USE_FONT_BACKEND]: Call
20158 set_lface_from_font_and_fontset.
20159
20160 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
20161 "fixed", and signal error here if no suitable font was found.
20162
20163 * xfont.c (xfont_parse_name): Delete this function.
20164
20165 * xftfont.c (xftfont_open): Change coding style of error
20166 handling. Generate fontconfig's fontname pattern.
20167
20168 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
20169 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
20170
20171 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
20172 Both args FONTSET and FONT_OBJECT must be existing ones.
20173
201742008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20175
20176 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
20177
201782008-02-01 Kenichi Handa <handa@m17n.org>
20179
20180 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
20181
20182 * font.h (struct font): Fix typo.
20183
20184 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
20185 XLFD_XXX_INDEX.
20186 (enum xlfd_field_mask): New enum.
20187 (intern_font_field): Changed argument. Change caller. If digits
20188 are followed by non-digits, return a symbol.
20189 (font_expand_wildcards): New function.
20190 (font_parse_xlfd): Fix wildcard handling.
20191 (Ffont_spec): If :name is specified, reflect the info in the other
20192 properties.
20193
20194 * ftfont.c (ftfont_pattern_entity): Fix typo.
20195 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
20196 locale.
20197
201982008-02-01 Kenichi Handa <handa@m17n.org>
20199
20200 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
20201
20202 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
20203 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
20204 registry doesn't specify encoding part.
20205 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
20206 (font_open_by_name): At first try parsing the name.
20207 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
20208 as Lisp symbols.
20209
20210 * fontset.c (reorder_font_vector): Pay attention to the case that
20211 the 3rd element of font_def is nil.
20212 (fontset_font): For the default fontset, append one more fontset
20213 elements for a script-based font specification. Don't add script
20214 attribute on finding a font.
20215 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
20216 font name.
20217 (fontset_ascii_font): If a font can't be opened, return nil.
20218
20219 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
20220 (ftfont_pattern_entity): New function.
20221 (ftfont_get_cache): Assume that freetype_font_cache is already
20222 initialized.
20223 (ftfont_list): Handle the case that a file is specified in font
20224 name. Use ftfont_pattern_entity to generate entities.
20225 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
20226 (syms_of_ftfont): Initialize freetype_font_cache.
20227
20228 * xftfont.c (xftfont_open): Make the font name fontconfig's
20229 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
20230 (xftfont_close): Free font->font.name if not NULL.
20231
20232 * xfont.c (xfont_list): If script is specified for a font, return
20233 null_vector.
20234 (xfont_list_family): Declare argument type.
20235
20236 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
20237 name, set LFACE_FONT (lface) to nil.
20238
20239 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
20240 return Qnil.
20241
202422008-02-01 Kenichi Handa <handa@m17n.org>
20243
20244 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
20245 (standard_args): Add "-enable-font-backend".
20246
202472008-02-01 Kenichi Handa <handa@m17n.org>
20248
20249 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
20250 (struct xftdraw_list, xftdraw_list): Delete them.
20251 (register_xftdraw, check_xftdraw): Delete them.
20252 (xftfont_prepare_face): Don't call register_xftdraw.
20253 (xftfont_done_face): Don't call check_xftdraw.
20254 (xftfont_draw): Get background color only when with_background is
20255 nonzero.
20256
20257 * xfont.c (xfont_encode_char): Fix calculation of char2b.
20258
202592008-02-01 Kenichi Handa <handa@m17n.org>
20260
20261 These changes are for the new font handling codes.
20262
20263 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
20264 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
20265 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
20266 (FONTSRC, FONTOBJ): New variables.
20267 (obj): Add $(FONTOBJ).
20268 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
20269 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
20270 @LIBOTF_LIBS@.
20271 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
20272 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
20273
20274 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
20275
20276 * character.h (Vscript_representative_chars): Extern it.
20277
20278 * character.c (Vscript_representative_chars): New variable.
20279 (syms_of_character): Declare it as a Lisp variable.
20280
20281 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
20282 enable_font_backend is nonzero, accept the composition method
20283 COMPOSITION_WITH_GLYPH_STRING.
20284
20285 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
20286 enumeration COMPOSITION_WITH_GLYPH_STRING.
20287
20288 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
20289 members clip_x, clip_y, clip_width, and clip_height.
20290 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
20291
20292 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
20293 --enable-font-backend. Call syms_of_font.
20294
20295 * fns.c (assoc_no_quit): New function.
20296
20297 * fontset.h (FONT_INFO_FROM_FACE): New macro.
20298 (face_for_font, new_fontset_from_font)
20299 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
20300
20301 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
20302 (fontset_font, fontset_ascii, face_for_char)
20303 (make_fontset_for_ascii_face, Ffont_info)
20304 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
20305 is nonzero, use font-backend mechanism.
20306 (find_font_encoding): Make it non-static.
20307 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
20308 New functions.
20309
20310 * frame.h (struct frame): New members resx and resy.
20311 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
20312 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
20313
20314 * frame.c [USE_FONT_BACKEND]: Include "font.h".
20315 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
20316
20317 * lisp.h (assoc_no_quit): Extern it.
20318
20319 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
20320 Through out the file, use FONT_INFO_FROM_FACE instead of
20321 FONT_INFO_FROM_ID, use get_per_char_metric instead of
20322 rif->per_char_metric.
20323 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
20324 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
20325 (get_glyph_face_and_encoding, fill_composite_glyph_string)
20326 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
20327 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
20328 nonzero, use font-backend mechanism.
20329 (get_per_char_metric): New function.
20330
20331 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
20332 (set_lface_from_font_name)
20333 (set_font_frame_param, free_realized_face)
20334 (prepare_face_for_display, clear_face_gcs)
20335 (Finternal_set_font_selection_order, realize_x_face)
20336 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
20337 font-backend mechanism.
20338 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
20339 (load_face_font) [USE_FONT_BACKEND]: Abort.
20340 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
20341 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
20342
20343 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
20344 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
20345 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
20346 nonzero, register all available font drivers. Call
20347 x_default_font_parameter for deciding a font.
20348 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
20349
20350 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
20351 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
20352 (x_set_glyph_string_clipping_exactly)
20353 (x_compute_glyph_string_overhangs)
20354 (x_draw_glyph_string_foreground)
20355 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
20356 (x_free_frame_resources) [USE_FONT_BACKEND]: If
20357 enable_font_backend is nonzero, use font-backend mechanism.
20358 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
20359
203602008-02-01 Kenichi Handa <handa@m17n.org>
20361
20362 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
20363 system_eol_type.
20364 (syms_of_coding): Initialize system_eol_type.
20365
20366 * process.c (Fset_process_coding_system): Inherit system's eol
20367 format if necessary.
20368
203692008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20370
20371 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
20372
203732008-02-01 Kenichi Handa <handa@m17n.org>
20374
20375 * coding.c (decode_eol): Pay attention to buffer relocation in
20376 del_range_2.
20377 (decode_coding): Call decode_eol before restoring undo_list.
20378
203792008-02-01 Kenichi Handa <handa@m17n.org>
20380
20381 * charset.c (Fdefine_charset_internal): Fix setting of
20382 emacs_mule_bytes.
20383
203842008-02-01 Kenichi Handa <handa@m17n.org>
20385
20386 * keyboard.c (read_char): Check if C is a character or not before
20387 looking up Vkeyboard_translate_table.
20388
203892008-02-01 Kenichi Handa <handa@m17n.org>
20390
20391 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
20392 condition to terminate the loop.
20393
203942008-02-01 Kenichi Handa <handa@m17n.org>
20395
20396 * coding.c (produce_composition): Compare charbuf[i] instead of
20397 args[i] against 0.
20398 (Fterminal_coding_system): Use EQ to compare Lisp objects.
20399
204002008-02-01 Kenichi Handa <handa@m17n.org>
20401
20402 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
20403 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
20404 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
20405 detect_coding.
20406 (emacs_mule_char): Handle old style (Emacs 20) component character
20407 of a composition.
20408 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
20409 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
20410 composition rule.
20411 (decode_coding_emacs_mule): Handle invalid bytes correctly.
20412
204132008-02-01 Kenichi Handa <handa@m17n.org>
20414
20415 * coding.c (encode_coding_ccl): Allocate destination dynamically
20416 when necessary.
20417
204182008-02-01 Kenichi Handa <handa@m17n.org>
20419
20420 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
20421 the loop. When quitted, show a proper error message.
20422
204232008-02-01 Kenichi Handa <handa@m17n.org>
20424
20425 * xterm.c (x_set_glyph_string_clipping_exactly): Set
20426 src->clip_head and src->clip_tail temporarily instead of src->hl.
20427
20428 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
20429 character sequence.
20430 (Fccl_execute_on_string): Use ASET, not XSET.
20431
204322008-02-01 Kenichi Handa <handa@m17n.org>
20433
20434 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
20435
204362008-02-01 Kenichi Handa <handa@m17n.org>
20437
20438 * coding.c (decode_coding): Fix the condition of terminating the
20439 decoding loop.
20440
204412008-02-01 Kenichi Handa <handa@m17n.org>
20442
20443 * data.c (Faset): On setting a character bigger than 255 in a
20444 unibyte string, signal an error instead of make the string multibyte.
20445
204462008-02-01 Kenichi Handa <handa@m17n.org>
20447
20448 * charset.c (map_charset_chars): Fix for ascii-compatible charset
20449 made by a mapping table.
20450
204512008-02-01 Kenichi Handa <handa@m17n.org>
20452
20453 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
20454 not.
20455 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
20456 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
20457
20458 * xterm.c (x_draw_composite_glyph_string_foreground): Check
20459 s->face is NULL or not.
20460
204612008-02-01 Kenichi Handa <handa@m17n.org>
20462
20463 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
20464 (x_draw_glyph_string): Fix drawing of right_overhang and
20465 left_overhang around/on cursor.
20466
20467 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
20468
204692008-02-01 Kenichi Handa <handa@m17n.org>
20470
20471 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
20472
204732008-02-01 Kenichi Handa <handa@m17n.org>
20474
20475 * coding.c (Fdefine_coding_system_internal)
20476 (Fdefine_coding_system_alias): Avoid a duplicated element in
20477 Vcoding_system_alist.
20478
204792008-02-01 Kenichi Handa <handa@m17n.org>
20480
20481 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
20482
20483 * coding.c (Qcoding_system_define_form): New variable.
20484 (syms_of_coding): Intern and staticpro it.
20485 (Fcoding_system_p): Check Qcoding_system_define_form.
20486 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
20487
20488 * coding.h (CODING_SYSTEM_P): If ID is not available, call
20489 Fcoding_system_p.
20490 (CHECK_CODING_SYSTEM): If ID is not available, call
20491 Fcheck_coding_system.
20492 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
20493 Try also Fcheck_coding_system.
20494
204952008-02-01 Kenichi Handa <handa@m17n.org>
20496
20497 * coding.c (code_conversion_restore): GCPRO arg.
20498
204992008-02-01 Kenichi Handa <handa@m17n.org>
20500
20501 * character.c (lisp_string_width): Check multibyteness of STRING.
20502
205032008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20504
20505 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
20506 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
20507 (decode_mac_font_name): Use decode_coding_c_string instead of
20508 decode_coding.
20509 (x_load_font): Initialize fontp->fontset to -1. Set
20510 fontp->encoding_type.
20511
205122008-02-01 Kenichi Handa <handa@m17n.org>
20513
20514 * search.c (search_buffer): Give up BM search on case-fold-search
20515 if one of a target character has a case-equivalence of different
3b59c351 20516 byte length even if that target character is an ASCII.
aac0c6e3
MR
20517 (simple_search): Fix calculation of byte length of matched text.
20518 (boyer_moore): Fix handling of case-equivalent multibyte characters.
20519
205202008-02-01 Kenichi Handa <handa@m17n.org>
20521
20522 * coding.c (decode_coding): Fix handling of invalid bytes.
20523
205242008-02-01 Kenichi Handa <handa@m17n.org>
20525
20526 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
20527 Unicode characters.
20528
205292008-02-01 Kenichi Handa <handa@m17n.org>
20530
20531 * coding.c (encode_coding_object): If a pre-write-conversion
20532 function makes a new buffer, kill it.
20533
205342008-02-01 Kenichi Handa <handa@m17n.org>
20535
20536 * coding.c (QCascii_compatible_p): New variable.
20537 (syms_of_coding): Initialize it.
20538 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
20539 calling string_char.
20540 (record_conversion_result): Add `default:' case.
20541 (coding_charset_list): Delete unused variable `coding_type'.
20542 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
20543 property in the plist of the coding system.
20544 (Fcoding_system_put): Check QCascii_compatible_p.
20545
205462008-02-01 Miles Bader <miles@gnu.org>
20547
20548 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
20549 removed calculation of frame `f', as it's now used.
20550
205512008-02-01 Kenichi Handa <handa@m17n.org>
20552
20553 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
20554 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
20555 (UNIDATA): New variable.
20556 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
20557 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
20558 $(RUN_TEMACS) unconditionally.
20559
205602008-02-01 Kenichi Handa <handa@m17n.org>
20561
20562 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
20563 (admindir): New variable.
20564 ($(lispsource)international/charprop.el): New target.
20565
205662008-02-01 Miles Bader <miles@gnu.org>
20567
20568 * character.c (chars-in-region): Remove obsolete function.
20569 (syms_of_character): Remove its initialization.
20570
205712008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
20572
20573 * w32select.c (validate_coding_system)
20574 (setup_windows_coding_system): New functions.
20575 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
20576 setup_windows_coding_system.
20577 (setup_config, Fw32_get_clipboard_data): Use
20578 validate_coding_system.
20579 (Fx_selection_exists): Move call to setup_config to a place
20580 where signals are allowed.
20581
20582 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
20583 (Fcheck_coding_system): Add declarations.
20584
205852008-02-01 Kenichi Handa <handa@m17n.org>
20586
20587 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
20588
205892008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20590
20591 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
20592 string as the second argument for x_new_fontset.
20593
205942008-02-01 Kenichi Handa <handa@m17n.org>
20595
20596 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
20597 (encode_coding_object): Use safe_call instead of call2.
20598
205992008-02-01 Kenichi Handa <handa@m17n.org>
20600
20601 * fontset.c (Fset_fontset_font): Check family element of a given vector.
20602
20603 * Makefile.in (lisp): Include charprop.el.
20604
206052008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20606
20607 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
20608 Not sure if it's unnecessary.
20609
206102008-02-01 Steven Tamm <steventamm@mac.com>
20611
20612 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
20613 some possibly unnecessary fontset checking code that crashed
20614 when creating a new frame.
20615
206162008-02-01 Kenichi Handa <handa@m17n.org>
20617
20618 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
20619 lookup_face.
20620
20621 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
20622
20623 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
20624
206252008-02-01 Kenichi Handa <handa@m17n.org>
20626
20627 * coding.c: Cancel the change done in HEAD on 2008-02-01.
20628 (coding_charset_list): New function.
20629
20630 * coding.h (coding_charset_list): Extern it.
20631
206322008-02-01 Kenichi Handa <handa@m17n.org>
20633
20634 * fontset.c (Fset_fontset_font): Call find_font_encoding with
20635 concatenation of family and registry.
20636
206372008-02-01 Kenichi Handa <handa@m17n.org>
20638
20639 * character.h (BYTE8_STRING): Fix typo.
20640
20641 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
20642 string to multibyte (sync to HEAD).
20643
20644 * casefiddle.c (casify_region): Handle changes in byte-length
20645 using replace_range_2 (sync to HEAD).
20646
206472008-02-01 Andreas Schwab <schwab@suse.de>
20648
20649 * chartab.c (map_char_table): GCPRO table and arg.
20650
206512008-02-01 Kenichi Handa <handa@m17n.org>
20652
20653 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
20654 already at limit.
20655
206562008-02-01 Kenichi Handa <handa@m17n.org>
20657
20658 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
20659 instead of fast_c_string_match_ignore_case.
20660 (find_font_encoding): Change argument to Lisp_Object. Use
20661 fast_string_match_ignore_case instead of
20662 fast_c_string_match_ignore_case. Change caller.
20663
206642008-02-01 Kenichi Handa <handa@m17n.org>
20665
20666 * xdisp.c (get_next_display_element): In unibyte case, decide to
20667 display in octal form by checking a character by
20668 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
20669
20670 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
20671
20672 * character.c (unibyte_has_multibyte_table): New variable.
20673
20674 * character.h (unibyte_has_multibyte_table): Extern it.
20675 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
20676
206772008-02-01 Kenichi Handa <handa@m17n.org>
20678
20679 * coding.c (encode_coding_iso_2022): Fix handling of charset
20680 annotation.
20681
206822008-02-01 Kenichi Handa <handa@m17n.org>
20683
20684 * coding.c (setup_coding_system): If coding_system is nil, use
20685 Qundecided.
20686 (Fterminal_coding_system): Return nil if terminal coding system is
20687 `undecided'.
20688 (syms_of_coding): Define coding-system `undecided' here. Setup
20689 terminal_coding as `undecided'.
20690
206912008-02-01 Kenichi Handa <handa@m17n.org>
20692
20693 * xdisp.c (message_dolog, set_message_1): Call
20694 unibyte_char_to_multibyte with arg type int.
20695
20696 * lread.c (read1): Fix reading of a char-table.
20697
20698 * print.c (print_object): Include sub char-table in circularities
20699 detection.
20700
207012008-02-01 Kenichi Handa <handa@m17n.org>
20702
20703 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
20704 Append the found sequences in car of ARGS instead of prepending.
20705
207062008-02-01 Kenichi Handa <handa@m17n.org>
20707
20708 * fileio.c (report_file_error): Make a unibyte string from
20709 strerror (errorno).
20710 (Fsubstitute_in_file_name): Fix the arg to
20711 unibyte_char_to_multibyte. It is evaluated twice.
20712
207132008-02-01 Kenichi Handa <handa@m17n.org>
20714
20715 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
20716
207172008-02-01 Kenichi Handa <handa@m17n.org>
20718
20719 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
20720 BOM is not found.
20721 (detect_coding, detect_coding_system): Optimization for ISO-2022
20722 when no 8-bit data is found.
20723
207242008-02-01 Jason Rumney <jasonr@gnu.org>
20725
20726 * w32fns.c (x_to_w32_font): Update to use new coding struct.
20727
207282008-02-01 Kenichi Handa <handa@m17n.org>
20729
20730 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
20731 CHARS.
20732
207332008-02-01 Steven Tamm <steventamm@mac.com>
20734
20735 * macterm.c (mac_encode_char): Add charset argument and update
20736 to use encoding_type.
20737 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
20738 switch to pure fontset.
20739 (decode_mac_font_name): Temporarily remove decoding.
20740 (x_font_name_to_mac_font_name): Temporarily remove encoding.
20741 (x_load_font): Temporarily remove encoding.
20742
207432008-02-01 Kenichi Handa <handa@m17n.org>
20744
20745 * xfaces.c (Fface_font): If frame is not on a window system,
20746 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
20747 refer to face->font.
20748 (split_font_name_into_vector, build_font_name_from_vector)
20749 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
20750 when HAVE_WINDOW_SYSTEM is defined.
20751
207522008-02-01 Kenichi Handa <handa@m17n.org>
20753
20754 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
20755 (x_produce_glyphs): Fix setting of members of cmp in case
20756 cmp->glyph_len is zero.
20757
20758 * fontset.c (Fset_fontset_font): Fix docstring.
20759 (Ffontset_info): Make it backward compatible. New arg ALL.
20760
207612008-02-01 Kim F. Storm <storm@cua.dk>
20762
20763 * process.c (read_process_output): Grow decoding_buf when needed;
20764 this could cause a crash in allocate_string and compact_small_strings.
20765
207662008-02-01 Kenichi Handa <handa@m17n.org>
20767
20768 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
20769
207702008-02-01 Kenichi Handa <handa@m17n.org>
20771
20772 * coding.c (setup_coding_system): Set coding->common_flags
20773 correctly for raw-text.
20774 (consume_chars): On encoding unibyte text by raw-text, don't check
20775 multibyte form.
20776 (encode_coding): On encoding by raw-text, never use translation tables.
20777
20778 * fileio.c (e_write): Short cut for the case of no encoding.
20779
207802008-02-01 Kenichi Handa <handa@m17n.org>
20781
20782 * coding.c (detect_coding, detect_coding_system): Delete unused
20783 variables.
20784
207852008-02-01 Kenichi Handa <handa@m17n.org>
20786
20787 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
20788 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
20789
207902008-02-01 Kenichi Handa <handa@m17n.org>
20791
20792 * coding.c (Ffind_coding_systems_region_internal): Include
20793 raw-text and no-conversion in the result.
20794
207952008-02-01 Kenichi Handa <handa@m17n.org>
20796
20797 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
20798 (load_font_get_repertory): Delete unnecessary check of ENCODING of
20799 FONT_DEF.
20800 (font_def_arg, add_arg, from_arg, to_arg): New args.
20801 (set_fontset_font): Change argument.
20802 (Fset_fontset_font): Fix for the case that TARGET is a script
20803 name and charset name.
20804 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
20805
208062008-02-01 Kenichi Handa <handa@m17n.org>
20807
20808 * fontset.c (fontset_font): Rename from fontset_face. Change return
20809 value.
20810 (face_suitable_for_char_p, face_for_char): Adjust for the change
20811 of fontset_font.
20812 (make_fontset_for_ascii_face): Fix setting of the fontset element
20813 for ASCII.
20814 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
20815 to get a font name.
20816 (Ffontset_info): Adjust for the change of fontset_font.
20817
20818 * coding.c (emacs_mule_char): Check invalid code more rigidly.
20819
20820 * character.h (LEADING_CODE_LATIN_1_MIN)
20821 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
20822
208232008-02-01 Kenichi Handa <handa@m17n.org>
20824
20825 * editfns.c (check_translation): New function.
20826 (Ftranslate_region_internal): Handle M:N mapping.
20827
208282008-02-01 Kenichi Handa <handa@m17n.org>
20829
20830 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
20831
208322008-02-01 Kenichi Handa <handa@m17n.org>
20833
20834 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
20835 goto invalid_code.
20836 (decode_coding_iso_2022): Fix handling of invalid designation.
20837
20838 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
20839 after calling code_conversion_save.
20840
208412008-02-01 Kenichi Handa <handa@m17n.org>
20842
20843 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
20844
20845 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
20846
20847 * fontset.c: Include "intervals.h".
20848 (fontset_face): Fix comparing of Lisp_Objects.
20849 (free_face_fontset, new_fontset_from_font_name): Fix
20850 Lisp_Object/int mixup.
20851
20852 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
20853
20854 * coding.c: Add many prototypes for static functions.
20855 (get_translation_table): Allow max_lookup to be NULL.
20856 (decode_coding, Ffind_coding_systems_region_internal)
20857 (Funencodable_char_position, Fcheck_coding_systems_region): Call
20858 get_translation_table with max_lookup NULL.
20859
208602008-02-01 Kenichi Handa <handa@m17n.org>
20861
20862 * coding.c (get_translation_table): Declare it as Lisp_Object.
20863 (LOOKUP_TRANSLATION_TABLE): New macro.
20864 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
20865 instead of CHAR_TABLE_REF.
20866
208672008-02-01 Kenichi Handa <handa@m17n.org>
20868
20869 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
20870 annotation data format.
20871 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
20872 Change arguments FROM and TO to single argument NCHARS. Change caller.
20873 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
20874 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
20875 (decode_coding_ccl, decode_coding_charset): Pay attention to
20876 coding->charbuf_used.
20877 (get_translation): New function.
20878 (produce_chars): New arguments translation_table and last_block.
20879 Translate characters here. Return number of carryover chars.
20880 Change caller.
20881 (produce_composition): New argument pos. Change caller.
20882 Adjust for the change of annotation data format.
20883 (produce_charset, produce_annotation): Likewise.
20884 (decode_coding, encode_coding): Don't call translate_chars.
20885 (consume_chars): New arg translation_table. Change caller.
20886 (translate_chars): Delete.
20887 (syms_of_coding): Make translation-table's number of extra slots 2.
20888
208892008-02-01 Kenichi Handa <handa@m17n.org>
20890
20891 * search.c (simple_search): Fix setting this_pos_byte in backward
20892 search.
20893
20894 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
20895 byte sequence.
20896 (detect_coding_ccl): Fix setting of the variable valids.
20897
208982008-02-01 Kenichi Handa <handa@m17n.org>
20899
20900 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
20901
20902 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
20903
20904 * editfns.c (Ftranslate_region_internal): Rename from
20905 Ftranslate_region. Accept a char-table in TABLE.
20906 (syms_of_editfns): Defsubr Stranslate_region_internal.
20907
20908 * xfaces.c (set_lface_from_font_name): If a font is specified for
20909 a frame, generate a fontset from the font.
20910 (build_scalable_font_name): If the scalable font is requested for
20911 a specific size, don't change that size.
20912 (try_font_list): Try a scalable font also in the case that a
20913 pattern string is specified.
20914
209152008-02-01 Kenichi Handa <handa@m17n.org>
20916
20917 * xfaces.c (Fface_font): New optional arg CHARACTER.
20918
209192008-02-01 Kenichi Handa <handa@m17n.org>
20920
20921 * charset.h (CHARSET_OFFSET): New macro.
20922
209232008-02-01 Kenichi Handa <handa@m17n.org>
20924
20925 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
20926
20927 * fontset.c (fontset_face): Handle the case that repertory is a
20928 char-table.
20929 (find_font_encoding): Return nil for unknown encoding.
20930 (Fset_fontset_font): Ignore a font of unknown encoding.
20931
209322008-02-01 Kenichi Handa <handa@m17n.org>
20933
20934 * keymap.c (describe_vector): Handle default value of a char table.
20935
20936 * fontset.c (fontset_face): Handle fallback fonts correctly.
20937 (Ffontset_info): Return infomation about fallback fonts.
20938
209392008-02-01 Kenichi Handa <handa@m17n.org>
20940
20941 * fontset.c (FONTSET_DEFAULT): New macro.
20942 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
20943 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
20944 the case that it is nil.
20945 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
20946 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
20947
20948 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
20949 subset or superset.
20950
209512008-02-01 Kenichi Handa <handa@m17n.org>
20952
20953 * emacs.c (main): Call init_charset after syms_of_XXX.
20954
20955 * charset.c (Vcharset_map_directory): Delete.
20956 (Vcharset_map_path): New variable.
20957 (load_charset_map_from_file): Use Vcharset_map_path instead.
20958 (init_charset): Initialize Vcharset_map_path.
20959 (syms_of_charset): Delete declaration of "charset-map-directory",
20960 add declaration of "charset-map-path".
20961
209622008-02-01 Kenichi Handa <handa@m17n.org>
20963
20964 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
20965 ASCII only string.
20966
20967 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
20968
20969 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
20970 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
20971
209722008-02-01 Kenichi Handa <handa@m17n.org>
20973
20974 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
20975
20976 * coding.c (QCmnemonic, QCdefalut_char)
20977 (QCdecode_translation_table, QCencode_translation_table)
20978 (QCpost_read_conversion, QCpre_write_conversion): New variables.
20979 (get_translation_table): Return a list of translation tables if
20980 necessary.
20981 (decode_coding): Call get_translation_table with ENCODEP 0.
20982 (char_encodable_p): If translation_table is non-nil, always call
20983 translate_char.
20984 (Fdefine_coding_system_internal): Accept list of translation
20985 tables as :encode-translation-table and :decode-translation-table.
20986 (Fcoding_system_put): New function.
20987 (syms_of_coding): Declare new symbols. Defsubr
20988 Scoding_system_put.
20989 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
20990 typically JISX0212.
20991
20992 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
20993 when the charset is superset type.
20994
20995 * character.c (translate_char): Accept list of translation tables.
20996
209972008-02-01 Kenichi Handa <handa@m17n.org>
20998
20999 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
21000 (CODING_ATTR_TRANS_TBL): New macro.
21001
21002 * coding.c (get_translation_table): New function.
21003 (translate_chars): Fix the bug of skipping annotation data.
21004 (decode_coding, encode_coding): Utilize get_translation_table.
21005 (char_encodable_p, Funencodable_char_position): Translate char if
21006 necessary.
21007 (Ffind_coding_systems_region_internal)
21008 (Fcheck_coding_systems_region): Setup translation table for encode
21009 in a coding system attribute vector in advance.
21010 (Fdefine_coding_system_internal): Allow a symbol as translation
21011 table. For shift-jis type coding system, allow 4th charset.
21012
210132008-02-01 Kenichi Handa <handa@m17n.org>
21014
21015 * coding.c (decode_coding_sjis): Check the first byte rigidly.
21016
21017 * xdisp.c (get_next_display_element): Pass -1 as POS to
21018 FACE_FOR_CHAR if displaying a C-string.
21019
210202008-02-01 Kenichi Handa <handa@m17n.org>
21021
21022 * composite.c (get_composition_id): Handle xoff and yoff in a
21023 composition rule.
21024
21025 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
21026 (struct composition): New member lbearing and rbearing.
21027
21028 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
21029 (x_get_glyph_overhangs): Handle a composition glyph.
21030 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
21031
21032 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
21033 composition glyph.
21034
210352008-02-01 Kenichi Handa <handa@m17n.org>
21036
21037 * print.c: Include charset.h.
21038 (Vprint_charset_text_property): New variable.
21039 (Qdefault): Extern it.
21040 (PRINT_STRING_NON_CHARSET_FOUND)
21041 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
21042 (print_check_string_result): New variable.
21043 (print_check_string_charset_prop): New function.
21044 (print_prune_charset_plist): New variable.
21045 (print_prune_string_charset): New function.
21046 (print_object): Call print_prune_string_charset if
21047 Vprint_charset_text_property is not t.
21048 (print_interval): Print nothing if interval->plist is nil.
21049 (syms_of_print): Declare Vprint_charset_text_property as a lisp
21050 variable. Init and staticpro print_prune_charset_plist.
21051
210522008-02-01 Kenichi Handa <handa@m17n.org>
21053
21054 * fontset.c (new_fontset_from_font_name): Use the specified font
21055 for all characters in the new fontset.
21056
21057 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21058 OBJECT args.
21059
21060 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
21061 OBJECT args for composition too.
21062
21063 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
21064 OBJECT args.
21065
210662008-02-01 Kenichi Handa <handa@m17n.org>
21067
21068 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
21069
21070 * fontset.c (reorder_font_vector): Adjust for the change of
21071 FONT_DEF format.
21072 (fontset_face): New arg id. Change caller.
21073 (face_for_char): New args pos and object.
21074 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
21075 (fs_query_fontset): Check NAME by Fassoc too.
21076 (Fset_fontset_font): Allow non-XLFD font name.
21077 (Ffontset_info): Adjust for the change of FONT_DEF format.
21078
21079 * fontset.h (face_for_char): Adjust prototype.
21080
21081 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
21082 (append_space, extend_face_to_end_of_line)
21083 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
21084 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
21085
21086 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
21087 POS and OBJECT args.
21088
21089 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
21090 POS and OBJECT args.
21091
210922008-02-01 Jason Rumney <jasonr@gnu.org>
21093
21094 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
21095 of GlobalAlloc'ed memory.
21096
210972008-02-01 Kenichi Handa <handa@m17n.org>
21098
21099 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
21100
21101 * charset.h (charset_table_used): Delete extern.
21102
21103 * charset.c (charset_table_used): Make it static.
21104 (map_charset_chars): Fix args to c_function with.
21105
21106 * chartab.c (map_sub_char_table_for_charset): Fix args to
21107 c_function with.
21108
21109 * coding.h (enum coding_result_code): Delete
21110 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
21111
21112 * coding.c (Qinsufficient_source, Qinconsistent_eol)
21113 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
21114 (Vlast_code_conversion_error): New variables.
21115 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
21116 (ONE_MORE_BYTE): Record error if any instead of signaling an
21117 error. If non-ASCII multibyte char is found, return the negative
21118 value of the code. All callers changed to check it.
21119 (ONE_MORE_BYTE_NO_CHECK): Likewise.
21120 (record_conversion_result): New function. Change all codes setting
21121 coding->result to call this function.
21122 (detect_coding_utf_8, decode_coding_utf_8)
21123 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
21124 Don't use the local variable incomplete.
21125 (emacs_mule_char): Change the second arg to `const'.
21126 (decode_coding): Fix of flushing out unprocessed data.
21127 (make_conversion_work_buffer): Fix making of a work buffer.
21128 (decode_coding_object): Return coding->dst_object.
21129
21130 * fontset.c (set_fontset_font): Fix args.
21131
21132 * lisp.h (CHARACTERBITS): Define as 22.
21133
21134 * process.c (send_process): Be sure to set coding->src_multibyte.
21135
21136 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
21137
211382008-02-01 Kenichi Handa <handa@m17n.org>
21139
21140 * xdisp.c (handle_auto_composed_prop): Give limit to
21141 Fnext_single_char_property_change.
21142
211432008-02-01 Kenichi Handa <handa@m17n.org>
21144
21145 * composite.c (syms_of_composite): Don't make the composition hash
21146 table weak.
21147
21148 * fontset.c (Fset_fontset_font): Fix docstring.
21149
21150 * lisp.h (detect_coding_system): Adjust prototype.
21151
21152 * fileio.c (kill_workbuf_unwind): Delete this function.
21153 (Finsert_file_contents): Adjust the call of detect_coding_system.
21154 Get conversion_buffer by code_conversion_save. Use the macro
21155 CODING_MAY_REQUIRE_DECODING. After decoding, update
21156 coding_system.
21157
21158 * coding.h (make_conversion_work_buffer): Delete extern.
21159 (code_conversion_save): Extern it.
21160
21161 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
21162 (CODING_GET_INFO): Delete argument eol_type. Change callers.
21163 (decode_coding_utf_8): Don't do eol converion.
21164 (detect_coding_utf_16): Check coding->src_chars, not
21165 coding->src_bytes. Add heuristics for those that have no signature.
21166 (decode_coding_emacs_mule, decode_coding_iso_2022)
21167 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21168 Don't do eol converion.
21169 (adjust_coding_eol_type): Return a new coding system.
21170 (detect_coding): Don't detect eol. Fix for utf-16 detection.
21171 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
21172 each change.
21173 (decode_coding): Pay attention to undo_list. Do eol conversion for
21174 all types of coding-systems (if necessary).
21175 (Vcode_conversion_work_buf_list): Delete it.
21176 (Vcode_conversion_reused_workbuf): Rename from
21177 Vcode_conversion_reused_work_buf.
21178 (Vcode_conversion_workbuf_name): New variable.
21179 (reused_workbuf_in_use): New variable.
21180 (make_conversion_work_buffer): Delete the arg DEPTH.
21181 (code_conversion_restore): Change argument to cons.
21182 (code_conversion_save): Delete the argument BUFFER. Change callers.
21183 (detect_coding_system): New argument src_chars. Change callers.
21184 Fix for utf-16 detection.
21185 (init_coding_once): Don't use ISO_carriage_return.
21186 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
21187 reused_workbuf_in_use.
21188
211892008-02-01 Kenichi Handa <handa@m17n.org>
21190
21191 * keymap.c (store_in_keymap): Pay attention to the case that idx
21192 is a cons specifying a character range.
21193
211942008-02-01 Kenichi Handa <handa@m17n.org>
21195
21196 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
21197 HANDLED_RECOMPUTE_PROPS.
21198
21199 * coding.c (Fdefine_coding_system_internal): Fix checking of
21200 ascii compatibility.
21201
212022008-02-01 Kenichi Handa <handa@m17n.org>
21203
21204 * charset.c (find_charsets_in_text): Delete unused locale variable.
21205 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
21206
21207 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
21208 Resync charset_list to Vemacs_mule_charset_list.
21209
21210 * keymap.c (store_in_keymap): Pay attention to the case that idx
21211 is a cons specifying a character range.
21212
212132008-02-01 Kenichi Handa <handa@m17n.org>
21214
21215 * composite.c (update_compositions): Bind inhibit-read-only, etc
21216 to t before calling remove-list-of-text-properties.
21217
21218 * print.c (print_object): Always print ASCII chars as is.
21219
212202008-02-01 Kenichi Handa <handa@m17n.org>
21221
21222 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
21223
21224 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
21225 is a char table.
21226
212272008-02-01 Kenichi Handa <handa@m17n.org>
21228
21229 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
21230
212312008-02-01 Kenichi Handa <handa@m17n.org>
21232
21233 * xfaces.c (set_lface_from_font_name): Fix for the case that
21234 FONTNAME is not fontset name.
21235
212362008-02-01 Kenichi Handa <handa@m17n.org>
21237
21238 * fns.c (base64_encode_1): Fix previous change.
21239
212402008-02-01 Kenichi Handa <handa@m17n.org>
21241
21242 * fontset.c (set_fontset_font): New function.
21243 (Fset_fontset_font): If a font is specified for a charset, use
21244 map_charset_chars to store the font spec in a fontset.
21245
212462008-02-01 Kenichi Handa <handa@m17n.org>
21247
21248 * fontset.c (fontset_face): Create a fallback fontset on demand.
21249 (make_fontset): Don't create a fallback fontset here.
21250 (free_face_fontset): Free a fallback fontset (if any) too.
21251 (n_auto_fontsets): Delete this variable.
21252 (auto_fontset_alist): New variable.
21253 (new_fontset_from_font_name): Check auto_fontset_alist.
21254 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
21255 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
21256 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
21257 Defsubr Sfontset_list_all.
21258
212592008-02-01 Kenichi Handa <handa@m17n.org>
21260
21261 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
21262
212632008-02-01 Kenichi Handa <handa@m17n.org>
21264
21265 * fontset.c (Fnew_fontset): Check NAME more rigidly.
21266
212672008-02-01 Kenichi Handa <handa@m17n.org>
21268
21269 * editfns.c (Fgoto_char): Fix docstring.
21270
212712008-02-01 Kenichi Handa <handa@m17n.org>
21272
21273 * insdel.c (insert_from_gap): Adjust intervals correctly.
21274
212752008-02-01 Jason Rumney <jasonr@gnu.org>
21276
21277 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
21278 (pfnGetFontUnicodeRanges): New dynamically loaded function.
21279 (w32_initialize): Try to load it.
21280 (x_get_font_repertory): Use it if available.
21281 (w32_encode_char): Add shortcut for unicode output.
21282
21283 * w32fns.c (w32_load_system_font): Default charset to -1.
21284 (x_to_w32_charset): Match all fonts for unicode.
21285 (w32_to_x_charset): New parameter matching. Don't return partial
21286 or wildcard charsets.
21287 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
21288 (w32_codepage_for_font): Return CP_UNICODE for unicode.
21289 (w32_to_x_font): Match charset to real charset.
21290 (enum_font_cb2): Always list unicode versions.
21291
21292 * makefile.w32-in (temacs): Increase EMHEAP.
21293
212942008-02-01 Jason Rumney <jasonr@gnu.org>
21295
21296 * w32term.c (w32_encode_char): New charset parameter.
21297 font_info.encoding becomes encoding_type.
21298 (x_get_font_repertory): New function. Warning: stub only!
21299 (x_new_font): Return quickly if font already set.
21300 (x_new_fontset): fontsetname parameter is Lisp_Object.
21301 Use new fs_query_fontset. Try new_fontset_from_font_name.
21302 Use fontset_name for return value.
21303
21304 * w32term.h: Declare x_get_font_repertory.
21305
21306 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
21307 place of find_charset_in_text. Use encode_coding_object in place
21308 of encode_coding.
21309 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
21310 decode_coding.
21311
21312 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
21313 of x_new_fontset.
21314 (w32_load_system_font): Initialize charset as unicode.
21315 font_info.encoding becomes encoding_type.
21316 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
21317 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
21318 (syms_of_w32fns): Set get_font_repertory_func.
21319
21320 * w32console.c: Include character.h. Use terminal_encode_buffer
21321 from term.c.
21322 (write_glyphs): Use new version of encode_terminal_code. Use
21323 encode_coding_object in place of encode_coding.
21324
21325 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
21326 encoding becomes encoding_type.
21327
21328 * term.c (terminal_encode_buffer): Make externally visible.
21329
21330 * makefile.w32-in: Add character.h dependancies.
21331 (character.o, chartab.o): New targets.
21332
213332008-02-01 Kenichi Handa <handa@m17n.org>
21334
21335 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
21336 CODING_ID_EOL_TYPE.
21337
213382008-02-01 Andreas Schwab <schwab@suse.de>
21339
21340 * coding.c (produce_chars): Revert last change.
21341
213422008-02-01 Kenichi Handa <handa@m17n.org>
21343
21344 * charset.h (charset_unicode): Extern it.
21345
21346 * charset.c (string_xstring_p): Check by (C >= 0x100).
21347 (find_charsets_in_text): Change format of the arc CHARSETS. New
21348 arg MULTIBYTE.
21349 (Ffind_charset_region, Ffind_charset_string): Adjust for the
21350 change of find_charsets_in_text.
21351 (Fsplit_char): Fix doc. Never return unknown.
21352
21353 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
21354
21355 * coding.c (Fdefine_coding_system_alias): Update
21356 Vcoding_system_list.
21357
21358 * fontset.c (load_font_get_repertory): Pay attention to the case
21359 that ENCODING of a font is specified by a char-table.
21360
21361 * xterm.c (x_get_font_repertory): Handle the case that the
21362 encoding of font is other than Unicode.
21363
213642008-02-01 Kenichi Handa <handa@m17n.org>
21365
21366 * term.c (encode_terminal_code): Don't handle glyph-table. Check
21367 if a character is encodable by the terminal coding system. If
21368 not, produces proper number of `?'s. Update
21369 terminal_encode_buffer and terminal_encode_buf_size if necessary.
21370 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
21371
213722008-02-01 Kenichi Handa <handa@m17n.org>
21373
21374 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
21375 variables.
21376 (encode_terminal_code): Change argument. Encode multiple
21377 characters at once. Store the result of encoding in
21378 terminal_encode_buffer.
21379 (write_glyphs, insert_glyphs): Adjust for the change of
21380 encode_terminal_code.
21381 (term_init): Initialize terminal_encode_buffer and
21382 terminal_encode_buf_size.
21383
21384 * coding.c (consume_chars): If coding->src_object is nil, don't
21385 check annotation.
21386
213872008-02-01 Kenichi Handa <handa@m17n.org>
21388
21389 * character.c (char_string): Use ASCII_CHAR_P instead of
21390 SINGLE_BYTE_CHAR_P.
21391
213922008-02-01 Kenichi Handa <handa@m17n.org>
21393
21394 * xdisp.c (handle_auto_composed_prop): Check if the last
21395 characters of auto-composed region is newly composed with the
21396 following characters.
21397 (handle_composition_prop): Fix checking of point being inside
21398 composition.
21399
214002008-02-01 Kenichi Handa <handa@m17n.org>
21401
21402 * fns.c (concat): Don't change multibyteness of the result by
21403 concatenating an 8-bit character.
21404
21405 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
21406 multibyteness of the result when newelt is an 8-bit character.
21407
214082008-02-01 Dave Love <fx@gnu.org>
21409
21410 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
21411 EMACS_INT.
21412
21413 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
21414
21415 * xfaces.c (face_numeric_value): Declare dim size_t.
21416 (Finternal_lisp_face_equal_p): Remove unused f.
21417
21418 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
21419 (MATRIX_ROW): Remove unused vars.
21420 (draw_glyphs, x_insert_glyphs, fast_find_position)
21421 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
21422 byte/char counts.
21423
21424 * regex.c (regex_compile): Remove unused var.
21425
21426 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
21427
21428 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
21429 (Faccessible_keymaps, where_is_internal): Remove unused vars.
21430
21431 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
21432
21433 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
21434
21435 * fileio.c (Fwrite_region): Remove unused var.
21436
21437 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
21438 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
21439
21440 * composite.c (Fremove_list_of_text_properties): Declare.
21441
21442 * coding.c (inhibit_pre_post_conversion): Remove (unused).
21443 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
21444 (coding_inherit_eol_type): Remove unused attrs.
21445 (detect_coding): Cast arg of detect_eol.
21446
21447 * charset.c (syms_of_charset): Remove unused var p.
21448 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
21449 byte/char counts.
21450
21451 * casetab.c (set_case_table): Remove unused var.
21452
21453 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
21454 unused vars.
21455
214562008-02-01 Dave Love <fx@gnu.org>
21457
21458 * xterm.c (x_bitmap_mask): Declare.
21459
214602008-02-01 Dave Love <fx@gnu.org>
21461
21462 * xterm.c (x_term_init): Fix type error.
21463
21464 * lisp.h: Add Funibyte_char_to_multibyte.
21465
21466 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
21467 (Fset_coding_system_priority): Doc fix.
21468
21469 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
21470
21471 * indent.c (check_composition): Make start and end EMACS_INT.
21472
21473 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
21474
21475 * xdisp.c (handle_composition_prop, check_point_in_composition):
21476 Make buffer positions EMACS_INT.
21477
21478 * composite.c (find_composition, run_composition_function)
21479 (update_compositions, Ffind_composition_internal): Make buffer
21480 positions EMACS_INT.
21481
21482 * composite.h (find_composition, update_compositions): Make
21483 position args EMACS_INT.
21484
21485 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
21486
21487 * intervals.c (get_property_and_range):
21488 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
21489
21490 * unexalpha.c: Don't include varargs.h.
21491
214922008-02-01 Dave Love <fx@gnu.org>
21493
21494 * coding.h (ENCODE_UTF_8): New.
21495
21496 * Makefile.in (gtkutil.o): Depend on coding.h.
21497
21498 * coding.c (Fset_coding_system_priority): Doc fix.
21499
215002008-02-01 Kenichi Handa <handa@m17n.org>
21501
21502 * fileio.c (Finsert_file_contents): Call setup_coding_system in
21503 the case of auto saving.
21504
215052008-02-01 Andreas Schwab <schwab@suse.de>
21506
21507 * chartab.c (map_char_table, map_char_table_for_charset): Protect
21508 `range' from GC.
21509
215102008-02-01 Kenichi Handa <handa@m17n.org>
21511
21512 * coding.c (decode_coding_sjis): Check bytes more rigidly.
21513
215142008-02-01 Kenichi Handa <handa@m17n.org>
21515
21516 * fileio.c (choose_write_coding_system): Return a decided coding system.
21517 (Fwrite_region): Set Vlast_coding_system_used to the return value
21518 of choose_write_coding_system.
21519
215202008-02-01 Kenichi Handa <handa@m17n.org>
21521
21522 * charset.c (Fset_charset_priority): Pay attention to duplicated
21523 arguments.
21524
21525 * coding.c (QCcategory): New variable.
21526 (syms_of_coding): Defsym it. Set all elements of
21527 Vcoding_category_table and their symbol values.
21528 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
21529 coding-category-XXX, and coding-category-list.
21530 (Fdefine_coding_system_internal): Add category in the plist.
21531
215322008-02-01 Kenichi Handa <handa@m17n.org>
21533
21534 * callproc.c (Fcall_process): Handle carryover correctly.
21535
21536 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
21537 (raw_text_coding_system): Check NILP (coding_system).
21538 (coding_inherit_eol_type): Check NILP (coding_system) and
21539 NILP (parent).
21540 (consume_chars): Fix for the case of raw-text.
21541
21542 * process.c (read_process_output): Handle carryover correctly.
21543
215442008-02-01 Dave Love <fx@gnu.org>
21545
21546 * regex.c (re_search_2): Fix last change.
21547
215482008-02-01 Kenichi Handa <handa@m17n.org>
21549
21550 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
21551 target_multibyte. Even in a unibyte case, return a converted
21552 multibyte char.
21553 (GET_CHAR_AFTER): New macro.
21554 (PATFETCH): Translate via multibyte char.
21555 (HANDLE_UNIBYTE_RANGE): Delete this macro.
21556 (SETUP_MULTIBYTE_RANGE): New macro.
21557 (regex_compile): Setup compiled code so that its multibyteness
21558 matches that of a target. Fix the handling of "[X-YZ]" using
21559 SETUP_MULTIBYTE_RANGE.
21560 (analyse_first) <charset>: For filling fastmap for all multibyte
21561 characters, don't check by BASE_LEADING_CODE_P.
21562 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
21563 the same as RE_MULTIBYTE_P (bufp) now.
21564 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
21565 (TARGET_CHAR_AND_LENGTH): Delete this macro.
21566 (TRANSLATE_VIA_MULTIBYTE): New macro.
21567 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
21568 It is the same as RE_MULTIBYTE_P (bufp) now.
21569 <exactn>: Translate via multibyte.
21570 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
21571 translate it.
21572 <charset, charset_not>: Fetch a character by
21573 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
21574 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
21575 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
21576 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
21577 by GET_CHAR_AFTER.
21578 (bcmp_translate): Likewise.
21579
21580 * search.c (compile_pattern): Check the member target_multibyte,
21581 not the member multibyte of buf.
21582
21583 * lread.c (read1): While reading a string, set force_singlebyte
21584 and force_multibyte correctly.
21585
21586 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
21587 up of unibyte_to_multibyte_table.
21588
215892008-02-01 Kenichi Handa <handa@m17n.org>
21590
21591 * coding.c (setup_coding_system): If coding has
21592 post-read-conversion or pre-write-conversion, set
21593 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
21594 respectively.
21595 (decode_coding_gap): Run post-read-conversion if any.
21596
21597 * fileio.c (Finsert_file_contents): Even if we read into a
21598 unibyte buffer, check if we must decode the result or not.
21599
216002008-02-01 Kenichi Handa <handa@m17n.org>
21601
21602 * coding.c (make_conversion_work_buffer): Change the work buffer
21603 name to the same one as that of Emacs 21.
21604
216052008-02-01 Kenichi Handa <handa@m17n.org>
21606
21607 * coding.h (make_conversion_work_buffer): Adjust prototype.
21608 (code_conversion_restore): Don't extern it.
21609
21610 * coding.c (detected_mask): Delete unused variable.
21611 (decode_coding_iso_2022): Pay attention to the byte sequence of
21612 CTEXT extended segment, and retain those bytes as is.
21613 (decode_coding_ccl): Delete unused variable `valids'.
21614 (setup_coding_system): Delete unused variable `category'.
21615 (consume_chars): Delete unused variable `category'. Make it work
21616 for non-multibyte case.
21617 (make_conversion_work_buffer): Change argument.
21618 (saved_coding): Delete unused variable.
21619 (code_conversion_restore): Don't check saved_coding->destination.
21620 (code_conversion_save): New function.
21621 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
21622 instead of record_unwind_protect.
21623 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
21624 (detect_coding_system): Delete unused variable `mask'.
21625 (Fdefine_coding_system_internal): Delete unused variable id.
21626
21627 * fileio.c (kill_workbuf_unwind): New function.
21628 (Finsert_file_contents): On replacing, call
21629 make_conversion_work_buffer with correct args, and call
21630 record_unwind_protect with the first arg kill_workbuf_unwind.
21631
21632 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
21633
216342008-02-01 Kenichi Handa <handa@m17n.org>
21635
21636 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
21637 (fontset_add): Fix for the case that TO is less than TO1.
21638 (Ffontset_info): Don't use fallback fontset on checking the
21639 default fontset.
21640 (dump_fontset): New function for debugging.
21641
21642 * coding.c (Fdefine_coding_system_internal): Fix for the case that
21643 coding_type is Qcharset.
21644
216452008-02-01 Kenichi Handa <handa@m17n.org>
21646
21647 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
21648 (map_char_table): Don't inherit the value from the parent on
21649 initializing VAL. Adjust for the above change.
21650
216512008-02-01 Kenichi Handa <handa@m17n.org>
21652
21653 * coding.c (Qsignature, Qendian): Delete these variables.
21654 (syms_of_coding): Don't initialize them.
21655 (CATEGORY_MASK_UTF_16_AUTO): New macro.
21656 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
21657 detect_info->found.
21658 (decode_coding_utf_16): Don't detect BOM here.
21659 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
21660 is NOT utf_16_without_bom.
21661 (setup_coding_system): For a coding system of type utf-16, check
21662 if the attribute :endian is Qbig or not (not nil or not), and set
21663 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
21664 (detect_coding): If coding type is utf-16 and BOM detection is
21665 required, detect it.
21666 (Fdefine_coding_system_internal): For a coding system of type
21667 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
21668
216692008-02-01 Kenichi Handa <handa@m17n.org>
21670
21671 * coding.c (coding_set_source): Fix for the case that the current
21672 buffer is different from coding->src_object.
21673 (decode_coding_object): Don't use the conversion work buffer if
21674 DST_OBJECT is a buffer.
21675
216762008-02-01 Dave Love <fx@gnu.org>
21677
21678 * lread.c (read_emacs_mule_char) [len==2]: Index
21679 emacs_mule_charset correctly.
21680
216812008-02-01 Dave Love <fx@gnu.org>
21682
21683 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
21684 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
21685 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
21686 treated specially.)
21687 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
21688 (detected_mask): Remove Big5 bits.
21689
216902008-02-01 Kenichi Handa <handa@m17n.org>
21691
21692 The following changes are to make the font rescaling facility
21693 compatible with Emacs 21.
21694
21695 * xfaces.c (Vface_font_rescale_alist): Rename from
21696 Vface_resizing_fonts.
21697 (struct font_name): Rename member resizing_ratio to rescale_ratio.
21698 (font_rescale_ratio): Rename from font_resizing_ratio.
21699 (split_font_name): Set font->rescale_ratio.
21700 (better_font_p): Pay attention to font->rescale_ratio.
21701 (build_scalable_font_name): Likewise. Change RESX, and RESY
21702 fields.
21703 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
21704
217052008-02-01 Kenichi Handa <handa@m17n.org>
21706
21707 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
21708 (Qutf_16_le): Remove these variables.
21709 (syms_of_coding): Don't DEFSYM them.
21710 (decode_coding_utf_16): Fix handling of BOM.
21711 (encode_coding_utf_16): Fix handling of BOM.
21712
217132008-02-01 Kenichi Handa <handa@m17n.org>
21714
21715 * fileio.c (Finsert_file_contents): On replacing, before decoding
21716 the file into the work buffer, set point of the work buffer to the end.
21717
217182008-02-01 Dave Love <fx@gnu.org>
21719
21720 * coding.c (Fcheck_coding_systems_region): Fix type errors.
21721
217222008-02-01 Dave Love <fx@gnu.org>
21723
21724 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21725 and fix C types.
21726
217272008-02-01 Kenichi Handa <handa@m17n.org>
21728
21729 * xdisp.c (SKIP_GLYPHS): New macro.
21730 (set_cursor_from_row): Pay attention to string display properties.
21731
21732 * category.c (copy_category_entry): Fix for the case that RANGE
21733 is an integer.
21734
21735 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
21736
21737 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
21738
217392008-02-01 Kenichi Handa <handa@m17n.org>
21740
21741 * charset.c (Fcharset_id_internal): New function.
21742 (syms_of_charset): Defsubr it.
21743
21744 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
21745 with the last arg charset_list acquired from coding.
21746 (Fdefine_coding_system_internal): For ccl-based coding system, fix
21747 the attribute coding_attr_ccl_valids.
21748
21749 * coding.h (enum define_coding_ccl_arg_index): Set the first
21750 member coding_arg_ccl_decoder to coding_arg_max.
21751
21752 * ccl.h (ccl_driver): Adjust prototype.
21753
21754 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
21755 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 21756 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
21757 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
21758 last arg Qnil.
21759
217602008-02-01 Kenichi Handa <handa@m17n.org>
21761
21762 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
21763 call encode_char.
21764
21765 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
21766
217672008-02-01 Dave Love <fx@gnu.org>
21768
21769 * composite.c (syms_of_composite): Make composition_hash_table weak.
21770
217712008-02-01 Kenichi Handa <handa@m17n.org>
21772
21773 * dispextern.h (check_face_attributes, generate_ascii_font_name)
21774 (font_name_registry): Don't extern them.
21775 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
21776
21777 * fontset.h (Qfontset): Don't extern it.
21778 (new_fontset_from_font_name): Extern it.
21779
21780 * fontset.c: Give 8 extra slots to fontset objects.
21781 (Qfontset_info): New variable.
21782 (syms_of_fontset): Defsym it.
21783 (FONTSET_FALLBACK): New macro.
21784 (fontset_face): Try also the default fontset.
21785 (make_fontset): Realize a fallback fontset from the default fontset.
21786 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
21787 using split_font_name_into_vector and build_font_name_from_vector.
21788 (Fset_fontset_font): Access the elements of font_spec by enum
21789 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
21790 name by using split_font_name_into_vector.
21791 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
21792 generate a proper font name from the fontset name. Update
21793 Vfontset_alias_alist.
21794 (n_auto_fontsets): New variable.
21795 (new_fontset_from_font_name): New function.
21796 (Ffont_info): Store the information about fonts generated from the
21797 default fontset in the first extra slot of the returned char-table.
21798
21799 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
21800 (font_name_registry): Delete function.
21801 (split_font_name_into_vector): New function.
21802 (build_font_name_from_vector): New function.
21803 (font_list): The argument REGISTRY is now a list of registry names.
21804 (choose_face_font): If we are choosing an ASCII font, and ATTRS
21805 specifies an explicit font name, return the name as is. Make a
21806 list of registy names.
21807
21808 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
21809 of x_new_fontset.
21810 (Fx_create_frame): Don't call x_new_fontset here. Just use
21811 x_list_fonts to check the existence of fonts.
21812
21813 * xterm.h (x_new_fontset): Adjust prototype.
21814
21815 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
21816 string. Use new_fontset_from_font_name to create a fontset from a
21817 font name.
21818
218192008-02-01 Kenichi Handa <handa@m17n.org>
21820
21821 * syntax.c (Vfind_word_boundary_function_table): New name for
21822 Vnext_word_boundary_function_table.
21823 (find-word-boundary-function-table): New name for
21824 next-word-boundary-function-table.
21825
218262008-02-01 Dave Love <fx@gnu.org>
21827
21828 * Makefile.in: Fix some dependencies.
21829
21830 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
21831 set it to nil before returning.
21832
21833 * composite.c (update_compositions): Fix type error.
21834
21835 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
21836
218372008-02-01 Kenichi Handa <handa@m17n.org>
21838
21839 * xterm.c (x_new_font): Optimize for the case that the font is
21840 already set for the frame.
21841
218422008-02-01 Kenichi Handa <handa@m17n.org>
21843
21844 * chartab.c (char_table_ascii): Check if the char table contents
21845 is sub-char-table or not.
21846 (char_table_set, char_table_set_range): Fix argument to
21847 char_table_ascii.
21848
21849 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
21850 (detect_coding_utf_8, detect_coding_utf_16)
21851 (detect_coding_emacs_mule, detect_coding_iso_2022)
21852 (detect_coding_sjis, detect_coding_big5)
21853 (detect_coding_ccl, detect_coding_charset): Change argument MASK
21854 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
21855 sequence is valid in this coding system. Change callers.
21856 (MAX_ANNOTATION_LENGTH): New macro.
21857 (ADD_ANNOTATION_DATA): New macro.
21858 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
21859 ADD_ANNOTATION_DATA. Change the format of annotation data.
21860 (ADD_CHARSET_DATA): New macro.
21861 (emacs_mule_char): New argument ID. Change callers.
21862 (decode_coding_emacs_mule, decode_coding_iso_2022)
21863 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
21864 Produce charset annotation data in coding->charbuf.
21865 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
21866 to charset annotation data in coding->charbuf.
21867 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
21868 coding->common_flags if the coding system is iso-2022 based and
21869 uses designation.
21870 (produce_composition): Adjust for the new annotation data format.
21871 (produce_charset): New function.
21872 (produce_annotation): Handle charset annotation.
21873 (handle_composition_annotation, handle_charset_annotation): New
21874 functions.
21875 (consume_chars): Handle charset annotation. Utilize the above two
21876 functions.
21877 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
21878 buffer, get the deleted text as a string and set
21879 coding->src_object to that string.
21880 (detect_coding, detect_coding_system): Use the new struct
21881 coding_detection_info.
21882
21883 * coding.h (struct coding_detection_info): New structure.
21884 (struct coding_system): Adjust prototype of the member `detector'.
21885 (CODING_ANNOTATE_CHARSET_MASK): New macro.
21886
218872008-02-01 Kenichi Handa <handa@m17n.org>
21888
21889 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
21890
218912008-02-01 Dave Love <fx@gnu.org>
21892
21893 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
21894 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
21895 to new local and nullify apropos_accumulate before returning.
21896 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
21897
218982008-02-01 Kenichi Handa <handa@m17n.org>
21899
21900 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
21901 correctly.
e3eea1fc 21902
aac0c6e3
MR
219032008-02-01 Dave Love <fx@gnu.org>
21904
21905 * fns.c (Flanginfo): Call synchronize_system_time_locale.
21906
219072008-02-01 Kenichi Handa <handa@m17n.org>
21908
21909 The following changes are to make character composition happen
21910 automatically on displaying.
21911
21912 * Makefile.in (lisp, shortlisp): Add composite.elc.
21913
21914 * composite.h (Qauto_composed, Vauto_composition_function)
21915 (Qauto_composition_function): Extern them.
21916
21917 * composite.c (Vcomposition_function_table)
21918 (Qcomposition_function_table): Delete variables.
21919 (Qauto_composed, Vauto_composition_function)
21920 (Qauto_composition_function): New variables.
21921 (run_composition_function): Don't call
21922 compose-chars-after-function.
21923 (update_compositions): Clear `auto-composed' text property.
21924 (compose_chars_in_text): Delete this function.
21925 (syms_of_composite): Staticpro Qauto_composed and
21926 Qauto_composition_function. Declare Vauto_composition_function as
21927 a Lisp variable.
21928
21929 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
21930
21931 * xdisp.c (it_props): Add an entry for Qauto_composed.
21932 (handle_auto_composed_prop): New function.
21933
21934 * xselect.c (selection_data_to_lisp_data): Don't call
21935 compose_chars_in_text.
21936
219372008-02-01 Dave Love <fx@gnu.org>
21938
21939 * keyboard.c (read_char): Modify checking around use of
21940 Vkeyboard_translate_table.
21941
21942 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
21943 and fix C types.
21944
219452008-02-01 Kenichi Handa <handa@m17n.org>
21946
21947 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
21948 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
21949 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
21950 the case that the last byte is '\r' correctly.
21951 (decode_coding): Flush out the unprocessed data correctly.
21952 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
21953
219542008-02-01 Dave Love <fx@gnu.org>
21955
21956 * xterm.c (XTread_socket): Fix changes for defined keysyms.
21957 Add XK_ISO... case.
21958 (xaw_scroll_callback): Revert last change.
21959
219602008-02-01 Kenichi Handa <handa@m17n.org>
21961
21962 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
21963
219642008-02-01 Kenichi Handa <handa@m17n.org>
21965
21966 * xfaces.c (Vface_resizing_fonts): New variable.
21967 (struct font_name): New member `resizing_ratio'.
21968 (font_resizing_ratio): New function.
21969 (split_font_name): Set font->resizing_ratio.
21970 (better_font_p): Pay attention to font->resizing_ratio.
21971 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
21972 RESX, and RESY fields.
21973 (try_alternative_families): Try scalable fonts if
21974 Vscalable_fonts_allowed is not Qt.
21975 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
21976
219772008-02-01 Dave Love <fx@gnu.org>
21978
21979 * xterm.c (xaw_scroll_callback): Cast correctly.
21980
219812008-02-01 Dave Love <fx@gnu.org>
21982
21983 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
21984 (lispy_kana_keys): Comment out.
21985 (make_lispy_event) [XK_kana_A]: Comment out.
21986
21987 * xterm.c (xaw_scroll_callback): Cast call_data.
21988 (XTread_socket): Deal with ASCII keysyms.
21989 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
21990
219912008-02-01 Dave Love <fx@gnu.org>
21992
21993 * xterm.c (Vx_keysym_table): New.
21994 (syms_of_xterm): Initialize it.
21995 (XTread_socket): Use it.
21996 From head: Eliminate incorrect optimization that tried to avoid
21997 decoding the output of X*LookupString.
21998 (x_get_font_repertory): Delete charset declaration.
21999
220002008-02-01 Kenichi Handa <handa@m17n.org>
22001
22002 * coding.c (detect_coding_charset): If only ASCII bytes are found,
22003 return 0.
22004 (Fdefine_coding_system_internal): Setup
22005 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
22006
220072008-02-01 Dave Love <fx@gnu.org>
22008
22009 * coding.c (Fcheck_coding_system): Doc fix.
22010
22011 * editfns.c (Finsert_byte): Return a proper value.
22012
220132008-02-01 Kenichi Handa <handa@m17n.org>
22014
22015 * coding.c (decode_coding): Fix args to translate_chars. Pay
22016 attention to Vstandard_translation_table_for_decode.
22017 (encode_coding): Fix args to translate_chars. Pay attention to
22018 Vstandard_translation_table_for_encode.
22019
22020 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
22021 SINGLE_BYTE_CHAR_P.
22022
22023 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
22024 not by SINGLE_BYTE_CHAR_P.
22025
22026 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
22027 SINGLE_BYTE_CHAR_P.
22028
22029 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
22030 SINGLE_BYTE_CHAR_P.
22031
22032 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
22033 by SINGLE_BYTE_CHAR_P.
22034
22035 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
22036 SINGLE_BYTE_CHAR_P.
22037
220382008-02-01 Dave Love <fx@gnu.org>
22039
22040 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
22041
220422008-02-01 Dave Love <fx@gnu.org>
22043
22044 * fns.c (Flanginfo): Fix typo.
22045
22046 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
22047
220482008-02-01 Kenichi Handa <handa@m17n.org>
22049
22050 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
22051 (detect_coding_emacs_mule, detect_coding_iso_2022)
22052 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
22053 incomplete byte sequence. Don't update *mask when correctly detected.
22054 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
22055 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
22056 (detect_coding, detect_coding_system): Adjust for the changes above.
22057
220582008-02-01 Kenichi Handa <handa@m17n.org>
22059
22060 * character.c (char_string): Rename from
22061 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
22062 (string_char): Rename from string_char.
22063
22064 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
22065 if C is greater than MAX_3_BYTE_CHAR.
22066 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
22067 string_char instead of string_char_with_unification.
22068
220692008-02-01 Dave Love <fx@gnu.org>
22070
22071 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
22072
220732008-02-01 Kenichi Handa <handa@m17n.org>
22074
22075 * keymap.c (push_key_description): Pay attention to force_multibyte.
22076
22077 * regex.c (re_search_2): Fix for the case of unibyte buffer.
22078
220792008-02-01 Dave Love <fx@gnu.org>
22080
22081 * charset.c (define_charset_internal): Rename `supprementary'.
22082
22083 * Makefile.in (lisp, shortlisp): Remove latin-N.
22084
220852008-02-01 Dave Love <fx@gnu.org>
22086
22087 * xfns.c (x_window, x_window): Use use_xim.
22088
22089 * xterm.c (use_xim): Initialize.
22090 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
22091 (x_term_init): Maybe set use_xim.
22092
22093 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
22094
220952008-02-01 Kenichi Handa <handa@m17n.org>
22096
22097 * search.c (search_buffer): Fix case-fold-search of multibyte
22098 characters.
22099 (boyer_moore): Rename the last argument to char_high_bits.
22100
221012008-02-01 Kenichi Handa <handa@m17n.org>
22102
22103 * xdisp.c (display_string): Fix for the case of zero width glyph.
22104
22105 * xfns.c (x_set_font): Change the error message of the case that
22106 x_new_fontset returns Qt.
22107
22108 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
22109 (Finternal_set_lisp_face_attribute): Use signal_error for the
22110 error of invalid fontset.
22111
22112 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
22113 fontset, return Qt.
22114
221152008-02-01 Dave Love <fx@gnu.org>
22116
22117 * unexelf.c (unexec): Make .got handling not SGI-specific.
22118
22119 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
22120
22121 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
22122
22123 * keyboard.c (read_key_sequence): Fix type error.
22124
22125 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
22126 type error.
22127
22128 * fontset.c (fontset_add): Return Lisp_Object.
22129
221302008-02-01 Dave Love <fx@gnu.org>
22131
22132 * charset.h (charset_ordered_list_tick): Declare extern.
22133
221342008-02-01 Kenichi Handa <handa@m17n.org>
22135
22136 The following changes (and some of 2008-02-01 changes of mine) are
22137 for handling syntax, category, and case conversion for unibyte
22138 characters by converting them to multibyte on the fly. With these
22139 changes, we don't have to setup syntax and case tables for unibyte
22140 characters in each language environment.
22141
22142 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
22143 multibyte if necessary.
22144
22145 * bytecode.c (Fbyte_code): Likewise.
22146
22147 * character.h (LEADING_CODE_LATIN_1_MIN)
22148 (LEADING_CODE_LATIN_1_MAX): New macros.
22149 (unibyte_to_multibyte_table): Extern it.
22150 (unibyte_char_to_multibyte): New macro.
22151 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
22152 (CHAR_LEADING_CODE): New macro.
22153 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
22154
22155 * character.c (unibyte_to_multibyte_table): New variable.
22156 (unibyte_char_to_multibyte): Move to character.h and define as macro.
22157 (multibyte_char_to_unibyte): If C is an eight-bit character,
22158 convert it to the corresponding byte value.
22159
22160 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
22161 not 1, signals an error. Update the elements of
22162 unibyte_to_multibyte_table.
22163 (init_charset_once): Initialize unibyte_to_multibyte_table.
22164 (syms_of_charset): Define the charset `iso-8859-1'.
22165
22166 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
22167 as is without converting it to unibyte. In a unibyte buffer,
22168 convert C to multibyte before checking the syntax.
22169
22170 * lisp.h (unibyte_char_to_multibyte): Delete extern.
22171
22172 * minibuf.c (Fminibuffer_complete_word): Use the macro
22173 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
22174
22175 * regex.h (struct re_pattern_buffer): New member target_multibyte.
22176
22177 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
22178 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
22179 that is zero, convert an eight-bit char to multibyte.
22180 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
22181 non-emacs case.
22182 (PATFETCH): Convert an eight-bit char to multibyte.
22183 (HANDLE_UNIBYTE_RANGE): New macro.
22184 (regex_compile): Setup the compiled pattern for multibyte chars
22185 even if the given regex string is unibyte. Use PATFETCH_RAW
22186 instead of PATFETCH in many places. To handle `charset'
22187 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
22188 only for ASCII chars.
22189 (analyse_first) <exactn>: Simplify because the compiled pattern
22190 is multibyte.
22191 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
22192 <charset>: Use CHAR_LEADING_CODE to get leading codes.
22193 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
22194 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
22195 multibyte always 1.
22196 (re_search_2): In emacs, set the locale variable multibyte to 1,
22197 otherwise to 0. New local variable target_multibyte. Check it
22198 to decide the multibyteness of STR1 and STR2. If
22199 target_multibyte is zero, convert unibyte chars to multibyte
22200 before translating and checking fastmap.
22201 (TARGET_CHAR_AND_LENGTH): New macro.
22202 (re_match_2_internal): In emacs, set the locale variable multibyte
22203 to 1, otherwise to 0. New local variable target_multibyte. Check
22204 it to decide the multibyteness of STR1 and STR2. Use
22205 TARGET_CHAR_AND_LENGTH to fetch a character from D.
22206 <charset, charset_not>: If multibyte is nonzero, check fastmap
22207 only for ASCII chars. Call bcmp_translate with
22208 target_multibyte, not with multibyte.
22209 <begline>: Declare the local variable C as `unsigned'.
22210 (bcmp_translate): Change the last arg name to target_multibyte.
22211
22212 * search.c (compile_pattern_1): Don't adjust the multibyteness of
22213 the regexp pattern and the matching target. Set cp->buf.multibyte
22214 to the multibyteness of the regexp pattern. Set
22215 cp->but.target_multibyte to the multibyteness of the matching target.
22216 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
22217 FETCH_STRING_CHAR_ADVANCE.
22218 (Freplace_match): Convert unibyte chars to multibyte.
22219
22220 * syntax.c (char_quoted, back_comment, scan_words)
22221 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
22222 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
22223 unibyte chars to multibyte.
22224 (skip_chars): Delete the arg syntaxp, and move the code for
22225 handling syntaxes to skip_syntaxes. Change callers.
22226 Fix the case that the multibyteness of STRING and the current
22227 buffer doesn't match.
22228 (skip_syntaxes): New function.
22229 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
22230 SINGLE_BYTE_CHAR_P.
22231
222322008-02-01 Kenichi Handa <handa@m17n.org>
22233
22234 * xfaces.c (QCfontset): New variable.
22235 (LFACE_FONTSET): New macro.
22236 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
22237 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
22238 (Finternal_set_lisp_face_attribute)
22239 (Finternal_get_lisp_face_attribute): Handle QCfontset.
22240 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
22241 check also LFACE_FONTSET_INDEX.
22242 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
22243 attrs[LFACE_FONT_INDEX].
22244 (syms_of_xfaces): Intern and staticpro QCfontset.
22245
22246 * dispextern.h (enum lface_attribute_index): New member
22247 LFACE_FONTSET_INDEX.
22248
22249 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
22250
222512008-02-01 Kenichi Handa <handa@m17n.org>
22252
22253 * coding.c (coding_set_destination): Fix coding->destination for
22254 the case converting a region.
22255 (encode_coding_utf_8): Encode eight-bit chars as single byte.
22256 (encode_coding_object): Fix coding->dst_pos and
22257 coding->dst_pos_byte for the case converting a region.
22258
22259 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
22260
22261 * character.h (BYTE8_STRING): New macro.
22262
22263 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
22264
222652008-02-01 Kenichi Handa <handa@m17n.org>
22266
22267 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
22268 characters by octal form.
22269
22270 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
22271
22272 * buffer.h (_fetch_multibyte_char_len): Delete extern.
22273 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
22274 _fetch_multibyte_char_len.
22275 (FETCH_CHAR_AS_MULTIBYTE): New macro.
22276
22277 * casetab.c (set_canon, set_identity, shuffle): Simplify.
22278
22279 * casefiddle.c (casify_object): Simplify. Handle the case that
22280 the case conversion change the byte length.
22281 (casify_region): Likewise.
22282
22283 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
22284
22285 * character.c (_fetch_multibyte_char_len): Delete this variable.
22286 (syms_of_character): Setup Vprintable_chars.
22287
22288 * editfns.c (Fchar_equal): Fix for the unibyte case.
22289 (Finsert_byte): New function.
22290 (syms_of_editfns): Defsubr it.
22291
22292 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
22293 of direct code 0x3ffff.
22294
22295 * search.c (Freplace_match): Fix for the unibyte case.
22296
222972008-02-01 Kenichi Handa <handa@m17n.org>
22298
22299 * lread.c (safe_to_load_p): Fix the logic.
22300
22301 * syntax.c (scan_words): Don't treat characters belonging to
22302 different scripts as constituting a word.
22303
22304 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22305
22306 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
22307
22308 * emacs.c (main): In the case of --unibyte, instead of aborting on
22309 finding non-empty buffer, make it unibyte.
22310
223112008-02-01 Kenichi Handa <handa@m17n.org>
22312
22313 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
22314 to create a fontset.
22315
223162008-02-01 Dave Love <fx@gnu.org>
22317
22318 * character.c (Funibyte_char_to_multibyte): Doc fix.
22319
22320 * xfns.c [HAVE_STDLIB_H]: Fix last change.
22321
223222008-02-01 Kenichi Handa <handa@m17n.org>
22323
22324 * fontset.c (fontset_add): Make the type `int'.
22325 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
22326
22327 * character.c (unibyte_char_to_multibyte)
22328 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
22329 charset_unibyte, not charset_primary.
22330
22331 * charset.h (charset_unibyte): Extern it instead of charset_primary.
22332
22333 * charset.c (charset_unibyte): Rename from charset_primary.
22334 (Funibyte_charset): Rename from Fprimary_charset.
22335 (Fset_unibyte_charset): Rename from Fset_primary_charset.
22336 (syms_of_charset): Adjust for the above changes.
22337
22338 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22339 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22340 it->multibyte_p is zero.
22341
22342 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
22343 Delete extern.
22344
223452008-02-01 Kenichi Handa <handa@m17n.org>
22346
22347 * coding.c (Fdefine_coding_system_internal): Fix category setting
22348 for a coding system of type iso-2022.
22349
223502008-02-01 Kenichi Handa <handa@m17n.org>
22351
22352 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
22353
223542008-02-01 Kenichi Handa <handa@m17n.org>
22355
22356 * syntax.c (Vnext_word_boundary_function_table): New variable.
22357 (next-word-boundary-function-table): Declare it as a Lisp variable
22358 in syms_of_syntax.
22359 (scan_words): Call functions in Vnext_word_boundary_function_table
22360 if any.
22361
22362 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
22363
22364 * fontset.c (fs_load_font): If fontp->charset is not negative,
22365 return fontp without setting its members.
22366
223672008-02-01 Dave Love <fx@gnu.org>
22368
22369 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
22370
22371 * m/sparc.h (HAVE_ALLOCA): Delete.
22372
22373 * s/irix6-5.h: Don't include strings.h.
22374 (bcopy, bzero, bcmp): Don't undef.
22375
22376 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
22377
22378 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
22379 (TIOCSIGSEND): Don't test IRIX6.
22380 (bcopy, bzero, bcmp): Define conditionally.
22381
223822008-02-01 Kenichi Handa <handa@m17n.org>
22383
22384 * buffer.c (Qas, Qmake, Qto): New variables.
22385 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
22386 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
22387
22388 * callproc.c (Fcall_process): Don't call insert_1_both directly if
22389 we are inserting a process output into a multibyte buffer.
22390
22391 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
22392 multibyte_char_to_unibyte.
22393
22394 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
22395 by the primary charset, make it eight-bit char.
22396 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
22397
22398 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
22399 (charset_8_bit__control, charset_8_bit_graphic)
22400 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
22401 (define_charset_internal): New function.
22402 (syms_of_charset): Call define_charset_internal for pre-defined
22403 charsets.
22404
22405 * charset.h (charset_8_bit): Extern it.
22406
22407 * coding.c (make_conversion_work_buffer): Adjust for the change
22408 of Fset_buffer_multibyte.
22409 (encode_coding_raw_text): Increment p0 in the loop.
22410
22411 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
22412
22413 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
22414 for the change of Fset_buffer_multibyte.
22415
22416 * fns.c (Fstring_to_multibyte): New function.
22417 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
22418
224192008-02-01 Dave Love <fx@gnu.org>
22420
22421 * xfns.c (x_put_x_image): Declare args.
22422
22423 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
22424 (try_font_list): Declare an arg.
22425
22426 * xdisp.c (message2_nolog, set_message): Declare an arg.
22427
22428 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
22429
22430 * syntax.c (scan_sexps_forward): Declare an arg.
22431
22432 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
22433 Declare an arg.
22434
22435 * lisp.h (Fnew_fontset): Declare.
22436
22437 * keymap.c (push_key_description): Call CHARACTERP correctly.
22438
22439 * fontset.c (fontset_add): Declare args. Call make_number correctly.
22440 (face_for_char): Delete unused vars.
22441 (Fset_fontset_font): Doc fix. Delete unused vars.
22442
22443 * doc.c (Fsubstitute_command_keys): Delete unused vars.
22444
22445 * composite.c (update_compositions): Declare arg.
22446
22447 * cm.c (calccost, cmgoto): Declare args.
22448
22449 * charset.c: Remove `emacs' conditional. Doc fixes.
22450 (map_char_table_for_charset): Declare.
22451
22452 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
22453
22454 * ccl.c: Remove `emacs' conditional.
22455
224562008-02-01 Kenichi Handa <handa@m17n.org>
22457
22458 The following changes are to allow specifying multiple font
22459 patterns for a character range (specified by script or charset).
22460
22461 * Makefile.in (abbrev.o): Depend on syntax.h.
22462 (xfaces.o): Depend on charset.h.
22463
22464 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
22465 SINGLE_BYTE_CHAR_P.
22466
22467 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
22468
22469 * character.h (Vchar_script_table): Extern it.
22470
22471 * character.c (Vscript_alist): Delete.
22472 (Vchar_script_table, Qchar_script_table): New variable.
22473 (syms_of_character): Declare Vchar_script_table as a lisp variable
22474 and initialize it.
22475
22476 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
22477 have property char-table-extra-slots, make no extra slot.
22478
22479 * dispextern.h (struct face): Delete member `charset'.
22480 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
22481 SINGLE_BYTE_CHAR_P.
22482 (choose_face_font, lookup_non_ascii_face, font_name_registry):
22483 Add prototypes.
22484 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
22485 (generate_ascii_font_name): Rename from generate_ascii_font.
22486
22487 * fontset.h (get_font_repertory_func): New prototype.
22488 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
22489 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
22490
22491 * fontset.c (Qprepend, Qappend): New variables.
22492 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
22493 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
22494 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
22495 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
22496 (fontset_ref_and_range, fontset_add, reorder_font_vector)
22497 (load_font_get_repertory): New functions.
22498 (fontset_set): Delete.
22499 (fontset_face): New arg FACE. Return face ID, not face.
22500 Complete re-write to handle new fontset structure. Change caller.
22501 (free_face_fontset): Use ASET istead of AREF (X) = Y.
22502 (face_for_char): Don't call lookup_face.
22503 (make_fontset_for_ascii_face): New arg FACE.
22504 (fs_load_font): New arg CHARSET_ID. Don't check
22505 Vfont_encoding_alist here.
22506 (find_font_encoding): New function.
22507 (list_fontsets): Use STRINGP, not ! NILP.
22508 (accumulate_script_ranges): New function.
22509 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
22510 re-written to handle new fontset structure.
22511 (Ffontset_font): Return a copy of element.
22512 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
22513 docstring of font-encoding-alist.
22514
22515 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
22516 (Fset_fotset_font): Fix arguments to 5.
22517
22518 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
22519
22520 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
22521 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22522 (highlight_trailing_whitespace): Adjust for the change of
22523 lookup_named_face.
22524
22525 * xfaces.c: Include charset.h.
22526 (load_face_font): Delete argument C. Change caller.
22527 (generate_ascii_font_name): Rename from generate_ascii_font.
22528 (font_name_registry): New function.
22529 (cache_face): Store ascii faces before non-ascii faces in buckets.
22530 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
22531 Lookup only ascii faces.
22532 (lookup_non_ascii_face): New function.
22533 (lookup_named_face): Delete argument C. Change caller.
22534 (lookup_derived_face): Delete argument C. Change caller.
22535 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
22536 a string, just call font_list with it.
22537 (choose_face_font): Delete arguments FACE and C. New arg
22538 FONT_SPEC. Change caller.
22539 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
22540 Change caller.
22541 (realize_non_ascii_face): New function.
22542 (realize_x_face): Call load_face_font here.
22543 (realize_tty_face): Delete argument C. Change caller.
22544 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
22545 get a face ID.
22546 (dump_realized_face): Don't print charset of FACE.
22547
22548 * xfns.c (x_set_font): Always call x_new_fontset and
22549 store_frame_parameter.
22550 (Fx_create_frame): Call x_new_fontset, not x_new_font.
22551 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
22552
22553 * xterm.h (x_get_font_repertory): Extern it.
22554
22555 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
22556 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
22557 it->multibyte_p is zero.
22558 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
22559 (x_new_fontset): If FONTSETNAME doesn't match any existing
22560 fontsets, create a new one.
22561 (x_get_font_repertory): New function.
22562
225632008-02-01 Kenichi Handa <handa@m17n.org>
22564
22565 * coding.c (Ffind_coding_systems_region_internal): Detect an
22566 ASCII only string correctly.
22567
22568 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
22569 version is 0.
22570
225712008-02-01 Kenichi Handa <handa@m17n.org>
22572
22573 * lread.c: Include "coding.h".
22574 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
22575 (load_each_byte, unread_char): New variables.
22576 (readchar_backlog): Delete.
22577 (readchar): Return a character unless load_each_byte is nonzero.
22578 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
22579 cons. If unread_char is not -1, simply return it.
22580 (unreadchar): Handle the case that readcharfun is
22581 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
22582 (read_multibyte): Delete.
22583 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
22584 (read_emacs_mule_char): New functions.
22585 (Fload): Even if the file doesn't have the extension ".elc", if
22586 safe_to_load_p returns a positive version number, assume that the
22587 file contains bytecompiled code. If the version is less than 22,
22588 load the file while decoding multibyte sequences by emacs-mule.
22589 (readevalloop): Don't use readchar_backlog.
22590 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
22591 (Fread_from_string): Pay attention to the case that STREAM is a cons.
22592 (read_escape): Delete the arg BYTEREP.
22593 (read1): Set load_each_byte to 1 temporarily while handling
22594 #@NUMBER. Don't call read_multibyte.
22595 (read_vector): Call Fread with a cons. If readcharfun is
22596 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
22597 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
22598 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
22599 and Qload_force_doc_strings.
22600
226012008-02-01 Kenichi Handa <handa@m17n.org>
22602
22603 * xdisp.c (face_before_or_after_it_pos): Call
22604 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
22605
226062008-02-01 Kenichi Handa <handa@m17n.org>
22607
22608 * character.h (TRAILING_CODE_P): New macro.
22609 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
22610 (string_char_with_unification): Fix prototype.
22611 (Vscript_alist): Extern it.
22612
22613 * character.c (Vscript_alist): New variable.
22614 (string_char_with_unification, str_as_unibyte)
22615 (string_escape_byte8): Add `const' to local variables.
22616 (syms_of_character): Declare script-alist as a Lisp variable.
22617
22618 * charset.h (Vcharset_ordered_list): Extern it.
22619 (charset_ordered_list_tick): Extern it.
22620 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
22621 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
22622 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
22623 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
22624 (Funify_charset): Adjust for the change of Funify_charset.
22625
22626 * charset.c (charset_ordered_list_tick): New variable.
22627 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
22628 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 22629 deunify instead of unify a charset.
aac0c6e3
MR
22630 (string_xstring_p): Add `const' to local variables.
22631 (find_charsets_in_text): Add `const' to arguments and local variables.
22632 (encode_char): Adjust for the change of Funify_charset. Fix
22633 detecting of invalid code.
22634 (Fset_charset_priority): Increment charset_ordered_list_tick.
22635 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
22636 and TO_CODE.
22637
22638 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
22639 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
22640 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
22641 (decode_coding_ccl, consume_chars)
22642 (Ffind_coding_systems_region_internal)
22643 (Fcheck_coding_systems_region): Add `const' to local variables.
22644
22645 * print.c (print_object): Use octal form for printing the
22646 contents of a bool vector.
22647
226482008-02-01 Dave Love <fx@gnu.org>
22649
22650 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
22651 <version == 20>: Refuse to load.
22652
226532008-02-01 Dave Love <fx@gnu.org>
22654
22655 * fns.c: Move coding.h.
22656 (Qcodeset, Qdays, Qmonths): New.
22657 (concat): Use CHARACTERP instead of INTEGERP.
22658 (Flocale_codeset): Delete.
22659 (Flanginfo): New function.
22660 (syms_of_fns): Change accordingly.
22661
22662 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
22663
226642008-02-01 Dave Love <fx@gnu.org>
22665
22666 * casetab.c (init_casetab_once, init_casetab_once): Fix
22667 CHAR_TABLE_SET call.
22668
22669 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
22670
22671 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
22672
22673 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
22674 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
22675 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
22676
22677 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
22678
22679 * coding.c (ENCODE_DESIGNATION, decode_eol)
22680 (make_conversion_work_buffer, code_conversion_restore)
22681 (Fdefine_coding_system_internal): Convert Lisp types.
22682 (code_conversion_restore): Use EQ, not ==.
22683 (Fencode_coding_string): Fix code_convert_string call.
22684
22685 * coding.h (code_convert_region): Fix prototype.
22686
22687 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
22688
22689 * fontset.c (fontset_ref, fontset_set, fs_load_font)
22690 (Ffontset_info): Convert Lisp types.
22691
22692 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
22693
22694 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
22695
22696 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
22697
22698 * chartab.c: Include "...h", not <...h> in some cases.
22699
22700 * callproc.c (Fcall_process): Remove unused variables.
22701
227022008-02-01 Dave Love <fx@gnu.org>
22703
22704 * coding.c (Fset_coding_system_priority): Allow null arg list.
22705
227062008-02-01 Dave Love <fx@gnu.org>
22707
22708 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
22709 (Fself_insert_and_exit): Use CHARACTERP.
22710
22711 * callproc.c (Fcall_process): Remove unused vars.
22712
22713 * xterm.c (XTread_socket): Add extra dead keysyms.
22714
22715 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
22716
22717 * dispextern.h: Remove prototypes for redraw_frame,
22718 redraw_garbaged_frames.
22719
22720 * cmds.c (Fself_insert_command): Use CHARACTERP.
22721
22722 * chartab.c (make_sub_char_table): Remove unused var.
22723 (Fset_char_table_default, Fmap_char_table): Doc fix.
22724
22725 * keymap.c (access_keymap): Remove generic char code.
22726 (push_key_description): Use CHARACTERP.
22727
227282008-02-01 Dave Love <fx@gnu.org>
22729
22730 * charset.c: Doc fixes.
22731 (Funify_charset): Extra checking.
22732
227332008-02-01 Dave Love <fx@gnu.org>
22734
22735 * lread.c: Remove some unused variables.
22736 (safe_to_load_p): If safe, return the magic number version byte.
22737 (Fload): Maybe use load-with-code-conversion.
22738
227392008-02-01 Kenichi Handa <handa@m17n.org>
22740
22741 * category.c (Fmodify_category_entry): Don't modify the contents
22742 of category_set for characters out of the range. Avoid
22743 unnecessary modification.
22744
22745 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
22746 Vchar_unify_table. The default value of the table is now nil.
22747
22748 * character.c (syms_of_character): Setup Vchar_width_table for
22749 eight-bit-control and raw-byte chars.
22750
22751 * charset.h (enum define_charset_arg_index): Delete
22752 charset_arg_parents and add charset_arg_subset and
22753 charset_arg_superset.
22754 (enum charset_attr_index): Delete charset_parents and add
22755 charset_subset and charset_superset.
22756 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
22757 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
22758 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
22759 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
22760 (CHARSET_SUPERSET): New macros.
22761 (charset_work): Extern it.
22762 (ENCODE_CHAR): Use charset_work.
22763 (CHAR_CHARSET_P): Adjust for the change of encoder format.
22764 (map_charset_chars): Extern it.
22765
22766 * charset.c (load_charset_map): Set the default value of encoder
22767 and deunifier char-tables to nil.
22768 (map_charset_chars): Change argument. Change callers. Use
22769 map_char_table_for_charset instead of map_char_table.
22770 (Fmap_charset_chars): New optional args from_code and to_code.
22771 (Fdefine_charset_internal): Adjust for the change of
22772 `define-charset' (:parents -> :subset or :superset).
22773 (charset_work): New variable.
22774 (encode_char, syms_of_charset): Adjust for the change of
22775 Fdefine_charset_internal.
22776 (Ffind_charset_string): Setup the vector `charsets' correctly.
22777
22778 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
22779 the previous change.
22780 (char_table_ref_and_range): Adjust for the above change.
22781 (map_sub_char_table_for_charset): New function.
22782 (map_char_table_for_charset): New function.
22783
22784 * keymap.c (describe_vector): Handle a char-table directly here.
22785 (describe_char_table): Delete.
22786
22787 * lisp.h (map_charset_chars): Delete.
22788
227892008-02-01 Dave Love <fx@gnu.org>
22790
22791 * fns.c (count_combining): Comment out (unused).
22792 (Flocale_codeset): New.
22793 (syms_of_fns): Defsubr it.
22794
22795 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
22796 (size_t): Remove.
22797
227982008-02-01 Dave Love <fx@gnu.org>
22799
22800 * Makefile.in (chartab.o): Depend on charset.h.
22801
228022008-02-01 Kenichi Handa <handa@m17n.org>
22803
22804 * character.c (syms_of_character): Set the default value of
22805 Vprintable_chars to Qnil.
22806
228072008-02-01 Dave Love <fx@gnu.org>
22808
22809 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
22810
228112008-02-01 Kenichi Handa <handa@m17n.org>
22812
22813 * charset.c (load_charset_map): Handle the case that from < to
22814 correctly.
22815
22816 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
22817 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
22818 Pay attention to raw-8-bit chars.
22819
228202008-02-01 Kenichi Handa <handa@m17n.org>
22821
22822 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
22823 It is not bytecompiled now.
22824
22825 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
22826 (charset_jisx0208): New variables.
22827 (Fdefine_charset_internal): Setup them if appropriate.
22828 (init_charset_once): Initialize them to -1.
22829
22830 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
22831 (charset_jisx0208): Extern them.
22832
22833 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
22834 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
22835 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
22836 (setup_iso_safe_charsets): Fix arguments to Fassq.
22837 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
22838 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
22839 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
22840 (encode_coding_iso_2022): Change the 1st arg to
22841 ENCODE_ISO_CHARACTER to a variable.
22842
228432008-02-01 Kenichi Handa <handa@m17n.org>
22844
22845 * charset.h (enum define_charset_arg_index): New enums
22846 charset_arg_min_code and charset_arg_max_code.
22847 (struct charset): New member char_index_offset.
22848
22849 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
22850 Take charset->char_index_offset into account.
22851 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
22852 args[charset_arg_max_code]. Setup charset.char_index_offset.
22853 (syms_of_charset): Fix args to Fdefine_charset_internal.
22854
228552008-02-01 Dave Love <fx@gnu.org>
22856
22857 * coding.c (decode_coding_utf_8): Reject overlong sequences.
22858
228592008-02-01 Dave Love <fx@gnu.org>
22860
22861 * coding.c: Doc fixes.
22862 (Fcoding_system_aliases): Fix return value.
22863 (Qmac): Remove (duplicated) definition.
22864
228652008-02-01 Dave Love <fx@gnu.org>
22866
362654a6
JB
22867 * charset.c (Fcharset_priority_list, Fset_charset_priority):
22868 New functions.
aac0c6e3
MR
22869
22870 * character.c (Fstring): Doc fix.
22871
22872 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
22873
362654a6 22874 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
22875 (font-encoding-alist): Doc fix.
22876
228772008-02-01 Dave Love <fx@gnu.org>
22878
22879 * term.c (costs_set): Declare static, non-initialized for pcc.
22880 (encode_terminal_code): Remove unused var.
22881
22882 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
22883 for K&R.
22884
22885 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
22886
22887 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
22888 (suffixes): Move out of make_subsidiaries for K&R.
22889
22890 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
22891
22892 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
22893
228942008-02-01 Dave Love <fx@gnu.org>
22895
22896 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
22897
22898 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
22899
229002008-02-01 Yong Lu <lyongu@asia-infonet.com>
22901
22902 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
22903
22904 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
22905
229062008-02-01 Kenichi Handa <handa@m17n.org>
22907
22908 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
22909 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
22910
229112008-02-01 Kenichi Handa <handa@m17n.org>
22912
22913 * coding.c (decode_coding_charset): Adjust for the change of
22914 Fdefine_coding_system_internal.
22915 (Fdefine_coding_system_internal): For a coding system of
22916 `charset' type, store a list of charset IDs in
22917 `charset_attr_charset_valids' element of coding attributes.
22918
229192008-02-01 Kenichi Handa <handa@m17n.org>
22920
22921 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
22922 (emacs_mule_char): New arg src. Delete arg `composition'. Change
22923 caller. Handle 2-byte and 3-byte charsets correctly.
22924 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
22925 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
22926 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
22927 (DECODE_EMACS_MULE_21_COMPOSITION): Call
22928 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
22929 sequence.
22930 (decode_coding_emacs_mule): Handle composition correctly. Rewind
22931 `src' and `consumed_chars' correctly before calling emacs_mule_char.
22932 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
22933 and alt&rule composition.
22934 (decode_coding_iso_2022): Handle composition correctly.
22935 (init_coding_once): Setup emacs_mule_bytes for private charsets.
22936
22937 * charset.c (Fdefine_charset_internal): Fix bug for the case of
22938 re-defining a charset. If the charset has :emacs-mule-id, setup
22939 emacs_mule_bytes.
22940 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
22941
229422008-02-01 Kenichi Handa <handa@m17n.org>
22943
22944 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
22945 (encode_coding_big5, encode_coding_charset): If coding requires safe
22946 encoding, produce a character specified by
22947 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
22948
229492008-02-01 Dave Love <fx@gnu.org>
22950
22951 * xterm.c (XSetIMValues): Declare.
22952
22953 * process.c: Conditionally include sys/wait.h, pty.h.
22954
22955 * print.c (print_object): Fix print format for 64-bit systems.
22956
22957 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
22958
22959 * buffer.c (emacs_strerror): Declare.
22960
22961 * fontset.c (Fclear_face_cache): Declare.
22962 (accumulate_font_info): Comment-out (unused).
22963 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
22964 variables.
22965
22966 * character.h (string_escape_byte8): Declare.
22967
22968 * charset.c (load_charset_map, load_charset_map_from_file): Remove
22969 unused vars.
22970 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
22971 (Fmap_charset_chars): Doc fix.
22972
22973 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
22974 (Fset_coding_system_priority, Fset_coding_system_priority)
22975 (Fdefine_coding_system_internal): Doc fix.
22976
229772008-02-01 Dave Love <fx@gnu.org>
22978
22979 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
22980
229812008-02-01 Kenichi Handa <handa@m17n.org>
22982
22983 * character.c (string_escape_byte8): Make multibyte string with
22984 correct size.
22985
22986 * charset.c (Fmake_char): Delete unnecessary code.
22987
229882008-02-01 Kenichi Handa <handa@m17n.org>
22989
22990 * xfns.c (x_encode_text): Allocate coding.destination here, and
22991 call encode_coding_object with dst_object Qnil.
22992
22993 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
22994 multibyte form correctly.
22995
22996 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
22997 against Vfont_encoding_alist.
22998
22999 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
23000 handling of charset list.
23001 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
23002 (decode_coding_object): Move point to coding->dst_pos before
23003 calling post-read-conversion function.
23004 (encode_coding_object): Give correct arguments to
23005 pre-write-conversion. Ignore the return value of
23006 pre-write-conversion function. Pay attention to the case that
23007 pre-write-conversion changes the current buffer. If dst_object is
23008 Qt, even if coding->src_bytes is zero, allocate at least one byte
23009 to coding->destination.
23010
23011 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
23012
23013 * charset.c (Fmake_char): Make it more backward compatible.
23014 (Fmap_charset_chars): Fix docstring.
23015
230162008-02-01 Dave Love <fx@gnu.org>
23017
23018 * coding.c: Doc fixes.
23019 (Fdefine_coding_system_alias): Use names, not symbols, in
23020 coding-system-alist.
23021
230222008-02-01 Kenichi Handa <handa@m17n.org>
23023
23024 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
23025 of calling free_realized_face.
23026
230272008-02-01 Yong Lu <lyongu@asia-infonet.com>
23028
23029 * charset.c (read_hex): Don't treat SPC as a comment starter.
23030 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
23031 (Fdecode_char): Fix typo.
23032
230332008-02-01 Kenichi Handa <handa@m17n.org>
23034
23035 * charset.h (struct charset): New member `code_space_mask'.
23036
23037 * coding.c (coding_set_source): Delete the local variable beg_byte.
23038 (encode_coding_charset, Fdefine_coding_system_internal):
23039 Delete the local variable charset.
23040 (Fdefine_coding_system_internal): Setup
23041 attrs[coding_attr_charset_valids] correctly.
23042
23043 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
23044 member to check if CODE is valid or not.
23045 (Fdefine_charset_internal): Initialize `code_space_mask' member.
23046 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
23047 is within the range of charset->min_code and carset->max_code.
23048
230492008-02-01 Dave Love <fx@gnu.org>
23050
23051 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
23052
23053 * dispextern.h (generate_ascii_font): Fix return type.
23054
23055 * xfaces.c (generate_ascii_font): Fix arg declaration.
23056
23057 * coding.c (coding_inherit_eol_type)
23058 (Fset_terminal_coding_system_internal)
23059 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
23060
230612008-02-01 Kenichi Handa <handa@m17n.org>
23062
23063 * coding.c (decode_coding_charset, encode_coding_charset): Handle
23064 multiple charsets correctly.
23065
230662008-02-01 Kenichi Handa <handa@m17n.org>
23067
23068 * search.c (boyer_moore): Fix handling of multibyte character
23069 translation.
23070
23071 * xdisp.c (display_mode_element): When the variable `elt' is
23072 changed, update `this' and `lisp_string'.
23073
230742008-02-01 Kenichi Handa <handa@m17n.org>
23075
23076 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
23077
23078 * callproc.c (Fcall_process): Be sure to give the current buffer
23079 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
23080
23081 * charset.c (struct charset_map_entries): New struct.
23082 (load_charset_map): Rename from parse_charset_map. New args
23083 entries and n_entries. Change caller.
23084 (load_charset_map_from_file): Rename from load_charset_map.
23085 Change caller. New arg control_flag. Call load_charset_map at
23086 the tail.
23087 (load_charset_map_from_vector): New function.
23088 (Fdefine_charset_internal): Setup charset.compact_codes_p.
23089 (encode_char): If the charset is compact, change a character index
23090 to a code point.
23091
23092 * coding.c (coding_alloc_by_making_gap): Check the case that the
23093 source and destination are the same correctly.
23094 (decode_coding_raw_text): Set coding->consumed_char and
23095 coding->consumed to 0.
23096 (produce_chars): If coding->chars_at_source is nonzero, update
23097 coding->consumed_char and coding->consumed before calling
23098 alloc_destination.
23099 (Fdefine_coding_system_alias): Register ALIAS in
23100 Vcoding_system_alist.
23101 (syms_of_coding): Define `no-conversion' coding system at the tail.
23102
23103 * fileio.c (Finsert_file_contents): Set coding_system instead of
23104 val. If the current buffer is multibyte, always call
23105 decode_coding_gap.
23106
23107 * xfaces.c (try_font_list): Give higher priority to fontset's
23108 family than face's family.
23109
231102008-02-01 Kenichi Handa <handa@m17n.org>
23111
23112 * callproc.c (Fcall_process): Be sure to give the current buffer
23113 to decode_coding_c_string.
23114
23115 * xfaces.c (try_font_list): Give a family specified in a fontset
23116 higher priority than a family specified in a face.
23117
231182008-02-01 Kenichi Handa <handa@m17n.org>
23119
23120 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
23121 Fix arguments to insert_from_buffer.
23122
23123 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
23124
231252008-02-01 Kenichi Handa <handa@m17n.org>
23126
23127 * coding.c (produce_chars): Set the variable `multibytep' correctly.
23128 (decode_coding_gap): Set coding->dst_multibyte correctly.
23129
231302008-02-01 Kenichi Handa <handa@m17n.org>
23131
23132 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
23133 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
23134 (encode_coding_utf_16): Substitute coding->default_char for
23135 non-Unicode characters.
23136 (decode_coding): Don't call record_insert here.
23137 (setup_coding_system): Initialize `surrogate' of
23138 coding->spec.utf_16 to 0.
23139 (EMIT_ONE_BYTE): Fix for multibyte case.
23140
23141 * insdel.c (insert_from_gap): Call record_insert.
23142
231432008-02-01 Kenichi Handa <handa@m17n.org>
23144
23145 * casefiddle.c (casify_region): Fix multibyte case.
23146
23147 * character.c (c_string_width): Add return type `int'.
23148 (char_string_with_unification): Delete arg ADVANCED.
23149
23150 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
23151 (CHAR_STRING): Adjust for the change of char_string_with_unification.
23152 (CHAR_STRING_ADVANCE): Make it do-while statement.
23153
23154 * chartab.c (sub_char_table_set_range): Optimize for the case
23155 DEPTH == 3. Add workaround code for a GCC optimization bug.
23156
23157 * charset.c (parse_charset_map): Remove an unused variable.
23158
23159 * coding.c: Delete unused variables.
23160
23161 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
23162 earlier. If inserted is zero and the coding system doesn't
23163 require flushing, don't call decode_coding_gap.
23164
23165 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
23166
231672008-02-01 Kenichi Handa <handa@m17n.org>
23168
23169 The following changes are for using Unicode as an internal
23170 character model, and use UTF-8 format for buffer/string
23171 representation.
23172
23173 * .gdbinit (xchartable): Adjust for the change of char table structure.
23174 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
23175
23176 * Makefile.in (obj): Add character.o and chartab.o.
23177 (lisp, shortlisp): Remove utf-8.elc.
23178 (*.o): For many files, change dependency on charset.h to
23179 character.h, and add dependency on character.h.
23180 (character.o, chartab.o): New targets.
23181
23182 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
23183 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
23184 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
23185 of "charset.h".
23186
23187 * dired.c, filelock.c: Include "character.h".
23188
23189 * alloc.c: Include "character.h" instead of "charset.h".
23190 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
23191 (syms_of_alloc): Remove defsubr for Smake_char_table.
23192
23193 * buffer.c: Include "character.h" instead of "charset.h", don't
23194 include "coding.h".
23195 (Fset_buffer_multibyte): Adjust for UTF-8.
23196
23197 * buffer.h: EXFUN Fbuffer_live_p.
23198
23199 * callproc.c: Include "character.h" instead of "charset.h".
23200 (Fcall_process): Big change for the new code-conversion APIs.
23201
23202 * casetab.c: Include "character.h" instead of "charset.h".
23203 (set_canon, set_identity, shuffle): Adjust for the new
23204 map_char_table spec.
23205 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
23206 accessing the char table structure.
23207
23208 * chartab.c: New file that implements char table.
23209
23210 * category.c: Include "character.h".
23211 (copy_category_entry): New function.
23212 (copy_category_table): Call map_char_table and copy_category_entry.
23213 (Fmake_category_table): Initialize all top-level slots.
23214 (char_category_set): New function.
23215 (modify_lower_category_set): Delete.
23216 (Fmodify_category_entry): Call char_table_ref_and_range.
23217
23218 * category.h (CATEGORY_SET): Just call char_category_set.
23219
23220 * ccl.c: Include "character.h".
23221 (Qccl, Qcclp): New variables.
23222 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
23223 it's less than 256.
23224 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
23225 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
23226 and DST type.
23227 (ccl_driver): Change types of argument, adjust code accordingly.
23228 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
23229 ccl_driver.
23230 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
23231
23232 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
23233 New members src_multibyte, dst_multibyte, consumed, and produced.
23234 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
23235 (CODING_SPEC_CCL_PROGRAM): New macro.
23236 (ccl_driver): Update prototype.
23237 (Qccl, Qcclp, Fccl_program_p): Extern them.
23238 (CHECK_CCL_PROGRAM): New macro.
23239
23240 * character.c, character.h, chartab.c: New files.
23241
23242 * charset.c: Mostly re-written. Move character and multibyte sequence
23243 handling codes to character.c.
23244
23245 * charset.h: Mostly re-written. Move character and multibyte sequence
23246 handling codes to character.h.
23247
23248 * coding.c, coding.h: Mostly re-written.
23249
23250 * composite.c: Include "character.h" instead of "charset.h".
23251 (CHAR_WIDTH): Move to character.h.
23252 (HASH_KEY, HASH_VALUE): Delete.
23253
23254 * composite.h (enum composition_method): Change order of enumeration
23255 symbols.
23256
23257 * data.c: Include "character.h" instead of "charset.h".
23258 (Faref): Call CHAR_TABLE_REF for a char table.
23259 (Faset): Call CHAR_TABLE_SET for a char table.
23260
23261 * dispextern.h (free_realized_face, check_face_attribytes)
23262 (generate_ascii_font): Extern them.
23263 (free_realized_multibyte_face): Delete extern.
23264
23265 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
23266 table structure.
23267
23268 * editfns.c: Include "character.h" instead of "charset.h".
23269 (Fchar_to_string): Always call CHAR_STRING.
23270
23271 * emacs.c (main): Call init_charset_once, init_charset,
23272 syms_of_chartab, and syms_of_character.
23273
23274 * fileio.c: Include "character.h" instead of "charset.h".
23275 (Finsert_file_contents): Big change for the new code-conversion API.
23276 (choose_write_coding_system, Fwrite_region): Likewise.
23277 (build_annotations_2): Delete.
23278 (e_write): Big change for the new code-conversion API.
23279
23280 * fns.c: Include "character.h" instead of "charset.h".
23281 (copy_sub_char_table): Move to chartab.c.
23282 (Fcopy_sequence): Call copy_char_table for a char table.
23283 (concat): Delete codes calling count_multibyte.
23284 (string_char_to_byte, string_byte_to_char): Adjust for the new
23285 multibyte form.
23286 (internal_equal): Adjust for the change of char table structure.
23287 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
23288 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
23289 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
23290 (char_table_translate, optimize_sub_char_table)
23291 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
23292 chartab.c.
23293 (char_table_ref_and_index): Delete.
23294 (HASH_KEY, HASH_VALUE): Move to lisp.h.
23295 (Fmd5): Call preferred_coding_system instead of accessing
23296 Vcoding_category_list. Adjust for the new code-conversion API.
23297 (syms_of_fns): Move defsubr for char table related functions to
23298 chartab.c.
23299
23300 * fontset.c: Mostly re-written.
23301
23302 * fontset.h (struct font_info): Change type of the member encoding_type.
23303 (enum FONT_SPEC_INDEX): New enum.
23304 (fontset_font_pattern, fs_load_font): Update prototype.
23305 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
23306
23307 * indent.c: Include "character.h" instead of "charset.h".
23308 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
23309
23310 * insdel.c: Include "character.h" instead of "charset.h".
23311 (copy_text): Don't refer to Vnonascii_translation_table.
23312 (insert_from_gap): New function.
23313
23314 * keyboard.c: Include "character.h" instead of "charset.h".
23315 (command_loop_1): Never call direct_output_forward_char before
23316 a non-ASCII character.
23317 (read_char): If Vkeyboard_translate_table is a char table, always
23318 translate a character.
23319
23320 * keymap.c: Include "character.h".
23321 (store_in_keymap): Handle the case that IDX is a cons.
23322 (Fdefine_key): Handle the case that KEY is a cons and the car part
23323 is also a cons (range).
23324 (push_key_description): Adjust for the new character code.
23325 (describe_vector): Call describe_char_table for a char table.
23326 (describe_char_table): New function.
23327
23328 * keymap.h (describe_char_table): Extern it.
23329
23330 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
23331 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
23332 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
23333 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
23334 Delete.
23335 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
23336 structure.
23337 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
23338 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
23339 (CHARTAB_SIZE_BITS_3): New macros.
23340 (chartab_size): Extern it.
23341 (struct Lisp_Char_Table): Re-design.
23342 (struct Lisp_Sub_Char_Table): New structure.
23343 (HASH_KEY, HASH_VALUE): Move from fns.c.
23344 (CHARACTERBITS): Define as 22.
23345 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
23346 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
23347 (GC_SUB_CHAR_TABLE_P): New macro.
23348 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
23349 (code_convert_string_norecord): Deleted extern.
23350 (init_character_once, syms_of_character, init_charset)
23351 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
23352
23353 * lread.c: Include "character.h".
23354 (read_multibyte): New arg NBYTES.
23355 (read_escape): Change the meaning of returned *BYTEREP.
23356 (to_multibyte): Delete.
23357 (read1): Adjust the handling of char table and string.
23358
23359 * print.c: Include "character.h" instead of "charset.h".
23360 (print_string): Convert 8-bit raw bytes to octal form by
23361 string_escape_byte8.
23362 (print_object): Adjust for the new multibyte form. Print 8-bit
23363 raw bytes always in octal form. Handle sub char table correctly.
23364
23365 * process.c: Include "character.h" instead of "charset.h".
23366 (read_process_output, send_process): Adjust for the new
23367 code-conversion API.
23368
23369 * puresize.h (BASE_PURESIZE): Increase.
23370
23371 * regex.c: Include "character.h" instead of "charset.h".
23372 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
23373 (regex_compile): Accept a range whose starting and ending
23374 character have different leading bytes.
23375 (analyse_first): Adjust for the above change.
23376
23377 * search.c: Include "character.h" instead of "charset.h".
23378 (search_buffer, boyer_moore): Adjust for the new multibyte form.
23379 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
23380
23381 * syntax.c: Include "character.h" instead of "charset.h".
23382 (syntax_parent_lookup): Delete.
23383 (Fmodify_syntax_entry): Accept a cons as CHAR.
23384 (skip_chars): Adjust for the new multibyte form.
23385 (init_syntax_once): Call char_table_set_range instead of directly
23386 accessing the structure of a char table.
23387
23388 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
23389 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
23390 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
23391 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
23392
23393 * term.c: Include "buffer.h" and "character.h".
23394 (encode_terminal_code, write_glyphs): Adjust for the new
23395 code-conversion API.
23396 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
23397
23398 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
23399
23400 * xdisp.c: Include "character.h".
23401 (get_next_display_element): Adjust for the new multibyte form.
23402 (disp_char_vector): Adjust for the new char table structure.
23403 (decode_mode_spec_coding): Adjust for the new structure of
23404 coding system.
23405 (decode_mode_spec): Adjust for the new code-conversion API.
23406
23407 * xfaces.c: Include "character.h" instead of "charset.h".
23408 (load_face_font): Adjust for the change of choose_face_font and
23409 FS_LOAD_FONT.
23410 (generate_ascii_font): New function.
23411 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
23412 (set_font_frame_param): Adjust for the change of choose_face_font.
23413 (free_realized_face): Make it public.
23414 (free_realized_faces_for_fontset): Rename from
23415 free_realized_multibyte_face. Free also faces realized for ASCII.
23416 (choose_face_font): Change arguments. Adjust for the change of
23417 fontset_font_pattern and FS_LOAD_FONT.
23418
23419 * xfns.c: Include "character.h".
23420 (x_encode_text): Adjust for the new code-conversion API.
23421
23422 * xselect.c: Don't include "charset.h".
23423 (selection_data_to_lisp_data): Adjust for the new code conversion API.
23424
23425 * xterm.c: Include "character.h".
23426 (x_encode_char): New argument CHARSET. Change caller.
23427 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
23428 Call ENCODE_CHAR instead of SPLIT_CHAR.
23429 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
23430 CHAR_WIDTH instead of CHARSET_WIDTH.
23431 (XTread_socket): Adjust for the new code-conversion API.
23432 (x_new_font): Adjust for the change of FS_LOAD_FONT.
23433 (x_load_font): Adjust for the change of struct font.
23434
234352008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23436
23437 * xfaces.c (face_at_buffer_position): Remove unused vars.
23438
234392008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23440
23441 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
23442 Fix overflow checking.
23443
234442008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23445
23446 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
23447 Cancel previous change.
23448
234492008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23450
23451 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
23452 ccl->eight_bit_control. Fix check for buffer overflow.
23453 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
23454 (ccl_driver): Initialize extra_bytes to 0.
23455
234562008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
23457
23458 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
23459 return it ORed with ctrl_modifier.
23460
234612008-01-29 Miles Bader <miles@gnu.org>
23462
23463 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
23464
234652008-01-28 Jason Rumney <jasonr@gnu.org>
23466
23467 * w32.c (stat): Don't double check for networked drive.
23468
234692008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
23470
23471 * window.c (run_window_configuration_change_hook): New function.
23472 Code extracted from set_window_buffer. Set the selected frame.
23473 (set_window_buffer): Use it.
23474 * window.h (run_window_configuration_change_hook): Declare.
23475 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
23476
23477 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
23478
234792008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
23480
23481 * Makefile.in: Remove references to unused macros.
23482
234832008-01-26 Eli Zaretskii <eliz@gnu.org>
23484
23485 * w32.c (g_b_init_get_sid_sub_authority)
23486 (g_b_init_get_sid_sub_authority_count): New static variables.
23487 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
23488 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
23489 (init_user_info): Use them to retrieve uid and gid.
23490 Use 500/513, the Windows defaults, as Administrator's uid/gid.
23491 (fstat): Use pw_uid and pw_gid from the_passwd structure for
23492 st_uid and st_gid of the file.
23493
234942008-01-26 Jason Rumney <jasonr@gnu.org>
23495
23496 * w32.c (logon_network_drive): New function.
23497 (stat): Use it.
23498
234992008-01-26 Chong Yidong <cyd@stupidchicken.com>
23500
23501 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
23502 invisible text covered with an ellipsis.
23503
235042008-01-25 Richard Stallman <rms@gnu.org>
23505
23506 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
23507 jump back to beginning. Move some other initializations after that.
23508 (Qwindow_text_change_functions, Vwindow_text_change_functions):
23509 New variables.
23510 (syms_of_xdisp): Init them.
23511
23512 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
23513
23514 * buffer.c (reset_buffer_local_variables):
23515 Implement `permanent-local-hook'.
23516 (Qpermanent_local_hook): New variable.
23517 (syms_of_buffer): Init and staticpro it.
23518
235192008-01-25 Michael Albinus <michael.albinus@gmx.de>
23520
23521 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
23522
235232008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
23524
23525 * fns.c (Fclrhash): Return TABLE.
23526
235272008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23528
23529 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
23530 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
23531 is set even without positional changes.
23532 (x_scroll_bar_clear): Set bar->redraw_needed_p.
23533
23534 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
23535
235362008-01-23 Jason Rumney <jasonr@gnu.org>
23537
23538 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
23539
23540 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
23541 the unicode range available in MULE by locale-coding-system.
23542 Improve dbcs lead byte detection. Set event timestamp and modifiers
23543 earlier.
23544
235452008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23546
23547 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
23548 [MAC_OSX] (init_mac_osx_environment): Initialize it.
23549 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
23550 when used on child processes.
23551
235522008-01-21 Michael Albinus <michael.albinus@gmx.de>
23553
23554 * dbusbind.c (Fdbus_method_return_internal): Rename from
23555 Fdbus_method_return.
23556 (Fdbus_unregister_object): Move to dbus.el.
23557 (Fdbus_call_method, Fdbus_method_return_internal)
23558 (Fdbus_send_signal): Improve debug messages.
23559
235602008-01-20 Martin Rudalics <rudalics@gmx.at>
23561
23562 * undo.c (undo_inhibit_record_point): New variable.
23563 (syms_of_undo): Initialize it.
23564 (record_point): Don't record point when undo_inhibit_record_point
23565 is set.
23566
235672008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
23568
23569 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
23570
23571 * xdisp.c (Qauto_hscroll_mode): New var.
23572 (syms_of_xdisp): Initialize it.
23573 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
23574 window's buffer.
23575 (hscroll_windows): Don't check automatic_hscrolling_p here.
23576
23577 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
23578 vscroll if we're setting window-buffer to the value it already has.
23579
235802008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
23581
23582 * m/intel386.h: Remove references to XENIX.
23583
235842008-01-17 Andreas Schwab <schwab@suse.de>
23585
23586 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
23587 instead of HAVE_X86_64_LIB64_DIR.
23588 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
23589
235902008-01-17 Glenn Morris <rgm@gnu.org>
23591
23592 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
23593 to HAVE_X86_64_LIB64_DIR.
23594
235952008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
23596
23597 * s/irix3-3.h:
23598 * s/irix4-0.h:
23599 * s/386-ix.h:
23600 * s/domain.h:
23601 * s/hpux9-x11r4.h:
23602 * s/hpux9shxr4.h: Remove files for systems no longer supported.
23603
23604 * sysdep.c: Remove code containing references to symbols defined
23605 by unsupported systems.
23606
236072008-01-16 Glenn Morris <rgm@gnu.org>
23608
23609 * coding.c (select-safe-coding-system-function): Doc fix.
23610
236112008-01-15 Glenn Morris <rgm@gnu.org>
23612
23613 * config.in: Revert 2008-01-13 change: this is a generated file.
23614
236152008-01-13 Tom Tromey <tromey@redhat.com>
23616
23617 * lisp.h: Fix typo.
23618
236192008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23620
23621 * m/sequent-ptx.h:
23622 * m/sequent.h:
23623 * s/ptx.h:
23624 * s/ptx4-2.h:
23625 * s/ptx4.h: Remove files for systems no longer supported.
23626
23627 * callproc.c (Fcall_process): Fix previous change.
23628
236292008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
23630
23631 * unexsunos4.c: Remove file, system not supported anymore.
23632
23633 * m/mips.h:
23634 * m/intel386.h:
23635 * callproc.c:
23636 * config.in:
23637 * ecrt0.c:
23638 * emacs.c:
23639 * fileio.c:
23640 * frame.c:
23641 * getpagesize.h:
23642 * keyboard.c:
23643 * lread.c:
23644 * process.c:
23645 * puresize.h:
23646 * sysdep.c:
23647 * systty.h:
23648 * syswait.h:
23649 * unexec.c:
23650 * xdisp.c:
23651 * alloc.c: Remove code containing references to symbols defined by
23652 unsupported systems.
23653
236542008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
23655
23656 * coding.c (detect_coding_mask): Fix previous change.
23657
236582008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
23659
23660 * coding.c (detect_coding_iso2022): New arg
23661 latin_extra_code_state. Allow Latin extra codes only
23662 when *latin_extra_code_state is nonzero.
23663 (detect_coding_mask): If there is a NULL byte, detect the encoding
23664 as UTF-16 or binary. If Latin extra codes exist, detect the
23665 encoding as ISO-2022 only when there's no other proper encoding is
23666 found.
23667
236682008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23669
23670 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
23671 #ifdef MAC_OS.
23672
236732008-01-08 Richard Stallman <rms@gnu.org>
23674
23675 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
23676
236772008-01-06 Nick Roberts <nickrob@snap.net.nz>
23678
23679 * keyboard.c (parse_menu_item): Don't enclose key bindings on
23680 menu bar in parentheses.
23681
236822008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
23683
23684 * m/7300.h:
23685 * m/acorn.h:
23686 * m/alliant-2800.h:
23687 * m/alliant.h:
23688 * m/alliant1.h:
23689 * m/alliant4.h:
23690 * m/altos.h:
23691 * m/amdahl.h:
23692 * m/apollo.h:
23693 * m/att3b.h:
23694 * m/aviion-intel.h:
23695 * m/aviion.h:
23696 * m/celerity.h:
23697 * m/clipper.h:
23698 * m/cnvrgnt.h:
23699 * m/convex.h:
23700 * m/cydra5.h:
23701 * m/delta88k.h:
23702 * m/dpx2.h:
23703 * m/dual.h:
23704 * m/elxsi.h:
23705 * m/f301.h:
23706 * m/gould-np1.h:
23707 * m/gould.h:
23708 * m/i860.h:
23709 * m/ibmps2-aix.h:
23710 * m/ibmrt-aix.h:
23711 * m/ibmrt.h:
23712 * m/irist.h:
23713 * m/is386.h:
23714 * m/isi-ov.h:
23715 * m/mega68.h:
23716 * m/mg1.h:
23717 * m/news-r6.h:
23718 * m/news-risc.h:
23719 * m/news.h:
23720 * m/nh3000.h:
23721 * m/nh4000.h:
23722 * m/ns16000.h:
23723 * m/ns32000.h:
23724 * m/nu.h:
23725 * m/orion.h:
23726 * m/orion105.h:
23727 * m/paragon.h:
23728 * m/pfa50.h:
23729 * m/plexus.h:
23730 * m/pyramid.h:
23731 * m/pyrmips.h:
23732 * m/sh3el.h:
23733 * m/sps7.h:
23734 * m/sr2k.h:
23735 * m/stride.h:
23736 * m/sun1.h:
23737 * m/sun2.h:
23738 * m/sun3-68881.h:
23739 * m/sun3-fpa.h:
23740 * m/sun3-soft.h:
23741 * m/sun3.h:
23742 * m/sun386.h:
23743 * m/symmetry.h:
23744 * m/tad68k.h:
23745 * m/tahoe.h:
23746 * m/targon31.h:
23747 * m/tek4300.h:
23748 * m/tekxd88.h:
23749 * m/tower32.h:
23750 * m/tower32v3.h:
23751 * m/ustation.h:
23752 * m/wicat.h:
23753 * m/xps100.h:
23754 * s/cxux.h:
23755 * s/cxux7.h:
23756 * s/dgux.h:
23757 * s/dgux4.h:
23758 * s/dgux5-4-3.h:
23759 * s/dgux5-4r2.h:
23760 * s/esix.h:
23761 * s/esix5r4.h:
23762 * s/hiuxmpp.h:
23763 * s/hiuxwe2.h:
23764 * s/iris3-5.h:
23765 * s/iris3-6.h:
23766 * s/isc2-2.h:
23767 * s/isc3-0.h:
23768 * s/isc4-0.h:
23769 * s/isc4-1.h:
23770 * s/newsos5.h:
23771 * s/newsos6.h:
23772 * s/osf1.h:
23773 * s/osf5-0.h:
23774 * s/riscix1-1.h:
23775 * s/riscix12.h:
23776 * s/sco4.h:
23777 * s/sco5.h:
23778 * s/sunos4-0.h:
23779 * s/sunos4-1.h:
23780 * s/sunos413.h:
23781 * s/sunos4shr.h:
23782 * s/umax.h:
23783 * s/unipl5-2.h:
23784 * s/xenix.h:
23785 * cxux-crt0.s:
23786 * unexapollo.c:
23787 * unexconvex.c:
23788 * unexenix.c:
23789 * unexsni.c: Remove files for systems no longer supported.
23790
23791 * m/intel386.h: Remove references to unsupported systems.
23792
23793 * w32.c (get_emacs_configuration): Remove reference to i860.
23794
23795 * sysdep.c: Remove dead code.
23796
237972008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
23798
23799 * s/rtu.h:
23800 * m/masscomp.h: Remove files. Platform is obsolete.
23801
238022008-01-04 Michael Albinus <michael.albinus@gmx.de>
23803
23804 * dbusbind.c (Fdbus_method_return): New function.
23805 (xd_read_message): Add the serial number to the event.
23806 (Fdbus_register_method): Activate the function.
23807
238082008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
23809
23810 * keyboard.c (read_key_sequence): Fix typo.
23811
238122008-01-03 Michael Albinus <michael.albinus@gmx.de>
23813
23814 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
23815 (xd_signature, xd_append_arg): Handle element type detection for
23816 empty arrays.
23817 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
23818 SDATA () calls; this must be solved more general.
23819 (Fdbus_register_signal): Use SBYTES instead of strlen.
23820
238212008-01-03 Magnus Henoch <magnus@zemdatav>
23822
23823 * dbusbind.c (xd_append_arg): Use unsigned char instead of
23824 unsigned int for byte values (necessary for big-endian platform).
23825 (Fdbus_call_method): Handle the case of no returned arguments.
23826
238272007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
23828
23829 * dbusbind.c (xd_read_message): Use non-static input_event struct.
23830
238312007-12-31 Magnus Henoch <mange@freemail.hu>
23832
23833 * dbusbind.c (xd_signature): Signature of variant is just "v".
23834
238352007-12-30 Michael Albinus <michael.albinus@gmx.de>
23836
23837 * dbusbind.c: Fix several errors and compiler warnings.
23838 Reported by Tom Tromey <tromey@redhat.com>.
23839 (XD_ERROR, XD_DEBUG_MESSAGE)
23840 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
23841 (xd_append_arg): Part for basic D-Bus types rewritten.
23842 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
23843 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
23844 appropriate.
23845 (xd_read_message): Return Qnil. Don't signal an error; it is not
23846 useful during event reading.
23847 (Fdbus_register_signal): Signal an error if the check for
23848 FUNCTIONP fails.
23849 (Fdbus_register_method): New function. The implementation is not
23850 complete, the call of the function signals an error therefore.
23851 (Fdbus_unregister_object): New function, renamed from
23852 Fdbus_unregister_signal. The initial check signals an error, if
23853 the object is not well formed.
23854
238552007-12-30 Richard Stallman <rms@gnu.org>
23856
23857 * textprop.c (get_char_property_and_overlay):
23858 Signal error if POSITION is out of range in a buffer.
23859
238602007-12-29 Martin Rudalics <rudalics@gmx.at>
23861
23862 * w32fns.c (Fx_create_frame): Make copy of frame parameters
23863 because the original parameters are in pure storage now.
23864
238652007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
23866
23867 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
23868
238692007-12-22 Eli Zaretskii <eliz@gnu.org>
23870
23871 * callint.c (syms_of_callint) <command-history>: Add reference to
23872 history-length in the doc string.
23873
238742007-12-17 Jason Rumney <jasonr@gnu.org>
23875
23876 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
23877 before passing as wParam.
23878
238792007-12-22 Michael Albinus <michael.albinus@gmx.de>
23880
23881 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
23882 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
23883 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
23884 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
23885 as number.
23886 (Fdbus_call_method): Fix docstring.
23887
238882007-12-21 Michael Albinus <michael.albinus@gmx.de>
23889
23890 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
23891 New macros.
23892 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
23893 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
23894 Simplify.
23895 (xd_signature): New function.
23896 (xd_append_arg): Compute also signatures. Major rewrite.
23897 (xd_retrieve_arg): Make debug messages friendly.
23898 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
23899 Check for signatures of arguments.
23900
239012007-12-19 Michael Albinus <michael.albinus@gmx.de>
23902
23903 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
23904 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
23905 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
23906 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
23907 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
23908 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
23909 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
23910 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
23911 (xd_retrieve_value): Remove. Functionality included in ...
23912 (xd_append_arg): New function.
23913 (Fdbus_call_method, Fdbus_send_signal): Apply it.
23914
239152007-12-16 Michael Albinus <michael.albinus@gmx.de>
23916
23917 * dbusbind.c (top): Include <stdio.h>.
23918 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
23919 dbus_message_new_method_call and dbus_message_new_signal.
23920 (Fdbus_register_signal): Rename unique_name to uname.
23921 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
23922 non-existing unique name. Fix typos in matching rule. Return an
23923 object which is useful in Fdbus_unregister_signal.
23924 (Fdbus_unregister_signal): Reimplementation, in order to remove
23925 only the corresponding entry.
23926 (Vdbus_registered_functions_table): Change the order of entries.
23927 Apply these changes in xd_read_message and Fdbus_register_signal.
23928
239292007-12-16 Andreas Schwab <schwab@suse.de>
23930
23931 * fileio.c (Finsert_file_contents): Fix overflow check to not
23932 depend on undefined integer overflow.
23933
239342007-12-14 Jason Rumney <jasonr@gnu.org>
23935
23936 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
23937 for characters above 127.
23938
239392007-12-13 Jason Rumney <jasonr@gnu.org>
23940
23941 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
23942 before dereferencing array.
23943 (lookup_vk_code): Remove zero comparison.
23944
239452007-12-14 Michael Albinus <michael.albinus@gmx.de>
23946
23947 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
23948 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
23949 Use `unsigned int' instead of `uint'.
23950 (xd_read_message, Fdbus_register_signal): Split expressions into
23951 multiple lines before operators "&&" and "||", according to the
23952 GNU Coding Standards.
23953
239542007-12-14 Eli Zaretskii <eliz@gnu.org>
23955
23956 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
23957
239582007-12-12 Juri Linkov <juri@jurta.org>
23959
23960 * buffer.c (Frename_buffer): In interactive spec replace
23961 `read-buffer' with `read-string' that uses `buffer-name-history'
23962 as history, and the current buffer's name as default.
23963
239642007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
23965
23966 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
23967 manipulating the backtrace manually.
23968 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
23969 (struct backtrace, backtrace_list): Remove.
23970 (command_loop_1): Remove dead var `no_direct'.
23971
23972 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
23973 preserve non-built-in buffer-local variables.
23974 (Fkill_all_local_variables): Don't re-create&re-set permanent
23975 buffer-local variables.
23976
239772007-12-09 Juri Linkov <juri@jurta.org>
23978
23979 * buffer.c (Frename_buffer): Change interactive spec from "s" to
23980 Lisp code that uses `read-buffer' with current buffer as default.
23981
239822007-12-08 Michael Albinus <michael.albinus@gmx.de>
23983
23984 * dbusbind.c (xd_read_message): Generate an event for every
23985 registered handler. There might be several handlers registered
23986 for the same signal.
23987 (Fdbus_register_signal): Don't overwrite a registration for the
23988 same signal. Add a new registration if handlers are different.
23989 (Vdbus_registered_functions_table): Rework doc string.
23990
239912007-12-07 Michael Albinus <michael.albinus@gmx.de>
23992
23993 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
23994 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
23995 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
23996 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
23997 Unify argument lists.
23998 (xd_read_message, Fdbus_register_signal): Reorder and extend event
23999 arguments and hash table keys. Use unique name for service.
24000 (Fdbus_unregister_signal): Remove checks.
24001 (Vdbus_registered_functions_table): Fix doc string.
24002
240032007-12-05 Magnus Henoch <mange@freemail.hu>
24004
24005 * process.c (make_process): Initialize pty_flag to 0.
24006
240072007-12-05 Jason Rumney <jasonr@gnu.org>
24008
24009 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
24010 specified XBMs.
24011
240122007-12-05 Richard Stallman <rms@gnu.org>
24013
24014 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
24015
240162007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24017
24018 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
24019 New variable.
24020 (mac_try_close_socket) [MAC_OSX]: New function.
24021 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
24022 Update cfsockets_for_select. Replace invalid CFRunLoop source.
24023
24024 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
24025 Use mac_try_close_socket.
24026
240272007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24028
24029 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
24030 reloc_base.
24031 (copy_dysymtab): Compute relocation base here.
24032 (rebase_reloc_address) [__ppc64__]: New function.
24033 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
24034 changed.
24035
240362007-12-05 Jason Rumney <jasonr@gnu.org>
24037
24038 * w32proc.c (sys_spawnve): Quote args with wildcards.
24039
240402007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24041
24042 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
24043 __objc_* sections.
24044 (unrelocate) [_LP64]: Set relocation base to address of data segment.
24045
240462007-12-05 Michael Albinus <michael.albinus@gmx.de>
24047
24048 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
24049 Move check for Vdbus_registered_functions_table to
24050 xd_read_queued_messages.
24051 (xd_read_queued_messages): Protect xd_read_message calls by
24052 internal_condition_case_1.
24053
240542007-12-04 Michael Albinus <michael.albinus@gmx.de>
24055
24056 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
24057 Qdbus_system_bus and Qdbus_session_bus, respectively.
24058 (Vdbus_intern_symbols): Remove.
24059 (Vdbus_registered_functions_table): New hash table.
24060 (XD_SYMBOL_INTERN_SYMBOL): Remove.
24061 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
24062 Rewrite in order to manage registered functions by hash table
24063 Vdbus_registered_functions_table.
24064
240652007-12-03 Jan Djärv <jan.h.d@swipnet.se>
24066
24067 * xterm.c: Update URL to Window Manager Specification in comment.
24068
240692007-12-02 Michael Albinus <michael.albinus@gmx.de>
24070
24071 * config.in (HAVE_DBUS): Add.
24072
24073 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
24074 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
24075 (obj): Add $(DBUS_OBJ).
24076 (LIBES): Add $(DBUS_LIBS).
24077 (dbusbind.o): New target.
24078
24079 * dbusbind.c: New file.
24080
24081 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
24082
24083 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
24084 (Qdbus_event): New Lisp symbol.
24085 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
24086 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 24087 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
24088
24089 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
24090
240912007-12-01 Richard Stallman <rms@gnu.org>
24092
24093 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
24094
240952007-11-30 Jason Rumney <jasonr@gnu.org>
24096
24097 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
24098 (w32con_reset_terminal_modes): Clear screen buffer.
24099 (w32_face_attributes): Don't use color indexes that are out of range.
24100 Only reverse the default colors.
24101
24102 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
24103 WINDOWSNT.
24104
24105 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
24106
241072007-11-29 Jason Rumney <jasonr@gnu.org>
24108
24109 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
24110 (w32_face_attributes): Use Vtty_defined_color_alist to determine
24111 if the terminal colors are initialized.
24112 (unspecified_fg, unspecified_bg): Remove unused declarations.
24113
241142007-11-29 Andreas Schwab <schwab@suse.de>
24115
24116 * keyboard.c (apply_modifiers): Fix typo.
24117
241182007-11-29 Richard Stallman <rms@gnu.org>
24119
24120 * keymap.c (Fcurrent_local_map): Doc fix.
24121
241222007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
24123
24124 * s/gnu-kfreebsd.h: New file.
24125
241262007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
24127
24128 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
24129 Don't cast redundantly.
24130
24131 * keyboard.c (KEY_TO_CHAR): New macro.
24132 (parse_modifiers, apply_modifiers): Accept integer arguments.
24133 (read_key_sequence): Use them to unify the "shift->unshift" mapping
24134 for chars and symbol keys.
24135 After doing such remapping, apply function-key-map again.
24136
241372007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
24138
24139 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
24140 compiled anymore.
24141
241422007-11-26 Andreas Schwab <schwab@suse.de>
24143
24144 * process.c (list_processes_1): Fix indentation level of the
24145 command column.
24146
241472007-11-23 Andreas Schwab <schwab@suse.de>
24148
24149 * editfns.c (Fformat): Handle %c specially since it requires the
24150 argument to be of type int.
24151
241522007-11-23 Markus Triska <markus.triska@gmx.at>
24153
24154 * emacs.c (main): Call init_editfns before init_process, since
24155 init_process sets Vprocess_connection_type depending on OS release.
24156
241572007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
24158
24159 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
24160 (find_symbol_value): Use do_symval_forwarding.
24161
24162 * data.c (set_internal): Set the value in the `cons-cell' (for
24163 Buffer_Local_values) not only for frame-local variables.
24164
241652007-11-22 Andreas Schwab <schwab@suse.de>
24166
24167 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
24168 values to sprintf.
24169 * keymap.c (Fsingle_key_description): Likewise.
24170 * print.c (print_object): Likewise.
24171
241722007-11-22 Jan Djärv <jan.h.d@swipnet.se>
24173
24174 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
24175 file for image is nil.
24176
241772007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
24178
24179 * term.c: Include stdarg.h.
24180 (fatal): Implement using varargs.
24181 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
24182
241832007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24184
24185 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
24186 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
24187 Update call to buffer_slot_type_mismatch.
24188 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
24189 (buffer_slot_type_mismatch): Update.
24190 * buffer.c (buffer_local_types): Remove.
24191 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
24192 (defvar_per_buffer): Set the type in the buffer_objfwd.
24193
241942007-11-21 Jason Rumney <jasonr@gnu.org>
24195
24196 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
24197 CreateFileMapping returns NULL on failure.
24198
241992007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
24200
24201 * search.c (Fset_match_data): Remove the `evaporate' feature.
24202 (unwind_set_match_data): Don't use the `evaporate' feature.
24203
242042007-11-21 Jason Rumney <jasonr@gnu.org>
24205
24206 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
24207
24208 * w32console.c (w32con_write_glyphs): Remove unused variables.
24209
242102007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
24211
24212 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
24213
24214 * s/darwin.h (MULTI_KBOARD): Remove.
24215
24216 * macfns.c (x_create_tip_frame, Fx_create_frame)
24217 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
24218
242192007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
24220
24221 * buffer.c (Fbuffer_local_value): Remove redundant test.
24222 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
24223 than in `current-buffer' to match the comment.
24224 Do the swap using swap_in_global_binding.
24225
24226 * data.c (store_symval_forwarding, set_internal):
24227 * eval.c (specbind): Remove dead code.
24228
24229 * coding.c (detect_coding, Fupdate_coding_systems_internal):
24230 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
24231 Since we do not want to see internal Lisp_*fwd objects here.
24232
242332007-11-18 Jan Djärv <jan.h.d@swipnet.se>
24234
24235 * sysdep.c (init_system_name): Use getaddrinfo if available.
24236
24237 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
24238 (x_scroll_bar_note_movement): start, end, with, height in struct
24239 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
24240
242412007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
24242
24243 * puresize.h (BASE_PURESIZE): Increase to 1190000.
24244
242452007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
24246
24247 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
24248 This undoes Richard's change of 14-Oct-2002.
24249
24250 * alloc.c (allocate_other_vector):
24251 * lisp.h (allocate_other_vector): Remove.
24252
24253 * window.c (struct save_window_data): Move non-lisp data to the end
24254 and make it `int' rather than Lisp_Object.
24255 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
24256 Done wrap/unwrap integer values.
24257 (Fset_window_configuration, compare_window_configurations):
24258 Update use of fields to their new types.
24259
24260 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
24261 Turn integer fields into `int'. Merge x_window_low and x_window_high.
24262 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
24263 (SET_SCROLL_BAR_X_WINDOW): Remove.
24264 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
24265 Access the new x_window field directly.
24266 * xterm.c (x_scroll_bar_create): Use a pseudovector.
24267 Don't wrap/unwrap integers into Lisp_Objects.
24268 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
24269 (x_scroll_bar_report_motion):
24270 Don't wrap/unwrap integers into Lisp_Objects.
24271 (x_term_init): Use SDATA.
24272 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
24273 (x_scroll_bar_set_handle, x_scroll_bar_remove)
24274 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
24275 (x_scroll_bar_report_motion, x_scroll_bar_clear):
24276 * xfns.c (x_set_background_color):
24277 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
24278 Access the new x_window field directly.
24279
24280 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
24281 (allocate_pseudovector): Make non-static.
24282
24283 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
24284 (allocate_pseudovector): Declare.
24285 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
24286
242872007-11-15 Andreas Schwab <schwab@suse.de>
24288
24289 * editfns.c (Fformat): Correctly format EMACS_INT values.
24290 Also take precision into account when formatting an integer.
24291
24292 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
24293
242942007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
24295
24296 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
24297 (syms_of_keyboard): Defsubr it.
24298
24299 * data.c (swap_in_global_binding): Fix longstanding bug where
24300 store_symval_forwarding was not called with the right second argument,
24301 thus causing objfwd-ing from being dropped.
24302
243032007-11-14 Juanma Barranquero <lekktu@gmail.com>
24304
24305 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
24306 (Fx_display_pixel_height, Fx_display_planes)
24307 (Fx_display_color_cells, Fx_server_max_request_size)
24308 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24309 (Fx_display_visual_class, Fx_display_save_under):
24310 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
24311 (Fx_display_pixel_height, Fx_display_planes)
24312 (Fx_display_color_cells, Fx_server_max_request_size)
24313 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
24314 (Fx_display_mm_height, Fx_display_mm_width)
24315 (Fx_display_backing_store, Fx_display_visual_class)
24316 (Fw32_select_font, Fx_display_save_under):
24317 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
24318 (Fx_display_pixel_height, Fx_display_planes)
24319 (Fx_display_color_cells, Fx_server_max_request_size)
24320 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
24321 (Fx_display_save_under): Fix typos in docstrings.
24322
243232007-11-14 Juanma Barranquero <lekktu@gmail.com>
24324
24325 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
24326 corresponding to deleted entries; they are an implementation detail.
24327 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
24328 Remove variables.
24329 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
24330 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
24331 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
24332 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
24333 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
24334 (Fw32_define_rgb_color, Fw32_load_color_file)
24335 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
24336 Fix typos in docstrings.
24337 (Fx_server_version): Reflow docstring.
24338 (Fw32_shell_execute): Doc fixes.
24339
243402007-11-13 Juanma Barranquero <lekktu@gmail.com>
24341
24342 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
24343 if w32_parse_hot_key returned nil.
24344
243452007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
24346
24347 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
24348
243492007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 24350
aac0c6e3
MR
24351 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
24352
24353 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
24354
24355 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
24356 Remove W32_SCROLL_BAR_CLICK_EVENT.
24357
24358 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
24359 Add MULTIMEDIA_KEY_EVENT.
24360
24361 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
24362 (lispy_multimedia_keys) [WINDOWSNT]: New array.
24363 (make_lispy_event) [WINDOWSNT]: Use it to translate
24364 MULTIMEDIA_KEY_EVENT.
24365
24366 * w32term.h (WM_APPCOMMAND): Define if not already.
24367 (GET_APPCOMMAND_LPARAM): Likewise.
24368
24369 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
24370 WM_APPCOMMAND.
24371
24372 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
24373 (syms_of_w32fns): Export and initialize it.
24374 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
24375
243762007-11-09 Chong Yidong <cyd@stupidchicken.com>
24377
24378 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
24379 twice.
24380
24381 * xdisp.c (handle_face_prop): Fix last change.
24382
243832007-11-09 Richard Stallman <rms@gnu.org>
24384
24385 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
24386 not just for after-strings and before-strings.
24387 Call face_for_overlay_string and pass the overlay to it.
24388 (handle_display_prop): Determine whether property came from an overlay.
24389 Pass OVERLAY arg to handle_single_display_spec.
24390 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
24391 (load_overlay_strings): Fill in it->string_overlays.
24392 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
24393
24394 * xfaces.c (face_for_overlay_string): Function renamed from
24395 face_at_buffer_position_no_overlays, and add arg OVERLAY.
24396
24397 * dispextern.h (struct it): New elt string_overlays.
24398 New elt from_overlay, also in stack.
24399 Rearrange a few elements.
24400 (face_for_overlay_string): Decl renamed from
24401 face_at_buffer_position_no_overlays, and add argument.
24402
244032007-11-09 Richard Stallman <rms@gnu.org>
24404
24405 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
24406 to get the base face for an overlay string.
24407
24408 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
24409
24410 * xfaces.c (face_at_buffer_position_no_overlays): New function.
24411
24412 * xdisp.c (handle_stop): Move some code out of loop.
24413
244142007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24415
24416 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
24417 Fix conversion from Lisp object to ATSUFontID.
24418
244192007-11-09 Jason Rumney <jasonr@gnu.org>
24420
24421 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
24422
244232007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24424
24425 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
24426 Don't assume regions are aligned to page boundary.
24427 (print_load_command_name): Add LC_UUID if defined.
24428
244292007-11-09 Richard Stallman <rms@gnu.org>
24430
24431 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
24432
244332007-11-07 Jason Rumney <jasonr@gnu.org>
24434
24435 * s/windows95.h: Remove.
24436
244372007-11-06 Jan Djärv <jan.h.d@swipnet.se>
24438
24439 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
24440 abort with a message on unhandled store_type values.
24441
244422007-11-01 Jan Djärv <jan.h.d@swipnet.se>
24443
24444 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
24445 Remove HAVE_X11R5 and HAVE_X11R4.
24446
244472007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24448
24449 * Makefile.in: Remove references to sunfns.c and sunfns.o.
24450
244512007-11-01 Johan Bockgård <bojohan@gnu.org>
24452
24453 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
24454 Don't set s->stippled_p here, since it has already been set by
24455 x_set_glyph_string_gc from x_draw_glyph_string.
24456
244572007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
24458
24459 * sunfns.c: Remove file.
24460
24461 * m/sun386.h:
24462 * m/sun2.h:
24463 * m/sparc.h: Remove Sun windows code.
24464
244652007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
24466
24467 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
24468 (init_keyboard): Set current_kboard's window-system to nil.
24469 (tty_read_avail_input): Typo.
24470 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
24471
244722007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
24473
24474 * s/usg5-4.h:
24475 * s/usg5-3.h:
24476 * s/ptx.h:
24477 * m/is386.h:
24478 * m/ibmps2-aix.h:
24479 * Makefile.in: Remove all mentions of X10.
24480
24481 * dispnew.c (syms_of_display): Don't mention version 10.
24482
244832007-10-28 Juanma Barranquero <lekktu@gmail.com>
24484
24485 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
24486 ($(BLD)/abbrev.$(O)): Remove.
24487
244882007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
24489
24490 Rewrite abbrev.c in Elisp.
24491 * image.c (Qcount): Don't declare as extern.
24492 (syms_of_image): Initialize and staticpro `Qcount'.
24493 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
24494 * emacs.c (main): Don't call syms_of_abbrev.
24495 * Makefile.in (obj): Remove abbrev.o.
24496 (abbrev.o): Remove.
24497 * abbrev.c: Remove.
24498
244992007-10-26 Martin Rudalics <rudalics@gmx.at>
24500
24501 * window.c (window_min_size_2): Don't count header-line.
24502
245032007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
24504
24505 * frame.h (struct frame): Move all bit fields after the first bit
24506 field to take advantage of the available space. Group all the
24507 chars together to reduce wasted space due to padding.
24508
245092007-10-26 Juanma Barranquero <lekktu@gmail.com>
24510
24511 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
24512
24513 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
24514 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
24515 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
24516 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
24517 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
24518 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
24519 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
24520 (last_marked, mark_object_loop_halt): Make static.
24521
24522 * frame.c (syms_of_frame) <delete-frame-functions>:
24523 Fix typo in docstring.
24524
245252007-10-25 Juanma Barranquero <lekktu@gmail.com>
24526
24527 * w32.c (init_environment): Fix tiny memory leak.
24528 (w32_get_resource): Remove unused variable `ok'.
24529
245302007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
24531
24532 Make `window-system' into a keyboard-local variable (rather than
24533 frame-local as done originally by multi-tty).
24534
24535 * keyboard.h (struct kboard): Add Vwindow_system.
24536 * keyboard.c (init_kboard): Set a default for Vwindow_system.
24537 (mark_kboards): Mark Vwindow_system.
24538
24539 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
24540 (init_display): Don't set the obsolete `window-system' frame-param.
24541
24542 * xterm.c (x_term_init):
24543 * w32term.c (w32_create_terminal):
24544 * term.c (init_tty): Set Vwindow_system.
24545 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
24546 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
24547
24548 * xfns.c (Fx_create_frame, x_create_tip_frame):
24549 * w32fns.c (Fx_create_frame, x_create_tip_frame):
24550 * macfns.c (Fx_create_frame):
24551 Don't set the obsolete `window-system' frame-param.
24552
24553 * frame.h (Qwindow_system): Remove.
24554 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
24555 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
24556
245572007-10-24 Richard Stallman <rms@gnu.org>
24558
24559 * frame.c (x_figure_window_size): For fullscreen case,
24560 set USPosition | PPosition without clobbering rest of window_prompting.
24561
24562 * keyboard.c (Fcurrent_idle_time): Doc fix.
24563
24564 * print.c (Fwith_output_to_temp_buffer): Doc fix.
24565
245662007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
24567
24568 * process.c (unwind_request_sigio): Only define if __ultrix__.
24569
24570 * callproc.c (child_setup): Remove spurious *.
24571
24572 * lisp.h (Fget_text_property): Declare.
24573 (have_menus_p): Declare it here rather than in sys-dep header files.
24574 * macterm.h (have_menus_p):
24575 * msdos.h (have_menus_p):
24576 * xterm.h (have_menus_p): Remove.
24577
24578 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
24579 (Fmake_variable_frame_local): Just check the variable's const-ness
24580 rather than checking nil or t.
24581
245822007-10-22 Jason Rumney <jasonr@gnu.org>
24583
24584 * w32fns.c: Include math.h.
24585 (w32_abort): Declaration moved to nt/config.nt.
24586
24587 * s/ms-w32.h (HAVE_STDLIB_H): Define.
24588 (abort): Redefinition moved to nt/config.nt.
24589
24590 * m/windowsnt.h: Remove.
24591
245922007-10-22 Juanma Barranquero <lekktu@gmail.com>
24593
24594 * emacs.c (Fdump_emacs): Fix typo in message.
24595 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
24596 <installation-directory>: Reflow docstring.
24597
245982007-10-22 Juri Linkov <juri@jurta.org>
24599
24600 * minibuf.c: Allow minibuffer default to be a list of default values.
24601 With empty input use the first element of this list as returned default.
24602 (string_to_object)
24603 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
24604 (read_minibuf): If defalt is cons, set histstring to its car.
24605 (Fread_string): If default_value is cons, set val to its car.
24606 (Fread_buffer): If def is cons, use its car.
24607 (Fcompleting_read): If defalt is cons, set val to its car.
24608
246092007-10-21 Michael Albinus <michael.albinus@gmx.de>
24610
24611 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
24612
246132007-10-20 Juanma Barranquero <lekktu@gmail.com>
24614
24615 * doc.c (Fdocumentation): Check for advice in all cases.
24616
246172007-10-19 Chong Yidong <cyd@stupidchicken.com>
24618
24619 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
24620
246212007-10-19 Richard Stallman <rms@gnu.org>
24622
24623 * doc.c (Fdocumentation): Check for and handle an advised function.
24624
246252007-10-19 Juanma Barranquero <lekktu@gmail.com>
24626
24627 * process.c (Fset_process_filter): Doc fix.
24628
246292007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
24630
24631 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
24632 which caused key-translation-map to applied repeatedly (thus breaking
24633 double-mode).
24634
246352007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24636
24637 * xselect.c (x_own_selection, x_handle_selection_clear)
24638 (x_clear_frame_selections):
24639 * w32menu.c (list_of_panes, list_of_items):
24640 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
24641 * textprop.c (validate_plist, interval_has_all_properties)
24642 (interval_has_some_properties, interval_has_some_properties_list)
24643 (add_properties, text_property_list):
24644 * process.c (Fget_buffer_process, list_processes_1, status_notify):
24645 * minibuf.c (Fassoc_string):
24646 * macselect.c (x_own_selection, x_clear_frame_selections)
24647 (Fx_disown_selection_internal):
24648 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
24649 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
24650
246512007-10-17 Chong Yidong <cyd@stupidchicken.com>
24652
24653 * process.c: Link to libs for calling res_init() if available.
24654 (Fmake_network_process): Call res_init() before getaddrinfo or
24655 gethostbyname, if possible.
24656
246572007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
24658
24659 * lread.c (read1): Set pvectype for char_tables.
24660
24661 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
24662 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
24663 Add type checks.
24664 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
24665
24666 * alloc.c (free_misc): Use XMISCTYPE.
24667 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
24668
246692007-10-17 Glenn Morris <rgm@gnu.org>
24670
24671 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
24672 (syms_of_minibuf): Add Qcompletion_ignore_case.
24673 * dired.c (Qcompletion_ignore_case): Change to external.
24674 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
24675 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
24676 (Fread_file_name): Use it rather than intern'ing.
24677
24678 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
24679 (Fread_coding_system): Ignore case of user input.
24680
246812007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24682
24683 * xdisp.c (handle_display_prop): Ignore display specs after
24684 replacing one when string text is being replaced.
24685 (handle_single_display_spec): Pretend as if characters with display
24686 property haven't been consumed only when buffer text is being replaced.
24687
246882007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
24689
24690 * xfns.c (Fx_create_frame, Fx_display_list):
24691 * window.c (window_fixed_size_p, enlarge_window)
24692 (shrink_window_lowest_first):
24693 * macterm.c (init_font_name_table):
24694 * macfns.c (Fx_create_frame, Fx_display_list):
24695 * lread.c (close_load_descs):
24696 * keyboard.c (read_char_x_menu_prompt):
24697 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
24698 * coding.c (code_convert_region_unwind): Test the type of an object
24699 rather than just !NILP before extracting data from it.
24700
24701 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
24702
24703 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
24704 (XMISCANY): New macro.
24705 (XMISCTYPE): Use it.
24706 (struct Lisp_Misc_Any): New type.
24707 (union Lisp_Misc): Use it.
24708 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
24709 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
24710 (find_symbol_value, set_internal, default_value, Fset_default)
24711 (Fmake_variable_buffer_local, Fmake_local_variable)
24712 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
24713 (Flocal_variable_if_set_p, Fvariable_binding_locus):
24714 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
24715 * alloc.c (allocate_buffer): Set the size and tag.
24716 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
24717 Use XMISCANY.
24718 (die): Follow the GNU convention for error messages.
24719 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
24720 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
24721 tag any more.
24722 (set_buffer_internal_1):
24723 * frame.c (store_frame_param):
24724 * eval.c (specbind):
24725 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
24726
24727 * doc.c (Fsnarf_documentation): Simplify.
24728
247292007-10-14 Juanma Barranquero <lekktu@gmail.com>
24730
24731 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
24732 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
24733
247342007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
24735
24736 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
24737
247382007-10-14 Juanma Barranquero <lekktu@gmail.com>
24739
24740 * eval.c (do_autoload): Don't save autoloads.
24741
24742 * data.c (Ffset): Save autoload of the function being set.
24743
247442007-10-07 John Paul Wallington <jpw@pobox.com>
24745
24746 * xfns.c (x_create_tip_frame): Set the `display-type' frame
24747 parameter before setting up faces.
24748
247492007-10-13 Eli Zaretskii <eliz@gnu.org>
24750
24751 * ccl.c (Fregister_code_conversion_map):
24752 * keyboard.c (append_tool_bar_item): Reformat last change.
24753
24754 * lisp.h (eabs): Rename from `abs'. All callers changed.
24755
247562007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
24757
24758 * buffer.c (add_overlay_mod_hooklist):
24759 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
24760 * fontset.c (make_fontset):
24761 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
24762 (append_tool_bar_item):
24763 * macmenu.c (grow_menu_items):
24764 * w32menu.c (grow_menu_items):
24765 * xmenu.c (grow_menu_items): Use larger_vector.
24766
247672007-10-13 Eli Zaretskii <eliz@gnu.org>
24768
24769 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
24770 selected frame'' on MSDOS).
24771
247722007-10-12 Martin Rudalics <rudalics@gmx.at>
24773
24774 * frame.c (Qexplicit_name): New variable.
24775 (x_report_frame_params): Report it in parameter alist.
24776 (syms_of_frame): Intern and staticpro it.
24777
247782007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
24779
24780 * macfns.c (x_create_tip_frame): Set terminal for frame.
24781
247822007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
24783
24784 * frame.c (Qenvironment): Remove.
24785 (syms_of_frame) <Qenvironment>: Don't initialize.
24786 (Fdelete_frame): Don't treat the `environment' param specially.
24787 * frame.h (Qenvironment): Don't declare.
24788 * callproc.c (set_initial_environment): Don't set unused frame param.
24789
24790 * frame.c (Fframe_with_environment): Remove.
24791 (syms_of_frame) <Sframe_with_environment>: Don't declare.
24792
24793 * lisp.h (Fframe_with_environment): Don't declare.
24794
247952007-10-10 Juanma Barranquero <lekktu@gmail.com>
24796
24797 * indent.c (indent_tabs_mode, last_known_column)
24798 (last_known_column_modified): Make static.
24799 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
24800
248012007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
24802
24803 * puresize.h (BASE_PURESIZE): Increase to 1170000.
24804
248052007-10-09 Jason Rumney <jasonr@gnu.org>
24806
24807 * w32term.c (x_set_window_size): Disable code that attempts to tell
24808 Lisp code about a size change before it actually happens.
24809
248102007-10-09 Richard Stallman <rms@gnu.org>
24811
24812 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
24813 return HANDLED_RETURN.
24814
248152007-10-08 Martin Rudalics <rudalics@gmx.at>
24816
24817 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
24818 when there's an unread command event.
24819
24820 * frame.c (focus_follows_mouse): Move here from frame.el to allow
24821 window autoselection act appropriately when leaving selected frame.
24822 (syms_of_frame): Initialize focus_follows_mouse.
24823 * frame.h (focus_follows_mouse): Extern it.
24824 * macterm.c (XTread_socket): When focus_follows_mouse is nil
24825 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
24826 * msdos.c (dos_rawgetc): Likewise.
24827 * w32term.c (w32_read_socket): Likewise.
24828 * xterm.c (handle_one_xevent): Likewise.
24829 * xdisp.c (syms_of_xdisp): In doc-string of
24830 mouse-autoselect-window mention focus-follows-mouse.
24831
248322007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
24833
24834 * macterm.c (mac_load_query_font): Fix missing return value.
24835 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
24836 Add BLOCK_INPUT.
24837
248382007-10-08 Richard Stallman <rms@gnu.org>
24839
24840 * xdisp.c (get_window_cursor_type): Implement documented behavior
24841 for cursor-in-non-selected-windows = t.
24842
248432007-10-08 Jason Rumney <jasonr@gnu.org>
24844
24845 * w32.c (w32_get_resource): Always close registry keys.
24846
248472007-10-08 Jason Rumney <jasonr@gnu.org>
24848
24849 * makefile.w32-in (LIBS): Add COMCTL32.
24850
24851 * w32fns.c (globals_of_w32fns): Init common controls.
24852
248532007-10-08 Richard Stallman <rms@gnu.org>
24854
24855 * image.c (our_memory_buffer): Rename from omfib_buffer.
24856
248572007-10-08 Richard Stallman <rms@gnu.org>
24858
24859 * buffer.c (Foverlays_at): Doc fix.
24860
248612007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
24862
24863 * fns.c (Fplist_put): Preserve uneven tail data.
24864
248652007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
24866
24867 * termhooks.h (enum event_kind): Remove trailing comma.
24868
24869 * frame.h (enum): Remove trailing comma.
24870
248712007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
24872
24873 * w32proc.c (delete_child): Don't terminate threads of zombies.
24874
248752007-10-08 Martin Rudalics <rudalics@gmx.at>
24876
24877 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
24878
24879 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
24880 last-repeatable-command.
24881 (init_kboard): Initialize Vlast_repeatable_command.
24882 (command_loop_1): Set it to real_this_command unless that was
24883 bound to an input event.
24884 (mark_kboards): Mark it.
24885
248862007-10-08 Richard Stallman <rms@gnu.org>
24887
24888 * eval.c (condition-case): Doc fix.
24889
248902007-10-08 Masatake YAMATO <jet@gyve.org>
24891
24892 * xfaces.c (tty_supports_face_attributes_p): Fix code
24893 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
24894 was copied and not edited.
24895
248962007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
24897
24898 Add new `input-decode-map' keymap and use it for terminal
24899 escape sequences.
24900 * keyboard.h (struct kboard): Add Vinput_decode_map.
24901 Remove Vlocal_key_translation_map.
24902 * keyboard.c (read_key_sequence): Add support for input-decode-map.
24903 (init_kboard): Init input-decode-map.
24904 Replace local-key-translation-map back with key-translation-map.
24905 (syms_of_keyboard): Declare input-decode-map.
24906 Remove local-key-translation-map. Update docstrings.
24907 (mark_kboards): Mark Vinput_decode_map.
24908 Don't mark Vlocal_key_translation_map.
24909 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
24910 Replace local-key-translation-map back with key-translation-map.
24911 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
24912 Bind in input-decode-map rather than function-key-map.
24913
24914 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
24915 This was made redundant by the previous introduction of XSETPVECTYPE.
24916
249172007-10-09 Richard Stallman <rms@gnu.org>
24918
24919 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
24920
249212007-09-29 Richard Stallman <rms@gnu.org>
24922
24923 * eval.c (internal_condition_case_2, internal_condition_case_1)
24924 (internal_condition_case): Reenable abort if x_catching_errors ()
24925 to see if that really happens and why.
24926
249272007-10-06 Andreas Schwab <schwab@suse.de>
24928
24929 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
24930
249312007-10-04 Juanma Barranquero <lekktu@gmail.com>
24932
24933 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
24934
249352007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
24936
24937 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
24938
249392007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
24940
24941 * window.h (struct window):
24942 * window.c (struct save_window_data, struct saved_window):
24943 * termhooks.h (struct terminal):
24944 * process.h (struct Lisp_Process):
24945 * frame.h (struct frame):
24946 * buffer.h (struct buffer):
24947 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
24948 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
24949 The size field of (pseudo)vectors is now unsigned.
24950 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
24951
24952 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
24953 Turn `count' into an integer.
24954
24955 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
24956 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
24957 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
24958 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
24959 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
24960
24961 * alloc.c (allocate_pseudovector): New fun.
24962 (ALLOCATE_PSEUDOVECTOR): New macro.
24963 (allocate_window, allocate_terminal, allocate_frame)
24964 (allocate_process): Use it.
24965 (mark_vectorlike): New function.
24966 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
24967 (mark_terminals): Use it.
24968 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
24969 (Fmake_byte_code): Use XSETPVECTYPE.
24970
24971 * frame.c (Fframe_parameters): Minor simplification.
24972
24973 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
24974
24975 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
24976
24977 * buffer.c (Fget_buffer_create, init_buffer_once):
24978 * lread.c (defsubr):
24979 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
24980
24981 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
24982 defined differently in the m/*.h files.
24983 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
24984 (XSETPVECTYPE): New macro.
24985 (XSETPSEUDOVECTOR): Use it.
24986
24987 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
24988 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
24989
24990 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
24991 * lread.c (defvar_per_buffer):
24992 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
24993
24994 * window.c (candidate_window_p): Only consider as visible frames that
24995 are on the same terminal.
24996
24997 * m/ibms390x.h (MARKBIT): Remove unused macro.
24998
249992007-10-01 Juanma Barranquero <lekktu@gmail.com>
25000
25001 * lread.c (Fload): Fix typo in docstring.
25002
250032007-10-01 Michaël Cadilhac <michael@cadilhac.name>
25004
25005 * floatfns.c (Fexpt): Manually check for overflows, so that a power
25006 of a non-zero value can't yield zero.
25007
250082007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
25009
25010 * term.c (term_clear_mouse_face, term_mouse_highlight)
25011 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
25012
25013 * print.c (safe_debug_print): Use XHASH.
25014
25015 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
25016 Lisp elements such as tags.
25017 (XHASH): New macro.
25018 (EQ): Use it.
25019 (SREF, SSET, STRING_COPYIN): Use SDATA.
25020 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
25021
25022 * alloc.c (mark_terminal): Remove left-over declaration.
25023 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
25024 (allocate_vectorlike): Remove type argument. Adjust callers.
25025 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
25026 Only handle the one remaining MEM_TYPE_VECTORLIKE.
25027
25028 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
25029 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
25030 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
25031 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
25032 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
25033 Use them.
25034
25035 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
25036 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
25037 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
25038
250392007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
25040
25041 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
25042 loaded by default.
25043
250442007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
25045
25046 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
25047 on this tty.
25048 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
25049
25050 * term.c (mouse_face_window): Rename from Qmouse_face_window.
25051 Update all users.
25052 (handle_one_term_event): Use Gpm_DrawPointer.
25053 (Fgpm_mouse_start): Rename from Fterm_open_connection.
25054 Signal errors instead of returning nil. Always return nil.
25055 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
25056 Make it a noop if gpm-mouse was not activated.
25057 (syms_of_term): Update names.
25058
250592007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
25060
25061 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
25062 (init_sys_modes): Check that gpm_tty is the current tty.
25063
25064 * alloc.c (allocate_terminal): Set the vector size to only count the
25065 lisp fields. Initialize those to nil.
25066 (mark_object): Don't treat terminals specially.
25067 (mark_terminal): Remove.
25068 (mark_terminals): Use mark_object instead.
25069
25070 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
25071 the GC to the beginning.
25072
25073 * indent.h:
25074 * indent.c: Use EMACS_INT for ints coming from Elisp data.
25075
25076 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
25077
250782007-09-25 Jason Rumney <jasonr@gnu.org>
25079
25080 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
25081
25082 * w32console.c (create_w32cons_output): Remove.
25083
25084 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
25085
25086 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
25087 (reset_sys_modes): Use reset_terminal_modes_hook.
25088
250892007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
25090
25091 * eval.c (do_autoload): Don't output any message.
25092
250932007-09-24 Juri Linkov <juri@jurta.org>
25094
25095 * emacs.c (standard_args): Change priority of "--no-splash"
25096 from 40 to 3. Add "--no-desktop" with the same priority.
25097
250982007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
25099
25100 * alloc.c (gc_sweep): Check cons cell mark bits word by word
25101 and optimize the case where they are all 1.
25102
251032007-09-23 Johannes Weiner <hannes@saeurebad.de>
25104
25105 * lisp.h (abs): Define if not defined.
25106 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
25107 Don't define `abs', since it's defined in lisp.h.
25108
251092007-09-22 Eli Zaretskii <eliz@gnu.org>
25110
25111 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
25112 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
25113 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
25114 (init_tty): Use DEV_TTY instead of "/dev/tty".
25115 [WINDOWSNT]: No need to protect from NAME arg being null.
25116
251172007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
25118
25119 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
25120 up the tty state.
25121
251222007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25123
25124 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
25125 (gpm_tty): Change its type.
25126 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
25127 (gpm_tty): Change its type and initialize it.
25128 (Fterm_open_connection): Check the frame is indeed a tty.
25129 Use the new gpm_tty.
25130 (Fterm_close_connection): Use the new gpm_tty.
25131 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
25132 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
25133
251342007-09-21 Juanma Barranquero <lekktu@gmail.com>
25135
25136 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
25137 underline_color, to draw strike-through.
25138
251392007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
25140
25141 * lisp.h (allocate_terminal): Declare.
25142
25143 * window.c (candidate_window_p): Consider frames that are being placed
25144 by the user as somewhere between visible and iconified.
25145 (window_loop): Prefer windows on the current frame.
25146 (Fselect_window): Move the use of select-frame to the beginning so we
25147 can just delegate all the work (it'll call us back anyway).
25148
25149 * frame.c (Qdisplay_environment_variable):
25150 * frame.h (Qdisplay_environment_variable): Delete.
25151
25152 * .gdbinit (xbacktrace): Print the arg's address rather than the value
25153 of the first arg, since that value may be a union.
25154
25155 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
25156 parameter rather than Qdisplay_environment_variable. If all else
25157 fails, look for DISPLAY in initial-environment.
25158
251592007-09-21 Glenn Morris <rgm@gnu.org>
25160
25161 * Makefile.in (emacstool): Remove target.
25162 (lisp, shortlisp): Remove termdev.elc.
25163
251642007-09-21 Markus Triska <markus.triska@gmx.at>
25165
25166 * xterm.c (x_delete_display): Compile session management conditionally.
25167
251682007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
25169
25170 * callproc.c (getenv_internal_1): New function.
25171 (getenv_internal): Use it.
25172 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
25173
25174 * terminal.c (get_terminal): Don't accept ints to represent terminals.
25175 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
25176 (Fset_terminal_parameter): Work with dead terminals as well.
25177 (Fmodify_terminal_parameters): Remove.
25178
25179 * terminal.c (get_terminal): Handle terminals.
25180 Make sure the terminal returned is live.
25181 (create_terminal): Use allocate_terminal.
25182 (mark_terminals): Move to alloc.c.
25183 (delete_terminal): Use terminal->name as liveness status.
25184 NULL out fields after freeing their contents.
25185 Don't deallocate the object.
25186 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
25187 rather than an int.
25188 (Fterminal_live_p): Accept non-integer arguments.
25189 (Fterminal_list): Return terminal objects rather than an ints.
25190
25191 * alloc.c (enum mem_type): New member for `terminal' objects.
25192 (allocate_terminal): New function.
25193 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
25194 Handle terminals.
25195 (mark_terminal): New fun.
25196 (mark_terminals): Move from terminal.c.
25197
25198 * term.c (get_tty_terminal): Don't treat output_initial specially.
25199 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
25200 (delete_tty): Use terminal->name as liveness status.
25201
25202 * termhooks.h (struct terminal): Make it into a pseudovector.
25203 Remove `deleted' replaced by checking `name's nullness.
25204
25205 * print.c (print_object): Handle terminals.
25206
25207 * lisp.h (enum pvec_type): New `terminal' pseudovector.
25208 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
25209
25210 * frame.c (make_terminal_frame):
25211 * keyboard.c (tty_read_avail_input):
25212 * w32term.c (x_delete_terminal):
25213 * xfns.c (Fx_create_frame, x_create_tip_frame):
25214 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
25215
252162007-09-20 Glenn Morris <rgm@gnu.org>
25217
25218 * process.c (Fmake_network_process): Doc fix.
25219
252202007-09-19 Jason Rumney <jasonr@gnu.org>
25221
25222 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
25223
252242007-09-19 Michaël Cadilhac <michael@cadilhac.name>
25225
25226 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
25227 Fix a C warning regarding variable constness.
25228
25229 * xterm.c (handle_one_xevent): Fix a C warning.
25230
252312007-09-18 Jason Rumney <jasonr@gnu.org>
25232
25233 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
25234
252352007-09-17 Jan Djärv <jan.h.d@swipnet.se>
25236
25237 * gtkutil.c (gdpy_def): New variable.
25238 (xg_initialize): Initialize gdpy_def.
25239 (xg_display_close): If no other display exists, set gdpy_def to a
25240 new connection.
25241
252422007-09-16 Jan Djärv <jan.h.d@swipnet.se>
25243
25244 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
25245 when we have no file name for the icon.
25246 (xg_tool_bar_expose_callback): Remove.
25247 (xg_create_tool_bar): Don't connect expose signal to
25248 xg_tool_bar_expose_callback.
25249 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
25250
252512007-09-16 Andreas Schwab <schwab@suse.de>
25252
25253 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
25254 values instead of zapping them.
25255
252562007-09-14 Glenn Morris <rgm@gnu.org>
25257
25258 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
25259 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
25260 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
25261 scope and rename to omfib_buffer for clarity.
25262 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
25263
252642007-09-14 Kenichi Handa <handa@m17n.org>
25265
25266 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
25267
252682007-09-13 Jason Rumney <jasonr@gnu.org>
25269
25270 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
25271
25272 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
25273
25274 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
25275 (mac_term_init): Call here instead, passing rif.
25276
252772007-09-13 Glenn Morris <rgm@gnu.org>
25278
25279 * s/hpux.h: No longer define `static' as nothing.
25280
252812007-09-13 Johan Bockgård <bojohan@gnu.org>
25282
25283 * callint.c (Fcall_interactively): Remove unused var `fun'.
25284
252852007-09-12 Romain Francoise <romain@orebokech.com>
25286
25287 * window.c (prefer_window_split_horizontally, display_buffer):
25288 Revert 2007-09-08 change.
25289
252902007-09-12 Glenn Morris <rgm@gnu.org>
25291
25292 * alloca.c: Remove file.
25293 * Makefile.in (alloca): Do not undef.
25294 (allocaobj, alloca.o): Remove.
25295 (otherobj): Remove allocaobj.
25296 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
25297 * regex.c (C_ALLOCA): Remove all references and code that was only
25298 used when this was defined.
25299 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
25300 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
25301 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
25302
25303 * Makefile.in (SOURCES, unlock, relock): Delete.
25304
25305 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
25306 (menu_grab_callback): All uses changed.
25307
25308 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
25309 (x_reply_selection_request): All uses changed.
25310
253112007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
25312
25313 * lread.c (load_warn_old_style_backquotes): Change message to look
25314 better when it appears in the middle of byte-compiler messages.
25315
253162007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
25317
25318 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
25319
25320 * xterm.c (x_create_terminal): Add comment.
25321
25322 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
25323
253242007-09-10 Richard Stallman <rms@gnu.org>
25325
25326 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
25327
253282007-09-10 Michaël Cadilhac <michael@cadilhac.name>
25329
25330 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
25331 (DEFUN): Document `intspec', use it instead of `prompt'.
25332
25333 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
25334
25335 * data.c (Finteractive_form): If the interactive specification starts
25336 with a `(', use it as a Lisp form.
25337
25338 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
25339 name and file modes.
25340
25341 * callint.c (Fcall_interactively): Comment fixes.
25342
253432007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
25344
25345 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
25346 and compiled functions.
25347
253482007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
25349
25350 * window.c (prefer_window_split_horizontally): New variable.
25351 (display_buffer): Consider splitting window horizontally depending
25352 on prefer_window_split_horizontally.
25353
253542007-09-08 Eli Zaretskii <eliz@gnu.org>
25355
25356 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
25357
253582007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25359
25360 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
25361
25362 * frame.c (x_set_frame_parameters): Check number is positive before
25363 using XFASTINT.
25364
25365 * window.c (freeze_window_start): Don't presume selected_window holds
25366 a window object.
25367 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
25368
253692007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
25370
25371 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
25372
253732007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
25374
25375 * window.c (Vsplit_window_preferred_function): New var.
25376 (Fdisplay_buffer): Use it.
25377 (syms_of_window): Export, and initialize it.
25378
253792007-09-06 Pixel <pixel@mandriva.com> (tiny change)
25380
25381 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
25382
253832007-09-06 Glenn Morris <rgm@gnu.org>
25384
25385 * gtkutil.c (menu_grab_callback) <cnt>:
25386 * xselect.c (x_reply_selection_request) <cnt>: Move static
25387 variable to file scope.
25388
253892007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
25390
25391 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
25392 consistent values of selected_frame and selected_window.
25393
253942007-09-04 Jason Rumney <jasonr@gnu.org>
25395
25396 * w32console.c (initialize_w32_display): Zero unused hooks.
25397
253982007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25399
25400 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
25401 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
25402
254032007-09-04 Jason Rumney <jasonr@gnu.org>
25404
25405 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
25406 in w32console.c. Set up input. Remove XXX comments that have been
25407 confirmed as correct.
25408
25409 * s/ms-w32.h (MULTI_KBOARD): Define.
25410
25411 * w32console.c (one_and_only_w32cons): Remove.
25412 (initialize_w32_display): Take terminal argument.
25413
25414 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
25415 initialize_w32_display.
25416 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
25417
25418 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
25419
25420 * keyboard.c (discard_mouse_events): Discard it.
25421 (make_lispy_event): Translate it to a lisp event.
25422 (lispy_wheel_names): Add wheel-left and right events.
25423 (syms_of_keyboard): Enlarge wheel_syms.
25424
25425 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
25426 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
25427
25428 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
25429
25430 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
25431 from WM_MOUSEHWHEEL.
25432 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
25433
25434 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
25435 terminal.
25436
25437 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
25438 keyboard for the terminal.
25439
254402007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
25441
25442 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
25443 (Vresume_tty_hook): Rename from Vresume_tty_functions.
25444 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
25445 and resume-tty-function to resume-tty-hook.
25446 (Fsuspend_tty, Fresume_tty): Use new names.
25447
254482007-09-02 Jan Djärv <jan.h.d@swipnet.se>
25449
25450 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
25451 if it starts with "n:".
25452
254532007-08-31 Jan Djärv <jan.h.d@swipnet.se>
25454
25455 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
25456
254572007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
25458
25459 * frame.h:
25460 * frame.c (Qterm_environment_variable): Remove.
25461 (syms_of_frame): Don't init and staticpro it.
25462
25463 * callproc.c (getenv_internal): Remove special case for $TERM.
25464
25465 * callproc.c (Vinitial_environment): New variable.
25466 (set_initial_environment): Initialize it.
25467 (syms_of_callproc): Declare it.
25468 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
25469 TERM under which a process runs is never related to the TERM in which
25470 Emacs is running.
25471
254722007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25473
25474 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
25475 * s/darwin.h: ... do it here.
25476
254772007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
25478
25479 * lisp.h (set_initial_environment): Rename from set_global_environment.
25480
25481 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
25482 removed by mistake on the multi-tty branch.
25483
25484 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
25485 (Fmodify_frame_parameters): Return a value.
25486
25487 * image.c (png_load): Comment-out var only used in commented-out code.
25488
25489 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
25490 before passing it to mark_object.
25491
25492 * xfaces.c (internal_resolve_face_name): Return a value.
25493 (internal_resolve_face_name, resolve_face_name_error): Comment out.
25494
25495 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
25496 (x_icon): Comment-out var only used in commented-out code.
25497
254982007-08-29 Romain Francoise <romain@orebokech.com>
25499
25500 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
25501 QUIT hasn't been provided.
25502
255032007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
25504
25505 * callproc.c (child_setup, getenv_internal): Use the
25506 display-environment-variable and term-environment-variable frame params.
25507 (set_initial_environment): Initialise Vprocess_environment.
25508
25509 * config.in: Disable multi-keyboard support on a mac.
25510
25511 * frame.c (Qterm_environment_variable)
25512 (Qdisplay_environment_variable): New variables.
25513 (syms_of_frame): Intern and staticpro them.
25514 (Fmake_terminal_frame): Disable output method test.
25515
25516 * frame.h: Declare them here.
25517
25518 * macfns.c (x_set_mouse_color): Get rif from the frame.
25519 (x_set_tool_bar_lines): Don't use updating_frame.
25520 (mac_window): Add 2 new parameters for consistency with other systems.
25521 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
25522 frame parameters following what is done in X11 and w32. Don't use
25523 FRAME_MAC_DISPLAY_INFO.
25524 (Fx_open_connection, start_hourglass): Remove window-system check.
25525 (x_create_tip_frame): Get the keyboard from the terminal.
25526
25527 * macmenu.c: Reorder includes.
25528 (Fx_popup_menu): Use terminal specific mouse_position_hook.
25529
25530 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
25531 terminal parameter.
25532 (x_clear_frame): Add a frame parameter.
25533 (note_mouse_movement): Get rif from the frame.
25534 (mac_term_init): Initialize the terminal.
25535 (mac_initialize): Make static and move terminal initialization ...
25536 (mac_create_terminal): ... to this new function.
25537
25538 * macterm.h (struct mac_display_info): Add terminal.
25539 (mac_initialize): Delete declaration.
25540
25541 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
25542
25543 * sysdep.c: Comment out text after #endif.
25544
25545 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
25546 is defined. Better initialize ttys in windows. Use terminal
25547 specific mouse_position_hook.
25548
25549 * termhooks.h (union display_info): Add mac_display_info.
25550
25551 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
25552 Set the default minibuffer frame, window_system and the rest of the
25553 frame parameters following what is done in X11.
25554
25555 * w32term.c (w32_initialize): Make static.
25556
25557 * xselect.c (x_handle_selection_clear): Only access
25558 terminal->kboard when MULTI_KBOARD is defined.
25559
25560 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
25561 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
25562
255632007-08-29 Jason Rumney <jasonr@gnu.org>
25564
25565 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
25566 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
25567
25568 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
25569 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
25570
25571 * keyboard.c (restore_kboard_configuration): Only define when
25572 MULTI_KBOARD defined.
25573
25574 * makefile.w32-in: Update dependancies from Makefile.in.
25575 (OBJ1): Add terminal.$(O)
25576
25577 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
25578 Don't define function body.
25579 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
25580
25581 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
25582
25583 * w32.c (request_sigio, unrequest_sigio): Remove.
25584
25585 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
25586 (w32con_clear_frame, w32con_clear_end_of_line)
25587 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
25588 (w32con_delete_glyphs, w32con_set_terminal_window)
25589 (scroll_line, w32_sys_ring_bell): Add frame arg.
25590 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
25591 Add terminal arg.
25592 (PICK_FRAME): Remove.
25593 (w32con_write_glyphs): Use frame specific terminal coding.
25594 (one_and_only_w32cons): New global variable.
25595 (initialize_w32_display): Use it for storing hooks.
25596 (create_w32cons_output): New function.
25597
25598 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
25599 arg a frame.
25600
25601 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
25602 Set window_system.
25603 (x_set_tool_bar_lines): Don't use updating_frame.
25604 (Fx_create_frame): Set terminal and ref count.
25605 (Fx_open_connection): Remove window-system check.
25606
25607 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
25608
25609 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
25610 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
25611 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
25612 Add frame arg.
25613 (x_delete_terminal, w32_create_terminal): New functions.
25614 (w32_term_init): Create a terminal.
25615 (w32_initialize): Move terminal specific initialization to
25616 w32_create_terminal.
25617
25618 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
25619 (w32_clear_rect, w32_clear_area): Use background from frame.
25620 (w32_display_info): Add terminal.
25621 (w32_sys_ring_bell, x_delete_display): Declare here.
25622
25623 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
25624
25625 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
25626
256272007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
25628
25629 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
25630 Fix get_named_tty calls for the controlling tty.
25631
256322007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
25633
194d44e7 25634 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
25635
256362007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
25637
25638 * term.c (tty_insert_glyphs): Add missing first parameter.
25639
256402007-08-29 Károly Lőrentey <karoly@lorentey.hu>
25641
25642 * buffer.c (Fbuffer_list, Fbury_buffer):
25643 Take frame->buried_buffer_list into account.
25644
25645 * cm.c (current_tty): New variable, for cmputc().
25646 (cmputc): Use it.
25647 (cmcheckmagic): Add tty parameter, look up terminal streams there.
25648 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
25649 (cmgoto): Add tty parameter. Pass it on to calccost().
25650 Use emacs_tputs() instead of tputs().
25651
25652 * cm.h (emacs_tputs): New macro to set current_tty, and then call
25653 tputs().
25654 (current_tty): New variable, for cmputc().
25655 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
25656
25657 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
25658 (internal_condition_case, internal_condition_case_1)
25659 (internal_condition_case_2): Don't abort when x_catching_errors.
25660
25661 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
25662 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
25663 prevent crashes caused by bogus longjmps in read_char.
25664
25665 * keymap.h (Fset_keymap_parent): Add EXFUN.
25666
25667 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
25668 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25669 Remove redundant definition.
25670
25671 * macfns.c (x_set_mouse_color, x_make_gc):
25672 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25673
25674 * w32term.c (x_free_frame_resources):
25675 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25676 (w32_initialize): Use the accessor macros for terminal characteristics.
25677
25678 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
25679 Use the accessor macros for terminal characteristics.
25680 * msdos.c (internal_terminal_init): Use the accessor macros for
25681 terminal characteristics.
25682 (ScreenVisualBell, internal_terminal_init):
25683 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25684
25685 * termopts.h (no_redraw_on_reenter): Declare.
25686
25687 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
25688 (mark_terminals, mark_ttys): Declare.
25689 (Fgarbage_collect): Call them.
25690 (mark_object): Mark buried_buffer_list.
25691
25692 * prefix-args.c: Include stdlib.h for exit.
25693
25694 * syssignal.h: Add comment.
25695
25696 * indent.c: Include stdio.h.
25697
25698 * window.h (Vinitial_window_system): Declare.
25699 (Vwindow_system): Delete declaration.
25700
25701 * fontset.c (Finternal_char_font): Use FRAME_RIF.
25702
25703 * image.c (lookup_image): Don't initialize `c' until the xasserts
25704 have been run.
25705
25706 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
25707 FRAME_FOREGROUND_PIXEL.
25708
25709 * print.c (print_preprocess): Don't lose print_depth levels while
25710 iterating.
25711
25712 * widget.c (update_from_various_frame_slots):
25713 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25714
25715 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
25716 frames.
25717 (window_internal_height): Remove bogus make_number call.
25718 (init_window_once): Call make_terminal_frame with two zero parameters.
25719
25720 * fileio.c (Fread_file_name): Update comment.
25721
25722 * callint.c (Fcall_interactively):
25723 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
25724 Make sure it is correctly unwound.
25725
25726 * xsmfns.c (x_session_close): New function.
25727
25728 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
25729 Delete declarations.
25730
25731 * xterm.h: Remove declaration for x_fully_uncatch_errors.
25732 (x_output): Remove background_pixel and foreground_pixel fields.
25733 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
25734 (x_delete_device, x_session_close): Declare.
25735
25736 * lread.c: Include setjmp.h. Update declaration of `read_char'.
25737 (read_filtered_event): Call `read_char' with a local
25738 `wrong_kboard_jmpbuf'.
25739
25740 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
25741 Don't call single_kboard_state. Use FRAME_RIF.
25742
25743 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
25744 systems.
25745
25746 * lisp.h (set_process_environment): Rename to `set_global_environment'.
25747 (Fframe_with_environment, Fset_input_meta_mode)
25748 (Fset_quit_char): EXFUN.
25749 (x_create_device, tty_output, terminal, tty_display_info): Declare.
25750 (init_sys_modes, reset_sys_modes): Update prototypes.
25751 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
25752
25753 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
25754 Vlocal_key_translation_map, and Vkeyboard_translate_table.
25755 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
25756 Delete declarations.
25757 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
25758 (temporarily_switch_to_single_kboard, tty_read_avail_input):
25759 New declarations.
25760
25761 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
25762 already does that during init_display(). Call syms_of_keymap
25763 before syms_of_keyboard. Call `syms_of_terminal'.
25764 Call set_initial_environment, not set_process_environment.
25765 (shut_down_emacs): Call reset_all_sys_modes() instead of
25766 reset_sys_modes().
25767
25768 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
25769 (internal_resolve_face_name, resolve_face_name_error): New functions.
25770 (resolve_face_name): Protect against loops and errors thrown by Fget.
25771 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
25772 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
25773
25774 * scroll.c: Replace CURTTY() with local variables throughout the
25775 file (where applicable).
25776 (calculate_scrolling, calculate_direct_scrolling)
25777 (scrolling_1, scroll_cost): Use the accessor macros for terminal
25778 characteristics.
25779
25780 * keymap.c (Vfunction_key_map): Remove.
25781 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
25782 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
25783 (Vkey_translation_map): Remove.
25784 (syms_of_keymap): Remove DEFVAR for key-translation-map.
25785 (Fdescribe_buffer_bindings)
25786 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
25787 Update for terminal-local key-translation-map.
25788
25789 * Makefile.in (callproc.o): Update dependencies.
25790 (lisp, shortlisp): Add termdev.elc.
25791 (obj): Add terminal.o.
25792 (terminal.o): Add dependencies.
25793 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
25794 (data.o, fns.o): Add termhooks.h dependency.
25795 (SOME_MACHINE_LISP): Add dnd.elc.
25796 (minibuf.o): Fix typo.
25797 Update dependencies.
25798
25799 * data.c (do_symval_forwarding, store_symval_forwarding)
25800 (find_symbol_value): Use the selected frame's keyboard, not
25801 current_kboard.
25802
25803 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
25804 Vwindow_system.
25805
25806 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
25807 Fmenu_bar_open.
25808 (syms_of_xmenu): Update defsubr.
25809 (mouse_position_for_popup, Fx_popup_menu)
25810 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
25811 (set_frame_menubar, free_frame_menubar)
b97439ce 25812 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
25813 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
25814 an X frame.
25815
25816 * xselect.c (x_own_selection): Abort if not an X frame.
25817 (some_frame_on_display): Check if it is an X frame.
25818 (x_handle_selection_clear): Deal with MULTI_KBOARD.
25819
25820 * coding.c: Include frame.h and termhooks.h.
25821 (terminal_coding, keyboard_coding): Delete.
25822 (Fset_terminal_coding_system_internal)
25823 (Fset_keyboard_coding_system_internal)
25824 (Fkeyboard_coding_system)
25825 (Fterminal_coding_system): Add a terminal parameter.
25826 Get terminal_coding from the terminal.
25827 (init_coding_once): Don't call setup_coding_system here.
25828
25829 * dispextern.h (set_scroll_region, turn_off_insert)
25830 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
25831 (tty_clear_end_of_line, tty_setup_colors)
25832 (delete_tty, updating_frame)
25833 (produce_special_glyphs, produce_glyphs, write_glyphs)
25834 (insert_glyphs): Remove.
25835 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
25836 (tty_turn_off_highlight, get_tty_size): Add declaration.
25837 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
25838
25839 * frame.h (enum output_method): Add output_initial.
25840 (struct x_output): Delete.
25841 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
25842 Access foreground_pixel and background_pixel directly from the frame.
25843 (tty_display): Delete.
25844 (struct frame): Add buried_buffer_list, foreground_pixel,
25845 background_pixel and terminal. Delete kboard.
25846 (union output_data): Add tty.
25847 (FRAME_KBOARD): Get the kboard from the terminal.
25848 (FRAME_INITIAL_P): New macro.
25849 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
25850 (Qterm_environment_variable, Qdisplay_environment_variable)
25851 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
25852 New declarations.
25853
25854 * termchar.h (tty_output, tty_display_info): New structures.
25855 (tty_list): Declare.
25856 (FRAME_TTY, CURTTY): New macros.
25857 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
25858 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
25859 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
25860 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
25861
25862 * callproc.c: Include frame.h and termhooks.h, for terminal
25863 parameters.
25864 (add_env): New function.
25865 (child_setup): Use it.
25866 (child_setup, getenv_internal): Handle the new Vprocess_environment.
25867 (getenv_internal): Fix get_terminal_param call.
25868 (Fgetenv_internal, egetenv): Update doc.
25869 (syms_of_callproc): Initialize Vprocess_environment to nil.
25870 Register and initialize them. Remove obsolete defvars. Update doc
25871 strings.
25872 (child_setup): Handle Vlocal_environment_variables.
25873 (getenv_internal): Add terminal parameter.
25874 Handle Vlocal_environment_variables.
25875 (Fgetenv_internal): Add terminal parameter.
25876 (child_setup, getenv_internal, Fgetenv_internal): Store the local
25877 environment in a frame (not terminal) parameter. Update doc strings.
25878 (set_initial_environment): Rename from set_global_environment.
25879 Store Emacs environment in initial frame parameter.
25880
25881 * xdisp.c (redisplay_internal): Update references to
25882 `previous_terminal_frame'.
25883 (display_mode_line, Fformat_mode_line): Replace calls to
25884 `push_frame_kboard' with `push_kboard'.
25885 (get_glyph_string_clip_rects): Add extra parentheses and
25886 braces to prevent compiler warnings.
25887 (calc_pixel_width_or_height): Add xassert to check that the
25888 frame is alive. Don't call `lookup_image' on a termcap frame.
25889 (message2_nolog, message3_nolog, redisplay_internal)
25890 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
25891 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
25892 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
25893 (Fx_display_pixel_width, Fx_display_pixel_height)
25894 (Fx_display_planes, Fx_display_color_cells)
25895 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
25896 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
25897 (Fx_display_backing_store, Fx_display_visual_class)
25898 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
25899 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
25900
25901 * xfns.c (x_set_foreground_color x_set_background_color)
25902 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
25903 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25904 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
25905 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
25906 terminal that is being deleted.
25907 (Fx_create_frame): Use `store_frame_param' to set `window-system'
25908 frame parameter, and make sure it overrides any user-supplied setting.
25909 (Fx_close_connection, Fx_synchronize): Unify argument names with
25910 the rest of the DEFUNs.
25911
25912 * dispnew.c (Fsend_string_to_terminal): Update call to
25913 `get_tty_terminal'.
25914 (Fredraw_frame, Fsend_string_to_terminal)
25915 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
25916 FRAME_TERMCAP_P and FRAME_TTY.
25917 (window_change_signal): Don't believe width/height values that are
25918 impossibly small.
25919 (Vinitial_window_system): Rename from Vwindow_system.
25920 (termscript, Wcm, rif): Delete.
25921
25922 * termhooks.h (struct terminal): New struct containing the
25923 previously global text display hooks and new members NAME,
25924 DELETED and PARAM_ALIST.
25925 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
25926 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
25927 (FRAME_RIF): New macros.
25928 (get_terminal_param, get_device): New declarations.
25929 (termscript): Delete declaration.
25930
25931 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
25932 (XTflash, x_free_frame_resources, x_scroll_bar_create)
25933 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
25934 FRAME_FOREGROUND_PIXEL.
25935 (x_fully_uncatch_errors): Disable definition.
25936 (x_scroll_bar_expose): Fix reference to foreground pixel.
25937 (XTread_socket): Disable loop on all X displays.
25938 (x_delete_terminal): Don't set terminal->deleted and let
25939 delete_terminal delete the frames on the terminal.
25940 (x_delete_display): Doc update to reflect changes in
25941 delete_terminal.
25942 (x_display_info) <terminal>: Move member earlier in the struct.
25943 (deleting_tty): Remove old variable.
25944 (Fsuspend_tty): Call clear_tty_hooks.
25945 (Fresume_tty, init_tty): Call set_tty_hooks.
25946 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
25947 errors on X frames.
25948 (x_catch_errors_unwind): Abort if x_error_message is NULL.
25949 (handle_one_xevent): Initialize `f' to NULL.
25950 (x_delete_terminal, x_create_terminal): New functions.
25951 (XTset_terminal_modes, XTreset_terminal_modes)
25952 (XTread_socket, x_connection_closed, x_term_init)
25953 (x_term_init, x_delete_display): Add terminal parameter.
25954 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
25955 X connections.
25956
25957 * frame.c: Include termchar.h.
25958 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
25959 (Qwindow_system, Qenvironment, Qterm_environment_variable)
25960 (Qdisplay_environment_variable): New vars.
25961 (Fframep): Deal with output_initial.
25962 (Fframe-live-p): Doc fix.
25963 (Fwindow-system): New function.
25964 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
25965 (make_terminal_frame): Don't create frames on a terminal that is
25966 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
25967 (store_frame_param): Check for found_for_frame before calling XFRAME.
25968 (Fmake_terminal_frame): Handle NULL tty names correctly.
25969 (syms_of_frame): Enhance doc string of `default-frame-alist'.
25970 (Fdelete_frame): Remove unused variable `count'. Don't allow other
25971 frames to refer to a deleted frame in their 'environment parameter.
25972 (Fframe_with_environment): New function.
25973 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
25974 (get_future_frame_param): New function.
25975 (Fmake_terminal_frame): Use it.
25976 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
25977
25978 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
25979 * sysdep.c (reset_sys_modes): Update for renames.
25980
25981 * keyboard.c (tty_read_avail_input): New function.
25982 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
25983 (syms_of_keyboard): Defsubr them.
25984 (Fset_input_meta_mode, Fset_quit_char): New functions.
25985 (Fset_input_mode): Split to above functions.
25986 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
25987 parameter. Use it in call to `read_char'.
25988 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
25989 Set wrong_kboard_jmpbuf correctly in recursive calls.
25990 Use current_kboard to access Vkeyboard_translate_table.
25991 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
25992 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
25993 Update longjmp invocations. Remember the original current_kboard,
25994 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
25995 changes it. Comment out unnecessary calls to
25996 `record_single_kboard_state' and `any_kboard_state'.
25997 Update recursive calls.
25998 (wrong_kboard_jmpbuf): Remove global variable.
25999 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
26000 Handle deleted interrupted_kboards correctly; that is a legal
26001 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
26002 and read_char calls. Abort if interrupted_kboard died in read_char.
26003 (any_kboard_state, single_kboard_state)
26004 (push_frame_kboard): Remove function.
26005 (pop_kboard): Switch out of single_kboard mode if the kboard has
26006 been deleted. Remove unused variable. Help debugging by not
26007 changing current_kboard unnecessarily. Set current_kboard to the
26008 kboard of the selected frame when the stored kboard object has
26009 been deleted before pop_kboard.
26010 (temporarily_switch_to_single_kboard): Change first parameter to a
26011 frame pointer. Throw an error when caller wants to change kboards
26012 while in single_kboard mode. Don't push_kboard if we weren't in
26013 single kboard state. Don't pop_kboard if we popped into any
26014 kboard state.
26015 (restore_kboard_configuration): Abort if pop_kboard changed the
26016 kboard in single_kboard mode. Call pop_kboard only after setting
26017 up single_kboard mode.
26018 (Frecursive_edit): Switch to single_kboard mode only in nested
26019 command loops.
26020 (cmd_error, command_loop, command_loop_1, timer_check):
26021 Comment out unnecessary call to `any_kboard_state' and
26022 `record_single_kboard_state'.
26023 (delete_kboard): Exit single_kboard mode if we have just deleted
26024 that kboard. Use FRAME_KBOARD.
26025 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
26026 `fatal_error_signal'.
26027 (record_single_kboard_state): Don't push_kboard if we weren't in
26028 single kboard state. Don't pop_kboard if we popped into any
26029 kboard state.
26030 (push_frame_kboard): Rename to push_kboard.
26031 (kbd_buffer_get_event): Use FRAME_TERMINAL.
26032 (read_avail_input): Read input from all terminals.
26033 (mark_kboards): Also mark Vkeyboard_translate_table.
26034 (kbd_buffer_store_event_hold): Simplify condition.
26035 (read_key_sequence): Reinitialize fkey and keytran at each replay.
26036 (Vkeyboard_translate_table): Move to struct kboard.
26037 (init_kboard): Initialize Vkeyboard_translate_table.
26038 (syms_of_keyboard): Use DEFVAR_KBOARD to define
26039 Vkeyboard_translate_table. Update doc strings. Update docs of
26040 local-function-key-map and function-key-map.
26041
26042 * terminal.c: New file.
26043
26044 * term.c: Include errno.h.
26045 (Vring_bell_function, device_list, initial_device)
26046 (next_device_id, ring_bell, update_begin, update_end)
26047 (set_terminal_window, cursor_to, raw_cursor_to)
26048 (clear_to_end, clear_frame, clear_end_of_line)
26049 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
26050 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
26051 (syms_of_term): Move their initialization to terminal.c.
26052 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
26053 (Ftty_display_color_cells)
26054 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
26055 (clear_tty_hooks, set_tty_hooks)
26056 (init_tty, maybe_fatal): New functions.
26057 (Ftty_type): Return nil if terminal is not on a tty instead of
26058 throwing an error. Doc update.
26059 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
26060 Doc update. Initialize new subrs and variables.
26061 (delete_tty): Use terminal->deleted.
26062 (tty_set_terminal_modes): Rename from set_terminal_modes.
26063 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
26064 (set_scroll_region): Rename to `tty_set_scroll_region'.
26065 (turn_on_insert): Rename to `tty_turn_on_insert'.
26066 (turn_off_insert): Rename to `tty_turn_off_insert'.
26067 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
26068 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
26069 (toggle_highligh): Rename to `tty_toggle_highlight'.
26070 (background_highlight): Rename to `tty_background_highlight'.
26071 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
26072 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
26073 (tty_set_scroll_region, tty_background_highlight)
26074 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
26075 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
26076 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
26077 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
26078 Add static modifier.
26079 (tty_reset_terminal_modes, tty_set_terminal_window)
26080 (tty_set_scroll_region, tty_background_highlight)
26081 (tty_highlight_if_desired, tty_cursor_to)
26082 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
26083 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
26084 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
26085 renames.
26086
260872007-08-28 Jan Djärv <jan.h.d@swipnet.se>
26088
26089 * keyboard.c: Qrtl is new.
26090 (parse_tool_bar_item): Handle :rtl keyword.
26091 (syms_of_keyboard): Intern :rtl keyword.
26092
26093 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
26094
26095 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
26096 so no Lisp code is executed.
26097 (file_for_image, find_rtl_image): New functions.
26098 (xg_get_image_for_pixmap): Use file_for_image.
26099 (update_frame_tool_bar): If direction is RTL, use RTL image if
26100 defined. Use Gtk stock images if defined.
26101
261022007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26103
26104 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
26105 for nonexistent or zero-width glyph in composition glyph.
26106
261072007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
26108
26109 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
26110
26111 * xdisp.c (Finvisible_p): New function.
26112 (syms_of_xdisp): defsubr it.
26113
261142007-08-24 Juanma Barranquero <lekktu@gmail.com>
26115
26116 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
26117 Doc fixes.
26118
261192007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26120
26121 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
26122
261232007-08-24 Martin Rudalics <rudalics@gmx.at>
26124
26125 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
26126 whether decoding has modified buffer contents.
26127
261282007-08-24 Jason Rumney <jasonr@gnu.org>
26129
26130 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
26131 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
26132 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
26133 (init_svg_functions) [HAVE_NTGUI]: New function.
26134 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
26135 (svg_load_image): Use them.
26136 (svg_load_image) [HAVE_NTGUI]: Implement background.
26137
261382007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26139
26140 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
26141 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
26142 (LIBX): Remove @RSVG_LIBS@.
26143 (LIBES): Add $(RSVG_LIBS).
26144
26145 * image.c (svg_load_image): Blend with specified background if exists.
26146 Use IMAGE_BACKGROUND. Add Mac OS Support.
26147
26148 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
26149 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
26150 Remove macros.
26151 [MAC_OSX] (socket_callback): Do nothing.
26152 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
26153 ReceiveNextEvent.
26154 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
26155 socket_callback.
26156 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
26157
261582007-08-22 Glenn Morris <rgm@gnu.org>
26159
26160 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
26161
261622007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
26163
26164 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
26165
26166 * image.c: Add support for SVG images. Some additional comments
26167 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
26168 (svg_image_p): New function to test for SVG image.
26169 (svg_load): New function to load SVG image.
26170 (svg_load_image): New function, helper for svg_load.
26171 (Qsvg): New Lisp_object.
26172 (svg_keyword_index): New enum.
26173 (svg_format): New static `image_keyword' struct.
26174 (svg_type): New static `image_type' struct.
26175 (librsvg/rsvg.h): Include it.
26176
261772007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
26178
26179 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
26180
261812007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
26182
26183 * lread.c (Qold_style_backquotes): New var.
26184 (syms_of_lread): Init and staticpro it.
26185 (load_warn_old_style_backquotes): New fun.
26186 (Fload): Use them to warn about old style backquotes.
26187 (end_of_file_error, Fload): Remove unused vars.
26188
26189 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
26190
26191 * lread.c (Vold_style_backquotes): New var.
26192 (syms_of_lread): Init and export it to Elisp.
26193 (read1): Set it when we find an old-style (back)quote.
26194
261952007-08-22 Jason Rumney <jasonr@gnu.org>
26196
26197 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
26198
261992007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
26200
26201 * puresize.h (BASE_PURESIZE): Increase to 1140000.
26202
262032007-08-19 Richard Stallman <rms@gnu.org>
26204
26205 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
26206
262072007-08-19 Andreas Schwab <schwab@suse.de>
26208
26209 * alloc.c (pure): Round PURESIZE up.
26210
262112007-08-17 Jan Djärv <jan.h.d@swipnet.se>
26212
26213 * xterm.c (handle_one_xevent): Remove check that mouse click is in
26214 active frame.
26215
262162007-08-16 Richard Stallman <rms@gnu.org>
26217
26218 * eval.c (Fcommandp): Add parens to clarify.
26219
26220 * minibuf.c (Fall_completions): Use enum for type of table.
26221
26222 * emacs.c (USAGE2): Improve text.
26223
262242007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
26225
26226 * term.c (tty_default_color_capabilities): Declare static
26227 variables in file scope, to avoid HPUX compiler problem.
26228
262292007-08-13 Jan Djärv <jan.h.d@swipnet.se>
26230
26231 * gtkutil.c (update_frame_tool_bar): Use -1 as index
26232 to gtk_toolbar_insert.
26233
262342007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
26235
26236 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
26237
26238 * insdel.c (reset_var_on_error): New fun.
26239 (signal_before_change, signal_after_change):
26240 Use it to reset (after|before)-change-functions to nil in case of error.
26241 Bind inhibit-modification-hooks to t.
26242 Don't bind (after|before)-change-functions to nil while they run.
26243
262442007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26245
26246 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
26247 filling pixmap with stippled background.
26248
262492007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26250
26251 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
26252 Don't use invisible frame as parent window for repositioning.
26253
262542007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
26255
26256 * print.c (new_backquote_output): Rename from old_backquote_output.
26257 (print): Inverse its logic (according to its name) so as to match the
26258 behavior of new_backquote_flag in lread.c.
26259
262602007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26261
26262 * gmalloc.c (posix_memalign): New function.
26263
26264 * macterm.c (frame_highlight, frame_unhighlight): Don't call
26265 ActivateControl/DeactivateControl here.
26266 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
26267 frame-notice-user-settings is non-nil.
26268 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
26269 for kEventParamFMFontStyle.
26270 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
26271 mac_pass_command_to_system and mac_pass_control_to_system here.
26272 (XTread_socket): Call ActivateControl/DeactivateControl here.
26273 (XTread_socket) [TARGET_API_MAC_CARBON]:
26274 Check mac_pass_command_to_system and mac_pass_control_to_system here.
26275 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
26276 for window repositioning.
26277
262782007-08-08 Glenn Morris <rgm@gnu.org>
26279
26280 * Replace `iff' in doc-strings and comments.
26281
262822007-08-07 Chong Yidong <cyd@stupidchicken.com>
26283
26284 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
26285
262862007-08-07 Martin Rudalics <rudalics@gmx.at>
26287
26288 * fileio.c (Finsert_file_contents): Run format-decode and
26289 after_insert_file_functions on entire buffer when REPLACE is
26290 non-nil and inhibit modification_hooks and point_motion_hooks.
26291 For consistency, run after_insert_file_functions iff something
26292 got inserted. Move signal_after_change and update_compositions
26293 after code running after_insert_file_functions. Make sure that
26294 undo_list doesn't record intermediate steps of the decoding process.
26295
262962007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26297
26298 * emacs.c (main)
26299 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
26300 Call malloc_enable_thread on interactive startup.
26301
26302 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
26303 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
26304 [USE_PTHREAD]: Conditionalize with it.
26305 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
26306 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
26307 New functions.
26308
263092007-08-06 Chong Yidong <cyd@stupidchicken.com>
26310
26311 * xdisp.c (redisplay_window): When restoring original buffer
26312 position, make sure it is still valid.
26313
26314 * image.c (png_load): Ignore png-supplied background color.
26315
263162007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26317
26318 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
26319 Use kCFAbsoluteTimeIntervalSince1970.
26320
26321 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
26322 New variable.
26323 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
26324 event loop should be quit.
26325 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
26326 Quit dialog event loop if quit_dialog_event_loop is set.
26327
26328 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
26329 (Selection): New typedef. Use instead of ScrapRef.
26330 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
26331 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
26332 (mac_clear_selection): Rename from clear_scrap.
26333 (get_flavor_type_from_symbol): New argument SEL and subsume function of
26334 scrap_has_target_type. All uses changed.
26335 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
26336 (mac_selection_has_target_p): New functions.
26337 (mac_put_selection_value): Rename from put_scrap_string.
26338 (mac_get_selection_value): Rename from get_scrap_string.
26339 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
26340 (put_scrap_private_timestamp, scrap_has_target_type)
26341 (get_scrap_private_timestamp): Remove functions.
26342 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
26343 (x_own_selection, x_get_local_selection):
26344 Use mac_valid_selection_value_p.
26345 (x_own_selection): Don't use put_scrap_private_timestamp.
26346 Record OWNERSHIP-INFO into Vselection_alist instead.
26347 (x_get_local_selection): Don't check type if request is local.
26348 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
26349 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
26350
263512007-08-04 Jan Djärv <jan.h.d@swipnet.se>
26352
26353 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
26354 add comment explaining why.
26355
263562007-08-03 Richard Stallman <rms@gnu.org>
26357
26358 * fileio.c (Fvisited_file_modtime): Use make_time.
26359
263602007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
26361
26362 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
26363 build.
26364
263652007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
26366
26367 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
26368
263692007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
26370
26371 * puresize.h (BASE_PURESIZE): Increase to 1130000.
26372
263732007-07-30 Richard Stallman <rms@gnu.org>
26374
26375 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
26376
263772007-07-29 Jan Djärv <jan.h.d@swipnet.se>
26378
26379 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
26380
263812007-07-28 Nick Roberts <nickrob@snap.net.nz>
26382
26383 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
26384 remote default-directory.
26385
26386 * buffer.c (mode-line-format): Update doc string.
26387
263882007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26389
26390 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
26391 scroll bar gap.
26392 (x_scroll_bar_create): Set bar->fringe_extended_p.
26393 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
26394 on frame edge. Check fringe background extension. Don't clear
26395 extended fringe background area.
26396
26397 * w32term.h (struct scroll_bar): New member fringe_extended_p.
26398 (w32_fill_area): Enclose multiple statements with do ... while (0).
26399
26400 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
26401 Extend fringe background to scroll bar gap.
26402 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
26403 Set bar->fringe_extended_p.
26404 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26405 Put leftmost/rightmost scroll bars on frame edge. Check fringe
26406 background extension. Don't clear extended fringe background area.
26407
26408 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
26409 New member fringe_extended_p.
26410
264112007-07-25 Glenn Morris <rgm@gnu.org>
26412
26413 * Relicense all FSF files to GPLv3 or later.
26414
26415 * COPYING: Switch to GPLv3.
26416
264172007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
26418
26419 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
26420
26421 * data.c (Finteractive_form): Check for the presence of an
26422 `interactive-form' symbol property more thoroughly.
26423
26424 * data.c (Finteractive_form): Use an `interactive-form' property if
26425 present, analogous to the function-documentation property.
26426
264272007-07-24 Jason Rumney <jasonr@gnu.org>
26428
26429 * w32fns.c (x_real_positions): Get real position from OS instead of
26430 calculating it.
26431
264322007-07-23 Jason Rumney <jasonr@gnu.org>
26433
26434 * filelock.c (current_lock_owner): Allow for @ sign in username.
26435
264362007-07-22 Nick Roberts <nickrob@snap.net.nz>
26437
26438 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
26439 remote default-directory.
26440
26441 * buffer.c (mode-line-format): Describe above case in doc string.
26442
264432007-07-20 Eli Zaretskii <eliz@gnu.org>
26444
26445 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
26446 Define if not defined.
26447
264482007-07-18 Jason Rumney <jasonr@gnu.org>
26449
26450 * w32proc.c (w32_executable_type): Handle 64 bit executables.
26451
264522007-07-18 Richard Stallman <rms@gnu.org>
26453
26454 * data.c (Fsetq_default): Doc fix.
26455
26456 * eval.c (Fsetq): Doc fix.
26457
264582007-07-18 Juanma Barranquero <lekktu@gmail.com>
26459
26460 * coding.c (Ffind_operation_coding_system):
26461 * eval.c (For, Fand): Doc fixes.
26462 Reported by Johan Bockgård.
26463
264642007-07-18 Jan Djärv <jan.h.d@swipnet.se>
26465
26466 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
26467
26468 * xterm.h: Declare x_ewmh_activate_frame.
26469
26470 * xterm.c (x_ewmh_activate_frame): New function.
26471 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
26472
264732007-07-17 Martin Rudalics <rudalics@gmx.at>
26474
26475 * window.c (Fdisplay_buffer): If largest or LRU window is the
26476 only window, split it even if it is not eligible for splitting.
26477 This restores the original behavior broken by the 2007-07-15
26478 change.
26479
264802007-07-17 Glenn Morris <rgm@gnu.org>
26481
26482 * abbrev.c (abbrev_check_chars): New function.
26483 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
26484 Call abbrev_check_chars to check abbrev characters are word
26485 constituents. Doc fix.
26486
264872007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
26488
26489 * process.c (Fstart_process, Fmake_network_process)
26490 (read_process_output): Fix up last changes.
26491
264922007-07-16 Eli Zaretskii <eliz@gnu.org>
26493
26494 * makefile.w32-in (clean): Don't delete *~.
26495
264962007-07-16 Andreas Schwab <schwab@suse.de>
26497
26498 * window.c (Fdisplay_buffer): Use NILP.
26499 (Fset_window_scroll_bars): Likewise.
26500
265012007-07-15 Martin Rudalics <rudalics@gmx.at>
26502
26503 * window.c (window_min_size_2): New function.
26504 (window_min_size_1, size_window, Fdisplay_buffer)
26505 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
26506 windows without mode- or header-lines when window-min-height is
26507 too small.
26508 (size_window): Reset nodelete_p after testing it, following an
26509 earlier note by Kim F. Storm.
26510 (display_buffer): Do not set split_height_threshold to twice the
26511 value of window_min_height to avoid changing the value of a
26512 customizable variable. Rather explicitly check whether the
26513 height of the window that shall be splitted is at least as large
26514 as split_height_threshold.
26515 (Fwindow_full_width_p): New defun.
26516 (syms_of_window): Defsubr it.
26517
26518 * window.h: Add EXFUN for Fwindow_full_width_p.
26519
265202007-07-14 Jason Rumney <jasonr@gnu.org>
26521
26522 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
26523
265242007-07-14 Richard Stallman <rms@gnu.org>
26525
26526 * eval.c (maybe_call_debugger): New function.
26527 (find_handler_clause): Use maybe_call_debugger.
26528 Call it when the handler says `debug'.
26529 Eliminate DEBUGGER_VALUE_PTR.
26530 (Fsignal): Eliminate debugger_value.
26531 (Qdebug): New variable.
26532 (syms_of_eval): Initialize it.
26533
265342007-07-14 Juanma Barranquero <lekktu@gmail.com>
26535
26536 * eval.c (Fprogn):
26537 * keyboard.c (Ftrack_mouse):
26538 * print.c (Fwith_output_to_temp_buffer):
26539 * window.c (Fsave_window_excursion): Doc fix.
26540
265412007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
26542
26543 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
26544
265452007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
26546
26547 * process.h (struct Lisp_Process): Turn slots infd, outfd,
26548 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
26549 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
26550 read_output_delay, and read_output_skip from Lisp_Objects to ints.
26551 Remove unused encoding_carryover.
26552 * process.c: Adjust all functions accordingly.
26553
265542007-07-12 Richard Stallman <rms@gnu.org>
26555
26556 * term.c: Include unistd.h only if HAVE_UNISTD_H.
26557
265582007-07-11 Jason Rumney <jasonr@gnu.org>
26559
26560 * makefile.w32-in (LIBS): Include OLE32.
26561
26562 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
26563 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
26564
265652007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
26566
26567 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
26568 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
26569 from a Lisp_Object into a bare pointer.
26570 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
26571 Adjust the code correspondingly.
26572
26573 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
26574
26575 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
26576 (term_show_mouse_face): Remove unused var `j'.
26577 (handle_one_term_event): Remove unused vars `i' and `j'.
26578 Don't cast return value of ttyname since it's not necessary.
26579
265802007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
26581
26582 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
26583 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
26584
26585 * fns.c (map_char_table): Use an array of int for `indices' rather than
26586 an array of Lisp_Objects (which are only ever integers anyway).
26587 (Fmap_char_table): Update caller.
26588 * lisp.h: Update prototype.
26589 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
26590 * fontset.c (Ffontset_info):
26591 * casetab.c (set_case_table): Update callers.
26592
26593 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
26594
26595 * keymap.c (struct accessible_keymaps_data)
26596 (struct where_is_internal_data): New structures.
26597 (accessible_keymaps_1, where_is_internal_1): Use them to change
26598 interface to adhere to the one used by map_keymap.
26599 (Faccessible_keymaps, where_is_internal): Use map_keymap.
26600 (accessible_keymaps_char_table, where_is_internal_2): Remove.
26601
26602 * keymap.h (map_keymap_function_t): More informative prototype.
26603
266042007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
26605
26606 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
26607 (looking_at_1): Don't change search_regs and last_thing_searched
26608 if `inhibit-changing-match-data' is non-nil.
26609 (string_match_1, search_buffer, set_search_regs): Likewise.
26610 (syms_of_search): Add Lisp level definition for
26611 `inhibit-changing-match-data' and set it to nil.
26612 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
26613 start and end of the match, instead of using values in search_regs.
26614
266152007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
26616
26617 * minibuf.c (Fcompleting_read): New value `confirm-only'
26618 for `require-match'.
26619
266202007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
26621
26622 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
26623 part of the 2007-06-27 change to syms_of_fileio.
26624
266252007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26626
26627 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
26628 Check WINDOWP before using XWINDOW. Consolidate return statements.
26629
266302007-06-27 Richard Stallman <rms@gnu.org>
26631
26632 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
26633
266342007-06-27 Juanma Barranquero <lekktu@gmail.com>
26635
26636 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
26637
266382007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26639
26640 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
26641 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
26642 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
26643 (_free_internal, memalign): Use them.
26644 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
26645 Initialize to PTHREAD_MUTEX_INITIALIZER.
26646 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
26647 (morecore_nolock): Rename from morecore. All uses changed.
26648 Use only nolock versions of internal allocation functions.
26649 (_malloc_internal_nolock, _realloc_internal_nolock)
26650 (_free_internal_nolock): New functions created from
26651 _malloc_internal, _realloc_internal, and _free_internal.
26652 (_malloc_internal, _realloc_internal, _free_internal): Use them.
26653 Copy hook value to automatic variable before its use.
26654 (memalign): Copy hook value to automatic variable before its use.
26655
266562007-06-26 Kenichi Handa <handa@m17n.org>
26657
26658 * coding.c (Ffind_operation_coding_system): Docstring improved.
26659 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
26660
266612007-06-25 David Kastrup <dak@gnu.org>
26662
26663 * keymap.c (Fcurrent_active_maps): Add `position' argument.
26664 (Fwhere_is_internal): Adjust call to `current-active-maps' to
26665 cater for additional parameter.
26666
26667 * keymap.h: Adjust number of parameters to `current-active-maps'.
26668
26669 * doc.c (Fsubstitute_command_keys): Adjust call of
26670 `current-active-maps'.
26671
266722007-06-25 David Kastrup <dak@gnu.org>
26673
26674 * callint.c (Fcall_interactively): Make the parsing of interactive
26675 specs somewhat more readable.
26676
266772007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26678
26679 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
26680 to scroll bar gap also when bitmap fills fringe. Draw only foreground
26681 if extended background has already been filled.
26682
266832007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26684
26685 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
26686 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
26687
26688 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
26689 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
26690 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
26691 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
26692 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
26693 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
26694 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
26695 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
26696 Run timers during dialog popup.
26697 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
26698
266992007-06-21 Jason Rumney <jasonr@gnu.org>
26700
26701 * image.c (convert_mono_to_color_image): Swap fore and background.
26702
267032007-06-20 Jason Rumney <jasonr@gnu.org>
26704
26705 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
26706 (w32_free_bdf_font): Unmap memory not handle.
26707
267082007-06-20 Sam Steingold <sds@gnu.org>
26709
26710 * gmalloc.c (__morecore): Fix the declaration to comply with the
26711 definition.
26712
267132007-06-20 Juanma Barranquero <lekktu@gmail.com>
26714
26715 * w32term.c (w32_delete_display): Remove leftover declaration.
26716 (w32_define_cursor, w32_initialize): Make static.
26717
26718 * w32.c (_wsa_errlist): Fix typo in error message.
26719 (init_environment): Ignore any environment variable from the
26720 registry having a null value.
26721
267222007-06-20 Glenn Morris <rgm@gnu.org>
26723
26724 * Makefile.in (LIBGIF): Default to -lgif.
26725
267262007-06-17 Jason Rumney <jasonr@gnu.org>
26727
26728 * w32menu.c (add_menu_item): Don't use multibyte string functions on
26729 unicode strings.
26730
267312007-06-16 Juanma Barranquero <lekktu@gmail.com>
26732
26733 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
26734 Fix typo in docstring.
26735
267362007-06-16 Eli Zaretskii <eliz@gnu.org>
26737
26738 * w32menu.c (add_menu_item): Escape `&' characters in menu items
26739 and their keybindings.
26740
267412007-06-15 Chong Yidong <cyd@stupidchicken.com>
26742
26743 * composite.c (update_compositions): Fix last fix.
26744
267452007-06-14 Jason Rumney <jasonr@gnu.org>
26746
26747 * w32.c (get_process_times_fn): New function pointer.
26748 (globals_of_w32): Intialize it if present in kernel32.dll.
26749 (w32_get_internal_run_time): New function.
26750
26751 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
26752
267532007-06-14 Kenichi Handa <handa@etlken.m17n.org>
26754
26755 * composite.c (update_compositions): Check the validness of
26756 compositions.
26757
267582007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26759
26760 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
26761 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
26762
26763 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
26764 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
26765
26766 * macgui.h (USE_MAC_TOOLBAR): New define.
26767
26768 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26769 Return immediately unless popup is activated.
26770
26771 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
26772 background to scroll bar gap.
26773 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
26774 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
26775 scroll bars on frame edge. Check fringe background extension.
26776 Don't clear extended fringe background area.
26777 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
26778 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
26779 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
26780 [USE_MAC_TOOLBAR]: New macros.
26781 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
26782 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
26783 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
26784 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
26785 [USE_MAC_TOOLBAR]: New functions.
26786 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
26787 manually if previous repositioning has failed.
26788 (mac_handle_keyboard_event): Use precomputed event kind.
26789 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
26790 as tool bar item click. Handle mouse movement over tool bar items.
26791
26792 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
26793 toolbar_win_gravity.
26794 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
26795 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
26796 Add externs.
26797
26798 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
26799 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
26800
268012007-06-14 Chong Yidong <cyd@stupidchicken.com>
26802
26803 * image.c (search_image_cache): Remove unused variable.
26804
268052007-06-13 Chong Yidong <cyd@stupidchicken.com>
26806
26807 * xfns.c, xmenu.c: Link to xaw3d if available.
26808
268092007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26810
26811 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
26812 frame_foreground and frame_background.
26813
26814 * image.c (lookup_image): Save frame foreground and background colors.
26815 (search_image_cache): Check if saved and current frame colors match.
26816
268172007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
26818
26819 * regex.c (regex_compile): Remove the `regnum' counter.
26820 Use bufp->re_nsub instead. Add support for \(?N:RE\).
26821
268222007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
26823
26824 * term.c: Include intervals.h to declare Fget_text_property.
26825
268262007-06-10 Jason Rumney <jasonr@gnu.org>
26827
26828 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
26829
268302007-06-08 Juanma Barranquero <lekktu@gmail.com>
26831
26832 * callint.c (Fcall_interactively):
26833 * editfns.c (Fdelete_and_extract_region):
26834 * fileio.c (Fread_file_name):
26835 * fns.c (Fmapconcat):
26836 * keyboard.c (cmd_error_internal):
26837 * keymap.c (Fkey_description):
26838 * lread.c (openp):
26839 * minibuf.c (read_minibuf):
26840 * search.c (wordify):
26841 * sunfns.c (sel_read):
26842 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
26843 * xfns.c (x_default_scroll_bar_color_parameter):
26844 * xmenu.c (menu_help_callback):
26845 * xselect.c (Fx_get_atom_name):
26846 * xterm.c (x_term_init): Use empty_unibyte_string.
26847
268482007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
26849
26850 * alloc.c (init_strings): Initialize canonical empty strings.
26851 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
26852 canonical empty string when the requested size is 0.
26853
26854 * emacs.c (empty_unibyte_string): Rename from empty_string.
26855 (empty_multibyte_string): New canonical empty string.
26856 (syms_of_emacs): Don't initialize empty_string.
26857
26858 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
26859 string, if appropriate.
26860 (empty_unibyte_string, empty_multibyte_string): New externs.
26861 (empty_string): Remove extern.
26862
26863 * lread.c (syms_of_lread): Use empty_unibyte_string.
26864
268652007-06-07 Jason Rumney <jasonr@gnu.org>
26866
26867 * s/ms-w32.h: Don't define HAVE_TZNAME.
26868
26869 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
26870
268712007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26872
26873 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
26874
26875 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
26876 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
26877
26878 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
26879 Don't call next handler.
26880 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
26881 Remove argument. Install handler to application.
26882 (set_frame_menubar): Don't change deep_p.
26883 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
26884 FRAME_OUTER_TO_INNER_DIFF_Y.
26885 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
26886 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
26887 [HAVE_DIALOGS]: New macros.
26888 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
26889 Use them.
26890 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
26891
26892 * macselect.c [MAC_OSX] (install_service_handler): Rename from
26893 init_service_handler. All callers changed. Return OSStatus value.
26894
26895 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
26896 All callers changed so as not to call SetPortWindowPort.
26897 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
26898 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
26899 mac_draw_string_common.
26900 (mac_draw_image_string_qd): Likewise.
26901 (mac_draw_string_common): Use them. Add INLINE.
26902 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
26903 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
26904 GetGlobalMouse.
26905 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
26906 and FRAME_OUTER_TO_INNER_DIFF_Y.
26907 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
26908 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
26909 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
26910 repositioning window to mac_handle_window_event.
26911 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
26912 saving window location to mac_handle_window_event
26913 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
26914 (install_menu_target_item_handler): Remove argument in extern.
26915 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
26916 Also accept command events.
26917 (do_keystroke): New function created from XTread_socket.
26918 (init_command_handler): Remove functions.
26919 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
26920 and save window location by kEventWindowShowing and kEventWindowHiding
26921 handlers here. Don't call next handler for window state change and
26922 focus events.
26923 (mac_handle_application_event, mac_handle_keyboard_event)
26924 [TARGET_API_MAC_CARBON]: New functions.
26925 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
26926 kEventWindowShowing and kEventWindowHiding events. Move installation
26927 of mouse, font, text input and menu target item handlers to
26928 install_application_handler.
26929 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
26930 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26931 New function.
26932 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
26933 Register it.
26934 (XTread_socket) [TARGET_API_MAC_CARBON]:
26935 Consolidate SendEventToEventTarget calls.
26936 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
26937 Move application activation handler to mac_handle_application_event.
26938 Move keyboard handler to mac_handle_keyboard_event.
26939 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
26940 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
26941 init_command_handler. Call install_application_handler.
26942
26943 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
26944 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
26945
269462007-06-07 Glenn Morris <rgm@gnu.org>
26947
26948 * emacs.c (main): Use `emacs-copyright' in --version output.
26949
269502007-06-06 Chong Yidong <cyd@stupidchicken.com>
26951
26952 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
26953
269542007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
26955
26956 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
26957
26958 * macgui.h: Replace WindowPtr with WindowRef.
26959
26960 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26961 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26962 Replace ControlHandle with ControlRef.
26963 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
26964
26965 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
26966 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
26967 Replace ControlHandle with ControlRef.
26968 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
26969 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
26970
26971 * macterm.h (struct scroll_bar): Rename member control_handle_low
26972 and control_handle_high to control_ref_low and control_ref_high.
26973 All uses changed.
26974 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
26975 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
26976 respectively. All uses changed.
26977 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
26978 (install_window_handler, remove_window_handler): Replace WindowPtr
26979 with WindowRef in externs.
26980
269812007-06-05 Juanma Barranquero <lekktu@gmail.com>
26982
26983 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
26984
269852007-06-03 Nick Roberts <nickrob@snap.net.nz>
26986
26987 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
26988
26989 * frame.c (Fmouse_position, Fmouse_pixel_position):
26990 Condition on HAVE_GPM too.
26991
26992 * term.c (term_mouse_highlight): Remove unused variables.
26993 (Fterm_open_connection): Set gpm_zerobased to 1.
26994 (term_mouse_movement, term_mouse_click, handle_one_term_event):
26995 Use zero based co-ordinates.
26996 (handle_one_term_event): Report a drag as mouse movement too.
26997
26998 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
26999
270002007-06-03 Chong Yidong <cyd@stupidchicken.com>
27001
27002 * image.c (search_image_cache): New function. Require background
27003 color match if background color is unspecified in the image spec.
27004 (uncache_image, lookup_image): Use it.
27005
270062007-06-01 Juanma Barranquero <lekktu@gmail.com>
27007
27008 * window.c (Fshrink_window): Reflow docstring.
27009
270102007-06-02 Chong Yidong <cyd@stupidchicken.com>
27011
27012 * Version 22.1 released.
27013
270142007-06-01 Richard Stallman <rms@gnu.org>
27015
27016 * xfns.c (x_encode_text): Add GCPRO.
27017
270182007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27019
27020 * xfns.c (x_set_name_internal): Save encoded name before
27021 x_encode_text in case string data is relocated.
27022
270232007-05-31 Richard Stallman <rms@gnu.org>
27024
27025 * buffer.c (syms_of_buffer): Doc fix.
27026
270272007-05-30 Nick Roberts <nickrob@snap.net.nz>
27028
27029 * sysdep.c (init_sys_modes): Add rather than replace with
27030 O_NONBLOCK.
27031
27032 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
27033 term_mouse_moveto.
27034
27035 * termhooks.h (term_mouse_moveto): New extern.
27036
27037 * term.c (mouse_face_window): Rename...
27038 (Qmouse_face_window): ...to this.
27039 (term_show_mouse_face, term_clear_mouse_face)
27040 (term_mouse_highlight): Use Qmouse_face_window.
27041 (term_mouse_moveto): New function.
27042 (term_mouse_position): Make it work.
27043 (syms_of_term): Uncomment assignment to mouse_position_hook.
27044 Staticpro Qmouse_face_window.
27045
270462007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27047
27048 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
27049 around current_column call.
27050
270512007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
27052
27053 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
27054 * xdisp.c (next_element_from_buffer):
27055 * window.c (delete_window):
27056 * term.c (term_mouse_highlight):
27057 * msdos.c (getdefdir):
27058 * macterm.c (mac_create_bitmap_from_bitmap_data)
27059 (init_font_name_table):
27060 * fns.c (Fsxhash):
27061 * data.c (Fmake_local_variable):
27062 * ccl.c (ccl_driver): Likewise.
27063
270642007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27065
27066 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
27067 Call mac_wakeup_from_rne on window size change.
27068
270692007-05-25 Chong Yidong <cyd@stupidchicken.com>
27070
27071 * image.c (uncache_image): Fix typo.
27072
270732007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
27074
27075 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
27076
270772007-05-22 Richard Stallman <rms@gnu.org>
27078
27079 * xterm.c (x_connection_closed): Remove NO_RETURN.
27080
270812007-05-22 Martin Rudalics <rudalics@gmx.at>
27082
27083 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
27084
270852007-05-21 Chong Yidong <cyd@stupidchicken.com>
27086
27087 * image.c (uncache_image): New function.
27088 (Fimage_refresh): New function.
27089
270902007-05-20 Jan Djärv <jan.h.d@swipnet.se>
27091
27092 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
27093
270942007-05-20 Nick Roberts <nickrob@snap.net.nz>
27095
27096 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
27097 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
27098
270992007-05-20 Nick Roberts <nickrob@snap.net.nz>
27100
27101 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
27102 conditional on [HAVE_GPM_H].
27103
271042007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
27105
27106 * syntax.c (skip_chars): Update syntax-table only after we checked that
27107 the new location is valid.
27108
271092007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27110
27111 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
27112 mac_get_window_bounds.
27113
271142007-05-20 Nick Roberts <nickrob@snap.net.nz>
27115
27116 * Makefile.in (LIBGPM): Allow it to be set from configure.
27117 If set then link Emacs with it.
27118
27119 * config.in: Regenerate.
27120
27121 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
27122 New externs.
27123
27124 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
27125 Include gpm.h.
27126 (handle_one_term_event, term_gpm): New externs.
27127
27128 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
27129 and allow it to be interrupted by SIGIO.
27130
27131 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
27132 (wait_reading_process_output): Wait on gpm_fd too.
27133 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
27134 (add_gpm_wait_descriptor_called_flag): New variable.
27135 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
27136
27137 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
27138 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
27139 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
27140 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
27141 (make_lispy_event): Add case GPM_CLICK_EVENT.
27142 (read_avail_input): Handle mouse input.
27143
27144 * term.c (write_glyphs_with_face): New function.
27145 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
27146 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
27147 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
27148 (mouse_face_face_id, term_gpm, pos_x, pos_y)
27149 (last_mouse_x, last_mouse_y): New variables.
27150 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
27151 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
27152 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
27153 (Fterm_close_connection): New functions.
27154 (term_init): Initialise mouse_face_window.
27155
271562007-05-19 Chong Yidong <cyd@stupidchicken.com>
27157
27158 * xdisp.c (redisplay_window): If first window line is a
27159 continuation line, recompute the new window start instead of
27160 recentering.
27161
271622007-05-18 Glenn Morris <rgm@gnu.org>
27163
27164 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
27165 Suggested by Alfred M. Szmidt <ams@gnu.org>.
27166
271672007-05-17 Glenn Morris <rgm@gnu.org>
27168
27169 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
27170
271712007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27172
27173 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
27174 dead key repeat and up events.
27175
271762007-05-14 Chong Yidong <cyd@stupidchicken.com>
27177
27178 * image.c (pbm_load): Check image size for monochrome pbm.
27179
271802007-05-13 Chong Yidong <cyd@stupidchicken.com>
27181
27182 * xterm.c (XTread_socket): Revert last change.
27183
271842007-05-12 Chong Yidong <cyd@stupidchicken.com>
27185
27186 * image.c (pbm_load): Correctly check image size for greyscale pbm.
27187
27188 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
27189
271902007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27191
27192 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
27193 mixup (YAILOM).
27194
271952007-05-07 Andreas Schwab <schwab@suse.de>
27196
27197 * keymap.c (Flookup_key): Fix typo in last change.
27198
271992007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
27200
27201 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
27202 mapping for unibyte strings.
27203
272042007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27205
27206 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
27207 (Fx_popup_dialog) [MAC_OSX]: Likewise.
27208
272092007-04-29 Richard Stallman <rms@gnu.org>
27210
27211 * insdel.c (replace_range): For undo, record insertion first.
27212
272132007-04-29 Andreas Schwab <schwab@suse.de>
27214
27215 * lisp.h (VECSIZE): Use OFFSETOF.
27216
272172007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
27218
27219 * xdisp.c (try_window_reusing_current_matrix): Fix number of
27220 disabled lines.
27221
272222007-04-28 Richard Stallman <rms@gnu.org>
27223
27224 * lread.c (read_escape): In a string, \s is always space.
27225
272262007-04-27 Jan Djärv <jan.h.d@swipnet.se>
27227
27228 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
27229
27230 * gtkutil.c (xg_update_menubar, create_menus): Create empty
27231 submenu for menu bar items.
27232
27233See ChangeLog.10 for earlier changes.
27234
27235;; Local Variables:
27236;; coding: utf-8
27237;; add-log-time-zone-rule: t
aac0c6e3
MR
27238;; End:
27239
e3eb1dae 27240 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
27241
27242 This file is part of GNU Emacs.
27243
27244 GNU Emacs is free software: you can redistribute it and/or modify
27245 it under the terms of the GNU General Public License as published by
27246 the Free Software Foundation, either version 3 of the License, or
27247 (at your option) any later version.
27248
27249 GNU Emacs is distributed in the hope that it will be useful,
27250 but WITHOUT ANY WARRANTY; without even the implied warranty of
27251 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27252 GNU General Public License for more details.
27253
27254 You should have received a copy of the GNU General Public License
27255 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
27256
27257;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40