nt/*.c, src/*.c: Remove unused variables.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
0f4a96b5
JB
12011-03-25 Juanma Barranquero <lekktu@gmail.com>
2
3 * dispextern.h (glyph_matric): Use #if GLYPH_DEBUG, not #ifdef.
4
5 * fileio.c (check_executable) [DOS_NT]: Remove unused variables `len'
6 and `suffix'.
7 (Fset_file_selinux_context) [HAVE_LIBSELINUX]: Move here declaration
8 of variables specific to SELinux and computation of `encoded_absname'.
9
10 * image.c (XPutPixel): Remove unused variable `height'.
11
12 * keyboard.c (make_lispy_event): Remove unused variable `hpos'.
13
14 * unexw32.c (get_section_info): Remove unused variable `section'.
15
16 * w32.c (stat): Remove unused variables `drive_root' and `devtype'.
17 (system_process_attributes): Remove unused variable `sess'.
18 (sys_read): Remove unused variable `err'.
19
20 * w32fns.c (top): Wrap variables with #if GLYPH_DEBUG, not #ifdef.
21 (w32_wnd_proc): Remove unused variable `isdead'.
22 (unwind_create_frame): Use #if GLYPH_DEBUG, not #ifdef.
23 (Fx_server_max_request_size): Remove unused variable `dpyinfo'.
24 (x_create_tip_frame): Remove unused variable `tem'.
25
26 * w32inevt.c (w32_console_read_socket):
27 Remove unused variable `no_events'.
28
29 * w32term.c (x_draw_composite_glyph_string_foreground):
30 Remove unused variable `width'.
31
1149507c
JB
322011-03-24 Juanma Barranquero <lekktu@gmail.com>
33
34 * w32term.c (x_set_glyph_string_clipping):
35 Don't pass uninitialized region to CombineRgn.
36
9c88f339
JB
372011-03-23 Juanma Barranquero <lekktu@gmail.com>
38
39 * w32fns.c (x_set_menu_bar_lines): Remove unused variable `olines'.
40 (w32_wnd_proc): Pass NULL to Windows API, not uninitialized buffer.
41 (Fx_close_connection): Remove unused variable `i'.
42
43 * w32font.c (w32font_draw): Return number of glyphs.
44 (w32font_open_internal): Remove unused variable `i'.
45 (w32font_driver): Add missing initializer.
46
47 * w32menu.c (utf8to16): Remove unused variable `utf16'.
48 (fill_in_menu): Remove unused variable `items_added'.
49
50 * w32term.c (last_mouse_press_frame): Remove static global variable.
51 (w32_clip_to_row): Remove unused variable `f'.
52 (x_delete_terminal): Remove unused variable `i'.
53
54 * w32uniscribe.c (uniscribe_shape): Remove unused variable `nclusters'.
55 (NOTHING): Remove unused static global variable.
56 (uniscribe_check_otf): Remove unused variable `table'.
57 (uniscribe_font_driver): Add missing initializers.
58
dee091a3
JD
592011-03-23 Julien Danjou <julien@danjou.info>
60
61 * term.c (Fsuspend_tty, Fresume_tty):
62 * minibuf.c (read_minibuf, run_exit_minibuf_hook):
63 * window.c (temp_output_buffer_show):
64 * insdel.c (signal_before_change):
65 * frame.c (Fhandle_switch_frame):
66 * fileio.c (Fdo_auto_save):
67 * emacs.c (Fkill_emacs):
68 * editfns.c (save_excursion_restore):
69 * cmds.c (internal_self_insert):
70 * callint.c (Fcall_interactively):
71 * buffer.c (Fkill_all_local_variables):
72 * keyboard.c (Fcommand_execute, Fsuspend_emacs, safe_run_hooks_1):
73 Use Frun_hooks.
0f4a96b5 74 (command_loop_1): Use Frun_hooks. Call safe_run_hooks
dee091a3
JD
75 unconditionnaly since it does the check itself.
76
2c520ab5 772011-03-23 Paul Eggert <eggert@cs.ucla.edu>
f0641eff 78
c9c49752
PE
79 Fix more problems found by GCC 4.5.2's static checks.
80
8abc3f12
PE
81 * coding.c (encode_coding_raw_text): Avoid unnecessary test
82 the first time through the loop, since we know p0 < p1 then.
83 This also avoids a gcc -Wstrict-overflow warning.
84
a2d26660
PE
85 * lisp.h (SAFE_ALLOCA, SAFE_ALLOCA_LISP): Avoid 'int' overflow
86 leading to a memory leak, possible in functions like
87 load_charset_map_from_file that can allocate an unbounded number
b12ef411 88 of objects (Bug#8318).
a2d26660 89
916c72e9
PE
90 * xmenu.c (set_frame_menubar): Use EMACS_UINT, not int, for indexes
91 that could (at least in theory) be that large.
92
19ab8a18
PE
93 * xdisp.c (message_log_check_duplicate): Return unsigned long, not int.
94 This is less likely to overflow, and avoids undefined behavior if
95 overflow does occur. All callers changed. Use strtoul to scan
96 for the unsigned long integer.
b7cbbd6f
PE
97 (pint2hrstr): Simplify and tune code slightly.
98 This also avoids a (bogus) GCC warning with gcc -Wstrict-overflow.
19ab8a18 99
f0641eff
PE
100 * scroll.c (do_scrolling): Work around GCC bug 48228.
101 See <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48228>.
102
7f650bb9
PE
103 * frame.c (Fmodify_frame_parameters): Simplify loop counter.
104 This also avoids a warning with gcc -Wstrict-overflow.
39f5e519
PE
105 (validate_x_resource_name): Simplify count usage.
106 This also avoids a warning with gcc -Wstrict-overflow.
7f650bb9 107
37dd57d1
PE
108 * fileio.c (Fcopy_file): Report error if fchown or fchmod
109 fail (Bug#8306).
81e56e61 110
699979fc 111 * emacs.c (Fdaemon_initialized): Do not ignore I/O errors (Bug#8303).
dc1ca6a8 112
401bf9b4
PE
113 * process.c (Fmake_network_process): Use socklen_t, not int,
114 where POSIX says socklen_t is required in portable programs.
115 This fixes a porting bug on hosts like 64-bit HP-UX, where
591b2973 116 socklen_t is wider than int (Bug#8277).
401bf9b4
PE
117 (Fmake_network_process, server_accept_connection):
118 (wait_reading_process_output, read_process_output):
119 Likewise.
120
b93aacde
PE
121 * process.c: Rename or move locals to avoid shadowing.
122 (list_processes_1, Fmake_network_process):
123 (read_process_output_error_handler, exec_sentinel_error_handler):
124 Rename or move locals.
4dc343ee 125 (Fmake_network_process): Define label "retry_connect" only if needed.
0da49335 126 (Fnetwork_interface_info): Fix pointer signedness.
f990b4e5 127 (process_send_signal): Add cast to avoid pointer signedness problem.
7b808126 128 (FIRST_PROC_DESC, IF_NON_BLOCKING_CONNECT): Remove unused macros.
c939f91b 129 (create_process): Use 'volatile' to avoid vfork clobbering (Bug#8298).
b93aacde 130
af8a867c
PE
131 Make tparam.h and terminfo.c consistent.
132 * cm.c (tputs, tgoto, BC, UP): Remove extern decls. Include
133 tparam.h instead, since it declares them.
134 * cm.h (PC): Remove extern decl; tparam.h now does this.
135 * deps.mk (cm.o, terminfo.o): Depend on tparam.h.
136 * terminfo.c: Include tparam.h, to check interfaces.
137 (tparm): Make 1st arg a const pointer in decl. Put it at top level.
138 (tparam): Adjust signature to match interface in tparam.h;
139 this removes some undefined behavior. Check that outstring and len
140 are zero, which they always are with Emacs.
141 * tparam.h (PC, BC, UP): New extern decls.
142
0248044d 143 * xftfont.c (xftfont_shape): Now static, and defined only if needed.
001a7ab4 144 (xftfont_open): Rename locals to avoid shadowing.
0248044d 145
8ff096c1 146 * ftfont.c (ftfont_resolve_generic_family): Fix pointer signedness.
a00924bb
PE
147 (ftfont_otf_capability, ftfont_shape): Omit decls if not needed.
148 (OTF_TAG_SYM): Omit macro if not needed.
e932860f 149 (ftfont_list): Remove unused local.
49eaafba
PE
150 (get_adstyle_property, ftfont_pattern_entity):
151 (ftfont_lookup_cache, ftfont_open, ftfont_anchor_point):
152 Rename locals to avoid shadowing.
8ff096c1 153
e2be39f6
PE
154 * xfont.c (xfont_list_family): Mark var as initialized.
155
c9735e30
PE
156 * xml.c (make_dom): Now static.
157
8f5201ae
PE
158 * composite.c (composition_compute_stop_pos): Rename local to
159 avoid shadowing.
b246f932
PE
160 (composition_reseat_it): Remove unused locals.
161 (find_automatic_composition, composition_adjust_point): Likewise.
80e079b2 162 (composition_update_it): Mark var as initialized.
11b61122
PE
163 (find_automatic_composition): Mark vars as initialized,
164 with a FIXME (Bug#8290).
8f5201ae 165
760fbc2c
PE
166 character.h: Rename locals to avoid shadowing.
167 * character.h (PREV_CHAR_BOUNDARY, FETCH_STRING_CHAR_ADVANCE):
168 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE, FETCH_CHAR_ADVANCE):
169 (FETCH_CHAR_ADVANCE_NO_CHECK, INC_POS, DEC_POS, BUF_INC_POS):
170 (BUF_DEC_POS): Be more systematic about renaming local temporaries
171 to avoid shadowing.
172
ff08eb85
PE
173 * textprop.c (property_change_between_p): Remove; unused.
174
fc7bf025
PE
175 * intervals.c (interval_start_pos): Now static.
176
235d7abc
PE
177 * intervals.h (CHECK_TOTAL_LENGTH): Avoid empty "else".
178
3e7d6594
PE
179 * atimer.c (start_atimer, append_atimer_lists, set_alarm): Rename
180 locals to avoid shadowing.
181
50060332
PE
182 * sound.c (wav_play, au_play, Fplay_sound_internal):
183 Fix pointer signedness.
d01f234b 184 (alsa_choose_format): Remove unused local var.
c83b8872
PE
185 (wav_play): Initialize a variable to 0, to prevent undefined
186 behavior (Bug#8278).
50060332 187
c4fc4e30
PE
188 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
189
918436ed
PE
190 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
191
c939f91b
PE
192 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork
193 clobbering (Bug#8298).
b9c7f648
PE
194 * sysdep.c (sys_subshell): Likewise.
195 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
7e9123a2 196
6bd8c144
PE
197 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
198 This should get cleaned up, so that child_setup has the
199 same signature on all platforms.
200
7710357c 201 * callproc.c (call_process_cleanup): Now static.
cb1d0ef7 202 (relocate_fd): Rename locals to avoid shadowing.
7710357c 203
c59da222
CY
2042011-03-22 Chong Yidong <cyd@stupidchicken.com>
205
206 * xterm.c (x_clear_frame): Remove XClearWindow call. This appears
207 not to be necessary, and produces flickering.
208
66b87493
GM
2092011-03-20 Glenn Morris <rgm@gnu.org>
210
211 * config.in: Remove file.
212
45b6f6d5
JB
2132011-03-20 Juanma Barranquero <lekktu@gmail.com>
214
215 * minibuf.c (Vcompleting_read_function): Don't declare, global variables
216 are now in src/globals.h.
217 (syms_of_minibuf): Remove spurious & from previous change.
218
3ec03f7e
LL
2192011-03-20 Leo <sdl.web@gmail.com>
220
221 * minibuf.c (completing-read-function): New variable.
222 (completing-read-default): Rename from completing-read.
223 (completing-read): Call completing-read-function.
224
b14e3e21
CY
2252011-03-19 Juanma Barranquero <lekktu@gmail.com>
226
227 * xfaces.c (Fx_load_color_file):
228 Read color file from absolute filename (bug#8250).
229
f2b726e6
JB
2302011-03-19 Juanma Barranquero <lekktu@gmail.com>
231
232 * makefile.w32-in: Update dependencies.
233
09f6ff02
EZ
2342011-03-17 Eli Zaretskii <eliz@gnu.org>
235
236 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
237
29a6015a
PE
2382011-03-17 Paul Eggert <eggert@cs.ucla.edu>
239
a3a6c54e
PE
240 Fix more problems found by GCC 4.5.2's static checks.
241
b766f867
PE
242 * process.c (make_serial_process_unwind, send_process_trap):
243 (sigchld_handler): Now static.
244
be02381c
PE
245 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
246 That way, the code declares only the vars that it needs.
247 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
248 * s/cygwin.h (PTY_ITERATION): Likewise.
249 * s/darwin.h (PTY_ITERATION): Likewise.
250 * s/gnu-linux.h (PTY_ITERATION): Likewise.
251
57048744
PE
252 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
253 * process.c (allocate_pty): Don't declare stb unless it's needed.
254
7914961c 255 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
615f2d59
PE
256 (CONSTANTLIM): Remove; unused.
257 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
258 Define only if needed.
7914961c 259
b3967b18
PE
260 * unexelf.c (unexec): Name an expression,
261 to avoid gcc -Wbad-function-cast warning.
9ae71512
PE
262 Use a different way to cause a compilation error if anyone uses
263 n rather than nn, a way that does not involve shadowing.
73366a00 264 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
b3967b18 265
29a6015a
PE
266 * deps.mk (unexalpha.o): Remove; unused.
267
43cfc33e 268 New file unexec.h, the (simple) interface for unexec (Bug#8267).
7feda0d2 269 * unexec.h: New file.
ce701a33
PE
270 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
271 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
272 Depend on unexec.h.
273 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
274 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
275 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
381259ef 276 Change as necessary to match prototype in unexec.h.
ce701a33 277
01f44d5a
PE
278 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
279 shadowing.
4f63c6bb 280 (back_comment, skip_chars): Mark vars as initialized.
01f44d5a 281
a6670b0b
PE
282 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
283 Rename locals to avoid shadowing.
284
cef2010d 285 * lread.c (read1): Rewrite so as not to use empty "else".
0902fe45 286 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
cef2010d 287
d4d7173a
PE
288 * print.c (Fredirect_debugging_output): Fix pointer signedess.
289
f08b802a
PE
290 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
291 warning when compiling print.c.
292
3ddb0639
PE
293 * font.c (font_unparse_fcname): Abort in an "impossible" situation
294 instead of using an uninitialized var.
5ad03b97 295 (font_sort_entities): Mark var as initialized.
3ddb0639 296
170a2692
PE
297 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
298
e663c700
PE
299 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
300 pointers to constants.
89bc529a 301 (font_parse_fcname): Remove unused vars.
7b81e2d0 302 (font_delete_unmatched): Now static.
ea838e10 303 (font_get_spec): Remove; unused.
13a547c6
PE
304 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
305 (font_update_drivers, Ffont_get_glyphs, font_add_log):
306 Rename or move locals to avoid shadowing.
e663c700 307
2a80c887 308 * fns.c (require_nesting_list, require_unwind): Now static.
612f56df 309 (Ffillarray): Rename locals to avoid shadowing.
2a80c887 310
1384fa33 311 * floatfns.c (domain_error2): Define only if needed.
a885e2ed 312 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
1384fa33 313
8b2c52e9
PE
314 * alloc.c (mark_backtrace): Move decl from here ...
315 * lisp.h: ... to here, so that it can be checked.
316
475545b5 317 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
d28a2170 318 (Fdefvar): Rewrite so as not to use empty "else".
cfcbfb1a
PE
319 (lisp_indirect_variable): Name an expression,
320 to avoid gcc -Wbad-function-cast warning.
1faed8ae 321 (Fdefvar): Rename locals to avoid shadowing.
475545b5 322
b1349114 323 * callint.c (quotify_arg, quotify_args): Now static.
a3e8cbda 324 (Fcall_interactively): Rename locals to avoid shadowing.
b0e80955 325 Use const pointer when appropriate.
b1349114 326
a2928364
PE
327 * lisp.h (get_system_name, get_operating_system_release):
328 Move decls here, to check interfaces.
329 * process.c (get_operating_system_release): Move decl to lisp.h.
330 * xrdb.c (get_system_name): Likewise.
63c5d10b
PE
331 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
332 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
333 some of which prompt warnings from gcc -Wbad-function-cast.
545b49b4
PE
334 (Fformat_time_string, Fencode_time, Finsert_char):
335 (Ftranslate_region_internal, Fformat):
336 Rename or remove local vars to avoid shadowing.
9710023e 337 (Ftranslate_region_internal): Mark var as initialized.
63c5d10b 338
a415e694
PE
339 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
340 avoid shadowing.
341
8ef4622d
PE
342 * lisp.h (eassert): Check that the argument compiles, even if
343 ENABLE_CHECKING is not defined.
344
946f9a5b
PE
345 * data.c (Findirect_variable): Name an expression, to avoid
346 gcc -Wbad-function-cast warning.
112396d6 347 (default_value, arithcompare, arith_driver, arith_error): Now static.
b9b84fa9 348 (store_symval_forwarding): Rename local to avoid shadowing.
cdef261f
PE
349 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
350 variables as initialized.
52746918 351 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
946f9a5b 352
e5aab7e7 353 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
ae35e756
PE
354 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
355 Rename locals to avoid shadowing.
dff45157
PE
356 (mark_stack): Move local variables into the #ifdef region where
357 they're used.
7bc26fdb
PE
358 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
359 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
360 needed otherwise.
361 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
362 (GC_STRING_CHARS): Remove; not used.
d40d4be1 363 (Fmemory_limit): Cast sbrk's returned value to char *.
ae35e756 364
e5aab7e7
PE
365 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
366 avoids undefined behavior in theory.
367
4da60324
PE
368 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
369
88043301
PE
370 Use functions, not macros, for up- and down-casing (Bug#8254).
371 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
372 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
373 to use the following functions instead of these macros.
374 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
375 EMACS_INT, since callers assume the returned value fits in int.
376 (upcase1): Likewise, for UPCASE_TABLE.
377 (uppercasep, lowercasep, upcase): New static inline functions.
0da09c43 378 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
db69b0cd 379 the race-condition problem in the old DOWNCASE.
88043301 380
19ed5445
PE
381 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
382 Rename locals to avoid shadowing.
383 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
abbd1bcf
PE
384 (regex_compile, re_search_2, re_match_2_internal):
385 Remove unused local vars.
952db0d7
PE
386 (FREE_VAR): Rewrite so as not to use empty "else",
387 which gcc can warn about.
da053e48 388 (regex_compile, re_match_2_internal): Mark locals as initialized.
b313f9d8
PE
389 (RETALLOC_IF): Define only if needed.
390 (WORDCHAR_P): Likewise. This one is never needed, but is used
391 only in a comment talking about a compiler bug, so put inside
392 the #if 0 of that comment.
393 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
394 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
395 Remove; unused.
19ed5445 396
1f3561e4 397 * search.c (boyer_moore): Rename locals to avoid shadowing.
76ef09b7
PE
398 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
399 (PREV_CHAR_BOUNDARY): Likewise.
1f3561e4 400
ded6f8f7
PE
401 * search.c (simple_search): Remove unused var.
402
dbd37a95
PE
403 * dired.c (compile_pattern): Move decl from here ...
404 * lisp.h: ... to here, so that it can be checked.
405 (struct re_registers): New forward decl.
406
7e47afad
PE
407 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
408
85f24f61
PE
409 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
410 All uses changed.
411 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
412 Rename locals to avoid shadowing.
5671df8f 413 (Fvertical_motion): Mark locals as initialized.
85f24f61 414
181aa2be 415 * casefiddle.c (casify_object, casify_region): Now static.
e45a141a 416 (casify_region): Mark local as initialized.
181aa2be 417
930d429c
PE
418 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
419
7082eac6
PE
420 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
421 New macros, so that the caller can use some names other than
422 gcpro1, gcpro2, etc.
423 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
424 of the new macros.
425 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
426 argument, for consistency with GCPRO2_VAR, etc: it is now the
427 prefix of the variable, not the variable itself. All uses
428 changed.
38b2c076
PE
429 * dired.c (directory_files_internal, file_name_completion):
430 Rename locals to avoid shadowing.
431
15206ed9
PE
432 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
433 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
434 dired.c's scmp function, had undefined behavior.
435 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
436 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
437 * buffer.h: ... to here, because these macros use current_buffer,
438 and the new implementation with inline functions needs to have
439 current_buffer in scope now, rather than later when the macros
440 are used.
441 (downcase, upcase1): New static inline functions.
442 (DOWNCASE, UPCASE1): Reimplement using these functions.
443 This avoids undefined behavior in expressions like
444 DOWNCASE (x) == DOWNCASE (y), which previously suffered
445 from race conditions in accessing the global variables
446 case_temp1 and case_temp2.
447 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
448 * lisp.h (case_temp1, case_temp2): Remove their decls.
449 * character.h (ASCII_CHAR_P): Move from here ...
450 * lisp.h: ... to here, so that the inline functions mentioned
451 above can use them.
452
4a6bea26
PE
453 * dired.c (directory_files_internal_unwind): Now static.
454
f14b7e14
PE
455 * fileio.c (file_name_as_directory, directory_file_name):
456 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
457 Now static.
2893f146
PE
458 (file_name_as_directory): Use const pointers when appropriate.
459 (Fexpand_file_name): Likewise. In particular, newdir might
460 point at constant storage, so make it a const pointer.
fd4ead52 461 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
b14aac08
PE
462 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
463 signedness issues.
f839df0c
PE
464 (Fset_file_times, Finsert_file_contents, auto_save_error):
465 Rename locals to avoid shadowing.
f14b7e14 466
5716756e 467 * minibuf.c (choose_minibuf_frame_1): Now static.
62137a95
PE
468 (Ftry_completion, Fall_completions): Rename or remove locals
469 to avoid shadowing.
5716756e 470
b4c3046a
PE
471 * marker.c (bytepos_to_charpos): Remove; unused.
472
b45db522
PE
473 * lisp.h (verify_bytepos, count_markers): New decls,
474 so that gcc does not warn that these functions aren't declared.
475
85876d07
PE
476 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
477 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
f0cb4a60 478 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
40ef059e 479 (copy_text): Remove unused local var.
85876d07 480
03d78a21 481 * filelock.c (within_one_second): Now static.
b3dd38ab 482 (lock_file_1): Rename local to avoid shadowing.
03d78a21 483
5df8f01b
PE
484 * buffer.c (fix_overlays_before): Mark locals as initialized.
485 (fix_start_end_in_overlays): Likewise. This function should be
486 simplified by using pointers-to-pointers, but that's a different
487 matter.
b1d876f1 488 (switch_to_buffer_1): Now static.
8f54f30a
PE
489 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
490 (report_overlay_modification): Rename locals to avoid shadowing.
c3bd59b5 491
a70072c9 492 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
fbd02d7b 493 Fix pointer signedness issue.
edced198
PE
494 (sys_subshell): Mark local as volatile if checking for lint,
495 to suppress a gcc -Wclobbered warning that does not seem to be right.
15dfd3d9 496 (MAXPATHLEN): Define only if needed.
a70072c9 497
a0977c44
PE
498 * process.c (serial_open, serial_configure): Move decls from here ...
499 * systty.h: ... to here, so that they can be checked.
500
a884fdcc
PE
501 * fns.c (get_random, seed_random): Move extern decls from here ...
502 * lisp.h: ... to here, so that they can be checked.
503
604efe86 504 * sysdep.c (reset_io): Now static.
b8950c94 505 (wait_for_termination_signal): Remove; unused.
604efe86 506
38fc62d9
PE
507 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
508 (copy_keymap_item, append_key, push_text_char_description):
509 Now static.
1004a21a 510 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
dbbb8427 511 (DENSE_TABLE_SIZE): Remove; unused.
c1141155
PE
512 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
513 (describe_map_tree):
514 Rename locals to avoid shadowing.
38fc62d9 515
2f2650da
PE
516 * keyboard.c: Declare functions static if they are not used elsewhere.
517 (echo_char, echo_dash, cmd_error, top_level_2):
518 (poll_for_input, handle_async_input): Now static.
69a058fa
PE
519 (read_char, kbd_buffer_get_event, make_lispy_position):
520 (make_lispy_event, make_lispy_movement, apply_modifiers):
521 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
522 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
523 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
c8a06054 524 (read_key_sequence, read_char): Mark locals as initialized.
3ac94672 525 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
2f2650da 526
a053e86c 527 * keyboard.h (make_ctrl_char): New decl.
da2f2dd9
PE
528 (mark_kboards): Move decl here ...
529 * alloc.c (mark_kboards): ... from here.
a053e86c 530
4752793e
PE
531 * lisp.h (force_auto_save_soon): New decl.
532
74f10ca7 533 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
244fc23d
PE
534 (DEFINE_DUMMY_FUNCTION): New macro.
535 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
536 Use it.
c03cd23f
PE
537 (main): Add casts to avoid warnings
538 if GCC considers string literals to be constants.
74f10ca7 539
022e70d4
PE
540 * lisp.h (fatal_error_signal): Add decl, since it's exported.
541
59d6fe83
PE
542 * dbusbind.c: Pointer signedness fixes.
543 (xd_signature, xd_append_arg, xd_initialize):
544 (Fdbus_call_method, Fdbus_call_method_asynchronously):
545 (Fdbus_method_return_internal, Fdbus_method_error_internal):
546 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
547 (Fdbus_register_signal): Use SSDATA when the context wants char *.
548
78320123
PE
549 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
550 if GCC considers string literals to be constants.
49cebcca 551 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
78320123 552
35ac2a97
SM
5532011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
554
fb103ca9
SM
555 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
556 (print_preprocess, print_object): New macro to fix last change.
557
35ac2a97
SM
558 * print.c (print_preprocess): Don't forget font objects.
559
62973b41
JB
5602011-03-16 Juanma Barranquero <lekktu@gmail.com>
561
562 * emacs.c (USAGE3): Doc fixes.
563
0e48bb22
AS
5642011-03-15 Andreas Schwab <schwab@linux-m68k.org>
565
566 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
567 structure.
568
7684e57b
JB
5692011-03-14 Juanma Barranquero <lekktu@gmail.com>
570
571 * lisp.h (VWindow_system, Qfile_name_history):
572 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
573 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
574 (w32_system_caret_x, w32_system_caret_y): Declare extern.
575
576 * w32select.c: Don't #include "keyboard.h".
c96bbc66 577 (run_protected): Add extern declaration for waiting_for_input.
7684e57b
JB
578
579 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
580 * w32console.c (detect_input_pending, read_input_pending)
581 (encode_terminal_code):
582 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
583 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
584 (w32_system_caret_y, Qfile_name_history):
585 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
586 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
587 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
588 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
589 * w32proc.c (Qlocal, report_file_error):
590 * w32term.c (Vwindow_system, updating_frame):
591 * w32uniscribe.c (initialized, uniscribe_font_driver):
592 Remove unneeded extern declarations.
593
2aa46d6c
CY
5942011-03-14 Chong Yidong <cyd@stupidchicken.com>
595
c96bbc66 596 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
2aa46d6c 597
cffc6f3b
CY
5982011-03-13 Chong Yidong <cyd@stupidchicken.com>
599
600 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
601 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
602 These macros can no longer be used for assignment.
603
604 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
605 struct members directly, instead of using BUF_BEGV etc.
606 (record_buffer_markers, fetch_buffer_markers): New functions for
607 recording and fetching special buffer markers.
608 (set_buffer_internal_1, set_buffer_temp): Use them.
609
610 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
611
612 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
613
614 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
615 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
616
617 * xdisp.c (hscroll_window_tree):
618 (reconsider_clip_changes): Use PT instead of BUF_PT.
619
d251f04b
EZ
6202011-03-13 Eli Zaretskii <eliz@gnu.org>
621
622 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
623 $(EMACS_ROOT)/lib/intprops.h.
624
f0c77cd1
PE
6252011-03-13 Paul Eggert <eggert@cs.ucla.edu>
626
3eca4629
PE
627 Fix more problems found by GCC 4.5.2's static checks.
628
7c86ee98
PE
629 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
630 to unsigned char * to avoid compiler diagnostic.
b0afc268
PE
631 (xg_free_frame_widgets): Make it clear that a local variable is
632 needed only if USE_GTK_TOOLTIP.
01e0b5ad
PE
633 (gdk_window_get_screen): Make it clear that this macro is needed
634 only if USE_GTK_TOOLTIP.
1e5524e7
PE
635 (int_gtk_range_get_value): New function, which avoids a diagnostic
636 from gcc -Wbad-function-cast.
637 (xg_set_toolkit_scroll_bar_thumb): Use it.
638 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
639 diagnostic from gcc -Wbad-function-cast.
65dc836c
PE
640 (get_utf8_string, xg_get_file_with_chooser):
641 Rename locals to avoid shadowing.
642 (create_dialog): Move locals to avoid shadowing.
7c86ee98 643
41729b81
PE
644 * xgselect.c (xg_select): Remove unused var.
645
f0c77cd1
PE
646 * image.c (four_corners_best): Mark locals as initialized.
647 (gif_load): Initialize transparent_p to zero (Bug#8238).
648 Mark another local as initialized.
ec6cf4c6 649 (my_png_error, my_error_exit): Mark with NO_RETURN.
f0c77cd1 650
ce0ad53d 651 * image.c (clear_image_cache): Now static.
d5d5a617 652 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
e22cffbc 653 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
77a765fd
PE
654 (x_edge_detection): Remove unnecessary cast that
655 gcc -Wbad-function-cast diagnoses.
2037898d 656 (gif_load): Fix pointer signedness.
6ae141d6
PE
657 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
658 (jpeg_load, gif_load): Rename locals to avoid shadowing.
ce0ad53d 659
3eca4629
PE
6602011-03-11 Paul Eggert <eggert@cs.ucla.edu>
661
d32df629
PE
662 Improve quality of tests for time stamp overflow.
663 For example, without this patch (encode-time 0 0 0 1 1
664 1152921504606846976) returns the obviously-bogus value (-948597
665 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
666 reports time overflow. See
667 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
b8d9bd41
PE
668 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
669 * editfns.c: Include limits.h and intprops.h.
670 (TIME_T_MIN, TIME_T_MAX): New macros.
671 (time_overflow): Move earlier, to before first use.
672 (hi_time, lo_time): New functions, for an accurate test for
673 out-of-range times.
674 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
675 (Fget_internal_run_time): Don't assume time_t fits in int.
676 (make_time): Use list2 instead of Fcons twice.
677 (Fdecode_time): More accurate test for out-of-range times.
678 (check_tm_member): New function.
679 (Fencode_time): Use it, to test for out-of-range times.
d32df629
PE
680 (lisp_time_argument): Don't rely on undefined left-shift and
681 right-shift behavior when checking for time stamp overflow.
8be6f318 682
fe31d94c
PE
683 * editfns.c (time_overflow): New function, refactoring common code.
684 (Fformat_time_string, Fdecode_time, Fencode_time):
685 (Fcurrent_time_string): Use it.
686
8be6f318
PE
687 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
688 * dired.c (make_time): Move to ...
689 * editfns.c (make_time): ... here.
690 * systime.h: Note the move.
691
09d9db2c 6922011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c47cbdfd 693
126bc0dc
YM
694 * fringe.c (update_window_fringes): Remove unused variables.
695
c47cbdfd
YM
696 * unexmacosx.c (copy_data_segment): Also copy __got section.
697 (Bug#8223)
698
7ac80be9
EZ
6992011-03-12 Eli Zaretskii <eliz@gnu.org>
700
c96bbc66 701 * termcap.c [MSDOS]: Include "msdos.h".
058e5dad
EZ
702 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
703 Constify `char *' arguments and their references according to
704 prototypes in tparam.h.
705
ecb0f94d 706 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
058e5dad 707
7ac80be9
EZ
708 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
709 Adapt all references accordingly.
710
711 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
712
ef1fd07e
TT
7132011-03-11 Tom Tromey <tromey@redhat.com>
714
715 * buffer.c (syms_of_buffer): Remove obsolete comment.
716
7ef4b50c
EZ
7172011-03-11 Eli Zaretskii <eliz@gnu.org>
718
719 * termhooks.h (encode_terminal_code): Declare prototype.
720
721 * msdos.c (encode_terminal_code): Don't declare prototype.
722
723 * term.c (encode_terminal_code): Now external again, used by
724 w32console.c and msdos.c.
725
726 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
727 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
728
4b1ec863 7292011-03-11 Paul Eggert <eggert@cs.ucla.edu>
f78faa98 730
1714f52b 731 Fix some minor problems found by GCC 4.5.2's static checks.
83316bf4 732
4b1ec863
PE
733 * fringe.c (update_window_fringes): Mark locals as initialized
734 (Bug#8227).
735 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
bf60f616 736
524c7aa6
PE
737 * alloc.c (mark_fringe_data): Move decl from here ...
738 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
739 to check its interface.
740 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
741
a5c0af81 742 * fontset.c (free_realized_fontset): Now static.
7519b8cd 743 (Fset_fontset_font): Rename local to avoid shadowing.
cc6e5db1 744 (fontset_font): Mark local as initialized.
a9a06e0b 745 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
a5c0af81 746
b4716021
PE
747 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
748
811e9bac 749 * xselect.c (x_disown_buffer_selections): Remove; not used.
7b83e2f1 750 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
aa0daa9f
PE
751 (x_own_selection, Fx_disown_selection_internal): Rename locals
752 to avoid shadowing.
753 (x_handle_dnd_message): Remove local to avoid shadowing.
811e9bac 754
7e3ab302
PE
755 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
756 so that the caller can use some name other than gcpro1.
757 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
58d2d479
PE
758 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
759 (Fx_backspace_delete_keys_p):
760 Use them to avoid shadowing, and rename vars to avoid shadowing.
761 (x_decode_color, x_set_name, x_window): Now static.
6b437900 762 (Fx_create_frame): Add braces to silence GCC warning.
c0951e53 763 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
06b0c8a0
PE
764 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
765 Remove unused locals.
7e3ab302
PE
766 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
767 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
768 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
769 macros.
f78faa98 770
e2b13473
PE
771 * xterm.h (x_mouse_leave): New decl.
772
77f23912
PE
773 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
774 Remove unused functions.
cdf4ba58
PE
775 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
776 (x_calc_absolute_position): Now static.
7411c686 777 (XTread_socket): Don't define label "out" unless it's used.
2b07bcff 778 Don't declare local "event" unless it's used.
ed7bf3a5
PE
779 (x_iconify_frame, x_free_frame_resources): Don't declare locals
780 unless they are used.
38d0b34a
PE
781 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
782 (x_fatal_error_signal): Remove; not used.
a6067996
PE
783 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
784 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
785 (x_error_catcher, x_connection_closed, x_error_handler):
786 (x_error_quitter, xembed_send_message, x_iconify_frame):
787 (my_log_handler): Rename locals to avoid shadowing.
28f1c698 788 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
2a8fade0 789 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
77f23912 790
071048a3
PE
791 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
792 or move locals to avoid shadowing.
6b463e58 793 (tty_defined_color, merge_face_heights): Now static.
5967d051 794 (free_realized_faces_for_fontset): Remove; not used.
1e9966ea
PE
795 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
796 does not deduce is never used uninitialized.
73719eba
PE
797 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
798 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
071048a3 799
426994c3 800 * terminal.c (store_terminal_param): Now static.
5489860b 801
032f1620 802 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 803 (set_frame_menubar): Remove unused local.
d4323972 804 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
805 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
806 since they might point to immutable storage.
281585b0
PE
807 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
808 since it's unused otherwise.
032f1620 809
367c19e5 810 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
53df7c11 811 Add a FIXME, since the code still doesn't look right. (Bug#8215)
9f36b9fd
PE
812 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
813 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 814 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
815 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
816 does not deduce are never used uninitialized.
70739cbe 817
07b48fa9
PE
818 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
819
8868a238 820 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
821 * window.c (window_loop, size_window):
822 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 823
7e5cf297 824 * window.c (display_buffer): Now static.
d6550a9f
PE
825 (size_window): Mark variables that gcc -Wuninitialized
826 does not deduce are never used uninitialized.
a586633d
PE
827 * window.h (check_all_windows): New decl, to forestall
828 gcc -Wmissing-prototypes diagnostic.
5b555da1 829 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 830
f6095868
PE
831 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
832 shadowing.
833 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
834 Include <limits.h>.
835 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
836 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
837 (load_charset_map): Mark variables that gcc -Wuninitialized
838 does not deduce are never used uninitialized.
53df7c11 839 (load_charset): Abort instead of using uninitialized var (Bug#8229).
f6095868 840
f38b440c
PE
841 * coding.c (coding_set_source, coding_set_destination):
842 Use "else { /* comment */ }" rather than "else /* comment */;"
843 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
844 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
845 a block, when the outer 'i' will do.
846 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
847 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
848 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
849 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
850 (Fdecode_sjis_char, Fdefine_coding_system_internal):
851 Rename locals to avoid shadowing.
852 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
853 * coding.c (emacs_mule_char, encode_invocation_designation):
854 Now static, since they're not used elsewhere.
413bb2db 855 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 856 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
857 (decode_coding_emacs_mule): Mark variables that gcc
858 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
859 (detect_coding_iso_2022): Initialize a local variable that might
860 be used uninitialized. Leave a FIXME because it's not clear that
53df7c11 861 this initialization is needed. (Bug#8211)
5f58e762
PE
862 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
863 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
864 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
865 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
866 Remove unused macros.
f38b440c 867
232b38b9 868 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 869 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 870 * character.c (string_count_byte8): Likewise.
232b38b9 871
fb90da1b
PE
872 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
873 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
874
fb93dbc2
PE
875 * chartab.c (copy_sub_char_table): Now static, since it's not used
876 elsewhere.
5c156ace
PE
877 (sub_char_table_ref_and_range, char_table_ref_and_range):
878 Rename locals to avoid shadowing.
bbcd0949 879 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 880
7d3b3862 881 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 882 (BIDI_BOB): Remove unused macro.
7d3b3862 883
6be7d3da
PE
884 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
885 deduce are never used uninitialized.
c2ed9c8b 886 * term.c (encode_terminal_code): Likewise.
6be7d3da 887
75f8807f 888 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 889
50938595
PE
890 * tparam.h: New file.
891 * term.c, tparam.h: Include it.
892 * deps.mk (term.o, tparam.o): Depend on tparam.h.
893 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
894 Move these decls to tparam.h, and make them agree with what
895 is actually in tparam.c. The previous trick of using incompatible
896 decls in different modules does not conform to the C standard.
897 All callers of tparam changed to use tparam's actual API.
898 * tparam.c (tparam1, tparam, tgoto):
899 Use const pointers where appropriate.
900
fbceeba2
PE
901 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
902 * cm.h (struct cm): Likewise.
903 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
904 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
905 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
906 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
907 (turn_on_face, init_tty): Likewise.
908 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 909
7f3f1250
PE
910 * term.c (term_mouse_position): Rename local to avoid shadowing.
911
e6ca6543
PE
912 * alloc.c (mark_ttys): Move decl from here ...
913 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
914
c40f8d15
AS
9152011-03-11 Andreas Schwab <schwab@linux-m68k.org>
916
917 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
918
cfe0661d
JB
9192011-03-09 Juanma Barranquero <lekktu@gmail.com>
920
921 * search.c (compile_pattern_1): Remove argument regp, unused since
922 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
923 (compile_pattern): Don't pass it.
924
0afb4571
J
9252011-03-08 Jan Djärv <jan.h.d@swipnet.se>
926
927 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
928 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
929 for ! HAVE_GTK3.
930 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
931
932 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
933
934 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
935 gdk_window_get_screen, gdk_window_get_geometry,
936 gdk_x11_window_lookup_for_display and GDK_KEY_g.
937 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
938 (xg_get_pixbuf_from_pixmap): New function.
939 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
940 to Pixmap, take frame as parameter, remove GdkColormap parameter.
941 Call xg_get_pixbuf_from_pixmap instead of
942 gdk_pixbuf_get_from_drawable.
943 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
944 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
945 (xg_check_special_colors): Use GtkStyleContext and its functions
946 for HAVE_GTK3.
947 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
948 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
949 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
950 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
951 gtk_widget_get_preferred_size.
952 (xg_frame_resized): gdk_window_get_geometry only takes 5
953 parameters.
954 (xg_win_to_widget, xg_event_is_for_menubar): Call
955 gdk_x11_window_lookup_for_display.
956 (xg_set_widget_bg): New function.
957 (delete_cb): New function.
958 (xg_create_frame_widgets): connect delete-event to delete_cb.
959 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
960 (xg_set_background_color): Call xg_set_widget_bg.
961 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
962 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
963 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
964 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
965 if ! HAVE_GTK3.
966 (update_frame_tool_bar): Call gtk_widget_hide.
967 (xg_initialize): Use GDK_KEY_g.
968
969 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
970 if ! HAVE_GTK3
971 (x_session_initialize): Call gdk_x11_set_sm_client_id.
972
973 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
974 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
975 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
976
1c2cc4ef
JB
9772011-03-08 Juanma Barranquero <lekktu@gmail.com>
978
979 * w32xfns.c (select_palette): Check success of RealizePalette against
980 GDI_ERROR, not zero.
981
7faeca66
BK
9822011-03-07 Ben Key <bkey76@gmail.com>
983
984 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
985 (file_dialog_callback): Fix locating the window handle of the File Name
986 text field. After disabling it, set focus on the list control.
987 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
988 Name text field to "Current Directory" if it does not already have
cfe0661d 989 another value. (Bug#8181)
7faeca66 990
cf715c3c
AR
9912011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
992
993 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
994 parameter for hbar cursors. Based on a patch by Ben Key
995 <bkey76@gmail.com>.
996
ef272f1f
CY
9972011-03-06 Chong Yidong <cyd@stupidchicken.com>
998
999 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
1000 change.
1001
5489860b
PE
10022011-03-06 Paul Eggert <eggert@cs.ucla.edu>
1003
5f349a89
PE
1004 current_column: Now returns EMACS_INT, fixing some iftc
1005 that was introduced in the 2002-06-02 change "temporarily"; see
1006 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
1007 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
1008 * cmds.c (internal_self_insert): Likewise.
1009 * indent.c (Fcurrent_column): Likewise.
1010 * keymap.c (describe_command): Likewise.
1011 * minibuf.c (read_minibuf): Likewise.
1012 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
1013 to int.
1014 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
1015 Likewise.
1016 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
1017 not int or double, if they might contain a column number.
1018 * indent.c (current_column, Findent_to, indented_beyond_p):
1019 (compute_motion, vmotion): Likewise.
1020 * keymap.c (describe_command): Likewise.
1021 * xdisp.c (pint2str): Likewise.
1022 * indent.c (last_known_column): Now EMACS_INT, not int.
1023 * minibuf.c (minibuf_prompt_width): Likewise.
1024 * indent.c (current_column, current_column_1, position_indentation):
1025 Return EMACS_INT, not double.
1026 * lisp.h (current_column): Likewise.
1027 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
1028 All callers changed.
1029 * lisp.h (indented_beyond_p): Likewise.
1030
e9588e2e
PE
1031 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
1032 from xdisp.c, and make static, since these are used only here.
1033 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
1034 Remove decls.
1035
1e12733b 1036 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 1037 * xdisp.c (redisplay_window): Likewise.
1e12733b 1038
5489860b
PE
1039 * xdisp.c: Rename or move local decls to avoid shadowing.
1040 (init_iterator, handle_fontified_prop, handle_single_display_spec):
1041 (message_dolog, message_with_string, redisplay_internal):
1042 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
1043 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
1044 (display_line, display_string, rows_from_pos_range):
1045 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
1046 Rename or move local decls.
7b781e9f 1047 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
1048 (produce_glyphless_glyph): Make a pointer "const"
1049 since it might point to immutable storage.
cfe0661d 1050 (update_window_cursor): Now static, since it's not used elsewhere.
acbfe54c 1051 (SKIP_GLYPHS): Removed unused macro.
5489860b 1052
aa248733
MS
10532011-03-06 Michael Shields <shields@msrl.com> (tiny change)
1054
1055 * window.c (Fnext_window): Doc fix. (Bug#5567)
1056
04cb6840
CY
10572011-03-05 Chong Yidong <cyd@stupidchicken.com>
1058
1059 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
1060
22c28cb8 10612011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
1062
1063 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
1064
6c0dea8a
PE
10652011-03-02 Paul Eggert <eggert@cs.ucla.edu>
1066
1067 Work around some portability problems with symlinks.
1068
1069 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
1070 generate a special message for it. Suggested by Eli Zaretskii in
1071 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
1072 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
1073 Simplify the code by assuming that the readlink and symlink calls
1074 exist, even if they always fail on this host.
1075 (Ffile_readable_p): Likewise, for fifos.
1076 * config.in: Regenerate.
1077
52eb77a6
CY
10782011-02-27 Chong Yidong <cyd@stupidchicken.com>
1079
1080 * frame.c (store_frame_param): Don't store value directly in
1081 buffer_list and buried_buffer_list; copy the list and remove dead
1082 buffers (Bug#7898).
1083
0f7bb05d
EZ
10842011-02-27 Eli Zaretskii <eliz@gnu.org>
1085
40be44e2
EZ
1086 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
1087
01c35094 1088 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 1089
0f7bb05d
EZ
1090 * w32.c (symlink, readlink): New stub functions.
1091
27786b2f
PE
10922011-02-27 Paul Eggert <eggert@cs.ucla.edu>
1093
c783d15b
PE
1094 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
1095 This avoids a gcc warning in some configurations.
1096
76c1cebc
PE
1097 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
1098
0ff162fc
PE
1099 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
1100 (set_menu_bar_lines, x_get_resource_string): New decls.
1101 * msdos.c (set_menu_bar_lines): Omit decl.
1102
fdb0b28b
PE
1103 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
1104 It's always given int values and used as an int. This suppresses
1105 a gcc "comparison of unsigned expression >= 0" warning in some
1106 configurations.
1107
27786b2f
PE
1108 * dispnew.c: Rename locals to avoid shadowing.
1109 (update_text_area, scrolling_window, update_frame_1): Rename locals.
1110
09ad5a91
PE
11112011-02-26 Paul Eggert <eggert@cs.ucla.edu>
1112
1113 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
1114 (copy_glyph_row_contents): Remove; not used.
1115 (frame_row_to_window, check_current_matrix_flags):
1116 (window_change_signal): Now static, since they're not used elsewhere.
1117 (check_current_matrix_flags): Surround with "#if 0", since its
1118 only use is in a comment. Maybe both the comment and the "#if 0"
1119 stuff should be removed?
1120
d2d37ddc
PE
1121 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
1122 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
1123 contexts that actually need it.
1124
003fa8b6
EZ
11252011-02-26 Eli Zaretskii <eliz@gnu.org>
1126
1127 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
1128 (lstat): Define for DJGPP < 2.04.
1129
b1894766
PE
11302011-02-25 Paul Eggert <eggert@cs.ucla.edu>
1131
1132 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
1133 as per recent filemodestring API change. Reported by Jonas Öster in
1134 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
1135
e18c0aa3 11362011-02-23 Ben Key <bkey76@gmail.com>
2c6584e8
BK
1137
1138 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
1139 directly, for bar cursors.
1140
11412011-02-23 Chong Yidong <cyd@stupidchicken.com>
1142
1143 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
1144 into the frame's cursor_width.
1145
617a0e83
SM
11462011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
1147
1148 * print.c (print_object): Never print old-style backquotes.
1149 Obey escapeflag for hash tables as well.
1150
cce7d530 11512011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
1152
1153 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 1154 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 1155
8d40723d
PE
11562011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1157
1158 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
1159
aa0f73d1
WJ
11602011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
1161
1162 * lread.c (openp): Correct Boolean typo in last commit.
1163
bdaa0745
AR
11642011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
1165
1166 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 1167 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 1168
f68c809d
PE
11692011-02-22 Paul Eggert <eggert@cs.ucla.edu>
1170
1171 Assume S_ISLNK etc. work, since gnulib supports this.
1172 * config.in: Regenerate.
1173 * dired.c (lstat): Remove.
1174 (file_name_completion): Assume S_ISDIR works.
1175 (file_name_completion_stat): Assume S_ISLNK works.
1176 Do not bother calling stat unless lstat says it's a symlink.
1177 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
1178 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
1179 (check_writable, Ffile_writable_p, Fset_file_times):
1180 Assume S_ISDIR works.
1181 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
1182 fifos exist.
2f8f196d 1183 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
1184 * filelock.c (S_ISLNK): Remove.
1185 * lread.c (openp): Assume S_ISDIR works.
1186 * xrdb.c (S_ISDIR): Remove.
1187
25c51af3
EZ
11882011-02-21 Eli Zaretskii <eliz@gnu.org>
1189
1190 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 1191 lib/makefile.w32-in.
25c51af3
EZ
1192 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
1193 (GLOBAL_SOURCES): Remove filemode.c.
1194 (OBJ1): Remove $(BLD)/filemode.$(O).
1195
5c185672
PE
11962011-02-21 Paul Eggert <eggert@cs.ucla.edu>
1197
1198 Import filemode module from gnulib.
1199 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
1200 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
1201 (filemode.o): Remove; this is now in ../lib.
1202 * dired.c: Include <filemode.h>.
1203 (filemodestring): Remove now-redundant decl.
1204 * config.in: Regenerate.
1205
32159fc3
CS
12062011-02-20 Eli Zaretskii <eliz@gnu.org>
1207
1208 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
1209 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
1210
2f8f196d 12112011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
1212
1213 * makefile.w32-in: Remove md5.$(O).
1214 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
1215 lib/makefile.w32-in.
1216
61353ac8 12172011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 1218
61353ac8
PE
1219 Import crypto/md5 and stdint modules from gnulib.
1220 * Makefile.in (base_obj): Remove md5.o, since this file
1221 is in lib now.
1222 * config.in: Regenerate.
1223 * md5.h, md5.h: Move to ../lib.
1224 * deps.mk (md5.o): Remove.
1225 (fns.o): Depend on ../lib/md5.h, not md5.h.
1226
9d9d12cd
EZ
12272011-02-19 Eli Zaretskii <eliz@gnu.org>
1228
f601db19
EZ
1229 * termcap.c (tputs): Don't declare baud_rate.
1230
9d9d12cd
EZ
1231 * s/msdos.h (strtold): Define to _strtold.
1232
aa56f361
SM
12332011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1234
cbe81f1d
SM
1235 * process.c (Fstart_process, Fmake_serial_process)
1236 (Fmake_network_process, server_accept_connection):
1237 Use empty_unibyte_string.
1238
1239 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1240
aa56f361
SM
1241 * lread.c (Qdir_ok): New constant.
1242 (syms_of_lread): Initialize it.
1243 (openp): Don't ignore directories if the predicate returns dir-ok.
1244
d6de49a1
EZ
12452011-02-18 Eli Zaretskii <eliz@gnu.org>
1246
42af913d
EZ
1247 * xdisp.c (display_line): Fix the change made for bug#7939.
1248
d6de49a1
EZ
1249 * terminal.c (create_terminal): Use default-keyboard-coding-system
1250 and default-terminal-coding-system to initialize coding systems of
1251 the new terminal. (Bug#7840)
1252
b286858c
SM
12532011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1254
1255 * lisp.h (BYTE_MARK_STACK): New macro.
1256 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1257
1258 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1259 (struct byte_stack): Only define `top' and `bottom' if used.
1260 (mark_byte_stack): Only define if used.
1261 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1262 is not set.
1263 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1264
1265 * term.c (OUTPUT_IF): Use OUTPUT.
1266
1267 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1268 redundantly scan byte-code stacks, catchlist, and handlerlist.
1269
124c9ff0
JD
12702011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1271
1272 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1273 (Fns_read_file_name): Replace B_ with BVAR.
1274
1275 * nsterm.m (ns_term_init): Use KVAR.
1276
05c65251
EZ
12772011-02-16 Eli Zaretskii <eliz@gnu.org>
1278
026d69ec
EZ
1279 * msdos.c (internal_terminal_init): Use KVAR.
1280
05c65251
EZ
1281 * w32fns.c (Fx_create_frame): Use KVAR.
1282
1283 * w32term.c (w32_create_terminal): Use KVAR.
1284
1285 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 1286 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
1287
1288 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1289
b286858c
SM
1290 * fileio.c (Finsert_file_contents, Fwrite_region):
1291 Remove references to buffer_file_type.
05c65251
EZ
1292 (syms_of_fileio): Don't intern and staticpro
1293 find-buffer-file-type.
1294
1295 * callproc.c (syms_of_callproc): Remove references to
1296 buffer_file_type.
1297
1298 * buffer.c (reset_buffer_local_variables): Don't set
1299 buffer_file_type.
1300 (init_buffer_once): Likewise.
1301 (syms_of_buffer): Don't define buffer-file-type.
1302
1303 * buffer.h (struct buffer): Remove buffer_file_type.
1304
1344aad4
TT
13052011-02-16 Tom Tromey <tromey@parfait>
1306
15f58304
EZ
1307 * callint.c (Fcall_interactively): Update for change to field names.
1308 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1309 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 1310 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 1311 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
1312 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1313 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 1314 Update for change to field names.
1344aad4
TT
1315 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1316 (echo_length, echo_truncate, cmd_error, command_loop_1)
1317 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1318 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1319 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1320 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
1321 Update for change to field names.
1322 * xfns.c (Fx_create_frame): Update for change to field names.
1323 * xterm.c (x_connection_closed, x_term_init): Update for change to
1324 field names.
1344aad4 1325 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 1326 Update for change to field names.
1344aad4 1327 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 1328 Update for change to field names.
1344aad4 1329 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 1330 (delete_frame): Update for change to field names.
1344aad4
TT
1331 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1332 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1333 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1334
eb4916d7
TT
13352011-02-16 Tom Tromey <tromey@redhat.com>
1336
1337 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1338
4b4deea2
TT
13392011-02-16 Tom Tromey <tromey@parfait>
1340
1341 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1342 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1343 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1344 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1345 (with_echo_area_buffer, setup_echo_area_for_printing)
1346 (set_message_1, update_menu_bar, update_tool_bar)
1347 (text_outside_line_unchanged_p, redisplay_internal)
1348 (try_scrolling, try_cursor_movement, redisplay_window)
1349 (try_window_reusing_current_matrix, row_containing_pos)
1350 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1351 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1352 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1353 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1354 BVAR.
1355 * window.c (window_display_table, unshow_buffer, window_loop)
1356 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1357 (select_window, Fforce_window_update, temp_output_buffer_show)
1358 (Fset_window_configuration, save_window_save): Replace B_ with
1359 BVAR.
1360 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1361 Replace B_ with BVAR.
1362 * undo.c (record_point, record_insert, record_delete)
1363 (record_marker_adjustment, record_first_change)
1364 (record_property_change, Fundo_boundary, truncate_undo_list)
1365 (Fprimitive_undo): Replace B_ with BVAR.
1366 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1367 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1368 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1369 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1370 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1371 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1372 (string_match_1, fast_looking_at, newline_cache_on_off)
1373 (search_command, search_buffer, simple_search, boyer_moore)
1374 (Freplace_match): Replace B_ with BVAR.
1375 * process.c (get_process, list_processes_1, Fstart_process)
1376 (Fmake_serial_process, Fmake_network_process)
1377 (read_process_output, send_process, exec_sentinel)
1378 (status_notify, setup_process_coding_systems): Replace B_ with
1379 BVAR.
1380 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1381 (strout, print_string, temp_output_buffer_setup, print_object):
1382 Replace B_ with BVAR.
1383 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
1384 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1385 Replace B_ with BVAR.
4b4deea2
TT
1386 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1387 (set_marker_both, set_marker_restricted_both, unchain_marker):
1388 Replace B_ with BVAR.
1389 * lread.c (readchar, unreadchar, openp, readevalloop)
1390 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1391 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1392 * keymap.c (Flocal_key_binding, Fuse_local_map)
1393 (Fcurrent_local_map, push_key_description)
1394 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1395 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1396 (read_key_sequence): Replace B_ with BVAR.
1397 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1398 * intervals.c (set_point_both, get_local_map): Replace B_ with
1399 BVAR.
1400 * insdel.c (check_markers, insert_char, insert_1_both)
1401 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1402 (adjust_after_replace, replace_range, del_range_2)
1403 (modify_region, prepare_to_modify_buffer)
1404 (Fcombine_after_change_execute): Replace B_ with BVAR.
1405 * indent.c (buffer_display_table, recompute_width_table)
1406 (width_run_cache_on_off, current_column, scan_for_column)
1407 (Findent_to, position_indentation, compute_motion, vmotion):
1408 Replace B_ with BVAR.
1409 * fringe.c (get_logical_cursor_bitmap)
1410 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1411 with BVAR.
1412 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1413 * font.c (font_at): Replace B_ with BVAR.
1414 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1415 Replace B_ with BVAR.
1416 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1417 (unlock_buffer): Replace B_ with BVAR.
1418 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1419 (Ffile_regular_p, Ffile_selinux_context)
1420 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1421 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1422 (Finsert_file_contents, choose_write_coding_system)
1423 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1424 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1425 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1426 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1427 (save_excursion_restore, Fprevious_char, Fchar_before)
1428 (general_insert_function, Finsert_char, Finsert_byte)
1429 (make_buffer_string_both, Finsert_buffer_substring)
1430 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1431 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1432 (Ftranslate_region_internal, save_restriction_restore)
1433 (Fchar_equal): Replace B_ with BVAR.
1434 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1435 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1436 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1437 * dired.c (directory_files_internal): Replace B_ with BVAR.
1438 * data.c (swap_in_symval_forwarding, set_internal)
1439 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1440 Replace B_ with BVAR.
1441 * composite.c (fill_gstring_header)
1442 (composition_compute_stop_pos, composition_adjust_point)
1443 (Ffind_composition_internal): Replace B_ with BVAR.
1444 * coding.c (decode_coding, encode_coding)
1445 (make_conversion_work_buffer, decode_coding_gap)
1446 (decode_coding_object, encode_coding_object)
1447 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1448 (Funencodable_char_position, Fcheck_coding_systems_region):
1449 Replace B_ with BVAR.
1450 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1451 with BVAR.
1452 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1453 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1454 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1455 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1456 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1457 * category.c (check_category_table, Fcategory_table)
1458 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1459 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1460 BVAR.
1461 * casefiddle.c (casify_object, casify_region): Replace B_ with
1462 BVAR.
1463 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1464 with BVAR.
1465 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1466 BVAR.
1467 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1468 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1469 with BVAR.
1470 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1471 (get_truename_buffer, Fget_buffer_create)
1472 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1473 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1474 (Fbuffer_local_value, buffer_lisp_local_variables)
1475 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1476 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1477 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1478 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1479 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1480 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1481 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1482 (record_overlay_string, overlay_strings, init_buffer_once)
1483 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1484
8678d9e4 14852011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
1486
1487 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1488 window is changed inside calls to do_pending_window_change.
1489 (Bug#8020)
1490
1f5d53eb
PE
14912011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1492
1493 Remove no-longer needed getloadavg symbols.
1494 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1495 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1496 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1497 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1498 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1499 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1500 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1501 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1502 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1503 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1504 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1505 (LDAV_SYMBOL): Remove.
1506 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1507 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1508
1509 Import getloadavg module from gnulib.
1510 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1511 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1512 now does this.
1513 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1514 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1515 * config.in: Regenerate.
1516
8017fd6b
EZ
15172011-02-15 Eli Zaretskii <eliz@gnu.org>
1518
1519 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1520
75b43359
MWD
15212011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1522
1523 * print.c (float_to_string): Ensure that a decimal point is
1524 printed if using dtoastr (Bug#8033).
1525
fc3ca113
EZ
15262011-02-14 Eli Zaretskii <eliz@gnu.org>
1527
1f5d53eb 1528 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
1529 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1530
fc3ca113
EZ
1531 * dired.c (directory_files_internal):
1532 * fileio.c (Finsert_file_contents):
1533 * insdel.c (prepare_to_modify_buffer):
1534 * xdisp.c (pos_visible_p):
1535 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1536 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1537 Use B_ for the MS-Windows build.
1538
3928f2b6
JD
15392011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1540
1541 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1542 resource that specifies helvetica for menus and dialogs.
1543
1544 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1545 (apply_systemfont_to_menu): Set resources *menubar*font and
1546 *popup*font. Remove defflt.
b286858c
SM
1547 (set_frame_menubar, create_and_show_popup_menu):
1548 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 1549
4bb81cc2
TT
15502011-02-14 Tom Tromey <tromey@redhat.com>
1551
fc3ca113
EZ
1552 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1553
4bb81cc2
TT
1554 * keyboard.h: Remove obsolete comment.
1555
5d8ea120
TT
15562011-02-14 Tom Tromey <tromey@parfait>
1557
1558 * composite.c (fill_gstring_header)
1559 (composition_compute_stop_pos, composition_adjust_point)
1560 (Ffind_composition_internal): Use B_.
1561 * intervals.c (set_point_both, get_local_map): Use B_.
1562 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1563 * process.c (get_process, list_processes_1, Fstart_process)
1564 (Fmake_serial_process, Fmake_network_process)
1565 (read_process_output, send_process, exec_sentinel)
1566 (status_notify, setup_process_coding_systems): Use B_.
1567 * bytecode.c (Fbyte_code): Use B_.
1568 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1569 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1570 (skip_syntaxes, scan_lists): Use B_.
1571 * lread.c (readchar, unreadchar, openp, readevalloop)
1572 (Feval_buffer, Feval_region): Use B_.
1573 * print.c (printchar, strout, print_string, PRINTDECLARE)
1574 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1575 (print_object): Use B_.
1576 * font.c (font_at): Use B_.
b286858c
SM
1577 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1578 Use B_.
5d8ea120
TT
1579 * callint.c (check_mark, Fcall_interactively): Use B_.
1580 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1581 (save_excursion_restore, Fprevious_char, Fchar_before)
1582 (general_insert_function, Finsert_char, Finsert_byte)
1583 (make_buffer_string_both, Finsert_buffer_substring)
1584 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1585 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1586 (Ftranslate_region_internal, save_restriction_restore)
1587 (Fchar_equal): Use B_.
1588 * data.c (swap_in_symval_forwarding, set_internal)
1589 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1590 Use B_.
1591 * undo.c (record_point, record_insert, record_delete)
1592 (record_marker_adjustment, record_first_change)
1593 (record_property_change, Fundo_boundary, truncate_undo_list)
1594 (Fprimitive_undo): Use B_.
1595 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1596 (string_match_1, fast_looking_at, newline_cache_on_off)
1597 (search_command, search_buffer, simple_search, boyer_moore)
1598 (Freplace_match): Use B_.
1599 * indent.c (buffer_display_table, recompute_width_table)
1600 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
1601 (Findent_to, position_indentation, compute_motion, vmotion):
1602 Use B_.
5d8ea120
TT
1603 * casefiddle.c (casify_object, casify_region): Use B_.
1604 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1605 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1606 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1607 (Ffile_regular_p, Ffile_selinux_context)
1608 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1609 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1610 (Finsert_file_contents, choose_write_coding_system)
1611 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1612 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1613 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1614 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1615 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
1616 (set_marker_both, set_marker_restricted_both, unchain_marker):
1617 Use B_.
5d8ea120
TT
1618 * insdel.c (check_markers, insert_char, insert_1_both)
1619 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1620 (adjust_after_replace, replace_range, del_range_2)
1621 (modify_region, prepare_to_modify_buffer)
1622 (Fcombine_after_change_execute): Use B_.
1623 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1624 (unlock_buffer): Use B_.
1625 * keymap.c (Flocal_key_binding, Fuse_local_map)
1626 (Fcurrent_local_map, push_key_description)
1627 (Fdescribe_buffer_bindings): Use B_.
1628 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1629 (read_key_sequence): Use B_.
1630 * fringe.c (get_logical_cursor_bitmap)
1631 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1632 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1633 * xfaces.c (compute_char_face): Use B_.
1634 * character.c (chars_in_text, Fget_byte): Use B_.
1635 * category.c (check_category_table, Fcategory_table)
1636 (Fset_category_table, char_category_set): Use B_.
1637 * coding.c (decode_coding, encode_coding)
1638 (make_conversion_work_buffer, decode_coding_gap)
1639 (decode_coding_object, encode_coding_object)
1640 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
1641 (Funencodable_char_position, Fcheck_coding_systems_region):
1642 Use B_.
5d8ea120
TT
1643 * charset.c (Ffind_charset_region): Use B_.
1644 * window.c (window_display_table, unshow_buffer, window_loop)
1645 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1646 (select_window, Fforce_window_update, temp_output_buffer_show)
1647 (Fset_window_configuration, save_window_save): Use B_.
1648 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1649 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1650 (with_echo_area_buffer, setup_echo_area_for_printing)
1651 (set_message_1, update_menu_bar, update_tool_bar)
1652 (text_outside_line_unchanged_p, redisplay_internal)
1653 (try_scrolling, try_cursor_movement, redisplay_window)
1654 (try_window_reusing_current_matrix, row_containing_pos)
1655 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1656 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1657 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1658 (get_window_cursor_type, note_mouse_highlight): Use B_.
1659 * frame.c (make_frame_visible_1): Use B_.
1660 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1661 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1662 (WINDOW_WANTS_MODELINE_P): Use B_.
1663 * syntax.h (Vstandard_syntax_table): Update.
1664 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1665 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1666 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1667 * character.h (FETCH_CHAR_ADVANCE): Update.
1668 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1669 * category.h (Vstandard_category_table): Update.
1670 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1671 names.
1672 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1673 * buffer.c (swapfield_): New macro.
1674 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1675 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1676 (Fget_buffer_create, clone_per_buffer_values)
1677 (Fmake_indirect_buffer, reset_buffer)
1678 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1679 (Fbuffer_local_value, buffer_lisp_local_variables)
1680 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1681 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1682 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1683 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1684 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1685 (Fbuffer_swap_text, Fset_buffer_multibyte)
1686 (swap_out_buffer_local_variables, record_overlay_string)
1687 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1688 Use B_.
1689 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1690 (BUFFER_INTERNAL_FIELD, B_): New macro.
1691 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1692
42f60557
JD
16932011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1694
1695 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1696 is null.
1697
2f9a22e2
J
16982011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1699
1700 * callproc.c (Fcall_process):
1701 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1702 comment.
1703
84eb0351 17042011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
1705
1706 * window.c (select_window): Check inhibit_point_swap argument when
1707 deciding whether to return immediately.
1708
84eb0351 17092011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
1710
1711 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1712 zero (Bug#7348).
1713
84eb0351
CY
17142011-02-12 Chong Yidong <cyd@stupidchicken.com>
1715
1716 * config.in (TERMINFO): New definition.
1717
1718 * s/netbsd.h: Use it to choose between terminfo and termcap
1719 (Bug#7642).
1720
33d605d0
PE
17212011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1722
1723 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1724 The difference doesn't matter here, in practice, and sizeof is
1725 more portable to non-GCC compilers. Also, this makes the code
1726 match the already-existing comment.
1727
c0ad4ea5
AS
17282011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1729
1730 * process.c (create_process): Reset SIGPIPE handler in the child.
1731 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1732
50fd938f
EZ
17332011-02-12 Eli Zaretskii <eliz@gnu.org>
1734
1735 * xdisp.c <this_line_min_pos>: New variable.
1736 (move_it_in_display_line_to): Record in this_line_min_pos the
1737 smallest position iterated across.
1738 (display_line): Use this_line_min_pos to record the smallest
1739 position in the line even if it is not displayed due to
1740 hscrolling. (Bug#7939)
1741
af59aa6e
PE
17422011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1743
cec81b22
PE
1744 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1745 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1746 (struct md5_ctx): Use it.
1747
af59aa6e
PE
1748 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1749 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1750 defined.
1751 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1752 FC_HINT_STYLE is supported.
1753
02c3706c
JD
17542011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1755
1756 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1757 Make sure we don't do x_catch_errors twice.
1758
5ac75e8f
GM
17592011-02-10 Glenn Morris <rgm@gnu.org>
1760
1761 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1762
d37f40ed
EZ
17632011-02-09 Eli Zaretskii <eliz@gnu.org>
1764
5ac75e8f
GM
1765 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1766 New macros.
d37f40ed
EZ
1767 (globals.h, gl-stamp): New targets.
1768 (clean): Clean gl-stamp and globals.h.
1769
33cd3ee4
AS
17702011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1771
1772 * Makefile.in (gl-stamp): Create globals.h here.
1773 (globals.h): Don't do it here.
1774 (mostlyclean): Clean globals.h and gl-stamp.
1775
f9f2e7f5
PE
17762011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1777
1778 * Makefile.in ($(otherobj)): Depend on globals.h.
1779 Otherwise 'make -j10' failed on my host, because the build lacked
1780 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1781
00b3c7ac
TT
17822011-02-08 Tom Tromey <tromey@redhat.com>
1783
1784 * Makefile.in (NS_OBJC_OBJ): New variable.
1785 (base_obj): Rename from 'obj'.
1786 (obj): New variable.
1787 (globals.h, gl-stamp, $(obj)): New targets.
1788 (GLOBAL_SOURCES): New variable.
1789 * globals.h: Remove.
1790 * nsselect.m (Vselection_alist): Define. Reverts part of
1791 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1792 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1793 variable.
1794 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1795
8f3b2e12
KH
17962011-02-08 Kenichi Handa <handa@m17n.org>
1797
1798 * font.c (Ffont_get): Do not cache :otf value.
1799
4f043d0f
PE
18002011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1801
1802 conform to C89 pointer rules
1803
1804 * dired.c (scmp, file_name_completion):
1805 Change types between char * and unsigned char *, to satisfy C89
1806 rules about pointer type compatibility.
47ce90e4 1807 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 1808 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
1809 * alloc.c (make_string, make_specified_string, make_pure_string):
1810 Likewise.
57ace6d0 1811 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
1812 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1813 (print_object): Likewise.
e7f8264d
PE
1814 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1815 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1816 (Fformat): Likewise.
a2db9982 1817 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
1818 * fns.c (string_make_multibyte, string_to_multibyte):
1819 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1820 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1821 Likewise.
4a25e32a 1822 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
1823 * process.c (read_process_output, send_process, Fprocess_send_region):
1824 Likewise.
0ca76b1e 1825 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
1826 * doprnt.c (doprnt): Likewise.
1827 * indent.c (compute_motion): Likewise.
efe0234f 1828 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 1829 * ralloc.c (resize_bloc): Likewise.
b19beacc 1830 * image.c (tiff_load): Likewise.
c45e5276 1831 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
1832 * character.c (strwidth): Make its argument const char *, not const
1833 unsigned char *, since more callers prefer it that way. All callers
1834 changed.
4f043d0f 1835
9eee99eb
PE
18362011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1837
4c83cffc
PE
1838 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1839 Emacs assumes two's complement elsewhere, but the assumption is
1840 easy to remove here, and this suppresses a warning with Sun C 5.8.
1841
82470039
PE
1842 conform to C89 pointer rules
1843
1844 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1845 (same_x_server, x_term_init):
9eee99eb
PE
1846 Change types between char * and unsigned char *, to satisfy C89
1847 rules about pointer type compatibility.
82470039
PE
1848 * doc.c (get_doc_string, Fsnarf_documentation):
1849 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
1850 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1851 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 1852 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
1853 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1854 Likewise.
01c9aa3a 1855 * keymap.c (Ftext_char_description): Likewise.
637de37e 1856 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
1857 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1858 (DRIVE_LETTER) [defined DOS_NT]:
1859 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1860 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1861 (search_embedded_absfilename, Fsubstitute_in_file_name):
1862 (barf_or_query_if_file_exists, Fmake_directory_internal):
1863 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1864 (Finsert_file_contents, Fwrite_region):
1865 Likewise.
b68864e5
PE
1866 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1867 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1868 Likewise. This changes these functions' signatures, which is
1869 more convenient since most callers use char *. All remaining
1870 callers changed.
1871 * editfns.c (general_insert_function): Change signature to
1872 match changes to insert functions' signatures.
b286858c
SM
1873 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1874 Use explicit cast when converting between void * and function pointer
01c9aa3a 1875 types, as C89 requires this.
9eee99eb 1876
32299e33
PE
18772011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1878
1879 don't ignore chdir failure
1880 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1881 failure and exit.
1882 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1883 remaining unchecked chdir calls in this function; some DOS/NT
1884 expert needs to fix them.
1885 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1886 in this function; some NextStep expert needs to fix them.
1887
233ba4d9 18882011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
1889
1890 * xfaces.c (Finternal_set_lisp_face_attribute):
1891 Try to clarify some error messages. (Bug#2659)
1892
233ba4d9 18932011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
1894
1895 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1896 current_column cache (bug#7946).
1897
233ba4d9 18982011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
1899
1900 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1901
1902 * xftfont.c (xftfont_open): Likewise.
1903
233ba4d9 19042011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
1905
1906 * window.c (Fselect_window): Add missing return value.
1907
d67985d3
PE
19082011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1909
25a48bd0
PE
1910 xstrcasecmp: conform to C89 pointer rules
1911 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1912 to const char *, since they're usually low-level C strings, and
1913 this stays compatible with C89 pointer rules. All callers changed.
1914
2f8f196d 1915 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
1916 (define_charset_internal): Switch between char * and unsigned char *.
1917
2f8f196d 1918 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
1919 (xmenu_show, xdialog_show): Declare local var as char *, not
1920 const char *, to stay compatible with C89 const rules.
1921
2f8f196d 1922 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
1923 (store_mode_line_noprop, display_string, reseat_to_string):
1924 (c_string_pos, number_of_chars, message_dolog):
1925 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1926 (display_mode_element, display_string):
1927 Switch between char * and unsigned char * to stay compatible wth
1928 C89 pointer rules.
1929
2f8f196d 1930 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
1931 (re_wctype): Add cast, as C89 does not allow assigning between
1932 char * and unsigned char *.
1933 (regex_compile): Likewise.
1934
d67985d3
PE
1935 sync from gnulib to remove HAVE_STDBOOL_H
1936 * config.in: Regenerate.
1937
a5d733f5
EZ
19382011-02-04 Eli Zaretskii <eliz@gnu.org>
1939
f90e08f5
EZ
1940 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1941 Replace all uses of lisp.h with $(LISP_H), and all uses of
1942 process.h with $(PROCESS_H).
1943 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1944 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1945
be50df37
EZ
1946 * deps.mk: Update for recent changes: gnutls support, gnulib
1947 imports, addition of globals.h.
1948
f90e08f5
EZ
1949 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1950 ../lib/ignore-value.h.
a5d733f5 1951
67342916
PE
19522011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1953
1954 allow C code to suppress warnings about ignored return values
1955
1956 We need to go through the code and for each such warning, either
1957 fix the code to pay attention to the returned value, or tell GCC
1958 that we really do want to ignore the returned value. Here is one
1959 example of how to do the latter.
1960 * sysdep.c: Include <ignore-value.h>.
1961 (sys_subshell): Suppress an undesirable warning about not checking
1962 the returned value of 'write', as there's nothing useful one can
1963 do with that returned value.
1964
36941b32
JD
19652011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1966
1967 * xterm.c (x_connection_closed): Remove all calls that calls
1968 XSync (Bug#7949).
1969
3082f617
EZ
19702011-02-01 Eli Zaretskii <eliz@gnu.org>
1971
1972 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1973 TIFFClientOpen.
1974
4df0af9b
JD
19752011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1976
1977 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1978 (x_session_check_input): Change args and return type so it can be used
1979 as argument to add_read_fd. Make static. Remove call to select.
1980 Call kbd_buffer_store_event for emacs_event.
1981 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1982 (ice_conn_watch_CB): Call add_read_fd.
1983
1984 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1985 x_session_check_input.
1986 (x_session_initialized): Remove definition.
1987 (x_initialize): Remove setting of x_session_initialized.
1988
1989 * xterm.h (x_session_check_input): Remove declaration.
1990
a4180391
PE
19912011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1992
1993 format-time-string now supports subsecond time stamp resolution
b286858c 1994 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
1995 for consistency with its new argument and with gnulib nstrftime.
1996 All callers changed. New argument NS.
1997 (Fformat_time_string): Check that the time argument's microseconds
1998 component, if any, is in range; this avoids integer overflow and
1999 also nstrftime needs this. Document %N.
2000
14beddf4 20012011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
2002
2003 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
2004 of int. All uses adjusted.
2005 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
2006 (svg_load_image): Remove casts.
2007
14beddf4 20082011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
2009
2010 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
2011 function definitions for compiling with libpng-1.5.
2012 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
2013 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
2014 (Bug#7908).
2015
70b0d280
EZ
20162011-01-31 Eli Zaretskii <eliz@gnu.org>
2017
8b3c625b
EZ
2018 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
2019
70b0d280
EZ
2020 * makefile.w32-in (OBJ2): Remove strftime.$(O).
2021 ($(BLD)/strftime.$(O)): Remove prerequisites.
2022
16fab143
PE
20232011-01-31 Paul Eggert <eggert@cs.ucla.edu>
2024
2025 src/emacs.c now gets version number from configure.in
2026 * emacs.c (emacs_version): Set to VERSION so that it
2027 is determined automatically from ../configure.in.
2028
546961a9
JM
20292011-01-31 Jim Meyering <meyering@redhat.com>
2030
2031 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
2032 Use xmalloc rather than malloc.
2033
42a5b22f
PE
20342011-01-30 Paul Eggert <eggert@cs.ucla.edu>
2035
16c3e636
PE
2036 strftime: import from gnulib
2037 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
2038 * deps.mk (strftime.o): Remove.
2039 * editfns.c: Include <strftime.h>, supplied by gnulib.
2040 (emacs_strftimeu): Remove decl.
2041 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
2042 emacs_strftimeu.
2043 * config.in: Regenerate.
2044 * strftime.c: Remove; we now use strftime from gnulib.
2045
42a5b22f
PE
2046 Use SSDATA when the context wants char *.
2047 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
2048 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
2049 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
2050 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
2051 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
2052 Use SSDATA (not SDATA) when the context of the expression wants
2053 char * (not unsigned char *).
2054
2787bba3
JD
20552011-01-30 Jan Djärv <jan.h.d@swipnet.se>
2056
2057 * .gdbinit: Read global lisp variables as globals.f_V*.
2058
4ec88040
AS
20592011-01-30 Andreas Schwab <schwab@linux-m68k.org>
2060
2061 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
2062 All uses changed.
2063 (PROP_SAVE): Likewise.
2064
b6bcd048
CY
20652011-01-29 Chong Yidong <cyd@stupidchicken.com>
2066
2067 * keyboard.c (make_lispy_position): Fix typo in last change
2068 (Bug#7935).
2069
f915f0f7
EZ
20702011-01-29 Eli Zaretskii <eliz@gnu.org>
2071
2072 * s/ms-w32.h (HAVE_MKTIME): Remove.
2073
2074 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
2075 (GNULIB): New variable.
2076 (LIBS): Add $(GNULIB).
2077 $(TEMACS): Depend on $(GNULIB).
2078 <top-level>: Fix font-lock disrupted by a lone `"'.
2079
497a1925
JD
20802011-01-29 Jan Djärv <jan.h.d@swipnet.se>
2081
2082 * nsselect.m (ns_string_from_pasteboard): Get length of string
2083 and use make_string instead of build_string (Bug#7934).
2084 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
2085 instead of stringWithUTF8String (Bug#7934).
2086
2f8f196d 20872011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 2088
2f8f196d
JB
2089 * nsfont.m (nsfont_open): Ensure that fonts with inexact
2090 descenders would not become one pixel too tall (Bug#7887).
481ae085 2091
6b918613
CY
20922011-01-28 Chong Yidong <cyd@stupidchicken.com>
2093
2094 * keyboard.c (make_lispy_position): For clicks on right fringe or
2095 margin, compute text position using the X coordinate relative to
2096 the left of the text area (Bug#7839).
2097
9e269017
KH
20982011-01-28 Kenichi Handa <handa@m17n.org>
2099
2100 * ftfont.c (ftfont_spec_pattern): Check each extra property
2101 value.
2102
17dd1fc8
SM
21032011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
2104
2105 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
2106
372fb76b
CY
21072011-01-27 Chong Yidong <cyd@stupidchicken.com>
2108
2109 * font.c (font_parse_fcname): Undefine a temporary macro.
2110
e7f7fbaa
SM
21112011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
2112
2113 Let the debugger continue to the normal handler (bug#7825).
2114 * eval.c (maybe_call_debugger): Declare before new use.
2115 (find_handler_clause): Don't call debugger any more.
2116 Ignore Vstack_trace_on_error.
2117 Use XCAR/XCDR.
2118 (syms_of_eval): Remove Vstack_trace_on_error.
2119 (Fsignal): Only modify handlerlist when we know we need to do it.
2120 Call the debugger when necessary.
2121 * globals.h (Vstack_trace_on_error): Remove.
2122
6608a7d8
CY
21232011-01-26 Chong Yidong <cyd@stupidchicken.com>
2124
2125 * font.c (font_parse_fcname): Rewrite GTK font name parser.
2126
06d8ace5 21272011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
2128
2129 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
2130 the buffer's point-max (bug#7876).
2131
06d8ace5 21322011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
2133
2134 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 2135 Remove unused case (Bug#6811).
19634648 2136
8ab70320
JD
21372011-01-23 Jan Djärv <jan.h.d@swipnet.se>
2138
2139 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
2140 setFrameTopLeftPoint is constrained.
2141
51b59d79
PE
21422011-01-23 Paul Eggert <eggert@cs.ucla.edu>
2143
9055082e
PE
2144 Check return values of some library calls.
2145 * emacs.c (main): Check dup result.
2146 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
2147 (frame_name_fnn_p): Check strtol result.
2148
5c7d01a5 2149 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
2150 when calling XpmCreatePixmapFromData.
2151
51b59d79
PE
2152 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
2153 * lisp.h (SSDATA): New macro.
2154 All uses of (char *) SDATA (x) replaced with SSDATA (x),
2155 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
2156 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
2157 * xsmfns.c (SSDATA): Likewise.
2158
e6b84b30
MR
21592011-01-22 Martin Rudalics <rudalics@gmx.at>
2160
2161 * window.c (select_window): New function.
2162 (Fselect_window): Call it.
2163 (inhibit_point_swap): Variable deleted.
2164 (Fset_window_configuration): Call select_window directly.
2165
3fb69558
JD
21662011-01-22 Jan Djärv <jan.h.d@swipnet.se>
2167
2168 * nsterm.m (constrainFrameRect): Only constrain the first time called.
2169
449ab399
JD
21702011-01-21 Jan Djärv <jan.h.d@swipnet.se>
2171
e2f79c8d
JD
2172 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
2173 screen, not the window screen.
2174 (x_set_window_size): Remove constraints.
2175 Calculate origin.y only if zooming is 0 and without referring to a
2176 screen.
2177 (windowWillResize): Don't modify frameSize.
2178 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
2179 (initFrameFromEmacs): Initialize ns_userRect.
2180 (windowShouldZoom): Set zooming to one. Remove all other code.
2181 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
2182 Zero it after restore.
2183 (constrainFrameRect): New method for EmacsWindow.
2184 (mouseDragged): Always post NSWindowDidResizeNotification after call to
2185 windowWillResize.
2186
2187 * nsterm.h (ns_output): Add dont_constrain and zooming.
2188 (EmacsView): Add ns_userRect.
2189
449ab399
JD
2190 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
2191 if ns_alternate_modifier is none.
2192
e885315d
JD
21932011-01-20 Jan Djärv <jan.h.d@swipnet.se>
2194
2195 * unexmacosx.c: Add comment about include order.
2196
bb1c6663
GM
21972011-01-20 Glenn Morris <rgm@gnu.org>
2198
c11136ec
GM
2199 * minibuf.c (syms_of_minibuf) <read-expression-history>:
2200 Give it a doc string.
2201 * globals.h: Add Vread_expression_history.
2202
bb1c6663
GM
2203 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
2204 Give it a doc string.
2205 * globals.h: Add Vkbd_macro_termination_hook.
2206
9aea757b
CY
22072011-01-20 Chong Yidong <cyd@stupidchicken.com>
2208
2209 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
2210
e1ef0dac
PE
22112011-01-19 Paul Eggert <eggert@cs.ucla.edu>
2212
2213 Fix X11 compilation failure.
2214 * globals.h (struct emacs_globals): Document f_Vselection_alist.
2215 * xselect.c (Vselection_alist): Remove declaration, moving its
2216 documentation to globals.h. This fixes a compilation failure
2217 induced by the earlier change to globals.h today.
2218
fb9d0f5a
JD
22192011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2220
8beb828a
JD
2221 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2222
fb9d0f5a
JD
2223 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2224 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2225 (ns_input_spi_name, ns_input_spi_arg)
2226 (ns_alternate_modifier, ns_right_alternate_modifier)
2227 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2228 (ns_right_control_modifier, ns_function_modifier)
2229 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2230 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2231 (x_underline_at_descent_line): Remove declaration.
2232 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2233
01c35094 2234 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
2235 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2236 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2237
2238 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2239 Remove declaration.
2240
2241 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2242 globals.h.
2243 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2244
2245 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2246 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2247 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2248
2249 * globals.h (struct emacs_globals): Add f_ns_input_file,
2250 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2251 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2252 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2253 f_ns_right_alternate_modifier, f_ns_command_modifier,
2254 f_ns_right_command_modifier, f_ns_control_modifier,
2255 f_ns_right_control_modifier, f_ns_function_modifier,
2256 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2257 f_Vns_version_string, f_Vns_sent_selection_hooks,
2258 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2259 and corresponding defines.
2260
4e55715e
SS
22612011-01-19 Sam Steingold <sds@gnu.org>
2262
2263 * w32.c (check_windows_init_file): Remove declarations of
2264 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 2265 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 2266
ef79d2fa
TT
22672011-01-19 Tom Tromey <tromey@redhat.com>
2268
2269 * window.c: Fix error introduced by previous patch.
2270
29208e82
TT
22712011-01-18 Tom Tromey <tromey@parfait>
2272
2273 * globals.h: New file.
2274 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2275 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2276 (Vwindow_system_version): Remove declaration.
2277 * w32term.h (Vw32_enable_palette)
2278 (Vx_pixel_size_width_font_regexp): Remove declaration.
2279 * w32menu.c (Voverriding_local_map)
2280 (Voverriding_local_map_menu_flag): Remove declaration.
2281 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2282 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2283 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2284 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2285 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2286 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2287 (w32_use_full_screen_buffer): Remove declaration.
2288 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2289 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2290 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2291 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2292 (no_redraw_on_reenter, visible_bell): Remove declaration.
2293 * sysdep.c (Vsystem_name): Remove declaration.
2294 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2295 * menu.h (Vmenu_updating_frame): Remove declaration.
2296 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2297 Remove declaration.
2298 * lisp.h (Vafter_init_time, Vafter_load_alist)
2299 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2300 (Vcompletion_regexp_list, Vcurrent_load_list)
2301 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2302 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2303 (Vexec_directory, Vexec_path, Vexec_suffixes)
2304 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2305 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2306 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2307 (Vinstallation_directory, Vinvocation_directory)
2308 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2309 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2310 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2311 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2312 (Vscalable_fonts_allowed, Vselect_active_regions)
2313 (Vshell_file_name, Vstandard_input, Vstandard_output)
2314 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2315 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2316 (Vuser_login_name, Vwindow_scroll_functions)
2317 (Vwindow_system_version, Vx_no_window_manager)
2318 (Vx_resource_class, Vx_resource_name, baud_rate)
2319 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2320 (history_delete_duplicates, inhibit_x_resources)
2321 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2322 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
2323 (use_dialog_box, use_file_dialog): Remove declaration.
2324 Include globals.h.
29208e82 2325 * keymap.h (Voverriding_local_map)
b286858c
SM
2326 (Voverriding_local_map_menu_flag, meta_prefix_char):
2327 Remove declaration.
29208e82
TT
2328 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2329 (Vinput_method_function, Vkey_translation_map)
2330 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2331 (do_mouse_tracking, extra_keyboard_modifiers)
2332 (num_nonmacro_input_events): Remove declaration.
2333 * intervals.h (Vchar_property_alias_alist)
2334 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2335 (Vtext_property_default_nonsticky): Remove declaration.
2336 * gtkutil.h (x_gtk_file_dialog_help_text)
2337 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2338 (x_gtk_whole_detached_tool_bar): Remove declaration.
2339 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2340 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2341 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2342 (focus_follows_mouse): Remove declaration.
2343 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2344 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
2345 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2346 Remove declaration.
29208e82
TT
2347 * font.h (Vfont_log): Remove declaration.
2348 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2349 (Vdos_windows_version, dos_codepage, dos_country_code)
2350 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
2351 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2352 Remove declaration.
2353 * disptab.h (Vglyph_table, Vstandard_display_table):
2354 Remove declaration.
29208e82
TT
2355 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2356 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2357 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2358 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2359 (inverse_video, mode_line_in_non_selected_windows)
2360 (tool_bar_button_relief, tool_bar_max_label_size)
2361 (underline_minimum_offset)
2362 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2363 Remove declaration.
2364 * composite.h (Vauto_composition_function)
2365 (Vcomposition_function_table): Remove declaration.
2366 * commands.h (Vexecuting_kbd_macro)
2367 (Vminibuffer_local_completion_map)
2368 (Vminibuffer_local_filename_completion_map)
2369 (Vminibuffer_local_filename_must_match_map)
2370 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2371 (Vminibuffer_local_ns_map, Vthis_command)
2372 (Vunread_command_events, cursor_in_echo_area)
2373 (last_command_event, last_nonmenu_event, unread_command_char):
2374 Remove declaration.
2375 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2376 (Vdefault_file_name_coding_system)
2377 (Vdefault_process_coding_system, Vfile_name_coding_system)
2378 (Vlast_coding_system_used, Vlocale_coding_system)
2379 (Vselect_safe_coding_system_function)
2380 (Vtranslation_table_for_input, coding_system_require_warning)
2381 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
2382 (eol_mnemonic_unix, inherit_process_coding_system):
2383 Remove declaration.
2384 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2385 Remove declaration.
29208e82
TT
2386 * character.h (Vauto_fill_chars, Vchar_direction_table)
2387 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2388 (Vscript_representative_chars, Vtranslation_table_vector)
2389 (Vunicode_category_table): Remove declaration.
2390 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2391 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2392 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2393 (inhibit_modification_hooks): Remove declaration.
2394 * xterm.c (syms_of_xterm): Update.
2395 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2396 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2397 (x_mouse_click_focus_ignore_position)
2398 (x_underline_at_descent_line)
2399 (x_use_underline_position_properties): Remove.
2400 * xsmfns.c (syms_of_xsmfns): Update.
2401 (Vx_session_id, Vx_session_previous_id): Remove.
2402 * xsettings.c (syms_of_xsettings): Update.
2403 (Vxft_settings, use_system_font): Remove.
2404 * xselect.c (syms_of_xselect): Update.
2405 (Vselection_converter_alist, Vx_lost_selection_functions)
2406 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2407 * xfns.c (syms_of_xfns): Update.
2408 (Vgtk_version_string, Vmotif_version_string)
2409 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2410 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2411 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2412 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2413 (Vx_sensitive_text_pointer_shape)
2414 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2415 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2416 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2417 Remove.
2418 * xfaces.c (syms_of_xfaces): Update.
2419 (Vface_default_stipple, Vface_font_rescale_alist)
2420 (Vface_ignored_fonts, Vface_new_frame_defaults)
2421 (Vface_remapping_alist, Vfont_list_limit)
2422 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2423 * xdisp.c (syms_of_xdisp): Update.
2424 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2425 (Vdisplay_pixels_per_inch, Vfontification_functions)
2426 (Vframe_title_format, Vglobal_mode_string)
2427 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2428 (Vicon_title_format, Vinhibit_redisplay)
2429 (Vline_number_display_limit, Vline_prefix)
2430 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2431 (Vmenu_updating_frame, Vmessage_log_max)
2432 (Vmouse_autoselect_window, Vnobreak_char_display)
2433 (Voverlay_arrow_position, Voverlay_arrow_string)
2434 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2435 (Vresize_mini_windows, Vshow_trailing_whitespace)
2436 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2437 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2438 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2439 (Vwindow_text_change_functions, Vwrap_prefix)
2440 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2441 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2442 (highlight_nonselected_windows, hscroll_margin)
2443 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2444 (inhibit_menubar_update, inhibit_try_cursor_movement)
2445 (inhibit_try_window_id, inhibit_try_window_reusing)
2446 (line_number_display_limit_width)
2447 (make_cursor_line_fully_visible_p, message_truncate_lines)
2448 (mode_line_inverse_video, multiple_frames, overline_margin)
2449 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2450 (tool_bar_max_label_size, underline_minimum_offset)
2451 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2452 Remove.
2453 * window.c (syms_of_window): Update.
2454 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2455 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2456 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2457 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2458 (mode_line_in_non_selected_windows, next_screen_context_lines)
2459 (window_min_height, window_min_width): Remove.
2460 (scroll_margin): Remove declaration.
2461 * w32term.c (syms_of_w32term): Update.
2462 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2463 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2464 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2465 (w32_use_visible_system_caret, x_underline_at_descent_line)
2466 (x_use_underline_position_properties): Remove.
2467 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2468 Remove declaration.
2469 * w32select.c (syms_of_w32select): Update.
2470 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2471 * w32proc.c (syms_of_ntproc): Update.
2472 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2473 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2474 (Vw32_start_process_inherit_error_mode)
2475 (Vw32_start_process_share_console)
2476 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2477 (Vsystem_name): Remove declaration.
2478 * w32font.c (syms_of_w32font): Update.
2479 (Vw32_charset_info_alist): Remove.
2480 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2481 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2482 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2483 (Vw32_enable_palette, Vw32_lwindow_modifier)
2484 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2485 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2486 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2487 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2488 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2489 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2490 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2491 (Vx_sensitive_text_pointer_shape)
2492 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2493 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2494 (w32_mouse_move_interval)
2495 (w32_pass_extra_mouse_buttons_to_system)
2496 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2497 (w32_strict_fontnames, w32_strict_painting): Remove.
2498 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2499 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
2500 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2501 Remove declaration.
29208e82
TT
2502 * w32console.c (syms_of_ntterm): Update.
2503 (w32_use_full_screen_buffer): Remove.
2504 (Vtty_defined_color_alist): Remove declaration.
2505 * w16select.c (syms_of_win16select): Update.
2506 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2507 * undo.c (syms_of_undo): Update.
2508 (Vundo_outer_limit, Vundo_outer_limit_function)
2509 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2510 Remove.
2511 * textprop.c (syms_of_textprop): Update.
2512 (Vchar_property_alias_alist, Vdefault_text_properties)
2513 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2514 Remove.
2515 * terminal.c (syms_of_terminal): Update.
2516 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2517 * term.c (syms_of_term): Update.
2518 (Vresume_tty_functions, Vsuspend_tty_functions)
2519 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2520 Remove.
2521 * syntax.c (syms_of_syntax): Update.
2522 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2523 (open_paren_in_column_0_is_defun_start)
2524 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2525 (words_include_escapes): Remove.
2526 * search.c (syms_of_search): Update.
2527 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2528 * process.c (syms_of_process): Update.
2529 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2530 (delete_exited_processes): Remove.
2531 * print.c (syms_of_print): Update.
2532 (Vfloat_output_format, Vprint_charset_text_property)
2533 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2534 (Vprint_length, Vprint_level, Vprint_number_table)
2535 (Vstandard_output, print_escape_multibyte)
2536 (print_escape_newlines, print_escape_nonascii, print_quoted):
2537 Remove.
2538 * msdos.c (syms_of_msdos): Update.
2539 (Vdos_unsupported_char_glyph): Remove.
2540 (unibyte_display_via_language_environment): Remove declaration.
2541 * minibuf.c (syms_of_minibuf): Update.
2542 (Vcompletion_regexp_list, Vhistory_add_new_input)
2543 (Vhistory_length, Vminibuffer_completing_file_name)
2544 (Vminibuffer_completion_confirm)
2545 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2546 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2547 (Vminibuffer_history_position, Vminibuffer_history_variable)
2548 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2549 (Vread_buffer_function, Vread_expression_map)
2550 (completion_ignore_case, enable_recursive_minibuffers)
2551 (history_delete_duplicates, minibuffer_allow_text_properties)
2552 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2553 Remove.
2554 * marker.c (syms_of_marker): Update.
2555 (byte_debug_flag): Remove.
2556 * macros.c (syms_of_macros): Update.
2557 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2558 * lread.c (syms_of_lread): Update.
2559 (Vafter_load_alist, Vbyte_boolean_vars)
2560 (Vbytecomp_version_regexp, Vcurrent_load_list)
2561 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2562 (Vload_history, Vload_path, Vload_read_function)
2563 (Vload_source_file_function, Vload_suffixes, Vobarray)
2564 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2565 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2566 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2567 (force_load_messages, load_convert_to_unibyte)
2568 (load_dangerous_libraries, load_force_doc_strings)
2569 (load_in_progress): Remove.
2570 * keymap.c (syms_of_keymap): Update.
2571 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2572 (Vminibuffer_local_completion_map)
2573 (Vminibuffer_local_filename_completion_map)
2574 (Vminibuffer_local_filename_must_match_map)
2575 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2576 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2577 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2578 Remove.
2579 * keyboard.c (syms_of_keyboard): Update.
2580 (Vauto_save_timeout, Vcommand_error_function)
2581 (Vcommand_hook_internal, Vdeactivate_mark)
2582 (Vdeferred_action_function, Vdeferred_action_list)
2583 (Vdisable_point_adjustment, Vdouble_click_time)
2584 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2585 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2586 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2587 (Vinput_method_function, Vinput_method_previous_message)
2588 (Vkey_translation_map, Vlast_event_frame)
2589 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2590 (Vminibuffer_message_timeout, Voverriding_local_map)
2591 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2592 (Vpre_command_hook, Vprefix_help_command)
2593 (Vsaved_region_selection, Vselect_active_regions)
2594 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2595 (Vthis_command, Vthis_command_keys_shift_translated)
2596 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2597 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2598 (Vtty_erase_char, Vunread_command_events)
2599 (Vunread_input_method_events, Vunread_post_input_method_events)
2600 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2601 (double_click_fuzz, extra_keyboard_modifiers)
2602 (inhibit_local_menu_bar_menus, last_command_event)
2603 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2604 (menu_prompting, meta_prefix_char, num_input_keys)
2605 (num_nonmacro_input_events, polling_period, unread_command_char):
2606 Remove.
2607 * insdel.c (syms_of_insdel): Update.
2608 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2609 * indent.c (syms_of_indent): Update.
2610 (indent_tabs_mode): Remove.
2611 * image.c (syms_of_image): Update.
2612 (Vimage_cache_eviction_delay, Vimage_types)
2613 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2614 (cross_disabled_images): Remove.
2615 * fringe.c (syms_of_fringe): Update.
2616 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2617 * frame.c (syms_of_frame): Update.
2618 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2619 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2620 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2621 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2622 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2623 Remove.
2624 * fontset.c (syms_of_fontset): Update.
2625 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2626 (Vfontset_alias_alist, Vignore_relative_composition)
2627 (Votf_script_alist, Vuse_default_ascent)
2628 (Vvertical_centering_font_regexp): Remove.
2629 * font.c (syms_of_font): Update.
2630 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2631 (Vfont_weight_table, Vfont_width_table): Remove.
2632 * fns.c (syms_of_fns): Update.
2633 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2634 * filelock.c (syms_of_filelock): Update.
2635 (Vtemporary_file_directory): Remove.
2636 * fileio.c (syms_of_fileio): Update.
2637 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2638 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2639 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2640 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2641 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2642 (Vwrite_region_annotate_functions)
2643 (Vwrite_region_annotations_so_far)
2644 (Vwrite_region_post_annotation_function)
2645 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2646 (Vw32_get_true_file_attributes): Remove declaration.
2647 * eval.c (syms_of_eval): Update.
2648 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2649 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2650 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2651 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2652 (max_lisp_eval_depth, max_specpdl_size): Remove.
2653 * emacs.c (syms_of_emacs): Update.
2654 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2655 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2656 (Vinstallation_directory, Vinvocation_directory)
2657 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2658 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2659 (Vsystem_configuration, Vsystem_configuration_options)
2660 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2661 (inhibit_x_resources, noninteractive1): Remove.
2662 * editfns.c (syms_of_editfns): Update.
2663 (Vbuffer_access_fontified_property)
2664 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2665 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2666 (Vuser_login_name, Vuser_real_login_name): Remove.
2667 * dosfns.c (syms_of_dosfns): Update.
2668 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2669 (dos_codepage, dos_country_code, dos_decimal_point)
2670 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2671 (dos_super_key, dos_timezone_offset): Remove.
2672 * doc.c (syms_of_doc): Update.
2673 (Vbuild_files, Vdoc_file_name): Remove.
2674 * dispnew.c (syms_of_display): Update.
2675 (Vglyph_table, Vinitial_window_system)
2676 (Vredisplay_preemption_period, Vstandard_display_table)
2677 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2678 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2679 * dired.c (syms_of_dired): Update.
2680 (Vcompletion_ignored_extensions): Remove.
2681 (Vw32_get_true_file_attributes): Remove declaration.
2682 * dbusbind.c (syms_of_dbusbind): Update.
2683 (Vdbus_debug, Vdbus_registered_buses)
2684 (Vdbus_registered_objects_table): Remove.
2685 * data.c (syms_of_data): Update.
2686 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2687 * composite.c (syms_of_composite): Update.
2688 (Vauto_composition_function, Vauto_composition_mode)
2689 (Vcompose_chars_after_function, Vcomposition_function_table):
2690 Remove.
2691 * coding.c (syms_of_coding): Update.
2692 (Vcharset_revision_table, Vcoding_category_list)
2693 (Vcoding_system_alist, Vcoding_system_for_read)
2694 (Vcoding_system_for_write, Vcoding_system_list)
2695 (Vdefault_process_coding_system, Venable_character_translation)
2696 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2697 (Vlast_coding_system_used, Vlatin_extra_code_table)
2698 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2699 (Vprocess_coding_system_alist)
2700 (Vselect_safe_coding_system_function)
2701 (Vstandard_translation_table_for_decode)
2702 (Vstandard_translation_table_for_encode)
2703 (Vtranslation_table_for_input, coding_system_require_warning)
2704 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2705 (eol_mnemonic_unix, inherit_process_coding_system)
2706 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2707 (inhibit_null_byte_detection): Remove.
2708 * cmds.c (syms_of_cmds): Update.
2709 (Vpost_self_insert_hook): Remove.
2710 * charset.c (syms_of_charset): Update.
2711 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2712 (inhibit_load_charset_map): Remove.
2713 * character.c (syms_of_character): Update.
2714 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2715 (Vchar_width_table, Vprintable_chars)
2716 (Vscript_representative_chars, Vtranslation_table_vector)
2717 (Vunicode_category_table): Remove.
2718 * ccl.c (syms_of_ccl): Update.
2719 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2720 (Vtranslation_hash_table_vector): Remove.
2721 * category.c (syms_of_category): Update.
2722 (Vword_combining_categories, Vword_separating_categories): Remove.
2723 * callproc.c (syms_of_callproc): Update.
2724 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2725 (Vexec_directory, Vexec_path, Vexec_suffixes)
2726 (Vinitial_environment, Vprocess_environment)
2727 (Vshared_game_score_directory, Vshell_file_name): Remove.
2728 * callint.c (syms_of_callint): Update.
2729 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2730 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2731 * bytecode.c (syms_of_bytecode): Update.
2732 (Vbyte_code_meter, byte_metering_on): Remove.
2733 * buffer.c (syms_of_buffer): Update.
2734 (Vafter_change_functions, Vbefore_change_functions)
2735 (Vchange_major_mode_hook, Vfirst_change_hook)
2736 (Vinhibit_read_only, Vkill_buffer_query_functions)
2737 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2738 * alloc.c (syms_of_alloc): Update.
2739 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2740 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2741 (cons_cells_consed, floats_consed, garbage_collection_messages)
2742 (gc_cons_threshold, gcs_done, intervals_consed)
2743 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2744 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2745
2746 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2747 (DEFVAR_INT): Assume global is in `globals'.
2748 * alloc.c (globals): Define.
2749
448c0820
TT
27502011-01-18 Tom Tromey <tromey@redhat.com>
2751
2752 * image.c (Vimagemagick_render_type): Remove redundant
2753 definition.
2754
8442d95d
TT
27552011-01-18 Tom Tromey <tromey@redhat.com>
2756
2757 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2758 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2759 (redisplay_window): Update.
2760 (syms_of_xdisp): Update.
2761
cab0ba98
TT
27622011-01-18 Tom Tromey <tromey@redhat.com>
2763
2764 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2765 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2766 Declare.
2767 * gtkutil.c (xg_uses_old_file_dialog):
2768 (xg_get_file_with_chooser):
2769 (xg_tool_bar_detach_callback): Don't redeclare globals.
2770
422745d0
TT
27712011-01-18 Tom Tromey <tromey@redhat.com>
2772
2773 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2774 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2775
7cae64b4
PE
27762011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2777
2778 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2779 defined __GNUC__. ../configure now checks for this GCC feature,
2780 which is now also supported by IBM and Oracle compilers.
2781 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2782 since Solaris malloc returns mult-of-8.
2783
a9faac5c 27842011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
2785
2786 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2787
a3e44e79 27882011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 2789
6e8e6bf2
PE
2790 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2791 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2792 * data.c (Fnumber_to_string): Use it.
2793 * print.c (float_to_string, print_object): Likewise.
2794
4004364e
PE
2795 Include <unistd.h> unilaterally.
2796 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2797 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2798 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2799 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2800 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2801 * xterm.c:
2802 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2803 unistd.h is always present now, possibly supplied by gnulib.
2804
e84aba69
PE
2805 * mktime.c: Remove; moving to ../lib.
2806
1e11dbe3
PE
2807 Use gnulib's mktime module.
2808 * deps.mk (mktime.o): Remove rule.
2809
fa2c4f56
PE
2810 Use gnulib's ftoastr module.
2811 * print.c: Include ftoastr.h.
2812 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2813 Remove; no longer needed.
2814 (float_to_string): Use dtoastr rather than rolling our own code,
2815 which had an off-by-one bug on non-IEEE hosts.
2816
9a514d4a
PE
2817 Automate syncing from gnulib.
2818 * Makefile.in (lib): New macro.
2819 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2820 ($(lib)/libgnu.a): New rule.
2821 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2822
717c30e0
PE
2823 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2824 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2825 so change the type of 'ign' to unsigned int from int.
2826
8865d794
PE
2827 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2828
4ef36a7b
PE
2829 * xterm.h (struct x_display_info): Remove stray semicolon.
2830 The extra semicolon didn't conform to the C standard.
2831 Problem reported by Sun cc.
2832
6df4097e
PE
2833 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2834 These changes make compilation easier to follow with Sun cc.
2835 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2836 EMACS_INT values without provoking overflow diagnostics.
2837 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2838 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2839 diagnostic with signed left shift.
9fba3563 2840
410ed5c3
PE
2841 * fileio.c (make_temp_name): Remove unreachable code.
2842
97be3ce3
PE
2843 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2844 Previously it was marked by preceding it with "return;", but
2845 Sun cc complains about this.
2846
9fba3563
PE
2847 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2848 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2849 which fixed Bug#2370. Caught by Sun cc.
2850
6dc1d2d3
MR
28512011-01-15 Martin Rudalics <rudalics@gmx.at>
2852
2853 * window.c (inhibit_point_swap): New variable.
2854 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2855 point this time.
2856 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2857 of setting selected_window to nil (Bug#7728).
2858
f853f599
TH
28592011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2860
8dabbfd6
SM
2861 * image.c (imagemagick_load_image, Finit_image_library):
2862 Free intermediate image after creating a MagickWand from it.
2863 Terminate MagickWand environment after image loading.
f853f599 2864
2bc92a93
MA
28652011-01-10 Michael Albinus <michael.albinus@gmx.de>
2866
2867 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2868 unexpected return values.
2869 (Fdbus_register_method): Remove connection initialization.
2870
28712011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
2872
2873 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2874 used by Fdbus_register_service.
2875 (QCdbus_request_name_replace_existing): Likewise.
2876 (QCdbus_request_name_do_not_queue): Likewise.
2877 (QCdbus_request_name_reply_primary_owner): Likewise.
2878 (QCdbus_request_name_reply_in_queue): Likewise.
2879 (QCdbus_request_name_reply_exists): Likewise.
2880 (QCdbus_request_name_reply_already_owner): Likewise.
2881 (Fdbus_register_service): New function.
2882 (Fdbus_register_method): Use Fdbus_register_service to do the name
2883 registration.
2884 (syms_of_dbusbind): Add symbols dbus-register-service,
2885 :allow-replacement, :replace-existing, :do-not-queue,
2886 :primary-owner, :existing, :in-queue and :already-owner.
2887
21a76236
CY
28882011-01-09 Chong Yidong <cyd@stupidchicken.com>
2889
2890 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2891 when removing extra buttons.
2892
3d91e302
CY
28932011-01-08 Chong Yidong <cyd@stupidchicken.com>
2894
2895 * fns.c (Fyes_or_no_p): Doc fix.
2896
0d23ffb5
AS
28972011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2898
2899 * fns.c (Fyes_or_no_p): Add usage.
2900
9dc3366b
GM
29012011-01-08 Glenn Morris <rgm@gnu.org>
2902
d0981f82
GM
2903 * makefile.w32-in ($(EMACS)):
2904 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2905
9dc3366b
GM
2906 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2907 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2908
466cbae9
AS
29092011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2910
2911 * image.c (imagemagick_load_image): Fix some resource leaks and
2912 error handling.
2913
8c51d2a2
CY
29142011-01-07 Chong Yidong <cyd@stupidchicken.com>
2915
2916 * fns.c (Fyes_or_no_p): Accept format string args.
2917
66b7b0fe
GM
29182011-01-07 Glenn Morris <rgm@gnu.org>
2919
2920 * emacs.c (no_site_lisp): New int.
2921 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2922 (main): Set no_site_lisp.
2923 (standard_args): Add --no-site-lisp.
2924 * lisp.h (no_site_lisp): New int.
2925 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2926 directories to Vload_path.
2927
2018939f
AS
29282011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2929
2930 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2931
6ed843e5
MA
29322011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2933
8dabbfd6 2934 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
2935 dont_register_service. Updated docstring accordingly.
2936
3f9b7090
GM
29372011-01-04 Glenn Morris <rgm@gnu.org>
2938
2939 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2940
d82bce4a
EZ
29412011-01-03 Eli Zaretskii <eliz@gnu.org>
2942
2943 * image.c (png_jmpbuf): Remove definition.
2944 (my_png_error, png_load): Don't use png_jmpbuf.
2945
7c420169
CY
29462011-01-02 Eli Zaretskii <eliz@gnu.org>
2947
2948 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2949
29502011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
2951
2952 * image.c <Qlibpng_version>: New variable.
2953 (syms_of_image): Intern and staticpro it. Set its value to the
2954 version of PNG library we were compiled with.
2955 (my_png_error, png_load): Avoid GCC warnings about direct access
2956 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
2957 (png_jmpbuf): New macro.
2958 (my_png_error, png_load): Use it instead of #ifdef'ing according
2959 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 2960
7c420169 29612011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
2962
2963 * .gdbinit (xgetptr): Fix the union+lsb case.
2964 (xbacktrace): Fix the union case.
2965
7c420169 29662011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
2967
2968 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2969 different from selected-window's.
2970
7c420169 29712011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 2972
71fe378d
EZ
2973 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2974 equivalent of a menu item when the key sequence is given by the
2975 `:keys' attribute. (Bug#7662)
2976
2e4ab211
EZ
2977 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2978 the basic faces are supported.
2979
7c420169 29802011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
2981
2982 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2983
7c420169 29842011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
2985
2986 * xdisp.c (Fformat_mode_line): Fix last change.
2987
7c420169 29882011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
2989
2990 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2991 faces (Bug#7587).
2992
7c420169 29932011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
2994
2995 * fileio.c (Fexpand_file_name): One more doc fix.
2996
3afff00e
CY
29972011-01-01 Chong Yidong <cyd@stupidchicken.com>
2998
2999 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
3000 image or label in the container.
3001 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
3002 (xg_show_toolbar_item): Function deleted.
3003 (xg_tool_item_stale_p): New function.
3004 (update_frame_tool_bar): Calculate tool-bar style once per call.
3005 Instead of hiding text labels, omit them. Don't use
3006 xg_show_toolbar_item; create new GtkToolItems from scratch if
3007 necessary, instead of trying to re-use them. This avoids an
3008 annoying animation when changing tool-bars.
3009
aeb7e951
JD
30102010-12-31 Jan Djärv <jan.h.d@swipnet.se>
3011
3012 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
3013 title and buffer filename only for RepresentedFilename.
3014 Handle bad UTF-8 in buffer name (Bug#7517).
3015
5bbb4727
JD
30162010-12-30 Jan Djärv <jan.h.d@swipnet.se>
3017
3018 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
3019
3020 * nsfns.m (ns_set_name_iconic): Remove.
3021 (ns_set_name_internal): New function (Bug#7517).
3022 (Vicon_title_format): Extern declare.
3023 (ns_set_name): Call ns_set_name_internal.
3024 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
3025 (x_implicitly_set_name): Ditto.
3026 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
3027 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
3028
f1aab3ff
ŠN
30292010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
3030
3031 * window.c (syms_of_window): Add missing defsubr for
3032 window-use-time.
3033
365525b3
AS
30342010-12-28 Andreas Schwab <schwab@linux-m68k.org>
3035
3036 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
3037 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
3038
59fc5cf9
AS
30392010-12-27 Andreas Schwab <schwab@linux-m68k.org>
3040
2f7c71a1
AS
3041 * buffer.c: Remove unused declarations.
3042 * buffer.h: Likewise.
3043 * charset.h: Likewise.
3044 * composite.h: Likewise.
3045 * dispextern.h: Likewise.
3046 * dispnew.c: Likewise.
3047 * font.h: Likewise.
3048 * fontset.c: Likewise.
3049 * fontset.h: Likewise.
3050 * intervals.h: Likewise.
3051 * keymap.h: Likewise.
3052 * lisp.h: Likewise.
3053 * syntax.c: Likewise.
3054 * syntax.h: Likewise.
3055 * termhooks.h: Likewise.
3056 * window.h: Likewise.
3057 * xsettings.h: Likewise.
3058 * xterm.c: Likewise.
3059 * xterm.h: Likewise.
3060
3061 * chartab.c (sub_char_table_ref): Make static.
3062 * dispnew.c (line_hash_code, required_matrix_height)
3063 (required_matrix_width): Likewise.
3064 * eval.c (interactive_p, apply_lambda): Likewise.
3065 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
3066 Likewise.
3067 * font.c (QCadstyle, QCregistry, font_make_spec)
3068 (font_parse_fcname, font_encode_char, font_at): Likewise.
3069 * frame.c (x_frame_get_arg): Likewise.
3070 * keymap.c (get_keyelt): Likewise.
3071 * lread.c (read_filtered_event): Likewise.
3072 * print.c (write_string_1): Likewise.
3073 * window.c (delete_window, window_height, window_width)
3074 (foreach_window): Likewise.
3075 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
3076 * xterm.c (x_scroll_bar_clear, xembed_set_info)
3077 (xembed_send_message): Likewise.
3078
3079 * eval.c (run_hook_list_with_args): Delete.
3080 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
3081 * terminal.c (get_terminal_param): Likewise.
3082 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
3083
c4b607ed
AS
3084 * scroll.c: Fix comment.
3085
59fc5cf9
AS
3086 * dispnew.c (add_window_display_history)
3087 (add_frame_display_history, glyph_row_slice_p)
3088 (find_glyph_row_slice, flush_stdout)
3089 (check_matrix_pointer_lossage, matrix_row)
3090 (check_matrix_invariants, check_window_matrix_pointers)
3091 (check_matrix_pointers, window_to_frame_vpos)
3092 (window_to_frame_hpos): Prototize.
3093 * textprop.c (erase_properties): Likewise.
3094
a65b85b5
SM
30952010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
3096
17870c01
SM
3097 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
3098 (print_preprocess): Fix handling of uninterned symbols in last change.
3099
a65b85b5
SM
3100 * print.c (print, print_preprocess, print_object): Use a hash table
3101 rather than a linear table for Vprint_number_table.
3102
f13183cf
CY
31032010-12-20 Chong Yidong <cyd@stupidchicken.com>
3104
3105 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
3106
94975270
CY
31072010-12-20 Chong Yidong <cyd@stupidchicken.com>
3108
3109 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
3110 (parse_tool_bar_item): Use it to obtain image separators for
3111 displays not using native tool-bar separators.
3112
3113 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
3114 specially, since this is now done in parse_tool_bar_item.
3115
ef1b0ba7
SM
31162010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
3117
3118 Minor clean up to silence some gcc warnings.
3119 * window.c (Fset_window_buffer):
3120 * xterm.c (x_set_frame_alpha): Restructure code to silence
3121 compiler warning.
3122 (handle_one_xevent): Remove unused var `p'.
3123 (do_ewmh_fullscreen): Remove unused var `lval'.
3124 (xembed_set_info): Remove unused var `atom'.
3125 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
3126 compiler warning.
3127 * fontset.c (fontset_id_valid_p, dump_fontset):
3128 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
3129 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
3130 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
3131 label only when it's used.
3132 * image.c (x_create_bitmap_from_xpm_data):
3133 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
3134 its callers.
3135 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
3136 `consumed_chars'.
3137 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
3138 (decode_coding_emacs_mule): Remove unused label `retry'.
3139 (detect_eol): Add parens to silence compiler warning.
3140 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
3141 it's used to silence the compiler.
3142 (make_number): Modernize k&r declaration.
3143 (mark_char_table): Add parens to silence compiler warning.
3144
4039c786
CY
31452010-12-17 Chong Yidong <cyd@stupidchicken.com>
3146
3147 * keyboard.c (parse_tool_bar_item): Allow menu separators in
3148 tool-bar maps.
3149 (menu_separator_name_p): New function, from gtkutil.c.
3150 (separator_names): Move from gtkutil.c.
3151
3152 * keyboard.h (menu_separator_name_p): Add prototype.
3153
3154 * gtkutil.c (XG_BIN_CHILD): New macro.
3155 (xg_get_menu_item_label, xg_update_menubar)
3156 (xg_update_menu_item, xg_tool_bar_menu_proxy)
3157 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
3158 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
3159 (create_menus, xg_update_submenu, update_frame_tool_bar):
3160 Use menu_separator_name_p.
4039c786
CY
3161
3162 * nsmenu.m (name_is_separator): Function deleted.
3163 (addItemWithWidgetValue): Use menu_separator_name_p.
3164
3165 * w32menu.c (name_is_separator): Function deleted.
3166 (add_menu_item): Use menu_separator_name_p.
3167
aa936e8e
JD
31682010-12-16 Jan Djärv <jan.h.d@swipnet.se>
3169
3170 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
3171 same as the background, use the face forground as cursor.
3172
f49d1f52 31732010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
3174
3175 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
3176
f49d1f52 31772010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 3178
f0559026
EZ
3179 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
3180 (face_before_or_after_it_pos, next_element_from_string)
3181 (next_element_from_c_string, produce_stretch_glyph): Remove unused
3182 calculations of maximum string length before calling
3183 string_char_and_length and STRING_CHAR_AND_LENGTH.
3184 (string_char_and_length): Update commentary: MAXLEN is no longer
3185 needed.
3186
f49d1f52 31872010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
3188
3189 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
3190 as (Qsave_session arg).
3191
3192 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
3193 (smc_die_CB): Make an event with arg Qt.
3194 (Fhandle_save_session): If event has Qt as argument,
3195 call Fkill_emacs (Bug#7552).
3196
f49d1f52
SM
31972010-12-13 Chong Yidong <cyd@stupidchicken.com>
3198
3199 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
3200
32012010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
3202
3203 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
3204
f49d1f52 32052010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
3206
3207 * dispextern.h (struct it): New member overlay_strings_charpos.
3208
3209 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
3210 charpos where we computed n_overlay_strings.
3211 (next_overlay_string): Load overlay strings at recorded position,
3212 which may not be the same as the iterator's charpos (Bug#7016).
3213
f49d1f52 32142010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
3215
3216 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3217 obscured due to a vscroll (Bug#7537).
3218
f49d1f52 32192010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
3220
3221 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3222
3223 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3224 Use FRAME_TOOLBAR_HEIGHT.
3225 (x_set_offset): Handle XNegative and YNegative in
3226 f->size_hint_flags (Bug#7510).
3227
39321b94
EZ
32282010-12-11 Eli Zaretskii <eliz@gnu.org>
3229
3230 * w32fns.c (Fx_show_tip): Call try_window with last argument
3231 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3232 solved. Round up the tip height to an integral multiple of the
3233 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3234 (Bug#7398)
3235
ec1b9b17
GM
32362010-12-08 Glenn Morris <rgm@gnu.org>
3237
3238 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3239
3c2317e8
LMI
32402010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3241
3242 * xml.c (parse_region): Ignore blank HTML nodes.
3243 (make_dom): Return CDATA sections (like <style>foo</style>) as
3244 text nodes.
3245
bba3e508
SM
32462010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3247
3248 * lread.c (read1): Allow newstyle unquote outside of backquote.
3249 Disallow old-style backquotes inside new-style backquotes.
3250 Don't count unquotes to figure out when we're "syntactically inside
3251 but semantically outside of a backquote" any more.
3252 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3253 to all contexts.
3254
d23d8608
CY
32552010-12-05 Chong Yidong <cyd@stupidchicken.com>
3256
3257 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3258
d6a003a8
AS
32592010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3260
3261 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3262 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3263 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3264
201ef780
AS
32652010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3266
3267 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3268 bit-field.
3269 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3270 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3271 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3272 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3273 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3274 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3275 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3276 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3277 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3278 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3279 * m/hp800.h: Remove file.
3280 * m/mips.h: Remove file.
3281
146490c3
JD
32822010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3283
3284 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3285 with cursor color and draw a rectangle around the image (Bug#7412).
3286
babc8f0d
AS
32872010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3288
3289 * frame.c (x_set_font): Remove unused variable.
3290
9583e9a0
JD
32912010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3292
dd723bbd
JD
3293 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3294
9583e9a0
JD
3295 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3296 drawing text under filled box cursor (Bug#7479).
3297
07976ae3 32982010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
3299
3300 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3301 i.e. integer.
bba3e508 3302 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
3303 (init_charset_once): Likewise.
3304
bba3e508
SM
3305 * charset.h (emacs_mule_charset): Adjust the prototype.
3306 Delete duplicated extern.
b84ae584
KH
3307
3308 * coding.c (emacs_mule_char): Adjust for the change of
3309 emacs_mule_charset.
3310
3311 * lread.c (read_emacs_mule_char): Adjust for the change of
3312 emacs_mule_charset.
3313
07976ae3 33142010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
3315
3316 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3317 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3318
07976ae3 33192010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
3320
3321 * alloc.c (mark_terminals): Ensure that the image cache is marked
3322 even if the terminal object was marked earlier (Bug#6301).
3323
35f1de62
CY
33242010-11-21 Chong Yidong <cyd@stupidchicken.com>
3325
3326 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3327
07976ae3 33282010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
3329
3330 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3331 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 3332 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 3333
8547874a
EZ
33342010-11-26 Eli Zaretskii <eliz@gnu.org>
3335
228482b2
EZ
3336 * xdisp.c (set_message_1): Force paragraph direction in echo area
3337 be left-to-right.
3338
8547874a
EZ
3339 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3340 when the click is on the header or mode line.
3341
1e2dddbe
EZ
33422010-11-25 Eli Zaretskii <eliz@gnu.org>
3343
3344 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3345 `cursor' property of the first character in overlay strings.
12365240 3346 (Bug#7474) (Bug#7481)
1e2dddbe 3347
50795d1f
JD
33482010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3349
3350 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3351 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
3352 (keyDown): Parse left and right keys separately (Bug#7458).
3353 Compare Left key masks exactly (Bug#7458).
50795d1f 3354
f8ab8c1f
EZ
33552010-11-23 Eli Zaretskii <eliz@gnu.org>
3356
3357 * intervals.c (temp_set_point_both): Define before calling, to
3358 avoid GCC warnings.
3359
2e8a4797
DN
33602010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3361
b29116ef
DN
3362 * nsmenu.m: Use #include <config.h> instead of "config.h".
3363
b932f8b1 3364 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3365 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3366 Move declarations ...
3367 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3368 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3369 ... here.
3370
42c8bc9b
DN
3371 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3372 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3373 (gdb_pvec_type):
3374 * print.c (print_output_debug_flag):
3375 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3376 (safe_debug_print): New declaration.
3377
2e8a4797
DN
3378 * xterm.c:
3379 * systty.h:
3380 * sound.c: Include <sys/ioctl.h> unconditionally.
3381
b609f591
YM
33822010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3383
3384 * alloc.c (mark_maybe_object): Return early if given a Lisp
3385 integer (Bug#6301).
3386
731e263a
KB
33872010-11-21 Ken Brown <kbrown@cornell.edu>
3388
3389 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3390
b7d1e144
JD
33912010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3392
3393 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3394 Define (Bug#7458).
3395 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3396 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3397 NSRightControlKeyMask also (Bug#7458).
3398 (keyDown): Ditto (Bug#7458).
3399 (syms_of_nsterm): Defvar ns-right-command-modifier and
3400 ns-right-control-modifier (Bug#7458).
3401
b7982059
DN
34022010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3403
bee3419f
DN
3404 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3405 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3406
b7982059
DN
3407 * intervals.h (temp_set_point, temp_set_point_both):
3408 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3409
01664ed1
KB
34102010-11-20 Ken Brown <kbrown@cornell.edu>
3411
3412 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3413
7c2d713b
EZ
34142010-11-20 Eli Zaretskii <eliz@gnu.org>
3415
3416 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3417 \xNNNNNN for hex-code display of glyphless characters.
3418
d2bd5189
JD
34192010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3420
3421 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3422 Set important to ! vert_only.
3423 (xg_show_toolbar_item): Don't show label horizontally if
3424 tool item isn't important.
3425 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3426 xg_make_tool_item, or update important on existing tool item.
3427
3428 * keyboard.c (QCvert_only): New variable.
3429 (parse_tool_bar_item): Check for QCvert_only.
3430 (syms_of_keyboard): Initialize QCvert_only.
3431
3432 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3433
d9a95e67
EZ
34342010-11-20 Eli Zaretskii <eliz@gnu.org>
3435
3436 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3437 same in-line.
3438
b6557553
AS
34392010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3440
3441 * xfaces.c (lookup_face): Make static.
3442 * dispnew.c (copy_row_except_pointers): Likewise.
3443 * syntax.c (dec_bytepos): Likewise.
3444 (inc_bytepos): Remove.
3445 * dispextern.h (lookup_face): Remove declaration.
3446
f48fe1f0
EZ
34472010-11-19 Eli Zaretskii <eliz@gnu.org>
3448
3449 * xdisp.c (set_cursor_from_row): Display cursor after all the
3450 glyphs that come from an overlay. Don't overstep the last glyph
3451 when skipping glyphs from an overlay. (Bug#6687)
3452
654ef137
DN
34532010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3454
84dfc8a7
DN
3455 * alloc.c (refill_memory_reserve): Move declaration ...
3456 * lisp.h (refill_memory_reserve): ... here.
3457
94fa3833
DN
3458 * strftime.c (_strftime_copytm): Add declaration.
3459
dde990a0
DN
3460 * callproc.c (syms_of_callproc): Use intern_c_string.
3461
50c77428
DN
3462 Move declarations from .c files to .h files.
3463 * process.c (timers_run):
3464 * minibuf.c (quit_char):
3465 * lread.c (read_emacs_mule_char):
3466 * keyboard.c (minibuf_level, message_enable_multibyte)
3467 (pending_malloc_warning):
3468 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3469 (Qonly): Remove declarations.
3470 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3471 (Vselect_active_regions):
2f8f196d 3472 * keyboard.h (timers_run): Add declarations.
50c77428 3473
654ef137
DN
3474 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3475 (tm_diff): Convert definitions to standard C.
3476 (extra_args_spec_iso): Remove, unused.
3477
4a47c275 34782010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
3479
3480 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3481
3482 * config.in (HAVE_G_TYPE_INIT): New symbol.
3483
4a47c275 34842010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
3485
3486 * lread.c (Fload): Mention `load-in-progress' and
3487 `load-file-name'. (Bug#7346)
3488
86520d8c
EZ
3489 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3490 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3491 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3492 subprocesses. Use buffer_free only ifdef subprocesses.
3493
3494 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3495 the subprocesses version, not in the non-subprocesses one.
3496
794a4b6d
EZ
3497 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3498
146d267b
EZ
34992010-11-17 Eli Zaretskii <eliz@gnu.org>
3500
3501 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3502 lines on text-mode terminals. (bug#7417)
3503
fad0d565
SM
35042010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3505
3506 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3507 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3508
6b4bb703
KH
35092010-11-17 Kenichi Handa <handa@m17n.org>
3510
3511 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3512 change (set charset-ID list instead of charset-symbol list).
3513
9173a8fb
CY
35142010-11-16 Chong Yidong <cyd@stupidchicken.com>
3515
3516 * keyboard.c (make_lispy_position): For text area clicks, record Y
3517 pixel position relative to the text area, excluding header line.
3518 Also change X and Y to Lisp_Objects, not pointers; don't return
3519 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3520 buffer_posn_from_coords counting from the start of the text area.
3521 (Fposn_at_x_y, make_lispy_event): Callers changed.
3522
3523 * window.c (coordinates_in_window): Change X and Y to ints rather
3524 than pointers; don't return coordinates via pointers.
3525 (struct check_window_data): Change X and Y from pointers to ints.
3526 (window_from_coordinates): Remove args WX and WY; don't return
3527 coordinates via pointers.
3528 (Fcoordinates_in_window_p, window_from_coordinates):
3529 (check_window_containing, Fwindow_at): Callers changed.
3530 (window_relative_x_coord): New function.
3531
3532 * window.h (window_from_coordinates, window_relative_x_coord):
3533 Update prototypes.
3534
3535 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3536 the start of the text area.
3537
3538 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3539 call. Use window_relative_x_coord.
3540 (note_mouse_highlight): Change window_from_coordinates call.
3541
3542 * w32term.c (w32_read_socket):
3543 * msdos.c (dos_rawgetc):
3544 * xterm.c (handle_one_xevent): Likewise.
3545
d2762c86
DN
35462010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3547
3548 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3549 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3550 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3551 Convert definitions to standard C.
3552 * regex.c: Do not include <stdlib.h>, config.h does it.
3553 Include unistd.h.
3554 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3555 (regerror, regfree): Convert definitions to standard C.
3556 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3557 (__mktime_internal): Convert definitions to standard C.
3558
c2f0866a
DN
35592010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3560
42a7e7f1
DN
3561 * w32proc.c:
3562 * w32inevt.c:
3563 * w32heap.c:
3564 * w32.c: Remove config.h include guards.
3565
67802943
DN
3566 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3567 No code changes.
3568
f0e1af46
DN
3569 * process.c: Include <sys/ioctl.h> unconditionally,
3570 keyboard.c already does it.
3571
c2f0866a
DN
3572 * keyboard.c (pending_malloc_warning): Add const to match
3573 definition in alloc.c.
3574 (Fset_input_interrupt_mode): Simplify #ifdefs.
3575
92d3ab7e
DN
35762010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3577
12e610e8
DN
3578 Clean up systty.h macros.
3579 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3580 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3581 definition in all uses.
3582 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3583 * sysdep.c (discard_tty_input, child_setup_tty)
3584 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3585 * emacs.c (shut_down_emacs):
3586 * callproc.c (child_setup):
3587 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3588
92d3ab7e
DN
3589 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3590
a3e6bad4
CY
35912010-11-14 Chong Yidong <cyd@stupidchicken.com>
3592
3593 * w32fns.c (Fx_create_frame):
3594 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3595 resource here; it's now done at startup.
3596
5a232ffb
J
35972010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3598
3599 * xterm.c (set_wm_state): Add Qnil to final cons.
3600
3601 * xselect.c (x_send_client_event): Remove unused variables cons and
3602 size.
3603
24021b38
YM
36042010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3605
2f8f196d 3606 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
3607 arg NAME_TABLE.
3608 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3609 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3610 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3611 Add const to array elements.
3612 (scroll_bar_parts): Make static. Fix position of const.
3613
3614 * w32fns.c (lispy_function_keys): Add const to extern.
3615
3616 * w32inevt.c (lispy_function_keys): Likewise.
3617
afa42fe3
CY
36182010-11-14 Chong Yidong <cyd@stupidchicken.com>
3619
3620 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3621 resource here; it's now done at startup.
3622
53260a94
DN
36232010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3624
c865c575 3625 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 3626
c865c575 3627 Fix compilation on Solaris.
ff2e8052
DN
3628 * sysdep.c: Do not #include <term.h>.
3629 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3630
53260a94
DN
3631 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3632
933e29ff
J
36332010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3634
3635 * xterm.c (set_wm_state): Don't put Atom in cons, call
3636 make_fixnum_or_float on them first.
3637 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3638 Xatom_net_supported correctly.
3639
3640 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3641 (Fx_send_client_event): to here.
3642
a048073e
MR
36432010-11-13 Martin Rudalics <rudalics@gmx.at>
3644
3645 * window.c (Fwindow_use_time): New function.
3646
0eb025fb
EZ
36472010-11-13 Eli Zaretskii <eliz@gnu.org>
3648
3649 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3650 zero-width characters.
3651
3652 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3653
3654 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3655 box before drawing the glyphs inside it.
3656
3657 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3658
bba3e508
SM
3659 * dispextern.h (enum glyphless_display_method):
3660 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3661 All users changed.
0eb025fb 3662
bba3e508
SM
3663 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3664 Fix comments.
0eb025fb
EZ
3665 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3666 whitespace in "[]", to simulate a box. Don't use uninitialized
3667 variable `width'.
3668
c869cc37
JD
36692010-11-11 Julien Danjou <julien@danjou.info>
3670
2d9074ba
JD
3671 * xsettings.c (init_xsettings): Use already fetch atoms.
3672
3673 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3674 from dpyinfo.
3675
3676 * xselect.c (Fx_send_client_event): Split and create
3677 x_send_client_event.
3678
3679 * lisp.h: Do not EXFUN Fx_send_client_event.
3680
3681 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3682 from dpyinfo.
3683 (wm_supports): Use atoms from dpyinfo.
3684 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3685 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3686 (xembed_set_info): Use atoms from dpyinfo.
3687 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3688 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3689 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3690 Get all atoms in one round-trip.
3691 (set_wm_state): Use x_send_client_event rather than
3692 Fx_send_client_event, using Atom directly.
3693 (x_ewmh_activate_frame): Ditto.
3694 (x_set_sticky): Pass atoms to set_wm_state.
3695 (do_ewmh_fullscreen): Ditto.
3696
2d9074ba
JD
3697 * xterm.h (x_display_info): Add Xatom_net_supported,
3698 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3699 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3700
c869cc37
JD
3701 * xfns.c (Fx_show_tip): Fix typo in docstring.
3702
1a4236ea
SM
37032010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3704
3705 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3706 it's not negative.
3707
3106121c
YM
37082010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3709
3710 * font.c (font_filter_properties): Add const to array elements of
3711 properties args.
3712
3713 * font.h (font_filter_properties): Likewise.
3714
3715 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3716 elements.
3717
3718 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3719
da1fec2b
MA
37202010-11-10 Michael Albinus <michael.albinus@gmx.de>
3721
3722 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3723 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3724 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3725 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3726 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3727
bd6bc222
GM
37282010-11-10 Glenn Morris <rgm@gnu.org>
3729
3730 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3731
c0098065
EZ
37322010-11-09 Eli Zaretskii <eliz@gnu.org>
3733
bd6bc222 3734 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 3735
d607b96b 37362010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
3737
3738 * image.c (free_image): Don't garbage the frame here, since this
3739 function can be called while redisplaying (Bug#7210).
3740 (uncache_image): Garbage the frame here (Bug#6426).
3741
d607b96b 37422010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 3743
d607b96b
SM
3744 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3745 parent is the root window. Check this after traversing window tree.
184765cc 3746
d607b96b 3747 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 3748
d607b96b 3749 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 3750
d607b96b
SM
3751 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3752 before traversing window tree (Bug#5721).
c2e124a9 3753
27f92be7
J
37542010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3755
66b16767
J
3756 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3757
25f38310
SM
3758 * xdisp.c (note_mode_line_or_margin_highlight):
3759 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 3760
a971c0a7
EZ
37612010-11-06 Eli Zaretskii <eliz@gnu.org>
3762
3763 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3764 adjust width of tool-tip frame to the width of text, excluding the
3765 stretch glyph at the beginning of R2L glyph rows.
3766
3767 * w32fns.c (Fx_show_tip): Likewise.
3768
80417b95
JD
37692010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3770
3771 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 3772 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 3773
28118eb6
EZ
37742010-11-05 Eli Zaretskii <eliz@gnu.org>
3775
c1fc2d3a 3776 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
3777
3778 * term.c: Remove static mouse_face_* variables. All users
3779 changed.
3780 (term_show_mouse_face, term_clear_mouse_face)
3781 (fast_find_position, term_mouse_highlight): Functions deleted.
3782 (tty_draw_row_with_mouse_face): New function.
3783 (term_mouse_movement): Call note_mouse_highlight instead of
3784 term_mouse_highlight.
3785
bbf534ce
EZ
3786 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3787 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3788 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3789 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3790 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3791 Replace Display_Info with Mouse_HLInfo everywhere where
3792 mouse_face_* members were accessed for mouse highlight purposes.
3793
3794 * xterm.c (x_update_window_begin, x_update_window_end)
3795 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
3796 (handle_one_xevent, x_free_frame_resources, x_term_init):
3797 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
3798 members were accessed for mouse highlight purposes.
3799
3800 * w32term.c (x_update_window_begin, x_update_window_end)
3801 (x_update_end, w32_read_socket, x_free_frame_resources)
3802 (w32_initialize_display_info): Replace Display_Info with
3803 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3804 for mouse highlight purposes.
3805
3806 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3807 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3808 unless the frame is on a window-system.
c1fc2d3a 3809 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
3810 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3811 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3812 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3813 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3814 Replace Display_Info with Mouse_HLInfo everywhere where
3815 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 3816 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
3817 HAVE_WINDOW_SYSTEM conditional.
3818 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3819 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
3820 (try_window_id) [HAVE_GPM || MSDOS]:
3821 Call x_clear_window_mouse_face.
d009ae66 3822 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
3823 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3824 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3825 calling draw_glyphs directly.
d009ae66
EZ
3826 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3827 (cursor_in_mouse_face_p, rows_from_pos_range)
3828 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3829 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3830 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3831 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3832 fragments.
3833 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3834 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3835 integer.
3836 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
3837 (x_consider_frame_title, tool_bar_lines_needed):
3838 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
3839 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3840 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3841 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3842 part.
d009ae66
EZ
3843
3844 * dispnew.c (mirror_make_current): Set Y coordinate of the
3845 mode-line and header-line rows.
c1fc2d3a
EZ
3846 (init_display): Setup initial frame's output_data for text
3847 terminal frames.
d009ae66 3848
c1fc2d3a
EZ
3849 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3850 its own definition on msdos.c.
d009ae66
EZ
3851
3852 * msdos.c (show_mouse_face, clear_mouse_face)
3853 (fast_find_position, IT_note_mode_line_highlight)
3854 (IT_note_mouse_highlight): Functions deleted.
3855 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3856 instead of IT_note_mouse_highlight.
3857 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
3858 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3859 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3860 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3861 where mouse_face_* members were accessed for mouse highlight
3862 purposes.
3863
3864 * msdos.h (initialize_msdos_display): Add prototype.
3865
3866 * frame.h (MOUSE_HL_INFO): New macro.
3867
3868 * lisp.h (Mouse_HLInfo): New data type.
3869
3870 * xterm.h (struct x_display_info):
3871 * w32term.h (struct w32_display_info):
3872 * nsterm.h (struct ns_display_info):
3873 * termchar.h (struct tty_display_info): Use it instead of
3874 mouse_face_* members.
3875
3876 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3877 1st argument.
3878 (frame_to_window_pixel_xy, note_mouse_highlight)
3879 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3880 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3881 HAVE_WINDOW_SYSTEM conditional.
3882 (draw_row_with_mouse_face): Declare prototype.
3883 (tty_draw_row_with_mouse_face): Declare prototype.
3884
6e8d7c47
EZ
38852010-11-05 Eli Zaretskii <eliz@gnu.org>
3886
bba3e508
SM
3887 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3888 Remove unused variables.
6e8d7c47 3889
f31ba3f0
AR
38902010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3891
3892 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3893 logic pointed out by Eli Zaretskii.
3894
448e17d6
LMI
38952010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3896
0c3a9a9f
GM
3897 * coding.c (coding-category-list): Refer to set-coding-system-priority
3898 instead of the obsolete set-coding-priority in the doc string.
448e17d6 3899
3fdebbf9 39002010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 3901
2f8f196d 3902 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
3903 correct value.
3904 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3905 don't change the method signature, change the return.
3906
39072010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
3908
3909 * nsfont.m (nsfont_draw)
3910 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 3911 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 3912
17c0c952
JD
39132010-11-03 Julien Danjou <julien@danjou.info>
3914
3915 * image.c (gif_load): Add support for transparency and specified
3916 :background.
3917
b18fad6d
KH
39182010-11-01 Kenichi Handa <handa@m17n.org>
3919
3920 * dispextern.h (lookup_glyphless_char_display): Extern it.
3921
3922 * termhooks.h (struct terminal): New member charset_list.
3923
3924 * coding.c (Fset_terminal_coding_system_internal): Set the
3925 `charset_list' member of struct terminal.
3926
a8039db1 3927 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
3928 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3929
3930 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3931 (lookup_glyphless_char_display): Set it->what at the end.
3932 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3933 (last_glyphless_glyph_merged_face_id): Make them non-static.
3934
a8039db1
JB
3935 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3936 Fix the arg with_background for font->driver->draw.
65b6b59a 3937
a8039db1 39382010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 3939
a8039db1
JB
3940 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3941 Surround chp by parentheses.
0269bd90 3942
a8039db1 39432010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
3944
3945 Implement various display methods for glyphless characters.
3946
3947 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3948 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3949 (Qzero_width): New variables.
3950 (THIN_SPACE_WIDTH): New macro.
01c35094 3951 (lookup_glyphless_char_display): New function.
b2cca856
KH
3952 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3953 (last_glyphless_glyph_merged_face_id): New variables.
3954 (get_next_display_element): Check glyphless characters.
3955 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3956 last_glyphless_glyph_face_id.
3957 (fill_glyphless_glyph_string): New function.
3958 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3959 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3960 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3961 (x_produce_glyphs): If a suitable font is not found, produce a
3962 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3963 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3964 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3965 Qzero_width.
3966 (Vglyphless_char_display): Declare it as a Lisp variable.
3967
3968 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
3969 (struct glyph): Change the size of the member "type" to 3.
3970 Add glyphless to the union slice and u.
b2cca856
KH
3971 (enum display_element_type): Add IT_GLYPHLESS.
3972 (enum glyphless_display_method): New enum.
3973 (struct it): New member glyphless_method.
3974 (Vglyphless_char_display): Extern it.
3975
3976 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3977 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3978
a8039db1 3979 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
3980 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3981
3982 * nsterm.m (ns_draw_glyph_string): Handle the case
3983 GLYPHLESS_GLYPH (the detail is not yet implemented).
3984
c8c59954
GM
39852010-10-31 Glenn Morris <rgm@gnu.org>
3986
80696982
GM
3987 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3988
c8c59954
GM
3989 * frame.c (syms_of_frame) <tool-bar-mode>:
3990 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3991
46eadc7a
CY
39922010-10-31 Chong Yidong <cyd@stupidchicken.com>
3993
3994 * xterm.c (x_connection_closed): Print informative error message
3995 when aborting on GTK. This requires using shut_down_emacs
3996 directly instead of Fkill_emacs.
3997
ffe75e6b
EZ
39982010-10-29 Eli Zaretskii <eliz@gnu.org>
3999
4000 * emacs.c (main): Call syms_of_filelock unconditionally.
4001
4002 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
4003 clause, but keep part of it conditioned on CLASH_DETECTION.
4004
9d794026
GM
40052010-10-29 Glenn Morris <rgm@gnu.org>
4006
4f4f2973
GM
4007 * nsfns.m (Fx-display-save-under, Fx-open-connection)
4008 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
4009 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
4010 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
4011 Sync docs between X, W32, NS.
4012
9d794026
GM
4013 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
4014 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
4015
d46f6bbb
JB
40162010-10-26 Juanma Barranquero <lekktu@gmail.com>
4017
4018 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
4019 otherwise, bootstrapping on Windows fails to compile macroexp.el.
4020
2e35f1a2
EZ
40212010-10-26 Eli Zaretskii <eliz@gnu.org>
4022
4023 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 4024 zero or negative. (Bug#7281)
2e35f1a2 4025
8daaeda6
J
40262010-10-26 Jan Djärv <jan.h.d@swipnet.se>
4027
4028 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
4029
6a5c2175
GM
40302010-10-25 Glenn Morris <rgm@gnu.org>
4031
4032 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
4033
7c051dd8
GM
40342010-10-24 Glenn Morris <rgm@gnu.org>
4035
4036 * w32fns.c (Fx_synchronize, Fx_change_window_property)
4037 (Fx_window_property, Fx_file_dialog):
4038 * xfns.c (Fx_synchronize, Fx_change_window_property)
4039 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
4040
23c261f5
CY
40412010-10-24 Chong Yidong <cyd@stupidchicken.com>
4042
4043 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4044
d414c713 40452010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
4046
4047 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
4048
4049 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
4050 Deprecate use as a boolean flag.
4051
947f5e01
JM
40522010-10-24 Jim Meyering <jim@meyering.net>
4053
4054 * emacs.c (argmatch): Don't treat "--" as "--chdir".
4055
65807d73
GM
40562010-10-24 Glenn Morris <rgm@gnu.org>
4057
f5f25615
GM
4058 * w16select.c (syms_of_win16select) <selection-coding-system>:
4059 <next-selection-coding-system>:
4060 * w32select.c (syms_of_w32select) <selection-coding-system>:
4061 <next-selection-coding-system>:
3646b86d
GM
4062 Sync docs with select.el.
4063
46710489
GM
4064 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
4065 Lisp version.
4066
ea883883
GM
4067 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
4068 Sync doc with the xterm.c version.
4069
65807d73
GM
4070 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
4071 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
4072
f3d87560
GM
40732010-10-23 Glenn Morris <rgm@gnu.org>
4074
66c6abf0 4075 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 4076 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 4077 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 4078 <hourglass-delay>: Sync docs with Lisp.
f3d87560 4079
7b7e2c18
EZ
40802010-10-23 Eli Zaretskii <eliz@gnu.org>
4081
d1d6801e 4082 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
4083
4084 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
4085 (mouse_face_from_string_pos): New function, replaces
4086 fast_find_string_pos.
4087 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
4088 (note_mode_line_or_margin_highlight): Support bidi-reordered
4089 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
4090 (note_mouse_highlight): When bidi reordering is turned on in a
4091 buffer, call next-single-property-change and
ef1b0ba7
SM
4092 previous-single-property-change with last argument nil.
4093 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 4094 glyph that stands for no text beyond the line end.
1f382a02
EZ
4095 (row_containing_pos): Don't return too early when CHARPOS is in a
4096 bidi-reordered continued line. Return immediately when the first
4097 hit is found in a line that is not continued, or when an exact
4098 match for CHARPOS is found.
d1d6801e
EZ
4099 (rows_from_pos_range): New function.
4100 (mouse_face_from_buffer_pos): Use it instead of calling
4101 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
4102 function to support mouse highlight in bidi-reordered lines and
4103 not to assume that START_CHARPOS is always in mouse_face_beg_row.
4104 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
4105 that the former is always above the latter or identical to it.
1554d88e 4106 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
4107 (coords_in_mouse_face_p): New function, bidi-aware.
4108 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
4109 Call it instead of comparing with mouse-face members of dpyinfo.
4110 (note_mode_line_or_margin_highlight): Fix confusingly swapped
4111 usage of hpos and vpos.
544bbc31 4112
dee186b6
J
41132010-10-22 Jan Djärv <jan.h.d@swipnet.se>
4114
4115 * xrdb.c: Include keyboard.h for MOTIF.
4116
4117 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
4118 MOTIF (Bug#7263).
4119
4120 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
4121 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
4122 Make ANSI prototypes.
dee186b6 4123
5fb59edb
GM
41242010-10-22 Glenn Morris <rgm@gnu.org>
4125
4126 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
4127 Remove ccl and duplicate mouse.
4128
8b78d5e3
CY
41292010-10-21 Chong Yidong <cyd@stupidchicken.com>
4130
4131 * insdel.c (prepare_to_modify_buffer): Don't set
4132 saved-region-selection if modification hooks are disabled.
4133
b8a47412
CY
41342010-10-19 Chong Yidong <cyd@stupidchicken.com>
4135
4136 * cmds.c (Fdelete_char): Doc fix.
4137
ca3fa302 41382010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
4139
4140 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
4141
ca3fa302 41422010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
4143
4144 Fix incorrect font metrics when the same font is opened with
4145 different pixelsizes.
4146
4147 * xftfont.c: Include composite.h.
4148 (xftfont_shape): New function.
4149 (syms_of_xftfont): Set xftfont_driver.shape.
4150
c978536f
JD
41512010-10-18 Julien Danjou <julien@danjou.info>
4152
4153 * frame.c (Fframe_pointer_visible_p):
4154 Add `frame-pointer-visible-p' to get the pointer visibility.
4155
4b2d9ec2
LMI
41562010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
4157
4158 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
4159 non-"EAGAIN"-like error to signal to Emacs that the socket should
4160 be closed.
4161
9cf66cf2
EZ
41622010-10-15 Eli Zaretskii <eliz@gnu.org>
4163
c3911ead
EZ
4164 * unexcoff.c (make_hdr): Fix prototype according to changes in
4165 2010-10-03T13:59:56Z!dann@ics.uci.edu.
4166
9cf66cf2
EZ
4167 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
4168
be98da05
TH
41692010-10-15 Tassilo Horn <tassilo@member.fsf.org>
4170
4171 * Makefile.in (really-oldXMenu): Fix typo in variable name that
4172 made building the X menu fail.
cc98b256 4173 (really-oldXMenu): Fix my previous fix.
be98da05 4174
220d91b8 41752010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
4176
4177 Fix handling of font properties on Windows (bug#6303).
4178 * font.c (font_filter_properties): New function, refactored from
4179 ftfont_filter_properties.
4180 * font.h (font_filter_properties): Declare.
4181 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
4182 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
4183 (w32font_filter_properties): New function.
4184 (w32font_driver): Add w32font_filter_properties.
4185
220d91b8 41862010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 4187
c0943d3d 4188 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
4189 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
4190
24f981c9
JB
41912010-10-14 Juanma Barranquero <lekktu@gmail.com>
4192
4193 * w32fns.c (w32_wnd_proc, file_dialog_callback):
4194 * w32font.c (w32_generic_family):
4195 * w32inevt.c (key_event):
4196 * w32menu.c (fill_in_menu):
4197 * w32proc.c (reader_thread, w32_executable_type, compare_env)
4198 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
4199 * w32term.c (w32_read_socket): Make static.
4200
850690cc
JB
42012010-10-13 Juanma Barranquero <lekktu@gmail.com>
4202
4203 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
4204 prototypes; all callers changed.
4205
5e371708
JB
42062010-10-13 Juanma Barranquero <lekktu@gmail.com>
4207
4208 * makefile.w32-in (TLIB2): Rename from TLIBW32.
4209 (OBJ2): New macro.
4210 (WIN32OBJ, FONTOBJ): Remove.
4211 (OBJ1): Redistribute object files with OBJ2.
4212 (LIBS, $(TEMACS)): Use TLIB2.
4213 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
4214 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
4215
2e288d54
JB
42162010-10-13 Juanma Barranquero <lekktu@gmail.com>
4217
4218 * emacs.c (Vdynamic_library_alist)
4219 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4220 Doc fix.
4221
4222 * lisp.h (Vdynamic_library_alist): Declare extern.
4223
4224 * image.c (Vimage_library_alist)
4225 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4226 (lookup_image_type): Use Vdynamic_library_alist.
4227 (Finit_image_library): Doc fix.
4228
aba1381b
DN
42292010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4230
4231 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4232 (lispdir): Remove trailing /, update all uses.
4233
4c14013d 42342010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
4235
4236 * nsterm.m (Qleft): Declare.
01c35094 4237 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
4238 (NSRightAlternateKeyMask): New define.
4239 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4240 ns_right_alternate_modifier isn't Qleft.
4241 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4242 as emacs modifier for NSRightAlternateKeyMask.
4243 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4244
355cdaf3
LMI
42452010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4246
4247 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4248 gnutls is ready, return EAGAIN as the errno.
4249
4c620157
DN
42502010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4251
edfd76ce
DN
4252 * vm-limit.c:
4253 * unexhp9k800.c:
4254 * unexelf.c:
4255 * unexaix.c:
4256 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4257
a4daeecf
DN
4258 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4259 (PROFILING_LDFLAGS): Remove, not needed anymore.
4260
01c35094 4261 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
4262 (CRT_DIR): Move near potential user.
4263 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 4264
4c620157
DN
4265 * sysdep.c (LPASS8): Remove, unused.
4266 (emacs_ospeed): Change from being a global to a local in the only
4267 user: init_baud_rate.
4268
b845653d
LMI
42692010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4270
4271 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 4272 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 4273 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 4274 gnutls_read. This allows us to actually read lots of data from
b845653d 4275 the GnuTLS stream.
2e6c74c5
LMI
4276 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4277 According to the documentation, this is correct, and it seems to
4278 make things work.
b845653d 4279
3625b3e2
CY
42802010-10-09 Chong Yidong <cyd@stupidchicken.com>
4281
4282 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4283
8b1c619f
MA
42842010-10-08 Michael Albinus <michael.albinus@gmx.de>
4285
4286 * keyboard.c: Revert last change; it was not intended to be
4287 synchronized with the trunk.
4288
93d50df8
KH
42892010-10-08 Kenichi Handa <handa@m17n.org>
4290
2b7c9342 4291 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 4292
4628bef1 42932010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
4294
4295 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4296 (Fdbus_init_bus): ... here. (Bug#7113)
4297
4628bef1 42982010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
4299
4300 * buffer.c (before-change-functions, after-change-functions):
4301 Three-year overdue doc fix following 2007-08-13 change.
4302
4628bef1 43032010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
4304
4305 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4306 eol-format, inherit from the system's default.
4307 (complement_process_encoding_system): Make a new coding system
4308 inherit the original eol-format.
4309
4628bef1 43102010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
4311
4312 * coding.c (complement_process_encoding_system): New function.
4313
4314 * coding.h (complement_process_encoding_system): Extern it.
4315
4316 * callproc.c (Fcall_process): Complement the coding system for
4317 encoding arguments.
4318 (Fcall_process_region): Complement the coding system for encoding
4319 the input to the process.
4320
4321 * process.c (Fstart_process): Complement the coding system for
4322 encoding arguments.
4323 (send_process): Complement the coding system for encoding what
4324 sent to the process.
4325
4628bef1 43262010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
4327
4328 * xfont.c (xfont_open): Fix setting of font->average_width from
4329 :avgwidth property (Bug#7123).
4330
4628bef1 43312010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
4332
4333 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4334 is more portable.
4335
4336 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 4337 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
4338 has not defined SIGIO.
4339
389454fb
CY
43402010-10-08 Chong Yidong <cyd@stupidchicken.com>
4341
4342 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4343 draw the outermost line using the black relief, for legibility.
4344 Omit drawing the four corner pixels.
4345
51b403bd
CY
43462010-10-04 Chong Yidong <cyd@stupidchicken.com>
4347
4348 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4349 (read_key_sequence): Inline echo_prompt.
4350 (echo_dash): Add a dash only if key is continued (Bug#7137).
4351
3e6ae1a4
DN
43522010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4353
4354 Remove O_RDONLY, O_WRONLY definitions, not needed.
4355 * unexcoff.c:
4356 * lread.c:
4357 * fileio.c:
4358 * doc.c:
4359 * callproc.c:
4360 * alloc.c:
4361 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4362
c1ae068b
LMI
43632010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4364
4365 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4366
4367 * gnutls.c: Add property list symbol holders.
4368 (emacs_gnutls_handshake): Clarify how sockets are passed to
4369 GnuTLS.
4370 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4371 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4372 and keyfiles to be a list of file names. Default to "NORMAL" for
4373 the priority string. Improve logging.
4374
e2afe435
GM
43752010-10-03 Glenn Morris <rgm@gnu.org>
4376
4377 * fileio.c (Vdirectory_sep_char): Remove.
4378
dd5ecd6b
DN
43792010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4380
b5437a05
DN
4381 * termhooks.h: Remove #ifdef CONSP.
4382
4777478a
DN
4383 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4384
a3d5088d
DN
4385 Include <fcntl.h> unconditionally.
4386 * termcap.c:
4387 * sysdep.c:
4388 * lread.c:
4389 * keyboard.c:
4390 * filelock.c:
4391 * fileio.c:
4392 * doc.c:
4393 * callproc.c:
4394 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4395 does it.
4396
82719735
DN
4397 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4398
9de940b5
DN
4399 * sysdep.c (flush_pending_output): Remove code, does not do
4400 anything on any platform.
4401
57507bf8 4402 Remove unused code.
bba3e508
SM
4403 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4404 Remove select emulation, all systems support select.
57507bf8
DN
4405 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4406 * process.c (create_process): Remove #if 0 code.
4407
dd5ecd6b
DN
4408 Remove unused arguments for unexec.
4409 The third one is never used, and the last two are always passed as zero.
4410 * emacs.c (unexec): Add declaration.
4411 (Fdump_emacs): Only pass the first two arguments to unexec.
4412 Simplify #ifdef.
4413 * unexw32.c (unexec):
4414 * unexsol.c (unexec):
4415 * unexhp9k800.c (unexec):
4416 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4417 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4418 (find_section): Use const.
4419 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4420 (unexec_error): Declare it NO_RETURN.
4421 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4422 it as an argument, remove data_start and entry_address arguments, unused.
4423 (unexec): Remove bss_start, data_start and
4424 entry_address arguments.
4425 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4426 it as an argument, remove data_start and entry_address arguments, unused.
4427 (unexec): Remove bss_start, data_start and
4428 entry_address arguments.
4429
74f1829d
JB
44302010-10-03 Juanma Barranquero <lekktu@gmail.com>
4431
7f467e14
JB
4432 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4433
74f1829d
JB
4434 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4435 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4436 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4437 Fix typos in docstrings.
4438 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4439 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4440
6926550f
CY
44412010-10-03 Chong Yidong <cyd@stupidchicken.com>
4442
4443 * keyboard.c (command_loop_1): Make sure the mark is really alive
4444 before using it (Bug#7044).
4445
54b65f7b
JB
44462010-10-02 Juanma Barranquero <lekktu@gmail.com>
4447
4448 * makefile.w32-in (tags): Rename target to full-tags.
4449
383ebd15
EZ
44502010-10-02 Eli Zaretskii <eliz@gnu.org>
4451
4452 * emacs.c (main): Remove !WINDOWSNT conditional.
4453 (Fkill_emacs): Don't mention exemption on MS-Windows.
4454
9c524fcb
GM
44552010-10-02 Glenn Morris <rgm@gnu.org>
4456
3226d6ca
GM
4457 * character.c (Fchar_bytes): Remove obsolete function.
4458 (syms_of_character): Remove Schar_bytes.
4459
9c524fcb
GM
4460 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4461 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4462 in batch-mode.
4463 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4464 (kill-emacs-hook): Doc fix.
4465
1b217849
LMI
44662010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4467
4468 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 4469 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
4470 renamed to reflect that these are the libxml functions.
4471
54cc6a83
EZ
44722010-10-01 Eli Zaretskii <eliz@gnu.org>
4473
0ebf79de
EZ
4474 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4475 screen dimensions in tty->Wcm.
4476
54cc6a83
EZ
4477 * xdisp.c (set_cursor_from_row): When the row is truncated and
4478 point is outside the range of displayed characters, position the
4479 cursor inside the scroll margin. (Bug#6349)
4480
321401d1
DN
44812010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4482
4cacd822
DN
4483 Do not include stdlib.h and string.h, config.h does it.
4484 * xfont.c:
4485 * w32term.c:
4486 * w32reg.c:
4487 * w32inevt.c:
4488 * w32heap.c:
4489 * w32console.c:
4490 * w16select.c:
4491 * unexsol.c:
4492 * term.c:
4493 * sound.c:
4494 * scroll.c (m):
4495 * gtkutil.c:
4496 * font.c:
4497 * filelock.c:
4498 * fileio.c:
4499 * dosfns.c:
4500 * dbusbind.c:
4501 * bidi.c:
4502 * callproc.c:
4503 * process.c:
4504 * msdos.c:
4505 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4506
bba3e508
SM
4507 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4508 defines it.
0781e7ab 4509
9bf58201
DN
4510 * process.c: Move #include <pty.h> earlier.
4511 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4512 (pty_name): Move definition later.
4513
088dcc3e
DN
4514 * nsselect.m (syms_of_nsselect):
4515 * nsmenu.m (syms_of_nsmenu):
4516 * nsfns.m (syms_of_nsfns):
4517 * msdos.c (syms_of_msdos):
4cacd822 4518
088dcc3e
DN
4519 * image.c (syms_of_image):
4520 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4521
321401d1
DN
4522 * point.h: Remove, unused.
4523
73077a9a
EZ
45242010-10-01 Eli Zaretskii <eliz@gnu.org>
4525
4526 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4527 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4528 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4529
55e572ef
DN
45302010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4531
4532 * xml.c (parse_string): Use const.
4533
d4b6d95d
LMI
45342010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4535
ef1b0ba7
SM
4536 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4537 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
4538 the level to 8 to produce more useful backtraces for bug reports.
4539
e4b6db12
DN
45402010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4541
4542 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4543
1becef93
JB
45442010-09-30 Juanma Barranquero <lekktu@gmail.com>
4545
4546 * w32console.c (vga_stdcolor_name): Remove unused function;
4547 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4548
df7fcaff
LMI
45492010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4550
bac5cef8
LMI
4551 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4552 (Fgnutls_boot): Start the handshake.
4553 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
4554 (Fgnutls_boot): Remove some debugging messages.
4555 Change indentation throughout to use the Emacs style.
4556 (emacs_gnutls_handshake): Cast the fds to something that's
4557 possibly the expected length.
4558 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 4559
df7fcaff
LMI
4560 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4561
4562 * process.c (make_process): Set the gnutls_p field to zero by
4563 default.
4564 (read_process_output): Always call the gnutls_read function if the
4565 stream is a gnutls stream.
4566 (send_process): Ditto for writes.
4567
4568 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4569 or write anything until the state is GNUTLS_STAGE_READY.
4570 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4571
d585695f
EZ
45722010-09-29 Eli Zaretskii <eliz@gnu.org>
4573
af7ef32d
EZ
4574 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4575 NEUTRAL_DIR.
4576 (handle_invisible_prop, iterate_out_of_display_property)
4577 (next_element_from_buffer): If bidi_it.first_elt is set, call
4578 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4579 (Bug#7128)
4580
d585695f
EZ
4581 * print.c (print_object): Fix format string and argument types for
4582 printing a Lisp_Misc_Marker.
4583
4584 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4585 (load_overlay_strings, get_overlay_strings_1)
4586 (get_overlay_strings, forward_to_next_line_start)
4587 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4588 (get_next_display_element, next_element_from_string)
4589 (next_element_from_c_string, next_element_from_buffer)
4590 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4591 (message_dolog, message_log_check_duplicate, message2_nolog)
4592 (message3, message3_nolog, vmessage, set_message, set_message_1)
4593 (hscroll_window_tree, text_outside_line_unchanged_p)
4594 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4595 (find_last_unchanged_at_beg_row)
4596 (find_first_unchanged_at_end_row, row_containing_pos)
4597 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
4598 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4599 Use EMACS_INT for buffer and string positions.
d585695f
EZ
4600
4601 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4602 (row_containing_pos): Adjust prototype.
4603
4604 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4605 (message2_nolog, set_message): Adjust prototypes.
4606
a6f3211f
SM
46072010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4608
4609 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4610 (Fgnutls_boot): Use SDATA.
4611 (Fgnutls_handshake): Remove unused var `max_log_level'.
4612
e0720500
MA
46132010-09-27 Michael Albinus <michael.albinus@gmx.de>
4614
11a5af7c 4615 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
4616 (Bug#7113)
4617
d8a4b27a
J
46182010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4619
42d3022b
J
4620 * xgselect.c (xg_select): Clear file descriptors not set from
4621 rfds and wfds.
4622
d8a4b27a
J
4623 * process.c (wait_reading_process_output): Add missing FD_CLR
4624 for write_mask (must mirror connect_wait_mask).
4625
8ed70bf3
LMI
46262010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4627
4628 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4629 prefix.
4630 (Fgnutls_boot): Use changed process members. Use log level with a
4631 function parameter to set it. Bring back Emacs-level debugging
4632 messages at log level 1 and 2.
4633
4634 * process.c (make_process): Initialize gnutls_log_level.
4635
4636 * process.h: Add gnutls_log_level and rename x509_cred and
4637 anon_cred to have the gnutls_ prefix for consistency.
4638
4639 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4640
bedf4aab
JB
46412010-09-27 Juanma Barranquero <lekktu@gmail.com>
4642
4643 * w32.c (g_b_init_get_sid_identifier_authority)
4644 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4645 Remove, not used.
4646 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4647 (init_winsock): Remove useless assignment.
4648 (open_process_token, get_token_information, lookup_account_sid)
4649 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4650 (get_security_descriptor_owner, get_security_descriptor_group)
4651 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4652 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4653 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4654 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4655 (unc_volume_file_attributes, convert_from_time_t)
4656 (create_toolhelp32_snapshot, process32_first, process32_next)
4657 (open_thread_token, impersonate_self, revert_to_self)
4658 (get_process_memory_info, get_process_working_set_size)
4659 (global_memory_status, global_memory_status_ex, socket_to_fd)
4660 (shutdown_handler): Make static.
4661
08609ffd
MA
46622010-09-27 Michael Albinus <michael.albinus@gmx.de>
4663
4664 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4665 (xd_pending_messages): Functions removed.
4666 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4667 order to be compatible with add_read_fd. Determine bus from data,
4668 and call xd_read_message just for this bus.
4669 (xd_add_watch): Use xd_read_queued_messages as callback function.
4670 Add data.
4671
4672 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4673
d2e9d0bb
LMI
46742010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4675
ef1b0ba7 4676 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 4677 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 4678
4be9765d
KH
46792010-09-27 Kenichi Handa <handa@m17n.org>
4680
4681 These changes are to remove restriction on the number of glyphs in
4682 one composition.
4683
4684 * dispextern.h (struct glyph): Change the member "slice" to union.
4685 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 4686 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
4687
4688 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4689 instead of glyph->slice.
4690 (marginal_area_string): Likewise.
4691
4692 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4693 glyph->u.cmp.
4694 (append_composite_glyph): Likewise.
4695
4696 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4697 glyph->u.cmp.
4698 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4699 (append_composite_glyph): Likewise.
4700 (fill_image_glyph_string): Use glyph->slice.img instead of
4701 glyph->slice.
4702 (append_glyph, produce_image_glyph, append_stretch_glyph)
4703 (note_mouse_highlight): Likewise.
4704
3fad2ad2
J
47052010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4706
bf05eed6
J
4707 * process.c (add_keyboard_wait_descriptor)
4708 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
4709 (wait_reading_process_output): Don't pass write_mask to select
4710 if SELECT_CANT_DO_WRITE_MASK is defined.
4711 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 4712
3fad2ad2
J
4713 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4714 (delete_write_fd): Declare.
4715
4716 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4717 (write_mask): New variable.
ef1b0ba7 4718 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 4719 (fd_callback_info): New variable.
70e31436
JB
4720 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4721 New functions.
3fad2ad2
J
4722 (Fmake_network_process): FD_SET write_mask.
4723 (deactivate_process): FD_CLR write_mask.
4724 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
4725 check_connect removed. check_write is new. Remove references to gpm.
4726 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
4727 NON_BLOCKING_CONNECT) instead of Connecting.
4728 Loop over file descriptors and call callbacks in fd_callback_info
4729 if file descriptor is ready for I/O.
4730 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4731 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4732 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
4733 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4734 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
4735 (init_process): Initialize write_mask and fd_callback_info.
4736
4737 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4738
4739 * dbusbind.c: Include process.h.
4740 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4741 (xd_read_message_1): New functions.
70e31436
JB
4742 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4743 Handle watch for both read and write.
3fad2ad2
J
4744 (Fdbus_init_bus): Also register xd_toggle_watch.
4745 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4746 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4747 to dbus_connection_flush.
70e31436 4748 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
4749 Call xd_read_message_1 until status is COMPLETE.
4750
dce4c2ac
DN
47512010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4752
4753 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
4754 (init_tty): Reorder code to reduce the number of #ifdefs.
4755 No code changes.
dce4c2ac 4756
8af55556
TZ
47572010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4758
4759 * process.h: Set up GnuTLS support.
4760
4761 * process.c (make_process, Fstart_process)
4762 (read_process_output, send_process): Set up GnuTLS support for
4763 process input/output file descriptors.
4764
4765 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4766
4767 * gnutls.c: The source code for GnuTLS support in Emacs.
4768
4769 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4770
4771 * config.in: Set up GnuTLS support.
4772
4773 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4774 (obj, LIBES): Set up GnuTLS support.
4775
83e245c4
JB
47762010-09-26 Juanma Barranquero <lekktu@gmail.com>
4777
4778 * w32.c (get_emacs_configuration_options): Fix previous change.
4779
d24ec09a
CY
47802010-09-25 Chong Yidong <cyd@stupidchicken.com>
4781
4782 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4783 alive before using it (Bug#6977).
4784
b7bdc47c
LMI
47852010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4786
a952d5f3
LMI
4787 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4788
4789 * dispextern.h: EMACS_INT/int fixup.
4790
4791 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4792 fixup.
4793
b7bdc47c
LMI
4794 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4795
41118bd3
EZ
47962010-09-25 Eli Zaretskii <eliz@gnu.org>
4797
2452438f
EZ
4798 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4799 (Fselect_window, window_scroll_pixel_based)
4800 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4801 Use EMACS_INT for buffer positions.
4802
4803 * textprop.c (validate_interval_range, interval_of)
4804 (property_change_between_p, Fadd_text_properties)
4805 (set_text_properties_1, Fremove_text_properties)
4806 (Fremove_list_of_text_properties, Ftext_property_any)
4807 (Ftext_property_not_all, copy_text_properties)
4808 (text_property_list, extend_property_ranges)
4809 (verify_interval_modification): Use EMACS_INT for buffer
4810 positions.
4811
f877c546
EZ
4812 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4813 for buffer positions.
4814
4815 * process.c (read_process_output, send_process)
4816 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4817 and string positions and size.
4818
da43f021
EZ
4819 * print.c (print_object, print_string, strout): Use EMACS_INT for
4820 string indices.
4821
4822 * minibuf.c (string_to_object): Use EMACS_INT for string position
4823 and size.
4824
4825 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4826
4827 * lread.c <read_from_string_index, read_from_string_index_byte>
4828 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4829 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4830 buffer positions and string length.
4831
41118bd3
EZ
4832 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4833 EMACS_INT.
4834 (echo_truncate, adjust_point_for_property, read_char)
4835 (gen_help_event, make_lispy_event, modify_event_symbol)
4836 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4837 for buffer positions and string length.
4838
4839 * keyboard.h (gen_help_event): Adjust prototype.
4840
4841 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4842
4843 * commands.h <last_point_position>: Declare EMACS_INT.
4844
4845 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4846 (truncate_echo_area): Accept EMACS_INT argument.
4847
4848 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4849
4850 * lisp.h (truncate_echo_area): Adjust prototype.
4851
4852 * composite.c (composition_adjust_point): Return EMACS_INT.
4853
4854 * composite.h (composition_adjust_point): Adjust prototype.
4855
ba3033ee
JB
48562010-09-25 Juanma Barranquero <lekktu@gmail.com>
4857
4858 * process.c (Fmake_network_process): When arg :host is 'local,
4859 use address 127.0.0.1, not name "localhost". (Bug#6781)
4860
4f3a2f8d
EZ
48612010-09-24 Eli Zaretskii <eliz@gnu.org>
4862
5816888b
EZ
4863 * indent.c (Fcurrent_indentation, indented_beyond_p)
4864 (compute_motion): Use EMACS_INT for buffer position variables.
4865
4866 * lisp.h (indented_beyond_p): Adjust prototype.
4867
4868 * buffer.c (overlay_strings): Return EMACS_INT.
4869
4870 * buffer.h (overlay_strings): Adjust prototype.
4871
4872 * region-cache.c (pp_cache): Adjust format to arguments.
4873
4874 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4875 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4876 (verror): Use EMACS_INT for size of allocated buffer.
4877
ace1712c
EZ
4878 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4879 positions.
4880
4881 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
4882 (set_cursor_from_row, find_first_unchanged_at_end_row):
4883 Use EMACS_INT for buffer positions.
ace1712c 4884
f5276b75 4885 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
4886
4887 * dispnew.c (increment_matrix_positions)
4888 (increment_row_positions, copy_glyph_row_contents)
4889 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4890 positions.
4891
4892 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
4893 (increment_matrix_positions, increment_row_positions):
4894 Adjust prototypes.
ace1712c
EZ
4895
4896 * data.c (Faref, Faset): Use EMACS_INT for string length and
4897 positions.
4898
4899 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4900 characters to insert.
4901
4902 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4903 position and size.
4904
4f3a2f8d
EZ
4905 * syntax.c (scan_words, update_syntax_table)
4906 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
4907 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4908 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
4909
4910 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4911
4912 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4913 positions.
4914
db063399
LMI
49152010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4916
f0812d35
LMI
4917 * scroll.c (calculate_scrolling, line_ins_del)
4918 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4919 conversion.
4920
f5c7fc27
LMI
4921 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4922 (region_cache_backward, region_cache_forward)
4923 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4924 conversion.
4925
db063399
LMI
4926 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4927
4928 * eval.c (verror): Fix EMACS_INT/int conversion.
4929
07914cd0 4930 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
4931 (print_preprocess, print_check_string_charset_prop)
4932 (print_object): Fix EMACS_INT/int conversion.
4933
4934 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4935
e6d4aefa
EZ
49362010-09-24 Eli Zaretskii <eliz@gnu.org>
4937
69481da7
EZ
4938 * callproc.c (Fcall_process): Use EMACS_INT for count of
4939 characters read from the subprocess.
4940
61bfec98
EZ
4941 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4942 positions.
4943 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4944 positions.
4945
145582a0
EZ
4946 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4947 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4948 length.
4949 (advance_to_char_boundary, Fset_buffer_multibyte)
4950 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4951 (overlay_touches_p, record_overlay_string, overlay_strings)
4952 (recenter_overlay_lists, fix_start_end_in_overlays)
4953 (modify_overlay, Fmove_overlay, report_overlay_modification)
4954 (evaporate_overlays): Use EMACS_INT for buffer positions.
4955
bba3e508
SM
4956 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4957 Adjust prototypes.
145582a0 4958
446470a9
EZ
4959 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4960 positions.
4961
e6d4aefa
EZ
4962 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4963 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4964 (Fsubstring_no_properties, substring_both, Ffillarray)
4965 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4966 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4967 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4968 (Fmd5): Use EMACS_INT for buffer and string positions and length
4969 variables and arguments.
4970
4971 * lisp.h (substring_both): Adjust prototype.
4972
eb652396
JB
49732010-09-24 Juanma Barranquero <lekktu@gmail.com>
4974
4975 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4976 * w32fns.c (clipboard_sequence_fn): Don't declare.
4977 (globals_of_w32fns): Don't initialize it.
4978
266a86bd 49792010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
4980
4981 * syntax.c (back_comment): Detect the case where a 1-char comment
4982 starter is also the 2nd char of a 2-char comment ender.
4983
266a86bd 49842010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
4985
4986 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4987
40283062
LMI
49882010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4989
db063399
LMI
4990 * eval.c (verror): EMACS_INT/int cleanup.
4991
faf8b5bc
LMI
4992 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4993 unwind_protect more than 2GB worth of functions.
4994
4995 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4996
40283062
LMI
4997 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4998 string and avoid compiler warnings.
4999 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
5000 all users.
5001
5002 * lread.c (oblookup): EMACS_INT/int cleanup.
5003
5004 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
5005
fe3537c3
EZ
50062010-09-23 Eli Zaretskii <eliz@gnu.org>
5007
5008 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
5009
5010 * lisp.h (clip_to_bounds): Adjust prototype.
5011
5012 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
5013
0350982f
LMI
50142010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
5015
84c9ce05
LMI
5016 * lisp.h: doprnt.c EMACS_INT/int cleanup.
5017
5018 * doprnt.c (doprnt): EMACS_INT/int cleanup.
5019
5020 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
5021 cleanup.
5022
0350982f
LMI
5023 * lisp.h: Change the definition of all marker.c functions that
5024 take and return buffer stuff to be EMACS_INT instead of int.
5025
5026 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
5027 (buf_charpos_to_bytepos, bytepos_to_charpos)
5028 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
5029 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
5030 for all buffer positions.
5031
c50bd0d2
CY
50322010-09-23 Chong Yidong <cyd@stupidchicken.com>
5033
5034 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5035 (split_interval_right, find_interval, next_interval)
5036 (delete_node, delete_interval, interval_deletion_adjustment)
5037 (adjust_intervals_for_deletion, merge_interval_right)
5038 (merge_interval_left, graft_intervals_into_buffer)
5039 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
5040
5041 * intervals.h (traverse_intervals): Update prototype.
5042
14162469
EZ
50432010-09-23 Eli Zaretskii <eliz@gnu.org>
5044
c098fdb8
EZ
5045 * indent.c (compute_motion): Use EMACS_INT for arguments to
5046 region_cache_forward.
5047
bba3e508
SM
5048 * region-cache.c (struct boundary, struct region_cache):
5049 Use EMACS_INT for positions.
c098fdb8
EZ
5050 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
5051 (delete_cache_boundaries, set_cache_region)
5052 (invalidate_region_cache, know_region_cache)
bba3e508
SM
5053 (region_cache_forward, region_cache_backward, pp_cache):
5054 Use EMACS_INT for buffer positions.
c098fdb8
EZ
5055
5056 * region-cache.h (know_region_cache, invalidate_region_cache)
5057 (region_cache_forward, region_cache_backward): Adjust prototypes.
5058
5059 * search.c (string_match_1, fast_c_string_match_ignore_case)
5060 (looking_at_1, scan_buffer, scan_newline)
5061 (find_next_newline_no_quit, find_before_next_newline)
5062 (search_command, trivial_regexp_p, search_buffer, simple_search)
5063 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
5064 and string positions and length.
5065
caefdbe7
EZ
5066 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
5067 (find_before_next_newline): Adjust prototypes.
c098fdb8 5068
29cdc13e
EZ
5069 * editfns.c (transpose_markers, update_buffer_properties)
5070 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
5071 (get_pos_property, Fconstrain_to_field)
5072 (Fline_beginning_position, Fline_end_position, Fprevious_char)
5073 (Fchar_after, Fchar_before, Finsert_char)
5074 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
5075 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
5076 Use EMACS_INT for buffer and string position variables.
c098fdb8 5077 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
5078
5079 * lisp.h (clip_to_bounds): Adjust prototype.
5080
e79123aa
EZ
5081 * intervals.c (traverse_intervals, rotate_right, rotate_left)
5082 (balance_an_interval, split_interval_right, split_interval_left)
5083 (find_interval, next_interval, update_interval)
5084 (adjust_intervals_for_insertion, delete_node, delete_interval)
5085 (interval_deletion_adjustment, adjust_intervals_for_deletion)
5086 (offset_intervals, merge_interval_right, merge_interval_left)
5087 (graft_intervals_into_buffer, adjust_for_invis_intang)
5088 (move_if_not_intangible, get_local_map, copy_intervals)
5089 (copy_intervals_to_string, compare_string_intervals)
5090 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 5091 and for interval tree size.
e79123aa
EZ
5092
5093 * intervals.h (traverse_intervals, split_interval_right)
5094 (split_interval_left, find_interval, offset_intervals)
5095 (graft_intervals_into_buffer, copy_intervals)
5096 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
5097 (update_interval): Adjust prototypes.
5098
579c18d0
EZ
5099 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
5100 Use EMACS_INT for buffer position variables and arguments.
5101
5102 * composite.c (get_composition_id, find_composition)
5103 (run_composition_function, compose_text)
5104 (composition_gstring_width, autocmp_chars)
5105 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
5106 for buffer positions and string length variables and arguments.
5107
5108 * composite.h (get_composition_id, find_composition, compose_text)
5109 (composition_gstring_width): Adjust prototypes.
5110
5111 * editfns.c (Fformat): Use EMACS_INT for string size variables.
5112
bba3e508
SM
5113 * xdisp.c (store_mode_line_noprop, display_mode_element):
5114 Use EMACS_INT for string positions.
579c18d0
EZ
5115
5116 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
5117 position arguments.
5118
5119 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
5120
5121 * character.c (parse_str_as_multibyte, str_as_multibyte)
5122 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 5123 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
5124 (strwidth, lisp_string_width, multibyte_chars_in_text):
5125 Use EMACS_INT for string length variables and arguments.
14162469
EZ
5126
5127 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 5128 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
5129 (c_string_width, strwidth, lisp_string_width):
5130 Adjust prototypes.
14162469 5131
579c18d0
EZ
5132 * font.c (font_intern_prop): Use EMACS_INT for string length
5133 variables.
5134
5135 * font.c (font_intern_prop): Use EMACS_INT for string length
5136 variables.
5137
14162469
EZ
5138 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
5139 variables.
5140
5141 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
5142 (Fmake_string): Protect against too large strings.
5143 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5144 (live_misc_p): Use ptrdiff_t instead of int for pointer
5145 differences.
5146 (string_bytes, check_sblock, check_string_free_list)
5147 (allocate_string_data, compact_small_strings, Fmake_string)
5148 (Fmake_bool_vector, make_string, make_unibyte_string)
5149 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
5150 (make_specified_string_string, Fmake_list, Fmake_vector):
5151 Use EMACS_INT for string length variables and arguments.
14162469
EZ
5152 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
5153 (Fpurecopy): Use EMACS_INT for string size.
5154 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
5155 for vector size.
5156
5157 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
5158 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
5159 (make_pure_string, string_bytes, check_point_in_composition):
5160 Adjust prototypes.
14162469 5161
c8a66ab8
EZ
51622010-09-22 Eli Zaretskii <eliz@gnu.org>
5163
5164 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
5165 (check_translation): Use EMACS_INT for buffer positions and
5166 length.
5167
5168 * undo.c (record_marker_adjustment, record_delete)
5169 (record_change, record_point, record_insert)
5170 (record_property_change, Fprimitive_undo): Use EMACS_INT for
5171 buffer positions.
5172
5173 * lisp.h (record_marker_adjustment, record_delete)
5174 (record_change, record_point, record_insert)
5175 (record_property_change, Fprimitive_undo): Adjust prototypes.
5176
38c54d9d
JB
51772010-09-22 Juanma Barranquero <lekktu@gmail.com>
5178 Eli Zaretskii <eliz@gnu.org>
5179
5180 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
5181
413d18e7
EZ
51822010-09-22 Eli Zaretskii <eliz@gnu.org>
5183
5184 * minibuf.c (Fminibuffer_contents)
5185 (Fminibuffer_contents_no_properties)
5186 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
5187 positions.
5188
5189 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
5190 mark.
5191
5192 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
5193 (allocate_string_data): Accept EMACS_INT for string length.
5194
5195 * editfns.c (Ffield_string, Ffield_string_no_properties)
5196 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
5197 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
5198 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
5199 (Ffield_end): Use EMACS_INT for buffer positions.
5200
5201 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
5202 point with mark.
5203
5204 * lisp.h (allocate_string_data, make_uninit_string)
5205 (make_uninit_multibyte_string, make_buffer_string)
5206 (make_buffer_string_both): Adjust prototypes.
5207
4b9832a6
CY
52082010-09-22 Chong Yidong <cyd@stupidchicken.com>
5209
5210 * xml.c: Switch to GNU indentation.
5211 (make_dom): Change parse tree format to match xml.el.
5212 (Fxml_parse_html_string_internal): Rename from html-parse-string.
5213 (Fxml_parse_string_internal): Rename from xml-parse-string.
5214
86282aab
KH
52152010-09-22 Kenichi Handa <handa@m17n.org>
5216
5217 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5218 only if we are not at a composition.
5219 (set_iterator_to_next): Give it->end_charpos to
5220 composition_compute_stop_pos.
5221 (set_iterator_to_next, next_element_from_buffer): Likewise.
5222
5223 * dispnew.c (buffer_posn_from_coords): Fix position when the
5224 current display element is a grapheme cluster in bidi-reordered
5225 region.
5226
840b985a
AR
52272010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5228
5229 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5230 the regions may overlap.
5231
5bc88f4b
JB
52322010-09-21 Juanma Barranquero <lekktu@gmail.com>
5233
5234 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5235
92bc9a36
DN
52362010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5237
d19e096e
DN
5238 * emacs.c: Do not include sys/ioctl.h, not needed.
5239
92bc9a36
DN
5240 * doprnt.c: Do not include stdlib.h, config.h does it.
5241 Move #include before macro definition.
5242
15f844ac
DN
52432010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5244
48e24408
DN
5245 * Makefile.in (temacs): Link using $(CC) not $(LD).
5246 (LD_FIRSTFLAG): Define using autoconf.
5247 (LD): Remove.
5248
65539506
DN
5249 Remove HAVE_TERMIOS definitions.
5250 * s/usg5-4-common.h (HAVE_TERMIOS):
5251 * s/template.h (HAVE_TERMIOS):
5252 * s/gnu-linux.h (HAVE_TERMIOS):
5253 * s/darwin.h (HAVE_TERMIOS):
5254 * s/cygwin.h (HAVE_TERMIOS):
5255 * s/bsd-common.h (HAVE_TERMIOS):
5256 * s/aix4-2.h (HAVE_TERMIOS):
5257 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5258 defined on all non-MS platforms.
5259 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5260
15f844ac
DN
5261 * xterm.c (xt_action_hook): Use const.
5262
7d701334
JB
52632010-09-20 Juanma Barranquero <lekktu@gmail.com>
5264
5265 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5266 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5267 (gethostname) [!HAVE_SOCKETS]: Remove.
5268 (SOCK_REPLACE_HANDLE): Remove macro.
5269 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5270 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5271 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5272 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5273
f3ec267a
EZ
52742010-09-18 Eli Zaretskii <eliz@gnu.org>
5275
5276 * deps.mk (xml.o): Add dependencies.
5277
93acd23d
JB
5278 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5279 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
5280
5281 * bidi.c (bidi_paragraph_init): Accept an additional argument
5282 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5283 search back until a paragraph with a strong directional character
5284 is found, and use that to determine paragraph's base direction.
5285
5286 * dispextern.h (bidi_paragraph_init): Update prototype.
5287
69e847be
EZ
52882010-09-17 Eli Zaretskii <eliz@gnu.org>
5289
5290 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5291 of w32api >= 3.15. (Bug#6989)
5292
283357a7
LMI
52932010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5294
5295 * process.c (wait_reading_process_output): Don't message about
5296 accept-process-output unless the time limit really is zero.
5297
4ddb20d6
SM
52982010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5299
5300 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5301 int/Lisp_Object mixup).
5302
e24ad6dd
J
53032010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5304
5305 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5306 not HELP.
5307
fb0cf781
J
53082010-09-17 Stephen Berman <stephen.berman@gmx.net>
5309
5310 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5311 bar's pixel width to Lisp (Bug#7048).
5312
4ddb20d6
SM
53132010-09-14 Juanma Barranquero <lekktu@gmail.com>
5314
5315 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 5316
318a04c6
J
53172010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5318
5319 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5320 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5321
78a21772
KH
53222010-09-17 Kenichi Handa <handa@m17n.org>
5323
5324 * ftfont.c (ftfont_check_otf): Fix previous change.
5325
fa3f6039
KH
53262010-09-14 Kenichi Handa <handa@m17n.org>
5327
5328 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5329 existence of GSUB or GPOS.
5330
2b5491fa
JB
53312010-09-14 Juanma Barranquero <lekktu@gmail.com>
5332
5333 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5334
c97c655f
LMI
53352010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5336
ef1b0ba7 5337 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
5338 what it does.
5339 (parse_string): Return nil when the document can't be parsed.
5340
6664fc59 53412010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
5342
5343 * xterm.c (get_current_vm_state): New function.
5344 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5345 want_fullscreen so set_wm_state calls are few (Bug#7013).
5346 (x_handle_net_wm_state): Move code to get_current_vm_state and
5347 call that function.
5348
6664fc59 53492010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
5350
5351 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5352
6664fc59 53532010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
5354
5355 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5356 we may use designation or locking-shift.
5357
6664fc59 53582010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
5359
5360 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5361 sequence when the source is multibyte.
5362
1da70e99
AS
53632010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5364
6664fc59
JB
5365 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5366 Don't make first argument optional. Doc fix.
1da70e99 5367
26632d8d
LMI
53682010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5369
5370 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5371 parameters for the doc string.
5372
21fa8e37
LMI
53732010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5374
5375 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5376
5616cc54
SM
53772010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5378
5379 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5380 (syms_of_fns): Don't defsubr Sy_or_n_p.
5381 * lisp.h: Don't declare Fy_or_n_p.
5382 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5383
381408e2
LMI
53842010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5385
5386 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5387
53882010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5389
5390 * xml.c: New file.
5391 (Fhtml_parse_buffer): New function to interface to the libxml2
5392 html parsing function.
5393
733946e7
JB
53942010-09-05 Juanma Barranquero <lekktu@gmail.com>
5395
5396 * biditype.h: Regenerate.
5397
7574650a
AS
53982010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5399
5400 * nsimage.m (ns_load_image): Check argument types.
5401
5402 * image.c: Remove all uses of gcpro.
5403 (xpm_load): Check all lisp types.
5404 (pbm_load): Likewise.
5405 (png_load): Likewise.
5406 (jpeg_load): Likewise.
5407 (tiff_load): Likewise.
5408 (gif_load): Likewise.
5409 (imagemagick_load_image): Likewise.
5410 (imagemagick_load): Likewise.
5411 (svg_load): Likewise.
5412 (gs_load): Likewise.
5413
6e6b8e25
EZ
54142010-09-04 Eli Zaretskii <eliz@gnu.org>
5415
bba3e508
SM
5416 * w32uniscribe.c (uniscribe_shape): Update commentary.
5417 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
5418 hold them in the logical order.
5419 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5420 return glyph codes in the logical order.
5421
dbfe4532
AS
54222010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5423
5424 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 5425 (imagemagick_load_image): Fix type mismatch.
5e5992c2 5426 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 5427
6d7cc563
JD
54282010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5429
5430 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5431
5432 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5433
5434 * xselect.c: Remove declaration of cut-buffer objects and functions.
5435 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5436 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5437 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5438 (Fx_rotate_cut_buffers_internal): Remove.
5439 (syms_of_xselect): Remove defsubr of above.
5440 Remove intern of QCUT_BUFFERn.
5441
8f4e9110
SM
54422010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5443
5444 * cmds.c (Vblink_paren_function): Remove.
5445 (internal_self_insert): Make it insert N chars at a time.
5446 Don't call blink-paren-function.
5447 (Fself_insert_command): Adjust accordingly.
5448 (syms_of_cmds): Don't declare blink-paren-function.
5449
d419e1d9
KH
54502010-08-31 Kenichi Handa <handa@m17n.org>
5451
5452 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5453 characters.
5454
5455 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
5456 (produce_glyphs): Don't set it->char_to_display here.
5457 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
5458 (produce_special_glyphs): Set temp_it.char_to_display before
5459 calling produce_glyphs.
5460
5461 * xdisp.c (get_next_display_element): Set it->char_to_display
5462 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5463 characters.
5464 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5465 calling PRODUCE_GLYPHS.
5466 (append_space_for_newline): Save and store it->char_to_display.
5467 Set it->char_to_display before calling PRODUCE_GLYPHS.
5468 (extend_face_to_end_of_line): Set it->char_to_display before
5469 calling PRODUCE_GLYPHS.
5470 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5471 character to its byte value.
5472 (get_char_glyph_code): New function.
5473 (produce_stretch_glyph): Set it2.char_to_display too before
5474 calling x_produce_glyphs.
5475 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
5476 non-ASCII characters. Don't set it->char_to_display here.
5477 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 5478 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 5479
b819f760
SM
54802010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5481
5482 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5483
07fa68a7
CY
54842010-08-31 Chong Yidong <cyd@stupidchicken.com>
5485
5486 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5487
cd196f12
SM
54882010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5489
5490 * marker.c (Fcopy_marker): Make the first arg optional.
5491
49a752bb
KH
54922010-08-30 Kenichi Handa <handa@m17n.org>
5493
5494 * composite.c (composition_update_it): Fix computing of
5495 cmp_it->width.
5496
769ae9e1
KH
54972010-08-29 Kenichi Handa <handa@m17n.org>
5498
9e69cb05 5499 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 5500 corresponding bytes.
9e69cb05 5501
4520b858
J
55022010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5503
5504 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5505
fe50eb41
KH
55062010-08-26 Kenichi Handa <handa@m17n.org>
5507
5508 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5509 on calling composition_compute_stop_pos.
5510
f6aa6ec6
KH
55112010-08-25 Kenichi Handa <handa@m17n.org>
5512
9dfdbc0a
KH
5513 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5514 :otf.
5515
f6aa6ec6
KH
5516 * composite.c (composition_compute_stop_pos): Don't break
5517 composition at PT.
5518 (composition_reseat_it): Likewise. Fix calculation of character
5519 position starting a composition.
5520 (Fcomposition_get_gstring): Don't limit the number of components
5521 for automatic composition.
5522
ff94e32c
KH
55232010-08-25 Kenichi Handa <handa@m17n.org>
5524
5525 * composite.c (composition_compute_stop_pos): In forward search,
5526 pay attention to the possibility that some character after ENDPOS
5527 will be composed with charactrs before ENDPOS.
5528
1c409d0b
CY
55292010-08-24 Chong Yidong <cyd@stupidchicken.com>
5530
5531 * keyboard.c (command_loop_1): Don't clobber primary selection
5532 during handle-switch-frame (Bug#6872).
5533
0c372655
MA
55342010-08-23 Michael Albinus <michael.albinus@gmx.de>
5535
5536 * dbusbind.c: Accept UNIX domain sockets as bus address.
5537 (Fdbus_close_bus): New function.
5538 (Vdbus_registered_buses): New variable.
5539 (xd_initialize): Implement string as bus address.
5540 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5541 (Fdbus_get_unique_name, Fdbus_call_method)
5542 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5543 (Fdbus_method_error_internal, Fdbus_send_signal)
5544 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5545 check. This is done in xd_initialize_bus. Adapt doc string, if
5546 necessary.
5547 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5548 Vdbus_registered_buses.
5549 (Vdbus_registered_objects_table): Create hash.
5550
7133b7ee
JL
55512010-08-22 Juri Linkov <juri@jurta.org>
5552
5553 * keyboard.c (Fexecute_extended_command): Move reading a command name
5554 with `completing-read' to a new Elisp function `read-extended-command'.
5555 Call it to read a command to `function' (bug#5364, bug#5214).
5556
198a7a97
CY
55572010-08-22 Chong Yidong <cyd@stupidchicken.com>
5558
5559 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5560
b0126eac 55612010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
5562
5563 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5564 instead of SAFE_ALLOCA.
5565
b0126eac 55662010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
5567
5568 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5569 (Bug#6214).
5570
b0126eac 55712010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
5572
5573 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5574
b0126eac
CY
55752010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5576
5577 * doc.c (Fsnarf_documentation): Initialize skip_file before
5578 build-files test.
5579
692f3ddc 55802010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 5581
692f3ddc
JB
5582 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5583 New definitions.
b0126eac
CY
5584 (HAVE_TERMIO): Remove.
5585
5f2f0bc1
EZ
55862010-08-22 Eli Zaretskii <eliz@gnu.org>
5587
b613941b
EZ
5588 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5589
a583bbef
EZ
5590 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5591 for w32.
5592
5593 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5594 it's done in nt/config.nt.
5595
5596 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5597
5f2f0bc1
EZ
5598 * unexcoff.c (report_error, make_hdr, write_segment)
5599 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5600 Convert argument lists and prototypes to ANSI C.
5601 (make_hdr, write_segment): Remove unused variables.
5602 (unexec): Remove commented-out line. Initialize `new' to shut up
5603 compiler warnings.
5604
a7ebc409
DN
56052010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5606
5607 Simplify termio code.
5608 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5609 HAVE_TERMIO code is obsolete.
5610 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5611 * systty.h: Do not define HAVE_TCATTR.
5612 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5613 Do not define EMACS_HAVE_TTY_PGRP. Only define
5614 EMACS_GET_TTY_PGRP for !DOS_NT.
5615 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
5616 sys/ioctl.h and termios.h, systty.h does it.
5617 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
5618 (init_baud_rate): Remove HAVE_TERMIO code.
5619 (child_setup_tty): Remove HAVE_TERMIO code.
5620 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5621 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5622 (new_ltchars, new_tchars): Remove, unused.
5623 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
5624 code. Remove special casing for __mips__, it was a no-op.
5625 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
5626 (init_sys_modes): Remove HPUX special case.
5627 * process.c: Include stdlib.h unconditionally. Do not include
5628 fcntl.h, systty.h does it. Remove conditional code for
5629 HAVE_SERIAL, it is always true.
5630 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5631 always true when SIGNALS_VIA_CHARACTERS is true.
5632 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5633 !WINDOWSNT means HAVE_TERMIOS.
5634 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5635 conditional, which is true for all HAVE_TERMIOS systems.
5636 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5637 instead of HAVE_TERMIOS.
5638 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5639 EMACS_HAVE_TTY_PGRP.
5640 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5641 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5642 anyway.
5643
914f049b 56442010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
5645
5646 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5647 mirroring pixel positions.
5648
d931da8c
DN
56492010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5650
b5c76d0c
DN
5651 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5652 write only.
5653 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5654 malloc_sbrk_used, nothing uses them.
5655
74815588
DN
5656 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5657 defined, unconditionally defined in lisp.h.
5658
f5817d1c
DN
5659 * term.c: Do not include <termios.h>, systty.h does it.
5660
d931da8c
DN
5661 * s/unixware.h (HAVE_TCATTR):
5662 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5663 systty.h defines it when HAVE_TERMIOS is defined.
5664
ff2de6d2 56652010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 5666
b43c883c 5667 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 5668 terminals: add one-character offset for R2L lines.
b43c883c 5669
491a1546
EZ
5670 * emacs.c <emacs_version>: Add a comment regarding
5671 msdos/mainmake.v2's dependency on the syntax of this declaration.
5672
2396cbba
EZ
56732010-08-20 Eli Zaretskii <eliz@gnu.org>
5674
5675 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5676 position for R2L lines by mirroring the pixel position wrt the
5677 text are box. Improve commentary.
5678
7df6150a
AS
56792010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5680
5681 * image.c (imagemagick_clear_image): Remove debugging output.
5682
a2e5caf7
SM
56832010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5684
5685 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5686 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5687 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5688 self-insert-face.
5689 (syms_of_cmds): Initialize the new vars.
5690
20d60baf
JR
56912010-08-19 Jason Rumney <jasonr@gnu.org>
5692
cc477da7
JR
5693 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5694
20d60baf
JR
5695 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5696
2c0ac867
J
56972010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5698
5699 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5700
93352106
EZ
57012010-08-18 Eli Zaretskii <eliz@gnu.org>
5702
5703 * xterm.c (x_draw_bar_cursor):
5704 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5705 R2L, draw the bar cursor on its right rather than on its left.
5706
c785836d
SM
57072010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5708
0193499f
SM
5709 * eval.c (Fdefmacro): Only obey one declaration.
5710
c785836d
SM
5711 * casefiddle.c (casify_region): Setup gl_state.
5712
9cb728a5
J
57132010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5714
5715 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5716
e1e18511
J
57172010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5718
1d77b63e 5719 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 5720
64cb6c78
J
57212010-08-18 David De La Harpe Golden <david@harpegolden.net>
5722
5723 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5724 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5725 QPRIMARY => NXPrimaryPboard.
5726 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5727 NXPrimaryPboard => QPRIMARY.
5728 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5729 NXSecondaryPboard = SecondarySelection.
5730 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5731
0c9b8993
GM
57322010-08-18 Joakim Verona <joakim@verona.se>
5733
5734 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5735 defined:
5736 (imagemagick_image_p): New function to test for ImageMagic image.
5737 (imagemagick_load): New function to load ImageMagick image.
5738 (imagemagick_load_image): New function, helper for imagemagick_load.
5739 (imagemagick-types): New function.
5740 (Qimagemagick): New Lisp_object.
5741 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 5742
c3554f68
SM
57432010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5744
5745 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5746 is a string.
5747
1ff2e434
J
57482010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5749
5750 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5751 x_set_tool_bar_position handler.
5752
0cc56427
EZ
57532010-08-17 Eli Zaretskii <eliz@gnu.org>
5754
5755 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5756 x_set_tool_bar_position handler, needed to support changes from
5757 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5758
e45a249b
JD
57592010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5760
2f8f196d 5761 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 5762 declaration (Bug#6863).
573d150b 5763 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 5764
e45a249b
JD
5765 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5766
5767 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5768
7c23dd44
CY
57692010-08-16 Chong Yidong <cyd@stupidchicken.com>
5770
5771 * keyboard.c (command_loop_1): Avoid setting selection twice,
5772 since it's done in deactivate-mark as well.
5773 (Vselect_active_regions): Change default to t. Replace `lazy'
5774 with non-default value `only', meaning only set PRIMARY for
5775 temporarily active regions.
5776
5777 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5778 select-active-regions.
5779
0005830c
J
57802010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5781
5782 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5783 isn't a string.
5784
603dfc72
AS
57852010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5786
5787 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5788
c25ce9d0
J
57892010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5790
c3554f68
SM
5791 * keyboard.c (parse_tool_bar_item): malloc buf.
5792 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5793 new_lbl (Bug#6855).
c25ce9d0 5794
5872c762
EZ
57952010-08-14 Eli Zaretskii <eliz@gnu.org>
5796
b236615c
EZ
5797 * xterm.c (x_draw_stretch_glyph_string):
5798 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5799 the cursor on the right edge of the stretch glyph.
5800
c3554f68
SM
5801 * xdisp.c (window_box_right_offset, window_box_right):
5802 Fix commentary.
b236615c 5803
5872c762
EZ
5804 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5805 direction when point is inside a run of whitespace characters.
5806
5807 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5808
e66f9a1b
JR
58092010-08-14 Jason Rumney <jasonr@gnu.org>
5810
5811 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5812
79d6f59e
CY
58132010-08-14 Chong Yidong <cyd@stupidchicken.com>
5814
5815 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5816
1c9b4129
JR
58172010-08-13 Jason Rumney <jasonr@gnu.org>
5818
5819 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5820 (MessageBoxW_Proc): New function typedef.
5821 (unicode-message-box): New function pointer.
2f8f196d 5822 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 5823
2b4e6277
J
58242010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5825
5826 * frame.h (Qtool_bar_position): Declare.
5827
5828 * xfns.c (Fx_create_frame): Call x_default_parameter for
5829 Qtool_bar_position.
5830
94c97d85
EZ
58312010-08-13 Eli Zaretskii <eliz@gnu.org>
5832
8ee81892
EZ
5833 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5834 (report_error, report_error_1): Ditto.
5835 (write_segment): Remove "#if 0" unused code.
5836 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5837 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5838 (start_of_text): Remove unused function (was used only if NO_REMAP
5839 was NOT defined).
5840
891ef8f7
EZ
5841 * msdos.c (IT_set_face): Fix format string to match argument
5842 types.
5843 (IT_write_glyphs, IT_note_mode_line_highlight)
5844 (IT_set_frame_parameters): Remove unused variables.
5845 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5846 (IT_set_terminal_modes): Disambiguate expression in if clause.
5847 (Fmsdos_remember_default_colors): Return Qnil.
5848 (IT_set_frame_parameters): Add parens to disambiguate boolean
5849 expression for logging the cursor type to termscript.
5850 (keyboard_layout_list, keypad_translate_map)
5851 (grey_key_translate_map): Add braces in inner initializers.
5852 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5853 (dos_rawgetc): Remove unused label.
5854 (XMenuActivate): Add braces to remove ambiguous `else'.
5855 (dos_ttraw): Always return a value.
5856 (spawnve): Declare.
5857 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5858
5859 * dosfns.h (x_set_title): Declare.
5860
5861 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5862 Remove unused variables.
5863
5864 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5865 variables.
5866 (init_dosfns): Declare get_lim_data.
5867 (system_process_attributes): Declare Fget_internal_run_time.
5868
38e41e0e
EZ
5869 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5870 list to be consistent with menu.h.
5871
94c97d85
EZ
5872 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5873 warnings due to mixing of "char *" and "const char *".
5874
c5683ceb
SM
58752010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5876
5877 Introduce a new comment style "c" flag.
5878 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5879 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5880 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5881 (syntax_prefix_flag_p): New function.
5882 (Fstring_to_syntax): Understand new "c" flag.
5883 (Finternal_describe_syntax_value): Recognize new flag; use the
5884 SYNTAX_FLAGS_* macros.
5885 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5886 comment style to accomodate the new styles.
5887 (back_comment, forw_comment, Fforward_comment, scan_lists)
5888 (scan_sexps_forward): Update code to obey the new comment style flag.
5889
5890 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5891
5892 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5893
7aee76f4
J
58942010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5895
3a46642b
J
5896 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5897 first.
94dff98f 5898 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
5899
5900 * gtkutil.h (xg_check_special_colors): Declare.
5901
5902 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5903 (xg_create_frame_widgets): Connect theme name changes to
5904 style_changed_cb.
5905
42ca4633
J
5906 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5907 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5908 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 5909 string literal. file is const char*.
42ca4633
J
5910
5911 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5912 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5913 props. Free them at the end.
5914
5915 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5916
c5683ceb
SM
5917 * xrdb.c (get_system_app): Make path const and use char *p for
5918 non-const char.
42ca4633
J
5919
5920 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 5921 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
5922 char *.
5923 (button_names): Is const char *.
5924 (xdialog_show): error_name and pane_string is const.
5925
5926 * process.h (synch_process_death): Is const char*.
5927
5928 * w32menu.c (w32_menu_show):
5929 * nsmenu.m (ns_menu_show): error parameter is const char **.
5930
5931 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5932 is const char **.
5933
5934 * menu.c (Fx_popup_menu): error_name is const.
5935
5936 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5937 with unsigned char and XtPointer with void *.
5938
5939 * gtkutil.h: Replace widget_value with struct _widget_value.
5940 (enum button_type, struct _widget_value): Remove and use the one from
5941 keyboard.h.
5942
5943 * gtkutil.c (get_utf8_string): Always return an allocated string.
5944 Parameter is const.
5945 (create_dialog, xg_create_one_menuitem, create_menus)
5946 (xg_item_label_same_p, xg_update_menu_item): Free result from
5947 get_utf8_string.
5948 (xg_separator_p, xg_item_label_same_p): label is const.
5949
5950 * font.h (font_open_by_name): Make name const.
5951
5952 * font.c (font_open_by_name): Make name const.
5953
5954 * floatfns.c (matherr): Use a const char* variable for x->name.
5955
5956 * emacs.c (main): Pass char[] to putenv instead of literal.
5957
5958 * callproc.c (synch_process_death): Make const.
5959 (Fcall_process): Make signame const.
5960
9c5bd55a
J
5961 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5962 (addDisplayItemWithImage): Use const char*.
5963
5964 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5965 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5966
5967 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5968
5969 * keyboard.h (_widget_value): name, value and key are const char*.
5970
7aee76f4
J
5971 * unexmacosx.c (unexec_error): Use const char *.
5972
09d93395
DN
59732010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5974
5975 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5976 (font_parse_name, font_open_by_name):
09d93395 5977 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5978 (font_parse_name, font_open_by_name): Remove const.
09d93395 5979
671d409f
AS
59802010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5981
5982 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5983 definition.
5984
5985 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5986 * m/amdx86-64.h: Likewise.
5987 * m/arm.h: Likewise.
5988 * m/hp800.h: Likewise.
5989 * m/ia64.h: Likewise.
5990 * m/ibmrs6000.h: Likewise.
5991 * m/ibms390.h: Likewise.
5992 * m/intel386.h: Likewise.
5993 * m/iris4d.h: Likewise.
5994 * m/m68k.h: Likewise.
5995 * m/macppc.h: Likewise.
5996 * m/mips.h: Likewise.
5997 * m/sh3.h: Likewise.
5998 * m/sparc.h: Likewise.
5999 * m/template.h: Likewise.
6000 * m/vax.h: Likewise.
6001 * m/xtensa.h: Likewise.
6002 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
6003 WORDS_BIG_ENDIAN.
6004 * lisp.h: Likewise.
6005 * md5.c: Likewise.
6006 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
6007
8ea90aa3
DN
60082010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
6009
6010 Use const char* instead of char*.
6011 Reduce the number of warnings with -Wwrite-strings.
6012 * xrdb.c (get_environ_db, get_system_name):
6013 * unexelf.c (find_section):
6014 * term.c (string_cost, string_cost_one_line, per_line_cost)
6015 (get_named_tty, init_tty):
6016 * sysdep.c (sys_subshell):
6017 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
6018 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
6019 * search.c (Freplace_match):
6020 * process.c (Fmake_network_process, send_process, init_process):
6021 * lread.c (Fload, init_lread):
6022 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
6023 * keyboard.c (parse_tool_bar_item, struct event_head):
6024 * gtkutil.h (xg_get_font_name):
6025 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
6026 (make_widget_for_menu_item, make_menu_item, create_menus)
6027 (xg_make_tool_item):
6028 * font.c (parse_matrix, font_parse_name):
6029 * floatfns.c (rounding_driver, float_error_fn_name):
6030 * filelock.c (get_boot_time_1, lock_file_1):
6031 * fileio.c (barf_or_query_if_file_exists, check_writable):
6032 * editfns.c (get_system_name, get_operating_system_release)
6033 (Fencode_time, Fset_time_zone_rule):
6034 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
6035 * buffer.c (defvar_per_buffer): Use const.
6036
7815fe19 60372010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 6038
692f3ddc 6039 * charset.c: Include <stdlib.h>.
7a84eee5
KH
6040 (struct charset_sort_data): New struct.
6041 (charset_compare): New function.
692f3ddc 6042 (Fsort_charsets): New function.
7a84eee5
KH
6043 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
6044
6045 * coding.c (decode_coding_iso_2022): Fix checking of dimension
6046 number in CTEXT extended segment.
6047
7815fe19 60482010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
6049
6050 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
6051 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
6052
7815fe19 60532010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
6054
6055 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
6056 (Fhash_table_size): Fix typos in docstrings.
6057 (Fmake_hash_table): Doc fix.
6058
7815fe19 60592010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
6060
6061 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
6062 Doc fix (bug#5625).
6063
7815fe19 60642010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
6065
6066 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
6067 the MSDOS definition.
6068
1b6d8cf0
DN
60692010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
6070
675e2c69
DN
6071 Use const char* instead of char*.
6072 * xterm.c (x_create_toolkit_scroll_bar):
6073 * xfont.c (xfont_list_pattern):
6074 * xfns.c (x_default_scroll_bar_color_parameter)
6075 (xic_create_fontsetname, x_default_font_parameter)
6076 (x_screen_planes):
6077 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
6078 (store_mode_line_string, decode_mode_spec, display_string):
6079 * menu.c (digest_single_submenu):
6080 * keymap.h (initial_define_key, initial_define_lispy_key):
6081 * keymap.c (initial_define_key, initial_define_lispy_key):
6082 * image.c (image_error, image_keyword):
6083 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
6084 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
6085 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
6086 (ftfont_list, ftfont_match):
6087 * frame.c (frame_parm_table):
6088 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6089 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6090 (font_add_log, font_deferred_log):
6091 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
6092 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
6093 (font_add_log, font_deferred_log):
6094 * emacs.c (argmatch):
6095 * dispextern.h (struct it):
6096 * coding.c (ENCODE_DESIGNATION):
6097 * charset.c (define_charset_internal): Use const.
6098
25717ca1
DN
6099 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
6100
c5683ceb
SM
6101 * xrdb.c: Remove include guard.
6102 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
6103 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
6104 realloc->xrealloc instead of using #defines.
6105
efb41e21
EZ
61062010-08-08 Eli Zaretskii <eliz@gnu.org>
6107
cd21226d 6108 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
6109 * editfns.c (Fline_beginning_position, Fline_end_position):
6110 State in the doc strings that start and end of line are in the
6111 logical order.
cd21226d 6112
efb41e21
EZ
6113 * xdisp.c (display_line): Move the handling of overlay arrow after
6114 the call to find_row_edges. (Bug#6699)
6115
746812d9
CY
61162010-08-07 Chong Yidong <cyd@stupidchicken.com>
6117
6118 * keyboard.c (command_loop_1):
6119 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
6120
9852377f
CY
61212010-08-07 Chong Yidong <cyd@stupidchicken.com>
6122
6123 * insdel.c (prepare_to_modify_buffer): Save active region text to
6124 Vsaved_region_selection.
6125
6126 * xselect.c (QPRIMARY): Move to keyboard.c.
6127
6128 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
6129 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
6130 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 6131
0e9c8657
JB
61322010-08-07 Juanma Barranquero <lekktu@gmail.com>
6133
6134 * alloc.c (lisp_malloc):
6135 * buffer.c (set_buffer_internal, set_buffer_internal_1):
6136 * charset.h (emacs_mule_charset):
6137 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
6138 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
6139 (bitch_at_user):
6140 * lisp.h (Fcheck_coding_system, Fget_text_property)
6141 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
6142 Remove duplicate declarations.
6143
648801d1
DN
61442010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6145
32bc6709
DN
6146 * process.c: Simplify include logic.
6147
3ef1d108
DN
6148 * keyboard.h (quit_char): Add declaration.
6149 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
6150 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
6151 Add declarations.
3ef1d108
DN
6152 * sysdep.c:
6153 * w32.c: Remove the above declarations.
6154
97ec208f
DN
6155 Remove extern declarations in .c files, .h files have them.
6156 * xterm.c:
6157 * xdisp.c:
97ec208f
DN
6158 * msdos.c:
6159 * image.c:
6160 * gtkutil.c:
6161 * fileio.c:
6162 * eval.c: Remove declarations.
6163
94eed851
DN
6164 * frame.c (frame_params): Make const.
6165
36e053eb
DN
6166 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
6167
0e843971
DN
6168 * emacs.c (emacs_copyright, emacs_version): Make static.
6169 (Vinitial_window_system, Vauto_save_list_file_name)
6170 (Vinhibit_redisplay): Remove declarations.
6171 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
6172 for AIX.
6173
648801d1
DN
6174 Use const for some arrays and functions.
6175 * xterm.h (xg_set_icon_from_xpm_data):
6176 * xfns.c (xg_set_icon_from_xpm_data):
6177 * term.c (fkeys):
6178 * keyboard.c (lispy_accent_keys, lispy_function_keys)
6179 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
6180 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
6181 (frame.c frame_parms):
6182 * emacs-icon.h (gnu_xpm_bits):
6183 * callint.c (callint_argfuns): Use const.
6184
8646d999
J
61852010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6186
6187 * sysdep.c: Move include term.h last of includes (Bug#6812).
6188
cb4545ad
EZ
61892010-08-06 Eli Zaretskii <eliz@gnu.org>
6190
6191 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
6192
6193 * msdos.c (IT_display_cursor): Log cursor position on termscript.
6194
6195 * .gdbinit (pgx): Display the avoid_cursor_p flag.
6196
da7e2be6
JB
61972010-08-06 Juanma Barranquero <lekktu@gmail.com>
6198
6199 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
6200
3d608a86
J
62012010-08-06 Jan Djärv <jan.h.d@swipnet.se>
6202
7908fb60
J
6203 * xterm.h (x_get_focus_frame): Declare.
6204
6205 * keyboard.h (poll_for_input_1): Unconditionally declare.
6206
4094bf36
J
6207 * nsterm.h (x_set_menu_bar_lines): Declare.
6208
6209 * window.c: Don't include menu.h, it depends on lots of other .h-files.
6210
3d608a86
J
6211 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
6212
6213 * window.c: Include menu.h.
6214
6215 * unexmacosx.c (print_region_list, print_regions)
6216 (build_region_list, find_emacs_zone_regions)
6217 (unexec_regions_merge, read_load_commands, dump_it)
6218 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6219
6220 * term.c: Check HAVE_SYS_IOCTL_H.
6221
686b968e 6222 * sysdep.c: Check HAVE_TERM_H.
3d608a86 6223
686b968e 6224 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
6225
6226 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6227 (ns_ring_bell, ns_defined_color, hide_hourglass)
6228 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6229 Convert to ANSI C prototypes.
6230 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6231 before code.
6232
6233 * nsterm.h : Include sysselect.h.
6234 (x_sync, x_get_focus_frame, x_set_mouse_position)
6235 (x_set_mouse_pixel_position, x_make_frame_visible)
6236 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6237 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6238 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6239 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 6240 Declare.
3d608a86
J
6241
6242 * nsmenu.m (popup_activated, name_is_separator)
6243 (syms_of_nsmenu): Convert to ANSI C prototypes.
6244 (runMenuAt): Prototypes and move declarations before code.
6245
6246 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6247
6248 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6249 prototypes.
6250
6251 * nsfns.m (have_menus_p, ns_display_info_for_name)
6252 (x_set_cursor_type, ns_appkit_version_str)
6253 (ns_appkit_version_int, ns_do_applescript)
6254 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6255 (syms_of_nsfns): Convert to ANSI C prototypes.
6256
6257 * menu.h (x_set_menu_bar_line): Declare.
6258 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6259
6260 * lisp.h (fmod_float): Declare.
6261
6262 * image.c (xpm_scan, xpm_make_color_table_v)
6263 (xpm_put_color_table_v, xpm_get_color_table_v)
6264 (xpm_make_color_table_h, xpm_put_color_table_h)
6265 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6266 (xpm_load): Convert to ANSI C prototypes.
6267
6268 * emacs.c: Include nsterm.h if HAVE_NS.
6269
6270 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6271
fce70521
DN
62722010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6273
6274 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6275 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6276 (socket_options): Use const char* for name.
6277
a11889ab
JB
62782010-08-06 Juanma Barranquero <lekktu@gmail.com>
6279
6280 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6281
6282 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6283 Don't declare xmalloc_widget_value and digest_single_submenu.
6284
6285 * w32font.c (Qlatin): Remove declaration.
6286
6287 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6288
c95b508f 6289 * dired.c (compile_pattern): Restore declaration.
a11889ab 6290
6254cdda
DN
62912010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6292
04bab72c
DN
6293 Remove extern declarations in .c files, .h files have them.
6294 * data.c:
6295 * dired.c:
6296 * editfns.c:
6297 * filelock.c:
6298 * fns.c:
6299 * font.c:
6300 * fontset.c:
6301 * frame.c:
6302 * fringe.c:
6303 * ftfont.c:
6304 * gtkutil.c:
6305 * indent.c:
6306 * keyboard.c:
6307 * keymap.c:
6308 * lread.c:
6309 * menu.c:
6310 * print.c:
6311 * search.c:
6312 * sound.c:
6313 * window.c:
6314 * xdisp.c:
6315 * xfaces.c:
6316 * xfns.c:
6317 * xfont.c:
6318 * xftfont.c:
6319 * xmenu.c:
6320 * xterm.c: Remove declarations.
6321
dff94ed5
DN
6322 Cleanup syssignal.h.
6323 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6324 (main_thread): Move down to remove #ifdef.
6325 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6326 Remove conditional definition following unconditional ones.
6327
99f3388e
DN
6328 * lisp.h: Remove HAVE_SHM code, unused.
6329 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6330 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6331 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6332 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6333 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6334 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6335 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6336 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6337 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6338 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6339 (Qwindow_scroll_functions, Vafter_load_alist)
6340 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6341 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6342 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6343 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6344 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6345 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6346 (initial_argv, last_nonmenu_event, load_in_progress)
6347 (noninteractive_need_newline, scroll_margin): Add declarations.
6348
bba3e508
SM
6349 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6350 Remove declarations, menu.h has them.
99f3388e
DN
6351 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6352 (Vinput_method_function, Qinput_method_function)
6353 (Qevent_symbol_element_mask, last_event_timestamp):
6354 * dispextern.h (Voverflow_newline_into_fringe):
6355 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6356 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6357 (syms_of_w32font, syms_of_nsfont):
6358 * fontset.h (find_font_encoding, Qlatin):
6359 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6360 (Vtool_bar_mode, set_frame_menubar):
6361 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6362 * xterm.h (Qx_gtk_map_stock):
6363 * keymap.h (meta_prefix_char): Add declarations.
6364
9f5dd6f2
DN
6365 * term.c: Remove dead code.
6366
6254cdda
DN
6367 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6368 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6369 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6370 which is what was there before BSD_PGRPS was removed.
6371
29cf3e20
EZ
63722010-08-05 Eli Zaretskii <eliz@gnu.org>
6373
6374 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6375
6376 * unexcoff.c: Renamed from unexec.c.
6377
aaa0a19a
SM
63782010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6379
6380 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6381
8d1d9587
JB
63822010-08-03 Johan Bockgård <bojohan@gnu.org>
6383
6384 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 6385 (Bug#6744)
8d1d9587 6386
9a747ba6
JD
63872010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6388
4d464ae4
JD
6389 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6390 to TRUE if depth of screen is < 16.
6391
ac01763e
JD
6392 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6393 USE_GTK_TOOLTIP.
e0d62a9b
JB
6394 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6395 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 6396 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
6397 USE_GTK_TOOLTIP.
6398 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6399
6400 * xterm.h (USE_GTK_TOOLTIP): New define.
6401 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6402
9a747ba6
JD
6403 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6404 to Control-D (Bug#6771).
6405
7b0815ba
JB
64062010-08-02 Juanma Barranquero <lekktu@gmail.com>
6407
6408 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6409 Wording by Drew Adams <drew.adams@oracle.com>.
6410
aa1859f5
J
64112010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6412
6413 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6414 ttip_lbl.
6415
6416 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6417 calling gtk_widget_queue_draw.
6418 (x_free_frame_resources): Call xg_free_frame_widgets.
6419
6420 * xfns.c (x_gtk_use_system_tooltips): New variable.
6421 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6422 new gtkutil tooltip functions to show the tooltip.
6423 (Fx_hide_tip): Call xg_hide_tooltip.
6424 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6425
6426 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6427 (xg_show_tooltip, xg_hide_tooltip): Declare.
6428
6429 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
6430 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6431 New functions.
aa1859f5
J
6432 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6433 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6434 Remove code that is commented out.
6435
76417ef4
SM
64362010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6437
6438 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6439
16041401
CY
64402010-07-31 Chong Yidong <cyd@stupidchicken.com>
6441
6442 * xselect.c (x_own_selection): Use list4.
6443
2c09a58f
DN
64442010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6445
6446 * buffer.c (Qwindow): Do not define, already defined in data.c.
6447 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6448
59df9fdd 64492010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 6450
59df9fdd
JB
6451 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6452 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6453 * config.in: Undef HAVE_DIRENT_H.
1c97e857 6454 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 6455 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 6456
1b231651
DN
64572010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6458
6459 Rename s/usg5-4.h -> s/usg5-4-common.h.
6460 * s/usg5-4.h: Rename file to ...
6461 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6462 * s/unixware.h:
6463 * s/sol2-6.h:
6464 * s/irix6-5.h: Update includes accordingly.
6465
bfeabdc3
JD
64662010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6467
2ebf1083
J
6468 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6469
bfeabdc3 6470 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
6471 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6472 Remove toolbar_height.
6473 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
6474 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6475 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6476 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6477
6478 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6479
6480 * xfns.c (x_set_tool_bar_position): New function.
6481 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6482 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 6483 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
6484
6485 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6486 and FRAME_TOOLBAR_LEFT_WIDTH.
6487
6488 * gtkutil.h (xg_change_toolbar_position): Declare.
6489
6490 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6491 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6492 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6493 (xg_create_frame_widgets): Create a hobox for placing widgets
6494 vertically. Use gtk_box_pack_start.
ef1b0ba7 6495 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
6496 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6497 (xg_update_frame_menubar, free_frame_menubar): Change to
6498 xg_height_or_width_changed.
6499 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6500 size correctly. Remove hardcoded 4, instead use handlebox size -
6501 toolbar size.
6502 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 6503 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
6504 (xg_pack_tool_bar): POS is a new parameter.
6505 Set orientation of tool bar based on pos.
6506 Only make handlebox_widget if NULL.
6507 Check if tool bar goes to vbox or hbox depending on pos.
6508 (xg_update_tool_bar_sizes): New function.
686b968e 6509 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
6510 height, call xg_update_tool_bar_sizes instead.
6511 (free_frame_tool_bar): Remove from hbox or vbox depending on
6512 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6513 (xg_change_toolbar_position): New function.
6514
6515 * frame.h (struct frame): Add tool_bar_position.
6516 (Qbottom): Declare.
6517
6518 * frame.c (Qtool_bar_position): New variable.
6519 (make_frame): Set tool_bar_position to Qtop.
6520 (frame_parms): Add tool-bar-position.
6521 (x_report_frame_params): Store tool_bar_position.
6522 (x_set_fringe_width): Reset wm size hint after fringe changes.
6523
26469a38
DN
65242010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6525
6526 Make lisp_time_argument declaration work on all systems.
6527 * lisp.h (lisp_time_argument): Move declaration ...
6528 * systime.h (lisp_time_argument): ... here
6529 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6530
8848b728
JD
65312010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6532
6533 * vm-limit.c (POINTER): Add typedef for it.
6534 (start_of_data): Change return type from POINTER to char *.
6535
6536 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6537 HAVE_WINDOW_SYSTEM.
6538
76fd1ee9
DN
65392010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6540
0441987e
DN
6541 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6542 Remove reference to __osf__, unused.
6543
56a000c7
DN
6544 * mem-limits.h: Remove duplicated includes.
6545 (NULL): Remove definition, unused.
6546 (POINTER): Remove definition.
6547 (start_of_data): Use char* in prototype, as the function
6548 definition does.
6549
e6cba650
DN
6550 Remove extern declarations from .c files, and them to .h files.
6551 * keyboard.h (Qhelp_echo, waiting_for_input)
6552 (input_available_clear_time, ignore_mouse_drag_p)
6553 (Vdouble_click_time, real_this_command, Vthis_original_command):
6554 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6555 (Voverriding_local_map_menu_flag):
6556 * lisp.h (Qinteractive_form, use_file_dialog)
6557 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6558 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6559 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6560 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6561 (Qfunction, debug_on_next_call, Qfield)
6562 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6563 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6564 (Qfile_directory_p, Qinsert_file_contents)
6565 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6566 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6567 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6568 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6569 (Qminibuffer_prompt)
6570 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6571 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6572 (gray_bitmap_bits, xic_create_fontsetname):
6573 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6574
6575 * xsmfns.c (Vuser_login_name):
6576 * xrdb.c (Vdouble_click_time):
6577 * xfaces.c (xic_create_fontsetname):
6578 * w32select.c (waiting_for_input):
6579 * print.c (minibuffer_auto_raise):
6580 * msdos.c (Qhelp_echo):
6581 * macros.c (real_this_command):
6582 * keymap.c (Voverriding_local_map):
6583 * xterm.c (poll_for_input_1, gray_bitmap_width)
6584 (gray_bitmap_height, gray_bitmap_bits;
6585 * xmenu.c ( Voverriding_local_map)
6586 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6587 (use_file_dialog, Xt_app_con):
6588 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6589 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6590 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6591 (Qtool_bar_lines, ignore_mouse_drag_p):
6592 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6593 (Qrear_nonsticky, nconc2):
6594 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6595 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6596 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6597 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6598 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6599 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6600 (gc_in_progress):
6601 * doc.c (Voverriding_local_map, Qremap):
6602 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6603 (Vcompletion_regexp_list):
6604 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6605 (Qcompletion_ignore_case):
6606 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6607 (Vhistory_length, Vthis_original_command, real_this_command)
6608 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6609 * image.c (Qrisky_local_variable):
6610 * fontset.c (QCname):
6611 * fns.c (minibuffer_auto_raise, QCname):
6612 * dispnew.c (char_ins_del_cost):
6613 * composite.c (font_fill_lglyph_metrics):
6614 * cmds.c (Qface, Vtranslation_table_for_input):
6615 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6616 * ccl.c (charset_unicode):
6617 * callproc.c (Vtemporary_file_directory):
6618 * buffer.c (emacs_strerror): Remove extern declarations.
6619
6620 * data.c (Qwindow): Make non-static, used from other files too.
6621 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6622
76fd1ee9
DN
6623 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6624 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6625 * s/usg5-4.h (COFF):
6626 * s/template.h:
6627 * s/msdos.h (COFF, NO_REMAP):
6628 * s/ms-w32.h (NO_REMAP):
6629 * s/hpux10-20.h (NO_REMAP):
6630 * m/sparc.h (SEGMENT_MASK):
6631 * m/m68k.h (NO_REMAP):
6632 * m/intel386.h (SEGMENT_MASK):
6633 * m/arm.h (NO_REMAP):
6634 * m/alpha.h (COFF):
6635 * m/template.h: Remove references to unused defines.
6636
8a52f00a
JD
66372010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6638
6639 * xsettings.c (Ftool_bar_get_system_style): Also check for
6640 Qtext_image_horiz.
6641
6642 * xdisp.c (Qtext_image_horiz): Define.
6643 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 6644 to documentation of tool-bar-style.
8a52f00a
JD
6645
6646 * lisp.h (Qtext_image_horiz): Declare.
6647
6648 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6649 style text_image_horiz.
6650
89dc303e
DN
66512010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6652
60799703
DN
6653 * emacs.c (Fkill_emacs): Remove return statement.
6654
37254dc1
DN
6655 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6656 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
6657 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6658 Remove local extern declarations.
37254dc1 6659
71c7345a
DN
6660 * xmenu.c: Do not included lwlib.h, not needed.
6661
6ba577cb
DN
6662 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6663
fdb183d6
DN
6664 * process.c: Move definitions earlier to minimize #ifdefs.
6665
6666 * xterm.h (x_get_customization_string, x_load_resources)
6667 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6668 (x_check_errors, x_property_data_to_lisp, defined_color)
6669 (xic_set_xfontset, x_defined_color): Use const.
6670
6671 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6672 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6673
6674 * xselect.c (selection_data_to_lisp_data)
6675 (x_property_data_to_lisp):
6676 * xrdb.c (x_get_string_resource, file_p)
6677 (x_get_customization_string, magic_file_p, search_magic_path)
6678 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6679 (x_get_string_resource): Use const.
6680
6681 * xfns.c: Include xlwmenu.h when USE_LUCID.
6682 (x_defined_color, xic_set_xfontset): Use const.
6683 (Fx_hide_tip): Remove local extern declaration.
6684
6685 * xfaces.c (Qmouse_face): Remove declaration.
6686 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 6687 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
6688
6689 * xdisp.c (do_mouse_tracking): Remove declaration.
6690 (add_to_log): Use const.
6691
6692 * minibuf.c (Qmouse_face): Remove declaration.
6693
6694 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6695
6696 * keyboard.h (do_mouse_tracking): Add declaration.
6697
6698 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6699 (QCdata, QCtype, Qcenter): Remove declarations.
6700
6701 * frame.c (x_get_resource_string, x_get_string_resource)
6702 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6703 (x_default_parameter): Use const.
6704
6705 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6706 (QCheight, QCsize, QCname): Remove declarations.
6707
6708 * emacs.c (main): Remove local extern declaration.
6709
6710 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6711 declarations.
6712
6713 * dispnew.c: Remove duplicate #include <unistd.h>.
6714 (update_window, update_frame_1, init_display): Remove local extern
6715 declarations.
6716
6717 * dispextern.h (add_to_log): Remove declaration.
6718 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6719 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6720
6721 * dired.c (scmp): Add const.
6722 (directory_files_internal): Remove local extern declaration.
6723
6724 * data.c (Finteractive_form): Use const.
6725
6726 * composite.c (syms_of_composite): Remove local extern declarations.
6727
6728 * charset.c (add_to_log): Remove declaration.
6729
6730 * character.c (strwidth, parse_str_to_multibyte): Add const.
6731
6732 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6733
6734 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6735
89dc303e 6736 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
6737 (Lisp_Subr): Make doc and intspec constant.
6738 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6739 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6740 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6741 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6742 (display_arg): Add declarations.
89dc303e 6743
0ed082fe 67442010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
6745
6746 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6747
0ed082fe
JB
6748 * window.c (Fwindow_height): Doc fix (bug#6518).
6749
67502010-07-27 Juanma Barranquero <lekktu@gmail.com>
6751
6752 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6753
ccaf0336
DN
67542010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6755
977105dc
DN
6756 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6757 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6758 functions.
6759
f5ada890
DN
6760 * frame.h (Qtty_color_mode): Add declaration.
6761
ccaf0336
DN
6762 * lisp.h (Ftop_level, Fexit_recursive_edit)
6763 (Fabort_recursive_edit): Mark as NO_RETURN.
6764
dfe3c90f
KH
67652010-07-26 Kenichi Handa <handa@m17n.org>
6766
6767 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 6768 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 6769
7d383292
JB
67702010-07-26 Juanma Barranquero <lekktu@gmail.com>
6771
6772 * lread.c (unreadpure, mapatoms_1): Make static.
6773
da31e629
JB
67742010-07-25 Juanma Barranquero <lekktu@gmail.com>
6775
6776 * terminfo.c (tparam): Fix prototype of tparm.
6777
7bfa6d77
AS
67782010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6779
dcc19aac
AS
6780 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6781 find start of text segment.
6782 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6783 is defined.
6784
7bfa6d77
AS
6785 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6786
63f9a672
KB
67872010-07-25 Ken Brown <kbrown@cornell.edu>
6788
6789 * vm-limit.c (check_memory_limits): Fix previous change;
6790 accidentally reverted an earlier change.
6791
24933075
KB
67922010-07-25 Ken Brown <kbrown@cornell.edu>
6793
6794 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6795 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6796
361358ea
JB
67972010-07-25 Juanma Barranquero <lekktu@gmail.com>
6798
6799 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6800 * dired.c (opendir, readdir): Fix prototypes.
6801 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6802 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6803 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6804 (telldir): Remove declaration.
6805 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6806 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6807 * syssignal.h (strsignal): Fix prototype.
6808 * term.c (tparam): Fix prototype.
6809 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6810 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6811 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6812 and __morecore.
6813 * w32gui.h (XParseGeometry): Fix prototype.
6814 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6815 * w32term.c (my_set_focus): Declare inside #if 0.
6816 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6817 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6818 (drain_message_queue, get_next_msg, post_msg, parse_button)
6819 (ClipboardSequence_Proc): Fix prototypes.
6820 (wait_for_sync): Remove declaration.
6821
630b9592
JB
68222010-07-24 Juanma Barranquero <lekktu@gmail.com>
6823
6824 * w32fns.c (w32_to_x_color): Remove, unused.
6825
6a0d6611
AS
68262010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6827
6828 * lisp.h: Remove leftover P_.
6829
4e8608ff
DN
68302010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6831
6832 * ecrt0.c, unexalpha.c: Remove files, unused.
6833
c8197983
AS
68342010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6835
6836 * cmds.c (internal_self_insert): Make static.
6837 * lisp.h (internal_self_insert): Remove declaration.
6838
97b372d7
JB
68392010-07-23 Juanma Barranquero <lekktu@gmail.com>
6840
33ac0414
JB
6841 * alloc.c (free_float):
6842 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6843 * frame.c (delete_frame_handler):
6844 * ralloc.c (reorder_bloc):
6845 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6846 Remove unused static functions.
6847
94da8397
JB
6848 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6849 it is called only from NS code.
6850
2e6c8532
JB
6851 * w32term.c (my_set_focus): #ifdef away; it is called only from
6852 "#ifdef 0" code.
6853
97b372d7
JB
6854 * w32fns.c (x_edge_detection):
6855 * xfaces.c (may_use_scalable_font_p):
6856 Remove obsolete static declarations.
6857
7c3320d8
JB
68582010-07-20 Juanma Barranquero <lekktu@gmail.com>
6859
6860 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6861 (emacs_blocked_realloc, uninterrupt_malloc):
6862 * fringe.c (w32_reset_fringes):
6863 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6864 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6865 * sound.c (be2hs, do_play_sound):
6866 * vm-limit.c (get_lim_data, ret_lim_data):
6867 * w32term.c (x_free_frame_resources):
6868 * xfaces.c (x_create_gc, x_free_gc):
6869 Convert definitions to standard C.
6870
d5273788
SM
68712010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6872
6873 * eval.c (Feval, Ffuncall): Use the new names.
6874
6875 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6876 (DEFUN): Add braces around the union initialisation and use ## to
6877 specify the right union alternative and avoid a cast.
6878
8d16a259
JB
68792010-07-18 Juanma Barranquero <lekktu@gmail.com>
6880
6881 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6882
3b8eff32
CY
68832010-07-17 Chong Yidong <cyd@stupidchicken.com>
6884
6885 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6886
499322ce
J
68872010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6888
6889 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6890 is related to the menu bar (Bug#6499).
a628ad9d 6891 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 6892
f6003da5 68932010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
6894
6895 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6896
6897 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6898
6899 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6900 i.e. don't put back ButtonRelease (Bug#6608).
6901
6902 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6903 instead of Window. Call xg_event_is_for_menubar when
6904 USE_GTK (Bug#6499).
6905
6906 * gtkutil.h (xg_event_is_for_menubar): Declare.
6907
6908 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6909
f6003da5 69102010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
6911
6912 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6913 when it's the same as the old foreground. (Bug#6609)
6914
23243f29
J
69152010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6916
6917 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6918 widget is non-null (Bug#6645).
6919
2b23d2a6
AS
69202010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6921
01b564ff
AS
6922 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6923 Convert old-style definition.
6924
2b23d2a6
AS
6925 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6926 timestamp argument.
6927
c4affd2c
EZ
69282010-07-15 Eli Zaretskii <eliz@gnu.org>
6929
6930 * fringe.c (update_window_fringes): Restore mistakenly reverted
6931 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6932
cf28cebc
J
69332010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6934
6935 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6936 (SET_SAVED_KEY_EVENT): Remove (not used).
6937 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6938 remove size parameter.
6939 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6940 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6941 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6942 ButtonRelease.
6b2c4bd9
J
6943 (x_set_window_size_1): scroll_bar_actual_width is always
6944 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
6945
6946 * xdisp.c (pending_menu_activation): Remove extern declaration.
6947 (prepare_menu_bars): Remove setting of pending_menu_activation.
6948
6949 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
6950 (x_activate_menubar): Set popup_activated_flag for Xt also.
6951 Remove setting of pending_menu_activation.
cf28cebc
J
6952 (set_frame_menubar): Remove check of pending_menu_activation.
6953 Declare menubar_size before code. Correct spelling in comment.
6954
f6c1c771
KH
69552010-07-14 Kenichi Handa <handa@m17n.org>
6956
6957 * font.c (font_open_entity): Cancel previous change.
6958 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6959
20477505
EZ
69602010-07-13 Eli Zaretskii <eliz@gnu.org>
6961
77defa9a
EZ
6962 Remove subprocesses #ifdefs.
6963 * process.c <inhibit_sentinels>: Move to the common part.
6964 (Fwaiting_for_user_input_p): Move to the common part; return nil
6965 if async subprocesses aren't supported.
6966 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6967 MS-DOS. Remove "#ifdef subprocesses".
6968 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6969 (gettimeofday): Remove "#ifdef subprocesses".
6970 (wait_without_blocking): Remove function.
6971 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6972 Remove "#ifdef subprocesses".
6973 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6974 compiled on MS-DOS.
6975 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6976 wait_for_termination on MS-DOS.
6977 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6978 initialization of inhibit_sentinels.
6979 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6980 subprocesses" conditional.
6981 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6982 wait_for_termination, since `buffer' cannot be an integer when
6983 async subprocesses are not supported
6984 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6985 for ifdefing away the call to Fprocess_status.
6986
20477505
EZ
6987 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6988 away the entire body of the function.
6989
b3ffc17c
DN
69902010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6991
01faa934
DN
6992 Remove subprocesses #ifdefs from term.c.
6993 * process.c (add_keyboard_wait_descriptor)
6994 (delete_keyboard_wait_descriptor): Move to common section, do
6995 nothing when subprocesses is not defined.
a628ad9d
JB
6996 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6997 Remove subprocesses #ifdefs.
01faa934 6998
b3ffc17c
DN
6999 Convert maybe_fatal to standard C.
7000 * lisp.h (verror): Declare.
7001 * eval.c (verror): New function containing the code from ...
7002 (error): ... this. Call verror.
7003 * term.c (vfatal): New function containing the code from ...
7004 (fatal): ... this. Call vfatal.
7005 (maybe_fatal): Convert to standard C, use variable number of
7006 arguments. Declare as non-return.
7007 (init_tty): Fix maybe_fatal call.
7008
0521f580
DN
70092010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7010
7011 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
7012 (_scroll_bar_note_movement): Convert definitions to standard C.
7013 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
7014 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
7015
ebd15611
DN
70162010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7017
7018 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
7019 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
7020 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
7021 (xaw_jump_callback, xaw_scroll_callback)
7022 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
7023 (x_wm_set_size_hint, x_activate_timeout_atimer):
7024 Convert definitions to standard C.
ebd15611
DN
7025 * xmenu.c (menubar_id_to_frame, popup_get_selection)
7026 (popup_activate_callback, popup_deactivate_callback)
7027 (menu_highlight_callback, menubar_selection_callback)
7028 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
7029 (free_frame_menubar, popup_selection_callback, as)
7030 (create_and_show_popup_menu, dialog_selection_callback)
7031 (create_and_show_dialog):
7032 * xfns.c (hack_wm_protocols, x_window):
7033 * xfaces.c (x_update_menu_appearance):
7034 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
7035 (char_to_pixel_size, round_size_to_char, get_wm_shell)
7036 (set_frame_size, update_wm_hints, setup_frame_gcs)
7037 (update_various_frame_slots, update_from_various_frame_slots)
7038 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
7039 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
7040 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
7041
de06a2dd
AS
70422010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7043
a628ad9d 7044 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 7045
fc549af9
EZ
70462010-07-12 Eli Zaretskii <eliz@gnu.org>
7047
7048 * process.c (setup_process_coding_systems): Move to the part
7049 shared by non-subprocesses systems, and make its body empty when
7050 subprocesses is not defined.
7051 (close_process_descs): Move to the part shared by non-subprocesses
7052 systems.
1408902e
EZ
7053 (wait_reading_process_output) [!subprocesses]: Convert arg list to
7054 ANSI C.
fc549af9 7055
d5a3eaaf
AS
70562010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7057
7058 * editfns.c (transpose_markers): Convert old-style definition.
7059 * emacs.c (abort, shut_down_emacs, fixup_locale)
7060 (synchronize_system_time_locale)
7061 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
7062 * floatfns.c (extract_float, matherr, init_floatfns)
7063 (syms_of_floatfns): Likewise.
7064 * fns.c (make_hash_table): Likewise.
7065 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
7066 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
7067 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
7068 (ftfont_variation_glyphs): Likewise.
7069 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
7070 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
7071 * lread.c (read_filtered_event): Likewise.
7072 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
7073 * process.c (wait_reading_process_output): Likewise.
7074 * scroll.c (do_line_insertion_deletion_costs): Likewise.
7075 * search.c (search_buffer, boyer_moore): Likewise.
7076 * syntax.c (scan_sexps_forward): Likewise.
7077 * xdisp.c (try_scrolling): Likewise.
7078 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
7079 (face_at_string_position): Likewise.
7080 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
7081 * xselect.c (x_get_window_property, receive_incremental_selection)
7082 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
7083 Likewise.
7084 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
7085
6f704c76
DN
70862010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
7087
ded80a25
DN
7088 * callproc.c (child_setup): Remove subprocesses conditional.
7089 Remove code dealing with SET_EMACS_PRIORITY, unused.
7090
49d937f4 7091 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
7092 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
7093
7094 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
7095 (__do_global_dtors, __main): Use void in definition.
7096 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
7097 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
7098 the only users from ...
7099 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
7100 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
7101 (HAVE_VOLATILE): Remove, unused.
7102
6f704c76
DN
7103 Convert more function definitions to standard C.
7104 * xdisp.c (window_box_edges, handle_single_display_spec)
7105 (display_string): Convert definition to standard C.
7106 * scroll.c (do_direct_scrolling, scrolling_1):
7107 * dispnew.c (allocate_matrices_for_frame_redisplay)
7108 (mirrored_line_dance):
7109 * coding.c (code_convert_string):
7110 * charset.c (map_charset_chars):
7111 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
7112 (Fregister_ccl_program, Fregister_code_conversion_map):
7113 * keyboard.c (kbd_buffer_nr_stored): Likewise.
7114 (head_table): Make static and const.
7115
e6cfa7c3
AS
71162010-07-12 Andreas Schwab <schwab@linux-m68k.org>
7117
7118 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
7119 (PROFILING_LDFLAGS): Set from substitution.
7120 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
7121 CFLAGS last.
7122
892dd565
KH
71232010-07-12 Kenichi Handa <handa@m17n.org>
7124
6f2cdcd1
KH
7125 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
7126 (shortlisp): Likewise.
7127
892dd565
KH
7128 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
7129
7130 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
7131 of FONT_ENTITY_INDEX.
7132 (Ffont_get): If KEY is :otf and the font-object doesn't have the
7133 property, get the property value dynamically.
7134 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 7135 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 7136 return value changed.
bba3e508 7137 (syms_of_font): Adjust for the above change.
892dd565 7138
ae96d47a
AS
71392010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7140
c8fc18ee
AS
7141 * blockinput.h: Remove obsolete comment.
7142
89887d67
AS
7143 * lisp.h: Include <stddef.h>.
7144 (OFFSETOF): Don't define.
7145 (VECSIZE): Use offsetof instead of OFFSETOF.
7146 (PSEUDOVECSIZE): Likewise.
7147 * process.c (conv_sockaddr_to_lisp): Likewise.
7148 * alloc.c: Don't include <stddef.h>.
7149 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
7150
ae96d47a
AS
7151 * process.c: Remove obsolete comment.
7152
635c0aa1
CY
71532010-07-11 Chong Yidong <cyd@stupidchicken.com>
7154
7155 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
7156
a64df650
AS
71572010-07-11 Andreas Schwab <schwab@linux-m68k.org>
7158
8966b757
AS
7159 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
7160 index, rindex.
7161 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
7162 * editfns.c (Fuser_full_name, Fformat): Likewise.
7163 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
7164 * fileio.c (Ffile_symlink_p): Likewise.
7165 * filelock.c (current_lock_owner): Likewise.
7166 * font.c (font_parse_name, font_parse_family_registry): Likewise.
7167 * fontset.c (fontset_pattern_regexp): Likewise.
7168 * lread.c (read1): Likewise.
7169 * sysdep.c (init_system_name): Likewise.
7170 * xfns.c (select_visual): Likewise.
7171 * s/hpux10-20.h (index, rindex): Don't define.
7172 * s/ms-w32.h (index): Likewise.
7173 * s/usg5-4.h: Likewise.
7174
cf237e27
AS
7175 * callproc.c (relocate_fd): Use F_DUPFD if defined.
7176
a8fe7202
AS
7177 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
7178 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
7179 (egetenv): Likewise.
7180 * doprnt.c (doprnt): Likewise.
7181 * editfns.c (set_time_zone_rule, format2): Likewise.
7182 * emacs.c (decode_env_path): Likewise.
7183 * eval.c (signal_error, error): Likewise.
7184 * insdel.c (replace_range_2): Likewise.
7185 * keyboard.c (cmd_error_internal): Likewise.
7186 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
7187 * print.c (write_string, write_string_1, print_error_message):
7188 Likewise.
7189 * vm-limit.c (warn_function, memory_warnings): Likewise.
7190 * xdisp.c (message1, message1_nolog, message_with_string)
7191 (vmessage, message, message_nolog): Likewise.
7192 * emacs.c: Remove duplicate declaration.
7193 * keyboard.h: Likewise.
7194 * lisp.h: Update prototypes.
7195
bb8e180f
AS
7196 * eval.c: Fix indentation problem.
7197
01c35094 7198 * keyboard.c: Include "process.h".
83380e65 7199
a64df650
AS
7200 * eval.c: Remove obsolete noinline declaration.
7201 * fns.c: Likewise.
7202
6a8033e1
KR
72032010-07-11 Ken Raeburn <raeburn@raeburn.org>
7204
7205 * doprnt.c (doprnt): Take a va_list argument instead of count and
7206 pointer.
7207 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 7208 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
7209 changed to take a va_list argument.
7210 (message): New variadic wrapper.
7211 (message_nolog): Now a variadic function, calling vmessage.
7212 * lisp.h: Include stdarg.h for va_list.
7213 (doprnt, error, message, message_nolog): Decls updated.
7214
462aa963
EZ
72152010-07-11 Eli Zaretskii <eliz@gnu.org>
7216
7217 * process.c (syms_of_process) <delete-exited-processes>: Define
7218 even if !subprocesses.
7219 (delete_exited_processes): Ditto.
7220
7221 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7222 (delete_exited_processes): Don't define.
7223
48104462
CY
72242010-07-10 Chong Yidong <cyd@stupidchicken.com>
7225
7226 * frame.c (make_frame): Initialize menu_bar_lines and
7227 tool_bar_lines members.
bba3e508
SM
7228 (make_initial_frame, make_terminal_frame):
7229 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
7230
7231 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7232
f388c88a
EZ
72332010-07-10 Eli Zaretskii <eliz@gnu.org>
7234
7235 * process.c: Reshuffle #include's. Condition some of the global
7236 and static variables on `subprocesses'.
7237 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7238 Leave only one implementation.
7239 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7240 (kill_buffer_processes, Flist_system_processes)
7241 (Fprocess_attributes, init_process, syms_of_process): Unify the
7242 implementations for with subprocesses and without them.
7243
723f5a07
J
72442010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7245
7246 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7247 correct size for Motif.
7248 (free_frame_menubar): Call x_set_window_size to update frame size.
7249
7250 * xfns.c (x_window): Set borderWidth to 0 for pane and
7251 EmacsFrame. Frame size calculation is wrong otherwise.
7252
2536a4b7
MA
72532010-07-09 Michael Albinus <michael.albinus@gmx.de>
7254
7255 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7256 allows to suppress errors when polling in Emacs' main loop.
7257 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7258 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7259 (Fdbus_method_error_internal, Fdbus_send_signal)
7260 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7261 (Fdbus_register_method): Use it. (Bug#6579)
7262
5842a27b
DN
72632010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7264
7265 * alloc.c: Convert DEFUNs to standard C.
7266 * buffer.c:
7267 * bytecode.c:
7268 * callint.c:
7269 * callproc.c:
7270 * casefiddle.c:
7271 * casetab.c:
7272 * category.c:
7273 * character.c:
7274 * charset.c:
7275 * chartab.c:
7276 * cmds.c:
7277 * coding.c:
7278 * composite.c:
7279 * data.c:
7280 * dbusbind.c:
7281 * dired.c:
7282 * dispnew.c:
7283 * doc.c:
7284 * dosfns.c:
7285 * editfns.c:
7286 * emacs.c:
7287 * eval.c:
7288 * fileio.c:
7289 * filelock.c:
7290 * floatfns.c:
7291 * fns.c:
7292 * font.c:
7293 * fontset.c:
7294 * frame.c:
7295 * fringe.c:
7296 * image.c:
7297 * indent.c:
7298 * insdel.c:
7299 * keyboard.c:
7300 * keymap.c:
7301 * lread.c:
7302 * macros.c:
7303 * marker.c:
7304 * menu.c:
7305 * minibuf.c:
7306 * msdos.c:
7307 * nsfns.m:
7308 * nsmenu.m:
7309 * nsselect.m:
7310 * print.c:
7311 * process.c:
7312 * search.c:
7313 * sound.c:
7314 * syntax.c:
7315 * term.c:
7316 * terminal.c:
7317 * textprop.c:
7318 * undo.c:
7319 * w16select.c:
7320 * w32console.c:
7321 * w32fns.c:
7322 * w32font.c:
7323 * w32menu.c:
7324 * w32proc.c:
7325 * w32select.c:
7326 * window.c:
7327 * xdisp.c:
7328 * xfaces.c:
7329 * xfns.c:
7330 * xmenu.c:
7331 * xselect.c:
7332 * xsettings.c:
7333 * xsmfns.c: Likewise.
7334
d568829b
EZ
73352010-07-08 Eli Zaretskii <eliz@gnu.org>
7336
7337 * process.c (kbd_is_on_hold, hold_keyboard_input)
7338 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7339
52214050
J
73402010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7341
7342 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7343 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7344 unless USE_LUCID.
7345
313d9eb2
DN
73462010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7347
a628ad9d
JB
7348 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7349 declaration.
d8825aa3 7350
295d0d8f
DN
7351 Clean up include guards.
7352 * tparam.c: Remove include guards for config.h, string.h and code
7353 that assumes #ifndef emacs.
7354 * termcap.c:
7355 * unexalpha.c:
7356 * sysdep.c:
7357 * filemode.c:
7358 * filelock.c:
7359 * bidi.c: Likewise.
7360
49d9e6b0
DN
7361 Remove prefix-args.c
7362 * prefix-args.c: Remove file.
7363 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7364 * Makefile.in (temacs${EXEEXT}): Remove references to
7365 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7366 (mostlyclean): Remove reference to prefix-args.
7367 (prefix-args): Remove.
7368
313d9eb2
DN
7369 Simplify cstart_of_data, start_of_code and related code.
7370 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7371 (start_of_data): Merge into start_of_data function.
7372 * sysdep.c (start_of_text): Remove. Move simplified versions of
7373 it in the only users: unexaix.c and unexec.c.
7374 (read_input_waiting): Remove local declaration of quit_char.
7375 (start, etext): Remove declarations.
7376 (start_of_data): Merge with the version in mem-limits.h and move
7377 to vm-limits.c.
7378 * vm-limit.c (start_of_data): Merged and simplified version of the
7379 code formerly in mem-limits.h and sysdep.c.
7380 * unexec.c (start): New declaration, moved from sysdep.c.
7381 (start_of_text): Simplified version of the code formerly in sysdep.c.
7382 * unexaix.c (start_of_text): Simplified version of the code
7383 formerly in sysdep.c.
7384 * m/alpha.h (HAVE_TEXT_START): Remove.
7385 (TEXT_START): Move ...
7386 * unexalpha.c (TEXT_START): ... here.
7387 * s/hpux10-20.h (TEXT_START): Remove.
7388 * s/darwin.h (TEXT_START):
7389 * m/mips.h (TEXT_START):
7390 * m/macppc.h (HAVE_TEXT_START):
7391 * m/m68k.h (TEXT_START):
7392 * m/iris4d.h (TEXT_START):
7393 * m/intel386.h (TEXT_START):
7394 * m/ibmrs6000.h (TEXT_START):
7395 * m/ia64.h (HAVE_TEXT_START):
7396 * s/msdos.h (TEXT_START): Likewise.
7397
72af86bd
AS
73982010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7399
7400 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7401 (overrun_check_free, xstrdup, allocate_string)
7402 (allocate_string_data, compact_small_strings, Fmake_string)
7403 (make_unibyte_string, make_multibyte_string)
7404 (make_string_from_bytes, make_specified_string, make_float)
7405 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7406 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7407 memcpy, memmove, memset, memcmp.
7408 * atimer.c (start_atimer, set_alarm): Likewise.
7409 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7410 (mmap_realloc, init_buffer_once): Likewise.
7411 * callint.c (Fcall_interactively): Likewise.
7412 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7413 (getenv_internal_1): Likewise.
7414 * casefiddle.c (casify_object): Likewise.
7415 * ccl.c (ccl_driver): Likewise.
7416 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7417 * charset.c (load_charset_map_from_file)
7418 (load_charset_map_from_file, load_charset_map_from_vector)
7419 (Fdefine_charset_internal): Likewise.
7420 * cm.c (Wcm_clear): Likewise.
7421 * coding.c (decode_eol, decode_coding_object)
7422 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7423 * data.c (Faset): Likewise.
7424 * dired.c (directory_files_internal, file_name_completion_stat):
7425 Likewise.
7426 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7427 (clear_glyph_row, copy_row_except_pointers)
7428 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7429 (save_current_matrix, restore_current_matrix)
7430 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7431 (mirror_line_dance, scrolling_window): Likewise.
7432 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7433 Likewise.
7434 * doprnt.c (doprnt): Likewise.
7435 * editfns.c (Fuser_full_name, make_buffer_string_both)
7436 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7437 * emacs.c (sort_args): Likewise.
7438 * eval.c (Fapply, Ffuncall): Likewise.
7439 * fileio.c (Ffile_name_directory, make_temp_name)
7440 (Fexpand_file_name, search_embedded_absfilename)
7441 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7442 (auto_save_error): Likewise.
7443 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7444 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7445 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7446 (Fmake_hash_table): Likewise.
7447 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7448 * ftfont.c (ftfont_text_extents): Likewise.
7449 * getloadavg.c (getloadavg): Likewise.
7450 * image.c (define_image_type, make_image, make_image_cache)
7451 (x_create_x_image_and_pixmap, xbm_image_p)
7452 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7453 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7454 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7455 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7456 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7457 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7458 Likewise.
7459 * indent.c (scan_for_column, compute_motion): Likewise.
7460 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7461 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7462 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7463 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7464 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7465 (store_user_signal_events, menu_bar_items, tool_bar_items)
7466 (process_tool_bar_item, append_tool_bar_item)
7467 (read_char_minibuf_menu_prompt, read_key_sequence)
7468 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7469 Likewise.
7470 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7471 Likewise.
7472 * lisp.h (STRING_COPYIN): Likewise.
7473 * lread.c (Fload, read1, oblookup): Likewise.
7474 * msdos.c (Frecent_doskeys): Likewise.
7475 * nsfns.m (Fx_create_frame): Likewise.
7476 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7477 Likewise.
7478 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7479 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7480 Likewise.
7481 * nsmenu.m (ns_update_menubar): Likewise.
7482 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7483 * print.c (print_unwind, printchar, strout, print_string)
7484 (print_error_message): Likewise.
7485 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7486 (Fmake_network_process, Fnetwork_interface_list)
7487 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7488 (init_process): Likewise.
7489 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7490 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7491 Likewise.
7492 * scroll.c (do_scrolling, do_direct_scrolling)
7493 (scrolling_max_lines_saved): Likewise.
7494 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7495 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7496 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7497 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7498 (emacs_set_tty): Likewise.
7499 * term.c (encode_terminal_code, calculate_costs)
7500 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7501 Likewise.
7502 * termcap.c (tgetst1, gobble_line): Likewise.
7503 * termhooks.h (EVENT_INIT): Likewise.
7504 * tparam.c (tparam1): Likewise.
7505 * unexalpha.c (unexec): Likewise.
7506 * unexec.c (write_segment): Likewise.
7507 * unexmacosx.c (unexec_write_zero): Likewise.
7508 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7509 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7510 * w32font.c (w32font_list_family, w32font_text_extents)
7511 (w32font_list_internal, w32font_match_internal)
7512 (w32font_open_internal, compute_metrics, Fx_select_font):
7513 Likewise.
7514 * w32menu.c (set_frame_menubar, add_menu_item)
7515 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7516 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7517 * w32uniscribe.c (uniscribe_list_family): Likewise.
7518 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7519 * window.c (make_window, replace_window, set_window_buffer)
7520 (Fsplit_window): Likewise.
7521 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7522 (add_to_log, message3, x_consider_frame_title)
7523 (append_space_for_newline, extend_face_to_end_of_line)
7524 (decode_mode_spec_coding, init_glyph_string): Likewise.
7525 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7526 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7527 (face_attr_equal_p, make_realized_face, make_face_cache)
7528 (free_realized_faces, lookup_named_face, smaller_face)
7529 (face_with_height, lookup_derived_face)
7530 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7531 (Finternal_set_font_selection_order, realize_default_face)
7532 (compute_char_face, face_at_buffer_position)
7533 (face_for_overlay_string, face_at_string_position, merge_faces):
7534 Likewise.
7535 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7536 (Fx_window_property, x_create_tip_frame)
7537 (Fx_backspace_delete_keys_p): Likewise.
7538 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7539 (xfont_text_extents): Likewise.
7540 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7541 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7542 * xselect.c (x_queue_event, x_get_window_property)
7543 (receive_incremental_selection): Likewise.
7544 * xsmfns.c (x_session_check_input): Likewise.
7545 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7546 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7547 Likewise.
7548 * character.h (BCOPY_SHORT): Removed.
7549 * config.in: Regenerate.
7550 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7551 * emacs.c (main) [PROFILING]: Don't declare
7552 dump_opcode_frequencies.
7553 * lisp.h (safe_bcopy): Remove declaration.
7554 (memset) [!HAVE_MEMSET]: Declare.
7555 (memcpy) [!HAVE_MEMCPY]: Likewise.
7556 (memmove) [!HAVE_MEMMOVE]: Likewise.
7557 (memcmp) [!HAVE_MEMCMP]: Likewise.
7558 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7559 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7560 Don't define.
7561 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7562 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7563 (BCOPY_DOWNWARD_SAFE): Don't define.
7564 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7565 (memcpy) [!HAVE_MEMCPY]: Define.
7566 (memmove) [!HAVE_MEMMOVE]: Define.
7567 (memcmp) [!HAVE_MEMCMP]: Define.
7568
cb768704
J
75692010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7570
7571 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
7572 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7573 New functions.
cb768704
J
7574 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7575 select on empty input mask.
7576 (init_process): Initialize kbd_is_on_hold to 0.
7577
7578 * process.h (hold_keyboard_input, unhold_keyboard_input)
7579 (kbd_on_hold_p): Declare.
7580
7581 * keyboard.c (input_available_signal): Declare.
7582 (kbd_buffer_nr_stored): New function.
7583 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7584 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7585 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7586 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7587 (tty_read_avail_input): If input is on hold, return.
7588 Don't read more that free slots in kbd_buffer (Bug#6571).
7589
3a8ce822
EZ
75902010-07-07 Eli Zaretskii <eliz@gnu.org>
7591
7592 * msdos.h:
7593 * msdos.c:
7594 * dosfns.c:
7595 * w16select.c: Convert function definitions to ANSI C.
7596
a628ad9d
JB
7597 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7598 Remove unused prototypes.
3a8ce822 7599
cf84bb53
JB
76002010-07-07 Juanma Barranquero <lekktu@gmail.com>
7601
7602 * coding.c, sysdep.c: Convert some more functions to standard C.
7603
1a4990fb
JB
76042010-07-07 Juanma Barranquero <lekktu@gmail.com>
7605
7606 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7607 (encode_coding_object): Use SPECPDL_INDEX.
7608 (syms_of_coding): Use DOS_NT.
7609
c0f2f16b
DN
76102010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7611
48fb6855
DN
7612 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7613
c0f2f16b
DN
7614 Make the function member of Lisp_Subr use standard C prototypes.
7615 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7616 (DECL_ALIGN): Add a cast for the function.
7617 * eval.c (Feval, Ffuncall): Use the proper type for each type
7618 function call.
7619
67aecef9
CY
76202010-07-06 Chong Yidong <cyd@stupidchicken.com>
7621
7622 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7623 fringe face id, so face-remapping-alist works (Bug#6091).
7624
b56ceb92
JB
76252010-07-06 Juanma Barranquero <lekktu@gmail.com>
7626
7627 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7628 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7629 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7630
7af07b96
AS
76312010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7632
7633 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7634 * lisp.h: Declare x_get_keysym_name.
7635 * keyboard.c (modify_event_symbol): Don't declare
7636 x_get_keysym_name here.
7637
69e24e34
DN
76382010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7639
7640 * ecrt0.c: Revert conversion to standard C.
7641
d3da34e0 76422010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
7643
7644 * vm-limit.c (memory_warnings):
7645 * keyboard.c (modify_event_symbol):
7646 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7647 (round2, emacs_rint):
7648 * process.c (send_process, old_sigpipe): Convert function
7649 definitions and declarations to standard C.
7650
76512010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
7652
7653 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7654 * xdisp.c: Convert function definitions to standard C.
7655
7656 * cm.c (cmputc): Arg C is now int, not char.
7657 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7658
00be444c
J
76592010-07-05 James Cloos <cloos@jhcloos.com>
7660
7661 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7662
7663 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7664 _NET_WM_ICON_NAME atoms.
7665
7666 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7667 and _NET_WM_ICON_NAME properties, too, matching what is
7668 done in the Gtk+ case.
7669
e4c8d29a
J
76702010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7671
ff919460
J
7672 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7673
e4c8d29a
J
7674 * xsmfns.c (SSDATA): New macro.
7675 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7676 passed to strlen/strcpy/strcat.
bba3e508
SM
7677 (create_client_leader_window): Surround with #ifndef USE_GTK.
7678 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
7679
7680 * xsettings.c (something_changedCB, parse_settings)
7681 (apply_xft_settings): Reformat prototype.
7682 (something_changedCB, init_gconf): Remove unused variable i.
7683 (read_settings): Remove unused variable long_len.
7684
7685 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7686 (xg_get_image_for_pixmap, create_dialog)
7687 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7688 (menuitem_highlight_callback, make_menu_item)
7689 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7690 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7691 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7692 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7693 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7694 (xg_tool_bar_item_expose_callback): Reformat prototype.
7695 (xg_update_menubar): GList *group => GSList *group.
7696 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7697 before use.
7698 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7699 to GTK_IMAGE (wimage).
7700
dd4c5104
DN
77012010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7702
898b4c5c
DN
7703 * atimer.c: Use "" instead of <> for local includes for
7704 consistency with the rest of the code.
7705
dd4c5104
DN
7706 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7707 * xrdb.c (get_system_name):
7708 * window.c (shrink_windows):
7709 * syntax.c (forw_comment):
7710 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7711 (ins_del_costs):
7712 * mem-limits.h (start_of_data):
7713 * lread.c (readevalloop):
7714 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7715 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7716 * frame.c (x_get_focus_frame):
7717 * floatfns.c (fmod_float):
7718 * fileio.c (choose_write_coding_system):
7719 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7720 (malloc_initialize_hook, sort_args, synchronize_locale):
7721 * doprnt.c (doprnt):
7722 * dired.c (compile_pattern):
7723 * data.c (fmod_float):
7724 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7725 (map_char_table_for_charset):
7726 * charset.c (define_charset_internal):
7727 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7728 to standard C.
7729
9a39b306 77302010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 7731 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
7732
7733 * lread.c (read1): Fix up last change to not mess up `c'.
7734
e6cb2cbb
JB
77352010-07-04 Juanma Barranquero <lekktu@gmail.com>
7736
7737 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7738
438105ed
JB
77392010-07-04 Juanma Barranquero <lekktu@gmail.com>
7740
7741 Fix prototypes.
7742
e5447b22 7743 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 7744 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
7745 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7746 arg, as required by internal_condition_case_1.
dcc7404b 7747 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
7748 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7749 (analyse_first): Fix "const const".
e5447b22 7750 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 7751 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 7752 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 7753
971de7fb
DN
77542010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7755
7756 * alloc.c: Convert function definitions to standard C.
7757 * atimer.c:
7758 * bidi.c:
7759 * bytecode.c:
7760 * callint.c:
7761 * callproc.c:
7762 * casefiddle.c:
7763 * casetab.c:
7764 * category.c:
7765 * ccl.c:
7766 * character.c:
7767 * charset.c:
7768 * chartab.c:
7769 * cmds.c:
7770 * coding.c:
7771 * composite.c:
7772 * data.c:
7773 * dbusbind.c:
7774 * dired.c:
7775 * dispnew.c:
7776 * doc.c:
7777 * doprnt.c:
7778 * ecrt0.c:
7779 * editfns.c:
7780 * fileio.c:
7781 * filelock.c:
7782 * filemode.c:
7783 * fns.c:
7784 * font.c:
7785 * fontset.c:
7786 * frame.c:
7787 * fringe.c:
7788 * ftfont.c:
7789 * ftxfont.c:
7790 * gtkutil.c:
7791 * indent.c:
7792 * insdel.c:
7793 * intervals.c:
7794 * keymap.c:
7795 * lread.c:
7796 * macros.c:
7797 * marker.c:
7798 * md5.c:
7799 * menu.c:
7800 * minibuf.c:
7801 * prefix-args.c:
7802 * print.c:
7803 * ralloc.c:
7804 * regex.c:
7805 * region-cache.c:
7806 * scroll.c:
7807 * search.c:
7808 * sound.c:
7809 * strftime.c:
7810 * syntax.c:
7811 * sysdep.c:
7812 * termcap.c:
7813 * terminal.c:
7814 * terminfo.c:
7815 * textprop.c:
7816 * tparam.c:
7817 * undo.c:
7818 * unexelf.c:
7819 * window.c:
7820 * xfaces.c:
7821 * xfns.c:
7822 * xfont.c:
7823 * xftfont.c:
7824 * xgselect.c:
7825 * xmenu.c:
7826 * xrdb.c:
7827 * xselect.c:
7828 * xsettings.c:
7829 * xsmfns.c:
7830 * xterm.c: Likewise.
7831
ae492bec
EZ
78322010-07-03 Eli Zaretskii <eliz@gnu.org>
7833
76ea4cc9
EZ
7834 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7835 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
7836 `reverse' is specified in the frame parameters.
7837 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
7838 internal-set-lisp-face-attribute. Initialize screen colors from
7839 initial_screen_colors[] when f->default_face_done_p is zero,
7840 instead of depending on being called with default-frame-alist as
7841 the alist argument.
7842
7843 * xfaces.c (update_face_from_frame_parameter): Move out of
7844 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7845 with HAVE_WINDOW_SYSTEM.
7846
1e6255ae
EZ
7847 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7848 to menu-bar-mode, if not set in the frame parameters or in
7849 default-frame-alist.
7850
ae492bec
EZ
7851 * w32console.c (sys_tputs): Adjust argument list to prototype in
7852 term.c.
7853
3a35a84c
JB
78542010-07-03 Juanma Barranquero <lekktu@gmail.com>
7855
7856 * lisp.h (memory_warnings): Fix prototype.
7857
7858 * cm.h (evalcost): Fix prototype.
7859
7860 * cm.c (evalcost): Fix arg type.
7861
c532d349
DN
78622010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7863
7864 * term.c (term_clear_mouse_face, Fidentity):
7865 * syssignal.h (signal_handler_t):
7866 * lisp.h (memory_warnings):
7867 * coding.h (preferred_coding_system):
7868 * cm.h (evalcost):
7869 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7870
c0b36d46
EZ
78712010-07-02 Eli Zaretskii <eliz@gnu.org>
7872
7873 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7874 from prototypes.
7875
7876 * msdos.h (load_pixmap): Don't define away.
7877
383e0970
J
78782010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7879
f57e2426
J
7880 * lisp.h:
7881 * atimer.h: Remove define for P_.
7882
7883 * alloc.c: Remove __P and P_ from .c and .m files.
7884 * atimer.c:
7885 * buffer.c:
7886 * callint.c:
7887 * category.c:
7888 * charset.c:
7889 * chartab.c:
7890 * cm.c:
7891 * coding.c:
7892 * composite.c:
7893 * data.c:
7894 * dired.c:
7895 * dispnew.c:
7896 * doc.c:
7897 * editfns.c:
7898 * emacs.c:
7899 * eval.c:
7900 * fileio.c:
7901 * filelock.c:
7902 * fns.c:
7903 * font.c:
7904 * fontset.c:
7905 * frame.c:
7906 * ftfont.c:
7907 * ftxfont.c:
7908 * gmalloc.c:
7909 * gtkutil.c:
7910 * image.c:
7911 * indent.c:
7912 * intervals.c:
7913 * keyboard.c:
7914 * keymap.c:
7915 * lread.c:
7916 * marker.c:
7917 * menu.c:
7918 * minibuf.c:
7919 * print.c:
7920 * process.c:
7921 * scroll.c:
7922 * search.c:
7923 * sound.c:
7924 * strftime.c:
7925 * syntax.c:
7926 * sysdep.c:
7927 * term.c:
7928 * terminal.c:
7929 * textprop.c:
7930 * unexalpha.c:
7931 * w32console.c:
7932 * w32fns.c:
7933 * w32font.c:
7934 * w32menu.c:
7935 * w32term.c:
7936 * w32uniscribe.c:
7937 * window.c:
7938 * xdisp.c:
7939 * xfaces.c:
7940 * xfns.c:
7941 * xfont.c:
7942 * xftfont.c:
7943 * xmenu.c:
7944 * xselect.c:
7945 * xterm.c: Likewise.
7946
383e0970 7947 Remove P_ and __P macros.
f57e2426
J
7948 * atimer.h: Remove P_ and __P macros.
7949 * buffer.h:
383e0970
J
7950 * category.h:
7951 * ccl.h:
7952 * character.h:
7953 * charset.h:
7954 * cm.h:
7955 * coding.h:
7956 * composite.h:
7957 * dispextern.h:
7958 * disptab.h:
9e892c8d 7959 * dosfns.h:
383e0970
J
7960 * font.h:
7961 * fontset.h:
7962 * frame.h:
7963 * gtkutil.h:
7964 * indent.h:
7965 * intervals.h:
7966 * keyboard.h:
7967 * keymap.h:
7968 * lisp.h:
7969 * macros.h:
7970 * md5.h:
7971 * menu.h:
7972 * msdos.h:
7973 * nsterm.h:
7974 * puresize.h:
7975 * region-cache.h:
7976 * syntax.h:
7977 * syssignal.h:
7978 * systime.h:
7979 * termhooks.h:
9e892c8d 7980 * w32font.h:
383e0970
J
7981 * w32term.h:
7982 * widget.h:
7983 * window.h:
7984 * xgselect.h:
7985 * xsettings.h:
7986 * xterm.h: Likewise.
7987
98601119
DN
79882010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7989
d9170db5
DN
7990 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7991
98601119
DN
7992 Cleanup old code.
7993 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7994 * syssignal.h: Remove code for Lynx, not supported anymore.
7995 * vm-limit.c: Remove unused code the depends on emacs not being
7996 defined and NO_LIM_DATA being defined.
7997 * mem-limits.h: Remove dead code.
7998
1f984e12
J
79992010-07-01 Jan Djärv <jan.h.d@swipnet.se>
8000
c49d071a
J
8001 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
8002
9d5405ec
J
8003 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
8004 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
8005
7a18115b
J
8006 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
8007 parameters, they are already absolute.
8008
a628ad9d
JB
8009 * nsterm.m (x_set_window_size, initFrameFromEmacs):
8010 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 8011
a628ad9d 8012 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 8013
a628ad9d
JB
8014 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
8015 Update FRAME_TOOLBAR_HEIGHT.
581a8100 8016
a628ad9d
JB
8017 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
8018 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 8019
c1ef4455
CY
80202010-06-30 Chong Yidong <cyd@stupidchicken.com>
8021
bba3e508
SM
8022 * frame.c (get_future_frame_param, Fmake_terminal_frame):
8023 Don't check default-frame-alist.
c1ef4455 8024
ce8f5a9a
AS
80252010-06-30 Andreas Schwab <schwab@linux-m68k.org>
8026
8027 * process.c (create_process): Avoid using invalid file descriptors.
8028
8029 * callproc.c (child_setup): Avoid closing a file descriptor twice.
8030
bf935339
J
80312010-06-30 Jan Djärv <jan.h.d@swipnet.se>
8032
8033 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
8034 Improve documentation. Return font regardless of use_system_font.
8035 (syms_of_xsettings): Improve documentation for font-use-system-font.
8036
7c33a057
CY
80372010-07-10 Chong Yidong <cyd@stupidchicken.com>
8038
2ec1b5ee
CY
8039 * xfaces.c (realize_face): Garbage the frame if a face is removed
8040 (Bug#6593).
8041
80422010-07-05 Andreas Schwab <schwab@linux-m68k.org>
8043
8044 * keyboard.c: Remove duplicate <setjmp.h>.
8045 (read_key_sequence): Remove volatile qualifiers.
8046
80472010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8048
8049 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
8050 (struct glyph_row): New members left_fringe_offset and
8051 right_fringe_offset.
8052
8053 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
8054 specially.
8055 * w32term.c (w32_draw_fringe_bitmap): Likewise.
8056 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
8057
8058 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 8059 Take account of bitmap offset.
2ec1b5ee
CY
8060 (draw_window_fringes): Take account of window vscroll.
8061 (update_window_fringes): Likewise. Extend top-aligned top indicator
8062 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
8063 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
8064 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
8065
80662010-07-04 Juanma Barranquero <lekktu@gmail.com>
8067
8068 * w32fns.c (Qtooltip): Declare.
8069 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
8070
80712010-07-03 Jan Djärv <jan.h.d@swipnet.se>
8072
8073 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
8074 grab on just Press (Bug#6499).
8075
80762010-07-02 Chong Yidong <cyd@stupidchicken.com>
8077
8078 * frame.c (Qtooltip): New var.
8079 (delete_frame): Use it. Fix faulty if statement. Don't update
8080 mode line for tooltip frames. Suggested by Martin Rudalics.
8081
8082 * xfns.c (x_create_tip_frame):
8083 * w32fns.c (x_create_tip_frame): Use it.
8084
80852010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
8086
8087 * xftfont.c (xftfont_open): Check font width one by one also when
8088 spacing is dual.
8089
8090 * ftfont.c (ftfont_open): Ditto.
8091
6259c2ec
GM
80922010-06-30 Glenn Morris <rgm@gnu.org>
8093
a46007e9
GM
8094 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
8095
6259c2ec
GM
8096 * Makefile.in (CANNOT_DUMP): Update for configure name change.
8097
8098 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
8099 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
8100 * s/darwin.h (SYSTEM_MALLOC):
8101 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
8102
5d1d3d04
J
81032010-06-29 Jan Djärv <jan.h.d@swipnet.se>
8104
8105 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
8106 (ns_get_screen): Don't assign integer to f.
8107 (Fx_display_color_cells): Declarations before statements.
8108
e547b051
J
81092010-06-28 Jan Djärv <jan.h.d@swipnet.se>
8110
5fc8e5bc
J
8111 * xfns.c (x_default_font_parameter): Remove got_from_system
8112 (Bug#6526).
8113
e547b051 8114 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
8115 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
8116 New defines based on what configure finds.
e547b051
J
8117
8118 * xterm.c (XTflash): Use gtk_widget_get_window.
8119 (xg_scroll_callback): Use gtk_adjustment_get_upper and
8120 gtk_adjustment_get_page_size.
8121 (handle_one_xevent): Use gtk_widget_get_mapped.
8122 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
8123 messages.
8124
8125 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
8126
8127 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
8128 HAVE_GTK_FILE_SELECTION_NEW.
8129
bba3e508
SM
8130 * gtkutil.c (xg_display_open, xg_display_close):
8131 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
8132 (xg_display_open): Return type is void.
8133 (gtk_widget_set_has_window)
8134 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
8135 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
8136 (gtk_adjustment_set_page_increment)
8137 (gtk_adjustment_get_step_increment): #define these if not found
8138 by configure.
8139 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
8140 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
8141 Use gtk_widget_get_window.
e547b051
J
8142 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
8143 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
8144 (create_dialog): Use gtk_dialog_get_action_area and
8145 gtk_dialog_get_content_area.
8146 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
8147 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
8148 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
8149 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
8150 Use g_object_ref and g_object_unref.
8151 (xg_update_menu_item, xg_tool_bar_menu_proxy):
8152 Use gtk_widget_get_sensitive.
e547b051
J
8153 (xg_update_submenu): Use remove_submenu.
8154 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
8155 properties instead to get old x and y position.
8156 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
8157 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 8158 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
8159 (xg_get_tool_bar_widgets): New function.
8160 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
8161 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
8162 (toolbar_set_orientation): New #define based on if configure
8163 finds gtk_orientable_set_orientation.
8164 (xg_create_tool_bar): Call toolbar_set_orientation.
8165 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
8166 instead of gtk_box_pack_start_defaults.
8167
b9229673
CY
81682010-06-28 Chong Yidong <cyd@stupidchicken.com>
8169
8170 * cmds.c (Fdelete_backward_char): Move into Lisp.
8171
bbc803b0
DN
81722010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
8173
8174 * s/freebsd.h (BSD4_2): Remove redundant definition.
8175 bsd-common.h defines it already.
8176
6431f2e6
CY
81772010-06-27 Chong Yidong <cyd@stupidchicken.com>
8178
8179 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
8180 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
8181 tool-bar-mode, which are now set using these X resources at
8182 startup, to determine the defaults (Bug#2249).
8183
8184 * w32fns.c (Fx_create_frame):
8185 * nsfns.m (Fx_create_frame): Likewise.
8186
8187 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
8188
8c079ebb
JB
81892010-06-24 Juanma Barranquero <lekktu@gmail.com>
8190
8191 * gtkutil.c (xg_update_scrollbar_pos):
8192 Avoid C99 mid-block variable declaration.
8193
e9b7ab96
JD
81942010-06-22 Jan Djärv <jan.h.d@swipnet.se>
8195
bc869eca
JD
8196 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
8197
2b7e356a 8198 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
8199
8200 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
8201 if height is less than scroll bar min size.
8202 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
8203
e9b7ab96
JD
8204 * xfns.c (x_default_font_parameter): Try to open font from system
8205 before using it (bug#6478). Rename got_from_gconf to got_from_system.
8206
a628ad9d 82072010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
8208
8209 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
8210
70c4cfbb
EZ
82112010-06-20 Eli Zaretskii <eliz@gnu.org>
8212
8213 * xdisp.c (try_scrolling): When scroll-conservatively is set to
8214 most-positive-fixnum, be extra accurate when scrolling window
8215 start, to avoid missing the cursor line.
8216
ad5a12b5
EZ
82172010-06-19 Eli Zaretskii <eliz@gnu.org>
8218
8219 * xdisp.c (try_scrolling): Compute the limit for searching point
8220 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
8221 of 10 screen lines.
8222 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
8223 and
8224 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8225 for details.
8226
2a64315a 82272010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
8228
8229 * editfns.c (Fbyte_to_string): Pacify compiler.
8230
288cf4e9
SM
82312010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8232
8233 * lread.c (read1): Phase out old-style backquotes a bit more.
8234
6e6e5760
EZ
82352010-06-12 Eli Zaretskii <eliz@gnu.org>
8236
cbc4fd20
EZ
8237 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8238 bidimirror.h.
8239
8240 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8241
317fbf33
EZ
8242 * bidi.c (bidi_initialize): Remove explicit initialization of
8243 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 8244 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 8245 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
8246
8247 * biditype.h: New file.
8248
cbc4fd20
EZ
8249 * bidimirror.h: New file.
8250
6e6e5760
EZ
8251 * window.c (syms_of_window): Doc fix (bug#6409).
8252
4176cba2
RF
82532010-06-12 Romain Francoise <romain@orebokech.com>
8254
8255 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8256 ediff-hook.
8257
cb4bfcb5
GM
82582010-06-10 Glenn Morris <rgm@gnu.org>
8259
64c60c2f
GM
8260 * editfns.c (Fbyte_to_string): Pacify compiler.
8261
cb4bfcb5
GM
8262 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8263
2ec1b5ee
CY
82642010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8265
8266 * alloc.c (Fmake_byte_code): Don't access undefined argument
8267 (Bug#6517).
8268
82692010-06-25 Chong Yidong <cyd@stupidchicken.com>
8270
8271 * xdisp.c (next_element_from_image): Ensure that after-strings are
8272 read the next time we hit handle_stop (Bug#1336).
8273
82742010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8275
8276 * lread.c (read1): Signal error if #s is not followed by paren.
8277
82782010-06-19 Chong Yidong <cyd@stupidchicken.com>
8279
8280 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8281
8282 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8283
82842010-06-15 Glenn Morris <rgm@gnu.org>
8285
8286 * editfns.c (Fbyte_to_string): Pacify compiler.
8287
e454a4a3
SM
82882010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8289
8290 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8291 Check `object's type before accessing its guts.
8292
c1b1acc2
DN
82932010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8294
8295 * s/usg5-4.h: Fix previous change.
8296 Suggested by Lawrence Mitchell <wence@gmx.li>
8297
657d4c0b
AS
82982010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8299
8300 * minibuf.c (Fall_completions): Add more checks.
8301
9b27fd9f
JB
83022010-06-08 Juanma Barranquero <lekktu@gmail.com>
8303
8304 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8305
a99ebb40
DN
83062010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8307
d7c5d87d
DN
8308 * lread.c (X_OK): Remove, unused.
8309
0263a941
DN
8310 * dispnew.c: Remove obsolete comment.
8311
a99ebb40
DN
8312 Remove INCLUDED_FCNTL.
8313 * xterm.c (INCLUDED_FCNTL):
8314 * callproc.c (INCLUDED_FCNTL):
8315 * alloc.c (INCLUDED_FCNTL):
8316 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8317 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8318
13b5221f
MR
83192010-06-07 Martin Rudalics <rudalics@gmx.at>
8320
8321 * window.c (Fselect_window): Move `record_buffer' up to the
8322 beginning of this function, so the buffer gets recorded
8323 even if the selected window does not change.
8324 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8325
5220357f
JB
83262010-06-07 Juanma Barranquero <lekktu@gmail.com>
8327
8328 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8329 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8330
3085237c
DN
83312010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8332
8333 Remove BSTRING related code, all platforms define it.
8334 * s/usg5-4.h (BSTRING): Remove definition.
8335 * s/template.h (BSTRING):
8336 * s/msdos.h (BSTRING):
8337 * s/ms-w32.h (BSTRING):
8338 * s/hpux10-20.h (BSTRING):
8339 * s/gnu-linux.h (BSTRING):
8340 * s/darwin.h (BSTRING):
8341 * s/cygwin.h (BSTRING):
8342 * s/bsd-common.h (BSTRING):
8343 * s/aix4-2.h (BSTRING): Likewise.
8344 * sysdep.c: Remove code depending on BSTRING not being defined.
8345
409f2919
JB
83462010-06-05 Juanma Barranquero <lekktu@gmail.com>
8347
8348 Remove obsolete macro BASE_LEADING_CODE_P.
8349 * character.h (BASE_LEADING_CODE_P): Remove.
8350 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8351 * buffer.c (Fset_buffer_multibyte):
8352 * indent.c (scan_for_column, compute_motion):
8353 * insdel.c (count_combining_before, count_combining_after):
8354 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8355
087fc47a
JB
83562010-06-04 Juanma Barranquero <lekktu@gmail.com>
8357
8358 Turn `directory-sep-char' into a noop.
8359
8360 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8361 (DIRECTORY_SEP): Define unconditionally.
8362
8363 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8364
8365 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8366 call dostounix_filename directly.
8367
8368 * fileio.c (CORRECT_DIR_SEPS): Remove.
8369 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8370 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8371 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8372 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8373
8374 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8375 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8376
0eb7675e
AS
83772010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8378
a628ad9d
JB
8379 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8380 (Bug#6346)
0eb7675e 8381
78edd3b7
JB
83822010-06-03 Juanma Barranquero <lekktu@gmail.com>
8383
8384 * ccl.c (Fccl_program_p): Fix typo in docstring.
8385
eb697db5
DN
83862010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8387
8388 Move UNEXEC definition to autoconf.
8389 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8390 * s/sol2-10.h (UNEXEC):
8391 * s/irix6-5.h (UNEXEC):
8392 * s/hpux10-20.h (UNEXEC):
8393 * s/gnu-linux.h (UNEXEC):
8394 * s/darwin.h (UNEXEC):
8395 * s/cygwin.h (UNEXEC):
8396 * s/bsd-common.h (UNEXEC):
8397 * s/aix4-2.h (UNEXEC):
8398 * m/alpha.h (UNEXEC): Likewise.
8399 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8400
aa3830c4
JB
84012010-06-03 Juanma Barranquero <lekktu@gmail.com>
8402
8403 Remove obsolete pre-unicode2 macros.
8404 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8405 * composite.c (composition_reseat_it):
8406 * data.c (Faset):
8407 * fns.c (Ffillarray):
8408 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8409 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8410
d234d13e
JL
84112010-06-03 Juri Linkov <juri@jurta.org>
8412
8413 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8414 (Fswitch_to_buffer): Remove unused variable `err'.
8415
0d4bcf4d
GM
84162010-06-03 Glenn Morris <rgm@gnu.org>
8417
e23dc1e2
GM
8418 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8419
05b09564
GM
8420 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8421 now that AH_BOTTOM does it.
8422
824e2978
GM
8423 * m/hp800.h (HAVE_ALLOCA):
8424 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8425
0d4bcf4d
GM
8426 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8427 Remove NOT_C_CODE tests, it is always true now.
8428
c55d2abf
DN
84292010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8430
08a494a3
DN
8431 Fix config.h includes.
8432 * xsettings.c:
8433 * xgselect.c:
8434 * nsterm.m:
8435 * nsselect.m:
8436 * nsimage.m:
8437 * nsfont.m:
8438 * nsfns.m:
8439 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8440 other files do.
8441
75934b1d
DN
8442 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8443
9f32a766
DN
8444 * s/sol2-6.h: Remove obsolete comments.
8445
c55d2abf
DN
8446 Remove unnecessary alloca.h includes.
8447 * keymap.c: Do not include alloca.h, config.h does that.
8448 * sysdep.c: Likewise. Do not define fwrite, not used.
8449
06ac62b4
SM
84502010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8451
8452 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8453 the HAVE_TERMIO where it belongs (bug#6149).
8454
1ab8293c
SM
84552010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8456
8457 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8458 of bug#6305).
8459
6dcfd253
EZ
84602010-05-30 Eli Zaretskii <eliz@gnu.org>
8461
8462 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8463 state is always cached (bug#6306).
8464
6d26bbb2
EZ
84652010-05-29 Eli Zaretskii <eliz@gnu.org>
8466
06fa4a23
EZ
8467 Fix cursor motion in bidi-reordered continued lines.
8468 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8469 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
8470 over continuation lines in bidi-reordered buffers.
8471 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
8472 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8473
f5783df3
MA
84742010-05-28 Michael Albinus <michael.albinus@gmx.de>
8475
8476 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8477
7d56b2dd
KH
84782010-05-28 Kenichi Handa <handa@m17n.org>
8479
8480 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8481 Don't sheck SPEC if it is nil.
8482 (font_list_entities): Call font_delete_unmatched if
b925d231 8483 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 8484
e58d4ff7
GM
84852010-05-28 Glenn Morris <rgm@gnu.org>
8486
8487 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8488
f1a5d776
CY
84892010-05-27 Chong Yidong <cyd@stupidchicken.com>
8490
8491 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8492 whether to trash.
8493 (internal_delete_file, Frename_file): Callers changed.
8494 (delete_by_moving_to_trash): Doc fix.
8495 (Fdelete_directory_internal): Don't move to trash.
8496
8497 * callproc.c (delete_temp_file):
8498 * buffer.c (Fkill_buffer): Callers changed.
8499
8500 * lisp.h: Update prototype.
8501
f44a59e6
CY
85022010-05-27 Chong Yidong <cyd@stupidchicken.com>
8503
8504 * xdisp.c (redisplay_window): After redisplay, check if point is
8505 still valid before setting it (Bug#6177).
8506
81ac4f35
GM
85072010-05-27 Glenn Morris <rgm@gnu.org>
8508
8509 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8510 Convert comments to Makefile format.
8511
8512 * Makefile.in (bootstrap-clean): No more Makefile.c.
8513
ccd89fb3
GM
85142010-05-26 Glenn Morris <rgm@gnu.org>
8515
90278cb6
GM
8516 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8517 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8518
ccd89fb3
GM
8519 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8520 Remove.
8521 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8522
b7050583
KH
85232010-05-26 Kenichi Handa <handa@m17n.org>
8524
8525 * composite.c (composition_compute_stop_pos): Fix condition for
8526 backward scanning.
8527
e5458003
GM
85282010-05-25 Glenn Morris <rgm@gnu.org>
8529
c345fe90
GM
8530 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8531 Move before TEMACS_LDFLAGS.
8532 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8533 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8534
2e0689ab
GM
8535 * Makefile.in (NOT_C_CODE): No longer define.
8536 (config.h): No longer include.
8537
8009a5e8
GM
8538 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8539 variables it may reference.
8540
e5458003
GM
8541 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8542 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8543
10f72a37
KH
85442010-05-25 Kenichi Handa <handa@m17n.org>
8545
8546 * dispextern.h (struct composition_it): New members rule_idx and
8547 charpos.
8548
8549 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8550 that the character positions of IT point the last character of the
8551 current grapheme cluster.
8552 (next_element_from_composition): Don't change character positions
8553 of IT.
8554 (append_composite_glyph): Set glyph->charpos to
8555 it->cmp_it.charpos.
8556
8557 * composite.c (autocmp_chars): Change the first argument to RULE,
8558 and try composition with RULE only.
8559 (composition_compute_stop_pos): Record the index number of the
8560 composition rule in CMP_IT->rule_idx.
8561 (composition_reseat_it): Call autocmp_chars repeatedly until the
8562 correct rule of the composition is found.
8563 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8564 is at the last character of the current grapheme cluster when
8565 CMP_IT->reversed_p is nonzero.
8566
171eda53 85672010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 8568
171eda53
SM
8569 * editfns.c (Fbyte_to_string): New function.
8570
66a9f7f4
SM
85712010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8572
8573 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8574 Suggested by Masatake YAMATO <yamato@redhat.com>.
8575
d8c315d1
EZ
85762010-05-23 Eli Zaretskii <eliz@gnu.org>
8577
171eda53 8578 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 8579
f5b416d2 85802010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8581
8582 * s/netbsd.h: If terminfo is found, use it in preference to
8583 termcap. (Bug#6190) [Backport from trunk]
8584
0416466c
EZ
85852010-05-19 Eli Zaretskii <eliz@gnu.org>
8586
11117830 8587 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
8588
8589 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8590 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8591 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8592 and maxpos members instead of start.pos and end.pos, respectively.
8593
8594 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8595 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8596 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
8597 (try_window_reusing_current_matrix, try_window_id):
8598 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
8599 (init_from_display_pos, init_iterator): Use EMACS_INT for
8600 character and byte positions.
66a9f7f4 8601 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
8602 arguments for minimum and maximum buffer positions seen by
8603 display_line for this row. Don't use iterator to find the
8604 position following the maximum one; instead, increment the
11117830
EZ
8605 position found by display_line directly. Fix logic; eol_pos
8606 should be tested before the rest. Handle the case of characters
8607 delivered from display vector (bug#6036). Fix tests related to
8608 it->method. Handle the truncated_on_right_p rows.
8609 (RECORD_MAX_MIN_POS): New macro.
8610 (display_line): Use it to record the minimum and maximum buffer
8611 positions for glyphs in the row being assembled. Record the
8612 position of the newline that terminates the line. If word wrap is
8613 in effect, restore minimum and maximum positions seen up to the
8614 wrap point, when iterator returns to it.
8615 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8616 row and cursor not already at point. Restore original pre-bidi
8617 code for unidirectional buffers.
d36fe237
EZ
8618
8619 * dispnew.c (increment_row_positions, check_matrix_invariants):
8620 Increment and check row->start.pos and row->end.pos, in addition
8621 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8622
11117830
EZ
8623 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8624 Display truncated_on_left_p and truncated_on_right_p flags.
8625 Formatting fixes.
8626 (pmtxrows): Display the ordinal number of each row. Don't display
8627 rows beyond the last one.
8628
8629 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8630 it is not copied by bidi_copy_it.
8631
6e83d800
EZ
86322010-05-22 Eli Zaretskii <eliz@gnu.org>
8633
8634 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8635 (Bug#6237)
8636
110683ad
CY
86372010-05-22 Chong Yidong <cyd@stupidchicken.com>
8638
8639 * image.c (Fimage_flush): Rename from image-refresh.
8640
98fe5161
CY
86412010-05-21 Chong Yidong <cyd@stupidchicken.com>
8642
8643 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8644 just one window.
8645
8646 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8647 (clear_image_cache): If the number of cached images is unusually
8648 large, decrease the cache eviction delay (Bug#6230).
8649
e8752c66
GM
86502010-05-21 Glenn Morris <rgm@gnu.org>
8651
66dbf213
GM
8652 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8653 Move these rules to ns.mk.
8654 * ns.mk: New file.
8655
04384b2d
GM
8656 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8657
e8752c66
GM
8658 * Makefile.in (CANNOT_DUMP): New, set by configure.
8659 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8660
2e2bbddb
JL
86612010-05-20 Juri Linkov <juri@jurta.org>
8662
8663 * fileio.c (Fdelete_file): Change interative spec to use
8664 `read-file-name' like in `find-file-read-args' where the default
8665 value is `default-directory' instead of `buffer-file-name'.
8666 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8667
31c4aaf6
KR
86682010-05-20 Kevin Ryde <user42@zip.com.au>
8669
8670 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8671 (Voverriding_terminal_local_map, Vsystem_key_alist)
8672 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8673
9d5cf9b6
GM
86742010-05-20 Glenn Morris <rgm@gnu.org>
8675
8676 * Makefile.in (DEPDIR): New constant.
8677 (DEPFLAGS): Set with configure, not cpp.
8678 (MKDEPDIR): New, set by configure.
8679 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8680 (clean): Use $DEPDIR.
8681 (deps_frag): Include from configure.
8682 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8683 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8684
bba3e508
SM
8685 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8686 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 8687
7f34aec3
GM
86882010-05-19 Glenn Morris <rgm@gnu.org>
8689
d494e8f2
GM
8690 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8691
c1d0dcfd
GM
8692 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8693 (GNULIB_VAR): Remove.
8694 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8695
8696 * m/ibms390x.h (LINKER):
8697 * m/macppc.h (LINKER) [GNU_LINUX]:
8698 * s/aix4-2.h (ORDINARY_LINK):
8699 * s/cygwin.h (LINKER):
8700 * s/darwin.h (ORDINARY_LINK):
8701 * s/gnu.h (ORDINARY_LINK):
8702 * s/netbsd.h (LINKER):
8703 * s/usg5-4.h (ORDINARY_LINK):
8704 Move to configure.
8705
7f34aec3
GM
8706 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8707
754790b6
CY
87082010-05-18 Chong Yidong <cyd@stupidchicken.com>
8709
8710 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8711 prevent stack overflow if number of arguments is too large
8712 (Bug#6214).
8713
161e44d1
JB
87142010-05-18 Juanma Barranquero <lekktu@gmail.com>
8715
8716 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8717
be4ff9da
GM
87182010-05-18 Glenn Morris <rgm@gnu.org>
8719
9539dc5d
GM
8720 * s/gnu-linux.h: Combine two conditionals.
8721
8722 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
8723 $(POST_ALLOC_OBJ).
8724
40dc6bf4
GM
8725 * Makefile.in (RALLOC_OBJ): New, set by configure.
8726 (rallocobj): Replace with the previous variable.
8727 (otherobj): Use $RALLOC_OBJ.
8728
8729 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8730 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8731
be4ff9da
GM
8732 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8733 (gmallocobj, vmlimitobj): Replace with previous two variables.
8734 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8735
16455a85
GM
87362010-05-17 Glenn Morris <rgm@gnu.org>
8737
8738 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8739 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8740
5fdb7468
GM
87412010-05-16 Glenn Morris <rgm@gnu.org>
8742
7ca1f3f9
GM
8743 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8744
7541dad5
GM
8745 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8746
da53fab9
GM
8747 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8748 trailing "/".
8749
b02a6645
GM
8750 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8751 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8752
8877ca0f
GM
8753 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8754 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8755 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8756 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8757 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8758
5fdb7468
GM
8759 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8760 Remove ${STARTFLAGS}, nothing ever sets it.
8761
95adb4b1
DN
87622010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8763
8764 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8765
676b6304
GM
87662010-05-16 Glenn Morris <rgm@gnu.org>
8767
9beab9ce
GM
8768 * Makefile.in (LIBX_BASE): Always define.
8769
8a95f0e7
GM
8770 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8771
676b6304
GM
8772 * Makefile.in (LIBXT): Always define.
8773
6e546d18
GM
87742010-05-15 Glenn Morris <rgm@gnu.org>
8775
4235ca47 8776 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 8777
6e546d18
GM
8778 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8779 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8780
8c5ff6dd
KR
87812010-05-15 Ken Raeburn <raeburn@raeburn.org>
8782
560bb7ae 8783 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
8784 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8785
8b4eb796
KR
8786 * emacs.c (main): Initialize initial-environment and
8787 process-environment before generating from env, not after.
8788
8c5ff6dd
KR
8789 Handle --version reasonably in CANNOT_DUMP configuration.
8790 * emacs.c (emacs_version, emacs_copyright): New string variables.
8791 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8792 (syms_of_emacs): Defvar them, and initialize them from the C
8793 string variables.
8794 (main): If initialization hasn't been done, print initial version
8795 info from the C strings, instead of starting an interactive session.
8796
dbd3f723
EZ
87972010-05-15 Eli Zaretskii <eliz@gnu.org>
8798
d20e1419
EZ
8799 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8800 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
8801 (bidi_paragraph_init): Remove redundant assertion that we are at
8802 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
8803
8804 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8805 (syms_of_xdisp): Defsubr it.
8806
d36fe237
EZ
8807 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8808
dbd3f723
EZ
8809 * Makefile.in: Fix MSDOS-related comments.
8810
02be533b
GM
88112010-05-15 Glenn Morris <rgm@gnu.org>
8812
1a82cca9
GM
8813 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8814 (really-lwlib, really-oldXMenu): Always define.
8815 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8816
3df7b338
GM
8817 * Makefile.in: Simplify cpp conditional.
8818
2b5f541b
GM
8819 * Makefile.in (${ns_appdir}): Simplify using umask.
8820
02be533b
GM
8821 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8822
4e2db1fe
SM
88232010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8824
8825 * eval.c (specbind): Remove left-over duplicate test.
8826 Disallow let-binding frame-local vars. Add comment.
8827
4b292a22
EZ
88282010-05-14 Eli Zaretskii <eliz@gnu.org>
8829
2fe72643 8830 Make the cache of bidi iterator states dynamically allocated.
1edbd309 8831 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
8832 (bidi_init_it): Call it.
8833 (bidi_cache_iterator_state): Enlarge the cache if needed.
8834
4e2db1fe 8835 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
8836 bidi_get_next_char_visually. All callers changed.
8837
82ebc97b
KH
88382010-05-14 Kenichi Handa <handa@m17n.org>
8839
8840 * dispextern.h (struct composition_it): New member reversed_p.
8841
8842 * composite.c (composition_compute_stop_pos): Search backward if
8843 ENDPOS < CHARPOS.
8844 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8845 Set CMP_IT->reversed_p.
b4b6e17e 8846 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 8847
4e2db1fe
SM
8848 * xdisp.c (set_iterator_to_next):
8849 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
8850 scanning backward. Call composition_compute_stop_pos if scan
8851 direction is changed.
8852 (next_element_from_buffer): Call composition_compute_stop_pos with
8853 negative ENDPOS if we are scanning backward.
8854 (next_element_from_composition): Pay attention to
8855 IT->cmp_it.reversed_p.
8856
0e5d7800
KH
88572010-05-14 Kenichi Handa <handa@m17n.org>
8858
560bb7ae 8859 * font.c (font_range): Return the range for the font found at first.
0e5d7800 8860
cb027b32
GM
88612010-05-14 Glenn Morris <rgm@gnu.org>
8862
177b0288
GM
8863 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8864
fbc00890
GM
8865 * Makefile.in (mktime, X11, register): Move undefs to configure.
8866
f14d1dfd
GM
8867 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8868 (MSDOS_X_OBJ): New variable.
8869 (MSDOS_SUPPORT_REAL): New constant.
8870 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8871 (obj): Use MSDOS_X_OBJ.
8872 (lisp): Use MSDOS_SUPPORT as a variable.
8873
11842bd8
GM
8874 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8875 (GPM_MOUSE_SUPPORT): Now it's a constant.
8876 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8877 not cpp.
8878
489d31a4 8879 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 8880 (ns_appresdir): Remove, unused.
e20f1f07 8881
489d31a4
GM
8882 * Makefile.in (SHELL): Move outside cpp section.
8883
cb027b32
GM
8884 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8885
5a903aa9
GM
88862010-05-13 Glenn Morris <rgm@gnu.org>
8887
3369c79f
GM
8888 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8889 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8890
d5e982a6
GM
8891 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8892 HAVE_WINDOW_SYSTEM must be too.
8893
6192e163
GM
8894 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8895 (lisp): Remove WINNT_SUPPORT.
8896
472c5d6b
GM
8897 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8898 Let configure set these variables (to empty) in this case as well.
8899
0116466b
GM
8900 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8901 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8902
5a903aa9
GM
8903 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8904 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8905 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8906 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8907 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 8908 the values output by configure.
5a903aa9
GM
8909 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8910
1a0d7c06
GM
89112010-05-12 Glenn Morris <rgm@gnu.org>
8912
b5457f14
GM
8913 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8914 (LINKER_WAS_SPECIFIED): Remove.
8915
1a0d7c06
GM
8916 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8917 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8918 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8919 * s/cygwin.h (LIB_GCC):
8920 * s/freebsd.h (LIB_GCC):
8921 * s/gnu-linux.h (LIB_GCC):
8922 * s/msdos.h (LIB_GCC):
8923 * s/netbsd.h (LIB_GCC):
8924 Move to configure.
8925
d1ddd1d0 89262010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
8927
8928 * ftfont.c: Fix incorrect parentheses of #if condition for
8929 definining M17N_FLT_USE_NEW_FEATURE.
8930
acddf8ae
GM
89312010-05-11 Glenn Morris <rgm@gnu.org>
8932
8933 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8934 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8935
ae5e04fa
EZ
89362010-05-10 Eli Zaretskii <eliz@gnu.org>
8937
8938 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8939 unibyte buffers. See
8940 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8941
7490175b
GM
89422010-05-10 Glenn Morris <rgm@gnu.org>
8943
97efb629
GM
8944 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8945 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8946 (LIBES): Use LIBS_SYSTEM as a variable.
8947 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8948 * s/aix4-2.h (LIBS_SYSTEM):
8949 * s/freebsd.h (LIBS_SYSTEM):
8950 * s/hpux10-20.h (LIBS_SYSTEM):
8951 * s/sol2-6.h (LIBS_SYSTEM):
8952 * s/unixware.h (LIBS_SYSTEM):
8953 Move to configure.
8954
7490175b
GM
8955 * s/aix4-2.h (MAIL_USE_LOCKF):
8956 * s/bsd-common.h (MAIL_USE_FLOCK):
8957 * s/darwin.h (MAIL_USE_FLOCK):
8958 * s/gnu-linux.h (MAIL_USE_FLOCK):
8959 * s/irix6-5.h (MAIL_USE_FLOCK):
8960 * s/template.h (MAIL_USE_FLOCK):
8961 Move to configure.
8962
0235128c 89632010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
8964
8965 * Version 23.2 released.
8966
0235128c 89672010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
8968
8969 * composite.c (autocmp_chars): Save point as marker before calling
8970 auto-composition-function (Bug#5984).
8971
8972 * lisp.h (restore_point_unwind): Add prototype.
8973
8974 * fileio.c (restore_point_unwind): Remove static attribute.
8975
0235128c 89762010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
8977
8978 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8979 new feature of libotf and m17n-flt.
0235128c
SM
8980 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8981 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
8982 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8983 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8984 that OUT is NULL. Use OTF_drive_gsub_with_log and
8985 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8986 OTF_drive_gpos.
8987 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
8988 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8989 Setup mflt_enable_new_feature and mflt_try_otf.
8990
4721152c
J
89912010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8992
8993 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8994
8995 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8996 box and toolbar (Bug #6139).
8997 (xg_create_tool_bar): Remove comment (Bug #6139).
8998 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8999 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
9000
ee0a16cf
JB
90012010-05-08 Juanma Barranquero <lekktu@gmail.com>
9002
9003 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
9004 Update dependencies.
9005
96d79611
EZ
90062010-05-08 Eli Zaretskii <eliz@gnu.org>
9007
9008 * fringe.c (update_window_fringes): Set up truncation bitmaps for
9009 R2L lines.
9010
40c17879
GM
90112010-05-08 Glenn Morris <rgm@gnu.org>
9012
7b42b29f
GM
9013 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
9014
40c17879
GM
9015 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
9016 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
9017 (termcapobj): Replace with TERMCAP_OBJ.
9018 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
9019 (LIBES): Use LIBS_TERMCAP as a variable.
9020
9021 * s/freebsd.h (osreldate.h): No longer include, since this file
9022 does not use __FreeBSD_version any more.
9023
9024 * s/aix4-2.h (TERMINFO):
9025 * s/cygwin.h (TERMINFO):
9026 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9027 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
9028 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9029 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
9030 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
9031 * s/irix6-5.h (TERMINFO):
9032 * s/netbsd.h (LIBS_TERMCAP):
9033 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
9034 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
9035 * s/usg5-4.h (TERMINFO):
9036 Move to configure.
9037
94b612ad
SM
90382010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
9039
9040 * eval.c (unbind_to): Don't unbind a local binding into the global
9041 binding when the local binding disappeared. Inversely, don't unbind
9042 a global binding into a newly created local binding.
9043 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
9044 can specify the frame to use, when applicable. Adjust callers.
9045
15e12598 90462010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 9047 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
9048
9049 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
9050
f724825e
EZ
90512010-05-07 Eli Zaretskii <eliz@gnu.org>
9052
5cba3209
EZ
9053 * w32fns.c: Include w32.h.
9054 (Fw32_shell_execute): Decode the error message before passing it
9055 to `error'. (Bug#6126)
9056
d16bdfc3
EZ
9057 * msdos.c (dos_set_window_size):
9058 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
9059 instead of `XSYMBOL (foo)->value'.
9060
59d93e87
EZ
90612010-05-07 Eli Zaretskii <eliz@gnu.org>
9062
9fdec8bc
EZ
9063 Fix the MS-DOS build, broken by autoconfiscation.
9064
9065 * Makefile.in: Don't use Make-style comments past the "start of
9066 cpp stuff" line.
9067 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
9068
9069 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
9070 edited directly by msdos/sed1v2.inp).
f724825e 9071
2f86b22b
GM
90722010-05-07 Glenn Morris <rgm@gnu.org>
9073
9074 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
9075 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
9076 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
9077 move out of cpp section.
9078 * s/freebsd.h (LD_SWITCH_SYSTEM):
9079 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
9080 * s/netbsd.h (LD_SWITCH_SYSTEM):
9081 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
9082
49ebbd65
DN
90832010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
9084
9085 Define LIB_STANDARD and START_FILES using autoconf.
9086 * s/usg5-4.h (LIB_STANDARD):
9087 * s/netbsd.h (START_FILES):
9088 * s/irix6-5.h (LIB_STANDARD):
9089 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
9090 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9091 * s/freebsd.h (START_FILES):
9092 * s/darwin.h (START_FILES):
9093 * s/cygwin.h (START_FILES):
9094 * s/aix4-2.h (LIB_STANDARD):
9095 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
9096 * Makefile.in (STARTFILES): Rename to START_FILES, define using
9097 autoconf, not cpp.
9098
d43c06d6
DN
90992010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
9100
28823648
DN
9101 Remove NEED_BSDTTY and NEED_UNISTD_H.
9102 * s/hpux10-20.h (NEED_BSDTTY): Remove.
9103 * s/aix4-2.h (NEED_UNISTD_H): Remove.
9104 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
9105 <sys/ptyio.h> and <unistd.h>.
9106
aca00430
DN
9107 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
9108
d43c06d6
DN
9109 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
9110 * s/gnu.h (START_FILES): Remove empty definition.
9111
3e56b11d
JD
91122010-05-06 Jan Djärv <jan.h.d@swipnet.se>
9113
9114 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
9115
e3cf0cde
GM
91162010-05-06 Glenn Morris <rgm@gnu.org>
9117
9118 * Makefile.in (CPP, LN_S): Remove unused variables.
9119
774b9a60
SM
91202010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
9121
9122 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
9123
4ab92842
LM
91242010-05-05 Lawrence Mitchell <wence@gmx.li>
9125
9126 * m/sparc.h: Fix typo in earlier change.
9127
178f2507
SM
91282010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
9129
9130 Misc tweaks.
9131 * eval.c (Fdefvaralias): Remove unintended nested if.
9132 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
9133
80f00217 91342010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
9135
9136 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
9137
ef03a4e6
DN
91382010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9139
58eb6cf0
DN
9140 Remove BSD_PGRPS.
9141 * s/bsd-common.h (BSD_PGRPS): Remove undef.
9142 * s/gnu-linux.h (BSD_PGRPS): Remove.
9143 * term.c (dissociate_if_controlling_tty):
9144 * sysdep.c (narrow_foreground_group, widen_foreground_group)
9145 (init_sys_modes, reset_sys_modes):
9146 * emacs.c (main):
9147 * callproc.c (Fcall_process, child_setup): Remove code depending
9148 on BSD_PGRPS.
9149
ef03a4e6
DN
9150 Remove POSIX_SIGNALS.
9151 * s/usg5-4.h (POSIX_SIGNALS):
9152 * s/netbsd.h (POSIX_SIGNALS):
9153 * s/msdos.h (POSIX_SIGNALS):
9154 * s/ms-w32.h (POSIX_SIGNALS):
9155 * s/hpux11.h (POSIX_SIGNALS):
9156 * s/gnu.h (POSIX_SIGNALS):
9157 * s/gnu-linux.h (POSIX_SIGNALS):
9158 * s/freebsd.h (POSIX_SIGNALS):
9159 * s/darwin.h (POSIX_SIGNALS):
9160 * s/cygwin.h (POSIX_SIGNALS):
9161 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
9162 * s/unixware.h:
9163 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
9164 * process.c (create_process):
9165 * syssignal.h:
9166 * sysdep.c (wait_for_termination, init_signals):
9167 * process.c (create_process):
9168 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
9169 remove all code that assumes the contrary.
9170
49628785
GM
91712010-05-04 Glenn Morris <rgm@gnu.org>
9172
27a2cdfc
GM
9173 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
9174 variable.
9175 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9176 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
9177 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
9178 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
9179 LD_SWITCH_SYSTEM_tmp.
9180 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
9181 New variables, set by configure.
9182
eb21eab5
GM
9183 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9184 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
9185 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
9186 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
9187 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
9188
49628785
GM
9189 * s/aix4-2.h (C_SWITCH_SYSTEM):
9190 * m/alpha.h (C_SWITCH_MACHINE):
9191 Move to configure.in.
9192 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
9193 New variables, set by configure.
9194 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
9195 $c_switch_machine and $c_switch_system.
9196
7dff330b
DN
91972010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
9198
9199 * s/hpux10-20.h (LIB_STANDARD): New definition.
9200 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
9201 on it, not used anymore.
9202
53967e09
CY
92032010-05-03 Chong Yidong <cyd@stupidchicken.com>
9204
9205 * eval.c (internal_condition_case_n): Rename from
9206 internal_condition_case_2.
9207 (internal_condition_case_2): New function.
9208
9209 * xdisp.c (safe_call): Use internal_condition_case_n.
9210
9211 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
9212 (internal_delete_file, Frename_file): Callers changed.
9213
9214 * buffer.c (Fkill_buffer):
9215 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9216
9217 * lisp.h: Update prototypes.
9218
3dee6fdb
GM
92192010-05-03 Glenn Morris <rgm@gnu.org>
9220
9221 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9222 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9223 (LIBXT): Set with configure, not cpp.
9224 (LIBX): Remove.
9225 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9226
a101e0fb
DN
92272010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9228
9229 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9230 The FreeBSD is not needed, the default works, Solaris version is
9231 not needed, and the remaining case is not supported by configure.
9232
f63d0028
JD
92332010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9234
9235 * xsmfns.c (CHDIR_OPT): New define.
9236 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9237 restarting emacs.
9238
9239 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9240 shut_down_emacs.
9241
9242 * emacs.c (USAGE1): Mention --chdir.
9243 (main): Handle --chdir.
9244 (standard_args): Add --chdir.
9245 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9246 #5552).
9247
e4814a9f
DN
92482010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9249
cd03c74a
DN
9250 Remove LD_SWITCH_MACHINE.
9251 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9252 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9253
c3a398a1
DN
9254 Clean up IRIX code.
9255 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9256 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9257
87e7285c
DN
9258 Clean up AIX code.
9259 * m/ibmrs6000.inp: Remove file, unused.
9260 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9261 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9262 definition ...
9263 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9264
80f00217
JB
9265 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9266 unused.
e4814a9f 9267
59ca28de
EZ
92682010-05-01 Eli Zaretskii <eliz@gnu.org>
9269
197daef4
EZ
9270 Emulate POSIX_SIGNALS on MS-Windows.
9271
9272 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9273 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
9274
9275 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9276 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9277 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9278
80f00217
JB
9279 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9280 New stubs.
197daef4 9281
af7c7572
EZ
9282 Miscellaneous fixes of bidi display.
9283
59ca28de
EZ
9284 * xdisp.c (find_row_end): New function, refactored from display_line.
9285 (display_line): Use it.
017ea819
EZ
9286 (extend_face_to_end_of_line): In almost-filled rows, extend only
9287 if the row is R2L and not continued.
166e930d 9288 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 9289 Preserve overlay and string info in row->end.
166e930d
EZ
9290 (insert_left_trunc_glyphs): Support addition of left truncation
9291 glyphs to R2L rows.
b47e0dcf 9292 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
9293 glyph between adjacent windows. Fix a crash when a display string
9294 is continued to the next line. Don't return zero if cursor was
9295 found by `cursor' property of a display string.
b47e0dcf
EZ
9296 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9297 test for that explicitly.
59ca28de 9298
7acac9f4
GM
92992010-05-01 Glenn Morris <rgm@gnu.org>
9300
9301 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9302 for clarity.
9303 (OTHER_OBJ): Remove.
9304 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9305 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9306
45841e65
KK
93072010-05-01 Karel Klíč <kklic@redhat.com>
9308
9309 * fileio.c (Ffile_selinux_context): Context functions may return null.
9310
afc61943
DN
93112010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9312
80f00217 9313 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 9314
5a1bb006
GM
93152010-04-30 Glenn Morris <rgm@gnu.org>
9316
9317 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9318 (OTHER_OBJ): Define as a separate variable, for clarity.
9319
210af043
J
93202010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9321
2f8f196d 9322 * xsettings.c: Include limits.h and update file comment.
210af043 9323
0a7df391
GM
93242010-04-30 Glenn Morris <rgm@gnu.org>
9325
d5096f16
GM
9326 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9327 Set with configure, not cpp.
9328 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9329
7eb1ac33
GM
9330 * Makefile.in (mallocobj): Remove.
9331 (otherobj): Simplify using @OTHER_OBJ@.
9332
517d086b
GM
9333 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9334 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9335 Don't bother making nsgui.h dependency platform-specific.
9336
0a7df391
GM
9337 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9338
d6d23852
SM
93392010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9340
d2630aef
SM
9341 * process.c (read_process_output, exec_sentinel): Don't burp if the
9342 sentinel/filter kills the current buffer (bug#6060).
9343
f9dddf52 9344 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
9345 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9346 Remove unused var `args'.
9347 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9348 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9349 * doc.c (store_function_docstring): Use XSETCAR.
9350
f1e3642a
GM
93512010-04-28 Glenn Morris <rgm@gnu.org>
9352
faf535f8
GM
9353 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9354 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9355
c40f9449
GM
9356 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9357
658f86ca
GM
9358 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9359 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9360
bc0b5f61
GM
9361 * Makefile.in (FONT_OBJ): New, set by configure.
9362 (FONT_DRIVERS): Use $FONT_OBJ.
9363
294c50a0
GM
9364 * Makefile.in (LIBXMU): Set with configure, not cpp.
9365 * s/aix4-2.h (LIBXMU):
9366 * s/hpux10-20.h (LIBXMU):
9367 Remove definition, now set in configure.
9368
e6ec4e99
GM
9369 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9370
f1e3642a
GM
9371 * m/amdx86-64.h [i386]: Move this test to configure.in.
9372
c6ea2936
GM
93732010-04-27 Glenn Morris <rgm@gnu.org>
9374
8fdac2c3
GM
9375 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9376 * s/unixware.h (NEED_LIBW): Remove definition.
9377
986fb647
GM
9378 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9379 (TOOLKIT_LIBW): New, set by configure.
9380 (@X_TOOLKIT_TYPE@): No longer define it.
9381
c6ea2936
GM
9382 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9383 (MOTIF_LIBW): Set with configure, not cpp.
9384 * s/aix4-2.h (LIB_MOTIF):
9385 * s/gnu-linux.h (LIB_MOTIF):
9386 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9387
aaa36002
DN
93882010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9389
9390 Reduce CPP usage.
9391 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9392 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
9393 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9394 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 9395 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 9396
b678dd8b
GM
93972010-04-27 Glenn Morris <rgm@gnu.org>
9398
76cda504
GM
9399 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9400 since the defaults (set by the system file) are fine in most cases.
9401 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9402 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9403 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9404 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9405 Remove definitions, since they are set correctly in s/gnu-linux.h.
9406 * s/freebsd.h (START_FILES, LIB_STANDARD):
9407 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9408 * s/hpux10-20.h (START_FILES):
9409 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9410 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9411
b678dd8b
GM
9412 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9413 (MOTIF_LIBW): Use $LIBXP.
9414 (otherobj): Use $WIDGET_OBJ.
9415
9452ded1
DN
94162010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9417
7e10844c
DN
9418 * Makefile.in (LIBS_MACHINE): Remove, unused.
9419
9452ded1
DN
9420 Use autoconf instead of cpp for LIB_MATH.
9421 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9422 * s/cygwin.h (LIB_MATH): Likewise.
9423 * Makefile.in (LIB_MATH): Do not define with cpp.
9424 (LIBES): Use autoconf for LIB_MATH.
9425
fcebfc6a
KH
94262010-04-26 Kenichi Handa <handa@m17n.org>
9427
9428 * composite.c (Ffind_composition_internal): Fix the return value
9429 for an automatic composition.
9430
39e2ad1b
DN
94312010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9432
9433 Remove all NO_ARG_ARRAY uses.
9434 * fns.c (concat2, concat3, nconc2):
9435 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9436 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9437 * m/xtensa.h (NO_ARG_ARRAY):
9438 * m/template.h (NO_ARG_ARRAY):
9439 * m/sparc.h (NO_ARG_ARRAY):
9440 * m/sh3.h (NO_ARG_ARRAY):
9441 * m/mips.h (NO_ARG_ARRAY):
9442 * m/macppc.h (NO_ARG_ARRAY):
9443 * m/iris4d.h (NO_ARG_ARRAY):
9444 * m/intel386.h (NO_ARG_ARRAY):
9445 * m/ibms390x.h (NO_ARG_ARRAY):
9446 * m/ibms390.h (NO_ARG_ARRAY):
9447 * m/ibmrs6000.h (NO_ARG_ARRAY):
9448 * m/ia64.h (NO_ARG_ARRAY):
9449 * m/hp800.h (NO_ARG_ARRAY):
9450 * m/arm.h (NO_ARG_ARRAY):
9451 * m/amdx86-64.h (NO_ARG_ARRAY):
9452 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9453
adf4f59c
EZ
94542010-04-25 Eli Zaretskii <eliz@gnu.org>
9455
6bdf5d65
EZ
9456 * xdisp.c (display_line): Don't assume 2nd call to
9457 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
9458 (iterate_out_of_display_property): New function, body from pop_it.
9459 (pop_it): Use it.
adf4f59c 9460
dfbbda83
GM
94612010-04-24 Glenn Morris <rgm@gnu.org>
9462
9463 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9464 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9465 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9466 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9467
2d4018aa
EZ
94682010-04-24 Eli Zaretskii <eliz@gnu.org>
9469
a49884a6
EZ
9470 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9471 use `get_next_display_element' and `set_iterator_to_next' to
9472 advance to the next character, when looking for the character that
9473 begins the next row.
9474
76db6fcc 9475 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
9476 definition of "struct Lisp_Symbol".
9477
70eab5c1
GM
94782010-04-24 Glenn Morris <rgm@gnu.org>
9479
9480 * Makefile.in (CRT_DIR): New variable, set by configure.
9481 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9482 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9483
1ad4cc3d
DN
94842010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9485
e769f484
DN
9486 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9487
4196ff33
DN
9488 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9489
879b0ee4
DN
9490 Remove redundant flags.
9491 * s/freebsd.h (C_SWITCH_SYSTEM):
9492 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9493 * s/netbsd.h (C_SWITCH_SYSTEM):
9494 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9495 of these.
9496
03cbbcb8
DN
9497 Simplify m/intel386.h.
9498 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9499 user: ecrt0.c.
9500 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9501 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9502 the only user: s/unixware.h.
9503 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9504 from m/intel386.h.
bba3e508
SM
9505 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9506 Definitions moved here from m/intel386.h.
03cbbcb8 9507
1ad4cc3d
DN
9508 * m/mips.h: Remove #if 0 code.
9509
8785b888
EZ
95102010-04-23 Eli Zaretskii <eliz@gnu.org>
9511
728588cc
EZ
9512 Fix display of composed characters from L2R scripts in bidi buffers.
9513 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9514 After advancing IT past the composition, resync the bidi iterator
9515 with IT's position. (Bug#5977)
9516
a63f80b4
DN
95172010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9518
9519 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9520 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9521
ff5dec5c
SM
95222010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9523
9524 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9525
8785b888
EZ
95262010-04-23 Eli Zaretskii <eliz@gnu.org>
9527
58ccf243 9528 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
9529 * xdisp.c (pop_it): When the stack is popped after displaying
9530 from a string, bidi-iterate to exit from the text portion covered
9531 by the `display' property or overlay. (Bug#5988, bug#5920)
9532
feeb1604
DN
95332010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9534
8e324eb6
DN
9535 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9536 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9537
809fcaba
DN
9538 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9539 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9540
ed710380
DN
9541 Simplify STARTFILES definition.
9542 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9543 relying on Makefile.in to define it.
9544 * s/cygwin.h (START_FILES): Likewise.
9545 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9546
feeb1604
DN
9547 Clean up Solaris code.
9548 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9549 (LIB_MOTIF): Remove, configure takes care of this.
9550 (NOT_USING_MOTIF): Remove, unused.
9551 * xrdb.c: Remove #if 0-ed #include.
9552 (SYSV): Remove conditional for old SysV.
9553 * sysdep.c (closedir): Remove conditional code for Solaris,
9554 Solaris has closedir.
9555
a0d0b563
JD
95562010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9557
9558 * xsettings.c (read_and_apply_settings): Check if current_font is
9559 NULL before strcmp (Bug#6001).
9560
56bae7c7
DN
95612010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9562
9563 Clean up HP-UX files.
9564 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9565 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9566 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9567 * s/hpux10-20.h: ... to the only user, here.
9568
372b7a95
EZ
95692010-04-21 Eli Zaretskii <eliz@gnu.org>
9570
9571 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9572 use buffer-local values of paragraph-start and paragraph-separate.
9573 <paragraph_start_re, paragraph_separate_re>: Rename from
9574 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9575 (Bug#5992)
9576
f904c0f9
JD
95772010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9578
9579 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9580 current_tool_bar_style are new.
9581 (store_config_changed_event): Rename from store_font_changed_event.
9582 (XSETTINGS_TOOL_BAR_STYLE): New define.
9583 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9584 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9585 HAVE_XFT.
9586 (something_changedCB): store_font_changed_event is now
c4cc8b9a 9587 store_config_changed_event.
bba3e508
SM
9588 (parse_settings): Rename from parse_xft_settings.
9589 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 9590 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
9591 (apply_xft_settings): Take current settings as parameter. Do not
9592 call read_(xft)_settings.
9593 (read_and_apply_settings): New function.
bba3e508
SM
9594 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9595 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 9596 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
9597 Call read_and_apply_settings unconditionally.
9598 (xsettings_initialize): Call init_xsettings.
9599 (Ftool_bar_get_system_style): New function.
9600 (syms_of_xsettings): Define Qmonospace_font_name and
9601 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 9602 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 9603 dynamic-setting.
01c35094 9604 Move misplaced HAVE_GCONF.
f904c0f9
JD
9605
9606 * xsettings.h (Ftool_bar_get_system_style): Declare.
9607
9608 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9609 Qtext, Qboth, Qboth_horiz are new.
9610 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9611 Vtool_bar_style, tool_bar_max_label_size.
9612
9613 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9614
9615 * keyboard.c: QClabel is new.
9616 (parse_tool_bar_item): Take out QClabel from tool bar items.
9617 Try to construct a label if ther is no QClabel.
9618 (syms_of_keyboard): Intern :label as QClabel.
9619
9620 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9621 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9622 New.
9623
9624 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9625 dynamic-setting.el.
9626
9627 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9628 (xg_make_tool_item, xg_show_toolbar_item): New function.
9629 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9630 Call xg_make_tool_item to make a tool bar item.
9631 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9632
9633 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9634 into account for toolbars.
9635
c632dfda
JD
96362010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9637
9638 * data.c (make_blv): Declarations before code (Bug#5993).
9639
10efe302
GM
96402010-04-21 Glenn Morris <rgm@gnu.org>
9641
9642 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9643 Define using autoconf, not cpp.
9644 (LIBXSM): New variable, set by autoconf.
9645 (LIBXT): Use $LIBXSM.
9646
4285ac5a
DN
96472010-04-21 Dan Nicolaescu <local_user@dannlt>
9648
3ec759e7
DN
9649 Remove NOMULTIPLEJOBS, unused.
9650 * s/template.h (NOMULTIPLEJOBS):
9651 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9652
4285ac5a
DN
9653 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9654 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9655 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9656 detects -znocombreloc and passes it to the linker
9657 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9658
2807228d
GM
96592010-04-21 Glenn Morris <rgm@gnu.org>
9660
9661 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9662
574c05e2
KK
96632010-04-21 Karel Klíč <kklic@redhat.com>
9664
9665 * Makefile.in (LIBSELINUX_LIBS): New.
9666 (LIBES): Add $LIBSELINUX_LIBS.
9667 * eval.c, lisp.h (call7): New function.
9668 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9669 (Ffile_selinux_context, Fset_file_selinux_context):
9670 New functions.
9671 (Fcopy_file): New parameter preserve-selinux-context.
9672 (Frename_file): Preserve selinux context when renaming by copy-file.
9673
91eac4bb 96742010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 9675 Eli Zaretskii <eliz@gnu.org>
91eac4bb 9676
50426a04
JB
9677 Don't depend on cm.c or termcap.c on Windows, use stubs.
9678 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9679 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9680 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9681 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9682 (sys_tputs, sys_tgetstr): New stubs.
9683 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9684 (tputs, tgetstr): New; define to sys_*.
91eac4bb 9685
938efb77
JB
96862010-04-20 Juanma Barranquero <lekktu@gmail.com>
9687
9688 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9689
b4bf28b7
SM
96902010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9691
8b1e1112
SM
9692 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9693 Just signal a warning rather than an error when inside a let.
9694 (Fmake_variable_frame_local): Add the same test.
9695
933ac235
SM
9696 * font.c (syms_of_font): Make the style table vars read-only.
9697
b4bf28b7
SM
9698 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9699 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9700
9701 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9702
93d68d0c
EZ
97032010-04-20 Eli Zaretskii <eliz@gnu.org>
9704
9705 Fix R2L paragraph display on TTY.
9706
9707 * xdisp.c (unproduce_glyphs): New function.
9708 (display_line): Use it when produced glyphs are discarded from R2L
9709 glyph rows.
9710 (append_composite_glyph): In R2L rows, prepend the glyph rather
9711 than appending it.
9712
9713 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9714 rather than append it. Set up the resolved_level and bidi_type
9715 attributes of the appended glyph.
283ccc18
EZ
9716 (produce_special_glyphs): Mirror the backslash continuation
9717 character in R2L lines.
93d68d0c 9718
283ccc18 9719 Implement display of R2L paragraphs in GUI sessions.
26cdf528 9720
283ccc18
EZ
9721 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9722 append_stretch_glyph.
bba3e508
SM
9723 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9724 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
9725 (append_stretch_glyph): In reversed row, prepend the glyph rather
9726 than append it. Set resolved_level and bidi_type of the glyph.
9727 (extend_face_to_end_of_line): If the row is reversed, prepend a
9728 stretch glyph whose width is such that the rightmost glyph will be
9729 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
9730 TTY frames in testing whether a line needs face extension.
9731 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
9732 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9733 region face.
bba3e508
SM
9734 (set_cursor_from_row, display_line):
9735 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 9736 row->continuation_lines_width.
283ccc18
EZ
9737 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9738 are at ZV. Fixes a crash when reseated to ZV by
9739 try_window_reusing_current_matrix.
45903529
EZ
9740 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9741 which happens with R2L glyph rows. Fixes a crash when inserting a
9742 character at end of an R2L line.
283ccc18
EZ
9743 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9744 treat them as having zero-width characters. Improve comments.
9745 Don't reverse pos_before and pos_after for reversed glyph rows.
9746 Set cursor.x to negative value when the cursor might be on the
9747 left fringe.
9748 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9749 left fringe, not the right one.
f951a506
EZ
9750 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9751 (erase_phys_cursor): For reversed cursor_row, support cursor on
9752 the left fringe.
9753
283ccc18
EZ
9754 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9755 of continuation indicators on the fringes.
9756 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9757 left fringe.
9758
f951a506
EZ
9759 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9760 draw cursor on the left fringe.
9761
9762 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9763 cursor on the left fringe.
9764
f951a506
EZ
9765 * dispnew.c (update_text_area): Handle reversed desired rows when
9766 the cursor is on the left fringe.
9767 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9768 below, not by 0, for when the cursor is on the left fringe.
9769
3bb49aaf
JD
97702010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9771
9772 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9773 widget is a scrollbar.
9774
c0be27fd
KH
97752010-04-20 Kenichi Handa <handa@m17n.org>
9776
9777 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9778 only when the arg CHARSET_LIST is nil.
9779
ce5b453a
SM
97802010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9781
9782 Make variable forwarding explicit rather the using special values.
9783 Basically, this makes the structure of buffer-local values and object
9784 forwarding explicit in the type of Lisp_Symbols rather than use
9785 special Lisp_Objects for that. This tends to lead to slightly more
9786 verbose code, but is more C-like, simpler, and makes it easier to make
9787 sure we handled all cases, among other things by letting the compiler
9788 help us check it.
9789 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9790 Removing forwarding objects.
9791 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9792 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9793 explicit rather than hiding them inside Lisp_Object "values".
9794 (XFWDTYPE): New macro.
9795 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9796 (XBUFFER_LOCAL_VALUE): Remove.
9797 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9798 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9799 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9800 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9801 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9802 Remove the Lisp_Misc_* header.
9803 (struct Lisp_Buffer_Local_Value): Redefine.
9804 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9805 (struct Lisp_Misc_Any): Add filler to get the right size.
9806 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9807 Lisp_Intfwd.
9808 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9809 (DEFVAR_KBOARD): Allocate a forwarding object.
9810 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9811 (let_shadows_global_binding_p): New function.
9812 (union Lisp_Val_Fwd): New type.
9813 (make_blv): New function.
9814 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9815 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9816 (swap_in_symval_forwarding, find_symbol_value, Fset)
9817 (let_shadows_buffer_binding_p, set_internal, default_value)
9818 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9819 (Fkill_local_variable, Fmake_variable_frame_local)
9820 (Flocal_variable_p, Flocal_variable_if_set_p)
9821 (Fvariable_binding_locus):
9822 * xdisp.c (select_frame_for_redisplay):
9823 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9824 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9825 * frame.c (store_frame_param):
9826 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9827 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9828 value structure.
9829 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9830 (clone_per_buffer_values): Only adjust markers into the current buffer.
9831 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9832 (Fbuffer_local_value, set_buffer_internal_1)
9833 (swap_out_buffer_local_variables):
9834 Adapt to the new symbol value structure.
9835 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9836 (defvar_per_buffer): Take a new arg for the fwd object.
9837 (buffer_lisp_local_variables): Return a proper alist (different fix
9838 for bug#4138).
9839 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9840 (Fgarbage_collect): Don't handle buffer_defaults specially.
9841 (mark_object): Handle new symbol value structure rather than the old
9842 special Lisp_Misc_* objects.
9843 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9844 * term.c (set_tty_color_mode):
9845 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9846 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9847 a buffer_local_flags.
9848 * print.c (print_object): Get rid of impossible forwarding objects.
9849
fd3998ff
EZ
98502010-04-19 Eli Zaretskii <eliz@gnu.org>
9851
9852 * bidi.c (bidi_get_type, bidi_get_category)
9853 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
9854 (bidi_type_of_next_char, bidi_level_of_next_char):
9855 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 9856
e42cd1a7
JB
98572010-04-19 Juanma Barranquero <lekktu@gmail.com>
9858
9859 * dired.c (Ffile_attributes): Fix typo in docstring.
9860
6e104790 98612010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
9862
9863 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9864 NSInteger (Bug#5811).
9865
6e104790 98662010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
9867
9868 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9869 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9870
6e104790 98712010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
9872
9873 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9874
6e104790
SM
98752010-04-19 Chong Yidong <cyd@stupidchicken.com>
9876
9877 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9878 terminal frames (Bug#5837).
9879
37dcfea0
EZ
98802010-04-19 Eli Zaretskii <eliz@gnu.org>
9881
d1da276f
EZ
9882 * .gdbinit (xsubchartable): New command.
9883
37dcfea0
EZ
98842010-04-19 Eli Zaretskii <eliz@gnu.org>
9885
9886 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 9887 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
9888 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9889 and
9890 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9891
e9515805
SM
98922010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9893
9894 * alloc.c (Fpurecopy): Hash-cons if requested.
9895 (syms_of_alloc): Update purify-flag docstring.
9896
22aa44a8
JD
98972010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9898
9899 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9900 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9901
ebb5722e
EZ
99022010-04-17 Eli Zaretskii <eliz@gnu.org>
9903
9904 Fix a crash when an NSM character is inserted at BEGV.
9905
9906 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9907 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9908 NEUTRAL_B or UNKNOWN_BT.
9909
0f4442ef
EZ
99102010-04-16 Eli Zaretskii <eliz@gnu.org>
9911
9912 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9913 other rows with cursor unless they are different from this row and
9914 this row is part of a continued line. (Bug#5943)
9915
7d4e45f8
DN
99162010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9917
9918 * s/freebsd.h: Restore osreldate.h include.
9919 Suggested by Naohiro Aota.
9920
5ba5ec85
J
99212010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9922
9923 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9924
20af301d
CY
99252010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9926
9927 * s/cygwin.h: Avoid linking against static libgcc.
9928
a4b000fb
JL
99292010-04-15 Juri Linkov <juri@jurta.org>
9930
9931 * window.c: Add Qscroll_command.
9932 Remove Vscroll_preserve_screen_position_commands.
9933 (window_scroll_pixel_based, window_scroll_line_based): Check the
9934 `scroll-command' property on the last command instead of searching
9935 the last command in Vscroll_preserve_screen_position_commands.
9936 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9937 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9938 (scroll-preserve-screen-position): Doc fix.
9939 (Vscroll_preserve_screen_position_commands): Remove variable.
9940
bc319ba4
DN
99412010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9942
6bb24457
DN
9943 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9944
19d4c244
DN
99452010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9946
9947 Reduce cpp use in Makefile.in.
9948 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9949 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9950 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9951 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9952 (CRT0_COMPILE): Remove, inline it in the only user.
9953
32129746
JL
99542010-04-14 Juri Linkov <juri@jurta.org>
9955
9956 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9957 `scroll-up-command' and `M-v' from `scroll-down' to
9958 `scroll-down-command'.
9959
9013a7f8
JL
99602010-04-14 Juri Linkov <juri@jurta.org>
9961
9962 * window.c (Vscroll_preserve_screen_position_commands): New variable
9963 with the default value as the list of Qscroll_down and Qscroll_up.
9964 (window_scroll_pixel_based, window_scroll_line_based): Search the
9965 last command in the list Vscroll_preserve_screen_position_commands
9966 instead of comparing with Qscroll_up and Qscroll_down.
9967
4bef8d26
JD
99682010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9969
92848133
JD
9970 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9971 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9972 does that.
9973
4bef8d26
JD
9974 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9975 to zero.
9976
58b963f7
SM
99772010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9978
84164a0d
SM
9979 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9980
2b0a91e7
SM
9981 Try to solve the problem of spurious EOF chars in long lines of text
9982 sent to interactive subprocesses.
9983 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9984 (system_process_attributes): Remove unused var `ttotal'.
9985 * process.c (send_process): Don't bother breaking long line with EOF
9986 chars when talking to ttys any more.
9987 (wait_reading_process_output): Output a warning when called in such
9988 a way that it could block without being interruptible.
9989
58b963f7
SM
9990 Try to detect file modification within the same second.
9991 * buffer.h (struct buffer): New field modtime_size.
9992 * buffer.c (reset_buffer): Initialize it.
9993 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9994 (Fverify_visited_file_modtime): Check it.
9995 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9996 (Fset_visited_file_modtime): Set (or clear) it.
9997
01f5787b
SM
99982010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9999
10000 * process.c (status_notify): Remove unused var `ro'.
10001
83725342
JD
100022010-04-12 Jan Djärv <jan.h.d@swipnet.se>
10003
10004 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
10005 more than one visual (Bug#5938).
10006
b9465836
DN
100072010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
10008
50426a04
JB
10009 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
10010 Undefine.
b9465836 10011
8d9c8ece
DN
100122010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
10013
b1f52161
DN
10014 Remove C_SWITCH_SYSTEM_TEMACS.
10015 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
10016 (malloc, realloc, free): Use emacs, not temacs for conditional
10017 definition.
10018
10019 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
10020 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
10021
8d9c8ece
DN
10022 Use autoconf, not cpp for some variables.
10023 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
10024 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
10025 (ALL_CFLAGS): Use them as make variables.
10026 (really-lwlib, really-oldXMenu): Do not pass them.
10027
1ecb2d3f
JD
100282010-04-11 Jan Djärv <jan.h.d@swipnet.se>
10029
10030 * xmenu.c (apply_systemfont_to_dialog): New.
10031 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
10032
3a4fa2f2
SM
100332010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
10034
97e53006
SM
10035 * process.c (exec_sentinel): Preserve current-buffer.
10036
3a4fa2f2
SM
10037 * process.c (read_process_output): Move the save-current-buffer to
10038 apply to both the filter and the non-filter branches.
10039
88df7221
DN
100402010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
10041
10042 * s/msdos.h (UNEXEC): New definition.
10043
5634ff85
YM
100442010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10045
6eff5c3d
YM
10046 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
10047 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
10048
10049 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
10050 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
10051 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
10052 TRY_WINDOW_CHECK_MARGINS.
10053
10054 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
10055 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
10056 width only when it is for padding.
5634ff85 10057
b13aef54
J
100582010-04-09 Jan Djärv <jan.h.d@swipnet.se>
10059
10060 * xfns.c (Fx_show_tip): Call try_window in a loop until
10061 fonts_changed_p is zero (Bug#2423).
10062
21d28484
EZ
100632010-04-08 Eli Zaretskii <eliz@gnu.org>
10064
10065 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
10066 the end of TEXT_AREA. (Bug#5856)
10067
0269ef77
JD
100682010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10069
10070 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
10071 HAVE_GCONF.
10072
5930fe97
EZ
100732010-04-08 Eli Zaretskii <eliz@gnu.org>
10074
10075 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
10076 prev.orig_type, for resolving type of NSM. (Bug#5858)
10077
99852628
JD
100782010-04-08 Jan Djärv <jan.h.d@swipnet.se>
10079
10080 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
10081 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
10082 in current_font.
10083 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
10084 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
10085 New functions.
10086 (syms_of_xsettings): Initialize current_font.
10087 defsubr Sfont_get_system_normal_font.
99852628 10088
686b968e
JB
10089 * xsettings.h (Ffont_get_system_normal_font)
10090 (xsettings_get_system_normal_font): Declare.
99852628
JD
10091
10092 * xfns.c (extern xlwmenu_default_font): Remove.
10093 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
10094 to xlwmenu.c.
10095
10096 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
10097 menu items in UTF-8.
10098
2f8f196d 10099 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 10100 (apply_systemfont_to_menu): New function.
bba3e508
SM
10101 (set_frame_menubar, create_and_show_popup_menu):
10102 Call apply_systemfont_to_menu.
99852628 10103
7fc874c4
J
101042010-04-07 Jan Djärv <jan.h.d@swipnet.se>
10105
10106 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
10107 FRAME_LINE_TO_PIXEL_Y.
10108
10109 * xterm.c (x_set_window_size_1): Don't add border_width/height to
10110 pixelwidth/height.
10111
863bf481
DN
101122010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
10113
5e5a3b92
DN
10114 Simplify code for HP machines.
10115 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
10116 for GNU_LINUX, not needed.
10117 (UNEXEC, NEED_BSDTTY): Move definitions...
10118 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
10119
863bf481
DN
10120 * m/iris4d.h (UNEXEC): Move definition ...
10121 * s/irix6-5.h (UNEXEC): ... here.
10122
3e6bec3b
JD
101232010-04-04 Jan Djärv <jan.h.d@swipnet.se>
10124
10125 * xfns.c (set_machine_and_pid_properties): New function.
10126 (Fx_create_frame): Call set_machine_and_pid_properties.
10127
2912322b
SM
101282010-04-03 Eli Zaretskii <eliz@gnu.org>
10129
bba3e508
SM
10130 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
10131 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
10132 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
10133
2912322b
SM
10134 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
10135 in this function. (Bug#5703)
10136
101372010-04-03 Chong Yidong <cyd@stupidchicken.com>
10138
10139 * nsterm.h: Fix last change.
10140
c435b432
DN
101412010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
10142
a568f507
DN
10143 * m/intel386.h (NO_REMAP): Move definition ...
10144 * s/msdos.h (NO_REMAP): ... here.
10145
4cd9f6c2
DN
10146 * m/vax.h (CRT0_DUMMIES): Remove, unused.
10147
c435b432
DN
10148 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
10149 used on those platforms.
10150
42a2c622
DN
101512010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
10152
10153 Remove extern errno declarations.
10154 * xterm.c:
10155 * xrdb.c:
10156 * w32term.c:
10157 * unexec.c:
10158 * unexaix.c:
10159 * sysdep.c:
10160 * process.c:
10161 * lread.c:
10162 * keyboard.c:
10163 * floatfns.c:
10164 * filelock.c:
10165 * fileio.c:
10166 * emacs.c (main):
10167 * ecrt0.c:
10168 * dispnew.c:
10169 * callproc.c:
10170 * buffer.c: Remove errno extern declarations.
10171 * s/netbsd.h (NEED_ERRNO): Remove.
10172
8224f93d
DN
101732010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
10174
10175 Remove all uses of LIBX11_SYSTEM.
10176 * Makefile.in (LIBX11_SYSTEM): Remove.
10177 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
10178 instead.
10179
814062c7
EZ
101802010-04-01 Eli Zaretskii <eliz@gnu.org>
10181
ed68db4d
EZ
10182 Remove support for DJGPP v1.x (bug#5813).
10183
10184 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
10185 * s/msdos.h:
10186 * unexec.c (make_hdr, copy_text_and_data):
10187 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 10188 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
10189 (IT_set_terminal_modes, __write, _rename, gethostname)
10190 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
10191 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
10192 the value of __DJGPP__.
ed68db4d
EZ
10193 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
10194 compatibility code.
8224f93d
DN
10195 * lread.c:
10196 * gmalloc.c (memalign):
10197 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
10198 * emacs.c (main):
10199 * dosfns.c (init_dosfns):
ed68db4d
EZ
10200 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
10201
52f4d8d5
EZ
102022010-04-01 Eli Zaretskii <eliz@gnu.org>
10203
814062c7
EZ
10204 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
10205 string with `cursor' property comes from an `after-string'
10206 overlay. (Bug#5816)
10207
0dc2e11d
GM
102082010-04-01 Glenn Morris <rgm@gnu.org>
10209
10210 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
10211 Define as Makefile variables.
10212 (LIBX): Use above variables rather than directly using autoconf.
10213
1d29df59
DN
102142010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
10215
10216 Clean up BSD_SYSTEM use.
10217 * xterm.c:
10218 * process.c:
10219 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10220 for including <sys/ioctl.h>.
10221 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10222 code is only used for MSDOS.
10223
1546c559
JL
102242010-03-31 Juri Linkov <juri@jurta.org>
10225
10226 * image.c: Add `Qextension_data'.
10227 (syms_of_image): Initialize and staticpro `Qextension_data'.
10228 (Fimage_metadata): Rename from `Fimage_extension_data'.
10229 (gif_load): Put GIF extension data to the property
10230 `Qextension_data'.
10231
6521c534
CY
102322010-03-31 Chong Yidong <cyd@stupidchicken.com>
10233
10234 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10235 * nsterm.h: Fix prototype.
10236
52c30783
EZ
102372010-03-31 Eli Zaretskii <eliz@gnu.org>
10238
10239 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10240 trailing whitespace in right-to-left rows.
10241
855a0da7
SM
102422010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10243
10244 Get rid of the direct_output optimizations.
10245 * keyboard.c (nonundocount): Remove extern declaration.
10246 (command_loop_1): Remove brittle optimisation for cheap and
10247 common operations.
10248 * xdisp.c (redisplay_internal): Don't bother checking
10249 redisplay_performed_directly_p any more.
10250 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10251 any more.
10252 * dispnew.c (redisplay_performed_directly_p)
10253 (direct_output_for_insert, direct_output_forward_char):
10254 * dispextern.h (redisplay_performed_directly_p)
10255 (direct_output_for_insert, direct_output_forward_char): Remove.
10256 * cmds.c (nonundocount): Make it static.
10257
85738751 102582010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
10259
10260 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10261
85738751 102622010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
10263
10264 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10265 invisible (Bug#5766).
10266
85738751 102672010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 10268
855a0da7
SM
10269 * xdisp.c (x_consider_frame_title, update_window_cursor):
10270 Remove HAVE_NS conditionals.
194d44e7 10271 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
10272
10273 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10274 filename for the title.
10275 (ns_set_doc_edited): Do nothing if the selected window is a
10276 minibuffer window.
10277
10278 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10279 ns_set_doc_edited.
10280
10281 * nsterm.m: Remove unneeded prototype.
10282
85738751 102832010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
10284
10285 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10286 in the DOC file. (Bug#5336)
10287
85738751 102882010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
10289
10290 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10291
75d1428c
SM
102922010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10293
10294 * window.c (keys_of_window): Remove redundant/overridden bindings.
10295
82043cfb
EZ
102962010-03-30 Eli Zaretskii <eliz@gnu.org>
10297
10298 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10299 Restore original behavior when the iterator is not bidi_p.
10300
b5dd0ae7
DN
103012010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10302
10303 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10304
bd924a5d
EZ
103052010-03-30 Eli Zaretskii <eliz@gnu.org>
10306
10307 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10308 are outside the range of cached character positions.
10309
3580374b
JB
103102010-03-30 Juanma Barranquero <lekktu@gmail.com>
10311
10312 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10313
a7b02820
EZ
103142010-03-30 Eli Zaretskii <eliz@gnu.org>
10315
10316 Initial support for bidirectional editing.
10317
10318 * Makefile.in (obj): Include bidi.o.
10319 (bidi.o): New target.
10320
10321 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10322 ($(BLD)/bidi.$(O)): New target.
10323
10324 * bidi.c: New file.
10325
10326 * buffer.h (struct buffer): New members bidi_display_reordering
10327 and bidi_paragraph_direction.
10328
10329 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10330 and bidi_paragraph_direction.
10331 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10332 and bidi-paragraph-direction.
10333 (Fbuffer_swap_text): Swap the values of
10334 bidi_display_reordering and bidi_paragraph_direction.
10335
10336 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10337 (bidi_type_t, bidi_dir_t): New types.
10338 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10339 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10340 prev_stop, base_level_stop, and eol_pos.
10341 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10342 (IT_STACK_SIZE): Enlarge to 5.
10343 (struct glyph_row): New member reversed_p.
10344 <string_buffer_position>: Update prototype.
10345 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10346 glyph_row if bidi_it.paragraph_dir == R2L.
10347 (struct glyph): New members resolved_level and bidi_type.
10348
10349 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10350 processing or buffer's direction is right-to-left.
10351 (prepare_desired_row): Preserve the reversed_p flag.
10352 (row_equal_p): Compare the reversed_p attributes as well.
10353
bba3e508
SM
10354 * xdisp.c (init_iterator): Initialize it->bidi_p.
10355 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
10356 buffer's value of bidi_paragraph_direction.
10357 (reseat_1): Initialize bidi_it.first_elt.
10358 (set_iterator_to_next, next_element_from_buffer): Use the value of
10359 paragraph_embedding to determine the paragraph direction.
10360 (set_iterator_to_next): Under bidi reordering, call
10361 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10362 new_paragraph flag is set in the bidi iterator.
10363 (next_element_from_buffer): If bidi_it.first_elt is set,
10364 initialize paragraph direction and find the first character to
10365 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
10366 prime the bidi iterator starting at the line's beginning.
10367 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
10368 non-linearity of the bidi iteration. Likewise for when we back up
10369 beyond the previous stop_charpos. When moving across stop_charpos,
10370 record it in prev_stop.
10371 (display_line): Set row->end and it->start for the next row to the
10372 next character in logical order. Always extend reversed_p rows to
10373 the end of line, even if they end at ZV. Copy the reversed_p flag
10374 to the next glyph row. Keep calling set_cursor_from_row for
10375 bidi-reordered rows even if we already have a possible candidate
10376 for cursor position. Set row_end after all the row's glyphs have
10377 been produced, by looping over the glyphs. Record the position
10378 after EOL in it->eol_pos, and use it to set end_pos of the last
10379 row produced for a continued line.
10380 <Qright_to_left, Qleft_to_right>: New variables.
10381 (syms_of_xdisp): Initialize and staticpro them.
10382 (string_buffer_position_lim): New function.
10383 (string_buffer_position): Most of code moved to
10384 string_buffer_position_lim. Last argument and return value are
10385 now EMACS_INT; all callers changed.
10386 (set_cursor_from_row): Rewritten to support bidirectional text and
10387 reversed glyph rows.
bba3e508
SM
10388 (text_outside_line_unchanged_p, try_window_id):
10389 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
10390 paragraph direction can be affected by the change.
10391 (append_glyph, append_composite_glyph)
10392 (produce_image_glyph, append_stretch_glyph): Set the
10393 resolved_level and bidi_type members of each glyph.
10394 (append_glyph): If the glyph row is reversed, prepend the glyph
10395 rather than appending it.
10396 (handle_stop_backwards): New function.
10397 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 10398 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
10399 base_level_stop for the new position.
10400 (handle_invisible_prop): Under bidi iteration, skip invisible text
10401 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10402 paragraph direction. Update IT->prev_stop after skipping
10403 invisible text.
10404 (move_it_in_display_line_to): New variables prev_method
10405 and prev_pos. Compare for strict equality in
10406 BUFFER_POS_REACHED_P.
10407 (try_cursor_movement): Examine all the candidate rows that occlude
10408 point, to return the best match. If rows are bidi-reordered
10409 and point moved backwards, back up to the row that is not a
10410 continuation line, and start looking for a suitable row from
10411 there.
10412
10413 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10414 rather than appending, if the glyph_row's reversed_p flag is set.
10415 Set the resolved_level and bidi_type members of each glyph.
10416
10417 * .gdbinit (pbiditype): New command.
10418 (pgx): Use it to display bidi level and type of the glyph.
10419 (pitx): Display some bidi information about the iterator.
10420 (prowlims, pmtxrows): New commands.
10421
32a8894e
DN
104222010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10423
10424 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10425 * s/usg5-4.h (LIBS_DEBUG):
10426 * s/irix6-5.h (C_DEBUG_SWITCH):
10427 * s/gnu-linux.h (LIBS_DEBUG):
10428 * s/darwin.h (LIBS_DEBUG):
10429 * s/bsd-common.h (LIBS_DEBUG):
10430 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10431 * m/iris4d.h (LIBS_DEBUG):
10432 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10433
10434 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10435 (LIBS_DEBUG): Remove definition.
10436
649dbf36
CY
104372010-03-27 Chong Yidong <cyd@stupidchicken.com>
10438
10439 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10440 Windows.
10441
cad4261f
YM
104422010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10443
10444 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10445 `connect' (Bug#5723).
10446
cd591dbc
HE
104472010-03-25 Helmut Eller <eller.helmut@gmail.com>
10448
10449 * process.c (Fmake_network_process): Call `select' for interrupted
10450 `connect' rather than creating new socket (Bug#5173).
10451
e867cb5d 104522010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
10453
10454 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10455
10456 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10457
10458 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10459
e867cb5d 104602010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
10461
10462 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10463 XLoadQueryFont.
10464
e867cb5d 104652010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
10466
10467 * coding.c (decode_coding_ccl): Fix previous change for the
10468 multibyte case.
fb608df3
KH
10469 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10470 case that the output buffer is fullfilled.
10471 (encode_coding): Setup ccl program here.
fbdc1721 10472
5845f0ed
DN
104732010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10474
814fb708
DN
10475 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10476
5845f0ed
DN
10477 Simplify LIBS_MACHINE definitions.
10478 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10479 * m/iris4d.h (LIBS_MACHINE): Likewise.
10480 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10481 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 10482 * s/netbsd.h: Remove commented out code.
5845f0ed 10483
b7064064
DN
104842010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10485
df7734b2
DN
10486 Remove dead code dealing with POSIX_SIGNALS.
10487 * atimer.c (set_alarm): Remove dead code, all USG systems define
10488 POSIX_SIGNALS.
10489 * data.c (arith_error): Likewise.
10490 * keyboard.c (input_available_signal, handle_user_signal)
10491 (interrupt_signal): Likewise.
10492 * process.c (sigchld_handler): Likewise.
10493 (create_process): Remove if 0 code. Remove HPUX conditional when
10494 !defined (POSIX_SIGNALS), it cannot be true.
10495 * syssignal.h: Remove USG5_4 and USG conditionals when
10496 !POSIX_SIGNALS, they cannot be true.
10497
b7064064
DN
10498 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10499 NO_SOCK_SIGIO, not used anymore.
10500
55da5ee3
DN
105012010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10502
0be96e3a
DN
10503 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10504 support vax on BSDs.
10505
55da5ee3
DN
10506 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10507 * s/aix4-2.h (ORDINARY_LINK): ... here.
10508
c0282183
AS
105092010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10510
82c3d67a
AS
10511 * Makefile.in (abs_builddir): Define.
10512 (bootstrap_exe): Use it.
10513 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 10514
3613edce
SM
105152010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10516
10517 * Makefile.in (bootstrap_exe): Use an absolute name.
10518
7f110ddc
DN
105192010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10520
22e87574
DN
10521 Remove support for old GNU/Linux using libc version 5.
10522 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10523 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10524
05a670e6
DN
10525 Consolidate redundant definitions in s/bsd-common.h.
10526 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10527 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10528 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10529 doing it in all files that include this one.
10530 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10531 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10532 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10533 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10534 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10535 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10536 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10537 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10538 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10539
2968f561
DN
10540 Consolidate redundant definitions.
10541 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10542 it's undefined in all files that include this one.
10543 (POSIX_SIGNALS): Define here instead of doing it in all files that
10544 include this one.
10545 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10546 (POSIX_SIGNALS): Do not define.
10547 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10548 (POSIX_SIGNALS): Do not define.
10549 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10550 (POSIX_SIGNALS): Do not define.
10551
15d25dc0 10552 Remove support for old UNIX System V systems.
fe7be221
GM
10553 * s/unixware.h: Add the contents of s/usg5-4-2.h.
10554 * s/usg5-4-2.h: Remove.
15d25dc0 10555
07e339e4
DN
10556 Remove support for Solaris on PPC and for old versions.
10557 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10558 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10559 that cancel each other.
10560 * s/sol2-3.h:
10561 * s/sol2-4.h:
10562 * s/sol2-5.h: Remove.
10563 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10564 (NO_REMAP): Remove, unused.
10565 (UNEXEC): Move definition ...
10566 * s/aix4-2.h (UNEXEC): ... here.
10567
7f110ddc
DN
10568 * s/openbsd.h: Remove support for non-ELF and for systems that do
10569 not support shared libraries.
10570 * s/netbsd.h:
10571 * s/freebsd.h: Likewise.
10572
605f35cd
DN
105732010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10574
10575 Remove non-working support for lynxos 3.0.
10576 * s/lynxos.h: Remove file.
10577
10578 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10579 COFF_BSD_SYMBOLS, nothing defines it anymore.
10580
aed71cf4
DN
105812010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10582
10583 Remove obsolete uses of HAVE_SHM.
10584 * emacs.c (standard_args):
10585 (Fdump_emacs):
10586 (syms_of_emacs): Remove code depending on HAVE_SHM.
10587
10588 * alloc.c: Remove HAVE_SHM dependent definition.
10589
10590 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10591
aded53ff
GM
105922010-03-18 Glenn Morris <rgm@gnu.org>
10593
17284745
GM
10594 * emacs.c (USAGE4): Hard-code bug address.
10595 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10596 (bug_reporting_address): Remove.
10597 (main): Don't call bug_reporting_address.
10598
aded53ff
GM
10599 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10600 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10601
303500aa
CY
106022010-03-15 Chong Yidong <cyd@stupidchicken.com>
10603
10604 * xfns.c (Fx_create_frame):
10605 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10606 on left.
10607
cef3058f
CY
106082010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10609
10610 * editfns.c (Fformat): Account for string precision when computing
10611 field width (Bug#5710).
10612
a647d59d
CY
106132010-03-12 Chong Yidong <cyd@stupidchicken.com>
10614
4fa42018
CY
10615 * xfns.c (Fx_create_frame): Set default to Qright.
10616
a647d59d
CY
10617 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10618 all window systems.
10619
6da23aaa
EZ
106202010-03-12 Eli Zaretskii <eliz@gnu.org>
10621
a96f6398 10622 These changes remove termcap.c from the build on Posix platforms.
83d02def 10623 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
10624 (MSDOS_OBJ): ...to here.
10625 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10626 now identical to when LIBS_TERMCAP is defined.
10627
10628 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10629
10630 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10631
a96f6398 10632 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 10633
288f9fc0
CY
106342010-03-10 Chong Yidong <cyd@stupidchicken.com>
10635
10636 * Branch for 23.2.
10637
d48cd3f4
SM
106382010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10639
10640 Cleanup setup of gl_state in various parts of the code.
10641 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10642 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10643 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10644 (skip_chars):
10645 * regex.c (regex_compile): Use it.
10646 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10647 it's now set in regex_compile when/if we need it.
10648
618db430
SM
106492010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10650
c0335e02
SM
10651 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10652 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10653 (QUIT): Use it to consolidate code and remove redundancy.
10654 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10655
254c06a8
SM
10656 * regex.c (regex_compile): Setup gl_state as well.
10657
618db430
SM
10658 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10659 (in_classes): Use CONSP before XCAR/XCDR.
10660
233f0c9f
CY
106612010-03-03 Chong Yidong <cyd@stupidchicken.com>
10662
10663 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10664 definitions, so that keyboard macros are correctly handled
10665 (Bug#5481).
10666
75f80e63
EZ
106672010-03-02 Eli Zaretskii <eliz@gnu.org>
10668
10669 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10670 text that could be relocated inside the call to emacs_mule_char.
10671 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10672 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10673
dcfb9bc4
KH
106742010-03-02 Kenichi Handa <handa@m17n.org>
10675
fc9a17bc
KH
10676 * character.c (parse_str_as_multibyte): Fix handling of the
10677 multibyte form of raw-bytes.
10678 (str_as_multibyte): Likewise.
10679
dcfb9bc4
KH
10680 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10681 form of raw-bytes.
10682
412c01b6
CY
106832010-02-28 Chong Yidong <cyd@stupidchicken.com>
10684
10685 * charset.c (load_charset_map_from_file)
10686 (load_charset_map_from_vector): Zero out allocated
10687 charset_map_entries before using them.
10688
df7e1ea0
AS
106892010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10690
10691 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10692
fe69a722
CY
106932010-02-27 Chong Yidong <cyd@stupidchicken.com>
10694
4ed28cf4
CY
10695 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10696 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 10697
7379cfce
KH
106982010-02-26 Kenichi Handa <handa@m17n.org>
10699
f88cc4d6
KH
10700 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10701
7379cfce
KH
10702 * xdisp.c (reseat_to_string): Fix previous change.
10703
cf2fdcfb
CY
107042010-02-26 David Reitter <david.reitter@gmail.com>
10705
10706 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10707 Lisp_Object (Bug#4736).
10708
cc6c7c75
KH
107092010-02-25 Kenichi Handa <handa@m17n.org>
10710
10711 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10712
32e737d7
JD
107132010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10714
10715 * xterm.c (XTflash): Move declarations before statements.
10716
10717 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10718 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10719 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10720 (xg_create_tool_bar): Remove unused variables.
10721 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 10722 (xg_create_frame_widgets): Remove variable grav.
32e737d7 10723
676cae9f
CY
107242010-02-21 Chong Yidong <cyd@stupidchicken.com>
10725
10726 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10727
886cc2b8
SM
107282010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10729
10730 * term.c (fatal): Add a final \n if needed (bug#5596).
10731
ddb2d8e2
CY
107322010-02-18 Chong Yidong <cyd@stupidchicken.com>
10733
10734 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10735
2a4f8d3d
GM
107362010-02-18 Glenn Morris <rgm@gnu.org>
10737
10738 * callint.c (Finteractive): Doc fix.
10739
ebaf11b6
KH
107402010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10741
886cc2b8
SM
10742 * coding.c (record_conversion_result):
10743 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
10744 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10745 memory allocation error.
10746
d0396581
KH
107472010-02-17 Kenichi Handa <handa@m17n.org>
10748
886cc2b8
SM
10749 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10750 Fix for the case that the output buffer is fullfilled.
d0396581
KH
10751 (decode_coding): Setup ccl program here. Keep looping when the
10752 decoder stopped because the output buffer is
10753 fullfilled (bug#5534).
10754
10755 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10756
98599f74
JD
107572010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10758
471e4f04 10759 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 10760 bug #5571.
886cc2b8 10761 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 10762 overdrawn.
98599f74 10763
182659ae
JD
107642010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10765
10766 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10767 doing_interact here.
10768 (ice_connection_closed): New function.
10769 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10770 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10771 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10772 returns I/O error.
10773 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10774 bug #5512.
10775
9be32c4e 107762010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
10777
10778 * nsfont.m (nsfont_open): The system's value for the font descent
10779 is negative, so round it down to avoid clipping.
10780
a2f3eb19
CY
107812010-02-06 Chong Yidong <cyd@stupidchicken.com>
10782
10783 * charset.c (load_charset_map_from_file)
10784 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 10785 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 10786
3088147c
CY
107872010-02-05 Chong Yidong <cyd@stupidchicken.com>
10788
10789 * charset.c (load_charset_map_from_file): Allocate large
10790 charset_map_entries structure on the heap rather than the stack.
10791 (Bug#5526).
10792
b57d9029
KH
107932010-01-31 Kenichi Handa <handa@m17n.org>
10794
10795 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 10796 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 10797
c67d885b
CY
107982010-01-31 Chong Yidong <cyd@stupidchicken.com>
10799
10800 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10801 <deactivated@gmail.com> (Bug#3605).
10802
8fab2362
CY
108032010-01-31 David De La Harpe Golden <david@harpegolden.net>
10804
10805 * fileio.c (Frename_file): Correctly rename symlinks to
10806 directories (Bug#5496).
10807
cb2a62f2
CY
108082010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10809
10810 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10811
944c7a26
AS
108122010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10813
10814 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10815
c024ac08
CY
108162010-01-29 Chong Yidong <cyd@stupidchicken.com>
10817
10818 * frame.c (DEFAULT_ROWS): Change default to 35.
10819
10820 * xfns.c (x_default_font_parameter): Change default XFT font to
10821 monospace-10 (Bug#3643).
10822
af93af83
EZ
108232010-01-29 Eli Zaretskii <eliz@gnu.org>
10824
10825 * w32inevt.c (key_event): Remove unnecessary comparison of
10826 event->uChar.AsciiChar with 128.
10827
ca0eb708
CY
108282010-01-28 Chong Yidong <cyd@stupidchicken.com>
10829
b242dbfc
CY
10830 * fileio.c (Frename_file): Fix last change (Bug#5487).
10831
ca0eb708
CY
10832 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10833
10834 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10835
45d45af5
JD
108362010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10837
10838 * xfns.c (Fx_create_frame): Remove window size matching code from
10839 2010-01-15.
a73f9c9d 10840 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 10841
7e233730
JR
108422010-01-27 Jason Rumney <jasonr@gnu.org>
10843
10844 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 10845 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 10846
86e893e3
KH
108472010-01-27 Kenichi Handa <handa@m17n.org>
10848
10849 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 10850 pattern string (Bug#4209).
86e893e3 10851
8719abec
CY
108522010-01-27 David De La Harpe Golden <david@harpegolden.net>
10853
10854 * fileio.c (Frename_file): Call copy-directory and
10855 delete-directory for directories, in order to handle cross-device
10856 renaming (Bug#3353).
10857
844794c8
JD
108582010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10859
aa3e13b5 10860 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 10861 sizes 24 and 10. Bug #3643.
844794c8 10862
bd4b5750
SM
108632010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10864
8dc1adf6 10865 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
10866 * keymap.c (shadow_lookup): Add `remap' arg.
10867 (describe_map, describe_vector): Update calls to shadow_lookup.
10868 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10869 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
10870 perform remapping during shadow_lookup check of remapped_sequences.
10871
285d07e2
CY
108722010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10873
10874 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10875 png_check_sig, which has been removed in libpng 1.4.
10876
c6d09b8d
CY
108772010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10878
10879 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10880 lacks this header file).
10881
3d782998
YM
108822010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10883
10884 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10885 as in Emacs 22.
10886
2aff7c53
YM
108872010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10888
10889 * lisp.h (make_pure_string): String pointer arg now points to const.
10890
10891 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10892 args now point to const.
10893
74327f7a
EZ
108942010-01-22 Eli Zaretskii <eliz@gnu.org>
10895
10896 * lread.c (Fload): Don't treat files without .elc extension as
10897 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10898 them. (bug#5303)
10899
4d1e6632
KH
109002010-01-20 Kenichi Handa <handa@m17n.org>
10901
10902 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10903 treat the source as actual byte sequence.
10904
1fdede8f
AM
109052010-01-19 Alan Mackenzie <acm@muc.de>
10906
10907 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 10908 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
10909 `signal_after_change_p' to `coherent_change_p', and make the
10910 invocation of `modify_region' conditional on it.
10911
67477f30
JD
109122010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10913
10914 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10915 for debug purpose.
10916 (syms_of_xsettings): Declare xft-settings.
10917
244b023e
CY
109182010-01-18 Chong Yidong <cyd@stupidchicken.com>
10919
10920 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10921
617364fe
CY
109222010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10923
10924 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10925
4fe22cdf
CY
109262010-01-16 Chong Yidong <cyd@stupidchicken.com>
10927
10928 * emacs.c (standard_args): Adjust arg priorities to reflect how
10929 they are processed in startup.el.
10930
e118d2be
AS
109312010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10932
10933 * Makefile.in (lisp, shortlisp): Update.
10934
523ae620
SM
109352010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10936
10937 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10938 code, link the new kboard into all_kboard before running Lisp code,
10939 and protect the new terminal with GCPRO (Bug#5365).
10940 (x_term_init): Remove unused var `atom'.
10941 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10942
f0d13888
JD
109432010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10944
10945 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10946 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10947 to find out usable size of the desktop. Don't make frames larger than
ac146f82 10948 this. Bug #3643.
f0d13888 10949
cc320f07
KH
109502010-01-15 Kenichi Handa <handa@m17n.org>
10951
10952 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10953
7ffdf101
CY
109542010-01-15 Chong Yidong <cyd@stupidchicken.com>
10955
10956 * nsterm.m (Qnone): Define.
10957
10958 * nsfns.m (Qnone): Move definition to nsterm.m.
10959
d12bd917
KH
109602010-01-14 Kenichi Handa <handa@m17n.org>
10961
10962 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10963 systems.
10964
d9a7c140
KH
109652010-01-14 Kenichi Handa <handa@m17n.org>
10966
10967 Make auto-composition work on all buffers even if they are
10968 fundamental mode.
10969
10970 * composite.c (Vauto_composition_mode): New variable.
10971 (composition_compute_stop_pos): Check Vauto_composition_mode
10972 instead of Vauto_composition_function.
10973 (composition_adjust_point, Ffind_composition_internal): Likewise.
10974 (syms_of_composite): Declare Lisp variable
10975 "auto-composition-mode" here.
10976
63286bb2
CY
109772010-01-13 Chong Yidong <cyd@stupidchicken.com>
10978
10979 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10980 during call to vendor-specific-keysyms (Bug#5365).
10981
c2623ee7
YM
109822010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10983
10984 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10985 Call SIGNAL_THREAD_CHECK (Bug#5333).
10986
10987 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10988 Call SIGNAL_THREAD_CHECK.
10989
0b5397c2
SM
109902010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10991
10992 Try to fix bug#5314. This is probably not the final word, tho.
10993 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10994 recent-auto-save-p as a side-effect.
10995 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10996 * buffer.c (Fkill_buffer, reset_buffer):
10997 * editfns.c (Fsubst_char_in_region):
10998 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10999 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
11000
dc954cb2
KH
110012010-01-13 Kenichi Handa <handa@m17n.org>
11002
11003 Display buffer name, etc. in mode line by composing correctly.
11004
11005 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
11006 STRING is not nil.
0b5397c2 11007 (display_mode_element): Adjust for the change of
dc954cb2
KH
11008 decode_mode_spec and display_line.
11009 (decode_mode_spec): Change arg MULTIBYTE to STRING.
11010 (display_string): Handle the case that STRING is non-null and
11011 LISP_STRING is not nil.
11012
0b5397c2
SM
11013 * xterm.c (x_draw_composite_glyph_string_foreground):
11014 Pay attention to s->face->overstrike.
dc954cb2
KH
11015
11016 * composite.c (composition_reseat_it): Don't check PT if STRING is
11017 non nil.
11018
4a00eaca
YM
110192010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11020
11021 * keyboard.c (read_char): Don't apply previous change when current
11022 buffer is unchanged by command execution.
11023
60abb287
JD
110242010-01-12 Jan Djärv <jan.h.d@swipnet.se>
11025
11026 * keyboard.c (read_char): Return after executing from special map.
11027
893db5bc
GM
110282010-01-12 Glenn Morris <rgm@gnu.org>
11029
11030 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
11031 bug-gnu-emacs rather than emacs-pretest-bug.
11032
4d03ece0
CY
110332010-01-11 Chong Yidong <cyd@stupidchicken.com>
11034
11035 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
11036 initializing the Lisp variables that depend on them.
11037
1df47e38
YM
110382010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11039
11040 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
11041 Clear areas that will not be updated after change of menu bar lines.
11042 Clear the menu bar window's current matrix when the window gets empty.
11043
2f1c6384
CY
110442010-01-09 Chong Yidong <cyd@stupidchicken.com>
11045
e398c61c
CY
11046 * intervals.h, textprop.c (extend_property_ranges): Return value
11047 and args changed. Discard properties that begin at or after the
11048 new end (Bug#5306).
11049
11050 * editfns.c (Fformat): Caller changed.
11051
e5a29a10
CY
11052 * nsterm.m (ns_set_default_prefs): Delete function.
11053 (syms_of_nsterm): Initialize ns_command_modifier,
11054 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
11055 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
11056
2f1c6384
CY
11057 * xdisp.c (pos_visible_p): Check for invisible text at the correct
11058 position (Bug#4040).
11059
d427a9fa
EZ
110602010-01-09 Eli Zaretskii <eliz@gnu.org>
11061
11062 * editfns.c (Ffloat_time): Doc fix.
11063
21b9df2f
JD
110642010-01-09 Jan Djärv <jan.h.d@swipnet.se>
11065
11066 * xfns.c (Fx_create_frame): Don't create frame larger than display
11067 by default bug#3643.
11068
4b00d3b1
YM
110692010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11070
11071 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
11072 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
11073 windows above internal border.
11074
11075 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
11076 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
11077 windows above internal border.
11078
11079 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
11080 tool bar windows specially.
11081
11082 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
11083
11084 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
11085 specially.
11086 (XTflash): Take account of menu bar height.
11087
11088 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
11089 specially.
11090
5075d853
JD
110912010-01-08 Jan Djärv <jan.h.d@swipnet.se>
11092
ac146f82 11093 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
11094 also be true before we can return early (bug #5339).
11095
474217c8
CY
110962010-01-06 David Reitter <david.reitter@gmail.com>
11097
11098 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
11099 (Fns_display_usable_bounds): Rewrite, computing bounds properly
11100 (Bug#3233).
11101
c0e6d47d
JD
111022010-01-06 Jan Djärv <jan.h.d@swipnet.se>
11103
d0cf45b7
JD
11104 * font.c (font_open_entity): Enable chache and call cached_font_ok
11105 for the driver if defined.
11106 (QCuser_spec): New symbol.
11107 (font_spec_from_name): Save name as user-spec.
11108 (font_load_for_lface): Keep user-spec instead of name.
11109 (font_open_by_name): Save name as user-spec.
11110 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 11111 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
11112
11113 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
11114 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
11115 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
11116
11117 * font.h (struct font_driver): Add cached_font_ok.
11118
c0e6d47d
JD
11119 * xterm.c (x_clear_frame): Queue draw for scroll bars.
11120
7c583cd8
JD
111212010-01-05 Jan Djärv <jan.h.d@swipnet.se>
11122
11123 * xterm.c (x_new_font): Move code for setting rows/cols before
11124 resizing ...
ac146f82 11125 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
11126
11127 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
11128 (xg_frame_resized, xg_frame_set_char_size):
11129 Call xg_clear_under_internal_border.
7c583cd8 11130 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 11131
03f77f0a
CY
111322010-01-05 Chong Yidong <cyd@stupidchicken.com>
11133
11134 * keyboard.c (read_key_sequence): Catch keyboard switch after
11135 making a new tty frame (Bug#5095).
11136
2a1ef5be
KH
111372010-01-05 Kenichi Handa <handa@m17n.org>
11138
11139 * fontset.c (fontset_find_font): Fix getting the frame pointer.
11140
e3eb1dae
SM
111412010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
11142
11143 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
11144 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
11145 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
11146
777013f2
MA
111472010-01-03 Michael Albinus <michael.albinus@gmx.de>
11148
11149 * dbusbind.c (xd_add_watch): Improve debug message.
11150 (xd_remove_watch): Improve debug message. If DATA is the session
11151 bus, unset D-Bus session environment.
11152 (Fdbus_init_bus): Pass the bus as argument to
11153 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 11154
8932b1c2
CY
111552010-01-01 Chong Yidong <cyd@stupidchicken.com>
11156
87231e2c
CY
11157 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
11158
4801c5fa
CY
11159 * lread.c (syms_of_lread): Make it clearer that these are the
11160 names of loaded files (Bug#5068).
11161
8932b1c2
CY
11162 * eval.c (run_hook_with_args): Handle the case where the global
11163 value has the obsolete single-function form (Bug#5026).
11164
11e3c684
CY
111652009-12-27 Chong Yidong <cyd@stupidchicken.com>
11166
11167 * minibuf.c (Fall_completions): Minor optimization.
11168
5b28ce35
EZ
111692009-12-26 Eli Zaretskii <eliz@gnu.org>
11170
5ce6e4f4
JB
11171 * .gdbinit (pgx): Fix display of composite glyphs.
11172 Display cmp.from and cmp.to as well.
11173 (pitx): Fix last change.
5b28ce35 11174
bcffff46
KH
111752009-12-25 Kenichi Handa <handa@m17n.org>
11176
11177 * composite.h (composition_adjust_point): Update prototype.
11178
11179 * composite.c (composition_reseat_it): Don't make a composition
11180 spanning over point.
11181 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
11182 composable characters.
11183 (composition_adjust_point): New arg NEW_PT. Callers changed.
11184
11185 * keyboard.c (command_loop_1): Force redisplay if the last point
11186 was within a composition.
11187 (adjust_point_for_property): Don't adjust point for automatic
11188 composition when called after buffer modification.
11189
3f670e9a
EZ
111902009-12-19 Eli Zaretskii <eliz@gnu.org>
11191
5ce6e4f4
JB
11192 * .gdbinit (pitx): Don't use enum names, use their values.
11193 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
11194 (pgx): Don't use enum names, use their values.
11195 (pitmethod): New helper command.
11196 (pitx): Use it to display iteration method.
11197 (pgrowit): New command.
11198
ad903955
EZ
11199 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
11200
3f670e9a
EZ
11201 Update dependencies in Makefile.in.
11202
11203 * Makefile.in (alloc.o): Depend on termhooks.h.
11204 (atimer.o): Depend on blockinput.h.
11205 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
11206 and frame.h.
11207 (callint.o): Depend on systime.h, coding.h, and composite.h.
11208 (callproc.o): Depend on buffer.h.
11209 (casefiddle.o): Don't depend on charset.h.
11210 (casetab.o): Depend on character.h.
11211 (ccl.o): Depend on composite.h.
11212 (chartab.o): Depend on ccl.h.
11213 (cm.o): Depend on dispextern.h.
11214 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
11215 (coding.o): Don't depend on $(INTERVALS_H).
11216 (composite.o): Don't depend on dispextern.h explicitly (it's in
11217 $(INTERVALS_H)). Depend on ccl.h.
11218 (data.o): Depend on systime.h, coding.h, composite.h,
11219 dispextern.h, font.h, and ccl.h.
11220 (dired.o): Depend on composite.h.
11221 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11222 composite.h (it's in $(INTERVALS_H)).
11223 (doc.o): Depend on systime.h, coding.h, and composite.h.
11224 (editfns.o): Don't depend explicitly on dispextern.h.
11225 (emacs.o): Depend on frame.h and coding.h.
11226 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11227 (fileio.o): Depend on frame.h and commands.h. Don't depend
11228 explicitly on dispextern.h.
11229 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11230 composite.h.
11231 (fns.o): Don't depend on termhooks.h.
11232 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11233 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11234 coding.h, $(INTERVALS_H), window.h, xterm.h.
11235 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11236 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11237 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11238 fontset.h, ccl.h, and ftfont.h.
11239 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11240 (gtkutil.o): Depend on dispextern.h and composite.h.
11241 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11242 termhooks.h, and ccl.h.
11243 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11244 (intervals.o): Depend on systime.h and coding.h.
11245 (keyboard.o): Depend on composite.h and coding.h.
11246 (keymap.o): Depend on coding.h and frame.h.
11247 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11248 (macros.o): Depend on systime.h, coding.h, and composite.h.
11249 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11250 and atimer.h.
11251 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11252 dispextern.h explicitly.
0b5397c2
SM
11253 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11254 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
11255 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11256 (regex.o): Don't depend on charset.h.
11257 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11258 (search.o): Don't depend explicitly on composite.h.
11259 (sound.o): Depend on atimer.h and systime.h.
11260 (syntax.o): Don't depend explicitly on composite.h.
11261 (sysdep.o): Depend on coding.h and composite.h.
11262 (term.o): Depend on xterm.h and buffer.h.
11263 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11264 (textprop.o): Don't depend on dispextern.h explicitly.
11265 (undo.o): Depend on dispextern.h.
11266 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11267 dispextern.h and composite.h explicitly.
11268 (xdisp.o): Depend on ccl.h.
11269 (xfaces.o): Depend on coding.h and ccl.h.
11270 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11271 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11272 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11273 ftfont.h.
11274 (xgselect.o): New dependency.
11275 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11276 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11277 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11278 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11279 (xsmfns.o): Depend on frame.h and dispextern.h.
11280 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11281 sysselect.h.
11282
7a6f7fea
AS
112832009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11284
11285 * font.c (Fclear_font_cache): Pass correct cache argument to
11286 font_clear_cache.
11287
f4c21026
AS
112882009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11289
11290 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11291 twice.
11292
f7ab0997
CY
112932009-12-15 Chong Yidong <cyd@stupidchicken.com>
11294
11295 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11296 calling file-remote-p. Reported by Jim Meyering.
11297
fa8e045a
MA
112982009-12-15 Michael Albinus <michael.albinus@gmx.de>
11299
11300 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 11301 avoid compiler warnings. (Bug #5217)
fa8e045a 11302
a63dba42
KH
113032009-12-14 Kenichi Handa <handa@m17n.org>
11304
11305 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11306 in 8-bit encoding.
11307
5ce6e4f4 113082009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
11309
11310 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11311 tooltip windows.
11312
223e5fc6
JD
113132009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11314
36acb2a7
JD
11315 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11316 Xatom_net_window_type.
11317
11318 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11319 Xatom_net_window_type.
11320
b8f00677
JD
11321 * xterm.c (my_log_handler): New function.
11322 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 11323 so we can filter out buggy messages. (Bug #5120).
b8f00677 11324
e5f0bc9a
JD
11325 * xterm.c (xg_scroll_callback): Parameter list changed,
11326 use parameter GtkScrollType to determine scroll/line/page.
11327 Only allow dragging if a button < 4 is grabbed (bug #5177).
11328 (xg_end_scroll_callback): New function.
11329 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11330 xg_create_scroll_bar.
11331
11332 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11333 (scroll_end_callback): Remove.
11334 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11335 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 11336 bug #5177.
e5f0bc9a
JD
11337 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11338 bug #5177.
11339
11340 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11341 (xg_create_scroll_bar): Add GCallback end_callback.
11342
223e5fc6
JD
11343 * xftfont.c (QClcdfilter): New variable.
11344 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11345 (syms_of_xftfont): Initialize QClcdfilter.
11346
3c055b77
JD
113472009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11348
11349 * xsettings.c (struct xsettings): Add member seen.
11350 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 11351 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
11352 (apply_xft_settings): Only update Xft settings with what member seen
11353 indicates as new.
11354
05fe33ff
EZ
113552009-12-12 Eli Zaretskii <eliz@gnu.org>
11356
c4cc8b9a 11357 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
11358 (struct glyph): Use EMACS_INT for charpos.
11359 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11360 region_beg_charpos, region_end_charpos,
11361 redisplay_end_trigger_charpos, and also for
11362 iterator_stack_entry.end_charpos and
11363 iterator_stack_entry.stop_charpos.
11364
e8d7886a
JD
113652009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11366
5ce6e4f4 11367 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
11368 (xg_create_scroll_bar): Call scroll_end_callback on button release
11369 event (bug #5177).
11370 (xg_event_is_for_scrollbar): != replaced with ==.
11371
d0db2ec8
KH
113722009-12-12 Kenichi Handa <handa@m17n.org>
11373
11374 * ftfont.c (struct ftfont_info): New member matrix.
11375 (ftfont_open): Setup xftfont_info->matrix.
11376 (MFLTFontFT): New member matrix.
11377 (FLOOR, CEIL, ROUND): New macros.
11378 (ftfont_get_metrics): Handle matrix transformation.
11379 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11380
11381 * xftfont.c (struct xftfont_info): New member matrix.
11382 (xftfont_open): Setup xftfont_info->matrix.
11383
113842009-12-10 Kenichi Handa <handa@m17n.org>
11385
11386 * xdisp.c (append_space_for_newline): Consider face-remapping.
11387
2cc7b62f
AS
113882009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11389
b87dd913
AS
11390 * xsettings.c: Include "keyboard.h".
11391
eba5eb94
AS
11392 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11393
2cc7b62f
AS
11394 Fix implicit function declarations.
11395 * cmds.c: Include "frame.h".
11396 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11397 * frame.h: Move declaration of delete_frame outside of
11398 HAVE_WINDOW_SYSTEM.
11399
a4ef73c8
CY
114002009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11401
11402 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11403
11404 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11405 GTK builds.
11406
944a300c
AS
114072009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11408
11409 * unexelf.c (unexec): Don't search for .data twice.
11410
022eef62
CY
114112009-12-05 Chong Yidong <cyd@stupidchicken.com>
11412
426ac949
CY
11413 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11414 if push failed.
11415 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11416 of push_display_prop (Bug#5000).
11417
022eef62
CY
11418 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11419 value of font_list_entities (Bug#5085).
11420
be95bee9
JB
114212009-12-04 Juanma Barranquero <lekktu@gmail.com>
11422
11423 Fix `string-to-number' to deal consistently with integers and floats.
11424 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11425 trailing characters, not just whitespace.
11426 (read1): Pass new arg 0 to keep old behavior.
11427 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11428 trailing chars, as it is already done for integers. Doc fixes.
11429 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11430
24c2d7ce
EZ
114312009-12-04 Eli Zaretskii <eliz@gnu.org>
11432
0b5397c2
SM
11433 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11434 Delete unused enumeration value.
24c2d7ce 11435
7e694795
EZ
114362009-12-03 Eli Zaretskii <eliz@gnu.org>
11437
11438 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11439
84b31826
SM
114402009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11441
11442 * process.c (Fmake_network_process): Fix up the tests for
11443 "connectionless socket", so they DTRT for seqpacket sockets as well.
11444
f00c449b
SM
114452009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11446
11447 * process.c (Qseqpacket): New symbol.
11448 (HAVE_SEQPACKET): New macro.
11449 (Fmake_network_process): Accept new :type `seqpacket'.
11450 (init_process): Add `seqpacket' feature when applicable.
11451 (syms_of_process): Initialize Qseqpacket.
11452
8096a0ff
YM
114532009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11454
11455 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11456 if entity is Qnil.
11457
3e0de07f
SM
114582009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11459
11460 * print.c (print_preprocess): Preprocess the key_and_value table of
11461 hashtables, even tho they're "hidden" (bug#5082).
11462
abeafb2a
JD
114632009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11464
11465 * frame.c (frame_make_pointer_invisible)
11466 (frame_make_pointer_visible): Declare f before statements.
11467
4bf47195
EZ
114682009-11-28 Eli Zaretskii <eliz@gnu.org>
11469
11470 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11471 omitted dependencies on lisp.h.
11472
c525b3f2
JD
114732009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11474
ece2d4ed
JD
11475 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11476 is NULL.
11477
11478 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11479
11480 * frame.c (frame_make_pointer_invisible)
3e0de07f 11481 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
11482 frame.
11483
c525b3f2
JD
11484 * search.c (simple_search): Remove warning by making *p const.
11485
2f00e299
DN
114862009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11487
11488 * xdisp.c (power_letter): Remove duplicate const.
11489
084b049b
JD
114902009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11491
a1fadc6f
JD
11492 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11493
5ce6e4f4 11494 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
11495 defaults (bug #5025).
11496
28259cac
SM
114972009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11498
11499 * insdel.c (adjust_markers_for_delete): Move it in the
11500 right direction! (bug#4803)
11501
e8e14166
YM
115022009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11503
11504 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11505
11506 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11507
86677b58
GM
115082009-11-24 Glenn Morris <rgm@gnu.org>
11509
11510 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11511
581e51e8
JD
115122009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11513
cfc86c7a
JD
11514 * Makefile.in: Must create deps for ecrt0.o in its rule.
11515
581e51e8
JD
11516 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11517 because that is what Gtk+ font dialog understands.
11518
11519 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11520 of Fcopy_sequence.
11521 (font_open_by_name): Put name given into QCname for font-object returned.
11522
11523 * frame.c (x_set_font): Save original font name as frame parameter
11524 font-parameter.
11525
11526 * xsettings.c (set_default_xft_settings): New function.
11527 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11528 is found.
11529
8b264ecb
AS
115302009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11531
11532 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11533 searching backwards through multibyte buffer.
11534
872870b2
JD
115352009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11536
11537 * xterm.c: #include xgselect.h.
11538 (x_initialize): Call xgselect_initialize.
11539
11540 * xsettings.c (something_changedCB): C++ comments => C comments.
11541 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11542 does that now.
11543
11544 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11545 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11546 (scroll_bar_button_cb): Remove.
5ce6e4f4 11547 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
11548 event.
11549 (xg_create_scroll_bar): Don't bind button-press-event and
11550 button-release-event.
11551
11552 * process.c: Include xgselect.h if defined (USE_GTK) ||
11553 defined (HAVE_GCONF).
11554 (wait_reading_process_output): Call xg_select for the same condition.
11555
11556 * xgselect.c (xg_select): New function to better integrate with
11557 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11558
11559 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11560
11561 * Makefile.in (XOBJ): Add xgselect.o.
11562
62a6e103
AS
115632009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11564
0b5397c2
SM
11565 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11566 Remove ignored second argument. All callers changed.
62a6e103
AS
11567 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11568 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11569 * xdisp.c (string_char_and_length): Likewise.
11570
b0ca0f33
DN
115712009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11572
11573 * xterm.c (x_new_font):
11574 * print.c (print_object):
11575 * cmds.c (Fself_insert_command): Move declarations before statements.
11576
dd5a6279
CY
115772009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11578
11579 * s/cygwin.h: Remove unneeded linker flags.
11580
4a8e097d
JD
115812009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11582
0d1d0d26
JD
11583 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11584
11585 * xsettings.h: Declare xsettings_get_system_font.
11586
11587 * xsettings.c (xsettings_get_system_font): New function.
11588 (init_gconf): No use initiating gconf unless we have Xft also.
11589 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11590 HAVE_GCONF.
11591
4a8e097d
JD
11592 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11593 add a blank entry so it doesn't collapse into nothing.
11594
8ab1650e
SM
115952009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11596
11597 * lread.c (Funintern): Comment out last change.
11598
82c602f0
RS
115992009-11-19 Richard Stallman <rms@gnu.org>
11600
11601 * lread.c (Funintern): Error if symbol is t or nil.
11602
87e32266
SM
116032009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11604
11605 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11606 representation of Lisp integers.
11607 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11608
1b9ac145
AS
116092009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11610
11611 * lisp.h: Remove declaration of Ffont_get_system_font.
11612 * xfns.c: Move include of "xsettings.h".
11613 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11614
dfb3c4c6
JD
116152009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11616
87e32266
SM
11617 * xsettings.c (something_changedCB, Ffont_get_system_font):
11618 Check use_system_font.
dfb3c4c6
JD
11619 (syms_of_xsettings): DEFVAR font-use-system-font.
11620
9370c1d8
AS
116212009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11622
25fe851a
AS
11623 * xfns.c (x_default_font_parameter): Remove dead assignment.
11624
9370c1d8
AS
11625 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11626
637fa988
JD
116272009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11628
87e32266 11629 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 11630 not have FC_LCD_*. #define them if not there.
a6eb20d8 11631
87e32266 11632 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 11633
637fa988
JD
11634 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11635
11636 * xterm.c (handle_one_xevent): Call xft_settings_event for
11637 ClientMessage, PropertyNotify and DestroyNotify.
11638 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11639 Call xsettings_initialize.
11640
11641 * xftfont.c (xftfont_fix_match): New function.
11642 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11643 Call xftfont_fix_match after XftFontMatch.
11644
11645 * xfont.c (xfont_driver): Initialize all members.
11646
87e32266
SM
11647 * xfns.c (x_default_font_parameter):
11648 Try font from Ffont_get_system_font.
637fa988
JD
11649 Do not get font from x_default_parameter if we got one from
11650 Ffont_get_system_font.
87e32266 11651 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
11652
11653 * w32font.c (w32font_driver): Initialize all members.
11654
11655 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11656
11657 * lisp.h: Declare syms_of_xsettings.
11658
87e32266
SM
11659 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11660 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
11661
11662 * ftfont.c (ftfont_filter_properties): New function.
11663
11664 * frame.c (x_set_font): Remove unused variable lval.
11665
87e32266 11666 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
11667
11668 * font.c (font_put_extra): Don't return if val is nil, it means
11669 boolean option is off.
11670 (font_parse_fcname): Collect all extra properties in extra_props
11671 and call filter_properties for all drivers with extra_props and
11672 font as parameter.
87e32266
SM
11673 (font_open_entity): Do not use cache, it does not pick up new
11674 fontconfig settings like hinting.
637fa988
JD
11675 (font_load_for_lface): If spec had a name in it, store it in entity.
11676
a73f9c9d 11677 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
11678
11679 * config.in: HAVE_GCONF is new.
11680
11681 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11682 xsettings.o is new.
11683
5a942932
KH
116842009-11-17 Kenichi Handa <handa@m17n.org>
11685
11686 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11687 back to the default font in case that no suitable font is found.
11688
b7c7a4d1
SM
116892009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11690
11691 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11692 Suggested by Chad Brown <yandros@mit.edu>.
11693 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11694
072f1e39
JD
116952009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11696
11697 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11698
5d1e70a2
AS
116992009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11700
87e32266 11701 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 11702
a53cfbe5
JD
117032009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11704
473a99b7
JD
11705 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11706 has a parent.
11707
a53cfbe5 11708 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 11709 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
11710
11711 * config.in: Generated (AUTO_DEPEND).
11712
f04bb9b2
MA
117132009-11-13 Michael Albinus <michael.albinus@gmx.de>
11714
b7c7a4d1 11715 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
11716 Vdbus_registered_functions_table, because it contains also
11717 properties. Fix docstring.
b7c7a4d1 11718 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 11719
8f11f7ec
SM
117202009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11721
11722 * alloc.c (mark_object): Don't reprocess marked strings.
11723 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11724 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11725
8a605fe8
KH
117262009-11-13 Kenichi Handa <handa@m17n.org>
11727
8f11f7ec 11728 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
11729 semantics of Vword_combining_categories.
11730 (Vword_combining_categories): Describe the slight change of the
11731 semantics.
11732
241c4680
EZ
117332009-11-13 Eli Zaretskii <eliz@gnu.org>
11734
11735 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11736
11737 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11738
5d58e44c
SM
117392009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11740
11741 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11742
5e13f9d3
JB
117432009-11-12 Juanma Barranquero <lekktu@gmail.com>
11744
11745 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11746
cf54c754
DR
117472009-11-11 David Reitter <david.reitter@gmail.com>
11748
11749 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11750 variables to fix 2009-11-09 change.
11751
a4ada374
DN
117522009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11753
91433552
DN
11754 * process.c (ifflag_def): Make flag_sym constant.
11755 (Fnetwork_interface_info): Use a constant pointer.
11756 (ifflag_table):
11757 * xfns.c (cursor_bits):
11758 * xdisp.c (power_letter):
11759 * termcap.c (speeds, esctab):
11760 * sysdep.c (baud_convert):
11761 * keyboard.c (lispy_accent_codes, modifier_names):
11762 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11763 (jpeg_format, tiff_format, gif_format, svg_format)
11764 (interlace_start, interlace_increment, gs_format):
11765 * gtkutil.c (separator_names):
11766 * fringe.c (swap_nibble):
11767 * fns.c (base64_value_to_char, base64_char_to_value):
11768 * fileio.c (make_temp_name_tbl):
11769 * coding.c (suffixes): Make constant.
11770
f4265f6c
DN
11771 * frame.c (make_initial_frame):
11772 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11773 build_string.
11774 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11775
04420943
DN
11776 * s/freebsd.h:
11777 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11778
0a5d24ae
DN
11779 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11780 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11781
a4ada374
DN
11782 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11783 * xterm.c (syms_of_xterm):
11784 * xfaces.c (syms_of_xfaces):
11785 * xdisp.c (syms_of_xdisp):
11786 * lread.c (syms_of_lread):
11787 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11788 build_string.
91433552 11789
a4ada374
DN
11790 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11791
af98fc7f
SM
117922009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11793
8ab1650e 11794 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 11795
e90292a9
JD
117962009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11797
11798 * keyboard.h: Declare timer_check.
11799
11800 * keyboard.c (timer_check_2): New function that does what the old
11801 timer_check did.
11802 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11803 returned, i.e. don't return -1 with timers pending.
11804
11805 * process.c: Remove extern declaration of timer_check.
11806
11807 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11808 even if timer_check returned -1.
11809
af98fc7f
SM
11810 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11811 xg_dialog_data.
e90292a9
JD
11812 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11813 the event loop.
11814 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11815 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11816 Destroy the dialog after xg_dialog_run.
11817
045b83c0
SM
118182009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11819
11820 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11821
1fb99a3a
JD
118222009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11823
11824 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11825
04e452cb
JB
118262009-11-09 Juanma Barranquero <lekktu@gmail.com>
11827
11828 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11829
ef7417fd
SM
118302009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11831
11832 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11833 w32menu.c, and nsmenu.m.
11834 Simplify the obsolete case where position is nil.
11835 (cleanup_popup_menu): New function, moved from nsmenu.m.
11836 (struct skp): Remove slot `notreal'.
11837 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11838 adjust callers.
11839 (single_menu_item): Adjust call to parse_menu_item.
11840 (syms_of_menu): Defsubr x-popup-menu.
11841 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11842 (keymap_panes): Don't export any more.
11843 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11844 (xmenu_show): Declare.
11845 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11846 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11847 * keyboard.h (parse_menu_item): Update declaration.
11848 * xmenu.c (Fx_popup_menu): Remove.
11849 (syms_of_xmenu): Don't defsubr x-popup-menu.
11850 * w32menu.c (Fx_popup_menu): Remove.
11851 (syms_of_w32menu): Don't defsubr x-popup-menu.
11852 * nsmenu.m (cleanup_popup_menu): Remove.
11853 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11854 moved to menu.c's Fx_popup_menu.
11855 (Fx_popup_menu): Remove.
11856 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11857 menu_items (it's done in menu.c already).
11858
424d6179
SM
118592009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11860
11861 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11862 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11863
c0df13a6 118642009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
11865
11866 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 11867 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
11868 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11869 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11870
2de9f71c
SM
118712009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11872
11873 Let integers use up 2 tags to give them one extra bit and thus double
11874 their range.
11875 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11876 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11877 New macros.
11878 (enum Lisp_Type): Use them. Give explicit values.
11879 (Lisp_Type_Limit): Remove.
11880 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11881 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11882 Pay attention to USE_2_TAGS_FOR_INTS.
11883 (INTEGERP): Use LISP_INT_TAG_P.
11884 * fns.c (internal_equal): Simplify the default case.
11885 (sxhash): Use case_Lisp_Int.
11886 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11887 any more.
11888 (Ftype_of): Use case_Lisp_Int.
11889 (store_symval_forwarding): Take into account the fact that Ints can
11890 now have more than one tag.
11891 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 11892 (buffer_slot_type_mismatch):
2de9f71c
SM
11893 * xfaces.c (face_attr_equal_p):
11894 * print.c (print_object):
11895 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11896 Use case_Lisp_Int.
11897
323637a2
EZ
118982009-11-06 Eli Zaretskii <eliz@gnu.org>
11899
7ac65b38
EZ
11900 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11901
323637a2
EZ
11902 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11903 warning.
11904
e511451f
JD
119052009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11906
11907 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11908
11909 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11910
11911 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11912 ButtonPressRelease and MotionNotify (bug#4870).
11913
5e2327cf
DN
119142009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11915
5adc433e
DN
11916 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11917
d67b4f80
DN
11918 * xterm.c (syms_of_xterm):
11919 * xselect.c (syms_of_xselect):
11920 * xmenu.c (syms_of_xmenu):
11921 * xfns.c (syms_of_xfns):
11922 * xfaces.c (syms_of_xfaces):
11923 * xdisp.c (syms_of_xdisp):
11924 * window.c (syms_of_window):
11925 * w32fns.c (syms_of_w32fns):
11926 * undo.c (syms_of_undo):
11927 * textprop.c (syms_of_textprop):
11928 * terminal.c (syms_of_terminal):
11929 * syntax.c (syms_of_syntax):
11930 * sound.c (syms_of_sound):
11931 * search.c (syms_of_search):
11932 * print.c (syms_of_print):
11933 * minibuf.c (syms_of_minibuf):
11934 * macros.c (syms_of_macros):
11935 * keymap.c (syms_of_keymap, initial_define_key)
11936 (initial_define_lispy_key):
11937 * keyboard.c (syms_of_keyboard):
11938 * insdel.c (syms_of_insdel):
11939 * image.c (syms_of_image):
11940 * fringe.c (syms_of_fringe):
11941 * frame.c (syms_of_frame):
11942 * fontset.c (syms_of_fontset):
11943 * fns.c (syms_of_fns):
11944 * fns.c (syms_of_fns):
11945 * fileio.c (syms_of_fileio):
11946 * fileio.c (syms_of_fileio):
11947 * eval.c (syms_of_eval):
11948 * doc.c (syms_of_doc):
11949 * dispnew.c (syms_of_display):
11950 * dired.c (syms_of_dired):
11951 * dbusbind.c (syms_of_dbusbind):
11952 * data.c (syms_of_data):
11953 * composite.c (syms_of_composite):
11954 * coding.c (syms_of_coding):
11955 * cmds.c (syms_of_cmds):
11956 * charset.c (define_charset_internal, syms_of_character):
11957 * ccl.c (syms_of_ccl):
11958 * category.c (syms_of_category, init_category_once):
11959 * casetab.c (syms_of_casetab):
11960 * casefiddle.c (syms_of_casefiddle):
11961 * callint.c (syms_of_callint):
11962 * bytecode.c (syms_of_bytecode):
11963 * buffer.c (keys_of_buffer, syms_of_buffer):
11964 * alloc.c (syms_of_alloc):
11965 * process.c (syms_of_process, init_process):
11966 * lread.c (syms_of_lread, init_obarray):
11967 * font.c (build_style_table):
11968 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11969 intern_c_string, calls to make_pure_string with
11970 make_pure_c_string. Use pure_cons instead of Fcons.
11971
5e2327cf
DN
11972 * process.c (socket_options): Make it const.
11973 (set_socket_option, init_process): Use a const pointer.
11974
11975 * lread.c (intern_c_string): New function.
11976 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11977 (defvar_int): Uset it. Make the name const char*.
11978
11979 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11980 (defvar_int): Update prototypes.
11981 (DEFUN, EXFUN): Support for prototypes is now required.
11982 (intern_c_string): New prototype.
11983 (struct Lisp_Subr): Make symbol_name constant.
11984
11985 * font.c (struct table_entry): Remove unused member. Make NAMES
11986 constant.
11987 (weight_table, slant_table, width_table): Make constant.
11988
11989 * emacs.c (struct standard_args): Make name and longname constant.
11990
11991 * character.h (DEFSYM): Use intern_c_string.
11992
a56eaaef
DN
119932009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11994
11995 * alloc.c (make_pure_c_string): New function.
11996
11997 * eval.c (Fautoload): Purecopy all arguments.
11998
f6a07420
KH
119992009-11-05 Kenichi Handa <handa@m17n.org>
12000
12001 * fileio.c (Finsert_file_contents): Be sure set coding-system of
12002 the buffer in case of replace.
12003
5d28d4b1
DN
120042009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
12005
12006 * puresize.h (BASE_PURESIZE): Increase to 1620000.
12007
b349d111
SM
120082009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
12009
d528b1ce
SM
12010 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
12011 when applicable (bug#4851).
12012
b349d111
SM
12013 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
12014 (P_): Support for prototypes is now required.
12015
c38eb027
CY
120162009-10-31 Chong Yidong <cyd@stupidchicken.com>
12017
12018 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
12019 (Bug#4827).
12020
0405f8d9
EZ
120212009-10-30 Eli Zaretskii <eliz@gnu.org>
12022
d528b1ce 12023 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 12024
ca0a881a
DN
120252009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
12026
12027 * puresize.h (BASE_PURESIZE): Increase to 1470000.
12028
d528b1ce
SM
12029 * lread.c (Fload): Purecopy the file name when building
12030 Vpreloaded_file_list.
ca0a881a 12031
47e0e0e4
JR
120322009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
12033
12034 * w32fns.c (syms_of_w32fns): Change default value of
12035 w32-scroll-lock-modifier to nil. (Bug#2827)
12036
057bce6f
JB
120372009-10-26 Juanma Barranquero <lekktu@gmail.com>
12038
782a943e 12039 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 12040
242bc74c
AS
120412009-10-26 Andreas Schwab <schwab@redhat.com>
12042
12043 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
12044
522d013a
JB
120452009-10-26 Juanma Barranquero <lekktu@gmail.com>
12046
12047 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
12048 For delta < 0, skip check that only makes sense when the mini-window
12049 is going to be enlarged. (Bug#4534)
12050
18060980
CY
120512009-10-25 Chong Yidong <cyd@stupidchicken.com>
12052
12053 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
12054 string in menu maps (Bug#4471).
12055
fec8f0fe
CY
120562009-10-24 Chong Yidong <cyd@stupidchicken.com>
12057
12058 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
12059 FRAME_NS_VIEW on terminal frames (Bug#4765).
12060
10d66ec0
AS
120612009-10-24 Andreas Schwab <schwab@linux-m68k.org>
12062
1cae01f7
AS
12063 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
12064 DBUS_TYPE_UINTnn separately to get proper sign extension.
12065
58a12889
AS
12066 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
12067 can properly handle unsigned types.
d528b1ce 12068 (make_uid, make_gid): Remove.
58a12889 12069
987c9327
AS
12070 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
12071 types again.
12072
522d013a 12073 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
12074 (system_process_attributes): Likewise.
12075
905a9ed3
DN
120762009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
12077
12078 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
12079
12080 * eval.c (Fautoload): Purecopy the filename. Simplify.
12081
12082 * category.c (Fdefine_category): Purecopy docstring.
12083
a599b3e8
AS
120842009-10-23 Andreas Schwab <schwab@linux-m68k.org>
12085
7b792fc9
AS
12086 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
12087
a599b3e8
AS
12088 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
12089
b35ac83e
CY
120902009-10-23 Chong Yidong <cyd@stupidchicken.com>
12091
12092 * window.c (Fwindow_edges, Fwindow_pixel_edges)
12093 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
12094 (Bug#4775).
12095
e8903e00
SM
120962009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
12097
12098 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
12099 (init_fileio_once):
12100 * lisp.h (init_fileio_once): Remove.
12101 * emacs.c (main): Don't call init_fileio_once.
12102
8f43cbf3
DN
121032009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
12104
12105 * puresize.h (BASE_PURESIZE): Increase to 1430000.
12106
26898943
AS
121072009-10-21 Andreas Schwab <schwab@linux-m68k.org>
12108
12109 * doprnt.c (doprnt): Fix overflow check.
12110
5c646d5a
JD
121112009-10-21 Jan Djärv <jan.h.d@swipnet.se>
12112
3132a7ea
JD
12113 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
12114
5c646d5a
JD
12115 * xterm.h (x_wait_for_event): Declare it.
12116
12117 * xterm.c (pending_event_wait): New variable.
12118 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
12119 see pending_event_wait.eventtype.
12120 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
12121 (x_new_font): Call change_frame_size with new rows/columns before we
12122 try to resize the frame.
5c646d5a 12123 (x_wait_for_event): New function.
d528b1ce
SM
12124 (x_set_window_size_1): Don't change gravity unless change_gravity
12125 is set.
5c646d5a
JD
12126 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
12127 don't change frame size, instead wait for the ConfigureNotify.
12128 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
12129 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
12130 (x_initialize): Initialize pending_event_wait.
12131
12132 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
12133 size.
12134
12135 * widget.c (EmacsFrameSetValues): Add comment.
12136 (EmacsFrameSetCharSize): Just call x_set_window_size.
12137
12138 * gtkutil.c (xg_frame_set_char_size): Flush events and call
12139 x_wait_for_event.
d528b1ce 12140 (flush_and_sync): Remove again.
5c646d5a
JD
12141 (xg_get_font_name): Suggest monospace if no previous font is known.
12142
e9c1637d
SM
121432009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
12144
12145 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 12146 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 12147
5a72cccb
YM
121482009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12149
12150 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
12151 processing pending events when event is filtered for input method.
ab04798f 12152 (Bug#3681)
5a72cccb 12153
2629aa37
JB
121542009-10-20 Juanma Barranquero <lekktu@gmail.com>
12155
12156 * fns.c: Add #endif accidentally removed in previous change.
12157
c3417a74
DN
121582009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12159
12160 * fns.c: Remove code for unsupported system: MAC_OS.
12161 * image.c: Likewise. Include setjmp.h.
12162
9685cef2
JD
121632009-10-19 Jan Djärv <jan.h.d@swipnet.se>
12164
12165 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
12166 pixel -1 (bug #4742).
12167
d7306fe6
DN
121682009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
12169
019d2c4c
DN
12170 * process.c (create_pty): Remove conditionals for no longer
12171 supported systems: UNIPLUS and RTU.
12172
ee6bacd4
DN
12173 * xterm.c:
12174 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
12175
d7306fe6
DN
12176 * alloc.c: Do not define struct catchtag.
12177 * eval.c: Move struct catchtag definition ...
12178 * lisp.h: ... here.
12179
12180 * image.c: Move png.h #include earlier to avoid warnings.
12181
12182 * xterm.c:
12183 * xsmfns.c:
12184 * xselect.c:
12185 * xrdb.c:
12186 * xmenu.c:
12187 * xftfont.c:
12188 * xfont.c:
12189 * xfns.c:
12190 * xfaces.c:
12191 * xdisp.c:
12192 * window.c:
12193 * widget.c:
12194 * w32xfns.c:
12195 * w32uniscribe.c:
12196 * w32term.c:
12197 * w32select.c:
12198 * w32reg.c:
12199 * w32proc.c:
12200 * w32menu.c:
12201 * w32inevt.c:
12202 * w32heap.c:
12203 * w32font.c:
12204 * w32fns.c:
12205 * w32console.c:
12206 * w32.c:
12207 * w16select.c:
12208 * vm-limit.c:
12209 * unexsol.c:
12210 * unexec.c:
12211 * unexcw.c:
12212 * unexaix.c:
12213 * undo.c:
12214 * tparam.c:
12215 * textprop.c:
12216 * terminfo.c:
12217 * terminal.c:
12218 * termcap.c:
12219 * term.c:
12220 * syntax.c:
12221 * sound.c:
12222 * sheap.c:
12223 * search.c:
12224 * scroll.c:
12225 * region-cache.c:
12226 * regex.c:
12227 * ralloc.c:
12228 * process.c:
12229 * print.c:
b024548b
DN
12230 * nsterm.m:
12231 * nsselect.m:
12232 * nsmenu.m:
12233 * nsimage.m:
12234 * nsfont.m:
12235 * nsfns.m:
d7306fe6
DN
12236 * msdos.c:
12237 * minibuf.c:
12238 * menu.c:
12239 * marker.c:
12240 * macros.c:
12241 * keymap.c:
12242 * keyboard.c:
12243 * intervals.c:
12244 * insdel.c:
12245 * indent.c:
12246 * gtkutil.c:
12247 * ftxfont.c:
12248 * ftfont.c:
12249 * fringe.c:
12250 * frame.c:
12251 * fontset.c:
12252 * font.c:
12253 * fns.c:
12254 * floatfns.c:
12255 * filelock.c:
12256 * fileio.c:
12257 * emacs.c:
12258 * editfns.c:
12259 * dosfns.c:
12260 * doprnt.c:
12261 * doc.c:
12262 * dispnew.c:
12263 * dired.c:
12264 * dbusbind.c:
12265 * data.c:
12266 * composite.c:
12267 * coding.c:
12268 * cmds.c:
12269 * cm.c:
12270 * chartab.c:
12271 * charset.c:
12272 * character.c:
12273 * ccl.c:
12274 * category.c:
12275 * casetab.c:
12276 * casefiddle.c:
12277 * callproc.c:
12278 * callint.c:
12279 * bytecode.c:
12280 * buffer.c:
12281 * atimer.c: Include setjmp.h. (Bug#4643)
12282
fd5f21e6
SM
122832009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12284
4c0354d7
SM
12285 Remove leftover table unibyte_to_multibyte_table.
12286 * character.c (unibyte_to_multibyte_table): Remove.
12287 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12288 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12289 * character.h (UNIBYTE_TO_CHAR): New macro.
12290 (MAKE_CHAR_MULTIBYTE): Use it.
12291 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12292 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12293 (message_dolog, set_message_1):
12294 * search.c (Freplace_match):
12295 * editfns.c (Fcompare_buffer_substrings):
12296 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12297 (concat):
12298 * insdel.c (copy_text, count_size_as_multibyte):
12299 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12300 * term.c (produce_glyphs):
12301 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12302 * regex.c (RE_CHAR_TO_MULTIBYTE):
12303 * cmds.c (internal_self_insert):
12304 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12305
fd5f21e6
SM
12306 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12307
4418646e
DN
123082009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12309
12310 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12311
35f5c1d2
JB
123122009-10-16 Juanma Barranquero <lekktu@gmail.com>
12313
12314 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12315
a0cd8f6b
AR
123162009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12317
12318 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12319 still needed under Tiger.
12320
12321 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12322
12323 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12324 __Apple__.
12325
12326 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12327
01a8d3fa
KH
123282009-10-15 Kenichi Handa <handa@m17n.org>
12329
12330 * print.c (print_object): Escape a symbol like "2E10" too.
12331
bf6c75c9 123322009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
12333
12334 Cleanups and changes for 64-bit compile under Snow Leopard.
12335 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
12336
12337 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12338
c5959062 12339 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
12340 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12341 cast argument.
12342 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 12343 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
12344
12345 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12346
12347 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12348 where appropriate.
12349
12350 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12351 where appropriate.
6e4780c5
JB
12352 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12353 Use stringWithUTF8String.
bf6c75c9
AR
12354 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12355
6e4780c5
JB
12356 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12357 Add formal protocol mention to inheritance.
bf6c75c9
AR
12358 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12359
6e4780c5
JB
12360 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12361 Fix printf format.
bf6c75c9
AR
12362 (ns_query_color): Use CGFloat where appropriate.
12363 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 12364 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
12365 argument.
12366
3d87f118
AR
12367 * config.in (NS_HAVE_NSINTEGER): Drop.
12368
a95c8102
AR
12369 * dbusbind.c (dbus-method-return-internal)
12370 (dbus-method-error-internal): Use long format in printf, and cast
12371 argument.
12372
12373 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12374 in printf, and cast argument.
12375
6873acca 12376 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
12377 cast argument.
12378
9ec6f100
GM
123792009-10-11 Glenn Morris <rgm@gnu.org>
12380
12381 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12382
5be883cd
JD
123832009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12384
12385 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12386 menu bar with a small width so it doesn't enlarge the frame.
12387
d7a39b51
JB
123882009-10-08 Juanma Barranquero <lekktu@gmail.com>
12389
12390 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12391
0c2b6f8e
GM
123922009-10-06 Glenn Morris <rgm@gnu.org>
12393
12394 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12395 SOME_MACHINE_LISP (this enters indirectly via DOC).
12396
e02131a2
EZ
123972009-10-05 Eli Zaretskii <eliz@gnu.org>
12398
12399 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12400
b4744254
EZ
124012009-10-04 Eli Zaretskii <eliz@gnu.org>
12402
12403 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12404 Doc fix.
12405
dbf64827
JB
124062009-10-03 Martin Rudalics <rudalics@gmx.at>
12407
12408 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12409
e9a0aef8
MA
124102009-10-02 Michael Albinus <michael.albinus@gmx.de>
12411
d528b1ce 12412 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
12413 used anymore outside fileio.c.
12414
12415 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12416
64eb2b56
JB
124172009-10-01 Juanma Barranquero <lekktu@gmail.com>
12418
12419 * lisp.h (Qdelete_directory_internal):
12420 Declare, instead of Qdelete_directory.
12421
12422 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12423
9d28c33e
SM
124242009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12425
12426 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12427
9d8f3bd9
MA
124282009-10-01 Michael Albinus <michael.albinus@gmx.de>
12429
9d28c33e 12430 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
12431 Fdelete_directory. It is not a command anymore. It has no file
12432 name handler.
12433
9694740b
SM
124342009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12435
12436 * xdisp.c (get_next_display_element): Use an enum in last change.
12437
748e162f
KH
124382009-09-28 Kenichi Handa <handa@m17n.org>
12439
9694740b 12440 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
12441 unibyte_display_via_language_environment in handling
12442 Vnobreak_char_display.
12443
17efd58d
AR
124442009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12445
12446 * nsterm.h (ns_app_name): New extern variable.
12447
12448 * nsterm.m (ns_app_name): New variable.
12449 (ns_term_init): Set and use it.
12450 (ns_term_shutdown): Use it.
12451
12452 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12453 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12454
12455 * nsfns.m (ns_set_name_iconic, ns_set_name)
12456 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12457 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12458
9694740b
SM
12459 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12460 Remove double-casting in client_data comparison.
31c2d412 12461
3208cb35
YM
124622009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12463
12464 * keyboard.c (make_lispy_event): Remember last wheel direction.
12465 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12466
b7d552d6
GM
124672009-09-26 Glenn Morris <rgm@gnu.org>
12468
12469 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12470 internal.elc. Add term/pc-win.elc.
12471 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12472 term/x-win.elc.
12473 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12474 term/w32-win.elc.
12475 (NS_SUPPORT): New.
12476 (lisp): Add NS_SUPPORT.
12477 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12478
4ff670a8
DR
124792009-09-25 David Reitter <david.reitter@gmail.com>
12480
12481 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12482 on Mac OS X 10.6+ (bug#4513).
12483
feabfb6c
JB
124842009-09-24 Juanma Barranquero <lekktu@gmail.com>
12485
12486 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
12487 some parts of Emacs code (like font selection) don't grok them.
12488 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 12489
de59072a
AS
124902009-09-24 Andreas Schwab <schwab@redhat.com>
12491
12492 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12493
a489517b
JB
124942009-09-24 Juanma Barranquero <lekktu@gmail.com>
12495
12496 * dired.c (Fdirectory_files): Fix typo in docstring.
12497
0592970c
AR
124982009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12499
12500 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12501 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12502 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12503 under GNUstep.
12504 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12505
12506 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12507 glyph advancement.
12508
48e8a88b
AR
125092009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12510
12511 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 12512 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
12513
12514 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12515 deleted (bug #4492).
12516
e14f0a78
AR
12517 * nsfont.m (Vns_reg_to_script): New lisp variable.
12518 (syms_of_nsfont): Declare it.
12519 (ns_registry_to_script): New function.
12520 (ns_get_req_script): Call it.
12521 (ns_findfonts): Don't give up on non-unicode registry.
12522
12523 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12524
5b650faa
SM
125252009-09-20 Tom Tromey <tromey@redhat.com>
12526
12527 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12528 batch mode (bug#4228).
12529
a489517b 125302009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
12531
12532 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 12533 carefully. (Bug #4339)
0bae4e09 12534
fcfe06f3
CY
125352009-09-18 Chong Yidong <cyd@stupidchicken.com>
12536
d798ba87 12537 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 12538
31642728
AR
125392009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12540
12541 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
12542 (main) [HAVE_NS]: Don't process --no-init-file option.
12543 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
12544
12545 * nsterm.h (ns_no_defaults): Remove.
12546
12547 * nsterm.m (ns_no_defaults): Remove.
12548 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12549 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
12550 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12551 don't update the NSWindow itself.
bba3e508
SM
12552 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12553 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
12554
12555 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12556 ns_use_qd_smoothing.
12557
12558 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12559 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 12560 (x-close-connection): Drop PSFlush() under OS X.
a489517b 12561 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 12562
8686ac71
JB
125632009-09-17 Juanma Barranquero <lekktu@gmail.com>
12564
12565 * emacs.c (inhibit_x_resources): New variable.
12566 (main) [HAVE_NS]: Don't process --quick command line option.
12567 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12568
12569 * lisp.h (inhibit_x_resources): Declare it extern.
12570
12571 * w32reg.c (x_get_string_resource):
12572 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12573
e227ba05
EZ
125742009-09-17 Eli Zaretskii <eliz@gnu.org>
12575
362654a6
JB
12576 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12577 Add lisp/term/internal.elc.
e227ba05 12578
742d40e8
SM
125792009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12580
12581 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12582 (bug#4461).
12583
005bd5a2
DN
125842009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12585
12586 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12587
12588 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12589 (OBJECTS_MACHINE): Remove, unused.
12590
f9af9719
SM
125912009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12592
12593 * frame.c (x_get_resource_string): Remove unused.
12594
0307c7d2
JD
125952009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12596
12597 * xterm.c (x_new_font): Call change_frame_size before calling
12598 x_set_window_size, in case frame size won't change.
12599
12600 * frame.c (x_set_font): Remove dead code.
12601
428b13d6
SM
126022009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12603
12604 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12605
5766c380
SM
126062009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12607
12608 * lread.c (Fload): Don't output a message after loading an obsolete
12609 package any more (done in Lisp now).
12610
2fd0161b
CY
126112009-09-12 Chong Yidong <cyd@stupidchicken.com>
12612
12613 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12614
bc5e75b6
SM
126152009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12616
12617 * keymap.c (Fwhere_is_internal): Use nconc2.
12618
c31c985e
AM
126192009-09-11 Alan Mackenzie <acm@muc.de>
12620
12621 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12622 batch mode.
12623
78012bd2
AS
126242009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12625
12626 * xdisp.c (display_mode_element): Detect cycles.
12627
9d889332
SM
126282009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12629
12630 * keymap.c (where_is_internal): Don't erroneously return nil right after
12631 filling the cache.
12632 (where_is_internal_1): Fix up typo.
12633
7ab5d780
GM
126342009-09-11 Glenn Morris <rgm@gnu.org>
12635
12636 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12637 share a common doc-string.
12638
5238a749
SM
126392009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12640
66d77eda
SM
12641 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12642 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12643
5238a749
SM
12644 * keymap.c (QCadvertised_binding): New constant.
12645 (syms_of_keymap): Initialize it.
12646 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12647 if applicable.
12648
19f48442
SM
126492009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12650
50d4ba39
SM
12651 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12652 (parse_menu_item): Streamline since bindings are recomputed all the
12653 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12654 more and don't support lmenu's menu-alias any more either.
12655
a88a5372
SM
12656 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12657 (where_is_internal): Strip it down to only traverse the keymaps.
12658 Move the cache handling from Fwhere_is_internal to here.
12659 (Fwhere_is_internal): Move the handling of remapping and the choice of
12660 the best binding from where_is_internal to here.
12661 Unify the cached/noncached paths, so remapping is also handled
12662 correctly when the cache is used, and so the cache can be used to
12663 speed up remap-handling when applicable.
12664 Give preference to non-remapped bindings.
12665 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12666 non-remapped bindings.
12667 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12668 command remapping.
12669
19f48442
SM
12670 * xdisp.c (display_mode_element): Move list length limit from 50 to
12671 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12672
599498c3 126732009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
12674
12675 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12676
f9b7b5ac
SM
126772009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12678
a53af587
JB
12679 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12680 (Bug#4334)
12681
f9b7b5ac
SM
12682 * keymap.c (where_is_internal): Filter out shadowed remappings.
12683 Assume that where_is_internal returns unshadowed bindings to simplify
12684 the code and get rid of the gotos. Use ASIZE.
12685
04f4b72d
JD
126862009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12687
4da146f2
JD
12688 * xterm.c (x_focus_changed): If we get a focusout and pointer
12689 is invisible, make it visible.
12690
04f4b72d
JD
12691 * xterm.h: Remove condition for declaration of
12692 x_*_window_to_frame.
12693
7cef7ce3
SM
126942009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12695
12696 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12697 initial terminal as well.
12698
a54fa5b7
JD
126992009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12700
12701 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 12702 x_menubar_window_to_frame.
a54fa5b7 12703
50426a04 12704 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
12705 (XTmouse_position): Do not return valid positions
12706 for clicks in the menubar and the toolbar for Gtk+.
12707
12708 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12709 if the widget for the event has the same top level as a frame,
12710 return the frame.
12711 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12712 internal windows, bug #4122.
12713 (x_non_menubar_window_to_frame): Remove.
12714
5a021dd0
GM
127152009-09-02 Glenn Morris <rgm@gnu.org>
12716
12717 * buffer.c (default-major-mode): Move most of the doc from here...
12718 (major-mode): ... to here.
12719
548fe2f3
NR
127202009-08-30 Nick Roberts <nickrob@snap.net.nz>
12721
12722 * process.c (wait_reading_process_output): Keep the descriptor
12723 when pty is used by a non-child process, e.g., in I/O buffer of
12724 GDB this allows inferior to be restarted.
12725
e0840eef
EZ
127262009-08-29 Eli Zaretskii <eliz@gnu.org>
12727
12728 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12729 both branches into one.
12730
82e98df4
SM
127312009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12732
12733 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12734 (main): Use enable-multibyte-characters rather than
12735 default-enable-multibyte-characters. Output a warning message when
12736 running a unibyte session.
12737
890617cb
YM
127382009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12739
12740 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12741 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12742 (copy_data_segment): Also copy __program_vars section.
12743 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12744 (dump_it) [LC_DYLD_INFO]: Use it.
12745
12746 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12747
e7adeadc
EZ
127482009-08-28 Eli Zaretskii <eliz@gnu.org>
12749
12750 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12751 $(SRC)/buildobj.h.
ef1b0ba7 12752 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
12753 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12754 $(SRC)/buildobj.h.
12755 (clean): Add buildobj.h.
12756
3ed8bbdc
TZ
127572009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12758
12759 * print.c (print_object): Set escapeflag to 1 when printing
12760 hashtable keys and values.
12761
155a6764
SM
127622009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12763
12764 * lread.c (read_integer): Use doubles (and potentially return a float
12765 number) as we do in string-to-number.
12766 (read1): Use strtol to read integers, signal errors on strtol's
12767 overflow and use floats if strtol's output is too large for
12768 Elisp integers.
12769
877610de
EZ
127702009-08-27 Eli Zaretskii <eliz@gnu.org>
12771
12772 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12773 (make-buildobj-SH): Fix last change.
12774 (SRC): Move to before where it's first used.
12775
ef73e7be
KH
127762009-08-27 Kenichi Handa <handa@m17n.org>
12777
550c8289
KH
12778 * process.c (send_process): Use encode_coding_object instead of
12779 encode_coding_string to perform eol-conversion even if the string
12780 is unibyte.
12781
60afa08d
KH
12782 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12783 character.
12784
ef73e7be 12785 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 12786 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 12787
7b3a82d7
DN
127882009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12789
5654bf63
DN
12790 * callproc.c (Fcall_process): Remove always true #if.
12791
7b3a82d7
DN
12792 * lisp.h: Replace #if 0 code for checking with text pointing to
12793 the --enable-checking configure flag.
12794
12795 * emacs.c (main): Mention the --enable-profiling configure flag
12796 instead of using CFLAGS.
12797
878bde49
KR
127982009-08-26 Ken Raeburn <raeburn@raeburn.org>
12799
12800 * Makefile.in (buildobj.h): New target.
12801 (doc.o): Depend on it.
12802 (temacs${EXEEXT}): Don't generate buildobj.lst.
12803 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12804 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12805 ($(BLD)/doc.$(O)): Depend on it.
12806 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12807 provided by Eli Zaretskii.)
12808 ($(TEMACS)): Don't generate buildobj.lst.
12809 * doc.c: Include buildobj.h.
12810 (buildobj): New static variable.
12811 (Fsnarf_documentation): Use it, instead of opening and reading
12812 buildobj.lst.
12813
1574224c
MA
128142009-08-25 Michael Albinus <michael.albinus@gmx.de>
12815
12816 * dbusbind.c (Fdbus_call_method)
12817 (Fdbus_call_method_asynchronously): Use English numeric format for
12818 timeout values in doc string.
12819
d9da2f45
KH
128202009-08-25 Kenichi Handa <handa@m17n.org>
12821
ef73e7be
KH
12822 * alloc.c (mark_char_table): New function.
12823 (mark_object): Use mark_char_table for a char-table.
12824
d9da2f45
KH
12825 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12826 (CHAR_TABLE_REF): Use it.
12827
c8edcc01
KR
128282009-08-23 Ken Raeburn <raeburn@raeburn.org>
12829
12830 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12831 before invoking the newly build emacs to check for load-path
12832 shadowing.
12833
7763401b
GM
128342009-08-22 Glenn Morris <rgm@gnu.org>
12835
12836 * Makefile.in (bootstrap_exe): New variable.
12837 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12838 Use ${bootstrap_exe}.
12839
729eadda
EZ
128402009-08-22 Eli Zaretskii <eliz@gnu.org>
12841
12842 * coding.h (encode_coding_string): Don't encode unibyte strings.
12843 (Bug#4047)
12844
eb4c6ace
MA
128452009-08-22 Michael Albinus <michael.albinus@gmx.de>
12846
12847 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12848
12849 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12850 intended as hotfix only.
12851 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12852
36e34d1b
AR
128532009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12854
12855 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
12856 change, and clean up loose ends in the code left by it.
12857 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
12858 yet another X11 format (rgb:r/g/b) for compatibility.
12859 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12860 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12861
f983eb8a
SM
128622009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12863
12864 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12865
3f56d3c6
MA
128662009-08-20 Michael Albinus <michael.albinus@gmx.de>
12867
12868 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12869 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12870 (xd_initialize, xd_pending_messages): Check, whether
12871 $DBUS_SESSION_BUS_ADDRESS is set.
12872
fb641d68
YM
128732009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12874
12875 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12876
12877 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12878
cf59a374
GM
128792009-08-20 Glenn Morris <rgm@gnu.org>
12880
12881 * emacs.c (system-type): Doc fix.
12882
1373f3be
SM
128832009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12884
12885 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12886 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12887
058ed861
MA
128882009-08-18 Michael Albinus <michael.albinus@gmx.de>
12889
1373f3be
SM
12890 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12891 New functions.
058ed861
MA
12892 (xd_initialize): Revert change from 2009-08-16.
12893
563a866e 128942009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
12895
12896 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 12897 font-group vector, return nil.
5fc05db0 12898
e42bdf01
CY
128992009-08-17 Chong Yidong <cyd@stupidchicken.com>
12900
12901 * process.c (status_notify): Don't perform redisplay.
12902 (Fdelete_process, list_processes_1, process_send_signal):
12903 Expliticly perform redisplay.
12904 (wait_reading_process_output): Always check process status, but
12905 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12906
4230ab74
KR
129072009-08-17 Ken Raeburn <raeburn@raeburn.org>
12908
1373f3be 12909 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
12910 (XFLOAT_INIT): New macro for storing a float value.
12911 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12912 * fns.c (sxhash): Copy out the value of a float in order to
12913 examine its bytes.
12914 * dbusbind.c (xd_append_arg): Likewise.
12915
4230ab74
KR
12916 * emacs.c (main): Don't call syms_of_data twice.
12917
a0645cdd
MA
129182009-08-16 Michael Albinus <michael.albinus@gmx.de>
12919
12920 * dbusbind.c (xd_initialize): Add connection file descriptor to
12921 input_wait_mask, in order to let select() detect, whether a new
12922 message has been arrived.
ca4f31ea 12923 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 12924
485db0ba
MA
129252009-08-15 Michael Albinus <michael.albinus@gmx.de>
12926
1373f3be
SM
12927 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12928 New functions.
485db0ba
MA
12929
12930 * lisp.h (xd_pending_messages): Declare.
12931
12932 * keyboard.c (readable_events): Call xd_pending_messages.
12933
b5b98ff4
CY
129342009-08-15 Chong Yidong <cyd@stupidchicken.com>
12935
1373f3be 12936 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 12937
f8354c6e
CY
12938 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12939
b5b98ff4
CY
12940 * buffer.c (set_buffer_internal_1)
12941 (swap_out_buffer_local_variables): Check for unbound local
12942 variables (Bug#4138).
12943
8b9fc636
EZ
129442009-08-14 Eli Zaretskii <eliz@gnu.org>
12945
12946 * process.c (create_pty): Fix last change.
12947
ce959360
CY
129482009-08-13 Chong Yidong <cyd@stupidchicken.com>
12949
12950 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12951 (xbm_load_image): Caller changed.
64b807c9 12952 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 12953
c7baf7e9
NR
129542009-08-13 Nick Roberts <nickrob@snap.net.nz>
12955
12956 * process.c (create_pty): New function.
12957 (Fstart_process): Use it to allow Emacs to just associate a pty
12958 with the buffer. See associated change in gdb-mi.el.
12959 (list_processes_1): Deal with no program name.
12960 (start_process_unwind): Use pid == -2 to mean no process.
12961
1ac9108a
SM
129622009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12963
12964 * cmds.c (nonundocount): New global variable.
12965 (keys_of_cmds): Initialize it.
12966 (Fself_insert_command): Use it to combine upto 20 sequential chars
12967 into a single undo entry, just like the Qself_insert_command code in
12968 keyboard.c does.
12969 Call frame_make_pointer_invisible, also like the Qself_insert_command
12970 code in keyboard.c does.
12971 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12972 than its own local replacement for it.
12973
e267324c
KR
129742009-08-10 Ken Raeburn <raeburn@raeburn.org>
12975
1ac9108a 12976 * fns.c (concat): Don't re-set string length to its current value.
77437343 12977
1ac9108a
SM
12978 * coding.h (decode_coding_string, encode_coding_string):
12979 Use SBYTES macro.
f0bed503 12980
1ac9108a 12981 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
12982 (doprnt): Merge with doprnt1, discarding lispstrings code.
12983 * lisp.h (doprnt_lisp): Don't declare.
12984
416e006d
JL
129852009-08-07 Juri Linkov <juri@jurta.org>
12986
12987 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12988
6f7d5780
DN
129892009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12990
12991 * print.c (syms_of_print): Undo previous change.
12992
f19a0f5b
TZ
129932009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12994
12995 * lread.c (read1, syms_of_lread): Read hashtables back from the
12996 readable format.
12997
12998 * print.c (print_preprocess, print_object): Print hashtables fully
12999 and readably.
13000 (syms_of_print): Provide 'hashtable-print-readable.
13001
b9173dc2
AR
130022009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
13003
13004 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
13005 no family set.
13006 (nsfont_open): Handle case when entity has no family.
13007
1586503c
AR
130082009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
13009
13010 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
13011 element, not a list, for match case.
13012
087048cd
KH
130132009-07-28 Kenichi Handa <handa@m17n.org>
13014
13015 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
13016 rigidly.
13017
13018 * xfont.c (xfont_list_pattern): Don't ignore the return value of
13019 font_parse_xlfd. Check font properties more rigidly.
13020
780c2506
DN
130212009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
13022
31fd7c5c
JB
13023 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
13024 bsd-common.h.
780c2506 13025
a8c0cc18
KH
130262009-07-27 Kenichi Handa <handa@m17n.org>
13027
13028 * xfaces.c (face_with_height): Call font_clear_prop.
13029
4fbe2306
CY
130302009-07-26 Chong Yidong <cyd@stupidchicken.com>
13031
111d9af3
CY
13032 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
13033
13034 * xterm.c (x_term_init): Use Qx.
13035
4fbe2306
CY
13036 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
13037
1ac9108a 13038 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
13039 (ns_get_color): Revert 2009-07-16 change.
13040
beb0b7f9
EZ
130412009-07-25 Eli Zaretskii <eliz@gnu.org>
13042
13043 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 13044 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 13045
2baf5e76
KR
130462009-07-25 Ken Raeburn <raeburn@raeburn.org>
13047
1ac9108a
SM
13048 * coding.h (decode_coding_string, encode_coding_string):
13049 Use SCHARS macro.
8890e5f5 13050
2baf5e76 13051 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 13052 (load_depth): Delete.
2baf5e76
KR
13053 (Qload_in_progress): New variable.
13054 (load_unwind): Don't reference load_depth or load_in_progress.
13055 (Fload): Likewise; specbind Qload_in_progress instead.
13056 (init_lread): Don't initialize load_depth.
13057 (syms_of_lread): Initialize and protect Qload_in_progress.
13058
1395c6f5
AR
130592009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
13060
13061 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
13062
4e2f36cf
AR
130632009-07-23 Yavor Doganov <yavor@gnu.org>
13064
13065 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
13066
5dd9a6f7
AR
130672009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
13068
13069 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
13070 Bugs 3792, 3720, 2402.
13071 (ns_lookup_indexed_color): Check for bad index.
13072 (ns_index_color): Init unused slot to 0.
13073 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
13074 Bug 3714, possibly 3082.
5dd9a6f7 13075
c902b920
JR
130762009-07-22 Jason Rumney <jasonr@gnu.org>
13077
1ac9108a
SM
13078 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
13079 Position IME window at cursor (Bug#2570).
c902b920
JR
13080 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
13081 (globals_of_w32fns): Dynamically load functions required above.
13082
13083 * w32term.c (w32_draw_window_cursor): Send message to reposition
13084 any IME window.
13085
090101cf
CY
130862009-07-21 Chong Yidong <cyd@stupidchicken.com>
13087
13088 * fileio.c: Revert 2009-07-16 changes.
13089 (Vauto_save_include_big_deletions): New variable.
13090 (Fdo_auto_save): Disable auto-save only if
13091 auto-save-include-big-deletions is nil.
13092
e6583e3d
CY
130932009-07-21 Chong Yidong <cyd@stupidchicken.com>
13094
13095 * xdisp.c (move_it_to): For continued lines ending in a tab, take
13096 the overflowed pixels into account (Bug#3879).
13097
ece435a5
KR
130982009-07-21 Ken Raeburn <raeburn@raeburn.org>
13099
13100 * lread.c (load_depth): New variable.
13101 (Fload, load_unwind, init_lread): Set it to the load recursion
13102 depth; set load_in_progress as a simple boolean based on the
13103 current load_depth. (Bug#3892)
13104
40b2d973
AR
131052009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
13106
13107 * nsfont.m (ns_has_attribute): Remove.
13108 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
13109
10be7e0d
JL
131102009-07-18 Juri Linkov <juri@jurta.org>
13111
13112 * process.c (Fset_process_query_on_exit_flag): Mention killing
13113 a buffer in docstring.
13114
fa055055
KH
131152009-07-17 Kenichi Handa <handa@m17n.org>
13116
13117 * casetab.c (shuffle): Fix the logic of setting up the cycle.
13118
042f7b69
YM
131192009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13120
13121 * nsfns.m (Fns_set_alpha): Remove function.
13122 (syms_of_nsfns): Don't defsubr it.
13123
13124 * nsterm.m (ns_get_color): Remove incompatible color formats.
13125 (ns_color_to_lisp): Generate #rrggbb color format string.
13126
4be941e3
RS
131272009-07-16 Richard Stallman <rms@gnu.org>
13128
13129 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
13130 (Fset_buffer_auto_saved): Handle save_length = -2.
13131
4e6b227d
CY
131322009-07-16 Chong Yidong <cyd@stupidchicken.com>
13133
13134 * xterm.c (Qx_gtk_map_stock): New var.
13135
13136 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
13137 of calling intern each time.
13138
a1856973
YM
131392009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13140
13141 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
13142 does tiling.
13143
13144 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
13145
497e54d8
KH
131462009-07-14 Kenichi Handa <handa@m17n.org>
13147
72d36834
KH
13148 * font.c (font_vconcat_entity_vectors): New function.
13149 (struct font_sort_data): New member font_driver_preference.
13150 (font_compare): Check font_driver_preference.
13151 (font_sort_entities): The format of the first argument changed.
13152 (font_delete_unmatched): Likewise.
13153 (font_list_entities): The return type changed.
13154 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
13155 (font_find_for_lface): Adjuste for the above changes.
13156 Don't suppress the checking of C even if the repertory supports it.
13157 (Flist_fonts): Adjust for the above changes.
72d36834 13158
1ac9108a
SM
13159 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
13160 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
13161 Reject a font who has adstyle property that is different from a
13162 langname derived from registry property.
1ac9108a 13163 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 13164
b6046155
EZ
131652009-07-13 Eli Zaretskii <eliz@gnu.org>
13166
13167 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
13168 local copy of dirfilename.
13169
fb6b6049
KH
131702009-07-13 Kenichi Handa <handa@m17n.org>
13171
e2402a5e
KH
13172 * chartab.c (sub_char_table_ref_and_range): Fix the range check
13173 against max_char.
13174
fb6b6049
KH
13175 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
13176 calling XSYMBOL (sym).
13177
65156807
EZ
131782009-07-11 Eli Zaretskii <eliz@gnu.org>
13179
1ac9108a
SM
13180 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
13181 New function.
13182 (directory_files_internal) [WINDOWSNT]:
13183 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
13184 the filesystem of the directory is fast or slow.
13185
13186 * w32.c (logon_network_drive): Don't assume PATH is an absolute
13187 file name.
13188 (is_slow_fs): New function.
13189 (stat): Use it to determine whether to issue more system calls to
13190 get accurate file attributes, when w32-get-true-file-attributes is
13191 `local'.
13192
e0ab5fcf
JD
131932009-07-10 Jan Djärv <jan.h.d@swipnet.se>
13194
13195 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 13196 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
13197 parameter font-parameter as default to the font dialog.
13198
784ceded
KH
131992009-07-10 Kenichi Handa <handa@m17n.org>
13200
13201 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
13202
fb8edc0b
EZ
132032009-07-09 Eli Zaretskii <eliz@gnu.org>
13204
1ac9108a 13205 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 13206
fb8edc0b
EZ
13207 * w32.c (stat): Treat UNC file names as residing on remote
13208 drives. (Bug#3542)
13209
635c75b1
KH
132102009-07-09 Kenichi Handa <handa@m17n.org>
13211
13212 * fontset.c (fontset_find_font): Fix previous change.
13213
c1d5ce94
MA
132142009-07-08 Michael Albinus <michael.albinus@gmx.de>
13215
13216 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13217 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13218 error flag.
13219
edb61b39
KH
132202009-07-08 Kenichi Handa <handa@m17n.org>
13221
374bf7e4
KH
13222 * fontset.c (fontset_find_font): Fix the logic of handling
13223 charset_matched.
13224 (font_for_char): Delete unused var.
13225 (generate_ascii_font_name): Delete it.
13226
edb61b39
KH
13227 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13228
13229 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13230 (encode_coding_sjis): Fix the code range check.
13231
0f3f018c
CY
132322009-07-07 Chong Yidong <cyd@stupidchicken.com>
13233
13234 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13235 (Fexpand_file_name): Copy string data properly (Bug#3772).
13236
fcaf6f3a
JD
132372009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13238
13239 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13240 first MapNotify.
13241
6809ca75
KH
132422009-07-07 Kenichi Handa <handa@m17n.org>
13243
13244 * character.h (unibyte_has_multibyte_table): Delete extern.
13245 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13246
13247 * charset.c (Fset_charset_priority): Update charset_unibyte.
13248 (syms_of_charset): Initialize charset_unibyte.
13249
13250 * character.c (unibyte_has_multibyte_table): Delete it.
13251 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13252 charset_unibyte.
13253 (multibyte_char_to_unibyte_safe): Likewise.
13254 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13255
1ac9108a 13256 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
13257 (x_produce_glyphs): Likewise.
13258
13259 * .gdbinit (xcharset): Fix the treating $arg0.
13260
ad9e2d54
EZ
132612009-07-04 Eli Zaretskii <eliz@gnu.org>
13262
13263 Emulation of `getloadavg' on MS-Windows.
50426a04 13264 * w32.c: Include float.h.
ad9e2d54
EZ
13265 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13266 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13267 (get_native_system_info, get_system_times): New functions.
13268 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13269 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13270 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13271 g_b_init_get_system_times, and num_of_processors.
13272
0a3472c7
JR
132732009-07-03 Jason Rumney <jasonr@gnu.org>
13274
13275 * w32term.c (w32_initialize): Use standard types.
13276
80904120
EZ
132772009-07-03 Eli Zaretskii <eliz@gnu.org>
13278
13279 * dired.c (Ffile_attributes): Decode user and group names by the
13280 locale's encoding. (Bug#3443)
13281
6978862d
DN
132822009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13283
f8d23104
DN
13284 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13285 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13286
13287 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13288
13289 * term.c (init_tty): Remove spurious #ifdef.
13290
6978862d
DN
13291 * m/mips.h: Mention this file is also used for netbsd.
13292 * m/pmax.h: Remove file.
13293
e044e4fc
JD
132942009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13295
13296 * xterm.h (struct x_display_info): Add invisible_cursor.
13297 (struct x_output): Add current_cursor.
13298
13299 * xterm.c (XTtoggle_invisible_pointer): New function.
13300 (x_define_frame_cursor): Don't define cursor if invisible or the
13301 same as before. Set current_cursor.
13302 (x_create_terminal): Set toggle_invisible_pointer_hook.
13303
13304 * xfns.c (make_invisible_cursor): New function.
13305 (x_set_mouse_color): Call make_invisible_cursor.
13306 Set current_cursor.
13307 (x_window): Set current_cursor.
13308
13309 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13310
13311 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13312 inserting a character.
13313 (read_avail_input): Call frame_make_pointer_visible.
13314
13315 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
13316 (frame_make_pointer_invisible, frame_make_pointer_visible):
13317 New functions.
e044e4fc
JD
13318 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13319
13320 * frame.h: Declare frame_make_pointer_invisible and
13321 frame_make_pointer_visible.
13322 (struct frame): Add pointer_invisible.
13323
574c8efa
JD
133242009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13325
7b507248
JD
13326 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13327 frame isn't visible.
13328 (xg_frame_resized): If width/height is -1, get size of window
13329 from X server.
13330
13331 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13332 for MapNotify.
13333
835bdaa7 13334 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 13335 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 13336 (flush_and_sync): Reintroduce.
574c8efa 13337
3f1c6666 133382009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 13339
31fd7c5c 13340 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
13341
13342 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13343 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13344
13345 * frame.h: Declare Qsticky.
13346
cad9ef74
JD
13347 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13348
13349 * nsfns.m (ns_frame_parm_handlers): Ditto.
13350
13351 * frame.c: Declare Qsticky.
13352 (frame_parms): Add sticky.
13353
13354 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13355
13356 * xterm.h: Declare x_set_sticky.
13357
13358 * xterm.c (x_set_sticky): New function.
13359
69b16610
JD
13360 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13361 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13362 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
13363
13364 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13365
13366 * frame.c: Qmaximized is new.
13367 (x_set_frame_parameters): Do not handle fullscreen specially.
13368 Only set width and height if explicitly set.
13369 (x_set_fullscreen): Handle Qmaximized.
13370 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13371 (syms_of_frame): Initialize Qmaximized.
13372
1ac9108a
SM
13373 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13374 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
13375
13376 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
13377 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13378 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
13379 set gravity to NorthWestGravity when USE_GTK.
13380 (set_wm_state): New function.
31fd7c5c 13381 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
13382 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13383 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 13384 or the case when no window manager is running. That means remove calls
3f1c6666
JD
13385 to x_real_positions and x_fullscreen_adjust.
13386
13387 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13388 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13389 flush_and_sync.
13390 (xg_height_changed): New function.
13391 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
13392 and gtk_window_set_policy. Set frame gravity after parsing the
13393 geometry string.
3f1c6666
JD
13394 (xg_update_frame_menubar, free_frame_menubar)
13395 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13396 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13397 Remove calls to xg_frame_set_char_size.
13398
fd503d99
KH
133992009-07-01 Kenichi Handa <handa@m17n.org>
13400
13401 * keyboard.c (decode_keyboard_code): New function.
13402 (tty_read_avail_input): Decode the input bytes if necessary.
13403
1ac9108a
SM
13404 * coding.c (setup_coding_system):
13405 Initialize coding->carryover_bytes to 0.
fd503d99
KH
13406 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13407 use Qno_conversion.
13408
24ed93fb
YM
134092009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13410
13411 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13412
99061dfc
CY
134132009-06-30 Chong Yidong <cyd@stupidchicken.com>
13414
1ac9108a 13415 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 13416
ff90fbde
JR
134172009-06-30 Jason Rumney <jasonr@gnu.org>
13418
13419 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13420 is already loaded.
13421 Set user model ID if supported (bug#1849).
13422
5f445726
JM
134232009-06-29 Jim Meyering <meyering@redhat.com>
13424
13425 Remove useless if-before-xfree test.
13426 * nsfont.m (nsfont_close): Remove useless test.
13427 * term.c (delete_tty): Likewise.
13428 * w32.c (system_process_attributes): Likewise.
13429 * w32font.c (w32font_close): Likewise.
13430 * xfaces.c (x_free_gc): Likewise.
13431 * xselect.c (buffer): Likewise.
13432
b9607587
AS
134332009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13434
13435 * process.c (send_process): Keep decoded string in a local
13436 variable and protect it from GC. (Bug#3521)
13437
89ba96f4
EZ
134382009-06-28 Eli Zaretskii <eliz@gnu.org>
13439
13440 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13441 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13442
098a1589
CY
134432009-06-28 Chong Yidong <cyd@stupidchicken.com>
13444
485422be
CY
13445 * xdisp.c (start_display, handle_face_prop)
13446 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
13447 (redisplay_window, try_window_id, produce_image_glyph):
13448 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 13449
098a1589
CY
13450 * xterm.c (x_update_window_begin, x_new_focus_frame)
13451 (x_scroll_bar_handle_click, handle_one_xevent)
13452 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13453 (x_make_frame_visible, x_make_frame_invisible)
13454 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13455 code chunks that are now obsolete.
13456
78c38319
MA
134572009-06-28 Michael Albinus <michael.albinus@gmx.de>
13458
13459 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13460 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13461 for hours, when optimzation is enabled.
13462 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13463 (xd_read_message): Make them static.
13464
4189ed40
CY
134652009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13466
13467 * term.c (turn_on_face): Allow simultaneously bold and dim
13468 terminal faces (Bug#3530).
13469
cd9b5e16
CY
134702009-06-27 Chong Yidong <cyd@stupidchicken.com>
13471
4e23bedb
CY
13472 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13473
cd9b5e16
CY
13474 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13475 truncation glyphs (Bug#3686).
13476
07cc3c35
GM
134772009-06-27 Glenn Morris <rgm@gnu.org>
13478
13479 * m/pmax.h: Restore file, with only netbsd portions.
13480
31fd7c5c 134812009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 13482
cd9b5e16 13483 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 13484
42d4a64f
KH
134852009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13486
13487 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13488 the arg FORCE_SYMBOL.
13489
930fe55b 134902009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
13491
13492 * fontset.c (fontset_find_font): When a usable rfont_def is found
13493 in a fallback font-group, make it the first element of the group.
13494
57ebc3fd
CY
134952009-06-24 Chong Yidong <cyd@stupidchicken.com>
13496
13497 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13498
f084f942
KH
134992009-06-24 Kenichi Handa <handa@m17n.org>
13500
13501 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13502 set for C.
13503 (fontset_font): Record the availability of a font for C both in
13504 the realized fontsets of the current one and the default one.
13505
2f686c87
DN
135062009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13507
13508 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13509 conditional, it is always defined on AIX.
13510
666e158e
MB
135112009-06-23 Miles Bader <miles@gnu.org>
13512
13513 * window.c (Vrecenter_redisplay): New variable.
13514 (syms_of_window): Initialize it.
13515 (Qtty): New extern declaration.
13516 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13517
c6da7cd2
JM
135182009-06-23 Jim Meyering <meyering@redhat.com>
13519
1ac9108a
SM
13520 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13521 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 13522 pointer dereferences are guaranteed to be valid.
c6da7cd2 13523
678dca3d
KH
135242009-06-23 Kenichi Handa <handa@m17n.org>
13525
74d75424
KH
13526 * emacs.c (main): Call init_font ().
13527
13528 * font.h (Vfont_log): Extern it.
13529 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13530
13531 * font.c (font_sort_entities, font_list_entities)
13532 (font_matching_entity, font_open_entity)
13533 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13534 (Vfont_log): Delete static.
13535 (font_log_env_checked): Delete this variable.
13536 (font_add_log): Don't check font_log_env_checked.
13537 (font_deferred_log): Check Vfont_log.
13538 (init_font): New function.
13539
678dca3d
KH
13540 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13541
13542 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13543
13544 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13545
13546 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13547
13548 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13549 (face_for_char): Don't call font_deferred_log here.
13550 (font_for_char): Likewise.
13551
8a668709
CY
135522009-06-22 Chong Yidong <cyd@stupidchicken.com>
13553
9a01ee33
CY
13554 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13555 rather than its background_width for drawing the overline and
13556 underline (Bug#489).
13557
13558 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13559 rather than its background_width for drawing the overline and
13560 underline (Bug#489).
ec7c9926
CY
13561 (xg_default_icon_file): New variable.
13562 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13563 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 13564
8a668709
CY
13565 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13566 (load_overlay_strings): Remove externs.
13567 (fast_find_position): Function deleted.
13568 (mouse_face_from_buffer_pos): New function, based on
13569 fast_find_position. Correctly handle before-strings,
13570 display-strings, and after-strings (Bug#1220).
13571 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13572
4d4c02d8
CY
135732009-06-21 Chong Yidong <cyd@stupidchicken.com>
13574
1ac9108a 13575 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
13576 (move_it_in_display_line_to, move_it_in_display_line_to)
13577 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13578
70243478
CY
135792009-06-21 Chong Yidong <cyd@stupidchicken.com>
13580
13581 * Branch for 23.1.
13582
13087e59
JR
135832009-06-21 Jason Rumney <jasonr@gnu.org>
13584
13585 * w32term.c (keyboard_codepage): New static variable.
13586 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13587 (w32_read_socket) [WM_CHAR]: Use it to decode character
13588 input (bug#3237).
13589 (w32_initialize): Initialize it.
13590 (codepage_for_locale): New function.
13591
4735b74e
KR
135922009-06-20 Ken Raeburn <raeburn@raeburn.org>
13593
13594 * process.c (status_message): Pass Faset index argument as a lisp
13595 object, so as to work with USE_LISP_UNION_TYPE.
13596
0e727afa
YM
135972009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13598
13599 * coding.c (Ffind_coding_systems_region_internal):
13600 Cache checked characters.
13601
cf299835
KH
136022009-06-18 Kenichi Handa <handa@m17n.org>
13603
1ac9108a 13604 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 13605
90f20d94
AS
136062009-06-18 Andreas Schwab <aschwab@redhat.com>
13607
13608 * xdisp.c (redisplay_internal): Check that the frame is still
13609 live after redisplay of its windows.
13610 (redisplay_windows): Check that the window is still live.
13611
7f1faf1c
KH
136122009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13613
13614 * coding.c (detect_coding_utf_16): Fix previous change.
13615
cc13543e
KH
136162009-06-16 Kenichi Handa <handa@m17n.org>
13617
13618 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13619 UTF-16 by checking the dispersion of Eth and Oth bytes.
13620
977b85f4
AS
136212009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13622
13623 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13624
66bd43d1
KH
136252009-06-15 Kenichi Handa <handa@m17n.org>
13626
13627 * process.c (status_message): Fix previous change. Be sure to
13628 decode a localized string.
13629
cb5ca9c5
YM
136302009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13631
13632 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13633 add comment explaining why.
13634
ec7709ba 136352009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 13636
ec7709ba 13637 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 13638
4b7f335c
AR
136392009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13640
13641 * nsfont.m (ns_attribute_value): Remove.
13642 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13643 (ns_has_attribute): Shrink the normal range.
13644 (ns_findfonts): Don't worry about requested spec in determining
13645 need for synthItal.
e41820ee 13646 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 13647
73b26103
SZ
136482009-06-14 Seiji Zenitani <zenitani@mac.com>
13649
13650 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13651
5753e4da
KH
136522009-06-11 Kenichi Handa <handa@m17n.org>
13653
13654 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13655 overhang for the static composition case.
13656
3561b671
KH
136572009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13658
5753e4da
KH
13659 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13660 overhang for the automatic composition case.
13661
3561b671
KH
13662 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13663 composition case.
13664
852bbd41
CY
136652009-06-10 Chong Yidong <cyd@stupidchicken.com>
13666
13667 * xdisp.c (get_next_display_element): When handling wrap-prefix
13668 and line-prefix, treat \n as a control character (bug#3502).
13669
9903d1e6
KH
136702009-06-10 Kenichi Handa <handa@m17n.org>
13671
13672 * font.c (font_parse_family_registry): Fix for one-char foundry.
13673 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13674
0bcbaaaa
CY
136752009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13676
13677 * process.c (status_message): Fix handling of multibyte signal
13678 string (Bug#3499).
13679
40aa3f13
JM
136802009-06-09 Jim Meyering <meyering@redhat.com>
13681
1f80c7e2
CY
13682 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13683 color name is missing.
40aa3f13 13684
72d51285
KH
136852009-06-09 Kenichi Handa <handa@m17n.org>
13686
13687 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13688 FROM-CODE and TO-CODE are codepoints of CHARSET.
13689
c1d04d84
AR
136902009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13691
13692 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13693
136942009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13695
13696 Changes to support :script/:lang/:otf in NS font driver.
13697 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13698 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13699 indicate not part of font driver interface, and change callers.
13700 (ns_get_family): Remove pointless null check.
13701 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13702 ns_spec_to_descriptor, ns_descriptor_to_entity.
13703 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13704 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13705 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13706 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13707 (ns_get_req_script, ns_accumulate_script_ranges)
13708 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13709 New functions.
13710 (nsfont_list, nsfont_match): Use ns_findfonts.
13711 (nsfont_open): Use font descriptor instead of traits.
13712 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13713 (dump_glyphstring): Rename to ns_dump_glyphstring.
13714
c7eb9816
AR
13715 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13716
c1d04d84
AR
13717 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13718
13719 * fontset.c (fontset_from_font): Remove NS-specific code.
13720
ec7709ba 137212009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
13722
13723 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13724 nonactive windows.
13725
31fd7c5c 137262009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 13727
1ac9108a 13728 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 13729
68852c13 137302009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
13731
13732 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13733
6756cd1d
CY
137342009-06-07 Chong Yidong <cyd@stupidchicken.com>
13735
13736 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13737 account for the overflowing of newlines into the last glyph on the
13738 display line (Bug#3482).
13739
28bf482a
DR
137402009-06-05 David Reitter <david.reitter@gmail.com>
13741
ec7709ba
JB
13742 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13743 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
13744 Fns_selection_exists_p, Fns_selection_owner_p.
13745
fdb55376
JR
137462009-06-03 Jason Rumney <jasonr@gnu.org>
13747
13748 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13749 available. (Bug#3379)
13750
05129fbe
KH
137512009-05-29 Kenichi Handa <handa@m17n.org>
13752
1ac9108a
SM
13753 * coding.c (get_translation_table):
13754 Check Venable_character_translation.
05129fbe 13755
ec7709ba 137562009-05-26 David Reitter <david.reitter@gmail.com>
15891144 13757
ec7709ba
JB
13758 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13759 (x_make_frame_visible): Move frame to front rather than calling
15891144 13760 ns_raise_frame().
ec7709ba 13761 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 13762 isn't key window.
ec7709ba 13763 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
13764 drawRect may be called by NSView even if the frame is hidden.
13765
ec7709ba
JB
13766 * nsfns.m (Fx_create_frame): Follow other ports in
13767 determining visibility; default to t. Ensure async_visible is set.
15891144 13768
21f73755
EZ
137692009-05-23 Eli Zaretskii <eliz@gnu.org>
13770
13771 * dired.c (Ffile_attributes): Doc fix.
13772
34001e41
CY
137732009-05-22 Chong Yidong <cyd@stupidchicken.com>
13774
13775 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13776
46306a17
SM
137772009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13778
13779 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13780 and xfont_scratch_props.
13781 (syms_of_xfont): Do it here instead.
13782 (xfont_find_ccl_program): Delete, unused.
13783 (xfont_open): Delete unused var `i'.
13784
ef6e0694
KH
137852009-05-21 Kenichi Handa <handa@m17n.org>
13786
13787 * fontset.c (Qlatin): Don't make it static.
13788
46306a17
SM
13789 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13790 New functions.
ef6e0694
KH
13791 (xfont_scripts_cache, xfont_scratch_props): New variables.
13792 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
13793 (xfont_list_pattern): Argument changed. Callers changed.
13794 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
13795 (xfont_list): Don't reject a font spec with :script property.
13796 (xfont_has_char): Fix setting of encoding.
13797 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13798 xfont_scratch_props.
13799
138002009-05-19 Kenichi Handa <handa@m17n.org>
13801
46306a17 13802 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
13803 Callers changed.
13804
138052009-05-18 Kenichi Handa <handa@m17n.org>
13806
13807 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13808
ac71ced7
SM
138092009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13810
13811 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13812 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13813
1c6d1051
YM
138142009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13815
13816 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13817 (x_delete_terminal): Dissociate resource database from display and
13818 then call XrmDestroyDatabase before closing display.
13819
9b9b779c
AR
138202009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13821
13822 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
13823 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13824 whether selected frame is viable before raising it (based on patch
13825 by David Reitter), and improve commentary.
13826 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 13827
cccd42d5
KH
138282009-05-15 Kenichi Handa <handa@m17n.org>
13829
13830 * font.c (Ffont_spec): Check arguments.
13831
337fbd17
CY
138322009-05-14 Chong Yidong <cyd@stupidchicken.com>
13833
13834 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13835 weight when testing attributes (Bug#3282).
13836
47a6002f
JD
138372009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13838
13839 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13840 what we expect to get in the next ConfigureNotify event.
13841
9cb363db
YM
13842 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13843 before Xft one (Bug#1696).
13844
b9126609
CY
138452009-05-07 David Reitter <david.reitter@gmail.com>
13846
13847 * nsfns.m (Fx_display_planes): Compute bitplanes using
13848 NSBitsPerPixelFromDepth (Bug#3207).
13849
27a69fd9
CY
138502009-05-10 Chong Yidong <cyd@stupidchicken.com>
13851
13852 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13853
00f37552
TTN
138542009-05-10 Ulrich Mueller <ulm@gentoo.org>
13855
13856 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13857
2d82a920
DR
138582009-05-07 David Reitter <david.reitter@gmail.com>
13859
ec7709ba
JB
13860 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13861 Respect mouse face background.
2d82a920 13862
46b0d52d
DR
138632009-05-07 David Reitter <david.reitter@gmail.com>
13864
ec7709ba
JB
13865 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13866 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
13867 in ns_update_begin and ns_update_end.
13868
ce1b23bb
SM
138692009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13870
5996e1b7
SM
13871 * nsfns.m (ns_get_screen): Rewrite.
13872 Don't presume selected-frame is of type `ns'.
13873
ba98e3a0
SM
13874 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13875 all drivers.
13876
ce1b23bb
SM
13877 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13878
bcda200f
YM
138792009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13880
13881 * keyboard.h (add_user_signal): Fix typo in extern.
13882
13883 * lisp.h (add_user_signal): Remove extern.
13884
13885 * unexelf.c (unexec): Consider a section to precede the .bss section
13886 if its addresses overlap that of .bss.
13887 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13888 instead of dumping process.
13889
864660a2
SM
138902009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13891
13892 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13893
50da4e56
SM
138942009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13895
13896 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13897
51520a1a
DN
138982009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13899
13900 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13901 any statements.
13902
409ea3a1
AS
139032009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13904
59c4c60f
AS
13905 * process.c (read_process_output): Make sure the current buffer is
13906 always restored.
13907
409ea3a1
AS
13908 * coding.c (record_conversion_result): Don't modify
13909 Vlast_code_conversion_error for successful result.
13910 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13911
56f00ed2
KH
139122009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13913
13914 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 13915 (load_charset_map): Remove unnecessary code.
56f00ed2 13916
4491c9d2
DR
139172009-04-30 David Reitter <david.reitter@gmail.com>
13918
35f5b128 13919 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
13920 through f24.
13921
6970f632
CY
139222009-04-30 Chong Yidong <cyd@stupidchicken.com>
13923
13924 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13925
13926 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13927 face_at_buffer_position.
13928 (face_before_or_after_it_pos, get_next_display_element)
13929 (note_mouse_highlight): Update face_at_buffer_position call.
13930
13931 * term.c (term_mouse_highlight):
13932 * msdos.c (IT_note_mouse_highlight):
13933 * fontset.c (Finternal_char_font):
35f5b128 13934 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
13935
13936 * dispextern.h (face_at_buffer_position): Update prototype.
13937
0c616f63
KH
139382009-04-30 Kenichi Handa <handa@m17n.org>
13939
35f5b128 13940 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 13941
ad3aaf33
AS
139422009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13943
13944 * callproc.c (Fcall_process): Fix GC protection. Make sure
13945 current buffer is always restored.
13946
c3c963a0
YM
139472009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13948
13949 * atimer.c (init_atimer): Also clear stopped_atimers.
13950
13951 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13952
7e3386cb
YM
13953 * process.c (create_process): Clean up merger residues of
13954 2008-07-17 change.
13955
91f68422
CY
139562009-04-29 Ulrich Mueller <ulm@gentoo.org>
13957
13958 * lread.c (Vread_circle): New variable.
13959 (read1): Disable recursive read if Vread_circle is nil.
13960
24b34550
KH
139612009-04-29 Kenichi Handa <handa@m17n.org>
13962
13963 * fontset.h (set_default_ascii_font): Delete extern.
13964
13965 * fontset.c (set_default_ascii_font): Delete this unused function.
13966
13967 * frame.c (x_set_font): When ARG is a font-object, check if the
13968 font-object matches with the ASCII font-spec of the frame's
9c358bda 13969 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 13970
77bf07e1
AS
139712009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13972
13973 * fns.c (Flocale_info): Protect vector from GC during decoding.
13974
13975 * process.c (Fstart_process): Protect argv strings from GC during
13976 encoding.
13977
2c55aacf
AS
139782009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13979
13980 * sysdep.c: Include <ctype.h>.
13981
b892d3c9
DR
139822009-04-27 David Reitter <david.reitter@gmail.com>
13983
35f5b128 13984 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
13985 Remove commented-out code.
13986
9d0644c4
JB
139872009-04-26 Johan Bockgård <bojohan@gnu.org>
13988
13989 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13990
b7053016
JR
139912009-04-25 Jason Rumney <jasonr@gnu.org>
13992
13993 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13994
4e8231f3
YM
139952009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13996
13997 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13998 Swap bytes in short integer if fringe bitmap width > 8.
13999
493dcf2c
KH
140002009-04-23 Kenichi Handa <handa@m17n.org>
14001
14002 * xfaces.c (Fx_list_fonts): If a font size is specified in
14003 PATTERN, set it in returned scalable fonts.
14004
401e9e57
CY
140052009-04-22 Chong Yidong <cyd@stupidchicken.com>
14006
708e05dc
CY
14007 * keyboard.c (Fset_input_meta_mode): Doc fix.
14008
14009 * dispnew.c (Fsend_string_to_terminal): Doc fix.
14010
1ac9108a 14011 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
14012
14013 * coding.c (Fterminal_coding_system): Doc fix.
14014
14015 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
14016 (Fx_display_pixel_height, Fx_display_planes)
14017 (Fx_display_color_cells, Fx_server_max_request_size)
14018 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
14019 (Fx_display_mm_height, Fx_display_mm_width)
14020 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
14021 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
14022 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
14023 (check_x_display_info): Handle terminal objects instead of
14024 terminal ids.
14025
401e9e57
CY
14026 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
14027 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
14028 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
14029 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 14030
df80c7f0
KH
140312009-04-21 Kenichi Handa <handa@m17n.org>
14032
5a8f12af 14033 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 14034 (font_score): Check AVGWIDTH too.
908567ef 14035
df80c7f0
KH
14036 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
14037 worst case.
1ac9108a
SM
14038 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
14039 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 14040
705af33f
JR
140412009-04-19 Jason Rumney <jasonr@gnu.org>
14042
14043 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 14044 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
14045
14046 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
14047 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
14048 get_phys_cursor_geometry.
14049
b71ac3dd 14050 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
14051 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
14052 using get_phys_cursor_geometry.
14053
14054 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
14055 correctly calculated.
14056
dc2933eb
JD
140572009-04-19 Jan Djärv <jan.h.d@swipnet.se>
14058
1ac9108a
SM
14059 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
14060 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
14061 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
14062 is deprecated.
14063
973e7849
AS
140642009-04-18 Andreas Schwab <schwab@linux-m68k.org>
14065
14066 * font.c (font_put_frame_data): Use xfree instead of free.
14067
314d66f4
JB
140682009-04-17 Juanma Barranquero <lekktu@gmail.com>
14069
14070 * w32font.c (Qja, Qko): Remove declarations.
14071 (syms_of_w32font): Don't DEFSYM them.
14072
cf702558
CY
140732009-04-17 Chong Yidong <cyd@stupidchicken.com>
14074
14075 * font.c (Qja, Qko): Move definitions here from ftfont.c.
14076
14077 * font.h (Qja, Qko): Extern them.
14078
14079 * ftfont.c (Qja, Qko): Remove declarations.
14080
14081 * xfont.c (Qja, Qko): Remove declarations.
14082
b50504f5
KH
140832009-04-17 Kenichi Handa <handa@m17n.org>
14084
bde25748
KH
14085 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
14086 string from a vector to handle Latin-1 characters correctly.
14087
b50504f5
KH
14088 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
14089 entity even if the cache hits.
14090
f4646fff
AS
140912009-04-16 Andreas Schwab <schwab@linux-m68k.org>
14092
14093 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 14094 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 14095
e7deaab0
AS
14096 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
14097 * lisp.h: Adjust prototypes.
14098
0a0e7d49
CY
140992009-04-16 Chong Yidong <cyd@stupidchicken.com>
14100
14101 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
14102 change (Bug#3003).
14103
3c908a57
KH
141042009-04-16 Kenichi Handa <handa@m17n.org>
14105
1ac9108a 14106 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
14107
14108 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
14109 adstyle.
14110
14111 * ftfont.c (Qja, Qko): Don't make them static.
14112 (enum ftfont_cache_for): New enum.
14113 (fc_charset_table): Undo the previous change.
14114 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
14115 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
14116 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
14117 non-scarable font, try to get AVERAGE_WIDTH.
14118 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
14119 Change ft_face_cache from a list of a hash-table. Don't check
14120 `ja' and `ko' adstyle here.
14121 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
14122 FTFONT_CACHE_FOR_CHARET.
14123 (ftfont_get_charset): Undo the previous change.
1ac9108a 14124 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
14125 (ftfont_close): Likewise.
14126 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
14127
14128 * font.c (font_sort_entites): Change the meaning of the arg
14129 BEST-ONLY. Don't optimize for VEC of lenght 1.
14130 (font_select_entity): Just return the value of font_sort_entites.
14131
14132 * xfaces.c (merge_face_vectors): Reflect font properties in
14133 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
14134 font_clear_prop if a face attribute doesn't change.
14135
3c908a57
KH
14136 * charset.h (charset_ksc5601): Extern it.
14137
14138 * charset.c (charset_ksc5601): New variable.
14139 (Fdefine_charset_internal): Set charset_ksc5601.
14140 (init_charset_once): Initialize charset_ksc5601 to -1.
14141
d65859c3
DN
141422009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
14143
14144 * fileio.c (history_delete_duplicates): Remove unused declaration.
14145
14146 * callint.c (history_delete_duplicates): New declaration.
14147 (Fcall_interactively): Remove command history duplicates when
14148 history_delete_duplicates is true.
14149
3ba010e5
EZ
141502009-04-14 Eli Zaretskii <eliz@gnu.org>
14151
14152 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
14153
06f19b91
KH
141542009-04-14 Kenichi Handa <handa@m17n.org>
14155
14156 * font.c (Ffont_info): Fix docstring. Fix the second element of
14157 the returned value (bug#2949).
14158
2cce8bfc
CY
141592009-04-14 Chong Yidong <cyd@stupidchicken.com>
14160
14161 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
14162
d156542d
KH
141632009-04-14 Kenichi Handa <handa@m17n.org>
14164
14165 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
14166 encoding charset is ascii_compatible.
14167
14168 * charset.c (Fdefine_charset_internal): Make charset
14169 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
14170 code_offset is 0, and covers all ASCII characters.
14171
86fa089e
SM
141722009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
14173
14174 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
14175 (ns_string_to_pasteboard_internal):
14176 * nsmenu.m (process_dialog):
14177 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
14178 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
14179 * lisp.h (Fx_load_color_file): Declare.
14180
a8a3728b
KH
141812009-04-13 Kenichi Handa <handa@m17n.org>
14182
1ac9108a 14183 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
14184 (font_select_entity): Suppress the code to optimize for the same
14185 kind of fonts.
14186 (font_load_for_lface): Get a font that supports at least ASCII
14187 characters.
14188
14189 * ftfont.c (Qja, Qko): New variables.
14190 (fc_charset_table): Delete uniquifier data for iso8859-1.
14191 (ftfont_get_latin1_charset): New function.
14192 (get_adstyle_property): New function.
14193 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
14194 bitmap fonts.
14195 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
14196 Delete iso-8859-1 range from the charset of fonts whose adstyle is
14197 `ko' or `ja'.
14198 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 14199 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
14200 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
14201 property.
14202 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
14203 (syms_of_ftfont): DEFSYM Qja and Qko.
14204
483670b5
KH
142052009-04-09 Kenichi Handa <handa@m17n.org>
14206
12b55765
KH
14207 * charset.c (map_charset_chars): For a charset of `superset'
14208 method, fix calculation of code range.
14209
483670b5
KH
14210 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
14211 from the list of extra properties.
14212 (font_clear_prop): Be sure to delete `:name' font property.
14213
57d3b93b
KH
142142009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14215
b4b2c2ca
YM
14216 * dispnew.c (redraw_overlapping_rows): Fix detection of
14217 overlapping for topmost and bottommost rows.
14218
1ac9108a 14219 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 14220
472c3609
JR
142212009-04-06 Jason Rumney <jasonr@gnu.org>
14222
14223 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14224
ab193662
KH
142252009-04-06 Kenichi Handa <handa@m17n.org>
14226
14227 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14228
14229 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14230
0c26f026
KH
142312009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14232
14233 * ftfont.c (ftfont_open): Fix checking of the return value of
14234 FT_Load_Char. Fix setting font->underline_thickness.
14235
e173bbce
CY
142362009-04-04 Chong Yidong <cyd@stupidchicken.com>
14237
14238 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14239 (Fterminal_parameters, Fterminal_parameter)
14240 (Fset_terminal_parameter): In doc string, refer to terminal
14241 objects rather than terminal ids.
14242
693a2698
EZ
142432009-04-04 Eli Zaretskii <eliz@gnu.org>
14244
14245 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14246 ret_lim_data. (Bug#2867)
14247
d5221487
CY
142482009-04-03 Chong Yidong <cyd@stupidchicken.com>
14249
14250 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14251 so they don't get wider than the window, matching 2006-01-23
14252 change to the partner function in xdisp.c (Bug#2800).
14253
223509a3
KH
142542009-04-03 Kenichi Handa <handa@m17n.org>
14255
14256 * print.c (print_object): Make each lowest sub_char_table start a
14257 new line (Bug#2866).
14258
74fcd0b1
KH
142592009-04-02 Kenichi Handa <handa@m17n.org>
14260
14261 * fontset.c (fontset_font): Record no-font when a fontset
14262 explicitly tells not to try another font-specs.
14263
c542407d
SM
142642009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14265
14266 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14267
e3869731
KH
142682009-03-30 Kenichi Handa <handa@m17n.org>
14269
d8d2f142
KH
14270 * fontset.c (fontset_from_font): Specify only registry in a
14271 font-spec for all characters supported by that registry.
14272
e3869731
KH
14273 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14274 even if HAVE_M17N_FLT is not defined.
14275
5da5f805
CY
142762009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14277
14278 * ftfont.c: Conditionalize prototyping and use of
14279 ftfont_variation_glyphs.
14280
ab226c50
SM
142812009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14282
9628fed7
SM
14283 * frame.c (delete_frame): Work around compiler bug.
14284
14285 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14286 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14287 Some more EMACS_INT.
14288 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14289
14290 * xdisp.c (dump_glyph): Fix typo.
14291
ae19ba7c
SM
14292 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14293 (adjust_markers_gap_motion, adjust_markers_for_delete)
14294 (adjust_markers_for_insert, adjust_point)
14295 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14296 (make_gap, copy_text, count_size_as_multibyte, insert)
14297 (insert_and_inherit, insert_before_markers)
14298 (insert_before_markers_and_inherit, insert_1)
14299 (count_combining_before, count_combining_after, insert_1_both)
14300 (insert_from_string, insert_from_string_before_markers)
14301 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14302 (insert_from_buffer_1, adjust_after_replace)
14303 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14304 (replace_range_2, del_range, del_range_1, del_range_byte)
14305 (del_range_both, del_range_2, modify_region)
14306 (prepare_to_modify_buffer, signal_before_change)
14307 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14308 for buffer positions and sizes.
14309 * lisp.h: Adjust prototypes accordingly.
14310
14311 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14312 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14313 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14314
ab226c50
SM
14315 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14316
46dfb8fb
JD
143172009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14318
14319 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14320 lines and columns so we keep the same pixel height and width.
14321
14322 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14323 the property _NET_WM_STATE has changed.
46dfb8fb
JD
14324 (x_handle_net_wm_state): New function to update frame parameter
14325 fullscreen.
14326 (x_term_init): Initialize atoms for _NET_WM_STATE.
14327
14328 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14329
d347e494
SM
143302009-03-27 Kevin Ryde <user42@zip.com.au>
14331
14332 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14333 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14334 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14335 (Fgpm_mouse_stop): Pass that new parameter.
14336 * termhooks.h (close_gpm): Adjust prototype.
14337
84db11d6
SM
143382009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14339
c95a5008
SM
14340 * lisp.h (Fx_focus_frame): Declare.
14341
84db11d6
SM
14342 * callint.c (Fcall_interactively): For '^' just delegate the work to
14343 handle-shift-selection.
14344 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14345
0a1958d6
CY
143462009-03-24 Chong Yidong <cyd@stupidchicken.com>
14347
0bfdff23
CY
14348 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14349
0a1958d6
CY
14350 * data.c (Qinteractive_form): New variable.
14351 (Finteractive_form): Use it.
14352
14353 * eval.c (Fcommandp): Use Qinteractive_form.
14354
58aec0d6
JR
143552009-03-24 Jason Rumney <jasonr@gnu.org>
14356
14357 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14358 Calculate total size precisely. Decode environment variables
14359 before substituting. (Bug#38)
14360
553dd618
KH
143612009-03-24 Kenichi Handa <handa@m17n.org>
14362
14363 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 14364 encoding (Bug#2722).
553dd618 14365
c39ea606
JD
143662009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14367
14368 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14369 that gdpy is set.
14370
bc9b2b5e
AM
143712009-03-22 Alan Mackenzie <acm@muc.de>
14372
14373 * callint.c (Finteractive): Clarify the doc string - even
14374 promptless elements need \n separators.
14375
9f995a76
JR
143762009-03-22 Jason Rumney <jasonr@gnu.org>
14377
14378 * w32term.c (syms_of_w32term): Doc fix for
14379 x-use-underline-position-properties.
14380
22749e9a
EZ
143812009-03-21 Eli Zaretskii <eliz@gnu.org>
14382
14383 * w32.c (getpwuid): Change argument type to unsigned.
14384 (struct w32_id): Change type of `rid' member to unsigned.
14385 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14386 argument ID to unsigned. All callers changed.
14387 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14388
e00553bf
EZ
143892009-03-20 Eli Zaretskii <eliz@gnu.org>
14390
14391 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14392 negative, produce a float value.
14393
14394 * dired.c (make_uid, make_gid): New functions.
14395 (Ffile_attributes): Use them to avoid negative UID and GID.
14396
f761d6b6
JB
143972009-03-20 Juanma Barranquero <lekktu@gmail.com>
14398
14399 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14400 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14401 Fix typos in docstrings.
14402
d507f8d7
KH
144032009-03-19 Kenichi Handa <handa@m17n.org>
14404
14405 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
14406 changed, use font_load_for_lface to get a new font object.
14407 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
14408
14409 * frame.c (x_set_font): Handle the case that ARG is a cons.
14410
c68845e0
GM
144112009-03-19 Glenn Morris <rgm@gnu.org>
14412
14413 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14414
bfa49dd1
CY
144152009-03-19 Chong Yidong <cyd@stupidchicken.com>
14416
14417 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14418
8458d4c1
KH
144192009-03-19 Kenichi Handa <handa@m17n.org>
14420
14421 * charset.c (load_charset_map_from_file): When a mapfile can't be
14422 loaded, signal an error.
14423
78e7d1fe
EZ
144242009-03-18 Eli Zaretskii <eliz@gnu.org>
14425
14426 * dired.c (Ffile_attributes): Make sure UID and GID are always
14427 positive, even if the value is too large for a positive EMACS_INT.
14428 Doc fix.
14429
14430 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14431
5da9fdfa
YM
144322009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14433
14434 * xmenu.c (xdialog_show): Move Fredisplay call ...
14435 (Fx_popup_dialog): ... here.
14436
7519c40d
SM
144372009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14438
14439 * dired.c (file_name_completion): Disable the first optimization just
14440 installed, since it is not implemented correctly.
14441
2cd298e2
SM
144422009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14443
14444 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 14445 only if the entry can affect bestmatch.
2cd298e2
SM
14446 Stop the search early, as Ftry_completion already does.
14447
48d37adf
CY
144482009-03-17 Chong Yidong <cyd@stupidchicken.com>
14449
e10c9c93 14450 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 14451
9286b16a
CY
144522009-03-15 Chong Yidong <cyd@stupidchicken.com>
14453
14454 * keyboard.c (parse_menu_item): Don't display remappings as menu
14455 equivalent bindings (Bug#788).
14456
f7b146dc
JR
144572009-03-15 Jason Rumney <jasonr@gnu.org>
14458
14459 * w32term.h (WM_EMACS_PAINT): New message.
14460 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14461 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14462 before passing to lisp thread. (Bug#950)
14463
f761d6b6 144642009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 14465
d93f9575
CY
14466 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14467 variable as it was never reset.
14468 (ns_term_init): Remove initialization of Lisp-settable defaults
14469 and ns_expand_space.
14470 (-setPanelFromDefaultValues): Remove ns_expand_space.
14471 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14472 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
14473 i.e. no additional spacing, similar to Carbon port.
14474
d93f9575
CY
14475 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14476 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 14477
305018ec
JD
144782009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14479
14480 * sound.c (alsa_configure): Remove call to deprecated
14481 snd_pcm_sw_params_set_xfer_align.
14482
f761d6b6 144832009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
14484
14485 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14486 after clicking in a detached tool bar.
14487 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14488
46e722a9
SM
144892009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14490
348db3dd
SM
14491 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14492 int/Lisp_Object mixup).
46e722a9 14493
a3d16f39
KH
144942009-03-13 Kenichi Handa <handa@m17n.org>
14495
14496 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 14497 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
14498 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14499 (set_fontset_font): Change ARG to a vector. Handle range_list in
14500 ARG correctly.
14501 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 14502 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
14503 the above change.
14504 (fontset_from_font): Fix previous change.
fe24f56a 14505 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
14506 entry. If FONTSET is the default fontset, don't set the extra
14507 slot of the returning char-table.
14508
b066e6b6
JB
145092009-03-12 Juanma Barranquero <lekktu@gmail.com>
14510
14511 * nsfns.m (Fx_close_connection): Doc fix.
14512 (Fns_do_applescript): Reflow docstring.
14513 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14514 (Fx_display_pixel_width, Fx_display_pixel_height)
14515 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14516 Fix typos in docstrings.
14517 (Fns_set_alpha): Fix typos in error messages.
14518
d472514e 145192009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 14520
d472514e 14521 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
14522 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14523 were used for such events.
14524
d472514e
JB
14525 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14526 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 14527
d472514e 14528 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
14529 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14530
fb930676
KH
145312009-03-11 Kenichi Handa <handa@m17n.org>
14532
ff85581a
KH
14533 * font.h (font_open_by_spec): Extern it.
14534
c50b7e98
KH
14535 * font.c (font_open_by_spec): New function.
14536 (font_open_by_name): Use font_open_by_spec.
14537
fb930676
KH
14538 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14539 fontset of the frame.
14540
14541 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14542 modify the default font of frames that use this fontset.
14543 (num_auto_fontsets): New variable.
14544 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14545 name. Be sure to set FONTSET_ASCII to the correct font name.
14546 (update_auto_fontset_alist): New function.
14547
df4e8455
JB
145482009-03-11 Juanma Barranquero <lekktu@gmail.com>
14549
14550 * makefile.w32-in: Update dependencies.
14551
0a375797
AR
145522009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14553
14554 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14555
61313fa3
SM
145562009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14557
14558 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14559
b55103fb
CY
145602009-03-10 Chong Yidong <cyd@stupidchicken.com>
14561
14562 * lread.c (Feval_buffer): Doc fix.
14563
dde2559c
KH
145642009-03-09 Kenichi Handa <handa@m17n.org>
14565
14566 * charset.c (Qfile_name_handler_alist): Extern it.
14567 (load_charset_map_from_file): Temporarily bind
14568 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14569
df4e8455 145702009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 14571
47f588bb
GM
14572 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14573 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 14574
4ddf94bd
AR
145752009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14576
4c9bdfc2
AR
14577 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14578 (x_set_window_size): Change back to calculated method of setting
14579 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
14580 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14581 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14582
fe41ae9e
AR
14583 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14584
4c9bdfc2
AR
14585 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14586 accelerator in parens under GNUstep.
14587
825d0875
KH
145882009-03-06 Kenichi Handa <handa@m17n.org>
14589
14590 These changes are to detect incorrect composition sequence without
f3b3be74 14591 looking ahead the source. (Bug#2370)
825d0875
KH
14592
14593 * coding.h: Include "composite.h".
14594 (enum compisition_state): New enum.
14595 (struct compisition_status): New struct.
14596 (struct iso_2022_spec): New member cmp_status.
14597 (struct emacs_mule_spec): New struct.
14598 (struct coding_system): New members ctext_extended_segment_len and
14599 embedded_utf_8. Change the union member
14600 spec.emacs_mule_full_support to spec.emacs_mule.
14601
14602 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14603 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 14604 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
14605 (ADD_COMPOSITION_DATA): New arg nbytes.
14606 (emacs_mule_char): New arg cmp_status.
14607 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14608 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14609 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14610 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14611 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14612 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14613 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14614 (EMACS_MULE_COMPOSITION_END): New macro.
14615 (emacs_mule_finish_composition): New function.
14616 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14617 (decode_coding_emacs_mule): Avoid long looking ahead while
14618 handling composition.
14619 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14620 (ENCODE_COMPOSITION_RULE): New macro.
14621 (finish_composition): New function.
14622 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14623 (DECODE_COMPOSITION_START): New implementation.
14624 (DECODE_COMPOSITION_END): Likewise.
14625 (STORE_COMPOSITION_RULE): New macro.
14626 (decode_coding_iso_2022): Avoid long looking ahead while handling
14627 composition, CTEXT extended segment, and embedded UTF-8.
14628 (setup_coding_system): For a coding of type iso-2022, reset
14629 CODING_ISO_EXTSEGMENT_LEN (coding) and
14630 CODING_ISO_EMBEDDED_UTF_8 (coding).
14631 (get_translation): Delete arguments last_block, from_nchars,
14632 to_nchars. Callers changed.
14633 (produce_chars): Don't modify charbuf. Adjusted for the change of
14634 get_translation.
98a326f7 14635 (produce_composition): Adjust for the new annotation sequence.
825d0875 14636 (handle_composition_annotation): Likewise.
98a326f7 14637 (consume_chars): Adjust for the change of get_translation.
825d0875 14638
ccbc4452
AR
146392009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14640
4ddf94bd 14641 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 14642
988a7ddb
KH
146432009-03-05 Kenichi Handa <handa@m17n.org>
14644
14645 * font.c (font_select_entity): New function.
14646 (font_find_for_lface): Use font_select_entity to select a font.
14647
14648 * fontset.c (fontset_find_font): If a font found without
a8a3728b 14649 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
14650 font with C restriction.
14651
98a326f7 146522009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 14653
be1bce46 14654 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 14655
10ea2b82
JR
146562009-03-04 Jason Rumney <jasonr@gnu.org>
14657
2c93b248 14658 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 14659 characters that have already been read. (Bug#2569)
2c93b248 14660
10ea2b82
JR
14661 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14662 Log an error message if check_image_size failed.
14663 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 14664 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 14665
71a0c011
EZ
146662009-03-02 Eli Zaretskii <eliz@gnu.org>
14667
14668 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14669 when decoding process output.
14670
2f63bba8
RS
146712009-03-01 Richard M Stallman <rms@gnu.org>
14672
14673 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14674
14675 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14676
0a9564cb
EZ
146772009-02-28 Eli Zaretskii <eliz@gnu.org>
14678
14679 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14680 (decode_coding_emacs_mule, decode_coding_iso_2022)
14681 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14682 (decode_coding_raw_text, decode_coding_charset)
14683 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14684 Honor inhibit-eol-conversion. (Bug #2186)
14685
449148b3
JR
146862009-02-28 Jason Rumney <jasonr@gnu.org>
14687
14688 * coding.c (detect_coding_charset): If not checking latin extra,
14689 fail on characters between 0x80 and 0xA0. (Bug#2354)
14690
a4aee864
EZ
146912009-02-28 Eli Zaretskii <eliz@gnu.org>
14692
14693 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 14694 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 14695
d88bee5a
GM
146962009-02-27 Glenn Morris <rgm@gnu.org>
14697
14698 * callint.c (Finteractive): Doc fix.
14699
a808f22d
KH
147002009-02-27 Kenichi Handa <handa@m17n.org>
14701
14702 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14703
caf8d60c
CY
147042009-02-27 Chong Yidong <cyd@stupidchicken.com>
14705
14706 * font.c (font_style_to_value): Set value for unknown symbols to
14707 100 instead of 255.
b61137ea
CY
14708 (weight_table, slant_table, width_table): Treat "unspecified" as
14709 the default value.
caf8d60c 14710
1a0de25c
JB
147112009-02-26 Juanma Barranquero <lekktu@gmail.com>
14712
14713 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14714
8fc45744
JB
147152009-02-25 Juanma Barranquero <lekktu@gmail.com>
14716
107bd7d1
JB
14717 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14718 error as soon as a recursive load is detected.
8fc45744 14719
f097e223
AR
147202009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14721
14722 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14723 before caching.
14724
8810a12f
KH
147252009-02-24 Kenichi Handa <handa@m17n.org>
14726
14727 * fontset.c (fontset_find_font): Fix the condition for checking
14728 unavailable font.
14729
2c7d1565
GM
147302009-02-24 Glenn Morris <rgm@gnu.org>
14731
14732 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14733 whitespace that confuses documentation.
14734
a20878b6
MB
147352009-02-23 Miles Bader <miles@gnu.org>
14736
14737 * process.c (Flist_system_processes, Fprocess_attributes)
14738 (syms_of_process): Rename `system-process-attributes' to
14739 `process-attributes'.
14740
b3b58c01
AS
147412009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14742
1b3b981b
AS
14743 * coding.h (struct coding_system): Make safe_charsets a pointer to
14744 unsigned char.
14745 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14746 being 255.
14747 (SAFE_CHARSET_P): Likewise.
14748 (setup_iso_safe_charsets): Properly setup safe_charsets.
14749 (Fdefine_coding_system_internal): Likewise.
14750 (setup_coding_system): Likewise. Remove unneeded casts.
14751 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
14752 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14753 Remove unneeded casts.
1b3b981b 14754
b3b58c01
AS
14755 * insdel.c (del_range_2): Don't modify gap contents when called
14756 from decode_coding_object. (Bug#1809)
14757
0b6f228c
CY
147582009-02-21 Chong Yidong <cyd@stupidchicken.com>
14759
14760 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14761 Qfont_object.
14762 (Ftype_of): Recognize font objects.
14763
14764 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14765
bba3e508
SM
14766 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14767 Definitions moved to data.c.
0b6f228c 14768
52f8870b
AR
147692009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14770
14771 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14772 async_iconified. Based on a patch by Christian Lynbech
14773 <christian.lynbech@tieto.com>.
14774 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14775
7087d5e9
GM
147762009-02-20 Glenn Morris <rgm@gnu.org>
14777
14778 * syntax.c (Fskip_chars_forward): Fix doc typo.
14779
41d2ceef
CY
147802009-02-20 Chong Yidong <cyd@stupidchicken.com>
14781
14782 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14783
1a3b7ca6
CY
147842009-02-19 Chong Yidong <cyd@stupidchicken.com>
14785
14786 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14787
73cce38d
KH
147882009-02-19 Kenichi Handa <handa@m17n.org>
14789
14790 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 14791 Don't overflow coding->carryover. (Bug#2370)
73cce38d 14792
a51092ee
DN
147932009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14794
14795 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14796
c423ecca
KH
147972009-02-18 Kenichi Handa <handa@m17n.org>
14798
14799 * font.c (font_check_otf_features): Fix handling of `nil' element.
14800 (Ffont_spec): Describe :lang and :otf in the docstring.
14801
4c1958f4
AS
148022009-02-16 Andreas Schwab <schwab@suse.de>
14803
14804 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14805 string.
14806
5704f39a
KH
148072009-02-16 Kenichi Handa <handa@m17n.org>
14808
14809 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 14810 (Bug#1723)
5704f39a 14811
8f0085aa
CY
148122009-02-14 Chong Yidong <cyd@stupidchicken.com>
14813
a057d86a 14814 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
14815
14816 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14817 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14818
aff01dd9
EZ
148192009-02-14 Eli Zaretskii <eliz@gnu.org>
14820
14821 * msdos.c (MAX_SCREEN_BUF): New macro.
14822 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14823 Encode the entire run of glyphs sharing the same face, instead of
14824 doing that one glyph at a time (fixes a bug with displaying
14825 double-size characters).
14826
ba301db3
AR
148272009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14828
14829 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14830
14831 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14832 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 14833 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
14834
14835 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 14836 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 14837
51d861de
SM
148382009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14839
ac146f82 14840 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
14841 invisible areas.
14842
7fed8996
JR
148432009-02-12 Jason Rumney <jasonr@gnu.org>
14844
631ea4fb
JR
14845 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14846 (add_font_entity_to_list): Call check_face_name even when family
14847 is unspecified.
14848
cb4a3e42
JR
14849 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14850 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 14851 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 14852
7fed8996 14853 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 14854 raster fonts. (Bug#2219)
7fed8996 14855
895416e3
KH
148562009-02-12 Kenichi Handa <handa@m17n.org>
14857
14858 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14859 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14860 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 14861 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14862 (find_automatic_composition): While looking forward and backward,
14863 check static composition. Fix where to stop looking forward.
14864 (composition_adjust_point): Fix checking of static composition.
14865 (Fcomposition_get_gstring): Pay attention to
1dacf998 14866 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14867
14868 * lisp.h (fast_looking_at): Extern it.
14869
14870 * search.c (fast_looking_at): New function.
14871
51d861de 14872 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
14873 <struct glyph>.u.cmp.to.
14874 (append_composite_glyph): Likewise.
14875
51d861de 14876 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
14877 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14878 composition.
51d861de 14879 (append_composite_glyph): Adjust for the change of
895416e3
KH
14880 <strcut glyph>.u.cmp.to.
14881
8510724d
JB
148822009-02-11 Juanma Barranquero <lekktu@gmail.com>
14883
14884 * casetab.c (init_casetab_once):
14885 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14886 * font.c (font_update_lface):
14887 * fontset.c (Fnew_fontset):
14888 * ftfont.c (ftfont_drive_otf):
14889 * xfont.c (xfont_open):
14890 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14891
294fa707
SM
148922009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14893
14894 * fileio.c (Fwrite_region): !NILP -> CONSP.
14895
b5bfebec
AS
148962009-02-10 Andreas Schwab <schwab@suse.de>
14897
14898 * process.c (send_process): Properly relocate pointer into data
adab88bd 14899 when using encoded data. (Bug#2272)
b5bfebec 14900
cb84a2be
KH
149012009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14902
14903 * coding.c (detect_coding_charset): Fix previous change.
14904
89e09428
JR
149052009-02-08 Jason Rumney <jasonr@gnu.org>
14906
14907 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 14908 disappeared while hourglass was displayed. (Bug #2193)
89e09428 14909
4470a277
AS
149102009-02-07 Andreas Schwab <schwab@suse.de>
14911
14912 * unexelf.c (unexec): Fix error message.
14913
3175b12a
AR
149142009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14915
14916 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 14917 when modal window is active. (Bug #2152)
3175b12a
AR
14918 (applicationShouldTerminate:): Remove now-unneeded while loop
14919 around NSRunAlertPanel.
14920
14921 * nsmenu.m (popupSession): New file-global variable.
14922 (pop_down_menu): End the popupSession before closing dialog.
14923 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14924 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14925 don't query NSApp for events (just sleep instead).
14926
8434d0b8
EZ
149272009-02-07 Eli Zaretskii <eliz@gnu.org>
14928
51d861de
SM
14929 * coding.c (syms_of_coding) <translation-table-for-input>:
14930 Modify doc string to discourage use for character code unification.
8434d0b8 14931
aa82edfd
CY
149322009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14933
14934 * atimer.c (run_timers): Update pending_atimers.
14935
2d283c7c
CY
149362009-02-06 Chong Yidong <cyd@stupidchicken.com>
14937
eb306cab
CY
14938 * image.c (svg_load_image): Fix last change.
14939
2d283c7c
CY
14940 * xfns.c (Fx_create_frame): Signal an error if no font is
14941 found (Bug#2147).
14942
4d8e170e
JB
149432009-02-05 Juanma Barranquero <lekktu@gmail.com>
14944
14945 * character.c (syms_of_character) <script-representative-chars>:
14946 Fix typo in docstring.
14947
c96169a0
AR
149482009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14949
14950 * nsmenu.m (pop_down_menu): New function.
14951 (ns_popup_dialog): Call it on unwind.
14952 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14953 call timer_check() (Bug#2154).
14954 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14955 handling_signal is set.
14956 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14957
31fd7c5c 14958 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
14959
14960 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14961
14962 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14963
51d861de
SM
14964 * keyboard.c (poll_for_input_1, handle_async_input):
14965 Set handling_signal under HAVE_NS.
c96169a0 14966
aacd8ba1
GM
149672009-02-04 Glenn Morris <rgm@gnu.org>
14968
14969 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14970
4cb75c4b
KH
149712009-02-04 Kenichi Handa <handa@m17n.org>
14972
14973 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14974
14975 * charset.c (Fchar_charset): New optional arg restriction.
14976
14977 * coding.h (coding_system_charset_list): Extern it.
14978
14979 * coding.c (coding_system_charset_list): New function.
14980
14981 * composite.c: Include coding.h and termhooks.h.
14982 (composition_gstring_p): Fix for the terminal case.
14983 (composition_gstring_width): Likewise.
14984 (fill_gstring_body): Likewise.
14985 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14986 the frame.
14987 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14988 is within a composition.
867d4bb3 14989 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
14990
14991 * term.c (encode_terminal_code): Fix handling of composition.
14992 (produce_composite_glyph): For static composition, get pixel_width
14993 from struct composition.
14994
826ba17e
AS
149952009-02-02 Andreas Schwab <schwab@suse.de>
14996
14997 * unexelf.c (unexec): Handle unaligned bss offset.
14998
8ad093db
AR
149992009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
15000
15001 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
15002 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 15003
8ad093db
AR
15004 * keyboard.c (handle_interrupt): Don't call
15005 quit_throw_to_read_char() under NS.
d0a76a6e 15006
8ad093db
AR
15007 * blockinput.h: Remove NS-specific code.
15008
4d18a7a2
DN
150092009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
15010
db878925
DN
15011 * dispnew.c (window_change_signal): Don't try to get the size of a
15012 suspended tty frame.
15013 * term.c (Fresume_tty): Resize if the size has changed while the
15014 tty was suspended.
15015
4d18a7a2
DN
15016 * alloc.c (mark_stack): Properly conditionalize previous change.
15017
8984df7c
JB
150182009-01-30 Juanma Barranquero <lekktu@gmail.com>
15019
15020 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
15021 * w32term.c (w32_read_socket) [SYNC_INPUT]:
15022 Remove; this code is not used on Windows.
15023
75f4f1ac
EZ
150242009-01-30 Eli Zaretskii <eliz@gnu.org>
15025
15026 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
15027 EOLs that also has stray ^M characters.
15028
07a1e794
JB
150292009-01-30 Juanma Barranquero <lekktu@gmail.com>
15030
15031 * atimer.c (run_timers, alarm_signal_handler):
15032 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
15033 * w32inevt.c (w32_console_read_socket):
15034 * w32term.c (w32_read_socket):
15035 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
15036
a8b11cc9
CY
150372009-01-30 Chong Yidong <cyd@stupidchicken.com>
15038
15039 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
15040 Initialize it as a relative filename pattern.
15041 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
15042 (Fcall_process_region): Simplify temp file creation using
15043 temporary-file-directory.
15044
c279587b
EZ
150452009-01-29 Eli Zaretskii <eliz@gnu.org>
15046
15047 * msdos.c: Rename pending_signals to msdos_pending_signals.
15048 (sig_suspender, sigprocmask): Adjust.
15049
a8fe3242
CY
150502009-01-29 Chong Yidong <cyd@stupidchicken.com>
15051
15052 * keyboard.c (pending_signals): New var.
15053 (poll_for_input, input_available_signal, init_keyboard): Set it.
15054 (process_pending_signals): New function.
15055
15056 * lisp.h (QUIT): Check pending_signals instead of
15057 interrupt_input_pending. Use process_pending_signals.
15058
51d861de 15059 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 15060
51d861de 15061 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
15062
15063 * sysdep.c (emacs_write): Use process_pending_signals.
15064
15065 * xterm.c (XTread_socket): Update pending_signals.
15066
15067 * w32term.c (w32_read_socket): Update pending_signals.
15068
15069 * w32inevt.c (w32_console_read_socket): Update pending_signals.
15070
6570a1c4
KH
150712009-01-29 Kenichi Handa <handa@m17n.org>
15072
15073 * xftfont.c (xftfont_has_char): New function.
15074 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
15075
d72a4afa
AR
150762009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
15077
15078 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
15079 under GNUstep.
15080 (ns_query_color): New declaration.
15081
15082 * nsterm.m (ns_confirm_quit): New variable.
15083 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
15084 (EmacsApp-applicationShouldTerminate:): Use it.
15085 (EmacsPrefsController): Let user set it.
15086 (ns_query_color): New function.
15087 (ns_defined_color): Use it.
15088 (ns_initialize): Drop.
15089 (ns_term_init): Add two lines from ns_initialize(), and set
15090 input_interrupt_mode to nil.
15091
15092 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 15093 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 15094
9fe78804
KH
150952009-01-28 Kenichi Handa <handa@m17n.org>
15096
15097 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
15098 (fontset_get_font_group): Remember that no font-group is specified
15099 for C.
9fe78804 15100
fa57de36
CY
151012009-01-27 Chong Yidong <cyd@stupidchicken.com>
15102
930600e9
CY
15103 * fns.c (concat): Check for string overflow (bug#1787).
15104
fa57de36
CY
15105 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
15106 Quadruple undo limits (bug#1501).
15107
7179ce7b
KH
151082009-01-27 Kenichi Handa <handa@m17n.org>
15109
15110 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
15111 directly use GT_Get_Char_index.
15112
15113 * xftfont.c (struct xftfont_info): New member `index'.
15114
15115 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 15116 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 15117
5be8fcc0
CY
151182009-01-26 Kenichi Handa <handa@m17n.org>
15119
15120 * fontset.c (fontset_find_font): Fix handling of non-cons return
15121 value of fontset_get_font_group.
15122 (fontset_font): Revert last change.
15123
19ae3e61
JR
151242009-01-26 Jason Rumney <jasonr@gnu.org>
15125
15126 * w32font.c (w32font_list_internal): Return quickly if registry is
15127 unknown. Simplify final return.
15128 (add_font_entity_to_list): Break complex logic down into more
15129 manageable chunks. Move unknown registry check to
15130 w32font_list_internal.
15131
8612b71a
AR
151322009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
15133
15134 Changes to remove Feval calls from GUI under NS.
15135
d8038940
JB
15136 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
15137 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
15138 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
15139
15140 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
15141 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
15142 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
15143 instead of NON_ASCII_KEYSTROKE_EVENT.
15144 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
15145 (EmacsApp-applicationShouldTerminate:): Query user.
15146 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
15147 instead of Feval.
15148
15149 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
15150
15151 * keyboard.c (kbd_buffer_get_event): Check for it.
15152 (keys_of_keyboard): Define lispy keys for
15153 ns-put/unput-working-text.
15154
15155 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
15156 versions.
15157 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
15158
6288ae55
CY
151592009-01-25 Chong Yidong <cyd@stupidchicken.com>
15160
15161 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 15162 setting current_buffer directly. (Bug#2044)
6288ae55 15163
289e7f8f
CY
151642009-01-24 Chong Yidong <cyd@stupidchicken.com>
15165
5ce87308 15166 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 15167 any work. (Bug#1952, bug#1990).
5ce87308 15168
64cc3cf6 15169 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 15170
b3243e6f
AR
151712009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
15172
15173 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
15174 (ns_no_defaults): New declaration.
15175 (main): Use it.
e0d2e69a 15176
d900b2af 15177 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 15178
d900b2af 15179 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 15180
d900b2af
AR
15181 * nsterm.m (ns_no_defaults): New variable.
15182 (ns_initialize): Don't read defaults when ns_no_defaults.
15183 (EmacsView-readSelectionFromPasteboard:)
15184 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 15185 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
15186 (ns_dumpglyphs_stretch): New function.
15187 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 15188 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 15189
e0d2e69a
AR
15190 * nsimage.m (setPixmapData:): Set to ignore image DPI.
15191
3ac71f5d
CY
151922009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
15193
15194 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
15195 call for Sparc64.
15196
3fe53a83
AR
151972009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
15198
15199 * nsfns.m:
15200 * nsgui.h:
15201 * nsmenu.m:
15202 * nsselect.m:
15203 * nsterm.h:
15204 * nsterm.m: Remove '23' comments that indicated code added during
15205 update from emacs-20 -> emacs-23.
15206
10f87c6f 152072009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
15208
15209 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 15210 ns_alternate_modifier. (Bug#1217)
a3b53a85 15211
c7cef62d
AR
15212 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
15213 Display all shortcuts, including those w/o super modifier.
15214
575fb8bd
AR
15215 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15216
918b848b
CY
152172009-01-22 Chong Yidong <cyd@stupidchicken.com>
15218
15219 * fileio.c (Vwrite_region_post_annotation_function)
15220 (Vwrite_region_annotation_buffers): New vars.
15221 (build_annotations_unwind): Just reset
15222 Vwrite_region_annotation_buffers.
15223 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15224 Call write-region-post-annotation-function.
15225 (build_annotations): Add to Vwrite_region_annotation_buffers if
15226 buffer changes.
15227
a39e2539
AR
152282009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15229
15230 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15231 Tiger.
51d861de
SM
15232 * nsfns.m (ns_do_applescript):
15233 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 15234
35ed44db
AR
152352009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15236
15237 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15238
cbe0b5bf
AR
152392009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15240
15241 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 15242
6049d3a0
AR
15243 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15244
15245 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
15246 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15247 handle Ctrl-tab. (Bug#1841)
15248 (ns_get_color): Use unsigned long long for scanned hex string value.
15249 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 15250 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 15251 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 15252 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 15253 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 15254 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 15255 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 15256
d3810c21 15257 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 15258 DPI. (Bug#1316)
d3810c21
AR
15259 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15260 values in onTiger section.
4c7077c3 15261
e301e634
CY
152622009-01-19 Chong Yidong <cyd@stupidchicken.com>
15263
7f82490b
CY
15264 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15265 Check return value of font_spec_from_name.
64cc3cf6 15266 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
15267
15268 * font.c (font_spec_from_name): Return Qnil if font name could not
15269 be parsed.
15270 (font_parse_name): Treat a `?' character as part of an XLFD.
15271
e301e634
CY
15272 * fns.c (Fsubstring): Doc fix.
15273
1c0db158
KH
152742009-01-19 Kenichi Handa <handa@m17n.org>
15275
51d861de 15276 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
15277 (ftfont_list): Likewise.
15278
acf20901
JB
152792009-01-18 Juanma Barranquero <lekktu@gmail.com>
15280
fff4e459
JB
15281 * dbusbind.c (Fdbus_register_signal):
15282 * process.c (conv_sockaddr_to_lisp):
15283 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15284
acf20901
JB
15285 * callproc.c (Fgetenv_internal): Doc fix.
15286
e7abcdfb
CY
152872009-01-16 Chong Yidong <cyd@stupidchicken.com>
15288
15289 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15290 it is not even used.
15291
b60861e6
GM
152922009-01-16 Glenn Morris <rgm@gnu.org>
15293
15294 * font.c (Ffont_variation_glyphs): Silence compiler.
15295
8db52afe
JB
152962009-01-15 Juanma Barranquero <lekktu@gmail.com>
15297
15298 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15299 Reported by David Robinow <drobinow@gmail.com>.
15300
4cddb209
KH
153012009-01-15 Kenichi Handa <handa@m17n.org>
15302
51d861de 15303 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 15304
f247f67b
JR
153052009-01-14 Jason Rumney <jasonr@gnu.org>
15306
15307 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 15308 never a fontset. (Bug#1562)
f247f67b 15309
f56a4450
KH
153102009-01-14 Kenichi Handa <handa@m17n.org>
15311
15312 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 15313 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 15314
4e99855e
CY
153152009-01-13 Chong Yidong <cyd@stupidchicken.com>
15316
15317 * font.c (font_clear_prop): If clearing the family, clear the font
15318 width index too.
15319
fff4e459 15320 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 15321
24f01470
JB
153222009-01-12 Juanma Barranquero <lekktu@gmail.com>
15323
15324 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15325 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15326 functions, use sizeof.
15327
a41240a3
MR
153282009-01-12 Martin Rudalics <rudalics@gmx.at>
15329
15330 * keyboard.c (read_char): Fix case where last_nonmenu_event
15331 returned a bad value with submenus. (Bug#447)
15332
944636b8
CY
153332009-01-12 Chong Yidong <cyd@stupidchicken.com>
15334
15335 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15336 family, clear the font width index too.
15337
0dad7c6f
JR
153382009-01-11 Jason Rumney <jasonr@gnu.org>
15339
15340 * keyboard.c (cmd_error_internal): Exit when errors occur before
15341 frame creation and not in daemon mode. (Bug#1836)
15342
7c2363af
CY
153432009-01-10 Chong Yidong <cyd@stupidchicken.com>
15344
15345 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15346 of a display vector, backtrack.
15347 (try_window_reusing_current_matrix): Check glyph type before
15348 referencing charpos member.
15349
97b1b294
EZ
153502009-01-10 Eli Zaretskii <eliz@gnu.org>
15351
15352 Fix Bug #876:
15353
15354 * coding.c (inhibit_null_byte_detection): New variable.
15355 (detect_coding, detect_coding_system): Don't pay attention to null
15356 bytes if inhibit_null_byte_detection is non-zero.
51d861de 15357 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
15358 <inhibit-iso-escape-detection>: Doc fix.
15359
4624b6e3
JR
153602009-01-09 Jason Rumney <jasonr@gnu.org>
15361
15362 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 15363 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
15364 Only report Unicode Plane 2 fonts as unicode-sip.
15365
323b840c
CY
153662009-01-09 Chong Yidong <cyd@stupidchicken.com>
15367
51d861de
SM
15368 * xfaces.c (Fx_font_family_list): Delete function.
15369 Move compatibility version to faces.el.
323b840c 15370
51d861de 15371 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 15372
eba7400d
MR
153732009-01-09 Martin Rudalics <rudalics@gmx.at>
15374
15375 * frame.c (x_set_frame_parameters): Remember requested value for
15376 fullscreen before it's reset by the parameter handler.
15377
4b09796d
GM
153782009-01-09 Glenn Morris <rgm@gnu.org>
15379
15380 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 15381 (last_command_event): ... and update all users.
4b09796d
GM
15382 (last_input_char): For clarity, rename to...
15383 (last_input_event): ... and update all users.
15384 (last-command-char, last-input-char): Move to subr.el as aliases.
15385 * cmds.c, commands.h: Update for last_command_char rename.
15386
14ccea62
CY
153872009-01-08 Chong Yidong <cyd@stupidchicken.com>
15388
51d861de 15389 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 15390
5f004711
JR
153912009-01-08 Jason Rumney <jasonr@gnu.org>
15392
15393 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15394 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15395 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15396 Don't declare.
fff4e459 15397 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
15398 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15399
b71f6f73
KH
154002009-01-07 Kenichi Handa <handa@m17n.org>
15401
50b06221 15402 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 15403 remember the coding system used for decoding in
50b06221
KH
15404 coding_system (Bug#1039).
15405
b71f6f73 15406 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 15407 breaking the loop. (Bug#870)
b71f6f73
KH
15408 (decode_coding_utf_16, decode_coding_emacs_mule)
15409 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15410 (decode_coding_charset): Likewise.
15411
56f668f7
MR
154122009-01-05 Martin Rudalics <rudalics@gmx.at>
15413
15414 * frame.c (x_set_frame_parameters): Make sure height (width) get
15415 applied when fullwidth (fullheight) is set. (Bug#1522)
15416
5da9424d
JB
154172009-01-04 Juanma Barranquero <lekktu@gmail.com>
15418
15419 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15420 (utc_base): Declare as ULONGLONG, not long double.
15421 (convert_time_raw): Delete.
15422 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15423 (initialize_utc_base): New function.
15424 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15425 (convert_from_time_t): Use initialize_utc_base; compute result with
15426 64-bit arithmetic.
15427 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15428
c4605e09
EZ
154292009-01-03 Eli Zaretskii <eliz@gnu.org>
15430
9acef61c 15431 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
15432 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15433 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15434 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15435 [!subprocesses]: Define.
15436 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15437 (Flist_system_processes, Fsystem_process_attributes)
15438 [!subprocesses]: Call list_system_processes and
15439 system_process_attributes instead of returning Qnil.
15440
9acef61c
JB
15441 * dosfns.c (system_process_attributes, list_system_processes):
15442 New functions.
c4605e09
EZ
15443
15444 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15445
15446 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15447 Don't use the default (no-op) implementation.
15448
8b7d0a16
JR
154492009-01-03 Jason Rumney <jasonr@gnu.org>
15450
a6d46bc1
JR
15451 * keyboard.c (parse_modifiers_uncached): Wheel events are
15452 clicks (bug#687).
15453
8b7d0a16
JR
15454 * w32term.c (x_query_colors, x_query_color): New functions.
15455
15456 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15457 (svg_load_image): Cast returned pointers from dynamically loaded
15458 functions. Eliminate W32 specific code.
15459
bfe11752
DN
154602009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15461
89e2438a
DN
15462 * nsfns.m (x_set_foreground_color, x_set_background_color)
15463 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15464 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15465 x_ prefix instead of ns_. Update references.
15466 (syms_of_nsfns): Add a FIXME comment.
15467
15468 * nsterm.m (x_set_cursor_type): New prototype.
15469 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15470
bfe11752
DN
15471 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15472 for Solaris instead of incorrectly providing Qutime and Qcutime.
15473
031da700
EZ
154742009-01-02 Eli Zaretskii <eliz@gnu.org>
15475
15476 * w32.c (process_times): Compute sum of utime and stime.
15477 (system_process_attributes): Add Qtime to the alist.
15478
15479 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15480 and add them to the alist.
15481
15482 * process.c (top level) <Qtime, Qctime>: New variables.
15483 (syms_of_process): staticpro them.
15484 (Fsystem_process_attributes): Add their documentation to the doc
15485 string.
15486
15487 * process.h: Declare Qtime and Qctime.
15488
df23bf08
JR
154892009-01-02 Jason Rumney <jasonr@gnu.org>
15490
9acef61c 15491 * image.c (Qgobject): New symbol.
df23bf08
JR
15492 (syms_of_image): Initialize it.
15493 (init_svg_functions): Load some functions from gobject library.
15494
5bbdf7aa
DN
154952009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15496
15497 * frame.c (make_terminal_frame): Remove redundant code and useless
15498 block.
15499
63136da6
AS
155002009-01-01 Andreas Schwab <schwab@suse.de>
15501
15502 * process.c (conv_sockaddr_to_lisp): Add workaround for
15503 getsockname bug on BSD.
15504
9ef69046
CY
155052009-01-01 Chong Yidong <cyd@stupidchicken.com>
15506
d6fafbe0
CY
15507 * xfns.c (x_create_tip_frame): Set border width of the X window.
15508
51d861de 15509 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 15510
f9c34147
JR
155112009-01-01 Jason Rumney <jasonr@gnu.org>
15512
9acef61c 15513 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
15514 Don't block input, as per earlier xterm.c changes.
15515
f5497e45
AR
155162008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15517
15518 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15519 (ns_appkit_version_int): New function.
15520 (x-server-version): Use ns_appkit_version_int and follow 21+
15521 convention of returning 3 integers.
15522
c19cab20
KH
155232008-12-30 Kenichi Handa <handa@m17n.org>
15524
15525 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15526 (CHAR_SURROGATE_PAIR_P): New macro.
15527
15528 * font.h (struct font_driver): New member get_variation_glyphs.
15529
9acef61c 15530 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
15531 (Ffont_variation_glyphs): New function.
15532 (syms_of_font): Defsubr it.
15533
15534 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15535 ftfont_variation_glyphs.
15536 (setup_otf_gstring): New function.
15537 (ftfont_drive_otf): Use it.
15538 (ftfont_shape_by_flt): Handle variation selector.
15539 (ftfont_variation_glyphs): New function.
15540
28cd591f
MR
155412008-12-30 Martin Rudalics <rudalics@gmx.at>
15542
15543 * frame.c (Vemacs_iconified): Remove.
15544
7f714baf
JR
155452008-12-30 Jason Rumney <jasonr@gnu.org>
15546
15547 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 15548 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 15549
9d2d22ab
CY
155502008-12-30 Chong Yidong <cyd@stupidchicken.com>
15551
15552 * indent.c (Fvertical_motion): Don't advance iterator if we have
15553 reseated to the desired position.
15554
15555 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15556 checking for pos match.
15557
545312c2
KH
155582008-12-30 Kenichi Handa <handa@m17n.org>
15559
1ede3eb6
KH
15560 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15561 just get the low 8-bit of the code.
15562
545312c2
KH
15563 * font.c (font_intern_prop): Validate str as multibyte.
15564
bd7bbf29
DN
155652008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15566
31e0750e
DN
15567 * dispextern.h (struct face): Move lface and hash from the middle
15568 of bitfields.
15569
bd7bbf29
DN
15570 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15571
b5672e7c
DN
155722008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15573
15574 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15575 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15576 instead of intervals.h.
15577
d704470f
AS
155782008-12-26 Andreas Schwab <schwab@suse.de>
15579
15580 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15581 cons.
15582
54b33868
MR
155832008-12-26 Martin Rudalics <rudalics@gmx.at>
15584
15585 * textprop.c (Qminibuffer_prompt): New variable.
15586 (syms_of_textprop): Initialize it.
15587 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15588 in minibuffer-prompt face. (Bug#1662)
15589
40b615d6
JR
155902008-12-25 Jason Rumney <jasonr@gnu.org>
15591
15592 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15593
baae5c2d
JR
155942008-12-24 Jason Rumney <jasonr@gnu.org>
15595
15596 * ralloc.c (r_alloc_reset_variable): New function.
15597
15598 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 15599 record of what points where. (Bug#716)
baae5c2d 15600
a9051c88
DN
156012008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15602
15603 * minibuf.c (read_minibuf): Follow the non-interactive case when
15604 running as a daemon, before detaching.
15605
8b146312
AS
156062008-12-22 Andreas Schwab <schwab@suse.de>
15607
15608 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15609 * gtkutil.c (free_widget_value): Use xfree instead of free.
15610
56f2de10
MR
156112008-12-22 Martin Rudalics <rudalics@gmx.at>
15612
15613 * frame.c (delete_frame): New function derived from
15614 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15615 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15616 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15617 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15618 * frame.h: Extern delete_frame.
15619 * window.c (window_loop):
15620 * terminal.c (delete_terminal):
15621 * xterm.c (x_connection_closed):
15622 * xfns.c (Fx_hide_tip):
9acef61c 15623 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 15624
1fc200d6
JR
156252008-12-21 Jason Rumney <jasonr@gnu.org>
15626
15627 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15628 when character maps to .notdef character.
15629
5e252df2
SM
156302008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15631
15632 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15633
99b72cc4
JR
156342008-12-20 Jason Rumney <jasonr@gnu.org>
15635
15636 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 15637 a graphical frame on Windows. (Bug#1325)
99b72cc4 15638
acc49a52
JD
156392008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15640
15641 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15642
6ea15123
CY
156432008-12-20 Chong Yidong <cyd@stupidchicken.com>
15644
15645 * minibuf.c (Fread_buffer): Doc fix.
15646
b2dab6c8
JR
156472008-12-20 Jason Rumney <jasonr@gnu.org>
15648
54ea0c87 15649 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 15650 server name in UNC paths. (Bug#719)
54ea0c87 15651
b2dab6c8 15652 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 15653 charbuf. (Bug#1035)
b2dab6c8 15654
6d1921be
DN
156552008-12-19 Daniel Engeler <engeler@gmail.com>
15656
15657 * sysdep.c (serial_configure): Fix typo.
15658
53934c98
DN
156592008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15660
15661 * sysdep.c: Include alloca.h.
f4f634e8
DN
15662 (system_process_attributes): Add implementation for Solaris.
15663
15664 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 15665
06e111a6
DN
156662008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15667
15668 Reorganize implementation of Flist_system_processes and
15669 Fsystem_process_attributes. No functional changes.
15670 * process.c: Don't #include pwd.h, grp.h and limits.h.
15671 (Flist_system_processes): Just call list_system_processes.
15672 (Fsystem_process_attributes): Just call system_process_attributes.
15673 (procfs_list_system_processes, time_from_jiffies)
15674 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15675 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15676
15677 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15678 (list_system_processes): Rename from
15679 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15680 Provide a do nothing implementation.
15681 (system_process_attributes): Rename from
15682 procfs_list_system_processes.
15683 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 15684 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
15685
15686 * w32.c (list_system_processes): Rename from
15687 w32_list_system_processes.
15688 (system_process_attributes): Rename from
15689 w32_system_process_attributes.
15690
15691 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15692
15693 * process.h (w32_list_system_processes)
15694 (w32_system_process_attributes): Remove.
362654a6
JB
15695 (list_system_processes, system_process_attributes):
15696 New prototypes.
06e111a6 15697
6a705b23
KH
156982008-12-19 Kenichi Handa <handa@m17n.org>
15699
15700 * xfont.c (xfont_decode_coding_xlfd): New function.
15701 (xfont_encode_coding_xlfd): New function.
15702 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15703 (xfont_list): Decode and encode XLFD by iso-8859-1.
15704 (xfont_match): Likewise.
15705 (xfont_list_family): Likewise.
15706 (xfont_open): Likewise.
15707
d66c0241 15708 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
15709 names are utf-8.
15710
d66c0241 15711 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
15712 names are utf-8.
15713
5a130941
JD
157142008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15715
15716 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15717 changed.
bfd20325
JD
15718 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15719 clicked on a detached tool bar button.
5a130941 15720
fd95644b
DN
157212008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15722
15723 * emacs.c (main): Print and error and exit when no data is read
15724 from the pipe.
15725
e6eee6ae
JR
157262008-12-17 Jason Rumney <jasonr@gnu.org>
15727
15728 * w32font.c (w32font_has_char): Always return -1.
15729
a35dd56b
KH
157302008-12-16 Kenichi Handa <handa@m17n.org>
15731
15732 * font.c (font_open_entity): Fix previous change.
15733
0e3635c2
DN
157342008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15735
15736 * process.c: Include <limits.h>.
15737
d4835507 157382008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
15739
15740 * font.c (font_update_drivers): Fix mistake in reconstructing the
15741 driver list.
15742
157432008-12-16 Chong Yidong <cyd@stupidchicken.com>
15744
15745 * font.c (font_clear_cache): Fix format of font cache data.
15746
e2cbc401
CY
157472008-12-15 Chong Yidong <cyd@stupidchicken.com>
15748
15749 * xftfont.c (xftfont_open): Free Xft font pattern if
15750 XftFontOpenPattern fails.
15751
15752 * xterm.c (x_free_frame_resources): Remove extraneous call to
15753 free_frame_faces.
15754
b131d535
CY
157552008-12-13 Chong Yidong <cyd@stupidchicken.com>
15756
15757 * xterm.c (x_delete_display): Move xim_close_dpy call to
15758 x_delete_terminal.
15759 (x_delete_terminal): Call xim_close_dpy.
15760
e6df5336
JR
157612008-12-13 Jason Rumney <jasonr@gnu.org>
15762
15763 * w32font.c (intern_font_name): New function.
15764 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15765 (w32font_open_internal, Fx_select_font): Decode font name.
15766 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15767
15768 * w32font.h (intern_font_name): Declare new function.
15769
15770 * w32uniscribe.c (add_opentype_font_name_to_list):
15771 Use intern_font_name.
15772
20d68145
CY
157732008-12-13 Chong Yidong <cyd@stupidchicken.com>
15774
9f2554de
CY
15775 * frame.c (Fdelete_frame): Call free_font_driver_list.
15776
3d9bec9a
CY
15777 * font.c (free_font_driver_list): Implement missing function.
15778
20d68145
CY
15779 * w32term.c (w32_term_init): Don't initialize the image cache
15780 here; it will be done in init_frame_faces.
15781
15782 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
15783 (struct x_display_info): Remove unused member null_pixel.
15784 New member xim_callback_data.
20d68145
CY
15785
15786 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15787 (xim_initialize): Save pointer to callback function data.
15788 (xim_close_dpy): Free callback function data. Call XCloseIM,
15789 reverting 2008-11-04 change by David Smith.
15790 (x_term_init): Don't initialize the image cache here; it will be
15791 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15792 (x_delete_display): Free x_dnd_atoms member.
15793
96f9306b
KH
157942008-12-13 Kenichi Handa <handa@m17n.org>
15795
ef1b0ba7 15796 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 15797 Argument type changed. Handle a font-spec too.
96f9306b 15798 (font_score): Check Vface_font_rescale_alist.
6dec9044 15799 (font_open_entity): Likewise. (Bug#1547)
96f9306b 15800
ef1b0ba7 15801 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 15802
8d5b4964
CY
158032008-12-13 Chong Yidong <cyd@stupidchicken.com>
15804
15805 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15806
e6df5336
JR
158072008-12-12 Jason Rumney <jasonr@gnu.org>
15808
bba3e508
SM
15809 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15810 Set Vwindow_system_version to the real w32 major version.
e6df5336 15811
97c6058a
DN
158122008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15813
15814 * term.c (init_tty): Move setting the terminal name before the
15815 potential user: maybe_fatal.
15816
ec4e88d7
CY
158172008-12-11 Chong Yidong <cyd@stupidchicken.com>
15818
ef1b0ba7 15819 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 15820 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 15821
b4233ec9
JR
158222008-12-11 Jason Rumney <jasonr@gnu.org>
15823
8ec71e23 15824 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 15825 SYMBOL_CHARSET. (Bug#547)
8ec71e23 15826
b4233ec9 15827 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 15828 size for surrogates. (Bug#1096, bug#872)
b4233ec9 15829
011a0143
JB
158302008-12-11 Juanma Barranquero <lekktu@gmail.com>
15831
15832 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15833
3c309f34
JB
158342008-12-11 Juanma Barranquero <lekktu@gmail.com>
15835
15836 * process.c (Fsystem_process_attributes, syms_of_process):
15837 Fix typo in name of Ssystem_process_attributes.
15838 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15839
fedc6ab5
JB
158402008-12-11 Juanma Barranquero <lekktu@gmail.com>
15841
15842 * syntax.c (Fmodify_syntax_entry): Doc fix.
15843
ba3de0e8
JB
158442008-12-10 Juanma Barranquero <lekktu@gmail.com>
15845
15846 * font.c (Ffont_spec): Move usage to end of docstring.
15847
174f1c74
JR
158482008-12-10 Jason Rumney <jasonr@gnu.org>
15849
15850 * w32font.c (Qcham): New symbol.
15851 (font_supported_scripts): Add cham, and comments for other new
15852 scripts in bitfield from OpenType spec.
9d32f818
JR
15853 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15854 contain characters beyond the bmp.
174f1c74 15855
7b649478
KH
158562008-12-10 Kenichi Handa <handa@m17n.org>
15857
15858 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 15859 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
15860 Qunicode_sip.
15861
2133e2d1
JB
158622008-12-10 Juanma Barranquero <lekktu@gmail.com>
15863
15864 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15865 (Fcoding_system_put): Use QCdefault_char.
15866 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15867
9af886ee
CY
158682008-12-09 Chong Yidong <cyd@stupidchicken.com>
15869
74d819eb
CY
15870 * xftfont.c (syms_of_xftfont): Fix typo.
15871
4ccfa1c0 15872 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 15873
7c19d3ae
DN
158742008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15875
15876 * emacs.c (main): Close daemon_pipe on exec.
15877
567826bb
CY
158782008-12-08 Chong Yidong <cyd@stupidchicken.com>
15879
15880 * termchar.h (struct tty): New members termcap_term_buffer and
15881 termcap_strings_buffer.
15882
15883 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 15884 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
15885 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15886 All callers changed.
15887 (init_tty): Store termcap data and string buffers in new struct
15888 tty members termcap_term_buffer and termcap_strings_buffer.
15889 (delete_tty): Free them.
4ccfa1c0 15890 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 15891
aa96c42b
SZ
158922008-12-07 Seiji Zenitani <zenitani@mac.com>
15893
15894 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 15895 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 15896
b7e1d896
CY
158972008-12-06 Chong Yidong <cyd@stupidchicken.com>
15898
15899 * coding.c (make_conversion_work_buffer): Disable buffer
15900 modification hooks in the work buffer.
15901
b5ec91a5
EZ
159022008-12-05 Eli Zaretskii <eliz@gnu.org>
15903
15904 * process.c (procfs_system_process_attributes): If `nread' has a
15905 negative value, assign zero to it.
15906
a5d2a52b
CY
159072008-12-05 Chong Yidong <cyd@stupidchicken.com>
15908
68c5540b 15909 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 15910
7bf1bb21
KH
159112008-12-05 Kenichi Handa <handa@m17n.org>
15912
15913 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15914 second character is a combining character.
15915
2fdc7d00
EZ
159162008-12-05 Eli Zaretskii <eliz@gnu.org>
15917
15918 * process.c (procfs_system_process_attributes): Don't use cmd,
15919 cmdsize, and q without initializing them first.
15920
bf6bfba8
JR
159212008-12-04 Jason Rumney <jasonr@gnu.org>
15922
15923 * w32font.c (w32font_draw): Initialize orig_clip before getting
15924 it, and delete it when finished.
15925
a3b1a468
DN
159262008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15927
15928 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15929 case when running as a daemon before detaching.
15930
8b8be8eb
JB
159312008-12-03 Juanma Barranquero <lekktu@gmail.com>
15932
805f2638 15933 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 15934
b1bde622
KH
159352008-12-03 Kenichi Handa <handa@m17n.org>
15936
e500c47d
KH
15937 * font.c (font_at): Set `multibyte' at first.
15938
ca516334
KH
15939 * coding.c (decode_coding_charset): Check type of an element of
15940 vector VALIDS.
7bf1bb21 15941 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 15942
4ccfa1c0 15943 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
15944 (font_for_char): Likewise.
15945
1e5ecd37
CY
159462008-12-03 Chong Yidong <cyd@stupidchicken.com>
15947
d5b01609 15948 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
15949 (font_update_lface): Handle fonts with corrupted size specs,
15950 i.e. non-int and non-float.
d5b01609 15951
11e3a6e4 15952 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 15953 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 15954 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 15955
ab06788b
CY
15956 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15957
1e5ecd37 15958 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 15959 underline_minimum_offset for underline position.
1e5ecd37 15960
63c125ab
DN
159612008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15962
15963 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15964
15965 * character.c (c_string_width): Specify the type for LEN.
15966
3a8406e1
KH
159672008-12-03 Kenichi Handa <handa@m17n.org>
15968
4ccfa1c0 15969 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 15970 (decode_coding_utf_8): Likewise.
4ccfa1c0 15971 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 15972 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 15973
651df7d9
CY
159742008-12-02 Chong Yidong <cyd@stupidchicken.com>
15975
15976 * keyboard.c (make_lispy_position): Only use PT if the selected
15977 window is current.
15978
1f625c6c
AS
159792008-12-02 Andreas Schwab <schwab@suse.de>
15980
f7741ce9
AS
15981 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15982
1f625c6c
AS
15983 * doprnt.c (doprnt1): Fix size of charbuf.
15984
92bc2678
CY
159852008-12-02 Chong Yidong <cyd@stupidchicken.com>
15986
15987 * keyboard.c (timer_check): Revert last change.
15988
93b9e8cc
JB
159892008-12-02 Juanma Barranquero <lekktu@gmail.com>
15990
15991 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15992
fd7a37d5
JB
159932008-12-01 Juanma Barranquero <lekktu@gmail.com>
15994
15995 * makefile.w32-in: Update dependencies.
15996 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15997
c115043b
AS
159982008-12-01 Andreas Schwab <schwab@suse.de>
15999
16000 * font.c (register_font_driver): Use xmalloc.
16001 (font_put_frame_data): Likewise.
16002
f5668d2a
CY
160032008-12-01 Chong Yidong <cyd@stupidchicken.com>
16004
860d96be
CY
16005 * xfaces.c (realize_x_face): Make abort condition clearer.
16006
f5668d2a
CY
16007 * gtkutil.c (update_frame_tool_bar): Initialize variable.
16008
379c17e7
CY
160092008-11-30 Chong Yidong <cyd@stupidchicken.com>
16010
16011 * keyboard.c (timer_check): After a timer runs, ensure that the
16012 selected window's buffer is current.
16013
35f36d65
JB
160142008-11-30 Juanma Barranquero <lekktu@gmail.com>
16015
f952c61c
JB
16016 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
16017 It was accidentally restored by the Unicode merge.
16018
35f36d65
JB
16019 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
16020
b23077df
JB
160212008-11-29 Juanma Barranquero <lekktu@gmail.com>
16022
16023 * w32proc.c: Include "coding.h".
16024 (Fw32_short_file_name): Encode filename passed to Windows API.
16025 (Fw32_long_file_name): Encode filename passed to Windows API and
16026 decode back the result. (Bug#1433)
16027
b8ebe9dd
KH
160282008-11-29 Kenichi Handa <handa@m17n.org>
16029
8cc53f96
KH
16030 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
16031 not before accessing it.
16032
b8ebe9dd
KH
16033 * charset.c (Fdefine_charset_internal): After calculating
16034 min_char, max_char, and fastmap, copy the charset structure again.
16035 (encode_char): Fix the previous change.
16036
59bc82c0
SZ
160372008-11-28 Seiji Zenitani <zenitani@mac.com>
16038
16039 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
16040
16041 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
16042
16043 * nsterm.m (x_set_frame_alpha): New function.
16044
32247e3d
EZ
160452008-11-27 Eli Zaretskii <eliz@gnu.org>
16046
16047 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
16048
b003e5ff
JB
160492008-11-27 Juanma Barranquero <lekktu@gmail.com>
16050
16051 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
16052 pointer to check_face_name.
16053
708550f5
KH
160542008-11-27 Kenichi Handa <handa@m17n.org>
16055
16056 * category.h (SET_CATEGORY_SET): Call set_category_set.
16057 (set_category_set): Extern it.
16058
16059 * category.c (hash_get_category_set): New function.
bba3e508 16060 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
16061 char_table_ref_and_range. Call hash_get_category_set to get a
16062 category set to store in the table.
16063
16064 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
16065 Funify_charset.
16066
2ae37cf0 16067 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
16068 (DECODE_CHAR): Check if the decoder vector is ready.
16069 (ENCODE_CHAR): Check if the encoder char-table is ready.
16070 (maybe_unify_char): Extern it.
16071
16072 * charset.c (Vchar_unified_charset_table): Delete it.
16073 (inhibit_load_charset_map): New variable.
16074 (temp_charset_work): New variable.
16075 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
16076 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
16077 New macros.
bba3e508
SM
16078 (load_charset_map): Meaning of control_flag changed.
16079 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
16080 temp_charset_work.
16081 (load_charset): New argument control_flag.
16082 (map_charset_for_dump): New function.
16083 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
16084 map_charset_for_dump.
16085 (Fdefine_charset_internal): If the charset method is MAP, load
16086 mapping tables by calling load_charset.
16087 (Funify_charset): Don't load a mapping table but directly set
16088 Vchar_unify_table.
16089 (maybe_unify_char): New function.
16090 (decode_char): Don't handle the deleted method MAP_DEFERRED.
16091 Handle the case of inhibit_load_charset_map being nonzero.
16092 (encode_char): Don't handle the deleted method MAP_DEFERRED.
16093 Handle the case of inhibit_load_charset_map being nonzero.
16094 (Fclear_charset_maps): Just free temp_charset_work.
16095 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
16096 variable.
16097
bba3e508 16098 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
16099 change of char_table_ref_and_range.
16100 (char_table_ref_and_range): Change the meaning of argument FROM
16101 and TO. Now the caller must provide initial values for *FROM
16102 and *TO.
16103
bba3e508 16104 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
16105 char_table_ref_and_range.
16106 (fontset_get_font_group): Likewise.
16107 (Ffontset_info): Likewise.
16108
bba3e508 16109 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
16110 char_table_ref_and_range. For char-table, put boundary between
16111 non-ASCII and 8-bit characters.
16112
16113 * print.c (print_object): For bool-vector, delete unnecessary
16114 check of ASCII_BYTE_P.
16115
9196133b
JR
161162008-11-26 Jason Rumney <jasonr@gnu.org>
16117
16118 * w32font.c (w32font_open_internal): Don't include external
9acef61c 16119 leading in font height. (Bug#879)
9196133b 16120
9f688acf
GM
161212008-11-26 Glenn Morris <rgm@gnu.org>
16122
16123 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
16124 redefinition with ifdef. (Bug#1383)
16125
90d19aff
AR
161262008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16127
16128 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
16129
4ccfa1c0 161302008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
16131
16132 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
16133 New EmacsView methods.
16134 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
16135 Fixes bug #1048,1357,1414.
16136
161372008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
16138
16139 Fix bug #1362.
16140 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
16141 is not an indexed color.
16142 * nsterm.m (free_indexed_color): Add argument checking.
16143 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
16144
e7d5ecb3
CY
161452008-11-24 Chong Yidong <cyd@stupidchicken.com>
16146
16147 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
16148 Document confirm-after-completion value for
16149 minibuffer-completion-confirm.
16150
c285743c
JR
161512008-11-24 Jason Rumney <jasonr@gnu.org>
16152
16153 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
16154 warning.
16155
b0857706
JR
161562008-11-23 Jason Rumney <jasonr@gnu.org>
16157
16158 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
16159 restored before returning.
16160
16161 * w32font.c (check_face_name): New function.
16162 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 16163 fonts. (Bug#642)
b0857706 16164
ee50ff07
MR
161652008-11-22 Martin Rudalics <rudalics@gmx.at>
16166
16167 * buffer.c (Fswitch_to_buffer): Reword and mention new option
16168 confirm-nonexistent-file-or-buffer in doc-string.
16169
b8ff72fa
SM
161702008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
16171
16172 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
16173 Fix copy/paste typo. Add checks.
16174
cee53ed4
KH
161752008-11-21 Kenichi Handa <handa@m17n.org>
16176
16177 * coding.c (detect_coding_iso_2022): Reject invalid composition
16178 sequence.
16179 (DECODE_COMPOSITION_START): If the current source is the last
16180 block, and the current composition doesn't end, regard this
16181 sequence as invalid.
16182 (decode_coding_iso_2022): Handle invalid composition sequence.
16183
f6ef1e65
MR
161842008-11-20 Martin Rudalics <rudalics@gmx.at>
16185
16186 * window.c (coordinates_in_window): Don't return
16187 ON_VERTICAL_BORDER for the rightmost position of a mode/header
16188 line when the window is not the rightmost one. (Bug#1372)
16189
e08b1705
MR
161902008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
16191
16192 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
16193
ad98e89f
EZ
161942008-11-15 Eli Zaretskii <eliz@gnu.org>
16195
16196 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
16197 and bright_bg if noninteractive is non-zero.
16198
fb098a4b
CY
161992008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16200
16201 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
16202 x_draw_glyph_string_background.
16203
16204 * w32term.c (x_draw_glyph_string): Likewise.
16205
ce952b6e
CY
162062008-11-15 Chong Yidong <cyd@stupidchicken.com>
16207
16208 * xterm.c (x_draw_glyph_string): Stop drawing the background of
16209 the next glyph string once past the overhang width.
16210
16211 * nsterm.m (ns_draw_glyph_string): Likewise.
16212
16213 * w32term.c (x_draw_glyph_string): Likewise.
16214
26ea7079
CY
162152008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16216
16217 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16218 double file close.
16219
1c33c906
MR
162202008-11-14 Martin Rudalics <rudalics@gmx.at>
16221
16222 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16223 dedicated status of window before attempting to display another
16224 buffer in it.
16225
8fc29035
JB
162262008-11-14 Juanma Barranquero <lekktu@gmail.com>
16227
16228 * msdos.c (Fmsdos_long_file_names):
16229 (syms_of_msdos) <dos-unsupported-char-glyph>:
16230 * dosfns.c (Fint86): Fix typos in docstrings.
16231
55fb4286
EZ
162322008-11-14 Eli Zaretskii <eliz@gnu.org>
16233
16234 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16235
3fda0315
KY
162362008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16237
16238 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16239
7e849c17
CY
162402008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16241
16242 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16243
16244 * frame.h: Negative alpha means "don't touch".
16245
16246 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16247
16248 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16249
b9fd67bd
DN
162502008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16251
16252 * hftctl.c:
16253 * chpdef.h:
16254 * acldef.h: Remove files used only for systems no longer supported.
16255
16256 * Makefile.in: Fix .o alphabetical ordering.
16257 (hftctl.o): Remove dependency, file removed.
16258 (keymap.o, print.o): Depend on charset.h.
16259
d5998e03
KH
162602008-11-10 Kenichi Handa <handa@m17n.org>
16261
2ae37cf0 16262 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 16263
be70e183
CY
162642008-11-08 Chong Yidong <cyd@stupidchicken.com>
16265
16266 * dired.c (file_name_completion): If completion_ignore_case is
16267 enabled, ignore case when checking completion-regexp-list.
16268
7cf94eac
EZ
162692008-11-08 Eli Zaretskii <eliz@gnu.org>
16270
16271 * vm-limit.c (get_lim_data): Fix last change.
16272
ee107a89
KH
162732008-11-08 Kenichi Handa <handa@m17n.org>
16274
16275 * character.c (Fget_byte): New function.
16276 (syms_of_character): Defsubr Fget_byte.
16277
5fd15622
CY
162782008-11-07 Chong Yidong <cyd@stupidchicken.com>
16279
16280 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16281 cursor position is valid after scrolling.
16282
13d62fad
JB
162832008-11-06 Juanma Barranquero <lekktu@gmail.com>
16284
16285 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16286
a1dd2936
GM
162872008-11-06 Glenn Morris <rgm@gnu.org>
16288
16289 * xterm.c (handle_one_xevent): Don't let popup menus cause
16290 mouse-autoselect-window related window switching. (Bug#1261)
16291
860cd236
CY
162922008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16293
16294 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16295
653a3150
AS
162962008-11-04 Andreas Schwab <schwab@suse.de>
16297
16298 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16299
870f5cac
CY
163002008-11-03 Chong Yidong <cyd@stupidchicken.com>
16301
16302 * xfns.c (Fx_wm_set_size_hint): New function.
16303
1e02f3cb
MR
163042008-11-03 Martin Rudalics <rudalics@gmx.at>
16305
16306 * textprop.c (Fprevious_single_char_property_change): Return 0
16307 when there's no change in a string. (Bug#1301)
16308
e630dfc6
MR
163092008-11-02 Martin Rudalics <rudalics@gmx.at>
16310
16311 * frame.c (do_switch_frame): New argument NORECORD passed to
16312 Fselect_window.
16313 (Fselect_frame): New argument NORECORD passed to
16314 do_switch_frame.
16315 (Fset_frame_selected_window): New argument NORECORD passed to
16316 Fselect_frame.
16317 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16318 in call of do_switch_frame.
16319 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16320 Handle NORECORD argument in call of Fselect_frame.
16321 * lisp.h (do_switch_frame, Fselect_frame)
16322 (Fset_frame_selected_window): Adjust declarations.
16323 * window.c (select_frame_norecord): New function.
16324 (run_window_configuration_change_hook): Use it and call
16325 Fselect_frame with NORECORD set.
16326 (Fselect_window): Pass NORECORD to Fselect_frame.
16327 (Fset_window_configuration): Handle NORECORD argument in call of
16328 do_switch_frame.
16329 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16330 Fset_frame_selected_window.
16331 * keyboard.c (command_loop_1): Handle NORECORD in call of
16332 Fselect_frame (currently ifdefd).
16333
9020b223
GM
163342008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16335
16336 * emacs.c (USAGE2): Untabify.
16337
793ffee8
SM
163382008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16339
16340 * composite.c (fill_gstring_header): Fix copy/paste typo.
16341
ab6d1131
MR
163422008-10-31 Martin Rudalics <rudalics@gmx.at>
16343
16344 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16345 (Fother_window): Rename argument and rewrite doc-string.
16346 (select_window_norecord): Fix return value. (Bug#1276)
16347
601a9cf1
JB
163482008-10-30 Juanma Barranquero <lekktu@gmail.com>
16349
16350 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16351 new frames overriding foreground for tooltips. Based on similar patch
16352 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16353
813b0652
CY
163542008-10-29 Chong Yidong <cyd@stupidchicken.com>
16355
16356 * emacs.c (Fdaemon_initialized): Initialize nfd.
16357
4414f58f
MR
163582008-10-29 Martin Rudalics <rudalics@gmx.at>
16359
16360 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16361 (Fwindow_text_height): Clarify doc-strings.
16362 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16363 doc-string of window-scroll-functions.
16364
ecdcaa09
RS
163652008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16366
16367 * category.c (syms_of_category): Fix typo in docstring.
16368
23fe745a
JB
163692008-10-28 Juanma Barranquero <lekktu@gmail.com>
16370
16371 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16372 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16373 Fix typos in docstrings.
16374
ff808935
DN
163752008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16376
16377 * emacs.c (daemon_pipe): Make non-static.
16378 (IS_DAEMON): Move definition ...
16379 * lisp.h (IS_DAEMON): ... here.
16380 (daemon_pipe): Declare.
16381 (is_daemon): Remove.
16382 * dispnew.c (init_display): Use IS_DAEMON.
16383
fc012771
SM
163842008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16385
16386 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16387 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16388
16389 * emacs.c (is_daemon): Remove.
16390 (main): Don't set is_daemon.
16391 (IS_DAEMON): New macro.
16392 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 16393 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
16394 parent exits.
16395 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16396
d8bdbe6f
CY
163972008-10-27 Chong Yidong <cyd@stupidchicken.com>
16398
d1a072bf
CY
16399 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16400 over-sized glyph, draw it with the default glyph width.
16401
e2e325aa
CY
16402 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16403 glyph, draw it with the default glyph width.
16404
16405 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16406 glyph, draw it with the default glyph width.
16407
d8bdbe6f
CY
16408 * xdisp.c (try_scrolling): When computing the distance from the
16409 scroll margin to PT, try moving some distance past the window
16410 bottom before giving up.
16411
7bfac547
MR
164122008-10-27 Martin Rudalics <rudalics@gmx.at>
16413
16414 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16415 (Fset_window_buffer): Explain in doc-string that a window can be
16416 "strongly" dedicated to its buffer.
16417
4ff029f6
DN
164182008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16419
16420 * emacs.c (daemon_name): New variable.
16421 (main): Deal with --daemon=SERVER_NAME.
16422 (Fdaemonp): Return a name if one was passed to --daemon.
16423
5790ef40
DN
164242008-10-26 Romain Francoise <romain@orebokech.com>
16425
f9bd0df9 16426 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
16427 (main): Create a pipe before forking, make the parent exit only after
16428 the child has closed its end of the pipe. Move closing the
16429 descriptors ...
16430 (Fdaemon_initialized): ... here. New function.
16431
f5385255
SM
164322008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16433
4d632321
SM
16434 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16435 the previous unoptimized table.
16436
f5385255
SM
16437 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16438 the distinction between non-nil and non-t value of `dedicated'.
16439
6c56a0f3
CY
164402008-10-25 Chong Yidong <cyd@stupidchicken.com>
16441
16442 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 16443 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 16444
fec89261
MR
164452008-10-25 Martin Rudalics <rudalics@gmx.at>
16446
16447 * window.c (Fget_buffer_window, Fdelete_windows_on)
16448 (Freplace_buffer_in_windows): Make buffer argument optional and
16449 rename to buffer_or_name.
16450
34fcddd0
CY
164512008-10-24 Chong Yidong <cyd@stupidchicken.com>
16452
f5385255
SM
16453 * xdisp.c (handle_single_display_spec, handle_display_prop):
16454 Undo 2005-05-16 change.
34fcddd0
CY
16455 (handle_stop): Pop iterator if it's loaded with an empty string.
16456 (get_overlay_strings_1): Don't save iterator if it's loaded with
16457 an empty string (bug#1201).
16458
064766f2
KH
164592008-10-24 Kenichi Handa <handa@m17n.org>
16460
16461 * ftfont.c (ftfont_otf_features): Fix previous change.
16462 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16463 calling ftfont_otf_features.
16464
f9bd0df9 164652008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
16466
16467 * font.c (font_match_p): Fix for the case that a vector of
16468 characters is in script-representative-chars.
16469
1dae9197
MA
164702008-10-24 Michael Albinus <michael.albinus@gmx.de>
16471
16472 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 16473 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
16474 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16475 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 16476 macro. (Bug#1186)
1dae9197 16477
f9bd0df9 164782008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
16479
16480 * s/sol2-10.h: New file.
16481
878a4584
JB
164822008-10-23 Juanma Barranquero <lekktu@gmail.com>
16483
16484 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16485 poor beast has survived 9+ years and the jump from xterm.c!).
16486
cd265ca6
MR
164872008-10-23 Martin Rudalics <rudalics@gmx.at>
16488
16489 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16490 Reword doc-string.
f5385255 16491 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 16492
472a4dc9
JB
164932008-10-23 Juanma Barranquero <lekktu@gmail.com>
16494
16495 * character.c (syms_of_character) <script-representative-chars>:
16496 <unicode-category-table>: Doc fixes.
16497
159bd5a2
NF
164982008-10-23 Noah Friedman <friedman@splode.com>
16499
16500 * coding.c (make_conversion_work_buffer): Check that
16501 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16502 Fget_buffer_create.
16503
49f9c344
KH
165042008-10-23 Kenichi Handa <handa@m17n.org>
16505
16506 * font.c (font_add_log): Check the values of extra properties.
16507
12bb3111
MR
165082008-10-22 Martin Rudalics <rudalics@gmx.at>
16509
16510 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16511 Reword doc-string.
16512 (Fset_window_parameter): Use NILP.
16513 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 16514 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 16515
bbeb4e99
JB
165162008-10-22 Juanma Barranquero <lekktu@gmail.com>
16517
16518 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16519
165202008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
16521
16522 * nsfns.m (ns_appkit_version): New function.
16523 (x-server-version): Use it.
16524 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16525 (x-server-vendor): Don't check_ns().
16526
16527 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16528
a9b555d3
JB
165292008-10-22 Juanma Barranquero <lekktu@gmail.com>
16530
16531 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16532 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16533
4626499f
KH
165342008-10-22 Kenichi Handa <handa@m17n.org>
16535
e3681952
KH
16536 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16537 scripts.
16538
4626499f
KH
16539 * category.c (word_boundary_p): Check scripts instead of charset.
16540 Handle nil value in word-separating-categories and
16541 word-combining-categories.
16542 (syms_of_category): Fix docstrings of word-separating-categories
16543 and word-combining-categories.
16544
1560f91a
EZ
165452008-10-21 Eli Zaretskii <eliz@gnu.org>
16546
16547 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16548 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16549
f4668441
MR
165502008-10-21 Martin Rudalics <rudalics@gmx.at>
16551
16552 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16553 Rename arg "buffer" to "buffer_or_name".
16554 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16555 it optional.
16556 (no_switch_window): Remove since the return value is not used.
a9b555d3 16557 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
16558 Consider window as dedicated when Fwindow_dedicated_p returns a
16559 non-nil value.
16560 * lisp.h: Remove prototype for no_switch_window.
16561
fd75ddb2
JD
165622008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16563
16564 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 16565 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 16566
07295713
KH
165672008-10-21 Kenichi Handa <handa@m17n.org>
16568
16569 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16570 check Vlatin_extra_code_table.
16571
712adc82
EZ
165722008-10-20 Eli Zaretskii <eliz@gnu.org>
16573
16574 * fileio.c (Fset_file_modes): Doc fix.
16575
f549eb0b
MA
165762008-10-19 Michael Albinus <michael.albinus@gmx.de>
16577
16578 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16579 in arrays.
16580
aac0c6e3
MR
165812008-10-19 Martin Rudalics <rudalics@gmx.at>
16582
16583 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16584 Mention kill-buffer in doc-string.
16585 (Fset_window_buffer): Reinsert tem check removed in last commit.
16586 (Fenlarge_window, Fshrink_window): Have argument names and
16587 doc-string follow Elisp manual more closely.
16588
165892008-10-18 Eli Zaretskii <eliz@gnu.org>
16590
16591 * fileio.c (Fset_file_modes): Doc fix.
16592
165932008-10-18 Martin Rudalics <rudalics@gmx.at>
16594
16595 * window.c (Fwindow_width, Fset_window_start)
16596 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
16597 (Fdelete_windows_on, Freplace_buffer_in_windows):
16598 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
16599 (Fwindow_dedicated_p): Make window argument optional.
16600 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16601 (Fset_window_buffer): Respect any non-nil dedicated value for
16602 window. Rename "buffer" argument to "buffer_or_name".
16603
166042008-10-18 Ulrich Mueller <ulm@gentoo.org>
16605
16606 * m/sh3.h: New file, machine description for SuperH.
16607
166082008-10-17 Martin Rudalics <rudalics@gmx.at>
16609
16610 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16611
166122008-10-17 Kenichi Handa <handa@m17n.org>
16613
16614 * ftfont.c (ftfont_otf_features): Fix indexing
16615 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16616
166172008-10-16 Magnus Henoch <mange@freemail.hu>
16618
16619 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16620 (Fdbus_call_method_asynchronously): Ditto.
16621 This change makes C-h f display the argument list.
16622
166232008-10-16 Chong Yidong <cyd@stupidchicken.com>
16624
16625 * fileio.c (Fexpand_file_name): Doc fix.
16626
16627 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16628 of :foreground and :background equivalent to unspecified (20.x
16629 compatibility).
16630
166312008-10-15 Eli Zaretskii <eliz@gnu.org>
16632
16633 * buffer.c (syms_of_buffer): Doc fix.
16634
166352008-10-14 Kenichi Handa <handa@m17n.org>
16636
16637 * font.c (font_clear_prop): When clearing font width, clear the
16638 average width field too.
16639
166402008-10-12 Andreas Schwab <schwab@suse.de>
16641
16642 * ftfont.c (ftfont_shape_by_flt): Make static.
16643 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16644
16645 * font.c: Don't include <m17n-flt.h>.
16646
166472008-10-10 Eli Zaretskii <eliz@gnu.org>
16648
16649 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16650
166512008-10-09 Eli Zaretskii <eliz@gnu.org>
16652
16653 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16654 away code.
16655
166562008-10-09 Chong Yidong <cyd@stupidchicken.com>
16657
16658 * dispnew.c (update_text_area): Avoid looping due to large glyph
16659 overhangs (bug#1070).
16660
166612008-10-09 Kenichi Handa <handa@m17n.org>
16662
16663 * fontset.c (face_for_char): If face->fontset is negative, just
16664 return ascii_face.
16665
f5385255
SM
16666 * font.c (font_delete_unmatched): Fix previous change.
16667 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
16668
166692008-10-09 Martin Rudalics <rudalics@gmx.at>
16670
16671 * frame.c (Fraise_frame): On text-only terminals select frame in
16672 order to make it visible. (Bug#1061)
16673
166742008-10-08 Chong Yidong <cyd@stupidchicken.com>
16675
16676 * fontset.c (fontset_find_font): Check frame validity.
16677
166782008-10-07 Chong Yidong <cyd@stupidchicken.com>
16679
a9b555d3 16680 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
16681 (xg_display_close): Allow Emacs to close all displays (bug#985).
16682
166832008-10-06 Andreas Schwab <schwab@suse.de>
16684
f5385255 16685 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
16686
166872008-10-06 Chong Yidong <cyd@stupidchicken.com>
16688
f5385255 16689 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 16690
a9b555d3 16691 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
16692
16693 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16694 during initialization.
16695
166962008-10-04 Eli Zaretskii <eliz@gnu.org>
16697
16698 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16699 whole thing on MSDOS frames as well as on a TTY.
16700
16701 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16702 well as for TTY.
16703 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16704 well as on a TTY.
16705
16706 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16707 as well as for TTY.
16708
16709 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16710
16711 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16712 MSDOS frames as well.
16713
167142008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16715
16716 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16717 correct arguments.
b71ac3dd 16718 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
16719
167202008-10-03 Glenn Morris <rgm@gnu.org>
16721
16722 * emacs.c (USAGE1): Add --daemon.
16723
167242008-10-02 Eli Zaretskii <eliz@gnu.org>
16725
16726 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16727 100, so it's in percents as advertised.
16728
167292008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16730
16731 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16732 (ns_output.current_cursor, ns_output.desired_cursor)
16733 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16734 (FRAME_NEW_CURSOR_COLOR): Remove.
16735
16736 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 16737 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
16738 enumeration (HOLLOW_BOX_CURSOR, etc.).
16739
16740 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16741 (draw_window_cursor): Simplify code.
f5385255
SM
16742 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16743 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 16744 updates manually.
a9b555d3
JB
16745 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16746 Use core Emacs cursor types.
aac0c6e3 16747
b8ff72fa 16748 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
16749
167502008-10-02 Martin Rudalics <rudalics@gmx.at>
16751
16752 * process.c (Faccept_process_output): Fix doc-string.
16753
167542008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16755
16756 * gmalloc.c (__sbrk): Also define for uClibc.
16757
16758 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16759 for uClibc.
16760
167612008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16762
16763 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16764 styles.
16765 (nsfont_open): Reenable the cache.
16766
167672008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16768
16769 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16770 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16771
167722008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16773
16774 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16775 a suspended terminal.
16776
167772008-09-30 Michael Albinus <michael.albinus@gmx.de>
16778
16779 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16780
167812008-09-30 Eli Zaretskii <eliz@gnu.org>
16782
16783 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16784
167852008-09-30 Chong Yidong <cyd@stupidchicken.com>
16786
16787 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16788 in a continued line coincides with a line beginning.
16789
167902008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16791
16792 * nsfont.m (nsfont_trait_distance): Fix bug.
16793 (nsfont_list): Return a list rather than a vector (syncs with Handa
16794 changes of 2008-05-14).
16795 (nsfont_open): Improve logging.
16796
167972008-09-29 Andreas Schwab <schwab@suse.de>
16798
16799 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16800
168012008-09-28 Martin Rudalics <rudalics@gmx.at>
16802
16803 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16804 name as char-resolve-modifiers.
16805 Reported by: Markus Triska <markus.triska@gmx.at>
16806
168072008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16808
16809 * dispnew.c (init_display): Return earlier when running as a daemon.
16810
168112008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16812
16813 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16814
168152008-09-27 Eli Zaretskii <eliz@gnu.org>
16816
16817 * composite.c (Fcomposition_get_gstring)
16818 (Fcompose_region_internal, Fcompose_string_internal)
16819 (Ffind_composition_internal): Doc fix.
16820 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16821 (syms_of_composite) <auto-composition-function>: Doc fix.
16822 (syms_of_composite) <composition-function-table>: Doc fix.
16823
168242008-09-25 Chong Yidong <cyd@stupidchicken.com>
16825
16826 * search.c (wordify): New argument for lax word-ends.
16827 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16828
168292008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16830
16831 * lisp.h (is_daemon): Declare.
16832 * dispnew.c (init_display): Do not try to initialize the terminal
16833 when running as a daemon.
16834
168352008-09-22 Chong Yidong <cyd@stupidchicken.com>
16836
16837 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16838 x_display_pixel_height.
16839
168402008-09-22 Martin Rudalics <rudalics@gmx.at>
16841
16842 * undo.c (record_point): Don't call Fundo_boundary for first
16843 change. (Bug#731)
16844
168452008-09-22 Juanma Barranquero <lekktu@gmail.com>
16846
16847 * emacs.c (Fdaemonp): Doc fix.
16848
168492008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16850
16851 * emacs.c (main): Place #ifdef in the proper place.
16852
168532008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16854
16855 * emacs.c (standard_args): Add --daemon.
16856 (main): Disconnect from the terminal when --daemon is passed.
16857 (is_daemon): New variable.
16858 (Fdaemonp): New function.
16859 (syms_of_emacs): Defsubr it.
16860
168612008-09-20 Chong Yidong <cyd@stupidchicken.com>
16862
16863 * xdisp.c (get_next_display_element): Handle string display
16864 correctly when checking for the end of a box run.
16865
168662008-09-20 Glenn Morris <rgm@gnu.org>
16867
16868 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16869 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16870 (Frename_file): Avoid copying to trash if a rename involves
16871 a delete. (Bug#964).
16872
168732008-09-20 Eli Zaretskii <eliz@gnu.org>
16874
16875 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16876 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16877 frames as well as termcap frames.
16878 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16879 get_named_tty.
16880
168812008-09-19 Eli Zaretskii <eliz@gnu.org>
16882
16883 * process.c (procfs_system_process_attributes): Fix cmdline in
16884 case /proc/PID/cmdline is empty.
16885
16886 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16887 x_display_pixel_height.
16888
168892008-09-19 Juanma Barranquero <lekktu@gmail.com>
16890
16891 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16892
16893 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16894 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16895
168962008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16897
16898 * dispextern.h (struct it): Move line_wrap away from the middle of
16899 bitfields. Move voffset in struct iterator_stack_entry after the
16900 bitfields. Move tab_width near after another short.
16901
169022008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16903
16904 * frame.h (struct frame): Move alpha from the middle of bitfields.
16905
16906 * window.h (struct window): Move frozen_window_start_p after the
16907 rest of the bitfields to reduce padding.
16908
169092008-09-18 Chong Yidong <cyd@stupidchicken.com>
16910
16911 * xterm.h (x_display_info): Remove `height' and `width' members.
16912
16913 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16914
16915 * w32term.h (w32_display_info): Remove `height', `width',
16916 `height_in', and `width_in' members.
16917
b8ff72fa
SM
16918 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16919 New functions.
aac0c6e3
MR
16920 (x_calc_absolute_position): Use them.
16921 (x_term_init): Omit removed `height' and `width' members.
16922
b8ff72fa
SM
16923 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16924 New functions.
aac0c6e3
MR
16925 (w32_read_socket, x_calc_absolute_position): Use them.
16926 (w32_initialize_display_info, w32_term_init): Omit removed members
16927 of w32_display_info.
16928
b8ff72fa
SM
16929 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16930 New functions.
16931 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 16932
b8ff72fa
SM
16933 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16934 New functions.
aac0c6e3
MR
16935 (x_calc_absolute_position): Use them.
16936 (x_term_init): Omit removed `height' and `width' members.
16937
16938 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
16939 (compute_tip_xy):
16940 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
16941 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16942 x_display_pixel_width.
16943
169442008-09-18 Kenichi Handa <handa@m17n.org>
16945
16946 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16947 (composition_compute_stop_pos): Fix handling of static composition.
16948 (Fcomposition_get_gstring): Check FROM and TO at first.
16949
169502008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16951
46e722a9 16952 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
16953 mixup (YAILOM).
16954
169552008-09-17 Chong Yidong <cyd@stupidchicken.com>
16956
16957 * indent.c (Fvertical_motion): Use position reported by iterator
16958 instead of PT for determining screen motion (bug#943).
16959
169602008-09-17 Romain Francoise <romain@orebokech.com>
16961
16962 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16963
169642008-09-17 Kenichi Handa <handa@m17n.org>
16965
16966 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16967
16968 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16969 if necessary.
16970
169712008-09-16 Kenichi Handa <handa@m17n.org>
16972
16973 * coding.c (make_conversion_work_buffer): Avoid calling
16974 Fget_buffer_create if it is not necessary.
16975
169762008-09-15 Martin Rudalics <rudalics@gmx.at>
16977
16978 * window.c (Fselect_window): Don't update window_select_count and
16979 use_time when norecord is not nil.
16980
169812008-09-14 Kenichi Handa <handa@m17n.org>
16982
16983 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16984 specpdl_ptr.
16985
169862008-09-12 Kenichi Handa <handa@m17n.org>
16987
16988 * indent.c (scan_for_column): Don't handle automatic composition
16989 if the current buffer is not associated with a window.
16990
16991 * composite.c (composition_reseat_it): If the current buffer is
16992 not associated with a window, ignore the automatic composition.
16993 (find_automatic_composition): Likewise.
16994
169952008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16996
16997 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16998 (Fgpm_mouse_stop): Use it.
16999 * termhooks.h (close_gpm): Declare.
17000 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
17001 connection if Gpm_GetEvent fails.
17002
17003 * window.c (set_window_buffer): Always preserve current-buffer.
17004
170052008-09-12 Glenn Morris <rgm@gnu.org>
17006
17007 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
17008
170092008-09-11 Glenn Morris <rgm@gnu.org>
17010
17011 * charset.c (charset-map-path): Doc fix.
17012
170132008-09-10 Kenichi Handa <handa@m17n.org>
17014
17015 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
17016
17017 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
17018 compose a grapheme cluster with the preceding base glyph.
17019
17020 * composite.c (composition_compute_stop_pos): Fix previous change.
17021 Reset cmp_it->id to -1 at first.
17022
170232008-09-10 Glenn Morris <rgm@gnu.org>
17024
17025 * Makefile.in (character.o, chartab.o): Fix config.h typo.
17026
170272008-09-09 Chong Yidong <cyd@stupidchicken.com>
17028
17029 * keyboard.c (read_key_sequence): Reapply translation maps when
17030 switching keyboards.
17031
170322008-09-09 Kenichi Handa <handa@m17n.org>
17033
17034 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
17035 characters.
17036
17037 * composite.c (FORWARD_CHAR): Fix calculation
17038 of (POSITION).pos_byte.
17039 (composition_compute_stop_pos): Limit the search of composition to
17040 at most 500 characters ahead. If we reach the limit or find a
17041 newline, set cmp_it->ch to -2 and return 0.
17042 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
17043
170442008-09-08 Kenichi Handa <handa@m17n.org>
17045
17046 * indent.c (Fvertical_motion): Be sure to set
17047 it_overshoot_expected if it.cmp_it.id is non-negative.
17048
170492008-09-07 Andreas Schwab <schwab@suse.de>
17050
17051 * callproc.c (Fcall_process): Don't hold references to string data
17052 across garbage collection. Move initialisation of new_argv down
17053 to avoid compiler bug.
17054
170552008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17056
17057 * process.c (Fsystem_process_attributes): Doc fix.
17058
170592008-09-07 Chong Yidong <cyd@stupidchicken.com>
17060
17061 * callproc.c (Fcall_process): Canonicalize current directory name.
17062
17063 * xdisp.c (move_it_to): When moving by vpos, ensure that the
17064 iterator advances to the next line if the current line ends in a
17065 continued tab.
17066
170672008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
17068
17069 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
17070 member to point to cmp_from.
17071
17072 * xdisp.c: Doc fix for references to gidx data member.
17073
170742008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
17075
17076 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
17077
170782008-09-07 Kenichi Handa <handa@m17n.org>
17079
17080 * composite.c (FORWARD_CHAR): Check STOP after
17081 incrementing (POSITION).pos.
17082
170832008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
17084
17085 * process.c (Fsystem_process_attributes): Doc fix.
17086
170872008-09-06 Chong Yidong <cyd@stupidchicken.com>
17088
17089 * keyboard.c (Ftop_level): Doc fix.
17090
170912008-09-06 Eli Zaretskii <eliz@gnu.org>
17092
17093 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
17094 minibuffer, don't let lower part of menu invade the echo area.
17095
17096 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
17097 "char *q" to access menu text and advance through it. Revert the
17098 change that displayed ">" instead of ASCII character 0x10.
17099
171002008-09-05 Eli Zaretskii <eliz@gnu.org>
17101
17102 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
17103 toggle boxes and radio buttons on MS-DOS as well.
17104
171052008-09-05 Kenichi Handa <handa@m17n.org>
17106
17107 * composite.c (autocmp_chars): Check lookback count.
17108 (composition_compute_stop_pos): Set cmp_it->lookback.
17109 (composition_reseat_it): Check lookback count.
17110 (struct position_record): New struct.
17111 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
17112 (find_automatic_composition): New function.
17113 (composition_adjust_point): Use find_automatic_composition.
17114
17115 * dispextern.h (struct composition_it): New member lookback.
17116
171172008-09-02 Chong Yidong <cyd@stupidchicken.com>
17118
17119 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
17120 if moving by a single line.
17121
171222008-09-02 Andreas Schwab <schwab@suse.de>
17123
17124 * xterm.c (x_delete_display): Fix merge error.
17125
17126 * fileio.c (Fexpand_file_name): Remove unused variables.
17127
171282008-09-02 Eli Zaretskii <eliz@gnu.org>
17129
17130 * fileio.c (Fexpand_file_name): Copy argument `name' into local
17131 storage on all platforms, not just on DOS_NT.
17132
171332008-09-02 Jason Rumney <jasonr@gnu.org>
17134
b8ff72fa
SM
17135 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
17136 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
17137
171382008-09-01 Chong Yidong <cyd@stupidchicken.com>
17139
17140 * xfaces.c (Finternal_set_alternative_font_family_alist)
17141 (Finternal_set_alternative_font_registry_alist): Properly copy
17142 entire alist structure.
17143
171442008-09-01 Kenichi Handa <handa@m17n.org>
17145
d66c0241 17146 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 17147 representative chars of the script is a vector.
d66c0241
JB
17148 (ftfont_list): Handle the case where the representative chars of
17149 the script is a vector.
aac0c6e3
MR
17150
17151 * character.c (syms_of_character): Docstring of
17152 script-representative-chars fixed.
17153
171542008-08-31 Eli Zaretskii <eliz@gnu.org>
17155
17156 * msdos.c (BUILD_CHAR_GLYPH): New macro.
17157 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
17158 the menu. Allocate larger buffer for `text', to account for
17159 possible ^C characters.
17160
171612008-08-31 Martin Rudalics <rudalics@gmx.at>
17162
17163 * xdisp.c (prepare_menu_bars): Don't call
17164 Vwindow_size_change_functions with arg Qt.
17165
171662008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
17167
17168 * font.h (font_range):
17169 * fileio.c (report_file_error):
46e722a9
SM
17170 * composite.c (composition_update_it): Yet another int/Lisp_Object
17171 mixup (YAILOM).
aac0c6e3
MR
17172
171732008-08-30 Glenn Morris <rgm@gnu.org>
17174
17175 * data.c (Fmake_variable_frame_local): Doc fix.
17176
17177 * frame.c (Fmodify_frame_parameters): Doc fix.
17178
171792008-08-30 Eli Zaretskii <eliz@gnu.org>
17180
17181 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
17182 needed by GetTokenInformation.
17183 (w32_system_process_attributes): Check return values of all system
17184 APIs.
17185
17186 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
17187 only when the state changes.
17188 (IT_update_begin, IT_update_end): Add termscript trace.
17189
17190 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
17191 clipboard is unavailable. Set dst to NULL if it doesn't point to
17192 malloc'ed data.
17193 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
17194 passing random values to xfree.
17195
17196 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 17197 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
17198
171992008-08-29 Jason Rumney <jasonr@gnu.org>
17200
17201 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
17202
172032008-08-29 Eli Zaretskii <eliz@gnu.org>
17204
17205 * composite.c (fill_gstring_body): Avoid compiler warnings.
17206
17207 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
17208 LGLYPH_SET_CODE to avoid compiler warnings.
17209
2ae37cf0 17210 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
17211
17212 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
17213
17214 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
17215 LGLYPH_SET_CODE.
17216
172172008-08-29 Kenichi Handa <handa@m17n.org>
17218
17219 * fileio.c (report_file_error): Don't downcase the first character
17220 of errstring if it is still unibyte.
17221
172222008-08-29 Kenichi Handa <handa@m17n.org>
17223
17224 These changes are to re-implement the automatic composition so
17225 that it doesn't use text properties.
17226
17227 * Makefile.in (ftfont.o): Depend on composite.h.
17228 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17229
17230 * character.h (Vunicode_category_table): Extern it.
17231
17232 * character.c (Vunicode_category_table): New variable.
17233 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17234
17235 * chartab.c (optimize_sub_char_table): Perform more greedy
17236 optimization.
17237
b8ff72fa
SM
17238 * composite.h (enum composition_method):
17239 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
17240 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17241 (Vcomposition_function_table): Extern it.
17242 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17243 (composition_gstring_put_cache, composition_gstring_from_id)
17244 (composition_gstring_p, composition_gstring_width)
17245 (composition_compute_stop_pos, composition_reseat_it)
17246 (composition_update_it, composition_adjust_point): Extern them.
17247 (Fcomposition_get_gstring): EXFUN it.
17248
d66c0241 17249 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
17250 (Vcomposition_function_table)
17251 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
17252 (gstring_hash_table, gstring_work, gstring_work_headers):
17253 New variables.
aac0c6e3
MR
17254 (gstring_lookup_cache, composition_gstring_put_cache)
17255 (composition_gstring_from_id, composition_gstring_p)
17256 (composition_gstring_width, fill_gstring_header)
17257 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17258 (composition_reseat_it, composition_update_it)
b8ff72fa 17259 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
17260 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17261 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 17262 Defsubr composition_get_gstring.
aac0c6e3
MR
17263
17264 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17265 cmp_id.
17266 (struct glyph_string): Delete the member gidx. New members
17267 cmp_id, cmp_from, and cmp_to.
17268 (enum it_method): Delete GET_FROM_COMPOSITION.
17269 (struct composition_it): New struct.
17270 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17271 Delete c, len, cmp_id, cmp_len in u.comp.
17272
17273 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 17274 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 17275 (enum lglyph_indices): Likewise.
b8ff72fa 17276 (font_range): Adjust extern.
aac0c6e3
MR
17277 (font_fill_lglyph_metrics): Extern it.
17278
17279 * font.c (QCf): New variable.
17280 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17281 (font_prepare_composition): Delete this function.
17282 (font_range): Type and arguments changed.
17283 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17284 (font_fill_lglyph_metrics): New function.
b8ff72fa 17285 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 17286 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
17287 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17288 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
17289
17290 * fontset.h (font_for_char): Extern it.
17291
17292 * fontset.c (font_for_char): New function.
17293
17294 * ftfont.c: Include composite.h.
17295 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 17296 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
17297
17298 * indent.c: Include composite.h and dispextern.h.
17299 (check_composition): Delete this function.
17300 (scan_for_column): Handle composition by
17301 composition_compute_stop_pos, composition_reseat_it, and
17302 composition_update_it.
17303 (compute_motion): Likewise.
17304 (Fvertical_motion): Fix checking of composition.
17305
17306 * keyboard.c (adjust_point_for_property): Check composition by
17307 composition_adjust_point.
17308
b8ff72fa 17309 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
17310 struct glyph_string.
17311
b8ff72fa
SM
17312 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17313 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
17314 struct glyph.
17315 (produce_composite_glyph): Likewise.
17316
b8ff72fa
SM
17317 * w32term.c (x_draw_composite_glyph_string_foreground):
17318 Adjust for the change of struct glyph_string.
aac0c6e3
MR
17319 (x_draw_glyph_string): Likewise.
17320
17321 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17322 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17323
17324 * xdisp.c: Include font.h.
17325 (it_props): Delete the entry for Qauto_composed.
17326 (init_iterator): Initialize it->cmp_it.id to -1.
17327 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 17328 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
17329 (handle_auto_composed_prop): Delete it.
17330 (handle_composition_prop): Handle only static composition.
17331 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17332 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 17333 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
17334 (pop_it): Likewise.
17335 (get_next_element): Delete next_element_from_composition.
17336 (CHAR_COMPOSED_P): New macro.
17337 (get_next_display_element): For automatic composition, get a face
17338 from the font in the glyph-string.
17339 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 17340 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
17341 (next_element_from_string): Check if the character at the current
17342 position is composed by CHAR_COMPOSED_P.
17343 (next_element_from_buffer): Likewise.
d66c0241
JB
17344 (next_element_from_composition): Adjust for the change of struct it.
17345 Update it->cmp_it.
b8ff72fa
SM
17346 (dump_glyph): Adjust for the change of struct glyph.
17347 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
17348 it and struct glyph. Don't handle automatic composition here.
17349 (fill_gstring_glyph_string): New function.
17350 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 17351 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
17352 (BUILD_GSTRING_GLYPH_STRING): New macro.
17353 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17354 automatic composition.
b8ff72fa 17355 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 17356 struct glyph.
b8ff72fa 17357 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 17358
b8ff72fa 17359 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
17360 the change of struct glyph_string.
17361 (x_draw_glyph_string): Likewise.
17362
173632008-08-29 Glenn Morris <rgm@gnu.org>
17364
17365 * buffer.c (word-wrap): Doc fix.
17366 * xdisp.c (truncate-partial-width-windows): Doc fix.
17367 Increase default to 50.
17368
173692008-08-29 Chong Yidong <cyd@stupidchicken.com>
17370
17371 * xdisp.c (update_tool_bar_unwind): New function.
17372 (update_tool_bar): Temporarily set selected frame before building
17373 tool-bar items.
17374
173752008-08-28 Michael Albinus <michael.albinus@gmx.de>
17376
17377 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17378 snprintf, respectively.
17379 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17380
173812008-08-28 Chong Yidong <cyd@stupidchicken.com>
17382
17383 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17384 LDFLAGS to GNUstep CC invocation.
17385
173862008-08-27 Chong Yidong <cyd@stupidchicken.com>
17387
17388 * indent.c (Fvertical_motion): Revert last change. Handle the
17389 general case where we are moving forward, and PT spans multiple
17390 screen lines.
17391
17392 * eval.c (find_handler_clause): Temporarily increase
17393 max-lisp-eval-depth while printing the backtrace buffer, to
17394 guarantee that help-mode code can run.
17395
173962008-08-27 Eli Zaretskii <eliz@gnu.org>
17397
17398 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17399 colors under -rv.
17400 (IT_set_frame_parameters): Don't swap foreground and background
17401 colors if `(reverse . t)' is present in the frame properties.
17402 (internal_terminal_init): Call init_frame_faces only for the
17403 initial frame.
17404
174052008-08-27 Andreas Schwab <schwab@suse.de>
17406
17407 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17408
174092008-08-27 Andreas Schwab <schwab@suse.de>
17410
17411 * search.c (search_buffer): Set char_base to zero only at the end.
17412
174132008-08-27 Kenichi Handa <handa@m17n.org>
17414
b8ff72fa 17415 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
17416
174172008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17418
17419 * xterm.c (x_term_init): Temporarily hide the partially
17420 initialized terminal while calling vendor-specific-keysyms.
17421
174222008-08-26 Eli Zaretskii <eliz@gnu.org>
17423
17424 * msdos.c (internal_terminal_init): Most initializations done only
17425 once, especially initial_screen_colors[] and termscript open.
17426
174272008-08-26 Chong Yidong <cyd@stupidchicken.com>
17428
17429 * eval.c (Fcondition_case): Doc fix.
17430
17431 * widgetprv.h (EmacsFramePart): Change font member to the new font
17432 struct.
17433
17434 * widget.c: Include character.h and font.h for XSETFONT.
17435 (setup_frame_gcs): Compute X font id from font struct, just once.
17436
174372008-08-26 Eli Zaretskii <eliz@gnu.org>
17438
17439 * term.c (get_named_tty): Fix last change.
17440
174412008-08-26 Chong Yidong <cyd@stupidchicken.com>
17442
17443 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 17444 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
17445
174462008-08-25 Eli Zaretskii <eliz@gnu.org>
17447
17448 * frame.c (do_switch_frame): Mark previously displayed frame as
17449 obscured for FRAME_MSDOS_P frames as well.
17450
174512008-08-24 Eli Zaretskii <eliz@gnu.org>
17452
17453 * frame.c (make_terminal_frame): Initialize f->terminal,
17454 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17455 Set the top frame to newly created frame.
17456 (Fmake_terminal_frame): Reuse the_only_display_info.
17457
17458 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17459 estimating available memory.
17460
b97439ce 174612008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
17462
17463 * nsterm.m (ns_draw_window_cursor): Don't call
17464 NSDisableScreenUpdates and NSEnableScreenUpdates on
17465 non-NS_IMPL_COCOA systems.
17466
174672008-08-23 Andreas Schwab <schwab@suse.de>
17468
17469 * process.c (procfs_system_process_attributes): Fix use of
17470 uninitialized variables.
17471
174722008-08-23 Eli Zaretskii <eliz@gnu.org>
17473
17474 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17475
17476 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17477 calling tty-set-up-initial-frame-faces.
17478
b8ff72fa
SM
17479 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17480 Allow MSDOS frames along with X frames.
aac0c6e3
MR
17481
17482 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17483 addition to output_termcap.
17484
17485 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17486
17487 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17488 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17489 highlight.
17490
17491 * process.c [!subprocesses]: Define QCname.
17492 (syms_of_process): Intern and staticpro it.
17493
17494 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
17495 Adjust for changes in encoding/decoding routines.
17496 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
17497 encode_coding and decode_coding.
17498
b8ff72fa 17499 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
17500
17501 * dosfns.c: Include frame.h before termhooks.h.
17502 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17503 variable termscript.
17504
17505 * s/msdos.h (USER_FULL_NAME): Define.
17506 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17507
17508 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17509 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17510 pw->pw_gecos.
17511
17512 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17513 SELECTED_FRAME as additional (1st) argument.
17514 (tty_read_avail_input): Handle output_msdos_raw in
17515 addition to output_termcap.
17516
17517 * msdos.c: Include frame.h before termhooks.h.
17518 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17519 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17520 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17521 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17522 (IT_set_terminal_modes, IT_reset_terminal_modes)
17523 (IT_set_frame_parameters): Use tty->termscript instead of a global
17524 variable termscript.
17525 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17526 global variable terminal_coding. Don't refer to
17527 Vnonascii_translation_table.
17528 (internal_terminal_init): Set Vwindow_system in current_kboard.
17529 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17530 Announce date and time of session start, if termscript is open.
17531 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
17532 term.c:init_tty). Open termscript only of not already open.
17533 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
17534 here instead of dos_ttraw. Don't initialize display if this is an
17535 initial tty. Don't set FRAME_FONT.
17536 (Vwindow_system_version): Bump to 23.
17537 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17538 is available, set up mouse_position_hook.
17539 (dos_ttraw, IT_set_terminal_modes): If called with initial
17540 terminal, do nothing.
17541 (IT_set_frame_parameters): Handle the Qtty_type frame
17542 parameter by calling internal_terminal_init.
17543 (dos_set_window_size, show_mouse_face)
17544 (clear_mouse_face, IT_note_mode_line_highlight)
17545 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17546 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17547 (initialize_msdos_display): New function.
17548 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17549 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17550 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17551 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 17552 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
17553 (request_sigio, unrequest_sigio): Don't define, now defined on
17554 sysdep.c.
17555 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17556
17557 * term.c [MSDOS]: Include msdos.h.
17558 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17559 conditional to DOS_NT. Allow only one call to this function in a
17560 session. Don't allocate a new struct tty_display_info; instead,
17561 reuse the_only_display_info. Call get_tty_size to get screen
17562 dimensions. Call init_baud_rate to set bad_rate.
17563 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17564 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 17565 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
17566 (get_tty_terminal, get_named_tty, Ftty_type)
17567 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17568 output_termcap.
b8ff72fa
SM
17569 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17570 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 17571 only when subprocesses are supported.
aac0c6e3
MR
17572
17573 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17574 f->output_data.x.
17575 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17576 terminal devices.
17577
5582fbc7 17578 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
17579 x_output.
17580 (FRAME_FONT): Use output_data.tty.
17581 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
17582 (struct x_display_info): Rename from display_info. Update all users in
17583 msdos.c.
aac0c6e3 17584 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 17585 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
17586 (dos_ttraw): Update prototype.
17587
17588 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17589 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17590
175912008-08-23 Jason Rumney <jasonr@gnu.org>
17592
17593 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17594 (fn_TIFFSetDirectory): New library function used.
17595 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17596 (tiff_load): Use :index to select among multiple images. Set count
17597 property when multiple images exist.
17598 (gif_format): Use :index, not :image.
17599
176002008-08-23 Chong Yidong <cyd@stupidchicken.com>
17601
17602 * xdisp.c (try_scrolling): Check INT_MAX instead of
17603 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17604 to obtain INT_MAX.
17605
176062008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17607
17608 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17609
176102008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17611
17612 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17613 GNUstep library location.
17614
176152008-08-21 Chong Yidong <cyd@stupidchicken.com>
17616
17617 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17618 before using it.
17619
17620 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17621
176222008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17623
17624 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17625 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17626 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17627 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17628 (EmacsApp-cursor_blink_handler): Remove declaration.
17629 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17630 match 01 Feb 2008 changes in xterm.c.
17631 (ns_read_socket): Add cast to avoid warning.
17632 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17633 GNUstep.
17634
176352008-08-20 Chong Yidong <cyd@stupidchicken.com>
17636
17637 * xselect.c (x_get_foreign_selection): Return nil if desired
17638 selection could not be obtained, instead of signalling an error.
17639
176402008-08-20 David Reitter <david.reitter@gmail.com>
17641
17642 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17643 * nsterm.m: Remove ns-specific code for cursor blinking.
17644 (ns_draw_window_cursor): Clear cursor properly rather than
17645 redrawing the area. Respect width of bar cursors.
17646 These changes enable the use of generic blink-cursor-mode and
17647 generic cursor types in NS and support smooth cursor movements (do
17648 not blink off after command).
17649 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17650 Nextstep, too.
17651
176522008-08-19 Kenichi Handa <handa@m17n.org>
17653
17654 * font.c (Vfont_log_deferred): New variable.
17655 (font_add_log): Check Vfont_log_deferred.
17656 (font_deferred_log): New function.
17657
17658 * font.h (font_deferred_log): Extern it.
17659
17660 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17661 for sorting.
17662 (face_for_char): Use deferred log.
17663
176642008-08-18 Kenichi Handa <handa@m17n.org>
17665
17666 * fontset.c (face_for_char): Add font log.
17667
17668 * font.c (font_add_log): Add the font properties :script, :lang,
17669 and :otf in the log.
17670
176712008-08-17 Chong Yidong <cyd@stupidchicken.com>
17672
17673 * xdisp.c: Remove dead code.
17674 (handle_invisible_prop, next_overlay_string): Defer call to
17675 setup_for_ellipsis.
17676 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17677
176782008-08-15 Chong Yidong <cyd@stupidchicken.com>
17679
17680 * xfaces.c (lookup_derived_face): Properly handle possible zero
17681 return value of get_lface_attributes.
17682 (merge_faces): Don't tell lookup_derived_face to signal an error
17683 if face is not found.
17684
17685 * dired.c (Fdirectory_files): Doc fix.
17686
17687 * process.c (make_process): Initialize kill_without_query struct
17688 member.
17689
176902008-08-15 Eli Zaretskii <eliz@gnu.org>
17691
17692 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17693 Alternative calculation of totphys for Visual Studio 6.
17694
17695 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17696
17697 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17698 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17699 All users changed.
17700 (stat): Only root directory passed to GetDriveType. Allow RAM
17701 disk as well as local fixed disk when w32-get-true-file-attributes
17702 is set to `local'.
17703 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17704 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17705 (w32_cached_id, w32_add_to_cache): New functions.
17706 (get_name_and_id): Look account names in the cache before calling
17707 lookup_account_sid.
17708 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17709 New initialization flags.
17710 (globals_of_w32): Initialize them to zero.
17711 (w32_system_process_attributes): Use w32_cached_id and
17712 w32_add_to_cache.
17713
177142008-08-14 Lawrence Mitchell <wence@gmx.li>
17715
17716 * lread.c (Fread_char, Fread_char_exclusive): If no character
17717 event is read before timeout is reached, return nil, rather than
17718 converting to a number.
17719
177202008-08-14 Chong Yidong <cyd@stupidchicken.com>
17721
17722 * fns.c (use_dialog_box): Doc fix.
17723
17724 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17725 on OS X.
17726
177272008-08-13 Chong Yidong <cyd@stupidchicken.com>
17728
17729 * frame.c (Qns_parse_geometry): New var.
17730 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17731
177322008-08-11 Chong Yidong <cyd@stupidchicken.com>
17733
17734 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17735 space character in calculating tabs.
17736
177372008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17738
17739 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17740
177412008-08-10 Glenn Morris <rgm@gnu.org>
17742
17743 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17744 silence gcc "limited range of data type" warnings in some
17745 make_fixnum_or_float calls.
17746
177472008-08-09 Eli Zaretskii <eliz@gnu.org>
17748
17749 * w32.c (w32_system_process_attributes): If the process does not
17750 exist, return nil.
17751
17752 * w32.c: Include thelp32.h, psapi.h and coding.h.
17753 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17754 declarations.
17755 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17756 (Process32Next_Proc): New typedefs.
17757 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17758 (g_b_init_process32_next, g_b_init_open_thread_token)
17759 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17760 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17761 (g_b_init_get_process_working_set_size)
17762 (g_b_init_global_memory_status_ex): New static variables.
17763 (globals_of_w32): Initialize them.
17764 (create_toolhelp32_snapshot, process32_first, process32_next)
17765 (open_thread_token, impersonate_self, revert_to_self)
17766 (get_process_memory_info, get_process_working_set_size)
17767 (global_memory_status, global_memory_status_ex): New wrapper
17768 functions.
17769 (w32_list_system_processes, w32_system_process_attributes)
17770 (enable_privilege, restore_privilege, ltime, process_times):
17771 New functions.
17772 (convert_time_raw): New function.
17773 (convert_time): Remove conversion of FILETIME into time in 100
17774 nsec units, call convert_time_raw instead.
17775
17776 * process.h (w32_list_system_processes, w32_system_process_attributes):
17777 Add prototypes.
17778 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17779 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17780 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17781 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17782
17783 * process.c (Fsystem_process_attributes): Doc fix.
17784
177852008-08-08 Chong Yidong <cyd@stupidchicken.com>
17786
17787 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17788 a continued multi-char glyph; if so, advance to the actual glyph.
17789
177902008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17791
17792 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17793
17794 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17795 (.m.o): Use it.
17796 * config.in: Regenerate.
17797
177982008-08-07 Chong Yidong <cyd@stupidchicken.com>
17799
17800 * xdisp.c (redisplay_window): Revert last change.
17801 (try_window): Check bottom scroll margin too.
17802
178032008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17804
17805 * config.in: Regenerate.
17806
17807 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17808 -list-load-path-shadows'.
17809 (nsgui.h): Reduce number of things depending on it.
17810
178112008-08-06 Chong Yidong <cyd@stupidchicken.com>
17812
17813 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17814 instead of window-end which does the wrong thing at eob.
17815 (try_cursor_movement): Minor optimization.
17816 (redisplay_window): If scroll margin is defined, don't assume
17817 window doesn't need scrolling.
17818
178192008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17820
17821 * config.in: Regenerate.
17822
17823 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17824 (mostlyclean): Don't delete *.d under NS.
17825
17826 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17827
178282008-08-06 Kenichi Handa <handa@m17n.org>
17829
17830 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17831
178322008-08-06 Andreas Schwab <schwab@suse.de>
17833
17834 * config.in: Regenerate.
17835
178362008-08-05 Chong Yidong <cyd@stupidchicken.com>
17837
17838 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17839 forcing a window start.
17840
17841 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17842 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17843
178442008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17845
17846 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17847 argument.
17848
178492008-08-05 Juanma Barranquero <lekktu@gmail.com>
17850
17851 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17852 <scroll-down-aggressively, before-change-functions>:
17853 <after-change-functions>: Reflow docstrings.
17854
178552008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 17856 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
17857
17858 Dock menu customization, based on a patch by Ken Raeburn, plus some
17859 other fixes.
17860 * nsmenu.m (dockMenu): New variable.
17861 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17862
17863 * nsterm.h (dockMenu): Declare.
17864
17865 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17866 (ns_term_init): Initialize dockMenu.
17867 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17868 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17869 left.
17870
17871 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17872
178732008-08-04 Chong Yidong <cyd@stupidchicken.com>
17874
17875 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17876
17877 * config.in: Regenerate.
17878
178792008-08-04 Seiji Zenitani <zenitani@mac.com>
17880
17881 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17882
178832008-08-04 Chong Yidong <cyd@stupidchicken.com>
17884
17885 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17886
178872008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17888
17889 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17890
17891 * keyboard.h: Comment an #endif.
17892
17893 * lisp.h (have_menus_p): Adjust comment.
17894
17895 * menu.c (find_and_return_menu_selection): Fix comparison with
17896 client_data.
17897
17898 * nsmenu.m (popup_activated_flag): New variable.
17899 (popup_activated): New function.
17900 (menu-or-popup-active-p): New exported lisp definition.
17901 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17902 when popup done.
17903 (ns_popup_dialog): Set popup_activated_flag.
17904
17905 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17906 version for GNUstep (handled by conditional typedef in nsterm.m).
17907 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17908 in rgb.txt).
17909
17910 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17911
17912 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17913
17914 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17915
17916 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17917 shortcircuit if popup_activated like GTK and X toolkit.
17918
17919 * m/inter386.h: Change DARWIN to DARWIN_OS.
17920
17921 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17922 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
17923 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17924 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
17925
179262008-08-03 Chong Yidong <cyd@stupidchicken.com>
17927
17928 * nsterm.m (windowDidResize): Remove stopModal call.
17929
179302008-08-03 Andreas Schwab <schwab@suse.de>
17931
17932 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17933 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17934
179352008-08-02 Chong Yidong <cyd@stupidchicken.com>
17936
17937 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17938 Don't use uninitialized pointer variable when using getrlimit.
17939
179402008-08-02 Jason Rumney <jasonr@gnu.org>
17941
17942 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17943
179442008-08-02 Eli Zaretskii <eliz@gnu.org>
17945
17946 * alloc.c (NSTATICS): Bump to 0x640.
17947
17948 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17949
17950 * lisp.h: Add prototype for directory_files_internal.
17951
17952 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17953 New functions.
17954 (syms_of_process): Defsubr them. Add initializations for various
17955 Q* symbols used in procfs_system_process_attributes.
17956 (procfs_list_system_processes, procfs_system_process_attributes)
17957 [HAVE_PROCFS]: New functions.
17958 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17959 (procfs_get_total_memory): New functions.
17960
179612008-08-01 Juanma Barranquero <lekktu@gmail.com>
17962
17963 * xfaces.c (Fx_load_color_file): Fix previous change;
17964 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17965
179662008-08-01 Michael Albinus <michael.albinus@gmx.de>
17967
17968 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17969
179702008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17971
17972 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17973
179742008-08-01 Chong Yidong <cyd@stupidchicken.com>
17975
17976 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17977
17978 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17979 define NSApplicationDelegateReplySuccess.
17980 (EmacsView -converstationIdentifier): Use long instead of
17981 NSInteger for GNUstep, since it doesn't have NSInteger.
17982
17983 * xmenu.c: Revert last change.
17984
17985 * keyboard.h: Fix last change.
17986
179872008-08-01 Juanma Barranquero <lekktu@gmail.com>
17988
17989 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17990 on Windows.
17991
179922008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17993
17994 Warning clearing and clean-up in NS port.
17995 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17996 Add prototypes.
17997 * nsgui.h (FACE_DEFAULT): Remove, unused.
17998 (XGCValues): Change colors to unsigned long.
17999 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
18000 nsterm.m.
18001 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
18002 (ns_list_fonts): Remove, unused.
18003 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
18004 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
18005 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
18006 (nsfont_draw): Compare face colors to 0, not nil.
18007 * nsmenu.m (struct widget_value): Drop unneeded declaration.
18008 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
18009 (-addSubmenuWithTitle:): Use NSMenuItem class.
18010 (ns_popup_menu): Use NO, not NULL, for enabled setting.
18011 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
18012 (ns_clip_to_row): Make gc arg a BOOL.
18013 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
18014 ns_clip_to_row() call.
18015 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
18016 used). Cast FRAME_FONT assignments.
18017 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
18018 (ns_string_to_lispmod): Change arg to const char.
18019 (ns_term_init): Use NSMenuItem class.
18020 (EmacsApp -openFile:): Move to different section of file.
18021 (EmacsApp -application:openFiles:): Don't return a value, call
18022 -replyToOpenOrPrint:.
18023 (EmacsView -keyDown:): Fix up cast.
18024 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
18025 (EmacsView -menuDown:): Cast tag in call to
18026 find_and_call_menu_selection().
18027 (ns_list_fonts): Remove, unused.
18028 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
18029 (ns_fontname_to_xlfd): Make static.
18030 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
18031 Remove prototypes (now in keyboard.h).
18032 (next_menubar_widget_id): Remove, unused.
18033 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
18034 Remove prototypes (now in keyboard.h).
18035 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
18036
180372008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
18038
18039 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
18040 (floatfns.o): Depend on syssignal.h.
18041 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
18042
18043 * systty.h: Fix previous change that removed BSD_TERMIOS.
18044 Add comments to #ifdefs.
18045
180462008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
18047
18048 * w32fns.c (w32-load-color-file): Remove.
18049 (x-open-connection): Use renamed Fx_load_color_file.
18050 * xfaces.c (x-load-color-file): Add.
18051 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
18052 Emacs.clr.
18053 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
18054
180552008-07-31 Michael Albinus <michael.albinus@gmx.de>
18056
18057 * dbusbind.c (Fdbus_call_method_asynchronously)
18058 (Fdbus_method_error_internal): New defuns.
18059 (xd_read_message): Handle also reply messages.
18060 (Vdbus_registered_functions_table): Extend docstring.
18061
180622008-07-31 Juanma Barranquero <lekktu@gmail.com>
18063
18064 * keyboard.c (gobble_input): Fix previous change.
18065
180662008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18067
18068 * bitmaps/README:
18069 * xfns.c:
18070 * termcap.c:
18071 * term.c:
18072 * syswait.h:
18073 * systty.h:
18074 * systime.h:
18075 * syssignal.h:
18076 * sysdep.c:
18077 * process.h:
18078 * process.c:
18079 * print.c:
18080 * ndir.h:
18081 * lread.c:
18082 * keyboard.c:
18083 * getpagesize.h:
18084 * floatfns.c:
18085 * fileio.c:
18086 * emacs.c:
18087 * doc.c:
18088 * dispnew.c:
18089 * dired.c:
18090 * data.c:
18091 * callproc.c:
18092 * buffer.c:
18093 * README:
18094 * Makefile.in:
18095 * s/template.h:
18096 * s/msdos.h:
18097 * m/vax.h: Remove VMS support.
18098 * s/vms.h:
18099 * vlimit.h:
18100 * uaf.h:
18101 * temacs.opt:
18102 * param.h:
18103 * ioctl.h: Remove file.
18104
181052008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
18106
18107 * s/ms-w32.h (MULTI_KBOARD): Remove.
18108 * xterm.c:
18109 * xselect.c:
18110 * xfns.c:
18111 * window.c:
18112 * w32term.c:
18113 * w32fns.c:
18114 * terminal.c:
18115 * termhooks.h:
18116 * term.c:
18117 * sysdep.c:
18118 * keyboard.h:
18119 * keyboard.c:
18120 * frame.h:
18121 * frame.c:
18122 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
18123 * config.in: Regenerate.
18124
181252008-07-30 Jason Rumney <jasonr@gnu.org>
18126
18127 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
18128
18129 * w32font.c (w32font_encode_char): Leave as unicode if in range.
18130 (w32font_open_internal): Get unicode version of textmetrics.
18131 Don't enable or disable glyph indices here.
18132 (w32font_open): Disable use of glyph indices.
18133
18134 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
18135
181362008-07-30 Chong Yidong <cyd@stupidchicken.com>
18137
18138 * minibuf.c (Vread_buffer_function): Doc fix.
18139
181402008-07-30 John Paul Wallington <jpw@pobox.com>
18141
18142 * minibuf.c (read_buffer_completion_ignore_case): New var.
18143 (Fread_buffer): Use it.
18144
181452008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
18146
18147 * systty.h (sensemode): Remove empty #if. Remove reference to
18148 BSD_TERMIOS, unused.
18149
18150 * sysdep.c: Remove reference to DGUX.
18151 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
18152
18153 * config.in: Regenerate.
18154
181552008-07-30 Jason Rumney <jasonr@gnu.org>
18156
18157 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
18158
181592008-07-29 Jason Rumney <jasonr@gnu.org>
18160
18161 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
18162 is populated.
18163 (uniscribe_encode_char): Always use uniscribe.
18164 Avoid using context if cache is populated.
18165
181662008-07-29 Jan Djärv <jan.h.d@swipnet.se>
18167
18168 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
18169 open menu.
18170
18171 * gtkutil.c (menu_nav_ended): Remove.
18172 (create_menus): Remove signal connect for menu_nav_ended.
18173
181742008-07-28 Chong Yidong <cyd@stupidchicken.com>
18175
18176 * xdisp.c (redisplay_window): Check return value of
18177 compute_window_start_on_continuation_line before forcing a window
18178 start.
18179
181802008-07-28 Jason Rumney <jasonr@gnu.org>
18181
18182 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
18183
18184 * w32term.c (w32_enable_unicode_output, cleartype_active):
18185 Remove obsolete display options.
18186 (x_draw_glyph_string_background): Don't use old cleartype_active
18187 workaround.
18188 (w32_initialize): Remove cleartype_active initialization.
18189 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
18190
181912008-07-28 Andreas Schwab <schwab@suse.de>
18192
18193 * lisp.h (init_weak_hash_tables, syms_of_font)
18194 (xd_read_queued_messages, syms_of_dbusbind): Declare.
18195 (remove_hash_entry): Don't declare.
18196 * eval.c (maybe_call_debugger): Make static and move before use.
18197 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
18198 * xdisp.c: Include "gtkutil.h" if USE_GTK.
18199 * xterm.h (x_set_frame_alpha): Declare.
18200
182012008-07-28 Jan Djärv <jan.h.d@swipnet.se>
18202
18203 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
18204 (create_menus): Connect selection-done to menu_nav_ended.
18205
182062008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18207
18208 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
18209 Set Vx_resource_name to a fallback. Replace read of 'buffered'
18210 parameter with read of 'alpha' one.
18211 (Qns_frame_parameter): Remove.
5582fbc7 18212 * nsselect.m (selection-coding-system)
aac0c6e3
MR
18213 (next-selection-coding-system, Vselection_coding_system)
18214 (Vnext_selection_coding_system): Drop.
18215
182162008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18217
18218 * nsfns.m (do-applescript, do_applescript): Rename to
18219 ns-do-applescript, ns_do_applescript, and move within file.
18220
182212008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18222
18223 Remove support for Mac Carbon.
18224 * mactoolbox.c:
18225 * macterm.h:
18226 * macterm.c:
18227 * macselect.c:
18228 * macmenu.c:
18229 * macgui.h:
18230 * macfns.c:
18231 * mac.c: Remove file.
18232 * s/darwin.h:
18233 * m/intel386.h:
18234 * xfaces.c:
18235 * xdisp.c:
18236 * window.c:
18237 * tparam.c:
18238 * termhooks.h:
18239 * termcap.c:
18240 * term.c:
18241 * syssignal.h:
18242 * sysselect.h:
18243 * sysdep.c:
18244 * process.c:
18245 * lread.c:
18246 * lisp.h:
18247 * keyboard.c:
18248 * image.c:
18249 * fringe.c:
18250 * frame.h:
18251 * frame.c:
18252 * fontset.c:
18253 * font.h:
18254 * font.c:
18255 * fns.c:
18256 * fileio.c:
18257 * emacs.c:
18258 * dispnew.c:
18259 * dispextern.h:
18260 * config.in:
18261 * atimer.c:
2ae37cf0 18262 * Makefile.in: Remove code for Carbon.
aac0c6e3 18263
f0131492 182642008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
18265
18266 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18267
182682008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18269
18270 * macterm.h (kCGBitmapByteOrder32Host): New define for
18271 non-universal SDKs.
18272
18273 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18274 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18275
18276 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18277 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18278
182792008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18280
18281 * w32inevt.c: Include dispextern.h.
18282
182832008-07-26 Andreas Schwab <schwab@suse.de>
18284
18285 * print.c (print_object): Fix off-by-one in last change.
18286
182872008-07-25 Juanma Barranquero <lekktu@gmail.com>
18288
18289 * term.c (syms_of_term): Don't initialize default_orig_pair,
18290 default_set_foreground and default_set_background on Windows.
18291
182922008-07-25 Jason Rumney <jasonr@gnu.org>
18293
18294 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18295 ScriptItemize. Clean up return value checking. Remove unused
18296 variables.
18297 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18298 shaping engine.
18299
18300 * w32font.c (w32font_has_char): Handle the case where we can't
18301 determine the script for a character.
18302
183032008-07-25 Chong Yidong <cyd@stupidchicken.com>
18304
18305 * term.c (syms_of_term): Initialize default_orig_pair,
18306 default_set_foreground, and default_set_background.
18307
18308 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18309 clash (bug#86).
18310 (getloadavg): Callers changed.
18311
18312 * image.c (svg_load_image): Fix last change.
18313 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18314 image size is valid. Use g_object_unref instead of deprecated
18315 rsvg_handle_free to free rsvg handle.
18316 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18317
183182008-07-25 Jason Rumney <jasonr@gnu.org>
18319
18320 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18321 surrogates before looking up glyph index.
18322 (w32font_text_extents): Encode as surrogates if falling back to
18323 functions that need UTF-16 wide chars.
18324
18325 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18326 BMP as surrogates before looking up glyph index.
18327
183282008-07-25 Chong Yidong <cyd@stupidchicken.com>
18329
18330 * image.c (svg_load_image): Check for failure in return value of
18331 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18332
183332008-07-25 Jason Rumney <jasonr@gnu.org>
18334
18335 * w32font.c (Fx_select_font): Reverse sense of second arg.
18336
183372008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18338
18339 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18340 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18341
18342 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18343 (PURESIZE): Use it.
18344
183452008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18346
18347 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18348 * m/alpha.h (TEXT_END):
18349 * m/ibmrs6000.h (TEXT_END):
18350 * m/macppc.h (TEXT_END):
18351 * s/darwin.h (TEXT_END):
18352 * s/msdos.h (TEXT_END): Remove, unused.
18353 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18354 * s/cygwin.h: Remove comment.
18355
18356 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18357 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18358 * m/intel386.h (DOT_GLOBAL_START):
18359 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18360 (USG): Remove, file not used on USG platforms.
18361
18362 * Makefile.in (HAVE_X11): Remove empty #else.
18363
183642008-07-24 Andreas Schwab <schwab@suse.de>
18365
18366 * fileio.c (Finsert_file_contents): Properly adjust undo list
18367 after format conversion.
18368
183692008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18370
18371 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18372 (menu_nav_ended): Remove.
18373 (create_menus): Remove signal connect for menu_nav_ended.
18374 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18375 create_menus.
18376 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18377
183782008-07-23 Jason Rumney <jasonr@gnu.org>
18379
18380 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18381 with opened font.
18382 (w32font_open): Set font type to gdi.
18383
18384 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18385
183862008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18387
18388 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18389 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18390 defines it.
18391 * unexec.c (ADDR_CORRECT): Define unconditionally.
18392
18393 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18394
18395 * unexec.c: Remove code depending on !COFF and USG, the file is
18396 not used for such systems.
18397
18398 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18399 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18400 (LD_SWITCH_SYSTEM_1): Remove, update users.
18401
18402 * s/darwin.h (DATA_END):
18403 * m/intel386.h (DATA_END):
18404 * m/ibmrs6000.h (DATA_END):
18405 * m/alpha.h (DATA_END): Remove, unused.
18406
18407 * config.in: Regenerate.
18408 * s/ms-w32.h (subprocesses): Define unconditionally.
18409 * s/template.h (subprocesses): Update comment.
18410 * s/vms.h (subprocesses):
18411 * s/usg5-4.h (subprocesses):
18412 * s/hpux10-20.h (subprocesses):
18413 * s/gnu-linux.h (subprocesses):
18414 * s/cygwin.h (subprocesses):
18415 * s/bsd-common.h (subprocesses):
18416 * s/aix4-2.h (subprocesses):
18417 * s/darwin.h (subprocesses): Do not define, defined by default now.
18418
18419 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18420 Remove all references.
18421 (temacs): Add GNUstep specific ld flags.
18422
18423 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18424 similarly to what X does.
18425
184262008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18427
18428 * nsfns.m (x-list-fonts): Remove.
18429 (syms_of_nsfns): Drop the x-list-fonts declaration.
18430 * nsterm.m: Get rid of remaining "//" comments.
18431
184322008-07-22 Chong Yidong <cyd@stupidchicken.com>
18433
18434 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18435
18436 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18437 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18438 (Fns_own_selection_internal, Fx_disown_selection_internal)
18439 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18440
18441 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18442 ... */' style of docstrings. Doc fixes.
18443
184442008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18445
18446 * terminfo.c (UP, BC, PC): Undo previous change.
18447
18448 * nsfns.m: Rename ns prefixed functions/variables to the
18449 corresponding x versions. Update references.
18450
184512008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18452
18453 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18454
184552008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18456
18457 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18458 Remove forwarding functions.
18459 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18460 non-static.
18461 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18462 non-static.
18463 (ns_frame_parm_handlers): Use the new names.
18464 (syms_of_nsfns): Move to the end of file.
18465
18466 * nsterm.m (syms_of_nsterm): Move to the end of file.
18467
18468 * dispnew.c (init_display): Remove code for X10.
18469
184702008-07-22 Jason Rumney <jasonr@gnu.org>
18471
18472 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18473 bare drive.
18474
184752008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18476
18477 * nsterm.m (syms_of_nsterm): Remove debugging println.
18478
184792008-07-22 David Reitter <david.reitter@gmail.com>
18480
18481 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18482 Carbon implementation of the same functionality: execute arbitrary
18483 AppleScript code.
18484
184852008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18486
18487 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18488 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18489 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18490 (Fx_display_mm_height, Fx_display_mm_width)
18491 (Fx_display_backing_store, Fx_display_visual_class)
18492 (Fx_display_save_under, Fx_open_connection)
18493 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18494 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18495 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18496 (Fx_display_pixel_width, Fx_display_pixel_height)
18497 (Fx_display_usable_bounds, Fx_display_planes)
18498 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18499 ... */' style of docstrings.
18500
185012008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18502
18503 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18504 on this platform.
18505 (mips):
18506 * m/iris4d.h (mips): Do not define.
18507 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18508
18509 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18510
18511 * image.c:
18512 * nsfns.m:
18513 * nsselect.m:
18514 * nsterm.h:
18515 * nsterm.m: Rename ns prefixed functions/variables to the
18516 corresponding x versions. Update references.
18517
18518 * m/ibms390x.h (NO_REMAP): Do not undefine.
18519
18520 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18521
185222008-07-21 Chong Yidong <cyd@stupidchicken.com>
18523
18524 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18525 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18526 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18527 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18528 (Fns_display_mm_height, Fns_display_mm_width)
18529 (Fns_display_backing_store, Fns_display_visual_class)
18530 (Fns_display_save_under, Fns_open_connection)
18531 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18532 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18533 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18534 (Fns_display_pixel_width, Fns_display_pixel_height)
18535 (Fns_display_usable_bounds, Fx_display_planes)
18536 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18537
185382008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18539
18540 * print.c (print_object): Check print_depth before searching for
18541 circularities.
18542
185432008-07-21 Michael Albinus <michael.albinus@gmx.de>
18544
18545 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18546 only sprintf.
18547
185482008-07-21 Kenichi Handa <handa@m17n.org>
18549
18550 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18551
185522008-07-20 Andreas Schwab <schwab@suse.de>
18553
18554 * syntax.c (find_start_pos, find_start_value)
18555 (find_start_value_byte, find_start_begv, find_defun_start)
18556 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18557
185582008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18559
18560 * s/sol2-3.h: Insert contents of s/sol2.h.
18561 (LD_SWITCH_SYSTEM): Remove redundant definition.
18562 * s/sol2.h: Remove, unused.
18563
185642008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18565
18566 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18567
185682008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18569
18570 * Makefile.in (ns_appdir): Fix typo in find command.
18571
185722008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18573
18574 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18575
18576 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18577 added not supported anymore.
18578
18579 * s/usg5-4-2.h (LIBS_SYSTEM):
18580 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18581
18582 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18583 * s/lynxos.h (GETPGRP_NO_ARG):
18584 * s/hpux10-20.h (NO_SIOCTL_H):
18585 * s/gnu.h (GETPGRP_NO_ARG):
18586 * s/gnu-linux.h (NO_SIOCTL_H):
18587 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18588 * s/cygwin.h (GETPGRP_NO_ARG):
18589 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18590 (C_DEBUG_SWITCH): Remove duplicate definition.
18591
18592 * m/ibms390.h: Remove boilerplate comments.
18593
18594 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18595
18596 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18597 (wait_reading_process_output): Remove code for SunOS, platform not
18598 supported anymore. Use SOLARIS2 instead of sun.
18599
186002008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18601
18602 * font.c (font_open_by_name): Under NS, default lface height to zero.
18603 (font_open_for_lface): Under NS, set size based on frame fontsize.
18604 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18605 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18606
186072008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18608
18609 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18610 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18611 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18612 YES/NO.
18613 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18614 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18615 * Makefile.in (clean): Clear out build destination dir.
18616
186172008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18618
18619 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18620 xterm, xselect.
18621 * lisp.h: Remove declaration of hash_remove.
18622 * nsgui.h: Remove redefinitions of hash_remove.
18623 * fns.c (hash_remove): Rename to hash_remove_from_table.
18624
186252008-07-19 Seiji Zenitani <zenitani@mac.com>
18626
18627 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18628 strdup() the family UTF8String before modifying it.
18629
186302008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18631
18632 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18633 NS_FACE_BACKGROUND with 0 instead of nil.
18634 * nsfont.m (nsfont_draw): Same.
18635
186362008-07-19 Chong Yidong <cyd@stupidchicken.com>
18637
18638 * nsfns.m (ns_set_background_color): Fix crash.
18639
186402008-07-18 Chong Yidong <cyd@stupidchicken.com>
18641
18642 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18643
186442008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18645
18646 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18647
186482008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18649
18650 * gtkutil.c: Include <config.h> instead of "config.h".
18651
18652 * lisp.h (Foverlay_buffer): Add EXFUN.
18653
18654 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18655 child process to complete child_setup. Undo 2005-09-21 change.
18656
18657 * s/darwin.h: Mention setsid after vfork.
18658
186592008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18660
18661 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18662 Depend on macgui.h.
18663
18664 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18665 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18666
18667 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18668 and f19.
18669 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18670
18671 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18672 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18673 Remove enumerators.
18674
18675 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18676 Check if FACE_FROM_ID returns NULL.
18677
186782008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18679
18680 * w32inevt.c (change_frame_size): Remove extern declaration.
18681 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18682 change_frame_size.
18683
186842008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18685
18686 * getloadavg.c: Revert last change (2008-07-15).
18687
186882008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18689
18690 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 18691 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
18692 from configure.
18693
186942008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18695
18696 * s/sol2.h:
18697 * s/sol2-4.h: Reorganize conditionals.
18698
18699 * ecrt0.c: Remove code depending on m68000, not used anymore.
18700
18701 * fns.c (hash_remove): Make static.
18702 * lisp.h (hash_remove): Don't prototype.
18703
18704 * m/ibmrs6000.h:
18705 * m/ibms390x.h:
18706 * m/macppc.h: Remove boilerplate comments.
18707
18708 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18709 Solaris, which does not need them.
18710
18711 * m/vax.h: Remove comments about unsupported systems.
18712
18713 * s/darwin.h: Reorganize ifdefs.
18714
187152008-07-17 Andreas Schwab <schwab@suse.de>
18716
18717 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18718
187192008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18720
18721 Use SDATA. Follow coding convention of placing operators at
18722 beginning of next line rather than end of previous line, and placing
18723 spaces around infix operators.
18724
18725 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18726 in case it was defined already.
18727 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18728 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18729 ns_default.
18730 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18731 Lisp_Objects.
18732 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18733 (ns_defined_color, ns_color_to_lisp): Declare.
18734 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18735 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18736 it's accepted even with USE_LISP_UNION_TYPE.
18737 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18738 (update_frame_tool_bar): Remove apparently obsolete tests for
18739 non-integerness of f->tool_bar_lines.
18740 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18741 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18742 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18743 (nsfont_open): Don't confuse NULL for Qnil.
18744 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18745 * menu.h (find_and_call_menu_selection):
18746 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18747 (find_and_return_menu_selection): Always return something.
18748 * frame.h: Include dispextern.h for Display_Info.
18749 (display_x_get_resource): Declare.
18750
187512008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18752
18753 * syntax.c: Remove stdio.h include accidentally introduced in
18754 Emacs.app commit.
18755 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18756 NS_IMPL_COCOA.
18757 * keyboard.c (handle_async_input, input_available_signal): Remove
18758 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18759
187602008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18761
18762 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18763 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18764 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18765 Use SDATA.
18766
18767 * keymap.c: Remove all NS-specific code.
18768 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18769 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18770 where_is_preferred_modifier, return a different value depending on how
18771 preferred is the binding.
18772 (where_is_internal): Adjust accordingly.
18773 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18774 Adjust to new preferred_sequence_p.
18775 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18776 * keyboard.c (parse_solitary_modifier): Not static any more.
18777 * keyboard.h (parse_solitary_modifier): Declare.
18778
187792008-07-16 Andreas Schwab <schwab@suse.de>
18780
18781 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18782 of easymenu.
18783
187842008-07-16 Chong Yidong <cyd@stupidchicken.com>
18785
18786 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18787 that we don't move off the line.
18788
187892008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18790
18791 * keyboard.c (Qsuper): Remove.
18792 (parse_menu_item): Don't call where_is_internal specially for NS.
18793
187942008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18795
18796 * s/gnu-linux.h: Remove boilerplate comments.
18797
18798 * m/alpha.h (__ELF__): Consolidate conditions.
18799
18800 * m/m68k.h (linux): Use GNU_LINUX instead.
18801 Remove boilerplate comments.
18802
18803 * m/intel386.h: Undo refactoring from previous change.
18804 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18805 too, remove dead code.
18806 (linux): Use GNU_LINUX instead.
18807
188082008-07-16 Jason Rumney <jasonr@gnu.org>
18809
18810 * w32gui.h: Repeat 26 June changes lost by last change.
18811
188122008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18813
18814 * systty.h: Remove code for Aix on 386, unsupported platform.
18815
18816 * s/ms-w32.h: Remove boilerplate comments.
18817 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18818
18819 * s/gnu-linux.h (TERM): Remove support.
18820 (HAVE_SYSVIPC): Remove, unused.
18821 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18822 for this system.
18823
18824 * process.c: Remove support for IRIS, unused.
18825 Remove support for TERM, not relevant anymore.
18826
18827 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18828 used with the definition.
18829
18830 * s/aix4-2.h (static): Do not undef.
18831
18832 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18833 only used on Aix.
18834 (HAVE_SYSVIPC): Remove, unused.
18835
18836 * m/hp800.h (CANNOT_DUMP): Do not undef.
18837
18838 * m/alpha.h: Fix comment.
18839
18840 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18841 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18842 used by this configuration.
18843 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18844 * unexec.c: Remove code depending on HPUX and
18845 USG_SHARED_LIBRARIES, not used with this file. Remove code
18846 depending on IRIS, unused. Remove if 0-ed code.
18847
18848 * s/template.h: Remove comments about static.
18849
18850 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18851 Remove if 0-ed code.
18852 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18853 were the same as the default.
18854 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18855 Remove boilerplate comments.
18856 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18857 (HAVE_SYSVIPC): Remove, unused.
18858 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18859
18860 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18861 Remove boilerplate comments.
18862 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18863 Remove boilerplate comments.
18864 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18865 Remove boilerplate comments.
18866 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18867
18868 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18869 USG systems which do not use DATA_SEG_BITS.
18870 Refactor code. Remove boilerplate comments.
18871
18872 * m/ibms390.h:
18873 * m/m68k.h:
18874 * s/bsd-common.h:
18875 * s/cygwin.h:
18876 * s/darwin.h:
18877 * s/freebsd.h:
18878 * s/gnu.h:
18879 * s/msdos.h: Remove boilerplate comments.
18880
18881 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 18882 do not use this file.
aac0c6e3
MR
18883 (IRIS_4D): Remove, unused.
18884
18885 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 18886 do not use this file.
aac0c6e3
MR
18887 (SIGN_EXTEND_CHAR):
18888 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18889 * unexmips.c: Remove file, unused.
18890
18891 * editfns.c (Fuser_full_name): Replace the only use of
18892 USER_FULL_NAME with its value.
18893 * config.in: Regenerate.
18894
188952008-07-16 David Reitter <david.reitter@gmail.com>
18896
18897 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18898 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18899
189002008-07-16 Glenn Morris <rgm@gnu.org>
18901
18902 * emacs.c (system-type): Doc fix.
18903
189042008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18905
18906 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18907 If the cache doesn't work, let's fix it, rather than work around it.
18908
189092008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18910
18911 * Makefile.in: Correct additions for nsfont.o in last commit.
18912 * nsfont.m: New file (forgot last commit).
18913
189142008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18915
bba3e508
SM
18916 * callproc.c (set_initial_environment):
18917 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
18918 batch-compiling for bootstrap).
18919
189202008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 18921 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 18922
c4cc8b9a
JB
18923 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18924 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
18925
189262008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18927
18928 Changes and additions for NeXTstep windowing system (Cocoa and
18929 GNUstep) support.
18930
18931 * Makefile.in:
18932 * config.in: Support defines and build commands for NS port.
18933 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18934 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18935 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18936 windowing.
18937 (struct face): Add synth_ital field.
18938 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18939 (init_display): Initialize Vinitial_window_system to "ns" when so
18940 compiled.
18941 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18942 (display_arg): Use under NS.
18943 (main): Under NS, allocate autorelease pool and handle command line
18944 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18945 (standard_args): Add NS-specific args.
18946 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18947 * font.c (DEFAULT_ENCODING): New variable.
18948 (font_find_for_lface): Use it.
18949 (syms_of_font): Load syms_of_nsfont under NS.
18950 * font.h: Declare nsfont_driver when compiled under NS.
18951 * fontset.c: When compiling under NS, include nsterm.h.
18952 (fontset_from_font): Autoconstruct fontset under NS.
18953 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18954 symbol, document and use it.
18955 (do_switch_frame): When for_deletion under Cocoa, add
18956 Fraise_frame(Qnil).
18957 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18958 (x_get_arg): Allow "yes" and "no" as boolean values.
18959 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18960 Qright under Cocoa.
18961 (focus-follows-mouse): Default to 0 under NS.
18962 * frame.h (enum output_method): Add output_ns.
18963 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18964 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18965 (FRAME_WINDOW_P): NS-specific definition.
18966 * fringe.c (max_used_fringe_bitmap): Make public.
18967 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18968 (getloadavg): Use NeXT code under descendant OS's.
18969 * image.c (includes and header section, x_create_bitmap_from_data)
18970 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18971 (image_background_transparent, x_clear_image_1)
18972 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18973 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18974 (x_to_xcolors, x_from_xcolors, x_disable_image)
18975 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18976 other GUIs, including XPM support using code originally written for
18977 Carbon GUI.
18978 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18979 using NS API.
18980 (image_ascent): Use font metrics macros instead of direct struct field
18981 access.
18982 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18983 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18984 Also, handle NS as GTK for menu bar purposes.
18985 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18986 toolkit where they differ.
18987 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18988 use cachelist, still needed under NS.
18989 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18990 (struct widget_value): Define it here for menu.c.
18991 * keymap.c (includes): Include modifier internals.
18992 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18993 NS.
18994 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18995 support for preferring sequences using certain modifiers, specified by
18996 the FIRSTONLY argument.
18997 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18998 under NS GNUstep implementation.
18999 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
19000 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
19001 * menu.c: Include nsterm.h under NS.
19002 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
19003 (free_menubar_widget_tree_value, update_submenu_strings)
19004 (find_and_call_menu_selection): Treat NS as X and NT.
19005 (find_and_return_menu_selection): New function, used for popup menus.
19006 * nsgui.h:
19007 * nsterm.h:
19008 * nsfns.m:
19009 * nsimage.m:
19010 * nsmenu.m:
19011 * nsselect.m:
19012 * nsterm.m: New files.
19013 * process.c (wait_reading_process_output): Under NS, call ns_select()
19014 instead of plain select().
19015 * syntax.c (char_quoted): Under NS, avoid a crash when called near
19016 beginning of buffer.
19017 * sysselect.h (init_process): Rename when compiling under Cocoa to
19018 avoid name conflict.
19019 * termhooks.h (display_info): Add ns_display_info to union.
19020 * terminal.c (Fterminal_live_p): Add ns to terminal types.
19021 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
19022 COCOA environment.
19023 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
19024 unexec() signature. (Note, this will dump, but the resulting file
19025 crashes; unexosx is used instead; keeping around for reference and
19026 possible aid in getting dump working under GNUstep.)
19027 * w32gui.h (button_type, widget_value): Remove definitions (now in
19028 keyboard.h).
19029 * window.c: Include nsterm.h when compiling under NS.
19030 * xdisp.c (includes): Include nsterm.h when compiling under NS.
19031 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
19032 other GUI windowing systems.
19033 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
19034 GTK.
19035 (x_consider_frame_title): Under NS, set icon type and frame
19036 modified-state indicator; use ns_set_name_as_filename() when using
19037 formatted title.
19038 (update_window_cursor): Make public when compiling under NS.
19039 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
19040 (hourglass_atimer, Vhourglass_delay
19041 * xfaces.c (header section, init_frame_faces, clear_font_table)
19042 (defined_color, unload_color, x_face_list_fonts)
19043 (prepare_face_for_display): Add NS support parallel to other GUIs.
19044 Emulate GCs like other non-X GUIs.
19045 (split_font_name): Don't lowercase font name under NS.
19046 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
19047 under NS.
19048 * s/darwin.h: Add support for compilation under NS.
19049
190502008-07-15 Jason Rumney <jasonr@gnu.org>
19051
19052 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
19053 (w32_show_hourglass): Rename from show_hourglass.
19054 (w32_hide_hourglass): Rename from hide_hourglass.
19055 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
19056 (Vhourglass_delay): Declare extern.
19057 (hourglass_started): Remove.
19058
19059 * xdisp.c (Vhourglass_delay): Remove static.
19060 (hourglass_started, start_hourglass, cancel_hourglass):
19061 Don't include these versions on WINDOWSNT.
19062
190632008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
19064
19065 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
19066 variables (formerly in xfns.c).
19067 (show_hourglass, hide_hourglass): New prototypes (same).
19068 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
19069 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
19070 in xfns.c).
19071 (syms_of_xdisp): Declare/initialize display-hourglass,
19072 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
19073 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
19074 formerly in xfns.c.
19075 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19076 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19077 (start_hourglass, cancel_hourglass): Remove.
19078 (show_hourglass, hide_hourglass): Remove prototypes and static
19079 modifiers.
19080 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
19081 hourglass_atimer, hourglass_shown_p declaration/initialization.
19082 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
19083 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
19084 (start_hourglass, cancel_hourglass): Remove.
19085 (show_hourglass, hide_hourglass): Remove prototypes and static
19086 modifiers.
19087 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
19088 hourglass_atimer, hourglass_shown_p declaration/initialization.
19089 * w32fns.c (display_hourglass_p, Vhourglass_delay)
19090 (DEFAULT_HOURGLASS_DELAY): Remove.
19091 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
19092 hourglass_shown_p declaration/initialization.
19093
190942008-07-14 Jason Rumney <jasonr@gnu.org>
19095
19096 * w32fns.c (w32_get_arg): Remove wrapper function.
19097 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
19098 directly.
19099 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
19100
191012008-07-14 Kenichi Handa <handa@m17n.org>
19102
19103 * xfont.c (xfont_open): Add workaround for X's bug.
19104
191052008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19106
19107 * fontset.c: Include <stdio.h> unconditionally.
19108
191092008-07-13 Michael Albinus <michael.albinus@gmx.de>
19110
19111 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
19112 for filtering.
19113
191142008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
19115
19116 * s/vms.h: Use __GNUC__ instead of _GNUC_.
19117
19118 * m/macppc.h:
19119 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
19120
c4cc8b9a 19121 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
19122 (SPECIAL_EMACS_INT):
19123 * m/ia64.h (SPECIAL_EMACS_INT):
19124 * m/amdx86-64.h (SPECIAL_EMACS_INT):
19125 * s/gnu.h (NLIST_STRUCT):
19126 * s/aix4-2.h (X11R5_INHIBIT_I18N):
19127 * s/gnu-linux.h (LINUX):
19128 * s/msdos.h (HAVE_FACES):
19129 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
19130
19131 * systty.h:
19132 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
19133 anymore.
19134
191352008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
19136
19137 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
19138 always defined as int.
19139
19140 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
19141 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
19142 * s/gnu-linux.h (HAVE_WAIT_HEADER):
19143 * s/freebsd.h (HAVE_WAIT_HEADER):
19144 * s/bsd-common.h (HAVE_UNION_WAIT):
19145 * s/aix4-2.h (HAVE_WAIT_HEADER):
19146 * m/mips.h (HAVE_UNION_WAIT):
19147 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
19148 (COFF, static): Do not define, they are undefined later in the file.
19149
19150 * process.c (update_status): Don't use a union.
19151 (status_convert):
19152 (sigchld_handler): Use int instead of WAITTYPE.
19153
191542008-07-12 Chong Yidong <cyd@stupidchicken.com>
19155
19156 * indent.c (Fvertical_motion): Restore hscroll before moving to
19157 goal column.
19158
191592008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19160
19161 * lisp.h: Remove left over code.
19162
191632008-07-11 Andreas Schwab <schwab@suse.de>
19164
19165 * lisp.h: Fix logic in last change.
19166
19167 * menu.h: New file.
19168 * menu.c: Include it.
19169 * xmenu.c: Likewise.
19170 * Makefile.in: Update dependencies.
19171
191722008-07-11 Kenichi Handa <handa@m17n.org>
19173
19174 * fontset.c (fontset_from_font): Cancel the previous change.
19175
191762008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
19177
19178 * lisp.h:
19179 * w32heap.c:
19180 * emacs.c:
19181 * alloc.c: Replace all references of NO_UNION_TYPE with
19182 USE_LISP_UNION_TYPE.
19183
19184 * m/xtensa.h (NO_UNION_TYPE):
19185 * m/vax.h (NO_UNION_TYPE):
19186 * m/template.h (NO_UNION_TYPE):
19187 * m/sparc.h (NO_UNION_TYPE):
19188 * m/mips.h (NO_UNION_TYPE):
19189 * m/macppc.h (NO_UNION_TYPE):
19190 * m/m68k.h (NO_UNION_TYPE):
19191 * m/iris4d.h (NO_UNION_TYPE):
19192 * m/intel386.h (NO_UNION_TYPE):
19193 * m/ibms390x.h (NO_UNION_TYPE):
19194 * m/ibms390.h (NO_UNION_TYPE):
19195 * m/ibmrs6000.h (NO_UNION_TYPE):
19196 * m/ia64.h (NO_UNION_TYPE):
19197 * m/hp800.h (NO_UNION_TYPE):
19198 * m/arm.h (NO_UNION_TYPE):
19199 * m/amdx86-64.h (NO_UNION_TYPE):
19200 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
19201 defining it the same.
19202
192032008-07-10 Chong Yidong <cyd@stupidchicken.com>
19204
19205 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
19206
192072008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19208
19209 * fileio.c:
50426a04 19210 * sysdep.c:
aac0c6e3
MR
19211 * systty.h:
19212 * m/ibmrs6000.h:
19213 * m/iris4d.h:
19214 * s/aix4-2.h:
19215 * s/freebsd.h:
19216 * s/gnu-linux.h:
19217 * s/hpux10-20.h:
19218 * s/hpux11.h:
19219 * s/netbsd.h:
19220 * s/sol2-3.h:
19221 * s/sol2-4.h:
19222 * s/sol2.h:
19223 * s/usg5-4.h:
19224 * s/vms.h: Remove references to unused variables.
19225
192262008-07-10 Andreas Schwab <schwab@suse.de>
19227
19228 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19229 pattern before matching the generic family.
19230
192312008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19232
19233 * unexec.c:
19234 * s/vms.h:
19235 * s/usg5-4-2.h:
19236 * s/sol2-5.h:
19237 * s/freebsd.h:
19238 * s/darwin.h: Remove dead code.
19239
19240 * m/template.h:
19241 * m/sparc.h:
19242 * m/mips.h:
19243 * m/m68k.h:
19244 * m/iris4d.h:
19245 * m/intel386.h:
19246 * m/ibms390x.h:
19247 * m/ibms390.h:
19248 * m/ia64.h:
19249 * m/hp800.h:
19250 * m/arm.h:
19251 * m/amdx86-64.h: Remove dead code and references to unused
19252 and compiler defined symbols.
19253
19254 * unexmips.c:
19255 * unexelf.c: Remove references to desupported systems.
19256
19257 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19258
19259 * m/powermac.h: Remove boilerplate comments.
19260 (NO_REMAP): Remove unused definition.
19261
19262 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19263 define them.
19264
192652008-07-10 Kenichi Handa <handa@m17n.org>
19266
19267 * xfont.c (xfont_open): Log the reason of failure.
19268
192692008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19270
19271 * fontset.c (fontset_get_font_group):
19272 * font.c (font_check_otf): Specify argument types.
19273
192742008-07-09 Kenichi Handa <handa@m17n.org>
19275
19276 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19277 non-ASCII char is found.
19278
19279 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19280 (reorder_font_vector): Change the arg preferred_family to font.
19281 Prefer the spec matching with font.
19282 (fontset_get_font_group): New function.
19283 (fontset_find_font): Change the format of an element of a realized
19284 fontset. Use fontset_get_font_group.
19285 (fontset_font): Try the current fontset, the default fontset, the
19286 fallbacks of the current fontset, and the fallbacks of the default
19287 fontset in this order.
19288 (face_for_char): Delete the shortcut to use the current font.
19289 (fontset_from_font): Don't set fonts for Latin in the fontset.
19290
19291 * font.h (font_make_object, font_match_p): Adjust prototypes.
19292
19293 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19294
19295 * font.c (font_make_object): New arg entity and pixelsize.
19296 (font_check_otf_features, font_check_otf): New functions.
19297 (font_match_p): Check :lang, :script, and :otf properties.
19298
19299 * xfont.c (xfont_open): Adjust it for the change of
19300 font_make_object.
19301 (xfont_text_extents): Fix initial setting of metrics.
19302
19303 * ftfont.c (struct ftfont_info): New member index, delete member
19304 fc_charset_idx. Make the member order compatible with struct
19305 xftfont_info.
19306 (fc_charset_table): Change charset names to registry names.
19307 (ftfont_pattern_entity): Delete the args registry and
19308 fc_charset_idx. Change the value of :font-entity property
19309 to (FONTNAME . INDEX). Always set :registry property to
19310 `iso10646-1'.
19311 (struct ftfont_cache_data): New struct.
19312 (ftfont_lookup_cache): New arg for_face.
19313 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19314 (ftfont_driver): Set the member otf_capability.
19315 (ftfont_get_charset): Adjust it for the change of
19316 fc_charset_table.
19317 (OTF_TAG_SYM): New macro.
19318 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19319 for the change of fc_charset_table.
19320 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19321 ftfont_pattern_entity. Add FC_INDEX to objset.
19322 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19323 and ftfont_pattern_entity.
19324 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19325 font_make_object, struct ftfont_info.
19326 (ftfont_has_char): Use ftfont_get_fc_charset.
19327 (ftfont_otf_features, ftfont_otf_capability): New functions.
19328 (ftfont_shape): Use ftfont_get_otf.
19329 (ftfont_text_extents): Fix initial setting of metrics.
19330
19331 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19332 member order compatible with struct ftfont_info.
bba3e508
SM
19333 (xftfont_open): Add FC_CHARSET to the pattern.
19334 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
19335 properties if appropriate.
19336 (xftfont_close): Unlock the face.
19337 (xftfont_anchor_point, xftfont_shape): Deleted.
19338 (syms_of_xftfont): Don't set members anchor_point and shape of
19339 xftfont_driver.
19340
19341 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19342 font_make_object.
19343
19344 * w32font.c (w32font_open): Adjust it for the change of
19345 font_make_object.
19346 (w32font_open_internal): Don't set properties of font_object here.
19347
193482008-07-08 Chong Yidong <cyd@stupidchicken.com>
19349
19350 * macfns.c (x_create_tip_frame):
19351 * w32fns.c (x_create_tip_frame):
19352 * xfns.c (x_create_tip_frame): Pass parameter argument to
19353 face-set-after-frame-default.
19354
19355 * xfaces.c (Finternal_merge_in_global_face): Save merged
19356 attributes for the default face back into the face vector.
19357
193582008-07-08 Andreas Schwab <schwab@suse.de>
19359
19360 * fontset.h: Declare fontset_from_font. Don't declare
19361 new_fontset_from_font and fontset_from_font_name.
19362 * xterm.c: Include "fontset.h".
19363 * Makefile.in (xterm.o): Update dependencies.
19364
193652008-07-08 Glenn Morris <rgm@gnu.org>
19366
19367 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19368 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19369
193702008-07-07 Chong Yidong <cyd@stupidchicken.com>
19371
19372 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19373 (x_set_frame_parameters): Don't bind it.
19374
193752008-07-07 Juanma Barranquero <lekktu@gmail.com>
19376
19377 * w32fns.c (map_w32_filename): Declare extern.
19378
193792008-07-07 Jason Rumney <jasonr@gnu.org>
19380
19381 * w32term.c (WS_EX_LAYERED): Define if not already.
19382
193832008-07-06 Chong Yidong <cyd@stupidchicken.com>
19384
19385 * xfaces.c (set_font_frame_param): Don't try to set the font
19386 parameter if it is still unspecified in the lface.
19387
193882008-07-05 Chong Yidong <cyd@stupidchicken.com>
19389
19390 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19391 face if it didn't already exist.
19392
19393 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19394
193952008-07-05 Andreas Schwab <schwab@suse.de>
19396
19397 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19398
193992008-07-05 Chong Yidong <cyd@stupidchicken.com>
19400
19401 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19402 word-wrapping.
19403 (IT_DISPLAYING_WHITESPACE): New macro.
19404 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19405 when word-wrapping. Simplify word-wrapping logic. Use correct
19406 pixel positions when saving copies of the iterator.
19407 (display_line): Use proper wrap point if the last character on a
19408 line was preceded by whitespace.
19409
194102008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19411
19412 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19413
194142008-07-04 Kenichi Handa <handa@m17n.org>
19415
19416 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19417
19418 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19419
194202008-07-02 Jason Rumney <jasonr@gnu.org>
19421
19422 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 19423 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
19424
19425 * xdisp.c (next_element_from_display_vector): Move assignment out
19426 of if statement.
19427
194282008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19429
19430 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19431
19432 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19433 (syms_of_fileio): Initialize and export them.
19434 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19435
19436 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19437 (Fsystem_move_file_to_trash): New function.
19438 (syms_of_w32fns): Export it to lisp.
19439
194402008-07-01 Jason Rumney <jasonr@gnu.org>
19441
19442 * w32font.c (w32font_text_extents): Don't count overhang as part
19443 of width.
19444
194452008-06-30 Miles Bader <miles@gnu.org>
19446
19447 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19448 Add `avoid_cursor_p' field.
19449
19450 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19451 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19452 (append_glyph, append_composite_glyph, produce_image_glyph)
19453 (append_stretch_glyph): Initialize avoid_cursor_p.
19454 (get_it_property): Rename from `get_line_height_property'.
19455 (x_produce_glyphs): Use get_it_property.
19456 (handle_line_prefix, push_display_prop): New functions.
19457 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19458 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19459 New variables.
19460 (syms_of_xdisp): Initialize them.
19461
194622008-06-30 Kenichi Handa <handa@m17n.org>
19463
19464 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19465 XftDefaultSubstitute (they are called in XftFontMatch).
19466 (xftfont_open): Fix args to ftfont_font_format.
19467
19468 * ftfont.c (fc_charset_table): New member lang.
19469 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 19470 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
19471 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19472 (ftfont_open): Fix args to ftfont_font_format.
19473 (ftfont_font_format): New arg filename.
19474
194752008-06-30 Chong Yidong <cyd@stupidchicken.com>
19476
19477 * xfaces.c (Finternal_merge_in_global_face): If default face was
19478 modified, realize it again. Update the font face attribute.
19479
194802008-06-29 Jason Rumney <jasonr@gnu.org>
19481
19482 * w32term.c (x_set_frame_alpha): Fix logic.
19483
194842008-06-29 Kenichi Handa <handa@m17n.org>
19485
19486 * fontset.c (Finternal_char_font): Return font-object instead of
19487 font-name.
19488
19489 * composite.c (get_composition_id): Fix the width calculation for TAB.
19490
194912008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19492
19493 * indent.c (Fvertical_motion): Properly handle float column arg.
19494
194952008-06-28 Jason Rumney <jasonr@gnu.org>
19496
19497 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19498 (pfnSetLayeredWindowAttributes): New function pointer.
19499 (w32_initialize): Initialize it when supported.
19500 (x_set_frame_alpha): New function.
19501
19502 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19503 (w32_frame_parm_handlers): Set alpha handler.
19504
19505 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19506
195072008-06-27 Jason Rumney <jasonr@gnu.org>
19508
19509 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19510 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19511 (w32_to_x_charset, x_to_w32_charset)
19512 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19513 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19514 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19515 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19516 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19517 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19518 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19519 (Qw32_charset_unicode): Remove.
19520 (syms_of_w32fns): Update for above changes.
19521
19522 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19523 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19524 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19525 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19526 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19527 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19528 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19529 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19530 (syms_of_w32font): Update for above changes.
19531
195322008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19533
19534 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19535 removed #if.
19536 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19537
195382008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 19539 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
19540
19541 * makefile.w32-in (LOCAL_FLAGS):
19542 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19543
19544 * sysdep.c (_spawnlp, _getpid):
19545 Declare with explicit _cdecl instead of _CRTAPI1.
19546
19547 * editfns.c (Fget_internal_run_time):
19548 Check for WINDOWSNT with #ifdef, not #if.
19549
195502008-06-26 Jason Rumney <jasonr@gnu.org>
19551
19552 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19553
19554 * w32term.c (x_draw_glyph_string_foreground)
19555 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19556 Use FONT_HANDLE macro.
19557 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19558
19559 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19560 (uniscribe_encode_char): Use FONT_HANDLE macro.
19561
19562 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19563 (w32font_text_extents): Use precast w32_font.
19564 (w32font_close): Free cached metrics.
19565 (w32font_open_internal): Allocate space for name on stack.
19566
195672008-06-26 Chong Yidong <cyd@stupidchicken.com>
19568
19569 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19570
195712008-06-26 Jason Rumney <jasonr@gnu.org>
19572
19573 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19574 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19575
195762008-06-26 Juanma Barranquero <lekktu@gmail.com>
19577
19578 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19579
195802008-06-26 Jason Rumney <jasonr@gnu.org>
19581
19582 * w32bdf.c, w32bdf.h: Remove obsolete files.
19583
19584 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19585
19586 * w32gui.h: Don't include w32bdf.h.
19587 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19588 Remove obsolete font support.
19589
19590 * w32font.h (struct w32font_info): Remove compat_w32_font.
19591 Add hfont member.
19592 (FONT_COMPAT): Remove obsolete macro.
19593
19594 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19595 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19596 (w32font_open_internal): Remove compat code. Set new hfont member.
19597 (Fx_select_font): Use new hfont member.
19598
19599 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19600 (uniscribe_encode_char): Use new hfont member.
19601
19602 * w32term.c (x_draw_glyph_string_foreground)
19603 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19604 (x_draw_glyph_string): Use metrics in w32font_info.
19605
196062008-06-26 Kenichi Handa <handa@m17n.org>
19607
19608 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19609
196102008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19611
19612 * unexnext.c:
19613 * m/ews4800.h:
19614 * m/hp9000s300.h:
19615 * m/ibm370aix.h:
19616 * m/mips-siemens.h:
19617 * m/ncr386.h:
19618 * m/next.h:
19619 * m/pmax.h:
19620 * m/powerpcle.h:
19621 * m/tandem-s2.h:
19622 * s/386bsd.h:
19623 * s/bsd386.h:
19624 * s/bsd4-1.h:
19625 * s/bsd4-2.h:
19626 * s/bsdos2-1.h:
19627 * s/bsdos2.h:
19628 * s/bsdos3.h:
19629 * s/bsdos4.h:
19630 * s/nextstep.h:
19631 * s/ultrix4-3.h:
19632 * s/usg5-0.h:
19633 * s/usg5-2-2.h:
19634 * s/usg5-2.h:
19635 * s/usg5-4-3.h:
19636 * s/ux4800.h:
19637 * s/uxpds.h:
19638 * s/uxpv.h: Remove support for obsolete systems.
19639 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 19640 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
19641 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19642 Remove, insert contents in s/aix4-2.h.
19643 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19644 * s/bsd4-3.h: Rename to ...
19645 * s/bsd-common.h: ... this.
19646 * data.c:
19647 * doc.c:
19648 * ecrt0.c:
19649 * emacs.c:
19650 * fileio.c:
19651 * floatfns.c:
19652 * keyboard.c:
19653 * mem-limits.h:
19654 * print.c:
19655 * process.c:
19656 * sysdep.c:
19657 * syssignal.h:
19658 * systty.h:
19659 * syswait.h:
19660 * term.c:
19661 * unexec.c:
19662 * unexelf.c:
19663 * unexhp9k800.c:
19664 * m/hp800.h:
19665 * m/ibmrs6000.h:
19666 * m/mips.h:
19667 * m/vax.h:
19668 * s/darwin.h:
19669 * s/freebsd.h:
19670 * s/gnu.h:
19671 * s/ms-w32.h:
19672 * s/msdos.h:
19673 * s/netbsd.h:
19674 * s/template.h: Remove references to obsolete variables.
19675
19676 * Makefile.in: Add dependencies for all unexec files.
19677 (admindir): Remove unused variable.
19678 (UNEXEC_SRC): Remove references.
19679
196802008-06-25 Chong Yidong <cyd@stupidchicken.com>
19681
19682 * xfns.c (x_default_font_parameter): If Xft is available, first
19683 try Monospace-12 for the default font.
19684
196852008-06-25 Jason Rumney <jasonr@gnu.org>
19686
19687 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19688
196892008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19690
19691 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19692
19693 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19694
196952008-06-25 Juanma Barranquero <lekktu@gmail.com>
19696
19697 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19698 <scroll-conservatively>: Fix typo in docstring.
19699
19700 * xselect.c (Fx_send_client_event): Doc fix.
19701
197022008-06-25 Kenichi Handa <handa@m17n.org>
19703
19704 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19705
19706 * font.c (font_parse_fcname): Remove unused variables.
19707 (font_sort_entites): Delete the arg SPEC. Caller changed.
19708 Fix for the case of ! best_only.
19709 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19710
19711 * lisp.h (Fstring_to_unibyte): EXFUN it.
19712
19713 * character.h (str_to_unibyte): Extern it.
19714
19715 * character.c (str_to_unibyte): New function.
19716
19717 * fns.c (Fstring_to_unibyte): New function.
19718 (syms_of_fns): Defsubr it.
19719
197202008-06-24 Kenichi Handa <handa@m17n.org>
19721
19722 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19723 DPI too.
19724 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19725
197262008-06-24 Andreas Schwab <schwab@suse.de>
19727
19728 * Makefile.in (${lispsource}loaddefs.el): Rename from
19729 ../lisp/loaddefs.el.
19730 (bootstrap-clean): Do what distclean does but don't remove
19731 Makefile.
19732 (distclean): Depend on bootstrap-clean and remove Makefile.
19733
197342008-06-24 Chong Yidong <cyd@stupidchicken.com>
19735
19736 * buffer.h (struct buffer): New member word_wrap.
19737
19738 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19739 word-wrap.
19740 (init_buffer_once): Initialize them.
19741
19742 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19743 line_wrap enum possessing three possible values.
19744
19745 * termopts.h: Replace truncate_partial_width_windows with
19746 Vtruncate_partial_width_windows.
19747
19748 * dispnew.c (direct_output_for_insert): Avoid direct output when
19749 inserting a space with word wrap on.
19750
19751 * indent.c (compute_motion): Obey integer values of
19752 truncate-partial-width-windows.
19753
19754 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19755 replacing truncate_partial_width_windows.
19756 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19757 truncate only if the window width is below that integer.
19758 (start_display, resize_mini_window, produce_stretch_glyph)
19759 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
19760 (back_to_previous_visible_line_start, reseat_1):
19761 Reset string_from_display_prop_p.
aac0c6e3
MR
19762 (display_line): Extend default face to end of line when wrapping.
19763
197642008-06-24 Kim F. Storm <storm@cua.dk>
19765
19766 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19767 to wrap continued lines at word boundaries.
19768
197692008-06-24 Jason Rumney <jasonr@gnu.org>
19770
19771 * font.c (Ffont_face_attributes): Multiply pixel size before point
19772 conversion to avoid multiplying rounding error.
19773
197742008-06-23 Jason Rumney <jasonr@gnu.org>
19775
19776 * w32term.c (x_draw_glyph_string_background)
19777 (x_draw_glyph_string): Remove old bdf font code.
19778
19779 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19780
197812008-06-22 Kenichi Handa <handa@m17n.org>
19782
19783 * font.c (font_find_for_lface): Try the adstyle specified in
19784 the property of LFACE_FONT of LFACE (if any).
19785
197862008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19787 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19788
19789 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19790
197912008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19792
19793 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19794 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19795 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19796 (witness-emacs): Remove.
19797 (lisp, shortlisp): Move loaddefs.el earlier.
19798 (mostlyclean): Forget about witness-emacs.
19799
198002008-06-22 Glenn Morris <rgm@gnu.org>
19801
19802 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19803 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19804
198052008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19806
19807 * Makefile.in (PRECOMP): Remove.
19808 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19809 (witness-emacs): Run `compile-first'.
19810 (.el.elc): Use the new compile-onefile target.
19811
198122008-06-21 Kenichi Handa <handa@m17n.org>
19813
19814 * xftfont.c (xftfont_open): Handle QCembolden only when
19815 FC_EMBOLDEN is defined.
19816
198172008-06-21 Andreas Schwab <schwab@suse.de>
19818
19819 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19820 (.el.elc): Likewise.
19821
198222008-06-21 Miles Bader <miles@gnu.org>
19823
19824 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19825 build dir, not the lisp source dir.
19826
198272008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19828
19829 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19830 (bootstrapclean): Remove.
19831 (.el.elc): New rule.
19832 (PRECOMP): New var.
19833 (../lisp/subdirs.el): Remove.
19834 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19835 (witness-emacs): New target.
19836 (mostlyclean): Remove witness-emacs as well.
19837 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19838 Add witness-emacs dependency.
19839
198402008-06-20 Chong Yidong <cyd@stupidchicken.com>
19841
19842 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19843 defined by the font.
19844
198452008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19846
19847 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19848 (bootstrap-clean): New target that keeps TAGS around.
19849 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19850 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19851
198522008-06-20 Jason Rumney <jasonr@gnu.org>
19853
19854 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19855 Remove obsolete font code.
19856
19857 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19858 to determine language support.
19859
198602008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19861
19862 * sysdep.c (cfsetspeed): New fun extracted from the code.
19863 (cfmakeraw): Move before first use.
19864
198652008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19866
19867 * sysdep.c (cfmakeraw): Provide fallback implementation.
19868 (serial_configure): Provide fallback implementation of cfsetspeed.
19869
198702008-06-20 Kenichi Handa <handa@m17n.org>
19871
19872 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19873 the pattern.
19874
19875 * fontset.c (fontset_from_font): Copy font_spec before changing
19876 the elements.
19877
19878 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19879
198802008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19881
19882 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19883 for explicit `font' parameters.
19884
19885 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19886
198872008-06-19 Kenichi Handa <handa@m17n.org>
19888
19889 * frame.c: Include <ctype.h>.
19890 (x_set_font_backend): Allow spacing characters in the X resource
19891 for FontBackend.
19892
198932008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19894
19895 * w32fns.c, xfns.c (Qfont_param): New var.
19896 (syms_of_w32fns): Initialize it.
19897 (x_default_font_parameter): Record explicit `font' into
19898 `font-parameter'.
19899
199002008-06-18 Kenichi Handa <handa@m17n.org>
19901
19902 * font.c (font_parse_xlfd): Fix previous change.
19903 (font_parse_fcname): Don't use :fc-unknown-spec.
19904 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19905 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19906 (font_add_log): Prepend the driver name to the resulting fonts.
19907
19908 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19909 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19910 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19911
19912 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19913 (QCembolden): New variables.
19914 (syms_of_xftfont): DEFSYM them.
19915 (xftfont_open): Call XftFontMatch. Don't trust the result of
19916 XftTextExtents8 if the pixel_size is less than 5.
19917
199182008-06-18 Andreas Schwab <schwab@suse.de>
19919
19920 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19921 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19922
199232008-06-18 Jason Rumney <jasonr@gnu.org>
19924
19925 * w32font.c (w32font_list, w32font_match): Add logging.
19926
19927 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19928
199292008-06-17 Chong Yidong <cyd@stupidchicken.com>
19930
19931 * font.c (font_parse_fcname): Store divider characters for
19932 unknown-spec list. For known key symbols, intern using correct
19933 symbol name.
19934
199352008-06-17 Kenichi Handa <handa@m17n.org>
19936
19937 * xfaces.c (realize_default_face): If the frame is not on window
19938 system, set the fontset of face to nil.
19939
199402008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19941
19942 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19943
199442008-06-16 Juanma Barranquero <lekktu@gmail.com>
19945
19946 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19947 (build_font_name_from_vector): Delete externs.
19948
19949 * xfaces.c (struct font_name): Don't declare.
19950
199512008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19952
19953 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19954
199552008-06-16 Chong Yidong <cyd@stupidchicken.com>
19956
19957 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19958
199592008-06-16 Juanma Barranquero <lekktu@gmail.com>
19960
19961 * font.c (Ffont_spec): Fix usage in docstring.
19962 (Ffont_face_attributes): Doc fix.
19963
199642008-06-16 Andreas Schwab <schwab@suse.de>
19965
19966 * font.c (Ffont_face_attributes): Fix definition.
19967
199682008-06-16 Jason Rumney <jasonr@gnu.org>
19969
19970 * font.h (font_style_symbolic_from_value): Remove.
19971
19972 * font.c (font_style_symbolic_from_value): Remove.
19973 (font_style_symbolic): Revert to pre 2008-06-13 version.
19974
19975 * w32font.c (w32_to_fc_weight): New function.
19976 (w32font_full_name, logfont_to_fcname): Use it.
19977
199782008-06-16 Kenichi Handa <handa@m17n.org>
19979
19980 * font.c (font_check_object): Delete it.
19981 (font_clear_cache): Check if a font-object is alive.
19982 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19983 font-object to nil.
19984 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19985 (font_at): Don't call font_check_object.
19986 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19987
199882008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19989
19990 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19991
199922008-06-16 Chong Yidong <cyd@stupidchicken.com>
19993
19994 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19995
199962008-06-15 Chong Yidong <cyd@stupidchicken.com>
19997
19998 * font.c (font_parse_fcname): Only one decimal point.
19999 (font_unparse_fcname): Handle data in family and foundry indices
20000 as symbols, not strings.
20001 (font_unparse_gtkname, Ffont_face_attributes): New functions.
20002
20003 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
20004
20005 * font.h (font_unparse_gtkname): Add prototype.
20006
200072008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
20008
20009 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
20010
200112008-06-15 Andreas Schwab <schwab@suse.de>
20012
20013 * font.c (font_update_drivers): Fix crash when no drivers match.
20014
200152008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
20016
20017 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
20018 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
20019
200202008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
20021
20022 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
20023
200242008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
20025
20026 * process.c (Fserial_process_configure, Fprocess_send_eof):
20027 Use EQ to compare Lisp_Objects.
20028
200292008-06-13 Jason Rumney <jasonr@gnu.org>
20030
20031 * w32fns.c (Fw32_select_font): Remove old font API function.
20032
20033 * w32font.c (logfont_to_fcname): New function.
20034 (Fx_select_font): New font dialog function compatible with
20035 GTK/fontconfig version.
20036
20037 * font.c (font_style_symbolic_from_value): New function.
20038 (font_style_symbolic): Use it.
20039
20040 * font.h (font_style_symbolic_from_value): Declare new function.
20041
200422008-06-13 Juanma Barranquero <lekktu@gmail.com>
20043
20044 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
20045 <font-width-table>: Fix typos in docstrings.
20046
200472008-06-13 Daniel Engeler <engeler@gmail.com>
20048
20049 These changes add serial port access.
20050 * process.c: Add HAVE_SERIAL.
20051 (Fdelete_process, Fprocess_status, Fset_process_buffer)
20052 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
20053 (list_processes_1, select_wrapper, Fstop_process)
20054 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
20055 (status_notify): Modify to handle serial processes.
20056 [HAVE_SERIAL] (Fserial_process_configure)
20057 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
20058 New functions.
20059 * process.h (struct Lisp_Process): Add `type'.
20060 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
20061 New functions.
20062 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
20063 serial ports.
b71ac3dd 20064 (serial_open, serial_configure): New functions.
aac0c6e3
MR
20065 * w32.h: Add FILE_SERIAL.
20066 (struct _child_process): Add ovl_read, ovl_write.
20067
200682008-06-13 Kenichi Handa <handa@m17n.org>
20069
20070 * dispextern.h (enum lface_attribute_index): New member
20071 LFACE_FOUNDRY_INDEX.
20072
20073 * font.c (font_score): Delete arg alternate_families. Check only
20074 weight, slant, width, and size. Ignore the difference of alias
20075 style symbols.
20076 (font_sort_entites): Adjust for the above change. Reflect the
20077 order of font-driver to scores.
20078 (font_list_entities): Don't check alternate_familes here.
20079 (font_clear_prop): Handle foundry.
20080 (font_update_lface): Don't parse "foundry-family" form here.
20081 Handle FONT_FOUNDRY_INDEX.
20082 (font_find_for_lface): Likewise. Handle alternate families here.
20083 If registry is nil, try iso8859-1 and ascii-0.
20084 (font_open_for_lface): Pay attention to size in ENTITY.
20085 (font_open_by_name): Simplify by calling font_load_for_lface.
20086 (free_font_driver_list): Delete it.
20087 (font_update_drivers): Preserve the order of backends.
20088 (syms_of_font): Setting of sort_shift_bits adjusted for the change
20089 of font_score and font_sort_entites.
20090 (font_update_sort_order): Likewise.
20091
20092 * xfaces.c (LFACE_FOUNDRY): New macro.
20093 (check_lface_attrs): Check foundry.
20094 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
20095 (merge_face_vectors): Check foundry.
20096 (merge_face_ref): Likewise.
20097 (Finternal_set_lisp_face_attribute): Likewise.
20098 (x_update_menu_appearance): Likewise.
20099 (Finternal_get_lisp_face_attribute): Likewise.
20100 (lface_hash): Likewise.
20101 (lface_same_font_attributes_p): Likewise.
20102 (x_supports_face_attributes_p): Likewise.
20103 (tty_supports_face_attributes_p): Likewise.
20104 (Finternal_set_alternative_font_family_alist): Intern strings.
20105 (Finternal_set_alternative_font_registry_alist): Downcase strings.
20106 (realize_default_face): Set LFACE_FOUNDRY (lface).
20107
20108 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
20109 font-driver at first.
20110
20111 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
20112
201132008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
20114
20115 * lread.c (Fload): Use xfree, not free on saved_doc_string.
20116
201172008-06-12 Jim Meyering <meyering@redhat.com>
20118
20119 Make unexec_free handle NULL the same way free does.
20120 * unexmacosx.c (unexec_free): Ignore a NULL argument.
20121
201222008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
20123
20124 * character.h (CHAR_TO_BYTE_SAFE): New macro.
20125 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
20126 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
20127 (WEAK_ALIAS): Simplify.
20128 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
20129 when searching a unibyte buffer.
20130
201312008-06-12 Chong Yidong <cyd@stupidchicken.com>
20132
20133 * xfns.c (Fx_select_font): Rename from x-font-dialog.
20134
201352008-06-12 Juanma Barranquero <lekktu@gmail.com>
20136
20137 * w32font.c: Include ctype.h.
20138
201392008-06-11 Jason Rumney <jasonr@gnu.org>
20140
20141 * w32font.c (w32font_encode_char): Detect missing glyphs that are
20142 misreported as space.
20143 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
20144 as aliases for registry iso10646-1.
20145
201462008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
20147
20148 * buffer.c (clone_per_buffer_values): Skip `name'.
20149
201502008-06-11 Chong Yidong <cyd@stupidchicken.com>
20151
20152 * font.c (font_parse_fcname): Fix last change; accept decimal
20153 points in font size.
20154
201552008-06-10 Jason Rumney <jasonr@gnu.org>
20156
20157 * w32uniscribe.c (add_opentype_font_name_to_list):
20158 Skip non unicode fonts.
20159
201602008-06-10 Chong Yidong <cyd@stupidchicken.com>
20161
20162 * xfns.c (Fx_font_dialog): New function.
20163
20164 * gtkutil.c (xg_dialog_response_cb): Rename from
20165 xg_file_response_callback.
20166 (pop_down_dialog): Rename from pop_down_file_dialog.
20167 (xg_get_file_name): Callers changed.
20168 (xg_get_font_name): New function.
20169
20170 * gtkutil.h (xg_get_font_name): Insert prototype.
20171
201722008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20173
20174 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
20175 x_underline_minimum_display_offset.
20176 (syms_of_xdisp): Declare it here rather than in xterm.c.
20177 * dispextern.h (underline_minimum_offset): Declare it.
20178 * w32term.c (x_draw_glyph_string): Use it.
20179 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
20180 (syms_of_xterm): Don't declare it any more.
20181 (x_draw_glyph_string): Adjust to the new name.
20182
8719abec 201832008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
20184
20185 * xterm.c (x_underline_minimum_display_offset): New var.
20186 (x_draw_glyph_string): Use it.
20187 (syms_of_xterm): Declare it.
20188
201892008-06-10 Chong Yidong <cyd@stupidchicken.com>
20190
20191 * font.c (font_parse_fcname): Accept GTK-style font names too.
20192
201932008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
20194
20195 * dired.c (file_name_completion): Don't return t if the match is exact
20196 but with different capitalization.
20197 * minibuf.c (Ftry_completion): Simplify.
20198
20199 * window.c (Vwindow_point_insertion_type): New var.
20200 (set_window_buffer): Use it.
20201 (syms_of_window): Init and export it to Lisp.
20202
202032008-06-10 Kenichi Handa <handa@m17n.org>
20204
20205 * font.h (font_intern_prop): Prototype adjusted.
20206
20207 * font.c (font_intern_prop): New arg force_symbol.
20208 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
20209 Adjust for the change of font_intern_prop.
20210
20211 * ftfont.c (ftfont_pattern_entity):
20212 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
20213 (w32_registry):
20214 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
20215 the change of font_intern_prop.
20216
202172008-06-09 Juanma Barranquero <lekktu@gmail.com>
20218
20219 * w32menu.c (digest_single_submenu): Declare extern.
20220
202212008-06-09 Jason Rumney <jasonr@gnu.org>
20222
20223 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20224
20225 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20226 (parse_single_submenu): Remove.
20227 (digest_single_submenu): Remove.
20228 (syms_of_w32menu): Don't initialise variables that have moved
20229 to menu.c.
20230 (set_frame_menubar): Sync with version in xmenu.c.
20231 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20232
20233 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20234 Make static again.
20235
202362008-06-09 Jason Rumney <jasonr@gnu.org>
20237
20238 Changes to w32 files related to the move of common menu code
20239 to menu.c on 2008-06-08 by Chong Yidong.
20240
20241 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20242 defs to w32gui.h.
20243 (single_keymap_panes, push_menu_item, push_menu_pane):
20244 Make globally visible.
20245
20246 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20247 (local_free, malloc_widget_value, free_widget_value)
20248 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20249 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20250 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20251 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20252 (menu_items, menu_items_allocated, menu_items_used)
20253 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20254 (init_menu_items, finish_menu_items, discard_menu_items)
20255 (grow_menu_items, push_submenu_start, push_submenu_end)
20256 (push_left_right_boundary, push_menu_pane, push_menu_item)
20257 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20258 (free_menubar_widget_tree_value, parse_single_submenu)
20259 (update_submenu_strings): Remove functions.
20260 (xmalloc_widget_value): Remove and declare extern.
20261
20262 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20263 (OBJ1): Build it.
20264
20265 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20266 (local_heap, local_alloc, local_free, malloc_widget_value)
20267 (free_widget_value): Define here.
20268
202692008-06-09 Kenichi Handa <handa@m17n.org>
20270
20271 * font.h (Qascii_0): Extern it.
20272
20273 * font.c (Qascii_0): New variable.
20274 (syms_of_font): DEFSYM it.
20275 (font_open_by_name): If the registry "iso8859-1" fails, try also
20276 "ascii-0".
20277
20278 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20279
202802008-06-08 Kenichi Handa <handa@m17n.org>
20281
20282 * .gdbinit (xfont): New command.
20283
202842008-06-08 Andreas Schwab <schwab@suse.de>
20285
20286 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20287 * Makefile.in (menu.o): Update dependencies.
20288
20289 * Makefile.in (obj): Always add menu.o.
20290 * emacs.c (main): Always call syms_of_menu.
20291 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20292
202932008-06-08 Chong Yidong <cyd@stupidchicken.com>
20294
20295 * Makefile.in: Compile menu.c.
20296
20297 * lisp.h: Declare syms_of_menu.
20298
20299 * emacs.c (main): Call syms_of_menu.
20300
20301 * keyboard.h: Relocate platform-independent menu definitions from
20302 xmenu.c.
20303
20304 * menu.c: New file. Relocate platform-independent menu
20305 definitions from xmenu.c. Suggested by Adrian Robert.
20306
20307 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 20308 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
20309 (menu_items_used, menu_items_n_panes)
20310 (menu_items_submenu_depth): Move to keyboard.h.
20311 (init_menu_items, finish_menu_items, unuse_menu_items)
20312 (discard_menu_items, restore_menu_items, save_menu_items)
20313 (grow_menu_items, push_submenu_start, push_submenu_end)
20314 (push_left_right_boundary, push_menu_pane, push_menu_item)
20315 (keymap_panes, single_keymap_panes, single_menu_item)
20316 (list_of_panes, list_of_items, find_and_call_menu_selection)
20317 (xmalloc_widget_value, free_menubar_widget_value_tree)
20318 (parse_single_submenu, digest_single_submenu)
20319 (update_submenu_strings): Move to menu.c.
20320
203212008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20322
20323 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20324
203252008-06-06 Miles Bader <miles@gnu.org>
20326
20327 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20328 face, not frame default.
20329
203302008-06-05 Martin Rudalics <rudalics@gmx.at>
20331
20332 * window.c (pop_up_windows, pop_up_frames)
20333 (display_buffer_reuse_frames, Vpop_up_frame_function)
20334 (Vdisplay_buffer_function, Veven_window_heights)
20335 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20336 (Vspecial_display_function, Vsame_window_buffer_names)
20337 (Vsame_window_regexps, split_height_threshold)
20338 (Vsplit_window_preferred_function): Move those vars to window.el.
20339 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20340 (Fdisplay_buffer): Move those functions to window.el.
20341 (syms_of_window): Remove corresponding declarations.
20342 (display_buffer): New function.
20343 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20344 * dispnew.c (Flast_nonminibuf_frame): New function.
20345 * buffer.c (Fpop_to_buffer): Move to window.el.
20346
203472008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20348
20349 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20350
203512008-06-05 Kenichi Handa <handa@m17n.org>
20352
20353 * coding.c (detect_coding): Fix previous change.
20354 (detect_coding_system): Likewise.
20355
203562008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20357
20358 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20359
20360 * keymap.c (Vminibuffer_local_filename_must_match_map):
20361 Rename from Vminibuffer_local_must_match_filename_map.
20362 (syms_of_keymap):
20363 * minibuf.c (Fcompleting_read): Adjust accordingly.
20364 * commands.h: Rename declaration as well.
20365
203662008-06-05 Kenichi Handa <handa@m17n.org>
20367
20368 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20369 family name.
20370 (Ffont_put): Likewise.
20371
20372 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20373 current font-spec.
20374
20375 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20376 is unspecified.
20377
20378 * xfaces.c (realize_x_face): If the font-related face attributes
20379 are the same as those of default face, realize a new fontset from
20380 default->fontset.
20381 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20382
203832008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20384
20385 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20386 (move_it_in_display_line): New wrapper.
20387
20388 * window.c (window_scroll_pixel_based_preserve_x)
20389 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20390 (window_scroll_pixel_based, window_scroll_line_based):
20391 Use them to preserve column positions.
20392 (syms_of_window): Initialize them.
20393
20394 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20395 (HPOS . VPOS) pair.
20396
20397 * dispextern.h (move_it_in_display_line): Declare.
20398
203992008-06-05 Juanma Barranquero <lekktu@gmail.com>
20400
20401 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20402 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20403 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20404
204052008-06-04 Juanma Barranquero <lekktu@gmail.com>
20406
20407 * window.c (Fset_window_parameter): Doc fix.
20408 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20409
204102008-06-04 Joakim Verona <joakim@verona.se>
20411
20412 * window.h (struct window): Add new member window_parameters.
20413
20414 * window.c (Fwindow_parameters, Fwindow_parameter)
20415 (Fset_window_parameter): New defuns.
20416 (syms_of_window): Defsubr the new defuns.
20417 (make_window): Initialize window_parameters to nil.
20418
204192008-06-04 John Paul Wallington <jpw@pobox.com>
20420
20421 * eval.c (Fdefmacro): Doc fix.
20422
204232008-06-04 Kenichi Handa <handa@m17n.org>
20424
20425 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20426 Be sure to call setup_coding_system when we find a proper coding system.
20427 (detect_coding_system): Fix handling of coding->head_ascii.
20428
204292008-06-03 Andreas Schwab <schwab@suse.de>
20430
20431 * font.c (font_prop_validate_spacing): Fix last change.
20432
204332008-06-03 Kenichi Handa <handa@m17n.org>
20434
20435 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20436 (font_parse_fcname): Fix handling of unknown key.
20437
20438 * xfont.c (xfont_list): Try an alias.
20439
20440 * charset.c (char_charset): Return NULL if the arg charset_list is
20441 specified and C doesn't belong to any of them.
20442
204432008-06-02 Chip Coldwell <coldwell@redhat.com>
20444
20445 * font.c (font_pixel_size): Don't take cdr of an integer.
20446
204472008-06-02 Jim Meyering <meyering@redhat.com>
20448
20449 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20450 * alloc.c (xfree): Return right away for a NULL arg.
20451 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20452 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20453 * mac.c (create_apple_event_from_event_ref): Likewise.
20454 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20455 Likewise.
20456 * doprnt.c (doprnt1): Likewise.
20457 * frame.c (frame): Likewise.
20458 * keyboard.c (wipe_kboard): Likewise.
20459 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20460 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20461 * term.c (tty_default_color_capabilities, maybe_fatal)
20462 (delete_tty): Likewise.
20463 * w16select.c (string): Likewise.
20464 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20465 * w32bdf.c (w32_free_bdf_font): Likewise.
20466 * w32fns.c (w32_unload_font): Likewise.
20467 * w32font.c (w32font_close): Likewise.
20468 * window.c (size_window): Likewise.
20469 * xselect.c (receive_incremental_selection): Likewise.
20470 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20471 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20472 * w32.c (stat): Likewise.
20473
20474 Remove useless if-before-free tests.
20475 * editfns.c (Fset_time_zone_rule): Likewise.
20476 * lread.c (nosuffix): Likewise.
20477 * ralloc.c (get_bloc): Likewise.
20478 * regex.c (reg_free): Likewise.
20479 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20480 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20481 * xsmfns.c (smc_save_yourself_CB): Likewise.
20482
204832008-06-02 Kenichi Handa <handa@m17n.org>
20484
20485 * font.c (font_find_for_lface): Handle float font size.
20486 (font_open_for_lface): Likewise.
20487
20488 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20489 comparing the properties.
20490
204912008-06-01 Jason Rumney <jasonr@gnu.org>
20492
20493 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20494 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20495 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20496 Don't add empty script list.
20497 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20498
204992008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20500
20501 * Makefile.in (dot, dotdot): Remove, update users.
20502 ".." has been used elsewhere in the file for a long time.
20503 (LIBXT_STATIC): Remove conditional based on unused variable.
20504
205052008-06-01 Miles Bader <miles@gnu.org>
20506
20507 * xfaces.c (Vface_remapping_alist): New variable.
20508 (syms_of_xfaces): Initialize it.
20509 (enum named_merge_point_kind): New type.
20510 (struct named_merge_point): Add `named_merge_point_kind' field.
20511 (push_named_merge_point): Make cycle detection respect different
20512 named-merge-point kinds.
20513 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20514 Remove face-name alias resolution.
20515 (lface_from_face_name): New definition using
20516 `lface_from_face_name_no_resolve'.
20517 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20518 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20519 (get_lface_attributes): New definition that layers face-remapping on
20520 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20521 (lookup_basic_face): New function.
20522 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20523 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20524 `get_lface_attributes'.
20525 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20526 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20527 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20528
20529 * xdisp.c (init_iterator): Pass base_face_id through
20530 `lookup_basic_face' when we actually use it as a face-id.
20531 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20532 DEFAULT_FACE_ID.
20533
20534 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20535 lookup the initial face-id.
20536
20537 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20538
205392008-06-01 Juanma Barranquero <lekktu@gmail.com>
20540
20541 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20542 (Fremove_text_properties): Fix typos in docstrings.
20543
205442008-05-31 Kenichi Handa <handa@m17n.org>
20545
20546 * font.c (font_list_entities): Fix the car part of data to be
20547 stored in the cache.
20548
20549 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20550
205512008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20552
20553 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20554 Add a `test' argument so another predicate than `equal' can be used.
20555 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20556 (map_char_table): Remove unused vars `c' and `i'.
20557 * lisp.h (Foptimize_char_table): Adjust declaration.
20558 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20559
205602008-05-30 Kenichi Handa <handa@m17n.org>
20561
20562 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20563 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20564 defined.
20565
205662008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20567
20568 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20569 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20570 frame-local settings for the same variable.
20571
205722008-05-30 Kenichi Handa <handa@m17n.org>
20573
20574 * fontset.c (Ffont_info): Move to font.c.
20575 (syms_of_fontset): Delete defsubr of Sfont_info.
20576
20577 * font.c (font_style_to_value, font_score): Delete casting of the
20578 args to xstcasecmp.
20579 (register_font_driver): Increment num_font_drivers only when
20580 registering the driver globally.
20581 (Ffont_info): Move from fontset.c. Handle a font object too.
20582 (syms_of_font): Defsubr Sfont_info.
20583
205842008-05-29 Kenichi Handa <handa@m17n.org>
20585
20586 * coding.h (enum define_coding_utf8_arg_index): New enum.
20587 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20588 coding_attr_utf_bom.
20589 (enum utf_bom_type): Rename from utf_16_bom_type.
20590 (struct utf_16_spec): Adjust for the above change.
20591 (struct coding_system): Add utf_8_bom in `spec' union.
20592
20593 * coding.c (CODING_UTF_8_BOM): New macro.
20594 (enum coding_category): Delete coding_category_utf_8, add
20595 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20596 coding_category_utf_8_sig.
20597 (CATEGORY_MASK_UTF_8): Delete it.
20598 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20599 (CATEGORY_MASK_UTF_8_SIG): New macros.
20600 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20601 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20602 CATEGORY_MASK_UTF_8_SIG.
20603 (CATEGORY_MASK_UTF_8): New macro.
20604 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20605 (detect_coding_utf_8): Check BOM.
20606 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20607 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20608 (encode_coding_utf_16): Likewise.
20609 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20610 (detect_coding, detect_coding_system): Handle utf-8-auto.
20611 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20612 (syms_of_coding): Fix setting up of Vcoding_category_table.
20613
206142008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20615
20616 * process.c (Faccept_process_output): If `millisec' is non-nil,
20617 `seconds' default to 0.
20618 (wait_reading_process_output): Also return non-nil if we read output
20619 from a non-running process.
20620
206212008-05-29 Jason Rumney <jasonr@gnu.org>
20622
20623 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20624 `raster' specified.
20625 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20626 in the uniscribe backend, but disallow any font that has no
20627 unicode subrange support.
20628
206292008-05-29 Juanma Barranquero <lekktu@gmail.com>
20630
20631 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20632 Fix typos in docstrings.
20633
206342008-05-29 Kenichi Handa <handa@m17n.org>
20635
20636 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20637 (Fx_family_fonts): Set frame correctly.
20638
206392008-05-28 Jason Rumney <jasonr@gnu.org>
20640
20641 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20642
206432008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20644
20645 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20646 calling build_annotations.
20647
206482008-05-28 Juanma Barranquero <lekktu@gmail.com>
20649
20650 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20651 (Fencode_coding_string):
20652 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20653 <latin-extra-code-table>: Fix typos in docstrings.
20654 (syms_of_coding) <coding-system-alist>: Doc fix.
20655 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20656
206572008-05-28 Kenichi Handa <handa@m17n.org>
20658
20659 * fontset.c (Ffont_info): Don't call font_close_object.
20660
20661 * font.c (font_parse_family_registry): Use Ffont_put to validate
20662 foundry and family.
20663 (font_delete_unmatched): Don't check spacing.
20664 (font_list_entities): Add spacing to the spec to list fonts.
20665
20666 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20667 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20668
20669 * coding.c (encode_coding_raw_text): Fix previous change.
20670 (encode_coding_object): When the dst_object is a buffer and is
20671 different from src_object, move gap to PT.
20672
206732008-05-27 Chong Yidong <cyd@stupidchicken.com>
20674
20675 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20676
206772008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20678
20679 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20680 all branches. Compute it differently.
20681
20682 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20683
206842008-05-27 Juanma Barranquero <lekktu@gmail.com>
20685
20686 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20687 into "else if () ... else ...".
20688
206892008-05-27 Jason Rumney <jasonr@gnu.org>
20690
20691 * w32font.c (w32font_open_internal): Determine if glyph indices
20692 are likely to work here.
20693
206942008-05-27 Chong Yidong <cyd@stupidchicken.com>
20695
20696 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20697 draw overlap glyphs with appropriate highlighting.
20698
206992008-05-27 Kenichi Handa <handa@m17n.org>
20700
20701 * xfont.c (xfont_open): Fix calculation of font->average_width.
20702
207032008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20704
20705 * casefiddle.c (casify_object): Try to guess better whether the
20706 argument is a byte or a char.
20707
207082008-05-26 Andreas Schwab <schwab@suse.de>
20709
20710 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20711 Always send multiples of format size.
20712
20713 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20714
207152008-05-26 Jason Rumney <jasonr@gnu.org>
20716
20717 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20718 (compute_metrics): Don't set failure if we just cleared the cache.
20719 (w32_weight_table): Remove unused variable.
20720 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20721 backwards compatibility.
20722
207232008-05-25 Kenichi Handa <handa@m17n.org>
20724
20725 * w32term.c (x_draw_glyph_string):
20726 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20727
20728 * xfaces.c: Delete unused function prototypes.
20729 (xstrlwr, font_frame): Delete them.
20730 (clear_face_cache): Delete unused variable.
20731
20732 * xftfont.c (xftfont_open): Delete unused variable.
20733 If underline_thickness is not 1, adjust underline_position.
20734
20735 * ftxfont.c (ftxfont_open): Delete unused variable.
20736
20737 * fontset.c (face_for_char): Optimize for the case of no charset
20738 property.
20739
20740 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20741 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20742 (otf_open, font_otf_capability, generate_otf_features)
20743 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20744 Comment out by surrounding "#if 0" and "#endif" for the moment.
20745 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20746 (syms_of_font): Codes for accessing above commented out.
20747
207482008-05-24 Eli Zaretskii <eliz@gnu.org>
20749
20750 * w32proc.c: Include dispextern.h.
20751
20752 * w32.c: Include dispextern.h.
20753
207542008-05-23 Juanma Barranquero <lekktu@gmail.com>
20755
20756 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20757 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20758 Fix typos in docstrings.
20759
207602008-05-23 Jason Rumney <jasonr@gnu.org>
20761
20762 * xsmfns.c: Remove includes that are already included by config.h.
20763
207642008-05-23 Kenichi Handa <handa@m17n.org>
20765
20766 * charset.c (Qemacs, charset_emacs): New variables.
20767 (char_charset): Fix for non-Unicode characters.
20768 (syms_of_charset): Define charset_emacs.
20769
20770 * w32term.c (x_draw_glyph_string): Be sure to update
20771 s->underline_thickness and s->underline_position. Be sure to draw
20772 underline within the current line area.
20773
20774 * xterm.c (x_draw_glyph_string): Be sure to update
20775 s->underline_thickness and s->underline_position. Be sure to draw
20776 underline within the current line area.
20777
20778 * fontset.c: Delete unused variables and add casting for char *
20779 throughout the file.
20780 (fontset_font): Try the fallback fonts of the current fontset
20781 before consulting the default fontset.
20782
20783 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20784
20785 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20786
207872008-05-22 Jason Rumney <jasonr@gnu.org>
20788
20789 * font.c: Don't include strings.h.
20790
20791 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20792
20793 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20794 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20795 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20796 to call xstrcasecmp.
20797
20798 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20799
20800 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20801
20802 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20803
20804 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20805
208062008-05-22 Kenichi Handa <handa@m17n.org>
20807
20808 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20809
20810 * font.c (font_prop_validate_style): Adjust for the format
20811 change of font_style_table.
20812
20813 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20814 two args.
20815
20816 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20817 two args.
20818
208192008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20820
20821 * minibuf.c (keys_of_minibuf): Delete.
20822 * lisp.h (keys_of_minibuf): Delete.
20823 * emacs.c (main): Don't call keys_of_minibuf.
20824
208252008-05-22 Kenichi Handa <handa@m17n.org>
20826
20827 * ftfont.c (ftfont_resolve_generic_family): Rename from
20828 ftfont_list_generic_family. Return a single family for each
20829 generic family.
20830 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20831 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20832 Call font_add_log.
20833 (ftfont_match): Call font_add_log.
20834
20835 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20836 (FONT_DEBUG): Define it.
20837 (font_add_log): Extern it.
20838 (font_assert): Rename from xassert.
20839
20840 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20841 (xfont_list_family): Call font_add_log.
20842 (xfont_match): Likewise.
20843 (memq_no_quit): Delete.
20844
20845 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20846 call of Ffont_xlfd_name.
20847
20848 * xfaces.c (struct table_entry, slant_table, weight_table)
20849 (swidth_table): Move to font.c.
20850
20851 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20852 xassert are changed to font_assert. Delete many unused variables.
20853 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20854 New variables.
20855 (struct table_entry): Move from xfaces.c and modified.
20856 (weight_table, slant_table, width_table): Move from xfaces.c and
20857 contents adjusted for the change of struct table_entry.
20858 (font_style_to_value, font_style_symbolic): Adjust for the
20859 format change of font_style_table.
20860 (font_parse_family_registry): Don't overwrite existing foundry and
20861 family of font_spec.
20862 (font_score): Fix calculation of diff for sizes.
20863 (font_sort_entites): Call font_add_log.
20864 (font_delete_unmatched): Return a newly created list.
20865 (font_list_entities): Fix previous change. Call font_add_log.
20866 (font_matching_entity, font_open_entity, font_close_entity):
20867 Call font_add_log.
20868 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20869 (Finternal_set_font_style_table): Delete.
20870 (BUILD_STYLE_TABLE): New macro.
20871 (build_style_table): New function.
20872 (Vfont_log, font_log_env_checked): New variables.
20873 (font_add_log): New function.
20874 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20875 Declare Lisp variables "font-weight-table", "font-slant-table",
20876 "font-width-table", and "font-log". Initialize font_style_table.
20877
208782008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20879
20880 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20881
208822008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 20883 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
20884
20885 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20886 (Vframe_alpha_lower_limit): New variable.
20887 (x_set_alpha): New function.
20888
20889 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20890
20891 * xfns.c (x-create-frame, Qalpha):
20892 Initialize the frame parameter `alpha'.
20893 * xterm.c (OPAQUE, OPACITY): New.
20894 (x_set_frame_alpha): New function.
20895 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20896
20897 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20898 * w32fns.c (w32_frame_parm_handlers): Likewise.
20899
209002008-05-20 Jason Rumney <jasonr@gnu.org>
20901
20902 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20903 truetype fonts to opentype list.
20904
209052008-05-20 Juanma Barranquero <lekktu@gmail.com>
20906
20907 * fontset.c (Ffontset_info): Doc fix.
20908 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20909 <ignore-relative-composition>: Fix typos in docstrings.
20910
20911 * font.c (syms-of-font) <font-encoding-alist>:
20912 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20913 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20914 (Ffont_otf_alternates): Doc fixes.
20915
209162008-05-20 Kenichi Handa <handa@m17n.org>
20917
20918 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20919 font.h through out the file.
20920 (FONT_DRIVERS): Rename from FONTOBJ.
20921 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20922 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20923
20924 * emacs.c (main): Call syms_of_font unconditionally.
20925
20926 * font.h (find_font_encoding): Extern it.
20927
20928 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20929 fontset.c.
194d44e7 20930 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
20931 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20932 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20933 only when HAVE_WINDOW_SYSTEM is defined.
20934 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20935 when HAVE_WINDOW_SYSTEM is defined.
20936
20937 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20938 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20939
20940 * xfaces.c: Include font.h unconditionally.
20941 (merge_face_ref, merge_face_vectors)
20942 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20943
209442008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20945
20946 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20947 indirect_variable.
20948 * eval.c (lisp_indirect_variable): New fun.
20949 (Fuser_variable_p): Use it.
20950
209512008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20952
20953 * lisp.h (indirect_variable):
20954 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20955 Use Lisp_Symbol pointers rather than Lisp_Object.
20956 Adjust callers.
20957 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20958 To this end, change calling-convention.
20959
20960 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20961 if some non-hidden buffers are selected by string&pred.
20962
209632008-05-19 Chong Yidong <cyd@stupidchicken.com>
20964
20965 * process.c (wait_reading_process_output): Always check status
20966 when in batch mode.
20967
209682008-05-19 Kenichi Handa <handa@m17n.org>
20969
20970 * font.c (font_list_entities): Fix handling of cache.
20971 (font_matching_entity): Likewise.
20972
20973 * ftfont.c (cs_iso8859_1): Delete.
20974 (ft_face_cache): New variable.
20975 (struct ftfont_info): New member fc_charset_idx.
20976 (ftfont_build_basic_charsets): Delete.
20977 (fc_charset_table): New variable.
20978 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20979 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20980 Callers changed.
20981 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20982 (ftfont_spec_pattern): New argument fc_charset_idx.
20983 Check registry more rigidly. Change callers.
20984 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20985 change of :font-entity property of the font.
20986
20987 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20988 property of the font.
20989
209902008-05-18 Juanma Barranquero <lekktu@gmail.com>
20991
20992 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20993 (Funencodable_char_position, Fcheck_coding_systems_region)
20994 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20995 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20996 (Ffind_operation_coding_system, Fset_coding_system_priority)
20997 (Fcoding_system_eol_type): Doc fixes.
20998
209992008-05-17 Glenn Morris <rgm@gnu.org>
21000
21001 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
21002
210032008-05-16 Eli Zaretskii <eliz@gnu.org>
21004
21005 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
21006 and st_gid.
21007
21008 * frame.c (Fdelete_frame): Don't call font_update_drivers if
21009 HAVE_WINDOW_SYSTEM is not defined.
21010
21011 * xfaces.c (merge_face_ref, merge_face_vectors)
21012 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
21013 HAVE_WINDOW_SYSTEM is defined.
21014 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
21015
210162008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
21017
21018 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
21019
210202008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21021
21022 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
21023
210242008-05-15 Kenichi Handa <handa@m17n.org>
21025
21026 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
21027 preference.
21028
210292008-05-15 Glenn Morris <rgm@gnu.org>
21030
21031 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
21032
210332008-05-15 Chong Yidong <cyd@stupidchicken.com>
21034
21035 * fns.c (init_fns): Don't initialize weak_hash_tables here.
21036 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
21037
21038 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
21039
210402008-05-15 Kenichi Handa <handa@m17n.org>
21041
21042 * ftfont.c (ftfont_list): Downcase family name to check generic
21043 families.
21044
21045 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
21046 font-spec for QCfont value.
21047
21048 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
21049 buffer. Check the return value of it.
21050
210512008-05-14 Jason Rumney <jasonr@gnu.org>
21052
21053 * w32term.c (w32_get_glyph_overhangs): Remove.
21054 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
21055
210562008-05-14 Kenichi Handa <handa@m17n.org>
21057
21058 * font.c (font_prop_validate): Make nil a valid value.
21059 (font_clear_cache): Check if the cached vector of entities is nil
21060 or not.
21061
210622008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21063
21064 * emacs.c (main_thread): Conditionalize on
21065 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21066 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
21067
21068 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
21069 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
21070 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
21071
210722008-05-14 Kenichi Handa <handa@m17n.org>
21073
21074 * coding.c (detect_coding_iso_2022): Ignore a coding category that
21075 has no corresponding coding system.
21076
210772008-05-14 Jason Rumney <jasonr@gnu.org>
21078
21079 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
21080
21081 * w32font.h (w32font_open_internal): Update declaration.
21082
21083 * w32font.c (w32font_open_internal): Change last argument from
21084 w32font_info struct to font object. Fill in font object from
21085 font_entity. Get Outline metrics if possible. Use them to
21086 calculate underline position and thickness. Use xlfd name as name
21087 property. Don't set codepage.
21088 (w32font_open): Pass font_object to w32font_open_internal. Don't
21089 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
21090 (w32font_draw): Use s->font.
21091 (clear_cached_metrics): Don't clear non-existent blocks.
21092
21093 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
21094 font was not found.
21095 (x_draw_glyph_string): Use underline position and thickness from font.
21096
21097 * w32uniscribe.c (uniscribe_open): Pass font_object to
21098 w32font_open_internal.
21099
211002008-05-14 Kenichi Handa <handa@m17n.org>
21101
21102 These changes are to delete all legacy font-handling codes, and
21103 make Emacs use only font-backends.
21104
21105 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
21106 (frame.o, image.o, print.o): Depend on $(FONTSRC).
21107
21108 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
21109
21110 * charset.h (Vcharset_non_preferred_head)
21111 (Vcurrent_iso639_language): Extern them.
21112
21113 * charset.c (Vcharset_non_preferred_head): New variable.
21114 (Vcurrent_iso639_language): New variable.
21115 (syms_of_charset): Declare it as a Lisp variable.
21116 (char_charset): Don't check non preferred charsets. As a last
21117 resort, return charset_unicode.
21118 (Fset_charset_priority): Update Vcharset_non_preferred_head.
21119
21120 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
21121 conditionals. Don't check enable_font_backend. Delete all codes
21122 used only when USE_FONT_BACKEND is not defined.
21123
21124 * dispextern.h (struct glyph_string): Change type of `font' to
21125 `struct font *'.
21126 (struct glyph_string): New member underline_position and
21127 underline_thickness.
21128 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
21129 (struct face): Change type of `font' to `struct font *'.
21130 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
21131 (per_char_metric, encode_char): Delete externs.
21132 (calc_pixel_width_or_height): Adjust the prototype.
21133
21134 * emacs.c (enable_font_backend): Delete extern.
21135 (main): Don't set enable_font_backend. Don't check the command
21136 line argument "-disable-font-backend".
21137
21138 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
21139 (enum font_property_index): New members FONT_DPI_INDEX,
21140 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
21141 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
21142 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
21143 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
21144 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
21145 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
21146 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
21147 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
21148 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 21149 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
21150 (struct font): Many members from old "struct font_info" moved to
21151 here. Members font and entity deleted.
21152 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
21153 the new font-related objects.
21154 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
21155 (CHECK_FONT_GET_OBJECT): Likewise.
21156 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 21157 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
21158 (struct font_driver): New members case_sensitive anc check.
21159 Type of the member list and open changed.
aac0c6e3
MR
21160 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
21161 (font_symbolic_width, font_find_object, font_get_spec)
21162 (font_set_lface_from_name): Delete extern.
21163 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
21164
21165 * font.c: Include <strings.h>.
21166 (enable_font_backend): Delete it.
21167 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
21168 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 21169 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
21170 (null_string): Delete it.
21171 (null_vector): Make it static.
21172 (font_family_alist): Delete it.
21173 (Qnormal): Extern it.
21174 (QCextra, QClanguage): Delete it.
21175 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
21176 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 21177 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 21178 the string. Callers changed.
bba3e508 21179 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
21180 objects.
21181 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
21182 (font_style_to_value, font_style_symbolic): New function.
21183 (build_font_family_alist): Delete it.
21184 (font_registry_charsets): Use Fassoc_string instead of
21185 assq_no_quit.
21186 (font_prop_validate_symbol): Don't return null_string.
bba3e508 21187 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
21188 style-related values in a font vector.
21189 (font_property_table): Delete entries for QClanguage and
21190 QCantialias, add entries for QCavgwidth.
21191 (get_font_prop_index): Delete the 2nd argument FROM.
21192 (font_prop_validate): Arguments changed.
bba3e508 21193 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
21194 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
21195 (font_parse_fcname, font_unparse_fcname)
21196 (font_prepare_composition): Likewise.
ef1b0ba7 21197 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 21198 (otf_open): Delete the 1st arg entity.
bba3e508 21199 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
21200 (font_score): New arg alternate_families. Adjusted for the change
21201 of font-related objects.
21202 (font_sort_entites): New arg best_only.
21203 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
21204 Delete them.
21205 (font_match_p): Check alternate families.
21206 (font_find_object): Delete it.
21207 (font_check_object): New function.
bba3e508 21208 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
21209 (font_delete_unmatched): New arg.
21210 (font_list_entities): Call font_driver->list with a spec that
21211 doesn't specify style-related properties.
21212 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 21213 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
21214 (font_close_object, font_has_char, font_encode_char)
21215 (font_get_name, font_get_spec): Likewise.
21216 (font_spec_from_name, font_clear_prop, font_update_lface):
21217 New functions.
21218 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21219 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 21220 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
21221 (font_range): New function.
21222 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 21223 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 21224 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 21225 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
21226 (Finternal_set_font_style_table): Arguments changed.
21227 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 21228 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
21229 change of font-related objects.
21230 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21231
21232 * fontset.h (struct font_info): Delete it. Most members go to
21233 struct font.
ef1b0ba7 21234 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
21235 (enum FONT_SPEC_INDEX): Delete it.
21236 (font_info, list_fonts_func, load_font_func, query_font_func)
21237 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
21238 (get_font_repertory_func, new_fontset_from_font_name):
21239 Delete externs.
aac0c6e3
MR
21240 (fontset_from_font_name): Extern it.
21241 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21242 (FONT_INFO_FROM_FACE): Deleted.
21243 (face_for_font): Adjust prototype.
21244
21245 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21246 conditionals. Don't check enable_font_backend. Delete all codes
21247 used only when USE_FONT_BACKEND is not defined.
21248 (get_font_info_func, list_font_func, load_font_func)
21249 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21250 (get_font_repertory_func): Delete them.
21251 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21252 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21253 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21254 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21255 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21256 (fontset_compare_rfontdef): New function.
21257 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21258 rfont-defs by qsort. Adjusted for the change of font-group vector.
21259 (load_font_get_repertory): Deleted.
21260 (fontset_find_font): Use new macros to ref/set elements of
21261 font-def and rfont-def.
21262 (fontset_font): Fix the timing of remembering that no font for C.
21263 (free_face_fontset): Do nothing if the face has no fontset.
21264 (face_suitable_for_char_p): Use new macros to ref/set elements of
21265 rfont-def.
21266 (face_for_char): Likewise. Call face_for_char with font_object.
21267 (fs_load_font): Delete. Delete #pragma surrounding it.
21268 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 21269 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
21270 font-spec.
21271 (Fset_fontset_font): Likewise. Use new macros to set elements of
21272 font-def.
21273 (Fnew_fontset): Use font_unparse_xlfd to generate
21274 FONTSET_ASCII (fontset).
21275 (new_fontset_from_font_name): Deleted.
ef1b0ba7 21276 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
21277 a fontset is already created for the font. FIx updating of
21278 Vfontset_alias_alist.
21279 (fontset_ascii_font): Deleted.
bba3e508 21280 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
21281 (Finternal_char_font): Likewise.
21282 (Ffontset_info): Likewise.
21283 (syms_of_fontset): Don't check load_font_func.
21284
21285 * fns.c (internal_equal): Handle PREV_FONT.
21286
21287 * frame.h: Delete USE_FONT_BACKEND conditional.
21288
21289 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21290 conditionals. Don't check enable_font_backend. Delete all codes
21291 used only when USE_FONT_BACKEND is not defined.
21292 (x_set_font): Call x_new_font, not x_new_fontset2.
21293 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21294 already set for the frame.
21295
bba3e508
SM
21296 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21297 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
21298 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21299 font property. If a font is scalable, set avgwidth property to 0.
21300 Set font-entity property by font_put_extra.
21301 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 21302 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21303 (ftfont_spec_pattern): New function.
21304 (ftfont_list): Return a list, not vector.
21305 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21306 (ftfont_list_family): Don't downcase names.
21307 (ftfont_free_entity): Deleted.
21308 (ftfont_open): Return a font-object. Adjusted for the change of
21309 struct font. Get underline_thickness and underline_position from
21310 font property. Don't update dpyinfo->smallest_font_height and
21311 dpyinfo->smallest_char_width.
21312 (ftfont_close): Don't free `struct font'.
bba3e508 21313 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
21314 (ftfont_encode_char, ftfont_text_extents): Likewise.
21315
21316 * ftxfont.c (ftxfont_list): Return a list, not vector.
21317 (ftxfont_open): Return a font-object. Adjusted for the change of
21318 struct font. Get underline_thickness and underline_position from
21319 font property. Don't update dpyinfo->smallest_font_height and
21320 dpyinfo->smallest_char_width.
21321 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 21322 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 21323
bba3e508
SM
21324 * image.c (image_ascent): Don't include "charset.h".
21325 Include "character.h" and "font.h".
aac0c6e3
MR
21326
21327 * lisp.h (enum pvec_type): New member PREV_FONT.
21328 (Fassoc_string): EXFUN it.
21329
21330 * print.c: Include font.h.
21331 (print_object): Handle font-related objects.
21332
21333 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21334 conditionals. Don't check enable_font_backend. Delete all codes
21335 used only when USE_FONT_BACKEND is not defined.
21336 (handle_auto_composed_prop): Do nothing if it->f is not on a
21337 window system. Check how many following characters can be
21338 displayed by the same font.
21339 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21340 'struct font *'.
21341 (get_char_face_and_encoding): Assign the whole encoding task to
21342 the `encode-char' method of a font driver.
bba3e508 21343 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
21344 face' and `struct glyph_string'.
21345 (fill_glyph_string): Likewise.
21346 (get_per_char_metric): Arguments changed.
bba3e508 21347 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
21348 and `struct glyph_string'.
21349 (produce_stretch_glyph, calc_line_height_property)
21350 (x_produce_glyphs): Likewise.
21351
21352 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21353 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
21354 used only when USE_FONT_BACKEND is not defined.
21355 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
21356 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21357 (Qp): Extern them.
21358 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21359 Deleted.
21360 (struct font_name): Deleted.
21361 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21362 (compare_fonts_by_sort_order): New function.
21363 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21364 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21365 Deleted.
21366 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21367 compare_fonts_by_sort_order.
21368 (Fx_font_family_list): Call Ffont_family_list.
21369 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21370 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21371 (face_symbolic_slant, face_symbolic_swidth)
21372 (split_font_name_into_vector, build_font_name_from_vector)
21373 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21374 (font_rescale_ratio, split_font_name, build_font_name)
21375 (free_font_names, sort_fonts, x_face_list_fonts)
21376 (face_font_available_p, sorted_font_list, cmp_font_names)
21377 (font_list_1, concat_font_list, font_list, remove_duplicates):
21378 Deleted.
21379 (Fx_list_fonts): Use Ffont_list.
21380 (LFACE_AVGWIDTH): Deleted.
21381 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21382 by FONTP.
21383 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21384 (set_lface_from_font_name): Delete it.
ef1b0ba7 21385 (set_lface_from_font): Rename from
aac0c6e3
MR
21386 set_lface_from_font_and_fontset. Caller changed. Don't set
21387 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21388 for face.
21389 (merge_face_vectors): Copy font-spec if necessary.
21390 Clear properties of the font-spec if necessary.
21391 (merge_face_ref): Clear properties of the font-spec if necessary.
21392 (Finternal_set_lisp_face_attribute): Likewise.
21393 (set_font_frame_param): Use font_load_for_lface to load a
21394 font-object, and call Fmodify_frame_parameters with it.
21395 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21396 font name by Ffont_xlfd_name.
21397 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21398 QCslant, and QCwidth.
21399 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21400 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21401 Compare fonts by EQ.
21402 (lookup_non_ascii_face): Deleted.
21403 (face_for_font): The 2nd argument changed.
21404 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21405 Check atomic font properties by case insensitive.
21406 (realize_non_ascii_face): Set face->overstrike correctly.
21407 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21408 (dump_realized_face): Get font name from
21409 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21410
21411 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21412 conditionals. Don't check enable_font_backend. Delete all codes
21413 used only when USE_FONT_BACKEND is not defined.
21414 (xic_create_xfontset): Original code deleted and renamed from
21415 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21416 (x_make_gc): Don't set GCFont in GCs.
21417 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21418 opened by "fixed".
21419 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21420 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21421 get_font_repertory_func.
21422
21423 * xfont.c: Include <stdlib.h> and "ccl.h".
21424 (struct xfont_info): New structure.
21425 (xfont_query_font): Deleted.
ef1b0ba7 21426 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 21427 moved from xterm.c.
bba3e508 21428 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 21429 (compare_font_names): New function.
ef1b0ba7
SM
21430 (xfont_list_pattern): Sort font names case insensitively.
21431 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
21432 (xfont_list): Return a list, not vector.
21433 (xfont_match): If the font doesn't have QCname property, generate
21434 a name from the other font properties.
21435 (xfont_open): Return a font-object. Adjusted for the change of
21436 struct font. Get underline_thickness and underline_position from
21437 font property. Don't update dpyinfo->smallest_font_height and
21438 dpyinfo->smallest_char_width.
21439 (xfont_close): Don't free struct font.
bba3e508 21440 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 21441 (xfont_done_face): Deleted.
bba3e508 21442 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
21443 (xfont_encode_char, xfont_draw): Likewise.
21444 (xfont_check): New function.
21445
bba3e508 21446 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 21447 callback function.
bba3e508
SM
21448 (xftfont_match): Adjust for the format change of font-entity.
21449 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
21450 font-object. Adjusted for the change of struct font. Return a
21451 font-object. Don't update dpyinfo->smallest_font_height and
21452 dpyinfo->smallest_char_width.
21453 (xftfont_close): Block input while calling XftFontClose.
21454 (xftfont_prepare_face): Don't block input while calling
21455 xftfont_get_colors. Adjusted for the change of struct font.
21456 (xftfont_shape): Return value of error case fixed.
21457
21458 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21459
21460 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21461 conditionals.
21462 (FONT_WIDTH): Return (f)->max_width.
21463 (struct x_display_info): Delete member `font'.
21464 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21465 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21466 (struct x_output): Change type of `font' to `struct font *'.
21467
21468 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21469 conditionals. Don't check enable_font_backend. Delete all codes
21470 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21471 (x_per_char_metric, x_encode_char): Deleted.
21472 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 21473 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
21474 `struct face'.
21475 (x_draw_glyph_string_foreground)
21476 (x_draw_composite_glyph_string_foreground): Likewise.
21477 (x_draw_glyph_string): Likewise. Use font->underline_position and
21478 font->underline_thickness.
ef1b0ba7 21479 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
21480 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21481 (x_check_font): Call `check' method of a font driver.
21482 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21483 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 21484 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 21485 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
21486 redisplay_interface'.
21487
21488 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21489 conditionals. Don't check enable_font_backend. Delete all codes
21490 used only when USE_FONT_BACKEND is not defined. Surround non-used
21491 code by "#ifdef OLD_FONT" and "endif".
21492 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21493
21494 * w32font.h (struct w32font_info): New member.
21495 (FONT_COMPAT): New macro.
21496 (w32font_open_internal): Prototype adjusted.
21497
21498 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21499 OLD_FONT" and "endif".
21500
21501 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21502 conditionals. Don't check enable_font_backend. Delete all codes
21503 used only when USE_FONT_BACKEND is not defined.
21504 (w32font_open): Return a font-object. Make a font-object by
21505 font_make_object. Adjusted for the change of struct w32font_info.
21506 (w32font_close): Don't free struct font. Adjusted for the change
21507 of struct w32font_info.
21508 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 21509 Adjust for the change of struct w32font_info.
aac0c6e3
MR
21510 (w32font_draw): Likewise.
21511 (w32font_list_internal): Return a list, not vector.
21512 (w32font_open_internal): Change the 4th arg to font-object.
21513 Adjusted for the change of struct w32font_info and font-object format.
21514 (add_font_name_to_list): Don't downcase names.
21515 (w32_enumfont_pattern_entity): Make a font-entity by
21516 font_make_entity. Adjusted for the format change of font-entity.
21517 Use FONT_SET_STYLE to set a style-related font property. If a
21518 font is scalable, set avgwidth property to 0. Set font-entity
21519 property by font_put_extra.
bba3e508 21520 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
21521 (w32_weight_table, w32_decode_weight): New variables.
21522 (w32_encode_weight): New function.
bba3e508 21523 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
21524 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21525 weight value.
bba3e508 21526 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21527
21528 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21529 conditionals. Don't check enable_font_backend. Surround non-used
21530 code by "#ifdef OLD_FONT" and "endif".
21531 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 21532 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
21533
21534 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21535 conditionals. Don't check enable_font_backend. Delete all codes
21536 used only when USE_FONT_BACKEND is not defined. Surround non-used
21537 code by "#ifdef OLD_FONT" and "endif".
21538
21539 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21540 (uniscribe_open): Return value changed to font-object.
21541 Adjusted for the format change of font-object.
bba3e508 21542 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 21543 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 21544 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
21545 font_driver.
21546
215472008-05-13 Chong Yidong <cyd@stupidchicken.com>
21548
21549 * dispnew.c (update_frame_1): Check if tty output is still valid
21550 before flushing it.
21551
215522008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21553
21554 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21555 to Gtk+ menus.
21556
215572008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21558
21559 * dired.c (file_name_completion): Tweak the code so as to always do it
21560 in a single pass. Tighten the scope of some variables.
21561
21562 * dired.c (Qdefault_directory): New var.
21563 (file_name_completion): Use it instead of Fexpand_file_name.
21564 (syms_of_dired): Initialize it.
21565
215662008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21567
21568 * fileio.c (double_dollars): Remove dead code.
21569
215702008-05-10 Eli Zaretskii <eliz@gnu.org>
21571
21572 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21573 Mention w32-get-true-file-attributes in doc string.
21574
21575 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21576
215772008-05-09 Glenn Morris <rgm@gnu.org>
21578
21579 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21580 2008-04-23.
21581
215822008-05-09 Eli Zaretskii <eliz@gnu.org>
21583
21584 Support for reporting owner and group of each file on MS-Windows:
21585 * dired.c (stat_uname, stat_gname): New functions, with special
21586 implementation for w32.
21587 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21588
21589 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21590 (dflt_group_name): New static variable.
21591 (dflt_group): Rename from the_group.
21592 (init_user_info): Init dflt_group fields. Get user's group name
21593 from LookupAccountSid.
21594 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21595 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21596 New initialization states.
21597 (globals_of_w32): Initialize them to zero. Initialize the default
21598 group name to "None".
21599 (GetFileSecurity_Name): New global var, the name of the function
21600 to call for GetFileSecurity.
21601 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21602 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21603 (get_file_security, get_security_descriptor_owner)
21604 (get_security_descriptor_group, is_valid_sid)
21605 (get_file_security_desc, get_rid, get_name_and_id)
21606 (get_file_owner_and_group): New functions.
21607 (stat): Use get_file_security_desc and get_file_owner_and_group to
21608 report the owner and primary group of each file. Don't ignore the
21609 high 32 bits of file's size, now that st_size is 64-bit wide.
21610 Fix test when to get true file attributes.
21611 (init_user_info): Use get_rid instead of equivalent inline code.
21612 (fstat): Don't ignore the high 32 bits of file's size.
21613
216142008-05-09 Chong Yidong <cyd@stupidchicken.com>
21615
21616 * image.c (png_load): Use correct bit-depth for setting background
21617 color.
21618
216192008-05-08 Eli Zaretskii <eliz@gnu.org>
21620
21621 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21622 epa-hook.elc.
21623
216242008-05-08 Juanma Barranquero <lekktu@gmail.com>
21625
21626 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21627
216282008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21629
21630 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21631 because the original parameters are in pure storage now.
21632 (mac_window): Remove unused params. Update callers.
21633
216342008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21635
21636 * lread.c (substitute_object_recurse): Use lower-level primitives.
21637 Don't signal errors when traversing sub-char-tables.
21638 Don't loop over all the possible characters when traversing char-tables.
21639
21640 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21641 just like we do in print.c.
21642
216432008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21644
21645 * minibuf.c (Ftry_completion): Remove code left over from when we used
21646 scmp instead of Fcompare_strings.
21647
216482008-05-04 Juanma Barranquero <lekktu@gmail.com>
21649
21650 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21651
216522008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21653
21654 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21655 Create bitmap context in native byte order.
21656
21657 * macterm.c (XDrawLine)
21658 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21659 context in native byte order.
21660
216612008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21662
21663 * config.in: Regenerate.
21664
21665 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21666 New definitions for Image I/O support.
21667 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21668 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21669 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21670 (mac_data_provider_release_data, image_load_image_io)
21671 [USE_MAC_IMAGE_IO]: New functions.
21672 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21673 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21674 (init_image_func_pointer) [MAC_OSX]: Remove function.
21675 (image_load_quartz2d) [MAC_OSX]: Check availability of
21676 CGImageCreateWithPNGDataProvider at compile time.
21677 Use lowercase `false' for boolean constant.
21678 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21679 Use image_load_image_io.
21680 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21681 Don't check MyCGImageCreateWithPNGDataProvider.
21682 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21683 Don't call init_image_func_pointer.
21684
21685 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21686
21687 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21688 Make variable non-static.
21689 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21690 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21691
21692 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21693 (RED_FROM_ULONG): Mask off higher bits.
21694 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21695
21696 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21697 Include AvailabilityMacros.h.
21698 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21699 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21700
217012008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21702
21703 * chartab.c (Fset_char_table_range): If range is t, really set all
21704 chars to that value.
21705
217062008-05-03 Eli Zaretskii <eliz@gnu.org>
21707
21708 * dired.c (Ffile_attributes): Don't allow the device number become
21709 negative.
21710
217112008-05-02 Daiki Ueno <ueno@unixuser.org>
21712
21713 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21714
217152008-05-02 Juri Linkov <juri@jurta.org>
21716
21717 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21718 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21719 DEFAULT argument as a list of default values in docstrings.
21720
217212008-05-01 Chong Yidong <cyd@stupidchicken.com>
21722
21723 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21724
217252008-05-01 Martin Rudalics <rudalics@gmx.at>
21726
21727 * dispnew.c (change_frame_size_1): Preserve small windows when
21728 shrinking frames by calling set_window_height|width with third
21729 arg 2.
21730
21731 * window.h (struct window): Replace field too_small_ok by field
21732 resize_proportionally.
21733
21734 * window.c (make_window): Initialize resize_proportionally.
21735 (enlarge_window): Temporarily set resize_proportionally to make
21736 sure that shrink_windows does scale the window proportionally.
21737 (shrink_windows): When window has resize_proportionally set try
21738 to shrink it proportionally by stealing from other windows.
21739 (struct saved_window, Fset_window_configuration)
21740 (compare_window_configurations): Handle resize_proportionally.
21741 (WINDOW_TOTAL_SIZE): New macro.
21742 (window_min_size, shrink_windows, size_window): Use it.
21743 (check_min_window_sizes): Remove. Invalid values of
21744 window-min-height|width are handled by window_min_size_2 now.
21745 (size_window, Fsplit_window, enlarge_window)
21746 (adjust_window_trailing_edge, grow_mini_window): Don't call
21747 check_min_window_sizes.
21748 (window_min_size_2, window_min_size_1, window_min_size):
21749 New argument safe_p for retrieving "safe" minimum sizes.
21750 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21751 (adjust_window_trailing_edge, grow_mini_window):
21752 Adjust arguments of window_min_size... functions.
21753 (shrink_windows): Argument min_size removed. New argument
21754 safe_p allows shrinking windows to their safe minimum sizes.
21755 Calculate minimum size and decide whether a window shall be
21756 deleted for each window individually.
21757 (size_window): When nodelete_p equals 2, tell shrink_windows to
21758 delete windows only if their new minimum size is no more safe.
21759 (shrink_window_lowest_first): Call window_min_size_1 to make
21760 sure to preserve modeline of bottom-most window when resizing
21761 the minibuffer.
21762 (Fset_window_configuration, Fcurrent_window_configuration)
21763 (compare_window_configurations): Do not handle
21764 window-min-height|width any more.
21765 (syms_of_window): Clarify window-min-height|width doc-strings.
21766
217672008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21768
21769 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21770 some more. Copy some of the code from Ftry_completions.
21771 Remove special case code that dates back to initial revision when the
21772 slash was only added when necessary and that can't trigger nowadays.
21773
217742008-04-27 Kenichi Handa <handa@m17n.org>
21775
21776 * font.c (font_prop_validate): Signal `error' instead of `font'.
21777
217782008-04-29 Jason Rumney <jasonr@gnu.org>
21779
21780 * w32fns.c (Fw32_battery_status): New defun.
21781 (syms_of_w32fns): Defsubr it.
21782
217832008-04-28 Andreas Schwab <schwab@suse.de>
21784
21785 * dired.c (file_name_completion): Fix another mixing of encoded
21786 and decoded names.
21787
217882008-04-28 Juanma Barranquero <lekktu@gmail.com>
21789
21790 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21791
217922008-04-27 Juanma Barranquero <lekktu@gmail.com>
21793
21794 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21795
217962008-04-27 Andreas Schwab <schwab@suse.de>
21797
21798 * dired.c (file_name_completion): Fix inappropriate mixing of
21799 encoded and decoded names.
21800
21801 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21802
21803 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21804
218052008-04-26 Eli Zaretskii <eliz@gnu.org>
21806
21807 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21808 2008-03-31, it's not needed anymore with `struct stat' definition
21809 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21810 for the same reasons.
21811
218122008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21813
21814 * m/sparc.h: Additional redefinitions for GNU/Linux.
21815
218162008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21817
21818 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21819 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21820 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21821 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21822 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21823 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21824 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21825 Likewise.
21826
21827 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21828 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21829 (mac_ax_number_of_characters): Add externs.
21830 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21831 [USE_MAC_TSM]: Likewise.
21832 (mac_handle_text_input_event) [MAC_OSX]:
21833 Handle kEventTextInputOffsetToPos for no active input area case.
21834 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21835 (mac_handle_document_access_event)
21836 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21837 (install_application_handler) [MAC_OSX]: Register handlers for
21838 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21839 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21840 Register mac_handle_document_access_event.
21841
21842 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21843 Make functions non-static.
21844
218452008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21846
21847 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21848 (read_file_name_completion_ignore_case, insert_default_directory)
21849 (Qdefault_directory): Move to minibuffer.el.
21850 (Fread_file_name): Call the new `read-file-name' instead.
21851
218522008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21853
21854 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21855 Make function non-static.
21856 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21857 Remove function.
21858 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21859 Move to mactoolbox.c.
21860 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21861
21862 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21863 (mac_rect_make): New macro.
21864
21865 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21866 instead of float.
21867 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21868 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21869 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21870 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21871 CGRectMake.
21872 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21873 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21874 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21875 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21876 instead of WindowRef in argument type.
21877 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21878 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21879 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21880 instead of DISPLAY. All uses changed.
21881 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21882 (x_calc_absolute_position): Simplify so as not to use
21883 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21884
21885 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21886 instead of WindowRef in argument type.
21887 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21888 [TARGET_API_MAC_CARBON]: Remove externs.
21889 (create_apple_event, mac_event_parameters_to_lisp)
21890 [TARGET_API_MAC_CARBON]: Add externs.
21891
21892 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21893 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21894 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21895 is clicked.
21896 (x_activate_menubar): Remove extern for saved_menu_event_location.
21897 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21898 Move from mac.c.
21899
219002008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21901
21902 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21903 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21904
219052008-04-23 Jason Rumney <jasonr@gnu.org>
21906
21907 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21908 attributes only for local files.
21909
21910 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21911 default to Qlocal.
21912
219132008-04-22 Juri Linkov <juri@jurta.org>
21914
21915 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21916 read-buffer-to-switch instead of using the letter "B".
21917
219182008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21919
21920 * fileio.c (Qdefault_directory): New variable.
21921 (Fread_file_name): Use it to pass `dir' to the completion functions.
21922
219232008-04-20 Chong Yidong <cyd@stupidchicken.com>
21924
21925 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21926
219272008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21928
21929 * keyboard.c (Vpre_help_message): Remove.
21930 (show_help_echo): Remove default C code.
21931
21932 * dired.c (directory_files_internal, file_name_completion):
21933 Only call ENCODE_FILE if the string is indeed decoded.
21934
219352008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21936
21937 * Makefile.in (TOOLKIT_DEFINES): Remove.
21938 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21939
219402008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21941
21942 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21943 (mactoolbox.o): New target.
21944
21945 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21946 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21947
21948 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21949 Use mac_set_frame_window_background instead of XSetWindowBackground.
21950 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21951 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21952 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21953 instead of SetWindowTitleWithCFString.
21954 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21955 Move function to mactoolbox.c.
21956 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21957 Use mac_set_window_modified instead of SetWindowModified.
21958 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21959 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21960 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21961 FrontNonFloatingWindow. Use mac_activate_window instead of
21962 ActivateWindow. Use mac_active_non_floating_window instead of
21963 ActiveNonFloatingWindow.
21964 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21965 Use mac_show_hourglass and mac_hide_hourglass.
21966 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21967 instead of GetGlobalMouse.
21968 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21969 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21970 Use mac_bring_window_to_front instead of BringToFront.
21971 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21972 mactoolbox.c.
21973 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21974 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21975 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21976 mactoolbox.c.
21977
21978 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21979 (XtPointer): Move typedef from macmenu.c.
21980 (enum button_type): Move enum from macmenu.c.
21981 (widget_value): Move typedef from macmenu.c.
21982 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21983 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21984 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21985 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21986 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21987 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21988 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21989 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21990 (Selection): Move typedef from macselect.c.
21991 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21992 macterm.c.
21993 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21994 (mac_is_window_collapsed, mac_bring_window_to_front)
21995 (mac_send_window_behind, mac_hide_window, mac_show_window)
21996 (mac_collapse_window, mac_front_non_floating_window)
21997 (mac_active_non_floating_window, mac_activate_window)
21998 (mac_move_window_structure, mac_move_window, mac_size_window)
21999 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
22000
22001 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
22002 (enum mac_menu_kind): Move enum to mactoolbox.c.
22003 (min_menu_id): Move variable to mactoolbox.c.
22004 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
22005 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
22006 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22007 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22008 [TARGET_API_MAC_CARBON]: Likewise.
22009 (XtPointer): Move typedef to macgui.h.
22010 (enum button_type): Move enum to macgui.h.
22011 (widget_value): Move typedef to macgui.h.
22012 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
22013 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
22014 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
22015 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
22016 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
22017 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
22018 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
22019 (popup_activated_flag): Make variable non-static.
22020 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
22021 (add_menu_item, fill_menu, dispose_menus):
22022 Move functions to mactoolbox.c.
22023 (restore_show_help_function, menu_target_item_handler)
22024 (install_menu_target_item_handler, mac_handle_dialog_event)
22025 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
22026 [TARGET_API_MAC_CARBON]: Likewise.
22027 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
22028 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22029 (find_and_call_menu_selection, name_is_separator): Make function
22030 non-static.
22031 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
22032 to mactoolbox.c.
22033 (set_frame_menubar): Don't call install_menu_quit_handler.
22034 (menu_item_selection): New variable.
22035 (mac_menu_show): Use create_and_show_popup_menu.
22036 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
22037 selection but set variable menu_item_selection. All uses changed.
22038 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
22039 Call install_menu_quit_handler. Move to mactoolbox.c.
22040
22041 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
22042 (Selection): Move typedef to macgui.h.
22043 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
22044 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
22045 Make variables non-static.
22046 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22047 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
22048 Make functions non-static.
22049 (Vmac_service_selection) [MAC_OSX]: Likewise.
22050 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
22051 (mac_valid_selection_target_p, mac_clear_selection)
22052 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22053 (mac_put_selection_value, mac_selection_has_target_p)
22054 (mac_get_selection_value, mac_get_selection_target_list)
22055 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
22056 Move functions to mactoolbox.c.
22057 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
22058 Likewise.
22059 (copy_scrap_flavor_data, mac_handle_service_event)
22060 (install_service_handler) [MAC_OSX]: Likewise.
22061 (syms_of_macselect) <Vmac_dnd_known_types>:
22062 Use mac_dnd_default_known_types.
22063
22064 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
22065 Move to mactoolbox.c.
22066 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
22067 (Fx_selection_owner_p): Add EXFUN.
22068 (install_window_handler, remove_window_handler, XSetWindowBackground):
22069 Remove externs.
22070 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
22071 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
22072 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
22073 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
22074 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
22075 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
22076 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
22077 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
22078 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
22079 (create_and_show_popup_menu, mac_get_selection_from_symbol)
22080 (mac_valid_selection_target_p, mac_clear_selection)
22081 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
22082 (mac_put_selection_value, mac_selection_has_target_p)
22083 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
22084 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
22085 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
22086 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
22087 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
22088 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
22089 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
22090 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22091 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
22092
22093 * mactoolbox.c: New file.
22094
220952008-04-18 Jason Rumney <jasonr@gnu.org>
22096
22097 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
22098
220992008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
22100
22101 * character.c (Fmultibyte_char_to_unibyte):
22102 Return latin1 chars unchanged.
22103
22104 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
22105 relocated if it points to `name'.
22106
221072008-04-17 Kenichi Handa <handa@m17n.org>
22108
22109 * data.c (Faset): Allow setting a multibyte character in an
22110 ASCII-only unibyte string.
22111
22112 * lisp.h (STRING_SET_MULTIBYTE): New macro.
22113
221142008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
22115
22116 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
22117 done in config.h.
22118
221192008-04-16 Juanma Barranquero <lekktu@gmail.com>
22120
22121 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
22122 (Fchar_direction): Add usage in the docstring.
22123
221242008-04-15 Chong Yidong <cyd@stupidchicken.com>
22125
22126 * keyboard.c (read_key_sequence): Remove always-true checks.
22127
221282008-04-14 Jason Rumney <jasonr@gnu.org>
22129
22130 * w32font.c (w32font_open_internal): Set max_bounds.descent in
22131 compatibility struct, for better underline positioning.
22132
221332008-04-13 David Hansen <david.hansen@gmx.net>
22134
22135 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
22136 string.
22137
221382008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
22139
22140 * m/hp800.h (XUINT, XSET): Remove.
22141
221422008-04-12 Juanma Barranquero <lekktu@gmail.com>
22143
22144 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
22145 previous change.
22146
221472008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
22148
22149 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
22150 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
22151
221522008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22153
22154 * keymap.h (map_keymap_canonical): Declare.
22155 * xmenu.c (single_keymap_panes): Use it.
22156
221572008-04-11 Glenn Morris <rgm@gnu.org>
22158
22159 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
22160 set the target's value to that of the alias.
22161
221622008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
22163
22164 * term.c (set_tty_color_mode): Left over typo.
22165
221662008-04-10 Michael Albinus <michael.albinus@gmx.de>
22167
22168 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
22169 only after check for file name handler functions. Signal, when
22170 native functionality is not supported.
22171 (syms_of_fileio): Declare it unconditionally.
22172
221732008-04-10 Jason Rumney <jasonr@gnu.org>
22174
22175 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
22176 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
22177
22178 * w32.c (logon_network_drive): Also logon to remote drives that
22179 are mapped to drive letters.
22180
221812008-04-10 Glenn Morris <rgm@gnu.org>
22182
22183 * xdisp.c (truncate-partial-width-windows): Doc fix.
22184
221852008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
22186
22187 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
22188 Move functions to minibuffer.el.
22189 (syms_of_fileio): Don't declare them.
22190
221912008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22192
22193 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
22194 (syms_of_minibuf): Remove its initialization.
22195
22196 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
22197
221982008-04-09 Juanma Barranquero <lekktu@gmail.com>
22199
22200 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
22201
222022008-04-09 Jason Rumney <jasonr@gnu.org>
22203
22204 * makefile.w32-in (distclean): Delete makefile too.
22205 (maintainer-clean): New target.
22206
22207 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
22208
22209 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
22210 for new font backend and composite cases.
22211
222122008-04-09 Jan Djärv <jan.h.d@swipnet.se>
22213
22214 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
22215 Most of the code moved to run_timers.
22216 (do_pending_atimers): Call run_timers.
22217 (run_timers): New function.
22218
22219 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22220 run atimers.
22221
22222 * process.c (wait_reading_process_output): The same as above.
22223
222242008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22225
22226 * minibuf.c (last_exact_completion): Remove variable.
22227 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22228 (complete_and_exit_1, complete_and_exit_2)
22229 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22230 (Fdisplay_completion_list, display_completion_list_1)
22231 (Fminibuffer_completion_help, Fself_insert_and_exit)
22232 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22233 minibuffer.el.
22234 (syms_of_minibuf): Remove corresponding initializations.
22235
22236 * keyboard.c (Qdeactivate_mark): New var.
22237 (command_loop_1): Use it to call `deactivate-mark'.
22238 (syms_of_keyboard): Initialize it.
22239
22240 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22241 to another frame.
22242 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22243 Don't call set_tty_color_mode.
22244 (store_frame_param): Reset previous_frame rather than call
22245 set_tty_color_mode.
22246 * term.c (set_tty_color_mode): Rewrite.
22247 * dispextern.h (set_tty_color_mode): New type.
22248 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22249
222502008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22251
22252 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22253 for generic chars, which do not exist any more in emacs-unicode.
22254
222552008-04-08 Michael Albinus <michael.albinus@gmx.de>
22256
22257 * coding.c (detect_coding_emacs_mule)
22258 (Ffind_operation_coding_system): Fix typo.
22259
222602008-04-08 Jason Rumney <jasonr@gnu.org>
22261
22262 * w32uniscribe.c (SNAME): Extract only symbol name.
22263
22264 * w32font.h (struct w32_metric_cache): New struct.
22265 (w32font_info): Use it.
22266 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22267 (CACHE_BLOCKSIZE): New constants.
22268
22269 * w32font.c (Qja, Qko, Qzh): New symbols.
22270 (syms_of_w32font): Initialise them.
22271 (font_matches_spec): Use them to filter by language.
22272 (recompute_cached_metrics): Remove function.
22273 (compute_metrics, clear_cached_metrics): New functions.
22274 (w32font_encode_char): Use them to manage metric cache.
22275 (w32font_text_extents): Cache metrics for all glyphs on demand.
22276 Delay converting glyph indices to WORD until needed.
22277 (w32font_open_internal): Initialize metric cache to empty.
22278 (registry_to_w32_charset): Charset should always be a symbol.
22279 (fill_in_logfont, list_all_matching_fonts): Family should
22280 always be a symbol.
22281
222822008-04-06 Jason Rumney <jasonr@gnu.org>
22283
22284 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22285 Give up if glyph indices not supported. Use uniscribe obtained
22286 ABC widths for individual metrics. Map glyph clusters back to
22287 characters using fClusterStart flag. Return number of glyphs
22288 produced, not chars processed.
22289 (uniscribe_shape): Map char at FROM to current glyph.
22290
222912008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22292
22293 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22294 Use SetMenuItemHierarchicalMenu.
22295
222962008-04-05 Jason Rumney <jasonr@gnu.org>
22297
22298 * image.c (pbm_load): Allow color values up to 65535.
22299 Throw an error if max_color_idx is outside the supported range.
22300 Report an error when image size is invalid.
22301 Read two bytes at a time when raw images have max_color_idx above 255.
22302
aac0c6e3
MR
223032008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22304
22305 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22306 append "CCL: Quitted" when the CCL program is quitted.
22307 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22308
22309 * ccl.h (struct ccl_program): New member quit_silently.
22310
223112008-04-05 Chong Yidong <cyd@stupidchicken.com>
22312
22313 * search.c (compile_pattern_1): Treat non-nil and non-string of
22314 search-spaces-regexp as nil.
22315
22316 * minibuf.c (Fassoc_string): Tweak docstring.
22317
223182008-04-05 Eli Zaretskii <eliz@gnu.org>
22319
22320 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22321 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22322 2008-03-14 to force inode be positive.
22323
22324 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22325 _S_* ones, since we now use our own sys/stat.h.
22326 (stat, fstat): Don't mangle the inode number.
22327 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22328
223292008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22330
22331 * frame.h (struct frame): Give one more bit to `visible' since we use
22332 values larger than 1 to indicate obscured frames on ttys.
22333
22334 * keymap.c (Qkeymap_canonicalize): New var.
22335 (Fmap_keymap_internal): New fun.
22336 (describe_map): Use keymap-canonicalize.
22337
22338 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22339 (Fundo_boundary): Set them.
22340 (syms_of_undo): Initialize them.
22341 (record_point): Use them instead of last_point_position*.
22342 (last_undo_buffer): Change type.
22343
223442008-04-04 Jason Rumney <jasonr@gnu.org>
22345
22346 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22347 (recompute_cached_metrics): Don't set ascent and descent per char.
22348
22349 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22350 (uniscribe_check_otf): Add GC protection before consing.
22351 Rearrange loop for counting features.
22352
223532008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22354
22355 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22356 buffer with byte-size of source buffer.
22357
223582008-04-03 Chong Yidong <cyd@stupidchicken.com>
22359
22360 * callint.c (Fcall_interactively): Handle temporary region even
22361 when shift-select-mode is off.
22362
223632008-04-03 Jason Rumney <jasonr@gnu.org>
22364
22365 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22366
223672008-04-03 Kenichi Handa <handa@m17n.org>
22368
22369 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22370 (CATEGORY_MASK_UTF_16): Likewise.
22371 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22372 binary file.
22373 (detect_coding): Add null-byte detection for a binary file.
22374 (detect_coding_system): Likewise.
22375
223762008-04-03 Jason Rumney <jasonr@gnu.org>
22377
22378 * w32uniscribe.c: New file.
22379
22380 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22381
22382 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22383
22384 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22385 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22386 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22387 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22388 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22389 (Qphonetic): New symbols.
22390 (syms_of_w32font): Initialize them.
22391 (font_supported_scripts): Use them.
22392 (w32font_list_family): List all charsets.
22393 (w32font_text_extents, recompute_cached_metrics): Fix metric
22394 calculations.
22395 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22396 Give opentype fonts their own format.
22397 (font_matches_spec): New arguments backend and logfont.
22398 Handle :otf spec for uniscribe backend.
22399 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22400 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22401
22402 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22403 font backend.
22404 (globals_of_w32fns): Initialize uniscribe font backend.
22405
22406 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22407 dependencies.
22408 (w32uniscribe.$(O)): New file to build.
22409 (FONT_OBJ): Include w32uniscribe.$(O).
22410 (LIBS): Add uniscribe libraries.
22411
22412 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22413
224142008-04-02 Chong Yidong <cyd@stupidchicken.com>
22415
22416 * callint.c (Vshift_select_mode): New var.
22417 (Finteractive): Document new ^ spec.
22418 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22419 is present.
22420
22421 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22422 (command_loop_1): Avoid running the direct display versions of
22423 forward-char and backward-char if shift-selection may occur.
22424 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22425 shift-translation takes place.
22426
22427 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22428 avoid clobbering by define-minor-mode.
22429
22430 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22431 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22432
22433 * syntax.c (Fforward_word): Add ^ interactive spec.
22434
22435 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22436 (Fscroll_right): Add ^ interactive spec.
22437
224382008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22439
22440 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22441
22442 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22443
22444 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22445
224462008-03-31 Juri Linkov <juri@jurta.org>
22447
22448 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22449
224502008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22451
22452 * gtkutil.c (xg_set_geometry): Fix indentation.
22453 (xg_resize_outer_widget): Remove.
22454 (x_wm_size_hint_off): Fix indentation.
22455 (xg_frame_set_char_size): Call flush_and_sync after
22456 gtk_window_resize.
22457 (x_wm_set_size_hint): Pass NULL as geometry window to
22458 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22459 Add menu bar and tool bar height to base height.
22460 (xg_update_frame_menubar, free_frame_menubar)
22461 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22462 (update_frame_tool_bar, free_frame_tool_bar):
22463 Change xg_resize_outer_widget to xg_frame_set_char_size.
22464
224652008-03-30 Michael Albinus <michael.albinus@gmx.de>
22466
22467 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22468 (Fdbus_call_method): New parameter TIMEOUT.
22469 (dbus-send-signal): Optimize UNGCPRO call.
22470
224712008-03-29 Juri Linkov <juri@jurta.org>
22472
22473 * window.c (Fdisplay_buffer): Move call to
22474 Vsplit_window_preferred_function out of conditions that check
22475 if window is eligible for vertical splitting.
22476 When Vsplit_window_preferred_function is non-nil, call it and use
22477 its non-nil return value as window. Otherwise, continue doing
22478 vertical splitting using Fsplit_window with arg horflag=nil.
22479 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22480 default value from `split-window' to nil.
22481
224822008-03-29 Juri Linkov <juri@jurta.org>
22483
22484 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22485 for interactive code letters 'b' and 'B'.
22486
224872008-03-29 Eli Zaretskii <eliz@gnu.org>
22488
22489 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22490 multibyte string.
22491
224922008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22493
22494 * keyboard.c (pending_funcalls): New var.
22495 (timer_check): Run it.
22496 (syms_of_keyboard): Initialize it.
22497 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22498 (Vdelete_terminal_functions): New vars.
22499 (syms_of_terminal): Initialize them.
22500 (Fdelete_terminal): Run delete-terminal-functions.
22501 * xdisp.c (safe_eval): Rewrite.
22502 (safe_call2): New fun.
22503 * frame.c (Qdelete_frame_functions): New var.
22504 (syms_of_frame): Initialize it.
22505 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22506 * lisp.h (safe_call2, pending_funcalls): Declare.
22507
225082008-03-28 Andreas Schwab <schwab@suse.de>
22509
22510 * indent.c (Fmove_to_column): Move declaration before statements.
22511
225122008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22513
22514 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22515 (struct frame): Use bit fields for boolean vars.
22516
22517 * process.c (server_accept_connection): Simplify naming.
22518 (emacs_get_tty_pgrp): Use SDATA.
22519
22520 * coding.c (decode_coding_object): Fix last change.
22521
225222008-03-27 Jason Rumney <jasonr@gnu.org>
22523
22524 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22525
225262008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22527
22528 * charset.c (Fdefine_charset_internal): Change the way of
22529 registering charsets in Vcharset_order_list.
22530 (syms_of_charset): Make the charset `eight-bit' supplementary.
22531
225322008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22533
22534 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22535 operations, to avoid having the difference between pointers
22536 overflow.
22537
225382008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22539
22540 * indent.c (check_display_width): New fun.
22541 (scan_for_column): Use it.
22542
22543 * data.c (syms_of_data): Mark most-positive-fixnum and
22544 most-negative-fixnum as constants.
22545
22546 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22547
22548 * indent.c (scan_for_column): Extract from current_column_1.
22549 Merge with the same code from Fmove_to_column.
22550 (current_column_1, Fmove_to_column): Use it.
22551
225522008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22553
22554 * keymap.c (map_keymap_internal): New fun.
22555 (map_keymap): Use it.
22556 (Fmap_keymap_internal): New fun.
22557 (Fmap_keymap): Remove left-out test from before make_save_value.
22558
22559 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22560
22561 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22562 Use XCAR/XCDR.
22563
22564 * process.h (struct Lisp_Process): Remove filter_multibyte.
22565 * process.c (QCfilter_multibyte): Remove.
22566 (setup_process_coding_systems): Don't use filter_multibyte.
22567 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22568 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22569 (Fset_process_filter_multibyte): Change the coding-system to
22570 approximate the previous behavior.
22571 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22572 coding-system.
22573
22574 * coding.c (decode_coding_object): When not decoding into a buffer,
22575 obey the coding system's preference of (uni|multi)byte.
22576
225772008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22578
22579 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22580 every char is changed and has a different byte-length.
22581 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22582 Fix int -> EMACS_INT.
22583
225842008-03-23 David Hansen <david.hansen@gmx.net>
22585
22586 * dbusbind.c (xd_read_message): Remove extra copying of message
22587 strings. Check for NULL `interface' or `member'.
22588
225892008-03-22 Eli Zaretskii <eliz@gnu.org>
22590
22591 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22592 cFileName a file name that includes `?' characters, use the 8+3
22593 alias in cAlternateFileName instead.
22594
225952008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22596
22597 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22598
225992008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22600
22601 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22602 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22603 work on current_buffer only instead (that was already the case
22604 for some of the code anyway).
22605 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22606 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22607 (SET_PT, SET_PT_BOTH): Adjust.
22608 * intervals.h (set_point, temp_set_point, set_point_both)
22609 (temp_set_point_both): Remove redundant declarations.
22610
226112008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22612
22613 * fileio.c (Finsert_file_contents):
22614 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22615 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22616 when buffer != current_buffer anyway.
22617
226182008-03-20 Andreas Schwab <schwab@suse.de>
22619
22620 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22621 as default.
22622
226232008-03-19 Jason Rumney <jasonr@gnu.org>
22624
22625 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22626 (syms_of_w32fns): Initialize them.
22627 (HOURGLASS_ID): New constant.
22628 (x_window_to_frame): Don't check hourglass_window.
22629 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22630 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22631 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22632 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22633 Only change the cursor if hourglass is not active.
22634 (Fx_create_frame): Initialize frame's current_cursor.
22635 (hourglass_atimer): Remove.
22636 (hourglass_started): New function.
22637 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22638 (show_hourglass): Adapt to w32, changing argument to frame.
22639
22640 * w32term.h (struct w32_output): Remove hourglass_window.
22641 Add current_cursor.
22642
22643 * eval.c (call_debugger, Fsignal):
22644 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22645 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22646 (Fexecute_extended_command, cancel_hourglass_unwind):
22647 * minibuf.c (read_minibuf):
22648 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22649
226502008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22651
22652 * window.c (run_funs): New fun.
22653 (run_window_configuration_change_hook): Use it to run the buffer-local
22654 and the global part of the hook.
22655
22656 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22657 (unwind_format_mode_line): Restore selected window.
22658 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22659
226602008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22661
22662 * editfns.c (Fchar_equal): Check they are valid characters.
22663
22664 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22665
226662008-03-17 Andreas Schwab <schwab@suse.de>
22667
22668 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22669 against a charset.
22670
22671 * lisp.h (Fbuffer_list): Declare.
22672
226732008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 22674
aac0c6e3
MR
22675 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22676 handlebox_widget is != 0.
22677
226782008-03-16 Juri Linkov <juri@jurta.org>
22679
22680 * callint.c (Fcall_interactively): For interactive code letters
22681 'b' and 'B' put the buffer list into the list of default "future"
22682 values of the minibuffer.
22683
226842008-03-16 Andreas Schwab <schwab@suse.de>
22685
22686 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22687 modifiers.
22688
22689 * regex.c (re_match_2_internal): Correct matching of a charset
22690 against latin-1 characters.
22691
226922008-03-16 Kenichi Handa <handa@m17n.org>
22693
22694 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22695 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22696 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22697 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22698 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22699 CHAR_STRING_ADVANCE.
22700 (produce_chars): Fix for the case that the source and the
22701 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22702 instead of CHAR_STRING_ADVANCE.
22703 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22704 STRING_CHAR_ADVANCE.
22705
227062008-03-15 Andreas Schwab <schwab@suse.de>
22707
22708 * regex.c (re_match_2_internal): Correct matching of eight bit
22709 characters in unibyte strings.
22710
227112008-03-15 Martin Rudalics <rudalics@gmx.at>
22712
22713 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22714 at end of range when it coincides with the end of the buffer.
22715
227162008-03-14 Eli Zaretskii <eliz@gnu.org>
22717
22718 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22719
22720 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22721
227222008-03-14 Jason Rumney <jasonr@gnu.org>
22723
22724 * editfns.c (initial_tz): New variable.
22725 (syms_of_editfns): Initialize it.
22726 (Fset_time_zone_rule): Set it when first called.
22727 Use it when TZSTRING is nil.
22728
22729 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22730 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22731 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22732 (globals_of_w32fns): Initialize them.
22733 (compute_tip_xy): Use them to position tooltips.
22734
227352008-03-14 Glenn Morris <rgm@gnu.org>
22736
22737 * emacs.c (main): Revert previous change.
22738 (standard_args): Revert -internal-script back to -scriptload,
22739 and remove the long-option form.
22740
227412008-03-13 Glenn Morris <rgm@gnu.org>
22742
22743 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22744 Remove option -enable-font-backend.
22745
227462008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22747
22748 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22749
227502008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22751
22752 * xterm.c (x_connection_closed): For GTK: If this is the last
22753 terminal just exit without closing the display.
22754
227552008-03-11 Jason Rumney <jasonr@gnu.org>
22756
22757 * w32font.c (w32font_full_name): Use floor to round.
22758
f0131492 227592008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
22760
22761 * sound.c (alsa_configure): Declare vol at beginning of block.
22762
22763 * fontset.c (Ffontset_info): Remove extra semicolon.
22764
227652008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22766
22767 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22768 size of resulting string.
22769
227702008-03-10 Jason Rumney <jasonr@gnu.org>
22771
22772 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22773
227742008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22775
22776 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22777 Don't pretend as if characters with display property haven't been
22778 consumed for string-replacing-string case.
22779
227802008-03-08 Kim F. Storm <storm@cua.dk>
22781
22782 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22783 (get_next_display_element, next_element_from_string)
22784 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22785
227862008-03-08 Andreas Schwab <schwab@suse.de>
22787
22788 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22789
227902008-03-06 Jason Rumney <jasonr@gnu.org>
22791
22792 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22793 when charset not specified. Only translate ANSI to unicode when
22794 font_type is truetype.
22795 (w32font_coverage_ok): New function.
22796 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22797
227982008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22799
22800 * lread.c (Fread_char): Resolve modifiers.
22801 (Fread_char_exclusive): Likewise.
22802
22803 * character.c (char_resolve_modifier_mask): New function.
22804 (char_string): Use char_resolve_modifier_mask.
22805 (Fchar_resolve_modifiers): New function.
22806 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22807 function.
22808
228092008-03-04 Jason Rumney <jasonr@gnu.org>
22810
22811 * makefile.w32-in: Always include w32font.c in the build.
22812 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22813
228142008-03-04 Andreas Schwab <schwab@suse.de>
22815
22816 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22817 (versionclean): Likewise.
22818
228192008-03-04 Juanma Barranquero <lekktu@gmail.com>
22820
22821 * .cvsignore: Add oo.
22822
228232008-03-03 Andreas Schwab <schwab@suse.de>
22824
22825 * coding.c (decode_coding_object): Inhibit gap shrinking while
22826 decoding in place.
22827
228282008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22829
22830 * w32term.c: Remove unused include "gnu.h".
22831 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22832
22833 * gnu.h: Rename to ...
22834 * emacs-icon.h: ... this.
22835 * xterm.c: Use emacs-icon.h instead of gnu.h.
22836 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22837
228382008-03-03 Juanma Barranquero <lekktu@gmail.com>
22839
22840 * w32font.c: Include math.h.
22841
228422008-03-03 Jason Rumney <jasonr@gnu.org>
22843
22844 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22845 Compute options separately.
22846 (w32font_open_internal): Set glyph_idx before caching metrics.
22847
22848 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22849 Define if system headers don't.
22850 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22851 (w32font_encode_char): Don't declare here.
22852
22853 * w32font.c (Quniscribe, QCformat): New symbols.
22854 (syms_of_w32font): Define them.
22855 (w32font_has_char): Indicate uncertainty.
22856 (w32font_encode_char): Encode as glyph point. Make static.
22857 (recompute_cached_metrics): New function.
22858 (w32font_open_internal): Use it. Set font to use glyph points
22859 initially. Set format based on type of font.
22860 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22861 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22862 on it. Set format based on information available here.
22863 (add_font_entity_to_list): Identify backend based on opentype_only.
22864
228652008-03-02 Andreas Schwab <schwab@suse.de>
22866
22867 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22868
22869 * coding.c (decode_coding_big5, produce_chars):
22870 Fix typos in last change.
22871
228722008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22873
22874 * gnu.h: New icon.
22875
228762008-03-02 Kenichi Handa <handa@m17n.org>
22877
22878 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22879 `dos', don't decode '\r' if that is the last in the source.
22880 (decode_coding_utf_16, decode_coding_emacs_mule)
22881 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22882 (decode_coding_raw_text, decode_coding_charset): Likewise.
22883 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22884
228852008-03-01 Jason Rumney <jasonr@gnu.org>
22886
22887 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22888
228892008-03-01 Kim F. Storm <storm@cua.dk>
22890
22891 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22892
228932008-03-01 Jason Rumney <jasonr@gnu.org>
22894
22895 * w32font.c (w32font_full_name): New function.
22896 (w32font_open_internal): Use it.
22897
228982008-03-01 Kim F. Storm <storm@cua.dk>
22899
22900 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22901
229022008-03-01 Jason Rumney <jasonr@gnu.org>
22903
22904 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22905
229062008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22907
22908 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22909 xg_frame_resized when the event is for the edit widget.
22910
ef1b0ba7 22911 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
22912
22913 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22914 set_char_size.
ef1b0ba7 22915 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
22916 operations on widgets here. Just set frame size if needed.
22917 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22918 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22919 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22920 the whole frame.
22921 (xg_create_tool_bar): Move attachment of the tool bar to
22922 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22923 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22924
229252008-03-01 Jason Rumney <jasonr@gnu.org>
22926
22927 * w32fns.c (w32_msg_pump): Disable debug code.
22928
229292008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22930
22931 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22932
229332008-02-29 Chong Yidong <cyd@stupidchicken.com>
22934
22935 * xdisp.c (next_overlay_string): Don't set
22936 overlay_strings_at_end_processed_p if we're currently reading from
22937 a display string.
22938
229392008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22940
22941 * xdisp.c (get_overlay_strings_1): Fix typo.
22942
229432008-02-29 Chong Yidong <cyd@stupidchicken.com>
22944
22945 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22946
229472008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22948
22949 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22950
22951 * xdisp.c (display_mode_element): Cancel the previous change.
22952 (decode_mode_spec): Likewise.
22953 (handle_auto_composed_prop): Don't make composition if it->string
22954 is a string.
22955
229562008-02-27 Kim F. Storm <storm@cua.dk>
22957
22958 * lisp.h (GLYPH): Change type from int to struct with separate char
22959 and face_id members.
22960 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22961 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22962 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22963 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22964 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22965 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22966 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22967 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22968 handle new Lisp glyph code encoding, either an integer or a cons.
22969
22970 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22971 (GLYPH_ALIAS): Delete.
22972 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22973 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22974 (GLYPH_FROM_CHAR): Replace macro by ...
22975 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22976
22977 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22978 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22979 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22980 (GLYPH_INVALID_P): New macro.
22981 (spec_glyph_lookup_face): Update prototype.
22982
22983 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22984 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22985 new glyph code encoding.
22986 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22987 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22988
22989 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22990 Adapt to new glyph type and new glyph code encoding.
22991
22992 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22993
22994 * indent.c (current_column, current_column_1, Fmove_to_column)
22995 (compute_motion): Adapt to new glyph code encoding.
22996
22997 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22998
229992008-02-27 Chong Yidong <cyd@stupidchicken.com>
23000
23001 * process.c (wait_reading_process_output): Check for window
23002 changes caused by timers.
23003 Suggested by Johan Bockgård.
23004
230052008-02-27 Glenn Morris <rgm@gnu.org>
23006
23007 * emacs.c (USAGE1): Add `--disable-font-backend'.
23008
230092008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
23010
23011 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
23012 is made to the buffer.
23013
230142008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
23015
23016 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
23017 (face_at_string_position):
23018 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
23019 (face_at_string_position):
23020 * xdisp.c (display_string, next_overlay_change):
23021 * buffer.h (overlays_at):
23022 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
23023 Update callers.
23024
230252008-02-26 Chong Yidong <cyd@stupidchicken.com>
23026
23027 * editfns.c (Fformat): Doc fix.
23028
230292008-02-26 Juanma Barranquero <lekktu@gmail.com>
23030
23031 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
23032 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
23033 (Ffont_otf_alternates, Fquery_font): Doc fixes.
23034
230352008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23036
23037 * buffer.c (Fbuffer_swap_text): New function.
23038 (syms_of_buffer): Defsubr it.
23039
230402008-02-25 Chong Yidong <cyd@stupidchicken.com>
23041
23042 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
23043
230442008-02-25 Jason Rumney <jasonr@gnu.org>
23045
23046 * w32font.c (w32font_draw): Draw one character at a time when padding.
23047
230482008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
23049
23050 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
23051 Handle a nil arg. Use run_window_configuration_change_hook.
23052 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
23053 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
23054 Use run_window_configuration_change_hook.
23055
230562008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23057
23058 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
23059 1-pixel width.
23060
230612008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
23062
23063 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
23064 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
23065 if the glyph in the font is zero pixel with.
23066
23067 * dispextern.h (struct glyph_string): New member padding_p.
23068
23069 * w32font.c (w32font_draw): Pay attention to s->padding_p.
23070
23071 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
23072
23073 * xfont.c (xfont_draw): Pay attention to s->padding_p.
23074
23075 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
23076
23077 * font.c: If the font driver doesn't have `shape' function, return Qnil.
23078
230792008-02-25 Jason Rumney <jasonr@gnu.org>
23080
23081 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
23082
230832008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
23084
23085 Allow fine-grained image-cache flushing.
23086 * dispextern.h (struct image): Add `dependencies' field.
23087 (clear_image_caches): Change arg to Lisp_Object.
23088 * image.c (make_image): Initialize `dependencies' field.
23089 (clear_image_cache): Change arg to allow fine-grained flushing.
23090 Perform the flush even if image-cache-eviction-delay is nil.
23091 (clear_image_caches): Change arg to Lisp_Object.
23092 (Fclear_image_cache): Expand meaning of the argument.
23093 (mark_image): Mark `dependencies' field.
23094 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
23095 (lface_hash): Use XHASH rather than XFASTINT.
23096 (face_at_buffer_position): Fix int -> EMACS_INT position.
23097 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
23098 (select_frame_for_redisplay): Remove code duplication.
23099 (redisplay_internal): Adapt arg to call to clear_image_caches.
23100
231012008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
23102
23103 * s/vms4-0.h:
23104 * s/vms4-2.h:
23105 * s/vms4-4.h:
23106 * s/vms5-5.h: Remove, unused.
23107
23108 * s/irix5-2.h:
23109 * s/irix6-0.h:
23110 * s/riscos5.h:
23111 * s/mach-bsd4-3.h:
23112 * m/mips4.h: Remove files for obsolete systems.
23113
23114 * Makefile.in:
23115 * filelock.c:
23116 * unexmips.c:
23117 * m/hp9000s300.h:
23118 * m/iris4d.h:
23119 * s/aix3-1.h:
23120 * s/hpux.h:
23121 * s/msdos.h:
23122 * s/usg5-0.h:
23123 * s/usg5-2-2.h:
23124 * s/usg5-2.h:
23125 * s/usg5-3.h: Remove references to obsolete variables.
23126
23127 * s/irix5-0.h: Remove, move all the contents ...
23128 * s/irix6-5.h: ... here. Simplify.
23129 * config.in: Regenerate.
23130
231312008-02-24 Jason Rumney <jasonr@gnu.org>
23132
23133 * w32term.c (x_draw_glyph_string_background): Clear the background
23134 manually when cleartype is in use.
23135 (x_draw_glyph_string_foreground): Draw text transparently when
23136 cleartype is in use.
23137
23138 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
23139 a font into it unless we have to.
23140
231412008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23142
23143 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
23144 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 23145
aac0c6e3
MR
231462008-02-18 Jason Rumney <jasonr@gnu.org>
23147
23148 * w32fns.c (Fw32_shell_execute): Encode parameters.
23149
231502008-02-09 Eli Zaretskii <eliz@gnu.org>
23151
23152 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
23153
231542008-02-05 Juanma Barranquero <lekktu@gmail.com>
23155
23156 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
23157
231582008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
23159
23160 * xterm.c (x_set_offset): Don't change the gravity if
23161 CHANGE_GRAVITY is -1.
23162
231632008-02-23 Chong Yidong <cyd@stupidchicken.com>
23164
23165 * fileio.c (auto_save_error_occurred): New var.
23166 (auto_save_error): Set it.
23167 (Fdo_auto_save): Don't overwrite the error message if an auto-save
23168 error occurred.
23169
231702008-02-23 Eli Zaretskii <eliz@gnu.org>
23171
23172 * w32.c (globals_of_w32): Add initializations for
23173 g_b_init_get_sid_sub_authority and
23174 g_b_init_get_sid_sub_authority_count.
23175
231762008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
23177
23178 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
23179 (font_parse_xlfd): Use them for sanity check.
23180 (Finternal_set_font_style_table): Make sure the table is bijective.
23181
23182 Consolidate the image_cache to the terminal struct.
23183 * termhooks.h (P_): Remove redundant def.
23184 (struct terminal): New field `image_cache'.
23185 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
23186 of FRAME_X_IMAGE_CACHE.
23187 * xterm.h (struct x_display_info): Remove image_cache field.
23188 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23189 * w32term.h (struct w32_display_info): Remove image_cache field.
23190 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23191 * macterm.h (struct mac_display_info): Remove image_cache field.
23192 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
23193 * xterm.c (x_term_init):
23194 * w32term.c (w32_term_init):
23195 * macterm.c (mac_term_init): Set the image_cache in the terminal.
23196 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
23197 Remove declarations.
23198 (clear_image_caches, mark_image_cache): New declarations.
23199 * xfaces.c (clear_face_cache):
23200 * xdisp.c (redisplay_internal): Use clear_image_caches.
23201 * image.c (clear_image_cache): Don't check that a frame is on
23202 a window-system before checking if it shares the same cache.
23203 (clear_image_caches): New function.
23204 (Fclear_image_cache): Use it.
23205 (mark_image): Move from allo.c.
23206 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
23207 * alloc.c (mark_image, mark_image_cache): Move to image.c.
23208 (mark_object): Don't call mark_image_cache for frames.
23209 (mark_terminals): Call mark_image_cache.
23210
23211 * lisp.h (Fdelete_terminal): Declare.
23212
23213 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
23214 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
23215 wrong_type_argument.
23216
232172008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23218
23219 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23220 malayalam.el, and tamil.el. Add sinhala.el.
23221
232222008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23223
23224 * xterm.c (x_connection_closed): Consolidate identical tests.
23225 (x_delete_terminal): Don't crash if called via x_connection_closed.
23226
232272008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23228
23229 * xdisp.c (decode_mode_spec): New arg string.
23230 (display_mode_element): Adjust for the above change.
23231
232322008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23233
23234 * callint.c (Fcall_interactively): Use AREF.
23235
232362008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23237
23238 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23239
232402008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23241
23242 * xfns.c (Fx_show_tip): Set string to " " if empty.
23243
232442008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23245
23246 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23247 with Qt.
23248
232492008-02-17 Kenichi Handa <handa@m17n.org>
23250
23251 * ftfont.c (ftfont_shape): Return Lispy number.
23252
23253 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23254 for GCs.
23255 (Finternal_set_font_selection_order): Call font_update_sort_order
23256 only when enable_font_backend is set.
23257 (realize_x_face): Set face->font_info to that of default face only
23258 when enable_font_backend is set.
23259
23260 * xdisp.c (handle_composition_prop): Set it->c to the fist
23261 character of the composed region.
23262 (fill_composite_glyph_string): Set base_face->font_info to
23263 s->font_info. Get a face for ascii from base_face->ascii_face.
23264 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23265 with a face already decided.
23266 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23267 non-negative.
23268 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23269 call font_prepare_composition unconditionally.
23270
23271 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23272
23273 * xterm.h (struct x_display_info): New member font.
23274
23275 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23276 (x_set_mouse_face_gc, x_new_font): Likewise.
23277 (x_term_init): Setup display_info->font.
23278 (x_delete_terminal): Free display_info->font.
23279
23280 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23281
23282 * ftxfont.c (ftxfont_default_fid): Delete it.
23283 (ftxfont_open): Set xfont->fid to 0.
23284 (ftxfont_end_for_frame): Clear data specific to the frame and the
23285 font-driver.
23286
23287 * xftfont.c (xftfont_default_fid): Delete it.
23288 (xftfont_open): Set xfont->fid to 0.
23289
23290 * fontset.c (FONTSET_OBJLIST): New macro.
23291 (fontset_find_font): Update font-object list of the fontset.
23292 (free_realized_fontset): New function.
23293 (free_face_fontset): Call free_realized_fontset.
23294 (Ffont_info): Call font_close_object only when enable_font_backend
23295 is set.
23296
23297 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23298 [HAVE_NTGUI]: Include w32term.h.
23299 [MAC_OS]: Include macterm.ch.
23300 (font_otf_ValueRecord): Use make_number.
23301 (font_finish_cache): Fix handling of reference count.
23302 (font_clear_cache): Update num_fonts.
23303 (font_open_entity): Update smallest_char_width and
23304 smallest_font_height of the frame.
23305 (font_close_object): Update num_fonts.
23306 (Fclear_font_cache): Fix finding the target cache data.
23307
233082008-02-16 Glenn Morris <rgm@gnu.org>
23309
23310 * fontset.c (Finternal_char_font): Fix compilation warning.
23311
233122008-02-16 Eli Zaretskii <eliz@gnu.org>
23313
23314 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23315 instead of char arrays. Enlarge the size of array passed to
23316 get_token_information.
23317
23318 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23319 warnings.
23320
233212008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23322
23323 * .gdbinit: Don't set `args', it breaks gdb --args.
23324
233252008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23326
23327 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23328 within a narrowed buffer.
23329
233302008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23331
23332 * coding.c (decode_coding_object, encode_coding_object):
23333 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23334
233352008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23336
23337 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23338 hardcoding 1.
23339 (detect_coding_system):
23340 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23341 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23342 * insdel.c (insert_from_gap):
23343 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23344 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23345 (string_to_multibyte):
23346 * character.c (chars_in_text, multibyte_chars_in_text):
23347 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23348
23349 * character.h (FETCH_STRING_CHAR_ADVANCE)
23350 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23351 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23352 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23353
23354 * casefiddle.c (casify_region): Only call after-change and composition
23355 functions on the part of the region that was changed.
23356
23357 * keyboard.c (read_avail_input):
23358 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23359
233602008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23361
23362 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23363 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23364
233652008-02-11 Juanma Barranquero <lekktu@gmail.com>
23366
23367 * w32menu.c (push_submenu_start, push_submenu_end)
23368 (push_left_right_boundary, push_menu_pane, push_menu_item):
23369 * keyboard.c (read_key_sequence): Don't pass args with side effects
23370 to AREF, it fails when compiling with -DENABLE_CHECKING.
23371
233722008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23373
23374 * Makefile.in (${lispsource}international/charprop.el):
23375 Delete this target.
23376
23377 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23378 emacs-unicode-2.
23379
233802008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23381
23382 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23383
233842008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23385
23386 * frame.c (Qnoelisp): New symbol.
23387 (syms_of_frame): Initialize it.
23388 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23389 harmless Elisp code, from a strong `force' from x_connection_closed.
23390 * frame.h (Qnoelisp): Declare.
23391 * xterm.c (x_connection_closed): Pass `noelisp'.
23392
23393 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23394 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23395 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23396 rather than `int' for the type of `type'.
23397
233982008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23399
23400 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23401
23402 * Makefile.in (GNUC): Remove support for gcc-1.x.
23403
234042008-02-10 Richard Stallman <rms@gnu.org>
23405
23406 * lisp.h (ASET): Use AREF, not ASLOT.
23407
234082008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23409
23410 * lisp.h (ASET): Check bounds.
23411
234122008-02-10 Glenn Morris <rgm@gnu.org>
23413
23414 * buffer.c (mode-name): Doc fix.
23415
234162008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23417
23418 * Makefile.in:
23419 * emacs.c:
23420 * gmalloc.c:
23421 * keyboard.c:
23422 * lisp.h:
23423 * m/ibm370aix.h:
23424 * process.c:
23425 * regex.c:
23426 * s/hpux.h:
23427 * sysdep.c:
23428 * sysselect.h:
23429 * systty.h:
23430 * unexec.c:
23431 * w32term.c:
23432 * xsmfns.c:
23433 * xterm.c: Remove code that deals with obsolete variables.
23434
23435 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23436
23437 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23438 nothing else needs it anymore.
23439
234402008-02-09 Eli Zaretskii <eliz@gnu.org>
23441
23442 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23443 instead of unibyte_char_to_multibyte.
23444
234452008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23446
23447 * s/gnu-linux.h: Remove commented out code.
23448
23449 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23450
23451 * Makefile.in: Update what RMS says about using autoconf.
23452 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23453 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23454 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23455 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23456
234572008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23458
23459 * keymap.c (Fkey_description): Move side effect outside of macro call.
23460
23461 * xfaces.c (Finternal_make_lisp_face):
23462 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23463
23464 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23465 (syms_of_fontset): Use ASET.
23466
23467 * fns.c (concat): Move side effect outside of macro call.
23468 (hash_clear): Use ASET.
23469
234702008-02-08 Richard Stallman <rms@gnu.org>
23471
23472 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23473 If FORCE, and frame has a surrogate minibuffer for another frame,
23474 delete the other frame first.
23475
234762008-02-07 Timo Savola <timo.savola@iki.fi>
23477
23478 * xterm.c (x_detect_focus_change): Handle embed client message.
23479 (handle_one_xevent): Ditto.
23480 (handle_one_xevent): If embedded and we get a button press/release,
23481 request focus.
23482 (xembed_set_info, xembed_send_message): New functions.
23483 (x_make_frame_visible): Call xembed_set_info if embedded.
23484 (x_make_frame_invisible): Call xembed_set_info if embedded.
23485 (x_term_init): Initialize Xatom_XEMBED.
23486 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23487 (x_iconify_frame): Ditto.
23488
23489 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23490 (enum xembed_info, enum xembed_message, enum xembed_focus)
23491 (enum xembed_modifier, enum xembed_accelerator): New.
23492 (xembed_set_info, xembed_send_message): Declare.
23493 (FRAME_X_EMBEDDED_P): New.
23494
23495 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23496 gtk_plug_new.
23497
23498 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23499 window ID of a frame.
23500 (x_window): Reparent frame if embedded.
23501 (Fx_create_frame): Don't set border width if embedded.
23502
23503 * emacs.c (USAGE3): Add --parent-id.
23504 (standard_args): Ditto.
23505
235062008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23507
23508 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23509
235102008-02-07 Jim Meyering <meyering@redhat.com>
23511
23512 Use "do...while (0)", not "if (1)...else" in macro definitions.
23513 The latter provokes a warning from gcc about the empty else, when
23514 followed by ";". Also, without that trailing semicolon, it would
23515 silently swallow up any following statement.
23516 * syntax.h (SETUP_SYNTAX_TABLE)
23517 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23518 * buffer.h (DECODE_POSITION): Likewise.
23519 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23520 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23521 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23522 (FETCH_CHAR_ADVANCE): Likewise.
23523 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23524
235252008-02-07 Jim Meyering <meyering@redhat.com>
23526
23527 * lread.c [lint]: Don't include <sys/inode.h>.
23528
235292008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23530
23531 * xselect.c (x_handle_dnd_message):
23532 * xmenu.c (digest_single_submenu, xmenu_show):
23533 * xdisp.c (with_echo_area_buffer_unwind_data)
23534 (format_mode_line_unwind_data, unwind_format_mode_line)
23535 (display_menu_bar):
23536 * eval.c (Ffetch_bytecode):
23537 * doc.c (store_function_docstring):
23538 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23539 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23540 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23541
235422008-02-07 Kenichi Handa <handa@m17n.org>
23543
23544 * ftxfont.c (ftxfont_open): Don't set
23545 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23546
23547 * ftfont.c (ftfont_open): Fix previous change.
23548
235492008-02-06 Jason Rumney <jasonr@gnu.org>
23550
23551 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23552 Use cached metrics for ASCII characters.
23553 (w32font_open_internal): Don't set font's owning_frame.
23554 Cache metrics for ASCII characters.
23555
23556 * w32font.h (struct w32font_info): Add ascii_metrics.
23557 Remove owning_frame.
23558
235592008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23560
23561 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23562 to negative value.
23563
23564 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23565
23566 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23567
23568 * charset.c (syms_of_charset): Set QCtest and Qeq.
23569
235702008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23571
23572 * process.c (Fstart_process):
23573 * callproc.c (Fcall_process): Handle the case where
23574 Funhandled_file_name_directory returns nil.
23575
23576 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23577 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23578 * font.c (check_gstring): Use them and AREF to access the vector before
23579 we know it's really a gstring.
23580 (Ffont_shape_text): Fix typo.
46e722a9 23581 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
23582
23583 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23584 Declare.
23585
23586 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23587
235882008-02-05 Jason Rumney <jasonr@gnu.org>
23589
23590 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23591 Set smallest_font_height and smallest_char_width in display info.
23592
235932008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23594
23595 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23596
235972008-02-05 Miles Bader <miles@gnu.org>
23598
23599 * xfaces.c (get_lface_attributes, merge_named_face)
23600 (lookup_named_face, lookup_derived_face, realize_named_face):
23601 Revert 2008-02-01 change by cyd@stupidchicken.com.
23602
236032008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23604
23605 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23606 fallback fonts.
23607 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23608
236092008-02-04 Jason Rumney <jasonr@gnu.org>
23610
23611 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23612 set full_name.
23613 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23614
236152008-02-03 Jason Rumney <jasonr@gnu.org>
23616
23617 * makefile.w32-in (OBJ1): Include font.o here.
23618 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23619
236202008-02-02 Jason Rumney <jasonr@gnu.org>
23621
23622 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23623
236242008-02-01 Jason Rumney <jasonr@gnu.org>
23625
23626 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23627
23628 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23629
236302008-02-01 Andreas Schwab <schwab@suse.de>
23631
23632 * Makefile.in (shortlisp, lisp): Update for rename of
23633 ../lisp/language/myanmar.el.
23634
236352008-02-01 Chong Yidong <cyd@stupidchicken.com>
23636
23637 * xfaces.c (get_lface_attributes): Delete function.
23638 (merge_named_face, lookup_named_face, lookup_derived_face)
23639 (realize_named_face): Call lface_from_face_name directly, and use
23640 the fact that merge_face_vectors does not alter its FROM argument.
23641
236422008-02-01 Jason Rumney <jasonr@gnu.org>
23643
23644 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23645 input in the default locale. Handle non-Unicode multibyte input.
23646
236472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23648
23649 * fontset.c (reorder_font_vector): Exclude nil elements from the
23650 font group. Don't try multiple fonts.
23651 (fontset_font): Adjust for the above change.
23652 (Finternal_char_font): Return nil if the found font doesn't
23653 contain the character ch.
23654
23655 * Makefile.in (lisp, shortlisp): Add cham.el.
23656
236572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23658
23659 * font.h (FONTP): Make it return 1 also for a font-object.
23660
23661 * .gdbinit (xfontset): New function.
23662
23663 * font.c (font_find_for_lface): Check if the character C is
23664 supported or not only for the first font.
23665
23666 * fontset.c (reorder_font_vector): Fix typo.
23667 (fontset_find_font): Don't add a font-spec specifying a script.
23668 Use 0 (not Qt) for the indication of empty font-group. Change the
23669 format of RFONT-DEF. Return Qt if no font in the font-group
23670 support the character.
23671 (fontset_font): Adjust for the above change. If no font was
23672 found the character, remember that.
23673 (face_for_char): Adjust for the change of RFONT-DEF.
23674 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23675 no font for the target.
23676 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23677
236782008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23679
23680 * font.c (font_load_for_face): Handle the case that the font in
23681 face->lface is a string.
23682
236832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23684
23685 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23686
236872008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23688
23689 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23690 Fix previous change. If the frame is not on a window system,
23691 signal an error.
23692
236932008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23694
bba3e508
SM
23695 * coding.c (decode_coding_object, encode_coding_object):
23696 Adjust marker positions after conversion.
aac0c6e3
MR
23697
23698 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23699
237002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23701
23702 * font.c (font_find_for_lface): Fix the handling of the return
23703 value of font_has_char.
23704 (Ffont_shape_text): Fix previous change.
23705
23706 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23707 (fontset_ref_and_range): Delete it.
23708 (fontset_find_font): Call char_table_ref_and_range instead of
23709 FONTSET_REF_AND_RANGE.
23710 (make_fontset): Don't setup font groups of Latin here.
23711 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23712 (new_fontset_from_font): Make the specified font the default for
23713 all Latin characters.
23714
237152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23716
23717 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23718 is on a window system before accessing the fontset of the frame.
23719
237202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23721
23722 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23723
23724 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23725 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23726
23727 * font.c (Ffont_shape_text): If the font driver doesn't have a
23728 shaper function, make zero-width glyphs to have at least one-pixel
23729 width. Fix setting of `to' field of glyphs.
23730
237312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23732
23733 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23734 glyphs.
23735
23736 * font.h (struct font_driver): Improve docstring of member `shape'.
23737
237382008-02-01 Kenichi Handa <handa@m17n.org>
23739
23740 * composite.c (syms_of_composite): Fix docstring of
23741 auto-composition-function.
23742
23743 * font.h (LGLYPH_SIZE): New macro.
23744
23745 * font.c (Ffont_fill_gstring): Stop filling when a character not
23746 supported by the font is found.
23747 (Ffont_shape_text): When a shape callback function returns nil,
23748 try at most two more times with larger gstring.
23749 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23750
23751 * xdisp.c (handle_auto_composed_prop): Change the argument to
23752 auto-composition-function.
23753
23754 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23755 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23756 Lispy glyph and store it in the lgstring.
23757
23758 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23759
23760 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23761
237622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23763
23764 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23765
23766 * fontset.c (Vfont_encoding_charset_alist): New variable.
23767 (syms_of_fontset): DEFVAR it.
23768 (reorder_font_vector, fontset_find_font): Optimize for the case of
23769 no need of reordering.
23770 (face_for_char): Map the charset property by
23771 Vfont_encoding_charset_alist.
23772
237732008-02-01 Jason Rumney <jasonr@gnu.org>
23774
23775 * w32font.c (logfonts_match): Don't check adstyle here.
23776 (font_matches_spec): Check here against physical font instead.
23777 (add_font_entity_to_list): Avoid some substitutions.
23778
23779 * font.c (font_parse_fcname): Default weight and slant to normal.
23780 (font_score): Prefer normal fonts if weight or slant unspecified.
23781 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23782 match freetype scores.
23783
237842008-02-01 Jason Rumney <jasonr@gnu.org>
23785
23786 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23787 font, as it may have been deleted.
23788 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23789 most common hyphenless variation.
23790 (logfonts_match): Check generic family.
23791 (font_matches_spec): Don't check generic family here.
23792 (fill_in_logfont): Set generic family based on adstyle.
23793
23794 * w32font.h (w32font_get_cache): Update declaration.
23795
237962008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23797
23798 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23799
23800 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23801 If none of the new drivers are available, call font_update_drivers
23802 with the old drivers.
23803
23804 * w32font.c (w32font_get_cache): Adjust the argument type.
23805
23806 * xfont.c (xfont_get_cache): Adjust the argument type.
23807
23808 * font.h (struct font_driver): Change argument type of get_cache.
23809
23810 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23811
23812 * font.c (Ffont_get): Fix arguments to Fassoc.
23813 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23814 (font_clear_cache): New function.
23815 (font_list_entities, font_matching_entity): Use font_get_cache.
23816 (font_update_drivers): Call font_clear_cache when finishing a driver.
23817
23818 * fontset.c (fontset_find_font): Fix previous change.
23819
238202008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23821
23822 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23823 dpyinfo->font_table.
23824 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23825 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23826
23827 * font.c (font_at): Handle the case that the arg C is negative.
23828 Handle the unibyte case.
23829 (Ffont_at): Call font_at with the arg C -1.
23830
23831 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23832 the position here, and call font_at with the arg C -1.
23833 Don't check the range of the existing composition at the point.
23834
238352008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23836
23837 * fontset.c (fontset_add): New args charset_id and family.
23838 Change caller.
23839 (load_font_get_repertory, fontset_find_font): Assume that
23840 font_spec is always a font-spec object.
23841 (Fset_fontset_font): Always store a font-spec object in a fontset.
23842
23843 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23844 instead of get_property_and_range.
23845
238462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23847
23848 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23849 (xftfont_open): Don't keep locking face.
23850 (xftfont_close): Don't unlock face.
23851 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23852
23853 * fontset.c (fontset_find_font): Don't prefer a font of
23854 supplementary charset.
23855
238562008-02-01 Kenichi Handa <handa@m17n.org>
23857
23858 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23859 script, langsys_tag to langsys, new member script.
23860 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 23861 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
23862 listing to the script specified in that property. Fix arg to
23863 OTF_check_features.
23864
238652008-02-01 Jason Rumney <jasonr@gnu.org>
23866
23867 * w32font.h: New file.
23868
23869 * w32font.c: Include it.
23870 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23871 (w32font_open): Set owning_frame.
23872 (w32font_text_extents): Use owning_frame.
23873 (struct font_callback_data): Add opentype_only field.
23874 (add_font_entity_to_list): Use it to filter fonts.
23875 Don't check against full name.
23876 (w32font_list_internal): New function.
23877 (w32font_list): Use it.
23878 (w32font_match_internal): New function.
23879 (w32font_match): Use it.
23880 (w32font_open_internal): New function.
23881 (w32font_open): Use it.
23882 (w32font_get_cache, w32font_close, w32font_has_char)
23883 (w32font_encode_char, w32font_text_extents, w32font_draw):
23884 Make non-static.
23885
23886 * makefile.w32-in (w32font.o): Depend on w32font.h.
23887
238882008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23889
23890 * charset.c (Fdefine_charset_internal): Record a supplementary
23891 charset at the tail of Vcharset_order_list.
23892
23893 * font.c (Ffont_shape_text): Fix the return value.
23894
23895 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23896
23897 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23898
238992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23900
23901 * ftfont.c (struct OpenTypeSpec): New struct.
23902 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23903 (ftfont_get_open_type_spec): New function.
23904 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23905
23906 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23907
239082008-02-01 Jason Rumney <jasonr@gnu.org>
23909
23910 * w32font.c (add_font_entity_to_list): Compare only the beginning
23911 of full name.
23912
239132008-02-01 Kenichi Handa <handa@m17n.org>
23914
23915 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23916 Never return HANDLED_RECOMPUTE_PROPS.
23917
239182008-02-01 Kenichi Handa <handa@m17n.org>
23919
23920 * font.c (font_gstring_produce): Delete it.
23921
23922 * composite.h (COMPOSITION_METHOD):
23923 Handle COMPOSITION_WITH_GLYPH_STRING.
23924
239252008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23926
23927 * xfont.c (Qx): Delete.
23928 (syms_of_xfont): Don't initialize Qx.
23929
23930 * composite.h (enum composition_method):
23931 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23932
239332008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23934
23935 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23936 (choose_face_font): Accept new form of font-spec.
23937
23938 * frame.h (font_driver_list): Declare it unconditionally.
23939 (struct frame): Define members font_driver_list and font_data_list
23940 unconditionally.
23941
23942 * fontset.c: Include "font.h" unconditionally.
23943 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23944 (Fset_fontset_font): Accept a font-spec object.
23945
23946 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23947 PIXEL_SIZE part a wild card.
23948
23949 * dispextern.h (struct glyph_string): Define members clip and
23950 num_clips unconditionally.
23951 (struct face): Define members font_info and extra unconditionally.
23952
23953 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23954 ftfont_info only when HAVE_LIBOTF is defined.
23955
239562008-02-01 Andreas Schwab <schwab@suse.de>
23957
23958 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23959 and end.
23960
239612008-02-01 Jason Rumney <jasonr@gnu.org>
23962
23963 * w32font.c (w32font_driver): Add new fields.
23964
239652008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23966
23967 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23968 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23969 (LIBES): Add @M17N_FLT_CFLAGS@.
23970
23971 * composite.c (compose_text): Don't treat the new style
23972 composition specially.
23973
23974 * emacs.c (main): Call syms_of_font unconditionally.
23975
23976 * font.h (FONT_ENTITY_NOT_LOADABLE)
23977 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23978 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23979 (struct font_driver): New member shape.
23980 (font_registry_charsets): Extern it.
23981 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23982 (font_otf_capability, font_drive_otf): Delete their externs.
23983
23984 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23985 (font_charset_alist, font_registry_charsets): Move from xfont.c
23986 and rename.
23987 (font_prop_validate_otf): New function.
23988 (font_property_table): Register it for QCotf.
23989 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23990 (font_drive_otf): Delete.
23991 (font_prepare_composition): New arg F. Adjust for the change of
23992 lispy gstring.
23993 (font_find_for_lface): New arg C.
23994 (font_load_for_face): Adjust for the change of font_find_for_lface.
23995 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23996 lispy gstring.
23997 (Ffont_shape_text): New function.
23998 (Fopen_font): If the font size is not given, use 12-pixel.
23999 (Ffont_at): New arg STRING.
40b1a3a9 24000 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
24001 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
24002 conditionally.
24003
24004 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
24005 fonts of the same font-spec. Change the format of RFONT-DEF.
24006 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
24007 Adjust for the change of RFONT-DEF.
24008 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
24009
24010 * ftfont.h: New file.
24011
24012 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
24013 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24014 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24015 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
24016 font_otf_capability and font_drive_otf, set ftfont_shape.
24017 (ftfont_list): Adjust for the change of :otf property value.
24018 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
24019 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
24020 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
24021 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24022 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
24023 (otf_gstring, gstring, m17n_flt_initialized): New variables.
24024
24025 * w32term.c (x_draw_composite_glyph_string_foreground):
24026 Adjust for the change of lispy gstring.
24027
24028 * xdisp.c (handle_composition_prop): Adjust for the change of
24029 lispy gstring. Call a function for auto-composition with the
24030 third arg it->window.
24031 (fill_composite_glyph_string): Adjust for the change of lispy string.
24032 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
24033
24034 * xfaces.c (set_font_frame_param): Adjust for the change of
24035 font_find_for_lface.
24036
24037 * xfont.c (x_font_charset_alist): Move to font.c and rename.
24038 (xfont_registry_charsets): Likewise. Change caller.
24039 (syms_of_xfont): Don't handle x_font_charset_alist.
24040
24041 * xftfont.c: Include "ftfont.h".
24042 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
24043 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
24044 (xftfont_close) [HAVE_LIBOTF]: Close otf.
24045 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
24046 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
24047 Set xftfont_driver.shape to xftfont_shape.
24048
24049 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24050 the change of lispy gstring.
24051
240522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24053
24054 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
24055
240562008-02-01 Jason Rumney <jasonr@gnu.org>
24057
24058 * w32font.c (w32font_draw): Fill background manually.
24059
240602008-02-01 Jason Rumney <jasonr@gnu.org>
24061
24062 * font.c (Qfontp): Remove unused symbol.
24063 (QCantialias): New symbol.
24064 (syms_of_font): Define it.
24065 (font_property_table): Set a validator for QCantialias.
24066
24067 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
24068 Define if not already.
24069 (QCfamily): Share with xfaces.c.
24070 (Qstandard, Qsubpixel, Qnatural): New symbols.
24071 (syms_of_w32font): Define them. Don't define QCfamily here.
24072 (w32_antialias_type, lispy_antialias_type): New functions.
24073 (w32_enumfont_pattern_entity): New arg requested_font.
24074 Set antialias parameter if non-default was requested.
24075 (fill_in_logfont): Fill in lfQuality if :antialias specified.
24076
240772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24078
24079 * lread.c (read1): Undo the previous change.
24080
240812008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
24082
24083 * frame.c (Fdelete_frame): Call font_update_drivers only when
24084 USE_FONT_BACKEND is defined.
24085
240862008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24087
24088 * font.h (struct font_bitmap): New member bits_per_pixel.
24089 (struct font_driver): New members start_for_frame and end_for_frame.
24090 (struct font_data_list): New struct.
24091 (font_put_frame_data, font_get_frame_data): Extern them.
24092
24093 * frame.h (struct frame): New member font_data_list.
24094
24095 * font.c (font_update_drivers): Call driver->start_for_frame and
24096 driver->end_for_frame at proper timings.
24097 (font_put_frame_data, font_get_frame_data): New functions.
24098 (Ffont_spec): Add usage in the docstring.
24099
24100 * frame.c (make_frame): Initialize f->font_data_list to NULL.
24101 (Fdelete_frame): Call font_update_drivers.
24102
24103 * xftfont.c (struct xftface_info): Delete the member xft_draw.
24104 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
24105 (xftfont_get_xft_draw): New function.
24106 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
24107 (xftfont_end_for_frame): New function.
24108 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
24109
24110 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
24111 Change argument. Cache GCs in the per-frame data.
24112 (struct ftxfont_frame_data): New struct.
24113 (ftxfont_draw_bitmap): New arg gc_fore and flush.
24114 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
24115 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
24116 (ftxfont_end_for_frame): New function.
24117 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
24118
24119 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
24120
241212008-02-01 Kenichi Handa <handa@m17n.org>
24122
24123 * xselect.c (Vselection_coding_system)
24124 (Vnext_selection_coding_system): Delete them.
24125 (syms_of_xselect): Don't declare selection-coding-system and
24126 next-selection-coding-system. They are declared in select.el.
24127
241282008-02-01 Jason Rumney <jasonr@gnu.org>
24129
24130 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
24131
24132 * w32fns.c: Include imm.h.
24133 (get_composition_string_fn, get_ime_context_fn): New optional
24134 system functions.
24135 (globals_of_w32fns): Load them from imm32.dll.
24136 (ignore_ime_char): New flag.
24137 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
24138 WM_IME_ENDCOMPOSITION messages.
24139
24140 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
24141 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
24142
241432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24144
24145 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
24146 (READCHAR_REPORT_MULTIBYTE): New macro.
24147 (readchar): New 2nd arg MULTIBYTE.
24148 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
24149 Make symbol's name multibyte according to the multibyteness of the
24150 source.
24151
241522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24153
24154 * xfaces.c (face_for_overlay_string): Call lookup_face with
24155 correct arguments (fix of synching with the trunk).
24156
241572008-02-01 Kenichi Handa <handa@m17n.org>
24158
24159 * font.c (font_prop_validate_symbol, font_prop_validate_style)
24160 (font_prop_validate_non_neg, font_prop_validate_spacing):
24161 Delete argument prop_index.
24162 (font_property_table): Change arguments to validater. Change Callers.
24163 (font_lispy_object): Delete.
24164 (font_at): Use font_find_object instead fo font_lispy_object.
24165
241662008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
24167
24168 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
24169 and file names.
24170
241712008-02-01 Jason Rumney <jasonr@gnu.org>
24172
24173 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
24174 (font_matches_spec): Remove debug output.
24175 (add_font_entity_to_list): Avoid using substituted fonts.
24176
241772008-02-01 Jason Rumney <jasonr@gnu.org>
24178
24179 * doc.c (Fsnarf_documentation):
24180 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
24181
241822008-02-01 Miles Bader <miles@gnu.org>
24183
24184 * dispextern.h (struct glyph_row): Only define "clip" field if
24185 HAVE_WINDOW_SYSTEM is defined.
24186
241872008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24188
24189 Fix up multi-tty merge.
24190
24191 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
24192 and indentation.
24193
24194 * xfaces.c (free_realized_face, clear_face_gcs):
24195 Include font_done_for_face in the input_blocked section, just in case.
24196
24197 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
24198 (get_char_face_and_encoding): Undo last change and remove the *other*
24199 duplicate definition (i.e. keep the one that's better scoped and that
24200 includes code for the font-backend).
24201
24202 * terminal.c (create_terminal): Default keyboard_coding to
24203 `no-conversion' and terminal_coding to `undecided'.
24204
24205 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
24206
24207 * fontset.c (free_realized_fontsets): Check that the table entry does
24208 contain a fontset before trying to compare it to `base'.
24209
24210 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
24211 syms_of_charset, and syms_of_coding earlier because init_window_once
24212 now needs Vcoding_system_hash_table to be setup.
24213
24214 * coding.h (default_buffer_file_coding): Remove.
24215
24216 * coding.c (default_buffer_file_coding): Remove.
24217 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24218 than ->symbol, and use the terminal-local coding system.
24219 (syms_of_coding): Don't setup the coding-systems that are not
24220 terminal-local.
24221 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24222
24223 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24224 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24225
24226 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24227 in chartab.c and were re-added here by mistake.
24228 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24229
24230 * doc.c (Fsnarf_documentation):
24231 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24232 src to etc.
24233
24234 * ChangeLog.10: Add mistakenly removed entry.
24235
242362008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24237
24238 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24239
242402008-02-01 Miles Bader <miles@gnu.org>
24241
24242 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24243 Add extra args to FACE_FOR_CHAR.
24244
242452008-02-01 Kenichi Handa <handa@m17n.org>
24246
24247 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24248 in sequence.
24249
24250 * chartab.c (map_sub_char_table, map_char_table): If the range
24251 contains just one character, call the function with that character
24252 even if the depth is not 3.
24253
242542008-02-01 Jason Rumney <jasonr@gnu.org>
24255
24256 * w32font.c (w32font_text_extents): Calculate metrics for the
24257 whole string.
24258
242592008-02-01 Jason Rumney <jasonr@gnu.org>
24260
24261 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24262
242632008-02-01 Jason Rumney <jasonr@gnu.org>
24264
bba3e508
SM
24265 * w32term.c (x_set_glyph_string_clipping):
24266 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24267 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24268 Adjust for the change of struct glyph_string.
24269
24270 * w32font.c (w32font_draw): Do clipping here.
24271
242722008-02-01 Kenichi Handa <handa@m17n.org>
24273
24274 * xftfont.c (xftfont_draw): Adjust for the change of struct
24275 glyph_string.
24276
bba3e508
SM
24277 * xterm.c (x_set_glyph_string_clipping):
24278 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24279 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24280 Adjust for the change of struct glyph_string.
24281
24282 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24283 the resulting clip(s}.
24284 (expose_overlaps): Add arg r. Change callers. Set it to
24285 row->clip temporarily.
24286 (expose_window): Redraw rows overlapping the exposed area.
24287
24288 * dispextern.h (struct glyph_row): New member clip.
24289 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24290 clip_height, new member clip, and num_clips.
24291
242922008-02-01 Kenichi Handa <handa@m17n.org>
24293
24294 * data.c (Fchar_or_string_p): Fix docstring.
24295
242962008-02-01 Kenichi Handa <handa@m17n.org>
24297
24298 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24299 create a temporary XftDraw object.
24300
243012008-02-01 Kenichi Handa <handa@m17n.org>
24302
24303 * font.c (Ffontp): Fix docstring.
24304
24305 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24306 strong evidence of ISO-2022.
24307
243082008-02-01 Kenichi Handa <handa@m17n.org>
24309
24310 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24311 SYNTAX_ENTRY_FOLLOW_PARENT.
24312
243132008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24314
24315 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24316 its type.
24317 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24318 Update to the new type of weak_hash_tables and next_weak.
24319
24320 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24321 a plain C pointer to Lisp_Hash_Table.
24322
24323 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24324 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24325 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24326 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24327 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24328 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24329 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24330 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24331 (GC_EQ): Remove since they've been identical to their non-GC_
24332 alter-egos ever since the markbit was eradicated.
24333
24334 * alloc.c:
24335 * buffer.c:
24336 * buffer.h:
24337 * data.c:
24338 * fileio.c:
24339 * filelock.c:
24340 * fns.c:
24341 * frame.h:
24342 * lisp.h:
24343 * macterm.c:
24344 * print.c:
24345 * process.c:
24346 * w32fns.c:
24347 * w32menu.c:
24348 * w32term.c:
24349 * xfns.c:
24350 * xmenu.c:
24351 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24352
243532008-02-01 Kenichi Handa <handa@m17n.org>
24354
24355 * chartab.c (map_sub_char_table): Make it work for the top-level
24356 char-table. Fix handling of parent char-table.
24357 (map_char_table): Adjust for the above change.
24358
243592008-02-01 Jason Rumney <jasonr@gnu.org>
24360
24361 * w32font.c (Qgdi): Rename from Qw32.
24362
243632008-02-01 Jason Rumney <jasonr@gnu.org>
24364
24365 * w32bdf.c (get_quoted_string): Make function static.
24366
243672008-02-01 Kenichi Handa <handa@m17n.org>
24368
24369 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24370 bigger ascent and descent than those of the font, use them as
24371 font's ascent and descent.
24372
243732008-02-01 Kenichi Handa <handa@m17n.org>
24374
24375 * Makefile.in (${lispsource}international/charprop.el): Move this
24376 target within "#ifdef HAVE_UNIDATA" and "#endif".
24377
243782008-02-01 Kenichi Handa <handa@m17n.org>
24379
24380 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24381 (shortlisp): Add ../lisp/language/tai-viet.el.
24382
243832008-02-01 Ulrich Mueller <ulm@gentoo.org>
24384
24385 * Makefile.in (${lispsource}international/charprop.el): Depend on
24386 temacs${EXEEXT}.
24387
243882008-02-01 Jason Rumney <jasonr@gnu.org>
24389
24390 * w32font.c (w32font_close): Delete the GDI font object.
24391
24392 * w32menu.c: Include character.h.
24393
24394 * w32proc.c: Likewise.
24395
24396 * w32select.c: Likewise.
24397
24398 * makefile.w32-in (w32proc.o): Depend on character.h.
24399
244002008-02-01 Jason Rumney <jasonr@gnu.org>
24401
24402 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24403
24404 * w32menu.c (syms_of_w32menu): Likewise.
24405
24406 * w32proc.c (syms_of_ntproc): Likewise.
24407
24408 * w32select.c (syms_of_w32select): Likewise.
24409
24410 * w32term.c (syms_of_w32term): Likewise.
24411
244122008-02-01 Jason Rumney <jasonr@gnu.org>
24413
24414 * w32font.c (w32font_draw): Delete brush after using it.
24415
244162008-02-01 Jason Rumney <jasonr@gnu.org>
24417
24418 * w32font.c (w32font_open): Don't set font_idx.
24419 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24420 to font settings.
24421 (w32font_draw): Fill background explicitly.
24422
244232008-02-01 Jason Rumney <jasonr@gnu.org>
24424
24425 * w32term.c (w32_initialize): Don't call w32font_initialize.
24426
24427 * w32font.c (w32font_info): Remove subranges.
24428 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24429 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24430 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24431 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24432 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24433 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24434 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24435 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24436 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24437 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24438 New symbols.
24439 (font_callback_data): New struct.
24440 (w32font_list, w32font_match): Use it.
24441 (w32font_open): Don't populate subranges.
24442 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24443 (w32font_encode_char): Always return unicode code-point as-is.
24444 (w32font_text_extents): Supply a transformation matrix to
24445 GetGlyphOutline. Never look up by glyph index. Avoid looping
24446 twice. Use unicode version of GetTexExtentPoint32 instead of
24447 glyph index version.
24448 (set_fonts_frame): Remove.
24449 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24450 set frame parameter. Use backward compatible fake foundries.
24451 Save generic family in extra slot under QCfamily. Make width slot
24452 constant. Save QCspacing value. Save list of scripts instead of
24453 binary subranges.
24454 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
24455 (add_font_entity_to_list): Use font_callback_data struct.
24456 Filter unwanted fonts.
aac0c6e3
MR
24457 (add_one_font_entity_to_list): Use font_callback_data struct.
24458 (w32_registry): Default to iso10646_1.
24459 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24460 string font registries. Don't fill in font name if it is a generic
24461 family name, fill family instead. Use spacing, family and script
24462 extra info to fill pitch, family and charset fields.
24463 (list_all_matching_fonts): Use font_callback_data struct.
24464 (unicode_range_for_char): Remove.
24465 (font_supported_scripts): New function.
24466 (w32font_initialize): Remove.
24467 (syms_of_w32font): Update which symbols are defined.
24468
244692008-02-01 Jason Rumney <jasonr@gnu.org>
24470
24471 * font.c (font_pixel_size): Reverse assq_no_quit args.
24472
24473 * w32term.h (FONT_WIDTH): Report max width, not average.
24474 (FONT_MAX_WIDTH): Remove.
24475 (FONT_AVG_WIDTH): New macro.
24476
24477 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24478 redefinition of FONT_WIDTH.
24479
24480 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24481 (w32_cache_char_metrics): Use FONT_WIDTH.
24482
24483 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24484
244852008-02-01 Jason Rumney <jasonr@gnu.org>
24486
24487 * w32font.c (w32font_open): Make lfHeight negative.
24488
24489 * w32fns.c (x_default_font_parameter): Use new style font name.
24490 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24491
244922008-02-01 Jason Rumney <jasonr@gnu.org>
24493
24494 * w32font.c (QCsubranges): New symbol.
24495 (w32font_open, w32font_has_char): Get subranges from subproperty
24496 of extra.
24497 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24498 (syms_of_w32font): Define :subranges symbol.
24499
24500 * font.c (font_put_extra): Expose externally.
24501
24502 * font.h (font_put_extra): Move declaration from font.c.
24503
24504 * font.c (Ffont_get): Use font driver to determine otf capability.
24505 (adjust_anchor): Check if driver defines anchor_point before using.
24506
24507 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24508 (w32font_draw): Use options.
24509 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24510 Fix detection of truetype fonts.
24511 (registry_to_w32_charset): Handle charsets other than iso8859-1
24512 expressed as lisp symbols.
24513 (w32_registry): Express charset as lisp symbol.
24514 (fill_in_logfont): Reverse pixel and point height logic.
24515 Don't set width here. Set quality to default.
24516
24517 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24518 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24519
24520 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24521 Remove redundant loop and allocation.
24522
24523 * makefile.w32-in (font.o, w32font.o): New objects.
24524 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24525 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24526
24527 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24528 STORE_XCHARB a valid l-value.
24529
24530 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24531 calculations for non-Truetype fonts.
24532 (x_draw_glyph_string): Sync with xterm.c.
24533 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24534 Remove redundant code.
24535 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24536
24537 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24538 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24539
24540 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24541 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24542
24543 * w32font.c: New file for w32 font backend.
24544
245452008-02-01 Kenichi Handa <handa@m17n.org>
24546
24547 * term.c: Don't include "buffer.h" twice.
24548
245492008-02-01 Kenichi Handa <handa@m17n.org>
24550
24551 * character.c (Funibyte_string): New function.
24552 (syms_of_character): Defsubr it.
24553
245542008-02-01 Jason Rumney <jasonr@gnu.org>
24555
24556 * w32term.c [USE_FONT_BACKEND]:
24557 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24558 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24559 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24560 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24561 (x_free_frame_resources): Sync with xterm.c.
24562
245632008-02-01 Andreas Schwab <schwab@suse.de>
24564
24565 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24566 char-table size.
24567
245682008-02-01 Kenichi Handa <handa@m17n.org>
24569
24570 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24571
245722008-02-01 Kenichi Handa <handa@m17n.org>
24573
24574 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24575 font_otf_gpos, add font_drive_otf.
24576
24577 * fontset.c (fontset_find_font): Pay attention to font size
24578 specified for a font.
24579 (reorder_font_vector): Check contents of font_def.
24580
24581 * font.c (struct otf_list): Delete it.
24582 (otf_list): Make it a lisp variable.
24583 (otf_open): Use lispy otf_list.
24584 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24585 (check_otf_features): New function.
24586 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24587 New functions.
24588 (font_drive_otf): New function merging font_otf_gsub and
24589 font_otf_gpos.
24590 (font_open_for_lface): New arg spec. Change argument order.
24591 (font_load_for_face): Adjust for the change of font_open_for_lface.
24592 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24593 Ffont_otf_gpos.
24594 (syms_of_font): Staticpro otf_list. Delete defsubr of
24595 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24596
24597 * xfaces.c (set_font_frame_param): Adjust for the change of
24598 font_open_for_lface.
24599
24600 * font.h (font_open_for_lface): Adjust prototype.
24601 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24602 member otf_drive.
24603 (font_otf_gsub, font_otf_gpos): Delete externs.
24604 (font_drive_otf): Extern it.
24605
246062008-02-01 Kenichi Handa <handa@m17n.org>
24607
24608 * font.c (font_at): If the window W is not on a window system,
24609 return Qnil.
24610
24611 * coding.c (produce_chars, encode_coding): Don't call
24612 insert_from_gap if no characters to produce.
24613
246142008-02-01 Kenichi Handa <handa@m17n.org>
24615
24616 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24617 Fclear_face_cache.
24618
24619 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24620
246212008-02-01 Miles Bader <miles@gnu.org>
24622
24623 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24624 Parse "--disable-font-backend" option.
24625 (standard_args): Add "--disable-font-backend" option.
24626
246272008-02-01 Kenichi Handa <handa@m17n.org>
24628
24629 * fontset.c (fontset_find_font): New function.
24630 (fontset_font): Use fontset_find_font.
24631 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24632 Register the specified font for all Latin characters.
24633 (new_fontset_from_font): Register the specified font for all Latin
24634 characters.
24635 (dump_fontset): For a realized fontset, include the base fontset
24636 name in the returned vector.
24637
246382008-02-01 Kenichi Handa <handa@m17n.org>
24639
24640 * character.h (CHAR_STRING): Cast C to unsigned on calling
24641 char_string.
24642
24643 * character.c (char_string): Type of arg C changed to unsigned.
24644 Signal an error if C is an invalid character code.
24645
24646 * editfns.c (general_insert_function, Fchar_to_string):
24647 Use CHARACTERP, not INTEGERP.
24648
246492008-02-01 Kenichi Handa <handa@m17n.org>
24650
24651 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24652 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24653
24654 * regex.c (analyse_first): Fix for multibyte characters in "case
24655 charset:" and "case categoryspec:".
24656
246572008-02-01 Andreas Schwab <schwab@suse.de>
24658
24659 * Makefile.in (LIBES): Move standard libraries to the end.
24660
246612008-02-01 Kenichi Handa <handa@m17n.org>
24662
24663 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24664 nonzero, don't shrink the buffer nextb.
24665
24666 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24667
24668 * coding.c (coding_alloc_by_making_gap): New arg offset.
24669 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24670 offset.
24671 (decode_coding_iso_2022): Update coding->safe_charsets.
24672 (decode_coding_gap): Temporarily set
24673 current_buffer->text->inhibit_shrinking to 1.
24674
246752008-02-01 Kenichi Handa <handa@m17n.org>
24676
bba3e508
SM
24677 * xterm.c (x_draw_composite_glyph_string_foreground):
24678 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
24679
246802008-02-01 Juanma Barranquero <lekktu@gmail.com>
24681
24682 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24683
246842008-02-01 Kenichi Handa <handa@m17n.org>
24685
24686 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24687 target_multibyte instead of multibyte.
24688 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24689 (bcmp_translate): Change the argument name from multibyte to
24690 target_multibyte.
24691
246922008-02-01 Kenichi Handa <handa@m17n.org>
24693
24694 These changes are to compile a regexp into a pattern that can be
24695 used both for multibyte and unibyte targets.
24696
24697 * Makefile.in (search.o): Depend on charset.h.
24698
24699 * character.c (multibyte_char_to_unibyte_safe): New function.
24700
24701 * search.c: Include "charset.h".
24702 (compile_pattern_1): Delete argument multibyte. Don't set
24703 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24704 (compile_pattern): Don't compare cp->buf.target_multibyte.
24705 Compare cp->buf.charset_unibyte.
24706 (compile_pattern): Set cp->buf.target_multibyte.
24707
24708 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24709
24710 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24711
24712 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24713 multibyte. Change callers.
24714 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24715 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24716 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24717 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24718 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24719 (regex_compile): Make the compiled pattern usable both for
24720 multibyte and unibyte targets.
24721 (analyse_first): Make the fastmap usable both for multibyte and
24722 unibyte targets.
24723 (TRANSLATE_VIA_MULTIBYTE): Delete.
24724 (re_match_2_internal): Pay attention to the case that the
24725 multibyteness of bufp and target may be different.
24726
247272008-02-01 Kenichi Handa <handa@m17n.org>
24728
24729 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24730 empty box occupy at least one column width.
24731
247322008-02-01 Miles Bader <miles@gnu.org>
24733
24734 * Makefile.in: Remove redundant HAVE_XFT clause.
24735
247362008-02-01 Kenichi Handa <handa@m17n.org>
24737
24738 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24739
247402008-02-01 Kenichi Handa <handa@m17n.org>
24741
24742 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24743 being nil.
24744
247452008-02-01 Kenichi Handa <handa@m17n.org>
24746
24747 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24748
247492008-02-01 Kenichi Handa <handa@m17n.org>
24750
24751 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24752
247532008-02-01 Kenichi Handa <handa@m17n.org>
24754
24755 * search.c (simple_search): Fix previous change.
24756
247572008-02-01 Kenichi Handa <handa@m17n.org>
24758
24759 * xftfont.c (ftfont_font_format): Extern declaration.
24760
24761 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24762
24763 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24764 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24765
24766 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24767 (ftfont_font_format): Fix previous change.
24768
24769 * font.h (Ffont_xlfd_name): EXFUN it.
24770
24771 * font.c (font_parse_xlfd): Fix the array size of `f'.
24772 (register_font_driver): Use EQ to compare driver->type.
24773
24774 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24775 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24776 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24777
247782008-02-01 Kenichi Handa <handa@m17n.org>
24779
24780 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24781 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24782
247832008-02-01 Kenichi Handa <handa@m17n.org>
24784
24785 * xfont.c (xfont_open): Set font->format.
24786
24787 * xftfont.c (xftfont_open): Set font->format.
24788
24789 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24790 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24791 (ftfont_open): Set font->format.
24792 (ftfont_font_format): New function.
24793
24794 * font.h (struct font): New member format.
24795
24796 * font.c (Qopentype): New variable.
24797 (syms_of_font): Defsym it.
24798 (Fquery_font): Change the format of the last element of the return
24799 value.
24800
248012008-02-01 Kenichi Handa <handa@m17n.org>
24802
24803 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24804 last resort.
24805
248062008-02-01 Kenichi Handa <handa@m17n.org>
24807
24808 * coding.c (detect_coding_charset): Fix detection of multi-byte
24809 charset.
24810
248112008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24812
24813 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24814
248152008-02-01 Kenichi Handa <handa@m17n.org>
24816
24817 * xdisp.c (get_next_display_element): Set it->face_id for the
24818 first component of a composition.
24819 (x_produce_glyphs): Check if the font is changed or not for composition.
24820
248212008-02-01 Kenichi Handa <handa@m17n.org>
24822
24823 * fontset.c (Qlatin): New variable.
24824 (syms_of_fontset): Define it as a lisp symbol.
24825 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24826
248272008-02-01 Kenichi Handa <handa@m17n.org>
24828
24829 * font.c (font_unparse_fcname): Pay attention to the case that
24830 some of font property is a null string.
24831
248322008-02-01 Kenichi Handa <handa@m17n.org>
24833
24834 * term.c: Include "composite.h".
24835 (encode_terminal_code): Output all components of composition.
24836 Check the size of encode_terminal_src.
24837 (produce_glyphs): For composition, call produce_composite_glyph.
24838 (append_composite_glyph, produce_composite_glyph): New functions.
24839
24840 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24841 is not found, get font_info from the current ascii face.
24842
248432008-02-01 Kenichi Handa <handa@m17n.org>
24844
24845 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24846 buffer-file-name to Qnil before calling insert_from_buffer.
24847
24848 * font.c (font_unparse_fcname): Pay attention to the case that
24849 foundry is a null string.
24850
248512008-02-01 Kenichi Handa <handa@m17n.org>
24852
24853 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24854
24855 * font.c (Qunicode_sip): New variable.
24856 (syms_of_font): Declare it as a Lisp symbol.
24857
24858 * font.h (Qunicode_sip): Extern it.
24859
248602008-02-01 Kenichi Handa <handa@m17n.org>
24861
24862 * composite.c (get_composition_id): Pay attention to TAB component.
24863
24864 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24865 TAB. Adjust for the change of s->char2b which always points to
24866 the first element of allocated memory.
24867
24868 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24869
24870 * xdisp.c (handle_composition_prop): Set it->c to the first
24871 non-TAB component.
24872 (fill_composite_glyph_string): Change argument.
24873 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24874 (x_produce_glyphs): Fix handling of left/right padding.
24875
248762008-02-01 Kenichi Handa <handa@m17n.org>
24877
24878 * coding.c (detect_coding_system): Fix for handling off
24879 inhibit_iso_escape_detection. Fix for the case that no coding
24880 system is defined for a specific coding category.
24881
248822008-02-01 Kenichi Handa <handa@m17n.org>
24883
24884 * font.c (font_matching_entity): Delete unused local var.
24885
24886 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24887 opening a font.
24888
24889 * fileio.c (Finsert_file_contents): On recovering a file, assume
24890 Unix-like eol.
24891 (choose_write_coding_system): On auto-saving a file, force
24892 Unix-like eol.
24893
24894 * coding.c (setup_coding_system): Fix setting of
24895 coding->common_flags based on eol_type.
24896 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24897 inherit from it.
24898
248992008-02-01 Kenichi Handa <handa@m17n.org>
24900
24901 * alloc.c (NSTATICS): Increas to 0x600.
24902
249032008-02-01 Kenichi Handa <handa@m17n.org>
24904
24905 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24906 (ftfont_list): Don't check :name property.
24907 (ftfont_match): New function.
24908 (ftfont_pattern_entity): If the pattern doesn't contain
24909 FC_SPACING, don't assume FC_MONO.
24910
24911 * font.h (struct font_driver): New member `match'.
24912 (font_update_drivers): Adjust prototype.
24913
24914 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24915 property of FONT.
bba3e508
SM
24916 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24917 Define them unconditionally.
aac0c6e3
MR
24918 (font_matching_entity): New function.
24919 (font_open_by_name): Try font_matching_entity if exact match is
24920 not found.
24921 (font_update_drivers): Delete the arg FONT. Return a list of
24922 actually used backends. Don't free faces, font caches here.
24923 Don't store data in frame parameters. Don't call x_set_font.
24924 (Ffont_spec): Store :name property as is.
24925 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24926 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24927 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24928 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24929 Call font->driver->otf_gsub instead of font_otf_gsub.
24930
24931 * frame.c (x_set_font_backend): Do more works that were done in
24932 font_update_drivers before.
24933
24934 * xfont.c (xfont_match): New function.
24935 (xfont_driver): Set xfont_driver.match to xfont_match.
24936 (xfont_draw): Set font in GC if necessary.
24937
24938 * ftxfont.c (ftxfont_match): New function.
24939 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24940
24941 * xftfont.c (xftfont_match): New function.
24942 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24943
249442008-02-01 Kenichi Handa <handa@m17n.org>
24945
24946 * font.h (struct font): New member scalable.
24947 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24948 (font_otf_gsub): Adjust prototype.
24949
24950 * font.c (font_otf_capability): Fix handling of the default langsys.
24951 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24952 Check the contents of SPEC.
24953 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24954 (check_gstring): New function.
24955 (REPLACEMENT_CHARACTER): New macro.
24956 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24957 glyph codes of GSTRING.
24958 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24959 (font_prepare_composition): Set cmp->glyph_len.
24960 (font_open_entity): Set font->scalable.
24961 (Ffont_get): Handle :otf property.
bba3e508
SM
24962 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24963 New functions.
aac0c6e3
MR
24964 (Fquery_font): Use font->font.full_name.
24965 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24966 Sfont_otf_alternates.
24967
24968 * ftfont.c (ftfont_open): Set font->font.full_name and
24969 font->font.name properly. Fix calculation of font->font.height
24970 and font->min_width.
24971
24972 * ftxfont.c (ftxfont_create_gcs): New function.
24973 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24974 (ftxfont_draw_backgrond): Fix filling region.
24975 (ftxfont_default_fid): New function.
24976 (ftxfont_open): Set xfont->fid to the return value of
24977 ftxfont_default_fid.
24978 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24979 (ftxfont_done_face): Free only GCs that are created by
24980 ftxfont_create_gcs.
24981 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24982
24983 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24984 Clip to src->width, etc (not src->clip_XXX).
24985
24986 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24987 FontBackend frame parameter.
24988
249892008-02-01 Kenichi Handa <handa@m17n.org>
24990
24991 * font.h (struct font_driver_list): New member `on'.
24992 (Fclear_font_cache): EXFUN it.
24993 (font_update_drivers): Extern it.
24994
24995 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24996 (font_list_entities): Check driver_list->on.
40b1a3a9 24997 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
24998 (font_update_drivers): New function.
24999 (Fclear_font_cache): Check driver_list->on.
25000
25001 * frame.h (Qfont_backend): Extern it.
25002 (x_set_font_backend): Extern it.
25003
25004 * frame.c (Qfont_backend): New variable.
25005 (frame_parms): New element for font-backend.
25006 (x_set_font_backend): New function.
25007
25008 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
25009 FontBackend frame parameter.
25010 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
25011 x_set_font_backend.
25012
25013 * xfont.c (xfont_list): Don't try listing by :name property if the
25014 name is not for XLFD.
25015
250162008-02-01 Kenichi Handa <handa@m17n.org>
25017
25018 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
25019 (LGLYPH_SET_TO): New macros.
25020 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
25021 element of G is vector or not.
25022 (font_at): Extern it.
25023
25024 * font.c: Include window.h.
25025 (font_lispy_object): New function.
25026 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
25027 end of valid glyph.
25028 (font_close_object): Fix getting (struct font *).
25029 (font_at): New function.
25030 (Ffont_get): If FONT is a font-object, get entity from it.
25031 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
25032 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
25033 Fix range check.
aac0c6e3
MR
25034 (Ffont_at): New function.
25035 (syms_of_font): Defsubr Sfont_at.
25036
25037 * xdisp.c (it_props): Move the entry for Qauto_composed to just
25038 before the entry for Qcomposition.
25039 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
25040 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
25041 the font in gstring.
25042 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
25043 LGLYPH_FORM (g) to detect the end of valid glyph.
25044 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
25045 we are composing with gstring.
25046
25047 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
25048 Check if adjustment is vector or not.
25049
25050 * Makefile.in (font.o): Make it depends on window.h.
25051
250522008-02-01 Kenichi Handa <handa@m17n.org>
25053
25054 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
25055 adjustment is vector or not.
25056
250572008-02-01 Miles Bader <miles@gnu.org>
25058
25059 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
25060
250612008-02-01 Kenichi Handa <handa@m17n.org>
25062
25063 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 25064 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
25065 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
25066
25067 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
25068 (DEVICE_DELTA): Fix typo.
25069 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
25070 LGLYPH format.
25071
25072 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
25073 the change of LGLYPH format.
25074
250752008-02-01 Kenichi Handa <handa@m17n.org>
25076
25077 * ftfont.c (ftfont_list): Fix typo.
25078 (ftfont_build_basic_charsets): Don't include letters with diacritics.
25079
250802008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25081
25082 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
25083
25084 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
25085 xftface_info is non-NULL.
25086
250872008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25088
25089 * ftfont.c (ftfont_list): Move misplaced #endif.
25090
250912008-02-01 Kenichi Handa <handa@m17n.org>
25092
25093 * ftfont.c (ftfont_list): Pay attention to the case that
25094 FC_CAPABILITY is not defined.
25095
250962008-02-01 Kenichi Handa <handa@m17n.org>
25097
25098 * xftfont.c (xftfont_open): Set charset related members to -1.
25099
25100 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
25101 QCname.
25102 (ftfont_open): Set charset related members to -1.
25103
25104 * fontset.c (Votf_script_alist): New variable.
25105 (syms_of_fontset): Initialize it.
25106 (fontset_font): Delete unused variable.
25107
25108 * fontset.h (Votf_script_alist): Extern it.
25109
25110 * font.c (font_find_for_lface): Optimize code.
25111
25112 * font.h (font_close_object, font_merge_old_spec): Extern them.
25113
251142008-02-01 Kenichi Handa <handa@m17n.org>
25115
25116 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
25117 (syms_of_font): Initialize them.
25118 (font_pixel_size): Allow float value in dpi.
25119 (font_prop_validate_type): Delete.
25120 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
25121 Change caller.
25122 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
25123 (font_prop_validate_extra): Delete.
25124 (font_prop_validate_spacing): New function.
25125 (font_property_table): Add elements for all known properties.
bba3e508
SM
25126 (get_font_prop_index): Rename from check_font_prop_name.
25127 New argument FROM. Change caller.
aac0c6e3
MR
25128 (font_prop_validate): Validate all known properties.
25129 (font_put_extra): Delete argument force. Change caller.
25130 (font_expand_wildcards): Make it static. Fix the way of shrinking
25131 the possible range.
25132 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
25133 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
25134 Change caller.
25135 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
25136 (font_parse_fcname): Delete argument merge. Fix parsing of point
25137 size. Don't validate properties values here. Change caller.
25138 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
25139 (font_open_by_name): Delete unused variable.
25140 (Ffont_spec): Likewise. Validate property values.
25141 (Ffont_match_p): New function.
25142
25143 * font.h (QCscalable): Extern it.
25144 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
25145
25146 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
25147
25148 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
25149 (xfont_list_pattern): New function.
25150 (xfont_list): Use xfont_list_pattern.
25151
251522008-02-01 Kenichi Handa <handa@m17n.org>
25153
25154 * font.h (Flist_fonts): EXFUN it.
25155
251562008-02-01 Jason Rumney <jasonr@gnu.org>
25157
25158 * w32term.c (w32_initialize): Add back smoothing_type and
25159 smoothing_enabled definitions.
25160
251612008-02-01 Kenichi Handa <handa@m17n.org>
25162
25163 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
25164 s->face->font on determining underline position.
25165
251662008-02-01 Kenichi Handa <handa@m17n.org>
25167
25168 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
25169 (font_has_char): Accept font-object too.
25170 (font_find_for_lface): Try at first with a size specified in face.
25171
251722008-02-01 Kenichi Handa <handa@m17n.org>
25173
25174 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
25175 font_open_by_name.
25176
251772008-02-01 Kenichi Handa <handa@m17n.org>
25178
25179 * font.h (QCspacing, QCdpi): Extern them.
25180 (enum font_spacing): New enum.
25181 (FONT_PIXEL_SIZE_QUANTUM): New macro.
25182
25183 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
25184 (QCspacing, QCdpi): New variables.
25185 (syms_of_font): Initialize them.
25186 (font_pixel_size): New function.
25187 (font_put_extra): New function.
25188 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
25189 in FONT_EXTRA.
25190 (font_parse_fcname): Handle enumerated values (e.g. bold).
25191 Fix handling font size. Add QCname property that contains only
25192 unknown properties.
25193 (font_score): Change argument. Change caller. Pay attention to
25194 FONT_PIXEL_SIZE_QUANTUM.
25195 (font_sort_entites, font_list_entities, font_find_for_lface)
25196 (font_open_for_lface, font_open_by_name): Fix handling of font size.
25197 (Ffont_spec): Add QCname property that contains only unknown properties.
25198
bba3e508
SM
25199 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
25200 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
25201 listed font. Don't include scalable in pattern. Pay attention to
25202 FONT_PIXEL_SIZE_QUANTUM.
25203
252042008-02-01 Kenichi Handa <handa@m17n.org>
25205
25206 * font.c (font_parse_fcname): Fix parsing of point-size.
25207 (font_unparse_fcname): Produce symbolic names for style properties.
25208 (font_list_entities): Handle float size correctly.
25209 (font_open_by_name): Prefer `normal' property values if the name
25210 doesn't specify them.
25211
25212 * fontset.c (Finternal_char_font): Use font_get_name, not
25213 Ffont_xlfd_name.
25214
25215 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25216 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25217 pattern. Don't force scalable.
25218
25219 * xftfont.c (xftfont_open): For generating a name, start from
25220 96-byte buffer.
25221
252222008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25223
25224 * frame.h (x_new_fontset2): Fix prototype.
25225
252262008-02-01 Kenichi Handa <handa@m17n.org>
25227
25228 * font.h (struct font_driver): Delete member parse_name.
25229 (font_match_p, font_get_spec, font_parse_fcname)
25230 (font_unparse_fcname): Extern them.
25231 (font_get_name): Adjust prototype.
25232
25233 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25234 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
25235 (font_expand_wildcards): Fix handling ENCODING field.
25236 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
25237 (font_parse_fcname): New function.
25238 (font_unparse_fcname): New function.
25239 (font_parse_name): New function.
25240 (font_match_p): New function.
25241 (font_get_name): Change return value to Lisp string.
25242 (font_get_spec): New function.
25243 (Qunspecified, Qignore_defface): Don't extern them.
25244 (font_find_for_lface): Assume that LFACE is fully specified.
25245 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25246 object, use it for FACE.
25247 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25248 driver->parse_name.
25249 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25250
25251 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25252 prototype.
25253
25254 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25255 argument F. Don't call Fnew_fontset. Instead, directly call
25256 make_fontset.
25257
25258 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25259
25260 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25261 of x_new_fontset2.
25262
25263 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25264 (Qsans__serif): New variables.
25265 (ftfont_generic_family_list): New variable.
25266 (syms_of_ftfont): Initialize the above variables.
25267 (ftfont_pattern_entity): Delete argument NAME.
25268 (ftfont_list_generic_family): New function.
25269 (ftfont_parse_name): Delete this function.
25270 (ftfont_list): Try generic family only when FcFontList found no font.
25271 (ftfont_list_family): Fix args to FcObjectSetBuild.
25272
25273 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25274 object in attrs[LFACE_FONT_INDEX].
25275 (set_lface_from_font_name): Cancel all changes for font-backend.
25276 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25277 function.
25278 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25279 font object in QCfont attribute.
25280 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25281 (realize_default_face) [USE_FONT_BACKEND]: Call
25282 set_lface_from_font_and_fontset.
25283
25284 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25285 "fixed", and signal error here if no suitable font was found.
25286
25287 * xfont.c (xfont_parse_name): Delete this function.
25288
25289 * xftfont.c (xftfont_open): Change coding style of error
25290 handling. Generate fontconfig's fontname pattern.
25291
25292 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25293 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25294
25295 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25296 Both args FONTSET and FONT_OBJECT must be existing ones.
25297
252982008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25299
25300 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25301
253022008-02-01 Kenichi Handa <handa@m17n.org>
25303
25304 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25305
25306 * font.h (struct font): Fix typo.
25307
25308 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25309 XLFD_XXX_INDEX.
25310 (enum xlfd_field_mask): New enum.
ef1b0ba7 25311 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
25312 are followed by non-digits, return a symbol.
25313 (font_expand_wildcards): New function.
25314 (font_parse_xlfd): Fix wildcard handling.
25315 (Ffont_spec): If :name is specified, reflect the info in the other
25316 properties.
25317
25318 * ftfont.c (ftfont_pattern_entity): Fix typo.
25319 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25320 locale.
25321
253222008-02-01 Kenichi Handa <handa@m17n.org>
25323
25324 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25325
25326 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25327 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25328 registry doesn't specify encoding part.
25329 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25330 (font_open_by_name): At first try parsing the name.
25331 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25332 as Lisp symbols.
25333
25334 * fontset.c (reorder_font_vector): Pay attention to the case that
25335 the 3rd element of font_def is nil.
25336 (fontset_font): For the default fontset, append one more fontset
25337 elements for a script-based font specification. Don't add script
25338 attribute on finding a font.
25339 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25340 font name.
25341 (fontset_ascii_font): If a font can't be opened, return nil.
25342
25343 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25344 (ftfont_pattern_entity): New function.
25345 (ftfont_get_cache): Assume that freetype_font_cache is already
25346 initialized.
25347 (ftfont_list): Handle the case that a file is specified in font
25348 name. Use ftfont_pattern_entity to generate entities.
25349 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25350 (syms_of_ftfont): Initialize freetype_font_cache.
25351
25352 * xftfont.c (xftfont_open): Make the font name fontconfig's
25353 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25354 (xftfont_close): Free font->font.name if not NULL.
25355
25356 * xfont.c (xfont_list): If script is specified for a font, return
25357 null_vector.
25358 (xfont_list_family): Declare argument type.
25359
25360 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25361 name, set LFACE_FONT (lface) to nil.
25362
25363 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25364 return Qnil.
25365
253662008-02-01 Kenichi Handa <handa@m17n.org>
25367
25368 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25369 (standard_args): Add "-enable-font-backend".
25370
253712008-02-01 Kenichi Handa <handa@m17n.org>
25372
25373 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25374 (struct xftdraw_list, xftdraw_list): Delete them.
25375 (register_xftdraw, check_xftdraw): Delete them.
25376 (xftfont_prepare_face): Don't call register_xftdraw.
25377 (xftfont_done_face): Don't call check_xftdraw.
25378 (xftfont_draw): Get background color only when with_background is
25379 nonzero.
25380
25381 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25382
253832008-02-01 Kenichi Handa <handa@m17n.org>
25384
25385 These changes are for the new font handling codes.
25386
25387 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25388 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25389 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25390 (FONTSRC, FONTOBJ): New variables.
25391 (obj): Add $(FONTOBJ).
25392 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25393 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25394 @LIBOTF_LIBS@.
25395 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25396 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25397
25398 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25399
25400 * character.h (Vscript_representative_chars): Extern it.
25401
25402 * character.c (Vscript_representative_chars): New variable.
25403 (syms_of_character): Declare it as a Lisp variable.
25404
25405 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25406 enable_font_backend is nonzero, accept the composition method
25407 COMPOSITION_WITH_GLYPH_STRING.
25408
25409 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25410 enumeration COMPOSITION_WITH_GLYPH_STRING.
25411
25412 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25413 members clip_x, clip_y, clip_width, and clip_height.
25414 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25415
25416 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25417 --enable-font-backend. Call syms_of_font.
25418
25419 * fns.c (assoc_no_quit): New function.
25420
25421 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25422 (face_for_font, new_fontset_from_font)
25423 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25424
25425 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25426 (fontset_font, fontset_ascii, face_for_char)
25427 (make_fontset_for_ascii_face, Ffont_info)
25428 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25429 is nonzero, use font-backend mechanism.
25430 (find_font_encoding): Make it non-static.
25431 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25432 New functions.
25433
25434 * frame.h (struct frame): New members resx and resy.
25435 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25436 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25437
25438 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25439 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25440
25441 * lisp.h (assoc_no_quit): Extern it.
25442
25443 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25444 Through out the file, use FONT_INFO_FROM_FACE instead of
25445 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25446 rif->per_char_metric.
25447 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25448 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25449 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25450 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25451 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25452 nonzero, use font-backend mechanism.
25453 (get_per_char_metric): New function.
25454
25455 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25456 (set_lface_from_font_name)
25457 (set_font_frame_param, free_realized_face)
25458 (prepare_face_for_display, clear_face_gcs)
25459 (Finternal_set_font_selection_order, realize_x_face)
25460 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25461 font-backend mechanism.
25462 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25463 (load_face_font) [USE_FONT_BACKEND]: Abort.
25464 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25465 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25466
25467 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25468 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25469 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
25470 nonzero, register all available font drivers.
25471 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
25472 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25473
25474 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25475 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25476 (x_set_glyph_string_clipping_exactly)
25477 (x_compute_glyph_string_overhangs)
25478 (x_draw_glyph_string_foreground)
25479 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25480 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25481 enable_font_backend is nonzero, use font-backend mechanism.
25482 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25483
254842008-02-01 Kenichi Handa <handa@m17n.org>
25485
25486 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25487 system_eol_type.
25488 (syms_of_coding): Initialize system_eol_type.
25489
25490 * process.c (Fset_process_coding_system): Inherit system's eol
25491 format if necessary.
25492
254932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25494
25495 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25496
254972008-02-01 Kenichi Handa <handa@m17n.org>
25498
25499 * coding.c (decode_eol): Pay attention to buffer relocation in
25500 del_range_2.
25501 (decode_coding): Call decode_eol before restoring undo_list.
25502
255032008-02-01 Kenichi Handa <handa@m17n.org>
25504
25505 * charset.c (Fdefine_charset_internal): Fix setting of
25506 emacs_mule_bytes.
25507
255082008-02-01 Kenichi Handa <handa@m17n.org>
25509
25510 * keyboard.c (read_char): Check if C is a character or not before
25511 looking up Vkeyboard_translate_table.
25512
255132008-02-01 Kenichi Handa <handa@m17n.org>
25514
bba3e508
SM
25515 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25516 Fix condition to terminate the loop.
aac0c6e3
MR
25517
255182008-02-01 Kenichi Handa <handa@m17n.org>
25519
25520 * coding.c (produce_composition): Compare charbuf[i] instead of
25521 args[i] against 0.
25522 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25523
255242008-02-01 Kenichi Handa <handa@m17n.org>
25525
25526 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25527 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25528 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25529 detect_coding.
25530 (emacs_mule_char): Handle old style (Emacs 20) component character
25531 of a composition.
25532 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25533 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25534 composition rule.
25535 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25536
255372008-02-01 Kenichi Handa <handa@m17n.org>
25538
25539 * coding.c (encode_coding_ccl): Allocate destination dynamically
25540 when necessary.
25541
255422008-02-01 Kenichi Handa <handa@m17n.org>
25543
25544 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25545 the loop. When quitted, show a proper error message.
25546
255472008-02-01 Kenichi Handa <handa@m17n.org>
25548
bba3e508
SM
25549 * xterm.c (x_set_glyph_string_clipping_exactly):
25550 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
25551
25552 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25553 character sequence.
25554 (Fccl_execute_on_string): Use ASET, not XSET.
25555
255562008-02-01 Kenichi Handa <handa@m17n.org>
25557
25558 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25559
255602008-02-01 Kenichi Handa <handa@m17n.org>
25561
25562 * coding.c (decode_coding): Fix the condition of terminating the
25563 decoding loop.
25564
255652008-02-01 Kenichi Handa <handa@m17n.org>
25566
25567 * data.c (Faset): On setting a character bigger than 255 in a
25568 unibyte string, signal an error instead of make the string multibyte.
25569
255702008-02-01 Kenichi Handa <handa@m17n.org>
25571
25572 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25573 made by a mapping table.
25574
255752008-02-01 Kenichi Handa <handa@m17n.org>
25576
25577 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25578 not.
25579 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25580 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25581
bba3e508
SM
25582 * xterm.c (x_draw_composite_glyph_string_foreground):
25583 Check s->face is NULL or not.
aac0c6e3
MR
25584
255852008-02-01 Kenichi Handa <handa@m17n.org>
25586
25587 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25588 (x_draw_glyph_string): Fix drawing of right_overhang and
25589 left_overhang around/on cursor.
25590
25591 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25592
255932008-02-01 Kenichi Handa <handa@m17n.org>
25594
25595 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25596
255972008-02-01 Kenichi Handa <handa@m17n.org>
25598
25599 * coding.c (Fdefine_coding_system_internal)
25600 (Fdefine_coding_system_alias): Avoid a duplicated element in
25601 Vcoding_system_alist.
25602
256032008-02-01 Kenichi Handa <handa@m17n.org>
25604
25605 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25606
25607 * coding.c (Qcoding_system_define_form): New variable.
25608 (syms_of_coding): Intern and staticpro it.
25609 (Fcoding_system_p): Check Qcoding_system_define_form.
25610 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25611
25612 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25613 Fcoding_system_p.
25614 (CHECK_CODING_SYSTEM): If ID is not available, call
25615 Fcheck_coding_system.
25616 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25617 Try also Fcheck_coding_system.
25618
256192008-02-01 Kenichi Handa <handa@m17n.org>
25620
25621 * coding.c (code_conversion_restore): GCPRO arg.
25622
256232008-02-01 Kenichi Handa <handa@m17n.org>
25624
25625 * character.c (lisp_string_width): Check multibyteness of STRING.
25626
256272008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25628
25629 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25630 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25631 (decode_mac_font_name): Use decode_coding_c_string instead of
25632 decode_coding.
bba3e508
SM
25633 (x_load_font): Initialize fontp->fontset to -1.
25634 Set fontp->encoding_type.
aac0c6e3
MR
25635
256362008-02-01 Kenichi Handa <handa@m17n.org>
25637
25638 * search.c (search_buffer): Give up BM search on case-fold-search
25639 if one of a target character has a case-equivalence of different
3b59c351 25640 byte length even if that target character is an ASCII.
aac0c6e3
MR
25641 (simple_search): Fix calculation of byte length of matched text.
25642 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25643
256442008-02-01 Kenichi Handa <handa@m17n.org>
25645
25646 * coding.c (decode_coding): Fix handling of invalid bytes.
25647
256482008-02-01 Kenichi Handa <handa@m17n.org>
25649
25650 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25651 Unicode characters.
25652
256532008-02-01 Kenichi Handa <handa@m17n.org>
25654
25655 * coding.c (encode_coding_object): If a pre-write-conversion
25656 function makes a new buffer, kill it.
25657
256582008-02-01 Kenichi Handa <handa@m17n.org>
25659
25660 * coding.c (QCascii_compatible_p): New variable.
25661 (syms_of_coding): Initialize it.
25662 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25663 calling string_char.
25664 (record_conversion_result): Add `default:' case.
25665 (coding_charset_list): Delete unused variable `coding_type'.
25666 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25667 property in the plist of the coding system.
25668 (Fcoding_system_put): Check QCascii_compatible_p.
25669
256702008-02-01 Miles Bader <miles@gnu.org>
25671
25672 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25673 removed calculation of frame `f', as it's now used.
25674
256752008-02-01 Kenichi Handa <handa@m17n.org>
25676
25677 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25678 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25679 (UNIDATA): New variable.
25680 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
25681 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25682 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
25683
256842008-02-01 Kenichi Handa <handa@m17n.org>
25685
25686 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25687 (admindir): New variable.
25688 ($(lispsource)international/charprop.el): New target.
25689
256902008-02-01 Miles Bader <miles@gnu.org>
25691
25692 * character.c (chars-in-region): Remove obsolete function.
25693 (syms_of_character): Remove its initialization.
25694
256952008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25696
25697 * w32select.c (validate_coding_system)
25698 (setup_windows_coding_system): New functions.
bba3e508
SM
25699 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25700 Use setup_windows_coding_system.
25701 (setup_config, Fw32_get_clipboard_data):
25702 Use validate_coding_system.
aac0c6e3
MR
25703 (Fx_selection_exists): Move call to setup_config to a place
25704 where signals are allowed.
25705
25706 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25707 (Fcheck_coding_system): Add declarations.
25708
257092008-02-01 Kenichi Handa <handa@m17n.org>
25710
25711 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25712
257132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25714
25715 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25716 string as the second argument for x_new_fontset.
25717
257182008-02-01 Kenichi Handa <handa@m17n.org>
25719
25720 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25721 (encode_coding_object): Use safe_call instead of call2.
25722
257232008-02-01 Kenichi Handa <handa@m17n.org>
25724
25725 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25726
25727 * Makefile.in (lisp): Include charprop.el.
25728
257292008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25730
25731 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25732 Not sure if it's unnecessary.
25733
257342008-02-01 Steven Tamm <steventamm@mac.com>
25735
25736 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25737 some possibly unnecessary fontset checking code that crashed
25738 when creating a new frame.
25739
257402008-02-01 Kenichi Handa <handa@m17n.org>
25741
25742 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25743 lookup_face.
25744
25745 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25746
25747 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25748
257492008-02-01 Kenichi Handa <handa@m17n.org>
25750
25751 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25752 (coding_charset_list): New function.
25753
25754 * coding.h (coding_charset_list): Extern it.
25755
257562008-02-01 Kenichi Handa <handa@m17n.org>
25757
25758 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25759 concatenation of family and registry.
25760
257612008-02-01 Kenichi Handa <handa@m17n.org>
25762
25763 * character.h (BYTE8_STRING): Fix typo.
25764
25765 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25766 string to multibyte (sync to HEAD).
25767
25768 * casefiddle.c (casify_region): Handle changes in byte-length
25769 using replace_range_2 (sync to HEAD).
25770
257712008-02-01 Andreas Schwab <schwab@suse.de>
25772
25773 * chartab.c (map_char_table): GCPRO table and arg.
25774
257752008-02-01 Kenichi Handa <handa@m17n.org>
25776
25777 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25778 already at limit.
25779
257802008-02-01 Kenichi Handa <handa@m17n.org>
25781
25782 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25783 instead of fast_c_string_match_ignore_case.
bba3e508
SM
25784 (find_font_encoding): Change argument to Lisp_Object.
25785 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
25786 fast_c_string_match_ignore_case. Change caller.
25787
257882008-02-01 Kenichi Handa <handa@m17n.org>
25789
25790 * xdisp.c (get_next_display_element): In unibyte case, decide to
25791 display in octal form by checking a character by
25792 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25793
25794 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25795
25796 * character.c (unibyte_has_multibyte_table): New variable.
25797
25798 * character.h (unibyte_has_multibyte_table): Extern it.
25799 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25800
258012008-02-01 Kenichi Handa <handa@m17n.org>
25802
25803 * coding.c (encode_coding_iso_2022): Fix handling of charset
25804 annotation.
25805
258062008-02-01 Kenichi Handa <handa@m17n.org>
25807
25808 * coding.c (setup_coding_system): If coding_system is nil, use
25809 Qundecided.
25810 (Fterminal_coding_system): Return nil if terminal coding system is
25811 `undecided'.
bba3e508
SM
25812 (syms_of_coding): Define coding-system `undecided' here.
25813 Setup terminal_coding as `undecided'.
aac0c6e3
MR
25814
258152008-02-01 Kenichi Handa <handa@m17n.org>
25816
bba3e508
SM
25817 * xdisp.c (message_dolog, set_message_1):
25818 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
25819
25820 * lread.c (read1): Fix reading of a char-table.
25821
25822 * print.c (print_object): Include sub char-table in circularities
25823 detection.
25824
258252008-02-01 Kenichi Handa <handa@m17n.org>
25826
25827 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25828 Append the found sequences in car of ARGS instead of prepending.
25829
258302008-02-01 Kenichi Handa <handa@m17n.org>
25831
25832 * fileio.c (report_file_error): Make a unibyte string from
25833 strerror (errorno).
25834 (Fsubstitute_in_file_name): Fix the arg to
25835 unibyte_char_to_multibyte. It is evaluated twice.
25836
258372008-02-01 Kenichi Handa <handa@m17n.org>
25838
25839 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25840
258412008-02-01 Kenichi Handa <handa@m17n.org>
25842
25843 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25844 BOM is not found.
25845 (detect_coding, detect_coding_system): Optimization for ISO-2022
25846 when no 8-bit data is found.
25847
258482008-02-01 Jason Rumney <jasonr@gnu.org>
25849
25850 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25851
258522008-02-01 Kenichi Handa <handa@m17n.org>
25853
25854 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25855 CHARS.
25856
258572008-02-01 Steven Tamm <steventamm@mac.com>
25858
25859 * macterm.c (mac_encode_char): Add charset argument and update
25860 to use encoding_type.
25861 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25862 switch to pure fontset.
25863 (decode_mac_font_name): Temporarily remove decoding.
25864 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25865 (x_load_font): Temporarily remove encoding.
25866
258672008-02-01 Kenichi Handa <handa@m17n.org>
25868
25869 * xfaces.c (Fface_font): If frame is not on a window system,
25870 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25871 refer to face->font.
25872 (split_font_name_into_vector, build_font_name_from_vector)
25873 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25874 when HAVE_WINDOW_SYSTEM is defined.
25875
258762008-02-01 Kenichi Handa <handa@m17n.org>
25877
25878 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25879 (x_produce_glyphs): Fix setting of members of cmp in case
25880 cmp->glyph_len is zero.
25881
25882 * fontset.c (Fset_fontset_font): Fix docstring.
25883 (Ffontset_info): Make it backward compatible. New arg ALL.
25884
258852008-02-01 Kim F. Storm <storm@cua.dk>
25886
25887 * process.c (read_process_output): Grow decoding_buf when needed;
25888 this could cause a crash in allocate_string and compact_small_strings.
25889
258902008-02-01 Kenichi Handa <handa@m17n.org>
25891
25892 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25893
258942008-02-01 Kenichi Handa <handa@m17n.org>
25895
25896 * coding.c (setup_coding_system): Set coding->common_flags
25897 correctly for raw-text.
25898 (consume_chars): On encoding unibyte text by raw-text, don't check
25899 multibyte form.
25900 (encode_coding): On encoding by raw-text, never use translation tables.
25901
25902 * fileio.c (e_write): Short cut for the case of no encoding.
25903
259042008-02-01 Kenichi Handa <handa@m17n.org>
25905
25906 * coding.c (detect_coding, detect_coding_system): Delete unused
25907 variables.
25908
259092008-02-01 Kenichi Handa <handa@m17n.org>
25910
25911 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25912 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25913
259142008-02-01 Kenichi Handa <handa@m17n.org>
25915
bba3e508
SM
25916 * coding.c (Ffind_coding_systems_region_internal):
25917 Include raw-text and no-conversion in the result.
aac0c6e3
MR
25918
259192008-02-01 Kenichi Handa <handa@m17n.org>
25920
25921 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25922 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25923 FONT_DEF.
25924 (font_def_arg, add_arg, from_arg, to_arg): New args.
25925 (set_fontset_font): Change argument.
25926 (Fset_fontset_font): Fix for the case that TARGET is a script
25927 name and charset name.
25928 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25929
259302008-02-01 Kenichi Handa <handa@m17n.org>
25931
25932 * fontset.c (fontset_font): Rename from fontset_face. Change return
25933 value.
25934 (face_suitable_for_char_p, face_for_char): Adjust for the change
25935 of fontset_font.
25936 (make_fontset_for_ascii_face): Fix setting of the fontset element
25937 for ASCII.
25938 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25939 to get a font name.
25940 (Ffontset_info): Adjust for the change of fontset_font.
25941
25942 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25943
25944 * character.h (LEADING_CODE_LATIN_1_MIN)
25945 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25946
259472008-02-01 Kenichi Handa <handa@m17n.org>
25948
25949 * editfns.c (check_translation): New function.
25950 (Ftranslate_region_internal): Handle M:N mapping.
25951
259522008-02-01 Kenichi Handa <handa@m17n.org>
25953
25954 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25955
259562008-02-01 Kenichi Handa <handa@m17n.org>
25957
25958 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25959 goto invalid_code.
25960 (decode_coding_iso_2022): Fix handling of invalid designation.
25961
25962 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25963 after calling code_conversion_save.
25964
259652008-02-01 Kenichi Handa <handa@m17n.org>
25966
25967 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25968
25969 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25970
25971 * fontset.c: Include "intervals.h".
25972 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
25973 (free_face_fontset, new_fontset_from_font_name):
25974 Fix Lisp_Object/int mixup.
aac0c6e3
MR
25975
25976 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25977
25978 * coding.c: Add many prototypes for static functions.
25979 (get_translation_table): Allow max_lookup to be NULL.
25980 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
25981 (Funencodable_char_position, Fcheck_coding_systems_region):
25982 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
25983
259842008-02-01 Kenichi Handa <handa@m17n.org>
25985
25986 * coding.c (get_translation_table): Declare it as Lisp_Object.
25987 (LOOKUP_TRANSLATION_TABLE): New macro.
25988 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25989 instead of CHAR_TABLE_REF.
25990
259912008-02-01 Kenichi Handa <handa@m17n.org>
25992
25993 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25994 annotation data format.
25995 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25996 Change arguments FROM and TO to single argument NCHARS. Change caller.
25997 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25998 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25999 (decode_coding_ccl, decode_coding_charset): Pay attention to
26000 coding->charbuf_used.
26001 (get_translation): New function.
26002 (produce_chars): New arguments translation_table and last_block.
26003 Translate characters here. Return number of carryover chars.
26004 Change caller.
26005 (produce_composition): New argument pos. Change caller.
26006 Adjust for the change of annotation data format.
26007 (produce_charset, produce_annotation): Likewise.
26008 (decode_coding, encode_coding): Don't call translate_chars.
26009 (consume_chars): New arg translation_table. Change caller.
26010 (translate_chars): Delete.
26011 (syms_of_coding): Make translation-table's number of extra slots 2.
26012
260132008-02-01 Kenichi Handa <handa@m17n.org>
26014
26015 * search.c (simple_search): Fix setting this_pos_byte in backward
26016 search.
26017
26018 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
26019 byte sequence.
26020 (detect_coding_ccl): Fix setting of the variable valids.
26021
260222008-02-01 Kenichi Handa <handa@m17n.org>
26023
26024 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
26025
26026 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
26027
26028 * editfns.c (Ftranslate_region_internal): Rename from
26029 Ftranslate_region. Accept a char-table in TABLE.
26030 (syms_of_editfns): Defsubr Stranslate_region_internal.
26031
26032 * xfaces.c (set_lface_from_font_name): If a font is specified for
26033 a frame, generate a fontset from the font.
26034 (build_scalable_font_name): If the scalable font is requested for
26035 a specific size, don't change that size.
26036 (try_font_list): Try a scalable font also in the case that a
26037 pattern string is specified.
26038
260392008-02-01 Kenichi Handa <handa@m17n.org>
26040
26041 * xfaces.c (Fface_font): New optional arg CHARACTER.
26042
260432008-02-01 Kenichi Handa <handa@m17n.org>
26044
26045 * charset.h (CHARSET_OFFSET): New macro.
26046
260472008-02-01 Kenichi Handa <handa@m17n.org>
26048
26049 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
26050
26051 * fontset.c (fontset_face): Handle the case that repertory is a
26052 char-table.
26053 (find_font_encoding): Return nil for unknown encoding.
26054 (Fset_fontset_font): Ignore a font of unknown encoding.
26055
260562008-02-01 Kenichi Handa <handa@m17n.org>
26057
26058 * keymap.c (describe_vector): Handle default value of a char table.
26059
26060 * fontset.c (fontset_face): Handle fallback fonts correctly.
26061 (Ffontset_info): Return infomation about fallback fonts.
26062
260632008-02-01 Kenichi Handa <handa@m17n.org>
26064
26065 * fontset.c (FONTSET_DEFAULT): New macro.
26066 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
26067 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
26068 the case that it is nil.
26069 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
26070 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
26071
26072 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
26073 subset or superset.
26074
260752008-02-01 Kenichi Handa <handa@m17n.org>
26076
26077 * emacs.c (main): Call init_charset after syms_of_XXX.
26078
26079 * charset.c (Vcharset_map_directory): Delete.
26080 (Vcharset_map_path): New variable.
26081 (load_charset_map_from_file): Use Vcharset_map_path instead.
26082 (init_charset): Initialize Vcharset_map_path.
26083 (syms_of_charset): Delete declaration of "charset-map-directory",
26084 add declaration of "charset-map-path".
26085
260862008-02-01 Kenichi Handa <handa@m17n.org>
26087
26088 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
26089 ASCII only string.
26090
26091 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
26092
26093 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
26094 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
26095
260962008-02-01 Kenichi Handa <handa@m17n.org>
26097
26098 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
26099
26100 * coding.c (QCmnemonic, QCdefalut_char)
26101 (QCdecode_translation_table, QCencode_translation_table)
26102 (QCpost_read_conversion, QCpre_write_conversion): New variables.
26103 (get_translation_table): Return a list of translation tables if
26104 necessary.
26105 (decode_coding): Call get_translation_table with ENCODEP 0.
26106 (char_encodable_p): If translation_table is non-nil, always call
26107 translate_char.
26108 (Fdefine_coding_system_internal): Accept list of translation
26109 tables as :encode-translation-table and :decode-translation-table.
26110 (Fcoding_system_put): New function.
bba3e508
SM
26111 (syms_of_coding): Declare new symbols.
26112 Defsubr Scoding_system_put.
aac0c6e3
MR
26113 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
26114 typically JISX0212.
26115
26116 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
26117 when the charset is superset type.
26118
26119 * character.c (translate_char): Accept list of translation tables.
26120
261212008-02-01 Kenichi Handa <handa@m17n.org>
26122
26123 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
26124 (CODING_ATTR_TRANS_TBL): New macro.
26125
26126 * coding.c (get_translation_table): New function.
26127 (translate_chars): Fix the bug of skipping annotation data.
26128 (decode_coding, encode_coding): Utilize get_translation_table.
26129 (char_encodable_p, Funencodable_char_position): Translate char if
26130 necessary.
26131 (Ffind_coding_systems_region_internal)
26132 (Fcheck_coding_systems_region): Setup translation table for encode
26133 in a coding system attribute vector in advance.
26134 (Fdefine_coding_system_internal): Allow a symbol as translation
26135 table. For shift-jis type coding system, allow 4th charset.
26136
261372008-02-01 Kenichi Handa <handa@m17n.org>
26138
26139 * coding.c (decode_coding_sjis): Check the first byte rigidly.
26140
26141 * xdisp.c (get_next_display_element): Pass -1 as POS to
26142 FACE_FOR_CHAR if displaying a C-string.
26143
261442008-02-01 Kenichi Handa <handa@m17n.org>
26145
26146 * composite.c (get_composition_id): Handle xoff and yoff in a
26147 composition rule.
26148
26149 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
26150 (struct composition): New member lbearing and rbearing.
26151
26152 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
26153 (x_get_glyph_overhangs): Handle a composition glyph.
26154 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
26155
26156 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
26157 composition glyph.
26158
261592008-02-01 Kenichi Handa <handa@m17n.org>
26160
26161 * print.c: Include charset.h.
26162 (Vprint_charset_text_property): New variable.
26163 (Qdefault): Extern it.
26164 (PRINT_STRING_NON_CHARSET_FOUND)
26165 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
26166 (print_check_string_result): New variable.
26167 (print_check_string_charset_prop): New function.
26168 (print_prune_charset_plist): New variable.
26169 (print_prune_string_charset): New function.
26170 (print_object): Call print_prune_string_charset if
26171 Vprint_charset_text_property is not t.
26172 (print_interval): Print nothing if interval->plist is nil.
26173 (syms_of_print): Declare Vprint_charset_text_property as a lisp
26174 variable. Init and staticpro print_prune_charset_plist.
26175
261762008-02-01 Kenichi Handa <handa@m17n.org>
26177
26178 * fontset.c (new_fontset_from_font_name): Use the specified font
26179 for all characters in the new fontset.
26180
26181 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26182 OBJECT args.
26183
26184 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
26185 OBJECT args for composition too.
26186
26187 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
26188 OBJECT args.
26189
261902008-02-01 Kenichi Handa <handa@m17n.org>
26191
26192 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
26193
26194 * fontset.c (reorder_font_vector): Adjust for the change of
26195 FONT_DEF format.
26196 (fontset_face): New arg id. Change caller.
26197 (face_for_char): New args pos and object.
26198 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
26199 (fs_query_fontset): Check NAME by Fassoc too.
26200 (Fset_fontset_font): Allow non-XLFD font name.
26201 (Ffontset_info): Adjust for the change of FONT_DEF format.
26202
26203 * fontset.h (face_for_char): Adjust prototype.
26204
26205 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
26206 (append_space, extend_face_to_end_of_line)
26207 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
26208 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
26209
26210 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
26211 POS and OBJECT args.
26212
26213 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
26214 POS and OBJECT args.
26215
262162008-02-01 Jason Rumney <jasonr@gnu.org>
26217
26218 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26219 of GlobalAlloc'ed memory.
26220
262212008-02-01 Kenichi Handa <handa@m17n.org>
26222
26223 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26224
26225 * charset.h (charset_table_used): Delete extern.
26226
26227 * charset.c (charset_table_used): Make it static.
26228 (map_charset_chars): Fix args to c_function with.
26229
26230 * chartab.c (map_sub_char_table_for_charset): Fix args to
26231 c_function with.
26232
bba3e508
SM
26233 * coding.h (enum coding_result_code):
26234 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
26235
26236 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26237 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26238 (Vlast_code_conversion_error): New variables.
26239 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26240 (ONE_MORE_BYTE): Record error if any instead of signaling an
26241 error. If non-ASCII multibyte char is found, return the negative
26242 value of the code. All callers changed to check it.
26243 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26244 (record_conversion_result): New function. Change all codes setting
26245 coding->result to call this function.
26246 (detect_coding_utf_8, decode_coding_utf_8)
26247 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26248 Don't use the local variable incomplete.
26249 (emacs_mule_char): Change the second arg to `const'.
26250 (decode_coding): Fix of flushing out unprocessed data.
26251 (make_conversion_work_buffer): Fix making of a work buffer.
26252 (decode_coding_object): Return coding->dst_object.
26253
26254 * fontset.c (set_fontset_font): Fix args.
26255
26256 * lisp.h (CHARACTERBITS): Define as 22.
26257
26258 * process.c (send_process): Be sure to set coding->src_multibyte.
26259
26260 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26261
262622008-02-01 Kenichi Handa <handa@m17n.org>
26263
26264 * xdisp.c (handle_auto_composed_prop): Give limit to
26265 Fnext_single_char_property_change.
26266
262672008-02-01 Kenichi Handa <handa@m17n.org>
26268
26269 * composite.c (syms_of_composite): Don't make the composition hash
26270 table weak.
26271
26272 * fontset.c (Fset_fontset_font): Fix docstring.
26273
26274 * lisp.h (detect_coding_system): Adjust prototype.
26275
26276 * fileio.c (kill_workbuf_unwind): Delete this function.
26277 (Finsert_file_contents): Adjust the call of detect_coding_system.
26278 Get conversion_buffer by code_conversion_save. Use the macro
26279 CODING_MAY_REQUIRE_DECODING. After decoding, update
26280 coding_system.
26281
26282 * coding.h (make_conversion_work_buffer): Delete extern.
26283 (code_conversion_save): Extern it.
26284
26285 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26286 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26287 (decode_coding_utf_8): Don't do eol converion.
26288 (detect_coding_utf_16): Check coding->src_chars, not
26289 coding->src_bytes. Add heuristics for those that have no signature.
26290 (decode_coding_emacs_mule, decode_coding_iso_2022)
26291 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26292 Don't do eol converion.
26293 (adjust_coding_eol_type): Return a new coding system.
26294 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26295 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26296 each change.
26297 (decode_coding): Pay attention to undo_list. Do eol conversion for
26298 all types of coding-systems (if necessary).
26299 (Vcode_conversion_work_buf_list): Delete it.
26300 (Vcode_conversion_reused_workbuf): Rename from
26301 Vcode_conversion_reused_work_buf.
26302 (Vcode_conversion_workbuf_name): New variable.
26303 (reused_workbuf_in_use): New variable.
26304 (make_conversion_work_buffer): Delete the arg DEPTH.
26305 (code_conversion_restore): Change argument to cons.
26306 (code_conversion_save): Delete the argument BUFFER. Change callers.
26307 (detect_coding_system): New argument src_chars. Change callers.
26308 Fix for utf-16 detection.
26309 (init_coding_once): Don't use ISO_carriage_return.
26310 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26311 reused_workbuf_in_use.
26312
263132008-02-01 Kenichi Handa <handa@m17n.org>
26314
26315 * keymap.c (store_in_keymap): Pay attention to the case that idx
26316 is a cons specifying a character range.
26317
263182008-02-01 Kenichi Handa <handa@m17n.org>
26319
26320 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26321 HANDLED_RECOMPUTE_PROPS.
26322
26323 * coding.c (Fdefine_coding_system_internal): Fix checking of
26324 ascii compatibility.
26325
263262008-02-01 Kenichi Handa <handa@m17n.org>
26327
26328 * charset.c (find_charsets_in_text): Delete unused locale variable.
26329 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26330
26331 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26332 Resync charset_list to Vemacs_mule_charset_list.
26333
26334 * keymap.c (store_in_keymap): Pay attention to the case that idx
26335 is a cons specifying a character range.
26336
263372008-02-01 Kenichi Handa <handa@m17n.org>
26338
26339 * composite.c (update_compositions): Bind inhibit-read-only, etc
26340 to t before calling remove-list-of-text-properties.
26341
26342 * print.c (print_object): Always print ASCII chars as is.
26343
263442008-02-01 Kenichi Handa <handa@m17n.org>
26345
26346 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26347
26348 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26349 is a char table.
26350
263512008-02-01 Kenichi Handa <handa@m17n.org>
26352
26353 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26354
263552008-02-01 Kenichi Handa <handa@m17n.org>
26356
26357 * xfaces.c (set_lface_from_font_name): Fix for the case that
26358 FONTNAME is not fontset name.
26359
263602008-02-01 Kenichi Handa <handa@m17n.org>
26361
26362 * fns.c (base64_encode_1): Fix previous change.
26363
263642008-02-01 Kenichi Handa <handa@m17n.org>
26365
26366 * fontset.c (set_fontset_font): New function.
26367 (Fset_fontset_font): If a font is specified for a charset, use
26368 map_charset_chars to store the font spec in a fontset.
26369
263702008-02-01 Kenichi Handa <handa@m17n.org>
26371
26372 * fontset.c (fontset_face): Create a fallback fontset on demand.
26373 (make_fontset): Don't create a fallback fontset here.
26374 (free_face_fontset): Free a fallback fontset (if any) too.
26375 (n_auto_fontsets): Delete this variable.
26376 (auto_fontset_alist): New variable.
26377 (new_fontset_from_font_name): Check auto_fontset_alist.
26378 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26379 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26380 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26381 Defsubr Sfontset_list_all.
26382
263832008-02-01 Kenichi Handa <handa@m17n.org>
26384
26385 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26386
263872008-02-01 Kenichi Handa <handa@m17n.org>
26388
26389 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26390
263912008-02-01 Kenichi Handa <handa@m17n.org>
26392
26393 * editfns.c (Fgoto_char): Fix docstring.
26394
263952008-02-01 Kenichi Handa <handa@m17n.org>
26396
26397 * insdel.c (insert_from_gap): Adjust intervals correctly.
26398
263992008-02-01 Jason Rumney <jasonr@gnu.org>
26400
26401 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26402 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26403 (w32_initialize): Try to load it.
26404 (x_get_font_repertory): Use it if available.
26405 (w32_encode_char): Add shortcut for unicode output.
26406
26407 * w32fns.c (w32_load_system_font): Default charset to -1.
26408 (x_to_w32_charset): Match all fonts for unicode.
26409 (w32_to_x_charset): New parameter matching. Don't return partial
26410 or wildcard charsets.
26411 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26412 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26413 (w32_to_x_font): Match charset to real charset.
26414 (enum_font_cb2): Always list unicode versions.
26415
26416 * makefile.w32-in (temacs): Increase EMHEAP.
26417
264182008-02-01 Jason Rumney <jasonr@gnu.org>
26419
26420 * w32term.c (w32_encode_char): New charset parameter.
26421 font_info.encoding becomes encoding_type.
26422 (x_get_font_repertory): New function. Warning: stub only!
26423 (x_new_font): Return quickly if font already set.
26424 (x_new_fontset): fontsetname parameter is Lisp_Object.
26425 Use new fs_query_fontset. Try new_fontset_from_font_name.
26426 Use fontset_name for return value.
26427
26428 * w32term.h: Declare x_get_font_repertory.
26429
26430 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26431 place of find_charset_in_text. Use encode_coding_object in place
26432 of encode_coding.
26433 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26434 decode_coding.
26435
26436 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26437 of x_new_fontset.
26438 (w32_load_system_font): Initialize charset as unicode.
26439 font_info.encoding becomes encoding_type.
26440 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26441 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26442 (syms_of_w32fns): Set get_font_repertory_func.
26443
26444 * w32console.c: Include character.h. Use terminal_encode_buffer
26445 from term.c.
bba3e508
SM
26446 (write_glyphs): Use new version of encode_terminal_code.
26447 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
26448
26449 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26450 encoding becomes encoding_type.
26451
26452 * term.c (terminal_encode_buffer): Make externally visible.
26453
26454 * makefile.w32-in: Add character.h dependancies.
26455 (character.o, chartab.o): New targets.
26456
264572008-02-01 Kenichi Handa <handa@m17n.org>
26458
26459 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26460 CODING_ID_EOL_TYPE.
26461
264622008-02-01 Andreas Schwab <schwab@suse.de>
26463
26464 * coding.c (produce_chars): Revert last change.
26465
264662008-02-01 Kenichi Handa <handa@m17n.org>
26467
26468 * charset.h (charset_unicode): Extern it.
26469
26470 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
26471 (find_charsets_in_text): Change format of the arc CHARSETS.
26472 New arg MULTIBYTE.
aac0c6e3
MR
26473 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26474 change of find_charsets_in_text.
26475 (Fsplit_char): Fix doc. Never return unknown.
26476
26477 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26478
bba3e508
SM
26479 * coding.c (Fdefine_coding_system_alias):
26480 Update Vcoding_system_list.
aac0c6e3
MR
26481
26482 * fontset.c (load_font_get_repertory): Pay attention to the case
26483 that ENCODING of a font is specified by a char-table.
26484
26485 * xterm.c (x_get_font_repertory): Handle the case that the
26486 encoding of font is other than Unicode.
26487
264882008-02-01 Kenichi Handa <handa@m17n.org>
26489
bba3e508
SM
26490 * term.c (encode_terminal_code): Don't handle glyph-table.
26491 Check if a character is encodable by the terminal coding system.
26492 If not, produces proper number of `?'s. Update
aac0c6e3
MR
26493 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26494 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26495
264962008-02-01 Kenichi Handa <handa@m17n.org>
26497
bba3e508
SM
26498 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26499 New variables.
aac0c6e3
MR
26500 (encode_terminal_code): Change argument. Encode multiple
26501 characters at once. Store the result of encoding in
26502 terminal_encode_buffer.
26503 (write_glyphs, insert_glyphs): Adjust for the change of
26504 encode_terminal_code.
26505 (term_init): Initialize terminal_encode_buffer and
26506 terminal_encode_buf_size.
26507
26508 * coding.c (consume_chars): If coding->src_object is nil, don't
26509 check annotation.
26510
265112008-02-01 Kenichi Handa <handa@m17n.org>
26512
26513 * character.c (char_string): Use ASCII_CHAR_P instead of
26514 SINGLE_BYTE_CHAR_P.
26515
265162008-02-01 Kenichi Handa <handa@m17n.org>
26517
26518 * xdisp.c (handle_auto_composed_prop): Check if the last
26519 characters of auto-composed region is newly composed with the
26520 following characters.
26521 (handle_composition_prop): Fix checking of point being inside
26522 composition.
26523
265242008-02-01 Kenichi Handa <handa@m17n.org>
26525
26526 * fns.c (concat): Don't change multibyteness of the result by
26527 concatenating an 8-bit character.
26528
26529 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26530 multibyteness of the result when newelt is an 8-bit character.
26531
265322008-02-01 Dave Love <fx@gnu.org>
26533
26534 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26535 EMACS_INT.
26536
26537 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26538
26539 * xfaces.c (face_numeric_value): Declare dim size_t.
26540 (Finternal_lisp_face_equal_p): Remove unused f.
26541
26542 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26543 (MATRIX_ROW): Remove unused vars.
26544 (draw_glyphs, x_insert_glyphs, fast_find_position)
26545 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26546 byte/char counts.
26547
26548 * regex.c (regex_compile): Remove unused var.
26549
26550 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26551
26552 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26553 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26554
26555 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26556
26557 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26558
26559 * fileio.c (Fwrite_region): Remove unused var.
26560
26561 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26562 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26563
26564 * composite.c (Fremove_list_of_text_properties): Declare.
26565
26566 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26567 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26568 (coding_inherit_eol_type): Remove unused attrs.
26569 (detect_coding): Cast arg of detect_eol.
26570
26571 * charset.c (syms_of_charset): Remove unused var p.
26572 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26573 byte/char counts.
26574
26575 * casetab.c (set_case_table): Remove unused var.
26576
bba3e508
SM
26577 * window.c (Fdisplay_buffer, Fframe_selected_window):
26578 Remove unused vars.
aac0c6e3
MR
26579
265802008-02-01 Dave Love <fx@gnu.org>
26581
26582 * xterm.c (x_bitmap_mask): Declare.
26583
265842008-02-01 Dave Love <fx@gnu.org>
26585
26586 * xterm.c (x_term_init): Fix type error.
26587
26588 * lisp.h: Add Funibyte_char_to_multibyte.
26589
26590 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26591 (Fset_coding_system_priority): Doc fix.
26592
26593 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26594
26595 * indent.c (check_composition): Make start and end EMACS_INT.
26596
26597 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26598
26599 * xdisp.c (handle_composition_prop, check_point_in_composition):
26600 Make buffer positions EMACS_INT.
26601
26602 * composite.c (find_composition, run_composition_function)
26603 (update_compositions, Ffind_composition_internal): Make buffer
26604 positions EMACS_INT.
26605
bba3e508
SM
26606 * composite.h (find_composition, update_compositions):
26607 Make position args EMACS_INT.
aac0c6e3
MR
26608
26609 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26610
26611 * intervals.c (get_property_and_range):
26612 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26613
26614 * unexalpha.c: Don't include varargs.h.
26615
266162008-02-01 Dave Love <fx@gnu.org>
26617
26618 * coding.h (ENCODE_UTF_8): New.
26619
26620 * Makefile.in (gtkutil.o): Depend on coding.h.
26621
26622 * coding.c (Fset_coding_system_priority): Doc fix.
26623
266242008-02-01 Kenichi Handa <handa@m17n.org>
26625
26626 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26627 the case of auto saving.
26628
266292008-02-01 Andreas Schwab <schwab@suse.de>
26630
bba3e508
SM
26631 * chartab.c (map_char_table, map_char_table_for_charset):
26632 Protect `range' from GC.
aac0c6e3
MR
26633
266342008-02-01 Kenichi Handa <handa@m17n.org>
26635
26636 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26637
266382008-02-01 Kenichi Handa <handa@m17n.org>
26639
26640 * fileio.c (choose_write_coding_system): Return a decided coding system.
26641 (Fwrite_region): Set Vlast_coding_system_used to the return value
26642 of choose_write_coding_system.
26643
266442008-02-01 Kenichi Handa <handa@m17n.org>
26645
26646 * charset.c (Fset_charset_priority): Pay attention to duplicated
26647 arguments.
26648
26649 * coding.c (QCcategory): New variable.
26650 (syms_of_coding): Defsym it. Set all elements of
26651 Vcoding_category_table and their symbol values.
26652 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26653 coding-category-XXX, and coding-category-list.
26654 (Fdefine_coding_system_internal): Add category in the plist.
26655
266562008-02-01 Kenichi Handa <handa@m17n.org>
26657
26658 * callproc.c (Fcall_process): Handle carryover correctly.
26659
26660 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26661 (raw_text_coding_system): Check NILP (coding_system).
26662 (coding_inherit_eol_type): Check NILP (coding_system) and
26663 NILP (parent).
26664 (consume_chars): Fix for the case of raw-text.
26665
26666 * process.c (read_process_output): Handle carryover correctly.
26667
266682008-02-01 Dave Love <fx@gnu.org>
26669
26670 * regex.c (re_search_2): Fix last change.
26671
266722008-02-01 Kenichi Handa <handa@m17n.org>
26673
26674 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26675 target_multibyte. Even in a unibyte case, return a converted
26676 multibyte char.
26677 (GET_CHAR_AFTER): New macro.
26678 (PATFETCH): Translate via multibyte char.
26679 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26680 (SETUP_MULTIBYTE_RANGE): New macro.
26681 (regex_compile): Setup compiled code so that its multibyteness
26682 matches that of a target. Fix the handling of "[X-YZ]" using
26683 SETUP_MULTIBYTE_RANGE.
26684 (analyse_first) <charset>: For filling fastmap for all multibyte
26685 characters, don't check by BASE_LEADING_CODE_P.
26686 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26687 the same as RE_MULTIBYTE_P (bufp) now.
26688 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26689 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26690 (TRANSLATE_VIA_MULTIBYTE): New macro.
26691 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26692 It is the same as RE_MULTIBYTE_P (bufp) now.
26693 <exactn>: Translate via multibyte.
bba3e508
SM
26694 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26695 Don't translate it.
aac0c6e3
MR
26696 <charset, charset_not>: Fetch a character by
26697 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26698 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26699 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26700 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26701 by GET_CHAR_AFTER.
26702 (bcmp_translate): Likewise.
26703
26704 * search.c (compile_pattern): Check the member target_multibyte,
26705 not the member multibyte of buf.
26706
26707 * lread.c (read1): While reading a string, set force_singlebyte
26708 and force_multibyte correctly.
26709
26710 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26711 up of unibyte_to_multibyte_table.
26712
267132008-02-01 Kenichi Handa <handa@m17n.org>
26714
26715 * coding.c (setup_coding_system): If coding has
26716 post-read-conversion or pre-write-conversion, set
26717 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26718 respectively.
26719 (decode_coding_gap): Run post-read-conversion if any.
26720
26721 * fileio.c (Finsert_file_contents): Even if we read into a
26722 unibyte buffer, check if we must decode the result or not.
26723
267242008-02-01 Kenichi Handa <handa@m17n.org>
26725
26726 * coding.c (make_conversion_work_buffer): Change the work buffer
26727 name to the same one as that of Emacs 21.
26728
267292008-02-01 Kenichi Handa <handa@m17n.org>
26730
26731 * coding.h (make_conversion_work_buffer): Adjust prototype.
26732 (code_conversion_restore): Don't extern it.
26733
26734 * coding.c (detected_mask): Delete unused variable.
26735 (decode_coding_iso_2022): Pay attention to the byte sequence of
26736 CTEXT extended segment, and retain those bytes as is.
26737 (decode_coding_ccl): Delete unused variable `valids'.
26738 (setup_coding_system): Delete unused variable `category'.
26739 (consume_chars): Delete unused variable `category'. Make it work
26740 for non-multibyte case.
26741 (make_conversion_work_buffer): Change argument.
26742 (saved_coding): Delete unused variable.
26743 (code_conversion_restore): Don't check saved_coding->destination.
26744 (code_conversion_save): New function.
26745 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26746 instead of record_unwind_protect.
26747 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26748 (detect_coding_system): Delete unused variable `mask'.
26749 (Fdefine_coding_system_internal): Delete unused variable id.
26750
26751 * fileio.c (kill_workbuf_unwind): New function.
26752 (Finsert_file_contents): On replacing, call
26753 make_conversion_work_buffer with correct args, and call
26754 record_unwind_protect with the first arg kill_workbuf_unwind.
26755
26756 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26757
267582008-02-01 Kenichi Handa <handa@m17n.org>
26759
26760 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26761 (fontset_add): Fix for the case that TO is less than TO1.
26762 (Ffontset_info): Don't use fallback fontset on checking the
26763 default fontset.
26764 (dump_fontset): New function for debugging.
26765
26766 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26767 coding_type is Qcharset.
26768
267692008-02-01 Kenichi Handa <handa@m17n.org>
26770
26771 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26772 (map_char_table): Don't inherit the value from the parent on
26773 initializing VAL. Adjust for the above change.
26774
267752008-02-01 Kenichi Handa <handa@m17n.org>
26776
26777 * coding.c (Qsignature, Qendian): Delete these variables.
26778 (syms_of_coding): Don't initialize them.
26779 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26780 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26781 detect_info->found.
26782 (decode_coding_utf_16): Don't detect BOM here.
26783 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26784 is NOT utf_16_without_bom.
26785 (setup_coding_system): For a coding system of type utf-16, check
26786 if the attribute :endian is Qbig or not (not nil or not), and set
26787 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26788 (detect_coding): If coding type is utf-16 and BOM detection is
26789 required, detect it.
26790 (Fdefine_coding_system_internal): For a coding system of type
26791 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26792
267932008-02-01 Kenichi Handa <handa@m17n.org>
26794
26795 * coding.c (coding_set_source): Fix for the case that the current
26796 buffer is different from coding->src_object.
26797 (decode_coding_object): Don't use the conversion work buffer if
26798 DST_OBJECT is a buffer.
26799
268002008-02-01 Dave Love <fx@gnu.org>
26801
26802 * lread.c (read_emacs_mule_char) [len==2]: Index
26803 emacs_mule_charset correctly.
26804
268052008-02-01 Dave Love <fx@gnu.org>
26806
26807 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26808 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26809 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26810 treated specially.)
26811 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26812 (detected_mask): Remove Big5 bits.
26813
268142008-02-01 Kenichi Handa <handa@m17n.org>
26815
26816 The following changes are to make the font rescaling facility
26817 compatible with Emacs 21.
26818
26819 * xfaces.c (Vface_font_rescale_alist): Rename from
26820 Vface_resizing_fonts.
26821 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26822 (font_rescale_ratio): Rename from font_resizing_ratio.
26823 (split_font_name): Set font->rescale_ratio.
26824 (better_font_p): Pay attention to font->rescale_ratio.
26825 (build_scalable_font_name): Likewise. Change RESX, and RESY
26826 fields.
26827 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26828
268292008-02-01 Kenichi Handa <handa@m17n.org>
26830
26831 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26832 (Qutf_16_le): Remove these variables.
26833 (syms_of_coding): Don't DEFSYM them.
26834 (decode_coding_utf_16): Fix handling of BOM.
26835 (encode_coding_utf_16): Fix handling of BOM.
26836
268372008-02-01 Kenichi Handa <handa@m17n.org>
26838
26839 * fileio.c (Finsert_file_contents): On replacing, before decoding
26840 the file into the work buffer, set point of the work buffer to the end.
26841
268422008-02-01 Dave Love <fx@gnu.org>
26843
26844 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26845
268462008-02-01 Dave Love <fx@gnu.org>
26847
26848 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26849 and fix C types.
26850
268512008-02-01 Kenichi Handa <handa@m17n.org>
26852
26853 * xdisp.c (SKIP_GLYPHS): New macro.
26854 (set_cursor_from_row): Pay attention to string display properties.
26855
26856 * category.c (copy_category_entry): Fix for the case that RANGE
26857 is an integer.
26858
26859 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26860
26861 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26862
268632008-02-01 Kenichi Handa <handa@m17n.org>
26864
26865 * charset.c (Fcharset_id_internal): New function.
26866 (syms_of_charset): Defsubr it.
26867
26868 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26869 with the last arg charset_list acquired from coding.
26870 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26871 the attribute coding_attr_ccl_valids.
26872
26873 * coding.h (enum define_coding_ccl_arg_index): Set the first
26874 member coding_arg_ccl_decoder to coding_arg_max.
26875
26876 * ccl.h (ccl_driver): Adjust prototype.
26877
26878 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26879 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 26880 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
26881 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26882 last arg Qnil.
26883
268842008-02-01 Kenichi Handa <handa@m17n.org>
26885
26886 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26887 call encode_char.
26888
26889 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26890
268912008-02-01 Dave Love <fx@gnu.org>
26892
26893 * composite.c (syms_of_composite): Make composition_hash_table weak.
26894
268952008-02-01 Kenichi Handa <handa@m17n.org>
26896
26897 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26898 (font_name_registry): Don't extern them.
26899 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26900
26901 * fontset.h (Qfontset): Don't extern it.
26902 (new_fontset_from_font_name): Extern it.
26903
26904 * fontset.c: Give 8 extra slots to fontset objects.
26905 (Qfontset_info): New variable.
26906 (syms_of_fontset): Defsym it.
26907 (FONTSET_FALLBACK): New macro.
26908 (fontset_face): Try also the default fontset.
26909 (make_fontset): Realize a fallback fontset from the default fontset.
26910 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26911 using split_font_name_into_vector and build_font_name_from_vector.
26912 (Fset_fontset_font): Access the elements of font_spec by enum
26913 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26914 name by using split_font_name_into_vector.
26915 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
26916 generate a proper font name from the fontset name.
26917 Update Vfontset_alias_alist.
aac0c6e3
MR
26918 (n_auto_fontsets): New variable.
26919 (new_fontset_from_font_name): New function.
26920 (Ffont_info): Store the information about fonts generated from the
26921 default fontset in the first extra slot of the returned char-table.
26922
26923 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26924 (font_name_registry): Delete function.
26925 (split_font_name_into_vector): New function.
26926 (build_font_name_from_vector): New function.
26927 (font_list): The argument REGISTRY is now a list of registry names.
26928 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26929 specifies an explicit font name, return the name as is. Make a
26930 list of registy names.
26931
26932 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26933 of x_new_fontset.
26934 (Fx_create_frame): Don't call x_new_fontset here. Just use
26935 x_list_fonts to check the existence of fonts.
26936
26937 * xterm.h (x_new_fontset): Adjust prototype.
26938
26939 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26940 string. Use new_fontset_from_font_name to create a fontset from a
26941 font name.
26942
269432008-02-01 Kenichi Handa <handa@m17n.org>
26944
26945 * syntax.c (Vfind_word_boundary_function_table): New name for
26946 Vnext_word_boundary_function_table.
26947 (find-word-boundary-function-table): New name for
26948 next-word-boundary-function-table.
26949
269502008-02-01 Dave Love <fx@gnu.org>
26951
26952 * Makefile.in: Fix some dependencies.
26953
26954 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26955 set it to nil before returning.
26956
26957 * composite.c (update_compositions): Fix type error.
26958
26959 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26960
269612008-02-01 Kenichi Handa <handa@m17n.org>
26962
26963 * xterm.c (x_new_font): Optimize for the case that the font is
26964 already set for the frame.
26965
269662008-02-01 Kenichi Handa <handa@m17n.org>
26967
26968 * chartab.c (char_table_ascii): Check if the char table contents
26969 is sub-char-table or not.
26970 (char_table_set, char_table_set_range): Fix argument to
26971 char_table_ascii.
26972
26973 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26974 (detect_coding_utf_8, detect_coding_utf_16)
26975 (detect_coding_emacs_mule, detect_coding_iso_2022)
26976 (detect_coding_sjis, detect_coding_big5)
26977 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26978 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26979 sequence is valid in this coding system. Change callers.
26980 (MAX_ANNOTATION_LENGTH): New macro.
26981 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
26982 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26983 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
26984 (ADD_CHARSET_DATA): New macro.
26985 (emacs_mule_char): New argument ID. Change callers.
26986 (decode_coding_emacs_mule, decode_coding_iso_2022)
26987 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26988 Produce charset annotation data in coding->charbuf.
26989 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26990 to charset annotation data in coding->charbuf.
26991 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26992 coding->common_flags if the coding system is iso-2022 based and
26993 uses designation.
26994 (produce_composition): Adjust for the new annotation data format.
26995 (produce_charset): New function.
26996 (produce_annotation): Handle charset annotation.
bba3e508
SM
26997 (handle_composition_annotation, handle_charset_annotation):
26998 New functions.
aac0c6e3
MR
26999 (consume_chars): Handle charset annotation. Utilize the above two
27000 functions.
27001 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
27002 buffer, get the deleted text as a string and set
27003 coding->src_object to that string.
27004 (detect_coding, detect_coding_system): Use the new struct
27005 coding_detection_info.
27006
27007 * coding.h (struct coding_detection_info): New structure.
27008 (struct coding_system): Adjust prototype of the member `detector'.
27009 (CODING_ANNOTATE_CHARSET_MASK): New macro.
27010
270112008-02-01 Kenichi Handa <handa@m17n.org>
27012
27013 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
27014
270152008-02-01 Dave Love <fx@gnu.org>
27016
27017 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
27018 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
27019 to new local and nullify apropos_accumulate before returning.
27020 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
27021
270222008-02-01 Kenichi Handa <handa@m17n.org>
27023
27024 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
27025 correctly.
e3eea1fc 27026
aac0c6e3
MR
270272008-02-01 Dave Love <fx@gnu.org>
27028
27029 * fns.c (Flanginfo): Call synchronize_system_time_locale.
27030
270312008-02-01 Kenichi Handa <handa@m17n.org>
27032
27033 The following changes are to make character composition happen
27034 automatically on displaying.
27035
27036 * Makefile.in (lisp, shortlisp): Add composite.elc.
27037
27038 * composite.h (Qauto_composed, Vauto_composition_function)
27039 (Qauto_composition_function): Extern them.
27040
27041 * composite.c (Vcomposition_function_table)
27042 (Qcomposition_function_table): Delete variables.
27043 (Qauto_composed, Vauto_composition_function)
27044 (Qauto_composition_function): New variables.
27045 (run_composition_function): Don't call
27046 compose-chars-after-function.
27047 (update_compositions): Clear `auto-composed' text property.
27048 (compose_chars_in_text): Delete this function.
27049 (syms_of_composite): Staticpro Qauto_composed and
27050 Qauto_composition_function. Declare Vauto_composition_function as
27051 a Lisp variable.
27052
27053 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
27054
27055 * xdisp.c (it_props): Add an entry for Qauto_composed.
27056 (handle_auto_composed_prop): New function.
27057
27058 * xselect.c (selection_data_to_lisp_data): Don't call
27059 compose_chars_in_text.
27060
270612008-02-01 Dave Love <fx@gnu.org>
27062
27063 * keyboard.c (read_char): Modify checking around use of
27064 Vkeyboard_translate_table.
27065
27066 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
27067 and fix C types.
27068
270692008-02-01 Kenichi Handa <handa@m17n.org>
27070
27071 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
27072 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
27073 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
27074 the case that the last byte is '\r' correctly.
27075 (decode_coding): Flush out the unprocessed data correctly.
27076 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
27077
270782008-02-01 Dave Love <fx@gnu.org>
27079
27080 * xterm.c (XTread_socket): Fix changes for defined keysyms.
27081 Add XK_ISO... case.
27082 (xaw_scroll_callback): Revert last change.
27083
270842008-02-01 Kenichi Handa <handa@m17n.org>
27085
27086 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
27087
270882008-02-01 Kenichi Handa <handa@m17n.org>
27089
27090 * xfaces.c (Vface_resizing_fonts): New variable.
27091 (struct font_name): New member `resizing_ratio'.
27092 (font_resizing_ratio): New function.
27093 (split_font_name): Set font->resizing_ratio.
27094 (better_font_p): Pay attention to font->resizing_ratio.
27095 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
27096 RESX, and RESY fields.
27097 (try_alternative_families): Try scalable fonts if
27098 Vscalable_fonts_allowed is not Qt.
27099 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
27100
271012008-02-01 Dave Love <fx@gnu.org>
27102
27103 * xterm.c (xaw_scroll_callback): Cast correctly.
27104
271052008-02-01 Dave Love <fx@gnu.org>
27106
27107 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
27108 (lispy_kana_keys): Comment out.
27109 (make_lispy_event) [XK_kana_A]: Comment out.
27110
27111 * xterm.c (xaw_scroll_callback): Cast call_data.
27112 (XTread_socket): Deal with ASCII keysyms.
27113 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
27114
271152008-02-01 Dave Love <fx@gnu.org>
27116
27117 * xterm.c (Vx_keysym_table): New.
27118 (syms_of_xterm): Initialize it.
27119 (XTread_socket): Use it.
27120 From head: Eliminate incorrect optimization that tried to avoid
27121 decoding the output of X*LookupString.
27122 (x_get_font_repertory): Delete charset declaration.
27123
271242008-02-01 Kenichi Handa <handa@m17n.org>
27125
27126 * coding.c (detect_coding_charset): If only ASCII bytes are found,
27127 return 0.
bba3e508
SM
27128 (Fdefine_coding_system_internal):
27129 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
27130
271312008-02-01 Dave Love <fx@gnu.org>
27132
27133 * coding.c (Fcheck_coding_system): Doc fix.
27134
27135 * editfns.c (Finsert_byte): Return a proper value.
27136
271372008-02-01 Kenichi Handa <handa@m17n.org>
27138
bba3e508
SM
27139 * coding.c (decode_coding): Fix args to translate_chars.
27140 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
27141 (encode_coding): Fix args to translate_chars. Pay attention to
27142 Vstandard_translation_table_for_encode.
27143
27144 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
27145 SINGLE_BYTE_CHAR_P.
27146
27147 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
27148 not by SINGLE_BYTE_CHAR_P.
27149
27150 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
27151 SINGLE_BYTE_CHAR_P.
27152
27153 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
27154 SINGLE_BYTE_CHAR_P.
27155
27156 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
27157 by SINGLE_BYTE_CHAR_P.
27158
27159 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
27160 SINGLE_BYTE_CHAR_P.
27161
271622008-02-01 Dave Love <fx@gnu.org>
27163
27164 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
27165
271662008-02-01 Dave Love <fx@gnu.org>
27167
27168 * fns.c (Flanginfo): Fix typo.
27169
27170 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
27171
271722008-02-01 Kenichi Handa <handa@m17n.org>
27173
27174 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
27175 (detect_coding_emacs_mule, detect_coding_iso_2022)
27176 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
27177 incomplete byte sequence. Don't update *mask when correctly detected.
27178 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
27179 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
27180 (detect_coding, detect_coding_system): Adjust for the changes above.
27181
271822008-02-01 Kenichi Handa <handa@m17n.org>
27183
27184 * character.c (char_string): Rename from
27185 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
27186 (string_char): Rename from string_char.
27187
27188 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
27189 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
27190 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
27191 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
27192
271932008-02-01 Dave Love <fx@gnu.org>
27194
27195 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
27196
271972008-02-01 Kenichi Handa <handa@m17n.org>
27198
27199 * keymap.c (push_key_description): Pay attention to force_multibyte.
27200
27201 * regex.c (re_search_2): Fix for the case of unibyte buffer.
27202
272032008-02-01 Dave Love <fx@gnu.org>
27204
27205 * charset.c (define_charset_internal): Rename `supprementary'.
27206
27207 * Makefile.in (lisp, shortlisp): Remove latin-N.
27208
272092008-02-01 Dave Love <fx@gnu.org>
27210
27211 * xfns.c (x_window, x_window): Use use_xim.
27212
27213 * xterm.c (use_xim): Initialize.
27214 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
27215 (x_term_init): Maybe set use_xim.
27216
27217 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27218
272192008-02-01 Kenichi Handa <handa@m17n.org>
27220
27221 * search.c (search_buffer): Fix case-fold-search of multibyte
27222 characters.
27223 (boyer_moore): Rename the last argument to char_high_bits.
27224
272252008-02-01 Kenichi Handa <handa@m17n.org>
27226
27227 * xdisp.c (display_string): Fix for the case of zero width glyph.
27228
27229 * xfns.c (x_set_font): Change the error message of the case that
27230 x_new_fontset returns Qt.
27231
27232 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27233 (Finternal_set_lisp_face_attribute): Use signal_error for the
27234 error of invalid fontset.
27235
27236 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27237 fontset, return Qt.
27238
272392008-02-01 Dave Love <fx@gnu.org>
27240
27241 * unexelf.c (unexec): Make .got handling not SGI-specific.
27242
27243 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27244
27245 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27246
27247 * keyboard.c (read_key_sequence): Fix type error.
27248
bba3e508
SM
27249 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27250 Fix type error.
aac0c6e3
MR
27251
27252 * fontset.c (fontset_add): Return Lisp_Object.
27253
272542008-02-01 Dave Love <fx@gnu.org>
27255
27256 * charset.h (charset_ordered_list_tick): Declare extern.
27257
272582008-02-01 Kenichi Handa <handa@m17n.org>
27259
27260 The following changes (and some of 2008-02-01 changes of mine) are
27261 for handling syntax, category, and case conversion for unibyte
27262 characters by converting them to multibyte on the fly. With these
27263 changes, we don't have to setup syntax and case tables for unibyte
27264 characters in each language environment.
27265
27266 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27267 multibyte if necessary.
27268
27269 * bytecode.c (Fbyte_code): Likewise.
27270
27271 * character.h (LEADING_CODE_LATIN_1_MIN)
27272 (LEADING_CODE_LATIN_1_MAX): New macros.
27273 (unibyte_to_multibyte_table): Extern it.
27274 (unibyte_char_to_multibyte): New macro.
27275 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27276 (CHAR_LEADING_CODE): New macro.
27277 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27278
27279 * character.c (unibyte_to_multibyte_table): New variable.
27280 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27281 (multibyte_char_to_unibyte): If C is an eight-bit character,
27282 convert it to the corresponding byte value.
27283
27284 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27285 not 1, signals an error. Update the elements of
27286 unibyte_to_multibyte_table.
27287 (init_charset_once): Initialize unibyte_to_multibyte_table.
27288 (syms_of_charset): Define the charset `iso-8859-1'.
27289
27290 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27291 as is without converting it to unibyte. In a unibyte buffer,
27292 convert C to multibyte before checking the syntax.
27293
27294 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27295
27296 * minibuf.c (Fminibuffer_complete_word): Use the macro
27297 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27298
27299 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27300
27301 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
27302 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27303 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
27304 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27305 non-emacs case.
27306 (PATFETCH): Convert an eight-bit char to multibyte.
27307 (HANDLE_UNIBYTE_RANGE): New macro.
27308 (regex_compile): Setup the compiled pattern for multibyte chars
27309 even if the given regex string is unibyte. Use PATFETCH_RAW
27310 instead of PATFETCH in many places. To handle `charset'
27311 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27312 only for ASCII chars.
27313 (analyse_first) <exactn>: Simplify because the compiled pattern
27314 is multibyte.
27315 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27316 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27317 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27318 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27319 multibyte always 1.
27320 (re_search_2): In emacs, set the locale variable multibyte to 1,
27321 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
27322 to decide the multibyteness of STR1 and STR2.
27323 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
27324 before translating and checking fastmap.
27325 (TARGET_CHAR_AND_LENGTH): New macro.
27326 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
27327 to 1, otherwise to 0. New local variable target_multibyte.
27328 Check it to decide the multibyteness of STR1 and STR2.
27329 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
27330 <charset, charset_not>: If multibyte is nonzero, check fastmap
27331 only for ASCII chars. Call bcmp_translate with
27332 target_multibyte, not with multibyte.
27333 <begline>: Declare the local variable C as `unsigned'.
27334 (bcmp_translate): Change the last arg name to target_multibyte.
27335
27336 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27337 the regexp pattern and the matching target. Set cp->buf.multibyte
27338 to the multibyteness of the regexp pattern. Set
27339 cp->but.target_multibyte to the multibyteness of the matching target.
27340 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27341 FETCH_STRING_CHAR_ADVANCE.
27342 (Freplace_match): Convert unibyte chars to multibyte.
27343
27344 * syntax.c (char_quoted, back_comment, scan_words)
27345 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27346 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27347 unibyte chars to multibyte.
27348 (skip_chars): Delete the arg syntaxp, and move the code for
27349 handling syntaxes to skip_syntaxes. Change callers.
27350 Fix the case that the multibyteness of STRING and the current
27351 buffer doesn't match.
27352 (skip_syntaxes): New function.
27353 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27354 SINGLE_BYTE_CHAR_P.
27355
273562008-02-01 Kenichi Handa <handa@m17n.org>
27357
27358 * xfaces.c (QCfontset): New variable.
27359 (LFACE_FONTSET): New macro.
27360 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27361 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27362 (Finternal_set_lisp_face_attribute)
27363 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27364 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27365 check also LFACE_FONTSET_INDEX.
27366 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27367 attrs[LFACE_FONT_INDEX].
27368 (syms_of_xfaces): Intern and staticpro QCfontset.
27369
27370 * dispextern.h (enum lface_attribute_index): New member
27371 LFACE_FONTSET_INDEX.
27372
27373 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27374
273752008-02-01 Kenichi Handa <handa@m17n.org>
27376
27377 * coding.c (coding_set_destination): Fix coding->destination for
27378 the case converting a region.
27379 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27380 (encode_coding_object): Fix coding->dst_pos and
27381 coding->dst_pos_byte for the case converting a region.
27382
27383 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27384
27385 * character.h (BYTE8_STRING): New macro.
27386
27387 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27388
273892008-02-01 Kenichi Handa <handa@m17n.org>
27390
27391 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27392 characters by octal form.
27393
27394 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27395
27396 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27397 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27398 _fetch_multibyte_char_len.
27399 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27400
27401 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27402
27403 * casefiddle.c (casify_object): Simplify. Handle the case that
27404 the case conversion change the byte length.
27405 (casify_region): Likewise.
27406
27407 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27408
27409 * character.c (_fetch_multibyte_char_len): Delete this variable.
27410 (syms_of_character): Setup Vprintable_chars.
27411
27412 * editfns.c (Fchar_equal): Fix for the unibyte case.
27413 (Finsert_byte): New function.
27414 (syms_of_editfns): Defsubr it.
27415
27416 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27417 of direct code 0x3ffff.
27418
27419 * search.c (Freplace_match): Fix for the unibyte case.
27420
274212008-02-01 Kenichi Handa <handa@m17n.org>
27422
27423 * lread.c (safe_to_load_p): Fix the logic.
27424
27425 * syntax.c (scan_words): Don't treat characters belonging to
27426 different scripts as constituting a word.
27427
27428 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27429
27430 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27431
27432 * emacs.c (main): In the case of --unibyte, instead of aborting on
27433 finding non-empty buffer, make it unibyte.
27434
274352008-02-01 Kenichi Handa <handa@m17n.org>
27436
27437 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27438 to create a fontset.
27439
274402008-02-01 Dave Love <fx@gnu.org>
27441
27442 * character.c (Funibyte_char_to_multibyte): Doc fix.
27443
27444 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27445
274462008-02-01 Kenichi Handa <handa@m17n.org>
27447
27448 * fontset.c (fontset_add): Make the type `int'.
27449 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27450
27451 * character.c (unibyte_char_to_multibyte)
27452 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27453 charset_unibyte, not charset_primary.
27454
27455 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27456
27457 * charset.c (charset_unibyte): Rename from charset_primary.
27458 (Funibyte_charset): Rename from Fprimary_charset.
27459 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27460 (syms_of_charset): Adjust for the above changes.
27461
27462 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27463 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27464 it->multibyte_p is zero.
27465
27466 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27467 Delete extern.
27468
274692008-02-01 Kenichi Handa <handa@m17n.org>
27470
27471 * coding.c (Fdefine_coding_system_internal): Fix category setting
27472 for a coding system of type iso-2022.
27473
274742008-02-01 Kenichi Handa <handa@m17n.org>
27475
27476 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27477
274782008-02-01 Kenichi Handa <handa@m17n.org>
27479
27480 * syntax.c (Vnext_word_boundary_function_table): New variable.
27481 (next-word-boundary-function-table): Declare it as a Lisp variable
27482 in syms_of_syntax.
27483 (scan_words): Call functions in Vnext_word_boundary_function_table
27484 if any.
27485
27486 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27487
27488 * fontset.c (fs_load_font): If fontp->charset is not negative,
27489 return fontp without setting its members.
27490
274912008-02-01 Dave Love <fx@gnu.org>
27492
27493 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27494
27495 * m/sparc.h (HAVE_ALLOCA): Delete.
27496
27497 * s/irix6-5.h: Don't include strings.h.
27498 (bcopy, bzero, bcmp): Don't undef.
27499
27500 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27501
27502 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27503 (TIOCSIGSEND): Don't test IRIX6.
27504 (bcopy, bzero, bcmp): Define conditionally.
27505
275062008-02-01 Kenichi Handa <handa@m17n.org>
27507
27508 * buffer.c (Qas, Qmake, Qto): New variables.
27509 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27510 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27511
27512 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27513 we are inserting a process output into a multibyte buffer.
27514
27515 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27516 multibyte_char_to_unibyte.
27517
27518 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27519 by the primary charset, make it eight-bit char.
27520 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27521
27522 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27523 (charset_8_bit__control, charset_8_bit_graphic)
27524 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27525 (define_charset_internal): New function.
27526 (syms_of_charset): Call define_charset_internal for pre-defined
27527 charsets.
27528
27529 * charset.h (charset_8_bit): Extern it.
27530
27531 * coding.c (make_conversion_work_buffer): Adjust for the change
27532 of Fset_buffer_multibyte.
27533 (encode_coding_raw_text): Increment p0 in the loop.
27534
27535 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27536
bba3e508
SM
27537 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27538 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
27539
27540 * fns.c (Fstring_to_multibyte): New function.
27541 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27542
275432008-02-01 Dave Love <fx@gnu.org>
27544
27545 * xfns.c (x_put_x_image): Declare args.
27546
27547 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27548 (try_font_list): Declare an arg.
27549
27550 * xdisp.c (message2_nolog, set_message): Declare an arg.
27551
27552 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27553
27554 * syntax.c (scan_sexps_forward): Declare an arg.
27555
27556 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27557 Declare an arg.
27558
27559 * lisp.h (Fnew_fontset): Declare.
27560
27561 * keymap.c (push_key_description): Call CHARACTERP correctly.
27562
27563 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27564 (face_for_char): Delete unused vars.
27565 (Fset_fontset_font): Doc fix. Delete unused vars.
27566
27567 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27568
27569 * composite.c (update_compositions): Declare arg.
27570
27571 * cm.c (calccost, cmgoto): Declare args.
27572
27573 * charset.c: Remove `emacs' conditional. Doc fixes.
27574 (map_char_table_for_charset): Declare.
27575
27576 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27577
27578 * ccl.c: Remove `emacs' conditional.
27579
275802008-02-01 Kenichi Handa <handa@m17n.org>
27581
27582 The following changes are to allow specifying multiple font
27583 patterns for a character range (specified by script or charset).
27584
27585 * Makefile.in (abbrev.o): Depend on syntax.h.
27586 (xfaces.o): Depend on charset.h.
27587
27588 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27589 SINGLE_BYTE_CHAR_P.
27590
27591 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27592
27593 * character.h (Vchar_script_table): Extern it.
27594
27595 * character.c (Vscript_alist): Delete.
27596 (Vchar_script_table, Qchar_script_table): New variable.
27597 (syms_of_character): Declare Vchar_script_table as a lisp variable
27598 and initialize it.
27599
27600 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27601 have property char-table-extra-slots, make no extra slot.
27602
27603 * dispextern.h (struct face): Delete member `charset'.
27604 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27605 SINGLE_BYTE_CHAR_P.
27606 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27607 Add prototypes.
27608 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27609 (generate_ascii_font_name): Rename from generate_ascii_font.
27610
27611 * fontset.h (get_font_repertory_func): New prototype.
27612 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27613 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27614
27615 * fontset.c (Qprepend, Qappend): New variables.
27616 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27617 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27618 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27619 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27620 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27621 (load_font_get_repertory): New functions.
27622 (fontset_set): Delete.
27623 (fontset_face): New arg FACE. Return face ID, not face.
27624 Complete re-write to handle new fontset structure. Change caller.
27625 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27626 (face_for_char): Don't call lookup_face.
27627 (make_fontset_for_ascii_face): New arg FACE.
27628 (fs_load_font): New arg CHARSET_ID. Don't check
27629 Vfont_encoding_alist here.
27630 (find_font_encoding): New function.
27631 (list_fontsets): Use STRINGP, not ! NILP.
27632 (accumulate_script_ranges): New function.
bba3e508
SM
27633 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27634 Completely re-written to handle new fontset structure.
aac0c6e3 27635 (Ffontset_font): Return a copy of element.
bba3e508
SM
27636 (syms_of_fontset): Define symbols Qprepend and Qappend.
27637 Fix docstring of font-encoding-alist.
aac0c6e3
MR
27638
27639 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27640 (Fset_fotset_font): Fix arguments to 5.
27641
27642 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27643
27644 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27645 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27646 (highlight_trailing_whitespace): Adjust for the change of
27647 lookup_named_face.
27648
27649 * xfaces.c: Include charset.h.
27650 (load_face_font): Delete argument C. Change caller.
27651 (generate_ascii_font_name): Rename from generate_ascii_font.
27652 (font_name_registry): New function.
27653 (cache_face): Store ascii faces before non-ascii faces in buckets.
27654 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27655 Lookup only ascii faces.
27656 (lookup_non_ascii_face): New function.
27657 (lookup_named_face): Delete argument C. Change caller.
27658 (lookup_derived_face): Delete argument C. Change caller.
27659 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27660 a string, just call font_list with it.
27661 (choose_face_font): Delete arguments FACE and C. New arg
27662 FONT_SPEC. Change caller.
27663 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27664 Change caller.
27665 (realize_non_ascii_face): New function.
27666 (realize_x_face): Call load_face_font here.
27667 (realize_tty_face): Delete argument C. Change caller.
27668 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27669 get a face ID.
27670 (dump_realized_face): Don't print charset of FACE.
27671
27672 * xfns.c (x_set_font): Always call x_new_fontset and
27673 store_frame_parameter.
27674 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27675 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27676
27677 * xterm.h (x_get_font_repertory): Extern it.
27678
27679 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27680 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27681 it->multibyte_p is zero.
27682 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27683 (x_new_fontset): If FONTSETNAME doesn't match any existing
27684 fontsets, create a new one.
27685 (x_get_font_repertory): New function.
27686
276872008-02-01 Kenichi Handa <handa@m17n.org>
27688
27689 * coding.c (Ffind_coding_systems_region_internal): Detect an
27690 ASCII only string correctly.
27691
27692 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27693 version is 0.
27694
276952008-02-01 Kenichi Handa <handa@m17n.org>
27696
27697 * lread.c: Include "coding.h".
27698 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27699 (load_each_byte, unread_char): New variables.
27700 (readchar_backlog): Delete.
27701 (readchar): Return a character unless load_each_byte is nonzero.
27702 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27703 cons. If unread_char is not -1, simply return it.
27704 (unreadchar): Handle the case that readcharfun is
27705 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27706 (read_multibyte): Delete.
27707 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27708 (read_emacs_mule_char): New functions.
27709 (Fload): Even if the file doesn't have the extension ".elc", if
27710 safe_to_load_p returns a positive version number, assume that the
27711 file contains bytecompiled code. If the version is less than 22,
27712 load the file while decoding multibyte sequences by emacs-mule.
27713 (readevalloop): Don't use readchar_backlog.
27714 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27715 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27716 (read_escape): Delete the arg BYTEREP.
27717 (read1): Set load_each_byte to 1 temporarily while handling
27718 #@NUMBER. Don't call read_multibyte.
27719 (read_vector): Call Fread with a cons. If readcharfun is
27720 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27721 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27722 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27723 and Qload_force_doc_strings.
27724
277252008-02-01 Kenichi Handa <handa@m17n.org>
27726
bba3e508
SM
27727 * xdisp.c (face_before_or_after_it_pos):
27728 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
27729
277302008-02-01 Kenichi Handa <handa@m17n.org>
27731
27732 * character.h (TRAILING_CODE_P): New macro.
27733 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27734 (string_char_with_unification): Fix prototype.
27735 (Vscript_alist): Extern it.
27736
27737 * character.c (Vscript_alist): New variable.
27738 (string_char_with_unification, str_as_unibyte)
27739 (string_escape_byte8): Add `const' to local variables.
27740 (syms_of_character): Declare script-alist as a Lisp variable.
27741
27742 * charset.h (Vcharset_ordered_list): Extern it.
27743 (charset_ordered_list_tick): Extern it.
27744 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27745 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27746 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27747 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27748 (Funify_charset): Adjust for the change of Funify_charset.
27749
27750 * charset.c (charset_ordered_list_tick): New variable.
27751 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27752 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 27753 deunify instead of unify a charset.
aac0c6e3
MR
27754 (string_xstring_p): Add `const' to local variables.
27755 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
27756 (encode_char): Adjust for the change of Funify_charset.
27757 Fix detecting of invalid code.
aac0c6e3
MR
27758 (Fset_charset_priority): Increment charset_ordered_list_tick.
27759 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27760 and TO_CODE.
27761
27762 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27763 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27764 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27765 (decode_coding_ccl, consume_chars)
27766 (Ffind_coding_systems_region_internal)
27767 (Fcheck_coding_systems_region): Add `const' to local variables.
27768
27769 * print.c (print_object): Use octal form for printing the
27770 contents of a bool vector.
27771
277722008-02-01 Dave Love <fx@gnu.org>
27773
27774 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27775 <version == 20>: Refuse to load.
27776
277772008-02-01 Dave Love <fx@gnu.org>
27778
27779 * fns.c: Move coding.h.
27780 (Qcodeset, Qdays, Qmonths): New.
27781 (concat): Use CHARACTERP instead of INTEGERP.
27782 (Flocale_codeset): Delete.
27783 (Flanginfo): New function.
27784 (syms_of_fns): Change accordingly.
27785
27786 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27787
277882008-02-01 Dave Love <fx@gnu.org>
27789
bba3e508
SM
27790 * casetab.c (init_casetab_once, init_casetab_once):
27791 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
27792
27793 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27794
27795 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27796
27797 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27798 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27799 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27800
27801 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27802
27803 * coding.c (ENCODE_DESIGNATION, decode_eol)
27804 (make_conversion_work_buffer, code_conversion_restore)
27805 (Fdefine_coding_system_internal): Convert Lisp types.
27806 (code_conversion_restore): Use EQ, not ==.
27807 (Fencode_coding_string): Fix code_convert_string call.
27808
27809 * coding.h (code_convert_region): Fix prototype.
27810
27811 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27812
27813 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27814 (Ffontset_info): Convert Lisp types.
27815
27816 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27817
27818 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27819
27820 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27821
27822 * chartab.c: Include "...h", not <...h> in some cases.
27823
27824 * callproc.c (Fcall_process): Remove unused variables.
27825
278262008-02-01 Dave Love <fx@gnu.org>
27827
27828 * coding.c (Fset_coding_system_priority): Allow null arg list.
27829
278302008-02-01 Dave Love <fx@gnu.org>
27831
27832 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27833 (Fself_insert_and_exit): Use CHARACTERP.
27834
27835 * callproc.c (Fcall_process): Remove unused vars.
27836
27837 * xterm.c (XTread_socket): Add extra dead keysyms.
27838
27839 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27840
27841 * dispextern.h: Remove prototypes for redraw_frame,
27842 redraw_garbaged_frames.
27843
27844 * cmds.c (Fself_insert_command): Use CHARACTERP.
27845
27846 * chartab.c (make_sub_char_table): Remove unused var.
27847 (Fset_char_table_default, Fmap_char_table): Doc fix.
27848
27849 * keymap.c (access_keymap): Remove generic char code.
27850 (push_key_description): Use CHARACTERP.
27851
278522008-02-01 Dave Love <fx@gnu.org>
27853
27854 * charset.c: Doc fixes.
27855 (Funify_charset): Extra checking.
27856
278572008-02-01 Dave Love <fx@gnu.org>
27858
27859 * lread.c: Remove some unused variables.
27860 (safe_to_load_p): If safe, return the magic number version byte.
27861 (Fload): Maybe use load-with-code-conversion.
27862
278632008-02-01 Kenichi Handa <handa@m17n.org>
27864
27865 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
27866 of category_set for characters out of the range.
27867 Avoid unnecessary modification.
aac0c6e3
MR
27868
27869 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27870 Vchar_unify_table. The default value of the table is now nil.
27871
27872 * character.c (syms_of_character): Setup Vchar_width_table for
27873 eight-bit-control and raw-byte chars.
27874
bba3e508
SM
27875 * charset.h (enum define_charset_arg_index):
27876 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
27877 charset_arg_superset.
27878 (enum charset_attr_index): Delete charset_parents and add
27879 charset_subset and charset_superset.
27880 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27881 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27882 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27883 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27884 (CHARSET_SUPERSET): New macros.
27885 (charset_work): Extern it.
27886 (ENCODE_CHAR): Use charset_work.
27887 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27888 (map_charset_chars): Extern it.
27889
27890 * charset.c (load_charset_map): Set the default value of encoder
27891 and deunifier char-tables to nil.
bba3e508
SM
27892 (map_charset_chars): Change argument. Change callers.
27893 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
27894 (Fmap_charset_chars): New optional args from_code and to_code.
27895 (Fdefine_charset_internal): Adjust for the change of
27896 `define-charset' (:parents -> :subset or :superset).
27897 (charset_work): New variable.
27898 (encode_char, syms_of_charset): Adjust for the change of
27899 Fdefine_charset_internal.
27900 (Ffind_charset_string): Setup the vector `charsets' correctly.
27901
bba3e508
SM
27902 * chartab.c (sub_char_table_ref_and_range): New arg default.
27903 Fix the previous change.
aac0c6e3
MR
27904 (char_table_ref_and_range): Adjust for the above change.
27905 (map_sub_char_table_for_charset): New function.
27906 (map_char_table_for_charset): New function.
27907
27908 * keymap.c (describe_vector): Handle a char-table directly here.
27909 (describe_char_table): Delete.
27910
27911 * lisp.h (map_charset_chars): Delete.
27912
279132008-02-01 Dave Love <fx@gnu.org>
27914
27915 * fns.c (count_combining): Comment out (unused).
27916 (Flocale_codeset): New.
27917 (syms_of_fns): Defsubr it.
27918
27919 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27920 (size_t): Remove.
27921
279222008-02-01 Dave Love <fx@gnu.org>
27923
27924 * Makefile.in (chartab.o): Depend on charset.h.
27925
279262008-02-01 Kenichi Handa <handa@m17n.org>
27927
27928 * character.c (syms_of_character): Set the default value of
27929 Vprintable_chars to Qnil.
27930
279312008-02-01 Dave Love <fx@gnu.org>
27932
27933 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27934
279352008-02-01 Kenichi Handa <handa@m17n.org>
27936
27937 * charset.c (load_charset_map): Handle the case that from < to
27938 correctly.
27939
27940 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27941 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27942 Pay attention to raw-8-bit chars.
27943
279442008-02-01 Kenichi Handa <handa@m17n.org>
27945
27946 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27947 It is not bytecompiled now.
27948
27949 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27950 (charset_jisx0208): New variables.
27951 (Fdefine_charset_internal): Setup them if appropriate.
27952 (init_charset_once): Initialize them to -1.
27953
27954 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27955 (charset_jisx0208): Extern them.
27956
27957 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27958 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27959 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27960 (setup_iso_safe_charsets): Fix arguments to Fassq.
27961 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27962 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27963 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27964 (encode_coding_iso_2022): Change the 1st arg to
27965 ENCODE_ISO_CHARACTER to a variable.
27966
279672008-02-01 Kenichi Handa <handa@m17n.org>
27968
27969 * charset.h (enum define_charset_arg_index): New enums
27970 charset_arg_min_code and charset_arg_max_code.
27971 (struct charset): New member char_index_offset.
27972
27973 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27974 Take charset->char_index_offset into account.
27975 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27976 args[charset_arg_max_code]. Setup charset.char_index_offset.
27977 (syms_of_charset): Fix args to Fdefine_charset_internal.
27978
279792008-02-01 Dave Love <fx@gnu.org>
27980
27981 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27982
279832008-02-01 Dave Love <fx@gnu.org>
27984
27985 * coding.c: Doc fixes.
27986 (Fcoding_system_aliases): Fix return value.
27987 (Qmac): Remove (duplicated) definition.
27988
279892008-02-01 Dave Love <fx@gnu.org>
27990
362654a6
JB
27991 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27992 New functions.
aac0c6e3
MR
27993
27994 * character.c (Fstring): Doc fix.
27995
27996 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27997
362654a6 27998 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
27999 (font-encoding-alist): Doc fix.
28000
280012008-02-01 Dave Love <fx@gnu.org>
28002
28003 * term.c (costs_set): Declare static, non-initialized for pcc.
28004 (encode_terminal_code): Remove unused var.
28005
28006 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
28007 for K&R.
28008
28009 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
28010
28011 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
28012 (suffixes): Move out of make_subsidiaries for K&R.
28013
28014 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
28015
28016 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
28017
280182008-02-01 Dave Love <fx@gnu.org>
28019
28020 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
28021
28022 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
28023
280242008-02-01 Yong Lu <lyongu@asia-infonet.com>
28025
28026 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
28027
28028 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
28029
280302008-02-01 Kenichi Handa <handa@m17n.org>
28031
28032 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
28033 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
28034
280352008-02-01 Kenichi Handa <handa@m17n.org>
28036
28037 * coding.c (decode_coding_charset): Adjust for the change of
28038 Fdefine_coding_system_internal.
28039 (Fdefine_coding_system_internal): For a coding system of
28040 `charset' type, store a list of charset IDs in
28041 `charset_attr_charset_valids' element of coding attributes.
28042
280432008-02-01 Kenichi Handa <handa@m17n.org>
28044
28045 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
28046 (emacs_mule_char): New arg src. Delete arg `composition'.
28047 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
28048 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
28049 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
28050 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
28051 (DECODE_EMACS_MULE_21_COMPOSITION):
28052 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
28053 sequence.
28054 (decode_coding_emacs_mule): Handle composition correctly. Rewind
28055 `src' and `consumed_chars' correctly before calling emacs_mule_char.
28056 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
28057 and alt&rule composition.
28058 (decode_coding_iso_2022): Handle composition correctly.
28059 (init_coding_once): Setup emacs_mule_bytes for private charsets.
28060
28061 * charset.c (Fdefine_charset_internal): Fix bug for the case of
28062 re-defining a charset. If the charset has :emacs-mule-id, setup
28063 emacs_mule_bytes.
28064 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
28065
280662008-02-01 Kenichi Handa <handa@m17n.org>
28067
28068 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
28069 (encode_coding_big5, encode_coding_charset): If coding requires safe
28070 encoding, produce a character specified by
28071 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
28072
280732008-02-01 Dave Love <fx@gnu.org>
28074
28075 * xterm.c (XSetIMValues): Declare.
28076
28077 * process.c: Conditionally include sys/wait.h, pty.h.
28078
28079 * print.c (print_object): Fix print format for 64-bit systems.
28080
28081 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
28082
28083 * buffer.c (emacs_strerror): Declare.
28084
28085 * fontset.c (Fclear_face_cache): Declare.
28086 (accumulate_font_info): Comment-out (unused).
28087 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
28088 variables.
28089
28090 * character.h (string_escape_byte8): Declare.
28091
bba3e508
SM
28092 * charset.c (load_charset_map, load_charset_map_from_file):
28093 Remove unused vars.
aac0c6e3
MR
28094 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
28095 (Fmap_charset_chars): Doc fix.
28096
28097 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
28098 (Fset_coding_system_priority, Fset_coding_system_priority)
28099 (Fdefine_coding_system_internal): Doc fix.
28100
281012008-02-01 Dave Love <fx@gnu.org>
28102
28103 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
28104
281052008-02-01 Kenichi Handa <handa@m17n.org>
28106
28107 * character.c (string_escape_byte8): Make multibyte string with
28108 correct size.
28109
28110 * charset.c (Fmake_char): Delete unnecessary code.
28111
281122008-02-01 Kenichi Handa <handa@m17n.org>
28113
28114 * xfns.c (x_encode_text): Allocate coding.destination here, and
28115 call encode_coding_object with dst_object Qnil.
28116
28117 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
28118 multibyte form correctly.
28119
28120 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
28121 against Vfont_encoding_alist.
28122
28123 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
28124 handling of charset list.
28125 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
28126 (decode_coding_object): Move point to coding->dst_pos before
28127 calling post-read-conversion function.
28128 (encode_coding_object): Give correct arguments to
28129 pre-write-conversion. Ignore the return value of
28130 pre-write-conversion function. Pay attention to the case that
28131 pre-write-conversion changes the current buffer. If dst_object is
28132 Qt, even if coding->src_bytes is zero, allocate at least one byte
28133 to coding->destination.
28134
28135 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
28136
28137 * charset.c (Fmake_char): Make it more backward compatible.
28138 (Fmap_charset_chars): Fix docstring.
28139
281402008-02-01 Dave Love <fx@gnu.org>
28141
28142 * coding.c: Doc fixes.
28143 (Fdefine_coding_system_alias): Use names, not symbols, in
28144 coding-system-alist.
28145
281462008-02-01 Kenichi Handa <handa@m17n.org>
28147
28148 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
28149 of calling free_realized_face.
28150
281512008-02-01 Yong Lu <lyongu@asia-infonet.com>
28152
28153 * charset.c (read_hex): Don't treat SPC as a comment starter.
28154 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
28155 (Fdecode_char): Fix typo.
28156
281572008-02-01 Kenichi Handa <handa@m17n.org>
28158
28159 * charset.h (struct charset): New member `code_space_mask'.
28160
28161 * coding.c (coding_set_source): Delete the local variable beg_byte.
28162 (encode_coding_charset, Fdefine_coding_system_internal):
28163 Delete the local variable charset.
bba3e508
SM
28164 (Fdefine_coding_system_internal):
28165 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
28166
28167 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
28168 member to check if CODE is valid or not.
28169 (Fdefine_charset_internal): Initialize `code_space_mask' member.
28170 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
28171 is within the range of charset->min_code and carset->max_code.
28172
281732008-02-01 Dave Love <fx@gnu.org>
28174
28175 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
28176
28177 * dispextern.h (generate_ascii_font): Fix return type.
28178
28179 * xfaces.c (generate_ascii_font): Fix arg declaration.
28180
28181 * coding.c (coding_inherit_eol_type)
28182 (Fset_terminal_coding_system_internal)
28183 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
28184
281852008-02-01 Kenichi Handa <handa@m17n.org>
28186
bba3e508
SM
28187 * coding.c (decode_coding_charset, encode_coding_charset):
28188 Handle multiple charsets correctly.
aac0c6e3
MR
28189
281902008-02-01 Kenichi Handa <handa@m17n.org>
28191
28192 * search.c (boyer_moore): Fix handling of multibyte character
28193 translation.
28194
28195 * xdisp.c (display_mode_element): When the variable `elt' is
28196 changed, update `this' and `lisp_string'.
28197
281982008-02-01 Kenichi Handa <handa@m17n.org>
28199
28200 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
28201
28202 * callproc.c (Fcall_process): Be sure to give the current buffer
28203 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
28204
28205 * charset.c (struct charset_map_entries): New struct.
28206 (load_charset_map): Rename from parse_charset_map. New args
28207 entries and n_entries. Change caller.
28208 (load_charset_map_from_file): Rename from load_charset_map.
28209 Change caller. New arg control_flag. Call load_charset_map at
28210 the tail.
28211 (load_charset_map_from_vector): New function.
28212 (Fdefine_charset_internal): Setup charset.compact_codes_p.
28213 (encode_char): If the charset is compact, change a character index
28214 to a code point.
28215
28216 * coding.c (coding_alloc_by_making_gap): Check the case that the
28217 source and destination are the same correctly.
28218 (decode_coding_raw_text): Set coding->consumed_char and
28219 coding->consumed to 0.
28220 (produce_chars): If coding->chars_at_source is nonzero, update
28221 coding->consumed_char and coding->consumed before calling
28222 alloc_destination.
28223 (Fdefine_coding_system_alias): Register ALIAS in
28224 Vcoding_system_alist.
28225 (syms_of_coding): Define `no-conversion' coding system at the tail.
28226
28227 * fileio.c (Finsert_file_contents): Set coding_system instead of
28228 val. If the current buffer is multibyte, always call
28229 decode_coding_gap.
28230
28231 * xfaces.c (try_font_list): Give higher priority to fontset's
28232 family than face's family.
28233
282342008-02-01 Kenichi Handa <handa@m17n.org>
28235
28236 * callproc.c (Fcall_process): Be sure to give the current buffer
28237 to decode_coding_c_string.
28238
28239 * xfaces.c (try_font_list): Give a family specified in a fontset
28240 higher priority than a family specified in a face.
28241
282422008-02-01 Kenichi Handa <handa@m17n.org>
28243
28244 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28245 Fix arguments to insert_from_buffer.
28246
28247 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28248
282492008-02-01 Kenichi Handa <handa@m17n.org>
28250
28251 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28252 (decode_coding_gap): Set coding->dst_multibyte correctly.
28253
282542008-02-01 Kenichi Handa <handa@m17n.org>
28255
28256 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28257 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28258 (encode_coding_utf_16): Substitute coding->default_char for
28259 non-Unicode characters.
28260 (decode_coding): Don't call record_insert here.
28261 (setup_coding_system): Initialize `surrogate' of
28262 coding->spec.utf_16 to 0.
28263 (EMIT_ONE_BYTE): Fix for multibyte case.
28264
28265 * insdel.c (insert_from_gap): Call record_insert.
28266
282672008-02-01 Kenichi Handa <handa@m17n.org>
28268
28269 * casefiddle.c (casify_region): Fix multibyte case.
28270
28271 * character.c (c_string_width): Add return type `int'.
28272 (char_string_with_unification): Delete arg ADVANCED.
28273
28274 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28275 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28276 (CHAR_STRING_ADVANCE): Make it do-while statement.
28277
28278 * chartab.c (sub_char_table_set_range): Optimize for the case
28279 DEPTH == 3. Add workaround code for a GCC optimization bug.
28280
28281 * charset.c (parse_charset_map): Remove an unused variable.
28282
28283 * coding.c: Delete unused variables.
28284
28285 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28286 earlier. If inserted is zero and the coding system doesn't
28287 require flushing, don't call decode_coding_gap.
28288
28289 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28290
282912008-02-01 Kenichi Handa <handa@m17n.org>
28292
28293 The following changes are for using Unicode as an internal
28294 character model, and use UTF-8 format for buffer/string
28295 representation.
28296
28297 * .gdbinit (xchartable): Adjust for the change of char table structure.
28298 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28299
28300 * Makefile.in (obj): Add character.o and chartab.o.
28301 (lisp, shortlisp): Remove utf-8.elc.
28302 (*.o): For many files, change dependency on charset.h to
28303 character.h, and add dependency on character.h.
28304 (character.o, chartab.o): New targets.
28305
28306 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28307 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28308 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28309 of "charset.h".
28310
28311 * dired.c, filelock.c: Include "character.h".
28312
28313 * alloc.c: Include "character.h" instead of "charset.h".
28314 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28315 (syms_of_alloc): Remove defsubr for Smake_char_table.
28316
28317 * buffer.c: Include "character.h" instead of "charset.h", don't
28318 include "coding.h".
28319 (Fset_buffer_multibyte): Adjust for UTF-8.
28320
28321 * buffer.h: EXFUN Fbuffer_live_p.
28322
28323 * callproc.c: Include "character.h" instead of "charset.h".
28324 (Fcall_process): Big change for the new code-conversion APIs.
28325
28326 * casetab.c: Include "character.h" instead of "charset.h".
28327 (set_canon, set_identity, shuffle): Adjust for the new
28328 map_char_table spec.
28329 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28330 accessing the char table structure.
28331
28332 * chartab.c: New file that implements char table.
28333
28334 * category.c: Include "character.h".
28335 (copy_category_entry): New function.
28336 (copy_category_table): Call map_char_table and copy_category_entry.
28337 (Fmake_category_table): Initialize all top-level slots.
28338 (char_category_set): New function.
28339 (modify_lower_category_set): Delete.
28340 (Fmodify_category_entry): Call char_table_ref_and_range.
28341
28342 * category.h (CATEGORY_SET): Just call char_category_set.
28343
28344 * ccl.c: Include "character.h".
28345 (Qccl, Qcclp): New variables.
28346 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28347 it's less than 256.
28348 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28349 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28350 and DST type.
28351 (ccl_driver): Change types of argument, adjust code accordingly.
28352 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28353 ccl_driver.
28354 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28355
28356 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28357 New members src_multibyte, dst_multibyte, consumed, and produced.
28358 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28359 (CODING_SPEC_CCL_PROGRAM): New macro.
28360 (ccl_driver): Update prototype.
28361 (Qccl, Qcclp, Fccl_program_p): Extern them.
28362 (CHECK_CCL_PROGRAM): New macro.
28363
28364 * character.c, character.h, chartab.c: New files.
28365
28366 * charset.c: Mostly re-written. Move character and multibyte sequence
28367 handling codes to character.c.
28368
28369 * charset.h: Mostly re-written. Move character and multibyte sequence
28370 handling codes to character.h.
28371
28372 * coding.c, coding.h: Mostly re-written.
28373
28374 * composite.c: Include "character.h" instead of "charset.h".
28375 (CHAR_WIDTH): Move to character.h.
28376 (HASH_KEY, HASH_VALUE): Delete.
28377
28378 * composite.h (enum composition_method): Change order of enumeration
28379 symbols.
28380
28381 * data.c: Include "character.h" instead of "charset.h".
28382 (Faref): Call CHAR_TABLE_REF for a char table.
28383 (Faset): Call CHAR_TABLE_SET for a char table.
28384
28385 * dispextern.h (free_realized_face, check_face_attribytes)
28386 (generate_ascii_font): Extern them.
28387 (free_realized_multibyte_face): Delete extern.
28388
28389 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28390 table structure.
28391
28392 * editfns.c: Include "character.h" instead of "charset.h".
28393 (Fchar_to_string): Always call CHAR_STRING.
28394
28395 * emacs.c (main): Call init_charset_once, init_charset,
28396 syms_of_chartab, and syms_of_character.
28397
28398 * fileio.c: Include "character.h" instead of "charset.h".
28399 (Finsert_file_contents): Big change for the new code-conversion API.
28400 (choose_write_coding_system, Fwrite_region): Likewise.
28401 (build_annotations_2): Delete.
28402 (e_write): Big change for the new code-conversion API.
28403
28404 * fns.c: Include "character.h" instead of "charset.h".
28405 (copy_sub_char_table): Move to chartab.c.
28406 (Fcopy_sequence): Call copy_char_table for a char table.
28407 (concat): Delete codes calling count_multibyte.
28408 (string_char_to_byte, string_byte_to_char): Adjust for the new
28409 multibyte form.
28410 (internal_equal): Adjust for the change of char table structure.
28411 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28412 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28413 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28414 (char_table_translate, optimize_sub_char_table)
28415 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28416 chartab.c.
28417 (char_table_ref_and_index): Delete.
28418 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28419 (Fmd5): Call preferred_coding_system instead of accessing
28420 Vcoding_category_list. Adjust for the new code-conversion API.
28421 (syms_of_fns): Move defsubr for char table related functions to
28422 chartab.c.
28423
28424 * fontset.c: Mostly re-written.
28425
28426 * fontset.h (struct font_info): Change type of the member encoding_type.
28427 (enum FONT_SPEC_INDEX): New enum.
28428 (fontset_font_pattern, fs_load_font): Update prototype.
28429 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28430
28431 * indent.c: Include "character.h" instead of "charset.h".
28432 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28433
28434 * insdel.c: Include "character.h" instead of "charset.h".
28435 (copy_text): Don't refer to Vnonascii_translation_table.
28436 (insert_from_gap): New function.
28437
28438 * keyboard.c: Include "character.h" instead of "charset.h".
28439 (command_loop_1): Never call direct_output_forward_char before
28440 a non-ASCII character.
28441 (read_char): If Vkeyboard_translate_table is a char table, always
28442 translate a character.
28443
28444 * keymap.c: Include "character.h".
28445 (store_in_keymap): Handle the case that IDX is a cons.
28446 (Fdefine_key): Handle the case that KEY is a cons and the car part
28447 is also a cons (range).
28448 (push_key_description): Adjust for the new character code.
28449 (describe_vector): Call describe_char_table for a char table.
28450 (describe_char_table): New function.
28451
28452 * keymap.h (describe_char_table): Extern it.
28453
28454 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28455 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28456 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28457 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28458 Delete.
28459 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28460 structure.
28461 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28462 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28463 (CHARTAB_SIZE_BITS_3): New macros.
28464 (chartab_size): Extern it.
28465 (struct Lisp_Char_Table): Re-design.
28466 (struct Lisp_Sub_Char_Table): New structure.
28467 (HASH_KEY, HASH_VALUE): Move from fns.c.
28468 (CHARACTERBITS): Define as 22.
28469 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28470 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28471 (GC_SUB_CHAR_TABLE_P): New macro.
28472 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 28473 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
28474 (init_character_once, syms_of_character, init_charset)
28475 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28476
28477 * lread.c: Include "character.h".
28478 (read_multibyte): New arg NBYTES.
28479 (read_escape): Change the meaning of returned *BYTEREP.
28480 (to_multibyte): Delete.
28481 (read1): Adjust the handling of char table and string.
28482
28483 * print.c: Include "character.h" instead of "charset.h".
28484 (print_string): Convert 8-bit raw bytes to octal form by
28485 string_escape_byte8.
28486 (print_object): Adjust for the new multibyte form. Print 8-bit
28487 raw bytes always in octal form. Handle sub char table correctly.
28488
28489 * process.c: Include "character.h" instead of "charset.h".
28490 (read_process_output, send_process): Adjust for the new
28491 code-conversion API.
28492
28493 * puresize.h (BASE_PURESIZE): Increase.
28494
28495 * regex.c: Include "character.h" instead of "charset.h".
28496 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28497 (regex_compile): Accept a range whose starting and ending
28498 character have different leading bytes.
28499 (analyse_first): Adjust for the above change.
28500
28501 * search.c: Include "character.h" instead of "charset.h".
28502 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28503 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28504
28505 * syntax.c: Include "character.h" instead of "charset.h".
28506 (syntax_parent_lookup): Delete.
28507 (Fmodify_syntax_entry): Accept a cons as CHAR.
28508 (skip_chars): Adjust for the new multibyte form.
28509 (init_syntax_once): Call char_table_set_range instead of directly
28510 accessing the structure of a char table.
28511
28512 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28513 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28514 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28515 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28516
28517 * term.c: Include "buffer.h" and "character.h".
28518 (encode_terminal_code, write_glyphs): Adjust for the new
28519 code-conversion API.
28520 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28521
28522 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28523
28524 * xdisp.c: Include "character.h".
28525 (get_next_display_element): Adjust for the new multibyte form.
28526 (disp_char_vector): Adjust for the new char table structure.
28527 (decode_mode_spec_coding): Adjust for the new structure of
28528 coding system.
28529 (decode_mode_spec): Adjust for the new code-conversion API.
28530
28531 * xfaces.c: Include "character.h" instead of "charset.h".
28532 (load_face_font): Adjust for the change of choose_face_font and
28533 FS_LOAD_FONT.
28534 (generate_ascii_font): New function.
28535 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28536 (set_font_frame_param): Adjust for the change of choose_face_font.
28537 (free_realized_face): Make it public.
28538 (free_realized_faces_for_fontset): Rename from
28539 free_realized_multibyte_face. Free also faces realized for ASCII.
28540 (choose_face_font): Change arguments. Adjust for the change of
28541 fontset_font_pattern and FS_LOAD_FONT.
28542
28543 * xfns.c: Include "character.h".
28544 (x_encode_text): Adjust for the new code-conversion API.
28545
28546 * xselect.c: Don't include "charset.h".
28547 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28548
28549 * xterm.c: Include "character.h".
28550 (x_encode_char): New argument CHARSET. Change caller.
28551 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28552 Call ENCODE_CHAR instead of SPLIT_CHAR.
28553 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28554 CHAR_WIDTH instead of CHARSET_WIDTH.
28555 (XTread_socket): Adjust for the new code-conversion API.
28556 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28557 (x_load_font): Adjust for the change of struct font.
28558
285592008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28560
28561 * xfaces.c (face_at_buffer_position): Remove unused vars.
28562
285632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28564
28565 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28566 Fix overflow checking.
28567
285682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28569
28570 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28571 Cancel previous change.
28572
285732008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28574
28575 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28576 ccl->eight_bit_control. Fix check for buffer overflow.
28577 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28578 (ccl_driver): Initialize extra_bytes to 0.
28579
285802008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28581
28582 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28583 return it ORed with ctrl_modifier.
28584
285852008-01-29 Miles Bader <miles@gnu.org>
28586
28587 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28588
285892008-01-28 Jason Rumney <jasonr@gnu.org>
28590
28591 * w32.c (stat): Don't double check for networked drive.
28592
285932008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28594
28595 * window.c (run_window_configuration_change_hook): New function.
28596 Code extracted from set_window_buffer. Set the selected frame.
28597 (set_window_buffer): Use it.
28598 * window.h (run_window_configuration_change_hook): Declare.
28599 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28600
28601 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28602
286032008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28604
28605 * Makefile.in: Remove references to unused macros.
28606
286072008-01-26 Eli Zaretskii <eliz@gnu.org>
28608
28609 * w32.c (g_b_init_get_sid_sub_authority)
28610 (g_b_init_get_sid_sub_authority_count): New static variables.
28611 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28612 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28613 (init_user_info): Use them to retrieve uid and gid.
28614 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28615 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28616 st_uid and st_gid of the file.
28617
286182008-01-26 Jason Rumney <jasonr@gnu.org>
28619
28620 * w32.c (logon_network_drive): New function.
28621 (stat): Use it.
28622
286232008-01-26 Chong Yidong <cyd@stupidchicken.com>
28624
28625 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28626 invisible text covered with an ellipsis.
28627
286282008-01-25 Richard Stallman <rms@gnu.org>
28629
28630 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28631 jump back to beginning. Move some other initializations after that.
28632 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28633 New variables.
28634 (syms_of_xdisp): Init them.
28635
28636 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28637
28638 * buffer.c (reset_buffer_local_variables):
28639 Implement `permanent-local-hook'.
28640 (Qpermanent_local_hook): New variable.
28641 (syms_of_buffer): Init and staticpro it.
28642
286432008-01-25 Michael Albinus <michael.albinus@gmx.de>
28644
28645 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28646
286472008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28648
28649 * fns.c (Fclrhash): Return TABLE.
28650
286512008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28652
28653 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28654 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28655 is set even without positional changes.
28656 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28657
28658 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28659
286602008-01-23 Jason Rumney <jasonr@gnu.org>
28661
28662 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28663
28664 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28665 the unicode range available in MULE by locale-coding-system.
28666 Improve dbcs lead byte detection. Set event timestamp and modifiers
28667 earlier.
28668
286692008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28670
28671 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28672 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28673 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28674 when used on child processes.
28675
286762008-01-21 Michael Albinus <michael.albinus@gmx.de>
28677
28678 * dbusbind.c (Fdbus_method_return_internal): Rename from
28679 Fdbus_method_return.
28680 (Fdbus_unregister_object): Move to dbus.el.
28681 (Fdbus_call_method, Fdbus_method_return_internal)
28682 (Fdbus_send_signal): Improve debug messages.
28683
286842008-01-20 Martin Rudalics <rudalics@gmx.at>
28685
28686 * undo.c (undo_inhibit_record_point): New variable.
28687 (syms_of_undo): Initialize it.
28688 (record_point): Don't record point when undo_inhibit_record_point
28689 is set.
28690
286912008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28692
28693 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28694
28695 * xdisp.c (Qauto_hscroll_mode): New var.
28696 (syms_of_xdisp): Initialize it.
28697 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28698 window's buffer.
28699 (hscroll_windows): Don't check automatic_hscrolling_p here.
28700
28701 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28702 vscroll if we're setting window-buffer to the value it already has.
28703
287042008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28705
28706 * m/intel386.h: Remove references to XENIX.
28707
287082008-01-17 Andreas Schwab <schwab@suse.de>
28709
28710 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28711 instead of HAVE_X86_64_LIB64_DIR.
28712 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28713
287142008-01-17 Glenn Morris <rgm@gnu.org>
28715
28716 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28717 to HAVE_X86_64_LIB64_DIR.
28718
287192008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28720
28721 * s/irix3-3.h:
28722 * s/irix4-0.h:
28723 * s/386-ix.h:
28724 * s/domain.h:
28725 * s/hpux9-x11r4.h:
28726 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28727
28728 * sysdep.c: Remove code containing references to symbols defined
28729 by unsupported systems.
28730
287312008-01-16 Glenn Morris <rgm@gnu.org>
28732
28733 * coding.c (select-safe-coding-system-function): Doc fix.
28734
287352008-01-15 Glenn Morris <rgm@gnu.org>
28736
28737 * config.in: Revert 2008-01-13 change: this is a generated file.
28738
287392008-01-13 Tom Tromey <tromey@redhat.com>
28740
28741 * lisp.h: Fix typo.
28742
287432008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28744
28745 * m/sequent-ptx.h:
28746 * m/sequent.h:
28747 * s/ptx.h:
28748 * s/ptx4-2.h:
28749 * s/ptx4.h: Remove files for systems no longer supported.
28750
28751 * callproc.c (Fcall_process): Fix previous change.
28752
287532008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28754
28755 * unexsunos4.c: Remove file, system not supported anymore.
28756
28757 * m/mips.h:
28758 * m/intel386.h:
28759 * callproc.c:
28760 * config.in:
28761 * ecrt0.c:
28762 * emacs.c:
28763 * fileio.c:
28764 * frame.c:
28765 * getpagesize.h:
28766 * keyboard.c:
28767 * lread.c:
28768 * process.c:
28769 * puresize.h:
28770 * sysdep.c:
28771 * systty.h:
28772 * syswait.h:
28773 * unexec.c:
28774 * xdisp.c:
28775 * alloc.c: Remove code containing references to symbols defined by
28776 unsupported systems.
28777
287782008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28779
28780 * coding.c (detect_coding_mask): Fix previous change.
28781
287822008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28783
28784 * coding.c (detect_coding_iso2022): New arg
28785 latin_extra_code_state. Allow Latin extra codes only
28786 when *latin_extra_code_state is nonzero.
28787 (detect_coding_mask): If there is a NULL byte, detect the encoding
28788 as UTF-16 or binary. If Latin extra codes exist, detect the
28789 encoding as ISO-2022 only when there's no other proper encoding is
28790 found.
28791
287922008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28793
28794 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28795 #ifdef MAC_OS.
28796
287972008-01-08 Richard Stallman <rms@gnu.org>
28798
28799 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28800
288012008-01-06 Nick Roberts <nickrob@snap.net.nz>
28802
28803 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28804 menu bar in parentheses.
28805
288062008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28807
28808 * m/7300.h:
28809 * m/acorn.h:
28810 * m/alliant-2800.h:
28811 * m/alliant.h:
28812 * m/alliant1.h:
28813 * m/alliant4.h:
28814 * m/altos.h:
28815 * m/amdahl.h:
28816 * m/apollo.h:
28817 * m/att3b.h:
28818 * m/aviion-intel.h:
28819 * m/aviion.h:
28820 * m/celerity.h:
28821 * m/clipper.h:
28822 * m/cnvrgnt.h:
28823 * m/convex.h:
28824 * m/cydra5.h:
28825 * m/delta88k.h:
28826 * m/dpx2.h:
28827 * m/dual.h:
28828 * m/elxsi.h:
28829 * m/f301.h:
28830 * m/gould-np1.h:
28831 * m/gould.h:
28832 * m/i860.h:
28833 * m/ibmps2-aix.h:
28834 * m/ibmrt-aix.h:
28835 * m/ibmrt.h:
28836 * m/irist.h:
28837 * m/is386.h:
28838 * m/isi-ov.h:
28839 * m/mega68.h:
28840 * m/mg1.h:
28841 * m/news-r6.h:
28842 * m/news-risc.h:
28843 * m/news.h:
28844 * m/nh3000.h:
28845 * m/nh4000.h:
28846 * m/ns16000.h:
28847 * m/ns32000.h:
28848 * m/nu.h:
28849 * m/orion.h:
28850 * m/orion105.h:
28851 * m/paragon.h:
28852 * m/pfa50.h:
28853 * m/plexus.h:
28854 * m/pyramid.h:
28855 * m/pyrmips.h:
28856 * m/sh3el.h:
28857 * m/sps7.h:
28858 * m/sr2k.h:
28859 * m/stride.h:
28860 * m/sun1.h:
28861 * m/sun2.h:
28862 * m/sun3-68881.h:
28863 * m/sun3-fpa.h:
28864 * m/sun3-soft.h:
28865 * m/sun3.h:
28866 * m/sun386.h:
28867 * m/symmetry.h:
28868 * m/tad68k.h:
28869 * m/tahoe.h:
28870 * m/targon31.h:
28871 * m/tek4300.h:
28872 * m/tekxd88.h:
28873 * m/tower32.h:
28874 * m/tower32v3.h:
28875 * m/ustation.h:
28876 * m/wicat.h:
28877 * m/xps100.h:
28878 * s/cxux.h:
28879 * s/cxux7.h:
28880 * s/dgux.h:
28881 * s/dgux4.h:
28882 * s/dgux5-4-3.h:
28883 * s/dgux5-4r2.h:
28884 * s/esix.h:
28885 * s/esix5r4.h:
28886 * s/hiuxmpp.h:
28887 * s/hiuxwe2.h:
28888 * s/iris3-5.h:
28889 * s/iris3-6.h:
28890 * s/isc2-2.h:
28891 * s/isc3-0.h:
28892 * s/isc4-0.h:
28893 * s/isc4-1.h:
28894 * s/newsos5.h:
28895 * s/newsos6.h:
28896 * s/osf1.h:
28897 * s/osf5-0.h:
28898 * s/riscix1-1.h:
28899 * s/riscix12.h:
28900 * s/sco4.h:
28901 * s/sco5.h:
28902 * s/sunos4-0.h:
28903 * s/sunos4-1.h:
28904 * s/sunos413.h:
28905 * s/sunos4shr.h:
28906 * s/umax.h:
28907 * s/unipl5-2.h:
28908 * s/xenix.h:
28909 * cxux-crt0.s:
28910 * unexapollo.c:
28911 * unexconvex.c:
28912 * unexenix.c:
28913 * unexsni.c: Remove files for systems no longer supported.
28914
28915 * m/intel386.h: Remove references to unsupported systems.
28916
28917 * w32.c (get_emacs_configuration): Remove reference to i860.
28918
28919 * sysdep.c: Remove dead code.
28920
289212008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28922
28923 * s/rtu.h:
28924 * m/masscomp.h: Remove files. Platform is obsolete.
28925
289262008-01-04 Michael Albinus <michael.albinus@gmx.de>
28927
28928 * dbusbind.c (Fdbus_method_return): New function.
28929 (xd_read_message): Add the serial number to the event.
28930 (Fdbus_register_method): Activate the function.
28931
289322008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28933
28934 * keyboard.c (read_key_sequence): Fix typo.
28935
289362008-01-03 Michael Albinus <michael.albinus@gmx.de>
28937
28938 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28939 (xd_signature, xd_append_arg): Handle element type detection for
28940 empty arrays.
28941 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28942 SDATA () calls; this must be solved more general.
28943 (Fdbus_register_signal): Use SBYTES instead of strlen.
28944
289452008-01-03 Magnus Henoch <magnus@zemdatav>
28946
28947 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28948 unsigned int for byte values (necessary for big-endian platform).
28949 (Fdbus_call_method): Handle the case of no returned arguments.
28950
289512007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28952
28953 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28954
289552007-12-31 Magnus Henoch <mange@freemail.hu>
28956
28957 * dbusbind.c (xd_signature): Signature of variant is just "v".
28958
289592007-12-30 Michael Albinus <michael.albinus@gmx.de>
28960
28961 * dbusbind.c: Fix several errors and compiler warnings.
28962 Reported by Tom Tromey <tromey@redhat.com>.
28963 (XD_ERROR, XD_DEBUG_MESSAGE)
28964 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28965 (xd_append_arg): Part for basic D-Bus types rewritten.
28966 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28967 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28968 appropriate.
28969 (xd_read_message): Return Qnil. Don't signal an error; it is not
28970 useful during event reading.
28971 (Fdbus_register_signal): Signal an error if the check for
28972 FUNCTIONP fails.
28973 (Fdbus_register_method): New function. The implementation is not
28974 complete, the call of the function signals an error therefore.
28975 (Fdbus_unregister_object): New function, renamed from
28976 Fdbus_unregister_signal. The initial check signals an error, if
28977 the object is not well formed.
28978
289792007-12-30 Richard Stallman <rms@gnu.org>
28980
28981 * textprop.c (get_char_property_and_overlay):
28982 Signal error if POSITION is out of range in a buffer.
28983
289842007-12-29 Martin Rudalics <rudalics@gmx.at>
28985
28986 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28987 because the original parameters are in pure storage now.
28988
289892007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28990
28991 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28992
289932007-12-22 Eli Zaretskii <eliz@gnu.org>
28994
28995 * callint.c (syms_of_callint) <command-history>: Add reference to
28996 history-length in the doc string.
28997
289982007-12-17 Jason Rumney <jasonr@gnu.org>
28999
29000 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
29001 before passing as wParam.
29002
290032007-12-22 Michael Albinus <michael.albinus@gmx.de>
29004
29005 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
29006 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
29007 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
29008 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
29009 as number.
29010 (Fdbus_call_method): Fix docstring.
29011
290122007-12-21 Michael Albinus <michael.albinus@gmx.de>
29013
29014 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
29015 New macros.
29016 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
29017 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
29018 Simplify.
29019 (xd_signature): New function.
29020 (xd_append_arg): Compute also signatures. Major rewrite.
29021 (xd_retrieve_arg): Make debug messages friendly.
29022 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
29023 Check for signatures of arguments.
29024
290252007-12-19 Michael Albinus <michael.albinus@gmx.de>
29026
29027 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
29028 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
29029 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
29030 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
29031 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
29032 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
29033 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
29034 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
29035 (xd_retrieve_value): Remove. Functionality included in ...
29036 (xd_append_arg): New function.
29037 (Fdbus_call_method, Fdbus_send_signal): Apply it.
29038
290392007-12-16 Michael Albinus <michael.albinus@gmx.de>
29040
29041 * dbusbind.c (top): Include <stdio.h>.
29042 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
29043 dbus_message_new_method_call and dbus_message_new_signal.
29044 (Fdbus_register_signal): Rename unique_name to uname.
29045 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
29046 non-existing unique name. Fix typos in matching rule. Return an
29047 object which is useful in Fdbus_unregister_signal.
29048 (Fdbus_unregister_signal): Reimplementation, in order to remove
29049 only the corresponding entry.
29050 (Vdbus_registered_functions_table): Change the order of entries.
29051 Apply these changes in xd_read_message and Fdbus_register_signal.
29052
290532007-12-16 Andreas Schwab <schwab@suse.de>
29054
29055 * fileio.c (Finsert_file_contents): Fix overflow check to not
29056 depend on undefined integer overflow.
29057
290582007-12-14 Jason Rumney <jasonr@gnu.org>
29059
29060 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
29061 for characters above 127.
29062
290632007-12-13 Jason Rumney <jasonr@gnu.org>
29064
29065 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
29066 before dereferencing array.
29067 (lookup_vk_code): Remove zero comparison.
29068
290692007-12-14 Michael Albinus <michael.albinus@gmx.de>
29070
29071 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
29072 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
29073 Use `unsigned int' instead of `uint'.
29074 (xd_read_message, Fdbus_register_signal): Split expressions into
29075 multiple lines before operators "&&" and "||", according to the
29076 GNU Coding Standards.
29077
290782007-12-14 Eli Zaretskii <eliz@gnu.org>
29079
29080 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
29081
290822007-12-12 Juri Linkov <juri@jurta.org>
29083
29084 * buffer.c (Frename_buffer): In interactive spec replace
29085 `read-buffer' with `read-string' that uses `buffer-name-history'
29086 as history, and the current buffer's name as default.
29087
290882007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
29089
29090 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
29091 manipulating the backtrace manually.
29092 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
29093 (struct backtrace, backtrace_list): Remove.
29094 (command_loop_1): Remove dead var `no_direct'.
29095
29096 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
29097 preserve non-built-in buffer-local variables.
29098 (Fkill_all_local_variables): Don't re-create&re-set permanent
29099 buffer-local variables.
29100
291012007-12-09 Juri Linkov <juri@jurta.org>
29102
29103 * buffer.c (Frename_buffer): Change interactive spec from "s" to
29104 Lisp code that uses `read-buffer' with current buffer as default.
29105
291062007-12-08 Michael Albinus <michael.albinus@gmx.de>
29107
29108 * dbusbind.c (xd_read_message): Generate an event for every
29109 registered handler. There might be several handlers registered
29110 for the same signal.
29111 (Fdbus_register_signal): Don't overwrite a registration for the
29112 same signal. Add a new registration if handlers are different.
29113 (Vdbus_registered_functions_table): Rework doc string.
29114
291152007-12-07 Michael Albinus <michael.albinus@gmx.de>
29116
29117 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
29118 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
29119 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
29120 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
29121 Unify argument lists.
29122 (xd_read_message, Fdbus_register_signal): Reorder and extend event
29123 arguments and hash table keys. Use unique name for service.
29124 (Fdbus_unregister_signal): Remove checks.
29125 (Vdbus_registered_functions_table): Fix doc string.
29126
291272007-12-05 Magnus Henoch <mange@freemail.hu>
29128
29129 * process.c (make_process): Initialize pty_flag to 0.
29130
291312007-12-05 Jason Rumney <jasonr@gnu.org>
29132
29133 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
29134 specified XBMs.
29135
291362007-12-05 Richard Stallman <rms@gnu.org>
29137
29138 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
29139
291402007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29141
29142 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
29143 New variable.
29144 (mac_try_close_socket) [MAC_OSX]: New function.
29145 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
29146 Update cfsockets_for_select. Replace invalid CFRunLoop source.
29147
29148 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
29149 Use mac_try_close_socket.
29150
291512007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29152
29153 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
29154 reloc_base.
29155 (copy_dysymtab): Compute relocation base here.
29156 (rebase_reloc_address) [__ppc64__]: New function.
29157 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
29158 changed.
29159
291602007-12-05 Jason Rumney <jasonr@gnu.org>
29161
29162 * w32proc.c (sys_spawnve): Quote args with wildcards.
29163
291642007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29165
29166 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
29167 __objc_* sections.
29168 (unrelocate) [_LP64]: Set relocation base to address of data segment.
29169
291702007-12-05 Michael Albinus <michael.albinus@gmx.de>
29171
29172 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
29173 Move check for Vdbus_registered_functions_table to
29174 xd_read_queued_messages.
29175 (xd_read_queued_messages): Protect xd_read_message calls by
29176 internal_condition_case_1.
29177
291782007-12-04 Michael Albinus <michael.albinus@gmx.de>
29179
29180 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
29181 Qdbus_system_bus and Qdbus_session_bus, respectively.
29182 (Vdbus_intern_symbols): Remove.
29183 (Vdbus_registered_functions_table): New hash table.
29184 (XD_SYMBOL_INTERN_SYMBOL): Remove.
29185 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
29186 Rewrite in order to manage registered functions by hash table
29187 Vdbus_registered_functions_table.
29188
291892007-12-03 Jan Djärv <jan.h.d@swipnet.se>
29190
29191 * xterm.c: Update URL to Window Manager Specification in comment.
29192
291932007-12-02 Michael Albinus <michael.albinus@gmx.de>
29194
29195 * config.in (HAVE_DBUS): Add.
29196
29197 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
29198 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
29199 (obj): Add $(DBUS_OBJ).
29200 (LIBES): Add $(DBUS_LIBS).
29201 (dbusbind.o): New target.
29202
29203 * dbusbind.c: New file.
29204
29205 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
29206
29207 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
29208 (Qdbus_event): New Lisp symbol.
29209 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
29210 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 29211 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
29212
29213 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
29214
292152007-12-01 Richard Stallman <rms@gnu.org>
29216
29217 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29218
292192007-11-30 Jason Rumney <jasonr@gnu.org>
29220
29221 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29222 (w32con_reset_terminal_modes): Clear screen buffer.
29223 (w32_face_attributes): Don't use color indexes that are out of range.
29224 Only reverse the default colors.
29225
29226 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29227 WINDOWSNT.
29228
29229 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29230
292312007-11-29 Jason Rumney <jasonr@gnu.org>
29232
29233 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29234 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29235 if the terminal colors are initialized.
29236 (unspecified_fg, unspecified_bg): Remove unused declarations.
29237
292382007-11-29 Andreas Schwab <schwab@suse.de>
29239
29240 * keyboard.c (apply_modifiers): Fix typo.
29241
292422007-11-29 Richard Stallman <rms@gnu.org>
29243
29244 * keymap.c (Fcurrent_local_map): Doc fix.
29245
292462007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29247
29248 * s/gnu-kfreebsd.h: New file.
29249
292502007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29251
29252 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29253 Don't cast redundantly.
29254
29255 * keyboard.c (KEY_TO_CHAR): New macro.
29256 (parse_modifiers, apply_modifiers): Accept integer arguments.
29257 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29258 for chars and symbol keys.
29259 After doing such remapping, apply function-key-map again.
29260
292612007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29262
29263 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29264 compiled anymore.
29265
292662007-11-26 Andreas Schwab <schwab@suse.de>
29267
29268 * process.c (list_processes_1): Fix indentation level of the
29269 command column.
29270
292712007-11-23 Andreas Schwab <schwab@suse.de>
29272
29273 * editfns.c (Fformat): Handle %c specially since it requires the
29274 argument to be of type int.
29275
292762007-11-23 Markus Triska <markus.triska@gmx.at>
29277
29278 * emacs.c (main): Call init_editfns before init_process, since
29279 init_process sets Vprocess_connection_type depending on OS release.
29280
292812007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29282
29283 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29284 (find_symbol_value): Use do_symval_forwarding.
29285
29286 * data.c (set_internal): Set the value in the `cons-cell' (for
29287 Buffer_Local_values) not only for frame-local variables.
29288
292892007-11-22 Andreas Schwab <schwab@suse.de>
29290
29291 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29292 values to sprintf.
29293 * keymap.c (Fsingle_key_description): Likewise.
29294 * print.c (print_object): Likewise.
29295
292962007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29297
29298 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29299 file for image is nil.
29300
293012007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29302
29303 * term.c: Include stdarg.h.
29304 (fatal): Implement using varargs.
29305 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29306
293072007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29308
29309 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29310 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29311 Update call to buffer_slot_type_mismatch.
29312 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29313 (buffer_slot_type_mismatch): Update.
29314 * buffer.c (buffer_local_types): Remove.
29315 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29316 (defvar_per_buffer): Set the type in the buffer_objfwd.
29317
293182007-11-21 Jason Rumney <jasonr@gnu.org>
29319
29320 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29321 CreateFileMapping returns NULL on failure.
29322
293232007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29324
29325 * search.c (Fset_match_data): Remove the `evaporate' feature.
29326 (unwind_set_match_data): Don't use the `evaporate' feature.
29327
293282007-11-21 Jason Rumney <jasonr@gnu.org>
29329
29330 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29331
29332 * w32console.c (w32con_write_glyphs): Remove unused variables.
29333
293342007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29335
29336 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29337
29338 * s/darwin.h (MULTI_KBOARD): Remove.
29339
29340 * macfns.c (x_create_tip_frame, Fx_create_frame)
29341 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29342
293432007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29344
29345 * buffer.c (Fbuffer_local_value): Remove redundant test.
29346 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29347 than in `current-buffer' to match the comment.
29348 Do the swap using swap_in_global_binding.
29349
29350 * data.c (store_symval_forwarding, set_internal):
29351 * eval.c (specbind): Remove dead code.
29352
29353 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29354 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29355 Since we do not want to see internal Lisp_*fwd objects here.
29356
293572007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29358
29359 * sysdep.c (init_system_name): Use getaddrinfo if available.
29360
29361 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29362 (x_scroll_bar_note_movement): start, end, with, height in struct
29363 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29364
293652007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29366
29367 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29368
293692007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29370
29371 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29372 This undoes Richard's change of 14-Oct-2002.
29373
29374 * alloc.c (allocate_other_vector):
29375 * lisp.h (allocate_other_vector): Remove.
29376
29377 * window.c (struct save_window_data): Move non-lisp data to the end
29378 and make it `int' rather than Lisp_Object.
29379 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29380 Done wrap/unwrap integer values.
29381 (Fset_window_configuration, compare_window_configurations):
29382 Update use of fields to their new types.
29383
29384 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29385 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29386 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29387 (SET_SCROLL_BAR_X_WINDOW): Remove.
29388 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29389 Access the new x_window field directly.
29390 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29391 Don't wrap/unwrap integers into Lisp_Objects.
29392 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29393 (x_scroll_bar_report_motion):
29394 Don't wrap/unwrap integers into Lisp_Objects.
29395 (x_term_init): Use SDATA.
29396 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29397 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29398 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29399 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29400 * xfns.c (x_set_background_color):
29401 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29402 Access the new x_window field directly.
29403
29404 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29405 (allocate_pseudovector): Make non-static.
29406
29407 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29408 (allocate_pseudovector): Declare.
29409 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29410
294112007-11-15 Andreas Schwab <schwab@suse.de>
29412
29413 * editfns.c (Fformat): Correctly format EMACS_INT values.
29414 Also take precision into account when formatting an integer.
29415
29416 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29417
294182007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29419
29420 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29421 (syms_of_keyboard): Defsubr it.
29422
29423 * data.c (swap_in_global_binding): Fix longstanding bug where
29424 store_symval_forwarding was not called with the right second argument,
29425 thus causing objfwd-ing from being dropped.
29426
294272007-11-14 Juanma Barranquero <lekktu@gmail.com>
29428
29429 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29430 (Fx_display_pixel_height, Fx_display_planes)
29431 (Fx_display_color_cells, Fx_server_max_request_size)
29432 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29433 (Fx_display_visual_class, Fx_display_save_under):
29434 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29435 (Fx_display_pixel_height, Fx_display_planes)
29436 (Fx_display_color_cells, Fx_server_max_request_size)
29437 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29438 (Fx_display_mm_height, Fx_display_mm_width)
29439 (Fx_display_backing_store, Fx_display_visual_class)
29440 (Fw32_select_font, Fx_display_save_under):
29441 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29442 (Fx_display_pixel_height, Fx_display_planes)
29443 (Fx_display_color_cells, Fx_server_max_request_size)
29444 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29445 (Fx_display_save_under): Fix typos in docstrings.
29446
294472007-11-14 Juanma Barranquero <lekktu@gmail.com>
29448
29449 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29450 corresponding to deleted entries; they are an implementation detail.
29451 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29452 Remove variables.
29453 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29454 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29455 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29456 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29457 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29458 (Fw32_define_rgb_color, Fw32_load_color_file)
29459 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29460 Fix typos in docstrings.
29461 (Fx_server_version): Reflow docstring.
29462 (Fw32_shell_execute): Doc fixes.
29463
294642007-11-13 Juanma Barranquero <lekktu@gmail.com>
29465
29466 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29467 if w32_parse_hot_key returned nil.
29468
294692007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29470
29471 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29472
294732007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 29474
aac0c6e3
MR
29475 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29476
29477 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29478
29479 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29480 Remove W32_SCROLL_BAR_CLICK_EVENT.
29481
29482 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29483 Add MULTIMEDIA_KEY_EVENT.
29484
29485 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29486 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29487 (make_lispy_event) [WINDOWSNT]: Use it to translate
29488 MULTIMEDIA_KEY_EVENT.
29489
29490 * w32term.h (WM_APPCOMMAND): Define if not already.
29491 (GET_APPCOMMAND_LPARAM): Likewise.
29492
29493 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29494 WM_APPCOMMAND.
29495
29496 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29497 (syms_of_w32fns): Export and initialize it.
29498 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29499
295002007-11-09 Chong Yidong <cyd@stupidchicken.com>
29501
29502 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29503 twice.
29504
29505 * xdisp.c (handle_face_prop): Fix last change.
29506
295072007-11-09 Richard Stallman <rms@gnu.org>
29508
29509 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29510 not just for after-strings and before-strings.
29511 Call face_for_overlay_string and pass the overlay to it.
29512 (handle_display_prop): Determine whether property came from an overlay.
29513 Pass OVERLAY arg to handle_single_display_spec.
29514 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29515 (load_overlay_strings): Fill in it->string_overlays.
29516 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29517
29518 * xfaces.c (face_for_overlay_string): Function renamed from
29519 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29520
29521 * dispextern.h (struct it): New elt string_overlays.
29522 New elt from_overlay, also in stack.
29523 Rearrange a few elements.
29524 (face_for_overlay_string): Decl renamed from
29525 face_at_buffer_position_no_overlays, and add argument.
29526
295272007-11-09 Richard Stallman <rms@gnu.org>
29528
29529 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29530 to get the base face for an overlay string.
29531
29532 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29533
29534 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29535
29536 * xdisp.c (handle_stop): Move some code out of loop.
29537
295382007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29539
29540 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29541 Fix conversion from Lisp object to ATSUFontID.
29542
295432007-11-09 Jason Rumney <jasonr@gnu.org>
29544
29545 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29546
295472007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29548
29549 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29550 Don't assume regions are aligned to page boundary.
29551 (print_load_command_name): Add LC_UUID if defined.
29552
295532007-11-09 Richard Stallman <rms@gnu.org>
29554
29555 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29556
295572007-11-07 Jason Rumney <jasonr@gnu.org>
29558
29559 * s/windows95.h: Remove.
29560
295612007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29562
29563 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29564 abort with a message on unhandled store_type values.
29565
295662007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29567
29568 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29569 Remove HAVE_X11R5 and HAVE_X11R4.
29570
295712007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29572
29573 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29574
295752007-11-01 Johan Bockgård <bojohan@gnu.org>
29576
29577 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29578 Don't set s->stippled_p here, since it has already been set by
29579 x_set_glyph_string_gc from x_draw_glyph_string.
29580
295812007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29582
29583 * sunfns.c: Remove file.
29584
29585 * m/sun386.h:
29586 * m/sun2.h:
29587 * m/sparc.h: Remove Sun windows code.
29588
295892007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29590
29591 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29592 (init_keyboard): Set current_kboard's window-system to nil.
29593 (tty_read_avail_input): Typo.
29594 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29595
295962007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29597
29598 * s/usg5-4.h:
29599 * s/usg5-3.h:
29600 * s/ptx.h:
29601 * m/is386.h:
29602 * m/ibmps2-aix.h:
29603 * Makefile.in: Remove all mentions of X10.
29604
29605 * dispnew.c (syms_of_display): Don't mention version 10.
29606
296072007-10-28 Juanma Barranquero <lekktu@gmail.com>
29608
29609 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29610 ($(BLD)/abbrev.$(O)): Remove.
29611
296122007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29613
29614 Rewrite abbrev.c in Elisp.
29615 * image.c (Qcount): Don't declare as extern.
29616 (syms_of_image): Initialize and staticpro `Qcount'.
29617 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29618 * emacs.c (main): Don't call syms_of_abbrev.
29619 * Makefile.in (obj): Remove abbrev.o.
29620 (abbrev.o): Remove.
29621 * abbrev.c: Remove.
29622
296232007-10-26 Martin Rudalics <rudalics@gmx.at>
29624
29625 * window.c (window_min_size_2): Don't count header-line.
29626
296272007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29628
29629 * frame.h (struct frame): Move all bit fields after the first bit
29630 field to take advantage of the available space. Group all the
29631 chars together to reduce wasted space due to padding.
29632
296332007-10-26 Juanma Barranquero <lekktu@gmail.com>
29634
29635 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29636
29637 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29638 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29639 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29640 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29641 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29642 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29643 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29644 (last_marked, mark_object_loop_halt): Make static.
29645
29646 * frame.c (syms_of_frame) <delete-frame-functions>:
29647 Fix typo in docstring.
29648
296492007-10-25 Juanma Barranquero <lekktu@gmail.com>
29650
29651 * w32.c (init_environment): Fix tiny memory leak.
29652 (w32_get_resource): Remove unused variable `ok'.
29653
296542007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29655
29656 Make `window-system' into a keyboard-local variable (rather than
29657 frame-local as done originally by multi-tty).
29658
29659 * keyboard.h (struct kboard): Add Vwindow_system.
29660 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29661 (mark_kboards): Mark Vwindow_system.
29662
29663 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29664 (init_display): Don't set the obsolete `window-system' frame-param.
29665
29666 * xterm.c (x_term_init):
29667 * w32term.c (w32_create_terminal):
29668 * term.c (init_tty): Set Vwindow_system.
29669 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29670 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29671
29672 * xfns.c (Fx_create_frame, x_create_tip_frame):
29673 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29674 * macfns.c (Fx_create_frame):
29675 Don't set the obsolete `window-system' frame-param.
29676
29677 * frame.h (Qwindow_system): Remove.
29678 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29679 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29680
296812007-10-24 Richard Stallman <rms@gnu.org>
29682
29683 * frame.c (x_figure_window_size): For fullscreen case,
29684 set USPosition | PPosition without clobbering rest of window_prompting.
29685
29686 * keyboard.c (Fcurrent_idle_time): Doc fix.
29687
29688 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29689
296902007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29691
29692 * process.c (unwind_request_sigio): Only define if __ultrix__.
29693
29694 * callproc.c (child_setup): Remove spurious *.
29695
29696 * lisp.h (Fget_text_property): Declare.
29697 (have_menus_p): Declare it here rather than in sys-dep header files.
29698 * macterm.h (have_menus_p):
29699 * msdos.h (have_menus_p):
29700 * xterm.h (have_menus_p): Remove.
29701
29702 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29703 (Fmake_variable_frame_local): Just check the variable's const-ness
29704 rather than checking nil or t.
29705
297062007-10-22 Jason Rumney <jasonr@gnu.org>
29707
29708 * w32fns.c: Include math.h.
29709 (w32_abort): Declaration moved to nt/config.nt.
29710
29711 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29712 (abort): Redefinition moved to nt/config.nt.
29713
29714 * m/windowsnt.h: Remove.
29715
297162007-10-22 Juanma Barranquero <lekktu@gmail.com>
29717
29718 * emacs.c (Fdump_emacs): Fix typo in message.
29719 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29720 <installation-directory>: Reflow docstring.
29721
297222007-10-22 Juri Linkov <juri@jurta.org>
29723
29724 * minibuf.c: Allow minibuffer default to be a list of default values.
29725 With empty input use the first element of this list as returned default.
29726 (string_to_object)
29727 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29728 (read_minibuf): If defalt is cons, set histstring to its car.
29729 (Fread_string): If default_value is cons, set val to its car.
29730 (Fread_buffer): If def is cons, use its car.
29731 (Fcompleting_read): If defalt is cons, set val to its car.
29732
297332007-10-21 Michael Albinus <michael.albinus@gmx.de>
29734
29735 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29736
297372007-10-20 Juanma Barranquero <lekktu@gmail.com>
29738
29739 * doc.c (Fdocumentation): Check for advice in all cases.
29740
297412007-10-19 Chong Yidong <cyd@stupidchicken.com>
29742
29743 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29744
297452007-10-19 Richard Stallman <rms@gnu.org>
29746
29747 * doc.c (Fdocumentation): Check for and handle an advised function.
29748
297492007-10-19 Juanma Barranquero <lekktu@gmail.com>
29750
29751 * process.c (Fset_process_filter): Doc fix.
29752
297532007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29754
29755 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29756 which caused key-translation-map to applied repeatedly (thus breaking
29757 double-mode).
29758
297592007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29760
29761 * xselect.c (x_own_selection, x_handle_selection_clear)
29762 (x_clear_frame_selections):
29763 * w32menu.c (list_of_panes, list_of_items):
29764 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29765 * textprop.c (validate_plist, interval_has_all_properties)
29766 (interval_has_some_properties, interval_has_some_properties_list)
29767 (add_properties, text_property_list):
29768 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29769 * minibuf.c (Fassoc_string):
29770 * macselect.c (x_own_selection, x_clear_frame_selections)
29771 (Fx_disown_selection_internal):
29772 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29773 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29774
297752007-10-17 Chong Yidong <cyd@stupidchicken.com>
29776
29777 * process.c: Link to libs for calling res_init() if available.
29778 (Fmake_network_process): Call res_init() before getaddrinfo or
29779 gethostbyname, if possible.
29780
297812007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29782
29783 * lread.c (read1): Set pvectype for char_tables.
29784
29785 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29786 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29787 Add type checks.
29788 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29789
29790 * alloc.c (free_misc): Use XMISCTYPE.
29791 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29792
297932007-10-17 Glenn Morris <rgm@gnu.org>
29794
29795 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29796 (syms_of_minibuf): Add Qcompletion_ignore_case.
29797 * dired.c (Qcompletion_ignore_case): Change to external.
29798 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29799 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29800 (Fread_file_name): Use it rather than intern'ing.
29801
29802 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29803 (Fread_coding_system): Ignore case of user input.
29804
298052007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29806
29807 * xdisp.c (handle_display_prop): Ignore display specs after
29808 replacing one when string text is being replaced.
29809 (handle_single_display_spec): Pretend as if characters with display
29810 property haven't been consumed only when buffer text is being replaced.
29811
298122007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29813
29814 * xfns.c (Fx_create_frame, Fx_display_list):
29815 * window.c (window_fixed_size_p, enlarge_window)
29816 (shrink_window_lowest_first):
29817 * macterm.c (init_font_name_table):
29818 * macfns.c (Fx_create_frame, Fx_display_list):
29819 * lread.c (close_load_descs):
29820 * keyboard.c (read_char_x_menu_prompt):
29821 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29822 * coding.c (code_convert_region_unwind): Test the type of an object
29823 rather than just !NILP before extracting data from it.
29824
29825 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29826
29827 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29828 (XMISCANY): New macro.
29829 (XMISCTYPE): Use it.
29830 (struct Lisp_Misc_Any): New type.
29831 (union Lisp_Misc): Use it.
29832 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29833 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29834 (find_symbol_value, set_internal, default_value, Fset_default)
29835 (Fmake_variable_buffer_local, Fmake_local_variable)
29836 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29837 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29838 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29839 * alloc.c (allocate_buffer): Set the size and tag.
29840 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29841 Use XMISCANY.
29842 (die): Follow the GNU convention for error messages.
29843 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29844 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29845 tag any more.
29846 (set_buffer_internal_1):
29847 * frame.c (store_frame_param):
29848 * eval.c (specbind):
29849 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29850
29851 * doc.c (Fsnarf_documentation): Simplify.
29852
298532007-10-14 Juanma Barranquero <lekktu@gmail.com>
29854
29855 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29856 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29857
298582007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29859
29860 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29861
298622007-10-14 Juanma Barranquero <lekktu@gmail.com>
29863
29864 * eval.c (do_autoload): Don't save autoloads.
29865
29866 * data.c (Ffset): Save autoload of the function being set.
29867
298682007-10-07 John Paul Wallington <jpw@pobox.com>
29869
29870 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29871 parameter before setting up faces.
29872
298732007-10-13 Eli Zaretskii <eliz@gnu.org>
29874
29875 * ccl.c (Fregister_code_conversion_map):
29876 * keyboard.c (append_tool_bar_item): Reformat last change.
29877
29878 * lisp.h (eabs): Rename from `abs'. All callers changed.
29879
298802007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29881
29882 * buffer.c (add_overlay_mod_hooklist):
29883 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29884 * fontset.c (make_fontset):
29885 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29886 (append_tool_bar_item):
29887 * macmenu.c (grow_menu_items):
29888 * w32menu.c (grow_menu_items):
29889 * xmenu.c (grow_menu_items): Use larger_vector.
29890
298912007-10-13 Eli Zaretskii <eliz@gnu.org>
29892
29893 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29894 selected frame'' on MSDOS).
29895
298962007-10-12 Martin Rudalics <rudalics@gmx.at>
29897
29898 * frame.c (Qexplicit_name): New variable.
29899 (x_report_frame_params): Report it in parameter alist.
29900 (syms_of_frame): Intern and staticpro it.
29901
299022007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29903
29904 * macfns.c (x_create_tip_frame): Set terminal for frame.
29905
299062007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29907
29908 * frame.c (Qenvironment): Remove.
29909 (syms_of_frame) <Qenvironment>: Don't initialize.
29910 (Fdelete_frame): Don't treat the `environment' param specially.
29911 * frame.h (Qenvironment): Don't declare.
29912 * callproc.c (set_initial_environment): Don't set unused frame param.
29913
29914 * frame.c (Fframe_with_environment): Remove.
29915 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29916
29917 * lisp.h (Fframe_with_environment): Don't declare.
29918
299192007-10-10 Juanma Barranquero <lekktu@gmail.com>
29920
29921 * indent.c (indent_tabs_mode, last_known_column)
29922 (last_known_column_modified): Make static.
29923 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29924
299252007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29926
29927 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29928
299292007-10-09 Jason Rumney <jasonr@gnu.org>
29930
29931 * w32term.c (x_set_window_size): Disable code that attempts to tell
29932 Lisp code about a size change before it actually happens.
29933
299342007-10-09 Richard Stallman <rms@gnu.org>
29935
29936 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29937 return HANDLED_RETURN.
29938
299392007-10-08 Martin Rudalics <rudalics@gmx.at>
29940
29941 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29942 when there's an unread command event.
29943
29944 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29945 window autoselection act appropriately when leaving selected frame.
29946 (syms_of_frame): Initialize focus_follows_mouse.
29947 * frame.h (focus_follows_mouse): Extern it.
29948 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29949 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29950 * msdos.c (dos_rawgetc): Likewise.
29951 * w32term.c (w32_read_socket): Likewise.
29952 * xterm.c (handle_one_xevent): Likewise.
29953 * xdisp.c (syms_of_xdisp): In doc-string of
29954 mouse-autoselect-window mention focus-follows-mouse.
29955
299562007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29957
29958 * macterm.c (mac_load_query_font): Fix missing return value.
29959 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29960 Add BLOCK_INPUT.
29961
299622007-10-08 Richard Stallman <rms@gnu.org>
29963
29964 * xdisp.c (get_window_cursor_type): Implement documented behavior
29965 for cursor-in-non-selected-windows = t.
29966
299672007-10-08 Jason Rumney <jasonr@gnu.org>
29968
29969 * w32.c (w32_get_resource): Always close registry keys.
29970
299712007-10-08 Jason Rumney <jasonr@gnu.org>
29972
29973 * makefile.w32-in (LIBS): Add COMCTL32.
29974
29975 * w32fns.c (globals_of_w32fns): Init common controls.
29976
299772007-10-08 Richard Stallman <rms@gnu.org>
29978
29979 * image.c (our_memory_buffer): Rename from omfib_buffer.
29980
299812007-10-08 Richard Stallman <rms@gnu.org>
29982
29983 * buffer.c (Foverlays_at): Doc fix.
29984
299852007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29986
29987 * fns.c (Fplist_put): Preserve uneven tail data.
29988
299892007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29990
29991 * termhooks.h (enum event_kind): Remove trailing comma.
29992
29993 * frame.h (enum): Remove trailing comma.
29994
299952007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29996
29997 * w32proc.c (delete_child): Don't terminate threads of zombies.
29998
299992007-10-08 Martin Rudalics <rudalics@gmx.at>
30000
30001 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
30002
30003 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
30004 last-repeatable-command.
30005 (init_kboard): Initialize Vlast_repeatable_command.
30006 (command_loop_1): Set it to real_this_command unless that was
30007 bound to an input event.
30008 (mark_kboards): Mark it.
30009
300102007-10-08 Richard Stallman <rms@gnu.org>
30011
30012 * eval.c (condition-case): Doc fix.
30013
300142007-10-08 Masatake YAMATO <jet@gyve.org>
30015
30016 * xfaces.c (tty_supports_face_attributes_p): Fix code
30017 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
30018 was copied and not edited.
30019
300202007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
30021
30022 Add new `input-decode-map' keymap and use it for terminal
30023 escape sequences.
30024 * keyboard.h (struct kboard): Add Vinput_decode_map.
30025 Remove Vlocal_key_translation_map.
30026 * keyboard.c (read_key_sequence): Add support for input-decode-map.
30027 (init_kboard): Init input-decode-map.
30028 Replace local-key-translation-map back with key-translation-map.
30029 (syms_of_keyboard): Declare input-decode-map.
30030 Remove local-key-translation-map. Update docstrings.
30031 (mark_kboards): Mark Vinput_decode_map.
30032 Don't mark Vlocal_key_translation_map.
30033 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
30034 Replace local-key-translation-map back with key-translation-map.
30035 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
30036 Bind in input-decode-map rather than function-key-map.
30037
30038 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
30039 This was made redundant by the previous introduction of XSETPVECTYPE.
30040
300412007-10-09 Richard Stallman <rms@gnu.org>
30042
30043 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
30044
300452007-09-29 Richard Stallman <rms@gnu.org>
30046
30047 * eval.c (internal_condition_case_2, internal_condition_case_1)
30048 (internal_condition_case): Reenable abort if x_catching_errors ()
30049 to see if that really happens and why.
30050
300512007-10-06 Andreas Schwab <schwab@suse.de>
30052
30053 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
30054
300552007-10-04 Juanma Barranquero <lekktu@gmail.com>
30056
30057 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
30058
300592007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
30060
30061 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
30062
300632007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
30064
30065 * window.h (struct window):
30066 * window.c (struct save_window_data, struct saved_window):
30067 * termhooks.h (struct terminal):
30068 * process.h (struct Lisp_Process):
30069 * frame.h (struct frame):
30070 * buffer.h (struct buffer):
30071 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
30072 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
30073 The size field of (pseudo)vectors is now unsigned.
30074 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
30075
30076 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
30077 Turn `count' into an integer.
30078
30079 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
30080 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
30081 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
30082 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
30083 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
30084
30085 * alloc.c (allocate_pseudovector): New fun.
30086 (ALLOCATE_PSEUDOVECTOR): New macro.
30087 (allocate_window, allocate_terminal, allocate_frame)
30088 (allocate_process): Use it.
30089 (mark_vectorlike): New function.
30090 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
30091 (mark_terminals): Use it.
30092 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
30093 (Fmake_byte_code): Use XSETPVECTYPE.
30094
30095 * frame.c (Fframe_parameters): Minor simplification.
30096
30097 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
30098
30099 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
30100
30101 * buffer.c (Fget_buffer_create, init_buffer_once):
30102 * lread.c (defsubr):
30103 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
30104
30105 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
30106 defined differently in the m/*.h files.
30107 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
30108 (XSETPVECTYPE): New macro.
30109 (XSETPSEUDOVECTOR): Use it.
30110
30111 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
30112 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
30113
30114 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
30115 * lread.c (defvar_per_buffer):
30116 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
30117
30118 * window.c (candidate_window_p): Only consider as visible frames that
30119 are on the same terminal.
30120
30121 * m/ibms390x.h (MARKBIT): Remove unused macro.
30122
301232007-10-01 Juanma Barranquero <lekktu@gmail.com>
30124
30125 * lread.c (Fload): Fix typo in docstring.
30126
301272007-10-01 Michaël Cadilhac <michael@cadilhac.name>
30128
30129 * floatfns.c (Fexpt): Manually check for overflows, so that a power
30130 of a non-zero value can't yield zero.
30131
301322007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
30133
30134 * term.c (term_clear_mouse_face, term_mouse_highlight)
30135 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
30136
30137 * print.c (safe_debug_print): Use XHASH.
30138
30139 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
30140 Lisp elements such as tags.
30141 (XHASH): New macro.
30142 (EQ): Use it.
30143 (SREF, SSET, STRING_COPYIN): Use SDATA.
30144 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
30145
30146 * alloc.c (mark_terminal): Remove left-over declaration.
30147 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
30148 (allocate_vectorlike): Remove type argument. Adjust callers.
30149 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
30150 Only handle the one remaining MEM_TYPE_VECTORLIKE.
30151
30152 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
30153 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
30154 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
30155 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
30156 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
30157 Use them.
30158
30159 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
30160 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
30161 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
30162
301632007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
30164
30165 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
30166 loaded by default.
30167
301682007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
30169
30170 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
30171 on this tty.
30172 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
30173
30174 * term.c (mouse_face_window): Rename from Qmouse_face_window.
30175 Update all users.
30176 (handle_one_term_event): Use Gpm_DrawPointer.
30177 (Fgpm_mouse_start): Rename from Fterm_open_connection.
30178 Signal errors instead of returning nil. Always return nil.
30179 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
30180 Make it a noop if gpm-mouse was not activated.
30181 (syms_of_term): Update names.
30182
301832007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
30184
30185 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
30186 (init_sys_modes): Check that gpm_tty is the current tty.
30187
30188 * alloc.c (allocate_terminal): Set the vector size to only count the
30189 lisp fields. Initialize those to nil.
30190 (mark_object): Don't treat terminals specially.
30191 (mark_terminal): Remove.
30192 (mark_terminals): Use mark_object instead.
30193
30194 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
30195 the GC to the beginning.
30196
30197 * indent.h:
30198 * indent.c: Use EMACS_INT for ints coming from Elisp data.
30199
30200 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
30201
302022007-09-25 Jason Rumney <jasonr@gnu.org>
30203
30204 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
30205
30206 * w32console.c (create_w32cons_output): Remove.
30207
30208 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
30209
30210 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
30211 (reset_sys_modes): Use reset_terminal_modes_hook.
30212
302132007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
30214
30215 * eval.c (do_autoload): Don't output any message.
30216
302172007-09-24 Juri Linkov <juri@jurta.org>
30218
30219 * emacs.c (standard_args): Change priority of "--no-splash"
30220 from 40 to 3. Add "--no-desktop" with the same priority.
30221
302222007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30223
30224 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30225 and optimize the case where they are all 1.
30226
302272007-09-23 Johannes Weiner <hannes@saeurebad.de>
30228
30229 * lisp.h (abs): Define if not defined.
30230 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30231 Don't define `abs', since it's defined in lisp.h.
30232
302332007-09-22 Eli Zaretskii <eliz@gnu.org>
30234
30235 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30236 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30237 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30238 (init_tty): Use DEV_TTY instead of "/dev/tty".
30239 [WINDOWSNT]: No need to protect from NAME arg being null.
30240
302412007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30242
30243 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30244 up the tty state.
30245
302462007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30247
30248 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30249 (gpm_tty): Change its type.
30250 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30251 (gpm_tty): Change its type and initialize it.
30252 (Fterm_open_connection): Check the frame is indeed a tty.
30253 Use the new gpm_tty.
30254 (Fterm_close_connection): Use the new gpm_tty.
30255 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30256 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30257
302582007-09-21 Juanma Barranquero <lekktu@gmail.com>
30259
30260 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30261 underline_color, to draw strike-through.
30262
302632007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30264
30265 * lisp.h (allocate_terminal): Declare.
30266
30267 * window.c (candidate_window_p): Consider frames that are being placed
30268 by the user as somewhere between visible and iconified.
30269 (window_loop): Prefer windows on the current frame.
30270 (Fselect_window): Move the use of select-frame to the beginning so we
30271 can just delegate all the work (it'll call us back anyway).
30272
30273 * frame.c (Qdisplay_environment_variable):
30274 * frame.h (Qdisplay_environment_variable): Delete.
30275
30276 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30277 of the first arg, since that value may be a union.
30278
30279 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30280 parameter rather than Qdisplay_environment_variable. If all else
30281 fails, look for DISPLAY in initial-environment.
30282
302832007-09-21 Glenn Morris <rgm@gnu.org>
30284
30285 * Makefile.in (emacstool): Remove target.
30286 (lisp, shortlisp): Remove termdev.elc.
30287
302882007-09-21 Markus Triska <markus.triska@gmx.at>
30289
30290 * xterm.c (x_delete_display): Compile session management conditionally.
30291
302922007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30293
30294 * callproc.c (getenv_internal_1): New function.
30295 (getenv_internal): Use it.
30296 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30297
30298 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30299 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30300 (Fset_terminal_parameter): Work with dead terminals as well.
30301 (Fmodify_terminal_parameters): Remove.
30302
30303 * terminal.c (get_terminal): Handle terminals.
30304 Make sure the terminal returned is live.
30305 (create_terminal): Use allocate_terminal.
30306 (mark_terminals): Move to alloc.c.
30307 (delete_terminal): Use terminal->name as liveness status.
30308 NULL out fields after freeing their contents.
30309 Don't deallocate the object.
30310 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30311 rather than an int.
30312 (Fterminal_live_p): Accept non-integer arguments.
30313 (Fterminal_list): Return terminal objects rather than an ints.
30314
30315 * alloc.c (enum mem_type): New member for `terminal' objects.
30316 (allocate_terminal): New function.
30317 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30318 Handle terminals.
30319 (mark_terminal): New fun.
30320 (mark_terminals): Move from terminal.c.
30321
30322 * term.c (get_tty_terminal): Don't treat output_initial specially.
30323 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30324 (delete_tty): Use terminal->name as liveness status.
30325
30326 * termhooks.h (struct terminal): Make it into a pseudovector.
30327 Remove `deleted' replaced by checking `name's nullness.
30328
30329 * print.c (print_object): Handle terminals.
30330
30331 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30332 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30333
30334 * frame.c (make_terminal_frame):
30335 * keyboard.c (tty_read_avail_input):
30336 * w32term.c (x_delete_terminal):
30337 * xfns.c (Fx_create_frame, x_create_tip_frame):
30338 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30339
303402007-09-20 Glenn Morris <rgm@gnu.org>
30341
30342 * process.c (Fmake_network_process): Doc fix.
30343
303442007-09-19 Jason Rumney <jasonr@gnu.org>
30345
30346 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30347
303482007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30349
30350 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30351 Fix a C warning regarding variable constness.
30352
30353 * xterm.c (handle_one_xevent): Fix a C warning.
30354
303552007-09-18 Jason Rumney <jasonr@gnu.org>
30356
30357 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30358
303592007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30360
30361 * gtkutil.c (gdpy_def): New variable.
30362 (xg_initialize): Initialize gdpy_def.
30363 (xg_display_close): If no other display exists, set gdpy_def to a
30364 new connection.
30365
303662007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30367
30368 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30369 when we have no file name for the icon.
30370 (xg_tool_bar_expose_callback): Remove.
30371 (xg_create_tool_bar): Don't connect expose signal to
30372 xg_tool_bar_expose_callback.
30373 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30374
303752007-09-16 Andreas Schwab <schwab@suse.de>
30376
30377 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30378 values instead of zapping them.
30379
303802007-09-14 Glenn Morris <rgm@gnu.org>
30381
30382 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30383 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30384 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30385 scope and rename to omfib_buffer for clarity.
30386 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30387
303882007-09-14 Kenichi Handa <handa@m17n.org>
30389
30390 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30391
303922007-09-13 Jason Rumney <jasonr@gnu.org>
30393
30394 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30395
30396 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30397
30398 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30399 (mac_term_init): Call here instead, passing rif.
30400
304012007-09-13 Glenn Morris <rgm@gnu.org>
30402
30403 * s/hpux.h: No longer define `static' as nothing.
30404
304052007-09-13 Johan Bockgård <bojohan@gnu.org>
30406
30407 * callint.c (Fcall_interactively): Remove unused var `fun'.
30408
304092007-09-12 Romain Francoise <romain@orebokech.com>
30410
30411 * window.c (prefer_window_split_horizontally, display_buffer):
30412 Revert 2007-09-08 change.
30413
304142007-09-12 Glenn Morris <rgm@gnu.org>
30415
30416 * alloca.c: Remove file.
30417 * Makefile.in (alloca): Do not undef.
30418 (allocaobj, alloca.o): Remove.
30419 (otherobj): Remove allocaobj.
30420 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30421 * regex.c (C_ALLOCA): Remove all references and code that was only
30422 used when this was defined.
30423 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30424 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30425 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30426
30427 * Makefile.in (SOURCES, unlock, relock): Delete.
30428
30429 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30430 (menu_grab_callback): All uses changed.
30431
30432 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30433 (x_reply_selection_request): All uses changed.
30434
304352007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30436
30437 * lread.c (load_warn_old_style_backquotes): Change message to look
30438 better when it appears in the middle of byte-compiler messages.
30439
304402007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30441
30442 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30443
30444 * xterm.c (x_create_terminal): Add comment.
30445
30446 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30447
304482007-09-10 Richard Stallman <rms@gnu.org>
30449
30450 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30451
304522007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30453
30454 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30455 (DEFUN): Document `intspec', use it instead of `prompt'.
30456
30457 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30458
30459 * data.c (Finteractive_form): If the interactive specification starts
30460 with a `(', use it as a Lisp form.
30461
30462 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30463 name and file modes.
30464
30465 * callint.c (Fcall_interactively): Comment fixes.
30466
304672007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30468
30469 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30470 and compiled functions.
30471
304722007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30473
30474 * window.c (prefer_window_split_horizontally): New variable.
30475 (display_buffer): Consider splitting window horizontally depending
30476 on prefer_window_split_horizontally.
30477
304782007-09-08 Eli Zaretskii <eliz@gnu.org>
30479
30480 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30481
304822007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30483
30484 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30485
30486 * frame.c (x_set_frame_parameters): Check number is positive before
30487 using XFASTINT.
30488
30489 * window.c (freeze_window_start): Don't presume selected_window holds
30490 a window object.
30491 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30492
304932007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30494
30495 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30496
304972007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30498
30499 * window.c (Vsplit_window_preferred_function): New var.
30500 (Fdisplay_buffer): Use it.
30501 (syms_of_window): Export, and initialize it.
30502
305032007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30504
30505 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30506
305072007-09-06 Glenn Morris <rgm@gnu.org>
30508
30509 * gtkutil.c (menu_grab_callback) <cnt>:
30510 * xselect.c (x_reply_selection_request) <cnt>: Move static
30511 variable to file scope.
30512
305132007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30514
30515 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30516 consistent values of selected_frame and selected_window.
30517
305182007-09-04 Jason Rumney <jasonr@gnu.org>
30519
30520 * w32console.c (initialize_w32_display): Zero unused hooks.
30521
305222007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30523
30524 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30525 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30526
305272007-09-04 Jason Rumney <jasonr@gnu.org>
30528
30529 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30530 in w32console.c. Set up input. Remove XXX comments that have been
30531 confirmed as correct.
30532
30533 * s/ms-w32.h (MULTI_KBOARD): Define.
30534
30535 * w32console.c (one_and_only_w32cons): Remove.
30536 (initialize_w32_display): Take terminal argument.
30537
30538 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30539 initialize_w32_display.
30540 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30541
30542 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30543
30544 * keyboard.c (discard_mouse_events): Discard it.
30545 (make_lispy_event): Translate it to a lisp event.
30546 (lispy_wheel_names): Add wheel-left and right events.
30547 (syms_of_keyboard): Enlarge wheel_syms.
30548
30549 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30550 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30551
30552 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30553
30554 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30555 from WM_MOUSEHWHEEL.
30556 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30557
30558 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30559 terminal.
30560
30561 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30562 keyboard for the terminal.
30563
305642007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30565
30566 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30567 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30568 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30569 and resume-tty-function to resume-tty-hook.
30570 (Fsuspend_tty, Fresume_tty): Use new names.
30571
305722007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30573
30574 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30575 if it starts with "n:".
30576
305772007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30578
30579 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30580
305812007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30582
30583 * frame.h:
30584 * frame.c (Qterm_environment_variable): Remove.
30585 (syms_of_frame): Don't init and staticpro it.
30586
30587 * callproc.c (getenv_internal): Remove special case for $TERM.
30588
30589 * callproc.c (Vinitial_environment): New variable.
30590 (set_initial_environment): Initialize it.
30591 (syms_of_callproc): Declare it.
30592 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30593 TERM under which a process runs is never related to the TERM in which
30594 Emacs is running.
30595
305962007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30597
30598 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30599 * s/darwin.h: ... do it here.
30600
306012007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30602
30603 * lisp.h (set_initial_environment): Rename from set_global_environment.
30604
30605 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30606 removed by mistake on the multi-tty branch.
30607
30608 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30609 (Fmodify_frame_parameters): Return a value.
30610
30611 * image.c (png_load): Comment-out var only used in commented-out code.
30612
30613 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30614 before passing it to mark_object.
30615
30616 * xfaces.c (internal_resolve_face_name): Return a value.
30617 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30618
30619 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30620 (x_icon): Comment-out var only used in commented-out code.
30621
306222007-08-29 Romain Francoise <romain@orebokech.com>
30623
30624 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30625 QUIT hasn't been provided.
30626
306272007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30628
30629 * callproc.c (child_setup, getenv_internal): Use the
30630 display-environment-variable and term-environment-variable frame params.
30631 (set_initial_environment): Initialise Vprocess_environment.
30632
30633 * config.in: Disable multi-keyboard support on a mac.
30634
30635 * frame.c (Qterm_environment_variable)
30636 (Qdisplay_environment_variable): New variables.
30637 (syms_of_frame): Intern and staticpro them.
30638 (Fmake_terminal_frame): Disable output method test.
30639
30640 * frame.h: Declare them here.
30641
30642 * macfns.c (x_set_mouse_color): Get rif from the frame.
30643 (x_set_tool_bar_lines): Don't use updating_frame.
30644 (mac_window): Add 2 new parameters for consistency with other systems.
30645 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30646 frame parameters following what is done in X11 and w32. Don't use
30647 FRAME_MAC_DISPLAY_INFO.
30648 (Fx_open_connection, start_hourglass): Remove window-system check.
30649 (x_create_tip_frame): Get the keyboard from the terminal.
30650
30651 * macmenu.c: Reorder includes.
30652 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30653
30654 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30655 terminal parameter.
30656 (x_clear_frame): Add a frame parameter.
30657 (note_mouse_movement): Get rif from the frame.
30658 (mac_term_init): Initialize the terminal.
30659 (mac_initialize): Make static and move terminal initialization ...
30660 (mac_create_terminal): ... to this new function.
30661
30662 * macterm.h (struct mac_display_info): Add terminal.
30663 (mac_initialize): Delete declaration.
30664
30665 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30666
30667 * sysdep.c: Comment out text after #endif.
30668
30669 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30670 is defined. Better initialize ttys in windows. Use terminal
30671 specific mouse_position_hook.
30672
30673 * termhooks.h (union display_info): Add mac_display_info.
30674
30675 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30676 Set the default minibuffer frame, window_system and the rest of the
30677 frame parameters following what is done in X11.
30678
30679 * w32term.c (w32_initialize): Make static.
30680
30681 * xselect.c (x_handle_selection_clear): Only access
30682 terminal->kboard when MULTI_KBOARD is defined.
30683
30684 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30685 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30686
306872007-08-29 Jason Rumney <jasonr@gnu.org>
30688
30689 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30690 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30691
30692 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30693 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30694
30695 * keyboard.c (restore_kboard_configuration): Only define when
30696 MULTI_KBOARD defined.
30697
30698 * makefile.w32-in: Update dependancies from Makefile.in.
30699 (OBJ1): Add terminal.$(O)
30700
30701 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30702 Don't define function body.
30703 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30704
30705 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30706
30707 * w32.c (request_sigio, unrequest_sigio): Remove.
30708
30709 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30710 (w32con_clear_frame, w32con_clear_end_of_line)
30711 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30712 (w32con_delete_glyphs, w32con_set_terminal_window)
30713 (scroll_line, w32_sys_ring_bell): Add frame arg.
30714 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30715 Add terminal arg.
30716 (PICK_FRAME): Remove.
30717 (w32con_write_glyphs): Use frame specific terminal coding.
30718 (one_and_only_w32cons): New global variable.
30719 (initialize_w32_display): Use it for storing hooks.
30720 (create_w32cons_output): New function.
30721
30722 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30723 arg a frame.
30724
30725 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30726 Set window_system.
30727 (x_set_tool_bar_lines): Don't use updating_frame.
30728 (Fx_create_frame): Set terminal and ref count.
30729 (Fx_open_connection): Remove window-system check.
30730
30731 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30732
30733 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30734 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30735 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30736 Add frame arg.
30737 (x_delete_terminal, w32_create_terminal): New functions.
30738 (w32_term_init): Create a terminal.
30739 (w32_initialize): Move terminal specific initialization to
30740 w32_create_terminal.
30741
30742 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30743 (w32_clear_rect, w32_clear_area): Use background from frame.
30744 (w32_display_info): Add terminal.
30745 (w32_sys_ring_bell, x_delete_display): Declare here.
30746
30747 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30748
30749 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30750
307512007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30752
30753 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30754 Fix get_named_tty calls for the controlling tty.
30755
307562007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30757
194d44e7 30758 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
30759
307602007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30761
30762 * term.c (tty_insert_glyphs): Add missing first parameter.
30763
307642007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30765
30766 * buffer.c (Fbuffer_list, Fbury_buffer):
30767 Take frame->buried_buffer_list into account.
30768
30769 * cm.c (current_tty): New variable, for cmputc().
30770 (cmputc): Use it.
30771 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30772 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30773 (cmgoto): Add tty parameter. Pass it on to calccost().
30774 Use emacs_tputs() instead of tputs().
30775
30776 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30777 tputs().
30778 (current_tty): New variable, for cmputc().
30779 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30780
30781 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30782 (internal_condition_case, internal_condition_case_1)
30783 (internal_condition_case_2): Don't abort when x_catching_errors.
30784
30785 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30786 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30787 prevent crashes caused by bogus longjmps in read_char.
30788
30789 * keymap.h (Fset_keymap_parent): Add EXFUN.
30790
30791 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30792 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30793 Remove redundant definition.
30794
30795 * macfns.c (x_set_mouse_color, x_make_gc):
30796 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30797
30798 * w32term.c (x_free_frame_resources):
30799 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30800 (w32_initialize): Use the accessor macros for terminal characteristics.
30801
30802 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30803 Use the accessor macros for terminal characteristics.
30804 * msdos.c (internal_terminal_init): Use the accessor macros for
30805 terminal characteristics.
30806 (ScreenVisualBell, internal_terminal_init):
30807 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30808
30809 * termopts.h (no_redraw_on_reenter): Declare.
30810
30811 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30812 (mark_terminals, mark_ttys): Declare.
30813 (Fgarbage_collect): Call them.
30814 (mark_object): Mark buried_buffer_list.
30815
30816 * prefix-args.c: Include stdlib.h for exit.
30817
30818 * syssignal.h: Add comment.
30819
30820 * indent.c: Include stdio.h.
30821
30822 * window.h (Vinitial_window_system): Declare.
30823 (Vwindow_system): Delete declaration.
30824
30825 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30826
30827 * image.c (lookup_image): Don't initialize `c' until the xasserts
30828 have been run.
30829
30830 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30831 FRAME_FOREGROUND_PIXEL.
30832
30833 * print.c (print_preprocess): Don't lose print_depth levels while
30834 iterating.
30835
30836 * widget.c (update_from_various_frame_slots):
30837 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30838
30839 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30840 frames.
30841 (window_internal_height): Remove bogus make_number call.
30842 (init_window_once): Call make_terminal_frame with two zero parameters.
30843
30844 * fileio.c (Fread_file_name): Update comment.
30845
30846 * callint.c (Fcall_interactively):
30847 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30848 Make sure it is correctly unwound.
30849
30850 * xsmfns.c (x_session_close): New function.
30851
30852 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30853 Delete declarations.
30854
30855 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30856 (x_output): Remove background_pixel and foreground_pixel fields.
30857 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30858 (x_delete_device, x_session_close): Declare.
30859
30860 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30861 (read_filtered_event): Call `read_char' with a local
30862 `wrong_kboard_jmpbuf'.
30863
30864 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30865 Don't call single_kboard_state. Use FRAME_RIF.
30866
30867 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30868 systems.
30869
30870 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30871 (Fframe_with_environment, Fset_input_meta_mode)
30872 (Fset_quit_char): EXFUN.
30873 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30874 (init_sys_modes, reset_sys_modes): Update prototypes.
30875 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30876
30877 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30878 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30879 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30880 Delete declarations.
30881 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30882 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30883 New declarations.
30884
30885 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30886 already does that during init_display(). Call syms_of_keymap
30887 before syms_of_keyboard. Call `syms_of_terminal'.
30888 Call set_initial_environment, not set_process_environment.
30889 (shut_down_emacs): Call reset_all_sys_modes() instead of
30890 reset_sys_modes().
30891
30892 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30893 (internal_resolve_face_name, resolve_face_name_error): New functions.
30894 (resolve_face_name): Protect against loops and errors thrown by Fget.
30895 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30896 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30897
30898 * scroll.c: Replace CURTTY() with local variables throughout the
30899 file (where applicable).
30900 (calculate_scrolling, calculate_direct_scrolling)
30901 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30902 characteristics.
30903
30904 * keymap.c (Vfunction_key_map): Remove.
30905 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30906 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30907 (Vkey_translation_map): Remove.
30908 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30909 (Fdescribe_buffer_bindings)
30910 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30911 Update for terminal-local key-translation-map.
30912
30913 * Makefile.in (callproc.o): Update dependencies.
30914 (lisp, shortlisp): Add termdev.elc.
30915 (obj): Add terminal.o.
30916 (terminal.o): Add dependencies.
30917 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30918 (data.o, fns.o): Add termhooks.h dependency.
30919 (SOME_MACHINE_LISP): Add dnd.elc.
30920 (minibuf.o): Fix typo.
30921 Update dependencies.
30922
30923 * data.c (do_symval_forwarding, store_symval_forwarding)
30924 (find_symbol_value): Use the selected frame's keyboard, not
30925 current_kboard.
30926
30927 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30928 Vwindow_system.
30929
30930 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30931 Fmenu_bar_open.
30932 (syms_of_xmenu): Update defsubr.
30933 (mouse_position_for_popup, Fx_popup_menu)
30934 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30935 (set_frame_menubar, free_frame_menubar)
b97439ce 30936 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
30937 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30938 an X frame.
30939
30940 * xselect.c (x_own_selection): Abort if not an X frame.
30941 (some_frame_on_display): Check if it is an X frame.
30942 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30943
30944 * coding.c: Include frame.h and termhooks.h.
30945 (terminal_coding, keyboard_coding): Delete.
30946 (Fset_terminal_coding_system_internal)
30947 (Fset_keyboard_coding_system_internal)
30948 (Fkeyboard_coding_system)
30949 (Fterminal_coding_system): Add a terminal parameter.
30950 Get terminal_coding from the terminal.
30951 (init_coding_once): Don't call setup_coding_system here.
30952
30953 * dispextern.h (set_scroll_region, turn_off_insert)
30954 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30955 (tty_clear_end_of_line, tty_setup_colors)
30956 (delete_tty, updating_frame)
30957 (produce_special_glyphs, produce_glyphs, write_glyphs)
30958 (insert_glyphs): Remove.
30959 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30960 (tty_turn_off_highlight, get_tty_size): Add declaration.
30961 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30962
30963 * frame.h (enum output_method): Add output_initial.
30964 (struct x_output): Delete.
30965 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30966 Access foreground_pixel and background_pixel directly from the frame.
30967 (tty_display): Delete.
30968 (struct frame): Add buried_buffer_list, foreground_pixel,
30969 background_pixel and terminal. Delete kboard.
30970 (union output_data): Add tty.
30971 (FRAME_KBOARD): Get the kboard from the terminal.
30972 (FRAME_INITIAL_P): New macro.
30973 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30974 (Qterm_environment_variable, Qdisplay_environment_variable)
30975 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30976 New declarations.
30977
30978 * termchar.h (tty_output, tty_display_info): New structures.
30979 (tty_list): Declare.
30980 (FRAME_TTY, CURTTY): New macros.
30981 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30982 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30983 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30984 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30985
30986 * callproc.c: Include frame.h and termhooks.h, for terminal
30987 parameters.
30988 (add_env): New function.
30989 (child_setup): Use it.
30990 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30991 (getenv_internal): Fix get_terminal_param call.
30992 (Fgetenv_internal, egetenv): Update doc.
30993 (syms_of_callproc): Initialize Vprocess_environment to nil.
30994 Register and initialize them. Remove obsolete defvars. Update doc
30995 strings.
30996 (child_setup): Handle Vlocal_environment_variables.
30997 (getenv_internal): Add terminal parameter.
30998 Handle Vlocal_environment_variables.
30999 (Fgetenv_internal): Add terminal parameter.
31000 (child_setup, getenv_internal, Fgetenv_internal): Store the local
31001 environment in a frame (not terminal) parameter. Update doc strings.
31002 (set_initial_environment): Rename from set_global_environment.
31003 Store Emacs environment in initial frame parameter.
31004
31005 * xdisp.c (redisplay_internal): Update references to
31006 `previous_terminal_frame'.
31007 (display_mode_line, Fformat_mode_line): Replace calls to
31008 `push_frame_kboard' with `push_kboard'.
31009 (get_glyph_string_clip_rects): Add extra parentheses and
31010 braces to prevent compiler warnings.
31011 (calc_pixel_width_or_height): Add xassert to check that the
31012 frame is alive. Don't call `lookup_image' on a termcap frame.
31013 (message2_nolog, message3_nolog, redisplay_internal)
31014 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
31015 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
31016 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
31017 (Fx_display_pixel_width, Fx_display_pixel_height)
31018 (Fx_display_planes, Fx_display_color_cells)
31019 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
31020 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
31021 (Fx_display_backing_store, Fx_display_visual_class)
31022 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
31023 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
31024
31025 * xfns.c (x_set_foreground_color x_set_background_color)
31026 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
31027 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31028 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
31029 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
31030 terminal that is being deleted.
31031 (Fx_create_frame): Use `store_frame_param' to set `window-system'
31032 frame parameter, and make sure it overrides any user-supplied setting.
31033 (Fx_close_connection, Fx_synchronize): Unify argument names with
31034 the rest of the DEFUNs.
31035
31036 * dispnew.c (Fsend_string_to_terminal): Update call to
31037 `get_tty_terminal'.
31038 (Fredraw_frame, Fsend_string_to_terminal)
31039 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
31040 FRAME_TERMCAP_P and FRAME_TTY.
31041 (window_change_signal): Don't believe width/height values that are
31042 impossibly small.
31043 (Vinitial_window_system): Rename from Vwindow_system.
31044 (termscript, Wcm, rif): Delete.
31045
31046 * termhooks.h (struct terminal): New struct containing the
31047 previously global text display hooks and new members NAME,
31048 DELETED and PARAM_ALIST.
31049 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
31050 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
31051 (FRAME_RIF): New macros.
31052 (get_terminal_param, get_device): New declarations.
31053 (termscript): Delete declaration.
31054
31055 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
31056 (XTflash, x_free_frame_resources, x_scroll_bar_create)
31057 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
31058 FRAME_FOREGROUND_PIXEL.
31059 (x_fully_uncatch_errors): Disable definition.
31060 (x_scroll_bar_expose): Fix reference to foreground pixel.
31061 (XTread_socket): Disable loop on all X displays.
31062 (x_delete_terminal): Don't set terminal->deleted and let
31063 delete_terminal delete the frames on the terminal.
31064 (x_delete_display): Doc update to reflect changes in
31065 delete_terminal.
31066 (x_display_info) <terminal>: Move member earlier in the struct.
31067 (deleting_tty): Remove old variable.
31068 (Fsuspend_tty): Call clear_tty_hooks.
31069 (Fresume_tty, init_tty): Call set_tty_hooks.
31070 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
31071 errors on X frames.
31072 (x_catch_errors_unwind): Abort if x_error_message is NULL.
31073 (handle_one_xevent): Initialize `f' to NULL.
31074 (x_delete_terminal, x_create_terminal): New functions.
31075 (XTset_terminal_modes, XTreset_terminal_modes)
31076 (XTread_socket, x_connection_closed, x_term_init)
31077 (x_term_init, x_delete_display): Add terminal parameter.
31078 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
31079 X connections.
31080
31081 * frame.c: Include termchar.h.
31082 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
31083 (Qwindow_system, Qenvironment, Qterm_environment_variable)
31084 (Qdisplay_environment_variable): New vars.
31085 (Fframep): Deal with output_initial.
31086 (Fframe-live-p): Doc fix.
31087 (Fwindow-system): New function.
31088 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
31089 (make_terminal_frame): Don't create frames on a terminal that is
31090 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
31091 (store_frame_param): Check for found_for_frame before calling XFRAME.
31092 (Fmake_terminal_frame): Handle NULL tty names correctly.
31093 (syms_of_frame): Enhance doc string of `default-frame-alist'.
31094 (Fdelete_frame): Remove unused variable `count'. Don't allow other
31095 frames to refer to a deleted frame in their 'environment parameter.
31096 (Fframe_with_environment): New function.
31097 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
31098 (get_future_frame_param): New function.
31099 (Fmake_terminal_frame): Use it.
31100 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
31101
31102 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
31103 * sysdep.c (reset_sys_modes): Update for renames.
31104
31105 * keyboard.c (tty_read_avail_input): New function.
31106 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
31107 (syms_of_keyboard): Defsubr them.
31108 (Fset_input_meta_mode, Fset_quit_char): New functions.
31109 (Fset_input_mode): Split to above functions.
31110 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
31111 parameter. Use it in call to `read_char'.
31112 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
31113 Set wrong_kboard_jmpbuf correctly in recursive calls.
31114 Use current_kboard to access Vkeyboard_translate_table.
31115 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
31116 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
31117 Update longjmp invocations. Remember the original current_kboard,
31118 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
31119 changes it. Comment out unnecessary calls to
31120 `record_single_kboard_state' and `any_kboard_state'.
31121 Update recursive calls.
31122 (wrong_kboard_jmpbuf): Remove global variable.
31123 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
31124 Handle deleted interrupted_kboards correctly; that is a legal
31125 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
31126 and read_char calls. Abort if interrupted_kboard died in read_char.
31127 (any_kboard_state, single_kboard_state)
31128 (push_frame_kboard): Remove function.
31129 (pop_kboard): Switch out of single_kboard mode if the kboard has
31130 been deleted. Remove unused variable. Help debugging by not
31131 changing current_kboard unnecessarily. Set current_kboard to the
31132 kboard of the selected frame when the stored kboard object has
31133 been deleted before pop_kboard.
31134 (temporarily_switch_to_single_kboard): Change first parameter to a
31135 frame pointer. Throw an error when caller wants to change kboards
31136 while in single_kboard mode. Don't push_kboard if we weren't in
31137 single kboard state. Don't pop_kboard if we popped into any
31138 kboard state.
31139 (restore_kboard_configuration): Abort if pop_kboard changed the
31140 kboard in single_kboard mode. Call pop_kboard only after setting
31141 up single_kboard mode.
31142 (Frecursive_edit): Switch to single_kboard mode only in nested
31143 command loops.
31144 (cmd_error, command_loop, command_loop_1, timer_check):
31145 Comment out unnecessary call to `any_kboard_state' and
31146 `record_single_kboard_state'.
31147 (delete_kboard): Exit single_kboard mode if we have just deleted
31148 that kboard. Use FRAME_KBOARD.
31149 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
31150 `fatal_error_signal'.
31151 (record_single_kboard_state): Don't push_kboard if we weren't in
31152 single kboard state. Don't pop_kboard if we popped into any
31153 kboard state.
31154 (push_frame_kboard): Rename to push_kboard.
31155 (kbd_buffer_get_event): Use FRAME_TERMINAL.
31156 (read_avail_input): Read input from all terminals.
31157 (mark_kboards): Also mark Vkeyboard_translate_table.
31158 (kbd_buffer_store_event_hold): Simplify condition.
31159 (read_key_sequence): Reinitialize fkey and keytran at each replay.
31160 (Vkeyboard_translate_table): Move to struct kboard.
31161 (init_kboard): Initialize Vkeyboard_translate_table.
31162 (syms_of_keyboard): Use DEFVAR_KBOARD to define
31163 Vkeyboard_translate_table. Update doc strings. Update docs of
31164 local-function-key-map and function-key-map.
31165
31166 * terminal.c: New file.
31167
31168 * term.c: Include errno.h.
31169 (Vring_bell_function, device_list, initial_device)
31170 (next_device_id, ring_bell, update_begin, update_end)
31171 (set_terminal_window, cursor_to, raw_cursor_to)
31172 (clear_to_end, clear_frame, clear_end_of_line)
31173 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
31174 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
31175 (syms_of_term): Move their initialization to terminal.c.
31176 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
31177 (Ftty_display_color_cells)
31178 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
31179 (clear_tty_hooks, set_tty_hooks)
31180 (init_tty, maybe_fatal): New functions.
31181 (Ftty_type): Return nil if terminal is not on a tty instead of
31182 throwing an error. Doc update.
31183 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
31184 Doc update. Initialize new subrs and variables.
31185 (delete_tty): Use terminal->deleted.
31186 (tty_set_terminal_modes): Rename from set_terminal_modes.
31187 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
31188 (set_scroll_region): Rename to `tty_set_scroll_region'.
31189 (turn_on_insert): Rename to `tty_turn_on_insert'.
31190 (turn_off_insert): Rename to `tty_turn_off_insert'.
31191 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
31192 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
31193 (toggle_highligh): Rename to `tty_toggle_highlight'.
31194 (background_highlight): Rename to `tty_background_highlight'.
31195 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
31196 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
31197 (tty_set_scroll_region, tty_background_highlight)
31198 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
31199 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
31200 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
31201 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
31202 Add static modifier.
31203 (tty_reset_terminal_modes, tty_set_terminal_window)
31204 (tty_set_scroll_region, tty_background_highlight)
31205 (tty_highlight_if_desired, tty_cursor_to)
31206 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
31207 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
31208 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
31209 renames.
31210
312112007-08-28 Jan Djärv <jan.h.d@swipnet.se>
31212
31213 * keyboard.c: Qrtl is new.
31214 (parse_tool_bar_item): Handle :rtl keyword.
31215 (syms_of_keyboard): Intern :rtl keyword.
31216
31217 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31218
31219 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31220 so no Lisp code is executed.
31221 (file_for_image, find_rtl_image): New functions.
31222 (xg_get_image_for_pixmap): Use file_for_image.
31223 (update_frame_tool_bar): If direction is RTL, use RTL image if
31224 defined. Use Gtk stock images if defined.
31225
312262007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31227
31228 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31229 for nonexistent or zero-width glyph in composition glyph.
31230
312312007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31232
31233 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31234
31235 * xdisp.c (Finvisible_p): New function.
31236 (syms_of_xdisp): defsubr it.
31237
312382007-08-24 Juanma Barranquero <lekktu@gmail.com>
31239
31240 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31241 Doc fixes.
31242
312432007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31244
31245 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31246
312472007-08-24 Martin Rudalics <rudalics@gmx.at>
31248
31249 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31250 whether decoding has modified buffer contents.
31251
312522007-08-24 Jason Rumney <jasonr@gnu.org>
31253
31254 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31255 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31256 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31257 (init_svg_functions) [HAVE_NTGUI]: New function.
31258 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31259 (svg_load_image): Use them.
31260 (svg_load_image) [HAVE_NTGUI]: Implement background.
31261
312622007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31263
31264 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31265 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31266 (LIBX): Remove @RSVG_LIBS@.
31267 (LIBES): Add $(RSVG_LIBS).
31268
31269 * image.c (svg_load_image): Blend with specified background if exists.
31270 Use IMAGE_BACKGROUND. Add Mac OS Support.
31271
31272 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31273 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31274 Remove macros.
31275 [MAC_OSX] (socket_callback): Do nothing.
31276 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31277 ReceiveNextEvent.
31278 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31279 socket_callback.
31280 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31281
312822007-08-22 Glenn Morris <rgm@gnu.org>
31283
31284 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31285
312862007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31287
31288 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31289
31290 * image.c: Add support for SVG images. Some additional comments
31291 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31292 (svg_image_p): New function to test for SVG image.
31293 (svg_load): New function to load SVG image.
31294 (svg_load_image): New function, helper for svg_load.
31295 (Qsvg): New Lisp_object.
31296 (svg_keyword_index): New enum.
31297 (svg_format): New static `image_keyword' struct.
31298 (svg_type): New static `image_type' struct.
31299 (librsvg/rsvg.h): Include it.
31300
313012007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31302
31303 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31304
313052007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31306
31307 * lread.c (Qold_style_backquotes): New var.
31308 (syms_of_lread): Init and staticpro it.
31309 (load_warn_old_style_backquotes): New fun.
31310 (Fload): Use them to warn about old style backquotes.
31311 (end_of_file_error, Fload): Remove unused vars.
31312
31313 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31314
31315 * lread.c (Vold_style_backquotes): New var.
31316 (syms_of_lread): Init and export it to Elisp.
31317 (read1): Set it when we find an old-style (back)quote.
31318
313192007-08-22 Jason Rumney <jasonr@gnu.org>
31320
31321 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31322
313232007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31324
31325 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31326
313272007-08-19 Richard Stallman <rms@gnu.org>
31328
31329 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31330
313312007-08-19 Andreas Schwab <schwab@suse.de>
31332
31333 * alloc.c (pure): Round PURESIZE up.
31334
313352007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31336
31337 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31338 active frame.
31339
313402007-08-16 Richard Stallman <rms@gnu.org>
31341
31342 * eval.c (Fcommandp): Add parens to clarify.
31343
31344 * minibuf.c (Fall_completions): Use enum for type of table.
31345
31346 * emacs.c (USAGE2): Improve text.
31347
313482007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31349
31350 * term.c (tty_default_color_capabilities): Declare static
31351 variables in file scope, to avoid HPUX compiler problem.
31352
313532007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31354
31355 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31356 to gtk_toolbar_insert.
31357
313582007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31359
31360 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31361
31362 * insdel.c (reset_var_on_error): New fun.
31363 (signal_before_change, signal_after_change):
31364 Use it to reset (after|before)-change-functions to nil in case of error.
31365 Bind inhibit-modification-hooks to t.
31366 Don't bind (after|before)-change-functions to nil while they run.
31367
313682007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31369
31370 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31371 filling pixmap with stippled background.
31372
313732007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31374
31375 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31376 Don't use invisible frame as parent window for repositioning.
31377
313782007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31379
31380 * print.c (new_backquote_output): Rename from old_backquote_output.
31381 (print): Inverse its logic (according to its name) so as to match the
31382 behavior of new_backquote_flag in lread.c.
31383
313842007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31385
31386 * gmalloc.c (posix_memalign): New function.
31387
31388 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31389 ActivateControl/DeactivateControl here.
31390 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31391 frame-notice-user-settings is non-nil.
31392 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31393 for kEventParamFMFontStyle.
31394 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31395 mac_pass_command_to_system and mac_pass_control_to_system here.
31396 (XTread_socket): Call ActivateControl/DeactivateControl here.
31397 (XTread_socket) [TARGET_API_MAC_CARBON]:
31398 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31399 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31400 for window repositioning.
31401
314022007-08-08 Glenn Morris <rgm@gnu.org>
31403
31404 * Replace `iff' in doc-strings and comments.
31405
314062007-08-07 Chong Yidong <cyd@stupidchicken.com>
31407
31408 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31409
314102007-08-07 Martin Rudalics <rudalics@gmx.at>
31411
31412 * fileio.c (Finsert_file_contents): Run format-decode and
31413 after_insert_file_functions on entire buffer when REPLACE is
31414 non-nil and inhibit modification_hooks and point_motion_hooks.
31415 For consistency, run after_insert_file_functions iff something
31416 got inserted. Move signal_after_change and update_compositions
31417 after code running after_insert_file_functions. Make sure that
31418 undo_list doesn't record intermediate steps of the decoding process.
31419
314202007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31421
31422 * emacs.c (main)
31423 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31424 Call malloc_enable_thread on interactive startup.
31425
31426 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31427 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31428 [USE_PTHREAD]: Conditionalize with it.
31429 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31430 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31431 New functions.
31432
314332007-08-06 Chong Yidong <cyd@stupidchicken.com>
31434
31435 * xdisp.c (redisplay_window): When restoring original buffer
31436 position, make sure it is still valid.
31437
31438 * image.c (png_load): Ignore png-supplied background color.
31439
314402007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31441
31442 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31443 Use kCFAbsoluteTimeIntervalSince1970.
31444
31445 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31446 New variable.
31447 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31448 event loop should be quit.
31449 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31450 Quit dialog event loop if quit_dialog_event_loop is set.
31451
31452 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31453 (Selection): New typedef. Use instead of ScrapRef.
31454 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31455 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31456 (mac_clear_selection): Rename from clear_scrap.
31457 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31458 scrap_has_target_type. All uses changed.
31459 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31460 (mac_selection_has_target_p): New functions.
31461 (mac_put_selection_value): Rename from put_scrap_string.
31462 (mac_get_selection_value): Rename from get_scrap_string.
31463 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31464 (put_scrap_private_timestamp, scrap_has_target_type)
31465 (get_scrap_private_timestamp): Remove functions.
31466 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31467 (x_own_selection, x_get_local_selection):
31468 Use mac_valid_selection_value_p.
31469 (x_own_selection): Don't use put_scrap_private_timestamp.
31470 Record OWNERSHIP-INFO into Vselection_alist instead.
31471 (x_get_local_selection): Don't check type if request is local.
31472 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31473 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31474
314752007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31476
31477 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31478 add comment explaining why.
31479
314802007-08-03 Richard Stallman <rms@gnu.org>
31481
31482 * fileio.c (Fvisited_file_modtime): Use make_time.
31483
314842007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31485
31486 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31487 build.
31488
314892007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31490
31491 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31492
314932007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31494
31495 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31496
314972007-07-30 Richard Stallman <rms@gnu.org>
31498
31499 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31500
315012007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31502
31503 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31504
315052007-07-28 Nick Roberts <nickrob@snap.net.nz>
31506
31507 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31508 remote default-directory.
31509
31510 * buffer.c (mode-line-format): Update doc string.
31511
315122007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31513
31514 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31515 scroll bar gap.
31516 (x_scroll_bar_create): Set bar->fringe_extended_p.
31517 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31518 on frame edge. Check fringe background extension. Don't clear
31519 extended fringe background area.
31520
31521 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31522 (w32_fill_area): Enclose multiple statements with do ... while (0).
31523
31524 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31525 Extend fringe background to scroll bar gap.
31526 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31527 Set bar->fringe_extended_p.
31528 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31529 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31530 background extension. Don't clear extended fringe background area.
31531
31532 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31533 New member fringe_extended_p.
31534
315352007-07-25 Glenn Morris <rgm@gnu.org>
31536
31537 * Relicense all FSF files to GPLv3 or later.
31538
31539 * COPYING: Switch to GPLv3.
31540
315412007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31542
31543 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31544
31545 * data.c (Finteractive_form): Check for the presence of an
31546 `interactive-form' symbol property more thoroughly.
31547
31548 * data.c (Finteractive_form): Use an `interactive-form' property if
31549 present, analogous to the function-documentation property.
31550
315512007-07-24 Jason Rumney <jasonr@gnu.org>
31552
31553 * w32fns.c (x_real_positions): Get real position from OS instead of
31554 calculating it.
31555
315562007-07-23 Jason Rumney <jasonr@gnu.org>
31557
31558 * filelock.c (current_lock_owner): Allow for @ sign in username.
31559
315602007-07-22 Nick Roberts <nickrob@snap.net.nz>
31561
31562 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31563 remote default-directory.
31564
31565 * buffer.c (mode-line-format): Describe above case in doc string.
31566
315672007-07-20 Eli Zaretskii <eliz@gnu.org>
31568
31569 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31570 Define if not defined.
31571
315722007-07-18 Jason Rumney <jasonr@gnu.org>
31573
31574 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31575
315762007-07-18 Richard Stallman <rms@gnu.org>
31577
31578 * data.c (Fsetq_default): Doc fix.
31579
31580 * eval.c (Fsetq): Doc fix.
31581
315822007-07-18 Juanma Barranquero <lekktu@gmail.com>
31583
31584 * coding.c (Ffind_operation_coding_system):
31585 * eval.c (For, Fand): Doc fixes.
31586 Reported by Johan Bockgård.
31587
315882007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31589
31590 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31591
31592 * xterm.h: Declare x_ewmh_activate_frame.
31593
31594 * xterm.c (x_ewmh_activate_frame): New function.
31595 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31596
315972007-07-17 Martin Rudalics <rudalics@gmx.at>
31598
31599 * window.c (Fdisplay_buffer): If largest or LRU window is the
31600 only window, split it even if it is not eligible for splitting.
31601 This restores the original behavior broken by the 2007-07-15
31602 change.
31603
316042007-07-17 Glenn Morris <rgm@gnu.org>
31605
31606 * abbrev.c (abbrev_check_chars): New function.
31607 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31608 Call abbrev_check_chars to check abbrev characters are word
31609 constituents. Doc fix.
31610
316112007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31612
31613 * process.c (Fstart_process, Fmake_network_process)
31614 (read_process_output): Fix up last changes.
31615
316162007-07-16 Eli Zaretskii <eliz@gnu.org>
31617
31618 * makefile.w32-in (clean): Don't delete *~.
31619
316202007-07-16 Andreas Schwab <schwab@suse.de>
31621
31622 * window.c (Fdisplay_buffer): Use NILP.
31623 (Fset_window_scroll_bars): Likewise.
31624
316252007-07-15 Martin Rudalics <rudalics@gmx.at>
31626
31627 * window.c (window_min_size_2): New function.
31628 (window_min_size_1, size_window, Fdisplay_buffer)
31629 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31630 windows without mode- or header-lines when window-min-height is
31631 too small.
31632 (size_window): Reset nodelete_p after testing it, following an
31633 earlier note by Kim F. Storm.
31634 (display_buffer): Do not set split_height_threshold to twice the
31635 value of window_min_height to avoid changing the value of a
31636 customizable variable. Rather explicitly check whether the
31637 height of the window that shall be splitted is at least as large
31638 as split_height_threshold.
31639 (Fwindow_full_width_p): New defun.
31640 (syms_of_window): Defsubr it.
31641
31642 * window.h: Add EXFUN for Fwindow_full_width_p.
31643
316442007-07-14 Jason Rumney <jasonr@gnu.org>
31645
31646 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31647
316482007-07-14 Richard Stallman <rms@gnu.org>
31649
31650 * eval.c (maybe_call_debugger): New function.
31651 (find_handler_clause): Use maybe_call_debugger.
31652 Call it when the handler says `debug'.
31653 Eliminate DEBUGGER_VALUE_PTR.
31654 (Fsignal): Eliminate debugger_value.
31655 (Qdebug): New variable.
31656 (syms_of_eval): Initialize it.
31657
316582007-07-14 Juanma Barranquero <lekktu@gmail.com>
31659
31660 * eval.c (Fprogn):
31661 * keyboard.c (Ftrack_mouse):
31662 * print.c (Fwith_output_to_temp_buffer):
31663 * window.c (Fsave_window_excursion): Doc fix.
31664
316652007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31666
31667 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31668
316692007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31670
31671 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31672 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31673 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31674 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31675 Remove unused encoding_carryover.
31676 * process.c: Adjust all functions accordingly.
31677
316782007-07-12 Richard Stallman <rms@gnu.org>
31679
31680 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31681
316822007-07-11 Jason Rumney <jasonr@gnu.org>
31683
31684 * makefile.w32-in (LIBS): Include OLE32.
31685
31686 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31687 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31688
316892007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31690
31691 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31692 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31693 from a Lisp_Object into a bare pointer.
31694 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31695 Adjust the code correspondingly.
31696
31697 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31698
31699 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31700 (term_show_mouse_face): Remove unused var `j'.
31701 (handle_one_term_event): Remove unused vars `i' and `j'.
31702 Don't cast return value of ttyname since it's not necessary.
31703
317042007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31705
31706 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31707 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31708
31709 * fns.c (map_char_table): Use an array of int for `indices' rather than
31710 an array of Lisp_Objects (which are only ever integers anyway).
31711 (Fmap_char_table): Update caller.
31712 * lisp.h: Update prototype.
31713 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31714 * fontset.c (Ffontset_info):
31715 * casetab.c (set_case_table): Update callers.
31716
31717 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31718
31719 * keymap.c (struct accessible_keymaps_data)
31720 (struct where_is_internal_data): New structures.
31721 (accessible_keymaps_1, where_is_internal_1): Use them to change
31722 interface to adhere to the one used by map_keymap.
31723 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31724 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31725
31726 * keymap.h (map_keymap_function_t): More informative prototype.
31727
317282007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31729
31730 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31731 (looking_at_1): Don't change search_regs and last_thing_searched
31732 if `inhibit-changing-match-data' is non-nil.
31733 (string_match_1, search_buffer, set_search_regs): Likewise.
31734 (syms_of_search): Add Lisp level definition for
31735 `inhibit-changing-match-data' and set it to nil.
31736 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31737 start and end of the match, instead of using values in search_regs.
31738
317392007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31740
31741 * minibuf.c (Fcompleting_read): New value `confirm-only'
31742 for `require-match'.
31743
317442007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31745
31746 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31747 part of the 2007-06-27 change to syms_of_fileio.
31748
317492007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31750
31751 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31752 Check WINDOWP before using XWINDOW. Consolidate return statements.
31753
317542007-06-27 Richard Stallman <rms@gnu.org>
31755
31756 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31757
317582007-06-27 Juanma Barranquero <lekktu@gmail.com>
31759
31760 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31761
317622007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31763
31764 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31765 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31766 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31767 (_free_internal, memalign): Use them.
31768 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31769 Initialize to PTHREAD_MUTEX_INITIALIZER.
31770 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31771 (morecore_nolock): Rename from morecore. All uses changed.
31772 Use only nolock versions of internal allocation functions.
31773 (_malloc_internal_nolock, _realloc_internal_nolock)
31774 (_free_internal_nolock): New functions created from
31775 _malloc_internal, _realloc_internal, and _free_internal.
31776 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31777 Copy hook value to automatic variable before its use.
31778 (memalign): Copy hook value to automatic variable before its use.
31779
317802007-06-26 Kenichi Handa <handa@m17n.org>
31781
31782 * coding.c (Ffind_operation_coding_system): Docstring improved.
31783 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31784
317852007-06-25 David Kastrup <dak@gnu.org>
31786
31787 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31788 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31789 cater for additional parameter.
31790
31791 * keymap.h: Adjust number of parameters to `current-active-maps'.
31792
31793 * doc.c (Fsubstitute_command_keys): Adjust call of
31794 `current-active-maps'.
31795
317962007-06-25 David Kastrup <dak@gnu.org>
31797
31798 * callint.c (Fcall_interactively): Make the parsing of interactive
31799 specs somewhat more readable.
31800
318012007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31802
31803 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31804 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31805 if extended background has already been filled.
31806
318072007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31808
31809 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31810 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31811
31812 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31813 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31814 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31815 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31816 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31817 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31818 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31819 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31820 Run timers during dialog popup.
31821 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31822
318232007-06-21 Jason Rumney <jasonr@gnu.org>
31824
31825 * image.c (convert_mono_to_color_image): Swap fore and background.
31826
318272007-06-20 Jason Rumney <jasonr@gnu.org>
31828
31829 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31830 (w32_free_bdf_font): Unmap memory not handle.
31831
318322007-06-20 Sam Steingold <sds@gnu.org>
31833
31834 * gmalloc.c (__morecore): Fix the declaration to comply with the
31835 definition.
31836
318372007-06-20 Juanma Barranquero <lekktu@gmail.com>
31838
31839 * w32term.c (w32_delete_display): Remove leftover declaration.
31840 (w32_define_cursor, w32_initialize): Make static.
31841
31842 * w32.c (_wsa_errlist): Fix typo in error message.
31843 (init_environment): Ignore any environment variable from the
31844 registry having a null value.
31845
318462007-06-20 Glenn Morris <rgm@gnu.org>
31847
31848 * Makefile.in (LIBGIF): Default to -lgif.
31849
318502007-06-17 Jason Rumney <jasonr@gnu.org>
31851
31852 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31853 unicode strings.
31854
318552007-06-16 Juanma Barranquero <lekktu@gmail.com>
31856
31857 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31858 Fix typo in docstring.
31859
318602007-06-16 Eli Zaretskii <eliz@gnu.org>
31861
31862 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31863 and their keybindings.
31864
318652007-06-15 Chong Yidong <cyd@stupidchicken.com>
31866
31867 * composite.c (update_compositions): Fix last fix.
31868
318692007-06-14 Jason Rumney <jasonr@gnu.org>
31870
31871 * w32.c (get_process_times_fn): New function pointer.
31872 (globals_of_w32): Intialize it if present in kernel32.dll.
31873 (w32_get_internal_run_time): New function.
31874
31875 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31876
318772007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31878
31879 * composite.c (update_compositions): Check the validness of
31880 compositions.
31881
318822007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31883
31884 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31885 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31886
31887 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31888 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31889
31890 * macgui.h (USE_MAC_TOOLBAR): New define.
31891
31892 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31893 Return immediately unless popup is activated.
31894
31895 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31896 background to scroll bar gap.
31897 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31898 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31899 scroll bars on frame edge. Check fringe background extension.
31900 Don't clear extended fringe background area.
31901 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31902 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31903 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31904 [USE_MAC_TOOLBAR]: New macros.
31905 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31906 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31907 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31908 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31909 [USE_MAC_TOOLBAR]: New functions.
31910 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31911 manually if previous repositioning has failed.
31912 (mac_handle_keyboard_event): Use precomputed event kind.
31913 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31914 as tool bar item click. Handle mouse movement over tool bar items.
31915
31916 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31917 toolbar_win_gravity.
31918 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31919 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31920 Add externs.
31921
31922 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31923 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31924
319252007-06-14 Chong Yidong <cyd@stupidchicken.com>
31926
31927 * image.c (search_image_cache): Remove unused variable.
31928
319292007-06-13 Chong Yidong <cyd@stupidchicken.com>
31930
31931 * xfns.c, xmenu.c: Link to xaw3d if available.
31932
319332007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31934
31935 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31936 frame_foreground and frame_background.
31937
31938 * image.c (lookup_image): Save frame foreground and background colors.
31939 (search_image_cache): Check if saved and current frame colors match.
31940
319412007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31942
31943 * regex.c (regex_compile): Remove the `regnum' counter.
31944 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31945
319462007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31947
31948 * term.c: Include intervals.h to declare Fget_text_property.
31949
319502007-06-10 Jason Rumney <jasonr@gnu.org>
31951
31952 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31953
319542007-06-08 Juanma Barranquero <lekktu@gmail.com>
31955
31956 * callint.c (Fcall_interactively):
31957 * editfns.c (Fdelete_and_extract_region):
31958 * fileio.c (Fread_file_name):
31959 * fns.c (Fmapconcat):
31960 * keyboard.c (cmd_error_internal):
31961 * keymap.c (Fkey_description):
31962 * lread.c (openp):
31963 * minibuf.c (read_minibuf):
31964 * search.c (wordify):
31965 * sunfns.c (sel_read):
31966 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31967 * xfns.c (x_default_scroll_bar_color_parameter):
31968 * xmenu.c (menu_help_callback):
31969 * xselect.c (Fx_get_atom_name):
31970 * xterm.c (x_term_init): Use empty_unibyte_string.
31971
319722007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31973
31974 * alloc.c (init_strings): Initialize canonical empty strings.
31975 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31976 canonical empty string when the requested size is 0.
31977
31978 * emacs.c (empty_unibyte_string): Rename from empty_string.
31979 (empty_multibyte_string): New canonical empty string.
31980 (syms_of_emacs): Don't initialize empty_string.
31981
31982 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31983 string, if appropriate.
31984 (empty_unibyte_string, empty_multibyte_string): New externs.
31985 (empty_string): Remove extern.
31986
31987 * lread.c (syms_of_lread): Use empty_unibyte_string.
31988
319892007-06-07 Jason Rumney <jasonr@gnu.org>
31990
31991 * s/ms-w32.h: Don't define HAVE_TZNAME.
31992
31993 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31994
319952007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31996
31997 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31998
31999 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
32000 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
32001
32002 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
32003 Don't call next handler.
32004 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
32005 Remove argument. Install handler to application.
32006 (set_frame_menubar): Don't change deep_p.
32007 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
32008 FRAME_OUTER_TO_INNER_DIFF_Y.
32009 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
32010 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
32011 [HAVE_DIALOGS]: New macros.
32012 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
32013 Use them.
32014 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
32015
32016 * macselect.c [MAC_OSX] (install_service_handler): Rename from
32017 init_service_handler. All callers changed. Return OSStatus value.
32018
32019 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
32020 All callers changed so as not to call SetPortWindowPort.
32021 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
32022 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
32023 mac_draw_string_common.
32024 (mac_draw_image_string_qd): Likewise.
32025 (mac_draw_string_common): Use them. Add INLINE.
32026 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
32027 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
32028 GetGlobalMouse.
32029 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
32030 and FRAME_OUTER_TO_INNER_DIFF_Y.
32031 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
32032 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
32033 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
32034 repositioning window to mac_handle_window_event.
32035 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
32036 saving window location to mac_handle_window_event
32037 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
32038 (install_menu_target_item_handler): Remove argument in extern.
32039 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
32040 Also accept command events.
32041 (do_keystroke): New function created from XTread_socket.
32042 (init_command_handler): Remove functions.
32043 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
32044 and save window location by kEventWindowShowing and kEventWindowHiding
32045 handlers here. Don't call next handler for window state change and
32046 focus events.
32047 (mac_handle_application_event, mac_handle_keyboard_event)
32048 [TARGET_API_MAC_CARBON]: New functions.
32049 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
32050 kEventWindowShowing and kEventWindowHiding events. Move installation
32051 of mouse, font, text input and menu target item handlers to
32052 install_application_handler.
32053 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
32054 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32055 New function.
32056 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
32057 Register it.
32058 (XTread_socket) [TARGET_API_MAC_CARBON]:
32059 Consolidate SendEventToEventTarget calls.
32060 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
32061 Move application activation handler to mac_handle_application_event.
32062 Move keyboard handler to mac_handle_keyboard_event.
32063 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
32064 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
32065 init_command_handler. Call install_application_handler.
32066
32067 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
32068 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
32069
320702007-06-07 Glenn Morris <rgm@gnu.org>
32071
32072 * emacs.c (main): Use `emacs-copyright' in --version output.
32073
320742007-06-06 Chong Yidong <cyd@stupidchicken.com>
32075
32076 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
32077
320782007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32079
32080 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
32081
32082 * macgui.h: Replace WindowPtr with WindowRef.
32083
32084 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32085 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32086 Replace ControlHandle with ControlRef.
32087 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
32088
32089 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
32090 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
32091 Replace ControlHandle with ControlRef.
32092 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
32093 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
32094
32095 * macterm.h (struct scroll_bar): Rename member control_handle_low
32096 and control_handle_high to control_ref_low and control_ref_high.
32097 All uses changed.
32098 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
32099 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
32100 respectively. All uses changed.
32101 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
32102 (install_window_handler, remove_window_handler): Replace WindowPtr
32103 with WindowRef in externs.
32104
321052007-06-05 Juanma Barranquero <lekktu@gmail.com>
32106
32107 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
32108
321092007-06-03 Nick Roberts <nickrob@snap.net.nz>
32110
32111 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
32112
32113 * frame.c (Fmouse_position, Fmouse_pixel_position):
32114 Condition on HAVE_GPM too.
32115
32116 * term.c (term_mouse_highlight): Remove unused variables.
32117 (Fterm_open_connection): Set gpm_zerobased to 1.
32118 (term_mouse_movement, term_mouse_click, handle_one_term_event):
32119 Use zero based co-ordinates.
32120 (handle_one_term_event): Report a drag as mouse movement too.
32121
32122 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
32123
321242007-06-03 Chong Yidong <cyd@stupidchicken.com>
32125
32126 * image.c (search_image_cache): New function. Require background
32127 color match if background color is unspecified in the image spec.
32128 (uncache_image, lookup_image): Use it.
32129
321302007-06-01 Juanma Barranquero <lekktu@gmail.com>
32131
32132 * window.c (Fshrink_window): Reflow docstring.
32133
321342007-06-02 Chong Yidong <cyd@stupidchicken.com>
32135
32136 * Version 22.1 released.
32137
321382007-06-01 Richard Stallman <rms@gnu.org>
32139
32140 * xfns.c (x_encode_text): Add GCPRO.
32141
321422007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32143
32144 * xfns.c (x_set_name_internal): Save encoded name before
32145 x_encode_text in case string data is relocated.
32146
321472007-05-31 Richard Stallman <rms@gnu.org>
32148
32149 * buffer.c (syms_of_buffer): Doc fix.
32150
321512007-05-30 Nick Roberts <nickrob@snap.net.nz>
32152
32153 * sysdep.c (init_sys_modes): Add rather than replace with
32154 O_NONBLOCK.
32155
32156 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
32157 term_mouse_moveto.
32158
32159 * termhooks.h (term_mouse_moveto): New extern.
32160
32161 * term.c (mouse_face_window): Rename...
32162 (Qmouse_face_window): ...to this.
32163 (term_show_mouse_face, term_clear_mouse_face)
32164 (term_mouse_highlight): Use Qmouse_face_window.
32165 (term_mouse_moveto): New function.
32166 (term_mouse_position): Make it work.
32167 (syms_of_term): Uncomment assignment to mouse_position_hook.
32168 Staticpro Qmouse_face_window.
32169
321702007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32171
32172 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
32173 around current_column call.
32174
321752007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
32176
32177 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
32178 * xdisp.c (next_element_from_buffer):
32179 * window.c (delete_window):
32180 * term.c (term_mouse_highlight):
32181 * msdos.c (getdefdir):
32182 * macterm.c (mac_create_bitmap_from_bitmap_data)
32183 (init_font_name_table):
32184 * fns.c (Fsxhash):
32185 * data.c (Fmake_local_variable):
32186 * ccl.c (ccl_driver): Likewise.
32187
321882007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32189
32190 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
32191 Call mac_wakeup_from_rne on window size change.
32192
321932007-05-25 Chong Yidong <cyd@stupidchicken.com>
32194
32195 * image.c (uncache_image): Fix typo.
32196
321972007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
32198
32199 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
32200
322012007-05-22 Richard Stallman <rms@gnu.org>
32202
32203 * xterm.c (x_connection_closed): Remove NO_RETURN.
32204
322052007-05-22 Martin Rudalics <rudalics@gmx.at>
32206
32207 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
32208
322092007-05-21 Chong Yidong <cyd@stupidchicken.com>
32210
32211 * image.c (uncache_image): New function.
32212 (Fimage_refresh): New function.
32213
322142007-05-20 Jan Djärv <jan.h.d@swipnet.se>
32215
32216 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32217
322182007-05-20 Nick Roberts <nickrob@snap.net.nz>
32219
32220 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32221 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32222
322232007-05-20 Nick Roberts <nickrob@snap.net.nz>
32224
32225 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32226 conditional on [HAVE_GPM_H].
32227
322282007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32229
32230 * syntax.c (skip_chars): Update syntax-table only after we checked that
32231 the new location is valid.
32232
322332007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32234
32235 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32236 mac_get_window_bounds.
32237
322382007-05-20 Nick Roberts <nickrob@snap.net.nz>
32239
32240 * Makefile.in (LIBGPM): Allow it to be set from configure.
32241 If set then link Emacs with it.
32242
32243 * config.in: Regenerate.
32244
32245 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32246 New externs.
32247
32248 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32249 Include gpm.h.
32250 (handle_one_term_event, term_gpm): New externs.
32251
32252 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32253 and allow it to be interrupted by SIGIO.
32254
32255 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32256 (wait_reading_process_output): Wait on gpm_fd too.
32257 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32258 (add_gpm_wait_descriptor_called_flag): New variable.
32259 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32260
32261 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32262 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32263 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32264 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32265 (make_lispy_event): Add case GPM_CLICK_EVENT.
32266 (read_avail_input): Handle mouse input.
32267
32268 * term.c (write_glyphs_with_face): New function.
32269 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32270 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32271 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32272 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32273 (last_mouse_x, last_mouse_y): New variables.
32274 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32275 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32276 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32277 (Fterm_close_connection): New functions.
32278 (term_init): Initialise mouse_face_window.
32279
322802007-05-19 Chong Yidong <cyd@stupidchicken.com>
32281
32282 * xdisp.c (redisplay_window): If first window line is a
32283 continuation line, recompute the new window start instead of
32284 recentering.
32285
322862007-05-18 Glenn Morris <rgm@gnu.org>
32287
32288 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32289 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32290
322912007-05-17 Glenn Morris <rgm@gnu.org>
32292
32293 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32294
322952007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32296
32297 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32298 dead key repeat and up events.
32299
323002007-05-14 Chong Yidong <cyd@stupidchicken.com>
32301
32302 * image.c (pbm_load): Check image size for monochrome pbm.
32303
323042007-05-13 Chong Yidong <cyd@stupidchicken.com>
32305
32306 * xterm.c (XTread_socket): Revert last change.
32307
323082007-05-12 Chong Yidong <cyd@stupidchicken.com>
32309
32310 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32311
32312 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32313
323142007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32315
32316 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32317 mixup (YAILOM).
32318
323192007-05-07 Andreas Schwab <schwab@suse.de>
32320
32321 * keymap.c (Flookup_key): Fix typo in last change.
32322
323232007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32324
32325 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32326 mapping for unibyte strings.
32327
323282007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32329
32330 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32331 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32332
323332007-04-29 Richard Stallman <rms@gnu.org>
32334
32335 * insdel.c (replace_range): For undo, record insertion first.
32336
323372007-04-29 Andreas Schwab <schwab@suse.de>
32338
32339 * lisp.h (VECSIZE): Use OFFSETOF.
32340
323412007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32342
32343 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32344 disabled lines.
32345
323462007-04-28 Richard Stallman <rms@gnu.org>
32347
32348 * lread.c (read_escape): In a string, \s is always space.
32349
323502007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32351
32352 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32353
32354 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32355 submenu for menu bar items.
32356
32357See ChangeLog.10 for earlier changes.
32358
32359;; Local Variables:
32360;; coding: utf-8
aac0c6e3
MR
32361;; End:
32362
73b0cd50 32363 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
32364
32365 This file is part of GNU Emacs.
32366
32367 GNU Emacs is free software: you can redistribute it and/or modify
32368 it under the terms of the GNU General Public License as published by
32369 the Free Software Foundation, either version 3 of the License, or
32370 (at your option) any later version.
32371
32372 GNU Emacs is distributed in the hope that it will be useful,
32373 but WITHOUT ANY WARRANTY; without even the implied warranty of
32374 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32375 GNU General Public License for more details.
32376
32377 You should have received a copy of the GNU General Public License
32378 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.