* region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
7710357c
PE
12011-03-18 Paul Eggert <eggert@cs.ucla.edu>
2
c4fc4e30
PE
3 * region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
4
918436ed
PE
5 * region-cache.h (pp_cache): New decl, for gcc -Wmissing-prototypes.
6
b9c7f648
PE
7 * callproc.c (Fcall_process): Use 'volatile' to avoid vfork clobbering.
8 * sysdep.c (sys_subshell): Likewise.
9 Previously, the sys_subshell 'volatile' was incorrectly IF_LINTted out.
7e9123a2 10
6bd8c144
PE
11 * lisp.h (child_setup): Now NO_RETURN unless DOS_NT.
12 This should get cleaned up, so that child_setup has the
13 same signature on all platforms.
14
7710357c 15 * callproc.c (call_process_cleanup): Now static.
cb1d0ef7 16 (relocate_fd): Rename locals to avoid shadowing.
7710357c 17
09f6ff02
EZ
182011-03-17 Eli Zaretskii <eliz@gnu.org>
19
20 * makefile.w32-in ($(BLD)/unexw32.$(O)): Depend on $(SRC)/unexec.h.
21
29a6015a
PE
222011-03-17 Paul Eggert <eggert@cs.ucla.edu>
23
a3a6c54e
PE
24 Fix more problems found by GCC 4.5.2's static checks.
25
b766f867
PE
26 * process.c (make_serial_process_unwind, send_process_trap):
27 (sigchld_handler): Now static.
28
be02381c
PE
29 * process.c (allocate_pty): Let PTY_ITERATION declare iteration vars.
30 That way, the code declares only the vars that it needs.
31 * s/aix4-2.h (PTY_ITERATION): Declare iteration vars.
32 * s/cygwin.h (PTY_ITERATION): Likewise.
33 * s/darwin.h (PTY_ITERATION): Likewise.
34 * s/gnu-linux.h (PTY_ITERATION): Likewise.
35
57048744
PE
36 * s/irix6-5.h (PTY_OPEN): Declare stb, to loosen coupling.
37 * process.c (allocate_pty): Don't declare stb unless it's needed.
38
7914961c 39 * bytecode.c (MAYBE_GC): Rewrite so as not to use empty "else".
615f2d59
PE
40 (CONSTANTLIM): Remove; unused.
41 (METER_CODE, Bscan_buffer, Bread_char, Bset_mark):
42 Define only if needed.
7914961c 43
b3967b18
PE
44 * unexelf.c (unexec): Name an expression,
45 to avoid gcc -Wbad-function-cast warning.
9ae71512
PE
46 Use a different way to cause a compilation error if anyone uses
47 n rather than nn, a way that does not involve shadowing.
73366a00 48 (ELF_BSS_SECTION_NAME, OLD_PROGRAM_H): Remove; unused.
b3967b18 49
29a6015a
PE
50 * deps.mk (unexalpha.o): Remove; unused.
51
43cfc33e 52 New file unexec.h, the (simple) interface for unexec (Bug#8267).
7feda0d2 53 * unexec.h: New file.
ce701a33
PE
54 * deps.mk (emacs.o, unexaix.o, unexcw.o, unexcoff.o, unexelf.o):
55 (unexhp9k800.o, unexmacosx.o, unexsol.o, unexw32.o):
56 Depend on unexec.h.
57 * emacs.c [!defined CANNOT_DUMP]: Include unexec.h.
58 * unexaix.c, unexcoff.c, unexcw.c, unexelf.c, unexhp9k800.c:
59 * unexmacosx.c, unexsol.c, unexw32.c: Include unexec.h.
381259ef 60 Change as necessary to match prototype in unexec.h.
ce701a33 61
01f44d5a
PE
62 * syntax.c (Fforward_comment, scan_lists): Rename locals to avoid
63 shadowing.
4f63c6bb 64 (back_comment, skip_chars): Mark vars as initialized.
01f44d5a 65
a6670b0b
PE
66 * character.h (FETCH_STRING_CHAR_ADVANCE_NO_CHECK, BUF_INC_POS):
67 Rename locals to avoid shadowing.
68
cef2010d 69 * lread.c (read1): Rewrite so as not to use empty "else".
0902fe45 70 (Fload, readevalloop, read1): Rename locals to avoid shadowing.
cef2010d 71
d4d7173a
PE
72 * print.c (Fredirect_debugging_output): Fix pointer signedess.
73
f08b802a
PE
74 * lisp.h (debug_output_compilation_hack): Add decl here, to avoid
75 warning when compiling print.c.
76
3ddb0639
PE
77 * font.c (font_unparse_fcname): Abort in an "impossible" situation
78 instead of using an uninitialized var.
5ad03b97 79 (font_sort_entities): Mark var as initialized.
3ddb0639 80
170a2692
PE
81 * character.h (FETCH_CHAR_ADVANCE): Rename locals to avoid shadowing.
82
e663c700
PE
83 * font.c (font_unparse_xlfd): Don't mix pointers to variables with
84 pointers to constants.
89bc529a 85 (font_parse_fcname): Remove unused vars.
7b81e2d0 86 (font_delete_unmatched): Now static.
ea838e10 87 (font_get_spec): Remove; unused.
13a547c6
PE
88 (font_style_to_value, font_prop_validate_style, font_unparse_fcname):
89 (font_update_drivers, Ffont_get_glyphs, font_add_log):
90 Rename or move locals to avoid shadowing.
e663c700 91
2a80c887 92 * fns.c (require_nesting_list, require_unwind): Now static.
612f56df 93 (Ffillarray): Rename locals to avoid shadowing.
2a80c887 94
1384fa33 95 * floatfns.c (domain_error2): Define only if needed.
a885e2ed 96 (Ffrexp, Fldexp): Rename locals to avoid shadowing.
1384fa33 97
8b2c52e9
PE
98 * alloc.c (mark_backtrace): Move decl from here ...
99 * lisp.h: ... to here, so that it can be checked.
100
475545b5 101 * eval.c (call_debugger, do_debug_on_call, grow_specpdl): Now static.
d28a2170 102 (Fdefvar): Rewrite so as not to use empty "else".
cfcbfb1a
PE
103 (lisp_indirect_variable): Name an expression,
104 to avoid gcc -Wbad-function-cast warning.
1faed8ae 105 (Fdefvar): Rename locals to avoid shadowing.
475545b5 106
b1349114 107 * callint.c (quotify_arg, quotify_args): Now static.
a3e8cbda 108 (Fcall_interactively): Rename locals to avoid shadowing.
b0e80955 109 Use const pointer when appropriate.
b1349114 110
a2928364
PE
111 * lisp.h (get_system_name, get_operating_system_release):
112 Move decls here, to check interfaces.
113 * process.c (get_operating_system_release): Move decl to lisp.h.
114 * xrdb.c (get_system_name): Likewise.
63c5d10b
PE
115 * editfns.c (init_editfns, Fuser_login_name, Fuser_uid):
116 (Fuser_real_uid, Fuser_full_name): Remove unnecessary casts,
117 some of which prompt warnings from gcc -Wbad-function-cast.
545b49b4
PE
118 (Fformat_time_string, Fencode_time, Finsert_char):
119 (Ftranslate_region_internal, Fformat):
120 Rename or remove local vars to avoid shadowing.
9710023e 121 (Ftranslate_region_internal): Mark var as initialized.
63c5d10b 122
a415e694
PE
123 * doc.c (Fdocumentation, Fsnarf_documentation): Move locals to
124 avoid shadowing.
125
8ef4622d
PE
126 * lisp.h (eassert): Check that the argument compiles, even if
127 ENABLE_CHECKING is not defined.
128
946f9a5b
PE
129 * data.c (Findirect_variable): Name an expression, to avoid
130 gcc -Wbad-function-cast warning.
112396d6 131 (default_value, arithcompare, arith_driver, arith_error): Now static.
b9b84fa9 132 (store_symval_forwarding): Rename local to avoid shadowing.
cdef261f
PE
133 (Fmake_variable_buffer_local, Fmake_local_variable): Mark
134 variables as initialized.
52746918 135 (do_blv_forwarding, do_symval_forwarding): Remove; unused.
946f9a5b 136
e5aab7e7 137 * alloc.c (check_cons_list): Do not define unless GC_CHECK_CONS_LIST.
ae35e756
PE
138 (Fmake_vector, Fvector, Fmake_byte_code, Fgarbage_collect):
139 Rename locals to avoid shadowing.
dff45157
PE
140 (mark_stack): Move local variables into the #ifdef region where
141 they're used.
7bc26fdb
PE
142 (BLOCK_INPUT_ALLOC, UNBLOCK_INPUT_ALLOC): Define only if
143 ! defined SYSTEM_MALLOC && ! defined SYNC_INPUT, as they are not
144 needed otherwise.
145 (CHECK_ALLOCATED): Define only if GC_CHECK_MARKED_OBJECTS.
146 (GC_STRING_CHARS): Remove; not used.
d40d4be1 147 (Fmemory_limit): Cast sbrk's returned value to char *.
ae35e756 148
e5aab7e7
PE
149 * lisp.h (check_cons_list): Declare if GC_CHECK_CONS_LIST; this
150 avoids undefined behavior in theory.
151
4da60324
PE
152 * regex.c (IF_LINT): Add defn, for benefit of ../lib-src.
153
88043301
PE
154 Use functions, not macros, for up- and down-casing (Bug#8254).
155 * buffer.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
156 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Remove. All callers changed
157 to use the following functions instead of these macros.
158 (downcase): Adjust to lack of DOWNCASE_TABLE. Return int, not
159 EMACS_INT, since callers assume the returned value fits in int.
160 (upcase1): Likewise, for UPCASE_TABLE.
161 (uppercasep, lowercasep, upcase): New static inline functions.
0da09c43 162 * editfns.c (Fchar_equal): Remove no-longer-needed workaround for
db69b0cd 163 the race-condition problem in the old DOWNCASE.
88043301 164
19ed5445
PE
165 * regex.c (CHARSET_LOOKUP_RANGE_TABLE_RAW, POP_FAILURE_REG_OR_COUNT):
166 Rename locals to avoid shadowing.
167 (regex_compile, re_match_2_internal): Move locals to avoid shadowing.
abbd1bcf
PE
168 (regex_compile, re_search_2, re_match_2_internal):
169 Remove unused local vars.
952db0d7
PE
170 (FREE_VAR): Rewrite so as not to use empty "else",
171 which gcc can warn about.
da053e48 172 (regex_compile, re_match_2_internal): Mark locals as initialized.
b313f9d8
PE
173 (RETALLOC_IF): Define only if needed.
174 (WORDCHAR_P): Likewise. This one is never needed, but is used
175 only in a comment talking about a compiler bug, so put inside
176 the #if 0 of that comment.
177 (CHARSET_LOOKUP_BITMAP, FAIL_STACK_FULL, RESET_FAIL_STACK):
178 (PUSH_FAILURE_ELT, BUF_PUSH_3, STOP_ADDR_VSTRING):
179 Remove; unused.
19ed5445 180
1f3561e4 181 * search.c (boyer_moore): Rename locals to avoid shadowing.
76ef09b7
PE
182 * character.h (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE):
183 (PREV_CHAR_BOUNDARY): Likewise.
1f3561e4 184
ded6f8f7
PE
185 * search.c (simple_search): Remove unused var.
186
dbd37a95
PE
187 * dired.c (compile_pattern): Move decl from here ...
188 * lisp.h: ... to here, so that it can be checked.
189 (struct re_registers): New forward decl.
190
7e47afad
PE
191 * character.h (INC_POS, DEC_POS): Rename locals to avoid shadowing.
192
85f24f61
PE
193 * indent.c (MULTIBYTE_BYTES_WIDTH): New args bytes, width.
194 All uses changed.
195 (MULTIBYTE_BYTES_WIDTH, scan_for_column, compute_motion):
196 Rename locals to avoid shadowing.
5671df8f 197 (Fvertical_motion): Mark locals as initialized.
85f24f61 198
181aa2be 199 * casefiddle.c (casify_object, casify_region): Now static.
e45a141a 200 (casify_region): Mark local as initialized.
181aa2be 201
930d429c
PE
202 * cmds.c (internal_self_insert): Rename local to avoid shadowing.
203
7082eac6
PE
204 * lisp.h (GCPRO2_VAR, GCPRO3_VAR, GCPRO4_VAR, GCPRO5_VAR, GCPRO6_VAR):
205 New macros, so that the caller can use some names other than
206 gcpro1, gcpro2, etc.
207 (GCPRO2, GCPRO3, GCPRO4, GCPRO5, GCPRO6): Reimplement in terms
208 of the new macros.
209 (GCPRO1_VAR, UNGCPRO_VAR): Change the meaning of the second
210 argument, for consistency with GCPRO2_VAR, etc: it is now the
211 prefix of the variable, not the variable itself. All uses
212 changed.
38b2c076
PE
213 * dired.c (directory_files_internal, file_name_completion):
214 Rename locals to avoid shadowing.
215
15206ed9
PE
216 Fix a race condition diagnosed by gcc -Wsequence-point (Bug#8254).
217 An expression of the form (DOWNCASE (x) == DOWNCASE (y)), found in
218 dired.c's scmp function, had undefined behavior.
219 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE, DOWNCASE, UPPERCASEP):
220 (NOCASEP, LOWERCASEP, UPCASE, UPCASE1): Move from here ...
221 * buffer.h: ... to here, because these macros use current_buffer,
222 and the new implementation with inline functions needs to have
223 current_buffer in scope now, rather than later when the macros
224 are used.
225 (downcase, upcase1): New static inline functions.
226 (DOWNCASE, UPCASE1): Reimplement using these functions.
227 This avoids undefined behavior in expressions like
228 DOWNCASE (x) == DOWNCASE (y), which previously suffered
229 from race conditions in accessing the global variables
230 case_temp1 and case_temp2.
231 * casetab.c (case_temp1, case_temp2): Remove; no longer needed.
232 * lisp.h (case_temp1, case_temp2): Remove their decls.
233 * character.h (ASCII_CHAR_P): Move from here ...
234 * lisp.h: ... to here, so that the inline functions mentioned
235 above can use them.
236
4a6bea26
PE
237 * dired.c (directory_files_internal_unwind): Now static.
238
f14b7e14
PE
239 * fileio.c (file_name_as_directory, directory_file_name):
240 (barf_or_query_if_file_exists, auto_save_error, auto_save_1):
241 Now static.
2893f146
PE
242 (file_name_as_directory): Use const pointers when appropriate.
243 (Fexpand_file_name): Likewise. In particular, newdir might
244 point at constant storage, so make it a const pointer.
fd4ead52 245 (Fmake_directory_internal, Fread_file_name): Remove unused vars.
b14aac08
PE
246 (Ffile_selinux_context, Fset_file_selinux_context): Fix pointer
247 signedness issues.
f839df0c
PE
248 (Fset_file_times, Finsert_file_contents, auto_save_error):
249 Rename locals to avoid shadowing.
f14b7e14 250
5716756e 251 * minibuf.c (choose_minibuf_frame_1): Now static.
62137a95
PE
252 (Ftry_completion, Fall_completions): Rename or remove locals
253 to avoid shadowing.
5716756e 254
b4c3046a
PE
255 * marker.c (bytepos_to_charpos): Remove; unused.
256
b45db522
PE
257 * lisp.h (verify_bytepos, count_markers): New decls,
258 so that gcc does not warn that these functions aren't declared.
259
85876d07
PE
260 * insdel.c (check_markers, make_gap_larger, make_gap_smaller):
261 (reset_var_on_error, Fcombine_after_change_execute_1): Now static.
f0cb4a60 262 (CHECK_MARKERS): Redo to avoid gcc -Wempty-body diagnostic.
40ef059e 263 (copy_text): Remove unused local var.
85876d07 264
03d78a21 265 * filelock.c (within_one_second): Now static.
b3dd38ab 266 (lock_file_1): Rename local to avoid shadowing.
03d78a21 267
5df8f01b
PE
268 * buffer.c (fix_overlays_before): Mark locals as initialized.
269 (fix_start_end_in_overlays): Likewise. This function should be
270 simplified by using pointers-to-pointers, but that's a different
271 matter.
b1d876f1 272 (switch_to_buffer_1): Now static.
8f54f30a
PE
273 (Fkill_buffer, record_buffer, Fbury_buffer, Fset_buffer_multibyte):
274 (report_overlay_modification): Rename locals to avoid shadowing.
c3bd59b5 275
a70072c9 276 * sysdep.c (system_process_attributes): Rename vars to avoid shadowing.
fbd02d7b 277 Fix pointer signedness issue.
edced198
PE
278 (sys_subshell): Mark local as volatile if checking for lint,
279 to suppress a gcc -Wclobbered warning that does not seem to be right.
15dfd3d9 280 (MAXPATHLEN): Define only if needed.
a70072c9 281
a0977c44
PE
282 * process.c (serial_open, serial_configure): Move decls from here ...
283 * systty.h: ... to here, so that they can be checked.
284
a884fdcc
PE
285 * fns.c (get_random, seed_random): Move extern decls from here ...
286 * lisp.h: ... to here, so that they can be checked.
287
604efe86 288 * sysdep.c (reset_io): Now static.
b8950c94 289 (wait_for_termination_signal): Remove; unused.
604efe86 290
38fc62d9
PE
291 * keymap.c (keymap_parent, keymap_memberp, map_keymap_internal):
292 (copy_keymap_item, append_key, push_text_char_description):
293 Now static.
1004a21a 294 (Fwhere_is_internal): Don't test CONSP (sequences) unnecessarily.
dbbb8427 295 (DENSE_TABLE_SIZE): Remove; unused.
c1141155
PE
296 (get_keymap, access_keymap, Fdefine_key, Fwhere_is_internal):
297 (describe_map_tree):
298 Rename locals to avoid shadowing.
38fc62d9 299
2f2650da
PE
300 * keyboard.c: Declare functions static if they are not used elsewhere.
301 (echo_char, echo_dash, cmd_error, top_level_2):
302 (poll_for_input, handle_async_input): Now static.
69a058fa
PE
303 (read_char, kbd_buffer_get_event, make_lispy_position):
304 (make_lispy_event, make_lispy_movement, apply_modifiers):
305 (decode_keyboard_code, tty_read_avail_input, menu_bar_items):
306 (parse_tool_bar_item, read_key_sequence, Fread_key_sequence):
307 (Fread_key_sequence_vector): Rename locals to avoid shadowing.
c8a06054 308 (read_key_sequence, read_char): Mark locals as initialized.
3ac94672 309 (Fexit_recursive_edit, Fabort_recursive_edit): Mark with NO_RETURN.
2f2650da 310
a053e86c 311 * keyboard.h (make_ctrl_char): New decl.
da2f2dd9
PE
312 (mark_kboards): Move decl here ...
313 * alloc.c (mark_kboards): ... from here.
a053e86c 314
4752793e
PE
315 * lisp.h (force_auto_save_soon): New decl.
316
74f10ca7 317 * emacs.c (init_cmdargs): Rename local to avoid shadowing.
244fc23d
PE
318 (DEFINE_DUMMY_FUNCTION): New macro.
319 (__do_global_ctors, __do_global_ctors_aux, __do_global_dtors, __main):
320 Use it.
c03cd23f
PE
321 (main): Add casts to avoid warnings
322 if GCC considers string literals to be constants.
74f10ca7 323
022e70d4
PE
324 * lisp.h (fatal_error_signal): Add decl, since it's exported.
325
59d6fe83
PE
326 * dbusbind.c: Pointer signedness fixes.
327 (xd_signature, xd_append_arg, xd_initialize):
328 (Fdbus_call_method, Fdbus_call_method_asynchronously):
329 (Fdbus_method_return_internal, Fdbus_method_error_internal):
330 (Fdbus_send_signal, xd_read_message_1, Fdbus_register_service):
331 (Fdbus_register_signal): Use SSDATA when the context wants char *.
332
78320123
PE
333 * dbusbind.c (Fdbus_init_bus): Add cast to avoid warning
334 if GCC considers string literals to be constants.
49cebcca 335 (Fdbus_register_service, Fdbus_register_method): Remove unused vars.
78320123 336
35ac2a97
SM
3372011-03-16 Stefan Monnier <monnier@iro.umontreal.ca>
338
fb103ca9
SM
339 * print.c (PRINT_CIRCLE_CANDIDATE_P): New macro.
340 (print_preprocess, print_object): New macro to fix last change.
341
35ac2a97
SM
342 * print.c (print_preprocess): Don't forget font objects.
343
62973b41
JB
3442011-03-16 Juanma Barranquero <lekktu@gmail.com>
345
346 * emacs.c (USAGE3): Doc fixes.
347
0e48bb22
AS
3482011-03-15 Andreas Schwab <schwab@linux-m68k.org>
349
350 * coding.c (detect_coding_iso_2022): Reorganize code to clarify
351 structure.
352
7684e57b
JB
3532011-03-14 Juanma Barranquero <lekktu@gmail.com>
354
355 * lisp.h (VWindow_system, Qfile_name_history):
356 * keyboard.h (lispy_function_keys) [WINDOWSNT]:
357 * w32term.h (w32_system_caret_hwnd, w32_system_caret_height)
358 (w32_system_caret_x, w32_system_caret_y): Declare extern.
359
360 * w32select.c: Don't #include "keyboard.h".
c96bbc66 361 (run_protected): Add extern declaration for waiting_for_input.
7684e57b
JB
362
363 * w32.c (Qlocal, noninteractive1, inhibit_window_system):
364 * w32console.c (detect_input_pending, read_input_pending)
365 (encode_terminal_code):
366 * w32fns.c (quit_char, lispy_function_keys, Qtooltip)
367 (w32_system_caret_hwnd, w32_system_caret_height, w32_system_caret_x)
368 (w32_system_caret_y, Qfile_name_history):
369 * w32font.c (w32font_driver, QCantialias, QCotf, QClang):
370 * w32inevt.c (reinvoke_input_signal, lispy_function_keys):
371 * w32menu.c (Qmenu_bar, QCtoggle, QCradio, Qoverriding_local_map)
372 (Qoverriding_terminal_local_map, Qmenu_bar_update_hook):
373 * w32proc.c (Qlocal, report_file_error):
374 * w32term.c (Vwindow_system, updating_frame):
375 * w32uniscribe.c (initialized, uniscribe_font_driver):
376 Remove unneeded extern declarations.
377
2aa46d6c
CY
3782011-03-14 Chong Yidong <cyd@stupidchicken.com>
379
c96bbc66 380 * buffer.c (Fmake_indirect_buffer): Fix incorrect assertions.
2aa46d6c 381
cffc6f3b
CY
3822011-03-13 Chong Yidong <cyd@stupidchicken.com>
383
384 * buffer.h (BUF_BEGV, BUF_BEGV_BYTE, BUF_ZV, BUF_ZV_BYTE, BUF_PT)
385 (BUF_PT_BYTE): Rewrite to handle indirect buffers (Bug#8219).
386 These macros can no longer be used for assignment.
387
388 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Assign
389 struct members directly, instead of using BUF_BEGV etc.
390 (record_buffer_markers, fetch_buffer_markers): New functions for
391 recording and fetching special buffer markers.
392 (set_buffer_internal_1, set_buffer_temp): Use them.
393
394 * lread.c (unreadchar): Use SET_BUF_PT_BOTH.
395
396 * insdel.c (adjust_point): Use SET_BUF_PT_BOTH.
397
398 * intervals.c (temp_set_point_both): Use SET_BUF_PT_BOTH.
399 (get_local_map): Use SET_BUF_BEGV_BOTH and SET_BUF_ZV_BOTH.
400
401 * xdisp.c (hscroll_window_tree):
402 (reconsider_clip_changes): Use PT instead of BUF_PT.
403
d251f04b
EZ
4042011-03-13 Eli Zaretskii <eliz@gnu.org>
405
406 * makefile.w32-in ($(BLD)/editfns.$(O)): Depend on
407 $(EMACS_ROOT)/lib/intprops.h.
408
f0c77cd1
PE
4092011-03-13 Paul Eggert <eggert@cs.ucla.edu>
410
3eca4629
PE
411 Fix more problems found by GCC 4.5.2's static checks.
412
7c86ee98
PE
413 * gtkutil.c (xg_get_pixbuf_from_pixmap): Add cast from char *
414 to unsigned char * to avoid compiler diagnostic.
b0afc268
PE
415 (xg_free_frame_widgets): Make it clear that a local variable is
416 needed only if USE_GTK_TOOLTIP.
01e0b5ad
PE
417 (gdk_window_get_screen): Make it clear that this macro is needed
418 only if USE_GTK_TOOLTIP.
1e5524e7
PE
419 (int_gtk_range_get_value): New function, which avoids a diagnostic
420 from gcc -Wbad-function-cast.
421 (xg_set_toolkit_scroll_bar_thumb): Use it.
422 (xg_tool_bar_callback, xg_tool_item_stale_p): Rewrite to avoid
423 diagnostic from gcc -Wbad-function-cast.
65dc836c
PE
424 (get_utf8_string, xg_get_file_with_chooser):
425 Rename locals to avoid shadowing.
426 (create_dialog): Move locals to avoid shadowing.
7c86ee98 427
41729b81
PE
428 * xgselect.c (xg_select): Remove unused var.
429
f0c77cd1
PE
430 * image.c (four_corners_best): Mark locals as initialized.
431 (gif_load): Initialize transparent_p to zero (Bug#8238).
432 Mark another local as initialized.
ec6cf4c6 433 (my_png_error, my_error_exit): Mark with NO_RETURN.
f0c77cd1 434
ce0ad53d 435 * image.c (clear_image_cache): Now static.
d5d5a617 436 (DIM, HAVE_STDLIB_H_1): Remove unused macros.
e22cffbc 437 (xpm_load): Redo to avoid "discards qualifiers" gcc warning.
77a765fd
PE
438 (x_edge_detection): Remove unnecessary cast that
439 gcc -Wbad-function-cast diagnoses.
2037898d 440 (gif_load): Fix pointer signedness.
6ae141d6
PE
441 (clear_image_cache, xbm_read_bitmap_data, x_detect_edges):
442 (jpeg_load, gif_load): Rename locals to avoid shadowing.
ce0ad53d 443
3eca4629
PE
4442011-03-11 Paul Eggert <eggert@cs.ucla.edu>
445
d32df629
PE
446 Improve quality of tests for time stamp overflow.
447 For example, without this patch (encode-time 0 0 0 1 1
448 1152921504606846976) returns the obviously-bogus value (-948597
449 62170) on my RHEL 5.5 x86-64 host. With the patch, it correctly
450 reports time overflow. See
451 <http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00470.html>.
b8d9bd41
PE
452 * deps.mk (editfns.o): Depend on ../lib/intprops.h.
453 * editfns.c: Include limits.h and intprops.h.
454 (TIME_T_MIN, TIME_T_MAX): New macros.
455 (time_overflow): Move earlier, to before first use.
456 (hi_time, lo_time): New functions, for an accurate test for
457 out-of-range times.
458 (Fcurrent_time, Fget_internal_run_time, make_time): Use them.
459 (Fget_internal_run_time): Don't assume time_t fits in int.
460 (make_time): Use list2 instead of Fcons twice.
461 (Fdecode_time): More accurate test for out-of-range times.
462 (check_tm_member): New function.
463 (Fencode_time): Use it, to test for out-of-range times.
d32df629
PE
464 (lisp_time_argument): Don't rely on undefined left-shift and
465 right-shift behavior when checking for time stamp overflow.
8be6f318 466
fe31d94c
PE
467 * editfns.c (time_overflow): New function, refactoring common code.
468 (Fformat_time_string, Fdecode_time, Fencode_time):
469 (Fcurrent_time_string): Use it.
470
8be6f318
PE
471 Move 'make_time' to be next to its inverse 'lisp_time_argument'.
472 * dired.c (make_time): Move to ...
473 * editfns.c (make_time): ... here.
474 * systime.h: Note the move.
475
09d9db2c 4762011-03-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
c47cbdfd 477
126bc0dc
YM
478 * fringe.c (update_window_fringes): Remove unused variables.
479
c47cbdfd
YM
480 * unexmacosx.c (copy_data_segment): Also copy __got section.
481 (Bug#8223)
482
7ac80be9
EZ
4832011-03-12 Eli Zaretskii <eliz@gnu.org>
484
c96bbc66 485 * termcap.c [MSDOS]: Include "msdos.h".
058e5dad
EZ
486 (find_capability, tgetnum, tgetflag, tgetstr, tputs, tgetent):
487 Constify `char *' arguments and their references according to
488 prototypes in tparam.h.
489
ecb0f94d 490 * deps.mk (termcap.o): Depend on tparam.h and msdos.h.
058e5dad 491
7ac80be9
EZ
492 * msdos.c (XMenuAddPane): 3rd argument is `const char *' now.
493 Adapt all references accordingly.
494
495 * msdos.h (XMenuAddPane): 3rd argument is `const char *' now.
496
ef1fd07e
TT
4972011-03-11 Tom Tromey <tromey@redhat.com>
498
499 * buffer.c (syms_of_buffer): Remove obsolete comment.
500
7ef4b50c
EZ
5012011-03-11 Eli Zaretskii <eliz@gnu.org>
502
503 * termhooks.h (encode_terminal_code): Declare prototype.
504
505 * msdos.c (encode_terminal_code): Don't declare prototype.
506
507 * term.c (encode_terminal_code): Now external again, used by
508 w32console.c and msdos.c.
509
510 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
511 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
512
4b1ec863 5132011-03-11 Paul Eggert <eggert@cs.ucla.edu>
f78faa98 514
1714f52b 515 Fix some minor problems found by GCC 4.5.2's static checks.
83316bf4 516
4b1ec863
PE
517 * fringe.c (update_window_fringes): Mark locals as initialized
518 (Bug#8227).
519 (destroy_fringe_bitmap, init_fringe_bitmap): Now static.
bf60f616 520
524c7aa6
PE
521 * alloc.c (mark_fringe_data): Move decl from here ...
522 * lisp.h (mark_fringe_data) [HAVE_WINDOW_SYSTEM]: ... to here,
523 to check its interface.
524 (init_fringe_once): Do not declare unless HAVE_WINDOW_SYSTEM.
525
a5c0af81 526 * fontset.c (free_realized_fontset): Now static.
7519b8cd 527 (Fset_fontset_font): Rename local to avoid shadowing.
cc6e5db1 528 (fontset_font): Mark local as initialized.
a9a06e0b 529 (FONTSET_SPEC, FONTSET_REPERTORY, RFONT_DEF_REPERTORY): Remove; unused.
a5c0af81 530
b4716021
PE
531 * xrdb.c: Include "xterm.h", to check x_load_resources's interface.
532
811e9bac 533 * xselect.c (x_disown_buffer_selections): Remove; not used.
7b83e2f1 534 (TRACE3) [!defined TRACE_SELECTION]: Remove; not used.
aa0daa9f
PE
535 (x_own_selection, Fx_disown_selection_internal): Rename locals
536 to avoid shadowing.
537 (x_handle_dnd_message): Remove local to avoid shadowing.
811e9bac 538
7e3ab302
PE
539 * lisp.h (GCPRO1_VAR, UNGCPRO_VAR): New macros,
540 so that the caller can use some name other than gcpro1.
541 (GCPRO1, UNGCPRO): Reimplement in terms of the new macros.
58d2d479
PE
542 * xfns.c (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
543 (Fx_backspace_delete_keys_p):
544 Use them to avoid shadowing, and rename vars to avoid shadowing.
545 (x_decode_color, x_set_name, x_window): Now static.
6b437900 546 (Fx_create_frame): Add braces to silence GCC warning.
c0951e53 547 (Fx_file_dialog, Fx_select_font): Fix pointer signedness.
06b0c8a0
PE
548 (x_real_positions, xg_set_icon_from_xpm_data, x_create_tip_frame):
549 Remove unused locals.
7e3ab302
PE
550 (Fx_create_frame, x_create_tip_frame, Fx_show_tip):
551 (Fx_backspace_delete_keys_p): Rename locals to avoid shadowing.
552 Some of these renamings use the new GCPRO1_VAR and UNGCPRO_VAR
553 macros.
f78faa98 554
e2b13473
PE
555 * xterm.h (x_mouse_leave): New decl.
556
77f23912
PE
557 * xterm.c (x_copy_dpy_color, x_focus_on_frame, x_unfocus_frame):
558 Remove unused functions.
cdf4ba58
PE
559 (x_shift_glyphs_for_insert, XTflash, XTring_bell):
560 (x_calc_absolute_position): Now static.
7411c686 561 (XTread_socket): Don't define label "out" unless it's used.
2b07bcff 562 Don't declare local "event" unless it's used.
ed7bf3a5
PE
563 (x_iconify_frame, x_free_frame_resources): Don't declare locals
564 unless they are used.
38d0b34a
PE
565 (XEMBED_VERSION, xembed_set_info): Don't define unless needed.
566 (x_fatal_error_signal): Remove; not used.
a6067996
PE
567 (x_draw_image_foreground, redo_mouse_highlight, XTmouse_position):
568 (x_scroll_bar_report_motion, handle_one_xevent, x_draw_bar_cursor):
569 (x_error_catcher, x_connection_closed, x_error_handler):
570 (x_error_quitter, xembed_send_message, x_iconify_frame):
571 (my_log_handler): Rename locals to avoid shadowing.
28f1c698 572 (x_delete_glyphs, x_ins_del_lines): Mark with NO_RETURN.
2a8fade0 573 (x_connection_closed): Tell GCC not to suggest NO_RETURN.
77f23912 574
071048a3
PE
575 * xfaces.c (clear_face_cache, Fx_list_fonts, Fface_font): Rename
576 or move locals to avoid shadowing.
6b463e58 577 (tty_defined_color, merge_face_heights): Now static.
5967d051 578 (free_realized_faces_for_fontset): Remove; not used.
1e9966ea
PE
579 (Fx_list_fonts): Mark variable that gcc -Wuninitialized
580 does not deduce is never used uninitialized.
73719eba
PE
581 (STRDUPA, LSTRDUPA, FONT_POINT_SIZE_QUANTUM): Remove; not used.
582 (LFACEP): Define only if XASSERTS, as it's not needed otherwise.
071048a3 583
426994c3 584 * terminal.c (store_terminal_param): Now static.
5489860b 585
032f1620 586 * xmenu.c (menu_highlight_callback): Now static.
9d66f88e 587 (set_frame_menubar): Remove unused local.
d4323972 588 (xmenu_show): Rename parameter to avoid shadowing.
6d1f7fee
PE
589 (xmenu_show, xdialog_show, xmenu_show): Make local pointers "const"
590 since they might point to immutable storage.
281585b0
PE
591 (next_menubar_widget_id): Declare only if USE_X_TOOLKIT,
592 since it's unused otherwise.
032f1620 593
367c19e5 594 * xdisp.c (produce_glyphless_glyph): Initialize lower_xoff.
53df7c11 595 Add a FIXME, since the code still doesn't look right. (Bug#8215)
9f36b9fd
PE
596 (Fcurrent_bidi_paragraph_direction): Simplify slightly; this
597 avoids a gcc -Wuninitialized diagnostic.
0e086e8f 598 (display_line, BUILD_COMPOSITE_GLYPH_STRING, draw_glyphs):
44a3a108
PE
599 (note_mouse_highlight): Mark variables that gcc -Wuninitialized
600 does not deduce are never used uninitialized.
70739cbe 601
07b48fa9
PE
602 * lisp.h (IF_LINT): New macro, copied from ../lib-src/emacsclient.c.
603
8868a238 604 * xdisp.c (redisplay_window): Rename local to avoid shadowing.
4554d213
PE
605 * window.c (window_loop, size_window):
606 (run_window_configuration_change_hook, enlarge_window): Likewise.
8868a238 607
7e5cf297 608 * window.c (display_buffer): Now static.
d6550a9f
PE
609 (size_window): Mark variables that gcc -Wuninitialized
610 does not deduce are never used uninitialized.
a586633d
PE
611 * window.h (check_all_windows): New decl, to forestall
612 gcc -Wmissing-prototypes diagnostic.
5b555da1 613 * dispextern.h (bidi_dump_cached_states): Likewise.
7e5cf297 614
f6095868
PE
615 * charset.h (CHECK_CHARSET_GET_CHARSET): Rename locals to avoid
616 shadowing.
617 * charset.c (map_charset_for_dump, Fchar_charset): Likewise.
726929c4
PE
618 Include <limits.h>.
619 (Fsort_charsets): Redo min/max calculation to shorten the code a bit
620 and to avoid gcc -Wuninitialized warning.
89ef49df
PE
621 (load_charset_map): Mark variables that gcc -Wuninitialized
622 does not deduce are never used uninitialized.
53df7c11 623 (load_charset): Abort instead of using uninitialized var (Bug#8229).
f6095868 624
f38b440c
PE
625 * coding.c (coding_set_source, coding_set_destination):
626 Use "else { /* comment */ }" rather than "else /* comment */;"
627 for clarity, and to avoid gcc -Wempty-body warning.
2735d060
PE
628 (Fdefine_coding_system_internal): Don't redeclare 'i' inside
629 a block, when the outer 'i' will do.
630 (decode_coding_utf_8, decode_coding_utf_16, detect_coding_emacs_mule):
631 (emacs_mule_char, decode_coding_emacs_mule, detect_coding_iso_2022):
632 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5):
633 (decode_coding_raw_text, decode_coding_charset, get_translation_table):
634 (Fdecode_sjis_char, Fdefine_coding_system_internal):
635 Rename locals to avoid shadowing.
636 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
e2f1bab9
PE
637 * coding.c (emacs_mule_char, encode_invocation_designation):
638 Now static, since they're not used elsewhere.
413bb2db 639 (decode_coding_iso_2022): Add "default: abort ();" as a safety check.
c4a63b12 640 (decode_coding_object, encode_coding_object, detect_coding_system):
ee05f961
PE
641 (decode_coding_emacs_mule): Mark variables that gcc
642 -Wuninitialized does not deduce are never used uninitialized.
160b01f6
PE
643 (detect_coding_iso_2022): Initialize a local variable that might
644 be used uninitialized. Leave a FIXME because it's not clear that
53df7c11 645 this initialization is needed. (Bug#8211)
5f58e762
PE
646 (ISO_CODE_LF, ISO_CODE_CR, CODING_ISO_FLAG_EUC_TW_SHIFT):
647 (ONE_MORE_BYTE_NO_CHECK, UTF_BOM, UTF_16_INVALID_P):
648 (SHIFT_OUT_OK, ENCODE_CONTROL_SEQUENCE_INTRODUCER):
649 (ENCODE_DIRECTION_R2L, ENCODE_DIRECTION_L2R):
650 Remove unused macros.
f38b440c 651
232b38b9 652 * category.c (hash_get_category_set): Remove unused local var.
9f3b5e69 653 (copy_category_table): Now static, since it's not used elsewhere.
d0891610 654 * character.c (string_count_byte8): Likewise.
232b38b9 655
fb90da1b
PE
656 * ccl.c (CCL_WRITE_STRING, CCL_ENCODE_CHAR, Fccl_execute_on_string):
657 (Fregister_code_conversion_map): Rename locals to avoid shadowing.
658
fb93dbc2
PE
659 * chartab.c (copy_sub_char_table): Now static, since it's not used
660 elsewhere.
5c156ace
PE
661 (sub_char_table_ref_and_range, char_table_ref_and_range):
662 Rename locals to avoid shadowing.
bbcd0949 663 (ASET_RANGE, GET_SUB_CHAR_TABLE): Remove unused macros.
fb93dbc2 664
7d3b3862 665 * bidi.c (bidi_check_type): Now static, since it's not used elsewhere.
630d6892 666 (BIDI_BOB): Remove unused macro.
7d3b3862 667
6be7d3da
PE
668 * cm.c (cmgoto): Mark variables that gcc -Wuninitialized does not
669 deduce are never used uninitialized.
c2ed9c8b 670 * term.c (encode_terminal_code): Likewise.
6be7d3da 671
75f8807f 672 * term.c (encode_terminal_code): Now static. Remove unused local.
72abad34 673
50938595
PE
674 * tparam.h: New file.
675 * term.c, tparam.h: Include it.
676 * deps.mk (term.o, tparam.o): Depend on tparam.h.
677 * term.c (tputs, tgetent, tgetflag, tgetnum, tparam, tgetstr):
678 Move these decls to tparam.h, and make them agree with what
679 is actually in tparam.c. The previous trick of using incompatible
680 decls in different modules does not conform to the C standard.
681 All callers of tparam changed to use tparam's actual API.
682 * tparam.c (tparam1, tparam, tgoto):
683 Use const pointers where appropriate.
684
fbceeba2
PE
685 * cm.c (calccost, cmgoto): Use const pointers where appropriate.
686 * cm.h (struct cm): Likewise.
687 * dispextern.h (do_line_insertion_deletion_costs): Likewise.
688 * scroll.c (ins_del_costs, do_line_insertion_deletion_costs): Likewise.
689 * term.c (tty_ins_del_lines, calculate_costs, struct fkey_table):
690 (term_get_fkeys_1, append_glyphless_glyph, produce_glyphless_glyph):
691 (turn_on_face, init_tty): Likewise.
692 * termchar.h (struct tty_display_info): Likewise.
fbceeba2 693
7f3f1250
PE
694 * term.c (term_mouse_position): Rename local to avoid shadowing.
695
e6ca6543
PE
696 * alloc.c (mark_ttys): Move decl from here ...
697 * lisp.h (mark_ttys): ... to here, so that it's checked against defn.
698
c40f8d15
AS
6992011-03-11 Andreas Schwab <schwab@linux-m68k.org>
700
701 * .gdbinit (pwinx, xbuffer): Fix access to buffer name.
702
cfe0661d
JB
7032011-03-09 Juanma Barranquero <lekktu@gmail.com>
704
705 * search.c (compile_pattern_1): Remove argument regp, unused since
706 revid:rms@gnu.org-19941211082627-3x1g1wyqkjmwloig.
707 (compile_pattern): Don't pass it.
708
0afb4571
J
7092011-03-08 Jan Djärv <jan.h.d@swipnet.se>
710
711 * xterm.h (DEFAULT_GDK_DISPLAY): New define.
712 (GDK_WINDOW_XID, gtk_widget_get_preferred_size): New defines
713 for ! HAVE_GTK3.
714 (GTK_WIDGET_TO_X_WIN): Use GDK_WINDOW_XID.
715
716 * xmenu.c (menu_position_func): Call gtk_widget_get_preferred_size.
717
718 * gtkutil.c: Include gtkx.h if HAVE_GTK3. If ! HAVE_GTK3, define
719 gdk_window_get_screen, gdk_window_get_geometry,
720 gdk_x11_window_lookup_for_display and GDK_KEY_g.
721 (xg_set_screen): Use DEFAULT_GDK_DISPLAY.
722 (xg_get_pixbuf_from_pixmap): New function.
723 (xg_get_pixbuf_from_pix_and_mask): Change parameters from GdkPixmap
724 to Pixmap, take frame as parameter, remove GdkColormap parameter.
725 Call xg_get_pixbuf_from_pixmap instead of
726 gdk_pixbuf_get_from_drawable.
727 (xg_get_image_for_pixmap): Do not make GdkPixmaps, call
728 xg_get_pixbuf_from_pix_and_mask with Pixmap parameters instead.
729 (xg_check_special_colors): Use GtkStyleContext and its functions
730 for HAVE_GTK3.
731 (xg_prepare_tooltip, xg_hide_tooltip): Call gdk_window_get_screen.
732 (xg_prepare_tooltip, create_dialog, menubar_map_cb)
733 (xg_update_frame_menubar, xg_tool_bar_detach_callback)
734 (xg_tool_bar_attach_callback, xg_update_tool_bar_sizes): Call
735 gtk_widget_get_preferred_size.
736 (xg_frame_resized): gdk_window_get_geometry only takes 5
737 parameters.
738 (xg_win_to_widget, xg_event_is_for_menubar): Call
739 gdk_x11_window_lookup_for_display.
740 (xg_set_widget_bg): New function.
741 (delete_cb): New function.
742 (xg_create_frame_widgets): connect delete-event to delete_cb.
743 Call xg_set_widget_bg. Only set backgrund pixmap for ! HAVE_GTK3
744 (xg_set_background_color): Call xg_set_widget_bg.
745 (xg_set_frame_icon): Call xg_get_pixbuf_from_pix_and_mask.
746 (xg_create_scroll_bar): vadj is a GtkAdjustment for HAVE_GTK3.
747 Only call gtk_range_set_update_policy if ! HAVE_GTK3.
748 (xg_make_tool_item): Only connect xg_tool_bar_item_expose_callback
749 if ! HAVE_GTK3.
750 (update_frame_tool_bar): Call gtk_widget_hide.
751 (xg_initialize): Use GDK_KEY_g.
752
753 * xsmfns.c (gdk_set_sm_client_id): Define to gdk_set_sm_client_id
754 if ! HAVE_GTK3
755 (x_session_initialize): Call gdk_x11_set_sm_client_id.
756
757 * xterm.c (XFillRectangle): Use cairo routines for HAVE_GTK3.
758 (x_term_init): Disable Xinput(2) with GDK_CORE_DEVICE_EVENTS.
759 Load ~/emacs.d/gtkrc only for ! HAVE_GTK3.
760
1c2cc4ef
JB
7612011-03-08 Juanma Barranquero <lekktu@gmail.com>
762
763 * w32xfns.c (select_palette): Check success of RealizePalette against
764 GDI_ERROR, not zero.
765
7faeca66
BK
7662011-03-07 Ben Key <bkey76@gmail.com>
767
768 * w32fns.c (FILE_NAME_COMBO_BOX, FILE_NAME_LIST): Define.
769 (file_dialog_callback): Fix locating the window handle of the File Name
770 text field. After disabling it, set focus on the list control.
771 (Fx_file_dialog): If only_dir_p is non-nil, set the text of the File
772 Name text field to "Current Directory" if it does not already have
cfe0661d 773 another value. (Bug#8181)
7faeca66 774
cf715c3c
AR
7752011-03-07 Adrian Robert <Adrian.B.Robert@gmail.com>
776
777 * nsterm.m (ns_draw_window_cursor): Fix handling of "cursor_width"
778 parameter for hbar cursors. Based on a patch by Ben Key
779 <bkey76@gmail.com>.
780
ef272f1f
CY
7812011-03-06 Chong Yidong <cyd@stupidchicken.com>
782
783 * xdisp.c (redisplay_window): Revert incorrect logic in 2011-03-06
784 change.
785
5489860b
PE
7862011-03-06 Paul Eggert <eggert@cs.ucla.edu>
787
5f349a89
PE
788 current_column: Now returns EMACS_INT, fixing some iftc
789 that was introduced in the 2002-06-02 change "temporarily"; see
790 <http://lists.gnu.org/archive/html/emacs-devel/2002-06/msg00039.html>.
7831777b
PE
791 * bytecode.c (Fbyte_code): Don't cast current_column () to int.
792 * cmds.c (internal_self_insert): Likewise.
793 * indent.c (Fcurrent_column): Likewise.
794 * keymap.c (describe_command): Likewise.
795 * minibuf.c (read_minibuf): Likewise.
796 * indent.c (Fcurrent_indentation): Don't cast position_indentation ()
797 to int.
798 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
799 Likewise.
800 * cmds.c (internal_self_insert): Declare locals to be EMACS_INT,
801 not int or double, if they might contain a column number.
802 * indent.c (current_column, Findent_to, indented_beyond_p):
803 (compute_motion, vmotion): Likewise.
804 * keymap.c (describe_command): Likewise.
805 * xdisp.c (pint2str): Likewise.
806 * indent.c (last_known_column): Now EMACS_INT, not int.
807 * minibuf.c (minibuf_prompt_width): Likewise.
808 * indent.c (current_column, current_column_1, position_indentation):
809 Return EMACS_INT, not double.
810 * lisp.h (current_column): Likewise.
811 * indent.c (indented_beyond_p): Last arg is now EMACS_INT, not double.
812 All callers changed.
813 * lisp.h (indented_beyond_p): Likewise.
814
e9588e2e
PE
815 * minibuf.c (minibuf_prompt, minibuf_prompt_width): Move here
816 from xdisp.c, and make static, since these are used only here.
817 * window.h, xdisp.c (minibuf_prompt, minibuf_prompt_width):
818 Remove decls.
819
1e12733b 820 * cmds.c (internal_self_insert): Reindent to match Emacs style.
179b8720 821 * xdisp.c (redisplay_window): Likewise.
1e12733b 822
5489860b
PE
823 * xdisp.c: Rename or move local decls to avoid shadowing.
824 (init_iterator, handle_fontified_prop, handle_single_display_spec):
825 (message_dolog, message_with_string, redisplay_internal):
826 (redisplay_window, try_window_reusing_current_matrix, try_window_id):
827 (compute_line_metrics, highlight_trailing_whitespace, cursor_row_p):
828 (display_line, display_string, rows_from_pos_range):
829 (mouse_face_from_buffer_pos, note_mouse_highlight, expose_frame):
830 Rename or move local decls.
7b781e9f 831 * xdisp.c (BUILD_GLYPHLESS_GLYPH_STRING): Omit unused local var.
841081e1
PE
832 (produce_glyphless_glyph): Make a pointer "const"
833 since it might point to immutable storage.
cfe0661d 834 (update_window_cursor): Now static, since it's not used elsewhere.
acbfe54c 835 (SKIP_GLYPHS): Removed unused macro.
5489860b 836
aa248733
MS
8372011-03-06 Michael Shields <shields@msrl.com> (tiny change)
838
839 * window.c (Fnext_window): Doc fix. (Bug#5567)
840
04cb6840
CY
8412011-03-05 Chong Yidong <cyd@stupidchicken.com>
842
843 * nsterm.m (ns_draw_window_cursor): Fix typo in 2011-02-23 commit.
844
22c28cb8 8452011-03-02 Ken Brown <kbrown@cornell.edu>
5aef9e9a
KB
846
847 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
848
6c0dea8a
PE
8492011-03-02 Paul Eggert <eggert@cs.ucla.edu>
850
851 Work around some portability problems with symlinks.
852
853 * fileio.c (Fmake_symbolic_link): Treat ENOSYS specially, and
854 generate a special message for it. Suggested by Eli Zaretskii in
855 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg00995.html>.
856 (Frename_file, Fmake_symbolic_link, Ffile_symlink_p):
857 Simplify the code by assuming that the readlink and symlink calls
858 exist, even if they always fail on this host.
859 (Ffile_readable_p): Likewise, for fifos.
860 * config.in: Regenerate.
861
52eb77a6
CY
8622011-02-27 Chong Yidong <cyd@stupidchicken.com>
863
864 * frame.c (store_frame_param): Don't store value directly in
865 buffer_list and buried_buffer_list; copy the list and remove dead
866 buffers (Bug#7898).
867
0f7bb05d
EZ
8682011-02-27 Eli Zaretskii <eliz@gnu.org>
869
40be44e2
EZ
870 * msdos.c (readlink) [DJGPP < 2.04]: New stub function.
871
01c35094 872 * msdos.h (readlink) [DJGPP < 2.04]: Declare prototype.
40be44e2 873
0f7bb05d
EZ
874 * w32.c (symlink, readlink): New stub functions.
875
27786b2f
PE
8762011-02-27 Paul Eggert <eggert@cs.ucla.edu>
877
c783d15b
PE
878 * scroll.c (CHECK_BOUNDS): #define only if GLYPH_DEBUG.
879 This avoids a gcc warning in some configurations.
880
76c1cebc
PE
881 * frame.c (x_set_screen_gamma): Rename local to avoid shadowing.
882
0ff162fc
PE
883 * frame.h: Avoid gcc -Wmissing-prototypes diagnostics.
884 (set_menu_bar_lines, x_get_resource_string): New decls.
885 * msdos.c (set_menu_bar_lines): Omit decl.
886
fdb0b28b
PE
887 * dispextern.h (struct glyph): Make u.img_id int, not unsigned.
888 It's always given int values and used as an int. This suppresses
889 a gcc "comparison of unsigned expression >= 0" warning in some
890 configurations.
891
27786b2f
PE
892 * dispnew.c: Rename locals to avoid shadowing.
893 (update_text_area, scrolling_window, update_frame_1): Rename locals.
894
09ad5a91
PE
8952011-02-26 Paul Eggert <eggert@cs.ucla.edu>
896
897 * dispnew.c: Fix problems uncovered by gcc -Wstrict-prototypes.
898 (copy_glyph_row_contents): Remove; not used.
899 (frame_row_to_window, check_current_matrix_flags):
900 (window_change_signal): Now static, since they're not used elsewhere.
901 (check_current_matrix_flags): Surround with "#if 0", since its
902 only use is in a comment. Maybe both the comment and the "#if 0"
903 stuff should be removed?
904
d2d37ddc
PE
905 * dispnew.c: Fix problem uncovered by gcc -Wunused-variable.
906 (adjust_frame_glyphs_for_window_redisplay): Make 'w' local to the
907 contexts that actually need it.
908
003fa8b6
EZ
9092011-02-26 Eli Zaretskii <eliz@gnu.org>
910
911 * s/msdos.h (HAVE_LSTAT): Define for DJGPP >= 2.04.
912 (lstat): Define for DJGPP < 2.04.
913
b1894766
PE
9142011-02-25 Paul Eggert <eggert@cs.ucla.edu>
915
916 * dired.c (Ffile_attributes): Increase size of modes from 10 to 12
917 as per recent filemodestring API change. Reported by Jonas Öster in
918 <http://lists.gnu.org/archive/html/emacs-devel/2011-02/msg01069.html>.
919
e18c0aa3 9202011-02-23 Ben Key <bkey76@gmail.com>
2c6584e8
BK
921
922 * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
923 directly, for bar cursors.
924
9252011-02-23 Chong Yidong <cyd@stupidchicken.com>
926
927 * xdisp.c (set_frame_cursor_types): Don't write an undefined value
928 into the frame's cursor_width.
929
617a0e83
SM
9302011-02-23 Stefan Monnier <monnier@iro.umontreal.ca>
931
932 * print.c (print_object): Never print old-style backquotes.
933 Obey escapeflag for hash tables as well.
934
cce7d530 9352011-02-23 Kenichi Handa <handa@m17n.org>
e3b300a4
KH
936
937 * font.c (font_open_entity): Be sure to set scaled_pixel_size.
cce7d530 938 (font_find_for_lface): Check if attrs[LFACE_HEIGHT_INDEX] is integer.
e3b300a4 939
8d40723d
PE
9402011-02-22 Paul Eggert <eggert@cs.ucla.edu>
941
942 * dired.c (Ffile_attributes): Simplify and avoid #ifdef.
943
aa0f73d1
WJ
9442011-02-22 Wolfgang Jenkner <wjenkner@inode.at> (tiny change)
945
946 * lread.c (openp): Correct Boolean typo in last commit.
947
bdaa0745
AR
9482011-02-22 Adrian Robert <Adrian.B.Robert@gmail.com>
949
950 * nsterm.m (EmacsView-keyDown:): Don't pass shift-only-modified
aa0f73d1 951 key to Emacs, treat as unmodified (go to input manager processing).
bdaa0745 952
f68c809d
PE
9532011-02-22 Paul Eggert <eggert@cs.ucla.edu>
954
955 Assume S_ISLNK etc. work, since gnulib supports this.
956 * config.in: Regenerate.
957 * dired.c (lstat): Remove.
958 (file_name_completion): Assume S_ISDIR works.
959 (file_name_completion_stat): Assume S_ISLNK works.
960 Do not bother calling stat unless lstat says it's a symlink.
961 * fileio.c (S_ISLNK, S_ISFIFO, S_ISREG, lstat): Remove.
962 (Fcopy_file): Assume S_ISREG and S_ISLNK work.
963 (check_writable, Ffile_writable_p, Fset_file_times):
964 Assume S_ISDIR works.
965 (Ffile_readable_p): Use S_IFIFO, not S_ISFIFO, to guess whether
966 fifos exist.
2f8f196d 967 (Ffile_regular_p, Finsert_file_contents): Assume S_ISREG works.
f68c809d
PE
968 * filelock.c (S_ISLNK): Remove.
969 * lread.c (openp): Assume S_ISDIR works.
970 * xrdb.c (S_ISDIR): Remove.
971
25c51af3
EZ
9722011-02-21 Eli Zaretskii <eliz@gnu.org>
973
974 * makefile.w32-in ($(BLD)/filemode.$(O)): Move recipe to
2f8f196d 975 lib/makefile.w32-in.
25c51af3
EZ
976 ($(BLD)/dired.$(O)): Depend on $(EMACS_ROOT)/lib/filemode.h.
977 (GLOBAL_SOURCES): Remove filemode.c.
978 (OBJ1): Remove $(BLD)/filemode.$(O).
979
5c185672
PE
9802011-02-21 Paul Eggert <eggert@cs.ucla.edu>
981
982 Import filemode module from gnulib.
983 * Makefile.in (base_obj): Remove filemode.o, as it's now in ../lib.
984 * deps.mk (dired.o): Depend on ../lib/filemode.h, too.
985 (filemode.o): Remove; this is now in ../lib.
986 * dired.c: Include <filemode.h>.
987 (filemodestring): Remove now-redundant decl.
988 * config.in: Regenerate.
989
32159fc3
CS
9902011-02-20 Eli Zaretskii <eliz@gnu.org>
991
992 * makefile.w32-in ($(BLD)/fns.$(O)): Depend on
993 $(EMACS_ROOT)/lib/md5.h and on stamp_BLD.
994
2f8f196d 9952011-02-20 Christoph Scholtes <cschol2112@gmail.com>
32159fc3
CS
996
997 * makefile.w32-in: Remove md5.$(O).
998 ($(BLD)/md5.$(O)): Remove prerequisites, moved to
999 lib/makefile.w32-in.
1000
61353ac8 10012011-02-20 Paul Eggert <eggert@cs.ucla.edu>
ff05203e 1002
61353ac8
PE
1003 Import crypto/md5 and stdint modules from gnulib.
1004 * Makefile.in (base_obj): Remove md5.o, since this file
1005 is in lib now.
1006 * config.in: Regenerate.
1007 * md5.h, md5.h: Move to ../lib.
1008 * deps.mk (md5.o): Remove.
1009 (fns.o): Depend on ../lib/md5.h, not md5.h.
1010
9d9d12cd
EZ
10112011-02-19 Eli Zaretskii <eliz@gnu.org>
1012
f601db19
EZ
1013 * termcap.c (tputs): Don't declare baud_rate.
1014
9d9d12cd
EZ
1015 * s/msdos.h (strtold): Define to _strtold.
1016
aa56f361
SM
10172011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1018
cbe81f1d
SM
1019 * process.c (Fstart_process, Fmake_serial_process)
1020 (Fmake_network_process, server_accept_connection):
1021 Use empty_unibyte_string.
1022
1023 * alloc.c (make_unibyte_string): Don't SET_UNIBYTE redundantly.
1024
aa56f361
SM
1025 * lread.c (Qdir_ok): New constant.
1026 (syms_of_lread): Initialize it.
1027 (openp): Don't ignore directories if the predicate returns dir-ok.
1028
d6de49a1
EZ
10292011-02-18 Eli Zaretskii <eliz@gnu.org>
1030
42af913d
EZ
1031 * xdisp.c (display_line): Fix the change made for bug#7939.
1032
d6de49a1
EZ
1033 * terminal.c (create_terminal): Use default-keyboard-coding-system
1034 and default-terminal-coding-system to initialize coding systems of
1035 the new terminal. (Bug#7840)
1036
b286858c
SM
10372011-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
1038
1039 * lisp.h (BYTE_MARK_STACK): New macro.
1040 (mark_byte_stack): Only declare if BYTE_MARK_STACK is set.
1041
1042 * bytecode.c (BYTE_MAINTAIN_TOP): New macros.
1043 (struct byte_stack): Only define `top' and `bottom' if used.
1044 (mark_byte_stack): Only define if used.
1045 (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): Nullify if BYTE_MAINTAIN_TOP
1046 is not set.
1047 (Fbyte_code): Don't set `bottom' unless BYTE_MAINTAIN_TOP is set.
1048
1049 * term.c (OUTPUT_IF): Use OUTPUT.
1050
1051 * alloc.c (Fgarbage_collect): When using stack scanning, don't
1052 redundantly scan byte-code stacks, catchlist, and handlerlist.
1053
124c9ff0
JD
10542011-02-17 Jan Djärv <jan.h.d@swipnet.se>
1055
1056 * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
1057 (Fns_read_file_name): Replace B_ with BVAR.
1058
1059 * nsterm.m (ns_term_init): Use KVAR.
1060
05c65251
EZ
10612011-02-16 Eli Zaretskii <eliz@gnu.org>
1062
026d69ec
EZ
1063 * msdos.c (internal_terminal_init): Use KVAR.
1064
05c65251
EZ
1065 * w32fns.c (Fx_create_frame): Use KVAR.
1066
1067 * w32term.c (w32_create_terminal): Use KVAR.
1068
1069 * s/ms-w32.h (MODE_LINE_BINARY_TEXT): Remove.
eef5ce6e 1070 (getloadavg): Declare prototype which was removed from lisp.h.
05c65251
EZ
1071
1072 * xdisp.c (decode_mode_spec): Don't use MODE_LINE_BINARY_TEXT.
1073
b286858c
SM
1074 * fileio.c (Finsert_file_contents, Fwrite_region):
1075 Remove references to buffer_file_type.
05c65251
EZ
1076 (syms_of_fileio): Don't intern and staticpro
1077 find-buffer-file-type.
1078
1079 * callproc.c (syms_of_callproc): Remove references to
1080 buffer_file_type.
1081
1082 * buffer.c (reset_buffer_local_variables): Don't set
1083 buffer_file_type.
1084 (init_buffer_once): Likewise.
1085 (syms_of_buffer): Don't define buffer-file-type.
1086
1087 * buffer.h (struct buffer): Remove buffer_file_type.
1088
1344aad4
TT
10892011-02-16 Tom Tromey <tromey@parfait>
1090
15f58304
EZ
1091 * callint.c (Fcall_interactively): Update for change to field names.
1092 * doc.c (Fsubstitute_command_keys): Update for change to field names.
1093 * cmds.c (Fself_insert_command): Update for change to field names.
1344aad4 1094 * keymap.c (Fcurrent_active_maps, Fkey_binding)
15f58304 1095 (Fdescribe_buffer_bindings): Update for change to field names.
1344aad4
TT
1096 * macros.c (Fstart_kbd_macro, end_kbd_macro, Fend_kbd_macro)
1097 (store_kbd_macro_char, Fcall_last_kbd_macro, Fexecute_kbd_macro):
15f58304 1098 Update for change to field names.
1344aad4
TT
1099 * keyboard.c (echo_char, echo_dash, echo_now, cancel_echoing)
1100 (echo_length, echo_truncate, cmd_error, command_loop_1)
1101 (read_char, kbd_buffer_store_event_hold, make_lispy_event)
1102 (menu_bar_items, tool_bar_items, read_char_minibuf_menu_prompt)
1103 (read_key_sequence, Fcommand_execute, Fexecute_extended_command)
1104 (Fdiscard_input, init_kboard, init_keyboard, mark_kboards):
15f58304
EZ
1105 Update for change to field names.
1106 * xfns.c (Fx_create_frame): Update for change to field names.
1107 * xterm.c (x_connection_closed, x_term_init): Update for change to
1108 field names.
1344aad4 1109 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN, init_tty):
15f58304 1110 Update for change to field names.
1344aad4 1111 * window.c (window_scroll_pixel_based, window_scroll_line_based):
15f58304 1112 Update for change to field names.
1344aad4 1113 * frame.c (make_frame_without_minibuffer, Fhandle_switch_frame)
15f58304 1114 (delete_frame): Update for change to field names.
1344aad4
TT
1115 * lisp.h (DEFVAR_KBOARD): Update for change to field names.
1116 * keyboard.h (struct kboard): Rename all Lisp_Object fields.
1117 (KBOARD_INTERNAL_FIELD, KVAR): New macros.
1118
eb4916d7
TT
11192011-02-16 Tom Tromey <tromey@redhat.com>
1120
1121 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Use BVAR.
1122
4b4deea2
TT
11232011-02-16 Tom Tromey <tromey@parfait>
1124
1125 * xfns.c (x_create_tip_frame, Fx_show_tip): Replace B_ with BVAR.
1126 * xfaces.c (compute_char_face): Replace B_ with BVAR.
1127 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1128 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1129 (with_echo_area_buffer, setup_echo_area_for_printing)
1130 (set_message_1, update_menu_bar, update_tool_bar)
1131 (text_outside_line_unchanged_p, redisplay_internal)
1132 (try_scrolling, try_cursor_movement, redisplay_window)
1133 (try_window_reusing_current_matrix, row_containing_pos)
1134 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1135 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1136 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1137 (get_window_cursor_type, note_mouse_highlight): Replace B_ with
1138 BVAR.
1139 * window.c (window_display_table, unshow_buffer, window_loop)
1140 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1141 (select_window, Fforce_window_update, temp_output_buffer_show)
1142 (Fset_window_configuration, save_window_save): Replace B_ with
1143 BVAR.
1144 * w32fns.c (x_create_tip_frame, Fx_show_tip, Fw32_shell_execute):
1145 Replace B_ with BVAR.
1146 * undo.c (record_point, record_insert, record_delete)
1147 (record_marker_adjustment, record_first_change)
1148 (record_property_change, Fundo_boundary, truncate_undo_list)
1149 (Fprimitive_undo): Replace B_ with BVAR.
1150 * syntax.h (Vstandard_syntax_table, CURRENT_SYNTAX_TABLE)
1151 (SETUP_BUFFER_SYNTAX_TABLE): Replace B_ with BVAR.
1152 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1153 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1154 (skip_syntaxes, scan_lists): Replace B_ with BVAR.
1155 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1156 (string_match_1, fast_looking_at, newline_cache_on_off)
1157 (search_command, search_buffer, simple_search, boyer_moore)
1158 (Freplace_match): Replace B_ with BVAR.
1159 * process.c (get_process, list_processes_1, Fstart_process)
1160 (Fmake_serial_process, Fmake_network_process)
1161 (read_process_output, send_process, exec_sentinel)
1162 (status_notify, setup_process_coding_systems): Replace B_ with
1163 BVAR.
1164 * print.c (PRINTDECLARE, PRINTPREPARE, PRINTFINISH, printchar)
1165 (strout, print_string, temp_output_buffer_setup, print_object):
1166 Replace B_ with BVAR.
1167 * msdos.c (IT_frame_up_to_date): Replace B_ with BVAR.
b286858c
SM
1168 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer):
1169 Replace B_ with BVAR.
4b4deea2
TT
1170 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
1171 (set_marker_both, set_marker_restricted_both, unchain_marker):
1172 Replace B_ with BVAR.
1173 * lread.c (readchar, unreadchar, openp, readevalloop)
1174 (Feval_buffer, Feval_region): Replace B_ with BVAR.
1175 * lisp.h (DOWNCASE_TABLE, UPCASE_TABLE): Replace B_ with BVAR.
1176 * keymap.c (Flocal_key_binding, Fuse_local_map)
1177 (Fcurrent_local_map, push_key_description)
1178 (Fdescribe_buffer_bindings): Replace B_ with BVAR.
1179 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1180 (read_key_sequence): Replace B_ with BVAR.
1181 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Replace B_ with BVAR.
1182 * intervals.c (set_point_both, get_local_map): Replace B_ with
1183 BVAR.
1184 * insdel.c (check_markers, insert_char, insert_1_both)
1185 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1186 (adjust_after_replace, replace_range, del_range_2)
1187 (modify_region, prepare_to_modify_buffer)
1188 (Fcombine_after_change_execute): Replace B_ with BVAR.
1189 * indent.c (buffer_display_table, recompute_width_table)
1190 (width_run_cache_on_off, current_column, scan_for_column)
1191 (Findent_to, position_indentation, compute_motion, vmotion):
1192 Replace B_ with BVAR.
1193 * fringe.c (get_logical_cursor_bitmap)
1194 (get_logical_fringe_bitmap, update_window_fringes): Replace B_
1195 with BVAR.
1196 * frame.c (make_frame_visible_1): Replace B_ with BVAR.
1197 * font.c (font_at): Replace B_ with BVAR.
1198 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1199 Replace B_ with BVAR.
1200 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1201 (unlock_buffer): Replace B_ with BVAR.
1202 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1203 (Ffile_regular_p, Ffile_selinux_context)
1204 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1205 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1206 (Finsert_file_contents, choose_write_coding_system)
1207 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1208 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1209 (Fdo_auto_save, Fset_buffer_auto_saved): Replace B_ with BVAR.
1210 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1211 (save_excursion_restore, Fprevious_char, Fchar_before)
1212 (general_insert_function, Finsert_char, Finsert_byte)
1213 (make_buffer_string_both, Finsert_buffer_substring)
1214 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1215 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1216 (Ftranslate_region_internal, save_restriction_restore)
1217 (Fchar_equal): Replace B_ with BVAR.
1218 * dispnew.c (Fframe_or_buffer_changed_p): Replace B_ with BVAR.
1219 * dispextern.h (WINDOW_WANTS_MODELINE_P)
1220 (WINDOW_WANTS_HEADER_LINE_P): Replace B_ with BVAR.
1221 * dired.c (directory_files_internal): Replace B_ with BVAR.
1222 * data.c (swap_in_symval_forwarding, set_internal)
1223 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1224 Replace B_ with BVAR.
1225 * composite.c (fill_gstring_header)
1226 (composition_compute_stop_pos, composition_adjust_point)
1227 (Ffind_composition_internal): Replace B_ with BVAR.
1228 * coding.c (decode_coding, encode_coding)
1229 (make_conversion_work_buffer, decode_coding_gap)
1230 (decode_coding_object, encode_coding_object)
1231 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
1232 (Funencodable_char_position, Fcheck_coding_systems_region):
1233 Replace B_ with BVAR.
1234 * cmds.c (Fself_insert_command, internal_self_insert): Replace B_
1235 with BVAR.
1236 * charset.c (Ffind_charset_region): Replace B_ with BVAR.
1237 * character.h (FETCH_CHAR_ADVANCE, INC_BOTH, DEC_BOTH)
1238 (ASCII_CHAR_WIDTH): Replace B_ with BVAR.
1239 * character.c (chars_in_text, Fget_byte): Replace B_ with BVAR.
1240 * category.h (Vstandard_category_table): Replace B_ with BVAR.
1241 * category.c (check_category_table, Fcategory_table)
1242 (Fset_category_table, char_category_set): Replace B_ with BVAR.
1243 * casetab.c (Fcurrent_case_table, set_case_table): Replace B_ with
1244 BVAR.
1245 * casefiddle.c (casify_object, casify_region): Replace B_ with
1246 BVAR.
1247 * callproc.c (Fcall_process, Fcall_process_region): Replace B_
1248 with BVAR.
1249 * callint.c (check_mark, Fcall_interactively): Replace B_ with
1250 BVAR.
1251 * bytecode.c (Fbyte_code): Replace B_ with BVAR.
1252 * buffer.h (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE, BVAR): Replace B_
1253 with BVAR.
1254 * buffer.c (Fbuffer_live_p, Fget_file_buffer)
1255 (get_truename_buffer, Fget_buffer_create)
1256 (clone_per_buffer_values, Fmake_indirect_buffer, reset_buffer)
1257 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1258 (Fbuffer_local_value, buffer_lisp_local_variables)
1259 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1260 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1261 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1262 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1263 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1264 (Fbuffer_swap_text, swapfield_, Fbuffer_swap_text)
1265 (Fset_buffer_multibyte, swap_out_buffer_local_variables)
1266 (record_overlay_string, overlay_strings, init_buffer_once)
1267 (init_buffer, syms_of_buffer): Replace B_ with BVAR.
1268
8678d9e4 12692011-02-16 Eli Zaretskii <eliz@gnu.org>
a73d395b
EZ
1270
1271 * xdisp.c (redisplay_internal): Resynchronize `w' if the selected
1272 window is changed inside calls to do_pending_window_change.
1273 (Bug#8020)
1274
1f5d53eb
PE
12752011-02-16 Paul Eggert <eggert@cs.ucla.edu>
1276
1277 Remove no-longer needed getloadavg symbols.
1278 * m/alpha.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1279 * m/amdx86-64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1280 * m/ia64.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1281 * m/ibms390.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1282 * m/macppc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1283 * m/sparc.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1284 * m/template.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1285 * m/vax.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Remove.
1286 * s/aix4-2.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1287 * s/bsd-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove #undef.
1288 * s/hpux10-20.h (KERNEL_FILE, LOAD_AVE_TYPE, LOAD_AVE_CVT):
1289 (LDAV_SYMBOL): Remove.
1290 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE): Remove.
1291 * s/usg5-4-common.h (KERNEL_FILE, LDAV_SYMBOL): Remove.
1292
1293 Import getloadavg module from gnulib.
1294 * deps.mk (getloadavg.o): Remove; gnulib now does this.
1295 * lisp.h (getloadavg) [!defined HAVE_GETLOADAVG]: Remove; gnulib
1296 now does this.
1297 * src/s/freebsd.h (HAVE_GETLOADAVG): Remove; gnulib now does this.
1298 * src/s/netbsd.h (HAVE_GETLOADAVG): Likewise.
1299 * config.in: Regenerate.
1300
8017fd6b
EZ
13012011-02-15 Eli Zaretskii <eliz@gnu.org>
1302
1303 * nsfns.m (ns_set_name_as_filename, Fns_read_file_name): Use B_.
1304
75b43359
MWD
13052011-02-14 Michael Welsh Duggan <md5i@md5i.com>
1306
1307 * print.c (float_to_string): Ensure that a decimal point is
1308 printed if using dtoastr (Bug#8033).
1309
fc3ca113
EZ
13102011-02-14 Eli Zaretskii <eliz@gnu.org>
1311
1f5d53eb 1312 * msdos.c (IT_frame_up_to_date):
ef72f149
EZ
1313 * s/msdos.h (MODE_LINE_BINARY_TEXT): Use B_ for the MS-DOS build.
1314
fc3ca113
EZ
1315 * dired.c (directory_files_internal):
1316 * fileio.c (Finsert_file_contents):
1317 * insdel.c (prepare_to_modify_buffer):
1318 * xdisp.c (pos_visible_p):
1319 * s/ms-w32.h (MODE_LINE_BINARY_TEXT):
1320 * w32fns.c (Fw32_shell_execute, Fx_show_tip, x_create_tip_frame):
1321 Use B_ for the MS-Windows build.
1322
3928f2b6
JD
13232011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1324
1325 * xrdb.c (x_load_resources): For LUCID and XFT, don't put a
1326 resource that specifies helvetica for menus and dialogs.
1327
1328 * xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
1329 (apply_systemfont_to_menu): Set resources *menubar*font and
1330 *popup*font. Remove defflt.
b286858c
SM
1331 (set_frame_menubar, create_and_show_popup_menu):
1332 Call apply_systemfont_to_menu before lw_create_widget.
3928f2b6 1333
4bb81cc2
TT
13342011-02-14 Tom Tromey <tromey@redhat.com>
1335
fc3ca113
EZ
1336 * buffer.c (init_buffer_once, syms_of_buffer): Use B_ in DOS_NT case.
1337
4bb81cc2
TT
1338 * keyboard.h: Remove obsolete comment.
1339
5d8ea120
TT
13402011-02-14 Tom Tromey <tromey@parfait>
1341
1342 * composite.c (fill_gstring_header)
1343 (composition_compute_stop_pos, composition_adjust_point)
1344 (Ffind_composition_internal): Use B_.
1345 * intervals.c (set_point_both, get_local_map): Use B_.
1346 * callproc.c (Fcall_process, Fcall_process_region): Use B_.
1347 * process.c (get_process, list_processes_1, Fstart_process)
1348 (Fmake_serial_process, Fmake_network_process)
1349 (read_process_output, send_process, exec_sentinel)
1350 (status_notify, setup_process_coding_systems): Use B_.
1351 * bytecode.c (Fbyte_code): Use B_.
1352 * syntax.c (update_syntax_table, dec_bytepos, Fsyntax_table)
1353 (Fset_syntax_table, Fmodify_syntax_entry, skip_chars)
1354 (skip_syntaxes, scan_lists): Use B_.
1355 * lread.c (readchar, unreadchar, openp, readevalloop)
1356 (Feval_buffer, Feval_region): Use B_.
1357 * print.c (printchar, strout, print_string, PRINTDECLARE)
1358 (PRINTPREPARE, PRINTFINISH, temp_output_buffer_setup)
1359 (print_object): Use B_.
1360 * font.c (font_at): Use B_.
b286858c
SM
1361 * fns.c (Fbase64_encode_region, Fbase64_decode_region, Fmd5):
1362 Use B_.
5d8ea120
TT
1363 * callint.c (check_mark, Fcall_interactively): Use B_.
1364 * editfns.c (region_limit, Fmark_marker, save_excursion_save)
1365 (save_excursion_restore, Fprevious_char, Fchar_before)
1366 (general_insert_function, Finsert_char, Finsert_byte)
1367 (make_buffer_string_both, Finsert_buffer_substring)
1368 (Fcompare_buffer_substrings, subst_char_in_region_unwind)
1369 (subst_char_in_region_unwind_1, Fsubst_char_in_region)
1370 (Ftranslate_region_internal, save_restriction_restore)
1371 (Fchar_equal): Use B_.
1372 * data.c (swap_in_symval_forwarding, set_internal)
1373 (Fmake_local_variable, Fkill_local_variable, Flocal_variable_p):
1374 Use B_.
1375 * undo.c (record_point, record_insert, record_delete)
1376 (record_marker_adjustment, record_first_change)
1377 (record_property_change, Fundo_boundary, truncate_undo_list)
1378 (Fprimitive_undo): Use B_.
1379 * search.c (compile_pattern_1, compile_pattern, looking_at_1)
1380 (string_match_1, fast_looking_at, newline_cache_on_off)
1381 (search_command, search_buffer, simple_search, boyer_moore)
1382 (Freplace_match): Use B_.
1383 * indent.c (buffer_display_table, recompute_width_table)
1384 (width_run_cache_on_off, current_column, scan_for_column)
b286858c
SM
1385 (Findent_to, position_indentation, compute_motion, vmotion):
1386 Use B_.
5d8ea120
TT
1387 * casefiddle.c (casify_object, casify_region): Use B_.
1388 * casetab.c (Fcurrent_case_table, set_case_table): Use B_.
1389 * cmds.c (Fself_insert_command, internal_self_insert): Use B_.
1390 * fileio.c (Fexpand_file_name, Ffile_directory_p)
1391 (Ffile_regular_p, Ffile_selinux_context)
1392 (Fset_file_selinux_context, Ffile_modes, Fset_file_modes)
1393 (Fset_file_times, Ffile_newer_than_file_p, decide_coding_unwind)
1394 (Finsert_file_contents, choose_write_coding_system)
1395 (Fwrite_region, build_annotations, Fverify_visited_file_modtime)
1396 (Fset_visited_file_modtime, auto_save_error, auto_save_1)
1397 (Fdo_auto_save, Fset_buffer_auto_saved): Use B_.
1398 * minibuf.c (read_minibuf, get_minibuffer, Fread_buffer): Use B_.
1399 * marker.c (Fmarker_buffer, Fset_marker, set_marker_restricted)
b286858c
SM
1400 (set_marker_both, set_marker_restricted_both, unchain_marker):
1401 Use B_.
5d8ea120
TT
1402 * insdel.c (check_markers, insert_char, insert_1_both)
1403 (insert_from_string_1, insert_from_gap, insert_from_buffer_1)
1404 (adjust_after_replace, replace_range, del_range_2)
1405 (modify_region, prepare_to_modify_buffer)
1406 (Fcombine_after_change_execute): Use B_.
1407 * filelock.c (unlock_all_files, Flock_buffer, Funlock_buffer)
1408 (unlock_buffer): Use B_.
1409 * keymap.c (Flocal_key_binding, Fuse_local_map)
1410 (Fcurrent_local_map, push_key_description)
1411 (Fdescribe_buffer_bindings): Use B_.
1412 * keyboard.c (command_loop_1, read_char_minibuf_menu_prompt)
1413 (read_key_sequence): Use B_.
1414 * fringe.c (get_logical_cursor_bitmap)
1415 (get_logical_fringe_bitmap, update_window_fringes): Use B_.
1416 * xfns.c (x_create_tip_frame, Fx_show_tip): Use B_.
1417 * xfaces.c (compute_char_face): Use B_.
1418 * character.c (chars_in_text, Fget_byte): Use B_.
1419 * category.c (check_category_table, Fcategory_table)
1420 (Fset_category_table, char_category_set): Use B_.
1421 * coding.c (decode_coding, encode_coding)
1422 (make_conversion_work_buffer, decode_coding_gap)
1423 (decode_coding_object, encode_coding_object)
1424 (Fdetect_coding_region, Ffind_coding_systems_region_internal)
b286858c
SM
1425 (Funencodable_char_position, Fcheck_coding_systems_region):
1426 Use B_.
5d8ea120
TT
1427 * charset.c (Ffind_charset_region): Use B_.
1428 * window.c (window_display_table, unshow_buffer, window_loop)
1429 (window_min_size_2, set_window_buffer, Fset_window_buffer)
1430 (select_window, Fforce_window_update, temp_output_buffer_show)
1431 (Fset_window_configuration, save_window_save): Use B_.
1432 * xdisp.c (pos_visible_p, init_iterator, reseat_1)
1433 (message_dolog, update_echo_area, ensure_echo_area_buffers)
1434 (with_echo_area_buffer, setup_echo_area_for_printing)
1435 (set_message_1, update_menu_bar, update_tool_bar)
1436 (text_outside_line_unchanged_p, redisplay_internal)
1437 (try_scrolling, try_cursor_movement, redisplay_window)
1438 (try_window_reusing_current_matrix, row_containing_pos)
1439 (try_window_id, get_overlay_arrow_glyph_row, display_line)
1440 (Fcurrent_bidi_paragraph_direction, display_mode_lines)
1441 (decode_mode_spec_coding, decode_mode_spec, display_count_lines)
1442 (get_window_cursor_type, note_mouse_highlight): Use B_.
1443 * frame.c (make_frame_visible_1): Use B_.
1444 * dispnew.c (Fframe_or_buffer_changed_p): Use B_.
1445 * dispextern.h (WINDOW_WANTS_HEADER_LINE_P)
1446 (WINDOW_WANTS_MODELINE_P): Use B_.
1447 * syntax.h (Vstandard_syntax_table): Update.
1448 (CURRENT_SYNTAX_TABLE, SETUP_BUFFER_SYNTAX_TABLE): Use B_.
1449 * intervals.h (TEXT_PROP_MEANS_INVISIBLE): Update.
1450 (TEXT_PROP_MEANS_INVISIBLE): Use B_.
1451 * character.h (FETCH_CHAR_ADVANCE): Update.
1452 (INC_BOTH, ASCII_CHAR_WIDTH, DEC_BOTH): Use B_.
1453 * category.h (Vstandard_category_table): Update.
1454 * lisp.h (DEFVAR_BUFFER_DEFAULTS): Update for change to field
1455 names.
1456 (DOWNCASE_TABLE, UPCASE_TABLE): Use B_.
1457 * buffer.c (swapfield_): New macro.
1458 (Fbuffer_swap_text): Use swapfield_ where appropriate.
1459 (Fbuffer_live_p, Fget_file_buffer, get_truename_buffer)
1460 (Fget_buffer_create, clone_per_buffer_values)
1461 (Fmake_indirect_buffer, reset_buffer)
1462 (reset_buffer_local_variables, Fbuffer_name, Fbuffer_file_name)
1463 (Fbuffer_local_value, buffer_lisp_local_variables)
1464 (Fset_buffer_modified_p, Frestore_buffer_modified_p)
1465 (Frename_buffer, Fother_buffer, Fbuffer_enable_undo)
1466 (Fkill_buffer, Fset_buffer_major_mode, set_buffer_internal_1)
1467 (set_buffer_temp, Fset_buffer, set_buffer_if_live)
1468 (Fbarf_if_buffer_read_only, Fbury_buffer, Ferase_buffer)
1469 (Fbuffer_swap_text, Fset_buffer_multibyte)
1470 (swap_out_buffer_local_variables, record_overlay_string)
1471 (overlay_strings, init_buffer_once, init_buffer, syms_of_buffer):
1472 Use B_.
1473 * buffer.h (struct buffer): Rename all Lisp_Object fields.
1474 (BUFFER_INTERNAL_FIELD, B_): New macro.
1475 (FETCH_CHAR, FETCH_CHAR_AS_MULTIBYTE): Use B_.
1476
42f60557
JD
14772011-02-14 Jan Djärv <jan.h.d@swipnet.se>
1478
1479 * gtkutil.c (xg_tool_bar_menu_proxy): Handle case when tool bar label
1480 is null.
1481
2f9a22e2
J
14822011-02-13 Jan Djärv <jan.h.d@swipnet.se>
1483
1484 * callproc.c (Fcall_process):
1485 * process.c (create_process): Replace Gtk with GConf in SIGPIPE
1486 comment.
1487
84eb0351 14882011-02-12 Martin Rudalics <rudalics@gmx.at>
bae1fa42
MR
1489
1490 * window.c (select_window): Check inhibit_point_swap argument when
1491 deciding whether to return immediately.
1492
84eb0351 14932011-02-12 Jan Djärv <jan.h.d@swipnet.se>
9aabf64c
JD
1494
1495 * nsterm.m (setFrame, initFrame): Make sure pixel_height doesn't become
1496 zero (Bug#7348).
1497
84eb0351
CY
14982011-02-12 Chong Yidong <cyd@stupidchicken.com>
1499
1500 * config.in (TERMINFO): New definition.
1501
1502 * s/netbsd.h: Use it to choose between terminfo and termcap
1503 (Bug#7642).
1504
33d605d0
PE
15052011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1506
1507 * md5.c (md5_process_bytes): Use sizeof, not __alignof__.
1508 The difference doesn't matter here, in practice, and sizeof is
1509 more portable to non-GCC compilers. Also, this makes the code
1510 match the already-existing comment.
1511
c0ad4ea5
AS
15122011-02-12 Andreas Schwab <schwab@linux-m68k.org>
1513
1514 * process.c (create_process): Reset SIGPIPE handler in the child.
1515 * callproc.c (Fcall_process): Likewise. (Bug#5238)
1516
50fd938f
EZ
15172011-02-12 Eli Zaretskii <eliz@gnu.org>
1518
1519 * xdisp.c <this_line_min_pos>: New variable.
1520 (move_it_in_display_line_to): Record in this_line_min_pos the
1521 smallest position iterated across.
1522 (display_line): Use this_line_min_pos to record the smallest
1523 position in the line even if it is not displayed due to
1524 hscrolling. (Bug#7939)
1525
af59aa6e
PE
15262011-02-12 Paul Eggert <eggert@cs.ucla.edu>
1527
cec81b22
PE
1528 Port to Sun C 5.11, which has __attribute__ ((__aligned (N))).
1529 * md5.h (ATTRIBUTE_ALIGNED): New macro.
1530 (struct md5_ctx): Use it.
1531
af59aa6e
PE
1532 Port to Solaris 10, which doesn't support FC_HINT_STYLE.
1533 * xftfont.c (FC_HINT_STYLE): #define to "hintstyle" if not
1534 defined.
1535 * xsettings.c (parse_settings, apply_xft_settings): Don't assume
1536 FC_HINT_STYLE is supported.
1537
02c3706c
JD
15382011-02-11 Jan Djärv <jan.h.d@swipnet.se>
1539
1540 * xterm.c (x_set_frame_alpha): Access data before it is free:d.
1541 Make sure we don't do x_catch_errors twice.
1542
5ac75e8f
GM
15432011-02-10 Glenn Morris <rgm@gnu.org>
1544
1545 * Makefile.in (really-lwlib): Depend on globals.h, for parallel builds.
1546
d37f40ed
EZ
15472011-02-09 Eli Zaretskii <eliz@gnu.org>
1548
5ac75e8f
GM
1549 * makefile.w32-in (GLOBAL_SOURCES, SOME_MACHINE_OBJECTS, obj):
1550 New macros.
d37f40ed
EZ
1551 (globals.h, gl-stamp): New targets.
1552 (clean): Clean gl-stamp and globals.h.
1553
33cd3ee4
AS
15542011-02-09 Andreas Schwab <schwab@linux-m68k.org>
1555
1556 * Makefile.in (gl-stamp): Create globals.h here.
1557 (globals.h): Don't do it here.
1558 (mostlyclean): Clean globals.h and gl-stamp.
1559
f9f2e7f5
PE
15602011-02-09 Paul Eggert <eggert@cs.ucla.edu>
1561
1562 * Makefile.in ($(otherobj)): Depend on globals.h.
1563 Otherwise 'make -j10' failed on my host, because the build lacked
1564 necessary dependencies, e.g., vm-limit.o depends on globals.h.
1565
00b3c7ac
TT
15662011-02-08 Tom Tromey <tromey@redhat.com>
1567
1568 * Makefile.in (NS_OBJC_OBJ): New variable.
1569 (base_obj): Rename from 'obj'.
1570 (obj): New variable.
1571 (globals.h, gl-stamp, $(obj)): New targets.
1572 (GLOBAL_SOURCES): New variable.
1573 * globals.h: Remove.
1574 * nsselect.m (Vselection_alist): Define. Reverts part of
1575 2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
1576 * buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
1577 variable.
1578 * xselect.c (Vselection_alist): Define. Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
1579
8f3b2e12
KH
15802011-02-08 Kenichi Handa <handa@m17n.org>
1581
1582 * font.c (Ffont_get): Do not cache :otf value.
1583
4f043d0f
PE
15842011-02-07 Paul Eggert <eggert@cs.ucla.edu>
1585
1586 conform to C89 pointer rules
1587
1588 * dired.c (scmp, file_name_completion):
1589 Change types between char * and unsigned char *, to satisfy C89
1590 rules about pointer type compatibility.
47ce90e4 1591 * casefiddle.c (casify_object, casify_region): Likewise.
a7e979a4 1592 * search.c (Freplace_match, Fregexp_quote): Likewise.
90256841
PE
1593 * alloc.c (make_string, make_specified_string, make_pure_string):
1594 Likewise.
57ace6d0 1595 * data.c (Fstring_to_number): Likewise.
09125ef8
PE
1596 * print.c (float_to_string, PRINTFINISH, printchar, strout):
1597 (print_object): Likewise.
e7f8264d
PE
1598 * editfns.c (init_editfns, Fchar_to_string, Fbyte_to_string):
1599 (Fuser_full_name, Fsubst_char_in_region, Ftranslate_region_internal):
1600 (Fformat): Likewise.
a2db9982 1601 * callint.c (Fcall_interactively): Likewise.
f1e59824
PE
1602 * fns.c (string_make_multibyte, string_to_multibyte):
1603 (string_make_unibyte, Fstring_as_unibyte, Fstring_to_unibyte):
1604 (Fbase64_encode_region, base64_encode_1, Fbase64_decode_region, Fmd5):
1605 Likewise.
4a25e32a 1606 * lread.c (read1, hash_string): Likewise.
400a67ff
PE
1607 * process.c (read_process_output, send_process, Fprocess_send_region):
1608 Likewise.
0ca76b1e 1609 * callproc.c (Fcall_process): Likewise.
7469ef5d
PE
1610 * doprnt.c (doprnt): Likewise.
1611 * indent.c (compute_motion): Likewise.
efe0234f 1612 * xfont.c (xfont_decode_coding_xlfd): Likewise.
3ce2f8ac 1613 * ralloc.c (resize_bloc): Likewise.
b19beacc 1614 * image.c (tiff_load): Likewise.
c45e5276 1615 * xml.c (make_dom, parse_region): Likewise.
7469ef5d
PE
1616 * character.c (strwidth): Make its argument const char *, not const
1617 unsigned char *, since more callers prefer it that way. All callers
1618 changed.
4f043d0f 1619
9eee99eb
PE
16202011-02-06 Paul Eggert <eggert@cs.ucla.edu>
1621
4c83cffc
PE
1622 * xterm.c (x_alloc_nearest_color_1): Avoid unportable int assumption.
1623 Emacs assumes two's complement elsewhere, but the assumption is
1624 easy to remove here, and this suppresses a warning with Sun C 5.8.
1625
82470039
PE
1626 conform to C89 pointer rules
1627
1628 * xterm.c (x_draw_fringe_bitmap, handle_one_xevent, x_bitmap_icon):
1629 (same_x_server, x_term_init):
9eee99eb
PE
1630 Change types between char * and unsigned char *, to satisfy C89
1631 rules about pointer type compatibility.
82470039
PE
1632 * doc.c (get_doc_string, Fsnarf_documentation):
1633 (Fsubstitute_command_keys): Likewise.
5f742c1b
PE
1634 * xfns.c (Fx_open_connection, Fx_window_property): Likewise.
1635 * bitmaps/gray.xbm (gray_bits): Likewise.
b8dc29e9 1636 * image.c (xbm_read_bitmap_data, xbm_load_image, xbm_load): Likewise.
847c0824
PE
1637 * keyboard.c (echo_char, MULTI_LETTER_MOD, tty_read_avail_input):
1638 Likewise.
01c9aa3a 1639 * keymap.c (Ftext_char_description): Likewise.
637de37e 1640 * minibuf.c (Fread_buffer): Likewise.
5976c3fe
PE
1641 * fileio.c (IS_DRIVE) [defined WINDOWSNT]:
1642 (DRIVE_LETTER) [defined DOS_NT]:
1643 (report_file_error, Ffile_name_directory, Ffile_name_nondirectory):
1644 (make_temp_name, Fexpand_file_name, file_name_absolute_p):
1645 (search_embedded_absfilename, Fsubstitute_in_file_name):
1646 (barf_or_query_if_file_exists, Fmake_directory_internal):
1647 (Fdelete_directory_internal, Ffile_name_absolute_p, read_non_regular):
1648 (Finsert_file_contents, Fwrite_region):
1649 Likewise.
b68864e5
PE
1650 * insdel.c (insert, insert_and_inherit, insert_before_markers):
1651 (insert_before_markers_and_inherit, insert_1, insert_1_both):
1652 Likewise. This changes these functions' signatures, which is
1653 more convenient since most callers use char *. All remaining
1654 callers changed.
1655 * editfns.c (general_insert_function): Change signature to
1656 match changes to insert functions' signatures.
b286858c
SM
1657 * keymap.c (map_keymap_char_table_item, map_keymap_internal):
1658 Use explicit cast when converting between void * and function pointer
01c9aa3a 1659 types, as C89 requires this.
9eee99eb 1660
32299e33
PE
16612011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1662
1663 don't ignore chdir failure
1664 * sysdep.c (sys_subshell) [!defined DOS_NT]: Diagnose chdir
1665 failure and exit.
1666 (sys_subshell) [defined DOS_NT]: Mark with a FIXME the two
1667 remaining unchecked chdir calls in this function; some DOS/NT
1668 expert needs to fix them.
1669 * emacs.c (main): Mark with a FIXME the unchecked chdir calls
1670 in this function; some NextStep expert needs to fix them.
1671
233ba4d9 16722011-02-05 Glenn Morris <rgm@gnu.org>
95838641
GM
1673
1674 * xfaces.c (Finternal_set_lisp_face_attribute):
1675 Try to clarify some error messages. (Bug#2659)
1676
233ba4d9 16772011-02-05 Stefan Monnier <monnier@iro.umontreal.ca>
aca092ac
SM
1678
1679 * editfns.c (save_restriction_restore): Don't forget to invalidate the
1680 current_column cache (bug#7946).
1681
233ba4d9 16822011-02-05 Kenichi Handa <handa@m17n.org>
ea2460a0
KH
1683
1684 * ftfont.c (ftfont_open): Use FC_DUAL only when it is defined.
1685
1686 * xftfont.c (xftfont_open): Likewise.
1687
233ba4d9 16882011-02-05 Andreas Schwab <schwab@linux-m68k.org>
29feb0e9
AS
1689
1690 * window.c (Fselect_window): Add missing return value.
1691
d67985d3
PE
16922011-02-05 Paul Eggert <eggert@cs.ucla.edu>
1693
25a48bd0
PE
1694 xstrcasecmp: conform to C89 pointer rules
1695 * xfaces.c (xstrcasecmp): Change args from const unsigned char *
1696 to const char *, since they're usually low-level C strings, and
1697 this stays compatible with C89 pointer rules. All callers changed.
1698
2f8f196d 1699 * charset.c: Conform to C89 pointer rules.
dfb6afda
PE
1700 (define_charset_internal): Switch between char * and unsigned char *.
1701
2f8f196d 1702 * xmenu.c: Conform to C89 const rules.
cc618f4e
PE
1703 (xmenu_show, xdialog_show): Declare local var as char *, not
1704 const char *, to stay compatible with C89 const rules.
1705
2f8f196d 1706 * xdisp.c: Conform to C89 pointer rules.
9bcaafce
PE
1707 (store_mode_line_noprop, display_string, reseat_to_string):
1708 (c_string_pos, number_of_chars, message_dolog):
1709 (message_log_check_duplicate, set_message_1, store_mode_line_noprop):
1710 (display_mode_element, display_string):
1711 Switch between char * and unsigned char * to stay compatible wth
1712 C89 pointer rules.
1713
2f8f196d 1714 * regex.c: Conform to C89 pointer rules.
5b0534c8
PE
1715 (re_wctype): Add cast, as C89 does not allow assigning between
1716 char * and unsigned char *.
1717 (regex_compile): Likewise.
1718
d67985d3
PE
1719 sync from gnulib to remove HAVE_STDBOOL_H
1720 * config.in: Regenerate.
1721
a5d733f5
EZ
17222011-02-04 Eli Zaretskii <eliz@gnu.org>
1723
f90e08f5
EZ
1724 * makefile.w32-in (LISP_H, PROCESS_H): New variables.
1725 Replace all uses of lisp.h with $(LISP_H), and all uses of
1726 process.h with $(PROCESS_H).
1727 ($(BLD)/editfns.$(O)): Depend on ../lib/strftime.h.
1728 ($(BLD)/print.$(O)): Depend on ../lib/ftoastr.h and ../lib/intprops.h.
1729
be50df37
EZ
1730 * deps.mk: Update for recent changes: gnutls support, gnulib
1731 imports, addition of globals.h.
1732
f90e08f5
EZ
1733 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on
1734 ../lib/ignore-value.h.
a5d733f5 1735
67342916
PE
17362011-02-03 Paul Eggert <eggert@cs.ucla.edu>
1737
1738 allow C code to suppress warnings about ignored return values
1739
1740 We need to go through the code and for each such warning, either
1741 fix the code to pay attention to the returned value, or tell GCC
1742 that we really do want to ignore the returned value. Here is one
1743 example of how to do the latter.
1744 * sysdep.c: Include <ignore-value.h>.
1745 (sys_subshell): Suppress an undesirable warning about not checking
1746 the returned value of 'write', as there's nothing useful one can
1747 do with that returned value.
1748
36941b32
JD
17492011-02-03 Jan Djärv <jan.h.d@swipnet.se>
1750
1751 * xterm.c (x_connection_closed): Remove all calls that calls
1752 XSync (Bug#7949).
1753
3082f617
EZ
17542011-02-01 Eli Zaretskii <eliz@gnu.org>
1755
1756 * image.c (tiff_load): Avoid compiler warning in 2nd arg to
1757 TIFFClientOpen.
1758
4df0af9b
JD
17592011-02-01 Jan Djärv <jan.h.d@swipnet.se>
1760
1761 * xsmfns.c (ice_connection_closed): Call delete_read_fd.
1762 (x_session_check_input): Change args and return type so it can be used
1763 as argument to add_read_fd. Make static. Remove call to select.
1764 Call kbd_buffer_store_event for emacs_event.
1765 (smc_save_yourself_CB): Also store initial argv to SmRestartCommand.
1766 (ice_conn_watch_CB): Call add_read_fd.
1767
1768 * xterm.c (XTread_socket): Remove HAVE_X_SM block with call to
1769 x_session_check_input.
1770 (x_session_initialized): Remove definition.
1771 (x_initialize): Remove setting of x_session_initialized.
1772
1773 * xterm.h (x_session_check_input): Remove declaration.
1774
a4180391
PE
17752011-02-01 Paul Eggert <eggert@cs.ucla.edu>
1776
1777 format-time-string now supports subsecond time stamp resolution
b286858c 1778 * editfns.c (emacs_nmemftime): Rename from emacs_memftimeu,
a4180391
PE
1779 for consistency with its new argument and with gnulib nstrftime.
1780 All callers changed. New argument NS.
1781 (Fformat_time_string): Check that the time argument's microseconds
1782 component, if any, is in range; this avoids integer overflow and
1783 also nstrftime needs this. Document %N.
1784
14beddf4 17852011-01-31 Andreas Schwab <schwab@linux-m68k.org>
df61c790
AS
1786
1787 * image.c (DEF_IMGLIB_FN): Add parameter rettype, use it instead
1788 of int. All uses adjusted.
1789 (PNG_JMPBUF, png_load, jpeg_load, tiff_load, gif_load)
1790 (svg_load_image): Remove casts.
1791
14beddf4 17922011-01-31 Chong Yidong <cyd@stupidchicken.com>
7f9c5df9
CY
1793
1794 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
1795 function definitions for compiling with libpng-1.5.
1796 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
1797 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
1798 (Bug#7908).
1799
70b0d280
EZ
18002011-01-31 Eli Zaretskii <eliz@gnu.org>
1801
8b3c625b
EZ
1802 * s/ms-w32.h (HAVE_STRFTIME): Don't define.
1803
70b0d280
EZ
1804 * makefile.w32-in (OBJ2): Remove strftime.$(O).
1805 ($(BLD)/strftime.$(O)): Remove prerequisites.
1806
16fab143
PE
18072011-01-31 Paul Eggert <eggert@cs.ucla.edu>
1808
1809 src/emacs.c now gets version number from configure.in
1810 * emacs.c (emacs_version): Set to VERSION so that it
1811 is determined automatically from ../configure.in.
1812
546961a9
JM
18132011-01-31 Jim Meyering <meyering@redhat.com>
1814
1815 * charset.c (load_charset_map): Don't deref NULL on failed malloc.
1816 Use xmalloc rather than malloc.
1817
42a5b22f
PE
18182011-01-30 Paul Eggert <eggert@cs.ucla.edu>
1819
16c3e636
PE
1820 strftime: import from gnulib
1821 * Makefile.in (obj): Remove strftime.o, as gnulib now does this for us.
1822 * deps.mk (strftime.o): Remove.
1823 * editfns.c: Include <strftime.h>, supplied by gnulib.
1824 (emacs_strftimeu): Remove decl.
1825 (emacs_memftimeu): Use nstrftime (the gnulib name) rather than
1826 emacs_strftimeu.
1827 * config.in: Regenerate.
1828 * strftime.c: Remove; we now use strftime from gnulib.
1829
42a5b22f
PE
1830 Use SSDATA when the context wants char *.
1831 * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c:
1832 * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c:
1833 * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c:
1834 * lread.c, minibuf.c, print.c, process.c, search.c, widget.c:
1835 * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c:
1836 Use SSDATA (not SDATA) when the context of the expression wants
1837 char * (not unsigned char *).
1838
2787bba3
JD
18392011-01-30 Jan Djärv <jan.h.d@swipnet.se>
1840
1841 * .gdbinit: Read global lisp variables as globals.f_V*.
1842
4ec88040
AS
18432011-01-30 Andreas Schwab <schwab@linux-m68k.org>
1844
1845 * font.c (PROP_MATCH): Remove parameter N and use strlen instead.
1846 All uses changed.
1847 (PROP_SAVE): Likewise.
1848
b6bcd048
CY
18492011-01-29 Chong Yidong <cyd@stupidchicken.com>
1850
1851 * keyboard.c (make_lispy_position): Fix typo in last change
1852 (Bug#7935).
1853
f915f0f7
EZ
18542011-01-29 Eli Zaretskii <eliz@gnu.org>
1855
1856 * s/ms-w32.h (HAVE_MKTIME): Remove.
1857
1858 * makefile.w32-in (LOCAL_FLAGS): Add -I../lib.
1859 (GNULIB): New variable.
1860 (LIBS): Add $(GNULIB).
1861 $(TEMACS): Depend on $(GNULIB).
1862 <top-level>: Fix font-lock disrupted by a lone `"'.
1863
497a1925
JD
18642011-01-29 Jan Djärv <jan.h.d@swipnet.se>
1865
1866 * nsselect.m (ns_string_from_pasteboard): Get length of string
1867 and use make_string instead of build_string (Bug#7934).
1868 (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
1869 instead of stringWithUTF8String (Bug#7934).
1870
2f8f196d 18712011-01-29 Anders Lindgren <andlind@gmail.com> (tiny change)
481ae085 1872
2f8f196d
JB
1873 * nsfont.m (nsfont_open): Ensure that fonts with inexact
1874 descenders would not become one pixel too tall (Bug#7887).
481ae085 1875
6b918613
CY
18762011-01-28 Chong Yidong <cyd@stupidchicken.com>
1877
1878 * keyboard.c (make_lispy_position): For clicks on right fringe or
1879 margin, compute text position using the X coordinate relative to
1880 the left of the text area (Bug#7839).
1881
9e269017
KH
18822011-01-28 Kenichi Handa <handa@m17n.org>
1883
1884 * ftfont.c (ftfont_spec_pattern): Check each extra property
1885 value.
1886
17dd1fc8
SM
18872011-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
1888
1889 * xdisp.c (safe_eval_handler): Distinguish symbols and strings.
1890
372fb76b
CY
18912011-01-27 Chong Yidong <cyd@stupidchicken.com>
1892
1893 * font.c (font_parse_fcname): Undefine a temporary macro.
1894
e7f7fbaa
SM
18952011-01-26 Stefan Monnier <monnier@iro.umontreal.ca>
1896
1897 Let the debugger continue to the normal handler (bug#7825).
1898 * eval.c (maybe_call_debugger): Declare before new use.
1899 (find_handler_clause): Don't call debugger any more.
1900 Ignore Vstack_trace_on_error.
1901 Use XCAR/XCDR.
1902 (syms_of_eval): Remove Vstack_trace_on_error.
1903 (Fsignal): Only modify handlerlist when we know we need to do it.
1904 Call the debugger when necessary.
1905 * globals.h (Vstack_trace_on_error): Remove.
1906
6608a7d8
CY
19072011-01-26 Chong Yidong <cyd@stupidchicken.com>
1908
1909 * font.c (font_parse_fcname): Rewrite GTK font name parser.
1910
06d8ace5 19112011-01-25 Stefan Monnier <monnier@iro.umontreal.ca>
f996bbcb
SM
1912
1913 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
1914 the buffer's point-max (bug#7876).
1915
06d8ace5 19162011-01-25 Chong Yidong <cyd@stupidchicken.com>
19634648
CY
1917
1918 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
06d8ace5 1919 Remove unused case (Bug#6811).
19634648 1920
8ab70320
JD
19212011-01-23 Jan Djärv <jan.h.d@swipnet.se>
1922
1923 * nsterm.m (x_set_offset): Set dont_constrain to 0 so the call to
1924 setFrameTopLeftPoint is constrained.
1925
51b59d79
PE
19262011-01-23 Paul Eggert <eggert@cs.ucla.edu>
1927
9055082e
PE
1928 Check return values of some library calls.
1929 * emacs.c (main): Check dup result.
1930 * frame.c: Include <limits.h>, for INT_MIN and INT_MAX.
1931 (frame_name_fnn_p): Check strtol result.
1932
5c7d01a5 1933 * image.c (x_create_bitmap_from_xpm_data): Add cast to fix type clash
f77fabaf
PE
1934 when calling XpmCreatePixmapFromData.
1935
51b59d79
PE
1936 Promote SSDATA macro from gtkutil.c and xsmfns.c to lisp.h.
1937 * lisp.h (SSDATA): New macro.
1938 All uses of (char *) SDATA (x) replaced with SSDATA (x),
1939 and all uses of (unsigned char *) SDATA (x) replaced with SDATA (x).
1940 * gtkutil.c (SSDATA): Remove, as lisp.h now defines this.
1941 * xsmfns.c (SSDATA): Likewise.
1942
e6b84b30
MR
19432011-01-22 Martin Rudalics <rudalics@gmx.at>
1944
1945 * window.c (select_window): New function.
1946 (Fselect_window): Call it.
1947 (inhibit_point_swap): Variable deleted.
1948 (Fset_window_configuration): Call select_window directly.
1949
3fb69558
JD
19502011-01-22 Jan Djärv <jan.h.d@swipnet.se>
1951
1952 * nsterm.m (constrainFrameRect): Only constrain the first time called.
1953
449ab399
JD
19542011-01-21 Jan Djärv <jan.h.d@swipnet.se>
1955
e2f79c8d
JD
1956 * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
1957 screen, not the window screen.
1958 (x_set_window_size): Remove constraints.
1959 Calculate origin.y only if zooming is 0 and without referring to a
1960 screen.
1961 (windowWillResize): Don't modify frameSize.
1962 (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
1963 (initFrameFromEmacs): Initialize ns_userRect.
1964 (windowShouldZoom): Set zooming to one. Remove all other code.
1965 (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
1966 Zero it after restore.
1967 (constrainFrameRect): New method for EmacsWindow.
1968 (mouseDragged): Always post NSWindowDidResizeNotification after call to
1969 windowWillResize.
1970
1971 * nsterm.h (ns_output): Add dont_constrain and zooming.
1972 (EmacsView): Add ns_userRect.
1973
449ab399
JD
1974 * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
1975 if ns_alternate_modifier is none.
1976
e885315d
JD
19772011-01-20 Jan Djärv <jan.h.d@swipnet.se>
1978
1979 * unexmacosx.c: Add comment about include order.
1980
bb1c6663
GM
19812011-01-20 Glenn Morris <rgm@gnu.org>
1982
c11136ec
GM
1983 * minibuf.c (syms_of_minibuf) <read-expression-history>:
1984 Give it a doc string.
1985 * globals.h: Add Vread_expression_history.
1986
bb1c6663
GM
1987 * macros.c (syms_of_macros) <kbd-macro-termination-hook>:
1988 Give it a doc string.
1989 * globals.h: Add Vkbd_macro_termination_hook.
1990
9aea757b
CY
19912011-01-20 Chong Yidong <cyd@stupidchicken.com>
1992
1993 * fns.c (Fyes_or_no_p): Revert 2011-01-07 change, removing ARGS.
1994
e1ef0dac
PE
19952011-01-19 Paul Eggert <eggert@cs.ucla.edu>
1996
1997 Fix X11 compilation failure.
1998 * globals.h (struct emacs_globals): Document f_Vselection_alist.
1999 * xselect.c (Vselection_alist): Remove declaration, moving its
2000 documentation to globals.h. This fixes a compilation failure
2001 induced by the earlier change to globals.h today.
2002
fb9d0f5a
JD
20032011-01-19 Jan Djärv <jan.h.d@swipnet.se>
2004
8beb828a
JD
2005 * unexmacosx.c: Include config.h before unistd.h (Bug#7859).
2006
fb9d0f5a
JD
2007 * nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
2008 (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
2009 (ns_input_spi_name, ns_input_spi_arg)
2010 (ns_alternate_modifier, ns_right_alternate_modifier)
2011 (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
2012 (ns_right_control_modifier, ns_function_modifier)
2013 (ns_antialias_text, ns_confirm_quit): Move to globals.h.
2014 (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
2015 (x_underline_at_descent_line): Remove declaration.
2016 (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
2017
01c35094 2018 * nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks)
fb9d0f5a
JD
2019 (Vselection_alist, Vselection_converter_alist): Move to globals.h.
2020 (syms_of_nsselect): Remove & from DEFVAR_LISP.
2021
2022 * nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
2023 Remove declaration.
2024
2025 * nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
2026 globals.h.
2027 (syms_of_nsfont): Remove & from DEFVAR_LISP.
2028
2029 * nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
2030 (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
2031 (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
2032
2033 * globals.h (struct emacs_globals): Add f_ns_input_file,
2034 f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
2035 f_ns_input_color, f_ns_input_text, f_ns_working_text,
2036 f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
2037 f_ns_right_alternate_modifier, f_ns_command_modifier,
2038 f_ns_right_command_modifier, f_ns_control_modifier,
2039 f_ns_right_control_modifier, f_ns_function_modifier,
2040 f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
2041 f_Vns_version_string, f_Vns_sent_selection_hooks,
2042 f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
2043 and corresponding defines.
2044
4e55715e
SS
20452011-01-19 Sam Steingold <sds@gnu.org>
2046
2047 * w32.c (check_windows_init_file): Remove declarations of
2048 Vwindow_system, Vload_path, Qfile_exists_p to fix compilation.
817a735d 2049 * w32fns.c: Fix an error introduced by the previous patch.
4e55715e 2050
ef79d2fa
TT
20512011-01-19 Tom Tromey <tromey@redhat.com>
2052
2053 * window.c: Fix error introduced by previous patch.
2054
29208e82
TT
20552011-01-18 Tom Tromey <tromey@parfait>
2056
2057 * globals.h: New file.
2058 * xterm.h (Vx_pixel_size_width_font_regexp): Remove declaration.
2059 * window.h (Vinitial_window_system, Vminibuf_scroll_window)
2060 (Vwindow_system_version): Remove declaration.
2061 * w32term.h (Vw32_enable_palette)
2062 (Vx_pixel_size_width_font_regexp): Remove declaration.
2063 * w32menu.c (Voverriding_local_map)
2064 (Voverriding_local_map_menu_flag): Remove declaration.
2065 * w32inevt.c (Vw32_alt_is_meta, Vw32_apps_modifier)
2066 (Vw32_capslock_is_shiftlock, Vw32_enable_caps_lock)
2067 (Vw32_enable_num_lock, Vw32_lwindow_modifier)
2068 (Vw32_pass_lwindow_to_system, Vw32_pass_rwindow_to_system)
2069 (Vw32_phantom_key_code, Vw32_recognize_altgr)
2070 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2071 (w32_use_full_screen_buffer): Remove declaration.
2072 * w32.c (Vsystem_configuration, Vw32_downcase_file_names)
2073 (Vw32_generate_fake_inodes, Vw32_get_true_file_attributes)
2074 (w32_num_mouse_buttons, w32_pipe_read_delay): Remove declaration.
2075 * termopts.h (Vtruncate_partial_width_windows, inverse_video)
2076 (no_redraw_on_reenter, visible_bell): Remove declaration.
2077 * sysdep.c (Vsystem_name): Remove declaration.
2078 * syntax.h (parse_sexp_lookup_properties): Remove declaration.
2079 * menu.h (Vmenu_updating_frame): Remove declaration.
2080 * macros.h (Vexecuting_kbd_macro, executing_kbd_macro_index):
2081 Remove declaration.
2082 * lisp.h (Vafter_init_time, Vafter_load_alist)
2083 (Vauto_save_list_file_name, Vbefore_init_time, Vcommand_history)
2084 (Vcompletion_regexp_list, Vcurrent_load_list)
2085 (Vcurrent_prefix_arg, Vdata_directory, Vdebug_on_error)
2086 (Vdoc_directory, Vdoc_file_name, Vdynamic_library_alist)
2087 (Vexec_directory, Vexec_path, Vexec_suffixes)
2088 (Vface_font_rescale_alist, Vface_ignored_fonts, Vfeatures)
2089 (Vhelp_form, Vhistory_length, Vinhibit_field_text_motion)
2090 (Vinhibit_quit, Vinhibit_read_only, Vinhibit_redisplay)
2091 (Vinstallation_directory, Vinvocation_directory)
2092 (Vinvocation_name, Vload_file_rep_suffixes, Vload_history)
2093 (Vload_suffixes, Vmark_even_if_inactive, Vmemory_full)
2094 (Vmessage_log_max, Vobarray, Vprint_length, Vprint_level)
2095 (Vpurify_flag, Vquit_flag, Vsaved_region_selection)
2096 (Vscalable_fonts_allowed, Vselect_active_regions)
2097 (Vshell_file_name, Vstandard_input, Vstandard_output)
2098 (Vsystem_name, Vtemporary_file_directory, Vthrow_on_input)
2099 (Vtop_level, Vtty_erase_char, Vundo_outer_limit)
2100 (Vuser_login_name, Vwindow_scroll_functions)
2101 (Vwindow_system_version, Vx_no_window_manager)
2102 (Vx_resource_class, Vx_resource_name, baud_rate)
2103 (completion_ignore_case, debug_on_next_call, gc_cons_threshold)
2104 (history_delete_duplicates, inhibit_x_resources)
2105 (last_nonmenu_event, load_in_progress, max_specpdl_size)
2106 (minibuffer_auto_raise, print_escape_newlines, scroll_margin)
b286858c
SM
2107 (use_dialog_box, use_file_dialog): Remove declaration.
2108 Include globals.h.
29208e82 2109 * keymap.h (Voverriding_local_map)
b286858c
SM
2110 (Voverriding_local_map_menu_flag, meta_prefix_char):
2111 Remove declaration.
29208e82
TT
2112 * keyboard.h (Vdouble_click_time, Vfunction_key_map)
2113 (Vinput_method_function, Vkey_translation_map)
2114 (Vlucid_menu_bar_dirty_flag, Vthis_original_command)
2115 (do_mouse_tracking, extra_keyboard_modifiers)
2116 (num_nonmacro_input_events): Remove declaration.
2117 * intervals.h (Vchar_property_alias_alist)
2118 (Vdefault_text_properties, Vinhibit_point_motion_hooks)
2119 (Vtext_property_default_nonsticky): Remove declaration.
2120 * gtkutil.h (x_gtk_file_dialog_help_text)
2121 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2122 (x_gtk_whole_detached_tool_bar): Remove declaration.
2123 * frame.h (Vdefault_frame_alist, Vframe_alpha_lower_limit)
2124 (Vmenu_bar_mode, Vmouse_highlight, Vterminal_frame)
2125 (Vtool_bar_mode, Vx_resource_class, Vx_resource_name)
2126 (focus_follows_mouse): Remove declaration.
2127 * fontset.h (Valternate_fontname_alist, Vfontset_alias_alist)
2128 (Vignore_relative_composition, Votf_script_alist)
b286858c
SM
2129 (Vuse_default_ascent, Vvertical_centering_font_regexp):
2130 Remove declaration.
29208e82
TT
2131 * font.h (Vfont_log): Remove declaration.
2132 * dosfns.h (Vdos_display_scancodes, Vdos_version)
2133 (Vdos_windows_version, dos_codepage, dos_country_code)
2134 (dos_decimal_point, dos_hyper_key, dos_keyboard_layout)
b286858c
SM
2135 (dos_keypad_mode, dos_super_key, dos_timezone_offset):
2136 Remove declaration.
2137 * disptab.h (Vglyph_table, Vstandard_display_table):
2138 Remove declaration.
29208e82
TT
2139 * dispextern.h (Vface_remapping_alist, Vglyphless_char_display)
2140 (Vmouse_autoselect_window, Voverflow_newline_into_fringe)
2141 (Vshow_trailing_whitespace, Vtool_bar_button_margin)
2142 (Vtool_bar_style, cursor_in_echo_area, display_hourglass_p)
2143 (inverse_video, mode_line_in_non_selected_windows)
2144 (tool_bar_button_relief, tool_bar_max_label_size)
2145 (underline_minimum_offset)
2146 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2147 Remove declaration.
2148 * composite.h (Vauto_composition_function)
2149 (Vcomposition_function_table): Remove declaration.
2150 * commands.h (Vexecuting_kbd_macro)
2151 (Vminibuffer_local_completion_map)
2152 (Vminibuffer_local_filename_completion_map)
2153 (Vminibuffer_local_filename_must_match_map)
2154 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2155 (Vminibuffer_local_ns_map, Vthis_command)
2156 (Vunread_command_events, cursor_in_echo_area)
2157 (last_command_event, last_nonmenu_event, unread_command_char):
2158 Remove declaration.
2159 * coding.h (Vcoding_system_for_read, Vcoding_system_for_write)
2160 (Vdefault_file_name_coding_system)
2161 (Vdefault_process_coding_system, Vfile_name_coding_system)
2162 (Vlast_coding_system_used, Vlocale_coding_system)
2163 (Vselect_safe_coding_system_function)
2164 (Vtranslation_table_for_input, coding_system_require_warning)
2165 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
b286858c
SM
2166 (eol_mnemonic_unix, inherit_process_coding_system):
2167 Remove declaration.
2168 * charset.h (Vcharset_list, Vcurrent_iso639_language):
2169 Remove declaration.
29208e82
TT
2170 * character.h (Vauto_fill_chars, Vchar_direction_table)
2171 (Vchar_script_table, Vchar_width_table, Vprintable_chars)
2172 (Vscript_representative_chars, Vtranslation_table_vector)
2173 (Vunicode_category_table): Remove declaration.
2174 * ccl.h (Vfont_ccl_encoder_alist): Remove declaration.
2175 * buffer.h (Vafter_change_functions, Vbefore_change_functions)
2176 (Vdeactivate_mark, Vfirst_change_hook, Vtransient_mark_mode)
2177 (inhibit_modification_hooks): Remove declaration.
2178 * xterm.c (syms_of_xterm): Update.
2179 (Vx_alt_keysym, Vx_hyper_keysym, Vx_keysym_table)
2180 (Vx_meta_keysym, Vx_super_keysym, Vx_toolkit_scroll_bars)
2181 (x_mouse_click_focus_ignore_position)
2182 (x_underline_at_descent_line)
2183 (x_use_underline_position_properties): Remove.
2184 * xsmfns.c (syms_of_xsmfns): Update.
2185 (Vx_session_id, Vx_session_previous_id): Remove.
2186 * xsettings.c (syms_of_xsettings): Update.
2187 (Vxft_settings, use_system_font): Remove.
2188 * xselect.c (syms_of_xselect): Update.
2189 (Vselection_converter_alist, Vx_lost_selection_functions)
2190 (Vx_sent_selection_functions, x_selection_timeout): Remove.
2191 * xfns.c (syms_of_xfns): Update.
2192 (Vgtk_version_string, Vmotif_version_string)
2193 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2194 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2195 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2196 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2197 (Vx_sensitive_text_pointer_shape)
2198 (Vx_window_horizontal_drag_shape, x_gtk_file_dialog_help_text)
2199 (x_gtk_show_hidden_files, x_gtk_use_old_file_dialog)
2200 (x_gtk_use_system_tooltips, x_gtk_whole_detached_tool_bar):
2201 Remove.
2202 * xfaces.c (syms_of_xfaces): Update.
2203 (Vface_default_stipple, Vface_font_rescale_alist)
2204 (Vface_ignored_fonts, Vface_new_frame_defaults)
2205 (Vface_remapping_alist, Vfont_list_limit)
2206 (Vscalable_fonts_allowed, Vtty_defined_color_alist): Remove.
2207 * xdisp.c (syms_of_xdisp): Update.
2208 (Vauto_resize_tool_bars, Vblink_cursor_alist)
2209 (Vdisplay_pixels_per_inch, Vfontification_functions)
2210 (Vframe_title_format, Vglobal_mode_string)
2211 (Vglyphless_char_display, Vhourglass_delay, Vhscroll_step)
2212 (Vicon_title_format, Vinhibit_redisplay)
2213 (Vline_number_display_limit, Vline_prefix)
2214 (Vmax_mini_window_height, Vmenu_bar_update_hook)
2215 (Vmenu_updating_frame, Vmessage_log_max)
2216 (Vmouse_autoselect_window, Vnobreak_char_display)
2217 (Voverlay_arrow_position, Voverlay_arrow_string)
2218 (Voverlay_arrow_variable_list, Vredisplay_end_trigger_functions)
2219 (Vresize_mini_windows, Vshow_trailing_whitespace)
2220 (Vtool_bar_border, Vtool_bar_button_margin, Vtool_bar_style)
2221 (Vtruncate_partial_width_windows, Vvoid_text_area_pointer)
2222 (Vwindow_scroll_functions, Vwindow_size_change_functions)
2223 (Vwindow_text_change_functions, Vwrap_prefix)
2224 (auto_raise_tool_bar_buttons_p, automatic_hscrolling_p)
2225 (debug_end_pos, display_hourglass_p, emacs_scroll_step)
2226 (highlight_nonselected_windows, hscroll_margin)
2227 (inhibit_eval_during_redisplay, inhibit_free_realized_faces)
2228 (inhibit_menubar_update, inhibit_try_cursor_movement)
2229 (inhibit_try_window_id, inhibit_try_window_reusing)
2230 (line_number_display_limit_width)
2231 (make_cursor_line_fully_visible_p, message_truncate_lines)
2232 (mode_line_inverse_video, multiple_frames, overline_margin)
2233 (scroll_conservatively, scroll_margin, tool_bar_button_relief)
2234 (tool_bar_max_label_size, underline_minimum_offset)
2235 (unibyte_display_via_language_environment, x_stretch_cursor_p):
2236 Remove.
2237 * window.c (syms_of_window): Update.
2238 (Vminibuf_scroll_window, Vother_window_scroll_buffer)
2239 (Vrecenter_redisplay, Vscroll_preserve_screen_position)
2240 (Vtemp_buffer_show_function, Vwindow_configuration_change_hook)
2241 (Vwindow_point_insertion_type, auto_window_vscroll_p)
2242 (mode_line_in_non_selected_windows, next_screen_context_lines)
2243 (window_min_height, window_min_width): Remove.
2244 (scroll_margin): Remove declaration.
2245 * w32term.c (syms_of_w32term): Update.
2246 (Vw32_capslock_is_shiftlock, Vw32_grab_focus_on_raise)
2247 (Vw32_recognize_altgr, Vw32_swap_mouse_buttons)
2248 (Vx_toolkit_scroll_bars, w32_num_mouse_buttons)
2249 (w32_use_visible_system_caret, x_underline_at_descent_line)
2250 (x_use_underline_position_properties): Remove.
2251 (Vcommand_line_args, Vsystem_name, extra_keyboard_modifiers):
2252 Remove declaration.
2253 * w32select.c (syms_of_w32select): Update.
2254 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2255 * w32proc.c (syms_of_ntproc): Update.
2256 (Vw32_downcase_file_names, Vw32_generate_fake_inodes)
2257 (Vw32_get_true_file_attributes, Vw32_quote_process_args)
2258 (Vw32_start_process_inherit_error_mode)
2259 (Vw32_start_process_share_console)
2260 (Vw32_start_process_show_window, w32_pipe_read_delay): Remove.
2261 (Vsystem_name): Remove declaration.
2262 * w32font.c (syms_of_w32font): Update.
2263 (Vw32_charset_info_alist): Remove.
2264 * w32fns.c (globals_of_w32fns, syms_of_w32fns): Update.
2265 (Vw32_alt_is_meta, Vw32_apps_modifier, Vw32_bdf_filename_alist)
2266 (Vw32_color_map, Vw32_enable_caps_lock, Vw32_enable_num_lock)
2267 (Vw32_enable_palette, Vw32_lwindow_modifier)
2268 (Vw32_pass_alt_to_system, Vw32_pass_lwindow_to_system)
2269 (Vw32_pass_rwindow_to_system, Vw32_phantom_key_code)
2270 (Vw32_rwindow_modifier, Vw32_scroll_lock_modifier)
2271 (Vx_cursor_fore_pixel, Vx_hourglass_pointer_shape)
2272 (Vx_max_tooltip_size, Vx_mode_pointer_shape)
2273 (Vx_no_window_manager, Vx_nontext_pointer_shape)
2274 (Vx_pixel_size_width_font_regexp, Vx_pointer_shape)
2275 (Vx_sensitive_text_pointer_shape)
2276 (Vx_window_horizontal_drag_shape, w32_ansi_code_page)
2277 (w32_enable_synthesized_fonts, w32_mouse_button_tolerance)
2278 (w32_mouse_move_interval)
2279 (w32_pass_extra_mouse_buttons_to_system)
2280 (w32_pass_multimedia_buttons_to_system, w32_quit_key)
2281 (w32_strict_fontnames, w32_strict_painting): Remove.
2282 (Vhourglass_delay, Vmenu_bar_mode, Vtool_bar_mode)
2283 (Vw32_recognize_altgr, Vwindow_system_version)
b286858c
SM
2284 (w32_num_mouse_buttons, w32_use_visible_system_caret):
2285 Remove declaration.
29208e82
TT
2286 * w32console.c (syms_of_ntterm): Update.
2287 (w32_use_full_screen_buffer): Remove.
2288 (Vtty_defined_color_alist): Remove declaration.
2289 * w16select.c (syms_of_win16select): Update.
2290 (Vnext_selection_coding_system, Vselection_coding_system): Remove.
2291 * undo.c (syms_of_undo): Update.
2292 (Vundo_outer_limit, Vundo_outer_limit_function)
2293 (undo_inhibit_record_point, undo_limit, undo_strong_limit):
2294 Remove.
2295 * textprop.c (syms_of_textprop): Update.
2296 (Vchar_property_alias_alist, Vdefault_text_properties)
2297 (Vinhibit_point_motion_hooks, Vtext_property_default_nonsticky):
2298 Remove.
2299 * terminal.c (syms_of_terminal): Update.
2300 (Vdelete_terminal_functions, Vring_bell_function): Remove.
2301 * term.c (syms_of_term): Update.
2302 (Vresume_tty_functions, Vsuspend_tty_functions)
2303 (no_redraw_on_reenter, system_uses_terminfo, visible_cursor):
2304 Remove.
2305 * syntax.c (syms_of_syntax): Update.
2306 (Vfind_word_boundary_function_table, multibyte_syntax_as_symbol)
2307 (open_paren_in_column_0_is_defun_start)
2308 (parse_sexp_ignore_comments, parse_sexp_lookup_properties)
2309 (words_include_escapes): Remove.
2310 * search.c (syms_of_search): Update.
2311 (Vinhibit_changing_match_data, Vsearch_spaces_regexp): Remove.
2312 * process.c (syms_of_process): Update.
2313 (Vprocess_adaptive_read_buffering, Vprocess_connection_type)
2314 (delete_exited_processes): Remove.
2315 * print.c (syms_of_print): Update.
2316 (Vfloat_output_format, Vprint_charset_text_property)
2317 (Vprint_circle, Vprint_continuous_numbering, Vprint_gensym)
2318 (Vprint_length, Vprint_level, Vprint_number_table)
2319 (Vstandard_output, print_escape_multibyte)
2320 (print_escape_newlines, print_escape_nonascii, print_quoted):
2321 Remove.
2322 * msdos.c (syms_of_msdos): Update.
2323 (Vdos_unsupported_char_glyph): Remove.
2324 (unibyte_display_via_language_environment): Remove declaration.
2325 * minibuf.c (syms_of_minibuf): Update.
2326 (Vcompletion_regexp_list, Vhistory_add_new_input)
2327 (Vhistory_length, Vminibuffer_completing_file_name)
2328 (Vminibuffer_completion_confirm)
2329 (Vminibuffer_completion_predicate, Vminibuffer_completion_table)
2330 (Vminibuffer_exit_hook, Vminibuffer_help_form)
2331 (Vminibuffer_history_position, Vminibuffer_history_variable)
2332 (Vminibuffer_prompt_properties, Vminibuffer_setup_hook)
2333 (Vread_buffer_function, Vread_expression_map)
2334 (completion_ignore_case, enable_recursive_minibuffers)
2335 (history_delete_duplicates, minibuffer_allow_text_properties)
2336 (minibuffer_auto_raise, read_buffer_completion_ignore_case):
2337 Remove.
2338 * marker.c (syms_of_marker): Update.
2339 (byte_debug_flag): Remove.
2340 * macros.c (syms_of_macros): Update.
2341 (Vexecuting_kbd_macro, executing_kbd_macro_index): Remove.
2342 * lread.c (syms_of_lread): Update.
2343 (Vafter_load_alist, Vbyte_boolean_vars)
2344 (Vbytecomp_version_regexp, Vcurrent_load_list)
2345 (Veval_buffer_list, Vload_file_name, Vload_file_rep_suffixes)
2346 (Vload_history, Vload_path, Vload_read_function)
2347 (Vload_source_file_function, Vload_suffixes, Vobarray)
2348 (Vold_style_backquotes, Vpreloaded_file_list, Vread_circle)
2349 (Vread_symbol_positions_list, Vread_with_symbol_positions)
2350 (Vsource_directory, Vstandard_input, Vuser_init_file, Vvalues)
2351 (force_load_messages, load_convert_to_unibyte)
2352 (load_dangerous_libraries, load_force_doc_strings)
2353 (load_in_progress): Remove.
2354 * keymap.c (syms_of_keymap): Update.
2355 (Vdefine_key_rebound_commands, Vemulation_mode_map_alists)
2356 (Vminibuffer_local_completion_map)
2357 (Vminibuffer_local_filename_completion_map)
2358 (Vminibuffer_local_filename_must_match_map)
2359 (Vminibuffer_local_map, Vminibuffer_local_must_match_map)
2360 (Vminibuffer_local_ns_map, Vminor_mode_map_alist)
2361 (Vminor_mode_overriding_map_alist, Vwhere_is_preferred_modifier):
2362 Remove.
2363 * keyboard.c (syms_of_keyboard): Update.
2364 (Vauto_save_timeout, Vcommand_error_function)
2365 (Vcommand_hook_internal, Vdeactivate_mark)
2366 (Vdeferred_action_function, Vdeferred_action_list)
2367 (Vdisable_point_adjustment, Vdouble_click_time)
2368 (Vecho_keystrokes, Venable_disabled_menus_and_buttons)
2369 (Vfunction_key_map, Vglobal_disable_point_adjustment)
2370 (Vhelp_char, Vhelp_event_list, Vhelp_form)
2371 (Vinput_method_function, Vinput_method_previous_message)
2372 (Vkey_translation_map, Vlast_event_frame)
2373 (Vlucid_menu_bar_dirty_flag, Vmenu_bar_final_items)
2374 (Vminibuffer_message_timeout, Voverriding_local_map)
2375 (Voverriding_local_map_menu_flag, Vpost_command_hook)
2376 (Vpre_command_hook, Vprefix_help_command)
2377 (Vsaved_region_selection, Vselect_active_regions)
2378 (Vshow_help_function, Vspecial_event_map, Vsuggest_key_bindings)
2379 (Vthis_command, Vthis_command_keys_shift_translated)
2380 (Vthis_original_command, Vthrow_on_input, Vtimer_idle_list)
2381 (Vtimer_list, Vtool_bar_separator_image_expression, Vtop_level)
2382 (Vtty_erase_char, Vunread_command_events)
2383 (Vunread_input_method_events, Vunread_post_input_method_events)
2384 (auto_save_interval, cannot_suspend, do_mouse_tracking)
2385 (double_click_fuzz, extra_keyboard_modifiers)
2386 (inhibit_local_menu_bar_menus, last_command_event)
2387 (last_input_event, last_nonmenu_event, menu_prompt_more_char)
2388 (menu_prompting, meta_prefix_char, num_input_keys)
2389 (num_nonmacro_input_events, polling_period, unread_command_char):
2390 Remove.
2391 * insdel.c (syms_of_insdel): Update.
2392 (Vcombine_after_change_calls, check_markers_debug_flag): Remove.
2393 * indent.c (syms_of_indent): Update.
2394 (indent_tabs_mode): Remove.
2395 * image.c (syms_of_image): Update.
2396 (Vimage_cache_eviction_delay, Vimage_types)
2397 (Vimagemagick_render_type, Vmax_image_size, Vx_bitmap_file_path)
2398 (cross_disabled_images): Remove.
2399 * fringe.c (syms_of_fringe): Update.
2400 (Vfringe_bitmaps, Voverflow_newline_into_fringe): Remove.
2401 * frame.c (syms_of_frame): Update.
2402 (Vdefault_frame_alist, Vdefault_frame_scroll_bars)
2403 (Vdelete_frame_functions, Vframe_alpha_lower_limit)
2404 (Vmake_pointer_invisible, Vmenu_bar_mode, Vmouse_highlight)
2405 (Vmouse_position_function, Vterminal_frame, Vtool_bar_mode)
2406 (Vx_resource_class, Vx_resource_name, focus_follows_mouse):
2407 Remove.
2408 * fontset.c (syms_of_fontset): Update.
2409 (Valternate_fontname_alist, Vfont_encoding_charset_alist)
2410 (Vfontset_alias_alist, Vignore_relative_composition)
2411 (Votf_script_alist, Vuse_default_ascent)
2412 (Vvertical_centering_font_regexp): Remove.
2413 * font.c (syms_of_font): Update.
2414 (Vfont_encoding_alist, Vfont_log, Vfont_slant_table)
2415 (Vfont_weight_table, Vfont_width_table): Remove.
2416 * fns.c (syms_of_fns): Update.
2417 (Vfeatures, use_dialog_box, use_file_dialog): Remove.
2418 * filelock.c (syms_of_filelock): Update.
2419 (Vtemporary_file_directory): Remove.
2420 * fileio.c (syms_of_fileio): Update.
2421 (Vafter_insert_file_functions, Vauto_save_include_big_deletions)
2422 (Vauto_save_list_file_name, Vauto_save_visited_file_name)
2423 (Vdefault_file_name_coding_system, Vfile_name_coding_system)
2424 (Vfile_name_handler_alist, Vinhibit_file_name_handlers)
2425 (Vinhibit_file_name_operation, Vset_auto_coding_function)
2426 (Vwrite_region_annotate_functions)
2427 (Vwrite_region_annotations_so_far)
2428 (Vwrite_region_post_annotation_function)
2429 (delete_by_moving_to_trash, write_region_inhibit_fsync): Remove.
2430 (Vw32_get_true_file_attributes): Remove declaration.
2431 * eval.c (syms_of_eval): Update.
2432 (Vdebug_ignored_errors, Vdebug_on_error, Vdebug_on_signal)
2433 (Vdebugger, Vinhibit_quit, Vmacro_declaration_function)
2434 (Vquit_flag, Vsignal_hook_function, Vstack_trace_on_error)
2435 (debug_on_next_call, debug_on_quit, debugger_may_continue)
2436 (max_lisp_eval_depth, max_specpdl_size): Remove.
2437 * emacs.c (syms_of_emacs): Update.
2438 (Vafter_init_time, Vbefore_init_time, Vcommand_line_args)
2439 (Vdynamic_library_alist, Vemacs_copyright, Vemacs_version)
2440 (Vinstallation_directory, Vinvocation_directory)
2441 (Vinvocation_name, Vkill_emacs_hook, Vpath_separator)
2442 (Vprevious_system_messages_locale, Vprevious_system_time_locale)
2443 (Vsystem_configuration, Vsystem_configuration_options)
2444 (Vsystem_messages_locale, Vsystem_time_locale, Vsystem_type)
2445 (inhibit_x_resources, noninteractive1): Remove.
2446 * editfns.c (syms_of_editfns): Update.
2447 (Vbuffer_access_fontified_property)
2448 (Vbuffer_access_fontify_functions, Vinhibit_field_text_motion)
2449 (Voperating_system_release, Vsystem_name, Vuser_full_name)
2450 (Vuser_login_name, Vuser_real_login_name): Remove.
2451 * dosfns.c (syms_of_dosfns): Update.
2452 (Vdos_display_scancodes, Vdos_version, Vdos_windows_version)
2453 (dos_codepage, dos_country_code, dos_decimal_point)
2454 (dos_hyper_key, dos_keyboard_layout, dos_keypad_mode)
2455 (dos_super_key, dos_timezone_offset): Remove.
2456 * doc.c (syms_of_doc): Update.
2457 (Vbuild_files, Vdoc_file_name): Remove.
2458 * dispnew.c (syms_of_display): Update.
2459 (Vglyph_table, Vinitial_window_system)
2460 (Vredisplay_preemption_period, Vstandard_display_table)
2461 (Vwindow_system_version, baud_rate, cursor_in_echo_area)
2462 (inverse_video, redisplay_dont_pause, visible_bell): Remove.
2463 * dired.c (syms_of_dired): Update.
2464 (Vcompletion_ignored_extensions): Remove.
2465 (Vw32_get_true_file_attributes): Remove declaration.
2466 * dbusbind.c (syms_of_dbusbind): Update.
2467 (Vdbus_debug, Vdbus_registered_buses)
2468 (Vdbus_registered_objects_table): Remove.
2469 * data.c (syms_of_data): Update.
2470 (Vmost_negative_fixnum, Vmost_positive_fixnum): Remove.
2471 * composite.c (syms_of_composite): Update.
2472 (Vauto_composition_function, Vauto_composition_mode)
2473 (Vcompose_chars_after_function, Vcomposition_function_table):
2474 Remove.
2475 * coding.c (syms_of_coding): Update.
2476 (Vcharset_revision_table, Vcoding_category_list)
2477 (Vcoding_system_alist, Vcoding_system_for_read)
2478 (Vcoding_system_for_write, Vcoding_system_list)
2479 (Vdefault_process_coding_system, Venable_character_translation)
2480 (Vfile_coding_system_alist, Vlast_code_conversion_error)
2481 (Vlast_coding_system_used, Vlatin_extra_code_table)
2482 (Vlocale_coding_system, Vnetwork_coding_system_alist)
2483 (Vprocess_coding_system_alist)
2484 (Vselect_safe_coding_system_function)
2485 (Vstandard_translation_table_for_decode)
2486 (Vstandard_translation_table_for_encode)
2487 (Vtranslation_table_for_input, coding_system_require_warning)
2488 (eol_mnemonic_dos, eol_mnemonic_mac, eol_mnemonic_undecided)
2489 (eol_mnemonic_unix, inherit_process_coding_system)
2490 (inhibit_eol_conversion, inhibit_iso_escape_detection)
2491 (inhibit_null_byte_detection): Remove.
2492 * cmds.c (syms_of_cmds): Update.
2493 (Vpost_self_insert_hook): Remove.
2494 * charset.c (syms_of_charset): Update.
2495 (Vcharset_list, Vcharset_map_path, Vcurrent_iso639_language)
2496 (inhibit_load_charset_map): Remove.
2497 * character.c (syms_of_character): Update.
2498 (Vauto_fill_chars, Vchar_direction_table, Vchar_script_table)
2499 (Vchar_width_table, Vprintable_chars)
2500 (Vscript_representative_chars, Vtranslation_table_vector)
2501 (Vunicode_category_table): Remove.
2502 * ccl.c (syms_of_ccl): Update.
2503 (Vcode_conversion_map_vector, Vfont_ccl_encoder_alist)
2504 (Vtranslation_hash_table_vector): Remove.
2505 * category.c (syms_of_category): Update.
2506 (Vword_combining_categories, Vword_separating_categories): Remove.
2507 * callproc.c (syms_of_callproc): Update.
2508 (Vconfigure_info_directory, Vdata_directory, Vdoc_directory)
2509 (Vexec_directory, Vexec_path, Vexec_suffixes)
2510 (Vinitial_environment, Vprocess_environment)
2511 (Vshared_game_score_directory, Vshell_file_name): Remove.
2512 * callint.c (syms_of_callint): Update.
2513 (Vcommand_debug_status, Vcommand_history, Vcurrent_prefix_arg)
2514 (Vmark_even_if_inactive, Vmouse_leave_buffer_hook): Remove.
2515 * bytecode.c (syms_of_bytecode): Update.
2516 (Vbyte_code_meter, byte_metering_on): Remove.
2517 * buffer.c (syms_of_buffer): Update.
2518 (Vafter_change_functions, Vbefore_change_functions)
2519 (Vchange_major_mode_hook, Vfirst_change_hook)
2520 (Vinhibit_read_only, Vkill_buffer_query_functions)
2521 (Vtransient_mark_mode, inhibit_modification_hooks): Remove.
2522 * alloc.c (syms_of_alloc): Update.
2523 (Vgc_cons_percentage, Vgc_elapsed, Vmemory_full)
2524 (Vmemory_signal_data, Vpost_gc_hook, Vpurify_flag)
2525 (cons_cells_consed, floats_consed, garbage_collection_messages)
2526 (gc_cons_threshold, gcs_done, intervals_consed)
2527 (misc_objects_consed, pure_bytes_used, string_chars_consed)
2528 (strings_consed, symbols_consed, vector_cells_consed): Remove.
2529
2530 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2531 (DEFVAR_INT): Assume global is in `globals'.
2532 * alloc.c (globals): Define.
2533
448c0820
TT
25342011-01-18 Tom Tromey <tromey@redhat.com>
2535
2536 * image.c (Vimagemagick_render_type): Remove redundant
2537 definition.
2538
8442d95d
TT
25392011-01-18 Tom Tromey <tromey@redhat.com>
2540
2541 * xdisp.c (emacs_scroll_step): Rename from scroll_step.
2542 (try_scrolling): Rename argument to 'arg_scroll_conservatively'.
2543 (redisplay_window): Update.
2544 (syms_of_xdisp): Update.
2545
cab0ba98
TT
25462011-01-18 Tom Tromey <tromey@redhat.com>
2547
2548 * gtkutil.h (x_gtk_use_old_file_dialog, x_gtk_show_hidden_files)
2549 (x_gtk_file_dialog_help_text, x_gtk_whole_detached_tool_bar):
2550 Declare.
2551 * gtkutil.c (xg_uses_old_file_dialog):
2552 (xg_get_file_with_chooser):
2553 (xg_tool_bar_detach_callback): Don't redeclare globals.
2554
422745d0
TT
25552011-01-18 Tom Tromey <tromey@redhat.com>
2556
2557 * lisp.h (DEFVAR_BUFFER_DEFAULTS): New macro.
2558 * buffer.c (syms_of_buffer): Use DEFVAR_BUFFER_DEFAULTS.
2559
7cae64b4
PE
25602011-01-18 Paul Eggert <eggert@cs.ucla.edu>
2561
2562 * lisp.h (DECL_ALIGN): Define if HAVE_ATTRIBUTE_ALIGNED, not if
2563 defined __GNUC__. ../configure now checks for this GCC feature,
2564 which is now also supported by IBM and Oracle compilers.
2565 (USE_LSB_TAG) [defined DECL_ALIGN]: Also define if defined __sun,
2566 since Solaris malloc returns mult-of-8.
2567
a9faac5c 25682011-01-18 Stefan Monnier <monnier@iro.umontreal.ca>
0514b4be
SM
2569
2570 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
2571
a3e44e79 25722011-01-17 Paul Eggert <eggert@cs.ucla.edu>
fa2c4f56 2573
6e8e6bf2
PE
2574 Give a name FLOAT_TO_STRING_BUFSIZE to the constant 350.
2575 * lisp.h (FLOAT_TO_STRING_BUFSIZE): New macro.
2576 * data.c (Fnumber_to_string): Use it.
2577 * print.c (float_to_string, print_object): Likewise.
2578
4004364e
PE
2579 Include <unistd.h> unilaterally.
2580 * alloc.c, atimer.c, buffer.c, callproc.c, dired.c, dispnew.c, doc.c:
2581 * doprnt.c, editfns.c, emacs.c, fileio.c, filelock.c, fns.c:
2582 * getloadavg.c, getpagesize.h, gmalloc.c, image.c, keyboard.c:
2583 * lread.c, process.c, process.h, ralloc.c, regex.c, sysdep.c:
2584 * systty.h, term.c, termcap.c, xfns.c, xrdb.c, xselect.c, xsmfns.c:
2585 * xterm.c:
2586 Include <unistd.h> without worrying about HAVE_UNISTD_H, since
2587 unistd.h is always present now, possibly supplied by gnulib.
2588
e84aba69
PE
2589 * mktime.c: Remove; moving to ../lib.
2590
1e11dbe3
PE
2591 Use gnulib's mktime module.
2592 * deps.mk (mktime.o): Remove rule.
2593
fa2c4f56
PE
2594 Use gnulib's ftoastr module.
2595 * print.c: Include ftoastr.h.
2596 (FLT_RADIX, DBL_MANT_DIG, DBL_DIG, DBL_MIN, DOUBLE_DIGITS_BOUND):
2597 Remove; no longer needed.
2598 (float_to_string): Use dtoastr rather than rolling our own code,
2599 which had an off-by-one bug on non-IEEE hosts.
2600
9a514d4a
PE
2601 Automate syncing from gnulib.
2602 * Makefile.in (lib): New macro.
2603 (ALL_CFLAGS): Add -I$(lib) -I$(srcdir)/../lib.
2604 ($(lib)/libgnu.a): New rule.
2605 (temacs$(EXEEXT)): Also link $(lib)/libgnu.a.
2606
717c30e0
PE
2607 * xfns.c (x_real_positions): Fix signedness of local var 'ign'.
2608 XGetGeometry wants unsigned int *, not int *, for its last 4 args,
2609 so change the type of 'ign' to unsigned int from int.
2610
8865d794
PE
2611 * regex.c (analyse_first): Remove unreachable 'continue' statement.
2612
4ef36a7b
PE
2613 * xterm.h (struct x_display_info): Remove stray semicolon.
2614 The extra semicolon didn't conform to the C standard.
2615 Problem reported by Sun cc.
2616
6df4097e
PE
2617 * lisp.h: Redo flags and XSET slightly to avoid overflow diagnostics.
2618 These changes make compilation easier to follow with Sun cc.
2619 (ARRAY_MARK_FLAG): Make it signed, so that it can be assigned to
2620 EMACS_INT values without provoking overflow diagnostics.
2621 (PSEUDOVECTOR_FLAG): Likewise, for consistency.
2622 (XSET) [! USE_LSB_TAG]: Use unsigned left shift to avoid overflow
2623 diagnostic with signed left shift.
9fba3563 2624
410ed5c3
PE
2625 * fileio.c (make_temp_name): Remove unreachable code.
2626
97be3ce3
PE
2627 * fontset.c (free_realized_fontset): Mark unreachable code with if (0).
2628 Previously it was marked by preceding it with "return;", but
2629 Sun cc complains about this.
2630
9fba3563
PE
2631 * coding.c (decode_coding_emacs_mule): Remove unreachable code.
2632 This is a typo left over from 2009-03-06T07:51:52Z!handa@m17n.org,
2633 which fixed Bug#2370. Caught by Sun cc.
2634
6dc1d2d3
MR
26352011-01-15 Martin Rudalics <rudalics@gmx.at>
2636
2637 * window.c (inhibit_point_swap): New variable.
2638 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
2639 point this time.
2640 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
2641 of setting selected_window to nil (Bug#7728).
2642
f853f599
TH
26432011-01-11 Tassilo Horn <tassilo@member.fsf.org>
2644
8dabbfd6
SM
2645 * image.c (imagemagick_load_image, Finit_image_library):
2646 Free intermediate image after creating a MagickWand from it.
2647 Terminate MagickWand environment after image loading.
f853f599 2648
2bc92a93
MA
26492011-01-10 Michael Albinus <michael.albinus@gmx.de>
2650
2651 * dbusbind.c (Fdbus_register_service): Raise an error in case of
2652 unexpected return values.
2653 (Fdbus_register_method): Remove connection initialization.
2654
26552011-01-10 Jan Moringen <jan.moringen@uni-bielefeld.de>
5b83ba18
MA
2656
2657 * dbusbind.c (QCdbus_request_name_allow_replacement): New symbol;
2658 used by Fdbus_register_service.
2659 (QCdbus_request_name_replace_existing): Likewise.
2660 (QCdbus_request_name_do_not_queue): Likewise.
2661 (QCdbus_request_name_reply_primary_owner): Likewise.
2662 (QCdbus_request_name_reply_in_queue): Likewise.
2663 (QCdbus_request_name_reply_exists): Likewise.
2664 (QCdbus_request_name_reply_already_owner): Likewise.
2665 (Fdbus_register_service): New function.
2666 (Fdbus_register_method): Use Fdbus_register_service to do the name
2667 registration.
2668 (syms_of_dbusbind): Add symbols dbus-register-service,
2669 :allow-replacement, :replace-existing, :do-not-queue,
2670 :primary-owner, :existing, :in-queue and :already-owner.
2671
21a76236
CY
26722011-01-09 Chong Yidong <cyd@stupidchicken.com>
2673
2674 * gtkutil.c (update_frame_tool_bar): Don't advance tool-bar index
2675 when removing extra buttons.
2676
3d91e302
CY
26772011-01-08 Chong Yidong <cyd@stupidchicken.com>
2678
2679 * fns.c (Fyes_or_no_p): Doc fix.
2680
0d23ffb5
AS
26812011-01-08 Andreas Schwab <schwab@linux-m68k.org>
2682
2683 * fns.c (Fyes_or_no_p): Add usage.
2684
9dc3366b
GM
26852011-01-08 Glenn Morris <rgm@gnu.org>
2686
d0981f82
GM
2687 * makefile.w32-in ($(EMACS)):
2688 * Makefile.in (emacs$(EXEEXT)): -batch implies -q.
2689
9dc3366b
GM
2690 * xdisp.c (syms_of_xdisp) <Qrisky_local_variable>: Move from here...
2691 * emacs.c (syms_of_emacs) <Qrisky_local_variable>: ...to here.
2692
466cbae9
AS
26932011-01-07 Andreas Schwab <schwab@linux-m68k.org>
2694
2695 * image.c (imagemagick_load_image): Fix some resource leaks and
2696 error handling.
2697
8c51d2a2
CY
26982011-01-07 Chong Yidong <cyd@stupidchicken.com>
2699
2700 * fns.c (Fyes_or_no_p): Accept format string args.
2701
66b7b0fe
GM
27022011-01-07 Glenn Morris <rgm@gnu.org>
2703
2704 * emacs.c (no_site_lisp): New int.
2705 (USAGE1): Add --no-site-lisp, mention -Q uses it.
2706 (main): Set no_site_lisp.
2707 (standard_args): Add --no-site-lisp.
2708 * lisp.h (no_site_lisp): New int.
2709 * lread.c (init_lread): If no_site_lisp, don't re-add site-lisp
2710 directories to Vload_path.
2711
2018939f
AS
27122011-01-05 Andreas Schwab <schwab@linux-m68k.org>
2713
2714 * alloc.c (mark_stack): Use __builtin_unwind_init if available.
2715
6ed843e5
MA
27162011-01-04 Jan Moringen <jan.moringen@uni-bielefeld.de>
2717
8dabbfd6 2718 * dbusbind.c (Fdbus_register_method): Add optional parameter
6ed843e5
MA
2719 dont_register_service. Updated docstring accordingly.
2720
3f9b7090
GM
27212011-01-04 Glenn Morris <rgm@gnu.org>
2722
2723 * emacs.c (emacs_copyright): Update short copyright year to 2011.
2724
d82bce4a
EZ
27252011-01-03 Eli Zaretskii <eliz@gnu.org>
2726
2727 * image.c (png_jmpbuf): Remove definition.
2728 (my_png_error, png_load): Don't use png_jmpbuf.
2729
7c420169
CY
27302011-01-02 Eli Zaretskii <eliz@gnu.org>
2731
2732 * keyboard.c (Vselect_active_regions): Doc fix. (Bug#7702)
2733
27342011-01-02 Eli Zaretskii <eliz@gnu.org>
5be1c984
EZ
2735
2736 * image.c <Qlibpng_version>: New variable.
2737 (syms_of_image): Intern and staticpro it. Set its value to the
2738 version of PNG library we were compiled with.
2739 (my_png_error, png_load): Avoid GCC warnings about direct access
2740 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
2741 (png_jmpbuf): New macro.
2742 (my_png_error, png_load): Use it instead of #ifdef'ing according
2743 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 2744
7c420169 27452011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
cf07311b
SM
2746
2747 * .gdbinit (xgetptr): Fix the union+lsb case.
2748 (xbacktrace): Fix the union case.
2749
7c420169 27502011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
794b75c7
SM
2751
2752 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
2753 different from selected-window's.
2754
7c420169 27552011-01-02 Eli Zaretskii <eliz@gnu.org>
2e4ab211 2756
71fe378d
EZ
2757 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
2758 equivalent of a menu item when the key sequence is given by the
2759 `:keys' attribute. (Bug#7662)
2760
2e4ab211
EZ
2761 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
2762 the basic faces are supported.
2763
7c420169 27642011-01-02 Jan Djärv <jan.h.d@swipnet.se>
84595ff0
JD
2765
2766 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
2767
7c420169 27682011-01-02 Eli Zaretskii <eliz@gnu.org>
30d621a2
EZ
2769
2770 * xdisp.c (Fformat_mode_line): Fix last change.
2771
7c420169 27722011-01-02 Chong Yidong <cyd@stupidchicken.com>
4bf3e46e
CY
2773
2774 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
2775 faces (Bug#7587).
2776
7c420169 27772011-01-02 Eli Zaretskii <eliz@gnu.org>
1b2a627f
EZ
2778
2779 * fileio.c (Fexpand_file_name): One more doc fix.
2780
3afff00e
CY
27812011-01-01 Chong Yidong <cyd@stupidchicken.com>
2782
2783 * gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
2784 image or label in the container.
2785 (xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
2786 (xg_show_toolbar_item): Function deleted.
2787 (xg_tool_item_stale_p): New function.
2788 (update_frame_tool_bar): Calculate tool-bar style once per call.
2789 Instead of hiding text labels, omit them. Don't use
2790 xg_show_toolbar_item; create new GtkToolItems from scratch if
2791 necessary, instead of trying to re-use them. This avoids an
2792 annoying animation when changing tool-bars.
2793
aeb7e951
JD
27942010-12-31 Jan Djärv <jan.h.d@swipnet.se>
2795
2796 * nsfns.m (ns_set_name_as_filename): Always use buffer name for
2797 title and buffer filename only for RepresentedFilename.
2798 Handle bad UTF-8 in buffer name (Bug#7517).
2799
5bbb4727
JD
28002010-12-30 Jan Djärv <jan.h.d@swipnet.se>
2801
2802 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
2803
2804 * nsfns.m (ns_set_name_iconic): Remove.
2805 (ns_set_name_internal): New function (Bug#7517).
2806 (Vicon_title_format): Extern declare.
2807 (ns_set_name): Call ns_set_name_internal.
2808 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
2809 (x_implicitly_set_name): Ditto.
2810 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
2811 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8 (Bug#7517).
2812
f1aab3ff
ŠN
28132010-12-29 Štěpán Němec <stepnem@gmail.com> (tiny change)
2814
2815 * window.c (syms_of_window): Add missing defsubr for
2816 window-use-time.
2817
365525b3
AS
28182010-12-28 Andreas Schwab <schwab@linux-m68k.org>
2819
2820 * xterm.h (x_alloc_lighter_color_for_widget): Restore declaration.
2821 * xterm.c (x_alloc_lighter_color_for_widget): Restore.
2822
59fc5cf9
AS
28232010-12-27 Andreas Schwab <schwab@linux-m68k.org>
2824
2f7c71a1
AS
2825 * buffer.c: Remove unused declarations.
2826 * buffer.h: Likewise.
2827 * charset.h: Likewise.
2828 * composite.h: Likewise.
2829 * dispextern.h: Likewise.
2830 * dispnew.c: Likewise.
2831 * font.h: Likewise.
2832 * fontset.c: Likewise.
2833 * fontset.h: Likewise.
2834 * intervals.h: Likewise.
2835 * keymap.h: Likewise.
2836 * lisp.h: Likewise.
2837 * syntax.c: Likewise.
2838 * syntax.h: Likewise.
2839 * termhooks.h: Likewise.
2840 * window.h: Likewise.
2841 * xsettings.h: Likewise.
2842 * xterm.c: Likewise.
2843 * xterm.h: Likewise.
2844
2845 * chartab.c (sub_char_table_ref): Make static.
2846 * dispnew.c (line_hash_code, required_matrix_height)
2847 (required_matrix_width): Likewise.
2848 * eval.c (interactive_p, apply_lambda): Likewise.
2849 * fns.c (string_make_multibyte, copy_hash_table, hash_clear):
2850 Likewise.
2851 * font.c (QCadstyle, QCregistry, font_make_spec)
2852 (font_parse_fcname, font_encode_char, font_at): Likewise.
2853 * frame.c (x_frame_get_arg): Likewise.
2854 * keymap.c (get_keyelt): Likewise.
2855 * lread.c (read_filtered_event): Likewise.
2856 * print.c (write_string_1): Likewise.
2857 * window.c (delete_window, window_height, window_width)
2858 (foreach_window): Likewise.
2859 * xrdb.c (x_get_customization_string, x_get_resource): Likewise.
2860 * xterm.c (x_scroll_bar_clear, xembed_set_info)
2861 (xembed_send_message): Likewise.
2862
2863 * eval.c (run_hook_list_with_args): Delete.
2864 * font.c (font_unparse_gtkname, font_update_lface): Likewise.
2865 * terminal.c (get_terminal_param): Likewise.
2866 * xterm.c (x_alloc_lighter_color_for_widget): Likewise.
2867
c4b607ed
AS
2868 * scroll.c: Fix comment.
2869
59fc5cf9
AS
2870 * dispnew.c (add_window_display_history)
2871 (add_frame_display_history, glyph_row_slice_p)
2872 (find_glyph_row_slice, flush_stdout)
2873 (check_matrix_pointer_lossage, matrix_row)
2874 (check_matrix_invariants, check_window_matrix_pointers)
2875 (check_matrix_pointers, window_to_frame_vpos)
2876 (window_to_frame_hpos): Prototize.
2877 * textprop.c (erase_properties): Likewise.
2878
a65b85b5
SM
28792010-12-22 Stefan Monnier <monnier@iro.umontreal.ca>
2880
17870c01
SM
2881 * print.c (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): Remove.
2882 (print_preprocess): Fix handling of uninterned symbols in last change.
2883
a65b85b5
SM
2884 * print.c (print, print_preprocess, print_object): Use a hash table
2885 rather than a linear table for Vprint_number_table.
2886
f13183cf
CY
28872010-12-20 Chong Yidong <cyd@stupidchicken.com>
2888
2889 * frame.c (focus_follows_mouse): Default to 0 (Bug#7269).
2890
94975270
CY
28912010-12-20 Chong Yidong <cyd@stupidchicken.com>
2892
2893 * keyboard.c (Vtool_bar_separator_image_expression): New variable.
2894 (parse_tool_bar_item): Use it to obtain image separators for
2895 displays not using native tool-bar separators.
2896
2897 * xdisp.c (build_desired_tool_bar_string): Don't handle separators
2898 specially, since this is now done in parse_tool_bar_item.
2899
ef1b0ba7
SM
29002010-12-19 Stefan Monnier <monnier@iro.umontreal.ca>
2901
2902 Minor clean up to silence some gcc warnings.
2903 * window.c (Fset_window_buffer):
2904 * xterm.c (x_set_frame_alpha): Restructure code to silence
2905 compiler warning.
2906 (handle_one_xevent): Remove unused var `p'.
2907 (do_ewmh_fullscreen): Remove unused var `lval'.
2908 (xembed_set_info): Remove unused var `atom'.
2909 * textprop.c (Fremove_list_of_text_properties): Add braces to silence
2910 compiler warning.
2911 * fontset.c (fontset_id_valid_p, dump_fontset):
2912 * ftfont.c (ftfont_drive_otf): Modernize k&r declaration.
2913 * eval.c (Feval, Ffuncall): Avoid unneeded gotos.
2914 * dispnew.c (update_frame, update_frame_1): Compile the `do_pause'
2915 label only when it's used.
2916 * image.c (x_create_bitmap_from_xpm_data):
2917 * dispextern.h (x_create_bitmap_from_xpm_data): Use const char** like
2918 its callers.
2919 * coding.c (detect_coding_utf_16): Remove unused vars `src_base' and
2920 `consumed_chars'.
2921 (DECODE_EMACS_MULE_21_COMPOSITION): Remove unused var `charbuf_base'.
2922 (decode_coding_emacs_mule): Remove unused label `retry'.
2923 (detect_eol): Add parens to silence compiler warning.
2924 * alloc.c (bytes_used_when_reconsidered): Move to the #ifdef where
2925 it's used to silence the compiler.
2926 (make_number): Modernize k&r declaration.
2927 (mark_char_table): Add parens to silence compiler warning.
2928
4039c786
CY
29292010-12-17 Chong Yidong <cyd@stupidchicken.com>
2930
2931 * keyboard.c (parse_tool_bar_item): Allow menu separators in
2932 tool-bar maps.
2933 (menu_separator_name_p): New function, from gtkutil.c.
2934 (separator_names): Move from gtkutil.c.
2935
2936 * keyboard.h (menu_separator_name_p): Add prototype.
2937
2938 * gtkutil.c (XG_BIN_CHILD): New macro.
2939 (xg_get_menu_item_label, xg_update_menubar)
2940 (xg_update_menu_item, xg_tool_bar_menu_proxy)
2941 (xg_show_toolbar_item, update_frame_tool_bar): Use it.
2942 (separator_names, xg_separator_p): Move to keyboard.c.
ef1b0ba7
SM
2943 (create_menus, xg_update_submenu, update_frame_tool_bar):
2944 Use menu_separator_name_p.
4039c786
CY
2945
2946 * nsmenu.m (name_is_separator): Function deleted.
2947 (addItemWithWidgetValue): Use menu_separator_name_p.
2948
2949 * w32menu.c (name_is_separator): Function deleted.
2950 (add_menu_item): Use menu_separator_name_p.
2951
aa936e8e
JD
29522010-12-16 Jan Djärv <jan.h.d@swipnet.se>
2953
2954 * nsterm.m (ns_draw_window_cursor): If the cursor color is the
2955 same as the background, use the face forground as cursor.
2956
f49d1f52 29572010-12-13 Eli Zaretskii <eliz@gnu.org>
15579471
EZ
2958
2959 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
2960
f49d1f52 29612010-12-13 Eli Zaretskii <eliz@gnu.org>
76feb864 2962
f0559026
EZ
2963 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
2964 (face_before_or_after_it_pos, next_element_from_string)
2965 (next_element_from_c_string, produce_stretch_glyph): Remove unused
2966 calculations of maximum string length before calling
2967 string_char_and_length and STRING_CHAR_AND_LENGTH.
2968 (string_char_and_length): Update commentary: MAXLEN is no longer
2969 needed.
2970
f49d1f52 29712010-12-13 Jan Djärv <jan.h.d@swipnet.se>
0b9fc69a
JD
2972
2973 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
2974 as (Qsave_session arg).
2975
2976 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
2977 (smc_die_CB): Make an event with arg Qt.
2978 (Fhandle_save_session): If event has Qt as argument,
2979 call Fkill_emacs (Bug#7552).
2980
f49d1f52
SM
29812010-12-13 Chong Yidong <cyd@stupidchicken.com>
2982
2983 * buffer.c (transient-mark-mode): Doc fix (Bug#7465).
2984
29852010-12-13 Jan Djärv <jan.h.d@swipnet.se>
2b815743
JD
2986
2987 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
2988
f49d1f52 29892010-12-13 Chong Yidong <cyd@stupidchicken.com>
d8b2a962
CY
2990
2991 * dispextern.h (struct it): New member overlay_strings_charpos.
2992
2993 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
2994 charpos where we computed n_overlay_strings.
2995 (next_overlay_string): Load overlay strings at recorded position,
2996 which may not be the same as the iterator's charpos (Bug#7016).
2997
f49d1f52 29982010-12-13 Chong Yidong <cyd@stupidchicken.com>
77f1ed6c
CY
2999
3000 * xdisp.c (try_scrolling): Avoid infloop if the first line is
3001 obscured due to a vscroll (Bug#7537).
3002
f49d1f52 30032010-12-13 Jan Djärv <jhd@zeplinf.localdomain>
2a91a0b5
JD
3004
3005 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
3006
3007 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
3008 Use FRAME_TOOLBAR_HEIGHT.
3009 (x_set_offset): Handle XNegative and YNegative in
3010 f->size_hint_flags (Bug#7510).
3011
39321b94
EZ
30122010-12-11 Eli Zaretskii <eliz@gnu.org>
3013
3014 * w32fns.c (Fx_show_tip): Call try_window with last argument
3015 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
3016 solved. Round up the tip height to an integral multiple of the
3017 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
3018 (Bug#7398)
3019
ec1b9b17
GM
30202010-12-08 Glenn Morris <rgm@gnu.org>
3021
3022 * fileio.c (Fverify_visited_file_modtime): Default to current buffer.
3023
3c2317e8
LMI
30242010-12-06 Lars Magne Ingebrigtsen <larsi@gnus.org>
3025
3026 * xml.c (parse_region): Ignore blank HTML nodes.
3027 (make_dom): Return CDATA sections (like <style>foo</style>) as
3028 text nodes.
3029
bba3e508
SM
30302010-12-06 Stefan Monnier <monnier@iro.umontreal.ca>
3031
3032 * lread.c (read1): Allow newstyle unquote outside of backquote.
3033 Disallow old-style backquotes inside new-style backquotes.
3034 Don't count unquotes to figure out when we're "syntactically inside
3035 but semantically outside of a backquote" any more.
3036 Extend the restriction no-unescaped-commas-and-backquotes-in-symbols
3037 to all contexts.
3038
d23d8608
CY
30392010-12-05 Chong Yidong <cyd@stupidchicken.com>
3040
3041 * process.c: Remove checks for HAVE_SYS_IOCTL_H (Bug#7484).
3042
d6a003a8
AS
30432010-12-04 Andreas Schwab <schwab@linux-m68k.org>
3044
3045 * Makefile.in (M_FILE): Substitute @M_FILE@ instead of @machfile@.
3046 (S_FILE): Substitute @S_FILE@ instead of @opsysfile@.
3047 * m/arm.h, m/sh3.h, m/xtensa.h: Remove files.
3048
201ef780
AS
30492010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3050
3051 * lisp.h (union Lisp_Object): Explicitly declare signedness of
3052 bit-field.
3053 (XINT): Remove variant for EXPLICIT_SIGN_EXTEND.
3054 * m/alpha.h (EXPLICIT_SIGN_EXTEND): Don't define.
3055 * m/amdx86-64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3056 * m/ia64.h (EXPLICIT_SIGN_EXTEND): Likewise.
3057 * m/ibms390.h (EXPLICIT_SIGN_EXTEND): Likewise.
3058 * m/ibms390x.h (EXPLICIT_SIGN_EXTEND): Likewise.
3059 * m/iris4d.h (EXPLICIT_SIGN_EXTEND): Likewise.
3060 * m/m68k.h (EXPLICIT_SIGN_EXTEND): Likewise.
3061 * m/sparc.h (EXPLICIT_SIGN_EXTEND): Likewise.
3062 * m/template.h (EXPLICIT_SIGN_EXTEND): Likewise.
3063 * m/hp800.h: Remove file.
3064 * m/mips.h: Remove file.
3065
146490c3
JD
30662010-12-03 Jan Djärv <jan.h.d@swipnet.se>
3067
3068 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
3069 with cursor color and draw a rectangle around the image (Bug#7412).
3070
babc8f0d
AS
30712010-12-03 Andreas Schwab <schwab@linux-m68k.org>
3072
3073 * frame.c (x_set_font): Remove unused variable.
3074
9583e9a0
JD
30752010-12-02 Jan Djärv <jan.h.d@swipnet.se>
3076
dd723bbd
JD
3077 * nsmenu.m (update_frame_tool_bar): Remove NSLog on invalid image.
3078
9583e9a0
JD
3079 * nsterm.m (ns_draw_glyph_string): Switch fore- and background if
3080 drawing text under filled box cursor (Bug#7479).
3081
07976ae3 30822010-11-27 Kenichi Handa <handa@m17n.org>
b84ae584
KH
3083
3084 * charset.c (emacs_mule_charset): Make it an array of charset ID;
3085 i.e. integer.
bba3e508 3086 (Fdefine_charset_internal): Adjust for the above change.
b84ae584
KH
3087 (init_charset_once): Likewise.
3088
bba3e508
SM
3089 * charset.h (emacs_mule_charset): Adjust the prototype.
3090 Delete duplicated extern.
b84ae584
KH
3091
3092 * coding.c (emacs_mule_char): Adjust for the change of
3093 emacs_mule_charset.
3094
3095 * lread.c (read_emacs_mule_char): Adjust for the change of
3096 emacs_mule_charset.
3097
07976ae3 30982010-11-27 Eli Zaretskii <eliz@gnu.org>
b8e5cf1d
EZ
3099
3100 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
3101 of w32api >= 3.15. (Bug#6989) (Bug#7452)
3102
07976ae3 31032010-11-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
96ad0af7
YM
3104
3105 * alloc.c (mark_terminals): Ensure that the image cache is marked
3106 even if the terminal object was marked earlier (Bug#6301).
3107
35f1de62
CY
31082010-11-21 Chong Yidong <cyd@stupidchicken.com>
3109
3110 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
3111
07976ae3 31122010-11-27 Jan Djärv <jan.h.d@swipnet.se>
8d7f026f
JD
3113
3114 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
3115 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
b762841f 3116 Use 23 as menubar height if 0. (Bug#7425).
8d7f026f 3117
8547874a
EZ
31182010-11-26 Eli Zaretskii <eliz@gnu.org>
3119
228482b2
EZ
3120 * xdisp.c (set_message_1): Force paragraph direction in echo area
3121 be left-to-right.
3122
8547874a
EZ
3123 * keyboard.c (make_lispy_position): Put a meaningful value in yret
3124 when the click is on the header or mode line.
3125
1e2dddbe
EZ
31262010-11-25 Eli Zaretskii <eliz@gnu.org>
3127
3128 * xdisp.c (set_cursor_from_row): Don't forget to consider the
3129 `cursor' property of the first character in overlay strings.
12365240 3130 (Bug#7474) (Bug#7481)
1e2dddbe 3131
50795d1f
JD
31322010-11-24 Jan Djärv <jan.h.d@swipnet.se>
3133
3134 * nsterm.m (NSLeftControlKeyMask, NSLeftCommandKeyMask)
3135 (NSLeftAlternateKeyMask): New defines.
c80c6166
JD
3136 (keyDown): Parse left and right keys separately (Bug#7458).
3137 Compare Left key masks exactly (Bug#7458).
50795d1f 3138
f8ab8c1f
EZ
31392010-11-23 Eli Zaretskii <eliz@gnu.org>
3140
3141 * intervals.c (temp_set_point_both): Define before calling, to
3142 avoid GCC warnings.
3143
2e8a4797
DN
31442010-11-23 Dan Nicolaescu <dann@ics.uci.edu>
3145
b29116ef
DN
3146 * nsmenu.m: Use #include <config.h> instead of "config.h".
3147
b932f8b1 3148 * term.c (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3149 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3150 Move declarations ...
3151 * lisp.h (Qglyphless_char,last_glyphless_glyph_frame)
2f8f196d 3152 (last_glyphless_glyph_face_id, last_glyphless_glyph_merged_face_id):
b932f8b1
DN
3153 ... here.
3154
42c8bc9b
DN
3155 * emacs.c (gdb_use_union, gdb_valbits,gdb_gctypebits)
3156 (gdb_data_seg_bits, gdb_array_mark_flag, PVEC_FLAG)
3157 (gdb_pvec_type):
3158 * print.c (print_output_debug_flag):
3159 * lisp.h (debug_print): Mark as EXTERNALLY_VISIBLE.
3160 (safe_debug_print): New declaration.
3161
2e8a4797
DN
3162 * xterm.c:
3163 * systty.h:
3164 * sound.c: Include <sys/ioctl.h> unconditionally.
3165
b609f591
YM
31662010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3167
3168 * alloc.c (mark_maybe_object): Return early if given a Lisp
3169 integer (Bug#6301).
3170
731e263a
KB
31712010-11-21 Ken Brown <kbrown@cornell.edu>
3172
3173 * sheap.c (STATIC_HEAP_SIZE): Revert previous change.
3174
b7d1e144
JD
31752010-11-21 Jan Djärv <jan.h.d@swipnet.se>
3176
3177 * nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
3178 Define (Bug#7458).
3179 (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
3180 (EV_MODIFIERS): Check for NSRightCommandKeyMask and
3181 NSRightControlKeyMask also (Bug#7458).
3182 (keyDown): Ditto (Bug#7458).
3183 (syms_of_nsterm): Defvar ns-right-command-modifier and
3184 ns-right-control-modifier (Bug#7458).
3185
b7982059
DN
31862010-11-21 Dan Nicolaescu <dann@ics.uci.edu>
3187
bee3419f
DN
3188 * sysdep.c (sys_subshell): Remove SET_EMACS_PRIORITY.
3189 * emacs.c (emacs_priority, syms_of_emacs): Remove emacs_priority.
3190
b7982059
DN
3191 * intervals.h (temp_set_point, temp_set_point_both):
3192 * buffer.h (offset_intervals, copy_intervals): Remove INLINE.
3193
01664ed1
KB
31942010-11-20 Ken Brown <kbrown@cornell.edu>
3195
3196 * sheap.c (STATIC_HEAP_SIZE): Increase to 13MB.
3197
7c2d713b
EZ
31982010-11-20 Eli Zaretskii <eliz@gnu.org>
3199
3200 * term.c (produce_glyphless_glyph): Use \uNNNN, \UNNNNNN, or
3201 \xNNNNNN for hex-code display of glyphless characters.
3202
d2bd5189
JD
32032010-11-20 Jan Djärv <jan.h.d@swipnet.se>
3204
3205 * gtkutil.c (xg_make_tool_item): Take vert_only as argument.
3206 Set important to ! vert_only.
3207 (xg_show_toolbar_item): Don't show label horizontally if
3208 tool item isn't important.
3209 (update_frame_tool_bar): Get TOOL_BAR_ITEM_VERT_ONLY and pass it to
3210 xg_make_tool_item, or update important on existing tool item.
3211
3212 * keyboard.c (QCvert_only): New variable.
3213 (parse_tool_bar_item): Check for QCvert_only.
3214 (syms_of_keyboard): Initialize QCvert_only.
3215
3216 * dispextern.h (tool_bar_item_idx): Add TOOL_BAR_ITEM_VERT_ONLY.
3217
d9a95e67
EZ
32182010-11-20 Eli Zaretskii <eliz@gnu.org>
3219
3220 * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
3221 same in-line.
3222
b6557553
AS
32232010-11-20 Andreas Schwab <schwab@linux-m68k.org>
3224
3225 * xfaces.c (lookup_face): Make static.
3226 * dispnew.c (copy_row_except_pointers): Likewise.
3227 * syntax.c (dec_bytepos): Likewise.
3228 (inc_bytepos): Remove.
3229 * dispextern.h (lookup_face): Remove declaration.
3230
f48fe1f0
EZ
32312010-11-19 Eli Zaretskii <eliz@gnu.org>
3232
3233 * xdisp.c (set_cursor_from_row): Display cursor after all the
3234 glyphs that come from an overlay. Don't overstep the last glyph
3235 when skipping glyphs from an overlay. (Bug#6687)
3236
654ef137
DN
32372010-11-18 Dan Nicolaescu <dann@ics.uci.edu>
3238
84dfc8a7
DN
3239 * alloc.c (refill_memory_reserve): Move declaration ...
3240 * lisp.h (refill_memory_reserve): ... here.
3241
94fa3833
DN
3242 * strftime.c (_strftime_copytm): Add declaration.
3243
dde990a0
DN
3244 * callproc.c (syms_of_callproc): Use intern_c_string.
3245
50c77428
DN
3246 Move declarations from .c files to .h files.
3247 * process.c (timers_run):
3248 * minibuf.c (quit_char):
3249 * lread.c (read_emacs_mule_char):
3250 * keyboard.c (minibuf_level, message_enable_multibyte)
3251 (pending_malloc_warning):
3252 * insdel.c (Vselect_active_regions, Vsaved_region_selection)
3253 (Qonly): Remove declarations.
3254 * lisp.h (pending_malloc_warning, Vsaved_region_selection)
3255 (Vselect_active_regions):
2f8f196d 3256 * keyboard.h (timers_run): Add declarations.
50c77428 3257
654ef137
DN
3258 * strftime.c (my_strftime_gmtime_r, my_strftime_localtime_r)
3259 (tm_diff): Convert definitions to standard C.
3260 (extra_args_spec_iso): Remove, unused.
3261
4a47c275 32622010-11-18 Jan Djärv <jan.h.d@swipnet.se>
37de8fd0
J
3263
3264 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
3265
3266 * config.in (HAVE_G_TYPE_INIT): New symbol.
3267
4a47c275 32682010-11-18 Eli Zaretskii <eliz@gnu.org>
c7926fe2
EZ
3269
3270 * lread.c (Fload): Mention `load-in-progress' and
3271 `load-file-name'. (Bug#7346)
3272
86520d8c
EZ
3273 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
3274 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
3275 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
3276 subprocesses. Use buffer_free only ifdef subprocesses.
3277
3278 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
3279 the subprocesses version, not in the non-subprocesses one.
3280
794a4b6d
EZ
3281 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
3282
146d267b
EZ
32832010-11-17 Eli Zaretskii <eliz@gnu.org>
3284
3285 * xdisp.c (set_cursor_from_row): Fix cursor positioning in empty
3286 lines on text-mode terminals. (bug#7417)
3287
fad0d565
SM
32882010-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
3289
3290 * xterm.c (get_current_wm_state): Rename from get_current_vm_state.
3291 (do_ewmh_fullscreen, x_handle_net_wm_state): Update callers.
3292
6b4bb703
KH
32932010-11-17 Kenichi Handa <handa@m17n.org>
3294
3295 * coding.c (Fset_terminal_coding_system_internal): Fix previous
3296 change (set charset-ID list instead of charset-symbol list).
3297
9173a8fb
CY
32982010-11-16 Chong Yidong <cyd@stupidchicken.com>
3299
3300 * keyboard.c (make_lispy_position): For text area clicks, record Y
3301 pixel position relative to the text area, excluding header line.
3302 Also change X and Y to Lisp_Objects, not pointers; don't return
3303 coordinate values via pointers. Pass ON_TEXT_AREA coordinate to
3304 buffer_posn_from_coords counting from the start of the text area.
3305 (Fposn_at_x_y, make_lispy_event): Callers changed.
3306
3307 * window.c (coordinates_in_window): Change X and Y to ints rather
3308 than pointers; don't return coordinates via pointers.
3309 (struct check_window_data): Change X and Y from pointers to ints.
3310 (window_from_coordinates): Remove args WX and WY; don't return
3311 coordinates via pointers.
3312 (Fcoordinates_in_window_p, window_from_coordinates):
3313 (check_window_containing, Fwindow_at): Callers changed.
3314 (window_relative_x_coord): New function.
3315
3316 * window.h (window_from_coordinates, window_relative_x_coord):
3317 Update prototypes.
3318
3319 * dispnew.c (buffer_posn_from_coords): Assume that X counts from
3320 the start of the text area.
3321
3322 * xdisp.c (remember_mouse_glyph): Change window_from_coordinates
3323 call. Use window_relative_x_coord.
3324 (note_mouse_highlight): Change window_from_coordinates call.
3325
3326 * w32term.c (w32_read_socket):
3327 * msdos.c (dos_rawgetc):
3328 * xterm.c (handle_one_xevent): Likewise.
3329
d2762c86
DN
33302010-11-16 Dan Nicolaescu <dann@ics.uci.edu>
3331
3332 * strftime.c (LOCALE_PARAM_DECL): Update for standard C.
3333 (LOCALE_PARAM, LOCALE_PARAM_PROTO): Remove, unused.
3334 (memcpy_lowcase, so_week_days, extra_args_spec, emacs_strftimeu):
3335 Convert definitions to standard C.
3336 * regex.c: Do not include <stdlib.h>, config.h does it.
3337 Include unistd.h.
3338 (xrealloc, init_syntax_once, re_match, regcomp, regexec)
3339 (regerror, regfree): Convert definitions to standard C.
3340 * mktime.c (my_mktime_localtime_r, ydhms_tm_diff, ranged_convert)
3341 (__mktime_internal): Convert definitions to standard C.
3342
c2f0866a
DN
33432010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3344
42a7e7f1
DN
3345 * w32proc.c:
3346 * w32inevt.c:
3347 * w32heap.c:
3348 * w32.c: Remove config.h include guards.
3349
67802943
DN
3350 * callproc.c (child_setup): Reorder code to simplify #ifdefs.
3351 No code changes.
3352
f0e1af46
DN
3353 * process.c: Include <sys/ioctl.h> unconditionally,
3354 keyboard.c already does it.
3355
c2f0866a
DN
3356 * keyboard.c (pending_malloc_warning): Add const to match
3357 definition in alloc.c.
3358 (Fset_input_interrupt_mode): Simplify #ifdefs.
3359
92d3ab7e
DN
33602010-11-15 Dan Nicolaescu <dann@ics.uci.edu>
3361
12e610e8
DN
3362 Clean up systty.h macros.
3363 * systty.h (EMACS_GET_TTY_PGRP, EMACS_SET_TTY_PGRP, EMACS_GET_TTY)
3364 (EMACS_SET_TTY): Remove unneeded abstraction, instead inline the
3365 definition in all uses.
3366 (EMACS_TTY_TABS_OK): Remove, it has a single user.
3367 * sysdep.c (discard_tty_input, child_setup_tty)
3368 (init_sys_modes, tabs_safe_p, reset_sys_modes):
3369 * emacs.c (shut_down_emacs):
3370 * callproc.c (child_setup):
3371 * term.c (dissociate_if_controlling_tty): Inline removed macros.
3372
92d3ab7e
DN
3373 * data.c (sign_extend_temp, sign_extend_lisp_int): Remove, unused.
3374
a3e6bad4
CY
33752010-11-14 Chong Yidong <cyd@stupidchicken.com>
3376
3377 * w32fns.c (Fx_create_frame):
3378 * nsfns.m (Fx_create_frame): Don't check for the cursorColor
3379 resource here; it's now done at startup.
3380
5a232ffb
J
33812010-11-14 Jan Djärv <jan.h.d@swipnet.se>
3382
3383 * xterm.c (set_wm_state): Add Qnil to final cons.
3384
3385 * xselect.c (x_send_client_event): Remove unused variables cons and
3386 size.
3387
24021b38
YM
33882010-11-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3389
2f8f196d 3390 * keyboard.c (modify_event_symbol): Add const to array elements of
24021b38
YM
3391 arg NAME_TABLE.
3392 (lispy_accent_keys, lispy_function_keys, lispy_multimedia_keys)
3393 (lispy_kana_keys, iso_lispy_function_keys, lispy_wheel_names)
3394 (lispy_wheel_names, lispy_drag_n_drop_names, modifier_names):
3395 Add const to array elements.
3396 (scroll_bar_parts): Make static. Fix position of const.
3397
3398 * w32fns.c (lispy_function_keys): Add const to extern.
3399
3400 * w32inevt.c (lispy_function_keys): Likewise.
3401
afa42fe3
CY
34022010-11-14 Chong Yidong <cyd@stupidchicken.com>
3403
3404 * xfns.c (Fx_create_frame): Don't check for the cursorColor
3405 resource here; it's now done at startup.
3406
53260a94
DN
34072010-11-13 Dan Nicolaescu <dann@ics.uci.edu>
3408
c865c575 3409 * xmenu.c: Make it clear that ../lwlib/lwlib.h is only needed for Motif.
ff2e8052 3410
c865c575 3411 Fix compilation on Solaris.
ff2e8052
DN
3412 * sysdep.c: Do not #include <term.h>.
3413 (tputs): Add declaration, similar to what cm.c does. (Bug#7178)
3414
53260a94
DN
3415 * s/ms-w32.h (HAVE_TERMIOS_H): Do not undef, not used anymore.
3416
933e29ff
J
34172010-11-13 Jan Djärv <jan.h.d@swipnet.se>
3418
3419 * xterm.c (set_wm_state): Don't put Atom in cons, call
3420 make_fixnum_or_float on them first.
3421 (x_term_init): Initialize Xatom_net_supporting_wm_check and
3422 Xatom_net_supported correctly.
3423
3424 * xselect.c (x_send_client_event): Move CHECK_STRING ...
3425 (Fx_send_client_event): to here.
3426
a048073e
MR
34272010-11-13 Martin Rudalics <rudalics@gmx.at>
3428
3429 * window.c (Fwindow_use_time): New function.
3430
0eb025fb
EZ
34312010-11-13 Eli Zaretskii <eliz@gnu.org>
3432
3433 * xdisp.c (set_cursor_from_row): Fix cursor positioning on
3434 zero-width characters.
3435
3436 * .gdbinit (pgx): Adapt to latest changes in `struct glyph'.
3437
3438 * w32term.c (x_draw_glyphless_glyph_string_foreground): Draw the
3439 box before drawing the glyphs inside it.
3440
3441 * xdisp.c (syms_of_xdisp) <glyphless-char-display>: Doc fix.
3442
bba3e508
SM
3443 * dispextern.h (enum glyphless_display_method):
3444 Rename GLYPHLESS_DISPLAY_HEXA_CODE to GLYPHLESS_DISPLAY_HEX_CODE.
3445 All users changed.
0eb025fb 3446
bba3e508
SM
3447 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3448 Fix comments.
0eb025fb
EZ
3449 (produce_glyphless_glyph): Enclose "U+nnnn" and "empty box"
3450 whitespace in "[]", to simulate a box. Don't use uninitialized
3451 variable `width'.
3452
c869cc37
JD
34532010-11-11 Julien Danjou <julien@danjou.info>
3454
2d9074ba
JD
3455 * xsettings.c (init_xsettings): Use already fetch atoms.
3456
3457 * xsmfns.c (create_client_leader_window): Use SM_CLIENT_ID atom
3458 from dpyinfo.
3459
3460 * xselect.c (Fx_send_client_event): Split and create
3461 x_send_client_event.
3462
3463 * lisp.h: Do not EXFUN Fx_send_client_event.
3464
3465 * xterm.c (x_set_frame_alpha): Use _NET_WM_WINDOW_OPACITY atom
3466 from dpyinfo.
3467 (wm_supports): Use atoms from dpyinfo.
3468 (do_ewmh_fullscreen): Use atoms from dpyinfo.
3469 (x_ewmh_activate_frame): Use atoms from dpyinfo.
3470 (xembed_set_info): Use atoms from dpyinfo.
3471 (x_term_init): Fetch _XEMBED_INFO, _NET_SUPPORTED,
3472 _NET_SUPPORTING_WM_CHECK, _NET_WM_WINDOW_OPACITY and
3473 _NET_ACTIVE_WINDOW, XSETTINGS atoms.
3474 Get all atoms in one round-trip.
3475 (set_wm_state): Use x_send_client_event rather than
3476 Fx_send_client_event, using Atom directly.
3477 (x_ewmh_activate_frame): Ditto.
3478 (x_set_sticky): Pass atoms to set_wm_state.
3479 (do_ewmh_fullscreen): Ditto.
3480
2d9074ba
JD
3481 * xterm.h (x_display_info): Add Xatom_net_supported,
3482 Xatom_net_supporting_wm_check, Xatom_net_active_window,
3483 Xatom_net_wm_window_opacity, Xatom_XEMBED_INFO, SM_CLIENT_ID.
3484
c869cc37
JD
3485 * xfns.c (Fx_show_tip): Fix typo in docstring.
3486
1a4236ea
SM
34872010-11-11 Stefan Monnier <monnier@iro.umontreal.ca>
3488
3489 * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
3490 it's not negative.
3491
3106121c
YM
34922010-11-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3493
3494 * font.c (font_filter_properties): Add const to array elements of
3495 properties args.
3496
3497 * font.h (font_filter_properties): Likewise.
3498
3499 * ftfont.c (ftfont_booleans, ftfont_non_booleans): Add const to array
3500 elements.
3501
3502 * w32font.c (w32font_booleans, w32font_non_booleans): Likewise.
3503
da1fec2b
MA
35042010-11-10 Michael Albinus <michael.albinus@gmx.de>
3505
3506 * dbusbind.c (QCdbus_type_unix_fd): New Lisp object.
3507 (XD_BASIC_DBUS_TYPE, xd_symbol_to_dbus_type, xd_signature)
3508 (xd_append_arg, xd_retrieve_arg): Support DBUS_TYPE_UNIX_FD.
3509 (Fdbus_call_method): Add DBUS_TYPE_UNIX_FD type mapping to doc string.
3510 (syms_of_dbusbind): Initialize QCdbus_type_unix_fd).
3511
bd6bc222
GM
35122010-11-10 Glenn Morris <rgm@gnu.org>
3513
3514 * emacs.c (syms_of_emacs) <system-type>: Doc fix.
3515
c0098065
EZ
35162010-11-09 Eli Zaretskii <eliz@gnu.org>
3517
bd6bc222 3518 * xfns.c (x_real_positions): Fix declaration-after-statement problem.
c0098065 3519
d607b96b 35202010-11-09 Chong Yidong <cyd@stupidchicken.com>
be3faa80
CY
3521
3522 * image.c (free_image): Don't garbage the frame here, since this
3523 function can be called while redisplaying (Bug#7210).
3524 (uncache_image): Garbage the frame here (Bug#6426).
3525
d607b96b 35262010-11-09 Jan Djärv <jan.h.d@swipnet.se>
184765cc 3527
d607b96b
SM
3528 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
3529 parent is the root window. Check this after traversing window tree.
184765cc 3530
d607b96b 3531 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
bd80a886 3532
d607b96b 3533 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
bd80a886 3534
d607b96b
SM
3535 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
3536 before traversing window tree (Bug#5721).
c2e124a9 3537
27f92be7
J
35382010-11-07 Jan Djärv <jan.h.d@swipnet.se>
3539
66b16767
J
3540 * xfns.c (set_machine_and_pid_properties): Let X set WM_CLIENT_MACHINE.
3541
25f38310
SM
3542 * xdisp.c (note_mode_line_or_margin_highlight):
3543 Initialize Cursor to No_Cursor for HAVE_WINDOW_SYSTEM also.
27f92be7 3544
a971c0a7
EZ
35452010-11-06 Eli Zaretskii <eliz@gnu.org>
3546
3547 * xfns.c (Fx_show_tip): If any of the tool-tip text lines is R2L,
3548 adjust width of tool-tip frame to the width of text, excluding the
3549 stretch glyph at the beginning of R2L glyph rows.
3550
3551 * w32fns.c (Fx_show_tip): Likewise.
3552
80417b95
JD
35532010-11-06 Jan Djärv <jan.h.d@swipnet.se>
3554
3555 * nsfont.m: Include termchar for new mouse-highlight.
6dc61cf1 3556 (nsfont_draw): Use MOUSE_HL_INFO.
80417b95 3557
28118eb6
EZ
35582010-11-05 Eli Zaretskii <eliz@gnu.org>
3559
c1fc2d3a 3560 Unify mouse-highlight code for all GUI and TTY sessions.
cf482c50
EZ
3561
3562 * term.c: Remove static mouse_face_* variables. All users
3563 changed.
3564 (term_show_mouse_face, term_clear_mouse_face)
3565 (fast_find_position, term_mouse_highlight): Functions deleted.
3566 (tty_draw_row_with_mouse_face): New function.
3567 (term_mouse_movement): Call note_mouse_highlight instead of
3568 term_mouse_highlight.
3569
bbf534ce
EZ
3570 * nsterm.m (ns_update_window_begin, ns_update_window_end)
3571 (ns_update_end, x_destroy_window, ns_frame_up_to_date)
3572 (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
3573 (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
3574 (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
3575 Replace Display_Info with Mouse_HLInfo everywhere where
3576 mouse_face_* members were accessed for mouse highlight purposes.
3577
3578 * xterm.c (x_update_window_begin, x_update_window_end)
3579 (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
bba3e508
SM
3580 (handle_one_xevent, x_free_frame_resources, x_term_init):
3581 Replace Display_Info with Mouse_HLInfo everywhere where mouse_face_*
bbf534ce
EZ
3582 members were accessed for mouse highlight purposes.
3583
3584 * w32term.c (x_update_window_begin, x_update_window_end)
3585 (x_update_end, w32_read_socket, x_free_frame_resources)
3586 (w32_initialize_display_info): Replace Display_Info with
3587 Mouse_HLInfo everywhere where mouse_face_* members were accessed
3588 for mouse highlight purposes.
3589
3590 * xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
3591 (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
3592 unless the frame is on a window-system.
c1fc2d3a 3593 (get_tool_bar_item, handle_tool_bar_click)
7ea692f6
EZ
3594 (note_tool_bar_highlight, draw_glyphs, erase_phys_cursor)
3595 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3596 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3597 (x_clear_window_mouse_face, cancel_mouse_face, expose_frame):
3598 Replace Display_Info with Mouse_HLInfo everywhere where
3599 mouse_face_* members were accessed for mouse highlight purposes.
c1fc2d3a 3600 (coords_in_mouse_face_p): Move prototype out of the
d009ae66
EZ
3601 HAVE_WINDOW_SYSTEM conditional.
3602 (x_y_to_hpos_vpos, frame_to_window_pixel_xy): Move out of the
3603 HAVE_WINDOW_SYSTEM block.
bba3e508
SM
3604 (try_window_id) [HAVE_GPM || MSDOS]:
3605 Call x_clear_window_mouse_face.
d009ae66 3606 (draw_row_with_mouse_face): Implementation for HAVE_WINDOW_SYSTEM
c1fc2d3a
EZ
3607 systems. Call tty_draw_row_with_mouse_face for TTY systems.
3608 (show_mouse_face): Call draw_row_with_mouse_face, instead of
3609 calling draw_glyphs directly.
d009ae66
EZ
3610 (show_mouse_face, clear_mouse_face, coords_in_mouse_face_p)
3611 (cursor_in_mouse_face_p, rows_from_pos_range)
3612 (mouse_face_from_buffer_pos, mouse_face_from_string_pos)
3613 (note_mode_line_or_margin_highlight, note_mouse_highlight)
3614 (x_clear_window_mouse_face, cancel_mouse_face): Move out of the
3615 HAVE_WINDOW_SYSTEM block. Ifdef away window-system specific
3616 fragments.
3617 (note_mouse_highlight): Call popup_activated for MSDOS as well.
3618 Clear mouse highlight if pointer is over glyphs whose OBJECT is an
3619 integer.
3620 (mouse_face_from_buffer_pos): Add parentheses around && within ||.
bba3e508
SM
3621 (x_consider_frame_title, tool_bar_lines_needed):
3622 Move prototypes to HAVE_WINDOW_SYSTEM-only part.
c1fc2d3a
EZ
3623 (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only
3624 part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function.
3625 (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only
3626 part.
d009ae66
EZ
3627
3628 * dispnew.c (mirror_make_current): Set Y coordinate of the
3629 mode-line and header-line rows.
c1fc2d3a
EZ
3630 (init_display): Setup initial frame's output_data for text
3631 terminal frames.
d009ae66 3632
c1fc2d3a
EZ
3633 * xmenu.c (popup_activated): Don't define on MSDOS, which now has
3634 its own definition on msdos.c.
d009ae66
EZ
3635
3636 * msdos.c (show_mouse_face, clear_mouse_face)
3637 (fast_find_position, IT_note_mode_line_highlight)
3638 (IT_note_mouse_highlight): Functions deleted.
3639 (IT_frame_up_to_date, dos_rawgetc): Call note_mouse_highlight
3640 instead of IT_note_mouse_highlight.
3641 (draw_row_with_mouse_face, popup_activated): New functions.
c1fc2d3a
EZ
3642 (dos_set_window_size, draw_row_with_mouse_face, IT_update_begin)
3643 (IT_update_end, IT_frame_up_to_date, internal_terminal_init)
3644 (dos_rawgetc): Replace Display_Info with Mouse_HLInfo everywhere
3645 where mouse_face_* members were accessed for mouse highlight
3646 purposes.
3647
3648 * msdos.h (initialize_msdos_display): Add prototype.
3649
3650 * frame.h (MOUSE_HL_INFO): New macro.
3651
3652 * lisp.h (Mouse_HLInfo): New data type.
3653
3654 * xterm.h (struct x_display_info):
3655 * w32term.h (struct w32_display_info):
3656 * nsterm.h (struct ns_display_info):
3657 * termchar.h (struct tty_display_info): Use it instead of
3658 mouse_face_* members.
3659
3660 * dispextern.h (show_mouse_face, clear_mouse_face): Update type of
3661 1st argument.
3662 (frame_to_window_pixel_xy, note_mouse_highlight)
3663 (x_clear_window_mouse_face, cancel_mouse_face, clear_mouse_face)
3664 (show_mouse_face, cursor_in_mouse_face_p): Move prototypes out of
3665 HAVE_WINDOW_SYSTEM conditional.
3666 (draw_row_with_mouse_face): Declare prototype.
3667 (tty_draw_row_with_mouse_face): Declare prototype.
3668
6e8d7c47
EZ
36692010-11-05 Eli Zaretskii <eliz@gnu.org>
3670
bba3e508
SM
3671 * term.c (append_glyphless_glyph, produce_glyphless_glyph):
3672 Remove unused variables.
6e8d7c47 3673
f31ba3f0
AR
36742010-11-05 Adrian Robert <Adrian.B.Robert@gmail.com>
3675
3676 * nsterm.m (EmacsView-mouseExited:): Correct error in conditional
3677 logic pointed out by Eli Zaretskii.
3678
448e17d6
LMI
36792010-11-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
3680
0c3a9a9f
GM
3681 * coding.c (coding-category-list): Refer to set-coding-system-priority
3682 instead of the obsolete set-coding-priority in the doc string.
448e17d6 3683
3fdebbf9 36842010-11-04 Adrian Robert <Adrian.B.Robert@gmail.com>
f31ba3f0 3685
2f8f196d 3686 * nsfont.m (nsfont_draw): Correct previous patch to return
f31ba3f0
AR
3687 correct value.
3688 * nsimage.m (EmacsImage-setXBMColor:): Correct previous patch:
3689 don't change the method signature, change the return.
3690
36912010-11-04 Ismail Donmez <ismail@namtrac.org> (tiny change)
3fdebbf9
AR
3692
3693 * nsfont.m (nsfont_draw)
3694 * nsimage.m (EmacsImage-setXBMColor:)
f31ba3f0 3695 * nsterm.m (EmacsView-performDragOperation:): Correct empty return.
3fdebbf9 3696
17c0c952
JD
36972010-11-03 Julien Danjou <julien@danjou.info>
3698
3699 * image.c (gif_load): Add support for transparency and specified
3700 :background.
3701
b18fad6d
KH
37022010-11-01 Kenichi Handa <handa@m17n.org>
3703
3704 * dispextern.h (lookup_glyphless_char_display): Extern it.
3705
3706 * termhooks.h (struct terminal): New member charset_list.
3707
3708 * coding.c (Fset_terminal_coding_system_internal): Set the
3709 `charset_list' member of struct terminal.
3710
a8039db1 3711 * term.c (produce_glyphs): Handle the case it->what == IT_GLYPHLESS.
b18fad6d
KH
3712 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3713
3714 * xdisp.c (lookup_glyphless_char_display): Make it non-static.
3715 (lookup_glyphless_char_display): Set it->what at the end.
3716 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3717 (last_glyphless_glyph_merged_face_id): Make them non-static.
3718
a8039db1
JB
3719 * w32term.c (x_draw_glyphless_glyph_string_foreground):
3720 Fix the arg with_background for font->driver->draw.
65b6b59a 3721
a8039db1 37222010-11-01 Kenichi Handa <handa@m17n.org>
0269bd90 3723
a8039db1
JB
3724 * w32gui.h (STORE_XCHAR2B, XCHAR2B_BYTE1, XCHAR2B_BYTE2):
3725 Surround chp by parentheses.
0269bd90 3726
a8039db1 37272010-11-01 Kenichi Handa <handa@m17n.org>
b2cca856
KH
3728
3729 Implement various display methods for glyphless characters.
3730
3731 * xdisp.c (Qglyphless_char, Vglyphless_char_display)
3732 (Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space)
3733 (Qzero_width): New variables.
3734 (THIN_SPACE_WIDTH): New macro.
01c35094 3735 (lookup_glyphless_char_display): New function.
b2cca856
KH
3736 (last_glyphless_glyph_frame, last_glyphless_glyph_face_id)
3737 (last_glyphless_glyph_merged_face_id): New variables.
3738 (get_next_display_element): Check glyphless characters.
3739 (redisplay_internal): Initialize last_glyphless_glyph_frame and
3740 last_glyphless_glyph_face_id.
3741 (fill_glyphless_glyph_string): New function.
3742 (BUILD_GLYPHLESS_GLYPH_STRING): New macro.
3743 (BUILD_GLYPH_STRINGS): Handle the case GLYPHLESS_GLYPH.
3744 (append_glyphless_glyph, produce_glyphless_glyph): New functions.
3745 (x_produce_glyphs): If a suitable font is not found, produce a
3746 glyphless glyph. Handle the case it->what == IT_GLYPHLESS.
3747 (syms_of_xdisp): Intern and staticpro Qglyphless_char,
3748 Qglyphless_char_display, Qhexa_code, Qempty_box, Qthin_space, and
3749 Qzero_width.
3750 (Vglyphless_char_display): Declare it as a Lisp variable.
3751
3752 * dispextern.h (enum glyph_type): Add GLYPHLESS_GLYPH.
a8039db1
JB
3753 (struct glyph): Change the size of the member "type" to 3.
3754 Add glyphless to the union slice and u.
b2cca856
KH
3755 (enum display_element_type): Add IT_GLYPHLESS.
3756 (enum glyphless_display_method): New enum.
3757 (struct it): New member glyphless_method.
3758 (Vglyphless_char_display): Extern it.
3759
3760 * xterm.c (x_draw_glyphless_glyph_string_foreground): New function.
3761 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3762
a8039db1 3763 * w32term.c (x_draw_glyphless_glyph_string_foreground): New function.
b2cca856
KH
3764 (x_draw_glyph_string): Handle the case GLYPHLESS_GLYPH.
3765
3766 * nsterm.m (ns_draw_glyph_string): Handle the case
3767 GLYPHLESS_GLYPH (the detail is not yet implemented).
3768
c8c59954
GM
37692010-10-31 Glenn Morris <rgm@gnu.org>
3770
80696982
GM
3771 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Fix merge, maybe.
3772
c8c59954
GM
3773 * frame.c (syms_of_frame) <tool-bar-mode>:
3774 Default to nil if !HAVE_WINDOW_SYSTEM. (Bug#7299)
3775
46eadc7a
CY
37762010-10-31 Chong Yidong <cyd@stupidchicken.com>
3777
3778 * xterm.c (x_connection_closed): Print informative error message
3779 when aborting on GTK. This requires using shut_down_emacs
3780 directly instead of Fkill_emacs.
3781
ffe75e6b
EZ
37822010-10-29 Eli Zaretskii <eliz@gnu.org>
3783
3784 * emacs.c (main): Call syms_of_filelock unconditionally.
3785
3786 * filelock.c (syms_of_filelock): Move out of #ifdef CLASH_DETECTION
3787 clause, but keep part of it conditioned on CLASH_DETECTION.
3788
9d794026
GM
37892010-10-29 Glenn Morris <rgm@gnu.org>
3790
4f4f2973
GM
3791 * nsfns.m (Fx-display-save-under, Fx-open-connection)
3792 (Fxw-color-defined-p, Fxw-display-color-p, Fx-show-tip):
3793 * w32fns.c (Fxw_color_defined_p, Fx_open_connection):
3794 * xfns.c (Fxw_color_defined_p, Fx_open_connection):
3795 Sync docs between X, W32, NS.
3796
9d794026
GM
3797 * buffer.c (syms_of_buffer) <abbrev-mode, transient-mark-mode>:
3798 * frame.c (syms_of_frame) <tool-bar-mode>: Move doc here from Lisp.
3799
d46f6bbb
JB
38002010-10-26 Juanma Barranquero <lekktu@gmail.com>
3801
3802 * eval.c (init_eval_once): Set max_lisp_eval_depth to 600;
3803 otherwise, bootstrapping on Windows fails to compile macroexp.el.
3804
2e35f1a2
EZ
38052010-10-26 Eli Zaretskii <eliz@gnu.org>
3806
3807 * cmds.c (internal_self_insert): Don't insert if argument N is
84b28888 3808 zero or negative. (Bug#7281)
2e35f1a2 3809
8daaeda6
J
38102010-10-26 Jan Djärv <jan.h.d@swipnet.se>
3811
3812 * gtkutil.c (qttip_cb): Set title to empty for ATK (Bug#7278).
3813
6a5c2175
GM
38142010-10-25 Glenn Morris <rgm@gnu.org>
3815
3816 * Makefile.in (SOME_MACHINE_LISP): Remove easymenu.elc.
3817
7c051dd8
GM
38182010-10-24 Glenn Morris <rgm@gnu.org>
3819
3820 * w32fns.c (Fx_synchronize, Fx_change_window_property)
3821 (Fx_window_property, Fx_file_dialog):
3822 * xfns.c (Fx_synchronize, Fx_change_window_property)
3823 (Fx_window_property, Fx_file_dialog): Sync docs between w32 and X.
3824
23c261f5
CY
38252010-10-24 Chong Yidong <cyd@stupidchicken.com>
3826
3827 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
3828
d414c713 38292010-10-24 Eli Zaretskii <eliz@gnu.org>
89baa1df
EZ
3830
3831 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
3832
3833 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
3834 Deprecate use as a boolean flag.
3835
947f5e01
JM
38362010-10-24 Jim Meyering <jim@meyering.net>
3837
3838 * emacs.c (argmatch): Don't treat "--" as "--chdir".
3839
65807d73
GM
38402010-10-24 Glenn Morris <rgm@gnu.org>
3841
f5f25615
GM
3842 * w16select.c (syms_of_win16select) <selection-coding-system>:
3843 <next-selection-coding-system>:
3844 * w32select.c (syms_of_w32select) <selection-coding-system>:
3845 <next-selection-coding-system>:
3646b86d
GM
3846 Sync docs with select.el.
3847
46710489
GM
3848 * xfaces.c (syms_of_xfaces) <tty-defined-color-alist>: Sync doc with
3849 Lisp version.
3850
ea883883
GM
3851 * w32term.c (syms_of_w32term) <x-use-underline-position-properties>:
3852 Sync doc with the xterm.c version.
3853
65807d73
GM
3854 * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
3855 * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
3856
f3d87560
GM
38572010-10-23 Glenn Morris <rgm@gnu.org>
3858
66c6abf0 3859 * buffer.c (syms_of_buffer) <cursor-in-non-selected-windows>:
e1fd756b 3860 * frame.c (syms_of_frame) <menu-bar-mode>:
6e82cf1a 3861 * xdisp.c (syms_of_xdisp) <auto-hscroll-mode, display-hourglass>:
a102db1e 3862 <hourglass-delay>: Sync docs with Lisp.
f3d87560 3863
7b7e2c18
EZ
38642010-10-23 Eli Zaretskii <eliz@gnu.org>
3865
d1d6801e 3866 Implement mouse highlight for bidi-reordered lines.
d0010be5
EZ
3867
3868 * xdisp.c (fast_find_string_pos): #ifdef away, not used anymore.
3869 (mouse_face_from_string_pos): New function, replaces
3870 fast_find_string_pos.
3871 (note_mouse_highlight): Call it instead of fast_find_string_pos.
d1d6801e
EZ
3872 (note_mode_line_or_margin_highlight): Support bidi-reordered
3873 strings and R2L glyph rows. Fix comments.
2f3f89b3
EZ
3874 (note_mouse_highlight): When bidi reordering is turned on in a
3875 buffer, call next-single-property-change and
ef1b0ba7
SM
3876 previous-single-property-change with last argument nil.
3877 Clear mouse highlight when mouse pointer is in a R2L row on the stretch
d1d6801e 3878 glyph that stands for no text beyond the line end.
1f382a02
EZ
3879 (row_containing_pos): Don't return too early when CHARPOS is in a
3880 bidi-reordered continued line. Return immediately when the first
3881 hit is found in a line that is not continued, or when an exact
3882 match for CHARPOS is found.
d1d6801e
EZ
3883 (rows_from_pos_range): New function.
3884 (mouse_face_from_buffer_pos): Use it instead of calling
3885 row_containing_pos for START_CHARPOS and END_CHARPOS. Rewrite the
3886 function to support mouse highlight in bidi-reordered lines and
3887 not to assume that START_CHARPOS is always in mouse_face_beg_row.
3888 If necessary, swap mouse_face_beg_row and mouse_face_end_row so
3889 that the former is always above the latter or identical to it.
1554d88e 3890 (show_mouse_face): Support drawing highlighted R2L lines.
1b5a721b
EZ
3891 (coords_in_mouse_face_p): New function, bidi-aware.
3892 (cursor_in_mouse_face_p, note_mouse_highlight, erase_phys_cursor):
3893 Call it instead of comparing with mouse-face members of dpyinfo.
3894 (note_mode_line_or_margin_highlight): Fix confusingly swapped
3895 usage of hpos and vpos.
544bbc31 3896
dee186b6
J
38972010-10-22 Jan Djärv <jan.h.d@swipnet.se>
3898
3899 * xrdb.c: Include keyboard.h for MOTIF.
3900
3901 * xmenu.c: Revert 2010-07-27 change: lwlib.h is needed for
3902 MOTIF (Bug#7263).
3903
3904 * xfns.c: Include Xm/TextF and Xm/List.
bba3e508
SM
3905 (file_dialog_cb, file_dialog_unmap_cb, clean_up_file_dialog):
3906 Make ANSI prototypes.
dee186b6 3907
5fb59edb
GM
39082010-10-22 Glenn Morris <rgm@gnu.org>
3909
3910 * Makefile.in (SOME_MACHINE_LISP): Add w32-vars.
3911 Remove ccl and duplicate mouse.
3912
8b78d5e3
CY
39132010-10-21 Chong Yidong <cyd@stupidchicken.com>
3914
3915 * insdel.c (prepare_to_modify_buffer): Don't set
3916 saved-region-selection if modification hooks are disabled.
3917
b8a47412
CY
39182010-10-19 Chong Yidong <cyd@stupidchicken.com>
3919
3920 * cmds.c (Fdelete_char): Doc fix.
3921
ca3fa302 39222010-10-19 Ken Brown <kbrown@cornell.edu>
5419963b
KB
3923
3924 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
3925
ca3fa302 39262010-10-19 Kenichi Handa <handa@m17n.org>
31daa5e1
KH
3927
3928 Fix incorrect font metrics when the same font is opened with
3929 different pixelsizes.
3930
3931 * xftfont.c: Include composite.h.
3932 (xftfont_shape): New function.
3933 (syms_of_xftfont): Set xftfont_driver.shape.
3934
c978536f
JD
39352010-10-18 Julien Danjou <julien@danjou.info>
3936
3937 * frame.c (Fframe_pointer_visible_p):
3938 Add `frame-pointer-visible-p' to get the pointer visibility.
3939
4b2d9ec2
LMI
39402010-10-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
3941
3942 * gnutls.c (emacs_gnutls_read): Return 0 if we get a
3943 non-"EAGAIN"-like error to signal to Emacs that the socket should
3944 be closed.
3945
9cf66cf2
EZ
39462010-10-15 Eli Zaretskii <eliz@gnu.org>
3947
c3911ead
EZ
3948 * unexcoff.c (make_hdr): Fix prototype according to changes in
3949 2010-10-03T13:59:56Z!dann@ics.uci.edu.
3950
9cf66cf2
EZ
3951 * image.c (tiff_load): Cast 3rd argument to avoid compiler warning.
3952
be98da05
TH
39532010-10-15 Tassilo Horn <tassilo@member.fsf.org>
3954
3955 * Makefile.in (really-oldXMenu): Fix typo in variable name that
3956 made building the X menu fail.
cc98b256 3957 (really-oldXMenu): Fix my previous fix.
be98da05 3958
220d91b8 39592010-10-14 Damyan Pepper <damyanp@gmail.com>
9fa82824
DP
3960
3961 Fix handling of font properties on Windows (bug#6303).
3962 * font.c (font_filter_properties): New function, refactored from
3963 ftfont_filter_properties.
3964 * font.h (font_filter_properties): Declare.
3965 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
3966 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
3967 (w32font_filter_properties): New function.
3968 (w32font_driver): Add w32font_filter_properties.
3969
220d91b8 39702010-10-14 Juanma Barranquero <lekktu@gmail.com>
51e4f4a8 3971
c0943d3d 3972 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
3973 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
3974
24f981c9
JB
39752010-10-14 Juanma Barranquero <lekktu@gmail.com>
3976
3977 * w32fns.c (w32_wnd_proc, file_dialog_callback):
3978 * w32font.c (w32_generic_family):
3979 * w32inevt.c (key_event):
3980 * w32menu.c (fill_in_menu):
3981 * w32proc.c (reader_thread, w32_executable_type, compare_env)
3982 (merge_and_sort_env, int_from_hex, enum_locale_fn, enum_codepage_fn):
3983 * w32term.c (w32_read_socket): Make static.
3984
850690cc
JB
39852010-10-13 Juanma Barranquero <lekktu@gmail.com>
3986
3987 * image.c (DEF_IMGLIB_FN): Add argument to adapt to strict
3988 prototypes; all callers changed.
3989
5e371708
JB
39902010-10-13 Juanma Barranquero <lekktu@gmail.com>
3991
3992 * makefile.w32-in (TLIB2): Rename from TLIBW32.
3993 (OBJ2): New macro.
3994 (WIN32OBJ, FONTOBJ): Remove.
3995 (OBJ1): Redistribute object files with OBJ2.
3996 (LIBS, $(TEMACS)): Use TLIB2.
3997 (make-buildobj-CMD, make-buildobj-SH): Use OBJ2.
3998 ($(TLIB2), TAGS, TAGS-LISP, TAGS-gmake): Depend on OBJ2.
3999
2e288d54
JB
40002010-10-13 Juanma Barranquero <lekktu@gmail.com>
4001
4002 * emacs.c (Vdynamic_library_alist)
4003 (syms_of_emacs) <dynamic-library-alist>: Move from image.c and rename.
4004 Doc fix.
4005
4006 * lisp.h (Vdynamic_library_alist): Declare extern.
4007
4008 * image.c (Vimage_library_alist)
4009 (syms_of_image) <image-library-alist>: Move to emacs.c and rename.
4010 (lookup_image_type): Use Vdynamic_library_alist.
4011 (Finit_image_library): Doc fix.
4012
aba1381b
DN
40132010-10-12 Dan Nicolaescu <dann@ics.uci.edu>
4014
4015 * Makefile.in (lispsource, libsrc, etc, oldxmenudir, lwlibdir)
4016 (lispdir): Remove trailing /, update all uses.
4017
4c14013d 40182010-10-12 Jan Djärv <jan.h.d@swipnet.se>
a2e35ef5
JD
4019
4020 * nsterm.m (Qleft): Declare.
01c35094 4021 (ns_right_alternate_modifier): New variable.
a2e35ef5
JD
4022 (NSRightAlternateKeyMask): New define.
4023 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
4024 ns_right_alternate_modifier isn't Qleft.
4025 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
4026 as emacs modifier for NSRightAlternateKeyMask.
4027 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
4028
355cdaf3
LMI
40292010-10-10 Lars Magne Ingebrigtsen <larsi@gnus.org>
4030
4031 * gnutls.c (emacs_gnutls_write): If we're trying to write before
4032 gnutls is ready, return EAGAIN as the errno.
4033
4c620157
DN
40342010-10-10 Dan Nicolaescu <dann@ics.uci.edu>
4035
edfd76ce
DN
4036 * vm-limit.c:
4037 * unexhp9k800.c:
4038 * unexelf.c:
4039 * unexaix.c:
4040 * termcap.c: Remove #ifdef emacs / #ifndef emacs code, unused.
4041
a4daeecf
DN
4042 * Makefile.in (temacs): Use $(ALL_CFLAGS) on the link line.
4043 (PROFILING_LDFLAGS): Remove, not needed anymore.
4044
01c35094 4045 * Makefile.in: Use $(...) everywhere instead of ${...}.
4cf3ad30
DN
4046 (CRT_DIR): Move near potential user.
4047 (START_FILE): Move near CRT_DIR, it might use it.
2cb72a75 4048
4c620157
DN
4049 * sysdep.c (LPASS8): Remove, unused.
4050 (emacs_ospeed): Change from being a global to a local in the only
4051 user: init_baud_rate.
4052
b845653d
LMI
40532010-10-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
4054
4055 * gnutls.c (syms_of_gnutls): All the bootprops are keywords.
bda6d2bd 4056 (emacs_gnutls_write): Remove the debuggin fsync call.
b845653d 4057 (emacs_gnutls_read): Return -1 if we got an error from
bda6d2bd 4058 gnutls_read. This allows us to actually read lots of data from
b845653d 4059 the GnuTLS stream.
2e6c74c5
LMI
4060 (emacs_gnutls_write): Check for GNUTLS_E_AGAIN and not EINTR.
4061 According to the documentation, this is correct, and it seems to
4062 make things work.
b845653d 4063
3625b3e2
CY
40642010-10-09 Chong Yidong <cyd@stupidchicken.com>
4065
4066 * xterm.c (x_draw_relief_rect): Clear corner pixels.
4067
8b1c619f
MA
40682010-10-08 Michael Albinus <michael.albinus@gmx.de>
4069
4070 * keyboard.c: Revert last change; it was not intended to be
4071 synchronized with the trunk.
4072
93d50df8
KH
40732010-10-08 Kenichi Handa <handa@m17n.org>
4074
2b7c9342 4075 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 4076
4628bef1 40772010-10-08 Michael Albinus <michael.albinus@gmx.de>
a79b0f28
MA
4078
4079 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
4080 (Fdbus_init_bus): ... here. (Bug#7113)
4081
4628bef1 40822010-10-08 Glenn Morris <rgm@gnu.org>
7b2bf907
GM
4083
4084 * buffer.c (before-change-functions, after-change-functions):
4085 Three-year overdue doc fix following 2007-08-13 change.
4086
4628bef1 40872010-10-08 Kenichi Handa <handa@m17n.org>
1911a33b
KH
4088
4089 * coding.c (coding_inherit_eol_type): If parent doesn't specify
4090 eol-format, inherit from the system's default.
4091 (complement_process_encoding_system): Make a new coding system
4092 inherit the original eol-format.
4093
4628bef1 40942010-10-08 Kenichi Handa <handa@m17n.org>
fcaf8878
KH
4095
4096 * coding.c (complement_process_encoding_system): New function.
4097
4098 * coding.h (complement_process_encoding_system): Extern it.
4099
4100 * callproc.c (Fcall_process): Complement the coding system for
4101 encoding arguments.
4102 (Fcall_process_region): Complement the coding system for encoding
4103 the input to the process.
4104
4105 * process.c (Fstart_process): Complement the coding system for
4106 encoding arguments.
4107 (send_process): Complement the coding system for encoding what
4108 sent to the process.
4109
4628bef1 41102010-10-08 Kenichi Handa <handa@m17n.org>
18acb5ad
KH
4111
4112 * xfont.c (xfont_open): Fix setting of font->average_width from
4113 :avgwidth property (Bug#7123).
4114
4628bef1 41152010-10-08 Michael Albinus <michael.albinus@gmx.de>
dec83468
MA
4116
4117 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4118 is more portable.
4119
4120 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
84eb0351 4121 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
dec83468
MA
4122 has not defined SIGIO.
4123
389454fb
CY
41242010-10-08 Chong Yidong <cyd@stupidchicken.com>
4125
4126 * xterm.c (x_draw_relief_rect): If box width is larger than 1,
4127 draw the outermost line using the black relief, for legibility.
4128 Omit drawing the four corner pixels.
4129
51b403bd
CY
41302010-10-04 Chong Yidong <cyd@stupidchicken.com>
4131
4132 * keyboard.c (echo_prompt): Function moved into read_key_sequence.
4133 (read_key_sequence): Inline echo_prompt.
4134 (echo_dash): Add a dash only if key is continued (Bug#7137).
4135
3e6ae1a4
DN
41362010-10-04 Dan Nicolaescu <dann@ics.uci.edu>
4137
4138 Remove O_RDONLY, O_WRONLY definitions, not needed.
4139 * unexcoff.c:
4140 * lread.c:
4141 * fileio.c:
4142 * doc.c:
4143 * callproc.c:
4144 * alloc.c:
4145 * termcap.c: Remove O_RDONLY O_WRONLY definitions.
4146
c1ae068b
LMI
41472010-10-03 Teodor Zlatanov <tzz@lifelogs.com>
4148
4149 * gnutls.h (GNUTLS_LOG2): Convenience macro.
4150
4151 * gnutls.c: Add property list symbol holders.
4152 (emacs_gnutls_handshake): Clarify how sockets are passed to
4153 GnuTLS.
4154 (gnutls_log_function2): Convenience function using GNUTLS_LOG2.
4155 (Fgnutls_boot): Get all parameters from a plist. Require trustfiles
4156 and keyfiles to be a list of file names. Default to "NORMAL" for
4157 the priority string. Improve logging.
4158
e2afe435
GM
41592010-10-03 Glenn Morris <rgm@gnu.org>
4160
4161 * fileio.c (Vdirectory_sep_char): Remove.
4162
dd5ecd6b
DN
41632010-10-03 Dan Nicolaescu <dann@ics.uci.edu>
4164
b5437a05
DN
4165 * termhooks.h: Remove #ifdef CONSP.
4166
4777478a
DN
4167 * xterm.c (NO_INLINE, noinline): Move definitions to ../configure.in.
4168
a3d5088d
DN
4169 Include <fcntl.h> unconditionally.
4170 * termcap.c:
4171 * sysdep.c:
4172 * lread.c:
4173 * keyboard.c:
4174 * filelock.c:
4175 * fileio.c:
4176 * doc.c:
4177 * callproc.c:
4178 * alloc.c: Remove include guards for <fcntl.h>, process.c already
4179 does it.
4180
82719735
DN
4181 * process.c: Do not include <sys/wait.h>, syswait.h does it.
4182
9de940b5
DN
4183 * sysdep.c (flush_pending_output): Remove code, does not do
4184 anything on any platform.
4185
57507bf8 4186 Remove unused code.
bba3e508
SM
4187 * sysdep.c (select_alarm, sys_select, read_input_waiting):
4188 Remove select emulation, all systems support select.
57507bf8
DN
4189 (set_exclusive_use): Remove, the only user is in an #if 0 block.
4190 * process.c (create_process): Remove #if 0 code.
4191
dd5ecd6b
DN
4192 Remove unused arguments for unexec.
4193 The third one is never used, and the last two are always passed as zero.
4194 * emacs.c (unexec): Add declaration.
4195 (Fdump_emacs): Only pass the first two arguments to unexec.
4196 Simplify #ifdef.
4197 * unexw32.c (unexec):
4198 * unexsol.c (unexec):
4199 * unexhp9k800.c (unexec):
4200 * unexcw.c (unexec): Remove the last 3 arguments, unused.
4201 * unexelf.c (unexec): Remove the last 3 arguments, unused.
4202 (find_section): Use const.
4203 * unexmacosx.c (unexec): Remove the last 3 arguments, unused.
4204 (unexec_error): Declare it NO_RETURN.
4205 * unexcoff.c (make_hdr): Assume bss_start is always zero, remove
4206 it as an argument, remove data_start and entry_address arguments, unused.
4207 (unexec): Remove bss_start, data_start and
4208 entry_address arguments.
4209 * unexaix.c (make_hdr): Assume bss_start is always zero, remove
4210 it as an argument, remove data_start and entry_address arguments, unused.
4211 (unexec): Remove bss_start, data_start and
4212 entry_address arguments.
4213
74f1829d
JB
42142010-10-03 Juanma Barranquero <lekktu@gmail.com>
4215
7f467e14
JB
4216 * makefile.w32-in (TAGS, TAGS-LISP, TAGS-gmake): Add $(FONTOBJ).
4217
74f1829d
JB
4218 * gnutls.c (emacs_gnutls_handshake, gnutls_make_error)
4219 (gnutls_emacs_global_init, gnutls_emacs_global_deinit): Make static.
4220 (Fgnutls_get_initstage, Fgnutls_deinit, Fgnutls_boot, Fgnutls_bye):
4221 Fix typos in docstrings.
4222 (Fgnutls_error_fatalp, Fgnutls_error_string): Doc fixes.
4223 (Fgnutls_errorp): Doc fix; use ERR for the argument name.
4224
6926550f
CY
42252010-10-03 Chong Yidong <cyd@stupidchicken.com>
4226
4227 * keyboard.c (command_loop_1): Make sure the mark is really alive
4228 before using it (Bug#7044).
4229
54b65f7b
JB
42302010-10-02 Juanma Barranquero <lekktu@gmail.com>
4231
4232 * makefile.w32-in (tags): Rename target to full-tags.
4233
383ebd15
EZ
42342010-10-02 Eli Zaretskii <eliz@gnu.org>
4235
4236 * emacs.c (main): Remove !WINDOWSNT conditional.
4237 (Fkill_emacs): Don't mention exemption on MS-Windows.
4238
9c524fcb
GM
42392010-10-02 Glenn Morris <rgm@gnu.org>
4240
3226d6ca
GM
4241 * character.c (Fchar_bytes): Remove obsolete function.
4242 (syms_of_character): Remove Schar_bytes.
4243
9c524fcb
GM
4244 * emacs.c (fatal_error_signal): Also run Fkill_emacs on SIGINT.
4245 (main) [!WINDOWSNT]: Handle SIGINT with fatal_error_signal
4246 in batch-mode.
4247 (Fkill_emacs): Doc fix. Also run the hook in batch mode.
4248 (kill-emacs-hook): Doc fix.
4249
1b217849
LMI
42502010-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
4251
4252 * xml.c (Flibxml_parse_xml_region, Flibxml_parse_html_region)
bba3e508 4253 (parse_region): Rework to take regions instead of strings, and
1b217849
LMI
4254 renamed to reflect that these are the libxml functions.
4255
54cc6a83
EZ
42562010-10-01 Eli Zaretskii <eliz@gnu.org>
4257
0ebf79de
EZ
4258 * term.c (init_tty) [DOS_NT]: Don't call Wcm_clear after setting
4259 screen dimensions in tty->Wcm.
4260
54cc6a83
EZ
4261 * xdisp.c (set_cursor_from_row): When the row is truncated and
4262 point is outside the range of displayed characters, position the
4263 cursor inside the scroll margin. (Bug#6349)
4264
321401d1
DN
42652010-10-01 Dan Nicolaescu <dann@ics.uci.edu>
4266
4cacd822
DN
4267 Do not include stdlib.h and string.h, config.h does it.
4268 * xfont.c:
4269 * w32term.c:
4270 * w32reg.c:
4271 * w32inevt.c:
4272 * w32heap.c:
4273 * w32console.c:
4274 * w16select.c:
4275 * unexsol.c:
4276 * term.c:
4277 * sound.c:
4278 * scroll.c (m):
4279 * gtkutil.c:
4280 * font.c:
4281 * filelock.c:
4282 * fileio.c:
4283 * dosfns.c:
4284 * dbusbind.c:
4285 * bidi.c:
4286 * callproc.c:
4287 * process.c:
4288 * msdos.c:
4289 * charset.c: Do not include stdlib.h and string.h, config.h does it.
4290
bba3e508
SM
4291 * callproc.c (SIGCHLD): Remove conditional definition, syssignal.h
4292 defines it.
0781e7ab 4293
9bf58201
DN
4294 * process.c: Move #include <pty.h> earlier.
4295 (SIGCHLD): Remove conditional definition, syssignal.h defines it.
4296 (pty_name): Move definition later.
4297
088dcc3e
DN
4298 * nsselect.m (syms_of_nsselect):
4299 * nsmenu.m (syms_of_nsmenu):
4300 * nsfns.m (syms_of_nsfns):
4301 * msdos.c (syms_of_msdos):
4cacd822 4302
088dcc3e
DN
4303 * image.c (syms_of_image):
4304 * charset.c (syms_of_charset): Use intern_c_string instead of intern.
4305
321401d1
DN
4306 * point.h: Remove, unused.
4307
73077a9a
EZ
43082010-10-01 Eli Zaretskii <eliz@gnu.org>
4309
4310 * makefile.w32-in (TAGS, frc, TAGS-LISP, ../nt/TAGS, tags)
4311 (TAGS-gmake, TAGS-nmake, TAGS-LISP-gmake, TAGS-LISP-nmake)
4312 (nt-TAGS-gmake, nt-TAGS-nmake): New targets.
4313
55e572ef
DN
43142010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4315
4316 * xml.c (parse_string): Use const.
4317
d4b6d95d
LMI
43182010-09-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
4319
ef1b0ba7
SM
4320 * eval.c (Fbacktrace): Don't overwrite print-level on exit.
4321 Also only override Vprint_level if it isn't already bound, and increase
d4b6d95d
LMI
4322 the level to 8 to produce more useful backtraces for bug reports.
4323
e4b6db12
DN
43242010-09-30 Dan Nicolaescu <dann@ics.uci.edu>
4325
4326 * Makefile.in: ecrt0.c does not exist anymore, do not mention it.
4327
1becef93
JB
43282010-09-30 Juanma Barranquero <lekktu@gmail.com>
4329
4330 * w32console.c (vga_stdcolor_name): Remove unused function;
4331 presumed dead after 2007-11-30T13:57:21Z!jasonr@gnu.org.
4332
df7fcaff
LMI
43332010-09-29 Lars Magne Ingebrigtsen <larsi@gnus.org>
4334
bac5cef8
LMI
4335 * gnutls.c (emacs_gnutls_handshake): Made into internal function.
4336 (Fgnutls_boot): Start the handshake.
4337 (emacs_gnutls_read): Perform the handshake from the reader loop.
e6059fa2
LMI
4338 (Fgnutls_boot): Remove some debugging messages.
4339 Change indentation throughout to use the Emacs style.
4340 (emacs_gnutls_handshake): Cast the fds to something that's
4341 possibly the expected length.
4342 (emacs_gnutls_write): Return -1 if we try to write before handshake.
bac5cef8 4343
df7fcaff
LMI
4344 * process.h (Lisp_Process): Add a gnutls_p field to Lisp_Process.
4345
4346 * process.c (make_process): Set the gnutls_p field to zero by
4347 default.
4348 (read_process_output): Always call the gnutls_read function if the
4349 stream is a gnutls stream.
4350 (send_process): Ditto for writes.
4351
4352 * gnutls.c (emacs_gnutls_write, emacs_gnutls_read): Refuse to read
4353 or write anything until the state is GNUTLS_STAGE_READY.
4354 (Fgnutls_boot): Mark the stream as being a gnutls stream.
4355
d585695f
EZ
43562010-09-29 Eli Zaretskii <eliz@gnu.org>
4357
af7ef32d
EZ
4358 * xdisp.c (reseat_1): Initialize bidi_it.paragraph_dir to
4359 NEUTRAL_DIR.
4360 (handle_invisible_prop, iterate_out_of_display_property)
4361 (next_element_from_buffer): If bidi_it.first_elt is set, call
4362 bidi_paragraph_init with NO_DEFAULT_P argument non-zero.
4363 (Bug#7128)
4364
d585695f
EZ
4365 * print.c (print_object): Fix format string and argument types for
4366 printing a Lisp_Misc_Marker.
4367
4368 * xdisp.c (pos_visible_p, c_string_pos, number_of_chars)
4369 (load_overlay_strings, get_overlay_strings_1)
4370 (get_overlay_strings, forward_to_next_line_start)
4371 (back_to_previous_visible_line_start, reseat, reseat_to_string)
4372 (get_next_display_element, next_element_from_string)
4373 (next_element_from_c_string, next_element_from_buffer)
4374 (move_it_vertically_backward, move_it_by_lines, add_to_log)
4375 (message_dolog, message_log_check_duplicate, message2_nolog)
4376 (message3, message3_nolog, vmessage, set_message, set_message_1)
4377 (hscroll_window_tree, text_outside_line_unchanged_p)
4378 (set_cursor_from_row, set_vertical_scroll_bar, redisplay_window)
4379 (find_last_unchanged_at_beg_row)
4380 (find_first_unchanged_at_end_row, row_containing_pos)
4381 (trailing_whitespace_p, display_mode_element, decode_mode_spec)
bba3e508
SM
4382 (display_count_lines, x_produce_glyphs, note_mouse_highlight):
4383 Use EMACS_INT for buffer and string positions.
d585695f
EZ
4384
4385 * dispextern.h (struct it) <string_nchars>: Declare EMACS_INT.
4386 (row_containing_pos): Adjust prototype.
4387
4388 * lisp.h (pos_visible_p, message2, message2_nolog, message3)
4389 (message2_nolog, set_message): Adjust prototypes.
4390
a6f3211f
SM
43912010-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
4392
4393 * gnutls.c (Fgnutls_boot): Remove unused vars `data' and `srp_cred'.
4394 (Fgnutls_boot): Use SDATA.
4395 (Fgnutls_handshake): Remove unused var `max_log_level'.
4396
e0720500
MA
43972010-09-27 Michael Albinus <michael.albinus@gmx.de>
4398
11a5af7c 4399 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
4400 (Bug#7113)
4401
d8a4b27a
J
44022010-09-27 Jan Djärv <jan.h.d@swipnet.se>
4403
42d3022b
J
4404 * xgselect.c (xg_select): Clear file descriptors not set from
4405 rfds and wfds.
4406
d8a4b27a
J
4407 * process.c (wait_reading_process_output): Add missing FD_CLR
4408 for write_mask (must mirror connect_wait_mask).
4409
8ed70bf3
LMI
44102010-09-27 Teodor Zlatanov <tzz@lifelogs.com>
4411
4412 * gnutls.c (gnutls_log_function): Show level and "gnutls.c"
4413 prefix.
4414 (Fgnutls_boot): Use changed process members. Use log level with a
4415 function parameter to set it. Bring back Emacs-level debugging
4416 messages at log level 1 and 2.
4417
4418 * process.c (make_process): Initialize gnutls_log_level.
4419
4420 * process.h: Add gnutls_log_level and rename x509_cred and
4421 anon_cred to have the gnutls_ prefix for consistency.
4422
4423 * gnutls.h (GNUTLS_LOG): Add convenience macro.
4424
bedf4aab
JB
44252010-09-27 Juanma Barranquero <lekktu@gmail.com>
4426
4427 * w32.c (g_b_init_get_sid_identifier_authority)
4428 (GetSidIdentifierAuthority_Proc, get_sid_identifier_authority):
4429 Remove, not used.
4430 (globals_of_w32): Don't set g_b_init_get_sid_identifier_authority.
4431 (init_winsock): Remove useless assignment.
4432 (open_process_token, get_token_information, lookup_account_sid)
4433 (get_sid_sub_authority, get_sid_sub_authority_count, get_file_security)
4434 (get_security_descriptor_owner, get_security_descriptor_group)
4435 (is_valid_sid, equal_sid, get_length_sid, copy_sid)
4436 (get_native_system_info, get_system_times, init_user_info, crlf_to_lf)
4437 (is_unc_volume, GetCachedVolumeInformation, get_volume_info)
4438 (is_fat_volume, open_unc_volume, read_unc_volume, close_unc_volume)
4439 (unc_volume_file_attributes, convert_from_time_t)
4440 (create_toolhelp32_snapshot, process32_first, process32_next)
4441 (open_thread_token, impersonate_self, revert_to_self)
4442 (get_process_memory_info, get_process_working_set_size)
4443 (global_memory_status, global_memory_status_ex, socket_to_fd)
4444 (shutdown_handler): Make static.
4445
08609ffd
MA
44462010-09-27 Michael Albinus <michael.albinus@gmx.de>
4447
4448 * dbusbind.c (dbus_fd_cb, xd_get_dispatch_status)
4449 (xd_pending_messages): Functions removed.
4450 (xd_read_queued_messages): Add parameters fd, *data, for_read in
4451 order to be compatible with add_read_fd. Determine bus from data,
4452 and call xd_read_message just for this bus.
4453 (xd_add_watch): Use xd_read_queued_messages as callback function.
4454 Add data.
4455
4456 * lisp.h (xd_pending_messages, xd_read_queued_messages): Remove.
4457
d2e9d0bb
LMI
44582010-09-27 Lars Magne Ingebrigtsen <larsi@gnus.org>
4459
ef1b0ba7 4460 * gnutls.c (gnutls_log_function): Add more debugging.
ec9f09be 4461 (emacs_gnutls_read): Don't infloop while reading.
d2e9d0bb 4462
4be9765d
KH
44632010-09-27 Kenichi Handa <handa@m17n.org>
4464
4465 These changes are to remove restriction on the number of glyphs in
4466 one composition.
4467
4468 * dispextern.h (struct glyph): Change the member "slice" to union.
4469 Remove u.cmp.from and u.cmp.to. Give more bits to u.cmp.id.
bba3e508 4470 (GLYPH_SLICE_EQUAL_P): Adjust for the above change.
4be9765d
KH
4471
4472 * dispnew.c (buffer_posn_from_coords): Use glyph->slice.img
4473 instead of glyph->slice.
4474 (marginal_area_string): Likewise.
4475
4476 * term.c (encode_terminal_code): Use glyph->slice.cmp instead of
4477 glyph->u.cmp.
4478 (append_composite_glyph): Likewise.
4479
4480 * xdisp.c (dump_glyph): Use glyph->slice.cmp instead of
4481 glyph->u.cmp.
4482 (fill_gstring_glyph_string, x_get_glyph_overhangs)
4483 (append_composite_glyph): Likewise.
4484 (fill_image_glyph_string): Use glyph->slice.img instead of
4485 glyph->slice.
4486 (append_glyph, produce_image_glyph, append_stretch_glyph)
4487 (note_mouse_highlight): Likewise.
4488
3fad2ad2
J
44892010-09-26 Jan Djärv <jan.h.d@swipnet.se>
4490
bf05eed6
J
4491 * process.c (add_keyboard_wait_descriptor)
4492 (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
82d6e50b
J
4493 (wait_reading_process_output): Don't pass write_mask to select
4494 if SELECT_CANT_DO_WRITE_MASK is defined.
4495 (SELECT_CANT_DO_WRITE_MASK): Define if SELECT_CANT_DO_WRITE_MASK.
bf05eed6 4496
3fad2ad2
J
4497 * process.h (add_read_fd, delete_read_fd, add_write_fd)
4498 (delete_write_fd): Declare.
4499
4500 * process.c (gpm_wait_mask, max_gpm_desc): Remove.
4501 (write_mask): New variable.
ef1b0ba7 4502 (max_input_desc): Rename from max_keyboard_desc.
3fad2ad2 4503 (fd_callback_info): New variable.
70e31436
JB
4504 (add_read_fd, delete_read_fd, add_write_fd, delete_write_fd):
4505 New functions.
3fad2ad2
J
4506 (Fmake_network_process): FD_SET write_mask.
4507 (deactivate_process): FD_CLR write_mask.
4508 (wait_reading_process_output): Connecting renamed to Writeok.
70e31436
JB
4509 check_connect removed. check_write is new. Remove references to gpm.
4510 Use Writeok/check_write unconditionally (i.e. no #ifdef
3fad2ad2
J
4511 NON_BLOCKING_CONNECT) instead of Connecting.
4512 Loop over file descriptors and call callbacks in fd_callback_info
4513 if file descriptor is ready for I/O.
4514 (add_gpm_wait_descriptor): Just call add_keyboard_wait_descriptor.
4515 (delete_gpm_wait_descriptor): Just call delete_keyboard_wait_descriptor.
4516 (keyboard_bit_set): Use max_input_desc.
70e31436
JB
4517 (add_keyboard_wait_descriptor, delete_keyboard_wait_descriptor):
4518 Remove #ifdef subprocesses. Use max_input_desc.
3fad2ad2
J
4519 (init_process): Initialize write_mask and fd_callback_info.
4520
4521 * keyboard.c (readable_events, gobble_input): Remove DBUS code.
4522
4523 * dbusbind.c: Include process.h.
4524 (dbus_fd_cb, xd_find_watch_fd, xd_toggle_watch)
4525 (xd_read_message_1): New functions.
70e31436
JB
4526 (xd_add_watch, xd_remove_watch): Call xd_find_watch_fd.
4527 Handle watch for both read and write.
3fad2ad2
J
4528 (Fdbus_init_bus): Also register xd_toggle_watch.
4529 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
4530 (Fdbus_method_error_internal, Fdbus_send_signal): Remove call
4531 to dbus_connection_flush.
70e31436 4532 (xd_read_message): Move most of the code to xd_read_message_1.
3fad2ad2
J
4533 Call xd_read_message_1 until status is COMPLETE.
4534
dce4c2ac
DN
45352010-09-26 Dan Nicolaescu <dann@ics.uci.edu>
4536
4537 * term.c: Do not include sys/ioctl.h, not needed.
70e31436
JB
4538 (init_tty): Reorder code to reduce the number of #ifdefs.
4539 No code changes.
dce4c2ac 4540
8af55556
TZ
45412010-09-26 Teodor Zlatanov <tzz@lifelogs.com>
4542
4543 * process.h: Set up GnuTLS support.
4544
4545 * process.c (make_process, Fstart_process)
4546 (read_process_output, send_process): Set up GnuTLS support for
4547 process input/output file descriptors.
4548
4549 * gnutls.h: The GnuTLS glue for Emacs, macros and enums.
4550
4551 * gnutls.c: The source code for GnuTLS support in Emacs.
4552
4553 * emacs.c: Set up GnuTLS support and call syms_of_gnutls.
4554
4555 * config.in: Set up GnuTLS support.
4556
4557 * Makefile.in (LIBGNUTLS_LIBS, LIBGNUTLS_CFLAGS, ALL_CFLAGS)
4558 (obj, LIBES): Set up GnuTLS support.
4559
83e245c4
JB
45602010-09-26 Juanma Barranquero <lekktu@gmail.com>
4561
4562 * w32.c (get_emacs_configuration_options): Fix previous change.
4563
d24ec09a
CY
45642010-09-25 Chong Yidong <cyd@stupidchicken.com>
4565
4566 * insdel.c (prepare_to_modify_buffer): Ensure the mark marker is
4567 alive before using it (Bug#6977).
4568
b7bdc47c
LMI
45692010-09-25 Lars Magne Ingebrigtsen <larsi@gnus.org>
4570
a952d5f3
LMI
4571 * xdisp.c (face_before_or_after_it_pos): EMACS_INT/int fixup.
4572
4573 * dispextern.h: EMACS_INT/int fixup.
4574
4575 * xdisp.c (string_pos_nchars_ahead, init_iterator): EMACS_INT/int
4576 fixup.
4577
b7bdc47c
LMI
4578 * xrdb.c (magic_file_p): EMACS_INT/int fixup.
4579
41118bd3
EZ
45802010-09-25 Eli Zaretskii <eliz@gnu.org>
4581
2452438f
EZ
4582 * window.c (Fpos_visible_in_window_p, Fdelete_other_windows)
4583 (Fselect_window, window_scroll_pixel_based)
4584 (window_scroll_line_based, Frecenter, Fset_window_configuration):
4585 Use EMACS_INT for buffer positions.
4586
4587 * textprop.c (validate_interval_range, interval_of)
4588 (property_change_between_p, Fadd_text_properties)
4589 (set_text_properties_1, Fremove_text_properties)
4590 (Fremove_list_of_text_properties, Ftext_property_any)
4591 (Ftext_property_not_all, copy_text_properties)
4592 (text_property_list, extend_property_ranges)
4593 (verify_interval_modification): Use EMACS_INT for buffer
4594 positions.
4595
f877c546
EZ
4596 * term.c (fast_find_position, term_mouse_highlight): Use EMACS_INT
4597 for buffer positions.
4598
4599 * process.c (read_process_output, send_process)
4600 (Fprocess_send_region, status_notify): Use EMACS_INT for buffer
4601 and string positions and size.
4602
da43f021
EZ
4603 * print.c (print_object, print_string, strout): Use EMACS_INT for
4604 string indices.
4605
4606 * minibuf.c (string_to_object): Use EMACS_INT for string position
4607 and size.
4608
4609 * marker.c (verify_bytepos): Use EMACS_INT for buffer positions.
4610
4611 * lread.c <read_from_string_index, read_from_string_index_byte>
4612 <read_from_string_limit, readchar_count>: Define EMACS_INT.
4613 (readchar, unreadchar, read_internal_start): Use EMACS_INT for
4614 buffer positions and string length.
4615
41118bd3
EZ
4616 * keyboard.c <last_point_position, last_non_minibuf_size>: Declare
4617 EMACS_INT.
4618 (echo_truncate, adjust_point_for_property, read_char)
4619 (gen_help_event, make_lispy_event, modify_event_symbol)
4620 (Fexecute_extended_command, stuff_buffered_input): Use EMACS_INT
4621 for buffer positions and string length.
4622
4623 * keyboard.h (gen_help_event): Adjust prototype.
4624
4625 * termhooks.h <struct input_event>: Make `code' member EMACS_INT.
4626
4627 * commands.h <last_point_position>: Declare EMACS_INT.
4628
4629 * xdisp.c <help_echo_pos>: Define as EMACS_INT.
4630 (truncate_echo_area): Accept EMACS_INT argument.
4631
4632 * dispextern.h <help_echo_pos>: Declare EMACS_INT.
4633
4634 * lisp.h (truncate_echo_area): Adjust prototype.
4635
4636 * composite.c (composition_adjust_point): Return EMACS_INT.
4637
4638 * composite.h (composition_adjust_point): Adjust prototype.
4639
ba3033ee
JB
46402010-09-25 Juanma Barranquero <lekktu@gmail.com>
4641
4642 * process.c (Fmake_network_process): When arg :host is 'local,
4643 use address 127.0.0.1, not name "localhost". (Bug#6781)
4644
4f3a2f8d
EZ
46452010-09-24 Eli Zaretskii <eliz@gnu.org>
4646
5816888b
EZ
4647 * indent.c (Fcurrent_indentation, indented_beyond_p)
4648 (compute_motion): Use EMACS_INT for buffer position variables.
4649
4650 * lisp.h (indented_beyond_p): Adjust prototype.
4651
4652 * buffer.c (overlay_strings): Return EMACS_INT.
4653
4654 * buffer.h (overlay_strings): Adjust prototype.
4655
4656 * region-cache.c (pp_cache): Adjust format to arguments.
4657
4658 * eval.c <specpdl_size, lisp_eval_depth>: Declare EMACS_INT.
4659 (call_debugger): Use EMACS_INT for specpdl_size related variables.
4660 (verror): Use EMACS_INT for size of allocated buffer.
4661
ace1712c
EZ
4662 * keyboard.c (make_lispy_position): Use EMACS_INT for buffer
4663 positions.
4664
4665 * xdisp.c (redisplay_internal, try_window_id)
bba3e508
SM
4666 (set_cursor_from_row, find_first_unchanged_at_end_row):
4667 Use EMACS_INT for buffer positions.
ace1712c 4668
f5276b75 4669 * dispextern.h (set_cursor_from_row): Adjust prototype.
ace1712c
EZ
4670
4671 * dispnew.c (increment_matrix_positions)
4672 (increment_row_positions, copy_glyph_row_contents)
4673 (mode_line_string, marginal_area_string): Use EMACS_INT for buffer
4674 positions.
4675
4676 * dispextern.h (mode_line_string, marginal_area_string)
bba3e508
SM
4677 (increment_matrix_positions, increment_row_positions):
4678 Adjust prototypes.
ace1712c
EZ
4679
4680 * data.c (Faref, Faset): Use EMACS_INT for string length and
4681 positions.
4682
4683 * cmds.c (internal_self_insert): Use EMACS_INT for the count of
4684 characters to insert.
4685
4686 * ccl.c (Fccl_execute_on_string): Use EMACS_INT for string
4687 position and size.
4688
4f3a2f8d
EZ
4689 * syntax.c (scan_words, update_syntax_table)
4690 (prev_char_comend_first, back_comment, skip_chars)
bba3e508
SM
4691 (skip_syntaxes, Fforward_comment, Fbackward_prefix_chars):
4692 Use EMACS_INT for buffer and string positions.
4f3a2f8d
EZ
4693
4694 * syntax.h (scan_words, update_syntax_table): Adjust prototypes.
4695
4696 * casefiddle.c (operate_on_word): Use EMACS_INT for buffer
4697 positions.
4698
db063399
LMI
46992010-09-24 Lars Magne Ingebrigtsen <larsi@gnus.org>
4700
f0812d35
LMI
4701 * scroll.c (calculate_scrolling, line_ins_del)
4702 (calculate_direct_scrolling, scroll_cost): Fix EMACS_INT/int
4703 conversion.
4704
f5c7fc27
LMI
4705 * region-cache.c (move_cache_gap, set_cache_region, pp_cache)
4706 (region_cache_backward, region_cache_forward)
4707 (revalidate_region_cache, set_cache_region): FIX EMACS_INT/int
4708 conversion.
4709
db063399
LMI
4710 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4711
4712 * eval.c (verror): Fix EMACS_INT/int conversion.
4713
07914cd0 4714 * print.c (PRINTDECLARE, PRINTPREPARE, strout, print_string)
db063399
LMI
4715 (print_preprocess, print_check_string_charset_prop)
4716 (print_object): Fix EMACS_INT/int conversion.
4717
4718 * xdisp.c (message_dolog): Fix EMACS_INT/int conversion.
4719
e6d4aefa
EZ
47202010-09-24 Eli Zaretskii <eliz@gnu.org>
4721
69481da7
EZ
4722 * callproc.c (Fcall_process): Use EMACS_INT for count of
4723 characters read from the subprocess.
4724
61bfec98
EZ
4725 * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer
4726 positions.
4727 (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer
4728 positions.
4729
145582a0
EZ
4730 * buffer.c (struct sortvec): Use EMACS_INT for buffer positions.
4731 (struct sortstrlist, overlay_str_len): Use EMACS_INT for string
4732 length.
4733 (advance_to_char_boundary, Fset_buffer_multibyte)
4734 (overlays_at, overlays_in, mouse_face_overlay_overlaps)
4735 (overlay_touches_p, record_overlay_string, overlay_strings)
4736 (recenter_overlay_lists, fix_start_end_in_overlays)
4737 (modify_overlay, Fmove_overlay, report_overlay_modification)
4738 (evaporate_overlays): Use EMACS_INT for buffer positions.
4739
bba3e508
SM
4740 * lisp.h (fix_start_end_in_overlays, overlay_touches_p):
4741 Adjust prototypes.
145582a0 4742
446470a9
EZ
4743 * dispextern.h (struct bidi_saved_info): Use EMACS_INT for buffer
4744 positions.
4745
e6d4aefa
EZ
4746 * fns.c (Fcompare_strings, Fstring_lessp, concat)
4747 (string_make_unibyte, Fstring_as_unibyte, Fsubstring)
4748 (Fsubstring_no_properties, substring_both, Ffillarray)
4749 (Fclear_string, mapcar1, Fmapconcat, Fmapcar, Fmapc)
4750 (Fbase64_encode_region, Fbase64_encode_string, base64_encode_1)
4751 (Fbase64_decode_region, Fbase64_decode_string, base64_decode_1)
4752 (Fmd5): Use EMACS_INT for buffer and string positions and length
4753 variables and arguments.
4754
4755 * lisp.h (substring_both): Adjust prototype.
4756
eb652396
JB
47572010-09-24 Juanma Barranquero <lekktu@gmail.com>
4758
4759 Remove W32 API function pointer unused since 2005-02-15 (revno 2005-02-15T23:19:26Z!jasonr@gnu.org).
4760 * w32fns.c (clipboard_sequence_fn): Don't declare.
4761 (globals_of_w32fns): Don't initialize it.
4762
266a86bd 47632010-09-23 Stefan Monnier <monnier@iro.umontreal.ca>
fbb3da77
SM
4764
4765 * syntax.c (back_comment): Detect the case where a 1-char comment
4766 starter is also the 2nd char of a 2-char comment ender.
4767
266a86bd 47682010-09-23 Jan Djärv <jan.h.d@swipnet.se>
2b5b82db
J
4769
4770 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
4771
40283062
LMI
47722010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4773
db063399
LMI
4774 * eval.c (verror): EMACS_INT/int cleanup.
4775
faf8b5bc
LMI
4776 * lisp.h (SPECPDL_INDEX): Cast to int, since we're not going to
4777 unwind_protect more than 2GB worth of functions.
4778
4779 * editfns.c (Finsert_char): EMACS_INT/int cleanup.
4780
40283062
LMI
4781 * lisp.h: Have oblookup take EMACS_INT to allow interning big
4782 string and avoid compiler warnings.
4783 (USE_SAFE_ALLOCA): Cast to int to avoid compilation warnings in
4784 all users.
4785
4786 * lread.c (oblookup): EMACS_INT/int cleanup.
4787
4788 * cmds.c (Fforward_line, Fdelete_char): EMACS_INT/int cleanup.
4789
fe3537c3
EZ
47902010-09-23 Eli Zaretskii <eliz@gnu.org>
4791
4792 * editfns.c (clip_to_bounds): Return an EMACS_INT value.
4793
4794 * lisp.h (clip_to_bounds): Adjust prototype.
4795
4796 * intervals.c (adjust_for_invis_intang): Return EMACS_INT value.
4797
0350982f
LMI
47982010-09-23 Lars Magne Ingebrigtsen <larsi@gnus.org>
4799
84c9ce05
LMI
4800 * lisp.h: doprnt.c EMACS_INT/int cleanup.
4801
4802 * doprnt.c (doprnt): EMACS_INT/int cleanup.
4803
4804 * doc.c (Fsnarf_documentation, get_doc_string): EMACS_INT/int
4805 cleanup.
4806
0350982f
LMI
4807 * lisp.h: Change the definition of all marker.c functions that
4808 take and return buffer stuff to be EMACS_INT instead of int.
4809
4810 * marker.c (buf_charpos_to_bytepos, CONSIDER, set_marker_both)
4811 (buf_charpos_to_bytepos, bytepos_to_charpos)
4812 (buf_bytepos_to_charpos, Fbuffer_has_markers_at)
4813 (set_marker_restricted, set_marker_both): Convert int to EMACS_INT
4814 for all buffer positions.
4815
c50bd0d2
CY
48162010-09-23 Chong Yidong <cyd@stupidchicken.com>
4817
4818 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4819 (split_interval_right, find_interval, next_interval)
4820 (delete_node, delete_interval, interval_deletion_adjustment)
4821 (adjust_intervals_for_deletion, merge_interval_right)
4822 (merge_interval_left, graft_intervals_into_buffer)
4823 (copy_intervals): Convert EMACS_UINTs to EMACS_INT.
4824
4825 * intervals.h (traverse_intervals): Update prototype.
4826
14162469
EZ
48272010-09-23 Eli Zaretskii <eliz@gnu.org>
4828
c098fdb8
EZ
4829 * indent.c (compute_motion): Use EMACS_INT for arguments to
4830 region_cache_forward.
4831
bba3e508
SM
4832 * region-cache.c (struct boundary, struct region_cache):
4833 Use EMACS_INT for positions.
c098fdb8
EZ
4834 (find_cache_boundary, move_cache_gap, insert_cache_boundary)
4835 (delete_cache_boundaries, set_cache_region)
4836 (invalidate_region_cache, know_region_cache)
bba3e508
SM
4837 (region_cache_forward, region_cache_backward, pp_cache):
4838 Use EMACS_INT for buffer positions.
c098fdb8
EZ
4839
4840 * region-cache.h (know_region_cache, invalidate_region_cache)
4841 (region_cache_forward, region_cache_backward): Adjust prototypes.
4842
4843 * search.c (string_match_1, fast_c_string_match_ignore_case)
4844 (looking_at_1, scan_buffer, scan_newline)
4845 (find_next_newline_no_quit, find_before_next_newline)
4846 (search_command, trivial_regexp_p, search_buffer, simple_search)
4847 (boyer_moore, wordify, Freplace_match): Use EMACS_INT for buffer
4848 and string positions and length.
4849
caefdbe7
EZ
4850 * lisp.h (scan_buffer, scan_newline, find_next_newline_no_quit)
4851 (find_before_next_newline): Adjust prototypes.
c098fdb8 4852
29cdc13e
EZ
4853 * editfns.c (transpose_markers, update_buffer_properties)
4854 (buildmark, clip_to_bounds, Fgoto_char, overlays_around)
4855 (get_pos_property, Fconstrain_to_field)
4856 (Fline_beginning_position, Fline_end_position, Fprevious_char)
4857 (Fchar_after, Fchar_before, Finsert_char)
4858 (Finsert_buffer_substring, Fcompare_buffer_substrings)
bba3e508
SM
4859 (Fsubst_char_in_region, Fformat, Ftranspose_regions):
4860 Use EMACS_INT for buffer and string position variables.
c098fdb8 4861 (Finsert_char): Protect against too large insertions.
29cdc13e
EZ
4862
4863 * lisp.h (clip_to_bounds): Adjust prototype.
4864
e79123aa
EZ
4865 * intervals.c (traverse_intervals, rotate_right, rotate_left)
4866 (balance_an_interval, split_interval_right, split_interval_left)
4867 (find_interval, next_interval, update_interval)
4868 (adjust_intervals_for_insertion, delete_node, delete_interval)
4869 (interval_deletion_adjustment, adjust_intervals_for_deletion)
4870 (offset_intervals, merge_interval_right, merge_interval_left)
4871 (graft_intervals_into_buffer, adjust_for_invis_intang)
4872 (move_if_not_intangible, get_local_map, copy_intervals)
4873 (copy_intervals_to_string, compare_string_intervals)
4874 (set_intervals_multibyte_1): Use EMACS_INT for buffer positions
6e48267a 4875 and for interval tree size.
e79123aa
EZ
4876
4877 * intervals.h (traverse_intervals, split_interval_right)
4878 (split_interval_left, find_interval, offset_intervals)
4879 (graft_intervals_into_buffer, copy_intervals)
4880 (copy_intervals_to_string, move_if_not_intangible, get_local_map)
4881 (update_interval): Adjust prototypes.
4882
579c18d0
EZ
4883 * xdisp.c (check_point_in_composition, reconsider_clip_changes):
4884 Use EMACS_INT for buffer position variables and arguments.
4885
4886 * composite.c (get_composition_id, find_composition)
4887 (run_composition_function, compose_text)
4888 (composition_gstring_width, autocmp_chars)
4889 (composition_update_it, Ffind_composition_internal): Use EMACS_INT
4890 for buffer positions and string length variables and arguments.
4891
4892 * composite.h (get_composition_id, find_composition, compose_text)
4893 (composition_gstring_width): Adjust prototypes.
4894
4895 * editfns.c (Fformat): Use EMACS_INT for string size variables.
4896
bba3e508
SM
4897 * xdisp.c (store_mode_line_noprop, display_mode_element):
4898 Use EMACS_INT for string positions.
579c18d0
EZ
4899
4900 * intervals.c (get_property_and_range): Use EMACS_INT for buffer
4901 position arguments.
4902
4903 * intervals.h (get_property_and_range): Adjust prototype.
14162469
EZ
4904
4905 * character.c (parse_str_as_multibyte, str_as_multibyte)
4906 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
579c18d0 4907 (string_count_byte8, string_escape_byte8, c_string_width)
bba3e508
SM
4908 (strwidth, lisp_string_width, multibyte_chars_in_text):
4909 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4910
4911 * character.h (parse_str_as_multibyte, str_as_multibyte)
579c18d0 4912 (parse_str_to_multibyte, str_to_multibyte, str_as_unibyte)
bba3e508
SM
4913 (c_string_width, strwidth, lisp_string_width):
4914 Adjust prototypes.
14162469 4915
579c18d0
EZ
4916 * font.c (font_intern_prop): Use EMACS_INT for string length
4917 variables.
4918
4919 * font.c (font_intern_prop): Use EMACS_INT for string length
4920 variables.
4921
14162469
EZ
4922 * fns.c (Fstring_as_multibyte): Use EMACS_INT for string length
4923 variables.
4924
4925 * alloc.c <total_string_size>: Declare as EMACS_INT, not int.
4926 (Fmake_string): Protect against too large strings.
4927 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
4928 (live_misc_p): Use ptrdiff_t instead of int for pointer
4929 differences.
4930 (string_bytes, check_sblock, check_string_free_list)
4931 (allocate_string_data, compact_small_strings, Fmake_string)
4932 (Fmake_bool_vector, make_string, make_unibyte_string)
4933 (make_multibyte_string, make_string_from_bytes)
bba3e508
SM
4934 (make_specified_string_string, Fmake_list, Fmake_vector):
4935 Use EMACS_INT for string length variables and arguments.
14162469
EZ
4936 (find_string_data_in_pure, make_pure_string, make_pure_c_string)
4937 (Fpurecopy): Use EMACS_INT for string size.
4938 (mark_vectorlike, mark_char_table, mark_object): Use EMACS_UINT
4939 for vector size.
4940
4941 * lisp.h (make_string, make_unibyte_string, make_multibyte_string)
4942 (make_string_from_bytes, make_specified_string_string)
579c18d0
EZ
4943 (make_pure_string, string_bytes, check_point_in_composition):
4944 Adjust prototypes.
14162469 4945
c8a66ab8
EZ
49462010-09-22 Eli Zaretskii <eliz@gnu.org>
4947
4948 * editfns.c (Fsubst_char_in_region, Ftranslate_region_internal)
4949 (check_translation): Use EMACS_INT for buffer positions and
4950 length.
4951
4952 * undo.c (record_marker_adjustment, record_delete)
4953 (record_change, record_point, record_insert)
4954 (record_property_change, Fprimitive_undo): Use EMACS_INT for
4955 buffer positions.
4956
4957 * lisp.h (record_marker_adjustment, record_delete)
4958 (record_change, record_point, record_insert)
4959 (record_property_change, Fprimitive_undo): Adjust prototypes.
4960
38c54d9d
JB
49612010-09-22 Juanma Barranquero <lekktu@gmail.com>
4962 Eli Zaretskii <eliz@gnu.org>
4963
4964 * w32.c (get_emacs_configuration_options): Fix buffer overrun.
4965
413d18e7
EZ
49662010-09-22 Eli Zaretskii <eliz@gnu.org>
4967
4968 * minibuf.c (Fminibuffer_contents)
4969 (Fminibuffer_contents_no_properties)
4970 (Fminibuffer_completion_contents): Use EMACS_INT for minibuffer
4971 positions.
4972
4973 * keyboard.c (command_loop_1): Use EMACS_INT to compare point with
4974 mark.
4975
4976 * alloc.c (make_uninit_string, make_uninit_multibyte_string)
4977 (allocate_string_data): Accept EMACS_INT for string length.
4978
4979 * editfns.c (Ffield_string, Ffield_string_no_properties)
4980 (make_buffer_string, make_buffer_string_both, Fbuffer_substring)
4981 (Fbuffer_substring_no_properties, find_field, Fdelete_field)
4982 (Ffield_string, Ffield_string_no_properties, Ffield_beginning)
4983 (Ffield_end): Use EMACS_INT for buffer positions.
4984
4985 * insdel.c (prepare_to_modify_buffer): Use EMACS_INT to compare
4986 point with mark.
4987
4988 * lisp.h (allocate_string_data, make_uninit_string)
4989 (make_uninit_multibyte_string, make_buffer_string)
4990 (make_buffer_string_both): Adjust prototypes.
4991
4b9832a6
CY
49922010-09-22 Chong Yidong <cyd@stupidchicken.com>
4993
4994 * xml.c: Switch to GNU indentation.
4995 (make_dom): Change parse tree format to match xml.el.
4996 (Fxml_parse_html_string_internal): Rename from html-parse-string.
4997 (Fxml_parse_string_internal): Rename from xml-parse-string.
4998
86282aab
KH
49992010-09-22 Kenichi Handa <handa@m17n.org>
5000
5001 * xdisp.c (compute_stop_pos): Call composition_compute_stop_pos
5002 only if we are not at a composition.
5003 (set_iterator_to_next): Give it->end_charpos to
5004 composition_compute_stop_pos.
5005 (set_iterator_to_next, next_element_from_buffer): Likewise.
5006
5007 * dispnew.c (buffer_posn_from_coords): Fix position when the
5008 current display element is a grapheme cluster in bidi-reordered
5009 region.
5010
840b985a
AR
50112010-09-21 Ari Roponen <ari.roponen@gmail.com> (tiny change)
5012
5013 * doc.c (Fsnarf_documentation): Use memmove instead of memcpy as
5014 the regions may overlap.
5015
5bc88f4b
JB
50162010-09-21 Juanma Barranquero <lekktu@gmail.com>
5017
5018 * makefile.w32-in ($(BLD)/sysdep.$(O)): Update dependencies.
5019
92bc9a36
DN
50202010-09-21 Dan Nicolaescu <dann@ics.uci.edu>
5021
d19e096e
DN
5022 * emacs.c: Do not include sys/ioctl.h, not needed.
5023
92bc9a36
DN
5024 * doprnt.c: Do not include stdlib.h, config.h does it.
5025 Move #include before macro definition.
5026
15f844ac
DN
50272010-09-20 Dan Nicolaescu <dann@ics.uci.edu>
5028
48e24408
DN
5029 * Makefile.in (temacs): Link using $(CC) not $(LD).
5030 (LD_FIRSTFLAG): Define using autoconf.
5031 (LD): Remove.
5032
65539506
DN
5033 Remove HAVE_TERMIOS definitions.
5034 * s/usg5-4-common.h (HAVE_TERMIOS):
5035 * s/template.h (HAVE_TERMIOS):
5036 * s/gnu-linux.h (HAVE_TERMIOS):
5037 * s/darwin.h (HAVE_TERMIOS):
5038 * s/cygwin.h (HAVE_TERMIOS):
5039 * s/bsd-common.h (HAVE_TERMIOS):
5040 * s/aix4-2.h (HAVE_TERMIOS):
5041 * s/hpux10-20.h (HAVE_TERMIOS): Do not define, it is assumed
5042 defined on all non-MS platforms.
5043 (HAVE_PSTAT_GETDYNAMIC): Do not define, autoconf does it.
5044
15f844ac
DN
5045 * xterm.c (xt_action_hook): Use const.
5046
7d701334
JB
50472010-09-20 Juanma Barranquero <lekktu@gmail.com>
5048
5049 Don't make W32 code conditional on HAVE_SOCKETS, it's always defined.
5050 * w32.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5051 (gethostname) [!HAVE_SOCKETS]: Remove.
5052 (SOCK_REPLACE_HANDLE): Remove macro.
5053 (socket_to_fd, sys_close, _sys_read_ahead, sys_read, sys_write)
5054 (term_ntproc, init_ntproc): Don't conditionalize on HAVE_SOCKETS.
5055 * w32proc.c: Remove top-level uses of #ifdef HAVE_SOCKETS.
5056 (syms_of_ntproc): Don't conditionalize on HAVE_SOCKETS.
5057
f3ec267a
EZ
50582010-09-18 Eli Zaretskii <eliz@gnu.org>
5059
5060 * deps.mk (xml.o): Add dependencies.
5061
93acd23d
JB
5062 * xdisp.c (Fcurrent_bidi_paragraph_direction):
5063 Call bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038)
bea4f10c
EZ
5064
5065 * bidi.c (bidi_paragraph_init): Accept an additional argument
5066 NO_DEFAULT_P; all callers changed. If NO_DEFAULT_P is non-zero,
5067 search back until a paragraph with a strong directional character
5068 is found, and use that to determine paragraph's base direction.
5069
5070 * dispextern.h (bidi_paragraph_init): Update prototype.
5071
69e847be
EZ
50722010-09-17 Eli Zaretskii <eliz@gnu.org>
5073
5074 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
5075 of w32api >= 3.15. (Bug#6989)
5076
283357a7
LMI
50772010-09-17 Lars Magne Ingebrigtsen <larsi@gnus.org>
5078
5079 * process.c (wait_reading_process_output): Don't message about
5080 accept-process-output unless the time limit really is zero.
5081
4ddb20d6
SM
50822010-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
5083
5084 * frame.c (Ftool_bar_pixel_width): YAILOM (Yet another
5085 int/Lisp_Object mixup).
5086
e24ad6dd
J
50872010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5088
5089 * keyboard.c (parse_tool_bar_item): For QClabel, set TOOL_BAR_ITEM_LABEL
5090 not HELP.
5091
fb0cf781
J
50922010-09-17 Stephen Berman <stephen.berman@gmx.net>
5093
5094 * frame.c (Ftool_bar_pixel_width): New function to expose tool
5095 bar's pixel width to Lisp (Bug#7048).
5096
4ddb20d6
SM
50972010-09-14 Juanma Barranquero <lekktu@gmail.com>
5098
5099 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
fb0cf781 5100
318a04c6
J
51012010-09-17 Jan Djärv <jan.h.d@swipnet.se>
5102
5103 * gtkutil.c (xg_pack_tool_bar): Call gtk_handle_box_set_handle_position
5104 with argument top/left if tool bar is vertical/horizontal (Bug#7051).
5105
78a21772
KH
51062010-09-17 Kenichi Handa <handa@m17n.org>
5107
5108 * ftfont.c (ftfont_check_otf): Fix previous change.
5109
fa3f6039
KH
51102010-09-14 Kenichi Handa <handa@m17n.org>
5111
5112 * ftfont.c (ftfont_check_otf): Fix the case of checking just
5113 existence of GSUB or GPOS.
5114
2b5491fa
JB
51152010-09-14 Juanma Barranquero <lekktu@gmail.com>
5116
5117 * cmds.c (syms_of_cmds) <post-self-insert-hook>: Fix typos in docstring.
5118
c97c655f
LMI
51192010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org>
5120
ef1b0ba7 5121 * xml.c (parse_buffer): Rename to parse_string(), since that's
c97c655f
LMI
5122 what it does.
5123 (parse_string): Return nil when the document can't be parsed.
5124
6664fc59 51252010-09-14 Jan Djärv <jan.h.d@swipnet.se>
5f61a25c
J
5126
5127 * xterm.c (get_current_vm_state): New function.
5128 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
5129 want_fullscreen so set_wm_state calls are few (Bug#7013).
5130 (x_handle_net_wm_state): Move code to get_current_vm_state and
5131 call that function.
5132
6664fc59 51332010-09-14 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
5134
5135 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
5136
6664fc59 51372010-09-14 Kenichi Handa <handa@m17n.org>
a552b35a
KH
5138
5139 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
5140 we may use designation or locking-shift.
5141
6664fc59 51422010-09-14 Kenichi Handa <handa@m17n.org>
396475b7
KH
5143
5144 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
5145 sequence when the source is multibyte.
5146
1da70e99
AS
51472010-09-14 Andreas Schwab <schwab@linux-m68k.org>
5148
6664fc59
JB
5149 * xml.c (Fxml_parse_string, Fxml_parse_string): Revert last change.
5150 Don't make first argument optional. Doc fix.
1da70e99 5151
26632d8d
LMI
51522010-09-14 Leo <sdl.web@gmail.com> (tiny change)
5153
5154 * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the
5155 parameters for the doc string.
5156
21fa8e37
LMI
51572010-09-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
5158
5159 * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.
5160
5616cc54
SM
51612010-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
5162
5163 * fns.c (Fy_or_n_p): Move to lisp/subr.el.
5164 (syms_of_fns): Don't defsubr Sy_or_n_p.
5165 * lisp.h: Don't declare Fy_or_n_p.
5166 * fileio.c (barf_or_query_if_file_exists): Fy_or_n_p -> y-or-n-p.
5167
381408e2
LMI
51682010-09-09 Lars Magne Ingebrigtsen <larsi@gnus.org>
5169
5170 * xml.c (Fxml_parse_buffer): New function to parse XML files.
5171
51722010-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org>
5173
5174 * xml.c: New file.
5175 (Fhtml_parse_buffer): New function to interface to the libxml2
5176 html parsing function.
5177
733946e7
JB
51782010-09-05 Juanma Barranquero <lekktu@gmail.com>
5179
5180 * biditype.h: Regenerate.
5181
7574650a
AS
51822010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5183
5184 * nsimage.m (ns_load_image): Check argument types.
5185
5186 * image.c: Remove all uses of gcpro.
5187 (xpm_load): Check all lisp types.
5188 (pbm_load): Likewise.
5189 (png_load): Likewise.
5190 (jpeg_load): Likewise.
5191 (tiff_load): Likewise.
5192 (gif_load): Likewise.
5193 (imagemagick_load_image): Likewise.
5194 (imagemagick_load): Likewise.
5195 (svg_load): Likewise.
5196 (gs_load): Likewise.
5197
6e6b8e25
EZ
51982010-09-04 Eli Zaretskii <eliz@gnu.org>
5199
bba3e508
SM
5200 * w32uniscribe.c (uniscribe_shape): Update commentary.
5201 Don't try to reorder grapheme clusters, since LGSTRING should always
6e6b8e25
EZ
5202 hold them in the logical order.
5203 (uniscribe_encode_char, uniscribe_shape): Force ScriptShape to
5204 return glyph codes in the logical order.
5205
dbfe4532
AS
52062010-09-04 Andreas Schwab <schwab@linux-m68k.org>
5207
5208 * image.c (imagemagick_image_p): Replace bcopy by memcpy.
b7d187f8 5209 (imagemagick_load_image): Fix type mismatch.
5e5992c2 5210 (Fimagemagick_types): Likewise. Doc fix.
dbfe4532 5211
6d7cc563
JD
52122010-09-02 Jan Djärv <jan.h.d@swipnet.se>
5213
5214 * xterm.h (struct dpyinfo): Remove cut_buffers_initialized.
5215
5216 * xterm.c (x_term_init): Don't set dpyinfo->cut_buffers_initialized.
5217
5218 * xselect.c: Remove declaration of cut-buffer objects and functions.
5219 (symbol_to_x_atom): Remove mapping to XA_CUT_BUFFERn.
5220 (x_atom_to_symbol): Remove mapping to QCUT_BUFFERn.
5221 (Fx_get_cut_buffer_internal, Fx_store_cut_buffer_internal)
5222 (Fx_rotate_cut_buffers_internal): Remove.
5223 (syms_of_xselect): Remove defsubr of above.
5224 Remove intern of QCUT_BUFFERn.
5225
8f4e9110
SM
52262010-09-01 Stefan Monnier <monnier@iro.umontreal.ca>
5227
5228 * cmds.c (Vblink_paren_function): Remove.
5229 (internal_self_insert): Make it insert N chars at a time.
5230 Don't call blink-paren-function.
5231 (Fself_insert_command): Adjust accordingly.
5232 (syms_of_cmds): Don't declare blink-paren-function.
5233
d419e1d9
KH
52342010-08-31 Kenichi Handa <handa@m17n.org>
5235
5236 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
5237 characters.
5238
5239 * term.c (encode_terminal_code): Fix the previous change.
5616cc54
SM
5240 (produce_glyphs): Don't set it->char_to_display here.
5241 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
5242 (produce_special_glyphs): Set temp_it.char_to_display before
5243 calling produce_glyphs.
5244
5245 * xdisp.c (get_next_display_element): Set it->char_to_display
5246 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
5247 characters.
5248 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
5249 calling PRODUCE_GLYPHS.
5250 (append_space_for_newline): Save and store it->char_to_display.
5251 Set it->char_to_display before calling PRODUCE_GLYPHS.
5252 (extend_face_to_end_of_line): Set it->char_to_display before
5253 calling PRODUCE_GLYPHS.
5254 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
5255 character to its byte value.
5256 (get_char_glyph_code): New function.
5257 (produce_stretch_glyph): Set it2.char_to_display too before
5258 calling x_produce_glyphs.
5259 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
5260 non-ASCII characters. Don't set it->char_to_display here.
5261 Don't handle unibyte-display-via-language-environment here. For a
2b5491fa 5262 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 5263
b819f760
SM
52642010-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
5265
5266 * keyboard.c (Fwindow_system): Fix compilation for USE_LISP_UNION_TYPE.
5267
07fa68a7
CY
52682010-08-31 Chong Yidong <cyd@stupidchicken.com>
5269
5270 * keyboard.c (command_loop_1): Don't call x-set-selection on tty.
5271
cd196f12
SM
52722010-08-30 Stefan Monnier <monnier@iro.umontreal.ca>
5273
5274 * marker.c (Fcopy_marker): Make the first arg optional.
5275
49a752bb
KH
52762010-08-30 Kenichi Handa <handa@m17n.org>
5277
5278 * composite.c (composition_update_it): Fix computing of
5279 cmp_it->width.
5280
769ae9e1
KH
52812010-08-29 Kenichi Handa <handa@m17n.org>
5282
9e69cb05 5283 * term.c (encode_terminal_code): Encode byte chars to the
5616cc54 5284 corresponding bytes.
9e69cb05 5285
4520b858
J
52862010-08-29 Jan Djärv <jan.h.d@swipnet.se>
5287
5288 * nsterm.m (ns_draw_window_cursor): Draw BAR_CURSOR correct for R2L.
5289
fe50eb41
KH
52902010-08-26 Kenichi Handa <handa@m17n.org>
5291
5292 * xdisp.c (compute_stop_pos): Pay attention to bidi scan direction
5293 on calling composition_compute_stop_pos.
5294
f6aa6ec6
KH
52952010-08-25 Kenichi Handa <handa@m17n.org>
5296
9dfdbc0a
KH
5297 * fontset.c (reorder_font_vector): Prefer a font-spec specifying
5298 :otf.
5299
f6aa6ec6
KH
5300 * composite.c (composition_compute_stop_pos): Don't break
5301 composition at PT.
5302 (composition_reseat_it): Likewise. Fix calculation of character
5303 position starting a composition.
5304 (Fcomposition_get_gstring): Don't limit the number of components
5305 for automatic composition.
5306
ff94e32c
KH
53072010-08-25 Kenichi Handa <handa@m17n.org>
5308
5309 * composite.c (composition_compute_stop_pos): In forward search,
5310 pay attention to the possibility that some character after ENDPOS
5311 will be composed with charactrs before ENDPOS.
5312
1c409d0b
CY
53132010-08-24 Chong Yidong <cyd@stupidchicken.com>
5314
5315 * keyboard.c (command_loop_1): Don't clobber primary selection
5316 during handle-switch-frame (Bug#6872).
5317
0c372655
MA
53182010-08-23 Michael Albinus <michael.albinus@gmx.de>
5319
5320 * dbusbind.c: Accept UNIX domain sockets as bus address.
5321 (Fdbus_close_bus): New function.
5322 (Vdbus_registered_buses): New variable.
5323 (xd_initialize): Implement string as bus address.
5324 (Fdbus_init_bus): Add bus to Vdbus_registered_buses).
5325 (Fdbus_get_unique_name, Fdbus_call_method)
5326 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
5327 (Fdbus_method_error_internal, Fdbus_send_signal)
5328 (Fdbus_register_signal, Fdbus_register_method): Remove bus type
5329 check. This is done in xd_initialize_bus. Adapt doc string, if
5330 necessary.
5331 (xd_pending_messages, xd_read_queued_messages): Loop over buses in
5332 Vdbus_registered_buses.
5333 (Vdbus_registered_objects_table): Create hash.
5334
7133b7ee
JL
53352010-08-22 Juri Linkov <juri@jurta.org>
5336
5337 * keyboard.c (Fexecute_extended_command): Move reading a command name
5338 with `completing-read' to a new Elisp function `read-extended-command'.
5339 Call it to read a command to `function' (bug#5364, bug#5214).
5340
198a7a97
CY
53412010-08-22 Chong Yidong <cyd@stupidchicken.com>
5342
5343 * emacs.c (main): Remove handling of --unibyte arg (Bug#6886).
5344
b0126eac 53452010-08-22 Andreas Schwab <schwab@linux-m68k.org>
b72e0717
AS
5346
5347 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
5348 instead of SAFE_ALLOCA.
5349
b0126eac 53502010-08-22 Chong Yidong <cyd@stupidchicken.com>
3a7a9129
CY
5351
5352 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
5353 (Bug#6214).
5354
b0126eac 53552010-08-22 Jan Djärv <jan.h.d@swipnet.se>
983b8302
J
5356
5357 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
5358
b0126eac
CY
53592010-08-22 Jan Djärv <jan.h.d@swipnet.se>
5360
5361 * doc.c (Fsnarf_documentation): Initialize skip_file before
5362 build-files test.
5363
692f3ddc 53642010-08-22 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
b0126eac 5365
692f3ddc
JB
5366 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
5367 New definitions.
b0126eac
CY
5368 (HAVE_TERMIO): Remove.
5369
5f2f0bc1
EZ
53702010-08-22 Eli Zaretskii <eliz@gnu.org>
5371
b613941b
EZ
5372 * deps.mk (sysdep.o, msdos.o): Depend on sysselect.h.
5373
a583bbef
EZ
5374 * sysselect.h [WINDOWSNT]: Don't define the FD_* and select stuff
5375 for w32.
5376
5377 * s/ms-w32.h (HAVE_SYS_TIMEB_H): Don't #undef HAVE_SYS_SELECT_H,
5378 it's done in nt/config.nt.
5379
5380 * makefile.w32-in ($(BLD)/sysdep.$(O)): Depend on sysselect.h.
5381
5f2f0bc1
EZ
5382 * unexcoff.c (report_error, make_hdr, write_segment)
5383 (copy_text_and_data, copy_sym, mark_x, adjust_lnnoptrs, unexec):
5384 Convert argument lists and prototypes to ANSI C.
5385 (make_hdr, write_segment): Remove unused variables.
5386 (unexec): Remove commented-out line. Initialize `new' to shut up
5387 compiler warnings.
5388
a7ebc409
DN
53892010-08-22 Dan Nicolaescu <dann@ics.uci.edu>
5390
5391 Simplify termio code.
5392 All non-MSDOS non-WINDOWSNT platforms define HAVE_TERMIOS, so
5393 HAVE_TERMIO code is obsolete.
5394 Replace HAVE_TERMIOS conditionals with !DOS_NT.
5395 * systty.h: Do not define HAVE_TCATTR.
5396 Remove HAVE_TERMIO, HAVE_LTCHARS and HAVE_TCHARS code.
5397 Do not define EMACS_HAVE_TTY_PGRP. Only define
5398 EMACS_GET_TTY_PGRP for !DOS_NT.
5399 * sysdep.c: Include sysselect.h unconditionally. Do not include
bba3e508
SM
5400 sys/ioctl.h and termios.h, systty.h does it.
5401 Use HAVE_SYS_UTSNAME_H instead of USG as an include guard.
a7ebc409
DN
5402 (init_baud_rate): Remove HAVE_TERMIO code.
5403 (child_setup_tty): Remove HAVE_TERMIO code.
5404 (emacs_get_tty, emacs_set_tty): Remove HAVE_TERMIO, HAVE_TCHARS
5405 and HAVE_LTCHARS code. Use !DOS_NT instead of HAVE_TCATTR.
5406 (new_ltchars, new_tchars): Remove, unused.
5407 (init_sys_modes): Remove HAVE_TERMIO, HAVE_TCHARS and HAVE_LTCHARS
bba3e508
SM
5408 code. Remove special casing for __mips__, it was a no-op.
5409 Remove HAVE_TCATTR conditional, it is implied by HAVE_TERMIOS.
a7ebc409
DN
5410 (init_sys_modes): Remove HPUX special case.
5411 * process.c: Include stdlib.h unconditionally. Do not include
5412 fcntl.h, systty.h does it. Remove conditional code for
5413 HAVE_SERIAL, it is always true.
5414 (process_send_signal): Remove HAVE_TERMIOS conditional, it's
5415 always true when SIGNALS_VIA_CHARACTERS is true.
5416 (Fcontinue_process, Fprocess_send_eof): Simplify conditionals:
5417 !WINDOWSNT means HAVE_TERMIOS.
5418 (create_process): Remove HAVE_TERMIOS, it's inside a HAVE_PTYS
5419 conditional, which is true for all HAVE_TERMIOS systems.
5420 * keyboard.c (init_keyboard): Do not use HAVE_TERMIO, use !DOS_NT
5421 instead of HAVE_TERMIOS.
5422 * emacs.c (shut_down_emacs): Use !defined DOS_NT instead of
5423 EMACS_HAVE_TTY_PGRP.
5424 * callproc.c (child_setup): Move EMACS_SET_TTY_PGRP use to the
5425 non-MSDOS, non-WINDOWSNT code, it's only defined for such systems
5426 anyway.
5427
914f049b 54282010-08-21 Eli Zaretskii <eliz@gnu.org>
40629f17
EZ
5429
5430 * dispnew.c (buffer_posn_from_coords): Fix off-by-one error in
5431 mirroring pixel positions.
5432
d931da8c
DN
54332010-08-20 Dan Nicolaescu <dann@ics.uci.edu>
5434
b5c76d0c
DN
5435 * alloc.c (malloc_sbrk_used, malloc_sbrk_unused): Remove,
5436 write only.
5437 (init_alloc_once): Remove writes to malloc_sbrk_unused, and
5438 malloc_sbrk_used, nothing uses them.
5439
74815588
DN
5440 * puresize.h: Remove code assuming PNTR_COMPARISON_TYPE is not
5441 defined, unconditionally defined in lisp.h.
5442
f5817d1c
DN
5443 * term.c: Do not include <termios.h>, systty.h does it.
5444
d931da8c
DN
5445 * s/unixware.h (HAVE_TCATTR):
5446 * s/aix4-2.h (HAVE_TCATTR): Remove definitions, not needed.
5447 systty.h defines it when HAVE_TERMIOS is defined.
5448
ff2de6d2 54492010-08-20 Eli Zaretskii <eliz@gnu.org>
491a1546 5450
b43c883c 5451 * dispnew.c (buffer_posn_from_coords): Fix last change for text
00c53994 5452 terminals: add one-character offset for R2L lines.
b43c883c 5453
491a1546
EZ
5454 * emacs.c <emacs_version>: Add a comment regarding
5455 msdos/mainmake.v2's dependency on the syntax of this declaration.
5456
2396cbba
EZ
54572010-08-20 Eli Zaretskii <eliz@gnu.org>
5458
5459 * dispnew.c (buffer_posn_from_coords): Fix calculation of buffer
5460 position for R2L lines by mirroring the pixel position wrt the
5461 text are box. Improve commentary.
5462
7df6150a
AS
54632010-08-20 Andreas Schwab <schwab@linux-m68k.org>
5464
5465 * image.c (imagemagick_clear_image): Remove debugging output.
5466
a2e5caf7
SM
54672010-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
5468
5469 * cmds.c (Vself_insert_face, Vself_insert_face_command): Remove.
5470 (Qpost_self_insert_hook, Vpost_self_insert_hook): New vars.
5471 (internal_self_insert): Run Qpost_self_insert_hook rather than handle
5472 self-insert-face.
5473 (syms_of_cmds): Initialize the new vars.
5474
20d60baf
JR
54752010-08-19 Jason Rumney <jasonr@gnu.org>
5476
cc477da7
JR
5477 * w32menu.c (set_frame_menubar): Remove call to undefined function.
5478
20d60baf
JR
5479 * w32fns.c (w32_wnd_proc): Don't check context before initializing.
5480
2c0ac867
J
54812010-08-19 Jan Djärv <jan.h.d@swipnet.se>
5482
5483 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
5484
93352106
EZ
54852010-08-18 Eli Zaretskii <eliz@gnu.org>
5486
5487 * xterm.c (x_draw_bar_cursor):
5488 * w32term.c (x_draw_bar_cursor): If the character under cursor is
5489 R2L, draw the bar cursor on its right rather than on its left.
5490
c785836d
SM
54912010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
5492
0193499f
SM
5493 * eval.c (Fdefmacro): Only obey one declaration.
5494
c785836d
SM
5495 * casefiddle.c (casify_region): Setup gl_state.
5496
9cb728a5
J
54972010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5498
5499 * nsterm.m (ns_define_frame_cursor): Call x_update_cursor (Bug#6868).
5500
e1e18511
J
55012010-08-18 Jan Djärv <jan.h.d@swipnet.se>
5502
1d77b63e 5503 * gtkutil.c (update_frame_tool_bar): Literal strings are const char*.
e1e18511 5504
64cb6c78
J
55052010-08-18 David De La Harpe Golden <david@harpegolden.net>
5506
5507 * nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
5508 (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
5509 QPRIMARY => NXPrimaryPboard.
5510 (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
5511 NXPrimaryPboard => QPRIMARY.
5512 (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
5513 NXSecondaryPboard = SecondarySelection.
5514 (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
5515
0c9b8993
GM
55162010-08-18 Joakim Verona <joakim@verona.se>
5517
5518 * image.c: Add support for ImageMagick. When HAVE_IMAGEMAGICK is
5519 defined:
5520 (imagemagick_image_p): New function to test for ImageMagic image.
5521 (imagemagick_load): New function to load ImageMagick image.
5522 (imagemagick_load_image): New function, helper for imagemagick_load.
5523 (imagemagick-types): New function.
5524 (Qimagemagick): New Lisp_object.
5525 (imagemagick-render-type): New variable, decides which renderer to use.
ccd80618 5526
c3554f68
SM
55272010-08-17 Stefan Monnier <monnier@iro.umontreal.ca>
5528
5529 * gtkutil.c (update_frame_tool_bar): Don't assume TOOL_BAR_ITEM_LABEL
5530 is a string.
5531
1ff2e434
J
55322010-08-17 Jan Djärv <jan.h.d@swipnet.se>
5533
5534 * nsfns.m (ns_frame_parm_handlers): Add a slot for the
5535 x_set_tool_bar_position handler.
5536
0cc56427
EZ
55372010-08-17 Eli Zaretskii <eliz@gnu.org>
5538
5539 * w32fns.c <w32_frame_parm_handlers>: Add a slot for the
5540 x_set_tool_bar_position handler, needed to support changes from
5541 2010-07-29T16:49:59Z!jan.h.d@swipnet.se for positioning the tool bar. (Bug#6796)
5542
e45a249b
JD
55432010-08-16 Jan Djärv <jan.h.d@swipnet.se>
5544
2f8f196d 5545 * nsselect.m: Include keyboard.h for QPRIMARY, remove its
921242c6 5546 declaration (Bug#6863).
573d150b 5547 (syms_of_nsselect): Don't intern QPRIMARY.
921242c6 5548
e45a249b
JD
5549 * xselect.c: Remove declaration of QPRIMARY (Bug#6864).
5550
5551 * keyboard.h (QPRIMARY): Declare (Bug#6864).
5552
7c23dd44
CY
55532010-08-16 Chong Yidong <cyd@stupidchicken.com>
5554
5555 * keyboard.c (command_loop_1): Avoid setting selection twice,
5556 since it's done in deactivate-mark as well.
5557 (Vselect_active_regions): Change default to t. Replace `lazy'
5558 with non-default value `only', meaning only set PRIMARY for
5559 temporarily active regions.
5560
5561 * insdel.c (prepare_to_modify_buffer): Handle `only' value of
5562 select-active-regions.
5563
0005830c
J
55642010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5565
5566 * keyboard.c (parse_tool_bar_item): Put in a bad label if :label
5567 isn't a string.
5568
603dfc72
AS
55692010-08-15 Andreas Schwab <schwab@linux-m68k.org>
5570
5571 * keyboard.c (parse_tool_bar_item): Avoid excessive use of strlen.
5572
c25ce9d0
J
55732010-08-15 Jan Djärv <jan.h.d@swipnet.se>
5574
c3554f68
SM
5575 * keyboard.c (parse_tool_bar_item): malloc buf.
5576 Set TOOL_BAR_ITEM_LABEL to empty string if not set to
5577 new_lbl (Bug#6855).
c25ce9d0 5578
5872c762
EZ
55792010-08-14 Eli Zaretskii <eliz@gnu.org>
5580
b236615c
EZ
5581 * xterm.c (x_draw_stretch_glyph_string):
5582 * w32term.c (x_draw_stretch_glyph_string): In R2L rows, display
5583 the cursor on the right edge of the stretch glyph.
5584
c3554f68
SM
5585 * xdisp.c (window_box_right_offset, window_box_right):
5586 Fix commentary.
b236615c 5587
5872c762
EZ
5588 * xdisp.c (Fcurrent_bidi_paragraph_direction): Fix paragraph
5589 direction when point is inside a run of whitespace characters.
5590
5591 * bidi.c (bidi_at_paragraph_end): Remove obsolete comment.
5592
e66f9a1b
JR
55932010-08-14 Jason Rumney <jasonr@gnu.org>
5594
5595 * keyboard.c (lispy_function_keys): Do not define VK_PACKET (bug#4836)
5596
79d6f59e
CY
55972010-08-14 Chong Yidong <cyd@stupidchicken.com>
5598
5599 * fns.c (Fmake_hash_table): Doc fix (Bug#6851).
5600
1c9b4129
JR
56012010-08-13 Jason Rumney <jasonr@gnu.org>
5602
5603 * w32menu.c (simple_dialog_show): Use unicode message box if available.
5604 (MessageBoxW_Proc): New function typedef.
5605 (unicode-message-box): New function pointer.
2f8f196d 5606 (globals_of_w32menu): Import it from user32.dll. (Bug#5629)
1c9b4129 5607
2b4e6277
J
56082010-08-13 Jan Djärv <jan.h.d@swipnet.se>
5609
5610 * frame.h (Qtool_bar_position): Declare.
5611
5612 * xfns.c (Fx_create_frame): Call x_default_parameter for
5613 Qtool_bar_position.
5614
94c97d85
EZ
56152010-08-13 Eli Zaretskii <eliz@gnu.org>
5616
8ee81892
EZ
5617 * unexcoff.c: Remove the parts used when "emacs" is not defined.
5618 (report_error, report_error_1): Ditto.
5619 (write_segment): Remove "#if 0" unused code.
5620 (make_hdr): Remove code that was "#ifndef NO_REMAP" before
5621 NO_REMAP was removed (in 2010-07-29T03:25:08Z!dann@ics.uci.edu).
5622 (start_of_text): Remove unused function (was used only if NO_REMAP
5623 was NOT defined).
5624
891ef8f7
EZ
5625 * msdos.c (IT_set_face): Fix format string to match argument
5626 types.
5627 (IT_write_glyphs, IT_note_mode_line_highlight)
5628 (IT_set_frame_parameters): Remove unused variables.
5629 (x_set_menu_bar_lines): Declare set_menu_bar_lines.
5630 (IT_set_terminal_modes): Disambiguate expression in if clause.
5631 (Fmsdos_remember_default_colors): Return Qnil.
5632 (IT_set_frame_parameters): Add parens to disambiguate boolean
5633 expression for logging the cursor type to termscript.
5634 (keyboard_layout_list, keypad_translate_map)
5635 (grey_key_translate_map): Add braces in inner initializers.
5636 (dos_rawgetc): Add parens in condition for mouse-3 button-press.
5637 (dos_rawgetc): Remove unused label.
5638 (XMenuActivate): Add braces to remove ambiguous `else'.
5639 (dos_ttraw): Always return a value.
5640 (spawnve): Declare.
5641 (run_msdos_command): Cast 3rd arg of spawnve to "char **".
5642
5643 * dosfns.h (x_set_title): Declare.
5644
5645 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
5646 Remove unused variables.
5647
5648 * dosfns.c (Fint86, Fdos_memget, Fdos_memput): Remove unused
5649 variables.
5650 (init_dosfns): Declare get_lim_data.
5651 (system_process_attributes): Declare Fget_internal_run_time.
5652
38e41e0e
EZ
5653 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT && !USE_GTK]: Fix argument
5654 list to be consistent with menu.h.
5655
94c97d85
EZ
5656 * w32menu.c (add_menu_item, name_is_separator): Shut up compiler
5657 warnings due to mixing of "char *" and "const char *".
5658
c5683ceb
SM
56592010-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
5660
5661 Introduce a new comment style "c" flag.
5662 * syntax.c (SYNTAX_FLAGS_COMMENT_STYLEB)
5663 (SYNTAX_FLAGS_COMMENT_STYLEC): New macros.
5664 (SYNTAX_FLAGS_COMMENT_STYLE): Use them, add an argument.
5665 (syntax_prefix_flag_p): New function.
5666 (Fstring_to_syntax): Understand new "c" flag.
5667 (Finternal_describe_syntax_value): Recognize new flag; use the
5668 SYNTAX_FLAGS_* macros.
5669 (scan_sexps_forward, Fparse_partial_sexp): Change representation of
5670 comment style to accomodate the new styles.
5671 (back_comment, forw_comment, Fforward_comment, scan_lists)
5672 (scan_sexps_forward): Update code to obey the new comment style flag.
5673
5674 * syntax.h: Move SYNTAX_FLAGS_FOO() macros to syntax.c.
5675
5676 * casefiddle.c (casify_region): Use the new syntax_prefix_flag_p.
5677
7aee76f4
J
56782010-08-11 Jan Djärv <jan.h.d@swipnet.se>
5679
3a46642b
J
5680 * xfns.c (x_defined_color): If USE_GTK, call xg_check_special_colors
5681 first.
94dff98f 5682 (Fx_hide_tip): Check FRAME_LIVE_P (f) before calling xg_hide_tooltip.
3a46642b
J
5683
5684 * gtkutil.h (xg_check_special_colors): Declare.
5685
5686 * gtkutil.c (xg_check_special_colors, style_changed_cb): New functions.
5687 (xg_create_frame_widgets): Connect theme name changes to
5688 style_changed_cb.
5689
42ca4633
J
5690 * xterm.c (emacs_class): New char[] for EMACS_CLASS.
5691 (xim_open_dpy, xim_initialize, xim_close_dpy): Use emacs_class.
5692 (x_term_init): Use char[] display_opt and name_opt instead of
93acd23d 5693 string literal. file is const char*.
42ca4633
J
5694
5695 * xsmfns.c (NOSPLASH_OPT): Change to char[].
5696 (smc_save_yourself_CB): Do xstrdup on all ->type and ->name for
5697 props. Free them at the end.
5698
5699 * xselect.c (Fx_get_atom_name): Use char empty[] instead of literal "".
5700
c5683ceb
SM
5701 * xrdb.c (get_system_app): Make path const and use char *p for
5702 non-const char.
42ca4633
J
5703
5704 * xmenu.c (Fx_popup_dialog): error_name is const char*.
93acd23d 5705 (xmenu_show): error parameter is const char **. pane_string is const
42ca4633
J
5706 char *.
5707 (button_names): Is const char *.
5708 (xdialog_show): error_name and pane_string is const.
5709
5710 * process.h (synch_process_death): Is const char*.
5711
5712 * w32menu.c (w32_menu_show):
5713 * nsmenu.m (ns_menu_show): error parameter is const char **.
5714
5715 * menu.h (w32_menu_show, ns_menu_show, xmenu_show): error parameter
5716 is const char **.
5717
5718 * menu.c (Fx_popup_menu): error_name is const.
5719
5720 * keyboard.h (_widget_value): Add defined USE_GTK. Replace Boolean
5721 with unsigned char and XtPointer with void *.
5722
5723 * gtkutil.h: Replace widget_value with struct _widget_value.
5724 (enum button_type, struct _widget_value): Remove and use the one from
5725 keyboard.h.
5726
5727 * gtkutil.c (get_utf8_string): Always return an allocated string.
5728 Parameter is const.
5729 (create_dialog, xg_create_one_menuitem, create_menus)
5730 (xg_item_label_same_p, xg_update_menu_item): Free result from
5731 get_utf8_string.
5732 (xg_separator_p, xg_item_label_same_p): label is const.
5733
5734 * font.h (font_open_by_name): Make name const.
5735
5736 * font.c (font_open_by_name): Make name const.
5737
5738 * floatfns.c (matherr): Use a const char* variable for x->name.
5739
5740 * emacs.c (main): Pass char[] to putenv instead of literal.
5741
5742 * callproc.c (synch_process_death): Make const.
5743 (Fcall_process): Make signame const.
5744
9c5bd55a
J
5745 * nsterm.h (parseKeyEquiv, addSubmenuWithTitle)
5746 (addDisplayItemWithImage): Use const char*.
5747
5748 * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle)
5749 (addDisplayItemWithImage, update_frame_tool_bar): Use const char*.
5750
5751 * nsfont.m (ns_descriptor_to_entity): Use const char*.
5752
5753 * keyboard.h (_widget_value): name, value and key are const char*.
5754
7aee76f4
J
5755 * unexmacosx.c (unexec_error): Use const char *.
5756
09d93395
DN
57572010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5758
5759 * font.h (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5760 (font_parse_name, font_open_by_name):
09d93395 5761 * font.c (font_parse_xlfd, font_parse_fcname, font_unparse_fcname)
c5683ceb 5762 (font_parse_name, font_open_by_name): Remove const.
09d93395 5763
671d409f
AS
57642010-08-09 Andreas Schwab <schwab@linux-m68k.org>
5765
5766 Use autoconf determined WORDS_BIGENDIAN instead of hardcoded
5767 definition.
5768
5769 * m/alpha.h: Don't define/undef WORDS_BIG_ENDIAN.
5770 * m/amdx86-64.h: Likewise.
5771 * m/arm.h: Likewise.
5772 * m/hp800.h: Likewise.
5773 * m/ia64.h: Likewise.
5774 * m/ibmrs6000.h: Likewise.
5775 * m/ibms390.h: Likewise.
5776 * m/intel386.h: Likewise.
5777 * m/iris4d.h: Likewise.
5778 * m/m68k.h: Likewise.
5779 * m/macppc.h: Likewise.
5780 * m/mips.h: Likewise.
5781 * m/sh3.h: Likewise.
5782 * m/sparc.h: Likewise.
5783 * m/template.h: Likewise.
5784 * m/vax.h: Likewise.
5785 * m/xtensa.h: Likewise.
5786 * fringe.c (init_fringe_bitmap): Test WORDS_BIGENDIAN instead of
5787 WORDS_BIG_ENDIAN.
5788 * lisp.h: Likewise.
5789 * md5.c: Likewise.
5790 * sound.c (le2hl, le2hs, be2hl, be2hs): Likewise.
5791
8ea90aa3
DN
57922010-08-09 Dan Nicolaescu <dann@ics.uci.edu>
5793
5794 Use const char* instead of char*.
5795 Reduce the number of warnings with -Wwrite-strings.
5796 * xrdb.c (get_environ_db, get_system_name):
5797 * unexelf.c (find_section):
5798 * term.c (string_cost, string_cost_one_line, per_line_cost)
5799 (get_named_tty, init_tty):
5800 * sysdep.c (sys_subshell):
5801 * sound.c (sound_perror, sound_warning, vox_open, vox_init)
5802 (alsa_sound_perror, alsa_open, alsa_configure, alsa_init):
5803 * search.c (Freplace_match):
5804 * process.c (Fmake_network_process, send_process, init_process):
5805 * lread.c (Fload, init_lread):
5806 * keymap.c (Fdescribe_buffer_bindings, describe_map_tree):
5807 * keyboard.c (parse_tool_bar_item, struct event_head):
5808 * gtkutil.h (xg_get_font_name):
5809 * gtkutil.c (get_dialog_title, create_dialog, xg_get_font_name)
5810 (make_widget_for_menu_item, make_menu_item, create_menus)
5811 (xg_make_tool_item):
5812 * font.c (parse_matrix, font_parse_name):
5813 * floatfns.c (rounding_driver, float_error_fn_name):
5814 * filelock.c (get_boot_time_1, lock_file_1):
5815 * fileio.c (barf_or_query_if_file_exists, check_writable):
5816 * editfns.c (get_system_name, get_operating_system_release)
5817 (Fencode_time, Fset_time_zone_rule):
5818 * dispextern.h (string_cost, per_line_cost, get_named_tty, init_tty):
5819 * buffer.c (defvar_per_buffer): Use const.
5820
7815fe19 58212010-08-08 Kenichi Handa <handa@m17n.org>
7a84eee5 5822
692f3ddc 5823 * charset.c: Include <stdlib.h>.
7a84eee5
KH
5824 (struct charset_sort_data): New struct.
5825 (charset_compare): New function.
692f3ddc 5826 (Fsort_charsets): New function.
7a84eee5
KH
5827 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
5828
5829 * coding.c (decode_coding_iso_2022): Fix checking of dimension
5830 number in CTEXT extended segment.
5831
7815fe19 58322010-08-08 Juanma Barranquero <lekktu@gmail.com>
f5f6c0e0
JB
5833
5834 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
5835 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
5836
7815fe19 58372010-08-08 Juanma Barranquero <lekktu@gmail.com>
b756c005
JB
5838
5839 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
5840 (Fhash_table_size): Fix typos in docstrings.
5841 (Fmake_hash_table): Doc fix.
5842
7815fe19 58432010-08-08 Juanma Barranquero <lekktu@gmail.com>
b4f588fa
JB
5844
5845 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
5846 Doc fix (bug#5625).
5847
7815fe19 58482010-08-08 Ken Brown <kbrown@cornell.edu>
9f8c08a7
KB
5849
5850 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
5851 the MSDOS definition.
5852
1b6d8cf0
DN
58532010-08-08 Dan Nicolaescu <dann@ics.uci.edu>
5854
675e2c69
DN
5855 Use const char* instead of char*.
5856 * xterm.c (x_create_toolkit_scroll_bar):
5857 * xfont.c (xfont_list_pattern):
5858 * xfns.c (x_default_scroll_bar_color_parameter)
5859 (xic_create_fontsetname, x_default_font_parameter)
5860 (x_screen_planes):
5861 * xdisp.c (c_string_pos, number_of_chars, reseat_to_string)
5862 (store_mode_line_string, decode_mode_spec, display_string):
5863 * menu.c (digest_single_submenu):
5864 * keymap.h (initial_define_key, initial_define_lispy_key):
5865 * keymap.c (initial_define_key, initial_define_lispy_key):
5866 * image.c (image_error, image_keyword):
5867 * gtkutil.h (xg_create_widget, xg_create_scroll_bar):
5868 * gtkutil.c (xg_create_widget, xg_create_scroll_bar):
5869 * ftfont.c (struct fc_charset_table, ftfont_spec_pattern)
5870 (ftfont_list, ftfont_match):
5871 * frame.c (frame_parm_table):
5872 * font.h (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5873 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5874 (font_add_log, font_deferred_log):
5875 * font.c (font_intern_prop, font_parse_xlfd, font_parse_fcname)
5876 (font_unparse_fcname, font_unparse_fcname, font_open_by_name)
5877 (font_add_log, font_deferred_log):
5878 * emacs.c (argmatch):
5879 * dispextern.h (struct it):
5880 * coding.c (ENCODE_DESIGNATION):
5881 * charset.c (define_charset_internal): Use const.
5882
25717ca1
DN
5883 * s/freebsd.h (DECLARE_GETPWUID_WITH_UID_T): Remove, unused.
5884
c5683ceb
SM
5885 * xrdb.c: Remove include guard.
5886 Remove DECLARE_GETPWUID_WITH_UID_T conditional it had no effect.
1b6d8cf0
DN
5887 Remove #if 0 code. Replace malloc->xmalloc, free->xfree,
5888 realloc->xrealloc instead of using #defines.
5889
efb41e21
EZ
58902010-08-08 Eli Zaretskii <eliz@gnu.org>
5891
cd21226d 5892 * cmds.c (Fforward_line, Fbeginning_of_line, Fend_of_line):
c5683ceb
SM
5893 * editfns.c (Fline_beginning_position, Fline_end_position):
5894 State in the doc strings that start and end of line are in the
5895 logical order.
cd21226d 5896
efb41e21
EZ
5897 * xdisp.c (display_line): Move the handling of overlay arrow after
5898 the call to find_row_edges. (Bug#6699)
5899
746812d9
CY
59002010-08-07 Chong Yidong <cyd@stupidchicken.com>
5901
5902 * keyboard.c (command_loop_1):
5903 * insdel.c (prepare_to_modify_buffer): Don't call validate_region.
5904
9852377f
CY
59052010-08-07 Chong Yidong <cyd@stupidchicken.com>
5906
5907 * insdel.c (prepare_to_modify_buffer): Save active region text to
5908 Vsaved_region_selection.
5909
5910 * xselect.c (QPRIMARY): Move to keyboard.c.
5911
5912 * keyboard.c (Vselect_active_regions): Move from simple.el.
8d9e03e4
JB
5913 (Vsaved_region_selection, Qx_set_selection, QPRIMARY, Qlazy): New vars.
5914 (command_loop_1): Set window selection prior to deactivating the mark.
9852377f 5915
0e9c8657
JB
59162010-08-07 Juanma Barranquero <lekktu@gmail.com>
5917
5918 * alloc.c (lisp_malloc):
5919 * buffer.c (set_buffer_internal, set_buffer_internal_1):
5920 * charset.h (emacs_mule_charset):
5921 * dispextern.h (inhibit_free_realized_faces, redraw_frame)
5922 (redraw_garbaged_frames, scroll_cost, update_frame, scrolling)
5923 (bitch_at_user):
5924 * lisp.h (Fcheck_coding_system, Fget_text_property)
5925 (Qfunction, Qcompletion_ignore_case, QCwidth, QCsize):
5926 Remove duplicate declarations.
5927
648801d1
DN
59282010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
5929
32bc6709
DN
5930 * process.c: Simplify include logic.
5931
3ef1d108
DN
5932 * keyboard.h (quit_char): Add declaration.
5933 * process.h (QCport, QCspeed, QCprocess, QCbytesize, QCstopbits)
8d9e03e4
JB
5934 (QCparity, Qodd, Qeven, QCflowcontrol, Qhw, Qsw, QCsummary):
5935 Add declarations.
3ef1d108
DN
5936 * sysdep.c:
5937 * w32.c: Remove the above declarations.
5938
97ec208f
DN
5939 Remove extern declarations in .c files, .h files have them.
5940 * xterm.c:
5941 * xdisp.c:
97ec208f
DN
5942 * msdos.c:
5943 * image.c:
5944 * gtkutil.c:
5945 * fileio.c:
5946 * eval.c: Remove declarations.
5947
94eed851
DN
5948 * frame.c (frame_params): Make const.
5949
36e053eb
DN
5950 * lisp.h (fatal_error_signal, emacs_root_dir): Add declaration.
5951
0e843971
DN
5952 * emacs.c (emacs_copyright, emacs_version): Make static.
5953 (Vinitial_window_system, Vauto_save_list_file_name)
5954 (Vinhibit_redisplay): Remove declarations.
5955 (main): Remove HAVE_SHM code, unused. Remove _I386 conditional
5956 for AIX.
5957
648801d1
DN
5958 Use const for some arrays and functions.
5959 * xterm.h (xg_set_icon_from_xpm_data):
5960 * xfns.c (xg_set_icon_from_xpm_data):
5961 * term.c (fkeys):
5962 * keyboard.c (lispy_accent_keys, lispy_function_keys)
5963 (lispy_multimedia_keys, lispy_kana_keys, iso_lispy_function_keys)
5964 (lispy_drag_n_drop_names, scroll_bar_parts, modify_event_symbol)
5965 (frame.c frame_parms):
5966 * emacs-icon.h (gnu_xpm_bits):
5967 * callint.c (callint_argfuns): Use const.
5968
8646d999
J
59692010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5970
5971 * sysdep.c: Move include term.h last of includes (Bug#6812).
5972
cb4545ad
EZ
59732010-08-06 Eli Zaretskii <eliz@gnu.org>
5974
5975 * dispnew.c (realloc_glyph_pool): Zero out newly allocated glyphs.
5976
5977 * msdos.c (IT_display_cursor): Log cursor position on termscript.
5978
5979 * .gdbinit (pgx): Display the avoid_cursor_p flag.
5980
da7e2be6
JB
59812010-08-06 Juanma Barranquero <lekktu@gmail.com>
5982
5983 * makefile.w32-in ($(BLD)/xdisp.$(O)): Update dependencies.
5984
3d608a86
J
59852010-08-06 Jan Djärv <jan.h.d@swipnet.se>
5986
7908fb60
J
5987 * xterm.h (x_get_focus_frame): Declare.
5988
5989 * keyboard.h (poll_for_input_1): Unconditionally declare.
5990
4094bf36
J
5991 * nsterm.h (x_set_menu_bar_lines): Declare.
5992
5993 * window.c: Don't include menu.h, it depends on lots of other .h-files.
5994
3d608a86
J
5995 * xfaces.c (x_create_gc, x_free_gc): Convert to ANSI C prototypes.
5996
5997 * window.c: Include menu.h.
5998
5999 * unexmacosx.c (print_region_list, print_regions)
6000 (build_region_list, find_emacs_zone_regions)
6001 (unexec_regions_merge, read_load_commands, dump_it)
6002 (unexec_init_emacs_zone): Convert to ANSI C prototypes.
6003
6004 * term.c: Check HAVE_SYS_IOCTL_H.
6005
686b968e 6006 * sysdep.c: Check HAVE_TERM_H.
3d608a86 6007
686b968e 6008 * process.c: Check HAVE_UTIL_H. Include nsterm.h if HAVE_NS.
3d608a86
J
6009
6010 * nsterm.m (ns_init_paths, ns_alloc_autorelease_pool)
6011 (ns_ring_bell, ns_defined_color, hide_hourglass)
6012 (x_display_pixel_height, x_display_pixel_width, syms_of_nsterm):
6013 Convert to ANSI C prototypes.
6014 (x_set_window_size, ns_draw_fringe_bitmap, judge): Move declarations
6015 before code.
6016
6017 * nsterm.h : Include sysselect.h.
6018 (x_sync, x_get_focus_frame, x_set_mouse_position)
6019 (x_set_mouse_pixel_position, x_make_frame_visible)
6020 (x_make_frame_invisible, x_iconify_frame, x_char_width, x_char_height)
6021 (x_pixel_width, x_pixel_height, x_set_frame_alpha, x_set_tool_bar_lines)
6022 (x_activate_menubar, free_frame_menubar, ns_init_paths, ns_select)
6023 (syms_of_nsterm, syms_of_nsfns, syms_of_nsmenu, syms_of_nsselect):
686b968e 6024 Declare.
3d608a86
J
6025
6026 * nsmenu.m (popup_activated, name_is_separator)
6027 (syms_of_nsmenu): Convert to ANSI C prototypes.
6028 (runMenuAt): Prototypes and move declarations before code.
6029
6030 * nsimage.m (ns_load_image): Move NSTRACE after declarations.
6031
6032 * nsfont.m (ns_fallback_entity, syms_of_nsfont): Convert to ANSI C
6033 prototypes.
6034
6035 * nsfns.m (have_menus_p, ns_display_info_for_name)
6036 (x_set_cursor_type, ns_appkit_version_str)
6037 (ns_appkit_version_int, ns_do_applescript)
6038 (x_set_scroll_bar_default_width, x_sync, compute_tip_xy)
6039 (syms_of_nsfns): Convert to ANSI C prototypes.
6040
6041 * menu.h (x_set_menu_bar_line): Declare.
6042 (free_menubar_widget_value_tree et.al): Add HAVE_NS for these functions.
6043
6044 * lisp.h (fmod_float): Declare.
6045
6046 * image.c (xpm_scan, xpm_make_color_table_v)
6047 (xpm_put_color_table_v, xpm_get_color_table_v)
6048 (xpm_make_color_table_h, xpm_put_color_table_h)
6049 (xpm_get_color_table_h, xpm_str_to_color_key, xpm_load_image)
6050 (xpm_load): Convert to ANSI C prototypes.
6051
6052 * emacs.c: Include nsterm.h if HAVE_NS.
6053
6054 * bidi.c (bidi_dump_cached_states): Fix fprintf warning.
6055
fce70521
DN
60562010-08-06 Dan Nicolaescu <dann@ics.uci.edu>
6057
6058 * process.c: Remove HAVE_SOCKETS #ifdefs inside #ifdef
6059 subprocesses, only MSDOS does not define HAVE_SOCKETS.
6060 (socket_options): Use const char* for name.
6061
a11889ab
JB
60622010-08-06 Juanma Barranquero <lekktu@gmail.com>
6063
6064 Fix changes in 2010-08-05T23:15:24Z!dann@ics.uci.edu..2010-08-05T23:34:12Z!dann@ics.uci.edu for Windows build.
6065
6066 * xmenu.c [USE_X_TOOLKIT || USE_GTK]:
6067 Don't declare xmalloc_widget_value and digest_single_submenu.
6068
6069 * w32font.c (Qlatin): Remove declaration.
6070
6071 * menu.h (xmalloc_widget_value, digest_single_submenu): Declare.
6072
c95b508f 6073 * dired.c (compile_pattern): Restore declaration.
a11889ab 6074
6254cdda
DN
60752010-08-05 Dan Nicolaescu <dann@ics.uci.edu>
6076
04bab72c
DN
6077 Remove extern declarations in .c files, .h files have them.
6078 * data.c:
6079 * dired.c:
6080 * editfns.c:
6081 * filelock.c:
6082 * fns.c:
6083 * font.c:
6084 * fontset.c:
6085 * frame.c:
6086 * fringe.c:
6087 * ftfont.c:
6088 * gtkutil.c:
6089 * indent.c:
6090 * keyboard.c:
6091 * keymap.c:
6092 * lread.c:
6093 * menu.c:
6094 * print.c:
6095 * search.c:
6096 * sound.c:
6097 * window.c:
6098 * xdisp.c:
6099 * xfaces.c:
6100 * xfns.c:
6101 * xfont.c:
6102 * xftfont.c:
6103 * xmenu.c:
6104 * xterm.c: Remove declarations.
6105
dff94ed5
DN
6106 Cleanup syssignal.h.
6107 * syssignal.h (sighold, sigrelse, RETSIGTYPE): Remove, unused.
6108 (main_thread): Move down to remove #ifdef.
6109 (SIGMASKTYPE, SIGEMPTYMASK, SIGFULLMASK, sigmask, sigunblock):
6110 Remove conditional definition following unconditional ones.
6111
99f3388e
DN
6112 * lisp.h: Remove HAVE_SHM code, unused.
6113 (QCmap, QCrehash_size, QCrehash_threshold, QCsize, QCtest)
6114 (QCweakness, Qabove_handle, Qbackquote, Qbar, Qbelow_handle)
6115 (Qborder, Qbottom, Qbox, Qcircular_list, Qcomma, Qcomma_at)
6116 (Qcomma_dot, Qcursor, Qdefault, Qdown, Qend_scroll, Qeq, Qeql)
6117 (Qequal, Qfile_exists_p, Qfont_param, Qfringe, Qfunction)
6118 (Qfunction_documentation, Qhandle, Qhbar, Qheader_line, Qhollow)
6119 (Qidentity, Qleft_margin, Qmenu, Qmenu_bar_update_hook)
6120 (Qmode_line_inactive, Qmouse, Qoverriding_local_map)
6121 (Qoverriding_terminal_local_map, Qratio, Qregion, Qright_margin)
6122 (Qscroll_bar, Qtool_bar, Qtop, Qup, Qvertical_border, Qwhen)
6123 (Qwindow_scroll_functions, Vafter_load_alist)
6124 (Vauto_save_list_file_name, Vface_alternative_font_family_alist)
6125 (Vface_alternative_font_registry_alist, Vface_font_rescale_alist)
6126 (Vface_ignored_fonts, Vinhibit_redisplay, Vminibuffer_list)
6127 (Vprint_length, Vprint_level, Vscalable_fonts_allowed)
6128 (Vshell_file_name, Vsystem_name, Vwindow_scroll_functions)
6129 (Vwindow_system_version, Vx_no_window_manager, initial_argc)
6130 (initial_argv, last_nonmenu_event, load_in_progress)
6131 (noninteractive_need_newline, scroll_margin): Add declarations.
6132
bba3e508
SM
6133 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
6134 Remove declarations, menu.h has them.
99f3388e
DN
6135 (QCbutton, QCtoggle, QCradio, QClabel, extra_keyboard_modifiers)
6136 (Vinput_method_function, Qinput_method_function)
6137 (Qevent_symbol_element_mask, last_event_timestamp):
6138 * dispextern.h (Voverflow_newline_into_fringe):
6139 * font.h (QCantialias, Qp, syms_of_ftfont, syms_of_xfns)
6140 (syms_of_ftxfont, syms_of_xftfont, syms_of_bdffont)
6141 (syms_of_w32font, syms_of_nsfont):
6142 * fontset.h (find_font_encoding, Qlatin):
6143 * frame.h (Qtooltip, Qrun_hook_with_args, Vmenu_bar_mode)
6144 (Vtool_bar_mode, set_frame_menubar):
6145 * ftfont.h (ftfont_font_format, ftfont_get_fc_charset):
6146 * xterm.h (Qx_gtk_map_stock):
6147 * keymap.h (meta_prefix_char): Add declarations.
6148
9f5dd6f2
DN
6149 * term.c: Remove dead code.
6150
6254cdda
DN
6151 Fix emacs -Q -f server-start & emacsclient -t on GNU/Linux.
6152 * term.c (dissociate_if_controlling_tty): Use USG5 instead of
6153 USG. This is equivalent to defined (USG) && !defined (BSD_PGRPS),
6154 which is what was there before BSD_PGRPS was removed.
6155
29cf3e20
EZ
61562010-08-05 Eli Zaretskii <eliz@gnu.org>
6157
6158 * deps.mk (unexcoff.o): Rename unexec.[co] => unexcoff.[co].
6159
6160 * unexcoff.c: Renamed from unexec.c.
6161
aaa0a19a
SM
61622010-08-04 Stefan Monnier <monnier@iro.umontreal.ca>
6163
6164 * sysdep.c (child_setup_tty): Comment-out left-over non-ICANON code.
6165
8d1d9587
JB
61662010-08-03 Johan Bockgård <bojohan@gnu.org>
6167
6168 * data.c (Flocal_variable_p): Handle variable aliases correctly.
e0d62a9b 6169 (Bug#6744)
8d1d9587 6170
9a747ba6
JD
61712010-08-02 Jan Djärv <jan.h.d@swipnet.se>
6172
4d464ae4
JD
6173 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
6174 to TRUE if depth of screen is < 16.
6175
ac01763e
JD
6176 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
6177 USE_GTK_TOOLTIP.
e0d62a9b
JB
6178 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP.
6179 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless USE_GTK_TOOLTIP.
4d464ae4 6180 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
ac01763e
JD
6181 USE_GTK_TOOLTIP.
6182 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
6183
6184 * xterm.h (USE_GTK_TOOLTIP): New define.
6185 (struct x_output): Put ttip_* inside ifdef USE_GTK_TOOLTIP.
6186
9a747ba6
JD
6187 * sysdep.c (child_setup_tty): Enable ICANON in lflags and set VEOF
6188 to Control-D (Bug#6771).
6189
7b0815ba
JB
61902010-08-02 Juanma Barranquero <lekktu@gmail.com>
6191
6192 * editfns.c (Fregion_beginning, Fregion_end): Doc fixes (bug#6493).
6193 Wording by Drew Adams <drew.adams@oracle.com>.
6194
aa1859f5
J
61952010-08-01 Jan Djärv <jan.h.d@swipnet.se>
6196
6197 * xterm.h (struct x_output): Add ttip_widget, ttip_window and
6198 ttip_lbl.
6199
6200 * xterm.c (x_clear_frame): Check FRAME_GTK_WIDGET (f) before
6201 calling gtk_widget_queue_draw.
6202 (x_free_frame_resources): Call xg_free_frame_widgets.
6203
6204 * xfns.c (x_gtk_use_system_tooltips): New variable.
6205 (Fx_show_tip): If USE_GTK and x_gtk_use_system_tooltips, call
6206 new gtkutil tooltip functions to show the tooltip.
6207 (Fx_hide_tip): Call xg_hide_tooltip.
6208 (syms_of_xfns): Defvar x-gtk-use-system-tooltips.
6209
6210 * gtkutil.h (xg_free_frame_widgets, xg_prepare_tooltip)
6211 (xg_show_tooltip, xg_hide_tooltip): Declare.
6212
6213 * gtkutil.c (hierarchy_ch_cb, qttip_cb, xg_prepare_tooltip)
e0d62a9b
JB
6214 (xg_show_tooltip, xg_hide_tooltip, xg_free_frame_widgets):
6215 New functions.
aa1859f5
J
6216 (xg_create_frame_widgets): Set ttip_* to 0. Set a dummy tooltip
6217 text so qttip_cb is called. Connect query-tooltip to qttip_cb.
6218 Remove code that is commented out.
6219
76417ef4
SM
62202010-08-01 Stefan Monnier <monnier@iro.umontreal.ca>
6221
6222 * keymap.c (Fdefine_key, Flookup_key): Say what event is invalid.
6223
16041401
CY
62242010-07-31 Chong Yidong <cyd@stupidchicken.com>
6225
6226 * xselect.c (x_own_selection): Use list4.
6227
2c09a58f
DN
62282010-07-30 Dan Nicolaescu <dann@ics.uci.edu>
6229
6230 * buffer.c (Qwindow): Do not define, already defined in data.c.
6231 (syms_of_buffer): Do not intern and staticpro Qwindow. (Bug#6760)
6232
59df9fdd 62332010-07-29 Chad Brown <yandros@mit.edu>
1c97e857 6234
59df9fdd
JB
6235 Replace tests for SYSV_SYSTEM_DIR with HAVE_DIRENT_H, set via autoconf.
6236 * dired.c, sysdep.c: Test HAVE_DIRENT_H instead of SYSV_SYSTEM_DIR.
6237 * config.in: Undef HAVE_DIRENT_H.
1c97e857 6238 * s/aix4-2.h, s/bsd-common.h, s/cygwin.h, s/gnu-linux.h,
59df9fdd 6239 * s/msdos.h, s/usg5-4.h: Don't define SYSV_SYSTEM_DIR.
1c97e857 6240
1b231651
DN
62412010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6242
6243 Rename s/usg5-4.h -> s/usg5-4-common.h.
6244 * s/usg5-4.h: Rename file to ...
6245 * s/usg5-4-common.h: ... this for consistency with what we do for BSD.
6246 * s/unixware.h:
6247 * s/sol2-6.h:
6248 * s/irix6-5.h: Update includes accordingly.
6249
bfeabdc3
JD
62502010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6251
2ebf1083
J
6252 * xfns.c (x_set_tool_bar_position): Remove debug fprintf.
6253
bfeabdc3 6254 * xterm.h (struct x_output): Add toolbar_top_height,
e0d62a9b
JB
6255 toolbar_bottom_height, toolbar_left_width, toolbar_right_width.
6256 Remove toolbar_height.
6257 If USE_GTK: Add hbox_widget and toolbar_in_hbox.
bfeabdc3
JD
6258 (FRAME_TOOLBAR_TOP_HEIGHT, FRAME_TOOLBAR_BOTTOM_HEIGHT)
6259 (FRAME_TOOLBAR_LEFT_WIDTH, FRAME_TOOLBAR_RIGHT_WIDTH): New macros.
6260 (FRAME_TOOLBAR_HEIGHT): Is now TOP_HEIGHT + BOTTOM_HEIGHT.
6261
6262 * xterm.c (x_set_window_size_1): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6263
6264 * xfns.c (x_set_tool_bar_position): New function.
6265 (xic_set_statusarea): Use FRAME_TOOLBAR_TOP_HEIGHT.
6266 (x_frame_parm_handlers): Add x_set_tool_bar_position.
e0d62a9b 6267 (syms_of_xfns): If USE_GTK, provide move-toolbar.
bfeabdc3
JD
6268
6269 * window.c (calc_absolute_offset): Check for FRAME_TOOLBAR_TOP_HEIGHT
6270 and FRAME_TOOLBAR_LEFT_WIDTH.
6271
6272 * gtkutil.h (xg_change_toolbar_position): Declare.
6273
6274 * gtkutil.c (FRAME_TOTAL_PIXEL_WIDTH): New macro.
6275 (xg_frame_set_char_size): Add FRAME_TOOLBAR_WIDTH to pixelwidth.
6276 (xg_height_or_width_changed): Use FRAME_TOTAL_PIXEL_WIDTH.
6277 (xg_create_frame_widgets): Create a hobox for placing widgets
6278 vertically. Use gtk_box_pack_start.
ef1b0ba7 6279 (xg_height_or_width_changed): Rename from xg_height_changed.
bfeabdc3
JD
6280 (x_wm_set_size_hint): Add FRAME_TOOLBAR_WIDTH to base_width.
6281 (xg_update_frame_menubar, free_frame_menubar): Change to
6282 xg_height_or_width_changed.
6283 (xg_tool_bar_detach_callback): Update left/right/top/bottom tool bar
6284 size correctly. Remove hardcoded 4, instead use handlebox size -
6285 toolbar size.
6286 (xg_tool_bar_attach_callback): Update left/right/top/bottom tool bar
e0d62a9b 6287 size correctly. Use handlebox size + toolbar size as additional size.
bfeabdc3
JD
6288 (xg_pack_tool_bar): POS is a new parameter.
6289 Set orientation of tool bar based on pos.
6290 Only make handlebox_widget if NULL.
6291 Check if tool bar goes to vbox or hbox depending on pos.
6292 (xg_update_tool_bar_sizes): New function.
686b968e 6293 (update_frame_tool_bar): Remove old_req, new_req. Do not get tool bar
bfeabdc3
JD
6294 height, call xg_update_tool_bar_sizes instead.
6295 (free_frame_tool_bar): Remove from hbox or vbox depending on
6296 toolbar_in_hbox, Set all FRAME_TOOLBAR_*_(WIDTH|HEIGHT) to zero.
6297 (xg_change_toolbar_position): New function.
6298
6299 * frame.h (struct frame): Add tool_bar_position.
6300 (Qbottom): Declare.
6301
6302 * frame.c (Qtool_bar_position): New variable.
6303 (make_frame): Set tool_bar_position to Qtop.
6304 (frame_parms): Add tool-bar-position.
6305 (x_report_frame_params): Store tool_bar_position.
6306 (x_set_fringe_width): Reset wm size hint after fringe changes.
6307
26469a38
DN
63082010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6309
6310 Make lisp_time_argument declaration work on all systems.
6311 * lisp.h (lisp_time_argument): Move declaration ...
6312 * systime.h (lisp_time_argument): ... here
6313 * editfns.c (lisp_time_argument): Remove declaration. (Bug#6751)
6314
8848b728
JD
63152010-07-29 Jan Djärv <jan.h.d@swipnet.se>
6316
6317 * vm-limit.c (POINTER): Add typedef for it.
6318 (start_of_data): Change return type from POINTER to char *.
6319
6320 * frame.h (Qtty_color_mode): Move declaration out of ifdef
6321 HAVE_WINDOW_SYSTEM.
6322
76fd1ee9
DN
63232010-07-29 Dan Nicolaescu <dann@ics.uci.edu>
6324
0441987e
DN
6325 * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it.
6326 Remove reference to __osf__, unused.
6327
56a000c7
DN
6328 * mem-limits.h: Remove duplicated includes.
6329 (NULL): Remove definition, unused.
6330 (POINTER): Remove definition.
6331 (start_of_data): Use char* in prototype, as the function
6332 definition does.
6333
e6cba650
DN
6334 Remove extern declarations from .c files, and them to .h files.
6335 * keyboard.h (Qhelp_echo, waiting_for_input)
6336 (input_available_clear_time, ignore_mouse_drag_p)
6337 (Vdouble_click_time, real_this_command, Vthis_original_command):
6338 * keymap.h (Qremap, Qmenu_item, Voverriding_local_map)
6339 (Voverriding_local_map_menu_flag):
6340 * lisp.h (Qinteractive_form, use_file_dialog)
6341 (Qcursor_in_echo_area, QCascent, QCmargin, QCrelief, Qcount)
6342 (Qextension_data, QCconversion, QCcolor_symbols, QCheuristic_mask)
6343 (QCindex, QCmatrix, QCcolor_adjustment, QCmask)
6344 (Qrisky_local_variable, map_char_table_for_charset, Vprint_level)
6345 (Qfunction, debug_on_next_call, Qfield)
6346 (Vinhibit_field_text_motion, Vuser_login_name, lisp_time_argument)
6347 (Qpriority, Qwindow, Qevaporate, Qbefore_string, Qafter_string)
6348 (Qfile_directory_p, Qinsert_file_contents)
6349 (Qcompletion_ignore_case, Qcompletion_ignore_case)
6350 (Vcompletion_regexp_list, Vhistory_length, completion_ignore_case)
6351 (history_delete_duplicates, minibuffer_auto_raise, Qonly)
6352 (Qfile_name_handler_alist, Qfront_sticky, Qrear_nonsticky)
6353 (Qminibuffer_prompt)
6354 (Vtemporary_file_directory,char_ins_del_vector, Qface):
6355 * xterm.h (gray_bitmap_width, gray_bitmap_height)
6356 (gray_bitmap_bits, xic_create_fontsetname):
6357 * coding.h (Vtranslation_table_for_input): Add extern declarations.
6358
6359 * xsmfns.c (Vuser_login_name):
6360 * xrdb.c (Vdouble_click_time):
6361 * xfaces.c (xic_create_fontsetname):
6362 * w32select.c (waiting_for_input):
6363 * print.c (minibuffer_auto_raise):
6364 * msdos.c (Qhelp_echo):
6365 * macros.c (real_this_command):
6366 * keymap.c (Voverriding_local_map):
6367 * xterm.c (poll_for_input_1, gray_bitmap_width)
6368 (gray_bitmap_height, gray_bitmap_bits;
6369 * xmenu.c ( Voverriding_local_map)
6370 (Voverriding_local_map_menu_flag; Qmenu_item; use_dialog_box)
6371 (use_file_dialog, Xt_app_con):
6372 * xdisp.c (minibuffer_auto_raise, Voverriding_local_map)
6373 (Voverriding_local_map_menu_flag, Qmenu_item, Qface, Qinvisible)
6374 (Qwidth, Qinvisible, Qwindow, Qpriority, Qtool_bar_lines)
6375 (Qtool_bar_lines, ignore_mouse_drag_p):
6376 * minibuf.c (Voverriding_local_map, Qfield, Qfront_sticky)
6377 (Qrear_nonsticky, nconc2):
6378 * keyboard.c (current_global_map, minibuf_level, Qmenu_item)
6379 (Vhistory_length, Vtranslation_table_for_input, Qcomposition)
6380 (Qdisplay, Qafter_string, Qbefore_string, Qundefined):
6381 * fileio.c (use_dialog_box, use_file_dialog, Vuser_login_name)
6382 (minibuf_level, minibuffer_auto_raise, lisp_time_argument):
6383 * eval.c (Qinteractive_form, Qrisky_local_variable, Qfunction)
6384 (gc_in_progress):
6385 * doc.c (Voverriding_local_map, Qremap):
6386 * dired.c (completion_ignore_case, Qcompletion_ignore_case)
6387 (Vcompletion_regexp_list):
6388 * coding.c (Qmac, Qinsert_file_contents, Qwrite_region)
6389 (Qcompletion_ignore_case):
6390 * callint.c (Qcursor_in_echo_area, Qfile_directory_p, Qonly)
6391 (Vhistory_length, Vthis_original_command, real_this_command)
6392 (Qface, Qminibuffer_prompt, history_delete_duplicates):
6393 * image.c (Qrisky_local_variable):
6394 * fontset.c (QCname):
6395 * fns.c (minibuffer_auto_raise, QCname):
6396 * dispnew.c (char_ins_del_cost):
6397 * composite.c (font_fill_lglyph_metrics):
6398 * cmds.c (Qface, Vtranslation_table_for_input):
6399 * charset.c (map_char_table_for_charset, Qfile_name_handler_alist):
6400 * ccl.c (charset_unicode):
6401 * callproc.c (Vtemporary_file_directory):
6402 * buffer.c (emacs_strerror): Remove extern declarations.
6403
6404 * data.c (Qwindow): Make non-static, used from other files too.
6405 * frame.c (validate_x_resource_name): Remove shadow definition for i.
6406
76fd1ee9
DN
6407 * unexec.c (make_hdr): Remove references to NO_REMAP, COFF,
6408 SEGMENT_MASK, SECTION_ALIGNMENT, ADJUST_EXEC_HEADER.
6409 * s/usg5-4.h (COFF):
6410 * s/template.h:
6411 * s/msdos.h (COFF, NO_REMAP):
6412 * s/ms-w32.h (NO_REMAP):
6413 * s/hpux10-20.h (NO_REMAP):
6414 * m/sparc.h (SEGMENT_MASK):
6415 * m/m68k.h (NO_REMAP):
6416 * m/intel386.h (SEGMENT_MASK):
6417 * m/arm.h (NO_REMAP):
6418 * m/alpha.h (COFF):
6419 * m/template.h: Remove references to unused defines.
6420
8a52f00a
JD
64212010-07-28 Jan Djärv <jan.h.d@swipnet.se>
6422
6423 * xsettings.c (Ftool_bar_get_system_style): Also check for
6424 Qtext_image_horiz.
6425
6426 * xdisp.c (Qtext_image_horiz): Define.
6427 (syms_of_xdisp): Initialize Qtext_image_horiz. Add text-image-horiz
087b38a0 6428 to documentation of tool-bar-style.
8a52f00a
JD
6429
6430 * lisp.h (Qtext_image_horiz): Declare.
6431
6432 * gtkutil.c (xg_make_tool_item, xg_show_toolbar_item): Handle tool bar
6433 style text_image_horiz.
6434
89dc303e
DN
64352010-07-27 Dan Nicolaescu <dann@ics.uci.edu>
6436
60799703
DN
6437 * emacs.c (Fkill_emacs): Remove return statement.
6438
37254dc1
DN
6439 * term.c (Qspace, QCalign_to, QCwidth): Remove declarations.
6440 (encode_terminal_code, produce_composite_glyph): Remove unused variables.
bba3e508
SM
6441 (set_tty_color_mode, term_mouse_highlight, term_get_fkeys):
6442 Remove local extern declarations.
37254dc1 6443
71c7345a
DN
6444 * xmenu.c: Do not included lwlib.h, not needed.
6445
6ba577cb
DN
6446 * m/iris4d.h (XUINT, XSET): Remove, not needed.
6447
fdb183d6
DN
6448 * process.c: Move definitions earlier to minimize #ifdefs.
6449
6450 * xterm.h (x_get_customization_string, x_load_resources)
6451 (x_get_resource, x_text_icon, x_text_icon, x_check_errors)
6452 (x_check_errors, x_property_data_to_lisp, defined_color)
6453 (xic_set_xfontset, x_defined_color): Use const.
6454
6455 * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations.
6456 (x_text_icon, x_check_errors, x_connection_closed): Use const.
6457
6458 * xselect.c (selection_data_to_lisp_data)
6459 (x_property_data_to_lisp):
6460 * xrdb.c (x_get_string_resource, file_p)
6461 (x_get_customization_string, magic_file_p, search_magic_path)
6462 (get_system_app, get_user_app, x_load_resources, x_get_resource)
6463 (x_get_string_resource): Use const.
6464
6465 * xfns.c: Include xlwmenu.h when USE_LUCID.
6466 (x_defined_color, xic_set_xfontset): Use const.
6467 (Fx_hide_tip): Remove local extern declaration.
6468
6469 * xfaces.c (Qmouse_face): Remove declaration.
6470 (face_color_gray_p, tty_defined_color, defined_color)
686b968e 6471 (face_color_gray_p, face_color_supported_p): Add const.
fdb183d6
DN
6472
6473 * xdisp.c (do_mouse_tracking): Remove declaration.
6474 (add_to_log): Use const.
6475
6476 * minibuf.c (Qmouse_face): Remove declaration.
6477
6478 * msdos.c (IT_note_mouse_highlight): Remove local extern declaration.
6479
6480 * keyboard.h (do_mouse_tracking): Add declaration.
6481
6482 * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile)
6483 (QCdata, QCtype, Qcenter): Remove declarations.
6484
6485 * frame.c (x_get_resource_string, x_get_string_resource)
6486 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6487 (x_default_parameter): Use const.
6488
6489 * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth)
6490 (QCheight, QCsize, QCname): Remove declarations.
6491
6492 * emacs.c (main): Remove local extern declaration.
6493
6494 * editfns.c (region_limit, syms_of_editfns): Remove local extern
6495 declarations.
6496
6497 * dispnew.c: Remove duplicate #include <unistd.h>.
6498 (update_window, update_frame_1, init_display): Remove local extern
6499 declarations.
6500
6501 * dispextern.h (add_to_log): Remove declaration.
6502 (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg)
6503 (x_frame_get_and_record_arg, x_default_parameter): Add const.
6504
6505 * dired.c (scmp): Add const.
6506 (directory_files_internal): Remove local extern declaration.
6507
6508 * data.c (Finteractive_form): Use const.
6509
6510 * composite.c (syms_of_composite): Remove local extern declarations.
6511
6512 * charset.c (add_to_log): Remove declaration.
6513
6514 * character.c (strwidth, parse_str_to_multibyte): Add const.
6515
6516 * character.h (strwidth, parse_str_to_multibyte): Likewise.
6517
6518 * buffer.c (Fset_buffer_multibyte): Remove local extern declaration.
6519
89dc303e 6520 * lisp.h (Fkill_emacs): Mark as NO_RETURN.
fdb183d6
DN
6521 (Lisp_Subr): Make doc and intspec constant.
6522 (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype)
6523 (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth)
6524 (QCheight, QCsize, QCname, QCwidth, QCforeground)
6525 (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive)
6526 (display_arg): Add declarations.
89dc303e 6527
0ed082fe 65282010-07-27 Christoph Scholtes <cschol2112@gmail.com>
a2a0d36b
CS
6529
6530 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
6531
0ed082fe
JB
6532 * window.c (Fwindow_height): Doc fix (bug#6518).
6533
65342010-07-27 Juanma Barranquero <lekktu@gmail.com>
6535
6536 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
6537
ccaf0336
DN
65382010-07-26 Dan Nicolaescu <dann@ics.uci.edu>
6539
977105dc
DN
6540 * keyboard.c (Ftop_level, Fexit_recursive_edit)
6541 (Fabort_recursive_edit): Remove return statements in NO_RETURN
6542 functions.
6543
f5ada890
DN
6544 * frame.h (Qtty_color_mode): Add declaration.
6545
ccaf0336
DN
6546 * lisp.h (Ftop_level, Fexit_recursive_edit)
6547 (Fabort_recursive_edit): Mark as NO_RETURN.
6548
dfe3c90f
KH
65492010-07-26 Kenichi Handa <handa@m17n.org>
6550
6551 * font.c (Ffont_shape_gstring): Terminate GSTRING by nil if the
e29eb8cf 6552 number of glyphs gets smaller than the original length. (Bug#6621)
dfe3c90f 6553
7d383292
JB
65542010-07-26 Juanma Barranquero <lekktu@gmail.com>
6555
6556 * lread.c (unreadpure, mapatoms_1): Make static.
6557
da31e629
JB
65582010-07-25 Juanma Barranquero <lekktu@gmail.com>
6559
6560 * terminfo.c (tparam): Fix prototype of tparm.
6561
7bfa6d77
AS
65622010-07-25 Andreas Schwab <schwab@linux-m68k.org>
6563
dcc19aac
AS
6564 * emacs.c (main) [PROFILING]: Use __executable_start if defined to
6565 find start of text segment.
6566 * dispnew.c (safe_bcopy): Don't define if HAVE___EXECUTABLE_START
6567 is defined.
6568
7bfa6d77
AS
6569 * callproc.c (set_initial_environment): Avoid unbalanced braces.
6570
63f9a672
KB
65712010-07-25 Ken Brown <kbrown@cornell.edu>
6572
6573 * vm-limit.c (check_memory_limits): Fix previous change;
6574 accidentally reverted an earlier change.
6575
24933075
KB
65762010-07-25 Ken Brown <kbrown@cornell.edu>
6577
6578 * mem-limits.h (BSD4_2) [cygwin]: Don't define here; instead...
6579 * vm-limit.c: ...add 'defined (CYGWIN)' here (Bug#6715).
6580
361358ea
JB
65812010-07-25 Juanma Barranquero <lekktu@gmail.com>
6582
6583 * callproc.c (relocate_fd): Set inside #ifndef WINDOWSNT.
6584 * dired.c (opendir, readdir): Fix prototypes.
6585 * editfns.c (w32_get_internal_run_time): Fix prototypes.
6586 * keyboard.c (input_available_signal): Declare inside #ifdef SIGIO.
6587 * ndir.h (opendir, readdir, seekdir, closedir): Fix prototypes.
6588 (telldir): Remove declaration.
6589 * ralloc.c (real_morecore, __morecore): Fix prototypes.
6590 * sound.c (alsa_sound_perror): Declare inside #ifdef HAVE_ALSA.
6591 * syssignal.h (strsignal): Fix prototype.
6592 * term.c (tparam): Fix prototype.
6593 (term_get_fkeys_address, term_get_fkeys_kboard, term_get_fkeys_1)
6594 (term_get_fkeys): Set inside "#ifndef DOS_NT".
6595 * vm-limit.c (check_memory_limits): Fix prototypes of real_morecore
6596 and __morecore.
6597 * w32gui.h (XParseGeometry): Fix prototype.
6598 * w32heap.h (get_data_start, get_data_end, init_heap): Fix prototypes.
6599 * w32term.c (my_set_focus): Declare inside #if 0.
6600 * w32term.h (x_window_to_frame, x_display_info_for_name, w32_term_init)
6601 (w32_fill_rect, w32_clear_window, init_crit, delete_crit, signal_quit)
6602 (drain_message_queue, get_next_msg, post_msg, parse_button)
6603 (ClipboardSequence_Proc): Fix prototypes.
6604 (wait_for_sync): Remove declaration.
6605
630b9592
JB
66062010-07-24 Juanma Barranquero <lekktu@gmail.com>
6607
6608 * w32fns.c (w32_to_x_color): Remove, unused.
6609
6a0d6611
AS
66102010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6611
6612 * lisp.h: Remove leftover P_.
6613
4e8608ff
DN
66142010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
6615
6616 * ecrt0.c, unexalpha.c: Remove files, unused.
6617
c8197983
AS
66182010-07-24 Andreas Schwab <schwab@linux-m68k.org>
6619
6620 * cmds.c (internal_self_insert): Make static.
6621 * lisp.h (internal_self_insert): Remove declaration.
6622
97b372d7
JB
66232010-07-23 Juanma Barranquero <lekktu@gmail.com>
6624
33ac0414
JB
6625 * alloc.c (free_float):
6626 * font.c [ENABLE_CHECKING] (font_match_xlfd, font_check_xlfd_parse):
6627 * frame.c (delete_frame_handler):
6628 * ralloc.c (reorder_bloc):
6629 * w32menu.c (menubar_id_to_frame, add_left_right_boundary):
6630 Remove unused static functions.
6631
94da8397
JB
6632 * menu.c (cleanup_popup_menu): Set inside "#ifdef HAVE_NS";
6633 it is called only from NS code.
6634
2e6c8532
JB
6635 * w32term.c (my_set_focus): #ifdef away; it is called only from
6636 "#ifdef 0" code.
6637
97b372d7
JB
6638 * w32fns.c (x_edge_detection):
6639 * xfaces.c (may_use_scalable_font_p):
6640 Remove obsolete static declarations.
6641
7c3320d8
JB
66422010-07-20 Juanma Barranquero <lekktu@gmail.com>
6643
6644 * alloc.c (emacs_blocked_free, emacs_blocked_malloc)
6645 (emacs_blocked_realloc, uninterrupt_malloc):
6646 * fringe.c (w32_reset_fringes):
6647 * image.c (convert_mono_to_color_image, lookup_rgb_color)
6648 (init_color_table, XPutPixel, jpeg_resync_to_restart_wrapper):
6649 * sound.c (be2hs, do_play_sound):
6650 * vm-limit.c (get_lim_data, ret_lim_data):
6651 * w32term.c (x_free_frame_resources):
6652 * xfaces.c (x_create_gc, x_free_gc):
6653 Convert definitions to standard C.
6654
d5273788
SM
66552010-07-20 Stefan Monnier <monnier@iro.umontreal.ca>
6656
6657 * eval.c (Feval, Ffuncall): Use the new names.
6658
6659 * lisp.h (struct Lisp_Subr): Rename `am' to aMANY and add aUNEVALLED.
6660 (DEFUN): Add braces around the union initialisation and use ## to
6661 specify the right union alternative and avoid a cast.
6662
8d16a259
JB
66632010-07-18 Juanma Barranquero <lekktu@gmail.com>
6664
6665 * makefile.w32-in ($(BLD)/keyboard.$(O)): Update dependencies.
6666
3b8eff32
CY
66672010-07-17 Chong Yidong <cyd@stupidchicken.com>
6668
6669 * frame.c (make_initial_frame): Use set_menu_bar_lines (Bug#6660).
6670
499322ce
J
66712010-07-17 Jan Djärv <jan.h.d@swipnet.se>
6672
6673 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
6674 is related to the menu bar (Bug#6499).
a628ad9d 6675 (xg_frame_resized): GTK_IS_MAPPED => gtk_widget_get_mapped, for Gtk 3.0.
499322ce 6676
f6003da5 66772010-07-16 Jan Djärv <jan.h.d@swipnet.se>
b78f9767
J
6678
6679 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
6680
6681 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
6682
6683 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
6684 i.e. don't put back ButtonRelease (Bug#6608).
6685
6686 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
6687 instead of Window. Call xg_event_is_for_menubar when
6688 USE_GTK (Bug#6499).
6689
6690 * gtkutil.h (xg_event_is_for_menubar): Declare.
6691
6692 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
6693
f6003da5 66942010-07-16 Eli Zaretskii <eliz@gnu.org>
1f60c16a
EZ
6695
6696 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
6697 when it's the same as the old foreground. (Bug#6609)
6698
23243f29
J
66992010-07-16 Jan Djärv <jan.h.d@swipnet.se>
6700
6701 * xmenu.c (free_frame_menubar): Only call x_set_window_size if
6702 widget is non-null (Bug#6645).
6703
2b23d2a6
AS
67042010-07-15 Andreas Schwab <schwab@linux-m68k.org>
6705
01b564ff
AS
6706 * xterm.c (x_fully_uncatch_errors, x_trace_wire, x_check_font):
6707 Convert old-style definition.
6708
2b23d2a6
AS
6709 * xmenu.c (create_and_show_popup_menu, xmenu_show): Fix type of
6710 timestamp argument.
6711
c4affd2c
EZ
67122010-07-15 Eli Zaretskii <eliz@gnu.org>
6713
6714 * fringe.c (update_window_fringes): Restore mistakenly reverted
6715 code from 2010-04-17T12:33:05Z!eliz@gnu.org merged in 2010-04-20T13:31:28Z!eliz@gnu.org.
6716
cf28cebc
J
67172010-07-14 Jan Djärv <jan.h.d@swipnet.se>
6718
6719 * xterm.c (xm_scroll_callback, x_process_timeouts): K&R => prototype.
6720 (SET_SAVED_KEY_EVENT): Remove (not used).
6721 (SET_SAVED_MENU_EVENT): Rename to SET_SAVED_BUTTON_EVENT and
6722 remove size parameter.
6723 (handle_one_xevent): Check popup_activated () for menu for Xt also.
6724 Remove #ifdef USE_GTK around finish = X_EVENT_DROP.
6725 Remove #ifdef USE_MOTIF code that did SET_SAVED_BUTTON_EVENT for
6726 ButtonRelease.
6b2c4bd9
J
6727 (x_set_window_size_1): scroll_bar_actual_width is always
6728 SCROLL_BAR_COLS * COLUMN_WIDTH for the purpose of frame sizing.
cf28cebc
J
6729
6730 * xdisp.c (pending_menu_activation): Remove extern declaration.
6731 (prepare_menu_bars): Remove setting of pending_menu_activation.
6732
6733 * xmenu.c (pending_menu_activation): Remove.
f6003da5
JB
6734 (x_activate_menubar): Set popup_activated_flag for Xt also.
6735 Remove setting of pending_menu_activation.
cf28cebc
J
6736 (set_frame_menubar): Remove check of pending_menu_activation.
6737 Declare menubar_size before code. Correct spelling in comment.
6738
f6c1c771
KH
67392010-07-14 Kenichi Handa <handa@m17n.org>
6740
6741 * font.c (font_open_entity): Cancel previous change.
6742 (Ffont_get): Don't check FONT_ENTITY_INDEX of a font-object.
6743
20477505
EZ
67442010-07-13 Eli Zaretskii <eliz@gnu.org>
6745
77defa9a
EZ
6746 Remove subprocesses #ifdefs.
6747 * process.c <inhibit_sentinels>: Move to the common part.
6748 (Fwaiting_for_user_input_p): Move to the common part; return nil
6749 if async subprocesses aren't supported.
6750 * sysdep.c (wait_for_termination) [!MSDOS]: Don't compile on
6751 MS-DOS. Remove "#ifdef subprocesses".
6752 (sys_subshell, sys_select): Remove "#ifdef subprocesses".
6753 (gettimeofday): Remove "#ifdef subprocesses".
6754 (wait_without_blocking): Remove function.
6755 (flush_pending_output, child_setup_tty): Don't compile on MS-DOS.
6756 Remove "#ifdef subprocesses".
6757 (child_setup_tty): Use WINDOWSNT instead of DOS_NT, since not
6758 compiled on MS-DOS.
6759 * callproc.c (Fcall_process) [!MSDOS]: Don't call
6760 wait_for_termination on MS-DOS.
6761 * emacs.c (shut_down_emacs): Remove "#ifndef subprocesses" from
6762 initialization of inhibit_sentinels.
6763 * keyboard.c (record_asynch_buffer_change): Remove "#ifdef
6764 subprocesses" conditional.
6765 * callproc.c (Fcall_process) [!subprocesses]: Don't call
6766 wait_for_termination, since `buffer' cannot be an integer when
6767 async subprocesses are not supported
6768 * xdisp.c (decode_mode_spec): Use `MSDOS' instead of `subprocesses'
6769 for ifdefing away the call to Fprocess_status.
6770
20477505
EZ
6771 * process.c (add_keyboard_wait_descriptor) [!subprocesses]: Ifdef
6772 away the entire body of the function.
6773
b3ffc17c
DN
67742010-07-13 Dan Nicolaescu <dann@ics.uci.edu>
6775
01faa934
DN
6776 Remove subprocesses #ifdefs from term.c.
6777 * process.c (add_keyboard_wait_descriptor)
6778 (delete_keyboard_wait_descriptor): Move to common section, do
6779 nothing when subprocesses is not defined.
a628ad9d
JB
6780 * term.c (Fsuspend_tty, Fresume_tty, init_tty):
6781 Remove subprocesses #ifdefs.
01faa934 6782
b3ffc17c
DN
6783 Convert maybe_fatal to standard C.
6784 * lisp.h (verror): Declare.
6785 * eval.c (verror): New function containing the code from ...
6786 (error): ... this. Call verror.
6787 * term.c (vfatal): New function containing the code from ...
6788 (fatal): ... this. Call vfatal.
6789 (maybe_fatal): Convert to standard C, use variable number of
6790 arguments. Declare as non-return.
6791 (init_tty): Fix maybe_fatal call.
6792
0521f580
DN
67932010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6794
6795 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
6796 (_scroll_bar_note_movement): Convert definitions to standard C.
6797 * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
6798 * xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
6799
ebd15611
DN
68002010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6801
6802 * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget)
6803 (x_alloc_lighter_color_for_widget, cvt_string_to_pixel)
6804 (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook)
6805 (xaw_jump_callback, xaw_scroll_callback)
6806 (x_create_toolkit_scroll_bar, x_set_toolkit_scroll_bar_thumb)
bba3e508
SM
6807 (x_wm_set_size_hint, x_activate_timeout_atimer):
6808 Convert definitions to standard C.
ebd15611
DN
6809 * xmenu.c (menubar_id_to_frame, popup_get_selection)
6810 (popup_activate_callback, popup_deactivate_callback)
6811 (menu_highlight_callback, menubar_selection_callback)
6812 (apply_systemfont_to_dialog, apply_systemfont_to_menu)
6813 (free_frame_menubar, popup_selection_callback, as)
6814 (create_and_show_popup_menu, dialog_selection_callback)
6815 (create_and_show_dialog):
6816 * xfns.c (hack_wm_protocols, x_window):
6817 * xfaces.c (x_update_menu_appearance):
6818 * widget.c (get_default_char_pixel_size, pixel_to_char_size)
6819 (char_to_pixel_size, round_size_to_char, get_wm_shell)
6820 (set_frame_size, update_wm_hints, setup_frame_gcs)
6821 (update_various_frame_slots, update_from_various_frame_slots)
6822 (EmacsFrameInitialize, EmacsFrameRealize, EmacsFrameResize)
6823 (EmacsFrameSetValues, EmacsFrameQueryGeometry)
6824 (EmacsFrameSetCharSize, widget_store_internal_border): Likewise.
6825
de06a2dd
AS
68262010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6827
a628ad9d 6828 * dbusbind.c (xd_initialize): Don't compare boolean with a constant.
de06a2dd 6829
fc549af9
EZ
68302010-07-12 Eli Zaretskii <eliz@gnu.org>
6831
6832 * process.c (setup_process_coding_systems): Move to the part
6833 shared by non-subprocesses systems, and make its body empty when
6834 subprocesses is not defined.
6835 (close_process_descs): Move to the part shared by non-subprocesses
6836 systems.
1408902e
EZ
6837 (wait_reading_process_output) [!subprocesses]: Convert arg list to
6838 ANSI C.
fc549af9 6839
d5a3eaaf
AS
68402010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6841
6842 * editfns.c (transpose_markers): Convert old-style definition.
6843 * emacs.c (abort, shut_down_emacs, fixup_locale)
6844 (synchronize_system_time_locale)
6845 (synchronize_system_messages_locale, syms_of_emacs): Likewise.
6846 * floatfns.c (extract_float, matherr, init_floatfns)
6847 (syms_of_floatfns): Likewise.
6848 * fns.c (make_hash_table): Likewise.
6849 * ftfont.c (ftfont_get_otf, ftfont_otf_features)
6850 (ftfont_otf_capability, ftfont_get_glyph_id, ftfont_get_metrics)
6851 (ftfont_drive_otf, ftfont_shape_by_flt, ftfont_shape)
6852 (ftfont_variation_glyphs): Likewise.
6853 * gtkutil.c (xg_create_widget, xg_modify_menubar_widgets): Likewise.
6854 * keymap.c (describe_map_tree, describe_map, describe_vector): Likewise.
6855 * lread.c (read_filtered_event): Likewise.
6856 * minibuf.c (read_minibuf_noninteractive, read_minibuf): Likewise.
6857 * process.c (wait_reading_process_output): Likewise.
6858 * scroll.c (do_line_insertion_deletion_costs): Likewise.
6859 * search.c (search_buffer, boyer_moore): Likewise.
6860 * syntax.c (scan_sexps_forward): Likewise.
6861 * xdisp.c (try_scrolling): Likewise.
6862 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
6863 (face_at_string_position): Likewise.
6864 * xfns.c (x_default_scroll_bar_color_parameter): Likewise.
6865 * xselect.c (x_get_window_property, receive_incremental_selection)
6866 (x_get_window_property_as_lisp_data, lisp_data_to_selection_data):
6867 Likewise.
6868 * xterm.c (x_draw_relief_rect, x_draw_box_rect): Likewise.
6869
6f704c76
DN
68702010-07-12 Dan Nicolaescu <dann@ics.uci.edu>
6871
ded80a25
DN
6872 * callproc.c (child_setup): Remove subprocesses conditional.
6873 Remove code dealing with SET_EMACS_PRIORITY, unused.
6874
49d937f4 6875 * buffer.c (Fset_buffer_multibyte): Remove subprocesses conditional.
2e31d424
DN
6876 * process.c (close_process_descs): Use DOS_NT instead of WINDOWSNT.
6877
6878 * emacs.c (__do_global_ctors, __do_global_ctors_aux)
6879 (__do_global_dtors, __main): Use void in definition.
6880 (main): Remove code dealing with SET_EMACS_PRIORITY, unused.
6881 Remove SYMS_MACHINE code, unused. Remove SYMS_SYSTEM, inline
6882 the only users from ...
6883 * s/ms-w32.h (SYMS_SYSTEM): ... here and ...
6884 * s/msdos.h (SYMS_SYSTEM): ... here. Remove.
6885 (HAVE_VOLATILE): Remove, unused.
6886
6f704c76
DN
6887 Convert more function definitions to standard C.
6888 * xdisp.c (window_box_edges, handle_single_display_spec)
6889 (display_string): Convert definition to standard C.
6890 * scroll.c (do_direct_scrolling, scrolling_1):
6891 * dispnew.c (allocate_matrices_for_frame_redisplay)
6892 (mirrored_line_dance):
6893 * coding.c (code_convert_string):
6894 * charset.c (map_charset_chars):
6895 * ccl.c (Fccl_program_p, Fccl_execute, Fccl_execute_on_string)
6896 (Fregister_ccl_program, Fregister_code_conversion_map):
6897 * keyboard.c (kbd_buffer_nr_stored): Likewise.
6898 (head_table): Make static and const.
6899
e6cfa7c3
AS
69002010-07-12 Andreas Schwab <schwab@linux-m68k.org>
6901
6902 * Makefile.in (C_WARNINGS_SWITCH, PROFILING_CFLAGS)
6903 (PROFILING_LDFLAGS): Set from substitution.
6904 (ALL_CFLAGS): Add C_WARNINGS_SWITCH and PROFILING_CFLAGS, put
6905 CFLAGS last.
6906
892dd565
KH
69072010-07-12 Kenichi Handa <handa@m17n.org>
6908
6f2cdcd1
KH
6909 * Makefile.in (lisp): Change hebrew.el to hebrew.elc.
6910 (shortlisp): Likewise.
6911
892dd565
KH
6912 * font.h (enum font_property_index): New member FONT_ENTITY_INDEX.
6913
6914 * font.c (font_open_entity): Record ENTITY in FONT_OBJECT's slot
6915 of FONT_ENTITY_INDEX.
6916 (Ffont_get): If KEY is :otf and the font-object doesn't have the
6917 property, get the property value dynamically.
6918 (Ffont_put): Accept font-entity and font-object too.
ef1b0ba7 6919 (Ffont_get_glyhphs): Rename from Fget_font_glyphs. Arguments and
892dd565 6920 return value changed.
bba3e508 6921 (syms_of_font): Adjust for the above change.
892dd565 6922
ae96d47a
AS
69232010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6924
c8fc18ee
AS
6925 * blockinput.h: Remove obsolete comment.
6926
89887d67
AS
6927 * lisp.h: Include <stddef.h>.
6928 (OFFSETOF): Don't define.
6929 (VECSIZE): Use offsetof instead of OFFSETOF.
6930 (PSEUDOVECSIZE): Likewise.
6931 * process.c (conv_sockaddr_to_lisp): Likewise.
6932 * alloc.c: Don't include <stddef.h>.
6933 * buffer.h (PER_BUFFER_VAR_OFFSET): Use offsetof.
6934
ae96d47a
AS
6935 * process.c: Remove obsolete comment.
6936
635c0aa1
CY
69372010-07-11 Chong Yidong <cyd@stupidchicken.com>
6938
6939 * xfaces.c (Vface_remapping_alist): Doc fix (Bug#6091).
6940
a64df650
AS
69412010-07-11 Andreas Schwab <schwab@linux-m68k.org>
6942
8966b757
AS
6943 * callint.c (Fcall_interactively): Use strchr, strrchr instead of
6944 index, rindex.
6945 * doc.c (get_doc_string, Fsnarf_documentation): Likewise.
6946 * editfns.c (Fuser_full_name, Fformat): Likewise.
6947 * emacs.c (argmatch, sort_args, decode_env_path): Likewise.
6948 * fileio.c (Ffile_symlink_p): Likewise.
6949 * filelock.c (current_lock_owner): Likewise.
6950 * font.c (font_parse_name, font_parse_family_registry): Likewise.
6951 * fontset.c (fontset_pattern_regexp): Likewise.
6952 * lread.c (read1): Likewise.
6953 * sysdep.c (init_system_name): Likewise.
6954 * xfns.c (select_visual): Likewise.
6955 * s/hpux10-20.h (index, rindex): Don't define.
6956 * s/ms-w32.h (index): Likewise.
6957 * s/usg5-4.h: Likewise.
6958
cf237e27
AS
6959 * callproc.c (relocate_fd): Use F_DUPFD if defined.
6960
a8fe7202
AS
6961 * alloc.c (pending_malloc_warning, malloc_warning): Add const.
6962 * callproc.c (relocate_fd, getenv_internal_1, getenv_internal)
6963 (egetenv): Likewise.
6964 * doprnt.c (doprnt): Likewise.
6965 * editfns.c (set_time_zone_rule, format2): Likewise.
6966 * emacs.c (decode_env_path): Likewise.
6967 * eval.c (signal_error, error): Likewise.
6968 * insdel.c (replace_range_2): Likewise.
6969 * keyboard.c (cmd_error_internal): Likewise.
6970 * lread.c (isfloat_string, make_symbol, dir_warning): Likewise.
6971 * print.c (write_string, write_string_1, print_error_message):
6972 Likewise.
6973 * vm-limit.c (warn_function, memory_warnings): Likewise.
6974 * xdisp.c (message1, message1_nolog, message_with_string)
6975 (vmessage, message, message_nolog): Likewise.
6976 * emacs.c: Remove duplicate declaration.
6977 * keyboard.h: Likewise.
6978 * lisp.h: Update prototypes.
6979
bb8e180f
AS
6980 * eval.c: Fix indentation problem.
6981
01c35094 6982 * keyboard.c: Include "process.h".
83380e65 6983
a64df650
AS
6984 * eval.c: Remove obsolete noinline declaration.
6985 * fns.c: Likewise.
6986
6a8033e1
KR
69872010-07-11 Ken Raeburn <raeburn@raeburn.org>
6988
6989 * doprnt.c (doprnt): Take a va_list argument instead of count and
6990 pointer.
6991 * eval.c (error): Change to a standard-C variadic function.
ef1b0ba7 6992 * xdisp.c (vmessage): Rename from message, made static, and
6a8033e1
KR
6993 changed to take a va_list argument.
6994 (message): New variadic wrapper.
6995 (message_nolog): Now a variadic function, calling vmessage.
6996 * lisp.h: Include stdarg.h for va_list.
6997 (doprnt, error, message, message_nolog): Decls updated.
6998
462aa963
EZ
69992010-07-11 Eli Zaretskii <eliz@gnu.org>
7000
7001 * process.c (syms_of_process) <delete-exited-processes>: Define
7002 even if !subprocesses.
7003 (delete_exited_processes): Ditto.
7004
7005 * msdos.c (syms_of_msdos) <delete-exited-processes>: Remove DEFVAR.
7006 (delete_exited_processes): Don't define.
7007
48104462
CY
70082010-07-10 Chong Yidong <cyd@stupidchicken.com>
7009
7010 * frame.c (make_frame): Initialize menu_bar_lines and
7011 tool_bar_lines members.
bba3e508
SM
7012 (make_initial_frame, make_terminal_frame):
7013 Initialize menu_bar_lines using value of menu-bar-mode.
48104462
CY
7014
7015 * msdos.c (IT_set_frame_parameters): Don't set menu-bar-lines.
7016
f388c88a
EZ
70172010-07-10 Eli Zaretskii <eliz@gnu.org>
7018
7019 * process.c: Reshuffle #include's. Condition some of the global
7020 and static variables on `subprocesses'.
7021 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7022 Leave only one implementation.
7023 (Fget_buffer_process, Fprocess_inherit_coding_system_flag)
7024 (kill_buffer_processes, Flist_system_processes)
7025 (Fprocess_attributes, init_process, syms_of_process): Unify the
7026 implementations for with subprocesses and without them.
7027
723f5a07
J
70282010-07-09 Jan Djärv <jan.h.d@swipnet.se>
7029
7030 * xmenu.c (set_frame_menubar): Must realize menubar_widget to get the
7031 correct size for Motif.
7032 (free_frame_menubar): Call x_set_window_size to update frame size.
7033
7034 * xfns.c (x_window): Set borderWidth to 0 for pane and
7035 EmacsFrame. Frame size calculation is wrong otherwise.
7036
2536a4b7
MA
70372010-07-09 Michael Albinus <michael.albinus@gmx.de>
7038
7039 * dbusbind.c (xd_initialize): Add new argument RAISE_ERROR, which
7040 allows to suppress errors when polling in Emacs' main loop.
7041 (Fdbus_init_bus, Fdbus_get_unique_name, Fdbus_call_method)
7042 (Fdbus_call_method_asynchronously, Fdbus_method_return_internal)
7043 (Fdbus_method_error_internal, Fdbus_send_signal)
7044 (xd_get_dispatch_status, xd_read_message, Fdbus_register_signal)
7045 (Fdbus_register_method): Use it. (Bug#6579)
7046
5842a27b
DN
70472010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7048
7049 * alloc.c: Convert DEFUNs to standard C.
7050 * buffer.c:
7051 * bytecode.c:
7052 * callint.c:
7053 * callproc.c:
7054 * casefiddle.c:
7055 * casetab.c:
7056 * category.c:
7057 * character.c:
7058 * charset.c:
7059 * chartab.c:
7060 * cmds.c:
7061 * coding.c:
7062 * composite.c:
7063 * data.c:
7064 * dbusbind.c:
7065 * dired.c:
7066 * dispnew.c:
7067 * doc.c:
7068 * dosfns.c:
7069 * editfns.c:
7070 * emacs.c:
7071 * eval.c:
7072 * fileio.c:
7073 * filelock.c:
7074 * floatfns.c:
7075 * fns.c:
7076 * font.c:
7077 * fontset.c:
7078 * frame.c:
7079 * fringe.c:
7080 * image.c:
7081 * indent.c:
7082 * insdel.c:
7083 * keyboard.c:
7084 * keymap.c:
7085 * lread.c:
7086 * macros.c:
7087 * marker.c:
7088 * menu.c:
7089 * minibuf.c:
7090 * msdos.c:
7091 * nsfns.m:
7092 * nsmenu.m:
7093 * nsselect.m:
7094 * print.c:
7095 * process.c:
7096 * search.c:
7097 * sound.c:
7098 * syntax.c:
7099 * term.c:
7100 * terminal.c:
7101 * textprop.c:
7102 * undo.c:
7103 * w16select.c:
7104 * w32console.c:
7105 * w32fns.c:
7106 * w32font.c:
7107 * w32menu.c:
7108 * w32proc.c:
7109 * w32select.c:
7110 * window.c:
7111 * xdisp.c:
7112 * xfaces.c:
7113 * xfns.c:
7114 * xmenu.c:
7115 * xselect.c:
7116 * xsettings.c:
7117 * xsmfns.c: Likewise.
7118
d568829b
EZ
71192010-07-08 Eli Zaretskii <eliz@gnu.org>
7120
7121 * process.c (kbd_is_on_hold, hold_keyboard_input)
7122 (unhold_keyboard_input, kbd_on_hold_p) [!subprocesses]: Define.
7123
52214050
J
71242010-07-08 Jan Djärv <jan.h.d@swipnet.se>
7125
7126 * xmenu.c (set_frame_menubar, create_and_show_popup_menu)
7127 (create_and_show_dialog): Don't call apply_systemfont_to_(menu|dialog)
7128 unless USE_LUCID.
7129
313d9eb2
DN
71302010-07-08 Dan Nicolaescu <dann@ics.uci.edu>
7131
a628ad9d
JB
7132 * xdisp.c (store_mode_line_noprop_char): Remove K&R alternative
7133 declaration.
d8825aa3 7134
295d0d8f
DN
7135 Clean up include guards.
7136 * tparam.c: Remove include guards for config.h, string.h and code
7137 that assumes #ifndef emacs.
7138 * termcap.c:
7139 * unexalpha.c:
7140 * sysdep.c:
7141 * filemode.c:
7142 * filelock.c:
7143 * bidi.c: Likewise.
7144
49d9e6b0
DN
7145 Remove prefix-args.c
7146 * prefix-args.c: Remove file.
7147 * autodeps.mk (ALLOBJS): Remove reference to prefix-args.
7148 * Makefile.in (temacs${EXEEXT}): Remove references to
7149 PRE_EDIT_LDFLAGS and POST_EDIT_LDFLAGS.
7150 (mostlyclean): Remove reference to prefix-args.
7151 (prefix-args): Remove.
7152
313d9eb2
DN
7153 Simplify cstart_of_data, start_of_code and related code.
7154 * mem-limits.h: Remove !emacs and _LIBC conditional code.
7155 (start_of_data): Merge into start_of_data function.
7156 * sysdep.c (start_of_text): Remove. Move simplified versions of
7157 it in the only users: unexaix.c and unexec.c.
7158 (read_input_waiting): Remove local declaration of quit_char.
7159 (start, etext): Remove declarations.
7160 (start_of_data): Merge with the version in mem-limits.h and move
7161 to vm-limits.c.
7162 * vm-limit.c (start_of_data): Merged and simplified version of the
7163 code formerly in mem-limits.h and sysdep.c.
7164 * unexec.c (start): New declaration, moved from sysdep.c.
7165 (start_of_text): Simplified version of the code formerly in sysdep.c.
7166 * unexaix.c (start_of_text): Simplified version of the code
7167 formerly in sysdep.c.
7168 * m/alpha.h (HAVE_TEXT_START): Remove.
7169 (TEXT_START): Move ...
7170 * unexalpha.c (TEXT_START): ... here.
7171 * s/hpux10-20.h (TEXT_START): Remove.
7172 * s/darwin.h (TEXT_START):
7173 * m/mips.h (TEXT_START):
7174 * m/macppc.h (HAVE_TEXT_START):
7175 * m/m68k.h (TEXT_START):
7176 * m/iris4d.h (TEXT_START):
7177 * m/intel386.h (TEXT_START):
7178 * m/ibmrs6000.h (TEXT_START):
7179 * m/ia64.h (HAVE_TEXT_START):
7180 * s/msdos.h (TEXT_START): Likewise.
7181
72af86bd
AS
71822010-07-07 Andreas Schwab <schwab@linux-m68k.org>
7183
7184 * alloc.c (overrun_check_malloc, overrun_check_realloc)
7185 (overrun_check_free, xstrdup, allocate_string)
7186 (allocate_string_data, compact_small_strings, Fmake_string)
7187 (make_unibyte_string, make_multibyte_string)
7188 (make_string_from_bytes, make_specified_string, make_float)
7189 (Fcons, allocate_terminal, allocate_frame, make_pure_string)
7190 (Fgarbage_collect): Replace bcopy, safe_bcopy, bzero, bcmp by
7191 memcpy, memmove, memset, memcmp.
7192 * atimer.c (start_atimer, set_alarm): Likewise.
7193 * buffer.c (clone_per_buffer_values, report_overlay_modification)
7194 (mmap_realloc, init_buffer_once): Likewise.
7195 * callint.c (Fcall_interactively): Likewise.
7196 * callproc.c (Fcall_process, Fcall_process_region, child_setup)
7197 (getenv_internal_1): Likewise.
7198 * casefiddle.c (casify_object): Likewise.
7199 * ccl.c (ccl_driver): Likewise.
7200 * character.c (str_as_multibyte, str_to_multibyte): Likewise.
7201 * charset.c (load_charset_map_from_file)
7202 (load_charset_map_from_file, load_charset_map_from_vector)
7203 (Fdefine_charset_internal): Likewise.
7204 * cm.c (Wcm_clear): Likewise.
7205 * coding.c (decode_eol, decode_coding_object)
7206 (Fset_coding_system_priority, make_subsidiaries): Likewise.
7207 * data.c (Faset): Likewise.
7208 * dired.c (directory_files_internal, file_name_completion_stat):
7209 Likewise.
7210 * dispnew.c (new_glyph_matrix, adjust_glyph_matrix)
7211 (clear_glyph_row, copy_row_except_pointers)
7212 (copy_glyph_row_contents, new_glyph_pool, realloc_glyph_pool)
7213 (save_current_matrix, restore_current_matrix)
7214 (build_frame_matrix_from_leaf_window, mirrored_line_dance)
7215 (mirror_line_dance, scrolling_window): Likewise.
7216 * doc.c (Fsnarf_documentation, Fsubstitute_command_keys):
7217 Likewise.
7218 * doprnt.c (doprnt): Likewise.
7219 * editfns.c (Fuser_full_name, make_buffer_string_both)
7220 (Fmessage_box, Fformat, Ftranspose_regions): Likewise.
7221 * emacs.c (sort_args): Likewise.
7222 * eval.c (Fapply, Ffuncall): Likewise.
7223 * fileio.c (Ffile_name_directory, make_temp_name)
7224 (Fexpand_file_name, search_embedded_absfilename)
7225 (Fsubstitute_in_file_name, Ffile_symlink_p, Finsert_file_contents)
7226 (auto_save_error): Likewise.
7227 * fns.c (Fstring_equal, Fcopy_sequence, concat)
7228 (string_to_multibyte, Fstring_as_unibyte, Fstring_as_multibyte)
7229 (internal_equal, Fclear_string, larger_vector, copy_hash_table)
7230 (Fmake_hash_table): Likewise.
7231 * fringe.c (Fdefine_fringe_bitmap): Likewise.
7232 * ftfont.c (ftfont_text_extents): Likewise.
7233 * getloadavg.c (getloadavg): Likewise.
7234 * image.c (define_image_type, make_image, make_image_cache)
7235 (x_create_x_image_and_pixmap, xbm_image_p)
7236 (w32_create_pixmap_from_bitmap_data, xbm_load, xpm_lookup_color)
7237 (xpm_image_p, x_create_bitmap_from_xpm_data, xpm_load)
7238 (init_color_table, x_build_heuristic_mask, pbm_image_p, pbm_load)
7239 (png_image_p, png_read_from_memory, png_load, jpeg_image_p)
7240 (tiff_image_p, tiff_read_from_memory, gif_image_p)
7241 (gif_read_from_memory, gif_load, svg_image_p, gs_image_p):
7242 Likewise.
7243 * indent.c (scan_for_column, compute_motion): Likewise.
7244 * insdel.c (gap_left, gap_right, make_gap_smaller, copy_text)
7245 (insert_1_both, insert_from_gap, replace_range_2): Likewise.
7246 * intervals.c (reproduce_tree, reproduce_tree_obj): Likewise.
7247 * keyboard.c (echo_char, save_getcjmp, restore_getcjmp)
7248 (kbd_buffer_store_event_hold, apply_modifiers_uncached)
7249 (store_user_signal_events, menu_bar_items, tool_bar_items)
7250 (process_tool_bar_item, append_tool_bar_item)
7251 (read_char_minibuf_menu_prompt, read_key_sequence)
7252 (Fread_key_sequence, Fread_key_sequence_vector, Frecent_keys):
7253 Likewise.
7254 * keymap.c (current_minor_maps, Fdescribe_buffer_bindings):
7255 Likewise.
7256 * lisp.h (STRING_COPYIN): Likewise.
7257 * lread.c (Fload, read1, oblookup): Likewise.
7258 * msdos.c (Frecent_doskeys): Likewise.
7259 * nsfns.m (Fx_create_frame): Likewise.
7260 * nsfont.m (nsfont_open, nsfont_text_extents, ns_glyph_metrics):
7261 Likewise.
7262 * nsimage.m (EmacsImage-initFromSkipXBM:width:height:)
7263 (EmacsImage-initForXPMWithDepth:width:height:flip:length:):
7264 Likewise.
7265 * nsmenu.m (ns_update_menubar): Likewise.
7266 * nsterm.m (ns_draw_fringe_bitmap, ns_term_init): Likewise.
7267 * print.c (print_unwind, printchar, strout, print_string)
7268 (print_error_message): Likewise.
7269 * process.c (conv_lisp_to_sockaddr, set_socket_option)
7270 (Fmake_network_process, Fnetwork_interface_list)
7271 (Fnetwork_interface_info, read_process_output, Fprocess_send_eof)
7272 (init_process): Likewise.
7273 * ralloc.c (resize_bloc, r_alloc_sbrk, r_alloc_init): Likewise.
7274 * regex.c (init_syntax_once, regex_compile, re_compile_fastmap):
7275 Likewise.
7276 * scroll.c (do_scrolling, do_direct_scrolling)
7277 (scrolling_max_lines_saved): Likewise.
7278 * search.c (search_buffer, wordify, Freplace_match): Likewise.
7279 * sound.c (wav_init, au_init, Fplay_sound_internal): Likewise.
7280 * syntax.c (skip_chars, skip_syntaxes): Likewise.
7281 * sysdep.c (child_setup_tty, sys_subshell, emacs_get_tty)
7282 (emacs_set_tty): Likewise.
7283 * term.c (encode_terminal_code, calculate_costs)
7284 (produce_special_glyphs, create_tty_output, init_tty, delete_tty):
7285 Likewise.
7286 * termcap.c (tgetst1, gobble_line): Likewise.
7287 * termhooks.h (EVENT_INIT): Likewise.
7288 * tparam.c (tparam1): Likewise.
7289 * unexalpha.c (unexec): Likewise.
7290 * unexec.c (write_segment): Likewise.
7291 * unexmacosx.c (unexec_write_zero): Likewise.
7292 * w32fns.c (w32_wnd_proc, Fx_create_frame, x_create_tip_frame)
7293 (Fx_file_dialog, Fsystem_move_file_to_trash): Likewise.
7294 * w32font.c (w32font_list_family, w32font_text_extents)
7295 (w32font_list_internal, w32font_match_internal)
7296 (w32font_open_internal, compute_metrics, Fx_select_font):
7297 Likewise.
7298 * w32menu.c (set_frame_menubar, add_menu_item)
7299 (w32_menu_display_help, w32_free_submenu_strings): Likewise.
7300 * w32term.c (XCreateGC, w32_initialize_display_info): Likewise.
7301 * w32uniscribe.c (uniscribe_list_family): Likewise.
7302 * w32xfns.c (get_next_msg, post_msg, prepend_msg): Likewise.
7303 * window.c (make_window, replace_window, set_window_buffer)
7304 (Fsplit_window): Likewise.
7305 * xdisp.c (init_iterator, RECORD_OVERLAY_STRING, reseat_to_string)
7306 (add_to_log, message3, x_consider_frame_title)
7307 (append_space_for_newline, extend_face_to_end_of_line)
7308 (decode_mode_spec_coding, init_glyph_string): Likewise.
7309 * xfaces.c (x_create_gc, get_lface_attributes_no_remap)
7310 (Finternal_copy_lisp_face, Finternal_merge_in_global_face)
7311 (face_attr_equal_p, make_realized_face, make_face_cache)
7312 (free_realized_faces, lookup_named_face, smaller_face)
7313 (face_with_height, lookup_derived_face)
7314 (x_supports_face_attributes_p, Finternal_set_font_selection_order)
7315 (Finternal_set_font_selection_order, realize_default_face)
7316 (compute_char_face, face_at_buffer_position)
7317 (face_for_overlay_string, face_at_string_position, merge_faces):
7318 Likewise.
7319 * xfns.c (xic_create_fontsetname, Fx_create_frame)
7320 (Fx_window_property, x_create_tip_frame)
7321 (Fx_backspace_delete_keys_p): Likewise.
7322 * xfont.c (xfont_list, xfont_match, xfont_list_family)
7323 (xfont_text_extents): Likewise.
7324 * xmenu.c (set_frame_menubar, xmenu_show): Likewise.
7325 * xrdb.c (magic_file_p, x_get_resource): Likewise.
7326 * xselect.c (x_queue_event, x_get_window_property)
7327 (receive_incremental_selection): Likewise.
7328 * xsmfns.c (x_session_check_input): Likewise.
7329 * xterm.c (x_send_scroll_bar_event, SET_SAVED_MENU_EVENT)
7330 (handle_one_xevent, x_check_errors, xim_initialize, x_term_init):
7331 Likewise.
7332 * character.h (BCOPY_SHORT): Removed.
7333 * config.in: Regenerate.
7334 * dispnew.c (safe_bcopy): Only define as dummy if PROFILING.
7335 * emacs.c (main) [PROFILING]: Don't declare
7336 dump_opcode_frequencies.
7337 * lisp.h (safe_bcopy): Remove declaration.
7338 (memset) [!HAVE_MEMSET]: Declare.
7339 (memcpy) [!HAVE_MEMCPY]: Likewise.
7340 (memmove) [!HAVE_MEMMOVE]: Likewise.
7341 (memcmp) [!HAVE_MEMCMP]: Likewise.
7342 * s/ms-w32.h (bzero, bcopy, bcmp, GAP_USE_BCOPY)
7343 (BCOPY_UPWARD_SAFE, BCOPY_DOWNWARD_SAFE, HAVE_BCOPY, HAVE_BCMP):
7344 Don't define.
7345 (HAVE_MEMCMP, HAVE_MEMCPY, HAVE_MEMMOVE, HAVE_MEMSET): Define.
7346 * s/msdos.h (GAP_USE_BCOPY, BCOPY_UPWARD_SAFE)
7347 (BCOPY_DOWNWARD_SAFE): Don't define.
7348 * sysdep.c (memset) [!HAVE_MEMSET]: Define.
7349 (memcpy) [!HAVE_MEMCPY]: Define.
7350 (memmove) [!HAVE_MEMMOVE]: Define.
7351 (memcmp) [!HAVE_MEMCMP]: Define.
7352
cb768704
J
73532010-07-07 Jan Djärv <jan.h.d@swipnet.se>
7354
7355 * process.c (kbd_is_on_hold): New variable.
a628ad9d
JB
7356 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
7357 New functions.
cb768704
J
7358 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
7359 select on empty input mask.
7360 (init_process): Initialize kbd_is_on_hold to 0.
7361
7362 * process.h (hold_keyboard_input, unhold_keyboard_input)
7363 (kbd_on_hold_p): Declare.
7364
7365 * keyboard.c (input_available_signal): Declare.
7366 (kbd_buffer_nr_stored): New function.
7367 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
7368 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
7369 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
7370 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
7371 (tty_read_avail_input): If input is on hold, return.
7372 Don't read more that free slots in kbd_buffer (Bug#6571).
7373
3a8ce822
EZ
73742010-07-07 Eli Zaretskii <eliz@gnu.org>
7375
7376 * msdos.h:
7377 * msdos.c:
7378 * dosfns.c:
7379 * w16select.c: Convert function definitions to ANSI C.
7380
a628ad9d
JB
7381 * msdos.h (ctrl_break_func, install_ctrl_break_check):
7382 Remove unused prototypes.
3a8ce822 7383
cf84bb53
JB
73842010-07-07 Juanma Barranquero <lekktu@gmail.com>
7385
7386 * coding.c, sysdep.c: Convert some more functions to standard C.
7387
1a4990fb
JB
73882010-07-07 Juanma Barranquero <lekktu@gmail.com>
7389
7390 * coding.c (decode_coding_gap, encode_coding_gap, decode_coding_object)
7391 (encode_coding_object): Use SPECPDL_INDEX.
7392 (syms_of_coding): Use DOS_NT.
7393
c0f2f16b
DN
73942010-07-07 Dan Nicolaescu <dann@ics.uci.edu>
7395
48fb6855
DN
7396 * intervals.h (interval): Use EMACS_UINT instead of unsigned EMACS_INT.
7397
c0f2f16b
DN
7398 Make the function member of Lisp_Subr use standard C prototypes.
7399 * lisp.h (struct Lisp_Subr): Use a union for the function member.
7400 (DECL_ALIGN): Add a cast for the function.
7401 * eval.c (Feval, Ffuncall): Use the proper type for each type
7402 function call.
7403
67aecef9
CY
74042010-07-06 Chong Yidong <cyd@stupidchicken.com>
7405
7406 * fringe.c (draw_fringe_bitmap_1): Use lookup_named_face to get
7407 fringe face id, so face-remapping-alist works (Bug#6091).
7408
b56ceb92
JB
74092010-07-06 Juanma Barranquero <lekktu@gmail.com>
7410
7411 * w32.c, w32console.c, w32fns.c, w32font.c, w32heap.c, w32inevt.c
7412 * w32menu.c, w32proc.c, w32reg.c, w32select.c, w32term.c
7413 * w32uniscribe.c, w32xfns.c: Convert function definitions to standard C.
7414
7af07b96
AS
74152010-07-06 Andreas Schwab <schwab@linux-m68k.org>
7416
7417 * xterm.c (x_get_keysym_name): Change type of parameter to int.
7418 * lisp.h: Declare x_get_keysym_name.
7419 * keyboard.c (modify_event_symbol): Don't declare
7420 x_get_keysym_name here.
7421
69e24e34
DN
74222010-07-06 Dan Nicolaescu <dann@ics.uci.edu>
7423
7424 * ecrt0.c: Revert conversion to standard C.
7425
d3da34e0 74262010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
d2aa42f8
DN
7427
7428 * vm-limit.c (memory_warnings):
7429 * keyboard.c (modify_event_symbol):
7430 * floatfns.c (rounding_driver, ceiling2, floor2, truncate2)
7431 (round2, emacs_rint):
7432 * process.c (send_process, old_sigpipe): Convert function
7433 definitions and declarations to standard C.
7434
74352010-07-05 Juanma Barranquero <lekktu@gmail.com>
d3da34e0
JB
7436
7437 * buffer.c, cm.c, eval.c, keyboard.c, process.c, term.c, vm-limit.c,
7438 * xdisp.c: Convert function definitions to standard C.
7439
7440 * cm.c (cmputc): Arg C is now int, not char.
7441 * process.c (Fmake_network_process): Cast sockaddr_in* to sockaddr*.
7442
00be444c
J
74432010-07-05 James Cloos <cloos@jhcloos.com>
7444
7445 * xterm.h (Xatom_net_wm_name, Xatom_net_wm_icon_name): New.
7446
7447 * xterm.c (x_term_init): Intern the _NET_WM_NAME and
7448 _NET_WM_ICON_NAME atoms.
7449
7450 * xfns.c (x_set_name_internal): Set the EWMH _NET_WM_NAME
7451 and _NET_WM_ICON_NAME properties, too, matching what is
7452 done in the Gtk+ case.
7453
e4c8d29a
J
74542010-07-05 Jan Djärv <jan.h.d@swipnet.se>
7455
ff919460
J
7456 * xterm.c (XTring_bell, XTset_terminal_window): Fix wrong prototype.
7457
e4c8d29a
J
7458 * xsmfns.c (SSDATA): New macro.
7459 (smc_save_yourself_CB, x_session_initialize): Use SSDATA for strings
7460 passed to strlen/strcpy/strcat.
bba3e508
SM
7461 (create_client_leader_window): Surround with #ifndef USE_GTK.
7462 Cast 7:th arg to XChangeProperty to (unsigned char *).
e4c8d29a
J
7463
7464 * xsettings.c (something_changedCB, parse_settings)
7465 (apply_xft_settings): Reformat prototype.
7466 (something_changedCB, init_gconf): Remove unused variable i.
7467 (read_settings): Remove unused variable long_len.
7468
7469 * gtkutil.c (xg_get_pixbuf_from_pix_and_mask)
7470 (xg_get_image_for_pixmap, create_dialog)
7471 (xg_get_file_with_selection, xg_get_file_name, update_cl_data)
7472 (menuitem_highlight_callback, make_menu_item)
7473 (xg_create_one_menuitem, create_menus, xg_update_menu_item)
7474 (xg_create_scroll_bar, xg_update_scrollbar_pos)
7475 (xg_set_toolkit_scroll_bar_thumb, xg_tool_bar_button_cb)
7476 (xg_tool_bar_proxy_help_callback, xg_tool_bar_detach_callback)
7477 (xg_tool_bar_attach_callback, xg_tool_bar_help_callback)
7478 (xg_tool_bar_item_expose_callback): Reformat prototype.
7479 (xg_update_menubar): GList *group => GSList *group.
7480 (xg_modify_menubar_widgets): Initialize witem to 0, check witem != 0
7481 before use.
7482 (update_frame_tool_bar): 4:th param to xg_get_image_for_pixmap changed
7483 to GTK_IMAGE (wimage).
7484
dd4c5104
DN
74852010-07-05 Dan Nicolaescu <dann@ics.uci.edu>
7486
898b4c5c
DN
7487 * atimer.c: Use "" instead of <> for local includes for
7488 consistency with the rest of the code.
7489
dd4c5104
DN
7490 * xsmfns.c (smc_save_yourself_CB, smc_error_handler):
7491 * xrdb.c (get_system_name):
7492 * window.c (shrink_windows):
7493 * syntax.c (forw_comment):
7494 * scroll.c (calculate_scrolling, calculate_direct_scrolling)
7495 (ins_del_costs):
7496 * mem-limits.h (start_of_data):
7497 * lread.c (readevalloop):
7498 * gtkutil.c (xg_dialog_response_cb, xg_get_file_with_chooser)
7499 (xg_get_file_with_selection, xg_update_menubar, xg_update_submenu):
7500 * frame.c (x_get_focus_frame):
7501 * floatfns.c (fmod_float):
7502 * fileio.c (choose_write_coding_system):
7503 * emacs.c (fatal_error_signal, init_cmdargs, argmatch)
7504 (malloc_initialize_hook, sort_args, synchronize_locale):
7505 * doprnt.c (doprnt):
7506 * dired.c (compile_pattern):
7507 * data.c (fmod_float):
7508 * chartab.c (map_sub_char_table, map_sub_char_table_for_charset)
7509 (map_char_table_for_charset):
7510 * charset.c (define_charset_internal):
7511 * alloc.c (Fgarbage_collect): Convert declarations or definitions
7512 to standard C.
7513
9a39b306 75142010-07-04 Tetsurou Okazaki <okazaki@be.to> (tiny change)
9c8a2331 7515 Stefan Monnier <monnier@iro.umontreal.ca>
9a39b306
TO
7516
7517 * lread.c (read1): Fix up last change to not mess up `c'.
7518
e6cb2cbb
JB
75192010-07-04 Juanma Barranquero <lekktu@gmail.com>
7520
7521 * strftime.c: Revert conversion to standard C (2010-07-04T07:50:25Z!dann@ics.uci.edu).
7522
438105ed
JB
75232010-07-04 Juanma Barranquero <lekktu@gmail.com>
7524
7525 Fix prototypes.
7526
e5447b22 7527 * atimer.c (start_atimer): Use EMACS_TIME, not struct timeval.
438105ed 7528 * dired.c (file_name_completion_stat): Use DIRENTRY, not struct dirent.
9c8a2331
JB
7529 * fileio.c (read_non_regular, read_non_regular_quit): Add Lisp_Object
7530 arg, as required by internal_condition_case_1.
dcc7404b 7531 * print.c (strout): Use const char* for arg PTR.
438105ed
JB
7532 * regex.c (bcmp_translate): Use RE_TRANSLATE_TYPE, not Lisp_Object.
7533 (analyse_first): Fix "const const".
e5447b22 7534 * sysdep.c (set_file_times): Use EMACS_TIME, not struct timeval.
b9503078 7535 * unexelf.c (round_up, find_section): Use ElfW macro for arguments.
e5447b22 7536 * xgselect.c (xg_select): Use SELECT_TYPE, EMACS_TIME.
438105ed 7537
971de7fb
DN
75382010-07-04 Dan Nicolaescu <dann@ics.uci.edu>
7539
7540 * alloc.c: Convert function definitions to standard C.
7541 * atimer.c:
7542 * bidi.c:
7543 * bytecode.c:
7544 * callint.c:
7545 * callproc.c:
7546 * casefiddle.c:
7547 * casetab.c:
7548 * category.c:
7549 * ccl.c:
7550 * character.c:
7551 * charset.c:
7552 * chartab.c:
7553 * cmds.c:
7554 * coding.c:
7555 * composite.c:
7556 * data.c:
7557 * dbusbind.c:
7558 * dired.c:
7559 * dispnew.c:
7560 * doc.c:
7561 * doprnt.c:
7562 * ecrt0.c:
7563 * editfns.c:
7564 * fileio.c:
7565 * filelock.c:
7566 * filemode.c:
7567 * fns.c:
7568 * font.c:
7569 * fontset.c:
7570 * frame.c:
7571 * fringe.c:
7572 * ftfont.c:
7573 * ftxfont.c:
7574 * gtkutil.c:
7575 * indent.c:
7576 * insdel.c:
7577 * intervals.c:
7578 * keymap.c:
7579 * lread.c:
7580 * macros.c:
7581 * marker.c:
7582 * md5.c:
7583 * menu.c:
7584 * minibuf.c:
7585 * prefix-args.c:
7586 * print.c:
7587 * ralloc.c:
7588 * regex.c:
7589 * region-cache.c:
7590 * scroll.c:
7591 * search.c:
7592 * sound.c:
7593 * strftime.c:
7594 * syntax.c:
7595 * sysdep.c:
7596 * termcap.c:
7597 * terminal.c:
7598 * terminfo.c:
7599 * textprop.c:
7600 * tparam.c:
7601 * undo.c:
7602 * unexelf.c:
7603 * window.c:
7604 * xfaces.c:
7605 * xfns.c:
7606 * xfont.c:
7607 * xftfont.c:
7608 * xgselect.c:
7609 * xmenu.c:
7610 * xrdb.c:
7611 * xselect.c:
7612 * xsettings.c:
7613 * xsmfns.c:
7614 * xterm.c: Likewise.
7615
ae492bec
EZ
76162010-07-03 Eli Zaretskii <eliz@gnu.org>
7617
76ea4cc9
EZ
7618 * msdos.c (IT_set_frame_parameters): Fix setting of colors in
7619 frames other than the initial one. Fix reversal of colors when
bba3e508
SM
7620 `reverse' is specified in the frame parameters.
7621 Call update_face_from_frame_parameter instead of
76ea4cc9
EZ
7622 internal-set-lisp-face-attribute. Initialize screen colors from
7623 initial_screen_colors[] when f->default_face_done_p is zero,
7624 instead of depending on being called with default-frame-alist as
7625 the alist argument.
7626
7627 * xfaces.c (update_face_from_frame_parameter): Move out of
7628 HAVE_WINDOW_SYSTEM portion. Condition window-system only parts
7629 with HAVE_WINDOW_SYSTEM.
7630
1e6255ae
EZ
7631 * msdos.c (IT_set_frame_parameters): Set menu-bar-lines according
7632 to menu-bar-mode, if not set in the frame parameters or in
7633 default-frame-alist.
7634
ae492bec
EZ
7635 * w32console.c (sys_tputs): Adjust argument list to prototype in
7636 term.c.
7637
3a35a84c
JB
76382010-07-03 Juanma Barranquero <lekktu@gmail.com>
7639
7640 * lisp.h (memory_warnings): Fix prototype.
7641
7642 * cm.h (evalcost): Fix prototype.
7643
7644 * cm.c (evalcost): Fix arg type.
7645
c532d349
DN
76462010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7647
7648 * term.c (term_clear_mouse_face, Fidentity):
7649 * syssignal.h (signal_handler_t):
7650 * lisp.h (memory_warnings):
7651 * coding.h (preferred_coding_system):
7652 * cm.h (evalcost):
7653 * blockinput.h (reinvoke_input_signal): Convert to standard C prototypes.
7654
c0b36d46
EZ
76552010-07-02 Eli Zaretskii <eliz@gnu.org>
7656
7657 * dosfns.h (msdos_stdcolor_idx, msdos_stdcolor_name): Remove P_
7658 from prototypes.
7659
7660 * msdos.h (load_pixmap): Don't define away.
7661
383e0970
J
76622010-07-02 Jan Djärv <jan.h.d@swipnet.se>
7663
f57e2426
J
7664 * lisp.h:
7665 * atimer.h: Remove define for P_.
7666
7667 * alloc.c: Remove __P and P_ from .c and .m files.
7668 * atimer.c:
7669 * buffer.c:
7670 * callint.c:
7671 * category.c:
7672 * charset.c:
7673 * chartab.c:
7674 * cm.c:
7675 * coding.c:
7676 * composite.c:
7677 * data.c:
7678 * dired.c:
7679 * dispnew.c:
7680 * doc.c:
7681 * editfns.c:
7682 * emacs.c:
7683 * eval.c:
7684 * fileio.c:
7685 * filelock.c:
7686 * fns.c:
7687 * font.c:
7688 * fontset.c:
7689 * frame.c:
7690 * ftfont.c:
7691 * ftxfont.c:
7692 * gmalloc.c:
7693 * gtkutil.c:
7694 * image.c:
7695 * indent.c:
7696 * intervals.c:
7697 * keyboard.c:
7698 * keymap.c:
7699 * lread.c:
7700 * marker.c:
7701 * menu.c:
7702 * minibuf.c:
7703 * print.c:
7704 * process.c:
7705 * scroll.c:
7706 * search.c:
7707 * sound.c:
7708 * strftime.c:
7709 * syntax.c:
7710 * sysdep.c:
7711 * term.c:
7712 * terminal.c:
7713 * textprop.c:
7714 * unexalpha.c:
7715 * w32console.c:
7716 * w32fns.c:
7717 * w32font.c:
7718 * w32menu.c:
7719 * w32term.c:
7720 * w32uniscribe.c:
7721 * window.c:
7722 * xdisp.c:
7723 * xfaces.c:
7724 * xfns.c:
7725 * xfont.c:
7726 * xftfont.c:
7727 * xmenu.c:
7728 * xselect.c:
7729 * xterm.c: Likewise.
7730
383e0970 7731 Remove P_ and __P macros.
f57e2426
J
7732 * atimer.h: Remove P_ and __P macros.
7733 * buffer.h:
383e0970
J
7734 * category.h:
7735 * ccl.h:
7736 * character.h:
7737 * charset.h:
7738 * cm.h:
7739 * coding.h:
7740 * composite.h:
7741 * dispextern.h:
7742 * disptab.h:
9e892c8d 7743 * dosfns.h:
383e0970
J
7744 * font.h:
7745 * fontset.h:
7746 * frame.h:
7747 * gtkutil.h:
7748 * indent.h:
7749 * intervals.h:
7750 * keyboard.h:
7751 * keymap.h:
7752 * lisp.h:
7753 * macros.h:
7754 * md5.h:
7755 * menu.h:
7756 * msdos.h:
7757 * nsterm.h:
7758 * puresize.h:
7759 * region-cache.h:
7760 * syntax.h:
7761 * syssignal.h:
7762 * systime.h:
7763 * termhooks.h:
9e892c8d 7764 * w32font.h:
383e0970
J
7765 * w32term.h:
7766 * widget.h:
7767 * window.h:
7768 * xgselect.h:
7769 * xsettings.h:
7770 * xterm.h: Likewise.
7771
98601119
DN
77722010-07-02 Dan Nicolaescu <dann@ics.uci.edu>
7773
d9170db5
DN
7774 * lisp.h: Document that USE_LISP_UNION_TYPE is now enabled using autoconf.
7775
98601119
DN
7776 Cleanup old code.
7777 * dired.c (BSD4_3): Remove all uses, redundant with BSD4_2.
7778 * syssignal.h: Remove code for Lynx, not supported anymore.
7779 * vm-limit.c: Remove unused code the depends on emacs not being
7780 defined and NO_LIM_DATA being defined.
7781 * mem-limits.h: Remove dead code.
7782
1f984e12
J
77832010-07-01 Jan Djärv <jan.h.d@swipnet.se>
7784
c49d071a
J
7785 * window.c (Fwindow_absolute_pixel_edges): Doc fix.
7786
9d5405ec
J
7787 * window.c (calc_absolute_offset, Fwindow_absolute_pixel_edges)
7788 (Fwindow_inside_absolute_pixel_edges): New functions (bug#5721).
7789
7a18115b
J
7790 * nsfns.m (compute_tip_xy): Do not convert coordinates from frame
7791 parameters, they are already absolute.
7792
a628ad9d
JB
7793 * nsterm.m (x_set_window_size, initFrameFromEmacs):
7794 Rename FRAME_NS_TOOLBAR_HEIGHT to FRAME_TOOLBAR_HEIGHT.
581a8100 7795
a628ad9d 7796 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
581a8100 7797
a628ad9d
JB
7798 * nsmenu.m (update_frame_tool_bar, free_frame_tool_bar):
7799 Update FRAME_TOOLBAR_HEIGHT.
581a8100 7800
a628ad9d
JB
7801 * nsmenu.m (free_frame_tool_bar, update_frame_tool_bar):
7802 Add BLOCK/UNBLOCK_INPUT so asserts don't trigger.
1f984e12 7803
c1ef4455
CY
78042010-06-30 Chong Yidong <cyd@stupidchicken.com>
7805
bba3e508
SM
7806 * frame.c (get_future_frame_param, Fmake_terminal_frame):
7807 Don't check default-frame-alist.
c1ef4455 7808
ce8f5a9a
AS
78092010-06-30 Andreas Schwab <schwab@linux-m68k.org>
7810
7811 * process.c (create_process): Avoid using invalid file descriptors.
7812
7813 * callproc.c (child_setup): Avoid closing a file descriptor twice.
7814
bf935339
J
78152010-06-30 Jan Djärv <jan.h.d@swipnet.se>
7816
7817 * xsettings.c (Ffont_get_system_normal_font, Ffont_get_system_font):
7818 Improve documentation. Return font regardless of use_system_font.
7819 (syms_of_xsettings): Improve documentation for font-use-system-font.
7820
7c33a057
CY
78212010-07-10 Chong Yidong <cyd@stupidchicken.com>
7822
2ec1b5ee
CY
7823 * xfaces.c (realize_face): Garbage the frame if a face is removed
7824 (Bug#6593).
7825
78262010-07-05 Andreas Schwab <schwab@linux-m68k.org>
7827
7828 * keyboard.c: Remove duplicate <setjmp.h>.
7829 (read_key_sequence): Remove volatile qualifiers.
7830
78312010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
7832
7833 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
7834 (struct glyph_row): New members left_fringe_offset and
7835 right_fringe_offset.
7836
7837 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
7838 specially.
7839 * w32term.c (w32_draw_fringe_bitmap): Likewise.
7840 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
7841
7842 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
f6003da5 7843 Take account of bitmap offset.
2ec1b5ee
CY
7844 (draw_window_fringes): Take account of window vscroll.
7845 (update_window_fringes): Likewise. Extend top-aligned top indicator
7846 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
7847 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
7848 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
7849
78502010-07-04 Juanma Barranquero <lekktu@gmail.com>
7851
7852 * w32fns.c (Qtooltip): Declare.
7853 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
7854
78552010-07-03 Jan Djärv <jan.h.d@swipnet.se>
7856
7857 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
7858 grab on just Press (Bug#6499).
7859
78602010-07-02 Chong Yidong <cyd@stupidchicken.com>
7861
7862 * frame.c (Qtooltip): New var.
7863 (delete_frame): Use it. Fix faulty if statement. Don't update
7864 mode line for tooltip frames. Suggested by Martin Rudalics.
7865
7866 * xfns.c (x_create_tip_frame):
7867 * w32fns.c (x_create_tip_frame): Use it.
7868
78692010-06-17 Naohiro Aota <naota@elisp.net> (tiny change)
769e9d47
KH
7870
7871 * xftfont.c (xftfont_open): Check font width one by one also when
7872 spacing is dual.
7873
7874 * ftfont.c (ftfont_open): Ditto.
7875
6259c2ec
GM
78762010-06-30 Glenn Morris <rgm@gnu.org>
7877
a46007e9
GM
7878 * s/sol2-6.h (INHIBIT_X11R6_XIM): Remove, handled by configure now.
7879
6259c2ec
GM
7880 * Makefile.in (CANNOT_DUMP): Update for configure name change.
7881
7882 * s/freebsd.h (USE_MMAP_FOR_BUFFERS):
7883 * s/irix6-5.h (USE_MMAP_FOR_BUFFERS):
7884 * s/darwin.h (SYSTEM_MALLOC):
7885 * s/sol2-10.h (SYSTEM_MALLOC): Move to configure.
7886
5d1d3d04
J
78872010-06-29 Jan Djärv <jan.h.d@swipnet.se>
7888
7889 * nsfns.m: extern declare Vmenu_bar_mode, Vtool_bar_mode.
7890 (ns_get_screen): Don't assign integer to f.
7891 (Fx_display_color_cells): Declarations before statements.
7892
e547b051
J
78932010-06-28 Jan Djärv <jan.h.d@swipnet.se>
7894
5fc8e5bc
J
7895 * xfns.c (x_default_font_parameter): Remove got_from_system
7896 (Bug#6526).
7897
e547b051 7898 * xterm.h (gtk_widget_get_window, gtk_widget_get_mapped)
bba3e508
SM
7899 (gtk_adjustment_get_page_size, gtk_adjustment_get_upper):
7900 New defines based on what configure finds.
e547b051
J
7901
7902 * xterm.c (XTflash): Use gtk_widget_get_window.
7903 (xg_scroll_callback): Use gtk_adjustment_get_upper and
7904 gtk_adjustment_get_page_size.
7905 (handle_one_xevent): Use gtk_widget_get_mapped.
7906 (x_term_init): Remove HAVE_GTK_MULTIDISPLAY and associated error
7907 messages.
7908
7909 * xmenu.c (create_and_show_popup_menu): Call gtk_widget_get_mapped.
7910
7911 * gtkutil.h: Replace HAVE_GTK_FILE_BOTH with
7912 HAVE_GTK_FILE_SELECTION_NEW.
7913
bba3e508
SM
7914 * gtkutil.c (xg_display_open, xg_display_close):
7915 Remove HAVE_GTK_MULTIDISPLAY, it is always defined.
e547b051
J
7916 (xg_display_open): Return type is void.
7917 (gtk_widget_set_has_window)
7918 (gtk_dialog_get_action_area, gtk_dialog_get_content_area)
7919 (gtk_widget_get_sensitive, gtk_adjustment_set_page_size)
7920 (gtk_adjustment_set_page_increment)
7921 (gtk_adjustment_get_step_increment): #define these if not found
7922 by configure.
7923 (remove_submenu): New define based on Gtk+ version.
bba3e508
SM
7924 (xg_set_cursor, xg_frame_resized, xg_event_is_for_scrollbar):
7925 Use gtk_widget_get_window.
e547b051
J
7926 (xg_frame_resized, xg_update_frame_menubar): Use gtk_widget_get_mapped.
7927 (xg_create_frame_widgets): Use gtk_widget_set_has_window.
7928 (create_dialog): Use gtk_dialog_get_action_area and
7929 gtk_dialog_get_content_area.
7930 (xg_uses_old_file_dialog, xg_get_file_name): Remove HAVE_GTK_FILE_BOTH
7931 and HAVE_GTK_FILE_CHOOSER_DIALOG_NEW. File chooser is always
7932 available, so checking for HAVE_GTK_FILE_SELECTION_NEW is enough.
bba3e508
SM
7933 (xg_update_menubar, xg_update_submenu, xg_show_toolbar_item):
7934 Use g_object_ref and g_object_unref.
7935 (xg_update_menu_item, xg_tool_bar_menu_proxy):
7936 Use gtk_widget_get_sensitive.
e547b051
J
7937 (xg_update_submenu): Use remove_submenu.
7938 (xg_update_scrollbar_pos): Don't use GtkFixedChild, use child
7939 properties instead to get old x and y position.
7940 (xg_set_toolkit_scroll_bar_thumb): Use gtk_adjustment_get_page_size,
7941 gtk_adjustment_get_step_increment, gtk_adjustment_set_page_size,
2b7e356a 7942 gtk_adjustment_set_step_increment and gtk_adjustment_set_page_increment.
e547b051
J
7943 (xg_get_tool_bar_widgets): New function.
7944 (xg_tool_bar_menu_proxy, xg_show_toolbar_item)
7945 (update_frame_tool_bar): Call xg_get_tool_bar_widgets.
7946 (toolbar_set_orientation): New #define based on if configure
7947 finds gtk_orientable_set_orientation.
7948 (xg_create_tool_bar): Call toolbar_set_orientation.
7949 (xg_make_tool_item, xg_show_toolbar_item): Call gtk_box_pack_start
7950 instead of gtk_box_pack_start_defaults.
7951
b9229673
CY
79522010-06-28 Chong Yidong <cyd@stupidchicken.com>
7953
7954 * cmds.c (Fdelete_backward_char): Move into Lisp.
7955
bbc803b0
DN
79562010-06-27 Dan Nicolaescu <dann@ics.uci.edu>
7957
7958 * s/freebsd.h (BSD4_2): Remove redundant definition.
7959 bsd-common.h defines it already.
7960
6431f2e6
CY
79612010-06-27 Chong Yidong <cyd@stupidchicken.com>
7962
7963 * xfns.c (Fx_create_frame): Don't consult X resouces when setting
7964 menu-bar-lines and tool-bar-lines. Use menu-bar-mode and
7965 tool-bar-mode, which are now set using these X resources at
7966 startup, to determine the defaults (Bug#2249).
7967
7968 * w32fns.c (Fx_create_frame):
7969 * nsfns.m (Fx_create_frame): Likewise.
7970
7971 * frame.c (Vmenu_bar_mode, Vtool_bar_mode): New vars.
7972
8c079ebb
JB
79732010-06-24 Juanma Barranquero <lekktu@gmail.com>
7974
7975 * gtkutil.c (xg_update_scrollbar_pos):
7976 Avoid C99 mid-block variable declaration.
7977
e9b7ab96
JD
79782010-06-22 Jan Djärv <jan.h.d@swipnet.se>
7979
bc869eca
JD
7980 * xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
7981
2b7e356a 7982 * gtkutil.h (xg_show_scroll_bar): Remove.
bc869eca
JD
7983
7984 * gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
7985 if height is less than scroll bar min size.
7986 (xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
7987
e9b7ab96
JD
7988 * xfns.c (x_default_font_parameter): Try to open font from system
7989 before using it (bug#6478). Rename got_from_gconf to got_from_system.
7990
a628ad9d 79912010-06-22 Keith Packard <keithp@keithp.com> (tiny change)
32a679fd
JD
7992
7993 * font.c (font_parse_fcname): Allow . for sizes like 7.5 (bug#6437).
7994
70c4cfbb
EZ
79952010-06-20 Eli Zaretskii <eliz@gnu.org>
7996
7997 * xdisp.c (try_scrolling): When scroll-conservatively is set to
7998 most-positive-fixnum, be extra accurate when scrolling window
7999 start, to avoid missing the cursor line.
8000
ad5a12b5
EZ
80012010-06-19 Eli Zaretskii <eliz@gnu.org>
8002
8003 * xdisp.c (try_scrolling): Compute the limit for searching point
8004 in forward scroll from scroll_max, instead of an arbitrary limit
ef1b0ba7
SM
8005 of 10 screen lines.
8006 See http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00766.html
ad5a12b5
EZ
8007 and
8008 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00773.html
8009 for details.
8010
2a64315a 80112010-06-16 Glenn Morris <rgm@gnu.org>
6fda6a0c
GM
8012
8013 * editfns.c (Fbyte_to_string): Pacify compiler.
8014
288cf4e9
SM
80152010-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
8016
8017 * lread.c (read1): Phase out old-style backquotes a bit more.
8018
6e6e5760
EZ
80192010-06-12 Eli Zaretskii <eliz@gnu.org>
8020
cbc4fd20
EZ
8021 * makefile.w32-in ($(BLD)/bidi.$(O)): Depend on biditype.h and
8022 bidimirror.h.
8023
8024 * deps.mk (bidi.o): Depend on biditype.h and bidimirror.h.
8025
317fbf33
EZ
8026 * bidi.c (bidi_initialize): Remove explicit initialization of
8027 bidi_type_table; include biditype.h instead. Don't support
288cf4e9 8028 entries whose second codepoint is zero. Initialize bidi_mirror_table.
cbc4fd20 8029 (bidi_mirror_char): Use bidi_mirror_table.
317fbf33
EZ
8030
8031 * biditype.h: New file.
8032
cbc4fd20
EZ
8033 * bidimirror.h: New file.
8034
6e6e5760
EZ
8035 * window.c (syms_of_window): Doc fix (bug#6409).
8036
4176cba2
RF
80372010-06-12 Romain Francoise <romain@orebokech.com>
8038
8039 * Makefile.in (lisp, shortlisp): Use new location of vc-hooks and
8040 ediff-hook.
8041
cb4bfcb5
GM
80422010-06-10 Glenn Morris <rgm@gnu.org>
8043
64c60c2f
GM
8044 * editfns.c (Fbyte_to_string): Pacify compiler.
8045
cb4bfcb5
GM
8046 * m/ibms390x.h: Rather than duplicating ibms390.h, just include it.
8047
2ec1b5ee
CY
80482010-06-26 Andreas Schwab <schwab@linux-m68k.org>
8049
8050 * alloc.c (Fmake_byte_code): Don't access undefined argument
8051 (Bug#6517).
8052
80532010-06-25 Chong Yidong <cyd@stupidchicken.com>
8054
8055 * xdisp.c (next_element_from_image): Ensure that after-strings are
8056 read the next time we hit handle_stop (Bug#1336).
8057
80582010-06-23 Andreas Schwab <schwab@linux-m68k.org>
8059
8060 * lread.c (read1): Signal error if #s is not followed by paren.
8061
80622010-06-19 Chong Yidong <cyd@stupidchicken.com>
8063
8064 * image.c (free_image): Mark frame as garbaged (Bug#6426).
8065
8066 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
8067
80682010-06-15 Glenn Morris <rgm@gnu.org>
8069
8070 * editfns.c (Fbyte_to_string): Pacify compiler.
8071
e454a4a3
SM
80722010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
8073
8074 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
8075 Check `object's type before accessing its guts.
8076
c1b1acc2
DN
80772010-06-09 Dan Nicolaescu <dann@ics.uci.edu>
8078
8079 * s/usg5-4.h: Fix previous change.
8080 Suggested by Lawrence Mitchell <wence@gmx.li>
8081
657d4c0b
AS
80822010-06-08 Andreas Schwab <schwab@linux-m68k.org>
8083
8084 * minibuf.c (Fall_completions): Add more checks.
8085
9b27fd9f
JB
80862010-06-08 Juanma Barranquero <lekktu@gmail.com>
8087
8088 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
8089
a99ebb40
DN
80902010-06-08 Dan Nicolaescu <dann@ics.uci.edu>
8091
d7c5d87d
DN
8092 * lread.c (X_OK): Remove, unused.
8093
0263a941
DN
8094 * dispnew.c: Remove obsolete comment.
8095
a99ebb40
DN
8096 Remove INCLUDED_FCNTL.
8097 * xterm.c (INCLUDED_FCNTL):
8098 * callproc.c (INCLUDED_FCNTL):
8099 * alloc.c (INCLUDED_FCNTL):
8100 * systty.h (INCLUDED_FCNTL): Remove all uses, not needed anymore.
8101 (emacs_get_tty, emacs_set_tty): Declare unconditionally.
8102
13b5221f
MR
81032010-06-07 Martin Rudalics <rudalics@gmx.at>
8104
8105 * window.c (Fselect_window): Move `record_buffer' up to the
8106 beginning of this function, so the buffer gets recorded
8107 even if the selected window does not change.
8108 http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
8109
5220357f
JB
81102010-06-07 Juanma Barranquero <lekktu@gmail.com>
8111
8112 * cmds.c (Fforward_char, Fbackward_char): Fix typos in docstrings.
8113 (Fforward_line, Fbeginning_of_line): Reflow docstrings.
8114
3085237c
DN
81152010-06-06 Dan Nicolaescu <dann@ics.uci.edu>
8116
8117 Remove BSTRING related code, all platforms define it.
8118 * s/usg5-4.h (BSTRING): Remove definition.
8119 * s/template.h (BSTRING):
8120 * s/msdos.h (BSTRING):
8121 * s/ms-w32.h (BSTRING):
8122 * s/hpux10-20.h (BSTRING):
8123 * s/gnu-linux.h (BSTRING):
8124 * s/darwin.h (BSTRING):
8125 * s/cygwin.h (BSTRING):
8126 * s/bsd-common.h (BSTRING):
8127 * s/aix4-2.h (BSTRING): Likewise.
8128 * sysdep.c: Remove code depending on BSTRING not being defined.
8129
409f2919
JB
81302010-06-05 Juanma Barranquero <lekktu@gmail.com>
8131
8132 Remove obsolete macro BASE_LEADING_CODE_P.
8133 * character.h (BASE_LEADING_CODE_P): Remove.
8134 * regex.c [!emacs] (BASE_LEADING_CODE_P): Remove.
8135 * buffer.c (Fset_buffer_multibyte):
8136 * indent.c (scan_for_column, compute_motion):
8137 * insdel.c (count_combining_before, count_combining_after):
8138 Use LEADING_CODE_P instead of BASE_LEADING_CODE_P.
8139
087fc47a
JB
81402010-06-04 Juanma Barranquero <lekktu@gmail.com>
8141
8142 Turn `directory-sep-char' into a noop.
8143
8144 * lisp.h [WINDOWSNT] (Vdirectory_sep_char): Don't declare.
8145 (DIRECTORY_SEP): Define unconditionally.
8146
8147 * s/ms-w32.h (DIRECTORY_SEP): Remove.
8148
8149 * emacs.c (decode_env_path): Don't check DIRECTORY_SEP,
8150 call dostounix_filename directly.
8151
8152 * fileio.c (CORRECT_DIR_SEPS): Remove.
8153 (Ffile_name_directory, directory_file_name, Fexpand_file_name)
8154 (Fsubstitute_in_file_name): Use dostounix_filename instead.
8155 (file_name_as_directory): Use dostounix_filename, DIRECTORY_SEP.
8156 (syms_of_fileio) <directory-sep-char>: Move to subr.el.
8157
8158 * w32proc.c (CORRECT_DIR_SEPS): Remove.
8159 (Fw32_short_file_name, Fw32_long_file_name): Use dostounix_filename.
8160
0eb7675e
AS
81612010-06-03 Andreas Schwab <schwab@linux-m68k.org>
8162
a628ad9d
JB
8163 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4 address.
8164 (Bug#6346)
0eb7675e 8165
78edd3b7
JB
81662010-06-03 Juanma Barranquero <lekktu@gmail.com>
8167
8168 * ccl.c (Fccl_program_p): Fix typo in docstring.
8169
eb697db5
DN
81702010-06-03 Dan Nicolaescu <dann@ics.uci.edu>
8171
8172 Move UNEXEC definition to autoconf.
8173 * s/usg5-4.h (UNEXEC): Remove, move to configure.in.
8174 * s/sol2-10.h (UNEXEC):
8175 * s/irix6-5.h (UNEXEC):
8176 * s/hpux10-20.h (UNEXEC):
8177 * s/gnu-linux.h (UNEXEC):
8178 * s/darwin.h (UNEXEC):
8179 * s/cygwin.h (UNEXEC):
8180 * s/bsd-common.h (UNEXEC):
8181 * s/aix4-2.h (UNEXEC):
8182 * m/alpha.h (UNEXEC): Likewise.
8183 * Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
8184
aa3830c4
JB
81852010-06-03 Juanma Barranquero <lekktu@gmail.com>
8186
8187 Remove obsolete pre-unicode2 macros.
8188 * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove.
8189 * composite.c (composition_reseat_it):
8190 * data.c (Faset):
8191 * fns.c (Ffillarray):
8192 * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD.
8193 [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
8194
d234d13e
JL
81952010-06-03 Juri Linkov <juri@jurta.org>
8196
8197 * buffer.c (Fother_buffer): Add CHECK_FRAME.
8198 (Fswitch_to_buffer): Remove unused variable `err'.
8199
0d4bcf4d
GM
82002010-06-03 Glenn Morris <rgm@gnu.org>
8201
e23dc1e2
GM
8202 * m/template.h (NO_SOCK_SIGIO): Remove, no longer used.
8203
05b09564
GM
8204 * m/hp800.h (alloca) [__NetBSD__ && __GNUC__]: No need to define it,
8205 now that AH_BOTTOM does it.
8206
824e2978
GM
8207 * m/hp800.h (HAVE_ALLOCA):
8208 * m/ibms390x.h (HAVE_ALLOCA): Do not define, no longer needed.
8209
0d4bcf4d
GM
8210 * m/ia64.h, s/gnu-linux.h, s/gnu.h, s/netbsd.h, s/usg5-4.h:
8211 Remove NOT_C_CODE tests, it is always true now.
8212
c55d2abf
DN
82132010-06-02 Dan Nicolaescu <dann@ics.uci.edu>
8214
08a494a3
DN
8215 Fix config.h includes.
8216 * xsettings.c:
8217 * xgselect.c:
8218 * nsterm.m:
8219 * nsselect.m:
8220 * nsimage.m:
8221 * nsfont.m:
8222 * nsfns.m:
8223 * dbusbind.c: Use #include <config.h> instead of "config.h" as all
8224 other files do.
8225
75934b1d
DN
8226 * gmalloc.c: Remove BROKEN_PROTOTYPES reference, unused.
8227
9f32a766
DN
8228 * s/sol2-6.h: Remove obsolete comments.
8229
c55d2abf
DN
8230 Remove unnecessary alloca.h includes.
8231 * keymap.c: Do not include alloca.h, config.h does that.
8232 * sysdep.c: Likewise. Do not define fwrite, not used.
8233
06ac62b4
SM
82342010-06-01 Stefan Monnier <monnier@iro.umontreal.ca>
8235
8236 * sysdep.c (child_setup_tty): Move the non-canonical initialization to
8237 the HAVE_TERMIO where it belongs (bug#6149).
8238
1ab8293c
SM
82392010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
8240
8241 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
8242 of bug#6305).
8243
6dcfd253
EZ
82442010-05-30 Eli Zaretskii <eliz@gnu.org>
8245
8246 * bidi.c (bidi_move_to_visually_next): Make sure the sentinel
8247 state is always cached (bug#6306).
8248
6d26bbb2
EZ
82492010-05-29 Eli Zaretskii <eliz@gnu.org>
8250
06fa4a23
EZ
8251 Fix cursor motion in bidi-reordered continued lines.
8252 * xdisp.c (try_cursor_movement): Backup to non-continuation line
8253 only after finding point's row. Fix the logic. Rewrite the loop
ef1b0ba7
SM
8254 over continuation lines in bidi-reordered buffers.
8255 Return CURSOR_MOVEMENT_MUST_SCROLL upon failure to find a suitable row,
6d26bbb2
EZ
8256 rather than CURSOR_MOVEMENT_CANNOT_BE_USED.
8257
f5783df3
MA
82582010-05-28 Michael Albinus <michael.albinus@gmx.de>
8259
8260 * fileio.c (Fdelete_file): Pass TRASH arg to handler call.
8261
7d56b2dd
KH
82622010-05-28 Kenichi Handa <handa@m17n.org>
8263
8264 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
8265 Don't sheck SPEC if it is nil.
8266 (font_list_entities): Call font_delete_unmatched if
b925d231 8267 Vface_ignored_fonts is non-nil. (Bug#6287)
7d56b2dd 8268
e58d4ff7
GM
82692010-05-28 Glenn Morris <rgm@gnu.org>
8270
8271 * Makefile.in (LIBES): Remove $LOADLIBES, it is never set.
8272
f1a5d776
CY
82732010-05-27 Chong Yidong <cyd@stupidchicken.com>
8274
8275 * fileio.c (Fdelete_file): Change meaning of optional arg to mean
8276 whether to trash.
8277 (internal_delete_file, Frename_file): Callers changed.
8278 (delete_by_moving_to_trash): Doc fix.
8279 (Fdelete_directory_internal): Don't move to trash.
8280
8281 * callproc.c (delete_temp_file):
8282 * buffer.c (Fkill_buffer): Callers changed.
8283
8284 * lisp.h: Update prototype.
8285
f44a59e6
CY
82862010-05-27 Chong Yidong <cyd@stupidchicken.com>
8287
8288 * xdisp.c (redisplay_window): After redisplay, check if point is
8289 still valid before setting it (Bug#6177).
8290
81ac4f35
GM
82912010-05-27 Glenn Morris <rgm@gnu.org>
8292
8293 * Makefile.in, autodeps.mk, deps.mk, ns.mk:
8294 Convert comments to Makefile format.
8295
8296 * Makefile.in (bootstrap-clean): No more Makefile.c.
8297
ccd89fb3
GM
82982010-05-26 Glenn Morris <rgm@gnu.org>
8299
90278cb6
GM
8300 * Makefile.in (YMF_PASS_LDFLAGS): Remove.
8301 (temacs${EXEEXT}): Use PRE_EDIT_LDFLAGS, POST_EDIT_LDFLAGS.
8302
ccd89fb3
GM
8303 * Makefile.in (NS_IMPL_GNUSTEP_INC, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8304 Remove.
8305 (TEMACS_LDFLAGS): Do not use NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8306
b7050583
KH
83072010-05-26 Kenichi Handa <handa@m17n.org>
8308
8309 * composite.c (composition_compute_stop_pos): Fix condition for
8310 backward scanning.
8311
e5458003
GM
83122010-05-25 Glenn Morris <rgm@gnu.org>
8313
c345fe90
GM
8314 * Makefile.in (@NS_IMPL_GNUSTEP_INC@, NS_IMPL_GNUSTEP_TEMACS_LDFLAGS):
8315 Move before TEMACS_LDFLAGS.
8316 (TEMACS_LDFLAGS): Use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8317 (temacs${EXEEXT}): Do not use $NS_IMPL_GNUSTEP_TEMACS_LDFLAGS.
8318
2e0689ab
GM
8319 * Makefile.in (NOT_C_CODE): No longer define.
8320 (config.h): No longer include.
8321
8009a5e8
GM
8322 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): Move definition after some
8323 variables it may reference.
8324
e5458003
GM
8325 * Makefile.in (LD_SWITCH_SYSTEM_EXTRA): Remove.
8326 (TEMACS_LDFLAGS): Remove LD_SWITCH_SYSTEM_EXTRA.
8327
10f72a37
KH
83282010-05-25 Kenichi Handa <handa@m17n.org>
8329
8330 * dispextern.h (struct composition_it): New members rule_idx and
8331 charpos.
8332
8333 * xdisp.c (set_iterator_to_next): While scanning backward, assume
8334 that the character positions of IT point the last character of the
8335 current grapheme cluster.
8336 (next_element_from_composition): Don't change character positions
8337 of IT.
8338 (append_composite_glyph): Set glyph->charpos to
8339 it->cmp_it.charpos.
8340
8341 * composite.c (autocmp_chars): Change the first argument to RULE,
8342 and try composition with RULE only.
8343 (composition_compute_stop_pos): Record the index number of the
8344 composition rule in CMP_IT->rule_idx.
8345 (composition_reseat_it): Call autocmp_chars repeatedly until the
8346 correct rule of the composition is found.
8347 (composition_update_it): Set CMP_IT->charpos. Assume the CHARPOS
8348 is at the last character of the current grapheme cluster when
8349 CMP_IT->reversed_p is nonzero.
8350
171eda53 83512010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
f5b416d2 8352
171eda53
SM
8353 * editfns.c (Fbyte_to_string): New function.
8354
66a9f7f4
SM
83552010-05-24 Stefan Monnier <monnier@iro.umontreal.ca>
8356
8357 * process.c (Fmake_network_process): Set :host to nil if it's not used.
8358 Suggested by Masatake YAMATO <yamato@redhat.com>.
8359
d8c315d1
EZ
83602010-05-23 Eli Zaretskii <eliz@gnu.org>
8361
171eda53 8362 * dispextern.h (init_iterator): Sync prototype with changed definition.
d8c315d1 8363
f5b416d2 83642010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
8365
8366 * s/netbsd.h: If terminfo is found, use it in preference to
8367 termcap. (Bug#6190) [Backport from trunk]
8368
0416466c
EZ
83692010-05-19 Eli Zaretskii <eliz@gnu.org>
8370
11117830 8371 Redesign and reimplement bidi-aware edge positions of glyph rows.
d36fe237
EZ
8372
8373 * dispextern.h (struct glyph_row): New members minpos and maxpos.
8374 (MATRIX_ROW_START_CHARPOS, MATRIX_ROW_START_BYTEPOS)
8375 (MATRIX_ROW_END_CHARPOS, MATRIX_ROW_END_BYTEPOS): Reference minpos
8376 and maxpos members instead of start.pos and end.pos, respectively.
8377
8378 * xdisp.c (display_line): Compare IT_CHARPOS with the position in
8379 row->start.pos, rather than with MATRIX_ROW_START_CHARPOS.
8380 (cursor_row_p): Use row->end.pos rather than MATRIX_ROW_END_CHARPOS.
66a9f7f4
SM
8381 (try_window_reusing_current_matrix, try_window_id):
8382 Use ROW->minpos rather than ROW->start.pos.
d36fe237
EZ
8383 (init_from_display_pos, init_iterator): Use EMACS_INT for
8384 character and byte positions.
66a9f7f4 8385 (find_row_edges): Rename from find_row_end. Accept additional
d36fe237
EZ
8386 arguments for minimum and maximum buffer positions seen by
8387 display_line for this row. Don't use iterator to find the
8388 position following the maximum one; instead, increment the
11117830
EZ
8389 position found by display_line directly. Fix logic; eol_pos
8390 should be tested before the rest. Handle the case of characters
8391 delivered from display vector (bug#6036). Fix tests related to
8392 it->method. Handle the truncated_on_right_p rows.
8393 (RECORD_MAX_MIN_POS): New macro.
8394 (display_line): Use it to record the minimum and maximum buffer
8395 positions for glyphs in the row being assembled. Record the
8396 position of the newline that terminates the line. If word wrap is
8397 in effect, restore minimum and maximum positions seen up to the
8398 wrap point, when iterator returns to it.
8399 (try_window_reusing_current_matrix): Give up if in bidi-reordered
8400 row and cursor not already at point. Restore original pre-bidi
8401 code for unidirectional buffers.
d36fe237
EZ
8402
8403 * dispnew.c (increment_row_positions, check_matrix_invariants):
8404 Increment and check row->start.pos and row->end.pos, in addition
8405 to MATRIX_ROW_START_CHARPOS and MATRIX_ROW_END_CHARPOS.
8406
11117830
EZ
8407 * .gdbinit (prowlims): Display row->minpos and row->maxpos.
8408 Display truncated_on_left_p and truncated_on_right_p flags.
8409 Formatting fixes.
8410 (pmtxrows): Display the ordinal number of each row. Don't display
8411 rows beyond the last one.
8412
8413 * bidi.c (bidi_cache_iterator_state): Don't zero out new_paragraph:
8414 it is not copied by bidi_copy_it.
8415
6e83d800
EZ
84162010-05-22 Eli Zaretskii <eliz@gnu.org>
8417
8418 * w32.c (sys_write): Break writes into chunks smaller than 32MB.
8419 (Bug#6237)
8420
110683ad
CY
84212010-05-22 Chong Yidong <cyd@stupidchicken.com>
8422
8423 * image.c (Fimage_flush): Rename from image-refresh.
8424
98fe5161
CY
84252010-05-21 Chong Yidong <cyd@stupidchicken.com>
8426
8427 * xdisp.c (redisplay_internal): Clear caches even if redisplaying
8428 just one window.
8429
8430 * image.c (Vimage_cache_eviction_delay): Decrease to 300.
8431 (clear_image_cache): If the number of cached images is unusually
8432 large, decrease the cache eviction delay (Bug#6230).
8433
e8752c66
GM
84342010-05-21 Glenn Morris <rgm@gnu.org>
8435
66dbf213
GM
8436 * Makefile.in (${ns_appdir}, ${ns_appbindir}Emacs, ns-app):
8437 Move these rules to ns.mk.
8438 * ns.mk: New file.
8439
04384b2d
GM
8440 * Makefile.in (../src/$(OLDXMENU), $(OLDXMENU)): Always define rules.
8441
e8752c66
GM
8442 * Makefile.in (CANNOT_DUMP): New, set by configure.
8443 (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
8444
2e2bbddb
JL
84452010-05-20 Juri Linkov <juri@jurta.org>
8446
8447 * fileio.c (Fdelete_file): Change interative spec to use
8448 `read-file-name' like in `find-file-read-args' where the default
8449 value is `default-directory' instead of `buffer-file-name'.
8450 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00533.html
8451
31c4aaf6
KR
84522010-05-20 Kevin Ryde <user42@zip.com.au>
8453
8454 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
8455 (Voverriding_terminal_local_map, Vsystem_key_alist)
8456 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
8457
9d5cf9b6
GM
84582010-05-20 Glenn Morris <rgm@gnu.org>
8459
8460 * Makefile.in (DEPDIR): New constant.
8461 (DEPFLAGS): Set with configure, not cpp.
8462 (MKDEPDIR): New, set by configure.
8463 (.c.o, .m.o, ecrt0.o): Use $MKDEPDIR.
8464 (clean): Use $DEPDIR.
8465 (deps_frag): Include from configure.
8466 Move static/dynamic dependency stuff to deps.mk/autodeps.mk.
8467 * deps.mk, autodeps.mk: New files, extracted from Makefile.in.
8468
bba3e508
SM
8469 * bidi.c (bidi_cache_shrink, bidi_cache_iterator_state):
8470 Fix reallocation of the cache. (Bug#6210)
ead6f8f5 8471
7f34aec3
GM
84722010-05-19 Glenn Morris <rgm@gnu.org>
8473
d494e8f2
GM
8474 * s/msdos.h (ORDINARY_LINK): Move to sed2v2.inp.
8475
c1d0dcfd
GM
8476 * Makefile.in (LD, YMF_PASS_LDFLAGS): Set with configure, not cpp.
8477 (GNULIB_VAR): Remove.
8478 (LIBES): Use LIB_GCC instead of GNULIB_VAR.
8479
8480 * m/ibms390x.h (LINKER):
8481 * m/macppc.h (LINKER) [GNU_LINUX]:
8482 * s/aix4-2.h (ORDINARY_LINK):
8483 * s/cygwin.h (LINKER):
8484 * s/darwin.h (ORDINARY_LINK):
8485 * s/gnu.h (ORDINARY_LINK):
8486 * s/netbsd.h (LINKER):
8487 * s/usg5-4.h (ORDINARY_LINK):
8488 Move to configure.
8489
7f34aec3
GM
8490 * s/aix4-2.h (LINKER): Remove; this file sets ORDINARY_LINK.
8491
754790b6
CY
84922010-05-18 Chong Yidong <cyd@stupidchicken.com>
8493
8494 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
8495 prevent stack overflow if number of arguments is too large
8496 (Bug#6214).
8497
161e44d1
JB
84982010-05-18 Juanma Barranquero <lekktu@gmail.com>
8499
8500 * charset.c (load_charset_map_from_file): Don't call close after fclose.
8501
be4ff9da
GM
85022010-05-18 Glenn Morris <rgm@gnu.org>
8503
9539dc5d
GM
8504 * s/gnu-linux.h: Combine two conditionals.
8505
8506 * Makefile.in (otherobj): Include $(VMLIMIT_OBJ) separately from
6665f4c5
GM
8507 $(POST_ALLOC_OBJ).
8508
40dc6bf4
GM
8509 * Makefile.in (RALLOC_OBJ): New, set by configure.
8510 (rallocobj): Replace with the previous variable.
8511 (otherobj): Use $RALLOC_OBJ.
8512
8513 * s/gnu.h (REL_ALLOC) [DOUG_LEA_MALLOC]:
8514 * s/gnu-linux.h (REL_ALLOC) [DOUG_LEA_MALLOC]: Move undef to configure.
8515
be4ff9da
GM
8516 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
8517 (gmallocobj, vmlimitobj): Replace with previous two variables.
8518 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
8519
16455a85
GM
85202010-05-17 Glenn Morris <rgm@gnu.org>
8521
8522 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
8523 (stamp-oldxmenu): Use $OLDXMENU_DEPS.
8524
5fdb7468
GM
85252010-05-16 Glenn Morris <rgm@gnu.org>
8526
7ca1f3f9
GM
8527 * Makefile.in (${ns_appbindir}Emacs, ns-app): Always define these rules.
8528
7541dad5
GM
8529 * Makefile.in (clean): Get rid of HAVE_NS conditional.
8530
da53fab9
GM
8531 * Makefile.in (ns_appdir, ns_appbindir): Now configure adds the
8532 trailing "/".
8533
b02a6645
GM
8534 * Makefile.in (TEMACS_LDFLAGS2): New, set by configure.
8535 (temacs${EXEEXT}): Combine the NS_IMPL_GNUSTEP case with the default.
8536
8877ca0f
GM
8537 * Makefile.in (GNUSTEP_SYSTEM_LIBRARIES): Remove, unused.
8538 (NS_IMPL_GNUSTEP_TEMACS_LDFLAGS): New, set by configure.
8539 (LD) [NS_IMPL_GNUSTEP]: Set to $(CC) -rdynamic.
8540 (temacs${EXEEXT}): Remove $LOCALCPP, never defined or referenced.
8541 Make most of the NS_IMPL_GNUSTEP case the same as the default case.
8542
5fdb7468
GM
8543 * Makefile.in (temacs${EXEEXT}) [!NS_IMPL_GNUSTEP]:
8544 Remove ${STARTFLAGS}, nothing ever sets it.
8545
95adb4b1
DN
85462010-05-16 Dan Nicolaescu <dann@ics.uci.edu>
8547
8548 * m/ia64.h (UNEXEC): Remove, set in s/*.h.
8549
676b6304
GM
85502010-05-16 Glenn Morris <rgm@gnu.org>
8551
9beab9ce
GM
8552 * Makefile.in (LIBX_BASE): Always define.
8553
8a95f0e7
GM
8554 * Makefile.in (LIBX_OTHER): Move out of cpp section.
8555
676b6304
GM
8556 * Makefile.in (LIBXT): Always define.
8557
6e546d18
GM
85582010-05-15 Glenn Morris <rgm@gnu.org>
8559
4235ca47 8560 * Makefile.in (OLDXMENU, LIBXMENU, LIBX_OTHER): Always define.
02d4ac0e 8561
6e546d18
GM
8562 * Makefile.in (FONT_DRIVERS): Remove, replace with $FONT_OBJ.
8563 (obj, SOME_MACHINE_OBJECTS): Use $FONT_OBJ.
8564
8c5ff6dd
KR
85652010-05-15 Ken Raeburn <raeburn@raeburn.org>
8566
560bb7ae 8567 * lisp.h (XFLOAT_DATA): Use "0?x:x" to generate an rvalue. (Bug#5916)
52766425
KR
8568 (LISP_MAKE_RVALUE) [!USE_LISP_UNION_TYPE && !__GNUC__]: Likewise.
8569
8b4eb796
KR
8570 * emacs.c (main): Initialize initial-environment and
8571 process-environment before generating from env, not after.
8572
8c5ff6dd
KR
8573 Handle --version reasonably in CANNOT_DUMP configuration.
8574 * emacs.c (emacs_version, emacs_copyright): New string variables.
8575 (Vemacs_version, Vemacs_copyright): New Lisp_Object variables.
8576 (syms_of_emacs): Defvar them, and initialize them from the C
8577 string variables.
8578 (main): If initialization hasn't been done, print initial version
8579 info from the C strings, instead of starting an interactive session.
8580
dbd3f723
EZ
85812010-05-15 Eli Zaretskii <eliz@gnu.org>
8582
d20e1419
EZ
8583 * bidi.c (bidi_paragraph_init): Don't leave alone garbage values
8584 of bidi_it->paragraph_dir. Call bidi_initialize if needed.
2e9abc3d
EZ
8585 (bidi_paragraph_init): Remove redundant assertion that we are at
8586 the beginning of a line after call to bidi_find_paragraph_start.
d20e1419
EZ
8587
8588 * xdisp.c (Fcurrent_bidi_paragraph_direction): New function.
8589 (syms_of_xdisp): Defsubr it.
8590
d36fe237
EZ
8591 * cmds.c (Fforward_char, Fbackward_char): Doc fix.
8592
dbd3f723
EZ
8593 * Makefile.in: Fix MSDOS-related comments.
8594
02be533b
GM
85952010-05-15 Glenn Morris <rgm@gnu.org>
8596
1a82cca9
GM
8597 * Makefile.in (OLDXMENU_TARGET): New, set by configure.
8598 (really-lwlib, really-oldXMenu): Always define.
8599 ($OLDXMENU): Depend on $OLDXMENU_TARGET.
8600
3df7b338
GM
8601 * Makefile.in: Simplify cpp conditional.
8602
2b5f541b
GM
8603 * Makefile.in (${ns_appdir}): Simplify using umask.
8604
02be533b
GM
8605 * Makefile.in (${ns_appdir}): Remove references to CVS-related files.
8606
4e2db1fe
SM
86072010-05-14 Stefan Monnier <monnier@iro.umontreal.ca>
8608
8609 * eval.c (specbind): Remove left-over duplicate test.
8610 Disallow let-binding frame-local vars. Add comment.
8611
4b292a22
EZ
86122010-05-14 Eli Zaretskii <eliz@gnu.org>
8613
2fe72643 8614 Make the cache of bidi iterator states dynamically allocated.
1edbd309 8615 * bidi.c (bidi_cache_shrink): New function.
2fe72643
EZ
8616 (bidi_init_it): Call it.
8617 (bidi_cache_iterator_state): Enlarge the cache if needed.
8618
4e2db1fe 8619 * bidi.c (bidi_move_to_visually_next): Rename from
4b292a22
EZ
8620 bidi_get_next_char_visually. All callers changed.
8621
82ebc97b
KH
86222010-05-14 Kenichi Handa <handa@m17n.org>
8623
8624 * dispextern.h (struct composition_it): New member reversed_p.
8625
8626 * composite.c (composition_compute_stop_pos): Search backward if
8627 ENDPOS < CHARPOS.
8628 (composition_reseat_it): Handle the case that ENDPOS < CHARPOS.
8629 Set CMP_IT->reversed_p.
b4b6e17e 8630 (composition_update_it): Pay attention to CMP_IT->reversed_p.
82ebc97b 8631
4e2db1fe
SM
8632 * xdisp.c (set_iterator_to_next):
8633 Call composition_compute_stop_pos with negative ENDPOS if we are
82ebc97b
KH
8634 scanning backward. Call composition_compute_stop_pos if scan
8635 direction is changed.
8636 (next_element_from_buffer): Call composition_compute_stop_pos with
8637 negative ENDPOS if we are scanning backward.
8638 (next_element_from_composition): Pay attention to
8639 IT->cmp_it.reversed_p.
8640
0e5d7800
KH
86412010-05-14 Kenichi Handa <handa@m17n.org>
8642
560bb7ae 8643 * font.c (font_range): Return the range for the font found at first.
0e5d7800 8644
cb027b32
GM
86452010-05-14 Glenn Morris <rgm@gnu.org>
8646
177b0288
GM
8647 * Makefile.in (ns_appdir, ns_appbindir, ns_appsrc): Always define.
8648
fbc00890
GM
8649 * Makefile.in (mktime, X11, register): Move undefs to configure.
8650
f14d1dfd
GM
8651 * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it.
8652 (MSDOS_X_OBJ): New variable.
8653 (MSDOS_SUPPORT_REAL): New constant.
8654 (MSDOS_SUPPORT): Set as a variable, not with cpp.
8655 (obj): Use MSDOS_X_OBJ.
8656 (lisp): Use MSDOS_SUPPORT as a variable.
8657
11842bd8
GM
8658 * Makefile.in (REAL_MOUSE_SUPPORT): New constant.
8659 (GPM_MOUSE_SUPPORT): Now it's a constant.
8660 (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure,
8661 not cpp.
8662
489d31a4 8663 * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef.
845612ac 8664 (ns_appresdir): Remove, unused.
e20f1f07 8665
489d31a4
GM
8666 * Makefile.in (SHELL): Move outside cpp section.
8667
cb027b32
GM
8668 * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM).
8669
5a903aa9
GM
86702010-05-13 Glenn Morris <rgm@gnu.org>
8671
3369c79f
GM
8672 * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff.
8673 (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff.
8674
d5e982a6
GM
8675 * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined,
8676 HAVE_WINDOW_SYSTEM must be too.
8677
6192e163
GM
8678 * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file.
8679 (lisp): Remove WINNT_SUPPORT.
8680
472c5d6b
GM
8681 * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]:
8682 Let configure set these variables (to empty) in this case as well.
8683
0116466b
GM
8684 * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp.
8685 (LIBX_BASE): Use $LD_SWITCH_X_SITE.
8686
5a903aa9
GM
8687 * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD)
8688 (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS)
8689 (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS)
8690 (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM)
8691 (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold
c0a2b70a 8692 the values output by configure.
5a903aa9
GM
8693 (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables.
8694
1a0d7c06
GM
86952010-05-12 Glenn Morris <rgm@gnu.org>
8696
b5457f14
GM
8697 * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic.
8698 (LINKER_WAS_SPECIFIED): Remove.
8699
1a0d7c06
GM
8700 * Makefile.in (LIB_GCC): Set using configure, not cpp.
8701 (GNULIB_VAR) [!ORDINARY_LINK]: Always set to $LIB_GCC.
8702 * m/arm.h (LIB_GCC) [GNU_LINUX]:
8703 * s/cygwin.h (LIB_GCC):
8704 * s/freebsd.h (LIB_GCC):
8705 * s/gnu-linux.h (LIB_GCC):
8706 * s/msdos.h (LIB_GCC):
8707 * s/netbsd.h (LIB_GCC):
8708 Move to configure.
8709
d1ddd1d0 87102010-05-11 Karel Klíč <kklic@redhat.com>
c90ca7b7
KH
8711
8712 * ftfont.c: Fix incorrect parentheses of #if condition for
8713 definining M17N_FLT_USE_NEW_FEATURE.
8714
acddf8ae
GM
87152010-05-11 Glenn Morris <rgm@gnu.org>
8716
8717 * Makefile.in (LIBS_SYSTEM) [MSDOS]: Do not reset.
8718 * s/msdos.h (MSDOS_LIBS_SYSTEM): Remove.
8719
ae5e04fa
EZ
87202010-05-10 Eli Zaretskii <eliz@gnu.org>
8721
8722 * xdisp.c (init_iterator): Don't turn on bidi reordering in
8723 unibyte buffers. See
8724 http://lists.gnu.org/archive/html/emacs-devel/2010-05/msg00263.html.
8725
7490175b
GM
87262010-05-10 Glenn Morris <rgm@gnu.org>
8727
97efb629
GM
8728 * Makefile.in (LIBS_SYSTEM): Set using configure, not cpp.
8729 (LIBS_SYSTEM) [MSDOS]: Reset with MSDOS_LIBS_SYSTEM.
8730 (LIBES): Use LIBS_SYSTEM as a variable.
8731 * s/msdos.h (LIBS_SYSTEM): Rename to MSDOS_LIBS_SYSTEM. Always define.
8732 * s/aix4-2.h (LIBS_SYSTEM):
8733 * s/freebsd.h (LIBS_SYSTEM):
8734 * s/hpux10-20.h (LIBS_SYSTEM):
8735 * s/sol2-6.h (LIBS_SYSTEM):
8736 * s/unixware.h (LIBS_SYSTEM):
8737 Move to configure.
8738
7490175b
GM
8739 * s/aix4-2.h (MAIL_USE_LOCKF):
8740 * s/bsd-common.h (MAIL_USE_FLOCK):
8741 * s/darwin.h (MAIL_USE_FLOCK):
8742 * s/gnu-linux.h (MAIL_USE_FLOCK):
8743 * s/irix6-5.h (MAIL_USE_FLOCK):
8744 * s/template.h (MAIL_USE_FLOCK):
8745 Move to configure.
8746
0235128c 87472010-05-08 Chong Yidong <cyd@stupidchicken.com>
61a808e8
CY
8748
8749 * Version 23.2 released.
8750
0235128c 87512010-05-08 Andreas Schwab <schwab@linux-m68k.org>
5dcde606
AS
8752
8753 * composite.c (autocmp_chars): Save point as marker before calling
8754 auto-composition-function (Bug#5984).
8755
8756 * lisp.h (restore_point_unwind): Add prototype.
8757
8758 * fileio.c (restore_point_unwind): Remove static attribute.
8759
0235128c 87602010-05-08 Kenichi Handa <handa@m17n.org>
c4170e32
KH
8761
8762 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
8763 new feature of libotf and m17n-flt.
0235128c
SM
8764 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
8765 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
8766 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
8767 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
8768 that OUT is NULL. Use OTF_drive_gsub_with_log and
8769 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
8770 OTF_drive_gpos.
8771 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
0235128c
SM
8772 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
8773 Setup mflt_enable_new_feature and mflt_try_otf.
8774
4721152c
J
87752010-05-08 Jan Djärv <jan.h.d@swipnet.se>
8776
8777 * xsettings.c (Ftool_bar_get_system_style): Correct comment.
8778
8779 * gtkutil.c (xg_pack_tool_bar): Change show_all to show for handle
8780 box and toolbar (Bug #6139).
8781 (xg_create_tool_bar): Remove comment (Bug #6139).
8782 (xg_make_tool_item): Remove gtk_widget_show_all (Bug #6139).
8783 (xg_show_toolbar_item): Add gtk_widget_show for weventbox (Bug #6139).
8784
ee0a16cf
JB
87852010-05-08 Juanma Barranquero <lekktu@gmail.com>
8786
8787 * makefile.w32-in ($(BLD)/eval.$(O), $(BLD)/w32fns.$(O)):
8788 Update dependencies.
8789
96d79611
EZ
87902010-05-08 Eli Zaretskii <eliz@gnu.org>
8791
8792 * fringe.c (update_window_fringes): Set up truncation bitmaps for
8793 R2L lines.
8794
40c17879
GM
87952010-05-08 Glenn Morris <rgm@gnu.org>
8796
7b42b29f
GM
8797 * Makefile.in (THIS_IS_MAKEFILE): Remove, unused.
8798
40c17879
GM
8799 * Makefile.in (LIBS_TERMCAP): Set with configure, not cpp.
8800 (TERMCAP_OBJ): New, set by configure, replacing termcapobj.
8801 (termcapobj): Replace with TERMCAP_OBJ.
8802 (otherobj): Use $TERMCAP_OBJ instead of $termcapobj.
8803 (LIBES): Use LIBS_TERMCAP as a variable.
8804
8805 * s/freebsd.h (osreldate.h): No longer include, since this file
8806 does not use __FreeBSD_version any more.
8807
8808 * s/aix4-2.h (TERMINFO):
8809 * s/cygwin.h (TERMINFO):
8810 * s/darwin.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8811 * s/freebsd.h (TERMINFO, LIBS_TERMCAP):
8812 * s/gnu-linux.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8813 * s/gnu.h (TERMINFO, LIBS_TERMCAP) [HAVE_LIBNCURSES]:
8814 * s/hpux10-20.h (TERMINFO, LIBS_TERMCAP):
8815 * s/irix6-5.h (TERMINFO):
8816 * s/netbsd.h (LIBS_TERMCAP):
8817 * s/openbsd.h (TERMINFO, LIBS_TERMCAP):
8818 * s/sol2-6.h (LIBS_TERMCAP) [!TERMINFO]:
8819 * s/usg5-4.h (TERMINFO):
8820 Move to configure.
8821
94b612ad
SM
88222010-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
8823
8824 * eval.c (unbind_to): Don't unbind a local binding into the global
8825 binding when the local binding disappeared. Inversely, don't unbind
8826 a global binding into a newly created local binding.
8827 * data.c (set_internal): Make its `buf' arg into a `where' arg so we
8828 can specify the frame to use, when applicable. Adjust callers.
8829
15e12598 88302010-05-07 Vincent Belaïche <vincent.belaiche@gmail.com>
acd0102a 8831 Stefan Monnier <monnier@iro.umontreal.ca>
15e12598
VB
8832
8833 * floatfns.c (Fisnan, Fcopysign, Ffrexp, Fldexp): New functions.
8834
f724825e
EZ
88352010-05-07 Eli Zaretskii <eliz@gnu.org>
8836
5cba3209
EZ
8837 * w32fns.c: Include w32.h.
8838 (Fw32_shell_execute): Decode the error message before passing it
8839 to `error'. (Bug#6126)
8840
d16bdfc3
EZ
8841 * msdos.c (dos_set_window_size):
8842 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
8843 instead of `XSYMBOL (foo)->value'.
8844
59d93e87
EZ
88452010-05-07 Eli Zaretskii <eliz@gnu.org>
8846
9fdec8bc
EZ
8847 Fix the MS-DOS build, broken by autoconfiscation.
8848
8849 * Makefile.in: Don't use Make-style comments past the "start of
8850 cpp stuff" line.
8851 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
8852
8853 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
8854 edited directly by msdos/sed1v2.inp).
f724825e 8855
2f86b22b
GM
88562010-05-07 Glenn Morris <rgm@gnu.org>
8857
8858 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
8859 (LD_SWITCH_SYSTEM_EXTRA): New variable, set by configure.
8860 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM and $LD_SWITCH_SYSTEM_EXTRA,
8861 move out of cpp section.
8862 * s/freebsd.h (LD_SWITCH_SYSTEM):
8863 * s/gnu-linux.h (LD_SWITCH_SYSTEM):
8864 * s/netbsd.h (LD_SWITCH_SYSTEM):
8865 * s/openbsd.h (LD_SWITCH_SYSTEM): Move to configure.in.
8866
49ebbd65
DN
88672010-05-07 Dan Nicolaescu <dann@ics.uci.edu>
8868
8869 Define LIB_STANDARD and START_FILES using autoconf.
8870 * s/usg5-4.h (LIB_STANDARD):
8871 * s/netbsd.h (START_FILES):
8872 * s/irix6-5.h (LIB_STANDARD):
8873 * s/hpux10-20.h (LIB_STANDARD, START_FILES):
8874 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
8875 * s/freebsd.h (START_FILES):
8876 * s/darwin.h (START_FILES):
8877 * s/cygwin.h (START_FILES):
8878 * s/aix4-2.h (LIB_STANDARD):
8879 * m/ibmrs6000.h (START_FILES): Remove, move logic to configure.in.
8880 * Makefile.in (STARTFILES): Rename to START_FILES, define using
8881 autoconf, not cpp.
8882
d43c06d6
DN
88832010-05-06 Dan Nicolaescu <dann@ics.uci.edu>
8884
28823648
DN
8885 Remove NEED_BSDTTY and NEED_UNISTD_H.
8886 * s/hpux10-20.h (NEED_BSDTTY): Remove.
8887 * s/aix4-2.h (NEED_UNISTD_H): Remove.
8888 * systty.h: Simplify conditionals for including <sys/bsdtty.h>,
8889 <sys/ptyio.h> and <unistd.h>.
8890
aca00430
DN
8891 * emacs.c (main): Remove NO_DIR_LIBRARY conditional, unused.
8892
d43c06d6
DN
8893 * Makefile.in (STARTFILES): Conditionally define to make the usage clear.
8894 * s/gnu.h (START_FILES): Remove empty definition.
8895
3e56b11d
JD
88962010-05-06 Jan Djärv <jan.h.d@swipnet.se>
8897
8898 * xterm.c (x_draw_image_relief): Move declaration of extra to beginning.
8899
e3cf0cde
GM
89002010-05-06 Glenn Morris <rgm@gnu.org>
8901
8902 * Makefile.in (CPP, LN_S): Remove unused variables.
8903
774b9a60
SM
89042010-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
8905
8906 * syntax.c (Fchar_syntax): Check the arg is a character (bug#6080).
8907
4ab92842
LM
89082010-05-05 Lawrence Mitchell <wence@gmx.li>
8909
8910 * m/sparc.h: Fix typo in earlier change.
8911
178f2507
SM
89122010-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
8913
8914 Misc tweaks.
8915 * eval.c (Fdefvaralias): Remove unintended nested if.
8916 (internal_condition_case_2, internal_condition_case_n): Use ANSI type.
8917
80f00217 89182010-05-04 Bernhard Herzog <bh@intevation.de> (tiny change)
991be6d4
JD
8919
8920 * xsmfns.c (smc_save_yourself_CB): strlen(client_id) => strlen(cwd).
8921
ef03a4e6
DN
89222010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8923
58eb6cf0
DN
8924 Remove BSD_PGRPS.
8925 * s/bsd-common.h (BSD_PGRPS): Remove undef.
8926 * s/gnu-linux.h (BSD_PGRPS): Remove.
8927 * term.c (dissociate_if_controlling_tty):
8928 * sysdep.c (narrow_foreground_group, widen_foreground_group)
8929 (init_sys_modes, reset_sys_modes):
8930 * emacs.c (main):
8931 * callproc.c (Fcall_process, child_setup): Remove code depending
8932 on BSD_PGRPS.
8933
ef03a4e6
DN
8934 Remove POSIX_SIGNALS.
8935 * s/usg5-4.h (POSIX_SIGNALS):
8936 * s/netbsd.h (POSIX_SIGNALS):
8937 * s/msdos.h (POSIX_SIGNALS):
8938 * s/ms-w32.h (POSIX_SIGNALS):
8939 * s/hpux11.h (POSIX_SIGNALS):
8940 * s/gnu.h (POSIX_SIGNALS):
8941 * s/gnu-linux.h (POSIX_SIGNALS):
8942 * s/freebsd.h (POSIX_SIGNALS):
8943 * s/darwin.h (POSIX_SIGNALS):
8944 * s/cygwin.h (POSIX_SIGNALS):
8945 * s/aix4-2.h (POSIX_SIGNALS): Remove definition.
8946 * s/unixware.h:
8947 * s/sol2-6.h: Remove comments on POSIX_SIGNALS.
8948 * process.c (create_process):
8949 * syssignal.h:
8950 * sysdep.c (wait_for_termination, init_signals):
8951 * process.c (create_process):
8952 * msdos.c: POSIX_SIGNALS is always defined on all platforms,
8953 remove all code that assumes the contrary.
8954
49628785
GM
89552010-05-04 Glenn Morris <rgm@gnu.org>
8956
27a2cdfc
GM
8957 * s/gnu-linux.h (LD_SWITCH_SYSTEM): Use LD_SWITCH_X_SITE_AUX as a shell
8958 variable.
8959 * s/netbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8960 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH.
8961 * s/openbsd.h (LD_SWITCH_SYSTEM_tmp): Remove.
8962 (LD_SWITCH_SYSTEM): Use $LD_SWITCH_X_SITE_AUX_RPATH instead of
8963 LD_SWITCH_SYSTEM_tmp.
8964 * Makefile.in (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH):
8965 New variables, set by configure.
8966
eb21eab5
GM
8967 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8968 * s/darwin.h (HEADERPAD_EXTRA, LIBS_NSGUI): Remove.
8969 (LD_SWITCH_SYSTEM_TEMACS): Move to configure.in.
8970 * Makefile.in (LD_SWITCH_SYSTEM_TEMACS): New variable, set by configure.
8971 (TEMACS_LDFLAGS): Use $LD_SWITCH_SYSTEM_TEMACS.
8972
49628785
GM
8973 * s/aix4-2.h (C_SWITCH_SYSTEM):
8974 * m/alpha.h (C_SWITCH_MACHINE):
8975 Move to configure.in.
8976 * Makefile.in (C_SWITCH_MACHINE, C_SWITCH_SYSTEM):
8977 New variables, set by configure.
8978 (ALL_CFLAGS): Use $C_SWITCH_MACHINE and $C_SWITCH_SYSTEM in place of
8979 $c_switch_machine and $c_switch_system.
8980
7dff330b
DN
89812010-05-04 Dan Nicolaescu <dann@ics.uci.edu>
8982
8983 * s/hpux10-20.h (LIB_STANDARD): New definition.
8984 * Makefile.in (ORDINARY_LINK): Remove setting LIB_STANDARD based
8985 on it, not used anymore.
8986
53967e09
CY
89872010-05-03 Chong Yidong <cyd@stupidchicken.com>
8988
8989 * eval.c (internal_condition_case_n): Rename from
8990 internal_condition_case_2.
8991 (internal_condition_case_2): New function.
8992
8993 * xdisp.c (safe_call): Use internal_condition_case_n.
8994
8995 * fileio.c (Fdelete_file, internal_delete_file): New arg FORCE.
8996 (internal_delete_file, Frename_file): Callers changed.
8997
8998 * buffer.c (Fkill_buffer):
8999 * callproc.c (delete_temp_file): Callers changed (Bug#6070).
9000
9001 * lisp.h: Update prototypes.
9002
3dee6fdb
GM
90032010-05-03 Glenn Morris <rgm@gnu.org>
9004
9005 * Makefile.in (LIBX_EXTRA, LIBX_BASE): New variables.
9006 (LIBXT_OTHER, LIBX_OTHER): New, set by configure.
9007 (LIBXT): Set with configure, not cpp.
9008 (LIBX): Remove.
9009 (LIBES): Replace $LIBX with $LIBX_BASE and $LIBX_OTHER.
9010
a101e0fb
DN
90112010-05-02 Dan Nicolaescu <dann@ics.uci.edu>
9012
9013 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Remove.
9014 The FreeBSD is not needed, the default works, Solaris version is
9015 not needed, and the remaining case is not supported by configure.
9016
f63d0028
JD
90172010-05-02 Jan Djärv <jan.h.d@swipnet.se>
9018
9019 * xsmfns.c (CHDIR_OPT): New define.
9020 (smc_save_yourself_CB): Add CHDIR_OPT to options to use when
9021 restarting emacs.
9022
9023 * xterm.c (x_connection_closed): Call Fkill_emacs instead of
9024 shut_down_emacs.
9025
9026 * emacs.c (USAGE1): Mention --chdir.
9027 (main): Handle --chdir.
9028 (standard_args): Add --chdir.
9029 (fatal_error_signal): Call Fkill_emacs for SIGTERM and SIGHUP (Bug
9030 #5552).
9031
e4814a9f
DN
90322010-05-01 Dan Nicolaescu <dann@ics.uci.edu>
9033
cd03c74a
DN
9034 Remove LD_SWITCH_MACHINE.
9035 * Makefile.in (LD_SWITCH_MACHINE): Remove definition, unused.
9036 (TEMACS_LDFLAGS): Do not use LD_SWITCH_MACHINE.
9037
c3a398a1
DN
9038 Clean up IRIX code.
9039 * m/iris4d.h (TERMINFO, FIRST_PTY_LETTER): Move definitions ...
9040 * s/irix6-5.h (TERMINFO, FIRST_PTY_LETTER): ... here.
9041
87e7285c
DN
9042 Clean up AIX code.
9043 * m/ibmrs6000.inp: Remove file, unused.
9044 * m/ibmrs6000.h (IBMR2AIX): Remove, unused.
9045 (LD_SWITCH_MACHINE): Rename to LD_SWITCH_SYSTEM_TEMACS, and move
9046 definition ...
9047 * s/aix4-2.h (LD_SWITCH_SYSTEM_TEMACS): ... here.
9048
80f00217
JB
9049 * sysdep.c (child_setup_tty, init_sys_modes): Remove !IBMR2AIX code,
9050 unused.
e4814a9f 9051
59ca28de
EZ
90522010-05-01 Eli Zaretskii <eliz@gnu.org>
9053
197daef4
EZ
9054 Emulate POSIX_SIGNALS on MS-Windows.
9055
9056 * s/ms-w32.h (POSIX_SIGNALS, struct sigaction, SIG_BLOCK)
9057 (SIG_SETMASK, SIG_UNBLOCK): Define.
d6dae14b
EZ
9058
9059 * sysdep.c (sys_signal) [WINDOWSNT]: #ifdef away.
9060 (wait_for_termination) [WINDOWSNT]: Move MS-Windows specific code
9061 from non-POSIX_SIGNALS section to POSIX_SIGNALS section.
9062
80f00217
JB
9063 * w32.c (sigemptyset, sigaddset, sigfillset, sigprocmask):
9064 New stubs.
197daef4 9065
af7c7572
EZ
9066 Miscellaneous fixes of bidi display.
9067
59ca28de
EZ
9068 * xdisp.c (find_row_end): New function, refactored from display_line.
9069 (display_line): Use it.
017ea819
EZ
9070 (extend_face_to_end_of_line): In almost-filled rows, extend only
9071 if the row is R2L and not continued.
166e930d 9072 (display_line): Fix prepending of truncation glyphs to R2L rows.
af7c7572 9073 Preserve overlay and string info in row->end.
166e930d
EZ
9074 (insert_left_trunc_glyphs): Support addition of left truncation
9075 glyphs to R2L rows.
b47e0dcf 9076 (set_cursor_from_row): Don't place cursor on the vertical border
af7c7572
EZ
9077 glyph between adjacent windows. Fix a crash when a display string
9078 is continued to the next line. Don't return zero if cursor was
9079 found by `cursor' property of a display string.
b47e0dcf
EZ
9080 (try_cursor_movement): Don't assume that row->end == (row+1)->start,
9081 test for that explicitly.
59ca28de 9082
7acac9f4
GM
90832010-05-01 Glenn Morris <rgm@gnu.org>
9084
9085 * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null,
9086 for clarity.
9087 (OTHER_OBJ): Remove.
9088 (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure.
9089 (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ.
9090
45841e65
KK
90912010-05-01 Karel Klíč <kklic@redhat.com>
9092
9093 * fileio.c (Ffile_selinux_context): Context functions may return null.
9094
afc61943
DN
90952010-04-30 Dan Nicolaescu <dann@ics.uci.edu>
9096
80f00217 9097 * s/gnu.h (POSIX_SIGNALS, START_FILES): New definitions.
afc61943 9098
5a1bb006
GM
90992010-04-30 Glenn Morris <rgm@gnu.org>
9100
9101 * Makefile.in (vmlimitobj) [!SYSTEM_MALLOC]: New variable. (Bug#6065)
9102 (OTHER_OBJ): Define as a separate variable, for clarity.
9103
210af043
J
91042010-04-30 Jan Djärv <jan.h.d@swipnet.se>
9105
2f8f196d 9106 * xsettings.c: Include limits.h and update file comment.
210af043 9107
0a7df391
GM
91082010-04-30 Glenn Morris <rgm@gnu.org>
9109
d5096f16
GM
9110 * Makefile.in (OLDXMENU, LIBXMENU) [HAVE_MENUS]:
9111 Set with configure, not cpp.
9112 (LIBW): Remove, replace with $TOOLKIT_LIBW.
9113
7eb1ac33
GM
9114 * Makefile.in (mallocobj): Remove.
9115 (otherobj): Simplify using @OTHER_OBJ@.
9116
517d086b
GM
9117 * Makefile.in (dispnew.o, frame.o, fringe.o, font.o, fontset.o)
9118 (keyboard.o, window.o, xdisp.o, xfaces.o, menu.o):
9119 Don't bother making nsgui.h dependency platform-specific.
9120
0a7df391
GM
9121 * Makefile.in (nsfns.o): Remove duplicate nsgui.h dependency.
9122
d6d23852
SM
91232010-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
9124
d2630aef
SM
9125 * process.c (read_process_output, exec_sentinel): Don't burp if the
9126 sentinel/filter kills the current buffer (bug#6060).
9127
f9dddf52 9128 Fix wrong-docstring problem introduced with hash-consing. (Bug#6008)
d6d23852
SM
9129 * eval.c (Fautoload): Set doc to a unique number rather than to 0.
9130 Remove unused var `args'.
9131 * lisp.h (XSETCARFASTINT, XSETCDRFASTINT): Remove.
9132 (LOADHIST_ATTACH): Wrap with do...while to avoid surprises for callers.
9133 * doc.c (store_function_docstring): Use XSETCAR.
9134
f1e3642a
GM
91352010-04-28 Glenn Morris <rgm@gnu.org>
9136
faf535f8
GM
9137 * Makefile.in (BASE_WINDOW_SUPPORT, X_WINDOW_SUPPORT): New variables.
9138 (WINDOW_SUPPORT) [HAVE_WINDOW_SYSTEM]: Use them.
9139
c40f9449
GM
9140 * Makefile.in (CYGWIN_OBJ): Set with configure, not cpp.
9141
658f86ca
GM
9142 * Makefile.in (GPM_MOUSE_SUPPORT): New, set by configure.
9143 (MOUSE_SUPPORT) [!HAVE_MOUSE]: Use $GPM_MOUSE_SUPPORT.
9144
bc0b5f61
GM
9145 * Makefile.in (FONT_OBJ): New, set by configure.
9146 (FONT_DRIVERS): Use $FONT_OBJ.
9147
294c50a0
GM
9148 * Makefile.in (LIBXMU): Set with configure, not cpp.
9149 * s/aix4-2.h (LIBXMU):
9150 * s/hpux10-20.h (LIBXMU):
9151 Remove definition, now set in configure.
9152
e6ec4e99
GM
9153 * Makefile.in (NS_OBJ, NS_SUPPORT): Set with configure, not cpp.
9154
f1e3642a
GM
9155 * m/amdx86-64.h [i386]: Move this test to configure.in.
9156
c6ea2936
GM
91572010-04-27 Glenn Morris <rgm@gnu.org>
9158
8fdac2c3
GM
9159 * Makefile.in (LIBXTR6): Set with configure, not cpp.
9160 * s/unixware.h (NEED_LIBW): Remove definition.
9161
986fb647
GM
9162 * Makefile.in (LUCID_LIBW, MOTIF_LIBW): Remove, replacing by...
9163 (TOOLKIT_LIBW): New, set by configure.
9164 (@X_TOOLKIT_TYPE@): No longer define it.
9165
c6ea2936
GM
9166 * Makefile.in (LIBXP): Remove, since included in MOTIF_LIBW.
9167 (MOTIF_LIBW): Set with configure, not cpp.
9168 * s/aix4-2.h (LIB_MOTIF):
9169 * s/gnu-linux.h (LIB_MOTIF):
9170 * s/unixware.h (LIB_MOTIF): Move to configure.in.
9171
aaa36002
DN
91722010-04-27 Dan Nicolaescu <dann@ics.uci.edu>
9173
9174 Reduce CPP usage.
9175 * Makefile.in (LIB_X11_LIB): Remove, inline in the only user.
9176 (obj): Use autoconf for unexec instead of cpp.
bba3e508
SM
9177 (C_SWITCH_SYSTEM, C_SWITCH_MACHINE, C_SWITCH_X_SITE):
9178 Remove definitions and undefs. Inline definitions in the only user.
ed6281b0 9179 (ALL_CFLAGS): Substitute C_SWITCH_X_SYSTEM using autoconf.
aaa36002 9180
b678dd8b
GM
91812010-04-27 Glenn Morris <rgm@gnu.org>
9182
76cda504
GM
9183 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Change the logic around,
9184 since the defaults (set by the system file) are fine in most cases.
9185 [GNU_LINUX, __OpenBSD__, __NetBSD__, __APPLE__]: Remove sections.
9186 * m/ibms390x.h (START_FILES, LIB_STANDARD):
9187 * m/macppc.h (START_FILES, LIB_STANDARD) [GNU_LINUX]:
9188 * m/sparc.h (START_FILES, LIB_STANDARD) [__linux__]:
9189 Remove definitions, since they are set correctly in s/gnu-linux.h.
9190 * s/freebsd.h (START_FILES, LIB_STANDARD):
9191 * s/gnu-linux.h (START_FILES, LIB_STANDARD):
9192 * s/hpux10-20.h (START_FILES):
9193 * s/netbsd.h (START_FILES, LIB_STANDARD, START_FILES_1, END_FILES_1):
9194 Use $CRT_DIR in place of fixed /usr/lib, /lib directories.
9195
b678dd8b
GM
9196 * Makefile.in (LIBXP, LUCID_LIBW, WIDGET_OBJ): Set via configure.
9197 (MOTIF_LIBW): Use $LIBXP.
9198 (otherobj): Use $WIDGET_OBJ.
9199
9452ded1
DN
92002010-04-26 Dan Nicolaescu <dann@ics.uci.edu>
9201
7e10844c
DN
9202 * Makefile.in (LIBS_MACHINE): Remove, unused.
9203
9452ded1
DN
9204 Use autoconf instead of cpp for LIB_MATH.
9205 * s/darwin.h (LIB_MATH): Do not define here, move to configure.
9206 * s/cygwin.h (LIB_MATH): Likewise.
9207 * Makefile.in (LIB_MATH): Do not define with cpp.
9208 (LIBES): Use autoconf for LIB_MATH.
9209
fcebfc6a
KH
92102010-04-26 Kenichi Handa <handa@m17n.org>
9211
9212 * composite.c (Ffind_composition_internal): Fix the return value
9213 for an automatic composition.
9214
39e2ad1b
DN
92152010-04-25 Dan Nicolaescu <dann@ics.uci.edu>
9216
9217 Remove all NO_ARG_ARRAY uses.
9218 * fns.c (concat2, concat3, nconc2):
9219 * eval.c (apply1, call1, call2, call3, call4, call5, call6)
9220 (call7): Remove NO_ARG_ARRAY usage, assume it's always true.
9221 * m/xtensa.h (NO_ARG_ARRAY):
9222 * m/template.h (NO_ARG_ARRAY):
9223 * m/sparc.h (NO_ARG_ARRAY):
9224 * m/sh3.h (NO_ARG_ARRAY):
9225 * m/mips.h (NO_ARG_ARRAY):
9226 * m/macppc.h (NO_ARG_ARRAY):
9227 * m/iris4d.h (NO_ARG_ARRAY):
9228 * m/intel386.h (NO_ARG_ARRAY):
9229 * m/ibms390x.h (NO_ARG_ARRAY):
9230 * m/ibms390.h (NO_ARG_ARRAY):
9231 * m/ibmrs6000.h (NO_ARG_ARRAY):
9232 * m/ia64.h (NO_ARG_ARRAY):
9233 * m/hp800.h (NO_ARG_ARRAY):
9234 * m/arm.h (NO_ARG_ARRAY):
9235 * m/amdx86-64.h (NO_ARG_ARRAY):
9236 * m/alpha.h (NO_ARG_ARRAY): Remove definition.
9237
adf4f59c
EZ
92382010-04-25 Eli Zaretskii <eliz@gnu.org>
9239
6bdf5d65
EZ
9240 * xdisp.c (display_line): Don't assume 2nd call to
9241 get_next_display_element cannot return zero. (Bug#6030)
f538fcec
EZ
9242 (iterate_out_of_display_property): New function, body from pop_it.
9243 (pop_it): Use it.
adf4f59c 9244
dfbbda83
GM
92452010-04-24 Glenn Morris <rgm@gnu.org>
9246
9247 * m/amdx86-64.h (START_FILES, LIB_STANDARD) [__OpenBSD__]:
9248 For clarity, revert to using fixed /usr/lib rather than $CRT_DIR.
9249 (START_FILES, LIB_STANDARD) [__FreeBSD__]: Merge into the generic case,
9250 since CRT_DIR defaults to /usr/lib. Suggested by Dan Nicolaescu.
9251
2d4018aa
EZ
92522010-04-24 Eli Zaretskii <eliz@gnu.org>
9253
a49884a6
EZ
9254 * xdisp.c (display_line): Use `reseat' instead of `reseat_1', and
9255 use `get_next_display_element' and `set_iterator_to_next' to
9256 advance to the next character, when looking for the character that
9257 begins the next row.
9258
76db6fcc 9259 * .gdbinit: Add a "set Fmake_symbol" line to force GDB to load the
2d4018aa
EZ
9260 definition of "struct Lisp_Symbol".
9261
70eab5c1
GM
92622010-04-24 Glenn Morris <rgm@gnu.org>
9263
9264 * Makefile.in (CRT_DIR): New variable, set by configure.
9265 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
9266 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
9267
1ad4cc3d
DN
92682010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9269
e769f484
DN
9270 * Makefile.in: Remove C_SWITCH_X_MACHINE, unused.
9271
4196ff33
DN
9272 * s/cygwin.h (LIBS_DEBUG): Remove, unused.
9273
879b0ee4
DN
9274 Remove redundant flags.
9275 * s/freebsd.h (C_SWITCH_SYSTEM):
9276 * s/hpux10-20.h (C_SWITCH_X_SYSTEM, LD_SWITCH_X_DEFAULT):
9277 * s/netbsd.h (C_SWITCH_SYSTEM):
9278 * s/openbsd.h (LD_SWITCH_X_DEFAULT): Remove, configure takes care
9279 of these.
9280
03cbbcb8
DN
9281 Simplify m/intel386.h.
9282 * m/intel386.h (CRT0_DUMMIES): Remove, inline value in the only
9283 user: ecrt0.c.
9284 (SOLARIS2): Remove LOAD_AVE_TYPE, LOAD_AVE_CVT, LIBS_MACHINE, unused.
9285 (USG5_4): Move LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE definitions to
9286 the only user: s/unixware.h.
9287 * ecrt0.c: Remove #ifndef static. Inline CRT0_DUMMIES definition
9288 from m/intel386.h.
bba3e508
SM
9289 * s/unixware.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, FSCALE):
9290 Definitions moved here from m/intel386.h.
03cbbcb8 9291
1ad4cc3d
DN
9292 * m/mips.h: Remove #if 0 code.
9293
8785b888
EZ
92942010-04-23 Eli Zaretskii <eliz@gnu.org>
9295
728588cc
EZ
9296 Fix display of composed characters from L2R scripts in bidi buffers.
9297 * xdisp.c (set_iterator_to_next, next_element_from_composition):
9298 After advancing IT past the composition, resync the bidi iterator
9299 with IT's position. (Bug#5977)
9300
a63f80b4
DN
93012010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9302
9303 * Makefile.in (LD_SWITCH_MACHINE_TEMACS): Remove, unused.
9304 (TEMACS_LDFLAGS): Don't use LD_SWITCH_SYSTEM_TEMACS.
9305
ff5dec5c
SM
93062010-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
9307
9308 * gtkutil.c: Include xsettings.h for Ftool_bar_get_system_style.
9309
8785b888
EZ
93102010-04-23 Eli Zaretskii <eliz@gnu.org>
9311
58ccf243 9312 Support `display' text properties and overlay strings in bidi buffers.
8785b888
EZ
9313 * xdisp.c (pop_it): When the stack is popped after displaying
9314 from a string, bidi-iterate to exit from the text portion covered
9315 by the `display' property or overlay. (Bug#5988, bug#5920)
9316
feeb1604
DN
93172010-04-23 Dan Nicolaescu <dann@ics.uci.edu>
9318
8e324eb6
DN
9319 * m/macppc.h (LD_SWITCH_SYSTEM_TEMACS): Remove #undef.
9320 (LD_SWITCH_MACHINE_TEMACS): Remove, configure sets nocombreloc.
9321
809fcaba
DN
9322 * s/netbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure sets nocombreloc.
9323 * s/openbsd.h (LD_SWITCH_SYSTEM_TEMACS): Remove.
9324
ed710380
DN
9325 Simplify STARTFILES definition.
9326 * s/hpux10-20.h (START_FILES): Explicitly define here instead of
9327 relying on Makefile.in to define it.
9328 * s/cygwin.h (START_FILES): Likewise.
9329 * Makefile.in (STARTFILES): Remove conditional code, not needed anymore.
9330
feeb1604
DN
9331 Clean up Solaris code.
9332 * s/sol2-6.h (LD_SWITCH_SYSTEM_TEMACS, C_SWITCH_X_SYSTEM)
9333 (LIB_MOTIF): Remove, configure takes care of this.
9334 (NOT_USING_MOTIF): Remove, unused.
9335 * xrdb.c: Remove #if 0-ed #include.
9336 (SYSV): Remove conditional for old SysV.
9337 * sysdep.c (closedir): Remove conditional code for Solaris,
9338 Solaris has closedir.
9339
a0d0b563
JD
93402010-04-22 Jan Djärv <jan.h.d@swipnet.se>
9341
9342 * xsettings.c (read_and_apply_settings): Check if current_font is
9343 NULL before strcmp (Bug#6001).
9344
56bae7c7
DN
93452010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
9346
9347 Clean up HP-UX files.
9348 * m/hp800.h (NO_REMAP, VIRT_ADDR_VARIES, DATA_SEG_BITS)
9349 (DATA_START, TEXT_START, LOAD_AVE_TYPE, LOAD_AVE_CVT)
9350 (LDAV_SYMBOL, index, rindex): Move definitions only used in HP-UX ...
9351 * s/hpux10-20.h: ... to the only user, here.
9352
372b7a95
EZ
93532010-04-21 Eli Zaretskii <eliz@gnu.org>
9354
9355 * bidi.c (bidi_find_paragraph_start, bidi_at_paragraph_end): Don't
9356 use buffer-local values of paragraph-start and paragraph-separate.
9357 <paragraph_start_re, paragraph_separate_re>: Rename from
9358 fallback_paragraph_start_re and fallback_paragraph_separate_re.
9359 (Bug#5992)
9360
f904c0f9
JD
93612010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9362
9363 * xsettings.c: Qmonospace_font_name, Qtool_bar_style and
9364 current_tool_bar_style are new.
9365 (store_config_changed_event): Rename from store_font_changed_event.
9366 (XSETTINGS_TOOL_BAR_STYLE): New define.
9367 (SEEN_FONT, SEEN_TB_STYLE): New enum values.
9368 (struct xsettings): Add font and tb_style, set xft stuff inside #ifdef
9369 HAVE_XFT.
9370 (something_changedCB): store_font_changed_event is now
c4cc8b9a 9371 store_config_changed_event.
bba3e508
SM
9372 (parse_settings): Rename from parse_xft_settings.
9373 Read non-xft xsettings outside #ifdef HAVE_XFT.
ef1b0ba7 9374 (read_settings): Rename from read_xft_settings.
f904c0f9
JD
9375 (apply_xft_settings): Take current settings as parameter. Do not
9376 call read_(xft)_settings.
9377 (read_and_apply_settings): New function.
bba3e508
SM
9378 (xft_settings_event): Do non-xft stuff out of HAVE_XFT.
9379 Call read_and_apply_settings if there are settings to be read.
ef1b0ba7 9380 (init_xsettings): Rename from init_xfd_settings.
f904c0f9
JD
9381 Call read_and_apply_settings unconditionally.
9382 (xsettings_initialize): Call init_xsettings.
9383 (Ftool_bar_get_system_style): New function.
9384 (syms_of_xsettings): Define Qmonospace_font_name and
9385 Qtool_bar_style. Initialize current_tool_bar_style to nil.
f9dddf52 9386 defsubr Stool_bar_get_system_style. Fprovide on
f904c0f9 9387 dynamic-setting.
01c35094 9388 Move misplaced HAVE_GCONF.
f904c0f9
JD
9389
9390 * xsettings.h (Ftool_bar_get_system_style): Declare.
9391
9392 * xdisp.c: Vtool_bar_style, tool_bar_max_label_size,
9393 Qtext, Qboth, Qboth_horiz are new.
9394 (syms_of_xdisp): Intern Qtext, Qboth, Qboth_horiz, DEFVAR
9395 Vtool_bar_style, tool_bar_max_label_size.
9396
9397 * lisp.h: Extern declare Qtext, Qboth, Qboth_horiz.
9398
9399 * keyboard.c: QClabel is new.
9400 (parse_tool_bar_item): Take out QClabel from tool bar items.
9401 Try to construct a label if ther is no QClabel.
9402 (syms_of_keyboard): Intern :label as QClabel.
9403
9404 * dispextern.h (tool_bar_item_idx): TOOL_BAR_ITEM_LABEL is new.
9405 (Vtool_bar_style, tool_bar_max_label_size, DEFAULT_TOOL_BAR_LABEL_SIZE):
9406 New.
9407
9408 * Makefile.in (SOME_MACHINE_LISP): font-setting.el renamed to
9409 dynamic-setting.el.
9410
9411 * gtkutil.c (xg_tool_bar_menu_proxy): Handle label in tool bar item.
9412 (xg_make_tool_item, xg_show_toolbar_item): New function.
9413 (update_frame_tool_bar): Take label from TOOL_BAR_ITEM_LABEL.
9414 Call xg_make_tool_item to make a tool bar item.
9415 Call xg_show_toolbar_item. Use wtoolbar instead of x->toolbar_widget.
9416
9417 * xterm.c (x_draw_image_relief): Take Vtool_bar_button_margin
9418 into account for toolbars.
9419
c632dfda
JD
94202010-04-21 Jan Djärv <jan.h.d@swipnet.se>
9421
9422 * data.c (make_blv): Declarations before code (Bug#5993).
9423
10efe302
GM
94242010-04-21 Glenn Morris <rgm@gnu.org>
9425
9426 * Makefile.in (DBUS_OBJ, GTK_OBJ, XMENU_OBJ, XOBJ):
9427 Define using autoconf, not cpp.
9428 (LIBXSM): New variable, set by autoconf.
9429 (LIBXT): Use $LIBXSM.
9430
4285ac5a
DN
94312010-04-21 Dan Nicolaescu <local_user@dannlt>
9432
3ec759e7
DN
9433 Remove NOMULTIPLEJOBS, unused.
9434 * s/template.h (NOMULTIPLEJOBS):
9435 * s/msdos.h (NOMULTIPLEJOBS): Remove, unused.
9436
4285ac5a
DN
9437 Simplify LD_SWITCH_SYSTEM_TEMACS usage.
9438 * s/freebsd.h (LD_SWITCH_SYSTEM_TEMACS):
9439 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Remove, configure
9440 detects -znocombreloc and passes it to the linker
9441 * s/hpux10-20.h (LD_SWITCH_SYSTEM_TEMACS): Remove, empty.
9442
2807228d
GM
94432010-04-21 Glenn Morris <rgm@gnu.org>
9444
9445 * Makefile.in (LIBSELINUX_LIBS): Move out of #ifdef.
9446
574c05e2
KK
94472010-04-21 Karel Klíč <kklic@redhat.com>
9448
9449 * Makefile.in (LIBSELINUX_LIBS): New.
9450 (LIBES): Add $LIBSELINUX_LIBS.
9451 * eval.c, lisp.h (call7): New function.
9452 * fileio.c [HAVE_LIBSELINUX]: Include selinux headers.
9453 (Ffile_selinux_context, Fset_file_selinux_context):
9454 New functions.
9455 (Fcopy_file): New parameter preserve-selinux-context.
9456 (Frename_file): Preserve selinux context when renaming by copy-file.
9457
91eac4bb 94582010-04-21 Juanma Barranquero <lekktu@gmail.com>
acd0102a 9459 Eli Zaretskii <eliz@gnu.org>
91eac4bb 9460
50426a04
JB
9461 Don't depend on cm.c or termcap.c on Windows, use stubs.
9462 * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
9463 ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
9464 * w32console.c (current_tty, cost): New vars; lifted from cm.c.
9465 (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
9466 (sys_tputs, sys_tgetstr): New stubs.
9467 * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
9468 (tputs, tgetstr): New; define to sys_*.
91eac4bb 9469
938efb77
JB
94702010-04-20 Juanma Barranquero <lekktu@gmail.com>
9471
9472 * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
9473
b4bf28b7
SM
94742010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9475
8b1e1112
SM
9476 * data.c (Fmake_variable_buffer_local, Fmake_local_variable):
9477 Just signal a warning rather than an error when inside a let.
9478 (Fmake_variable_frame_local): Add the same test.
9479
933ac235
SM
9480 * font.c (syms_of_font): Make the style table vars read-only.
9481
b4bf28b7
SM
9482 * buffer.h (struct buffer): Remove unused var `direction_reversed'.
9483 * buffer.c (init_buffer_once, syms_of_buffer): Remove its initialization.
9484
9485 * bidi.c (bidi_initialize): Simplify fallback_paragraph_*_re init.
9486
93d68d0c
EZ
94872010-04-20 Eli Zaretskii <eliz@gnu.org>
9488
9489 Fix R2L paragraph display on TTY.
9490
9491 * xdisp.c (unproduce_glyphs): New function.
9492 (display_line): Use it when produced glyphs are discarded from R2L
9493 glyph rows.
9494 (append_composite_glyph): In R2L rows, prepend the glyph rather
9495 than appending it.
9496
9497 * term.c (append_composite_glyph): In R2L rows, prepend the glyph
9498 rather than append it. Set up the resolved_level and bidi_type
9499 attributes of the appended glyph.
283ccc18
EZ
9500 (produce_special_glyphs): Mirror the backslash continuation
9501 character in R2L lines.
93d68d0c 9502
283ccc18 9503 Implement display of R2L paragraphs in GUI sessions.
26cdf528 9504
283ccc18
EZ
9505 * xdisp.c [HAVE_WINDOW_SYSTEM]: Add prototype for
9506 append_stretch_glyph.
bba3e508
SM
9507 (set_cursor_from_row) <cursor_x>: Remove unused variable.
9508 Fix off-by-one error in computing x at end of text in the row.
283ccc18
EZ
9509 (append_stretch_glyph): In reversed row, prepend the glyph rather
9510 than append it. Set resolved_level and bidi_type of the glyph.
9511 (extend_face_to_end_of_line): If the row is reversed, prepend a
9512 stretch glyph whose width is such that the rightmost glyph will be
9513 drawn at the right margin of the window. Fix off-by-one error on
bba3e508
SM
9514 TTY frames in testing whether a line needs face extension.
9515 Fix face extension at ZV. If this is the last glyph row, use
283ccc18
EZ
9516 DEFAULT_FACE_ID, to avoid painting the rest of the window with the
9517 region face.
bba3e508
SM
9518 (set_cursor_from_row, display_line):
9519 Use MATRIX_ROW_CONTINUATION_LINE_P instead of testing value of
26cdf528 9520 row->continuation_lines_width.
283ccc18
EZ
9521 (next_element_from_buffer): Don't call bidi_paragraph_init if we
9522 are at ZV. Fixes a crash when reseated to ZV by
9523 try_window_reusing_current_matrix.
45903529
EZ
9524 (display_and_set_cursor, erase_phys_cursor): Handle negative HPOS,
9525 which happens with R2L glyph rows. Fixes a crash when inserting a
9526 character at end of an R2L line.
283ccc18
EZ
9527 (set_cursor_from_row): Don't be fooled by truncated rows: don't
9528 treat them as having zero-width characters. Improve comments.
9529 Don't reverse pos_before and pos_after for reversed glyph rows.
9530 Set cursor.x to negative value when the cursor might be on the
9531 left fringe.
9532 (IT_OVERFLOW_NEWLINE_INTO_FRINGE): For R2L lines, consider the
9533 left fringe, not the right one.
f951a506
EZ
9534 (notice_overwritten_cursor, draw_phys_cursor_glyph)
9535 (erase_phys_cursor): For reversed cursor_row, support cursor on
9536 the left fringe.
9537
283ccc18
EZ
9538 * fringe.c (update_window_fringes): For R2L rows, swap the bitmaps
9539 of continuation indicators on the fringes.
9540 (draw_fringe_bitmap): For reversed glyph rows, allow cursor on the
9541 left fringe.
9542
f951a506
EZ
9543 * w32term.c (w32_draw_window_cursor): For reversed glyph rows,
9544 draw cursor on the left fringe.
9545
9546 * xterm.c (x_draw_window_cursor): For reversed glyph rows, draw
9547 cursor on the left fringe.
9548
f951a506
EZ
9549 * dispnew.c (update_text_area): Handle reversed desired rows when
9550 the cursor is on the left fringe.
9551 (set_window_cursor_after_update): Limit cursor's hpos by -1 from
9552 below, not by 0, for when the cursor is on the left fringe.
9553
3bb49aaf
JD
95542010-04-20 Jan Djärv <jan.h.d@swipnet.se>
9555
9556 * gtkutil.c (xg_event_is_for_scrollbar): Check if grabbed
9557 widget is a scrollbar.
9558
c0be27fd
KH
95592010-04-20 Kenichi Handa <handa@m17n.org>
9560
9561 * charset.c (char_charset): Consider Vcharset_non_preferred_head
9562 only when the arg CHARSET_LIST is nil.
9563
ce5b453a
SM
95642010-04-20 Stefan Monnier <monnier@iro.umontreal.ca>
9565
9566 Make variable forwarding explicit rather the using special values.
9567 Basically, this makes the structure of buffer-local values and object
9568 forwarding explicit in the type of Lisp_Symbols rather than use
9569 special Lisp_Objects for that. This tends to lead to slightly more
9570 verbose code, but is more C-like, simpler, and makes it easier to make
9571 sure we handled all cases, among other things by letting the compiler
9572 help us check it.
9573 * lisp.h (enum Lisp_Misc_Type, union Lisp_Misc):
9574 Removing forwarding objects.
9575 (enum Lisp_Fwd_Type, enum symbol_redirect, union Lisp_Fwd): New types.
9576 (struct Lisp_Symbol): Make the various forms of variable-forwarding
9577 explicit rather than hiding them inside Lisp_Object "values".
9578 (XFWDTYPE): New macro.
9579 (XINTFWD, XBOOLFWD, XOBJFWD, XKBOARD_OBJFWD): Redefine.
9580 (XBUFFER_LOCAL_VALUE): Remove.
9581 (SYMBOL_VAL, SYMBOL_ALIAS, SYMBOL_BLV, SYMBOL_FWD, SET_SYMBOL_VAL)
9582 (SET_SYMBOL_ALIAS, SET_SYMBOL_BLV, SET_SYMBOL_FWD): New macros.
9583 (SYMBOL_VALUE, SET_SYMBOL_VALUE): Remove.
9584 (struct Lisp_Intfwd, struct Lisp_Boolfwd, struct Lisp_Objfwd)
9585 (struct Lisp_Buffer_Objfwd, struct Lisp_Kboard_Objfwd):
9586 Remove the Lisp_Misc_* header.
9587 (struct Lisp_Buffer_Local_Value): Redefine.
9588 (BLV_FOUND, SET_BLV_FOUND, BLV_VALUE, SET_BLV_VALUE): New macros.
9589 (struct Lisp_Misc_Any): Add filler to get the right size.
9590 (struct Lisp_Free): Use struct Lisp_Misc_Any rather than struct
9591 Lisp_Intfwd.
9592 (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL, DEFVAR_INT)
9593 (DEFVAR_KBOARD): Allocate a forwarding object.
9594 * data.c (do_blv_forwarding, store_blv_forwarding): New macros.
9595 (let_shadows_global_binding_p): New function.
9596 (union Lisp_Val_Fwd): New type.
9597 (make_blv): New function.
9598 (swap_in_symval_forwarding, indirect_variable, do_symval_forwarding)
9599 (store_symval_forwarding, swap_in_global_binding, Fboundp)
9600 (swap_in_symval_forwarding, find_symbol_value, Fset)
9601 (let_shadows_buffer_binding_p, set_internal, default_value)
9602 (Fset_default, Fmake_variable_buffer_local, Fmake_local_variable)
9603 (Fkill_local_variable, Fmake_variable_frame_local)
9604 (Flocal_variable_p, Flocal_variable_if_set_p)
9605 (Fvariable_binding_locus):
9606 * xdisp.c (select_frame_for_redisplay):
9607 * lread.c (Fintern, Funintern, init_obarray, defvar_int)
9608 (defvar_bool, defvar_lisp_nopro, defvar_lisp, defvar_kboard):
9609 * frame.c (store_frame_param):
9610 * eval.c (Fdefvaralias, Fuser_variable_p, specbind, unbind_to):
9611 * bytecode.c (Fbyte_code) <varref, varset>: Adapt to the new symbol
9612 value structure.
9613 * buffer.c (PER_BUFFER_SYMBOL): Move from buffer.h.
9614 (clone_per_buffer_values): Only adjust markers into the current buffer.
9615 (reset_buffer_local_variables): PER_BUFFER_IDX is never -2.
9616 (Fbuffer_local_value, set_buffer_internal_1)
9617 (swap_out_buffer_local_variables):
9618 Adapt to the new symbol value structure.
9619 (DEFVAR_PER_BUFFER): Allocate a Lisp_Buffer_Objfwd object.
9620 (defvar_per_buffer): Take a new arg for the fwd object.
9621 (buffer_lisp_local_variables): Return a proper alist (different fix
9622 for bug#4138).
9623 * alloc.c (Fmake_symbol): Use SET_SYMBOL_VAL.
9624 (Fgarbage_collect): Don't handle buffer_defaults specially.
9625 (mark_object): Handle new symbol value structure rather than the old
9626 special Lisp_Misc_* objects.
9627 (gc_sweep) <symbols>: Free also the buffer-local-value objects.
9628 * term.c (set_tty_color_mode):
9629 * bidi.c (bidi_initialize): Don't access the ->value field directly.
9630 * buffer.h (PER_BUFFER_VAR_OFFSET): Don't bother with
9631 a buffer_local_flags.
9632 * print.c (print_object): Get rid of impossible forwarding objects.
9633
fd3998ff
EZ
96342010-04-19 Eli Zaretskii <eliz@gnu.org>
9635
9636 * bidi.c (bidi_get_type, bidi_get_category)
9637 (bidi_at_paragraph_end, bidi_resolve_weak, bidi_resolve_neutral)
ce5b453a
SM
9638 (bidi_type_of_next_char, bidi_level_of_next_char):
9639 Declare static. Use `INLINE' rather than `inline'.
fd3998ff 9640
e42cd1a7
JB
96412010-04-19 Juanma Barranquero <lekktu@gmail.com>
9642
9643 * dired.c (Ffile_attributes): Fix typo in docstring.
9644
6e104790 96452010-04-19 Adrian Robert <Adrian.B.Robert@gmail.com>
79353a53
AR
9646
9647 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
9648 NSInteger (Bug#5811).
9649
6e104790 96502010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
658b9b93
YM
9651
9652 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
9653 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
9654
6e104790 96552010-04-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
16009a0e
YM
9656
9657 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
9658
6e104790
SM
96592010-04-19 Chong Yidong <cyd@stupidchicken.com>
9660
9661 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
9662 terminal frames (Bug#5837).
9663
37dcfea0
EZ
96642010-04-19 Eli Zaretskii <eliz@gnu.org>
9665
d1da276f
EZ
9666 * .gdbinit (xsubchartable): New command.
9667
37dcfea0
EZ
96682010-04-19 Eli Zaretskii <eliz@gnu.org>
9669
9670 * xdisp.c (display_line): Don't write beyond the last glyph row in
9166b0f3 9671 the desired matrix. Fixes a crash in "emacs -nw" (bug#5972), see
37dcfea0
EZ
9672 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00075.html
9673 and
9674 http://lists.gnu.org/archive/html/emacs-devel/2010-04/msg00213.html
9675
e9515805
SM
96762010-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
9677
9678 * alloc.c (Fpurecopy): Hash-cons if requested.
9679 (syms_of_alloc): Update purify-flag docstring.
9680
22aa44a8
JD
96812010-04-18 Jan Djärv <jan.h.d@swipnet.se>
9682
9683 * gtkutil.c (xg_set_geometry): Set size in geometry string also.
9684 (x_wm_set_size_hint): Set USER_POS in hint_flags (Bug#5968).
9685
ebb5722e
EZ
96862010-04-17 Eli Zaretskii <eliz@gnu.org>
9687
9688 Fix a crash when an NSM character is inserted at BEGV.
9689
9690 * bidi.c (bidi_init_it): Fix initialization of bidi_it->prev.
9691 (bidi_resolve_weak): Don't use prev.type_after_w1 if it is
9692 NEUTRAL_B or UNKNOWN_BT.
9693
0f4442ef
EZ
96942010-04-16 Eli Zaretskii <eliz@gnu.org>
9695
9696 * xdisp.c (set_cursor_from_row): Don't consider possibility of
9697 other rows with cursor unless they are different from this row and
9698 this row is part of a continued line. (Bug#5943)
9699
7d4e45f8
DN
97002010-04-16 Dan Nicolaescu <dann@ics.uci.edu>
9701
9702 * s/freebsd.h: Restore osreldate.h include.
9703 Suggested by Naohiro Aota.
9704
5ba5ec85
J
97052010-04-16 Jan Djärv <jan.h.d@swipnet.se>
9706
9707 * xmenu.c (apply_systemfont_to_menu): *childs was incorrectly used.
9708
20af301d
CY
97092010-04-16 Ken Brown <kbrown@cornell.edu> (tiny change)
9710
9711 * s/cygwin.h: Avoid linking against static libgcc.
9712
a4b000fb
JL
97132010-04-15 Juri Linkov <juri@jurta.org>
9714
9715 * window.c: Add Qscroll_command.
9716 Remove Vscroll_preserve_screen_position_commands.
9717 (window_scroll_pixel_based, window_scroll_line_based): Check the
9718 `scroll-command' property on the last command instead of searching
9719 the last command in Vscroll_preserve_screen_position_commands.
9720 (syms_of_window): Initialize and staticpro `Qscroll_command'.
9721 Put Qscroll_command property on Qscroll_up and Qscroll_down.
9722 (scroll-preserve-screen-position): Doc fix.
9723 (Vscroll_preserve_screen_position_commands): Remove variable.
9724
bc319ba4
DN
97252010-04-15 Dan Nicolaescu <dann@ics.uci.edu>
9726
6bb24457
DN
9727 * xdisp.c (message): Do not use NO_ARG_ARRAY.
9728
19d4c244
DN
97292010-04-14 Dan Nicolaescu <dann@ics.uci.edu>
9730
9731 Reduce cpp use in Makefile.in.
9732 * Makefile.in (DBUS_CFLAGS, DBUS_LIBS, GCONF_CFLAGS, GCONF_LIBS)
9733 (LIBSOUND, CFLAGS_SOUND, RSVG_LIBS, RSVG_CFLAGS, INTERVALS_H)
9734 (GETLOADAVG_LIBS, RUN_TEMACS): Move to the autoconf section.
9735 (ORDINARY_LINK): Remove, defined in src/s/gnu.h.
9736 (CRT0_COMPILE): Remove, inline it in the only user.
9737
32129746
JL
97382010-04-14 Juri Linkov <juri@jurta.org>
9739
9740 * window.c (keys_of_window): Rebind `C-v' from `scroll-up' to
9741 `scroll-up-command' and `M-v' from `scroll-down' to
9742 `scroll-down-command'.
9743
9013a7f8
JL
97442010-04-14 Juri Linkov <juri@jurta.org>
9745
9746 * window.c (Vscroll_preserve_screen_position_commands): New variable
9747 with the default value as the list of Qscroll_down and Qscroll_up.
9748 (window_scroll_pixel_based, window_scroll_line_based): Search the
9749 last command in the list Vscroll_preserve_screen_position_commands
9750 instead of comparing with Qscroll_up and Qscroll_down.
9751
4bef8d26
JD
97522010-04-13 Jan Djärv <jan.h.d@swipnet.se>
9753
92848133
JD
9754 * gtkutil.c (xg_set_geometry): Set geometry for PPosition also.
9755 (x_wm_set_size_hint): Dont set position flags, gtk_window_parse_geometry
9756 does that.
9757
4bef8d26
JD
9758 * xfns.c (Fx_create_frame, x_create_tip_frame): Set default border width
9759 to zero.
9760
58b963f7
SM
97612010-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
9762
84164a0d
SM
9763 * term.c (init_tty): Move common text outside of #ifdef TERMINFO.
9764
2b0a91e7
SM
9765 Try to solve the problem of spurious EOF chars in long lines of text
9766 sent to interactive subprocesses.
9767 * sysdep.c (child_setup_tty): Do not enable ICANON any more.
9768 (system_process_attributes): Remove unused var `ttotal'.
9769 * process.c (send_process): Don't bother breaking long line with EOF
9770 chars when talking to ttys any more.
9771 (wait_reading_process_output): Output a warning when called in such
9772 a way that it could block without being interruptible.
9773
58b963f7
SM
9774 Try to detect file modification within the same second.
9775 * buffer.h (struct buffer): New field modtime_size.
9776 * buffer.c (reset_buffer): Initialize it.
9777 * fileio.c (Finsert_file_contents, Fwrite_region): Set it.
9778 (Fverify_visited_file_modtime): Check it.
9779 (Fclear_visited_file_modtime, Fset_visited_file_modtime): Clear it.
9780 (Fset_visited_file_modtime): Set (or clear) it.
9781
01f5787b
SM
97822010-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
9783
9784 * process.c (status_notify): Remove unused var `ro'.
9785
83725342
JD
97862010-04-12 Jan Djärv <jan.h.d@swipnet.se>
9787
9788 * xfns.c (select_visual): Don't call error if XGetVisualInfo returns
9789 more than one visual (Bug#5938).
9790
b9465836
DN
97912010-04-12 Dan Nicolaescu <dann@ics.uci.edu>
9792
50426a04
JB
9793 * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE):
9794 Undefine.
b9465836 9795
8d9c8ece
DN
97962010-04-11 Dan Nicolaescu <dann@ics.uci.edu>
9797
b1f52161
DN
9798 Remove C_SWITCH_SYSTEM_TEMACS.
9799 * s/darwin.h (C_SWITCH_SYSTEM_TEMACS): Remove.
9800 (malloc, realloc, free): Use emacs, not temacs for conditional
9801 definition.
9802
9803 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Remove.
9804 (ALL_CFLAGS): Do not use C_SWITCH_SYSTEM_TEMACS.
9805
8d9c8ece
DN
9806 Use autoconf, not cpp for some variables.
9807 * Makefile.in (C_SWITCH_SYSTEM, C_SWITCH_MACHINE)
9808 (C_SWITCH_X_SITE): Define using autoconf, not cpp.
9809 (ALL_CFLAGS): Use them as make variables.
9810 (really-lwlib, really-oldXMenu): Do not pass them.
9811
1ecb2d3f
JD
98122010-04-11 Jan Djärv <jan.h.d@swipnet.se>
9813
9814 * xmenu.c (apply_systemfont_to_dialog): New.
9815 (create_and_show_dialog): Call apply_systemfont_to_dialog if HAVE_XFT.
9816
3a4fa2f2
SM
98172010-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
9818
97e53006
SM
9819 * process.c (exec_sentinel): Preserve current-buffer.
9820
3a4fa2f2
SM
9821 * process.c (read_process_output): Move the save-current-buffer to
9822 apply to both the filter and the non-filter branches.
9823
88df7221
DN
98242010-04-10 Dan Nicolaescu <dann@ics.uci.edu>
9825
9826 * s/msdos.h (UNEXEC): New definition.
9827
5634ff85
YM
98282010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9829
6eff5c3d
YM
9830 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
9831 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
9832
9833 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
9834 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
9835 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
9836 TRY_WINDOW_CHECK_MARGINS.
9837
9838 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
5b253e9c
YM
9839 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423). Subtract last glyph's
9840 width only when it is for padding.
5634ff85 9841
b13aef54
J
98422010-04-09 Jan Djärv <jan.h.d@swipnet.se>
9843
9844 * xfns.c (Fx_show_tip): Call try_window in a loop until
9845 fonts_changed_p is zero (Bug#2423).
9846
21d28484
EZ
98472010-04-08 Eli Zaretskii <eliz@gnu.org>
9848
9849 * xdisp.c (set_cursor_from_row): Don't dereference glyphs beyond
9850 the end of TEXT_AREA. (Bug#5856)
9851
0269ef77
JD
98522010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9853
9854 * xsettings.c (XSETTINGS_FONT_NAME): Move XSETTINGS_FONT_NAME out of
9855 HAVE_GCONF.
9856
5930fe97
EZ
98572010-04-08 Eli Zaretskii <eliz@gnu.org>
9858
9859 * bidi.c (bidi_resolve_weak): Use prev.type_after_w1, instead of
9860 prev.orig_type, for resolving type of NSM. (Bug#5858)
9861
99852628
JD
98622010-04-08 Jan Djärv <jan.h.d@swipnet.se>
9863
9864 * xsettings.c (current_font, SYSTEM_FONT, XSETTINGS_FONT_NAME): New.
9865 (parse_xft_settings): Also check for XSETTINGS_FONT_NAME and save that
9866 in current_font.
9867 (init_gconf): Read value of SYSTEM_FONT and save it in current_font.
50426a04
JB
9868 (Ffont_get_system_normal_font, xsettings_get_system_normal_font):
9869 New functions.
9870 (syms_of_xsettings): Initialize current_font.
9871 defsubr Sfont_get_system_normal_font.
99852628 9872
686b968e
JB
9873 * xsettings.h (Ffont_get_system_normal_font)
9874 (xsettings_get_system_normal_font): Declare.
99852628
JD
9875
9876 * xfns.c (extern xlwmenu_default_font): Remove.
9877 (Fx_create_frame): Remove setting of xlwmenu_default_font, moved
9878 to xlwmenu.c.
9879
9880 * menu.c (digest_single_submenu): If USE_LUCID and HAVE_XFT, encode
9881 menu items in UTF-8.
9882
2f8f196d 9883 * xmenu.c: Include xsettings.h and xlwmenu.h if USE_LUCID.
99852628 9884 (apply_systemfont_to_menu): New function.
bba3e508
SM
9885 (set_frame_menubar, create_and_show_popup_menu):
9886 Call apply_systemfont_to_menu.
99852628 9887
7fc874c4
J
98882010-04-07 Jan Djärv <jan.h.d@swipnet.se>
9889
9890 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
9891 FRAME_LINE_TO_PIXEL_Y.
9892
9893 * xterm.c (x_set_window_size_1): Don't add border_width/height to
9894 pixelwidth/height.
9895
863bf481
DN
98962010-04-07 Dan Nicolaescu <dann@ics.uci.edu>
9897
5e5a3b92
DN
9898 Simplify code for HP machines.
9899 * m/hp800.h (LOAD_AVE_TYPE, LOAD_AVE_CVT, NO_REMAP): Do not define
9900 for GNU_LINUX, not needed.
9901 (UNEXEC, NEED_BSDTTY): Move definitions...
9902 * s/hpux10-20.h (UNEXEC, NEED_BSDTTY): ... here.
9903
863bf481
DN
9904 * m/iris4d.h (UNEXEC): Move definition ...
9905 * s/irix6-5.h (UNEXEC): ... here.
9906
3e6bec3b
JD
99072010-04-04 Jan Djärv <jan.h.d@swipnet.se>
9908
9909 * xfns.c (set_machine_and_pid_properties): New function.
9910 (Fx_create_frame): Call set_machine_and_pid_properties.
9911
2912322b
SM
99122010-04-03 Eli Zaretskii <eliz@gnu.org>
9913
bba3e508
SM
9914 * bidi.c (bidi_resolve_explicit, bidi_level_of_next_char):
9915 Check bidi_it->bytepos against ZV_BYTE instead of bidi_it->ch against
1502b819
EZ
9916 BIDI_EOB. Fixes infloop with vertical cursor motion at ZV.
9917
2912322b
SM
9918 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
9919 in this function. (Bug#5703)
9920
99212010-04-03 Chong Yidong <cyd@stupidchicken.com>
9922
9923 * nsterm.h: Fix last change.
9924
c435b432
DN
99252010-04-03 Dan Nicolaescu <dann@ics.uci.edu>
9926
a568f507
DN
9927 * m/intel386.h (NO_REMAP): Move definition ...
9928 * s/msdos.h (NO_REMAP): ... here.
9929
4cd9f6c2
DN
9930 * m/vax.h (CRT0_DUMMIES): Remove, unused.
9931
c435b432
DN
9932 * ecrt0.c: Remove MSDOS, m68k and __sparc__ conditionals, file not
9933 used on those platforms.
9934
42a2c622
DN
99352010-04-02 Dan Nicolaescu <dann@ics.uci.edu>
9936
9937 Remove extern errno declarations.
9938 * xterm.c:
9939 * xrdb.c:
9940 * w32term.c:
9941 * unexec.c:
9942 * unexaix.c:
9943 * sysdep.c:
9944 * process.c:
9945 * lread.c:
9946 * keyboard.c:
9947 * floatfns.c:
9948 * filelock.c:
9949 * fileio.c:
9950 * emacs.c (main):
9951 * ecrt0.c:
9952 * dispnew.c:
9953 * callproc.c:
9954 * buffer.c: Remove errno extern declarations.
9955 * s/netbsd.h (NEED_ERRNO): Remove.
9956
8224f93d
DN
99572010-04-01 Dan Nicolaescu <dann@ics.uci.edu>
9958
9959 Remove all uses of LIBX11_SYSTEM.
9960 * Makefile.in (LIBX11_SYSTEM): Remove.
9961 * s/msdos.h (LIBX11_SYSTEM): Do not define, define LIBS_SYSTEM
9962 instead.
9963
814062c7
EZ
99642010-04-01 Eli Zaretskii <eliz@gnu.org>
9965
ed68db4d
EZ
9966 Remove support for DJGPP v1.x (bug#5813).
9967
9968 * w16select.c (__dpmi_int): Remove DJGPP v1.x compatibility.
8224f93d
DN
9969 * s/msdos.h:
9970 * unexec.c (make_hdr, copy_text_and_data):
9971 * sysdep.c (wait_for_termination, sys_subshell):
ed68db4d 9972 * msdos.c (dos_set_window_size, msdos_set_cursor_shape)
52f4d8d5
EZ
9973 (IT_set_terminal_modes, __write, _rename, gethostname)
9974 (gettimeofday, alarm, fork, kill, dos_ttraw, dos_ttcooked)
9975 (run_msdos_command, abort): Remove DJGPP v1.x code and tests of
9976 the value of __DJGPP__.
ed68db4d
EZ
9977 (nice, pause, sigsetmask, sigblock): Remove DJGPP v1.x
9978 compatibility code.
8224f93d
DN
9979 * lread.c:
9980 * gmalloc.c (memalign):
9981 * fileio.c (Fcopy_file, check_executable, Ffile_modes):
9982 * emacs.c (main):
9983 * dosfns.c (init_dosfns):
ed68db4d
EZ
9984 * dired.c (file_name_completion_stat): Remove tests of __DJGPP__.
9985
52f4d8d5
EZ
99862010-04-01 Eli Zaretskii <eliz@gnu.org>
9987
814062c7
EZ
9988 * xdisp.c (set_cursor_from_row): Fix cursor positioning when the
9989 string with `cursor' property comes from an `after-string'
9990 overlay. (Bug#5816)
9991
0dc2e11d
GM
99922010-04-01 Glenn Morris <rgm@gnu.org>
9993
9994 * Makefile.in (LIBTIFF, LIBJPEG, LIBPNG, LIBGIF, LIBXPM, XFT_LIBS):
9995 Define as Makefile variables.
9996 (LIBX): Use above variables rather than directly using autoconf.
9997
1d29df59
DN
99982010-03-31 Dan Nicolaescu <dann@ics.uci.edu>
9999
10000 Clean up BSD_SYSTEM use.
10001 * xterm.c:
10002 * process.c:
10003 * emacs.c: Use HAVE_SYS_IOCTL_H instead of BSD_SYSTEM as a guard
10004 for including <sys/ioctl.h>.
10005 * sysdep.c (wait_without_blocking): Remove BSD_SYSTEM case, this
10006 code is only used for MSDOS.
10007
1546c559
JL
100082010-03-31 Juri Linkov <juri@jurta.org>
10009
10010 * image.c: Add `Qextension_data'.
10011 (syms_of_image): Initialize and staticpro `Qextension_data'.
10012 (Fimage_metadata): Rename from `Fimage_extension_data'.
10013 (gif_load): Put GIF extension data to the property
10014 `Qextension_data'.
10015
6521c534
CY
100162010-03-31 Chong Yidong <cyd@stupidchicken.com>
10017
10018 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
10019 * nsterm.h: Fix prototype.
10020
52c30783
EZ
100212010-03-31 Eli Zaretskii <eliz@gnu.org>
10022
10023 * xdisp.c (highlight_trailing_whitespace): Support highlight of
10024 trailing whitespace in right-to-left rows.
10025
855a0da7
SM
100262010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10027
10028 Get rid of the direct_output optimizations.
10029 * keyboard.c (nonundocount): Remove extern declaration.
10030 (command_loop_1): Remove brittle optimisation for cheap and
10031 common operations.
10032 * xdisp.c (redisplay_internal): Don't bother checking
10033 redisplay_performed_directly_p any more.
10034 * sysdep.c (init_sys_modes): Don't call direct_output_forward_char
10035 any more.
10036 * dispnew.c (redisplay_performed_directly_p)
10037 (direct_output_for_insert, direct_output_forward_char):
10038 * dispextern.h (redisplay_performed_directly_p)
10039 (direct_output_for_insert, direct_output_forward_char): Remove.
10040 * cmds.c (nonundocount): Make it static.
10041
85738751 100422010-03-31 Bernhard Herzog <bh@intevation.de> (tiny change)
a6d676d9
CY
10043
10044 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
10045
85738751 100462010-03-31 Jan Djärv <jan.h.d@swipnet.se>
67fee863
JD
10047
10048 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
10049 invisible (Bug#5766).
10050
85738751 100512010-03-31 Adrian Robert <adrian.b.robert@gmail.com>
9ae6e189 10052
855a0da7
SM
10053 * xdisp.c (x_consider_frame_title, update_window_cursor):
10054 Remove HAVE_NS conditionals.
194d44e7 10055 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
10056
10057 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
10058 filename for the title.
10059 (ns_set_doc_edited): Do nothing if the selected window is a
10060 minibuffer window.
10061
10062 * nsterm.h: Add prototypes for ns_set_name_as_filename and
10063 ns_set_doc_edited.
10064
10065 * nsterm.m: Remove unneeded prototype.
10066
85738751 100672010-03-31 Glenn Morris <rgm@gnu.org>
25c72475
GM
10068
10069 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
10070 in the DOC file. (Bug#5336)
10071
85738751 100722010-03-31 Chong Yidong <cyd@stupidchicken.com>
f79a01db
CY
10073
10074 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
10075
75d1428c
SM
100762010-03-31 Stefan Monnier <monnier@iro.umontreal.ca>
10077
10078 * window.c (keys_of_window): Remove redundant/overridden bindings.
10079
82043cfb
EZ
100802010-03-30 Eli Zaretskii <eliz@gnu.org>
10081
10082 * xdisp.c (BUFFER_POS_REACHED_P, move_it_in_display_line_to):
10083 Restore original behavior when the iterator is not bidi_p.
10084
b5dd0ae7
DN
100852010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10086
10087 * xdisp.c (syms_of_xdisp): Use intern_c_string instead of intern.
10088
bd924a5d
EZ
100892010-03-30 Eli Zaretskii <eliz@gnu.org>
10090
10091 * bidi.c (bidi_cache_iterator_state): Invalidate the cache if we
10092 are outside the range of cached character positions.
10093
3580374b
JB
100942010-03-30 Juanma Barranquero <lekktu@gmail.com>
10095
10096 * makefile.w32-in ($(BLD)/bidi.$(O)): Add dependency on w32gui.h.
10097
a7b02820
EZ
100982010-03-30 Eli Zaretskii <eliz@gnu.org>
10099
10100 Initial support for bidirectional editing.
10101
10102 * Makefile.in (obj): Include bidi.o.
10103 (bidi.o): New target.
10104
10105 * makefile.w32-in (OBJ1): Add $(BLD)/bidi.$(O).
10106 ($(BLD)/bidi.$(O)): New target.
10107
10108 * bidi.c: New file.
10109
10110 * buffer.h (struct buffer): New members bidi_display_reordering
10111 and bidi_paragraph_direction.
10112
10113 * buffer.c (init_buffer_once): Initialize bidi_display_reordering
10114 and bidi_paragraph_direction.
10115 (syms_of_buffer): Declare Lisp variables bidi-display-reordering
10116 and bidi-paragraph-direction.
10117 (Fbuffer_swap_text): Swap the values of
10118 bidi_display_reordering and bidi_paragraph_direction.
10119
10120 * dispextern.h (BIDI_MAXLEVEL, BIDI_AT_BASE_LEVEL): New macros.
10121 (bidi_type_t, bidi_dir_t): New types.
10122 (bidi_saved_info, bidi_stack, bidi_it): New structures.
10123 (struct it): New members bidi_p, bidi_it, paragraph_embedding,
10124 prev_stop, base_level_stop, and eol_pos.
10125 (bidi_init_it, bidi_get_next_char_visually): New prototypes.
10126 (IT_STACK_SIZE): Enlarge to 5.
10127 (struct glyph_row): New member reversed_p.
10128 <string_buffer_position>: Update prototype.
10129 (PRODUCE_GLYPHS): Set the reversed_p flag in the iterator's
10130 glyph_row if bidi_it.paragraph_dir == R2L.
10131 (struct glyph): New members resolved_level and bidi_type.
10132
10133 * dispnew.c (direct_output_forward_char): Give up if we need bidi
10134 processing or buffer's direction is right-to-left.
10135 (prepare_desired_row): Preserve the reversed_p flag.
10136 (row_equal_p): Compare the reversed_p attributes as well.
10137
bba3e508
SM
10138 * xdisp.c (init_iterator): Initialize it->bidi_p.
10139 Call bidi_init_it and set it->paragraph_embedding from the current
a7b02820
EZ
10140 buffer's value of bidi_paragraph_direction.
10141 (reseat_1): Initialize bidi_it.first_elt.
10142 (set_iterator_to_next, next_element_from_buffer): Use the value of
10143 paragraph_embedding to determine the paragraph direction.
10144 (set_iterator_to_next): Under bidi reordering, call
10145 bidi_get_next_char_visually. Call bidi_paragraph_init if the
10146 new_paragraph flag is set in the bidi iterator.
10147 (next_element_from_buffer): If bidi_it.first_elt is set,
10148 initialize paragraph direction and find the first character to
10149 display in the visual order. If reseated to a middle of a line,
bba3e508
SM
10150 prime the bidi iterator starting at the line's beginning.
10151 Handle the situation where we overstepped stop_charpos due to
a7b02820
EZ
10152 non-linearity of the bidi iteration. Likewise for when we back up
10153 beyond the previous stop_charpos. When moving across stop_charpos,
10154 record it in prev_stop.
10155 (display_line): Set row->end and it->start for the next row to the
10156 next character in logical order. Always extend reversed_p rows to
10157 the end of line, even if they end at ZV. Copy the reversed_p flag
10158 to the next glyph row. Keep calling set_cursor_from_row for
10159 bidi-reordered rows even if we already have a possible candidate
10160 for cursor position. Set row_end after all the row's glyphs have
10161 been produced, by looping over the glyphs. Record the position
10162 after EOL in it->eol_pos, and use it to set end_pos of the last
10163 row produced for a continued line.
10164 <Qright_to_left, Qleft_to_right>: New variables.
10165 (syms_of_xdisp): Initialize and staticpro them.
10166 (string_buffer_position_lim): New function.
10167 (string_buffer_position): Most of code moved to
10168 string_buffer_position_lim. Last argument and return value are
10169 now EMACS_INT; all callers changed.
10170 (set_cursor_from_row): Rewritten to support bidirectional text and
10171 reversed glyph rows.
bba3e508
SM
10172 (text_outside_line_unchanged_p, try_window_id):
10173 Disable optimizations if we are reordering bidirectional text and the
a7b02820
EZ
10174 paragraph direction can be affected by the change.
10175 (append_glyph, append_composite_glyph)
10176 (produce_image_glyph, append_stretch_glyph): Set the
10177 resolved_level and bidi_type members of each glyph.
10178 (append_glyph): If the glyph row is reversed, prepend the glyph
10179 rather than appending it.
10180 (handle_stop_backwards): New function.
10181 (reseat_1, pop_it, push_it): Set prev_stop and base_level_stop.
2f8f196d 10182 (reseat): Call handle_stop_backwards to recompute prev_stop and
a7b02820
EZ
10183 base_level_stop for the new position.
10184 (handle_invisible_prop): Under bidi iteration, skip invisible text
10185 using bidi_get_next_char_visually. If we are `reseat'ed, init the
10186 paragraph direction. Update IT->prev_stop after skipping
10187 invisible text.
10188 (move_it_in_display_line_to): New variables prev_method
10189 and prev_pos. Compare for strict equality in
10190 BUFFER_POS_REACHED_P.
10191 (try_cursor_movement): Examine all the candidate rows that occlude
10192 point, to return the best match. If rows are bidi-reordered
10193 and point moved backwards, back up to the row that is not a
10194 continuation line, and start looking for a suitable row from
10195 there.
10196
10197 * term.c (append_glyph): Reverse glyphs by pre-pending them,
10198 rather than appending, if the glyph_row's reversed_p flag is set.
10199 Set the resolved_level and bidi_type members of each glyph.
10200
10201 * .gdbinit (pbiditype): New command.
10202 (pgx): Use it to display bidi level and type of the glyph.
10203 (pitx): Display some bidi information about the iterator.
10204 (prowlims, pmtxrows): New commands.
10205
32a8894e
DN
102062010-03-30 Dan Nicolaescu <dann@ics.uci.edu>
10207
10208 Remove all uses of C_DEBUG_SWITCH and LIBS_DEBUG.
10209 * s/usg5-4.h (LIBS_DEBUG):
10210 * s/irix6-5.h (C_DEBUG_SWITCH):
10211 * s/gnu-linux.h (LIBS_DEBUG):
10212 * s/darwin.h (LIBS_DEBUG):
10213 * s/bsd-common.h (LIBS_DEBUG):
10214 * s/aix4-2.h (LIBS_DEBUG, C_DEBUG_SWITCH):
10215 * m/iris4d.h (LIBS_DEBUG):
10216 * m/hp800.h (LIBS_DEBUG): Remove definitions.
10217
10218 * Makefile.in (LIBES): Remove reference to LIBS_DEBUG.
10219 (LIBS_DEBUG): Remove definition.
10220
649dbf36
CY
102212010-03-27 Chong Yidong <cyd@stupidchicken.com>
10222
10223 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
10224 Windows.
10225
cad4261f
YM
102262010-03-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10227
10228 * process.c (Fmake_network_process): Don't call turn_on_atimers around
10229 `connect' (Bug#5723).
10230
cd591dbc
HE
102312010-03-25 Helmut Eller <eller.helmut@gmail.com>
10232
10233 * process.c (Fmake_network_process): Call `select' for interrupted
10234 `connect' rather than creating new socket (Bug#5173).
10235
e867cb5d 102362010-03-24 Jan Djärv <jan.h.d@swipnet.se>
93318cbd
JD
10237
10238 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
10239
10240 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
10241
10242 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
10243
e867cb5d 102442010-03-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
ad13a3ee
YM
10245
10246 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
10247 XLoadQueryFont.
10248
e867cb5d 102492010-03-24 Kenichi Handa <handa@m17n.org>
fbdc1721
KH
10250
10251 * coding.c (decode_coding_ccl): Fix previous change for the
10252 multibyte case.
fb608df3
KH
10253 (encode_coding_ccl): Don't setup ccl program here. Fix for the
10254 case that the output buffer is fullfilled.
10255 (encode_coding): Setup ccl program here.
fbdc1721 10256
5845f0ed
DN
102572010-03-23 Dan Nicolaescu <dann@ics.uci.edu>
10258
814fb708
DN
10259 * s/gnu-linux.h (LIBS_SYSTEM): Remove, same as default.
10260
5845f0ed
DN
10261 Simplify LIBS_MACHINE definitions.
10262 * m/hp800.h (LIBS_MACHINE): Remove, same as default.
10263 * m/iris4d.h (LIBS_MACHINE): Likewise.
10264 * m/ibmrs6000.h (LIBS_MACHINE): Rename to LIBS_SYSTEM and move ...
10265 * s/aix4-2.h (LIBS_SYSTEM): ... here.
38e3487c 10266 * s/netbsd.h: Remove commented out code.
5845f0ed 10267
b7064064
DN
102682010-03-22 Dan Nicolaescu <dann@ics.uci.edu>
10269
df7734b2
DN
10270 Remove dead code dealing with POSIX_SIGNALS.
10271 * atimer.c (set_alarm): Remove dead code, all USG systems define
10272 POSIX_SIGNALS.
10273 * data.c (arith_error): Likewise.
10274 * keyboard.c (input_available_signal, handle_user_signal)
10275 (interrupt_signal): Likewise.
10276 * process.c (sigchld_handler): Likewise.
10277 (create_process): Remove if 0 code. Remove HPUX conditional when
10278 !defined (POSIX_SIGNALS), it cannot be true.
10279 * syssignal.h: Remove USG5_4 and USG conditionals when
10280 !POSIX_SIGNALS, they cannot be true.
10281
b7064064
DN
10282 * keyboard.c (Fset_input_interrupt_mode): Remove code depending on
10283 NO_SOCK_SIGIO, not used anymore.
10284
55da5ee3
DN
102852010-03-21 Dan Nicolaescu <dann@ics.uci.edu>
10286
0be96e3a
DN
10287 * m/vax.h (BSD_SYSTEM, BSD4_2): Remove conditionals, we only
10288 support vax on BSDs.
10289
55da5ee3
DN
10290 * m/ibmrs6000.h (ORDINARY_LINK): Move definition ...
10291 * s/aix4-2.h (ORDINARY_LINK): ... here.
10292
c0282183
AS
102932010-03-21 Andreas Schwab <schwab@linux-m68k.org>
10294
82c3d67a
AS
10295 * Makefile.in (abs_builddir): Define.
10296 (bootstrap_exe): Use it.
10297 (VPATH): Use $(srcdir) instead of @srcdir@.
c0282183 10298
3613edce
SM
102992010-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
10300
10301 * Makefile.in (bootstrap_exe): Use an absolute name.
10302
7f110ddc
DN
103032010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10304
22e87574
DN
10305 Remove support for old GNU/Linux using libc version 5.
10306 * m/alpha.h (LINUX_SBRK_BUG): Remove definition.
10307 * emacs.c (main): Remove code depending on LINUX_SBRK_BUG.
10308
05a670e6
DN
10309 Consolidate redundant definitions in s/bsd-common.h.
10310 * s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10311 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10312 (LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
10313 doing it in all files that include this one.
10314 * s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10315 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10316 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10317 * s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10318 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10319 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10320 * s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
10321 (LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
10322 (LDAV_SYMBOL, KERNEL_FILE): Remove.
10323
2968f561
DN
10324 Consolidate redundant definitions.
10325 * s/usg5-4.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not define,
10326 it's undefined in all files that include this one.
10327 (POSIX_SIGNALS): Define here instead of doing it in all files that
10328 include this one.
10329 * s/irix6-5.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10330 (POSIX_SIGNALS): Do not define.
10331 * s/sol2-6.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10332 (POSIX_SIGNALS): Do not define.
10333 * s/unixware.h (sigsetmask, PTY_TTY_NAME_SPRINTF): Do not undef.
10334 (POSIX_SIGNALS): Do not define.
10335
15d25dc0
DN
10336 Remove support for old UNIX System V systems.
10337 * s/unixware.h: Add the contents of s/usg-5-4-2.h.
10338 * s/usg-5-4-2.h: Remove.
10339
07e339e4
DN
10340 Remove support for Solaris on PPC and for old versions.
10341 * s/sol2-6.h: Add the contents of s/sol-2.3.h, s/sol-2.4.h, s/sol-2.5.h.
10342 (LD_SWITCH_SYSTEM, USE_MMAP_FOR_BUFFERS): Remove #defines/#undef
10343 that cancel each other.
10344 * s/sol2-3.h:
10345 * s/sol2-4.h:
10346 * s/sol2-5.h: Remove.
10347 * m/ibmrs6000.h: Remove code for USG5_4, this file is only used on AIX.
10348 (NO_REMAP): Remove, unused.
10349 (UNEXEC): Move definition ...
10350 * s/aix4-2.h (UNEXEC): ... here.
10351
7f110ddc
DN
10352 * s/openbsd.h: Remove support for non-ELF and for systems that do
10353 not support shared libraries.
10354 * s/netbsd.h:
10355 * s/freebsd.h: Likewise.
10356
605f35cd
DN
103572010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10358
10359 Remove non-working support for lynxos 3.0.
10360 * s/lynxos.h: Remove file.
10361
10362 * unexec.c (unexec, adjust_lnnoptrs): Do not depend on
10363 COFF_BSD_SYMBOLS, nothing defines it anymore.
10364
aed71cf4
DN
103652010-03-20 Dan Nicolaescu <dann@ics.uci.edu>
10366
10367 Remove obsolete uses of HAVE_SHM.
10368 * emacs.c (standard_args):
10369 (Fdump_emacs):
10370 (syms_of_emacs): Remove code depending on HAVE_SHM.
10371
10372 * alloc.c: Remove HAVE_SHM dependent definition.
10373
10374 * Makefile.in (RUN_TEMACS): Do not depend on HAVE_SHM.
10375
aded53ff
GM
103762010-03-18 Glenn Morris <rgm@gnu.org>
10377
17284745
GM
10378 * emacs.c (USAGE4): Hard-code bug address.
10379 (REPORT_EMACS_BUG_ADDRESS, REPORT_EMACS_BUG_PRETEST_ADDRESS): Remove.
10380 (bug_reporting_address): Remove.
10381 (main): Don't call bug_reporting_address.
10382
aded53ff
GM
10383 * Makefile.in (XFT_LIBS, LIBXPM, LIBJPEG, LIBPNG, LIBTIFF, LIBGIF)
10384 (LIBGPM, LIBRESOLV): Set using autoconf rather than cpp.
10385
303500aa
CY
103862010-03-15 Chong Yidong <cyd@stupidchicken.com>
10387
10388 * xfns.c (Fx_create_frame):
10389 * frame.c (Vdefault_frame_scroll_bars): Put non-GTK X scroll-bars
10390 on left.
10391
cef3058f
CY
103922010-03-13 Andreas Politz <politza@fh-trier.de> (tiny change)
10393
10394 * editfns.c (Fformat): Account for string precision when computing
10395 field width (Bug#5710).
10396
a647d59d
CY
103972010-03-12 Chong Yidong <cyd@stupidchicken.com>
10398
4fa42018
CY
10399 * xfns.c (Fx_create_frame): Set default to Qright.
10400
a647d59d
CY
10401 * frame.c (Vdefault_frame_scroll_bars): Set default to Qright for
10402 all window systems.
10403
6da23aaa
EZ
104042010-03-12 Eli Zaretskii <eliz@gnu.org>
10405
a96f6398 10406 These changes remove termcap.c from the build on Posix platforms.
83d02def 10407 * Makefile.in (termcapobj): Move termcap.o from here...
6da23aaa
EZ
10408 (MSDOS_OBJ): ...to here.
10409 (termcapobj) [!LIBS_TERMCAP]: Remove specialized value, as it is
10410 now identical to when LIBS_TERMCAP is defined.
10411
10412 * term.c: Remove (ifdef'ed away) inclusion of termcap.h.
10413
10414 * cm.c: Remove (ifdef'ed away) inclusion of termcap.h.
10415
a96f6398 10416 * config.in: Regenerated. (See top-level ChangeLog.)
6da23aaa 10417
288f9fc0
CY
104182010-03-10 Chong Yidong <cyd@stupidchicken.com>
10419
10420 * Branch for 23.2.
10421
d48cd3f4
SM
104222010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
10423
10424 Cleanup setup of gl_state in various parts of the code.
10425 * syntax.h (SETUP_BUFFER_SYNTAX_TABLE): New macro.
10426 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT):
10427 * syntax.c (find_defun_start, Fchar_syntax, Fmatching_paren)
10428 (skip_chars):
10429 * regex.c (regex_compile): Use it.
10430 (re_compile_pattern): Don't set gl_state.current_syntax_table since
10431 it's now set in regex_compile when/if we need it.
10432
618db430
SM
104332010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
10434
c0335e02
SM
10435 Make it possible to C-g in a tight bytecode loop again (bug#5680).
10436 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
10437 (QUIT): Use it to consolidate code and remove redundancy.
10438 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
10439
254c06a8
SM
10440 * regex.c (regex_compile): Setup gl_state as well.
10441
618db430
SM
10442 * syntax.c (skip_chars): Setup gl_state (bug#3823).
10443 (in_classes): Use CONSP before XCAR/XCDR.
10444
233f0c9f
CY
104452010-03-03 Chong Yidong <cyd@stupidchicken.com>
10446
10447 * keymap.c (Fwhere_is_internal): Use Fequal to compare
10448 definitions, so that keyboard macros are correctly handled
10449 (Bug#5481).
10450
75f80e63
EZ
104512010-03-02 Eli Zaretskii <eliz@gnu.org>
10452
10453 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
10454 text that could be relocated inside the call to emacs_mule_char.
10455 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
10456 (CODING_DECODE_CHAR): Add a comment describing its purpose.
10457
dcfb9bc4
KH
104582010-03-02 Kenichi Handa <handa@m17n.org>
10459
fc9a17bc
KH
10460 * character.c (parse_str_as_multibyte): Fix handling of the
10461 multibyte form of raw-bytes.
10462 (str_as_multibyte): Likewise.
10463
dcfb9bc4
KH
10464 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
10465 form of raw-bytes.
10466
412c01b6
CY
104672010-02-28 Chong Yidong <cyd@stupidchicken.com>
10468
10469 * charset.c (load_charset_map_from_file)
10470 (load_charset_map_from_vector): Zero out allocated
10471 charset_map_entries before using them.
10472
df7e1ea0
AS
104732010-02-27 Andreas Schwab <schwab@linux-m68k.org>
10474
10475 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
10476
fe69a722
CY
104772010-02-27 Chong Yidong <cyd@stupidchicken.com>
10478
4ed28cf4
CY
10479 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
10480 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 10481
7379cfce
KH
104822010-02-26 Kenichi Handa <handa@m17n.org>
10483
f88cc4d6
KH
10484 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
10485
7379cfce
KH
10486 * xdisp.c (reseat_to_string): Fix previous change.
10487
cf2fdcfb
CY
104882010-02-26 David Reitter <david.reitter@gmail.com>
10489
10490 * nsfont.m (nsfont_draw): ns_antialias_text should be a
10491 Lisp_Object (Bug#4736).
10492
cc6c7c75
KH
104932010-02-25 Kenichi Handa <handa@m17n.org>
10494
10495 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
10496
32e737d7
JD
104972010-02-24 Jan Djärv <jan.h.d@swipnet.se>
10498
10499 * xterm.c (XTflash): Move declarations before statements.
10500
10501 * gtkutil.c (xg_get_gdk_display): Remove (unused).
10502 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
10503 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
10504 (xg_create_tool_bar): Remove unused variables.
10505 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 10506 (xg_create_frame_widgets): Remove variable grav.
32e737d7 10507
676cae9f
CY
105082010-02-21 Chong Yidong <cyd@stupidchicken.com>
10509
10510 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
10511
886cc2b8
SM
105122010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
10513
10514 * term.c (fatal): Add a final \n if needed (bug#5596).
10515
ddb2d8e2
CY
105162010-02-18 Chong Yidong <cyd@stupidchicken.com>
10517
10518 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
10519
2a4f8d3d
GM
105202010-02-18 Glenn Morris <rgm@gnu.org>
10521
10522 * callint.c (Finteractive): Doc fix.
10523
ebaf11b6
KH
105242010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
10525
886cc2b8
SM
10526 * coding.c (record_conversion_result):
10527 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
10528 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
10529 memory allocation error.
10530
d0396581
KH
105312010-02-17 Kenichi Handa <handa@m17n.org>
10532
886cc2b8
SM
10533 * coding.c (decode_coding_ccl): Don't setup ccl program here.
10534 Fix for the case that the output buffer is fullfilled.
d0396581
KH
10535 (decode_coding): Setup ccl program here. Keep looping when the
10536 decoder stopped because the output buffer is
10537 fullfilled (bug#5534).
10538
10539 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
10540
98599f74
JD
105412010-02-13 Jan Djärv <jan.h.d@swipnet.se>
10542
471e4f04 10543 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 10544 bug #5571.
886cc2b8 10545 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 10546 overdrawn.
98599f74 10547
182659ae
JD
105482010-02-10 Jan Djärv <jan.h.d@swipnet.se>
10549
10550 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
10551 doing_interact here.
10552 (ice_connection_closed): New function.
10553 (x_session_check_input, smc_die_CB, ice_io_error_handler)
10554 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
10555 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
10556 returns I/O error.
10557 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
10558 bug #5512.
10559
9be32c4e 105602010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
10561
10562 * nsfont.m (nsfont_open): The system's value for the font descent
10563 is negative, so round it down to avoid clipping.
10564
a2f3eb19
CY
105652010-02-06 Chong Yidong <cyd@stupidchicken.com>
10566
10567 * charset.c (load_charset_map_from_file)
10568 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 10569 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 10570
3088147c
CY
105712010-02-05 Chong Yidong <cyd@stupidchicken.com>
10572
10573 * charset.c (load_charset_map_from_file): Allocate large
10574 charset_map_entries structure on the heap rather than the stack.
10575 (Bug#5526).
10576
b57d9029
KH
105772010-01-31 Kenichi Handa <handa@m17n.org>
10578
10579 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 10580 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 10581
c67d885b
CY
105822010-01-31 Chong Yidong <cyd@stupidchicken.com>
10583
10584 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
10585 <deactivated@gmail.com> (Bug#3605).
10586
8fab2362
CY
105872010-01-31 David De La Harpe Golden <david@harpegolden.net>
10588
10589 * fileio.c (Frename_file): Correctly rename symlinks to
10590 directories (Bug#5496).
10591
cb2a62f2
CY
105922010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
10593
10594 * nsterm.m (ns_ring_bell): Handle visible bell like X.
10595
944c7a26
AS
105962010-01-30 Andreas Schwab <schwab@linux-m68k.org>
10597
10598 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
10599
c024ac08
CY
106002010-01-29 Chong Yidong <cyd@stupidchicken.com>
10601
10602 * frame.c (DEFAULT_ROWS): Change default to 35.
10603
10604 * xfns.c (x_default_font_parameter): Change default XFT font to
10605 monospace-10 (Bug#3643).
10606
af93af83
EZ
106072010-01-29 Eli Zaretskii <eliz@gnu.org>
10608
10609 * w32inevt.c (key_event): Remove unnecessary comparison of
10610 event->uChar.AsciiChar with 128.
10611
ca0eb708
CY
106122010-01-28 Chong Yidong <cyd@stupidchicken.com>
10613
b242dbfc
CY
10614 * fileio.c (Frename_file): Fix last change (Bug#5487).
10615
ca0eb708
CY
10616 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
10617
10618 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
10619
45d45af5
JD
106202010-01-28 Jan Djärv <jan.h.d@swipnet.se>
10621
10622 * xfns.c (Fx_create_frame): Remove window size matching code from
10623 2010-01-15.
a73f9c9d 10624 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 10625
7e233730
JR
106262010-01-27 Jason Rumney <jasonr@gnu.org>
10627
10628 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 10629 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 10630
86e893e3
KH
106312010-01-27 Kenichi Handa <handa@m17n.org>
10632
10633 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 10634 pattern string (Bug#4209).
86e893e3 10635
8719abec
CY
106362010-01-27 David De La Harpe Golden <david@harpegolden.net>
10637
10638 * fileio.c (Frename_file): Call copy-directory and
10639 delete-directory for directories, in order to handle cross-device
10640 renaming (Bug#3353).
10641
844794c8
JD
106422010-01-25 Jan Djärv <jan.h.d@swipnet.se>
10643
aa3e13b5 10644 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 10645 sizes 24 and 10. Bug #3643.
844794c8 10646
bd4b5750
SM
106472010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
10648
8dc1adf6 10649 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
10650 * keymap.c (shadow_lookup): Add `remap' arg.
10651 (describe_map, describe_vector): Update calls to shadow_lookup.
10652 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
10653 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
10654 perform remapping during shadow_lookup check of remapped_sequences.
10655
285d07e2
CY
106562010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
10657
10658 * image.c (png_load): Use png_sig_cmp instead of the obsolete
10659 png_check_sig, which has been removed in libpng 1.4.
10660
c6d09b8d
CY
106612010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
10662
10663 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
10664 lacks this header file).
10665
3d782998
YM
106662010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10667
10668 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
10669 as in Emacs 22.
10670
2aff7c53
YM
106712010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10672
10673 * lisp.h (make_pure_string): String pointer arg now points to const.
10674
10675 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
10676 args now point to const.
10677
74327f7a
EZ
106782010-01-22 Eli Zaretskii <eliz@gnu.org>
10679
10680 * lread.c (Fload): Don't treat files without .elc extension as
10681 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
10682 them. (bug#5303)
10683
4d1e6632
KH
106842010-01-20 Kenichi Handa <handa@m17n.org>
10685
10686 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
10687 treat the source as actual byte sequence.
10688
1fdede8f
AM
106892010-01-19 Alan Mackenzie <acm@muc.de>
10690
10691 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 10692 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
10693 `signal_after_change_p' to `coherent_change_p', and make the
10694 invocation of `modify_region' conditional on it.
10695
67477f30
JD
106962010-01-19 Jan Djärv <jan.h.d@swipnet.se>
10697
10698 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
10699 for debug purpose.
10700 (syms_of_xsettings): Declare xft-settings.
10701
244b023e
CY
107022010-01-18 Chong Yidong <cyd@stupidchicken.com>
10703
10704 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
10705
617364fe
CY
107062010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10707
10708 * xterm.c (event_handler_gdk): Block input (Bug#5037).
10709
4fe22cdf
CY
107102010-01-16 Chong Yidong <cyd@stupidchicken.com>
10711
10712 * emacs.c (standard_args): Adjust arg priorities to reflect how
10713 they are processed in startup.el.
10714
e118d2be
AS
107152010-01-16 Andreas Schwab <schwab@linux-m68k.org>
10716
10717 * Makefile.in (lisp, shortlisp): Update.
10718
523ae620
SM
107192010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
10720
10721 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
10722 code, link the new kboard into all_kboard before running Lisp code,
10723 and protect the new terminal with GCPRO (Bug#5365).
10724 (x_term_init): Remove unused var `atom'.
10725 (x_delete_display, x_delete_terminal): Remove unused var `i'.
10726
f0d13888
JD
107272010-01-15 Jan Djärv <jan.h.d@swipnet.se>
10728
10729 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
10730 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
10731 to find out usable size of the desktop. Don't make frames larger than
ac146f82 10732 this. Bug #3643.
f0d13888 10733
cc320f07
KH
107342010-01-15 Kenichi Handa <handa@m17n.org>
10735
10736 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
10737
7ffdf101
CY
107382010-01-15 Chong Yidong <cyd@stupidchicken.com>
10739
10740 * nsterm.m (Qnone): Define.
10741
10742 * nsfns.m (Qnone): Move definition to nsterm.m.
10743
d12bd917
KH
107442010-01-14 Kenichi Handa <handa@m17n.org>
10745
10746 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
10747 systems.
10748
d9a7c140
KH
107492010-01-14 Kenichi Handa <handa@m17n.org>
10750
10751 Make auto-composition work on all buffers even if they are
10752 fundamental mode.
10753
10754 * composite.c (Vauto_composition_mode): New variable.
10755 (composition_compute_stop_pos): Check Vauto_composition_mode
10756 instead of Vauto_composition_function.
10757 (composition_adjust_point, Ffind_composition_internal): Likewise.
10758 (syms_of_composite): Declare Lisp variable
10759 "auto-composition-mode" here.
10760
63286bb2
CY
107612010-01-13 Chong Yidong <cyd@stupidchicken.com>
10762
10763 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
10764 during call to vendor-specific-keysyms (Bug#5365).
10765
c2623ee7
YM
107662010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10767
10768 * keyboard.c (input_available_signal) [SYNC_INPUT]:
10769 Call SIGNAL_THREAD_CHECK (Bug#5333).
10770
10771 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
10772 Call SIGNAL_THREAD_CHECK.
10773
0b5397c2
SM
107742010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
10775
10776 Try to fix bug#5314. This is probably not the final word, tho.
10777 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
10778 recent-auto-save-p as a side-effect.
10779 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
10780 * buffer.c (Fkill_buffer, reset_buffer):
10781 * editfns.c (Fsubst_char_in_region):
10782 * fileio.c (Finsert_file_contents, Fdo_auto_save)
10783 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
10784
dc954cb2
KH
107852010-01-13 Kenichi Handa <handa@m17n.org>
10786
10787 Display buffer name, etc. in mode line by composing correctly.
10788
10789 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
10790 STRING is not nil.
0b5397c2 10791 (display_mode_element): Adjust for the change of
dc954cb2
KH
10792 decode_mode_spec and display_line.
10793 (decode_mode_spec): Change arg MULTIBYTE to STRING.
10794 (display_string): Handle the case that STRING is non-null and
10795 LISP_STRING is not nil.
10796
0b5397c2
SM
10797 * xterm.c (x_draw_composite_glyph_string_foreground):
10798 Pay attention to s->face->overstrike.
dc954cb2
KH
10799
10800 * composite.c (composition_reseat_it): Don't check PT if STRING is
10801 non nil.
10802
4a00eaca
YM
108032010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10804
10805 * keyboard.c (read_char): Don't apply previous change when current
10806 buffer is unchanged by command execution.
10807
60abb287
JD
108082010-01-12 Jan Djärv <jan.h.d@swipnet.se>
10809
10810 * keyboard.c (read_char): Return after executing from special map.
10811
893db5bc
GM
108122010-01-12 Glenn Morris <rgm@gnu.org>
10813
10814 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
10815 bug-gnu-emacs rather than emacs-pretest-bug.
10816
4d03ece0
CY
108172010-01-11 Chong Yidong <cyd@stupidchicken.com>
10818
10819 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
10820 initializing the Lisp variables that depend on them.
10821
1df47e38
YM
108222010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10823
10824 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
10825 Clear areas that will not be updated after change of menu bar lines.
10826 Clear the menu bar window's current matrix when the window gets empty.
10827
2f1c6384
CY
108282010-01-09 Chong Yidong <cyd@stupidchicken.com>
10829
e398c61c
CY
10830 * intervals.h, textprop.c (extend_property_ranges): Return value
10831 and args changed. Discard properties that begin at or after the
10832 new end (Bug#5306).
10833
10834 * editfns.c (Fformat): Caller changed.
10835
e5a29a10
CY
10836 * nsterm.m (ns_set_default_prefs): Delete function.
10837 (syms_of_nsterm): Initialize ns_command_modifier,
10838 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
10839 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
10840
2f1c6384
CY
10841 * xdisp.c (pos_visible_p): Check for invisible text at the correct
10842 position (Bug#4040).
10843
d427a9fa
EZ
108442010-01-09 Eli Zaretskii <eliz@gnu.org>
10845
10846 * editfns.c (Ffloat_time): Doc fix.
10847
21b9df2f
JD
108482010-01-09 Jan Djärv <jan.h.d@swipnet.se>
10849
10850 * xfns.c (Fx_create_frame): Don't create frame larger than display
10851 by default bug#3643.
10852
4b00d3b1
YM
108532010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
10854
10855 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
10856 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
10857 windows above internal border.
10858
10859 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
10860 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
10861 windows above internal border.
10862
10863 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
10864 tool bar windows specially.
10865
10866 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
10867
10868 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
10869 specially.
10870 (XTflash): Take account of menu bar height.
10871
10872 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
10873 specially.
10874
5075d853
JD
108752010-01-08 Jan Djärv <jan.h.d@swipnet.se>
10876
ac146f82 10877 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
10878 also be true before we can return early (bug #5339).
10879
474217c8
CY
108802010-01-06 David Reitter <david.reitter@gmail.com>
10881
10882 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
10883 (Fns_display_usable_bounds): Rewrite, computing bounds properly
10884 (Bug#3233).
10885
c0e6d47d
JD
108862010-01-06 Jan Djärv <jan.h.d@swipnet.se>
10887
d0cf45b7
JD
10888 * font.c (font_open_entity): Enable chache and call cached_font_ok
10889 for the driver if defined.
10890 (QCuser_spec): New symbol.
10891 (font_spec_from_name): Save name as user-spec.
10892 (font_load_for_lface): Keep user-spec instead of name.
10893 (font_open_by_name): Save name as user-spec.
10894 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 10895 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
10896
10897 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
10898 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
10899 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
10900
10901 * font.h (struct font_driver): Add cached_font_ok.
10902
c0e6d47d
JD
10903 * xterm.c (x_clear_frame): Queue draw for scroll bars.
10904
7c583cd8
JD
109052010-01-05 Jan Djärv <jan.h.d@swipnet.se>
10906
10907 * xterm.c (x_new_font): Move code for setting rows/cols before
10908 resizing ...
ac146f82 10909 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
10910
10911 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
10912 (xg_frame_resized, xg_frame_set_char_size):
10913 Call xg_clear_under_internal_border.
7c583cd8 10914 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 10915
03f77f0a
CY
109162010-01-05 Chong Yidong <cyd@stupidchicken.com>
10917
10918 * keyboard.c (read_key_sequence): Catch keyboard switch after
10919 making a new tty frame (Bug#5095).
10920
2a1ef5be
KH
109212010-01-05 Kenichi Handa <handa@m17n.org>
10922
10923 * fontset.c (fontset_find_font): Fix getting the frame pointer.
10924
e3eb1dae
SM
109252010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
10926
10927 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
10928 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
10929 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
10930
777013f2
MA
109312010-01-03 Michael Albinus <michael.albinus@gmx.de>
10932
10933 * dbusbind.c (xd_add_watch): Improve debug message.
10934 (xd_remove_watch): Improve debug message. If DATA is the session
10935 bus, unset D-Bus session environment.
10936 (Fdbus_init_bus): Pass the bus as argument to
10937 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 10938
8932b1c2
CY
109392010-01-01 Chong Yidong <cyd@stupidchicken.com>
10940
87231e2c
CY
10941 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
10942
4801c5fa
CY
10943 * lread.c (syms_of_lread): Make it clearer that these are the
10944 names of loaded files (Bug#5068).
10945
8932b1c2
CY
10946 * eval.c (run_hook_with_args): Handle the case where the global
10947 value has the obsolete single-function form (Bug#5026).
10948
11e3c684
CY
109492009-12-27 Chong Yidong <cyd@stupidchicken.com>
10950
10951 * minibuf.c (Fall_completions): Minor optimization.
10952
5b28ce35
EZ
109532009-12-26 Eli Zaretskii <eliz@gnu.org>
10954
5ce6e4f4
JB
10955 * .gdbinit (pgx): Fix display of composite glyphs.
10956 Display cmp.from and cmp.to as well.
10957 (pitx): Fix last change.
5b28ce35 10958
bcffff46
KH
109592009-12-25 Kenichi Handa <handa@m17n.org>
10960
10961 * composite.h (composition_adjust_point): Update prototype.
10962
10963 * composite.c (composition_reseat_it): Don't make a composition
10964 spanning over point.
10965 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
10966 composable characters.
10967 (composition_adjust_point): New arg NEW_PT. Callers changed.
10968
10969 * keyboard.c (command_loop_1): Force redisplay if the last point
10970 was within a composition.
10971 (adjust_point_for_property): Don't adjust point for automatic
10972 composition when called after buffer modification.
10973
3f670e9a
EZ
109742009-12-19 Eli Zaretskii <eliz@gnu.org>
10975
5ce6e4f4
JB
10976 * .gdbinit (pitx): Don't use enum names, use their values.
10977 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
10978 (pgx): Don't use enum names, use their values.
10979 (pitmethod): New helper command.
10980 (pitx): Use it to display iteration method.
10981 (pgrowit): New command.
10982
ad903955
EZ
10983 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
10984
3f670e9a
EZ
10985 Update dependencies in Makefile.in.
10986
10987 * Makefile.in (alloc.o): Depend on termhooks.h.
10988 (atimer.o): Depend on blockinput.h.
10989 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
10990 and frame.h.
10991 (callint.o): Depend on systime.h, coding.h, and composite.h.
10992 (callproc.o): Depend on buffer.h.
10993 (casefiddle.o): Don't depend on charset.h.
10994 (casetab.o): Depend on character.h.
10995 (ccl.o): Depend on composite.h.
10996 (chartab.o): Depend on ccl.h.
10997 (cm.o): Depend on dispextern.h.
10998 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
10999 (coding.o): Don't depend on $(INTERVALS_H).
11000 (composite.o): Don't depend on dispextern.h explicitly (it's in
11001 $(INTERVALS_H)). Depend on ccl.h.
11002 (data.o): Depend on systime.h, coding.h, composite.h,
11003 dispextern.h, font.h, and ccl.h.
11004 (dired.o): Depend on composite.h.
11005 (dispnew.o): Depend on coding.h. Don't depend explicitly on
11006 composite.h (it's in $(INTERVALS_H)).
11007 (doc.o): Depend on systime.h, coding.h, and composite.h.
11008 (editfns.o): Don't depend explicitly on dispextern.h.
11009 (emacs.o): Depend on frame.h and coding.h.
11010 (eval.o): Depend on coding.h, composite.h, and xterm.h.
11011 (fileio.o): Depend on frame.h and commands.h. Don't depend
11012 explicitly on dispextern.h.
11013 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
11014 composite.h.
11015 (fns.o): Don't depend on termhooks.h.
11016 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
11017 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
11018 coding.h, $(INTERVALS_H), window.h, xterm.h.
11019 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
11020 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
11021 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
11022 fontset.h, ccl.h, and ftfont.h.
11023 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11024 (gtkutil.o): Depend on dispextern.h and composite.h.
11025 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
11026 termhooks.h, and ccl.h.
11027 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
11028 (intervals.o): Depend on systime.h and coding.h.
11029 (keyboard.o): Depend on composite.h and coding.h.
11030 (keymap.o): Depend on coding.h and frame.h.
11031 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
11032 (macros.o): Depend on systime.h, coding.h, and composite.h.
11033 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
11034 and atimer.h.
11035 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
11036 dispextern.h explicitly.
0b5397c2
SM
11037 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
11038 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
11039 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
11040 (regex.o): Don't depend on charset.h.
11041 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
11042 (search.o): Don't depend explicitly on composite.h.
11043 (sound.o): Depend on atimer.h and systime.h.
11044 (syntax.o): Don't depend explicitly on composite.h.
11045 (sysdep.o): Depend on coding.h and composite.h.
11046 (term.o): Depend on xterm.h and buffer.h.
11047 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
11048 (textprop.o): Don't depend on dispextern.h explicitly.
11049 (undo.o): Depend on dispextern.h.
11050 (window.o): Depend on coding.h and termhooks.h. Don't depend on
11051 dispextern.h and composite.h explicitly.
11052 (xdisp.o): Depend on ccl.h.
11053 (xfaces.o): Depend on coding.h and ccl.h.
11054 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
11055 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
11056 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
11057 ftfont.h.
11058 (xgselect.o): New dependency.
11059 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
11060 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
11061 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
11062 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
11063 (xsmfns.o): Depend on frame.h and dispextern.h.
11064 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
11065 sysselect.h.
11066
7a6f7fea
AS
110672009-12-19 Andreas Schwab <schwab@linux-m68k.org>
11068
11069 * font.c (Fclear_font_cache): Pass correct cache argument to
11070 font_clear_cache.
11071
f4c21026
AS
110722009-12-16 Andreas Schwab <schwab@linux-m68k.org>
11073
11074 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
11075 twice.
11076
f7ab0997
CY
110772009-12-15 Chong Yidong <cyd@stupidchicken.com>
11078
11079 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
11080 calling file-remote-p. Reported by Jim Meyering.
11081
fa8e045a
MA
110822009-12-15 Michael Albinus <michael.albinus@gmx.de>
11083
11084 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 11085 avoid compiler warnings. (Bug #5217)
fa8e045a 11086
a63dba42
KH
110872009-12-14 Kenichi Handa <handa@m17n.org>
11088
11089 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
11090 in 8-bit encoding.
11091
5ce6e4f4 110922009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
11093
11094 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
11095 tooltip windows.
11096
223e5fc6
JD
110972009-12-13 Jan Djärv <jan.h.d@swipnet.se>
11098
36acb2a7
JD
11099 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
11100 Xatom_net_window_type.
11101
11102 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
11103 Xatom_net_window_type.
11104
b8f00677
JD
11105 * xterm.c (my_log_handler): New function.
11106 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 11107 so we can filter out buggy messages. (Bug #5120).
b8f00677 11108
e5f0bc9a
JD
11109 * xterm.c (xg_scroll_callback): Parameter list changed,
11110 use parameter GtkScrollType to determine scroll/line/page.
11111 Only allow dragging if a button < 4 is grabbed (bug #5177).
11112 (xg_end_scroll_callback): New function.
11113 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
11114 xg_create_scroll_bar.
11115
11116 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
11117 (scroll_end_callback): Remove.
11118 (xg_create_scroll_bar): Add parameter end_callback, bind it to
11119 button-release-event. Replace value-changed event with change-value,
c4cc8b9a 11120 bug #5177.
e5f0bc9a
JD
11121 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
11122 bug #5177.
11123
11124 * gtkutil.h (XG_LAST_SB_DATA): Remove.
11125 (xg_create_scroll_bar): Add GCallback end_callback.
11126
223e5fc6
JD
11127 * xftfont.c (QClcdfilter): New variable.
11128 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
11129 (syms_of_xftfont): Initialize QClcdfilter.
11130
3c055b77
JD
111312009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11132
11133 * xsettings.c (struct xsettings): Add member seen.
11134 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 11135 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
11136 (apply_xft_settings): Only update Xft settings with what member seen
11137 indicates as new.
11138
05fe33ff
EZ
111392009-12-12 Eli Zaretskii <eliz@gnu.org>
11140
c4cc8b9a 11141 * dispextern.h (struct text_pos): Use EMACS_INT.
05fe33ff
EZ
11142 (struct glyph): Use EMACS_INT for charpos.
11143 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
11144 region_beg_charpos, region_end_charpos,
11145 redisplay_end_trigger_charpos, and also for
11146 iterator_stack_entry.end_charpos and
11147 iterator_stack_entry.stop_charpos.
11148
e8d7886a
JD
111492009-12-12 Jan Djärv <jan.h.d@swipnet.se>
11150
5ce6e4f4 11151 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
11152 (xg_create_scroll_bar): Call scroll_end_callback on button release
11153 event (bug #5177).
11154 (xg_event_is_for_scrollbar): != replaced with ==.
11155
d0db2ec8
KH
111562009-12-12 Kenichi Handa <handa@m17n.org>
11157
11158 * ftfont.c (struct ftfont_info): New member matrix.
11159 (ftfont_open): Setup xftfont_info->matrix.
11160 (MFLTFontFT): New member matrix.
11161 (FLOOR, CEIL, ROUND): New macros.
11162 (ftfont_get_metrics): Handle matrix transformation.
11163 (ftfont_shape_by_flt): New arg matrix. Callers changed.
11164
11165 * xftfont.c (struct xftfont_info): New member matrix.
11166 (xftfont_open): Setup xftfont_info->matrix.
11167
111682009-12-10 Kenichi Handa <handa@m17n.org>
11169
11170 * xdisp.c (append_space_for_newline): Consider face-remapping.
11171
2cc7b62f
AS
111722009-12-09 Andreas Schwab <schwab@linux-m68k.org>
11173
b87dd913
AS
11174 * xsettings.c: Include "keyboard.h".
11175
eba5eb94
AS
11176 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
11177
2cc7b62f
AS
11178 Fix implicit function declarations.
11179 * cmds.c: Include "frame.h".
11180 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
11181 * frame.h: Move declaration of delete_frame outside of
11182 HAVE_WINDOW_SYSTEM.
11183
a4ef73c8
CY
111842009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
11185
11186 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
11187
11188 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
11189 GTK builds.
11190
944a300c
AS
111912009-12-07 Andreas Schwab <schwab@linux-m68k.org>
11192
11193 * unexelf.c (unexec): Don't search for .data twice.
11194
022eef62
CY
111952009-12-05 Chong Yidong <cyd@stupidchicken.com>
11196
426ac949
CY
11197 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
11198 if push failed.
11199 (handle_line_prefix): Set avoid_cursor_p here. Check return value
11200 of push_display_prop (Bug#5000).
11201
022eef62
CY
11202 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
11203 value of font_list_entities (Bug#5085).
11204
be95bee9
JB
112052009-12-04 Juanma Barranquero <lekktu@gmail.com>
11206
11207 Fix `string-to-number' to deal consistently with integers and floats.
11208 * lread.c (isfloat_string): New argument ignore_trailing to accept all
11209 trailing characters, not just whitespace.
11210 (read1): Pass new arg 0 to keep old behavior.
11211 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
11212 trailing chars, as it is already done for integers. Doc fixes.
11213 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
11214
24c2d7ce
EZ
112152009-12-04 Eli Zaretskii <eliz@gnu.org>
11216
0b5397c2
SM
11217 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
11218 Delete unused enumeration value.
24c2d7ce 11219
7e694795
EZ
112202009-12-03 Eli Zaretskii <eliz@gnu.org>
11221
11222 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
11223
84b31826
SM
112242009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
11225
11226 * process.c (Fmake_network_process): Fix up the tests for
11227 "connectionless socket", so they DTRT for seqpacket sockets as well.
11228
f00c449b
SM
112292009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
11230
11231 * process.c (Qseqpacket): New symbol.
11232 (HAVE_SEQPACKET): New macro.
11233 (Fmake_network_process): Accept new :type `seqpacket'.
11234 (init_process): Add `seqpacket' feature when applicable.
11235 (syms_of_process): Initialize Qseqpacket.
11236
8096a0ff
YM
112372009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11238
11239 * font.c (font_load_for_lface, font_open_by_name): Don't store name
11240 if entity is Qnil.
11241
3e0de07f
SM
112422009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
11243
11244 * print.c (print_preprocess): Preprocess the key_and_value table of
11245 hashtables, even tho they're "hidden" (bug#5082).
11246
abeafb2a
JD
112472009-11-29 Jan Djärv <jan.h.d@swipnet.se>
11248
11249 * frame.c (frame_make_pointer_invisible)
11250 (frame_make_pointer_visible): Declare f before statements.
11251
4bf47195
EZ
112522009-11-28 Eli Zaretskii <eliz@gnu.org>
11253
11254 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
11255 omitted dependencies on lisp.h.
11256
c525b3f2
JD
112572009-11-27 Jan Djärv <jan.h.d@swipnet.se>
11258
ece2d4ed
JD
11259 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
11260 is NULL.
11261
11262 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
11263
11264 * frame.c (frame_make_pointer_invisible)
3e0de07f 11265 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
11266 frame.
11267
c525b3f2
JD
11268 * search.c (simple_search): Remove warning by making *p const.
11269
2f00e299
DN
112702009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
11271
11272 * xdisp.c (power_letter): Remove duplicate const.
11273
084b049b
JD
112742009-11-25 Jan Djärv <jan.h.d@swipnet.se>
11275
a1fadc6f
JD
11276 * term.c (delete_tty): Remove check for last terminal (bug#4970).
11277
5ce6e4f4 11278 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
11279 defaults (bug #5025).
11280
28259cac
SM
112812009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
11282
11283 * insdel.c (adjust_markers_for_delete): Move it in the
11284 right direction! (bug#4803)
11285
e8e14166
YM
112862009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11287
11288 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
11289
11290 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
11291
86677b58
GM
112922009-11-24 Glenn Morris <rgm@gnu.org>
11293
11294 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
11295
581e51e8
JD
112962009-11-23 Jan Djärv <jan.h.d@swipnet.se>
11297
cfc86c7a
JD
11298 * Makefile.in: Must create deps for ecrt0.o in its rule.
11299
581e51e8
JD
11300 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
11301 because that is what Gtk+ font dialog understands.
11302
11303 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
11304 of Fcopy_sequence.
11305 (font_open_by_name): Put name given into QCname for font-object returned.
11306
11307 * frame.c (x_set_font): Save original font name as frame parameter
11308 font-parameter.
11309
11310 * xsettings.c (set_default_xft_settings): New function.
11311 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
11312 is found.
11313
8b264ecb
AS
113142009-11-22 Andreas Schwab <schwab@linux-m68k.org>
11315
11316 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
11317 searching backwards through multibyte buffer.
11318
872870b2
JD
113192009-11-21 Jan Djärv <jan.h.d@swipnet.se>
11320
11321 * xterm.c: #include xgselect.h.
11322 (x_initialize): Call xgselect_initialize.
11323
11324 * xsettings.c (something_changedCB): C++ comments => C comments.
11325 (init_gconf): Do not deal with any GLib file descriptors, xg_select
11326 does that now.
11327
11328 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
11329 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
11330 (scroll_bar_button_cb): Remove.
5ce6e4f4 11331 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
11332 event.
11333 (xg_create_scroll_bar): Don't bind button-press-event and
11334 button-release-event.
11335
11336 * process.c: Include xgselect.h if defined (USE_GTK) ||
11337 defined (HAVE_GCONF).
11338 (wait_reading_process_output): Call xg_select for the same condition.
11339
11340 * xgselect.c (xg_select): New function to better integrate with
11341 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
11342
11343 * xgselect.h: New file, declare xg_select, xgselect_initialize.
11344
11345 * Makefile.in (XOBJ): Add xgselect.o.
11346
62a6e103
AS
113472009-11-21 Andreas Schwab <schwab@linux-m68k.org>
11348
0b5397c2
SM
11349 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
11350 Remove ignored second argument. All callers changed.
62a6e103
AS
11351 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
11352 (RE_STRING_CHAR_AND_LENGTH): Likewise.
11353 * xdisp.c (string_char_and_length): Likewise.
11354
b0ca0f33
DN
113552009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
11356
11357 * xterm.c (x_new_font):
11358 * print.c (print_object):
11359 * cmds.c (Fself_insert_command): Move declarations before statements.
11360
dd5a6279
CY
113612009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
11362
11363 * s/cygwin.h: Remove unneeded linker flags.
11364
4a8e097d
JD
113652009-11-20 Jan Djärv <jan.h.d@swipnet.se>
11366
0d1d0d26
JD
11367 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
11368
11369 * xsettings.h: Declare xsettings_get_system_font.
11370
11371 * xsettings.c (xsettings_get_system_font): New function.
11372 (init_gconf): No use initiating gconf unless we have Xft also.
11373 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
11374 HAVE_GCONF.
11375
4a8e097d
JD
11376 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
11377 add a blank entry so it doesn't collapse into nothing.
11378
8ab1650e
SM
113792009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11380
11381 * lread.c (Funintern): Comment out last change.
11382
82c602f0
RS
113832009-11-19 Richard Stallman <rms@gnu.org>
11384
11385 * lread.c (Funintern): Error if symbol is t or nil.
11386
87e32266
SM
113872009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
11388
11389 * insdel.c (make_gap_larger): Don't make as many assumptions about the
11390 representation of Lisp integers.
11391 Reported by MJ Chan <mjchan.inbox@gmail.com>.
11392
1b9ac145
AS
113932009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11394
11395 * lisp.h: Remove declaration of Ffont_get_system_font.
11396 * xfns.c: Move include of "xsettings.h".
11397 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
11398
dfb3c4c6
JD
113992009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11400
87e32266
SM
11401 * xsettings.c (something_changedCB, Ffont_get_system_font):
11402 Check use_system_font.
dfb3c4c6
JD
11403 (syms_of_xsettings): DEFVAR font-use-system-font.
11404
9370c1d8
AS
114052009-11-17 Andreas Schwab <schwab@linux-m68k.org>
11406
25fe851a
AS
11407 * xfns.c (x_default_font_parameter): Remove dead assignment.
11408
9370c1d8
AS
11409 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
11410
637fa988
JD
114112009-11-17 Jan Djärv <jan.h.d@swipnet.se>
11412
87e32266 11413 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 11414 not have FC_LCD_*. #define them if not there.
a6eb20d8 11415
87e32266 11416 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 11417
637fa988
JD
11418 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
11419
11420 * xterm.c (handle_one_xevent): Call xft_settings_event for
11421 ClientMessage, PropertyNotify and DestroyNotify.
11422 (x_term_init): If we have XFT, get DPI from Xft.dpi.
11423 Call xsettings_initialize.
11424
11425 * xftfont.c (xftfont_fix_match): New function.
11426 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
11427 Call xftfont_fix_match after XftFontMatch.
11428
11429 * xfont.c (xfont_driver): Initialize all members.
11430
87e32266
SM
11431 * xfns.c (x_default_font_parameter):
11432 Try font from Ffont_get_system_font.
637fa988
JD
11433 Do not get font from x_default_parameter if we got one from
11434 Ffont_get_system_font.
87e32266 11435 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
11436
11437 * w32font.c (w32font_driver): Initialize all members.
11438
11439 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
11440
11441 * lisp.h: Declare syms_of_xsettings.
11442
87e32266
SM
11443 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
11444 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
11445
11446 * ftfont.c (ftfont_filter_properties): New function.
11447
11448 * frame.c (x_set_font): Remove unused variable lval.
11449
87e32266 11450 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
11451
11452 * font.c (font_put_extra): Don't return if val is nil, it means
11453 boolean option is off.
11454 (font_parse_fcname): Collect all extra properties in extra_props
11455 and call filter_properties for all drivers with extra_props and
11456 font as parameter.
87e32266
SM
11457 (font_open_entity): Do not use cache, it does not pick up new
11458 fontconfig settings like hinting.
637fa988
JD
11459 (font_load_for_lface): If spec had a name in it, store it in entity.
11460
a73f9c9d 11461 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
11462
11463 * config.in: HAVE_GCONF is new.
11464
11465 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
11466 xsettings.o is new.
11467
5a942932
KH
114682009-11-17 Kenichi Handa <handa@m17n.org>
11469
11470 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
11471 back to the default font in case that no suitable font is found.
11472
b7c7a4d1
SM
114732009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
11474
11475 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
11476 Suggested by Chad Brown <yandros@mit.edu>.
11477 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
11478
072f1e39
JD
114792009-11-16 Jan Djärv <jan.h.d@swipnet.se>
11480
11481 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
11482
5d1e70a2
AS
114832009-11-14 Andreas Schwab <schwab@linux-m68k.org>
11484
87e32266 11485 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 11486
a53cfbe5
JD
114872009-11-14 Jan Djärv <jan.h.d@swipnet.se>
11488
473a99b7
JD
11489 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
11490 has a parent.
11491
a53cfbe5 11492 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 11493 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
11494
11495 * config.in: Generated (AUTO_DEPEND).
11496
f04bb9b2
MA
114972009-11-13 Michael Albinus <michael.albinus@gmx.de>
11498
b7c7a4d1 11499 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
11500 Vdbus_registered_functions_table, because it contains also
11501 properties. Fix docstring.
b7c7a4d1 11502 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 11503
8f11f7ec
SM
115042009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
11505
11506 * alloc.c (mark_object): Don't reprocess marked strings.
11507 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
11508 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
11509
8a605fe8
KH
115102009-11-13 Kenichi Handa <handa@m17n.org>
11511
8f11f7ec 11512 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
11513 semantics of Vword_combining_categories.
11514 (Vword_combining_categories): Describe the slight change of the
11515 semantics.
11516
241c4680
EZ
115172009-11-13 Eli Zaretskii <eliz@gnu.org>
11518
11519 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
11520
11521 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
11522
5d58e44c
SM
115232009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
11524
11525 * xdisp.c (syms_of_xdisp): Fix typo in last change.
11526
5e13f9d3
JB
115272009-11-12 Juanma Barranquero <lekktu@gmail.com>
11528
11529 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
11530
cf54c754
DR
115312009-11-11 David Reitter <david.reitter@gmail.com>
11532
11533 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
11534 variables to fix 2009-11-09 change.
11535
a4ada374
DN
115362009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
11537
91433552
DN
11538 * process.c (ifflag_def): Make flag_sym constant.
11539 (Fnetwork_interface_info): Use a constant pointer.
11540 (ifflag_table):
11541 * xfns.c (cursor_bits):
11542 * xdisp.c (power_letter):
11543 * termcap.c (speeds, esctab):
11544 * sysdep.c (baud_convert):
11545 * keyboard.c (lispy_accent_codes, modifier_names):
11546 * image.c (xbm_format, xpm_format, pbm_format, png_format)
11547 (jpeg_format, tiff_format, gif_format, svg_format)
11548 (interlace_start, interlace_increment, gs_format):
11549 * gtkutil.c (separator_names):
11550 * fringe.c (swap_nibble):
11551 * fns.c (base64_value_to_char, base64_char_to_value):
11552 * fileio.c (make_temp_name_tbl):
11553 * coding.c (suffixes): Make constant.
11554
f4265f6c
DN
11555 * frame.c (make_initial_frame):
11556 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
11557 build_string.
11558 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
11559
04420943
DN
11560 * s/freebsd.h:
11561 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
11562
0a5d24ae
DN
11563 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
11564 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
11565
a4ada374
DN
11566 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
11567 * xterm.c (syms_of_xterm):
11568 * xfaces.c (syms_of_xfaces):
11569 * xdisp.c (syms_of_xdisp):
11570 * lread.c (syms_of_lread):
11571 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
11572 build_string.
91433552 11573
a4ada374
DN
11574 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
11575
af98fc7f
SM
115762009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11577
8ab1650e 11578 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 11579
e90292a9
JD
115802009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11581
11582 * keyboard.h: Declare timer_check.
11583
11584 * keyboard.c (timer_check_2): New function that does what the old
11585 timer_check did.
11586 (timer_check): Call timer_check_2 until -1 or a non-zero time is
11587 returned, i.e. don't return -1 with timers pending.
11588
11589 * process.c: Remove extern declaration of timer_check.
11590
11591 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
11592 even if timer_check returned -1.
11593
af98fc7f
SM
11594 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
11595 xg_dialog_data.
e90292a9
JD
11596 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
11597 the event loop.
11598 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
11599 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
11600 Destroy the dialog after xg_dialog_run.
11601
045b83c0
SM
116022009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
11603
11604 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
11605
1fb99a3a
JD
116062009-11-10 Jan Djärv <jan.h.d@swipnet.se>
11607
11608 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
11609
04e452cb
JB
116102009-11-09 Juanma Barranquero <lekktu@gmail.com>
11611
11612 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
11613
ef7417fd
SM
116142009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
11615
11616 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
11617 w32menu.c, and nsmenu.m.
11618 Simplify the obsolete case where position is nil.
11619 (cleanup_popup_menu): New function, moved from nsmenu.m.
11620 (struct skp): Remove slot `notreal'.
11621 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
11622 adjust callers.
11623 (single_menu_item): Adjust call to parse_menu_item.
11624 (syms_of_menu): Defsubr x-popup-menu.
11625 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
11626 (keymap_panes): Don't export any more.
11627 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
11628 (xmenu_show): Declare.
11629 * keyboard.c (parse_menu_item): Remove arg `notreal'.
11630 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
11631 * keyboard.h (parse_menu_item): Update declaration.
11632 * xmenu.c (Fx_popup_menu): Remove.
11633 (syms_of_xmenu): Don't defsubr x-popup-menu.
11634 * w32menu.c (Fx_popup_menu): Remove.
11635 (syms_of_w32menu): Don't defsubr x-popup-menu.
11636 * nsmenu.m (cleanup_popup_menu): Remove.
11637 (ns_menu_show): Rename from ns_popup_menu and remove all the code
11638 moved to menu.c's Fx_popup_menu.
11639 (Fx_popup_menu): Remove.
11640 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
11641 menu_items (it's done in menu.c already).
11642
424d6179
SM
116432009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
11644
11645 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
11646 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
11647
c0df13a6 116482009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
11649
11650 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 11651 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
11652 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
11653 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
11654
2de9f71c
SM
116552009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11656
11657 Let integers use up 2 tags to give them one extra bit and thus double
11658 their range.
11659 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
11660 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
11661 New macros.
11662 (enum Lisp_Type): Use them. Give explicit values.
11663 (Lisp_Type_Limit): Remove.
11664 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
11665 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
11666 Pay attention to USE_2_TAGS_FOR_INTS.
11667 (INTEGERP): Use LISP_INT_TAG_P.
11668 * fns.c (internal_equal): Simplify the default case.
11669 (sxhash): Use case_Lisp_Int.
11670 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
11671 any more.
11672 (Ftype_of): Use case_Lisp_Int.
11673 (store_symval_forwarding): Take into account the fact that Ints can
11674 now have more than one tag.
11675 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
686b968e 11676 (buffer_slot_type_mismatch):
2de9f71c
SM
11677 * xfaces.c (face_attr_equal_p):
11678 * print.c (print_object):
11679 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
11680 Use case_Lisp_Int.
11681
323637a2
EZ
116822009-11-06 Eli Zaretskii <eliz@gnu.org>
11683
7ac65b38
EZ
11684 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
11685
323637a2
EZ
11686 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
11687 warning.
11688
e511451f
JD
116892009-11-06 Jan Djärv <jan.h.d@swipnet.se>
11690
11691 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
11692
11693 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
11694
11695 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
11696 ButtonPressRelease and MotionNotify (bug#4870).
11697
5e2327cf
DN
116982009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
11699
5adc433e
DN
11700 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
11701
d67b4f80
DN
11702 * xterm.c (syms_of_xterm):
11703 * xselect.c (syms_of_xselect):
11704 * xmenu.c (syms_of_xmenu):
11705 * xfns.c (syms_of_xfns):
11706 * xfaces.c (syms_of_xfaces):
11707 * xdisp.c (syms_of_xdisp):
11708 * window.c (syms_of_window):
11709 * w32fns.c (syms_of_w32fns):
11710 * undo.c (syms_of_undo):
11711 * textprop.c (syms_of_textprop):
11712 * terminal.c (syms_of_terminal):
11713 * syntax.c (syms_of_syntax):
11714 * sound.c (syms_of_sound):
11715 * search.c (syms_of_search):
11716 * print.c (syms_of_print):
11717 * minibuf.c (syms_of_minibuf):
11718 * macros.c (syms_of_macros):
11719 * keymap.c (syms_of_keymap, initial_define_key)
11720 (initial_define_lispy_key):
11721 * keyboard.c (syms_of_keyboard):
11722 * insdel.c (syms_of_insdel):
11723 * image.c (syms_of_image):
11724 * fringe.c (syms_of_fringe):
11725 * frame.c (syms_of_frame):
11726 * fontset.c (syms_of_fontset):
11727 * fns.c (syms_of_fns):
11728 * fns.c (syms_of_fns):
11729 * fileio.c (syms_of_fileio):
11730 * fileio.c (syms_of_fileio):
11731 * eval.c (syms_of_eval):
11732 * doc.c (syms_of_doc):
11733 * dispnew.c (syms_of_display):
11734 * dired.c (syms_of_dired):
11735 * dbusbind.c (syms_of_dbusbind):
11736 * data.c (syms_of_data):
11737 * composite.c (syms_of_composite):
11738 * coding.c (syms_of_coding):
11739 * cmds.c (syms_of_cmds):
11740 * charset.c (define_charset_internal, syms_of_character):
11741 * ccl.c (syms_of_ccl):
11742 * category.c (syms_of_category, init_category_once):
11743 * casetab.c (syms_of_casetab):
11744 * casefiddle.c (syms_of_casefiddle):
11745 * callint.c (syms_of_callint):
11746 * bytecode.c (syms_of_bytecode):
11747 * buffer.c (keys_of_buffer, syms_of_buffer):
11748 * alloc.c (syms_of_alloc):
11749 * process.c (syms_of_process, init_process):
11750 * lread.c (syms_of_lread, init_obarray):
11751 * font.c (build_style_table):
11752 * emacs.c (syms_of_emacs, main): Replace calls to intern with
11753 intern_c_string, calls to make_pure_string with
11754 make_pure_c_string. Use pure_cons instead of Fcons.
11755
5e2327cf
DN
11756 * process.c (socket_options): Make it const.
11757 (set_socket_option, init_process): Use a const pointer.
11758
11759 * lread.c (intern_c_string): New function.
11760 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11761 (defvar_int): Uset it. Make the name const char*.
11762
11763 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
11764 (defvar_int): Update prototypes.
11765 (DEFUN, EXFUN): Support for prototypes is now required.
11766 (intern_c_string): New prototype.
11767 (struct Lisp_Subr): Make symbol_name constant.
11768
11769 * font.c (struct table_entry): Remove unused member. Make NAMES
11770 constant.
11771 (weight_table, slant_table, width_table): Make constant.
11772
11773 * emacs.c (struct standard_args): Make name and longname constant.
11774
11775 * character.h (DEFSYM): Use intern_c_string.
11776
a56eaaef
DN
117772009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
11778
11779 * alloc.c (make_pure_c_string): New function.
11780
11781 * eval.c (Fautoload): Purecopy all arguments.
11782
f6a07420
KH
117832009-11-05 Kenichi Handa <handa@m17n.org>
11784
11785 * fileio.c (Finsert_file_contents): Be sure set coding-system of
11786 the buffer in case of replace.
11787
5d28d4b1
DN
117882009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
11789
11790 * puresize.h (BASE_PURESIZE): Increase to 1620000.
11791
b349d111
SM
117922009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
11793
d528b1ce
SM
11794 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
11795 when applicable (bug#4851).
11796
b349d111
SM
11797 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
11798 (P_): Support for prototypes is now required.
11799
c38eb027
CY
118002009-10-31 Chong Yidong <cyd@stupidchicken.com>
11801
11802 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
11803 (Bug#4827).
11804
0405f8d9
EZ
118052009-10-30 Eli Zaretskii <eliz@gnu.org>
11806
d528b1ce 11807 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 11808
ca0a881a
DN
118092009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
11810
11811 * puresize.h (BASE_PURESIZE): Increase to 1470000.
11812
d528b1ce
SM
11813 * lread.c (Fload): Purecopy the file name when building
11814 Vpreloaded_file_list.
ca0a881a 11815
47e0e0e4
JR
118162009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
11817
11818 * w32fns.c (syms_of_w32fns): Change default value of
11819 w32-scroll-lock-modifier to nil. (Bug#2827)
11820
057bce6f
JB
118212009-10-26 Juanma Barranquero <lekktu@gmail.com>
11822
782a943e 11823 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 11824
242bc74c
AS
118252009-10-26 Andreas Schwab <schwab@redhat.com>
11826
11827 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
11828
522d013a
JB
118292009-10-26 Juanma Barranquero <lekktu@gmail.com>
11830
11831 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
11832 For delta < 0, skip check that only makes sense when the mini-window
11833 is going to be enlarged. (Bug#4534)
11834
18060980
CY
118352009-10-25 Chong Yidong <cyd@stupidchicken.com>
11836
11837 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
11838 string in menu maps (Bug#4471).
11839
fec8f0fe
CY
118402009-10-24 Chong Yidong <cyd@stupidchicken.com>
11841
11842 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
11843 FRAME_NS_VIEW on terminal frames (Bug#4765).
11844
10d66ec0
AS
118452009-10-24 Andreas Schwab <schwab@linux-m68k.org>
11846
1cae01f7
AS
11847 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
11848 DBUS_TYPE_UINTnn separately to get proper sign extension.
11849
58a12889
AS
11850 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
11851 can properly handle unsigned types.
d528b1ce 11852 (make_uid, make_gid): Remove.
58a12889 11853
987c9327
AS
11854 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
11855 types again.
11856
522d013a 11857 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
11858 (system_process_attributes): Likewise.
11859
905a9ed3
DN
118602009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
11861
11862 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
11863
11864 * eval.c (Fautoload): Purecopy the filename. Simplify.
11865
11866 * category.c (Fdefine_category): Purecopy docstring.
11867
a599b3e8
AS
118682009-10-23 Andreas Schwab <schwab@linux-m68k.org>
11869
7b792fc9
AS
11870 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
11871
a599b3e8
AS
11872 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
11873
b35ac83e
CY
118742009-10-23 Chong Yidong <cyd@stupidchicken.com>
11875
11876 * window.c (Fwindow_edges, Fwindow_pixel_edges)
11877 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
11878 (Bug#4775).
11879
e8903e00
SM
118802009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
11881
11882 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
11883 (init_fileio_once):
11884 * lisp.h (init_fileio_once): Remove.
11885 * emacs.c (main): Don't call init_fileio_once.
11886
8f43cbf3
DN
118872009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
11888
11889 * puresize.h (BASE_PURESIZE): Increase to 1430000.
11890
26898943
AS
118912009-10-21 Andreas Schwab <schwab@linux-m68k.org>
11892
11893 * doprnt.c (doprnt): Fix overflow check.
11894
5c646d5a
JD
118952009-10-21 Jan Djärv <jan.h.d@swipnet.se>
11896
3132a7ea
JD
11897 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
11898
5c646d5a
JD
11899 * xterm.h (x_wait_for_event): Declare it.
11900
11901 * xterm.c (pending_event_wait): New variable.
11902 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
11903 see pending_event_wait.eventtype.
11904 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
11905 (x_new_font): Call change_frame_size with new rows/columns before we
11906 try to resize the frame.
5c646d5a 11907 (x_wait_for_event): New function.
d528b1ce
SM
11908 (x_set_window_size_1): Don't change gravity unless change_gravity
11909 is set.
5c646d5a
JD
11910 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
11911 don't change frame size, instead wait for the ConfigureNotify.
11912 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
11913 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
11914 (x_initialize): Initialize pending_event_wait.
11915
11916 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
11917 size.
11918
11919 * widget.c (EmacsFrameSetValues): Add comment.
11920 (EmacsFrameSetCharSize): Just call x_set_window_size.
11921
11922 * gtkutil.c (xg_frame_set_char_size): Flush events and call
11923 x_wait_for_event.
d528b1ce 11924 (flush_and_sync): Remove again.
5c646d5a
JD
11925 (xg_get_font_name): Suggest monospace if no previous font is known.
11926
e9c1637d
SM
119272009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
11928
11929 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 11930 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 11931
5a72cccb
YM
119322009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11933
11934 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
11935 processing pending events when event is filtered for input method.
ab04798f 11936 (Bug#3681)
5a72cccb 11937
2629aa37
JB
119382009-10-20 Juanma Barranquero <lekktu@gmail.com>
11939
11940 * fns.c: Add #endif accidentally removed in previous change.
11941
c3417a74
DN
119422009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11943
11944 * fns.c: Remove code for unsupported system: MAC_OS.
11945 * image.c: Likewise. Include setjmp.h.
11946
9685cef2
JD
119472009-10-19 Jan Djärv <jan.h.d@swipnet.se>
11948
11949 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
11950 pixel -1 (bug #4742).
11951
d7306fe6
DN
119522009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
11953
019d2c4c
DN
11954 * process.c (create_pty): Remove conditionals for no longer
11955 supported systems: UNIPLUS and RTU.
11956
ee6bacd4
DN
11957 * xterm.c:
11958 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
11959
d7306fe6
DN
11960 * alloc.c: Do not define struct catchtag.
11961 * eval.c: Move struct catchtag definition ...
11962 * lisp.h: ... here.
11963
11964 * image.c: Move png.h #include earlier to avoid warnings.
11965
11966 * xterm.c:
11967 * xsmfns.c:
11968 * xselect.c:
11969 * xrdb.c:
11970 * xmenu.c:
11971 * xftfont.c:
11972 * xfont.c:
11973 * xfns.c:
11974 * xfaces.c:
11975 * xdisp.c:
11976 * window.c:
11977 * widget.c:
11978 * w32xfns.c:
11979 * w32uniscribe.c:
11980 * w32term.c:
11981 * w32select.c:
11982 * w32reg.c:
11983 * w32proc.c:
11984 * w32menu.c:
11985 * w32inevt.c:
11986 * w32heap.c:
11987 * w32font.c:
11988 * w32fns.c:
11989 * w32console.c:
11990 * w32.c:
11991 * w16select.c:
11992 * vm-limit.c:
11993 * unexsol.c:
11994 * unexec.c:
11995 * unexcw.c:
11996 * unexaix.c:
11997 * undo.c:
11998 * tparam.c:
11999 * textprop.c:
12000 * terminfo.c:
12001 * terminal.c:
12002 * termcap.c:
12003 * term.c:
12004 * syntax.c:
12005 * sound.c:
12006 * sheap.c:
12007 * search.c:
12008 * scroll.c:
12009 * region-cache.c:
12010 * regex.c:
12011 * ralloc.c:
12012 * process.c:
12013 * print.c:
b024548b
DN
12014 * nsterm.m:
12015 * nsselect.m:
12016 * nsmenu.m:
12017 * nsimage.m:
12018 * nsfont.m:
12019 * nsfns.m:
d7306fe6
DN
12020 * msdos.c:
12021 * minibuf.c:
12022 * menu.c:
12023 * marker.c:
12024 * macros.c:
12025 * keymap.c:
12026 * keyboard.c:
12027 * intervals.c:
12028 * insdel.c:
12029 * indent.c:
12030 * gtkutil.c:
12031 * ftxfont.c:
12032 * ftfont.c:
12033 * fringe.c:
12034 * frame.c:
12035 * fontset.c:
12036 * font.c:
12037 * fns.c:
12038 * floatfns.c:
12039 * filelock.c:
12040 * fileio.c:
12041 * emacs.c:
12042 * editfns.c:
12043 * dosfns.c:
12044 * doprnt.c:
12045 * doc.c:
12046 * dispnew.c:
12047 * dired.c:
12048 * dbusbind.c:
12049 * data.c:
12050 * composite.c:
12051 * coding.c:
12052 * cmds.c:
12053 * cm.c:
12054 * chartab.c:
12055 * charset.c:
12056 * character.c:
12057 * ccl.c:
12058 * category.c:
12059 * casetab.c:
12060 * casefiddle.c:
12061 * callproc.c:
12062 * callint.c:
12063 * bytecode.c:
12064 * buffer.c:
12065 * atimer.c: Include setjmp.h. (Bug#4643)
12066
fd5f21e6
SM
120672009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
12068
4c0354d7
SM
12069 Remove leftover table unibyte_to_multibyte_table.
12070 * character.c (unibyte_to_multibyte_table): Remove.
12071 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
12072 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
12073 * character.h (UNIBYTE_TO_CHAR): New macro.
12074 (MAKE_CHAR_MULTIBYTE): Use it.
12075 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
12076 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
12077 (message_dolog, set_message_1):
12078 * search.c (Freplace_match):
12079 * editfns.c (Fcompare_buffer_substrings):
12080 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
12081 (concat):
12082 * insdel.c (copy_text, count_size_as_multibyte):
12083 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
12084 * term.c (produce_glyphs):
12085 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
12086 * regex.c (RE_CHAR_TO_MULTIBYTE):
12087 * cmds.c (internal_self_insert):
12088 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
12089
fd5f21e6
SM
12090 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
12091
4418646e
DN
120922009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
12093
12094 * puresize.h (BASE_PURESIZE): Increase to 1310000.
12095
35f5c1d2
JB
120962009-10-16 Juanma Barranquero <lekktu@gmail.com>
12097
12098 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
12099
a0cd8f6b
AR
121002009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
12101
12102 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
12103 still needed under Tiger.
12104
12105 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
12106
12107 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
12108 __Apple__.
12109
12110 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
12111
01a8d3fa
KH
121122009-10-15 Kenichi Handa <handa@m17n.org>
12113
12114 * print.c (print_object): Escape a symbol like "2E10" too.
12115
bf6c75c9 121162009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
12117
12118 Cleanups and changes for 64-bit compile under Snow Leopard.
12119 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
12120
12121 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
12122
c5959062 12123 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
12124 (ns_findfonts, nsfont_list_family): Use long format in printf, and
12125 cast argument.
12126 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 12127 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
12128
12129 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
12130
12131 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
12132 where appropriate.
12133
12134 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
12135 where appropriate.
6e4780c5
JB
12136 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
12137 Use stringWithUTF8String.
bf6c75c9
AR
12138 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
12139
6e4780c5
JB
12140 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
12141 Add formal protocol mention to inheritance.
bf6c75c9
AR
12142 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
12143
6e4780c5
JB
12144 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
12145 Fix printf format.
bf6c75c9
AR
12146 (ns_query_color): Use CGFloat where appropriate.
12147 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 12148 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
12149 argument.
12150
3d87f118
AR
12151 * config.in (NS_HAVE_NSINTEGER): Drop.
12152
a95c8102
AR
12153 * dbusbind.c (dbus-method-return-internal)
12154 (dbus-method-error-internal): Use long format in printf, and cast
12155 argument.
12156
12157 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
12158 in printf, and cast argument.
12159
6873acca 12160 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
12161 cast argument.
12162
9ec6f100
GM
121632009-10-11 Glenn Morris <rgm@gnu.org>
12164
12165 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
12166
5be883cd
JD
121672009-10-08 Jan Djärv <jan.h.d@swipnet.se>
12168
12169 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
12170 menu bar with a small width so it doesn't enlarge the frame.
12171
d7a39b51
JB
121722009-10-08 Juanma Barranquero <lekktu@gmail.com>
12173
12174 * fontset.c (Fset_fontset_font): Fix typos in error messages.
12175
0c2b6f8e
GM
121762009-10-06 Glenn Morris <rgm@gnu.org>
12177
12178 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
12179 SOME_MACHINE_LISP (this enters indirectly via DOC).
12180
e02131a2
EZ
121812009-10-05 Eli Zaretskii <eliz@gnu.org>
12182
12183 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
12184
b4744254
EZ
121852009-10-04 Eli Zaretskii <eliz@gnu.org>
12186
12187 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
12188 Doc fix.
12189
dbf64827
JB
121902009-10-03 Martin Rudalics <rudalics@gmx.at>
12191
12192 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
12193
e9a0aef8
MA
121942009-10-02 Michael Albinus <michael.albinus@gmx.de>
12195
d528b1ce 12196 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
12197 used anymore outside fileio.c.
12198
12199 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
12200
64eb2b56
JB
122012009-10-01 Juanma Barranquero <lekktu@gmail.com>
12202
12203 * lisp.h (Qdelete_directory_internal):
12204 Declare, instead of Qdelete_directory.
12205
12206 * w32fns.c (Fsystem_move_file_to_trash): Use it.
12207
9d28c33e
SM
122082009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
12209
12210 * eval.c (Fcalled_interactively_p): Add `kind' argument.
12211
9d8f3bd9
MA
122122009-10-01 Michael Albinus <michael.albinus@gmx.de>
12213
9d28c33e 12214 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
12215 Fdelete_directory. It is not a command anymore. It has no file
12216 name handler.
12217
9694740b
SM
122182009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
12219
12220 * xdisp.c (get_next_display_element): Use an enum in last change.
12221
748e162f
KH
122222009-09-28 Kenichi Handa <handa@m17n.org>
12223
9694740b 12224 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
12225 unibyte_display_via_language_environment in handling
12226 Vnobreak_char_display.
12227
17efd58d
AR
122282009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
12229
12230 * nsterm.h (ns_app_name): New extern variable.
12231
12232 * nsterm.m (ns_app_name): New variable.
12233 (ns_term_init): Set and use it.
12234 (ns_term_shutdown): Use it.
12235
12236 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
12237 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
12238
12239 * nsfns.m (ns_set_name_iconic, ns_set_name)
12240 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
12241 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
12242
9694740b
SM
12243 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
12244 Remove double-casting in client_data comparison.
31c2d412 12245
3208cb35
YM
122462009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12247
12248 * keyboard.c (make_lispy_event): Remember last wheel direction.
12249 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
12250
b7d552d6
GM
122512009-09-26 Glenn Morris <rgm@gnu.org>
12252
12253 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
12254 internal.elc. Add term/pc-win.elc.
12255 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
12256 term/x-win.elc.
12257 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
12258 term/w32-win.elc.
12259 (NS_SUPPORT): New.
12260 (lisp): Add NS_SUPPORT.
12261 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
12262
4ff670a8
DR
122632009-09-25 David Reitter <david.reitter@gmail.com>
12264
12265 * nsmenu.m (EmacsMenu-clear): Recognize application menu
12266 on Mac OS X 10.6+ (bug#4513).
12267
feabfb6c
JB
122682009-09-24 Juanma Barranquero <lekktu@gmail.com>
12269
12270 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
12271 some parts of Emacs code (like font selection) don't grok them.
12272 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 12273
de59072a
AS
122742009-09-24 Andreas Schwab <schwab@redhat.com>
12275
12276 * coding.c (decode_coding_iso_2022): Fix operator precedence.
12277
a489517b
JB
122782009-09-24 Juanma Barranquero <lekktu@gmail.com>
12279
12280 * dired.c (Fdirectory_files): Fix typo in docstring.
12281
0592970c
AR
122822009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12283
12284 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
12285 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
12286 (EmacsScroller-setPosition:portion:whole:): Remove -display call
12287 under GNUstep.
12288 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
12289
12290 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
12291 glyph advancement.
12292
48e8a88b
AR
122932009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
12294
12295 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 12296 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
12297
12298 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
12299 deleted (bug #4492).
12300
e14f0a78
AR
12301 * nsfont.m (Vns_reg_to_script): New lisp variable.
12302 (syms_of_nsfont): Declare it.
12303 (ns_registry_to_script): New function.
12304 (ns_get_req_script): Call it.
12305 (ns_findfonts): Don't give up on non-unicode registry.
12306
12307 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
12308
5b650faa
SM
123092009-09-20 Tom Tromey <tromey@redhat.com>
12310
12311 * eval.c (find_handler_clause): Make stack-trace-on-error work in
12312 batch mode (bug#4228).
12313
a489517b 123142009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
12315
12316 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 12317 carefully. (Bug #4339)
0bae4e09 12318
fcfe06f3
CY
123192009-09-18 Chong Yidong <cyd@stupidchicken.com>
12320
d798ba87 12321 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 12322
31642728
AR
123232009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
12324
12325 * emacs.c (inhibit_x_resources): Update doc string for NS.
bba3e508
SM
12326 (main) [HAVE_NS]: Don't process --no-init-file option.
12327 Remove legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
12328
12329 * nsterm.h (ns_no_defaults): Remove.
12330
12331 * nsterm.m (ns_no_defaults): Remove.
12332 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
12333 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
12334 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
12335 don't update the NSWindow itself.
bba3e508
SM
12336 (EmacsView-windowWillUseStandardFrame:defaultFrame:):
12337 Improve state detection and store user rect ourselves. (Bug #3581)
31642728
AR
12338
12339 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
12340 ns_use_qd_smoothing.
12341
12342 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
12343 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 12344 (x-close-connection): Drop PSFlush() under OS X.
a489517b 12345 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 12346
8686ac71
JB
123472009-09-17 Juanma Barranquero <lekktu@gmail.com>
12348
12349 * emacs.c (inhibit_x_resources): New variable.
12350 (main) [HAVE_NS]: Don't process --quick command line option.
12351 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
12352
12353 * lisp.h (inhibit_x_resources): Declare it extern.
12354
12355 * w32reg.c (x_get_string_resource):
12356 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
12357
e227ba05
EZ
123582009-09-17 Eli Zaretskii <eliz@gnu.org>
12359
362654a6
JB
12360 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
12361 Add lisp/term/internal.elc.
e227ba05 12362
742d40e8
SM
123632009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
12364
12365 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
12366 (bug#4461).
12367
005bd5a2
DN
123682009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
12369
12370 * puresize.h (BASE_PURESIZE): Increase to 1290000.
12371
12372 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
12373 (OBJECTS_MACHINE): Remove, unused.
12374
f9af9719
SM
123752009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
12376
12377 * frame.c (x_get_resource_string): Remove unused.
12378
0307c7d2
JD
123792009-09-15 Jan Djärv <jan.h.d@swipnet.se>
12380
12381 * xterm.c (x_new_font): Call change_frame_size before calling
12382 x_set_window_size, in case frame size won't change.
12383
12384 * frame.c (x_set_font): Remove dead code.
12385
428b13d6
SM
123862009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
12387
12388 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
12389
5766c380
SM
123902009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12391
12392 * lread.c (Fload): Don't output a message after loading an obsolete
12393 package any more (done in Lisp now).
12394
2fd0161b
CY
123952009-09-12 Chong Yidong <cyd@stupidchicken.com>
12396
12397 * fns.c (syms_of_fns): Doc fix (Bug#4227).
12398
bc5e75b6
SM
123992009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
12400
12401 * keymap.c (Fwhere_is_internal): Use nconc2.
12402
c31c985e
AM
124032009-09-11 Alan Mackenzie <acm@muc.de>
12404
12405 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
12406 batch mode.
12407
78012bd2
AS
124082009-09-11 Andreas Schwab <schwab@linux-m68k.org>
12409
12410 * xdisp.c (display_mode_element): Detect cycles.
12411
9d889332
SM
124122009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12413
12414 * keymap.c (where_is_internal): Don't erroneously return nil right after
12415 filling the cache.
12416 (where_is_internal_1): Fix up typo.
12417
7ab5d780
GM
124182009-09-11 Glenn Morris <rgm@gnu.org>
12419
12420 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
12421 share a common doc-string.
12422
5238a749
SM
124232009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
12424
66d77eda
SM
12425 * keymap.c (get_keymap): Return the actual keymap symbol rather than
12426 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
12427
5238a749
SM
12428 * keymap.c (QCadvertised_binding): New constant.
12429 (syms_of_keymap): Initialize it.
12430 (Fwhere_is_internal): Try and use bindings from :advertised-binding
12431 if applicable.
12432
19f48442
SM
124332009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
12434
50d4ba39
SM
12435 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
12436 (parse_menu_item): Streamline since bindings are recomputed all the
12437 time anyway. Don't bother checking Vdefine_key_rebound_commands any
12438 more and don't support lmenu's menu-alias any more either.
12439
a88a5372
SM
12440 * keymap.c (where_is_internal_data): Make noindirect a boolean.
12441 (where_is_internal): Strip it down to only traverse the keymaps.
12442 Move the cache handling from Fwhere_is_internal to here.
12443 (Fwhere_is_internal): Move the handling of remapping and the choice of
12444 the best binding from where_is_internal to here.
12445 Unify the cached/noncached paths, so remapping is also handled
12446 correctly when the cache is used, and so the cache can be used to
12447 speed up remap-handling when applicable.
12448 Give preference to non-remapped bindings.
12449 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
12450 non-remapped bindings.
12451 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
12452 command remapping.
12453
19f48442
SM
12454 * xdisp.c (display_mode_element): Move list length limit from 50 to
12455 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
12456
599498c3 124572009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
12458
12459 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
12460
f9b7b5ac
SM
124612009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
12462
a53af587
JB
12463 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
12464 (Bug#4334)
12465
f9b7b5ac
SM
12466 * keymap.c (where_is_internal): Filter out shadowed remappings.
12467 Assume that where_is_internal returns unshadowed bindings to simplify
12468 the code and get rid of the gotos. Use ASIZE.
12469
04f4b72d
JD
124702009-09-04 Jan Djärv <jan.h.d@swipnet.se>
12471
4da146f2
JD
12472 * xterm.c (x_focus_changed): If we get a focusout and pointer
12473 is invisible, make it visible.
12474
04f4b72d
JD
12475 * xterm.h: Remove condition for declaration of
12476 x_*_window_to_frame.
12477
7cef7ce3
SM
124782009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
12479
12480 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
12481 initial terminal as well.
12482
a54fa5b7
JD
124832009-09-02 Jan Djärv <jan.h.d@swipnet.se>
12484
12485 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 12486 x_menubar_window_to_frame.
a54fa5b7 12487
50426a04 12488 * xterm.c: Remove declarations also in xterm.h.
a54fa5b7
JD
12489 (XTmouse_position): Do not return valid positions
12490 for clicks in the menubar and the toolbar for Gtk+.
12491
12492 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
12493 if the widget for the event has the same top level as a frame,
12494 return the frame.
12495 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
12496 internal windows, bug #4122.
12497 (x_non_menubar_window_to_frame): Remove.
12498
5a021dd0
GM
124992009-09-02 Glenn Morris <rgm@gnu.org>
12500
12501 * buffer.c (default-major-mode): Move most of the doc from here...
12502 (major-mode): ... to here.
12503
548fe2f3
NR
125042009-08-30 Nick Roberts <nickrob@snap.net.nz>
12505
12506 * process.c (wait_reading_process_output): Keep the descriptor
12507 when pty is used by a non-child process, e.g., in I/O buffer of
12508 GDB this allows inferior to be restarted.
12509
e0840eef
EZ
125102009-08-29 Eli Zaretskii <eliz@gnu.org>
12511
12512 * xdisp.c (redisplay_internal): Remove redundant test and collapse
12513 both branches into one.
12514
82e98df4
SM
125152009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
12516
12517 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
12518 (main): Use enable-multibyte-characters rather than
12519 default-enable-multibyte-characters. Output a warning message when
12520 running a unibyte session.
12521
890617cb
YM
125222009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12523
12524 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
12525 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
12526 (copy_data_segment): Also copy __program_vars section.
12527 (copy_dyld_info) [LC_DYLD_INFO]: New function.
12528 (dump_it) [LC_DYLD_INFO]: Use it.
12529
12530 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
12531
e7adeadc
EZ
125322009-08-28 Eli Zaretskii <eliz@gnu.org>
12533
12534 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
12535 $(SRC)/buildobj.h.
ef1b0ba7 12536 (buildobj.h): Rename from $(SRC)/buildobj.h.
e7adeadc
EZ
12537 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
12538 $(SRC)/buildobj.h.
12539 (clean): Add buildobj.h.
12540
3ed8bbdc
TZ
125412009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
12542
12543 * print.c (print_object): Set escapeflag to 1 when printing
12544 hashtable keys and values.
12545
155a6764
SM
125462009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
12547
12548 * lread.c (read_integer): Use doubles (and potentially return a float
12549 number) as we do in string-to-number.
12550 (read1): Use strtol to read integers, signal errors on strtol's
12551 overflow and use floats if strtol's output is too large for
12552 Elisp integers.
12553
877610de
EZ
125542009-08-27 Eli Zaretskii <eliz@gnu.org>
12555
12556 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
12557 (make-buildobj-SH): Fix last change.
12558 (SRC): Move to before where it's first used.
12559
ef73e7be
KH
125602009-08-27 Kenichi Handa <handa@m17n.org>
12561
550c8289
KH
12562 * process.c (send_process): Use encode_coding_object instead of
12563 encode_coding_string to perform eol-conversion even if the string
12564 is unibyte.
12565
60afa08d
KH
12566 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
12567 character.
12568
ef73e7be 12569 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 12570 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 12571
7b3a82d7
DN
125722009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
12573
5654bf63
DN
12574 * callproc.c (Fcall_process): Remove always true #if.
12575
7b3a82d7
DN
12576 * lisp.h: Replace #if 0 code for checking with text pointing to
12577 the --enable-checking configure flag.
12578
12579 * emacs.c (main): Mention the --enable-profiling configure flag
12580 instead of using CFLAGS.
12581
878bde49
KR
125822009-08-26 Ken Raeburn <raeburn@raeburn.org>
12583
12584 * Makefile.in (buildobj.h): New target.
12585 (doc.o): Depend on it.
12586 (temacs${EXEEXT}): Don't generate buildobj.lst.
12587 (mostlyclean): Delete buildobj.h, not buildobj.lst.
12588 * makefile.w32-in ($(SRC)/buildobj.h): New target.
12589 ($(BLD)/doc.$(O)): Depend on it.
12590 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
12591 provided by Eli Zaretskii.)
12592 ($(TEMACS)): Don't generate buildobj.lst.
12593 * doc.c: Include buildobj.h.
12594 (buildobj): New static variable.
12595 (Fsnarf_documentation): Use it, instead of opening and reading
12596 buildobj.lst.
12597
1574224c
MA
125982009-08-25 Michael Albinus <michael.albinus@gmx.de>
12599
12600 * dbusbind.c (Fdbus_call_method)
12601 (Fdbus_call_method_asynchronously): Use English numeric format for
12602 timeout values in doc string.
12603
d9da2f45
KH
126042009-08-25 Kenichi Handa <handa@m17n.org>
12605
ef73e7be
KH
12606 * alloc.c (mark_char_table): New function.
12607 (mark_object): Use mark_char_table for a char-table.
12608
d9da2f45
KH
12609 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
12610 (CHAR_TABLE_REF): Use it.
12611
c8edcc01
KR
126122009-08-23 Ken Raeburn <raeburn@raeburn.org>
12613
12614 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
12615 before invoking the newly build emacs to check for load-path
12616 shadowing.
12617
7763401b
GM
126182009-08-22 Glenn Morris <rgm@gnu.org>
12619
12620 * Makefile.in (bootstrap_exe): New variable.
12621 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
12622 Use ${bootstrap_exe}.
12623
729eadda
EZ
126242009-08-22 Eli Zaretskii <eliz@gnu.org>
12625
12626 * coding.h (encode_coding_string): Don't encode unibyte strings.
12627 (Bug#4047)
12628
eb4c6ace
MA
126292009-08-22 Michael Albinus <michael.albinus@gmx.de>
12630
12631 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
12632
12633 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
12634 intended as hotfix only.
12635 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
12636
36e34d1b
AR
126372009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
12638
12639 * nsterm.m (ns_get_color): Update documentation properly for last
bba3e508
SM
12640 change, and clean up loose ends in the code left by it.
12641 Fix longstanding bug with 16-bit hex parsing, and add support for
36e34d1b
AR
12642 yet another X11 format (rgb:r/g/b) for compatibility.
12643 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
12644 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
12645
f983eb8a
SM
126462009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
12647
12648 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
12649
3f56d3c6
MA
126502009-08-20 Michael Albinus <michael.albinus@gmx.de>
12651
12652 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
12653 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
12654 (xd_initialize, xd_pending_messages): Check, whether
12655 $DBUS_SESSION_BUS_ADDRESS is set.
12656
fb641d68
YM
126572009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12658
12659 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
12660
12661 * nsterm.m (ns_get_color): Remove incompatible color formats again.
12662
cf59a374
GM
126632009-08-20 Glenn Morris <rgm@gnu.org>
12664
12665 * emacs.c (system-type): Doc fix.
12666
1373f3be
SM
126672009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
12668
12669 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
12670 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
12671
058ed861
MA
126722009-08-18 Michael Albinus <michael.albinus@gmx.de>
12673
1373f3be
SM
12674 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
12675 New functions.
058ed861
MA
12676 (xd_initialize): Revert change from 2009-08-16.
12677
563a866e 126782009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
12679
12680 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 12681 font-group vector, return nil.
5fc05db0 12682
e42bdf01
CY
126832009-08-17 Chong Yidong <cyd@stupidchicken.com>
12684
12685 * process.c (status_notify): Don't perform redisplay.
12686 (Fdelete_process, list_processes_1, process_send_signal):
12687 Expliticly perform redisplay.
12688 (wait_reading_process_output): Always check process status, but
12689 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
12690
4230ab74
KR
126912009-08-17 Ken Raeburn <raeburn@raeburn.org>
12692
1373f3be 12693 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
12694 (XFLOAT_INIT): New macro for storing a float value.
12695 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
12696 * fns.c (sxhash): Copy out the value of a float in order to
12697 examine its bytes.
12698 * dbusbind.c (xd_append_arg): Likewise.
12699
4230ab74
KR
12700 * emacs.c (main): Don't call syms_of_data twice.
12701
a0645cdd
MA
127022009-08-16 Michael Albinus <michael.albinus@gmx.de>
12703
12704 * dbusbind.c (xd_initialize): Add connection file descriptor to
12705 input_wait_mask, in order to let select() detect, whether a new
12706 message has been arrived.
ca4f31ea 12707 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 12708
485db0ba
MA
127092009-08-15 Michael Albinus <michael.albinus@gmx.de>
12710
1373f3be
SM
12711 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
12712 New functions.
485db0ba
MA
12713
12714 * lisp.h (xd_pending_messages): Declare.
12715
12716 * keyboard.c (readable_events): Call xd_pending_messages.
12717
b5b98ff4
CY
127182009-08-15 Chong Yidong <cyd@stupidchicken.com>
12719
1373f3be 12720 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 12721
f8354c6e
CY
12722 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
12723
b5b98ff4
CY
12724 * buffer.c (set_buffer_internal_1)
12725 (swap_out_buffer_local_variables): Check for unbound local
12726 variables (Bug#4138).
12727
8b9fc636
EZ
127282009-08-14 Eli Zaretskii <eliz@gnu.org>
12729
12730 * process.c (create_pty): Fix last change.
12731
ce959360
CY
127322009-08-13 Chong Yidong <cyd@stupidchicken.com>
12733
12734 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
12735 (xbm_load_image): Caller changed.
64b807c9 12736 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 12737
c7baf7e9
NR
127382009-08-13 Nick Roberts <nickrob@snap.net.nz>
12739
12740 * process.c (create_pty): New function.
12741 (Fstart_process): Use it to allow Emacs to just associate a pty
12742 with the buffer. See associated change in gdb-mi.el.
12743 (list_processes_1): Deal with no program name.
12744 (start_process_unwind): Use pid == -2 to mean no process.
12745
1ac9108a
SM
127462009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
12747
12748 * cmds.c (nonundocount): New global variable.
12749 (keys_of_cmds): Initialize it.
12750 (Fself_insert_command): Use it to combine upto 20 sequential chars
12751 into a single undo entry, just like the Qself_insert_command code in
12752 keyboard.c does.
12753 Call frame_make_pointer_invisible, also like the Qself_insert_command
12754 code in keyboard.c does.
12755 * keyboard.c (command_loop_1): Use the new global nonundocount rather
12756 than its own local replacement for it.
12757
e267324c
KR
127582009-08-10 Ken Raeburn <raeburn@raeburn.org>
12759
1ac9108a 12760 * fns.c (concat): Don't re-set string length to its current value.
77437343 12761
1ac9108a
SM
12762 * coding.h (decode_coding_string, encode_coding_string):
12763 Use SBYTES macro.
f0bed503 12764
1ac9108a 12765 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
12766 (doprnt): Merge with doprnt1, discarding lispstrings code.
12767 * lisp.h (doprnt_lisp): Don't declare.
12768
416e006d
JL
127692009-08-07 Juri Linkov <juri@jurta.org>
12770
12771 * puresize.h (BASE_PURESIZE): Increase to 1270000.
12772
6f7d5780
DN
127732009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
12774
12775 * print.c (syms_of_print): Undo previous change.
12776
f19a0f5b
TZ
127772009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
12778
12779 * lread.c (read1, syms_of_lread): Read hashtables back from the
12780 readable format.
12781
12782 * print.c (print_preprocess, print_object): Print hashtables fully
12783 and readably.
12784 (syms_of_print): Provide 'hashtable-print-readable.
12785
b9173dc2
AR
127862009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
12787
12788 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
12789 no family set.
12790 (nsfont_open): Handle case when entity has no family.
12791
1586503c
AR
127922009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
12793
12794 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
12795 element, not a list, for match case.
12796
087048cd
KH
127972009-07-28 Kenichi Handa <handa@m17n.org>
12798
12799 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
12800 rigidly.
12801
12802 * xfont.c (xfont_list_pattern): Don't ignore the return value of
12803 font_parse_xlfd. Check font properties more rigidly.
12804
780c2506
DN
128052009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
12806
31fd7c5c
JB
12807 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
12808 bsd-common.h.
780c2506 12809
a8c0cc18
KH
128102009-07-27 Kenichi Handa <handa@m17n.org>
12811
12812 * xfaces.c (face_with_height): Call font_clear_prop.
12813
4fbe2306
CY
128142009-07-26 Chong Yidong <cyd@stupidchicken.com>
12815
111d9af3
CY
12816 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
12817
12818 * xterm.c (x_term_init): Use Qx.
12819
4fbe2306
CY
12820 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
12821
1ac9108a 12822 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
12823 (ns_get_color): Revert 2009-07-16 change.
12824
beb0b7f9
EZ
128252009-07-25 Eli Zaretskii <eliz@gnu.org>
12826
12827 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 12828 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 12829
2baf5e76
KR
128302009-07-25 Ken Raeburn <raeburn@raeburn.org>
12831
1ac9108a
SM
12832 * coding.h (decode_coding_string, encode_coding_string):
12833 Use SCHARS macro.
8890e5f5 12834
2baf5e76 12835 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 12836 (load_depth): Delete.
2baf5e76
KR
12837 (Qload_in_progress): New variable.
12838 (load_unwind): Don't reference load_depth or load_in_progress.
12839 (Fload): Likewise; specbind Qload_in_progress instead.
12840 (init_lread): Don't initialize load_depth.
12841 (syms_of_lread): Initialize and protect Qload_in_progress.
12842
1395c6f5
AR
128432009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
12844
12845 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
12846
4e2f36cf
AR
128472009-07-23 Yavor Doganov <yavor@gnu.org>
12848
12849 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
12850
5dd9a6f7
AR
128512009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
12852
12853 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
12854 Bugs 3792, 3720, 2402.
12855 (ns_lookup_indexed_color): Check for bad index.
12856 (ns_index_color): Init unused slot to 0.
12857 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
12858 Bug 3714, possibly 3082.
5dd9a6f7 12859
c902b920
JR
128602009-07-22 Jason Rumney <jasonr@gnu.org>
12861
1ac9108a
SM
12862 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
12863 Position IME window at cursor (Bug#2570).
c902b920
JR
12864 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
12865 (globals_of_w32fns): Dynamically load functions required above.
12866
12867 * w32term.c (w32_draw_window_cursor): Send message to reposition
12868 any IME window.
12869
090101cf
CY
128702009-07-21 Chong Yidong <cyd@stupidchicken.com>
12871
12872 * fileio.c: Revert 2009-07-16 changes.
12873 (Vauto_save_include_big_deletions): New variable.
12874 (Fdo_auto_save): Disable auto-save only if
12875 auto-save-include-big-deletions is nil.
12876
e6583e3d
CY
128772009-07-21 Chong Yidong <cyd@stupidchicken.com>
12878
12879 * xdisp.c (move_it_to): For continued lines ending in a tab, take
12880 the overflowed pixels into account (Bug#3879).
12881
ece435a5
KR
128822009-07-21 Ken Raeburn <raeburn@raeburn.org>
12883
12884 * lread.c (load_depth): New variable.
12885 (Fload, load_unwind, init_lread): Set it to the load recursion
12886 depth; set load_in_progress as a simple boolean based on the
12887 current load_depth. (Bug#3892)
12888
40b2d973
AR
128892009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
12890
12891 * nsfont.m (ns_has_attribute): Remove.
12892 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
12893
10be7e0d
JL
128942009-07-18 Juri Linkov <juri@jurta.org>
12895
12896 * process.c (Fset_process_query_on_exit_flag): Mention killing
12897 a buffer in docstring.
12898
fa055055
KH
128992009-07-17 Kenichi Handa <handa@m17n.org>
12900
12901 * casetab.c (shuffle): Fix the logic of setting up the cycle.
12902
042f7b69
YM
129032009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12904
12905 * nsfns.m (Fns_set_alpha): Remove function.
12906 (syms_of_nsfns): Don't defsubr it.
12907
12908 * nsterm.m (ns_get_color): Remove incompatible color formats.
12909 (ns_color_to_lisp): Generate #rrggbb color format string.
12910
4be941e3
RS
129112009-07-16 Richard Stallman <rms@gnu.org>
12912
12913 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
12914 (Fset_buffer_auto_saved): Handle save_length = -2.
12915
4e6b227d
CY
129162009-07-16 Chong Yidong <cyd@stupidchicken.com>
12917
12918 * xterm.c (Qx_gtk_map_stock): New var.
12919
12920 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
12921 of calling intern each time.
12922
a1856973
YM
129232009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12924
12925 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
12926 does tiling.
12927
12928 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
12929
497e54d8
KH
129302009-07-14 Kenichi Handa <handa@m17n.org>
12931
72d36834
KH
12932 * font.c (font_vconcat_entity_vectors): New function.
12933 (struct font_sort_data): New member font_driver_preference.
12934 (font_compare): Check font_driver_preference.
12935 (font_sort_entities): The format of the first argument changed.
12936 (font_delete_unmatched): Likewise.
12937 (font_list_entities): The return type changed.
12938 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
12939 (font_find_for_lface): Adjuste for the above changes.
12940 Don't suppress the checking of C even if the repertory supports it.
12941 (Flist_fonts): Adjust for the above changes.
72d36834 12942
1ac9108a
SM
12943 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
12944 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
12945 Reject a font who has adstyle property that is different from a
12946 langname derived from registry property.
1ac9108a 12947 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 12948
b6046155
EZ
129492009-07-13 Eli Zaretskii <eliz@gnu.org>
12950
12951 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
12952 local copy of dirfilename.
12953
fb6b6049
KH
129542009-07-13 Kenichi Handa <handa@m17n.org>
12955
e2402a5e
KH
12956 * chartab.c (sub_char_table_ref_and_range): Fix the range check
12957 against max_char.
12958
fb6b6049
KH
12959 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
12960 calling XSYMBOL (sym).
12961
65156807
EZ
129622009-07-11 Eli Zaretskii <eliz@gnu.org>
12963
1ac9108a
SM
12964 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
12965 New function.
12966 (directory_files_internal) [WINDOWSNT]:
12967 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
12968 the filesystem of the directory is fast or slow.
12969
12970 * w32.c (logon_network_drive): Don't assume PATH is an absolute
12971 file name.
12972 (is_slow_fs): New function.
12973 (stat): Use it to determine whether to issue more system calls to
12974 get accurate file attributes, when w32-get-true-file-attributes is
12975 `local'.
12976
e0ab5fcf
JD
129772009-07-10 Jan Djärv <jan.h.d@swipnet.se>
12978
12979 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 12980 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
12981 parameter font-parameter as default to the font dialog.
12982
784ceded
KH
129832009-07-10 Kenichi Handa <handa@m17n.org>
12984
12985 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
12986
fb8edc0b
EZ
129872009-07-09 Eli Zaretskii <eliz@gnu.org>
12988
1ac9108a 12989 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 12990
fb8edc0b
EZ
12991 * w32.c (stat): Treat UNC file names as residing on remote
12992 drives. (Bug#3542)
12993
635c75b1
KH
129942009-07-09 Kenichi Handa <handa@m17n.org>
12995
12996 * fontset.c (fontset_find_font): Fix previous change.
12997
c1d5ce94
MA
129982009-07-08 Michael Albinus <michael.albinus@gmx.de>
12999
13000 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
13001 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
13002 error flag.
13003
edb61b39
KH
130042009-07-08 Kenichi Handa <handa@m17n.org>
13005
374bf7e4
KH
13006 * fontset.c (fontset_find_font): Fix the logic of handling
13007 charset_matched.
13008 (font_for_char): Delete unused var.
13009 (generate_ascii_font_name): Delete it.
13010
edb61b39
KH
13011 * coding.h (JIS_TO_SJIS2): Fix the code range check.
13012
13013 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
13014 (encode_coding_sjis): Fix the code range check.
13015
0f3f018c
CY
130162009-07-07 Chong Yidong <cyd@stupidchicken.com>
13017
13018 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
13019 (Fexpand_file_name): Copy string data properly (Bug#3772).
13020
fcaf6f3a
JD
130212009-07-07 Jan Djärv <jan.h.d@swipnet.se>
13022
13023 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
13024 first MapNotify.
13025
6809ca75
KH
130262009-07-07 Kenichi Handa <handa@m17n.org>
13027
13028 * character.h (unibyte_has_multibyte_table): Delete extern.
13029 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
13030
13031 * charset.c (Fset_charset_priority): Update charset_unibyte.
13032 (syms_of_charset): Initialize charset_unibyte.
13033
13034 * character.c (unibyte_has_multibyte_table): Delete it.
13035 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
13036 charset_unibyte.
13037 (multibyte_char_to_unibyte_safe): Likewise.
13038 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
13039
1ac9108a 13040 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
13041 (x_produce_glyphs): Likewise.
13042
13043 * .gdbinit (xcharset): Fix the treating $arg0.
13044
ad9e2d54
EZ
130452009-07-04 Eli Zaretskii <eliz@gnu.org>
13046
13047 Emulation of `getloadavg' on MS-Windows.
50426a04 13048 * w32.c: Include float.h.
ad9e2d54
EZ
13049 (g_b_init_get_native_system_info, g_b_init_get_system_times)
13050 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
13051 (get_native_system_info, get_system_times): New functions.
13052 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
13053 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
13054 (globals_of_w32): Initialize g_b_init_get_native_system_info,
13055 g_b_init_get_system_times, and num_of_processors.
13056
0a3472c7
JR
130572009-07-03 Jason Rumney <jasonr@gnu.org>
13058
13059 * w32term.c (w32_initialize): Use standard types.
13060
80904120
EZ
130612009-07-03 Eli Zaretskii <eliz@gnu.org>
13062
13063 * dired.c (Ffile_attributes): Decode user and group names by the
13064 locale's encoding. (Bug#3443)
13065
6978862d
DN
130662009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
13067
f8d23104
DN
13068 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
13069 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
13070
13071 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
13072
13073 * term.c (init_tty): Remove spurious #ifdef.
13074
6978862d
DN
13075 * m/mips.h: Mention this file is also used for netbsd.
13076 * m/pmax.h: Remove file.
13077
e044e4fc
JD
130782009-07-03 Jan Djärv <jan.h.d@swipnet.se>
13079
13080 * xterm.h (struct x_display_info): Add invisible_cursor.
13081 (struct x_output): Add current_cursor.
13082
13083 * xterm.c (XTtoggle_invisible_pointer): New function.
13084 (x_define_frame_cursor): Don't define cursor if invisible or the
13085 same as before. Set current_cursor.
13086 (x_create_terminal): Set toggle_invisible_pointer_hook.
13087
13088 * xfns.c (make_invisible_cursor): New function.
13089 (x_set_mouse_color): Call make_invisible_cursor.
13090 Set current_cursor.
13091 (x_window): Set current_cursor.
13092
13093 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
13094
13095 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
13096 inserting a character.
13097 (read_avail_input): Call frame_make_pointer_visible.
13098
13099 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
13100 (frame_make_pointer_invisible, frame_make_pointer_visible):
13101 New functions.
e044e4fc
JD
13102 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
13103
13104 * frame.h: Declare frame_make_pointer_invisible and
13105 frame_make_pointer_visible.
13106 (struct frame): Add pointer_invisible.
13107
574c8efa
JD
131082009-07-02 Jan Djärv <jan.h.d@swipnet.se>
13109
7b507248
JD
13110 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
13111 frame isn't visible.
13112 (xg_frame_resized): If width/height is -1, get size of window
13113 from X server.
13114
13115 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
13116 for MapNotify.
13117
835bdaa7 13118 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 13119 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 13120 (flush_and_sync): Reintroduce.
574c8efa 13121
3f1c6666 131222009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 13123
31fd7c5c 13124 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
13125
13126 * xterm.c (x_handle_net_wm_state): Also look for sticky.
13127 (x_term_init): Initialize Xatom_net_wm_state_sticky.
13128
13129 * frame.h: Declare Qsticky.
13130
cad9ef74
JD
13131 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
13132
13133 * nsfns.m (ns_frame_parm_handlers): Ditto.
13134
13135 * frame.c: Declare Qsticky.
13136 (frame_parms): Add sticky.
13137
13138 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
13139
13140 * xterm.h: Declare x_set_sticky.
13141
13142 * xterm.c (x_set_sticky): New function.
13143
69b16610
JD
13144 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
13145 (xg_tool_bar_menu_proxy): Attach enter/leave events to
13146 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
13147
13148 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
13149
13150 * frame.c: Qmaximized is new.
13151 (x_set_frame_parameters): Do not handle fullscreen specially.
13152 Only set width and height if explicitly set.
13153 (x_set_fullscreen): Handle Qmaximized.
13154 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
13155 (syms_of_frame): Initialize Qmaximized.
13156
1ac9108a
SM
13157 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
13158 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
13159
13160 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
13161 for Expose event. Add call to x_check_fullscreen for MapNotify event.
13162 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
13163 set gravity to NorthWestGravity when USE_GTK.
13164 (set_wm_state): New function.
31fd7c5c 13165 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
13166 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
13167 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 13168 or the case when no window manager is running. That means remove calls
3f1c6666
JD
13169 to x_real_positions and x_fullscreen_adjust.
13170
13171 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
13172 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
13173 flush_and_sync.
13174 (xg_height_changed): New function.
13175 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
13176 and gtk_window_set_policy. Set frame gravity after parsing the
13177 geometry string.
3f1c6666
JD
13178 (xg_update_frame_menubar, free_frame_menubar)
13179 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
13180 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
13181 Remove calls to xg_frame_set_char_size.
13182
fd503d99
KH
131832009-07-01 Kenichi Handa <handa@m17n.org>
13184
13185 * keyboard.c (decode_keyboard_code): New function.
13186 (tty_read_avail_input): Decode the input bytes if necessary.
13187
1ac9108a
SM
13188 * coding.c (setup_coding_system):
13189 Initialize coding->carryover_bytes to 0.
fd503d99
KH
13190 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
13191 use Qno_conversion.
13192
24ed93fb
YM
131932009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13194
13195 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
13196
99061dfc
CY
131972009-06-30 Chong Yidong <cyd@stupidchicken.com>
13198
1ac9108a 13199 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 13200
ff90fbde
JR
132012009-06-30 Jason Rumney <jasonr@gnu.org>
13202
13203 * w32term.c (w32_initialize): Use GetModuleHandle for library that
13204 is already loaded.
13205 Set user model ID if supported (bug#1849).
13206
5f445726
JM
132072009-06-29 Jim Meyering <meyering@redhat.com>
13208
13209 Remove useless if-before-xfree test.
13210 * nsfont.m (nsfont_close): Remove useless test.
13211 * term.c (delete_tty): Likewise.
13212 * w32.c (system_process_attributes): Likewise.
13213 * w32font.c (w32font_close): Likewise.
13214 * xfaces.c (x_free_gc): Likewise.
13215 * xselect.c (buffer): Likewise.
13216
b9607587
AS
132172009-06-28 Andreas Schwab <schwab@linux-m68k.org>
13218
13219 * process.c (send_process): Keep decoded string in a local
13220 variable and protect it from GC. (Bug#3521)
13221
89ba96f4
EZ
132222009-06-28 Eli Zaretskii <eliz@gnu.org>
13223
13224 * term.c (create_tty_output) [MSDOS]: #ifdef away.
13225 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
13226
098a1589
CY
132272009-06-28 Chong Yidong <cyd@stupidchicken.com>
13228
485422be
CY
13229 * xdisp.c (start_display, handle_face_prop)
13230 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
13231 (redisplay_window, try_window_id, produce_image_glyph):
13232 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 13233
098a1589
CY
13234 * xterm.c (x_update_window_begin, x_new_focus_frame)
13235 (x_scroll_bar_handle_click, handle_one_xevent)
13236 (handle_one_xevent, XTread_socket, x_focus_on_frame)
13237 (x_make_frame_visible, x_make_frame_invisible)
13238 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
13239 code chunks that are now obsolete.
13240
78c38319
MA
132412009-06-28 Michael Albinus <michael.albinus@gmx.de>
13242
13243 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
13244 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
13245 for hours, when optimzation is enabled.
13246 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
13247 (xd_read_message): Make them static.
13248
4189ed40
CY
132492009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
13250
13251 * term.c (turn_on_face): Allow simultaneously bold and dim
13252 terminal faces (Bug#3530).
13253
cd9b5e16
CY
132542009-06-27 Chong Yidong <cyd@stupidchicken.com>
13255
4e23bedb
CY
13256 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
13257
cd9b5e16
CY
13258 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
13259 truncation glyphs (Bug#3686).
13260
07cc3c35
GM
132612009-06-27 Glenn Morris <rgm@gnu.org>
13262
13263 * m/pmax.h: Restore file, with only netbsd portions.
13264
31fd7c5c 132652009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 13266
cd9b5e16 13267 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 13268
42d4a64f
KH
132692009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
13270
13271 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
13272 the arg FORCE_SYMBOL.
13273
930fe55b 132742009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
13275
13276 * fontset.c (fontset_find_font): When a usable rfont_def is found
13277 in a fallback font-group, make it the first element of the group.
13278
57ebc3fd
CY
132792009-06-24 Chong Yidong <cyd@stupidchicken.com>
13280
13281 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
13282
f084f942
KH
132832009-06-24 Kenichi Handa <handa@m17n.org>
13284
13285 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
13286 set for C.
13287 (fontset_font): Record the availability of a font for C both in
13288 the realized fontsets of the current one and the default one.
13289
2f686c87
DN
132902009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
13291
13292 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
13293 conditional, it is always defined on AIX.
13294
666e158e
MB
132952009-06-23 Miles Bader <miles@gnu.org>
13296
13297 * window.c (Vrecenter_redisplay): New variable.
13298 (syms_of_window): Initialize it.
13299 (Qtty): New extern declaration.
13300 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
13301
c6da7cd2
JM
133022009-06-23 Jim Meyering <meyering@redhat.com>
13303
1ac9108a
SM
13304 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
13305 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 13306 pointer dereferences are guaranteed to be valid.
c6da7cd2 13307
678dca3d
KH
133082009-06-23 Kenichi Handa <handa@m17n.org>
13309
74d75424
KH
13310 * emacs.c (main): Call init_font ().
13311
13312 * font.h (Vfont_log): Extern it.
13313 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
13314
13315 * font.c (font_sort_entities, font_list_entities)
13316 (font_matching_entity, font_open_entity)
13317 (font_close_object): Change font_add_log to FONT_ADD_LOG.
13318 (Vfont_log): Delete static.
13319 (font_log_env_checked): Delete this variable.
13320 (font_add_log): Don't check font_log_env_checked.
13321 (font_deferred_log): Check Vfont_log.
13322 (init_font): New function.
13323
678dca3d
KH
13324 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
13325
13326 * w32font.c: Change font_add_log to FONT_ADD_LOG.
13327
13328 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
13329
13330 * xfont.c: Change font_add_log to FONT_ADD_LOG.
13331
13332 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
13333 (face_for_char): Don't call font_deferred_log here.
13334 (font_for_char): Likewise.
13335
8a668709
CY
133362009-06-22 Chong Yidong <cyd@stupidchicken.com>
13337
9a01ee33
CY
13338 * w32term.c (x_draw_glyph_string): Use the glyph string's width
13339 rather than its background_width for drawing the overline and
13340 underline (Bug#489).
13341
13342 * xterm.c (x_draw_glyph_string): Use the glyph string's width
13343 rather than its background_width for drawing the overline and
13344 underline (Bug#489).
ec7c9926
CY
13345 (xg_default_icon_file): New variable.
13346 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
13347 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 13348
8a668709
CY
13349 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
13350 (load_overlay_strings): Remove externs.
13351 (fast_find_position): Function deleted.
13352 (mouse_face_from_buffer_pos): New function, based on
13353 fast_find_position. Correctly handle before-strings,
13354 display-strings, and after-strings (Bug#1220).
13355 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
13356
4d4c02d8
CY
133572009-06-21 Chong Yidong <cyd@stupidchicken.com>
13358
1ac9108a 13359 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
13360 (move_it_in_display_line_to, move_it_in_display_line_to)
13361 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
13362
70243478
CY
133632009-06-21 Chong Yidong <cyd@stupidchicken.com>
13364
13365 * Branch for 23.1.
13366
13087e59
JR
133672009-06-21 Jason Rumney <jasonr@gnu.org>
13368
13369 * w32term.c (keyboard_codepage): New static variable.
13370 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
13371 (w32_read_socket) [WM_CHAR]: Use it to decode character
13372 input (bug#3237).
13373 (w32_initialize): Initialize it.
13374 (codepage_for_locale): New function.
13375
4735b74e
KR
133762009-06-20 Ken Raeburn <raeburn@raeburn.org>
13377
13378 * process.c (status_message): Pass Faset index argument as a lisp
13379 object, so as to work with USE_LISP_UNION_TYPE.
13380
0e727afa
YM
133812009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13382
13383 * coding.c (Ffind_coding_systems_region_internal):
13384 Cache checked characters.
13385
cf299835
KH
133862009-06-18 Kenichi Handa <handa@m17n.org>
13387
1ac9108a 13388 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 13389
90f20d94
AS
133902009-06-18 Andreas Schwab <aschwab@redhat.com>
13391
13392 * xdisp.c (redisplay_internal): Check that the frame is still
13393 live after redisplay of its windows.
13394 (redisplay_windows): Check that the window is still live.
13395
7f1faf1c
KH
133962009-06-17 Andreas Schwab <schwab@linux-m68k.org>
13397
13398 * coding.c (detect_coding_utf_16): Fix previous change.
13399
cc13543e
KH
134002009-06-16 Kenichi Handa <handa@m17n.org>
13401
13402 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
13403 UTF-16 by checking the dispersion of Eth and Oth bytes.
13404
977b85f4
AS
134052009-06-15 Andreas Schwab <schwab@linux-m68k.org>
13406
13407 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
13408
66bd43d1
KH
134092009-06-15 Kenichi Handa <handa@m17n.org>
13410
13411 * process.c (status_message): Fix previous change. Be sure to
13412 decode a localized string.
13413
cb5ca9c5
YM
134142009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13415
13416 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
13417 add comment explaining why.
13418
ec7709ba 134192009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 13420
ec7709ba 13421 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 13422
4b7f335c
AR
134232009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
13424
13425 * nsfont.m (ns_attribute_value): Remove.
13426 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
13427 (ns_has_attribute): Shrink the normal range.
13428 (ns_findfonts): Don't worry about requested spec in determining
13429 need for synthItal.
e41820ee 13430 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 13431
73b26103
SZ
134322009-06-14 Seiji Zenitani <zenitani@mac.com>
13433
13434 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
13435
5753e4da
KH
134362009-06-11 Kenichi Handa <handa@m17n.org>
13437
13438 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13439 overhang for the static composition case.
13440
3561b671
KH
134412009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13442
5753e4da
KH
13443 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
13444 overhang for the automatic composition case.
13445
3561b671
KH
13446 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
13447 composition case.
13448
852bbd41
CY
134492009-06-10 Chong Yidong <cyd@stupidchicken.com>
13450
13451 * xdisp.c (get_next_display_element): When handling wrap-prefix
13452 and line-prefix, treat \n as a control character (bug#3502).
13453
9903d1e6
KH
134542009-06-10 Kenichi Handa <handa@m17n.org>
13455
13456 * font.c (font_parse_family_registry): Fix for one-char foundry.
13457 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
13458
0bcbaaaa
CY
134592009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
13460
13461 * process.c (status_message): Fix handling of multibyte signal
13462 string (Bug#3499).
13463
40aa3f13
JM
134642009-06-09 Jim Meyering <meyering@redhat.com>
13465
1f80c7e2
CY
13466 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
13467 color name is missing.
40aa3f13 13468
72d51285
KH
134692009-06-09 Kenichi Handa <handa@m17n.org>
13470
13471 * charset.c (Fmap_charset_chars): In docstring, state clearly that
13472 FROM-CODE and TO-CODE are codepoints of CHARSET.
13473
c1d04d84
AR
134742009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13475
13476 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
13477
134782009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
13479
13480 Changes to support :script/:lang/:otf in NS font driver.
13481 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
13482 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
13483 indicate not part of font driver interface, and change callers.
13484 (ns_get_family): Remove pointless null check.
13485 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
13486 ns_spec_to_descriptor, ns_descriptor_to_entity.
13487 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
13488 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
13489 (ns_spec_to_descriptor, ns_descriptor_to_entity)
13490 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
13491 (ns_get_req_script, ns_accumulate_script_ranges)
13492 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
13493 New functions.
13494 (nsfont_list, nsfont_match): Use ns_findfonts.
13495 (nsfont_open): Use font descriptor instead of traits.
13496 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
13497 (dump_glyphstring): Rename to ns_dump_glyphstring.
13498
c7eb9816
AR
13499 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
13500
c1d04d84
AR
13501 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
13502
13503 * fontset.c (fontset_from_font): Remove NS-specific code.
13504
ec7709ba 135052009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
13506
13507 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
13508 nonactive windows.
13509
31fd7c5c 135102009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 13511
1ac9108a 13512 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 13513
68852c13 135142009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
13515
13516 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
13517
6756cd1d
CY
135182009-06-07 Chong Yidong <cyd@stupidchicken.com>
13519
13520 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
13521 account for the overflowing of newlines into the last glyph on the
13522 display line (Bug#3482).
13523
28bf482a
DR
135242009-06-05 David Reitter <david.reitter@gmail.com>
13525
ec7709ba
JB
13526 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
13527 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
13528 Fns_selection_exists_p, Fns_selection_owner_p.
13529
fdb55376
JR
135302009-06-03 Jason Rumney <jasonr@gnu.org>
13531
13532 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
13533 available. (Bug#3379)
13534
05129fbe
KH
135352009-05-29 Kenichi Handa <handa@m17n.org>
13536
1ac9108a
SM
13537 * coding.c (get_translation_table):
13538 Check Venable_character_translation.
05129fbe 13539
ec7709ba 135402009-05-26 David Reitter <david.reitter@gmail.com>
15891144 13541
ec7709ba
JB
13542 * nsterm.m (ns_raise_frame): Only raise frame if visible.
13543 (x_make_frame_visible): Move frame to front rather than calling
15891144 13544 ns_raise_frame().
ec7709ba 13545 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 13546 isn't key window.
ec7709ba 13547 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
13548 drawRect may be called by NSView even if the frame is hidden.
13549
ec7709ba
JB
13550 * nsfns.m (Fx_create_frame): Follow other ports in
13551 determining visibility; default to t. Ensure async_visible is set.
15891144 13552
21f73755
EZ
135532009-05-23 Eli Zaretskii <eliz@gnu.org>
13554
13555 * dired.c (Ffile_attributes): Doc fix.
13556
34001e41
CY
135572009-05-22 Chong Yidong <cyd@stupidchicken.com>
13558
13559 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
13560
46306a17
SM
135612009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
13562
13563 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
13564 and xfont_scratch_props.
13565 (syms_of_xfont): Do it here instead.
13566 (xfont_find_ccl_program): Delete, unused.
13567 (xfont_open): Delete unused var `i'.
13568
ef6e0694
KH
135692009-05-21 Kenichi Handa <handa@m17n.org>
13570
13571 * fontset.c (Qlatin): Don't make it static.
13572
46306a17
SM
13573 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
13574 New functions.
ef6e0694
KH
13575 (xfont_scripts_cache, xfont_scratch_props): New variables.
13576 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
13577 (xfont_list_pattern): Argument changed. Callers changed.
13578 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
13579 (xfont_list): Don't reject a font spec with :script property.
13580 (xfont_has_char): Fix setting of encoding.
13581 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
13582 xfont_scratch_props.
13583
135842009-05-19 Kenichi Handa <handa@m17n.org>
13585
46306a17 13586 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
13587 Callers changed.
13588
135892009-05-18 Kenichi Handa <handa@m17n.org>
13590
13591 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
13592
ac71ced7
SM
135932009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
13594
13595 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
13596 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
13597
1c6d1051
YM
135982009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13599
13600 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
13601 (x_delete_terminal): Dissociate resource database from display and
13602 then call XrmDestroyDatabase before closing display.
13603
9b9b779c
AR
136042009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
13605
13606 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
13607 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
13608 whether selected frame is viable before raising it (based on patch
13609 by David Reitter), and improve commentary.
13610 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 13611
cccd42d5
KH
136122009-05-15 Kenichi Handa <handa@m17n.org>
13613
13614 * font.c (Ffont_spec): Check arguments.
13615
337fbd17
CY
136162009-05-14 Chong Yidong <cyd@stupidchicken.com>
13617
13618 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
13619 weight when testing attributes (Bug#3282).
13620
47a6002f
JD
136212009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13622
13623 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
13624 what we expect to get in the next ConfigureNotify event.
13625
9cb363db
YM
13626 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
13627 before Xft one (Bug#1696).
13628
b9126609
CY
136292009-05-07 David Reitter <david.reitter@gmail.com>
13630
13631 * nsfns.m (Fx_display_planes): Compute bitplanes using
13632 NSBitsPerPixelFromDepth (Bug#3207).
13633
27a69fd9
CY
136342009-05-10 Chong Yidong <cyd@stupidchicken.com>
13635
13636 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
13637
00f37552
TTN
136382009-05-10 Ulrich Mueller <ulm@gentoo.org>
13639
13640 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
13641
2d82a920
DR
136422009-05-07 David Reitter <david.reitter@gmail.com>
13643
ec7709ba
JB
13644 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
13645 Respect mouse face background.
2d82a920 13646
46b0d52d
DR
136472009-05-07 David Reitter <david.reitter@gmail.com>
13648
ec7709ba
JB
13649 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
13650 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
13651 in ns_update_begin and ns_update_end.
13652
ce1b23bb
SM
136532009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13654
5996e1b7
SM
13655 * nsfns.m (ns_get_screen): Rewrite.
13656 Don't presume selected-frame is of type `ns'.
13657
ba98e3a0
SM
13658 * font.c (font_update_drivers): Sanity fallback to avoid disabling
13659 all drivers.
13660
ce1b23bb
SM
13661 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
13662
bcda200f
YM
136632009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13664
13665 * keyboard.h (add_user_signal): Fix typo in extern.
13666
13667 * lisp.h (add_user_signal): Remove extern.
13668
13669 * unexelf.c (unexec): Consider a section to precede the .bss section
13670 if its addresses overlap that of .bss.
13671 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
13672 instead of dumping process.
13673
864660a2
SM
136742009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
13675
13676 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
13677
50da4e56
SM
136782009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
13679
13680 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
13681
51520a1a
DN
136822009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
13683
13684 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
13685 any statements.
13686
409ea3a1
AS
136872009-05-02 Andreas Schwab <schwab@linux-m68k.org>
13688
59c4c60f
AS
13689 * process.c (read_process_output): Make sure the current buffer is
13690 always restored.
13691
409ea3a1
AS
13692 * coding.c (record_conversion_result): Don't modify
13693 Vlast_code_conversion_error for successful result.
13694 (alloc_destination): Don't clobber conversion result. (Bug#1650)
13695
56f00ed2
KH
136962009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
13697
13698 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 13699 (load_charset_map): Remove unnecessary code.
56f00ed2 13700
4491c9d2
DR
137012009-04-30 David Reitter <david.reitter@gmail.com>
13702
35f5b128 13703 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
13704 through f24.
13705
6970f632
CY
137062009-04-30 Chong Yidong <cyd@stupidchicken.com>
13707
13708 * xfaces.c (face_at_buffer_position): New arg base_face_id.
13709
13710 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
13711 face_at_buffer_position.
13712 (face_before_or_after_it_pos, get_next_display_element)
13713 (note_mouse_highlight): Update face_at_buffer_position call.
13714
13715 * term.c (term_mouse_highlight):
13716 * msdos.c (IT_note_mouse_highlight):
13717 * fontset.c (Finternal_char_font):
35f5b128 13718 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
13719
13720 * dispextern.h (face_at_buffer_position): Update prototype.
13721
0c616f63
KH
137222009-04-30 Kenichi Handa <handa@m17n.org>
13723
35f5b128 13724 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 13725
ad3aaf33
AS
137262009-04-29 Andreas Schwab <schwab@linux-m68k.org>
13727
13728 * callproc.c (Fcall_process): Fix GC protection. Make sure
13729 current buffer is always restored.
13730
c3c963a0
YM
137312009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13732
13733 * atimer.c (init_atimer): Also clear stopped_atimers.
13734
13735 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
13736
7e3386cb
YM
13737 * process.c (create_process): Clean up merger residues of
13738 2008-07-17 change.
13739
91f68422
CY
137402009-04-29 Ulrich Mueller <ulm@gentoo.org>
13741
13742 * lread.c (Vread_circle): New variable.
13743 (read1): Disable recursive read if Vread_circle is nil.
13744
24b34550
KH
137452009-04-29 Kenichi Handa <handa@m17n.org>
13746
13747 * fontset.h (set_default_ascii_font): Delete extern.
13748
13749 * fontset.c (set_default_ascii_font): Delete this unused function.
13750
13751 * frame.c (x_set_font): When ARG is a font-object, check if the
13752 font-object matches with the ASCII font-spec of the frame's
9c358bda 13753 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 13754
77bf07e1
AS
137552009-04-28 Andreas Schwab <schwab@linux-m68k.org>
13756
13757 * fns.c (Flocale_info): Protect vector from GC during decoding.
13758
13759 * process.c (Fstart_process): Protect argv strings from GC during
13760 encoding.
13761
2c55aacf
AS
137622009-04-27 Andreas Schwab <schwab@linux-m68k.org>
13763
13764 * sysdep.c: Include <ctype.h>.
13765
b892d3c9
DR
137662009-04-27 David Reitter <david.reitter@gmail.com>
13767
35f5b128 13768 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
13769 Remove commented-out code.
13770
9d0644c4
JB
137712009-04-26 Johan Bockgård <bojohan@gnu.org>
13772
13773 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
13774
b7053016
JR
137752009-04-25 Jason Rumney <jasonr@gnu.org>
13776
13777 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
13778
4e8231f3
YM
137792009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13780
13781 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
13782 Swap bytes in short integer if fringe bitmap width > 8.
13783
493dcf2c
KH
137842009-04-23 Kenichi Handa <handa@m17n.org>
13785
13786 * xfaces.c (Fx_list_fonts): If a font size is specified in
13787 PATTERN, set it in returned scalable fonts.
13788
401e9e57
CY
137892009-04-22 Chong Yidong <cyd@stupidchicken.com>
13790
708e05dc
CY
13791 * keyboard.c (Fset_input_meta_mode): Doc fix.
13792
13793 * dispnew.c (Fsend_string_to_terminal): Doc fix.
13794
1ac9108a 13795 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
13796
13797 * coding.c (Fterminal_coding_system): Doc fix.
13798
13799 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
13800 (Fx_display_pixel_height, Fx_display_planes)
13801 (Fx_display_color_cells, Fx_server_max_request_size)
13802 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
13803 (Fx_display_mm_height, Fx_display_mm_width)
13804 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
13805 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
13806 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
13807 (check_x_display_info): Handle terminal objects instead of
13808 terminal ids.
13809
401e9e57
CY
13810 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
13811 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
13812 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
13813 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 13814
df80c7f0
KH
138152009-04-21 Kenichi Handa <handa@m17n.org>
13816
5a8f12af 13817 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 13818 (font_score): Check AVGWIDTH too.
908567ef 13819
df80c7f0
KH
13820 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
13821 worst case.
1ac9108a
SM
13822 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
13823 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 13824
705af33f
JR
138252009-04-19 Jason Rumney <jasonr@gnu.org>
13826
13827 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 13828 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
13829
13830 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
13831 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
13832 get_phys_cursor_geometry.
13833
b71ac3dd 13834 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
13835 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
13836 using get_phys_cursor_geometry.
13837
13838 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
13839 correctly calculated.
13840
dc2933eb
JD
138412009-04-19 Jan Djärv <jan.h.d@swipnet.se>
13842
1ac9108a
SM
13843 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
13844 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
13845 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
13846 is deprecated.
13847
973e7849
AS
138482009-04-18 Andreas Schwab <schwab@linux-m68k.org>
13849
13850 * font.c (font_put_frame_data): Use xfree instead of free.
13851
314d66f4
JB
138522009-04-17 Juanma Barranquero <lekktu@gmail.com>
13853
13854 * w32font.c (Qja, Qko): Remove declarations.
13855 (syms_of_w32font): Don't DEFSYM them.
13856
cf702558
CY
138572009-04-17 Chong Yidong <cyd@stupidchicken.com>
13858
13859 * font.c (Qja, Qko): Move definitions here from ftfont.c.
13860
13861 * font.h (Qja, Qko): Extern them.
13862
13863 * ftfont.c (Qja, Qko): Remove declarations.
13864
13865 * xfont.c (Qja, Qko): Remove declarations.
13866
b50504f5
KH
138672009-04-17 Kenichi Handa <handa@m17n.org>
13868
bde25748
KH
13869 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
13870 string from a vector to handle Latin-1 characters correctly.
13871
b50504f5
KH
13872 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
13873 entity even if the cache hits.
13874
f4646fff
AS
138752009-04-16 Andreas Schwab <schwab@linux-m68k.org>
13876
13877 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 13878 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 13879
e7deaab0
AS
13880 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
13881 * lisp.h: Adjust prototypes.
13882
0a0e7d49
CY
138832009-04-16 Chong Yidong <cyd@stupidchicken.com>
13884
13885 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
13886 change (Bug#3003).
13887
3c908a57
KH
138882009-04-16 Kenichi Handa <handa@m17n.org>
13889
1ac9108a 13890 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
13891
13892 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
13893 adstyle.
13894
13895 * ftfont.c (Qja, Qko): Don't make them static.
13896 (enum ftfont_cache_for): New enum.
13897 (fc_charset_table): Undo the previous change.
13898 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
13899 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
13900 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
13901 non-scarable font, try to get AVERAGE_WIDTH.
13902 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
13903 Change ft_face_cache from a list of a hash-table. Don't check
13904 `ja' and `ko' adstyle here.
13905 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
13906 FTFONT_CACHE_FOR_CHARET.
13907 (ftfont_get_charset): Undo the previous change.
1ac9108a 13908 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
13909 (ftfont_close): Likewise.
13910 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
13911
13912 * font.c (font_sort_entites): Change the meaning of the arg
13913 BEST-ONLY. Don't optimize for VEC of lenght 1.
13914 (font_select_entity): Just return the value of font_sort_entites.
13915
13916 * xfaces.c (merge_face_vectors): Reflect font properties in
13917 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
13918 font_clear_prop if a face attribute doesn't change.
13919
3c908a57
KH
13920 * charset.h (charset_ksc5601): Extern it.
13921
13922 * charset.c (charset_ksc5601): New variable.
13923 (Fdefine_charset_internal): Set charset_ksc5601.
13924 (init_charset_once): Initialize charset_ksc5601 to -1.
13925
d65859c3
DN
139262009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
13927
13928 * fileio.c (history_delete_duplicates): Remove unused declaration.
13929
13930 * callint.c (history_delete_duplicates): New declaration.
13931 (Fcall_interactively): Remove command history duplicates when
13932 history_delete_duplicates is true.
13933
3ba010e5
EZ
139342009-04-14 Eli Zaretskii <eliz@gnu.org>
13935
13936 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
13937
06f19b91
KH
139382009-04-14 Kenichi Handa <handa@m17n.org>
13939
13940 * font.c (Ffont_info): Fix docstring. Fix the second element of
13941 the returned value (bug#2949).
13942
2cce8bfc
CY
139432009-04-14 Chong Yidong <cyd@stupidchicken.com>
13944
13945 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
13946
d156542d
KH
139472009-04-14 Kenichi Handa <handa@m17n.org>
13948
13949 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
13950 encoding charset is ascii_compatible.
13951
13952 * charset.c (Fdefine_charset_internal): Make charset
13953 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
13954 code_offset is 0, and covers all ASCII characters.
13955
86fa089e
SM
139562009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
13957
13958 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
13959 (ns_string_to_pasteboard_internal):
13960 * nsmenu.m (process_dialog):
13961 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
13962 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
13963 * lisp.h (Fx_load_color_file): Declare.
13964
a8a3728b
KH
139652009-04-13 Kenichi Handa <handa@m17n.org>
13966
1ac9108a 13967 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
13968 (font_select_entity): Suppress the code to optimize for the same
13969 kind of fonts.
13970 (font_load_for_lface): Get a font that supports at least ASCII
13971 characters.
13972
13973 * ftfont.c (Qja, Qko): New variables.
13974 (fc_charset_table): Delete uniquifier data for iso8859-1.
13975 (ftfont_get_latin1_charset): New function.
13976 (get_adstyle_property): New function.
13977 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
13978 bitmap fonts.
13979 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
13980 Delete iso-8859-1 range from the charset of fonts whose adstyle is
13981 `ko' or `ja'.
13982 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 13983 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
13984 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
13985 property.
13986 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
13987 (syms_of_ftfont): DEFSYM Qja and Qko.
13988
483670b5
KH
139892009-04-09 Kenichi Handa <handa@m17n.org>
13990
12b55765
KH
13991 * charset.c (map_charset_chars): For a charset of `superset'
13992 method, fix calculation of code range.
13993
483670b5
KH
13994 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
13995 from the list of extra properties.
13996 (font_clear_prop): Be sure to delete `:name' font property.
13997
57d3b93b
KH
139982009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13999
b4b2c2ca
YM
14000 * dispnew.c (redraw_overlapping_rows): Fix detection of
14001 overlapping for topmost and bottommost rows.
14002
1ac9108a 14003 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 14004
472c3609
JR
140052009-04-06 Jason Rumney <jasonr@gnu.org>
14006
14007 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
14008
ab193662
KH
140092009-04-06 Kenichi Handa <handa@m17n.org>
14010
14011 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
14012
14013 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
14014
0c26f026
KH
140152009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14016
14017 * ftfont.c (ftfont_open): Fix checking of the return value of
14018 FT_Load_Char. Fix setting font->underline_thickness.
14019
e173bbce
CY
140202009-04-04 Chong Yidong <cyd@stupidchicken.com>
14021
14022 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
14023 (Fterminal_parameters, Fterminal_parameter)
14024 (Fset_terminal_parameter): In doc string, refer to terminal
14025 objects rather than terminal ids.
14026
693a2698
EZ
140272009-04-04 Eli Zaretskii <eliz@gnu.org>
14028
14029 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
14030 ret_lim_data. (Bug#2867)
14031
d5221487
CY
140322009-04-03 Chong Yidong <cyd@stupidchicken.com>
14033
14034 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
14035 so they don't get wider than the window, matching 2006-01-23
14036 change to the partner function in xdisp.c (Bug#2800).
14037
223509a3
KH
140382009-04-03 Kenichi Handa <handa@m17n.org>
14039
14040 * print.c (print_object): Make each lowest sub_char_table start a
14041 new line (Bug#2866).
14042
74fcd0b1
KH
140432009-04-02 Kenichi Handa <handa@m17n.org>
14044
14045 * fontset.c (fontset_font): Record no-font when a fontset
14046 explicitly tells not to try another font-specs.
14047
c542407d
SM
140482009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
14049
14050 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
14051
e3869731
KH
140522009-03-30 Kenichi Handa <handa@m17n.org>
14053
d8d2f142
KH
14054 * fontset.c (fontset_from_font): Specify only registry in a
14055 font-spec for all characters supported by that registry.
14056
e3869731
KH
14057 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
14058 even if HAVE_M17N_FLT is not defined.
14059
5da5f805
CY
140602009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
14061
14062 * ftfont.c: Conditionalize prototyping and use of
14063 ftfont_variation_glyphs.
14064
ab226c50
SM
140652009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
14066
9628fed7
SM
14067 * frame.c (delete_frame): Work around compiler bug.
14068
14069 * editfns.c (general_insert_function): Adjust to insdel.c changes.
14070 * insdel.c (prepare_to_modify_buffer, signal_before_change):
14071 Some more EMACS_INT.
14072 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
14073
14074 * xdisp.c (dump_glyph): Fix typo.
14075
ae19ba7c
SM
14076 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
14077 (adjust_markers_gap_motion, adjust_markers_for_delete)
14078 (adjust_markers_for_insert, adjust_point)
14079 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
14080 (make_gap, copy_text, count_size_as_multibyte, insert)
14081 (insert_and_inherit, insert_before_markers)
14082 (insert_before_markers_and_inherit, insert_1)
14083 (count_combining_before, count_combining_after, insert_1_both)
14084 (insert_from_string, insert_from_string_before_markers)
14085 (insert_from_string_1, insert_from_gap, insert_from_buffer)
14086 (insert_from_buffer_1, adjust_after_replace)
14087 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
14088 (replace_range_2, del_range, del_range_1, del_range_byte)
14089 (del_range_both, del_range_2, modify_region)
14090 (prepare_to_modify_buffer, signal_before_change)
14091 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
14092 for buffer positions and sizes.
14093 * lisp.h: Adjust prototypes accordingly.
14094
14095 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
14096 (non_regular_inserted, non_regular_nbytes, read_non_regular)
14097 (Finsert_file_contents): Use EMACS_INT for buffer positions.
14098
ab226c50
SM
14099 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
14100
46dfb8fb
JD
141012009-03-27 Jan Djärv <jan.h.d@swipnet.se>
14102
14103 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
14104 lines and columns so we keep the same pixel height and width.
14105
14106 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
14107 the property _NET_WM_STATE has changed.
46dfb8fb
JD
14108 (x_handle_net_wm_state): New function to update frame parameter
14109 fullscreen.
14110 (x_term_init): Initialize atoms for _NET_WM_STATE.
14111
14112 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
14113
d347e494
SM
141142009-03-27 Kevin Ryde <user42@zip.com.au>
14115
14116 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
14117 Gpm_GetEvent as an error that justifies closing the filedescriptor.
14118 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
14119 (Fgpm_mouse_stop): Pass that new parameter.
14120 * termhooks.h (close_gpm): Adjust prototype.
14121
84db11d6
SM
141222009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
14123
c95a5008
SM
14124 * lisp.h (Fx_focus_frame): Declare.
14125
84db11d6
SM
14126 * callint.c (Fcall_interactively): For '^' just delegate the work to
14127 handle-shift-selection.
14128 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
14129
0a1958d6
CY
141302009-03-24 Chong Yidong <cyd@stupidchicken.com>
14131
0bfdff23
CY
14132 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
14133
0a1958d6
CY
14134 * data.c (Qinteractive_form): New variable.
14135 (Finteractive_form): Use it.
14136
14137 * eval.c (Fcommandp): Use Qinteractive_form.
14138
58aec0d6
JR
141392009-03-24 Jason Rumney <jasonr@gnu.org>
14140
14141 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
14142 Calculate total size precisely. Decode environment variables
14143 before substituting. (Bug#38)
14144
553dd618
KH
141452009-03-24 Kenichi Handa <handa@m17n.org>
14146
14147 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 14148 encoding (Bug#2722).
553dd618 14149
c39ea606
JD
141502009-03-23 Jan Djärv <jan.h.d@swipnet.se>
14151
14152 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
14153 that gdpy is set.
14154
bc9b2b5e
AM
141552009-03-22 Alan Mackenzie <acm@muc.de>
14156
14157 * callint.c (Finteractive): Clarify the doc string - even
14158 promptless elements need \n separators.
14159
9f995a76
JR
141602009-03-22 Jason Rumney <jasonr@gnu.org>
14161
14162 * w32term.c (syms_of_w32term): Doc fix for
14163 x-use-underline-position-properties.
14164
22749e9a
EZ
141652009-03-21 Eli Zaretskii <eliz@gnu.org>
14166
14167 * w32.c (getpwuid): Change argument type to unsigned.
14168 (struct w32_id): Change type of `rid' member to unsigned.
14169 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
14170 argument ID to unsigned. All callers changed.
14171 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
14172
e00553bf
EZ
141732009-03-20 Eli Zaretskii <eliz@gnu.org>
14174
14175 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
14176 negative, produce a float value.
14177
14178 * dired.c (make_uid, make_gid): New functions.
14179 (Ffile_attributes): Use them to avoid negative UID and GID.
14180
f761d6b6
JB
141812009-03-20 Juanma Barranquero <lekktu@gmail.com>
14182
14183 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
14184 (syms_of_keyboard) <command-hook-internal, input-method-function>:
14185 Fix typos in docstrings.
14186
d507f8d7
KH
141872009-03-19 Kenichi Handa <handa@m17n.org>
14188
14189 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
14190 changed, use font_load_for_lface to get a new font object.
14191 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
14192
14193 * frame.c (x_set_font): Handle the case that ARG is a cons.
14194
c68845e0
GM
141952009-03-19 Glenn Morris <rgm@gnu.org>
14196
14197 * fileio.c (Fsubstitute_in_file_name): Doc fix.
14198
bfa49dd1
CY
141992009-03-19 Chong Yidong <cyd@stupidchicken.com>
14200
14201 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
14202
8458d4c1
KH
142032009-03-19 Kenichi Handa <handa@m17n.org>
14204
14205 * charset.c (load_charset_map_from_file): When a mapfile can't be
14206 loaded, signal an error.
14207
78e7d1fe
EZ
142082009-03-18 Eli Zaretskii <eliz@gnu.org>
14209
14210 * dired.c (Ffile_attributes): Make sure UID and GID are always
14211 positive, even if the value is too large for a positive EMACS_INT.
14212 Doc fix.
14213
14214 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
14215
5da9fdfa
YM
142162009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14217
14218 * xmenu.c (xdialog_show): Move Fredisplay call ...
14219 (Fx_popup_dialog): ... here.
14220
7519c40d
SM
142212009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
14222
14223 * dired.c (file_name_completion): Disable the first optimization just
14224 installed, since it is not implemented correctly.
14225
2cd298e2
SM
142262009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
14227
14228 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 14229 only if the entry can affect bestmatch.
2cd298e2
SM
14230 Stop the search early, as Ftry_completion already does.
14231
48d37adf
CY
142322009-03-17 Chong Yidong <cyd@stupidchicken.com>
14233
e10c9c93 14234 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 14235
9286b16a
CY
142362009-03-15 Chong Yidong <cyd@stupidchicken.com>
14237
14238 * keyboard.c (parse_menu_item): Don't display remappings as menu
14239 equivalent bindings (Bug#788).
14240
f7b146dc
JR
142412009-03-15 Jason Rumney <jasonr@gnu.org>
14242
14243 * w32term.h (WM_EMACS_PAINT): New message.
14244 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
14245 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
14246 before passing to lisp thread. (Bug#950)
14247
f761d6b6 142482009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 14249
d93f9575
CY
14250 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
14251 variable as it was never reset.
14252 (ns_term_init): Remove initialization of Lisp-settable defaults
14253 and ns_expand_space.
14254 (-setPanelFromDefaultValues): Remove ns_expand_space.
14255 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
14256 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
14257 i.e. no additional spacing, similar to Carbon port.
14258
d93f9575
CY
14259 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
14260 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 14261
305018ec
JD
142622009-03-14 Jan Djärv <jan.h.d@swipnet.se>
14263
14264 * sound.c (alsa_configure): Remove call to deprecated
14265 snd_pcm_sw_params_set_xfer_align.
14266
f761d6b6 142672009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
14268
14269 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
14270 after clicking in a detached tool bar.
14271 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
14272
46e722a9
SM
142732009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
14274
348db3dd
SM
14275 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
14276 int/Lisp_Object mixup).
46e722a9 14277
a3d16f39
KH
142782009-03-13 Kenichi Handa <handa@m17n.org>
14279
14280 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 14281 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
14282 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
14283 (set_fontset_font): Change ARG to a vector. Handle range_list in
14284 ARG correctly.
14285 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 14286 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
14287 the above change.
14288 (fontset_from_font): Fix previous change.
fe24f56a 14289 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
14290 entry. If FONTSET is the default fontset, don't set the extra
14291 slot of the returning char-table.
14292
b066e6b6
JB
142932009-03-12 Juanma Barranquero <lekktu@gmail.com>
14294
14295 * nsfns.m (Fx_close_connection): Doc fix.
14296 (Fns_do_applescript): Reflow docstring.
14297 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
14298 (Fx_display_pixel_width, Fx_display_pixel_height)
14299 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
14300 Fix typos in docstrings.
14301 (Fns_set_alpha): Fix typos in error messages.
14302
d472514e 143032009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 14304
d472514e 14305 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
14306 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
14307 were used for such events.
14308
d472514e
JB
14309 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
14310 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 14311
d472514e 14312 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
14313 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
14314
fb930676
KH
143152009-03-11 Kenichi Handa <handa@m17n.org>
14316
ff85581a
KH
14317 * font.h (font_open_by_spec): Extern it.
14318
c50b7e98
KH
14319 * font.c (font_open_by_spec): New function.
14320 (font_open_by_name): Use font_open_by_spec.
14321
fb930676
KH
14322 * frame.c (x_set_font): When ARG is a font-object, don't alter the
14323 fontset of the frame.
14324
14325 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
14326 modify the default font of frames that use this fontset.
14327 (num_auto_fontsets): New variable.
14328 (fontset_from_font): Use num_auto_fontsets to decide a fontset
14329 name. Be sure to set FONTSET_ASCII to the correct font name.
14330 (update_auto_fontset_alist): New function.
14331
df4e8455
JB
143322009-03-11 Juanma Barranquero <lekktu@gmail.com>
14333
14334 * makefile.w32-in: Update dependencies.
14335
0a375797
AR
143362009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14337
14338 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
14339
61313fa3
SM
143402009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
14341
14342 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
14343
b55103fb
CY
143442009-03-10 Chong Yidong <cyd@stupidchicken.com>
14345
14346 * lread.c (Feval_buffer): Doc fix.
14347
dde2559c
KH
143482009-03-09 Kenichi Handa <handa@m17n.org>
14349
14350 * charset.c (Qfile_name_handler_alist): Extern it.
14351 (load_charset_map_from_file): Temporarily bind
14352 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
14353
df4e8455 143542009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 14355
47f588bb
GM
14356 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
14357 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 14358
4ddf94bd
AR
143592009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
14360
4c9bdfc2
AR
14361 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
14362 (x_set_window_size): Change back to calculated method of setting
14363 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
14364 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
14365 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
14366
fe41ae9e
AR
14367 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
14368
4c9bdfc2
AR
14369 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
14370 accelerator in parens under GNUstep.
14371
825d0875
KH
143722009-03-06 Kenichi Handa <handa@m17n.org>
14373
14374 These changes are to detect incorrect composition sequence without
f3b3be74 14375 looking ahead the source. (Bug#2370)
825d0875
KH
14376
14377 * coding.h: Include "composite.h".
14378 (enum compisition_state): New enum.
14379 (struct compisition_status): New struct.
14380 (struct iso_2022_spec): New member cmp_status.
14381 (struct emacs_mule_spec): New struct.
14382 (struct coding_system): New members ctext_extended_segment_len and
14383 embedded_utf_8. Change the union member
14384 spec.emacs_mule_full_support to spec.emacs_mule.
14385
14386 * coding.c (CODING_ISO_CMP_STATUS): New macro.
14387 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 14388 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
14389 (ADD_COMPOSITION_DATA): New arg nbytes.
14390 (emacs_mule_char): New arg cmp_status.
14391 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
14392 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
14393 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
14394 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
14395 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
14396 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
14397 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
14398 (EMACS_MULE_COMPOSITION_END): New macro.
14399 (emacs_mule_finish_composition): New function.
14400 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
14401 (decode_coding_emacs_mule): Avoid long looking ahead while
14402 handling composition.
14403 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
14404 (ENCODE_COMPOSITION_RULE): New macro.
14405 (finish_composition): New function.
14406 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
14407 (DECODE_COMPOSITION_START): New implementation.
14408 (DECODE_COMPOSITION_END): Likewise.
14409 (STORE_COMPOSITION_RULE): New macro.
14410 (decode_coding_iso_2022): Avoid long looking ahead while handling
14411 composition, CTEXT extended segment, and embedded UTF-8.
14412 (setup_coding_system): For a coding of type iso-2022, reset
14413 CODING_ISO_EXTSEGMENT_LEN (coding) and
14414 CODING_ISO_EMBEDDED_UTF_8 (coding).
14415 (get_translation): Delete arguments last_block, from_nchars,
14416 to_nchars. Callers changed.
14417 (produce_chars): Don't modify charbuf. Adjusted for the change of
14418 get_translation.
98a326f7 14419 (produce_composition): Adjust for the new annotation sequence.
825d0875 14420 (handle_composition_annotation): Likewise.
98a326f7 14421 (consume_chars): Adjust for the change of get_translation.
825d0875 14422
ccbc4452
AR
144232009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
14424
4ddf94bd 14425 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 14426
988a7ddb
KH
144272009-03-05 Kenichi Handa <handa@m17n.org>
14428
14429 * font.c (font_select_entity): New function.
14430 (font_find_for_lface): Use font_select_entity to select a font.
14431
14432 * fontset.c (fontset_find_font): If a font found without
a8a3728b 14433 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
14434 font with C restriction.
14435
98a326f7 144362009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 14437
be1bce46 14438 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 14439
10ea2b82
JR
144402009-03-04 Jason Rumney <jasonr@gnu.org>
14441
2c93b248 14442 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 14443 characters that have already been read. (Bug#2569)
2c93b248 14444
10ea2b82
JR
14445 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
14446 Log an error message if check_image_size failed.
14447 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 14448 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 14449
71a0c011
EZ
144502009-03-02 Eli Zaretskii <eliz@gnu.org>
14451
14452 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
14453 when decoding process output.
14454
2f63bba8
RS
144552009-03-01 Richard M Stallman <rms@gnu.org>
14456
14457 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
14458
14459 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
14460
0a9564cb
EZ
144612009-02-28 Eli Zaretskii <eliz@gnu.org>
14462
14463 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
14464 (decode_coding_emacs_mule, decode_coding_iso_2022)
14465 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
14466 (decode_coding_raw_text, decode_coding_charset)
14467 (setup_coding_system, decode_eol, decode_coding, consume_chars):
14468 Honor inhibit-eol-conversion. (Bug #2186)
14469
449148b3
JR
144702009-02-28 Jason Rumney <jasonr@gnu.org>
14471
14472 * coding.c (detect_coding_charset): If not checking latin extra,
14473 fail on characters between 0x80 and 0xA0. (Bug#2354)
14474
a4aee864
EZ
144752009-02-28 Eli Zaretskii <eliz@gnu.org>
14476
14477 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 14478 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 14479
d88bee5a
GM
144802009-02-27 Glenn Morris <rgm@gnu.org>
14481
14482 * callint.c (Finteractive): Doc fix.
14483
a808f22d
KH
144842009-02-27 Kenichi Handa <handa@m17n.org>
14485
14486 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
14487
caf8d60c
CY
144882009-02-27 Chong Yidong <cyd@stupidchicken.com>
14489
14490 * font.c (font_style_to_value): Set value for unknown symbols to
14491 100 instead of 255.
b61137ea
CY
14492 (weight_table, slant_table, width_table): Treat "unspecified" as
14493 the default value.
caf8d60c 14494
1a0de25c
JB
144952009-02-26 Juanma Barranquero <lekktu@gmail.com>
14496
14497 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
14498
8fc45744
JB
144992009-02-25 Juanma Barranquero <lekktu@gmail.com>
14500
107bd7d1
JB
14501 * lread.c (Fload): Stop checking Vloads_in_progress and signal
14502 error as soon as a recursive load is detected.
8fc45744 14503
f097e223
AR
145042009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
14505
14506 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
14507 before caching.
14508
8810a12f
KH
145092009-02-24 Kenichi Handa <handa@m17n.org>
14510
14511 * fontset.c (fontset_find_font): Fix the condition for checking
14512 unavailable font.
14513
2c7d1565
GM
145142009-02-24 Glenn Morris <rgm@gnu.org>
14515
14516 * xfaces.c (Finternal_set_font_selection_order): Remove leading
14517 whitespace that confuses documentation.
14518
a20878b6
MB
145192009-02-23 Miles Bader <miles@gnu.org>
14520
14521 * process.c (Flist_system_processes, Fprocess_attributes)
14522 (syms_of_process): Rename `system-process-attributes' to
14523 `process-attributes'.
14524
b3b58c01
AS
145252009-02-22 Andreas Schwab <schwab@linux-m68k.org>
14526
1b3b981b
AS
14527 * coding.h (struct coding_system): Make safe_charsets a pointer to
14528 unsigned char.
14529 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
14530 being 255.
14531 (SAFE_CHARSET_P): Likewise.
14532 (setup_iso_safe_charsets): Properly setup safe_charsets.
14533 (Fdefine_coding_system_internal): Likewise.
14534 (setup_coding_system): Likewise. Remove unneeded casts.
14535 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
bba3e508
SM
14536 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS.
14537 Remove unneeded casts.
1b3b981b 14538
b3b58c01
AS
14539 * insdel.c (del_range_2): Don't modify gap contents when called
14540 from decode_coding_object. (Bug#1809)
14541
0b6f228c
CY
145422009-02-21 Chong Yidong <cyd@stupidchicken.com>
14543
14544 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
14545 Qfont_object.
14546 (Ftype_of): Recognize font objects.
14547
14548 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
14549
bba3e508
SM
14550 * font.c (Qfont_spec, Qfont_entity, Qfont_object):
14551 Definitions moved to data.c.
0b6f228c 14552
52f8870b
AR
145532009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
14554
14555 * nsterm.m (x_make_frame_invisible): Unset async_visible,
14556 async_iconified. Based on a patch by Christian Lynbech
14557 <christian.lynbech@tieto.com>.
14558 (EmacsView-windowDidMiniaturize:): Unset async_visible.
14559
7087d5e9
GM
145602009-02-20 Glenn Morris <rgm@gnu.org>
14561
14562 * syntax.c (Fskip_chars_forward): Fix doc typo.
14563
41d2ceef
CY
145642009-02-20 Chong Yidong <cyd@stupidchicken.com>
14565
14566 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
14567
1a3b7ca6
CY
145682009-02-19 Chong Yidong <cyd@stupidchicken.com>
14569
14570 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
14571
73cce38d
KH
145722009-02-19 Kenichi Handa <handa@m17n.org>
14573
14574 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 14575 Don't overflow coding->carryover. (Bug#2370)
73cce38d 14576
a51092ee
DN
145772009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
14578
14579 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
14580
c423ecca
KH
145812009-02-18 Kenichi Handa <handa@m17n.org>
14582
14583 * font.c (font_check_otf_features): Fix handling of `nil' element.
14584 (Ffont_spec): Describe :lang and :otf in the docstring.
14585
4c1958f4
AS
145862009-02-16 Andreas Schwab <schwab@suse.de>
14587
14588 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
14589 string.
14590
5704f39a
KH
145912009-02-16 Kenichi Handa <handa@m17n.org>
14592
14593 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 14594 (Bug#1723)
5704f39a 14595
8f0085aa
CY
145962009-02-14 Chong Yidong <cyd@stupidchicken.com>
14597
a057d86a 14598 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
14599
14600 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
14601 (handle_line_prefix): Suppress wrapping of wrap prefixes.
14602
aff01dd9
EZ
146032009-02-14 Eli Zaretskii <eliz@gnu.org>
14604
14605 * msdos.c (MAX_SCREEN_BUF): New macro.
14606 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
14607 Encode the entire run of glyphs sharing the same face, instead of
14608 doing that one glyph at a time (fixes a bug with displaying
14609 double-size characters).
14610
ba301db3
AR
146112009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
14612
14613 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
14614
14615 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
14616 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 14617 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
14618
14619 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 14620 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 14621
51d861de
SM
146222009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
14623
ac146f82 14624 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
14625 invisible areas.
14626
7fed8996
JR
146272009-02-12 Jason Rumney <jasonr@gnu.org>
14628
631ea4fb
JR
14629 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
14630 (add_font_entity_to_list): Call check_face_name even when family
14631 is unspecified.
14632
cb4a3e42
JR
14633 * w32term.c (x_display_pixel_height, x_display_pixel_width):
14634 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 14635 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 14636
7fed8996 14637 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 14638 raster fonts. (Bug#2219)
7fed8996 14639
895416e3
KH
146402009-02-12 Kenichi Handa <handa@m17n.org>
14641
14642 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
14643 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
14644 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 14645 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14646 (find_automatic_composition): While looking forward and backward,
14647 check static composition. Fix where to stop looking forward.
14648 (composition_adjust_point): Fix checking of static composition.
14649 (Fcomposition_get_gstring): Pay attention to
1dacf998 14650 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
14651
14652 * lisp.h (fast_looking_at): Extern it.
14653
14654 * search.c (fast_looking_at): New function.
14655
51d861de 14656 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
14657 <struct glyph>.u.cmp.to.
14658 (append_composite_glyph): Likewise.
14659
51d861de 14660 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
14661 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
14662 composition.
51d861de 14663 (append_composite_glyph): Adjust for the change of
895416e3
KH
14664 <strcut glyph>.u.cmp.to.
14665
8510724d
JB
146662009-02-11 Juanma Barranquero <lekktu@gmail.com>
14667
14668 * casetab.c (init_casetab_once):
14669 * coding.c (ALLOC_CONVERSION_WORK_AREA):
14670 * font.c (font_update_lface):
14671 * fontset.c (Fnew_fontset):
14672 * ftfont.c (ftfont_drive_otf):
14673 * xfont.c (xfont_open):
14674 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
14675
294fa707
SM
146762009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
14677
14678 * fileio.c (Fwrite_region): !NILP -> CONSP.
14679
b5bfebec
AS
146802009-02-10 Andreas Schwab <schwab@suse.de>
14681
14682 * process.c (send_process): Properly relocate pointer into data
adab88bd 14683 when using encoded data. (Bug#2272)
b5bfebec 14684
cb84a2be
KH
146852009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
14686
14687 * coding.c (detect_coding_charset): Fix previous change.
14688
89e09428
JR
146892009-02-08 Jason Rumney <jasonr@gnu.org>
14690
14691 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 14692 disappeared while hourglass was displayed. (Bug #2193)
89e09428 14693
4470a277
AS
146942009-02-07 Andreas Schwab <schwab@suse.de>
14695
14696 * unexelf.c (unexec): Fix error message.
14697
3175b12a
AR
146982009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
14699
14700 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 14701 when modal window is active. (Bug #2152)
3175b12a
AR
14702 (applicationShouldTerminate:): Remove now-unneeded while loop
14703 around NSRunAlertPanel.
14704
14705 * nsmenu.m (popupSession): New file-global variable.
14706 (pop_down_menu): End the popupSession before closing dialog.
14707 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
14708 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
14709 don't query NSApp for events (just sleep instead).
14710
8434d0b8
EZ
147112009-02-07 Eli Zaretskii <eliz@gnu.org>
14712
51d861de
SM
14713 * coding.c (syms_of_coding) <translation-table-for-input>:
14714 Modify doc string to discourage use for character code unification.
8434d0b8 14715
aa82edfd
CY
147162009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
14717
14718 * atimer.c (run_timers): Update pending_atimers.
14719
2d283c7c
CY
147202009-02-06 Chong Yidong <cyd@stupidchicken.com>
14721
eb306cab
CY
14722 * image.c (svg_load_image): Fix last change.
14723
2d283c7c
CY
14724 * xfns.c (Fx_create_frame): Signal an error if no font is
14725 found (Bug#2147).
14726
4d8e170e
JB
147272009-02-05 Juanma Barranquero <lekktu@gmail.com>
14728
14729 * character.c (syms_of_character) <script-representative-chars>:
14730 Fix typo in docstring.
14731
c96169a0
AR
147322009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
14733
14734 * nsmenu.m (pop_down_menu): New function.
14735 (ns_popup_dialog): Call it on unwind.
14736 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
14737 call timer_check() (Bug#2154).
14738 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
14739 handling_signal is set.
14740 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
14741
31fd7c5c 14742 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
14743
14744 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
14745
14746 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
14747
51d861de
SM
14748 * keyboard.c (poll_for_input_1, handle_async_input):
14749 Set handling_signal under HAVE_NS.
c96169a0 14750
aacd8ba1
GM
147512009-02-04 Glenn Morris <rgm@gnu.org>
14752
14753 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
14754
4cb75c4b
KH
147552009-02-04 Kenichi Handa <handa@m17n.org>
14756
14757 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
14758
14759 * charset.c (Fchar_charset): New optional arg restriction.
14760
14761 * coding.h (coding_system_charset_list): Extern it.
14762
14763 * coding.c (coding_system_charset_list): New function.
14764
14765 * composite.c: Include coding.h and termhooks.h.
14766 (composition_gstring_p): Fix for the terminal case.
14767 (composition_gstring_width): Likewise.
14768 (fill_gstring_body): Likewise.
14769 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
14770 the frame.
14771 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
14772 is within a composition.
867d4bb3 14773 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
14774
14775 * term.c (encode_terminal_code): Fix handling of composition.
14776 (produce_composite_glyph): For static composition, get pixel_width
14777 from struct composition.
14778
826ba17e
AS
147792009-02-02 Andreas Schwab <schwab@suse.de>
14780
14781 * unexelf.c (unexec): Handle unaligned bss offset.
14782
8ad093db
AR
147832009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
14784
14785 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
14786 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 14787
8ad093db
AR
14788 * keyboard.c (handle_interrupt): Don't call
14789 quit_throw_to_read_char() under NS.
d0a76a6e 14790
8ad093db
AR
14791 * blockinput.h: Remove NS-specific code.
14792
4d18a7a2
DN
147932009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
14794
db878925
DN
14795 * dispnew.c (window_change_signal): Don't try to get the size of a
14796 suspended tty frame.
14797 * term.c (Fresume_tty): Resize if the size has changed while the
14798 tty was suspended.
14799
4d18a7a2
DN
14800 * alloc.c (mark_stack): Properly conditionalize previous change.
14801
8984df7c
JB
148022009-01-30 Juanma Barranquero <lekktu@gmail.com>
14803
14804 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
14805 * w32term.c (w32_read_socket) [SYNC_INPUT]:
14806 Remove; this code is not used on Windows.
14807
75f4f1ac
EZ
148082009-01-30 Eli Zaretskii <eliz@gnu.org>
14809
14810 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
14811 EOLs that also has stray ^M characters.
14812
07a1e794
JB
148132009-01-30 Juanma Barranquero <lekktu@gmail.com>
14814
14815 * atimer.c (run_timers, alarm_signal_handler):
14816 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
14817 * w32inevt.c (w32_console_read_socket):
14818 * w32term.c (w32_read_socket):
14819 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
14820
a8b11cc9
CY
148212009-01-30 Chong Yidong <cyd@stupidchicken.com>
14822
14823 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
14824 Initialize it as a relative filename pattern.
14825 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
14826 (Fcall_process_region): Simplify temp file creation using
14827 temporary-file-directory.
14828
c279587b
EZ
148292009-01-29 Eli Zaretskii <eliz@gnu.org>
14830
14831 * msdos.c: Rename pending_signals to msdos_pending_signals.
14832 (sig_suspender, sigprocmask): Adjust.
14833
a8fe3242
CY
148342009-01-29 Chong Yidong <cyd@stupidchicken.com>
14835
14836 * keyboard.c (pending_signals): New var.
14837 (poll_for_input, input_available_signal, init_keyboard): Set it.
14838 (process_pending_signals): New function.
14839
14840 * lisp.h (QUIT): Check pending_signals instead of
14841 interrupt_input_pending. Use process_pending_signals.
14842
51d861de 14843 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 14844
51d861de 14845 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
14846
14847 * sysdep.c (emacs_write): Use process_pending_signals.
14848
14849 * xterm.c (XTread_socket): Update pending_signals.
14850
14851 * w32term.c (w32_read_socket): Update pending_signals.
14852
14853 * w32inevt.c (w32_console_read_socket): Update pending_signals.
14854
6570a1c4
KH
148552009-01-29 Kenichi Handa <handa@m17n.org>
14856
14857 * xftfont.c (xftfont_has_char): New function.
14858 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
14859
d72a4afa
AR
148602009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
14861
14862 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
14863 under GNUstep.
14864 (ns_query_color): New declaration.
14865
14866 * nsterm.m (ns_confirm_quit): New variable.
14867 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
14868 (EmacsApp-applicationShouldTerminate:): Use it.
14869 (EmacsPrefsController): Let user set it.
14870 (ns_query_color): New function.
14871 (ns_defined_color): Use it.
14872 (ns_initialize): Drop.
14873 (ns_term_init): Add two lines from ns_initialize(), and set
14874 input_interrupt_mode to nil.
14875
14876 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 14877 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 14878
9fe78804
KH
148792009-01-28 Kenichi Handa <handa@m17n.org>
14880
14881 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
14882 (fontset_get_font_group): Remember that no font-group is specified
14883 for C.
9fe78804 14884
fa57de36
CY
148852009-01-27 Chong Yidong <cyd@stupidchicken.com>
14886
930600e9
CY
14887 * fns.c (concat): Check for string overflow (bug#1787).
14888
fa57de36
CY
14889 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
14890 Quadruple undo limits (bug#1501).
14891
7179ce7b
KH
148922009-01-27 Kenichi Handa <handa@m17n.org>
14893
14894 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
14895 directly use GT_Get_Char_index.
14896
14897 * xftfont.c (struct xftfont_info): New member `index'.
14898
14899 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 14900 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 14901
5be8fcc0
CY
149022009-01-26 Kenichi Handa <handa@m17n.org>
14903
14904 * fontset.c (fontset_find_font): Fix handling of non-cons return
14905 value of fontset_get_font_group.
14906 (fontset_font): Revert last change.
14907
19ae3e61
JR
149082009-01-26 Jason Rumney <jasonr@gnu.org>
14909
14910 * w32font.c (w32font_list_internal): Return quickly if registry is
14911 unknown. Simplify final return.
14912 (add_font_entity_to_list): Break complex logic down into more
14913 manageable chunks. Move unknown registry check to
14914 w32font_list_internal.
14915
8612b71a
AR
149162009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
14917
14918 Changes to remove Feval calls from GUI under NS.
14919
d8038940
JB
14920 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
14921 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
14922 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
14923
14924 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
14925 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
14926 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
14927 instead of NON_ASCII_KEYSTROKE_EVENT.
14928 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
14929 (EmacsApp-applicationShouldTerminate:): Query user.
14930 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
14931 instead of Feval.
14932
14933 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
14934
14935 * keyboard.c (kbd_buffer_get_event): Check for it.
14936 (keys_of_keyboard): Define lispy keys for
14937 ns-put/unput-working-text.
14938
14939 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
14940 versions.
14941 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
14942
6288ae55
CY
149432009-01-25 Chong Yidong <cyd@stupidchicken.com>
14944
14945 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 14946 setting current_buffer directly. (Bug#2044)
6288ae55 14947
289e7f8f
CY
149482009-01-24 Chong Yidong <cyd@stupidchicken.com>
14949
5ce87308 14950 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 14951 any work. (Bug#1952, bug#1990).
5ce87308 14952
64cc3cf6 14953 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 14954
b3243e6f
AR
149552009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
14956
14957 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
14958 (ns_no_defaults): New declaration.
14959 (main): Use it.
e0d2e69a 14960
d900b2af 14961 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 14962
d900b2af 14963 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 14964
d900b2af
AR
14965 * nsterm.m (ns_no_defaults): New variable.
14966 (ns_initialize): Don't read defaults when ns_no_defaults.
14967 (EmacsView-readSelectionFromPasteboard:)
14968 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 14969 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
14970 (ns_dumpglyphs_stretch): New function.
14971 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 14972 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 14973
e0d2e69a
AR
14974 * nsimage.m (setPixmapData:): Set to ignore image DPI.
14975
3ac71f5d
CY
149762009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
14977
14978 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
14979 call for Sparc64.
14980
3fe53a83
AR
149812009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
14982
14983 * nsfns.m:
14984 * nsgui.h:
14985 * nsmenu.m:
14986 * nsselect.m:
14987 * nsterm.h:
14988 * nsterm.m: Remove '23' comments that indicated code added during
14989 update from emacs-20 -> emacs-23.
14990
10f87c6f 149912009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
14992
14993 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 14994 ns_alternate_modifier. (Bug#1217)
a3b53a85 14995
c7cef62d
AR
14996 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
14997 Display all shortcuts, including those w/o super modifier.
14998
575fb8bd
AR
14999 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
15000
918b848b
CY
150012009-01-22 Chong Yidong <cyd@stupidchicken.com>
15002
15003 * fileio.c (Vwrite_region_post_annotation_function)
15004 (Vwrite_region_annotation_buffers): New vars.
15005 (build_annotations_unwind): Just reset
15006 Vwrite_region_annotation_buffers.
15007 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
15008 Call write-region-post-annotation-function.
15009 (build_annotations): Add to Vwrite_region_annotation_buffers if
15010 buffer changes.
15011
a39e2539
AR
150122009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15013
15014 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
15015 Tiger.
51d861de
SM
15016 * nsfns.m (ns_do_applescript):
15017 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 15018
35ed44db
AR
150192009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
15020
15021 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
15022
cbe0b5bf
AR
150232009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
15024
15025 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 15026
6049d3a0
AR
15027 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
15028
15029 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
15030 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
15031 handle Ctrl-tab. (Bug#1841)
15032 (ns_get_color): Use unsigned long long for scanned hex string value.
15033 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 15034 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 15035 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 15036 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 15037 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 15038 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 15039 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 15040
d3810c21 15041 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 15042 DPI. (Bug#1316)
d3810c21
AR
15043 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
15044 values in onTiger section.
4c7077c3 15045
e301e634
CY
150462009-01-19 Chong Yidong <cyd@stupidchicken.com>
15047
7f82490b
CY
15048 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
15049 Check return value of font_spec_from_name.
64cc3cf6 15050 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
15051
15052 * font.c (font_spec_from_name): Return Qnil if font name could not
15053 be parsed.
15054 (font_parse_name): Treat a `?' character as part of an XLFD.
15055
e301e634
CY
15056 * fns.c (Fsubstring): Doc fix.
15057
1c0db158
KH
150582009-01-19 Kenichi Handa <handa@m17n.org>
15059
51d861de 15060 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
15061 (ftfont_list): Likewise.
15062
acf20901
JB
150632009-01-18 Juanma Barranquero <lekktu@gmail.com>
15064
fff4e459
JB
15065 * dbusbind.c (Fdbus_register_signal):
15066 * process.c (conv_sockaddr_to_lisp):
15067 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
15068
acf20901
JB
15069 * callproc.c (Fgetenv_internal): Doc fix.
15070
e7abcdfb
CY
150712009-01-16 Chong Yidong <cyd@stupidchicken.com>
15072
15073 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
15074 it is not even used.
15075
b60861e6
GM
150762009-01-16 Glenn Morris <rgm@gnu.org>
15077
15078 * font.c (Ffont_variation_glyphs): Silence compiler.
15079
8db52afe
JB
150802009-01-15 Juanma Barranquero <lekktu@gmail.com>
15081
15082 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
15083 Reported by David Robinow <drobinow@gmail.com>.
15084
4cddb209
KH
150852009-01-15 Kenichi Handa <handa@m17n.org>
15086
51d861de 15087 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 15088
f247f67b
JR
150892009-01-14 Jason Rumney <jasonr@gnu.org>
15090
15091 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 15092 never a fontset. (Bug#1562)
f247f67b 15093
f56a4450
KH
150942009-01-14 Kenichi Handa <handa@m17n.org>
15095
15096 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 15097 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 15098
4e99855e
CY
150992009-01-13 Chong Yidong <cyd@stupidchicken.com>
15100
15101 * font.c (font_clear_prop): If clearing the family, clear the font
15102 width index too.
15103
fff4e459 15104 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 15105
24f01470
JB
151062009-01-12 Juanma Barranquero <lekktu@gmail.com>
15107
15108 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
15109 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
15110 functions, use sizeof.
15111
a41240a3
MR
151122009-01-12 Martin Rudalics <rudalics@gmx.at>
15113
15114 * keyboard.c (read_char): Fix case where last_nonmenu_event
15115 returned a bad value with submenus. (Bug#447)
15116
944636b8
CY
151172009-01-12 Chong Yidong <cyd@stupidchicken.com>
15118
15119 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
15120 family, clear the font width index too.
15121
0dad7c6f
JR
151222009-01-11 Jason Rumney <jasonr@gnu.org>
15123
15124 * keyboard.c (cmd_error_internal): Exit when errors occur before
15125 frame creation and not in daemon mode. (Bug#1836)
15126
7c2363af
CY
151272009-01-10 Chong Yidong <cyd@stupidchicken.com>
15128
15129 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
15130 of a display vector, backtrack.
15131 (try_window_reusing_current_matrix): Check glyph type before
15132 referencing charpos member.
15133
97b1b294
EZ
151342009-01-10 Eli Zaretskii <eliz@gnu.org>
15135
15136 Fix Bug #876:
15137
15138 * coding.c (inhibit_null_byte_detection): New variable.
15139 (detect_coding, detect_coding_system): Don't pay attention to null
15140 bytes if inhibit_null_byte_detection is non-zero.
51d861de 15141 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
15142 <inhibit-iso-escape-detection>: Doc fix.
15143
4624b6e3
JR
151442009-01-09 Jason Rumney <jasonr@gnu.org>
15145
15146 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 15147 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
15148 Only report Unicode Plane 2 fonts as unicode-sip.
15149
323b840c
CY
151502009-01-09 Chong Yidong <cyd@stupidchicken.com>
15151
51d861de
SM
15152 * xfaces.c (Fx_font_family_list): Delete function.
15153 Move compatibility version to faces.el.
323b840c 15154
51d861de 15155 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 15156
eba7400d
MR
151572009-01-09 Martin Rudalics <rudalics@gmx.at>
15158
15159 * frame.c (x_set_frame_parameters): Remember requested value for
15160 fullscreen before it's reset by the parameter handler.
15161
4b09796d
GM
151622009-01-09 Glenn Morris <rgm@gnu.org>
15163
15164 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 15165 (last_command_event): ... and update all users.
4b09796d
GM
15166 (last_input_char): For clarity, rename to...
15167 (last_input_event): ... and update all users.
15168 (last-command-char, last-input-char): Move to subr.el as aliases.
15169 * cmds.c, commands.h: Update for last_command_char rename.
15170
14ccea62
CY
151712009-01-08 Chong Yidong <cyd@stupidchicken.com>
15172
51d861de 15173 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 15174
5f004711
JR
151752009-01-08 Jason Rumney <jasonr@gnu.org>
15176
15177 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
15178 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
15179 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
15180 Don't declare.
fff4e459 15181 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
15182 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
15183
b71f6f73
KH
151842009-01-07 Kenichi Handa <handa@m17n.org>
15185
50b06221 15186 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 15187 remember the coding system used for decoding in
50b06221
KH
15188 coding_system (Bug#1039).
15189
b71f6f73 15190 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 15191 breaking the loop. (Bug#870)
b71f6f73
KH
15192 (decode_coding_utf_16, decode_coding_emacs_mule)
15193 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
15194 (decode_coding_charset): Likewise.
15195
56f668f7
MR
151962009-01-05 Martin Rudalics <rudalics@gmx.at>
15197
15198 * frame.c (x_set_frame_parameters): Make sure height (width) get
15199 applied when fullwidth (fullheight) is set. (Bug#1522)
15200
5da9424d
JB
152012009-01-04 Juanma Barranquero <lekktu@gmail.com>
15202
15203 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
15204 (utc_base): Declare as ULONGLONG, not long double.
15205 (convert_time_raw): Delete.
15206 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
15207 (initialize_utc_base): New function.
15208 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
15209 (convert_from_time_t): Use initialize_utc_base; compute result with
15210 64-bit arithmetic.
15211 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
15212
c4605e09
EZ
152132009-01-03 Eli Zaretskii <eliz@gnu.org>
15214
9acef61c 15215 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
15216 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
15217 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
15218 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
15219 [!subprocesses]: Define.
15220 (syms_of_process) [!subprocesses]: Intern and staticpro them.
15221 (Flist_system_processes, Fsystem_process_attributes)
15222 [!subprocesses]: Call list_system_processes and
15223 system_process_attributes instead of returning Qnil.
15224
9acef61c
JB
15225 * dosfns.c (system_process_attributes, list_system_processes):
15226 New functions.
c4605e09
EZ
15227
15228 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
15229
15230 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
15231 Don't use the default (no-op) implementation.
15232
8b7d0a16
JR
152332009-01-03 Jason Rumney <jasonr@gnu.org>
15234
a6d46bc1
JR
15235 * keyboard.c (parse_modifiers_uncached): Wheel events are
15236 clicks (bug#687).
15237
8b7d0a16
JR
15238 * w32term.c (x_query_colors, x_query_color): New functions.
15239
15240 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
15241 (svg_load_image): Cast returned pointers from dynamically loaded
15242 functions. Eliminate W32 specific code.
15243
bfe11752
DN
152442009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
15245
89e2438a
DN
15246 * nsfns.m (x_set_foreground_color, x_set_background_color)
15247 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
15248 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
15249 x_ prefix instead of ns_. Update references.
15250 (syms_of_nsfns): Add a FIXME comment.
15251
15252 * nsterm.m (x_set_cursor_type): New prototype.
15253 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
15254
bfe11752
DN
15255 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
15256 for Solaris instead of incorrectly providing Qutime and Qcutime.
15257
031da700
EZ
152582009-01-02 Eli Zaretskii <eliz@gnu.org>
15259
15260 * w32.c (process_times): Compute sum of utime and stime.
15261 (system_process_attributes): Add Qtime to the alist.
15262
15263 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
15264 and add them to the alist.
15265
15266 * process.c (top level) <Qtime, Qctime>: New variables.
15267 (syms_of_process): staticpro them.
15268 (Fsystem_process_attributes): Add their documentation to the doc
15269 string.
15270
15271 * process.h: Declare Qtime and Qctime.
15272
df23bf08
JR
152732009-01-02 Jason Rumney <jasonr@gnu.org>
15274
9acef61c 15275 * image.c (Qgobject): New symbol.
df23bf08
JR
15276 (syms_of_image): Initialize it.
15277 (init_svg_functions): Load some functions from gobject library.
15278
5bbdf7aa
DN
152792009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
15280
15281 * frame.c (make_terminal_frame): Remove redundant code and useless
15282 block.
15283
63136da6
AS
152842009-01-01 Andreas Schwab <schwab@suse.de>
15285
15286 * process.c (conv_sockaddr_to_lisp): Add workaround for
15287 getsockname bug on BSD.
15288
9ef69046
CY
152892009-01-01 Chong Yidong <cyd@stupidchicken.com>
15290
d6fafbe0
CY
15291 * xfns.c (x_create_tip_frame): Set border width of the X window.
15292
51d861de 15293 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 15294
f9c34147
JR
152952009-01-01 Jason Rumney <jasonr@gnu.org>
15296
9acef61c 15297 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
15298 Don't block input, as per earlier xterm.c changes.
15299
f5497e45
AR
153002008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
15301
15302 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
15303 (ns_appkit_version_int): New function.
15304 (x-server-version): Use ns_appkit_version_int and follow 21+
15305 convention of returning 3 integers.
15306
c19cab20
KH
153072008-12-30 Kenichi Handa <handa@m17n.org>
15308
15309 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
15310 (CHAR_SURROGATE_PAIR_P): New macro.
15311
15312 * font.h (struct font_driver): New member get_variation_glyphs.
15313
9acef61c 15314 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
15315 (Ffont_variation_glyphs): New function.
15316 (syms_of_font): Defsubr it.
15317
15318 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
15319 ftfont_variation_glyphs.
15320 (setup_otf_gstring): New function.
15321 (ftfont_drive_otf): Use it.
15322 (ftfont_shape_by_flt): Handle variation selector.
15323 (ftfont_variation_glyphs): New function.
15324
28cd591f
MR
153252008-12-30 Martin Rudalics <rudalics@gmx.at>
15326
15327 * frame.c (Vemacs_iconified): Remove.
15328
7f714baf
JR
153292008-12-30 Jason Rumney <jasonr@gnu.org>
15330
15331 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 15332 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 15333
9d2d22ab
CY
153342008-12-30 Chong Yidong <cyd@stupidchicken.com>
15335
15336 * indent.c (Fvertical_motion): Don't advance iterator if we have
15337 reseated to the desired position.
15338
15339 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
15340 checking for pos match.
15341
545312c2
KH
153422008-12-30 Kenichi Handa <handa@m17n.org>
15343
1ede3eb6
KH
15344 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
15345 just get the low 8-bit of the code.
15346
545312c2
KH
15347 * font.c (font_intern_prop): Validate str as multibyte.
15348
bd7bbf29
DN
153492008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15350
31e0750e
DN
15351 * dispextern.h (struct face): Move lface and hash from the middle
15352 of bitfields.
15353
bd7bbf29
DN
15354 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
15355
b5672e7c
DN
153562008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
15357
15358 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
15359 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
15360 instead of intervals.h.
15361
d704470f
AS
153622008-12-26 Andreas Schwab <schwab@suse.de>
15363
15364 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
15365 cons.
15366
54b33868
MR
153672008-12-26 Martin Rudalics <rudalics@gmx.at>
15368
15369 * textprop.c (Qminibuffer_prompt): New variable.
15370 (syms_of_textprop): Initialize it.
15371 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
15372 in minibuffer-prompt face. (Bug#1662)
15373
40b615d6
JR
153742008-12-25 Jason Rumney <jasonr@gnu.org>
15375
15376 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
15377
baae5c2d
JR
153782008-12-24 Jason Rumney <jasonr@gnu.org>
15379
15380 * ralloc.c (r_alloc_reset_variable): New function.
15381
15382 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 15383 record of what points where. (Bug#716)
baae5c2d 15384
a9051c88
DN
153852008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
15386
15387 * minibuf.c (read_minibuf): Follow the non-interactive case when
15388 running as a daemon, before detaching.
15389
8b146312
AS
153902008-12-22 Andreas Schwab <schwab@suse.de>
15391
15392 * buffer.c (init_buffer): Use realloc instead of xrealloc.
15393 * gtkutil.c (free_widget_value): Use xfree instead of free.
15394
56f2de10
MR
153952008-12-22 Martin Rudalics <rudalics@gmx.at>
15396
15397 * frame.c (delete_frame): New function derived from
15398 Fdelete_frame to handle Qnoelisp value for FORCE argument.
15399 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
15400 (Fdelete_frame): Call delete_frame. Remove line from doc-string
15401 saying that FORCE non-nil doesn't run `delete-frame-functions'.
15402 * frame.h: Extern delete_frame.
15403 * window.c (window_loop):
15404 * terminal.c (delete_terminal):
15405 * xterm.c (x_connection_closed):
15406 * xfns.c (Fx_hide_tip):
9acef61c 15407 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 15408
1fc200d6
JR
154092008-12-21 Jason Rumney <jasonr@gnu.org>
15410
15411 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
15412 when character maps to .notdef character.
15413
5e252df2
SM
154142008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
15415
15416 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
15417
99b72cc4
JR
154182008-12-20 Jason Rumney <jasonr@gnu.org>
15419
15420 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 15421 a graphical frame on Windows. (Bug#1325)
99b72cc4 15422
acc49a52
JD
154232008-12-20 Jan Djärv <jan.h.d@swipnet.se>
15424
15425 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
15426
6ea15123
CY
154272008-12-20 Chong Yidong <cyd@stupidchicken.com>
15428
15429 * minibuf.c (Fread_buffer): Doc fix.
15430
b2dab6c8
JR
154312008-12-20 Jason Rumney <jasonr@gnu.org>
15432
54ea0c87 15433 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 15434 server name in UNC paths. (Bug#719)
54ea0c87 15435
b2dab6c8 15436 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 15437 charbuf. (Bug#1035)
b2dab6c8 15438
6d1921be
DN
154392008-12-19 Daniel Engeler <engeler@gmail.com>
15440
15441 * sysdep.c (serial_configure): Fix typo.
15442
53934c98
DN
154432008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15444
15445 * sysdep.c: Include alloca.h.
f4f634e8
DN
15446 (system_process_attributes): Add implementation for Solaris.
15447
15448 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 15449
06e111a6
DN
154502008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
15451
15452 Reorganize implementation of Flist_system_processes and
15453 Fsystem_process_attributes. No functional changes.
15454 * process.c: Don't #include pwd.h, grp.h and limits.h.
15455 (Flist_system_processes): Just call list_system_processes.
15456 (Fsystem_process_attributes): Just call system_process_attributes.
15457 (procfs_list_system_processes, time_from_jiffies)
15458 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
15459 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
15460
15461 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
15462 (list_system_processes): Rename from
15463 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
15464 Provide a do nothing implementation.
15465 (system_process_attributes): Rename from
15466 procfs_list_system_processes.
15467 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 15468 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
15469
15470 * w32.c (list_system_processes): Rename from
15471 w32_list_system_processes.
15472 (system_process_attributes): Rename from
15473 w32_system_process_attributes.
15474
15475 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
15476
15477 * process.h (w32_list_system_processes)
15478 (w32_system_process_attributes): Remove.
362654a6
JB
15479 (list_system_processes, system_process_attributes):
15480 New prototypes.
06e111a6 15481
6a705b23
KH
154822008-12-19 Kenichi Handa <handa@m17n.org>
15483
15484 * xfont.c (xfont_decode_coding_xlfd): New function.
15485 (xfont_encode_coding_xlfd): New function.
15486 (xfont_list_pattern): Decode XLFD by iso-8859-1.
15487 (xfont_list): Decode and encode XLFD by iso-8859-1.
15488 (xfont_match): Likewise.
15489 (xfont_list_family): Likewise.
15490 (xfont_open): Likewise.
15491
d66c0241 15492 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
15493 names are utf-8.
15494
d66c0241 15495 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
15496 names are utf-8.
15497
5a130941
JD
154982008-12-18 Jan Djärv <jan.h.d@swipnet.se>
15499
15500 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
15501 changed.
bfd20325
JD
15502 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
15503 clicked on a detached tool bar button.
5a130941 15504
fd95644b
DN
155052008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
15506
15507 * emacs.c (main): Print and error and exit when no data is read
15508 from the pipe.
15509
e6eee6ae
JR
155102008-12-17 Jason Rumney <jasonr@gnu.org>
15511
15512 * w32font.c (w32font_has_char): Always return -1.
15513
a35dd56b
KH
155142008-12-16 Kenichi Handa <handa@m17n.org>
15515
15516 * font.c (font_open_entity): Fix previous change.
15517
0e3635c2
DN
155182008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
15519
15520 * process.c: Include <limits.h>.
15521
d4835507 155222008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
15523
15524 * font.c (font_update_drivers): Fix mistake in reconstructing the
15525 driver list.
15526
155272008-12-16 Chong Yidong <cyd@stupidchicken.com>
15528
15529 * font.c (font_clear_cache): Fix format of font cache data.
15530
e2cbc401
CY
155312008-12-15 Chong Yidong <cyd@stupidchicken.com>
15532
15533 * xftfont.c (xftfont_open): Free Xft font pattern if
15534 XftFontOpenPattern fails.
15535
15536 * xterm.c (x_free_frame_resources): Remove extraneous call to
15537 free_frame_faces.
15538
b131d535
CY
155392008-12-13 Chong Yidong <cyd@stupidchicken.com>
15540
15541 * xterm.c (x_delete_display): Move xim_close_dpy call to
15542 x_delete_terminal.
15543 (x_delete_terminal): Call xim_close_dpy.
15544
e6df5336
JR
155452008-12-13 Jason Rumney <jasonr@gnu.org>
15546
15547 * w32font.c (intern_font_name): New function.
15548 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
15549 (w32font_open_internal, Fx_select_font): Decode font name.
15550 (fill_in_logfont, list_all_matching_fonts): Encode font name.
15551
15552 * w32font.h (intern_font_name): Declare new function.
15553
15554 * w32uniscribe.c (add_opentype_font_name_to_list):
15555 Use intern_font_name.
15556
20d68145
CY
155572008-12-13 Chong Yidong <cyd@stupidchicken.com>
15558
9f2554de
CY
15559 * frame.c (Fdelete_frame): Call free_font_driver_list.
15560
3d9bec9a
CY
15561 * font.c (free_font_driver_list): Implement missing function.
15562
20d68145
CY
15563 * w32term.c (w32_term_init): Don't initialize the image cache
15564 here; it will be done in init_frame_faces.
15565
15566 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
bba3e508
SM
15567 (struct x_display_info): Remove unused member null_pixel.
15568 New member xim_callback_data.
20d68145
CY
15569
15570 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
15571 (xim_initialize): Save pointer to callback function data.
15572 (xim_close_dpy): Free callback function data. Call XCloseIM,
15573 reverting 2008-11-04 change by David Smith.
15574 (x_term_init): Don't initialize the image cache here; it will be
15575 done in init_frame_faces. Remove ancient "null_pixel" cruft.
15576 (x_delete_display): Free x_dnd_atoms member.
15577
96f9306b
KH
155782008-12-13 Kenichi Handa <handa@m17n.org>
15579
ef1b0ba7 15580 * font.c (font_rescale_ratio): Move from xfaces.c.
6dec9044 15581 Argument type changed. Handle a font-spec too.
96f9306b 15582 (font_score): Check Vface_font_rescale_alist.
6dec9044 15583 (font_open_entity): Likewise. (Bug#1547)
96f9306b 15584
ef1b0ba7 15585 * xfaces.c (font_rescale_ratio): Move to font.c.
96f9306b 15586
8d5b4964
CY
155872008-12-13 Chong Yidong <cyd@stupidchicken.com>
15588
15589 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
15590
e6df5336
JR
155912008-12-12 Jason Rumney <jasonr@gnu.org>
15592
bba3e508
SM
15593 * w32fns.c (x_display_info_for_name, Fx_open_connection):
15594 Set Vwindow_system_version to the real w32 major version.
e6df5336 15595
97c6058a
DN
155962008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
15597
15598 * term.c (init_tty): Move setting the terminal name before the
15599 potential user: maybe_fatal.
15600
ec4e88d7
CY
156012008-12-11 Chong Yidong <cyd@stupidchicken.com>
15602
ef1b0ba7 15603 * term.c (tty_free_frame_resources): Rename from delete_tty_output;
d4835507 15604 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 15605
b4233ec9
JR
156062008-12-11 Jason Rumney <jasonr@gnu.org>
15607
8ec71e23 15608 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 15609 SYMBOL_CHARSET. (Bug#547)
8ec71e23 15610
b4233ec9 15611 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 15612 size for surrogates. (Bug#1096, bug#872)
b4233ec9 15613
011a0143
JB
156142008-12-11 Juanma Barranquero <lekktu@gmail.com>
15615
15616 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
15617
3c309f34
JB
156182008-12-11 Juanma Barranquero <lekktu@gmail.com>
15619
15620 * process.c (Fsystem_process_attributes, syms_of_process):
15621 Fix typo in name of Ssystem_process_attributes.
15622 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
15623
fedc6ab5
JB
156242008-12-11 Juanma Barranquero <lekktu@gmail.com>
15625
15626 * syntax.c (Fmodify_syntax_entry): Doc fix.
15627
ba3de0e8
JB
156282008-12-10 Juanma Barranquero <lekktu@gmail.com>
15629
15630 * font.c (Ffont_spec): Move usage to end of docstring.
15631
174f1c74
JR
156322008-12-10 Jason Rumney <jasonr@gnu.org>
15633
15634 * w32font.c (Qcham): New symbol.
15635 (font_supported_scripts): Add cham, and comments for other new
15636 scripts in bitfield from OpenType spec.
9d32f818
JR
15637 (add_font_entity_to_list): Limit unicode-sip fonts to those that
15638 contain characters beyond the bmp.
174f1c74 15639
7b649478
KH
156402008-12-10 Kenichi Handa <handa@m17n.org>
15641
15642 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 15643 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
15644 Qunicode_sip.
15645
2133e2d1
JB
156462008-12-10 Juanma Barranquero <lekktu@gmail.com>
15647
15648 * coding.c (QCdefault_char): Rename from QCdefalut_char.
15649 (Fcoding_system_put): Use QCdefault_char.
15650 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
15651
9af886ee
CY
156522008-12-09 Chong Yidong <cyd@stupidchicken.com>
15653
74d819eb
CY
15654 * xftfont.c (syms_of_xftfont): Fix typo.
15655
4ccfa1c0 15656 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 15657
7c19d3ae
DN
156582008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
15659
15660 * emacs.c (main): Close daemon_pipe on exec.
15661
567826bb
CY
156622008-12-08 Chong Yidong <cyd@stupidchicken.com>
15663
15664 * termchar.h (struct tty): New members termcap_term_buffer and
15665 termcap_strings_buffer.
15666
15667 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 15668 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
15669 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
15670 All callers changed.
15671 (init_tty): Store termcap data and string buffers in new struct
15672 tty members termcap_term_buffer and termcap_strings_buffer.
15673 (delete_tty): Free them.
4ccfa1c0 15674 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 15675
aa96c42b
SZ
156762008-12-07 Seiji Zenitani <zenitani@mac.com>
15677
15678 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 15679 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 15680
b7e1d896
CY
156812008-12-06 Chong Yidong <cyd@stupidchicken.com>
15682
15683 * coding.c (make_conversion_work_buffer): Disable buffer
15684 modification hooks in the work buffer.
15685
b5ec91a5
EZ
156862008-12-05 Eli Zaretskii <eliz@gnu.org>
15687
15688 * process.c (procfs_system_process_attributes): If `nread' has a
15689 negative value, assign zero to it.
15690
a5d2a52b
CY
156912008-12-05 Chong Yidong <cyd@stupidchicken.com>
15692
68c5540b 15693 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 15694
7bf1bb21
KH
156952008-12-05 Kenichi Handa <handa@m17n.org>
15696
15697 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
15698 second character is a combining character.
15699
2fdc7d00
EZ
157002008-12-05 Eli Zaretskii <eliz@gnu.org>
15701
15702 * process.c (procfs_system_process_attributes): Don't use cmd,
15703 cmdsize, and q without initializing them first.
15704
bf6bfba8
JR
157052008-12-04 Jason Rumney <jasonr@gnu.org>
15706
15707 * w32font.c (w32font_draw): Initialize orig_clip before getting
15708 it, and delete it when finished.
15709
a3b1a468
DN
157102008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
15711
15712 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
15713 case when running as a daemon before detaching.
15714
8b8be8eb
JB
157152008-12-03 Juanma Barranquero <lekktu@gmail.com>
15716
805f2638 15717 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 15718
b1bde622
KH
157192008-12-03 Kenichi Handa <handa@m17n.org>
15720
e500c47d
KH
15721 * font.c (font_at): Set `multibyte' at first.
15722
ca516334
KH
15723 * coding.c (decode_coding_charset): Check type of an element of
15724 vector VALIDS.
7bf1bb21 15725 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 15726
4ccfa1c0 15727 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
15728 (font_for_char): Likewise.
15729
1e5ecd37
CY
157302008-12-03 Chong Yidong <cyd@stupidchicken.com>
15731
d5b01609 15732 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
15733 (font_update_lface): Handle fonts with corrupted size specs,
15734 i.e. non-int and non-float.
d5b01609 15735
11e3a6e4 15736 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 15737 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 15738 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 15739
ab06788b
CY
15740 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
15741
1e5ecd37 15742 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 15743 underline_minimum_offset for underline position.
1e5ecd37 15744
63c125ab
DN
157452008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
15746
15747 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
15748
15749 * character.c (c_string_width): Specify the type for LEN.
15750
3a8406e1
KH
157512008-12-03 Kenichi Handa <handa@m17n.org>
15752
4ccfa1c0 15753 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 15754 (decode_coding_utf_8): Likewise.
4ccfa1c0 15755 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 15756 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 15757
651df7d9
CY
157582008-12-02 Chong Yidong <cyd@stupidchicken.com>
15759
15760 * keyboard.c (make_lispy_position): Only use PT if the selected
15761 window is current.
15762
1f625c6c
AS
157632008-12-02 Andreas Schwab <schwab@suse.de>
15764
f7741ce9
AS
15765 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
15766
1f625c6c
AS
15767 * doprnt.c (doprnt1): Fix size of charbuf.
15768
92bc2678
CY
157692008-12-02 Chong Yidong <cyd@stupidchicken.com>
15770
15771 * keyboard.c (timer_check): Revert last change.
15772
93b9e8cc
JB
157732008-12-02 Juanma Barranquero <lekktu@gmail.com>
15774
15775 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
15776
fd7a37d5
JB
157772008-12-01 Juanma Barranquero <lekktu@gmail.com>
15778
15779 * makefile.w32-in: Update dependencies.
15780 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
15781
c115043b
AS
157822008-12-01 Andreas Schwab <schwab@suse.de>
15783
15784 * font.c (register_font_driver): Use xmalloc.
15785 (font_put_frame_data): Likewise.
15786
f5668d2a
CY
157872008-12-01 Chong Yidong <cyd@stupidchicken.com>
15788
860d96be
CY
15789 * xfaces.c (realize_x_face): Make abort condition clearer.
15790
f5668d2a
CY
15791 * gtkutil.c (update_frame_tool_bar): Initialize variable.
15792
379c17e7
CY
157932008-11-30 Chong Yidong <cyd@stupidchicken.com>
15794
15795 * keyboard.c (timer_check): After a timer runs, ensure that the
15796 selected window's buffer is current.
15797
35f36d65
JB
157982008-11-30 Juanma Barranquero <lekktu@gmail.com>
15799
f952c61c
JB
15800 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
15801 It was accidentally restored by the Unicode merge.
15802
35f36d65
JB
15803 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
15804
b23077df
JB
158052008-11-29 Juanma Barranquero <lekktu@gmail.com>
15806
15807 * w32proc.c: Include "coding.h".
15808 (Fw32_short_file_name): Encode filename passed to Windows API.
15809 (Fw32_long_file_name): Encode filename passed to Windows API and
15810 decode back the result. (Bug#1433)
15811
b8ebe9dd
KH
158122008-11-29 Kenichi Handa <handa@m17n.org>
15813
8cc53f96
KH
15814 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
15815 not before accessing it.
15816
b8ebe9dd
KH
15817 * charset.c (Fdefine_charset_internal): After calculating
15818 min_char, max_char, and fastmap, copy the charset structure again.
15819 (encode_char): Fix the previous change.
15820
59bc82c0
SZ
158212008-11-28 Seiji Zenitani <zenitani@mac.com>
15822
15823 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
15824
15825 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
15826
15827 * nsterm.m (x_set_frame_alpha): New function.
15828
32247e3d
EZ
158292008-11-27 Eli Zaretskii <eliz@gnu.org>
15830
15831 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
15832
b003e5ff
JB
158332008-11-27 Juanma Barranquero <lekktu@gmail.com>
15834
15835 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
15836 pointer to check_face_name.
15837
708550f5
KH
158382008-11-27 Kenichi Handa <handa@m17n.org>
15839
15840 * category.h (SET_CATEGORY_SET): Call set_category_set.
15841 (set_category_set): Extern it.
15842
15843 * category.c (hash_get_category_set): New function.
bba3e508 15844 (Fmodify_category_entry): Adjust for the change of
708550f5
KH
15845 char_table_ref_and_range. Call hash_get_category_set to get a
15846 category set to store in the table.
15847
15848 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
15849 Funify_charset.
15850
2ae37cf0 15851 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
15852 (DECODE_CHAR): Check if the decoder vector is ready.
15853 (ENCODE_CHAR): Check if the encoder char-table is ready.
15854 (maybe_unify_char): Extern it.
15855
15856 * charset.c (Vchar_unified_charset_table): Delete it.
15857 (inhibit_load_charset_map): New variable.
15858 (temp_charset_work): New variable.
15859 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
15860 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
15861 New macros.
bba3e508
SM
15862 (load_charset_map): Meaning of control_flag changed.
15863 If inhibit_load_charset_map is nonzero, setup a table in
708550f5
KH
15864 temp_charset_work.
15865 (load_charset): New argument control_flag.
15866 (map_charset_for_dump): New function.
15867 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
15868 map_charset_for_dump.
15869 (Fdefine_charset_internal): If the charset method is MAP, load
15870 mapping tables by calling load_charset.
15871 (Funify_charset): Don't load a mapping table but directly set
15872 Vchar_unify_table.
15873 (maybe_unify_char): New function.
15874 (decode_char): Don't handle the deleted method MAP_DEFERRED.
15875 Handle the case of inhibit_load_charset_map being nonzero.
15876 (encode_char): Don't handle the deleted method MAP_DEFERRED.
15877 Handle the case of inhibit_load_charset_map being nonzero.
15878 (Fclear_charset_maps): Just free temp_charset_work.
15879 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
15880 variable.
15881
bba3e508 15882 * chartab.c (sub_char_table_ref_and_range): Adjust for the
708550f5
KH
15883 change of char_table_ref_and_range.
15884 (char_table_ref_and_range): Change the meaning of argument FROM
15885 and TO. Now the caller must provide initial values for *FROM
15886 and *TO.
15887
bba3e508 15888 * fontset.c (fontset_add): Adjust for the change of
708550f5
KH
15889 char_table_ref_and_range.
15890 (fontset_get_font_group): Likewise.
15891 (Ffontset_info): Likewise.
15892
bba3e508 15893 * keymap.c (describe_vector): Adjust for the change of
708550f5
KH
15894 char_table_ref_and_range. For char-table, put boundary between
15895 non-ASCII and 8-bit characters.
15896
15897 * print.c (print_object): For bool-vector, delete unnecessary
15898 check of ASCII_BYTE_P.
15899
9196133b
JR
159002008-11-26 Jason Rumney <jasonr@gnu.org>
15901
15902 * w32font.c (w32font_open_internal): Don't include external
9acef61c 15903 leading in font height. (Bug#879)
9196133b 15904
9f688acf
GM
159052008-11-26 Glenn Morris <rgm@gnu.org>
15906
15907 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
15908 redefinition with ifdef. (Bug#1383)
15909
90d19aff
AR
159102008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15911
15912 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
15913
4ccfa1c0 159142008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
15915
15916 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
15917 New EmacsView methods.
15918 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
15919 Fixes bug #1048,1357,1414.
15920
159212008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
15922
15923 Fix bug #1362.
15924 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
15925 is not an indexed color.
15926 * nsterm.m (free_indexed_color): Add argument checking.
15927 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
15928
e7d5ecb3
CY
159292008-11-24 Chong Yidong <cyd@stupidchicken.com>
15930
15931 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
15932 Document confirm-after-completion value for
15933 minibuffer-completion-confirm.
15934
c285743c
JR
159352008-11-24 Jason Rumney <jasonr@gnu.org>
15936
15937 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
15938 warning.
15939
b0857706
JR
159402008-11-23 Jason Rumney <jasonr@gnu.org>
15941
15942 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
15943 restored before returning.
15944
15945 * w32font.c (check_face_name): New function.
15946 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 15947 fonts. (Bug#642)
b0857706 15948
ee50ff07
MR
159492008-11-22 Martin Rudalics <rudalics@gmx.at>
15950
15951 * buffer.c (Fswitch_to_buffer): Reword and mention new option
15952 confirm-nonexistent-file-or-buffer in doc-string.
15953
b8ff72fa
SM
159542008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
15955
15956 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
15957 Fix copy/paste typo. Add checks.
15958
cee53ed4
KH
159592008-11-21 Kenichi Handa <handa@m17n.org>
15960
15961 * coding.c (detect_coding_iso_2022): Reject invalid composition
15962 sequence.
15963 (DECODE_COMPOSITION_START): If the current source is the last
15964 block, and the current composition doesn't end, regard this
15965 sequence as invalid.
15966 (decode_coding_iso_2022): Handle invalid composition sequence.
15967
f6ef1e65
MR
159682008-11-20 Martin Rudalics <rudalics@gmx.at>
15969
15970 * window.c (coordinates_in_window): Don't return
15971 ON_VERTICAL_BORDER for the rightmost position of a mode/header
15972 line when the window is not the rightmost one. (Bug#1372)
15973
e08b1705
MR
159742008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
15975
15976 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
15977
ad98e89f
EZ
159782008-11-15 Eli Zaretskii <eliz@gnu.org>
15979
15980 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
15981 and bright_bg if noninteractive is non-zero.
15982
fb098a4b
CY
159832008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15984
15985 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
15986 x_draw_glyph_string_background.
15987
15988 * w32term.c (x_draw_glyph_string): Likewise.
15989
ce952b6e
CY
159902008-11-15 Chong Yidong <cyd@stupidchicken.com>
15991
15992 * xterm.c (x_draw_glyph_string): Stop drawing the background of
15993 the next glyph string once past the overhang width.
15994
15995 * nsterm.m (ns_draw_glyph_string): Likewise.
15996
15997 * w32term.c (x_draw_glyph_string): Likewise.
15998
26ea7079
CY
159992008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
16000
16001 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
16002 double file close.
16003
1c33c906
MR
160042008-11-14 Martin Rudalics <rudalics@gmx.at>
16005
16006 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
16007 dedicated status of window before attempting to display another
16008 buffer in it.
16009
8fc29035
JB
160102008-11-14 Juanma Barranquero <lekktu@gmail.com>
16011
16012 * msdos.c (Fmsdos_long_file_names):
16013 (syms_of_msdos) <dos-unsupported-char-glyph>:
16014 * dosfns.c (Fint86): Fix typos in docstrings.
16015
55fb4286
EZ
160162008-11-14 Eli Zaretskii <eliz@gnu.org>
16017
16018 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
16019
3fda0315
KY
160202008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
16021
16022 * puresize.h (BASE_PURESIZE): Increase to 1260000.
16023
7e849c17
CY
160242008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
16025
16026 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
16027
16028 * frame.h: Negative alpha means "don't touch".
16029
16030 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
16031
16032 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
16033
b9fd67bd
DN
160342008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
16035
16036 * hftctl.c:
16037 * chpdef.h:
16038 * acldef.h: Remove files used only for systems no longer supported.
16039
16040 * Makefile.in: Fix .o alphabetical ordering.
16041 (hftctl.o): Remove dependency, file removed.
16042 (keymap.o, print.o): Depend on charset.h.
16043
d5998e03
KH
160442008-11-10 Kenichi Handa <handa@m17n.org>
16045
2ae37cf0 16046 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 16047
be70e183
CY
160482008-11-08 Chong Yidong <cyd@stupidchicken.com>
16049
16050 * dired.c (file_name_completion): If completion_ignore_case is
16051 enabled, ignore case when checking completion-regexp-list.
16052
7cf94eac
EZ
160532008-11-08 Eli Zaretskii <eliz@gnu.org>
16054
16055 * vm-limit.c (get_lim_data): Fix last change.
16056
ee107a89
KH
160572008-11-08 Kenichi Handa <handa@m17n.org>
16058
16059 * character.c (Fget_byte): New function.
16060 (syms_of_character): Defsubr Fget_byte.
16061
5fd15622
CY
160622008-11-07 Chong Yidong <cyd@stupidchicken.com>
16063
16064 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
16065 cursor position is valid after scrolling.
16066
13d62fad
JB
160672008-11-06 Juanma Barranquero <lekktu@gmail.com>
16068
16069 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
16070
a1dd2936
GM
160712008-11-06 Glenn Morris <rgm@gnu.org>
16072
16073 * xterm.c (handle_one_xevent): Don't let popup menus cause
16074 mouse-autoselect-window related window switching. (Bug#1261)
16075
860cd236
CY
160762008-11-04 David Smith <davidsmith@acm.org> (tiny change)
16077
16078 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
16079
653a3150
AS
160802008-11-04 Andreas Schwab <schwab@suse.de>
16081
16082 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
16083
870f5cac
CY
160842008-11-03 Chong Yidong <cyd@stupidchicken.com>
16085
16086 * xfns.c (Fx_wm_set_size_hint): New function.
16087
1e02f3cb
MR
160882008-11-03 Martin Rudalics <rudalics@gmx.at>
16089
16090 * textprop.c (Fprevious_single_char_property_change): Return 0
16091 when there's no change in a string. (Bug#1301)
16092
e630dfc6
MR
160932008-11-02 Martin Rudalics <rudalics@gmx.at>
16094
16095 * frame.c (do_switch_frame): New argument NORECORD passed to
16096 Fselect_window.
16097 (Fselect_frame): New argument NORECORD passed to
16098 do_switch_frame.
16099 (Fset_frame_selected_window): New argument NORECORD passed to
16100 Fselect_frame.
16101 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
16102 in call of do_switch_frame.
16103 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
16104 Handle NORECORD argument in call of Fselect_frame.
16105 * lisp.h (do_switch_frame, Fselect_frame)
16106 (Fset_frame_selected_window): Adjust declarations.
16107 * window.c (select_frame_norecord): New function.
16108 (run_window_configuration_change_hook): Use it and call
16109 Fselect_frame with NORECORD set.
16110 (Fselect_window): Pass NORECORD to Fselect_frame.
16111 (Fset_window_configuration): Handle NORECORD argument in call of
16112 do_switch_frame.
16113 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
16114 Fset_frame_selected_window.
16115 * keyboard.c (command_loop_1): Handle NORECORD in call of
16116 Fselect_frame (currently ifdefd).
16117
9020b223
GM
161182008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
16119
16120 * emacs.c (USAGE2): Untabify.
16121
793ffee8
SM
161222008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
16123
16124 * composite.c (fill_gstring_header): Fix copy/paste typo.
16125
ab6d1131
MR
161262008-10-31 Martin Rudalics <rudalics@gmx.at>
16127
16128 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
16129 (Fother_window): Rename argument and rewrite doc-string.
16130 (select_window_norecord): Fix return value. (Bug#1276)
16131
601a9cf1
JB
161322008-10-30 Juanma Barranquero <lekktu@gmail.com>
16133
16134 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
16135 new frames overriding foreground for tooltips. Based on similar patch
16136 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
16137
813b0652
CY
161382008-10-29 Chong Yidong <cyd@stupidchicken.com>
16139
16140 * emacs.c (Fdaemon_initialized): Initialize nfd.
16141
4414f58f
MR
161422008-10-29 Martin Rudalics <rudalics@gmx.at>
16143
16144 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
16145 (Fwindow_text_height): Clarify doc-strings.
16146 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
16147 doc-string of window-scroll-functions.
16148
ecdcaa09
RS
161492008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
16150
16151 * category.c (syms_of_category): Fix typo in docstring.
16152
23fe745a
JB
161532008-10-28 Juanma Barranquero <lekktu@gmail.com>
16154
16155 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
16156 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
16157 Fix typos in docstrings.
16158
ff808935
DN
161592008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
16160
16161 * emacs.c (daemon_pipe): Make non-static.
16162 (IS_DAEMON): Move definition ...
16163 * lisp.h (IS_DAEMON): ... here.
16164 (daemon_pipe): Declare.
16165 (is_daemon): Remove.
16166 * dispnew.c (init_display): Use IS_DAEMON.
16167
fc012771
SM
161682008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
16169
16170 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
16171 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
16172
16173 * emacs.c (is_daemon): Remove.
16174 (main): Don't set is_daemon.
16175 (IS_DAEMON): New macro.
16176 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 16177 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
16178 parent exits.
16179 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
16180
d8bdbe6f
CY
161812008-10-27 Chong Yidong <cyd@stupidchicken.com>
16182
d1a072bf
CY
16183 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
16184 over-sized glyph, draw it with the default glyph width.
16185
e2e325aa
CY
16186 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16187 glyph, draw it with the default glyph width.
16188
16189 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
16190 glyph, draw it with the default glyph width.
16191
d8bdbe6f
CY
16192 * xdisp.c (try_scrolling): When computing the distance from the
16193 scroll margin to PT, try moving some distance past the window
16194 bottom before giving up.
16195
7bfac547
MR
161962008-10-27 Martin Rudalics <rudalics@gmx.at>
16197
16198 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
16199 (Fset_window_buffer): Explain in doc-string that a window can be
16200 "strongly" dedicated to its buffer.
16201
4ff029f6
DN
162022008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
16203
16204 * emacs.c (daemon_name): New variable.
16205 (main): Deal with --daemon=SERVER_NAME.
16206 (Fdaemonp): Return a name if one was passed to --daemon.
16207
5790ef40
DN
162082008-10-26 Romain Francoise <romain@orebokech.com>
16209
f9bd0df9 16210 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
16211 (main): Create a pipe before forking, make the parent exit only after
16212 the child has closed its end of the pipe. Move closing the
16213 descriptors ...
16214 (Fdaemon_initialized): ... here. New function.
16215
f5385255
SM
162162008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
16217
4d632321
SM
16218 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
16219 the previous unoptimized table.
16220
f5385255
SM
16221 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
16222 the distinction between non-nil and non-t value of `dedicated'.
16223
6c56a0f3
CY
162242008-10-25 Chong Yidong <cyd@stupidchicken.com>
16225
16226 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 16227 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 16228
fec89261
MR
162292008-10-25 Martin Rudalics <rudalics@gmx.at>
16230
16231 * window.c (Fget_buffer_window, Fdelete_windows_on)
16232 (Freplace_buffer_in_windows): Make buffer argument optional and
16233 rename to buffer_or_name.
16234
34fcddd0
CY
162352008-10-24 Chong Yidong <cyd@stupidchicken.com>
16236
f5385255
SM
16237 * xdisp.c (handle_single_display_spec, handle_display_prop):
16238 Undo 2005-05-16 change.
34fcddd0
CY
16239 (handle_stop): Pop iterator if it's loaded with an empty string.
16240 (get_overlay_strings_1): Don't save iterator if it's loaded with
16241 an empty string (bug#1201).
16242
064766f2
KH
162432008-10-24 Kenichi Handa <handa@m17n.org>
16244
16245 * ftfont.c (ftfont_otf_features): Fix previous change.
16246 (ftfont_otf_capability): Check FeatureList.FeatureCount before
16247 calling ftfont_otf_features.
16248
f9bd0df9 162492008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
16250
16251 * font.c (font_match_p): Fix for the case that a vector of
16252 characters is in script-representative-chars.
16253
1dae9197
MA
162542008-10-24 Michael Albinus <michael.albinus@gmx.de>
16255
16256 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 16257 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
16258 (xd_read_queued_messages): Catch Qdbus_error from the macros.
16259 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 16260 macro. (Bug#1186)
1dae9197 16261
f9bd0df9 162622008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
16263
16264 * s/sol2-10.h: New file.
16265
878a4584
JB
162662008-10-23 Juanma Barranquero <lekktu@gmail.com>
16267
16268 * xdisp.c (fill_glyph_string): Fix typo in source (though the
16269 poor beast has survived 9+ years and the jump from xterm.c!).
16270
cd265ca6
MR
162712008-10-23 Martin Rudalics <rudalics@gmx.at>
16272
16273 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
16274 Reword doc-string.
f5385255 16275 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 16276
472a4dc9
JB
162772008-10-23 Juanma Barranquero <lekktu@gmail.com>
16278
16279 * character.c (syms_of_character) <script-representative-chars>:
16280 <unicode-category-table>: Doc fixes.
16281
159bd5a2
NF
162822008-10-23 Noah Friedman <friedman@splode.com>
16283
16284 * coding.c (make_conversion_work_buffer): Check that
16285 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
16286 Fget_buffer_create.
16287
49f9c344
KH
162882008-10-23 Kenichi Handa <handa@m17n.org>
16289
16290 * font.c (font_add_log): Check the values of extra properties.
16291
12bb3111
MR
162922008-10-22 Martin Rudalics <rudalics@gmx.at>
16293
16294 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16295 Reword doc-string.
16296 (Fset_window_parameter): Use NILP.
16297 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 16298 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 16299
bbeb4e99
JB
163002008-10-22 Juanma Barranquero <lekktu@gmail.com>
16301
16302 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
16303
163042008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
16305
16306 * nsfns.m (ns_appkit_version): New function.
16307 (x-server-version): Use it.
16308 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
16309 (x-server-vendor): Don't check_ns().
16310
16311 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
16312
a9b555d3
JB
163132008-10-22 Juanma Barranquero <lekktu@gmail.com>
16314
16315 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
16316 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
16317
4626499f
KH
163182008-10-22 Kenichi Handa <handa@m17n.org>
16319
e3681952
KH
16320 * syntax.c (scan_words): Call word_boundary_p instead of comparing
16321 scripts.
16322
4626499f
KH
16323 * category.c (word_boundary_p): Check scripts instead of charset.
16324 Handle nil value in word-separating-categories and
16325 word-combining-categories.
16326 (syms_of_category): Fix docstrings of word-separating-categories
16327 and word-combining-categories.
16328
1560f91a
EZ
163292008-10-21 Eli Zaretskii <eliz@gnu.org>
16330
16331 * coding.c (Fencode_coding_region, Fdecode_coding_region)
16332 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
16333
f4668441
MR
163342008-10-21 Martin Rudalics <rudalics@gmx.at>
16335
16336 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
16337 Rename arg "buffer" to "buffer_or_name".
16338 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
16339 it optional.
16340 (no_switch_window): Remove since the return value is not used.
a9b555d3 16341 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
16342 Consider window as dedicated when Fwindow_dedicated_p returns a
16343 non-nil value.
16344 * lisp.h: Remove prototype for no_switch_window.
16345
fd75ddb2
JD
163462008-10-21 Jan Djärv <jan.h.d@swipnet.se>
16347
16348 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 16349 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 16350
07295713
KH
163512008-10-21 Kenichi Handa <handa@m17n.org>
16352
16353 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
16354 check Vlatin_extra_code_table.
16355
712adc82
EZ
163562008-10-20 Eli Zaretskii <eliz@gnu.org>
16357
16358 * fileio.c (Fset_file_modes): Doc fix.
16359
f549eb0b
MA
163602008-10-19 Michael Albinus <michael.albinus@gmx.de>
16361
16362 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
16363 in arrays.
16364
aac0c6e3
MR
163652008-10-19 Martin Rudalics <rudalics@gmx.at>
16366
16367 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
16368 Mention kill-buffer in doc-string.
16369 (Fset_window_buffer): Reinsert tem check removed in last commit.
16370 (Fenlarge_window, Fshrink_window): Have argument names and
16371 doc-string follow Elisp manual more closely.
16372
163732008-10-18 Eli Zaretskii <eliz@gnu.org>
16374
16375 * fileio.c (Fset_file_modes): Doc fix.
16376
163772008-10-18 Martin Rudalics <rudalics@gmx.at>
16378
16379 * window.c (Fwindow_width, Fset_window_start)
16380 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
16381 (Fdelete_windows_on, Freplace_buffer_in_windows):
16382 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
16383 (Fwindow_dedicated_p): Make window argument optional.
16384 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
16385 (Fset_window_buffer): Respect any non-nil dedicated value for
16386 window. Rename "buffer" argument to "buffer_or_name".
16387
163882008-10-18 Ulrich Mueller <ulm@gentoo.org>
16389
16390 * m/sh3.h: New file, machine description for SuperH.
16391
163922008-10-17 Martin Rudalics <rudalics@gmx.at>
16393
16394 * window.c (Fsplit_window): Rename arg horflag to horizontal.
16395
163962008-10-17 Kenichi Handa <handa@m17n.org>
16397
16398 * ftfont.c (ftfont_otf_features): Fix indexing
16399 gsub_gpos->FeatureList.Feature. Check the validity of indices.
16400
164012008-10-16 Magnus Henoch <mange@freemail.hu>
16402
16403 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
16404 (Fdbus_call_method_asynchronously): Ditto.
16405 This change makes C-h f display the argument list.
16406
164072008-10-16 Chong Yidong <cyd@stupidchicken.com>
16408
16409 * fileio.c (Fexpand_file_name): Doc fix.
16410
16411 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
16412 of :foreground and :background equivalent to unspecified (20.x
16413 compatibility).
16414
164152008-10-15 Eli Zaretskii <eliz@gnu.org>
16416
16417 * buffer.c (syms_of_buffer): Doc fix.
16418
164192008-10-14 Kenichi Handa <handa@m17n.org>
16420
16421 * font.c (font_clear_prop): When clearing font width, clear the
16422 average width field too.
16423
164242008-10-12 Andreas Schwab <schwab@suse.de>
16425
16426 * ftfont.c (ftfont_shape_by_flt): Make static.
16427 * ftfont.h (ftfont_shape_by_flt): Don't declare.
16428
16429 * font.c: Don't include <m17n-flt.h>.
16430
164312008-10-10 Eli Zaretskii <eliz@gnu.org>
16432
16433 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
16434
164352008-10-09 Eli Zaretskii <eliz@gnu.org>
16436
16437 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
16438 away code.
16439
164402008-10-09 Chong Yidong <cyd@stupidchicken.com>
16441
16442 * dispnew.c (update_text_area): Avoid looping due to large glyph
16443 overhangs (bug#1070).
16444
164452008-10-09 Kenichi Handa <handa@m17n.org>
16446
16447 * fontset.c (face_for_char): If face->fontset is negative, just
16448 return ascii_face.
16449
f5385255
SM
16450 * font.c (font_delete_unmatched): Fix previous change.
16451 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
16452
164532008-10-09 Martin Rudalics <rudalics@gmx.at>
16454
16455 * frame.c (Fraise_frame): On text-only terminals select frame in
16456 order to make it visible. (Bug#1061)
16457
164582008-10-08 Chong Yidong <cyd@stupidchicken.com>
16459
16460 * fontset.c (fontset_find_font): Check frame validity.
16461
164622008-10-07 Chong Yidong <cyd@stupidchicken.com>
16463
a9b555d3 16464 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
16465 (xg_display_close): Allow Emacs to close all displays (bug#985).
16466
164672008-10-06 Andreas Schwab <schwab@suse.de>
16468
f5385255 16469 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
16470
164712008-10-06 Chong Yidong <cyd@stupidchicken.com>
16472
f5385255 16473 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 16474
a9b555d3 16475 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
16476
16477 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
16478 during initialization.
16479
164802008-10-04 Eli Zaretskii <eliz@gnu.org>
16481
16482 * xdisp.c (redisplay_internal): If frame switched, redisplay the
16483 whole thing on MSDOS frames as well as on a TTY.
16484
16485 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
16486 well as for TTY.
16487 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
16488 well as on a TTY.
16489
16490 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
16491 as well as for TTY.
16492
16493 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
16494
16495 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
16496 MSDOS frames as well.
16497
164982008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16499
16500 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
16501 correct arguments.
b71ac3dd 16502 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
16503
165042008-10-03 Glenn Morris <rgm@gnu.org>
16505
16506 * emacs.c (USAGE1): Add --daemon.
16507
165082008-10-02 Eli Zaretskii <eliz@gnu.org>
16509
16510 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
16511 100, so it's in percents as advertised.
16512
165132008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
16514
16515 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
16516 (ns_output.current_cursor, ns_output.desired_cursor)
16517 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
16518 (FRAME_NEW_CURSOR_COLOR): Remove.
16519
16520 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 16521 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
16522 enumeration (HOLLOW_BOX_CURSOR, etc.).
16523
16524 * nsterm.m (ns_frame_rehighlight): Remove commented code.
16525 (draw_window_cursor): Simplify code.
f5385255
SM
16526 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
16527 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 16528 updates manually.
a9b555d3
JB
16529 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
16530 Use core Emacs cursor types.
aac0c6e3 16531
b8ff72fa 16532 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
16533
165342008-10-02 Martin Rudalics <rudalics@gmx.at>
16535
16536 * process.c (Faccept_process_output): Fix doc-string.
16537
165382008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
16539
16540 * gmalloc.c (__sbrk): Also define for uClibc.
16541
16542 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
16543 for uClibc.
16544
165452008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16546
16547 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
16548 styles.
16549 (nsfont_open): Reenable the cache.
16550
165512008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
16552
16553 * font.c (font_matching_entity): Reflect ATTRS in font selection.
16554 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
16555
165562008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
16557
16558 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
16559 a suspended terminal.
16560
165612008-09-30 Michael Albinus <michael.albinus@gmx.de>
16562
16563 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
16564
165652008-09-30 Eli Zaretskii <eliz@gnu.org>
16566
16567 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
16568
165692008-09-30 Chong Yidong <cyd@stupidchicken.com>
16570
16571 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
16572 in a continued line coincides with a line beginning.
16573
165742008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
16575
16576 * nsfont.m (nsfont_trait_distance): Fix bug.
16577 (nsfont_list): Return a list rather than a vector (syncs with Handa
16578 changes of 2008-05-14).
16579 (nsfont_open): Improve logging.
16580
165812008-09-29 Andreas Schwab <schwab@suse.de>
16582
16583 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
16584
165852008-09-28 Martin Rudalics <rudalics@gmx.at>
16586
16587 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
16588 name as char-resolve-modifiers.
16589 Reported by: Markus Triska <markus.triska@gmx.at>
16590
165912008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
16592
16593 * dispnew.c (init_display): Return earlier when running as a daemon.
16594
165952008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
16596
16597 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
16598
165992008-09-27 Eli Zaretskii <eliz@gnu.org>
16600
16601 * composite.c (Fcomposition_get_gstring)
16602 (Fcompose_region_internal, Fcompose_string_internal)
16603 (Ffind_composition_internal): Doc fix.
16604 (syms_of_composite) <compose-chars-after-function>: Doc fix.
16605 (syms_of_composite) <auto-composition-function>: Doc fix.
16606 (syms_of_composite) <composition-function-table>: Doc fix.
16607
166082008-09-25 Chong Yidong <cyd@stupidchicken.com>
16609
16610 * search.c (wordify): New argument for lax word-ends.
16611 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
16612
166132008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
16614
16615 * lisp.h (is_daemon): Declare.
16616 * dispnew.c (init_display): Do not try to initialize the terminal
16617 when running as a daemon.
16618
166192008-09-22 Chong Yidong <cyd@stupidchicken.com>
16620
16621 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
16622 x_display_pixel_height.
16623
166242008-09-22 Martin Rudalics <rudalics@gmx.at>
16625
16626 * undo.c (record_point): Don't call Fundo_boundary for first
16627 change. (Bug#731)
16628
166292008-09-22 Juanma Barranquero <lekktu@gmail.com>
16630
16631 * emacs.c (Fdaemonp): Doc fix.
16632
166332008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
16634
16635 * emacs.c (main): Place #ifdef in the proper place.
16636
166372008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
16638
16639 * emacs.c (standard_args): Add --daemon.
16640 (main): Disconnect from the terminal when --daemon is passed.
16641 (is_daemon): New variable.
16642 (Fdaemonp): New function.
16643 (syms_of_emacs): Defsubr it.
16644
166452008-09-20 Chong Yidong <cyd@stupidchicken.com>
16646
16647 * xdisp.c (get_next_display_element): Handle string display
16648 correctly when checking for the end of a box run.
16649
166502008-09-20 Glenn Morris <rgm@gnu.org>
16651
16652 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
16653 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
16654 (Frename_file): Avoid copying to trash if a rename involves
16655 a delete. (Bug#964).
16656
166572008-09-20 Eli Zaretskii <eliz@gnu.org>
16658
16659 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
16660 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
16661 frames as well as termcap frames.
16662 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
16663 get_named_tty.
16664
166652008-09-19 Eli Zaretskii <eliz@gnu.org>
16666
16667 * process.c (procfs_system_process_attributes): Fix cmdline in
16668 case /proc/PID/cmdline is empty.
16669
16670 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
16671 x_display_pixel_height.
16672
166732008-09-19 Juanma Barranquero <lekktu@gmail.com>
16674
16675 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
16676
16677 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
16678 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
16679
166802008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
16681
16682 * dispextern.h (struct it): Move line_wrap away from the middle of
16683 bitfields. Move voffset in struct iterator_stack_entry after the
16684 bitfields. Move tab_width near after another short.
16685
166862008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
16687
16688 * frame.h (struct frame): Move alpha from the middle of bitfields.
16689
16690 * window.h (struct window): Move frozen_window_start_p after the
16691 rest of the bitfields to reduce padding.
16692
166932008-09-18 Chong Yidong <cyd@stupidchicken.com>
16694
16695 * xterm.h (x_display_info): Remove `height' and `width' members.
16696
16697 * nsterm.h (ns_display_info): Remove `height' and `width' members.
16698
16699 * w32term.h (w32_display_info): Remove `height', `width',
16700 `height_in', and `width_in' members.
16701
b8ff72fa
SM
16702 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16703 New functions.
aac0c6e3
MR
16704 (x_calc_absolute_position): Use them.
16705 (x_term_init): Omit removed `height' and `width' members.
16706
b8ff72fa
SM
16707 * w32term.c (x_display_pixel_height, x_display_pixel_width):
16708 New functions.
aac0c6e3
MR
16709 (w32_read_socket, x_calc_absolute_position): Use them.
16710 (w32_initialize_display_info, w32_term_init): Omit removed members
16711 of w32_display_info.
16712
b8ff72fa
SM
16713 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
16714 New functions.
16715 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 16716
b8ff72fa
SM
16717 * xterm.c (x_display_pixel_height, x_display_pixel_width):
16718 New functions.
aac0c6e3
MR
16719 (x_calc_absolute_position): Use them.
16720 (x_term_init): Omit removed `height' and `width' members.
16721
16722 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
16723 (compute_tip_xy):
16724 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
16725 * xmenu.c (menu_position_func): Use x_display_pixel_height and
16726 x_display_pixel_width.
16727
167282008-09-18 Kenichi Handa <handa@m17n.org>
16729
16730 * composite.c (fill_gstring_header): Don't check FROM and TO here.
16731 (composition_compute_stop_pos): Fix handling of static composition.
16732 (Fcomposition_get_gstring): Check FROM and TO at first.
16733
167342008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
16735
46e722a9 16736 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
16737 mixup (YAILOM).
16738
167392008-09-17 Chong Yidong <cyd@stupidchicken.com>
16740
16741 * indent.c (Fvertical_motion): Use position reported by iterator
16742 instead of PT for determining screen motion (bug#943).
16743
167442008-09-17 Romain Francoise <romain@orebokech.com>
16745
16746 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
16747
167482008-09-17 Kenichi Handa <handa@m17n.org>
16749
16750 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
16751
16752 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
16753 if necessary.
16754
167552008-09-16 Kenichi Handa <handa@m17n.org>
16756
16757 * coding.c (make_conversion_work_buffer): Avoid calling
16758 Fget_buffer_create if it is not necessary.
16759
167602008-09-15 Martin Rudalics <rudalics@gmx.at>
16761
16762 * window.c (Fselect_window): Don't update window_select_count and
16763 use_time when norecord is not nil.
16764
167652008-09-14 Kenichi Handa <handa@m17n.org>
16766
16767 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
16768 specpdl_ptr.
16769
167702008-09-12 Kenichi Handa <handa@m17n.org>
16771
16772 * indent.c (scan_for_column): Don't handle automatic composition
16773 if the current buffer is not associated with a window.
16774
16775 * composite.c (composition_reseat_it): If the current buffer is
16776 not associated with a window, ignore the automatic composition.
16777 (find_automatic_composition): Likewise.
16778
167792008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
16780
16781 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
16782 (Fgpm_mouse_stop): Use it.
16783 * termhooks.h (close_gpm): Declare.
16784 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
16785 connection if Gpm_GetEvent fails.
16786
16787 * window.c (set_window_buffer): Always preserve current-buffer.
16788
167892008-09-12 Glenn Morris <rgm@gnu.org>
16790
16791 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
16792
167932008-09-11 Glenn Morris <rgm@gnu.org>
16794
16795 * charset.c (charset-map-path): Doc fix.
16796
167972008-09-10 Kenichi Handa <handa@m17n.org>
16798
16799 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
16800
16801 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
16802 compose a grapheme cluster with the preceding base glyph.
16803
16804 * composite.c (composition_compute_stop_pos): Fix previous change.
16805 Reset cmp_it->id to -1 at first.
16806
168072008-09-10 Glenn Morris <rgm@gnu.org>
16808
16809 * Makefile.in (character.o, chartab.o): Fix config.h typo.
16810
168112008-09-09 Chong Yidong <cyd@stupidchicken.com>
16812
16813 * keyboard.c (read_key_sequence): Reapply translation maps when
16814 switching keyboards.
16815
168162008-09-09 Kenichi Handa <handa@m17n.org>
16817
16818 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
16819 characters.
16820
16821 * composite.c (FORWARD_CHAR): Fix calculation
16822 of (POSITION).pos_byte.
16823 (composition_compute_stop_pos): Limit the search of composition to
16824 at most 500 characters ahead. If we reach the limit or find a
16825 newline, set cmp_it->ch to -2 and return 0.
16826 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
16827
168282008-09-08 Kenichi Handa <handa@m17n.org>
16829
16830 * indent.c (Fvertical_motion): Be sure to set
16831 it_overshoot_expected if it.cmp_it.id is non-negative.
16832
168332008-09-07 Andreas Schwab <schwab@suse.de>
16834
16835 * callproc.c (Fcall_process): Don't hold references to string data
16836 across garbage collection. Move initialisation of new_argv down
16837 to avoid compiler bug.
16838
168392008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16840
16841 * process.c (Fsystem_process_attributes): Doc fix.
16842
168432008-09-07 Chong Yidong <cyd@stupidchicken.com>
16844
16845 * callproc.c (Fcall_process): Canonicalize current directory name.
16846
16847 * xdisp.c (move_it_to): When moving by vpos, ensure that the
16848 iterator advances to the next line if the current line ends in a
16849 continued tab.
16850
168512008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
16852
16853 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
16854 member to point to cmp_from.
16855
16856 * xdisp.c: Doc fix for references to gidx data member.
16857
168582008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
16859
16860 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
16861
168622008-09-07 Kenichi Handa <handa@m17n.org>
16863
16864 * composite.c (FORWARD_CHAR): Check STOP after
16865 incrementing (POSITION).pos.
16866
168672008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
16868
16869 * process.c (Fsystem_process_attributes): Doc fix.
16870
168712008-09-06 Chong Yidong <cyd@stupidchicken.com>
16872
16873 * keyboard.c (Ftop_level): Doc fix.
16874
168752008-09-06 Eli Zaretskii <eliz@gnu.org>
16876
16877 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
16878 minibuffer, don't let lower part of menu invade the echo area.
16879
16880 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
16881 "char *q" to access menu text and advance through it. Revert the
16882 change that displayed ">" instead of ASCII character 0x10.
16883
168842008-09-05 Eli Zaretskii <eliz@gnu.org>
16885
16886 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
16887 toggle boxes and radio buttons on MS-DOS as well.
16888
168892008-09-05 Kenichi Handa <handa@m17n.org>
16890
16891 * composite.c (autocmp_chars): Check lookback count.
16892 (composition_compute_stop_pos): Set cmp_it->lookback.
16893 (composition_reseat_it): Check lookback count.
16894 (struct position_record): New struct.
16895 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
16896 (find_automatic_composition): New function.
16897 (composition_adjust_point): Use find_automatic_composition.
16898
16899 * dispextern.h (struct composition_it): New member lookback.
16900
169012008-09-02 Chong Yidong <cyd@stupidchicken.com>
16902
16903 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
16904 if moving by a single line.
16905
169062008-09-02 Andreas Schwab <schwab@suse.de>
16907
16908 * xterm.c (x_delete_display): Fix merge error.
16909
16910 * fileio.c (Fexpand_file_name): Remove unused variables.
16911
169122008-09-02 Eli Zaretskii <eliz@gnu.org>
16913
16914 * fileio.c (Fexpand_file_name): Copy argument `name' into local
16915 storage on all platforms, not just on DOS_NT.
16916
169172008-09-02 Jason Rumney <jasonr@gnu.org>
16918
b8ff72fa
SM
16919 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
16920 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
16921
169222008-09-01 Chong Yidong <cyd@stupidchicken.com>
16923
16924 * xfaces.c (Finternal_set_alternative_font_family_alist)
16925 (Finternal_set_alternative_font_registry_alist): Properly copy
16926 entire alist structure.
16927
169282008-09-01 Kenichi Handa <handa@m17n.org>
16929
d66c0241 16930 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 16931 representative chars of the script is a vector.
d66c0241
JB
16932 (ftfont_list): Handle the case where the representative chars of
16933 the script is a vector.
aac0c6e3
MR
16934
16935 * character.c (syms_of_character): Docstring of
16936 script-representative-chars fixed.
16937
169382008-08-31 Eli Zaretskii <eliz@gnu.org>
16939
16940 * msdos.c (BUILD_CHAR_GLYPH): New macro.
16941 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
16942 the menu. Allocate larger buffer for `text', to account for
16943 possible ^C characters.
16944
169452008-08-31 Martin Rudalics <rudalics@gmx.at>
16946
16947 * xdisp.c (prepare_menu_bars): Don't call
16948 Vwindow_size_change_functions with arg Qt.
16949
169502008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
16951
16952 * font.h (font_range):
16953 * fileio.c (report_file_error):
46e722a9
SM
16954 * composite.c (composition_update_it): Yet another int/Lisp_Object
16955 mixup (YAILOM).
aac0c6e3
MR
16956
169572008-08-30 Glenn Morris <rgm@gnu.org>
16958
16959 * data.c (Fmake_variable_frame_local): Doc fix.
16960
16961 * frame.c (Fmodify_frame_parameters): Doc fix.
16962
169632008-08-30 Eli Zaretskii <eliz@gnu.org>
16964
16965 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
16966 needed by GetTokenInformation.
16967 (w32_system_process_attributes): Check return values of all system
16968 APIs.
16969
16970 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
16971 only when the state changes.
16972 (IT_update_begin, IT_update_end): Add termscript trace.
16973
16974 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
16975 clipboard is unavailable. Set dst to NULL if it doesn't point to
16976 malloc'ed data.
16977 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
16978 passing random values to xfree.
16979
16980 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 16981 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
16982
169832008-08-29 Jason Rumney <jasonr@gnu.org>
16984
16985 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
16986
169872008-08-29 Eli Zaretskii <eliz@gnu.org>
16988
16989 * composite.c (fill_gstring_body): Avoid compiler warnings.
16990
16991 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
16992 LGLYPH_SET_CODE to avoid compiler warnings.
16993
2ae37cf0 16994 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
16995
16996 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
16997
16998 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
16999 LGLYPH_SET_CODE.
17000
170012008-08-29 Kenichi Handa <handa@m17n.org>
17002
17003 * fileio.c (report_file_error): Don't downcase the first character
17004 of errstring if it is still unibyte.
17005
170062008-08-29 Kenichi Handa <handa@m17n.org>
17007
17008 These changes are to re-implement the automatic composition so
17009 that it doesn't use text properties.
17010
17011 * Makefile.in (ftfont.o): Depend on composite.h.
17012 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
17013
17014 * character.h (Vunicode_category_table): Extern it.
17015
17016 * character.c (Vunicode_category_table): New variable.
17017 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
17018
17019 * chartab.c (optimize_sub_char_table): Perform more greedy
17020 optimization.
17021
b8ff72fa
SM
17022 * composite.h (enum composition_method):
17023 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
17024 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
17025 (Vcomposition_function_table): Extern it.
17026 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
17027 (composition_gstring_put_cache, composition_gstring_from_id)
17028 (composition_gstring_p, composition_gstring_width)
17029 (composition_compute_stop_pos, composition_reseat_it)
17030 (composition_update_it, composition_adjust_point): Extern them.
17031 (Fcomposition_get_gstring): EXFUN it.
17032
d66c0241 17033 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
17034 (Vcomposition_function_table)
17035 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
17036 (gstring_hash_table, gstring_work, gstring_work_headers):
17037 New variables.
aac0c6e3
MR
17038 (gstring_lookup_cache, composition_gstring_put_cache)
17039 (composition_gstring_from_id, composition_gstring_p)
17040 (composition_gstring_width, fill_gstring_header)
17041 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
17042 (composition_reseat_it, composition_update_it)
b8ff72fa 17043 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
17044 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
17045 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 17046 Defsubr composition_get_gstring.
aac0c6e3
MR
17047
17048 * dispextern.h (struct glyph): New union u.cmp. Delete the member
17049 cmp_id.
17050 (struct glyph_string): Delete the member gidx. New members
17051 cmp_id, cmp_from, and cmp_to.
17052 (enum it_method): Delete GET_FROM_COMPOSITION.
17053 (struct composition_it): New struct.
17054 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
17055 Delete c, len, cmp_id, cmp_len in u.comp.
17056
17057 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 17058 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 17059 (enum lglyph_indices): Likewise.
b8ff72fa 17060 (font_range): Adjust extern.
aac0c6e3
MR
17061 (font_fill_lglyph_metrics): Extern it.
17062
17063 * font.c (QCf): New variable.
17064 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17065 (font_prepare_composition): Delete this function.
17066 (font_range): Type and arguments changed.
17067 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
17068 (font_fill_lglyph_metrics): New function.
b8ff72fa 17069 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 17070 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
17071 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
17072 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
17073
17074 * fontset.h (font_for_char): Extern it.
17075
17076 * fontset.c (font_for_char): New function.
17077
17078 * ftfont.c: Include composite.h.
17079 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 17080 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
17081
17082 * indent.c: Include composite.h and dispextern.h.
17083 (check_composition): Delete this function.
17084 (scan_for_column): Handle composition by
17085 composition_compute_stop_pos, composition_reseat_it, and
17086 composition_update_it.
17087 (compute_motion): Likewise.
17088 (Fvertical_motion): Fix checking of composition.
17089
17090 * keyboard.c (adjust_point_for_property): Check composition by
17091 composition_adjust_point.
17092
b8ff72fa 17093 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
17094 struct glyph_string.
17095
b8ff72fa
SM
17096 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
17097 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
17098 struct glyph.
17099 (produce_composite_glyph): Likewise.
17100
b8ff72fa
SM
17101 * w32term.c (x_draw_composite_glyph_string_foreground):
17102 Adjust for the change of struct glyph_string.
aac0c6e3
MR
17103 (x_draw_glyph_string): Likewise.
17104
17105 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
17106 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
17107
17108 * xdisp.c: Include font.h.
17109 (it_props): Delete the entry for Qauto_composed.
17110 (init_iterator): Initialize it->cmp_it.id to -1.
17111 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 17112 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
17113 (handle_auto_composed_prop): Delete it.
17114 (handle_composition_prop): Handle only static composition.
17115 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
17116 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 17117 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
17118 (pop_it): Likewise.
17119 (get_next_element): Delete next_element_from_composition.
17120 (CHAR_COMPOSED_P): New macro.
17121 (get_next_display_element): For automatic composition, get a face
17122 from the font in the glyph-string.
17123 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 17124 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
17125 (next_element_from_string): Check if the character at the current
17126 position is composed by CHAR_COMPOSED_P.
17127 (next_element_from_buffer): Likewise.
d66c0241
JB
17128 (next_element_from_composition): Adjust for the change of struct it.
17129 Update it->cmp_it.
b8ff72fa
SM
17130 (dump_glyph): Adjust for the change of struct glyph.
17131 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
17132 it and struct glyph. Don't handle automatic composition here.
17133 (fill_gstring_glyph_string): New function.
17134 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 17135 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
17136 (BUILD_GSTRING_GLYPH_STRING): New macro.
17137 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
17138 automatic composition.
b8ff72fa 17139 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 17140 struct glyph.
b8ff72fa 17141 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 17142
b8ff72fa 17143 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
17144 the change of struct glyph_string.
17145 (x_draw_glyph_string): Likewise.
17146
171472008-08-29 Glenn Morris <rgm@gnu.org>
17148
17149 * buffer.c (word-wrap): Doc fix.
17150 * xdisp.c (truncate-partial-width-windows): Doc fix.
17151 Increase default to 50.
17152
171532008-08-29 Chong Yidong <cyd@stupidchicken.com>
17154
17155 * xdisp.c (update_tool_bar_unwind): New function.
17156 (update_tool_bar): Temporarily set selected frame before building
17157 tool-bar items.
17158
171592008-08-28 Michael Albinus <michael.albinus@gmx.de>
17160
17161 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
17162 snprintf, respectively.
17163 (xd_append_arg): Convert strings with Fstring_make_unibyte.
17164
171652008-08-28 Chong Yidong <cyd@stupidchicken.com>
17166
17167 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
17168 LDFLAGS to GNUstep CC invocation.
17169
171702008-08-27 Chong Yidong <cyd@stupidchicken.com>
17171
17172 * indent.c (Fvertical_motion): Revert last change. Handle the
17173 general case where we are moving forward, and PT spans multiple
17174 screen lines.
17175
17176 * eval.c (find_handler_clause): Temporarily increase
17177 max-lisp-eval-depth while printing the backtrace buffer, to
17178 guarantee that help-mode code can run.
17179
171802008-08-27 Eli Zaretskii <eliz@gnu.org>
17181
17182 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
17183 colors under -rv.
17184 (IT_set_frame_parameters): Don't swap foreground and background
17185 colors if `(reverse . t)' is present in the frame properties.
17186 (internal_terminal_init): Call init_frame_faces only for the
17187 initial frame.
17188
171892008-08-27 Andreas Schwab <schwab@suse.de>
17190
17191 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
17192
171932008-08-27 Andreas Schwab <schwab@suse.de>
17194
17195 * search.c (search_buffer): Set char_base to zero only at the end.
17196
171972008-08-27 Kenichi Handa <handa@m17n.org>
17198
b8ff72fa 17199 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
17200
172012008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
17202
17203 * xterm.c (x_term_init): Temporarily hide the partially
17204 initialized terminal while calling vendor-specific-keysyms.
17205
172062008-08-26 Eli Zaretskii <eliz@gnu.org>
17207
17208 * msdos.c (internal_terminal_init): Most initializations done only
17209 once, especially initial_screen_colors[] and termscript open.
17210
172112008-08-26 Chong Yidong <cyd@stupidchicken.com>
17212
17213 * eval.c (Fcondition_case): Doc fix.
17214
17215 * widgetprv.h (EmacsFramePart): Change font member to the new font
17216 struct.
17217
17218 * widget.c: Include character.h and font.h for XSETFONT.
17219 (setup_frame_gcs): Compute X font id from font struct, just once.
17220
172212008-08-26 Eli Zaretskii <eliz@gnu.org>
17222
17223 * term.c (get_named_tty): Fix last change.
17224
172252008-08-26 Chong Yidong <cyd@stupidchicken.com>
17226
17227 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 17228 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
17229
172302008-08-25 Eli Zaretskii <eliz@gnu.org>
17231
17232 * frame.c (do_switch_frame): Mark previously displayed frame as
17233 obscured for FRAME_MSDOS_P frames as well.
17234
172352008-08-24 Eli Zaretskii <eliz@gnu.org>
17236
17237 * frame.c (make_terminal_frame): Initialize f->terminal,
17238 f->terminal->reference_count, and scroll bars on MS-DOS as well.
17239 Set the top frame to newly created frame.
17240 (Fmake_terminal_frame): Reuse the_only_display_info.
17241
17242 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
17243 estimating available memory.
17244
b97439ce 172452008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
17246
17247 * nsterm.m (ns_draw_window_cursor): Don't call
17248 NSDisableScreenUpdates and NSEnableScreenUpdates on
17249 non-NS_IMPL_COCOA systems.
17250
172512008-08-23 Andreas Schwab <schwab@suse.de>
17252
17253 * process.c (procfs_system_process_attributes): Fix use of
17254 uninitialized variables.
17255
172562008-08-23 Eli Zaretskii <eliz@gnu.org>
17257
17258 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
17259
17260 * dispnew.c (init_display): Remove MS-DOS specific conditions for
17261 calling tty-set-up-initial-frame-faces.
17262
b8ff72fa
SM
17263 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
17264 Allow MSDOS frames along with X frames.
aac0c6e3
MR
17265
17266 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
17267 addition to output_termcap.
17268
17269 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
17270
17271 * termchar.h (FRAME_TTY): Support output_msdos_raw.
17272 (struct tty_display_info) [MSDOS]: Add fields related to mouse
17273 highlight.
17274
17275 * process.c [!subprocesses]: Define QCname.
17276 (syms_of_process): Intern and staticpro it.
17277
17278 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
17279 Adjust for changes in encoding/decoding routines.
17280 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
17281 encode_coding and decode_coding.
17282
b8ff72fa 17283 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
17284
17285 * dosfns.c: Include frame.h before termhooks.h.
17286 (dos_cleanup): Use CURTTY ()->termscript instead of a global
17287 variable termscript.
17288
17289 * s/msdos.h (USER_FULL_NAME): Define.
17290 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
17291
17292 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
17293 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
17294 pw->pw_gecos.
17295
17296 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
17297 SELECTED_FRAME as additional (1st) argument.
17298 (tty_read_avail_input): Handle output_msdos_raw in
17299 addition to output_termcap.
17300
17301 * msdos.c: Include frame.h before termhooks.h.
17302 (mouse_on, mouse_off, mouse_moveto, mouse_init)
17303 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
17304 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
17305 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
17306 (IT_set_terminal_modes, IT_reset_terminal_modes)
17307 (IT_set_frame_parameters): Use tty->termscript instead of a global
17308 variable termscript.
17309 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
17310 global variable terminal_coding. Don't refer to
17311 Vnonascii_translation_table.
17312 (internal_terminal_init): Set Vwindow_system in current_kboard.
17313 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
17314 Announce date and time of session start, if termscript is open.
17315 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
17316 term.c:init_tty). Open termscript only of not already open.
17317 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
17318 here instead of dos_ttraw. Don't initialize display if this is an
17319 initial tty. Don't set FRAME_FONT.
17320 (Vwindow_system_version): Bump to 23.
17321 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
17322 is available, set up mouse_position_hook.
17323 (dos_ttraw, IT_set_terminal_modes): If called with initial
17324 terminal, do nothing.
17325 (IT_set_frame_parameters): Handle the Qtty_type frame
17326 parameter by calling internal_terminal_init.
17327 (dos_set_window_size, show_mouse_face)
17328 (clear_mouse_face, IT_note_mode_line_highlight)
17329 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
17330 (dos_rawgetc): Use tty_display_info instead of x_display_info.
17331 (initialize_msdos_display): New function.
17332 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
17333 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
17334 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
17335 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 17336 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
17337 (request_sigio, unrequest_sigio): Don't define, now defined on
17338 sysdep.c.
17339 (IT_write_glyphs): Rewrite to use encode_terminal_code.
17340
17341 * term.c [MSDOS]: Include msdos.h.
17342 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
17343 conditional to DOS_NT. Allow only one call to this function in a
17344 session. Don't allocate a new struct tty_display_info; instead,
17345 reuse the_only_display_info. Call get_tty_size to get screen
17346 dimensions. Call init_baud_rate to set bad_rate.
17347 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
17348 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 17349 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
17350 (get_tty_terminal, get_named_tty, Ftty_type)
17351 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
17352 output_termcap.
b8ff72fa
SM
17353 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
17354 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 17355 only when subprocesses are supported.
aac0c6e3
MR
17356
17357 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
17358 f->output_data.x.
17359 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
17360 terminal devices.
17361
5582fbc7 17362 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
17363 x_output.
17364 (FRAME_FONT): Use output_data.tty.
17365 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
17366 (struct x_display_info): Rename from display_info. Update all users in
17367 msdos.c.
aac0c6e3 17368 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 17369 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
17370 (dos_ttraw): Update prototype.
17371
17372 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
17373 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
17374
173752008-08-23 Jason Rumney <jasonr@gnu.org>
17376
17377 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
17378 (fn_TIFFSetDirectory): New library function used.
17379 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
17380 (tiff_load): Use :index to select among multiple images. Set count
17381 property when multiple images exist.
17382 (gif_format): Use :index, not :image.
17383
173842008-08-23 Chong Yidong <cyd@stupidchicken.com>
17385
17386 * xdisp.c (try_scrolling): Check INT_MAX instead of
17387 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
17388 to obtain INT_MAX.
17389
173902008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
17391
17392 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
17393
173942008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
17395
17396 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
17397 GNUstep library location.
17398
173992008-08-21 Chong Yidong <cyd@stupidchicken.com>
17400
17401 * xfaces.c (x_update_menu_appearance): Check validity of menu font
17402 before using it.
17403
17404 * puresize.h (BASE_PURESIZE): Increase to 1250000.
17405
174062008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
17407
17408 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
17409 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
17410 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
17411 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
17412 (EmacsApp-cursor_blink_handler): Remove declaration.
17413 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
17414 match 01 Feb 2008 changes in xterm.c.
17415 (ns_read_socket): Add cast to avoid warning.
17416 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
17417 GNUstep.
17418
174192008-08-20 Chong Yidong <cyd@stupidchicken.com>
17420
17421 * xselect.c (x_get_foreign_selection): Return nil if desired
17422 selection could not be obtained, instead of signalling an error.
17423
174242008-08-20 David Reitter <david.reitter@gmail.com>
17425
17426 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
17427 * nsterm.m: Remove ns-specific code for cursor blinking.
17428 (ns_draw_window_cursor): Clear cursor properly rather than
17429 redrawing the area. Respect width of bar cursors.
17430 These changes enable the use of generic blink-cursor-mode and
17431 generic cursor types in NS and support smooth cursor movements (do
17432 not blink off after command).
17433 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
17434 Nextstep, too.
17435
174362008-08-19 Kenichi Handa <handa@m17n.org>
17437
17438 * font.c (Vfont_log_deferred): New variable.
17439 (font_add_log): Check Vfont_log_deferred.
17440 (font_deferred_log): New function.
17441
17442 * font.h (font_deferred_log): Extern it.
17443
17444 * fontset.c (reorder_font_vector): Use encoding charset of fonts
17445 for sorting.
17446 (face_for_char): Use deferred log.
17447
174482008-08-18 Kenichi Handa <handa@m17n.org>
17449
17450 * fontset.c (face_for_char): Add font log.
17451
17452 * font.c (font_add_log): Add the font properties :script, :lang,
17453 and :otf in the log.
17454
174552008-08-17 Chong Yidong <cyd@stupidchicken.com>
17456
17457 * xdisp.c: Remove dead code.
17458 (handle_invisible_prop, next_overlay_string): Defer call to
17459 setup_for_ellipsis.
17460 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
17461
174622008-08-15 Chong Yidong <cyd@stupidchicken.com>
17463
17464 * xfaces.c (lookup_derived_face): Properly handle possible zero
17465 return value of get_lface_attributes.
17466 (merge_faces): Don't tell lookup_derived_face to signal an error
17467 if face is not found.
17468
17469 * dired.c (Fdirectory_files): Doc fix.
17470
17471 * process.c (make_process): Initialize kill_without_query struct
17472 member.
17473
174742008-08-15 Eli Zaretskii <eliz@gnu.org>
17475
17476 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
17477 Alternative calculation of totphys for Visual Studio 6.
17478
17479 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
17480
17481 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
17482 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
17483 All users changed.
17484 (stat): Only root directory passed to GetDriveType. Allow RAM
17485 disk as well as local fixed disk when w32-get-true-file-attributes
17486 is set to `local'.
17487 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
17488 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
17489 (w32_cached_id, w32_add_to_cache): New functions.
17490 (get_name_and_id): Look account names in the cache before calling
17491 lookup_account_sid.
17492 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
17493 New initialization flags.
17494 (globals_of_w32): Initialize them to zero.
17495 (w32_system_process_attributes): Use w32_cached_id and
17496 w32_add_to_cache.
17497
174982008-08-14 Lawrence Mitchell <wence@gmx.li>
17499
17500 * lread.c (Fread_char, Fread_char_exclusive): If no character
17501 event is read before timeout is reached, return nil, rather than
17502 converting to a number.
17503
175042008-08-14 Chong Yidong <cyd@stupidchicken.com>
17505
17506 * fns.c (use_dialog_box): Doc fix.
17507
17508 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
17509 on OS X.
17510
175112008-08-13 Chong Yidong <cyd@stupidchicken.com>
17512
17513 * frame.c (Qns_parse_geometry): New var.
17514 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
17515
175162008-08-11 Chong Yidong <cyd@stupidchicken.com>
17517
17518 * xdisp.c (x_produce_glyphs): Handle the case when font has no
17519 space character in calculating tabs.
17520
175212008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
17522
17523 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
17524
175252008-08-10 Glenn Morris <rgm@gnu.org>
17526
17527 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
17528 silence gcc "limited range of data type" warnings in some
17529 make_fixnum_or_float calls.
17530
175312008-08-09 Eli Zaretskii <eliz@gnu.org>
17532
17533 * w32.c (w32_system_process_attributes): If the process does not
17534 exist, return nil.
17535
17536 * w32.c: Include thelp32.h, psapi.h and coding.h.
17537 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
17538 declarations.
17539 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
17540 (Process32Next_Proc): New typedefs.
17541 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
17542 (g_b_init_process32_next, g_b_init_open_thread_token)
17543 (g_b_init_impersonate_self, g_b_init_revert_to_self)
17544 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
17545 (g_b_init_get_process_working_set_size)
17546 (g_b_init_global_memory_status_ex): New static variables.
17547 (globals_of_w32): Initialize them.
17548 (create_toolhelp32_snapshot, process32_first, process32_next)
17549 (open_thread_token, impersonate_self, revert_to_self)
17550 (get_process_memory_info, get_process_working_set_size)
17551 (global_memory_status, global_memory_status_ex): New wrapper
17552 functions.
17553 (w32_list_system_processes, w32_system_process_attributes)
17554 (enable_privilege, restore_privilege, ltime, process_times):
17555 New functions.
17556 (convert_time_raw): New function.
17557 (convert_time): Remove conversion of FILETIME into time in 100
17558 nsec units, call convert_time_raw instead.
17559
17560 * process.h (w32_list_system_processes, w32_system_process_attributes):
17561 Add prototypes.
17562 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
17563 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
17564 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
17565 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
17566
17567 * process.c (Fsystem_process_attributes): Doc fix.
17568
175692008-08-08 Chong Yidong <cyd@stupidchicken.com>
17570
17571 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
17572 a continued multi-char glyph; if so, advance to the actual glyph.
17573
175742008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
17575
17576 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
17577
17578 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
17579 (.m.o): Use it.
17580 * config.in: Regenerate.
17581
175822008-08-07 Chong Yidong <cyd@stupidchicken.com>
17583
17584 * xdisp.c (redisplay_window): Revert last change.
17585 (try_window): Check bottom scroll margin too.
17586
175872008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17588
17589 * config.in: Regenerate.
17590
17591 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
17592 -list-load-path-shadows'.
17593 (nsgui.h): Reduce number of things depending on it.
17594
175952008-08-06 Chong Yidong <cyd@stupidchicken.com>
17596
17597 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
17598 instead of window-end which does the wrong thing at eob.
17599 (try_cursor_movement): Minor optimization.
17600 (redisplay_window): If scroll margin is defined, don't assume
17601 window doesn't need scrolling.
17602
176032008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
17604
17605 * config.in: Regenerate.
17606
17607 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
17608 (mostlyclean): Don't delete *.d under NS.
17609
17610 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
17611
176122008-08-06 Kenichi Handa <handa@m17n.org>
17613
17614 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
17615
176162008-08-06 Andreas Schwab <schwab@suse.de>
17617
17618 * config.in: Regenerate.
17619
176202008-08-05 Chong Yidong <cyd@stupidchicken.com>
17621
17622 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
17623 forcing a window start.
17624
17625 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
17626 (auto_save_1): Update modtime when auto-save-list-file-name is on.
17627
176282008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17629
17630 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
17631 argument.
17632
176332008-08-05 Juanma Barranquero <lekktu@gmail.com>
17634
17635 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
17636 <scroll-down-aggressively, before-change-functions>:
17637 <after-change-functions>: Reflow docstrings.
17638
176392008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
acd0102a 17640 Ken Raeburn <raeburn@gnu.org>
aac0c6e3
MR
17641
17642 Dock menu customization, based on a patch by Ken Raeburn, plus some
17643 other fixes.
17644 * nsmenu.m (dockMenu): New variable.
17645 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
17646
17647 * nsterm.h (dockMenu): Declare.
17648
17649 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
17650 (ns_term_init): Initialize dockMenu.
17651 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
17652 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
17653 left.
17654
17655 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
17656
176572008-08-04 Chong Yidong <cyd@stupidchicken.com>
17658
17659 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
17660
17661 * config.in: Regenerate.
17662
176632008-08-04 Seiji Zenitani <zenitani@mac.com>
17664
17665 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
17666
176672008-08-04 Chong Yidong <cyd@stupidchicken.com>
17668
17669 * nsterm.h (find_and_call_menu_selection): Fix prototype.
17670
176712008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
17672
17673 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
17674
17675 * keyboard.h: Comment an #endif.
17676
17677 * lisp.h (have_menus_p): Adjust comment.
17678
17679 * menu.c (find_and_return_menu_selection): Fix comparison with
17680 client_data.
17681
17682 * nsmenu.m (popup_activated_flag): New variable.
17683 (popup_activated): New function.
17684 (menu-or-popup-active-p): New exported lisp definition.
17685 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
17686 when popup done.
17687 (ns_popup_dialog): Set popup_activated_flag.
17688
17689 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
17690 version for GNUstep (handled by conditional typedef in nsterm.m).
17691 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
17692 in rgb.txt).
17693
17694 * process.c (init_process): Use DARWIN_OS, not DARWIN.
17695
17696 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
17697
17698 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
17699
17700 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
17701 shortcircuit if popup_activated like GTK and X toolkit.
17702
17703 * m/inter386.h: Change DARWIN to DARWIN_OS.
17704
17705 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
17706 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
bba3e508
SM
17707 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood.
17708 Expand comment on NO_SOCK_SIGIO.
aac0c6e3
MR
17709
177102008-08-03 Chong Yidong <cyd@stupidchicken.com>
17711
17712 * nsterm.m (windowDidResize): Remove stopModal call.
17713
177142008-08-03 Andreas Schwab <schwab@suse.de>
17715
17716 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
17717 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
17718
177192008-08-02 Chong Yidong <cyd@stupidchicken.com>
17720
17721 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
17722 Don't use uninitialized pointer variable when using getrlimit.
17723
177242008-08-02 Jason Rumney <jasonr@gnu.org>
17725
17726 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
17727
177282008-08-02 Eli Zaretskii <eliz@gnu.org>
17729
17730 * alloc.c (NSTATICS): Bump to 0x640.
17731
17732 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
17733
17734 * lisp.h: Add prototype for directory_files_internal.
17735
17736 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
17737 New functions.
17738 (syms_of_process): Defsubr them. Add initializations for various
17739 Q* symbols used in procfs_system_process_attributes.
17740 (procfs_list_system_processes, procfs_system_process_attributes)
17741 [HAVE_PROCFS]: New functions.
17742 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
17743 (procfs_get_total_memory): New functions.
17744
177452008-08-01 Juanma Barranquero <lekktu@gmail.com>
17746
17747 * xfaces.c (Fx_load_color_file): Fix previous change;
17748 it is #ifdef WINDOWSNT, not WINDOWS_NT.
17749
177502008-08-01 Michael Albinus <michael.albinus@gmx.de>
17751
17752 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
17753
177542008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17755
17756 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
17757
177582008-08-01 Chong Yidong <cyd@stupidchicken.com>
17759
17760 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
17761
17762 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
17763 define NSApplicationDelegateReplySuccess.
17764 (EmacsView -converstationIdentifier): Use long instead of
17765 NSInteger for GNUstep, since it doesn't have NSInteger.
17766
17767 * xmenu.c: Revert last change.
17768
17769 * keyboard.h: Fix last change.
17770
177712008-08-01 Juanma Barranquero <lekktu@gmail.com>
17772
17773 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
17774 on Windows.
17775
177762008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17777
17778 Warning clearing and clean-up in NS port.
17779 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
17780 Add prototypes.
17781 * nsgui.h (FACE_DEFAULT): Remove, unused.
17782 (XGCValues): Change colors to unsigned long.
17783 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
17784 nsterm.m.
17785 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
17786 (ns_list_fonts): Remove, unused.
17787 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
17788 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
17789 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
17790 (nsfont_draw): Compare face colors to 0, not nil.
17791 * nsmenu.m (struct widget_value): Drop unneeded declaration.
17792 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
17793 (-addSubmenuWithTitle:): Use NSMenuItem class.
17794 (ns_popup_menu): Use NO, not NULL, for enabled setting.
17795 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
17796 (ns_clip_to_row): Make gc arg a BOOL.
17797 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
17798 ns_clip_to_row() call.
17799 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
17800 used). Cast FRAME_FONT assignments.
17801 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
17802 (ns_string_to_lispmod): Change arg to const char.
17803 (ns_term_init): Use NSMenuItem class.
17804 (EmacsApp -openFile:): Move to different section of file.
17805 (EmacsApp -application:openFiles:): Don't return a value, call
17806 -replyToOpenOrPrint:.
17807 (EmacsView -keyDown:): Fix up cast.
17808 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
17809 (EmacsView -menuDown:): Cast tag in call to
17810 find_and_call_menu_selection().
17811 (ns_list_fonts): Remove, unused.
17812 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
17813 (ns_fontname_to_xlfd): Make static.
17814 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
17815 Remove prototypes (now in keyboard.h).
17816 (next_menubar_widget_id): Remove, unused.
17817 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
17818 Remove prototypes (now in keyboard.h).
17819 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
17820
178212008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
17822
17823 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
17824 (floatfns.o): Depend on syssignal.h.
17825 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
17826
17827 * systty.h: Fix previous change that removed BSD_TERMIOS.
17828 Add comments to #ifdefs.
17829
178302008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
17831
17832 * w32fns.c (w32-load-color-file): Remove.
17833 (x-open-connection): Use renamed Fx_load_color_file.
17834 * xfaces.c (x-load-color-file): Add.
17835 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
17836 Emacs.clr.
17837 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
17838
178392008-07-31 Michael Albinus <michael.albinus@gmx.de>
17840
17841 * dbusbind.c (Fdbus_call_method_asynchronously)
17842 (Fdbus_method_error_internal): New defuns.
17843 (xd_read_message): Handle also reply messages.
17844 (Vdbus_registered_functions_table): Extend docstring.
17845
178462008-07-31 Juanma Barranquero <lekktu@gmail.com>
17847
17848 * keyboard.c (gobble_input): Fix previous change.
17849
178502008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17851
17852 * bitmaps/README:
17853 * xfns.c:
17854 * termcap.c:
17855 * term.c:
17856 * syswait.h:
17857 * systty.h:
17858 * systime.h:
17859 * syssignal.h:
17860 * sysdep.c:
17861 * process.h:
17862 * process.c:
17863 * print.c:
17864 * ndir.h:
17865 * lread.c:
17866 * keyboard.c:
17867 * getpagesize.h:
17868 * floatfns.c:
17869 * fileio.c:
17870 * emacs.c:
17871 * doc.c:
17872 * dispnew.c:
17873 * dired.c:
17874 * data.c:
17875 * callproc.c:
17876 * buffer.c:
17877 * README:
17878 * Makefile.in:
17879 * s/template.h:
17880 * s/msdos.h:
17881 * m/vax.h: Remove VMS support.
17882 * s/vms.h:
17883 * vlimit.h:
17884 * uaf.h:
17885 * temacs.opt:
17886 * param.h:
17887 * ioctl.h: Remove file.
17888
178892008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
17890
17891 * s/ms-w32.h (MULTI_KBOARD): Remove.
17892 * xterm.c:
17893 * xselect.c:
17894 * xfns.c:
17895 * window.c:
17896 * w32term.c:
17897 * w32fns.c:
17898 * terminal.c:
17899 * termhooks.h:
17900 * term.c:
17901 * sysdep.c:
17902 * keyboard.h:
17903 * keyboard.c:
17904 * frame.h:
17905 * frame.c:
17906 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
17907 * config.in: Regenerate.
17908
179092008-07-30 Jason Rumney <jasonr@gnu.org>
17910
17911 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
17912
17913 * w32font.c (w32font_encode_char): Leave as unicode if in range.
17914 (w32font_open_internal): Get unicode version of textmetrics.
17915 Don't enable or disable glyph indices here.
17916 (w32font_open): Disable use of glyph indices.
17917
17918 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
17919
179202008-07-30 Chong Yidong <cyd@stupidchicken.com>
17921
17922 * minibuf.c (Vread_buffer_function): Doc fix.
17923
179242008-07-30 John Paul Wallington <jpw@pobox.com>
17925
17926 * minibuf.c (read_buffer_completion_ignore_case): New var.
17927 (Fread_buffer): Use it.
17928
179292008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
17930
17931 * systty.h (sensemode): Remove empty #if. Remove reference to
17932 BSD_TERMIOS, unused.
17933
17934 * sysdep.c: Remove reference to DGUX.
17935 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
17936
17937 * config.in: Regenerate.
17938
179392008-07-30 Jason Rumney <jasonr@gnu.org>
17940
17941 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
17942
179432008-07-29 Jason Rumney <jasonr@gnu.org>
17944
17945 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
17946 is populated.
17947 (uniscribe_encode_char): Always use uniscribe.
17948 Avoid using context if cache is populated.
17949
179502008-07-29 Jan Djärv <jan.h.d@swipnet.se>
17951
17952 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
17953 open menu.
17954
17955 * gtkutil.c (menu_nav_ended): Remove.
17956 (create_menus): Remove signal connect for menu_nav_ended.
17957
179582008-07-28 Chong Yidong <cyd@stupidchicken.com>
17959
17960 * xdisp.c (redisplay_window): Check return value of
17961 compute_window_start_on_continuation_line before forcing a window
17962 start.
17963
179642008-07-28 Jason Rumney <jasonr@gnu.org>
17965
17966 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
17967
17968 * w32term.c (w32_enable_unicode_output, cleartype_active):
17969 Remove obsolete display options.
17970 (x_draw_glyph_string_background): Don't use old cleartype_active
17971 workaround.
17972 (w32_initialize): Remove cleartype_active initialization.
17973 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
17974
179752008-07-28 Andreas Schwab <schwab@suse.de>
17976
17977 * lisp.h (init_weak_hash_tables, syms_of_font)
17978 (xd_read_queued_messages, syms_of_dbusbind): Declare.
17979 (remove_hash_entry): Don't declare.
17980 * eval.c (maybe_call_debugger): Make static and move before use.
17981 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
17982 * xdisp.c: Include "gtkutil.h" if USE_GTK.
17983 * xterm.h (x_set_frame_alpha): Declare.
17984
179852008-07-28 Jan Djärv <jan.h.d@swipnet.se>
17986
17987 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
17988 (create_menus): Connect selection-done to menu_nav_ended.
17989
179902008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
17991
17992 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
17993 Set Vx_resource_name to a fallback. Replace read of 'buffered'
17994 parameter with read of 'alpha' one.
17995 (Qns_frame_parameter): Remove.
5582fbc7 17996 * nsselect.m (selection-coding-system)
aac0c6e3
MR
17997 (next-selection-coding-system, Vselection_coding_system)
17998 (Vnext_selection_coding_system): Drop.
17999
180002008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
18001
18002 * nsfns.m (do-applescript, do_applescript): Rename to
18003 ns-do-applescript, ns_do_applescript, and move within file.
18004
180052008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
18006
18007 Remove support for Mac Carbon.
18008 * mactoolbox.c:
18009 * macterm.h:
18010 * macterm.c:
18011 * macselect.c:
18012 * macmenu.c:
18013 * macgui.h:
18014 * macfns.c:
18015 * mac.c: Remove file.
18016 * s/darwin.h:
18017 * m/intel386.h:
18018 * xfaces.c:
18019 * xdisp.c:
18020 * window.c:
18021 * tparam.c:
18022 * termhooks.h:
18023 * termcap.c:
18024 * term.c:
18025 * syssignal.h:
18026 * sysselect.h:
18027 * sysdep.c:
18028 * process.c:
18029 * lread.c:
18030 * lisp.h:
18031 * keyboard.c:
18032 * image.c:
18033 * fringe.c:
18034 * frame.h:
18035 * frame.c:
18036 * fontset.c:
18037 * font.h:
18038 * font.c:
18039 * fns.c:
18040 * fileio.c:
18041 * emacs.c:
18042 * dispnew.c:
18043 * dispextern.h:
18044 * config.in:
18045 * atimer.c:
2ae37cf0 18046 * Makefile.in: Remove code for Carbon.
aac0c6e3 18047
f0131492 180482008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
18049
18050 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
18051
180522008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18053
18054 * macterm.h (kCGBitmapByteOrder32Host): New define for
18055 non-universal SDKs.
18056
18057 * image.c (mac_create_cg_image_from_image, image_load_image_io)
18058 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18059
18060 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
18061 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
18062
180632008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
18064
18065 * w32inevt.c: Include dispextern.h.
18066
180672008-07-26 Andreas Schwab <schwab@suse.de>
18068
18069 * print.c (print_object): Fix off-by-one in last change.
18070
180712008-07-25 Juanma Barranquero <lekktu@gmail.com>
18072
18073 * term.c (syms_of_term): Don't initialize default_orig_pair,
18074 default_set_foreground and default_set_background on Windows.
18075
180762008-07-25 Jason Rumney <jasonr@gnu.org>
18077
18078 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
18079 ScriptItemize. Clean up return value checking. Remove unused
18080 variables.
18081 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
18082 shaping engine.
18083
18084 * w32font.c (w32font_has_char): Handle the case where we can't
18085 determine the script for a character.
18086
180872008-07-25 Chong Yidong <cyd@stupidchicken.com>
18088
18089 * term.c (syms_of_term): Initialize default_orig_pair,
18090 default_set_foreground, and default_set_background.
18091
18092 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
18093 clash (bug#86).
18094 (getloadavg): Callers changed.
18095
18096 * image.c (svg_load_image): Fix last change.
18097 (svg_load_image): Use rsvg_handle_get_dimensions to check that
18098 image size is valid. Use g_object_unref instead of deprecated
18099 rsvg_handle_free to free rsvg handle.
18100 (x_from_xcolors): Don't initialize pixmap (silence compiler).
18101
181022008-07-25 Jason Rumney <jasonr@gnu.org>
18103
18104 * w32font.c (w32font_encode_char): Encode characters outside BMP as
18105 surrogates before looking up glyph index.
18106 (w32font_text_extents): Encode as surrogates if falling back to
18107 functions that need UTF-16 wide chars.
18108
18109 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
18110 BMP as surrogates before looking up glyph index.
18111
181122008-07-25 Chong Yidong <cyd@stupidchicken.com>
18113
18114 * image.c (svg_load_image): Check for failure in return value of
18115 rsvg_handle_get_pixbuf. Free rsvg handle when done.
18116
181172008-07-25 Jason Rumney <jasonr@gnu.org>
18118
18119 * w32font.c (Fx_select_font): Reverse sense of second arg.
18120
181212008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
18122
18123 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
18124 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
18125
18126 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
18127 (PURESIZE): Use it.
18128
181292008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
18130
18131 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
18132 * m/alpha.h (TEXT_END):
18133 * m/ibmrs6000.h (TEXT_END):
18134 * m/macppc.h (TEXT_END):
18135 * s/darwin.h (TEXT_END):
18136 * s/msdos.h (TEXT_END): Remove, unused.
18137 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
18138 * s/cygwin.h: Remove comment.
18139
18140 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
18141 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
18142 * m/intel386.h (DOT_GLOBAL_START):
18143 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
18144 (USG): Remove, file not used on USG platforms.
18145
18146 * Makefile.in (HAVE_X11): Remove empty #else.
18147
181482008-07-24 Andreas Schwab <schwab@suse.de>
18149
18150 * fileio.c (Finsert_file_contents): Properly adjust undo list
18151 after format conversion.
18152
181532008-07-24 Jan Djärv <jan.h.d@swipnet.se>
18154
18155 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
18156 (menu_nav_ended): Remove.
18157 (create_menus): Remove signal connect for menu_nav_ended.
18158 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
18159 create_menus.
18160 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
18161
181622008-07-23 Jason Rumney <jasonr@gnu.org>
18163
18164 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
18165 with opened font.
18166 (w32font_open): Set font type to gdi.
18167
18168 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
18169
181702008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
18171
18172 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
18173 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
18174 defines it.
18175 * unexec.c (ADDR_CORRECT): Define unconditionally.
18176
18177 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
18178
18179 * unexec.c: Remove code depending on !COFF and USG, the file is
18180 not used for such systems.
18181
18182 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
18183 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
18184 (LD_SWITCH_SYSTEM_1): Remove, update users.
18185
18186 * s/darwin.h (DATA_END):
18187 * m/intel386.h (DATA_END):
18188 * m/ibmrs6000.h (DATA_END):
18189 * m/alpha.h (DATA_END): Remove, unused.
18190
18191 * config.in: Regenerate.
18192 * s/ms-w32.h (subprocesses): Define unconditionally.
18193 * s/template.h (subprocesses): Update comment.
18194 * s/vms.h (subprocesses):
18195 * s/usg5-4.h (subprocesses):
18196 * s/hpux10-20.h (subprocesses):
18197 * s/gnu-linux.h (subprocesses):
18198 * s/cygwin.h (subprocesses):
18199 * s/bsd-common.h (subprocesses):
18200 * s/aix4-2.h (subprocesses):
18201 * s/darwin.h (subprocesses): Do not define, defined by default now.
18202
18203 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
18204 Remove all references.
18205 (temacs): Add GNUstep specific ld flags.
18206
18207 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
18208 similarly to what X does.
18209
182102008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18211
18212 * nsfns.m (x-list-fonts): Remove.
18213 (syms_of_nsfns): Drop the x-list-fonts declaration.
18214 * nsterm.m: Get rid of remaining "//" comments.
18215
182162008-07-22 Chong Yidong <cyd@stupidchicken.com>
18217
18218 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
18219
18220 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
18221 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
18222 (Fns_own_selection_internal, Fx_disown_selection_internal)
18223 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
18224
18225 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
18226 ... */' style of docstrings. Doc fixes.
18227
182282008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18229
18230 * terminfo.c (UP, BC, PC): Undo previous change.
18231
18232 * nsfns.m: Rename ns prefixed functions/variables to the
18233 corresponding x versions. Update references.
18234
182352008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
18236
18237 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
18238
182392008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
18240
18241 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
18242 Remove forwarding functions.
18243 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
18244 non-static.
18245 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
18246 non-static.
18247 (ns_frame_parm_handlers): Use the new names.
18248 (syms_of_nsfns): Move to the end of file.
18249
18250 * nsterm.m (syms_of_nsterm): Move to the end of file.
18251
18252 * dispnew.c (init_display): Remove code for X10.
18253
182542008-07-22 Jason Rumney <jasonr@gnu.org>
18255
18256 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
18257 bare drive.
18258
182592008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
18260
18261 * nsterm.m (syms_of_nsterm): Remove debugging println.
18262
182632008-07-22 David Reitter <david.reitter@gmail.com>
18264
18265 * nsfns.m (do_applescript, F_do_applescript): NS version of the
18266 Carbon implementation of the same functionality: execute arbitrary
18267 AppleScript code.
18268
182692008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
18270
18271 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
18272 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
18273 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
18274 (Fx_display_mm_height, Fx_display_mm_width)
18275 (Fx_display_backing_store, Fx_display_visual_class)
18276 (Fx_display_save_under, Fx_open_connection)
18277 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
18278 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
18279 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18280 (Fx_display_pixel_width, Fx_display_pixel_height)
18281 (Fx_display_usable_bounds, Fx_display_planes)
18282 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
18283 ... */' style of docstrings.
18284
182852008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
18286
18287 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
18288 on this platform.
18289 (mips):
18290 * m/iris4d.h (mips): Do not define.
18291 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
18292
18293 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
18294
18295 * image.c:
18296 * nsfns.m:
18297 * nsselect.m:
18298 * nsterm.h:
18299 * nsterm.m: Rename ns prefixed functions/variables to the
18300 corresponding x versions. Update references.
18301
18302 * m/ibms390x.h (NO_REMAP): Do not undefine.
18303
18304 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
18305
183062008-07-21 Chong Yidong <cyd@stupidchicken.com>
18307
18308 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
18309 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
18310 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
18311 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
18312 (Fns_display_mm_height, Fns_display_mm_width)
18313 (Fns_display_backing_store, Fns_display_visual_class)
18314 (Fns_display_save_under, Fns_open_connection)
18315 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
18316 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
18317 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
18318 (Fns_display_pixel_width, Fns_display_pixel_height)
18319 (Fns_display_usable_bounds, Fx_display_planes)
18320 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
18321
183222008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
18323
18324 * print.c (print_object): Check print_depth before searching for
18325 circularities.
18326
183272008-07-21 Michael Albinus <michael.albinus@gmx.de>
18328
18329 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
18330 only sprintf.
18331
183322008-07-21 Kenichi Handa <handa@m17n.org>
18333
18334 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
18335
183362008-07-20 Andreas Schwab <schwab@suse.de>
18337
18338 * syntax.c (find_start_pos, find_start_value)
18339 (find_start_value_byte, find_start_begv, find_defun_start)
18340 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
18341
183422008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18343
18344 * s/sol2-3.h: Insert contents of s/sol2.h.
18345 (LD_SWITCH_SYSTEM): Remove redundant definition.
18346 * s/sol2.h: Remove, unused.
18347
183482008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18349
18350 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
18351
183522008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
18353
18354 * Makefile.in (ns_appdir): Fix typo in find command.
18355
183562008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
18357
18358 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
18359
18360 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
18361 added not supported anymore.
18362
18363 * s/usg5-4-2.h (LIBS_SYSTEM):
18364 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
18365
18366 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18367 * s/lynxos.h (GETPGRP_NO_ARG):
18368 * s/hpux10-20.h (NO_SIOCTL_H):
18369 * s/gnu.h (GETPGRP_NO_ARG):
18370 * s/gnu-linux.h (NO_SIOCTL_H):
18371 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
18372 * s/cygwin.h (GETPGRP_NO_ARG):
18373 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
18374 (C_DEBUG_SWITCH): Remove duplicate definition.
18375
18376 * m/ibms390.h: Remove boilerplate comments.
18377
18378 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
18379
18380 * process.c (HAVE_SERIAL): Consolidate ifdefs.
18381 (wait_reading_process_output): Remove code for SunOS, platform not
18382 supported anymore. Use SOLARIS2 instead of sun.
18383
183842008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18385
18386 * font.c (font_open_by_name): Under NS, default lface height to zero.
18387 (font_open_for_lface): Under NS, set size based on frame fontsize.
18388 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
18389 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
18390
183912008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18392
18393 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
18394 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
18395 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
18396 YES/NO.
18397 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
18398 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
18399 * Makefile.in (clean): Clear out build destination dir.
18400
184012008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18402
18403 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
18404 xterm, xselect.
18405 * lisp.h: Remove declaration of hash_remove.
18406 * nsgui.h: Remove redefinitions of hash_remove.
18407 * fns.c (hash_remove): Rename to hash_remove_from_table.
18408
184092008-07-19 Seiji Zenitani <zenitani@mac.com>
18410
18411 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
18412 strdup() the family UTF8String before modifying it.
18413
184142008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
18415
18416 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
18417 NS_FACE_BACKGROUND with 0 instead of nil.
18418 * nsfont.m (nsfont_draw): Same.
18419
184202008-07-19 Chong Yidong <cyd@stupidchicken.com>
18421
18422 * nsfns.m (ns_set_background_color): Fix crash.
18423
184242008-07-18 Chong Yidong <cyd@stupidchicken.com>
18425
18426 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
18427
184282008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
18429
18430 * puresize.h (BASE_PURESIZE): Increase to 1240000.
18431
184322008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18433
18434 * gtkutil.c: Include <config.h> instead of "config.h".
18435
18436 * lisp.h (Foverlay_buffer): Add EXFUN.
18437
18438 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
18439 child process to complete child_setup. Undo 2005-09-21 change.
18440
18441 * s/darwin.h: Mention setsid after vfork.
18442
184432008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18444
18445 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
18446 Depend on macgui.h.
18447
18448 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
18449 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
18450
18451 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
18452 and f19.
18453 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
18454
18455 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
18456 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
18457 Remove enumerators.
18458
18459 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
18460 Check if FACE_FROM_ID returns NULL.
18461
184622008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
18463
18464 * w32inevt.c (change_frame_size): Remove extern declaration.
18465 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
18466 change_frame_size.
18467
184682008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18469
18470 * getloadavg.c: Revert last change (2008-07-15).
18471
184722008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
18473
18474 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 18475 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
18476 from configure.
18477
184782008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
18479
18480 * s/sol2.h:
18481 * s/sol2-4.h: Reorganize conditionals.
18482
18483 * ecrt0.c: Remove code depending on m68000, not used anymore.
18484
18485 * fns.c (hash_remove): Make static.
18486 * lisp.h (hash_remove): Don't prototype.
18487
18488 * m/ibmrs6000.h:
18489 * m/ibms390x.h:
18490 * m/macppc.h: Remove boilerplate comments.
18491
18492 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
18493 Solaris, which does not need them.
18494
18495 * m/vax.h: Remove comments about unsupported systems.
18496
18497 * s/darwin.h: Reorganize ifdefs.
18498
184992008-07-17 Andreas Schwab <schwab@suse.de>
18500
18501 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
18502
185032008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
18504
18505 Use SDATA. Follow coding convention of placing operators at
18506 beginning of next line rather than end of previous line, and placing
18507 spaces around infix operators.
18508
18509 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
18510 in case it was defined already.
18511 USE @GNUSTEP_MAKEFILES@ rather than envvars.
18512 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
18513 ns_default.
18514 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
18515 Lisp_Objects.
18516 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
18517 (ns_defined_color, ns_color_to_lisp): Declare.
18518 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
18519 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
18520 it's accepted even with USE_LISP_UNION_TYPE.
18521 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
18522 (update_frame_tool_bar): Remove apparently obsolete tests for
18523 non-integerness of f->tool_bar_lines.
18524 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
18525 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
18526 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
18527 (nsfont_open): Don't confuse NULL for Qnil.
18528 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
18529 * menu.h (find_and_call_menu_selection):
18530 * menu.c (find_and_call_menu_selection): Use just int for vector size.
18531 (find_and_return_menu_selection): Always return something.
18532 * frame.h: Include dispextern.h for Display_Info.
18533 (display_x_get_resource): Declare.
18534
185352008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
18536
18537 * syntax.c: Remove stdio.h include accidentally introduced in
18538 Emacs.app commit.
18539 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
18540 NS_IMPL_COCOA.
18541 * keyboard.c (handle_async_input, input_available_signal): Remove
18542 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
18543
185442008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18545
18546 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
18547 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
18548 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
18549 Use SDATA.
18550
18551 * keymap.c: Remove all NS-specific code.
18552 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
18553 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
18554 where_is_preferred_modifier, return a different value depending on how
18555 preferred is the binding.
18556 (where_is_internal): Adjust accordingly.
18557 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
18558 Adjust to new preferred_sequence_p.
18559 (syms_of_keymap): Declare `where-is-preferred-modifier'.
18560 * keyboard.c (parse_solitary_modifier): Not static any more.
18561 * keyboard.h (parse_solitary_modifier): Declare.
18562
185632008-07-16 Andreas Schwab <schwab@suse.de>
18564
18565 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
18566 of easymenu.
18567
185682008-07-16 Chong Yidong <cyd@stupidchicken.com>
18569
18570 * xdisp.c (move_it_in_display_line): Account for word wrap, so
18571 that we don't move off the line.
18572
185732008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
18574
18575 * keyboard.c (Qsuper): Remove.
18576 (parse_menu_item): Don't call where_is_internal specially for NS.
18577
185782008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18579
18580 * s/gnu-linux.h: Remove boilerplate comments.
18581
18582 * m/alpha.h (__ELF__): Consolidate conditions.
18583
18584 * m/m68k.h (linux): Use GNU_LINUX instead.
18585 Remove boilerplate comments.
18586
18587 * m/intel386.h: Undo refactoring from previous change.
18588 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
18589 too, remove dead code.
18590 (linux): Use GNU_LINUX instead.
18591
185922008-07-16 Jason Rumney <jasonr@gnu.org>
18593
18594 * w32gui.h: Repeat 26 June changes lost by last change.
18595
185962008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
18597
18598 * systty.h: Remove code for Aix on 386, unsupported platform.
18599
18600 * s/ms-w32.h: Remove boilerplate comments.
18601 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
18602
18603 * s/gnu-linux.h (TERM): Remove support.
18604 (HAVE_SYSVIPC): Remove, unused.
18605 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
18606 for this system.
18607
18608 * process.c: Remove support for IRIS, unused.
18609 Remove support for TERM, not relevant anymore.
18610
18611 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
18612 used with the definition.
18613
18614 * s/aix4-2.h (static): Do not undef.
18615
18616 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
18617 only used on Aix.
18618 (HAVE_SYSVIPC): Remove, unused.
18619
18620 * m/hp800.h (CANNOT_DUMP): Do not undef.
18621
18622 * m/alpha.h: Fix comment.
18623
18624 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
18625 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
18626 used by this configuration.
18627 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
18628 * unexec.c: Remove code depending on HPUX and
18629 USG_SHARED_LIBRARIES, not used with this file. Remove code
18630 depending on IRIS, unused. Remove if 0-ed code.
18631
18632 * s/template.h: Remove comments about static.
18633
18634 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
18635 Remove if 0-ed code.
18636 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
18637 were the same as the default.
18638 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
18639 Remove boilerplate comments.
18640 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
18641 (HAVE_SYSVIPC): Remove, unused.
18642 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
18643
18644 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18645 Remove boilerplate comments.
18646 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18647 Remove boilerplate comments.
18648 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
18649 Remove boilerplate comments.
18650 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
18651
18652 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
18653 USG systems which do not use DATA_SEG_BITS.
18654 Refactor code. Remove boilerplate comments.
18655
18656 * m/ibms390.h:
18657 * m/m68k.h:
18658 * s/bsd-common.h:
18659 * s/cygwin.h:
18660 * s/darwin.h:
18661 * s/freebsd.h:
18662 * s/gnu.h:
18663 * s/msdos.h: Remove boilerplate comments.
18664
18665 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 18666 do not use this file.
aac0c6e3
MR
18667 (IRIS_4D): Remove, unused.
18668
18669 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 18670 do not use this file.
aac0c6e3
MR
18671 (SIGN_EXTEND_CHAR):
18672 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
18673 * unexmips.c: Remove file, unused.
18674
18675 * editfns.c (Fuser_full_name): Replace the only use of
18676 USER_FULL_NAME with its value.
18677 * config.in: Regenerate.
18678
186792008-07-16 David Reitter <david.reitter@gmail.com>
18680
18681 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
18682 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
18683
186842008-07-16 Glenn Morris <rgm@gnu.org>
18685
18686 * emacs.c (system-type): Doc fix.
18687
186882008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
18689
18690 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
18691 If the cache doesn't work, let's fix it, rather than work around it.
18692
186932008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18694
18695 * Makefile.in: Correct additions for nsfont.o in last commit.
18696 * nsfont.m: New file (forgot last commit).
18697
186982008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
18699
bba3e508
SM
18700 * callproc.c (set_initial_environment):
18701 Initialize Vprocess_environment under CANNOT_DUMP (fixes crash when
aac0c6e3
MR
18702 batch-compiling for bootstrap).
18703
187042008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
acd0102a 18705 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3 18706
c4cc8b9a
JB
18707 * frame.c (make_initial_frame): Call init_frame_faces(f) in
18708 CANNOT_DUMP case -- fix crash due to different init order.
aac0c6e3
MR
18709
187102008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18711
18712 Changes and additions for NeXTstep windowing system (Cocoa and
18713 GNUstep) support.
18714
18715 * Makefile.in:
18716 * config.in: Support defines and build commands for NS port.
18717 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
18718 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
18719 * dispextern.h: Include nsgui.h and add needed typedefs under NS
18720 windowing.
18721 (struct face): Add synth_ital field.
18722 * dispnew.c: Include nsterm.h when compiling under NS windowing.
18723 (init_display): Initialize Vinitial_window_system to "ns" when so
18724 compiled.
18725 * emacs.c: Include GSConfig.h when compiling under GNUstep.
18726 (display_arg): Use under NS.
18727 (main): Under NS, allocate autorelease pool and handle command line
18728 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
18729 (standard_args): Add NS-specific args.
18730 (shut_down_emacs): Shut down NS terminal if compiled under NS.
18731 * font.c (DEFAULT_ENCODING): New variable.
18732 (font_find_for_lface): Use it.
18733 (syms_of_font): Load syms_of_nsfont under NS.
18734 * font.h: Declare nsfont_driver when compiled under NS.
18735 * fontset.c: When compiling under NS, include nsterm.h.
18736 (fontset_from_font): Autoconstruct fontset under NS.
18737 * frame.c (various): Under NS, include nsterm.h, add Qns window system
18738 symbol, document and use it.
18739 (do_switch_frame): When for_deletion under Cocoa, add
18740 Fraise_frame(Qnil).
18741 (x_set_frame_parameters): Ensure font attribute changes are picked up.
18742 (x_get_arg): Allow "yes" and "no" as boolean values.
18743 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
18744 Qright under Cocoa.
18745 (focus-follows-mouse): Default to 0 under NS.
18746 * frame.h (enum output_method): Add output_ns.
18747 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
18748 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
18749 (FRAME_WINDOW_P): NS-specific definition.
18750 * fringe.c (max_used_fringe_bitmap): Make public.
18751 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
18752 (getloadavg): Use NeXT code under descendant OS's.
18753 * image.c (includes and header section, x_create_bitmap_from_data)
18754 (x_create_bitmap_from_file, free_bitmap_record, image_background)
18755 (image_background_transparent, x_clear_image_1)
18756 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
18757 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
18758 (x_to_xcolors, x_from_xcolors, x_disable_image)
18759 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
18760 other GUIs, including XPM support using code originally written for
18761 Carbon GUI.
18762 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
18763 using NS API.
18764 (image_ascent): Use font metrics macros instead of direct struct field
18765 access.
18766 * keyboard.c (includes): Add nsterm.h when compiling under NS.
18767 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
18768 Also, handle NS as GTK for menu bar purposes.
18769 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
18770 toolkit where they differ.
18771 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
18772 use cachelist, still needed under NS.
18773 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
18774 (struct widget_value): Define it here for menu.c.
18775 * keymap.c (includes): Include modifier internals.
18776 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
18777 NS.
18778 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
18779 support for preferring sequences using certain modifiers, specified by
18780 the FIRSTONLY argument.
18781 * lisp.h (hash_remove): Rename to avoid name clash when compiling
18782 under NS GNUstep implementation.
18783 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
18784 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
18785 * menu.c: Include nsterm.h under NS.
18786 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
18787 (free_menubar_widget_tree_value, update_submenu_strings)
18788 (find_and_call_menu_selection): Treat NS as X and NT.
18789 (find_and_return_menu_selection): New function, used for popup menus.
18790 * nsgui.h:
18791 * nsterm.h:
18792 * nsfns.m:
18793 * nsimage.m:
18794 * nsmenu.m:
18795 * nsselect.m:
18796 * nsterm.m: New files.
18797 * process.c (wait_reading_process_output): Under NS, call ns_select()
18798 instead of plain select().
18799 * syntax.c (char_quoted): Under NS, avoid a crash when called near
18800 beginning of buffer.
18801 * sysselect.h (init_process): Rename when compiling under Cocoa to
18802 avoid name conflict.
18803 * termhooks.h (display_info): Add ns_display_info to union.
18804 * terminal.c (Fterminal_live_p): Add ns to terminal types.
18805 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
18806 COCOA environment.
18807 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
18808 unexec() signature. (Note, this will dump, but the resulting file
18809 crashes; unexosx is used instead; keeping around for reference and
18810 possible aid in getting dump working under GNUstep.)
18811 * w32gui.h (button_type, widget_value): Remove definitions (now in
18812 keyboard.h).
18813 * window.c: Include nsterm.h when compiling under NS.
18814 * xdisp.c (includes): Include nsterm.h when compiling under NS.
18815 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
18816 other GUI windowing systems.
18817 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
18818 GTK.
18819 (x_consider_frame_title): Under NS, set icon type and frame
18820 modified-state indicator; use ns_set_name_as_filename() when using
18821 formatted title.
18822 (update_window_cursor): Make public when compiling under NS.
18823 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
18824 (hourglass_atimer, Vhourglass_delay
18825 * xfaces.c (header section, init_frame_faces, clear_font_table)
18826 (defined_color, unload_color, x_face_list_fonts)
18827 (prepare_face_for_display): Add NS support parallel to other GUIs.
18828 Emulate GCs like other non-X GUIs.
18829 (split_font_name): Don't lowercase font name under NS.
18830 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
18831 under NS.
18832 * s/darwin.h: Add support for compilation under NS.
18833
188342008-07-15 Jason Rumney <jasonr@gnu.org>
18835
18836 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
18837 (w32_show_hourglass): Rename from show_hourglass.
18838 (w32_hide_hourglass): Rename from hide_hourglass.
18839 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
18840 (Vhourglass_delay): Declare extern.
18841 (hourglass_started): Remove.
18842
18843 * xdisp.c (Vhourglass_delay): Remove static.
18844 (hourglass_started, start_hourglass, cancel_hourglass):
18845 Don't include these versions on WINDOWSNT.
18846
188472008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
18848
18849 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
18850 variables (formerly in xfns.c).
18851 (show_hourglass, hide_hourglass): New prototypes (same).
18852 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
18853 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
18854 in xfns.c).
18855 (syms_of_xdisp): Declare/initialize display-hourglass,
18856 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
18857 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
18858 formerly in xfns.c.
18859 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18860 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18861 (start_hourglass, cancel_hourglass): Remove.
18862 (show_hourglass, hide_hourglass): Remove prototypes and static
18863 modifiers.
18864 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
18865 hourglass_atimer, hourglass_shown_p declaration/initialization.
18866 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
18867 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
18868 (start_hourglass, cancel_hourglass): Remove.
18869 (show_hourglass, hide_hourglass): Remove prototypes and static
18870 modifiers.
18871 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
18872 hourglass_atimer, hourglass_shown_p declaration/initialization.
18873 * w32fns.c (display_hourglass_p, Vhourglass_delay)
18874 (DEFAULT_HOURGLASS_DELAY): Remove.
18875 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
18876 hourglass_shown_p declaration/initialization.
18877
188782008-07-14 Jason Rumney <jasonr@gnu.org>
18879
18880 * w32fns.c (w32_get_arg): Remove wrapper function.
18881 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
18882 directly.
18883 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
18884
188852008-07-14 Kenichi Handa <handa@m17n.org>
18886
18887 * xfont.c (xfont_open): Add workaround for X's bug.
18888
188892008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
18890
18891 * fontset.c: Include <stdio.h> unconditionally.
18892
188932008-07-13 Michael Albinus <michael.albinus@gmx.de>
18894
18895 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
18896 for filtering.
18897
188982008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
18899
18900 * s/vms.h: Use __GNUC__ instead of _GNUC_.
18901
18902 * m/macppc.h:
18903 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
18904
c4cc8b9a 18905 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default.
aac0c6e3
MR
18906 (SPECIAL_EMACS_INT):
18907 * m/ia64.h (SPECIAL_EMACS_INT):
18908 * m/amdx86-64.h (SPECIAL_EMACS_INT):
18909 * s/gnu.h (NLIST_STRUCT):
18910 * s/aix4-2.h (X11R5_INHIBIT_I18N):
18911 * s/gnu-linux.h (LINUX):
18912 * s/msdos.h (HAVE_FACES):
18913 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
18914
18915 * systty.h:
18916 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
18917 anymore.
18918
189192008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
18920
18921 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
18922 always defined as int.
18923
18924 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
18925 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
18926 * s/gnu-linux.h (HAVE_WAIT_HEADER):
18927 * s/freebsd.h (HAVE_WAIT_HEADER):
18928 * s/bsd-common.h (HAVE_UNION_WAIT):
18929 * s/aix4-2.h (HAVE_WAIT_HEADER):
18930 * m/mips.h (HAVE_UNION_WAIT):
18931 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
18932 (COFF, static): Do not define, they are undefined later in the file.
18933
18934 * process.c (update_status): Don't use a union.
18935 (status_convert):
18936 (sigchld_handler): Use int instead of WAITTYPE.
18937
189382008-07-12 Chong Yidong <cyd@stupidchicken.com>
18939
18940 * indent.c (Fvertical_motion): Restore hscroll before moving to
18941 goal column.
18942
189432008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18944
18945 * lisp.h: Remove left over code.
18946
189472008-07-11 Andreas Schwab <schwab@suse.de>
18948
18949 * lisp.h: Fix logic in last change.
18950
18951 * menu.h: New file.
18952 * menu.c: Include it.
18953 * xmenu.c: Likewise.
18954 * Makefile.in: Update dependencies.
18955
189562008-07-11 Kenichi Handa <handa@m17n.org>
18957
18958 * fontset.c (fontset_from_font): Cancel the previous change.
18959
189602008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
18961
18962 * lisp.h:
18963 * w32heap.c:
18964 * emacs.c:
18965 * alloc.c: Replace all references of NO_UNION_TYPE with
18966 USE_LISP_UNION_TYPE.
18967
18968 * m/xtensa.h (NO_UNION_TYPE):
18969 * m/vax.h (NO_UNION_TYPE):
18970 * m/template.h (NO_UNION_TYPE):
18971 * m/sparc.h (NO_UNION_TYPE):
18972 * m/mips.h (NO_UNION_TYPE):
18973 * m/macppc.h (NO_UNION_TYPE):
18974 * m/m68k.h (NO_UNION_TYPE):
18975 * m/iris4d.h (NO_UNION_TYPE):
18976 * m/intel386.h (NO_UNION_TYPE):
18977 * m/ibms390x.h (NO_UNION_TYPE):
18978 * m/ibms390.h (NO_UNION_TYPE):
18979 * m/ibmrs6000.h (NO_UNION_TYPE):
18980 * m/ia64.h (NO_UNION_TYPE):
18981 * m/hp800.h (NO_UNION_TYPE):
18982 * m/arm.h (NO_UNION_TYPE):
18983 * m/amdx86-64.h (NO_UNION_TYPE):
18984 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
18985 defining it the same.
18986
189872008-07-10 Chong Yidong <cyd@stupidchicken.com>
18988
18989 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
18990
189912008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
18992
18993 * fileio.c:
50426a04 18994 * sysdep.c:
aac0c6e3
MR
18995 * systty.h:
18996 * m/ibmrs6000.h:
18997 * m/iris4d.h:
18998 * s/aix4-2.h:
18999 * s/freebsd.h:
19000 * s/gnu-linux.h:
19001 * s/hpux10-20.h:
19002 * s/hpux11.h:
19003 * s/netbsd.h:
19004 * s/sol2-3.h:
19005 * s/sol2-4.h:
19006 * s/sol2.h:
19007 * s/usg5-4.h:
19008 * s/vms.h: Remove references to unused variables.
19009
190102008-07-10 Andreas Schwab <schwab@suse.de>
19011
19012 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
19013 pattern before matching the generic family.
19014
190152008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
19016
19017 * unexec.c:
19018 * s/vms.h:
19019 * s/usg5-4-2.h:
19020 * s/sol2-5.h:
19021 * s/freebsd.h:
19022 * s/darwin.h: Remove dead code.
19023
19024 * m/template.h:
19025 * m/sparc.h:
19026 * m/mips.h:
19027 * m/m68k.h:
19028 * m/iris4d.h:
19029 * m/intel386.h:
19030 * m/ibms390x.h:
19031 * m/ibms390.h:
19032 * m/ia64.h:
19033 * m/hp800.h:
19034 * m/arm.h:
19035 * m/amdx86-64.h: Remove dead code and references to unused
19036 and compiler defined symbols.
19037
19038 * unexmips.c:
19039 * unexelf.c: Remove references to desupported systems.
19040
19041 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
19042
19043 * m/powermac.h: Remove boilerplate comments.
19044 (NO_REMAP): Remove unused definition.
19045
19046 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
19047 define them.
19048
190492008-07-10 Kenichi Handa <handa@m17n.org>
19050
19051 * xfont.c (xfont_open): Log the reason of failure.
19052
190532008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
19054
19055 * fontset.c (fontset_get_font_group):
19056 * font.c (font_check_otf): Specify argument types.
19057
190582008-07-09 Kenichi Handa <handa@m17n.org>
19059
19060 * coding.c (detect_coding_utf_8): Set detect_info->found only when
19061 non-ASCII char is found.
19062
19063 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
19064 (reorder_font_vector): Change the arg preferred_family to font.
19065 Prefer the spec matching with font.
19066 (fontset_get_font_group): New function.
19067 (fontset_find_font): Change the format of an element of a realized
19068 fontset. Use fontset_get_font_group.
19069 (fontset_font): Try the current fontset, the default fontset, the
19070 fallbacks of the current fontset, and the fallbacks of the default
19071 fontset in this order.
19072 (face_for_char): Delete the shortcut to use the current font.
19073 (fontset_from_font): Don't set fonts for Latin in the fontset.
19074
19075 * font.h (font_make_object, font_match_p): Adjust prototypes.
19076
19077 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
19078
19079 * font.c (font_make_object): New arg entity and pixelsize.
19080 (font_check_otf_features, font_check_otf): New functions.
19081 (font_match_p): Check :lang, :script, and :otf properties.
19082
19083 * xfont.c (xfont_open): Adjust it for the change of
19084 font_make_object.
19085 (xfont_text_extents): Fix initial setting of metrics.
19086
19087 * ftfont.c (struct ftfont_info): New member index, delete member
19088 fc_charset_idx. Make the member order compatible with struct
19089 xftfont_info.
19090 (fc_charset_table): Change charset names to registry names.
19091 (ftfont_pattern_entity): Delete the args registry and
19092 fc_charset_idx. Change the value of :font-entity property
19093 to (FONTNAME . INDEX). Always set :registry property to
19094 `iso10646-1'.
19095 (struct ftfont_cache_data): New struct.
19096 (ftfont_lookup_cache): New arg for_face.
19097 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
19098 (ftfont_driver): Set the member otf_capability.
19099 (ftfont_get_charset): Adjust it for the change of
19100 fc_charset_table.
19101 (OTF_TAG_SYM): New macro.
19102 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
19103 for the change of fc_charset_table.
19104 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
19105 ftfont_pattern_entity. Add FC_INDEX to objset.
19106 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
19107 and ftfont_pattern_entity.
19108 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
19109 font_make_object, struct ftfont_info.
19110 (ftfont_has_char): Use ftfont_get_fc_charset.
19111 (ftfont_otf_features, ftfont_otf_capability): New functions.
19112 (ftfont_shape): Use ftfont_get_otf.
19113 (ftfont_text_extents): Fix initial setting of metrics.
19114
19115 * xftfont.c (struct xftfont_info): New member ft_size. Make the
19116 member order compatible with struct ftfont_info.
bba3e508
SM
19117 (xftfont_open): Add FC_CHARSET to the pattern.
19118 Set xftfont_info->ft_size. Don't unlock the face. Check BDF
aac0c6e3
MR
19119 properties if appropriate.
19120 (xftfont_close): Unlock the face.
19121 (xftfont_anchor_point, xftfont_shape): Deleted.
19122 (syms_of_xftfont): Don't set members anchor_point and shape of
19123 xftfont_driver.
19124
19125 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
19126 font_make_object.
19127
19128 * w32font.c (w32font_open): Adjust it for the change of
19129 font_make_object.
19130 (w32font_open_internal): Don't set properties of font_object here.
19131
191322008-07-08 Chong Yidong <cyd@stupidchicken.com>
19133
19134 * macfns.c (x_create_tip_frame):
19135 * w32fns.c (x_create_tip_frame):
19136 * xfns.c (x_create_tip_frame): Pass parameter argument to
19137 face-set-after-frame-default.
19138
19139 * xfaces.c (Finternal_merge_in_global_face): Save merged
19140 attributes for the default face back into the face vector.
19141
191422008-07-08 Andreas Schwab <schwab@suse.de>
19143
19144 * fontset.h: Declare fontset_from_font. Don't declare
19145 new_fontset_from_font and fontset_from_font_name.
19146 * xterm.c: Include "fontset.h".
19147 * Makefile.in (xterm.o): Update dependencies.
19148
191492008-07-08 Glenn Morris <rgm@gnu.org>
19150
19151 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
19152 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
19153
191542008-07-07 Chong Yidong <cyd@stupidchicken.com>
19155
19156 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
19157 (x_set_frame_parameters): Don't bind it.
19158
191592008-07-07 Juanma Barranquero <lekktu@gmail.com>
19160
19161 * w32fns.c (map_w32_filename): Declare extern.
19162
191632008-07-07 Jason Rumney <jasonr@gnu.org>
19164
19165 * w32term.c (WS_EX_LAYERED): Define if not already.
19166
191672008-07-06 Chong Yidong <cyd@stupidchicken.com>
19168
19169 * xfaces.c (set_font_frame_param): Don't try to set the font
19170 parameter if it is still unspecified in the lface.
19171
191722008-07-05 Chong Yidong <cyd@stupidchicken.com>
19173
19174 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
19175 face if it didn't already exist.
19176
19177 * xdisp.c (try_window_id): Give up if word-wrapping is on.
19178
191792008-07-05 Andreas Schwab <schwab@suse.de>
19180
19181 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
19182
191832008-07-05 Chong Yidong <cyd@stupidchicken.com>
19184
19185 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
19186 word-wrapping.
19187 (IT_DISPLAYING_WHITESPACE): New macro.
19188 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
19189 when word-wrapping. Simplify word-wrapping logic. Use correct
19190 pixel positions when saving copies of the iterator.
19191 (display_line): Use proper wrap point if the last character on a
19192 line was preceded by whitespace.
19193
191942008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
19195
19196 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
19197
191982008-07-04 Kenichi Handa <handa@m17n.org>
19199
19200 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
19201
19202 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
19203
192042008-07-02 Jason Rumney <jasonr@gnu.org>
19205
19206 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 19207 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
19208
19209 * xdisp.c (next_element_from_display_vector): Move assignment out
19210 of if statement.
19211
192122008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
19213
19214 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
19215
19216 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
19217 (syms_of_fileio): Initialize and export them.
19218 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
19219
19220 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
19221 (Fsystem_move_file_to_trash): New function.
19222 (syms_of_w32fns): Export it to lisp.
19223
192242008-07-01 Jason Rumney <jasonr@gnu.org>
19225
19226 * w32font.c (w32font_text_extents): Don't count overhang as part
19227 of width.
19228
192292008-06-30 Miles Bader <miles@gnu.org>
19230
19231 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
19232 Add `avoid_cursor_p' field.
19233
19234 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
19235 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
19236 (append_glyph, append_composite_glyph, produce_image_glyph)
19237 (append_stretch_glyph): Initialize avoid_cursor_p.
19238 (get_it_property): Rename from `get_line_height_property'.
19239 (x_produce_glyphs): Use get_it_property.
19240 (handle_line_prefix, push_display_prop): New functions.
19241 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
19242 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
19243 New variables.
19244 (syms_of_xdisp): Initialize them.
19245
192462008-06-30 Kenichi Handa <handa@m17n.org>
19247
19248 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
19249 XftDefaultSubstitute (they are called in XftFontMatch).
19250 (xftfont_open): Fix args to ftfont_font_format.
19251
19252 * ftfont.c (fc_charset_table): New member lang.
19253 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 19254 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
19255 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
19256 (ftfont_open): Fix args to ftfont_font_format.
19257 (ftfont_font_format): New arg filename.
19258
192592008-06-30 Chong Yidong <cyd@stupidchicken.com>
19260
19261 * xfaces.c (Finternal_merge_in_global_face): If default face was
19262 modified, realize it again. Update the font face attribute.
19263
192642008-06-29 Jason Rumney <jasonr@gnu.org>
19265
19266 * w32term.c (x_set_frame_alpha): Fix logic.
19267
192682008-06-29 Kenichi Handa <handa@m17n.org>
19269
19270 * fontset.c (Finternal_char_font): Return font-object instead of
19271 font-name.
19272
19273 * composite.c (get_composition_id): Fix the width calculation for TAB.
19274
192752008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
19276
19277 * indent.c (Fvertical_motion): Properly handle float column arg.
19278
192792008-06-28 Jason Rumney <jasonr@gnu.org>
19280
19281 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
19282 (pfnSetLayeredWindowAttributes): New function pointer.
19283 (w32_initialize): Initialize it when supported.
19284 (x_set_frame_alpha): New function.
19285
19286 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
19287 (w32_frame_parm_handlers): Set alpha handler.
19288
19289 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
19290
192912008-06-27 Jason Rumney <jasonr@gnu.org>
19292
19293 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
19294 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
19295 (w32_to_x_charset, x_to_w32_charset)
19296 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19297 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19298 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19299 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19300 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19301 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19302 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
19303 (Qw32_charset_unicode): Remove.
19304 (syms_of_w32fns): Update for above changes.
19305
19306 * w32font.c (w32_to_x_charset, x_to_w32_charset)
19307 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
19308 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
19309 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
19310 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
19311 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
19312 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
19313 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
19314 (syms_of_w32font): Update for above changes.
19315
193162008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
19317
19318 * s/usg5-4.h: Fix previous change: keep the correct branch of a
19319 removed #if.
19320 (USG_SHARED_LIBRARIES): Remove duplicate definition.
19321
193222008-06-26 Juanma Barranquero <lekktu@gmail.com>
acd0102a 19323 Eli Zaretskii <eliz@gnu.org>
aac0c6e3
MR
19324
19325 * makefile.w32-in (LOCAL_FLAGS):
19326 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
19327
19328 * sysdep.c (_spawnlp, _getpid):
19329 Declare with explicit _cdecl instead of _CRTAPI1.
19330
19331 * editfns.c (Fget_internal_run_time):
19332 Check for WINDOWSNT with #ifdef, not #if.
19333
193342008-06-26 Jason Rumney <jasonr@gnu.org>
19335
19336 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
19337
19338 * w32term.c (x_draw_glyph_string_foreground)
19339 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
19340 Use FONT_HANDLE macro.
19341 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
19342
19343 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19344 (uniscribe_encode_char): Use FONT_HANDLE macro.
19345
19346 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
19347 (w32font_text_extents): Use precast w32_font.
19348 (w32font_close): Free cached metrics.
19349 (w32font_open_internal): Allocate space for name on stack.
19350
193512008-06-26 Chong Yidong <cyd@stupidchicken.com>
19352
19353 * xdisp.c (extend_face_to_end_of_line): Fix last change.
19354
193552008-06-26 Jason Rumney <jasonr@gnu.org>
19356
19357 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
19358 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
19359
193602008-06-26 Juanma Barranquero <lekktu@gmail.com>
19361
19362 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
19363
193642008-06-26 Jason Rumney <jasonr@gnu.org>
19365
19366 * w32bdf.c, w32bdf.h: Remove obsolete files.
19367
19368 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
19369
19370 * w32gui.h: Don't include w32bdf.h.
19371 (XCharStruct, enum w32_char_font_type, W32FontStruct):
19372 Remove obsolete font support.
19373
19374 * w32font.h (struct w32font_info): Remove compat_w32_font.
19375 Add hfont member.
19376 (FONT_COMPAT): Remove obsolete macro.
19377
19378 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
19379 (w32font_encode_char, w32font_text_extents): Use new hfont member.
19380 (w32font_open_internal): Remove compat code. Set new hfont member.
19381 (Fx_select_font): Use new hfont member.
19382
19383 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
19384 (uniscribe_encode_char): Use new hfont member.
19385
19386 * w32term.c (x_draw_glyph_string_foreground)
19387 (x_draw_composite_glyph_string_foreground): Use new hfont member.
19388 (x_draw_glyph_string): Use metrics in w32font_info.
19389
193902008-06-26 Kenichi Handa <handa@m17n.org>
19391
19392 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
19393
193942008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
19395
19396 * unexnext.c:
19397 * m/ews4800.h:
19398 * m/hp9000s300.h:
19399 * m/ibm370aix.h:
19400 * m/mips-siemens.h:
19401 * m/ncr386.h:
19402 * m/next.h:
19403 * m/pmax.h:
19404 * m/powerpcle.h:
19405 * m/tandem-s2.h:
19406 * s/386bsd.h:
19407 * s/bsd386.h:
19408 * s/bsd4-1.h:
19409 * s/bsd4-2.h:
19410 * s/bsdos2-1.h:
19411 * s/bsdos2.h:
19412 * s/bsdos3.h:
19413 * s/bsdos4.h:
19414 * s/nextstep.h:
19415 * s/ultrix4-3.h:
19416 * s/usg5-0.h:
19417 * s/usg5-2-2.h:
19418 * s/usg5-2.h:
19419 * s/usg5-4-3.h:
19420 * s/ux4800.h:
19421 * s/uxpds.h:
19422 * s/uxpv.h: Remove support for obsolete systems.
19423 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 19424 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
19425 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
19426 Remove, insert contents in s/aix4-2.h.
19427 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
19428 * s/bsd4-3.h: Rename to ...
19429 * s/bsd-common.h: ... this.
19430 * data.c:
19431 * doc.c:
19432 * ecrt0.c:
19433 * emacs.c:
19434 * fileio.c:
19435 * floatfns.c:
19436 * keyboard.c:
19437 * mem-limits.h:
19438 * print.c:
19439 * process.c:
19440 * sysdep.c:
19441 * syssignal.h:
19442 * systty.h:
19443 * syswait.h:
19444 * term.c:
19445 * unexec.c:
19446 * unexelf.c:
19447 * unexhp9k800.c:
19448 * m/hp800.h:
19449 * m/ibmrs6000.h:
19450 * m/mips.h:
19451 * m/vax.h:
19452 * s/darwin.h:
19453 * s/freebsd.h:
19454 * s/gnu.h:
19455 * s/ms-w32.h:
19456 * s/msdos.h:
19457 * s/netbsd.h:
19458 * s/template.h: Remove references to obsolete variables.
19459
19460 * Makefile.in: Add dependencies for all unexec files.
19461 (admindir): Remove unused variable.
19462 (UNEXEC_SRC): Remove references.
19463
194642008-06-25 Chong Yidong <cyd@stupidchicken.com>
19465
19466 * xfns.c (x_default_font_parameter): If Xft is available, first
19467 try Monospace-12 for the default font.
19468
194692008-06-25 Jason Rumney <jasonr@gnu.org>
19470
19471 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
19472
194732008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
19474
19475 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
19476
19477 * buffer.c (syms_of_buffer): Remove default-word-wrap.
19478
194792008-06-25 Juanma Barranquero <lekktu@gmail.com>
19480
19481 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
19482 <scroll-conservatively>: Fix typo in docstring.
19483
19484 * xselect.c (Fx_send_client_event): Doc fix.
19485
194862008-06-25 Kenichi Handa <handa@m17n.org>
19487
19488 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
19489
19490 * font.c (font_parse_fcname): Remove unused variables.
19491 (font_sort_entites): Delete the arg SPEC. Caller changed.
19492 Fix for the case of ! best_only.
19493 (font_delete_unmatched): Check DPI and AVGWIDTH too.
19494
19495 * lisp.h (Fstring_to_unibyte): EXFUN it.
19496
19497 * character.h (str_to_unibyte): Extern it.
19498
19499 * character.c (str_to_unibyte): New function.
19500
19501 * fns.c (Fstring_to_unibyte): New function.
19502 (syms_of_fns): Defsubr it.
19503
195042008-06-24 Kenichi Handa <handa@m17n.org>
19505
19506 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
19507 DPI too.
19508 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
19509
195102008-06-24 Andreas Schwab <schwab@suse.de>
19511
19512 * Makefile.in (${lispsource}loaddefs.el): Rename from
19513 ../lisp/loaddefs.el.
19514 (bootstrap-clean): Do what distclean does but don't remove
19515 Makefile.
19516 (distclean): Depend on bootstrap-clean and remove Makefile.
19517
195182008-06-24 Chong Yidong <cyd@stupidchicken.com>
19519
19520 * buffer.h (struct buffer): New member word_wrap.
19521
19522 * buffer.c (syms_of_buffer): New variables default-word-wrap and
19523 word-wrap.
19524 (init_buffer_once): Initialize them.
19525
19526 * dispextern.h (struct it): Replace bool truncate_lines_p with a
19527 line_wrap enum possessing three possible values.
19528
19529 * termopts.h: Replace truncate_partial_width_windows with
19530 Vtruncate_partial_width_windows.
19531
19532 * dispnew.c (direct_output_for_insert): Avoid direct output when
19533 inserting a space with word wrap on.
19534
19535 * indent.c (compute_motion): Obey integer values of
19536 truncate-partial-width-windows.
19537
19538 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
19539 replacing truncate_partial_width_windows.
19540 (init_iterator): If Vtruncate_partial_width_windows is an integer,
19541 truncate only if the window width is below that integer.
19542 (start_display, resize_mini_window, produce_stretch_glyph)
19543 (display_string, move_it_in_display_line_to): Use line_wrap.
bba3e508
SM
19544 (back_to_previous_visible_line_start, reseat_1):
19545 Reset string_from_display_prop_p.
aac0c6e3
MR
19546 (display_line): Extend default face to end of line when wrapping.
19547
195482008-06-24 Kim F. Storm <storm@cua.dk>
19549
19550 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
19551 to wrap continued lines at word boundaries.
19552
195532008-06-24 Jason Rumney <jasonr@gnu.org>
19554
19555 * font.c (Ffont_face_attributes): Multiply pixel size before point
19556 conversion to avoid multiplying rounding error.
19557
195582008-06-23 Jason Rumney <jasonr@gnu.org>
19559
19560 * w32term.c (x_draw_glyph_string_background)
19561 (x_draw_glyph_string): Remove old bdf font code.
19562
19563 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
19564
195652008-06-22 Kenichi Handa <handa@m17n.org>
19566
19567 * font.c (font_find_for_lface): Try the adstyle specified in
19568 the property of LFACE_FONT of LFACE (if any).
19569
195702008-06-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 19571 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
19572
19573 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
19574
195752008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
19576
19577 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
19578 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
19579 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
19580 (witness-emacs): Remove.
19581 (lisp, shortlisp): Move loaddefs.el earlier.
19582 (mostlyclean): Forget about witness-emacs.
19583
195842008-06-22 Glenn Morris <rgm@gnu.org>
19585
19586 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
19587 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
19588
195892008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19590
19591 * Makefile.in (PRECOMP): Remove.
19592 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
19593 (witness-emacs): Run `compile-first'.
19594 (.el.elc): Use the new compile-onefile target.
19595
195962008-06-21 Kenichi Handa <handa@m17n.org>
19597
19598 * xftfont.c (xftfont_open): Handle QCembolden only when
19599 FC_EMBOLDEN is defined.
19600
196012008-06-21 Andreas Schwab <schwab@suse.de>
19602
19603 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
19604 (.el.elc): Likewise.
19605
196062008-06-21 Miles Bader <miles@gnu.org>
19607
19608 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
19609 build dir, not the lisp source dir.
19610
196112008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
19612
19613 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
19614 (bootstrapclean): Remove.
19615 (.el.elc): New rule.
19616 (PRECOMP): New var.
19617 (../lisp/subdirs.el): Remove.
19618 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
19619 (witness-emacs): New target.
19620 (mostlyclean): Remove witness-emacs as well.
19621 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
19622 Add witness-emacs dependency.
19623
196242008-06-20 Chong Yidong <cyd@stupidchicken.com>
19625
19626 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
19627 defined by the font.
19628
196292008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19630
19631 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
19632 (bootstrap-clean): New target that keeps TAGS around.
19633 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
19634 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
19635
196362008-06-20 Jason Rumney <jasonr@gnu.org>
19637
19638 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
19639 Remove obsolete font code.
19640
19641 * w32font.c (font_matches_spec): Use csb bitfield from font signature
19642 to determine language support.
19643
196442008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19645
19646 * sysdep.c (cfsetspeed): New fun extracted from the code.
19647 (cfmakeraw): Move before first use.
19648
196492008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
19650
19651 * sysdep.c (cfmakeraw): Provide fallback implementation.
19652 (serial_configure): Provide fallback implementation of cfsetspeed.
19653
196542008-06-20 Kenichi Handa <handa@m17n.org>
19655
19656 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
19657 the pattern.
19658
19659 * fontset.c (fontset_from_font): Copy font_spec before changing
19660 the elements.
19661
19662 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
19663
196642008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
19665
19666 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
19667 for explicit `font' parameters.
19668
19669 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
19670
196712008-06-19 Kenichi Handa <handa@m17n.org>
19672
19673 * frame.c: Include <ctype.h>.
19674 (x_set_font_backend): Allow spacing characters in the X resource
19675 for FontBackend.
19676
196772008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
19678
19679 * w32fns.c, xfns.c (Qfont_param): New var.
19680 (syms_of_w32fns): Initialize it.
19681 (x_default_font_parameter): Record explicit `font' into
19682 `font-parameter'.
19683
196842008-06-18 Kenichi Handa <handa@m17n.org>
19685
19686 * font.c (font_parse_xlfd): Fix previous change.
19687 (font_parse_fcname): Don't use :fc-unknown-spec.
19688 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
19689 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
19690 (font_add_log): Prepend the driver name to the resulting fonts.
19691
19692 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
19693 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
19694 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
19695
19696 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
19697 (QCembolden): New variables.
19698 (syms_of_xftfont): DEFSYM them.
19699 (xftfont_open): Call XftFontMatch. Don't trust the result of
19700 XftTextExtents8 if the pixel_size is less than 5.
19701
197022008-06-18 Andreas Schwab <schwab@suse.de>
19703
19704 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
19705 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
19706
197072008-06-18 Jason Rumney <jasonr@gnu.org>
19708
19709 * w32font.c (w32font_list, w32font_match): Add logging.
19710
19711 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
19712
197132008-06-17 Chong Yidong <cyd@stupidchicken.com>
19714
19715 * font.c (font_parse_fcname): Store divider characters for
19716 unknown-spec list. For known key symbols, intern using correct
19717 symbol name.
19718
197192008-06-17 Kenichi Handa <handa@m17n.org>
19720
19721 * xfaces.c (realize_default_face): If the frame is not on window
19722 system, set the fontset of face to nil.
19723
197242008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19725
19726 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
19727
197282008-06-16 Juanma Barranquero <lekktu@gmail.com>
19729
19730 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
19731 (build_font_name_from_vector): Delete externs.
19732
19733 * xfaces.c (struct font_name): Don't declare.
19734
197352008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
19736
19737 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
19738
197392008-06-16 Chong Yidong <cyd@stupidchicken.com>
19740
19741 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
19742
197432008-06-16 Juanma Barranquero <lekktu@gmail.com>
19744
19745 * font.c (Ffont_spec): Fix usage in docstring.
19746 (Ffont_face_attributes): Doc fix.
19747
197482008-06-16 Andreas Schwab <schwab@suse.de>
19749
19750 * font.c (Ffont_face_attributes): Fix definition.
19751
197522008-06-16 Jason Rumney <jasonr@gnu.org>
19753
19754 * font.h (font_style_symbolic_from_value): Remove.
19755
19756 * font.c (font_style_symbolic_from_value): Remove.
19757 (font_style_symbolic): Revert to pre 2008-06-13 version.
19758
19759 * w32font.c (w32_to_fc_weight): New function.
19760 (w32font_full_name, logfont_to_fcname): Use it.
19761
197622008-06-16 Kenichi Handa <handa@m17n.org>
19763
19764 * font.c (font_check_object): Delete it.
19765 (font_clear_cache): Check if a font-object is alive.
19766 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
19767 font-object to nil.
19768 (font_close_object): Don't check FONT_CLOSE_OBJECT.
19769 (font_at): Don't call font_check_object.
19770 (Ffont_get): Return a symbol for :weight, :slant, and :width.
19771
197722008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
19773
19774 * puresize.h (BASE_PURESIZE): Increase to 1230000.
19775
197762008-06-16 Chong Yidong <cyd@stupidchicken.com>
19777
19778 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
19779
197802008-06-15 Chong Yidong <cyd@stupidchicken.com>
19781
19782 * font.c (font_parse_fcname): Only one decimal point.
19783 (font_unparse_fcname): Handle data in family and foundry indices
19784 as symbols, not strings.
19785 (font_unparse_gtkname, Ffont_face_attributes): New functions.
19786
19787 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
19788
19789 * font.h (font_unparse_gtkname): Add prototype.
19790
197912008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
19792
19793 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
19794
197952008-06-15 Andreas Schwab <schwab@suse.de>
19796
19797 * font.c (font_update_drivers): Fix crash when no drivers match.
19798
197992008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
19800
19801 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
19802 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
19803
198042008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
19805
19806 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
19807
198082008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
19809
19810 * process.c (Fserial_process_configure, Fprocess_send_eof):
19811 Use EQ to compare Lisp_Objects.
19812
198132008-06-13 Jason Rumney <jasonr@gnu.org>
19814
19815 * w32fns.c (Fw32_select_font): Remove old font API function.
19816
19817 * w32font.c (logfont_to_fcname): New function.
19818 (Fx_select_font): New font dialog function compatible with
19819 GTK/fontconfig version.
19820
19821 * font.c (font_style_symbolic_from_value): New function.
19822 (font_style_symbolic): Use it.
19823
19824 * font.h (font_style_symbolic_from_value): Declare new function.
19825
198262008-06-13 Juanma Barranquero <lekktu@gmail.com>
19827
19828 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
19829 <font-width-table>: Fix typos in docstrings.
19830
198312008-06-13 Daniel Engeler <engeler@gmail.com>
19832
19833 These changes add serial port access.
19834 * process.c: Add HAVE_SERIAL.
19835 (Fdelete_process, Fprocess_status, Fset_process_buffer)
19836 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
19837 (list_processes_1, select_wrapper, Fstop_process)
19838 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
19839 (status_notify): Modify to handle serial processes.
19840 [HAVE_SERIAL] (Fserial_process_configure)
19841 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
19842 New functions.
19843 * process.h (struct Lisp_Process): Add `type'.
19844 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
19845 New functions.
19846 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
19847 serial ports.
b71ac3dd 19848 (serial_open, serial_configure): New functions.
aac0c6e3
MR
19849 * w32.h: Add FILE_SERIAL.
19850 (struct _child_process): Add ovl_read, ovl_write.
19851
198522008-06-13 Kenichi Handa <handa@m17n.org>
19853
19854 * dispextern.h (enum lface_attribute_index): New member
19855 LFACE_FOUNDRY_INDEX.
19856
19857 * font.c (font_score): Delete arg alternate_families. Check only
19858 weight, slant, width, and size. Ignore the difference of alias
19859 style symbols.
19860 (font_sort_entites): Adjust for the above change. Reflect the
19861 order of font-driver to scores.
19862 (font_list_entities): Don't check alternate_familes here.
19863 (font_clear_prop): Handle foundry.
19864 (font_update_lface): Don't parse "foundry-family" form here.
19865 Handle FONT_FOUNDRY_INDEX.
19866 (font_find_for_lface): Likewise. Handle alternate families here.
19867 If registry is nil, try iso8859-1 and ascii-0.
19868 (font_open_for_lface): Pay attention to size in ENTITY.
19869 (font_open_by_name): Simplify by calling font_load_for_lface.
19870 (free_font_driver_list): Delete it.
19871 (font_update_drivers): Preserve the order of backends.
19872 (syms_of_font): Setting of sort_shift_bits adjusted for the change
19873 of font_score and font_sort_entites.
19874 (font_update_sort_order): Likewise.
19875
19876 * xfaces.c (LFACE_FOUNDRY): New macro.
19877 (check_lface_attrs): Check foundry.
19878 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
19879 (merge_face_vectors): Check foundry.
19880 (merge_face_ref): Likewise.
19881 (Finternal_set_lisp_face_attribute): Likewise.
19882 (x_update_menu_appearance): Likewise.
19883 (Finternal_get_lisp_face_attribute): Likewise.
19884 (lface_hash): Likewise.
19885 (lface_same_font_attributes_p): Likewise.
19886 (x_supports_face_attributes_p): Likewise.
19887 (tty_supports_face_attributes_p): Likewise.
19888 (Finternal_set_alternative_font_family_alist): Intern strings.
19889 (Finternal_set_alternative_font_registry_alist): Downcase strings.
19890 (realize_default_face): Set LFACE_FOUNDRY (lface).
19891
19892 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
19893 font-driver at first.
19894
19895 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
19896
198972008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
19898
19899 * lread.c (Fload): Use xfree, not free on saved_doc_string.
19900
199012008-06-12 Jim Meyering <meyering@redhat.com>
19902
19903 Make unexec_free handle NULL the same way free does.
19904 * unexmacosx.c (unexec_free): Ignore a NULL argument.
19905
199062008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
19907
19908 * character.h (CHAR_TO_BYTE_SAFE): New macro.
19909 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
19910 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
19911 (WEAK_ALIAS): Simplify.
19912 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
19913 when searching a unibyte buffer.
19914
199152008-06-12 Chong Yidong <cyd@stupidchicken.com>
19916
19917 * xfns.c (Fx_select_font): Rename from x-font-dialog.
19918
199192008-06-12 Juanma Barranquero <lekktu@gmail.com>
19920
19921 * w32font.c: Include ctype.h.
19922
199232008-06-11 Jason Rumney <jasonr@gnu.org>
19924
19925 * w32font.c (w32font_encode_char): Detect missing glyphs that are
19926 misreported as space.
19927 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
19928 as aliases for registry iso10646-1.
19929
199302008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
19931
19932 * buffer.c (clone_per_buffer_values): Skip `name'.
19933
199342008-06-11 Chong Yidong <cyd@stupidchicken.com>
19935
19936 * font.c (font_parse_fcname): Fix last change; accept decimal
19937 points in font size.
19938
199392008-06-10 Jason Rumney <jasonr@gnu.org>
19940
19941 * w32uniscribe.c (add_opentype_font_name_to_list):
19942 Skip non unicode fonts.
19943
199442008-06-10 Chong Yidong <cyd@stupidchicken.com>
19945
19946 * xfns.c (Fx_font_dialog): New function.
19947
19948 * gtkutil.c (xg_dialog_response_cb): Rename from
19949 xg_file_response_callback.
19950 (pop_down_dialog): Rename from pop_down_file_dialog.
19951 (xg_get_file_name): Callers changed.
19952 (xg_get_font_name): New function.
19953
19954 * gtkutil.h (xg_get_font_name): Insert prototype.
19955
199562008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19957
19958 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
19959 x_underline_minimum_display_offset.
19960 (syms_of_xdisp): Declare it here rather than in xterm.c.
19961 * dispextern.h (underline_minimum_offset): Declare it.
19962 * w32term.c (x_draw_glyph_string): Use it.
19963 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
19964 (syms_of_xterm): Don't declare it any more.
19965 (x_draw_glyph_string): Adjust to the new name.
19966
8719abec 199672008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
19968
19969 * xterm.c (x_underline_minimum_display_offset): New var.
19970 (x_draw_glyph_string): Use it.
19971 (syms_of_xterm): Declare it.
19972
199732008-06-10 Chong Yidong <cyd@stupidchicken.com>
19974
19975 * font.c (font_parse_fcname): Accept GTK-style font names too.
19976
199772008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
19978
19979 * dired.c (file_name_completion): Don't return t if the match is exact
19980 but with different capitalization.
19981 * minibuf.c (Ftry_completion): Simplify.
19982
19983 * window.c (Vwindow_point_insertion_type): New var.
19984 (set_window_buffer): Use it.
19985 (syms_of_window): Init and export it to Lisp.
19986
199872008-06-10 Kenichi Handa <handa@m17n.org>
19988
19989 * font.h (font_intern_prop): Prototype adjusted.
19990
19991 * font.c (font_intern_prop): New arg force_symbol.
19992 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
19993 Adjust for the change of font_intern_prop.
19994
19995 * ftfont.c (ftfont_pattern_entity):
19996 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
19997 (w32_registry):
19998 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
19999 the change of font_intern_prop.
20000
200012008-06-09 Juanma Barranquero <lekktu@gmail.com>
20002
20003 * w32menu.c (digest_single_submenu): Declare extern.
20004
200052008-06-09 Jason Rumney <jasonr@gnu.org>
20006
20007 * w32term.c (x_make_frame_visible): Use alternate restore flags.
20008
20009 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
20010 (parse_single_submenu): Remove.
20011 (digest_single_submenu): Remove.
20012 (syms_of_w32menu): Don't initialise variables that have moved
20013 to menu.c.
20014 (set_frame_menubar): Sync with version in xmenu.c.
20015 (w32_menu_show): Sync with xmenu_show in xmenu.c.
20016
20017 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
20018 Make static again.
20019
200202008-06-09 Jason Rumney <jasonr@gnu.org>
20021
20022 Changes to w32 files related to the move of common menu code
20023 to menu.c on 2008-06-08 by Chong Yidong.
20024
20025 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
20026 defs to w32gui.h.
20027 (single_keymap_panes, push_menu_item, push_menu_pane):
20028 Make globally visible.
20029
20030 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
20031 (local_free, malloc_widget_value, free_widget_value)
20032 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
20033 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
20034 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
20035 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
20036 (menu_items, menu_items_allocated, menu_items_used)
20037 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
20038 (init_menu_items, finish_menu_items, discard_menu_items)
20039 (grow_menu_items, push_submenu_start, push_submenu_end)
20040 (push_left_right_boundary, push_menu_pane, push_menu_item)
20041 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
20042 (free_menubar_widget_tree_value, parse_single_submenu)
20043 (update_submenu_strings): Remove functions.
20044 (xmalloc_widget_value): Remove and declare extern.
20045
20046 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
20047 (OBJ1): Build it.
20048
20049 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
20050 (local_heap, local_alloc, local_free, malloc_widget_value)
20051 (free_widget_value): Define here.
20052
200532008-06-09 Kenichi Handa <handa@m17n.org>
20054
20055 * font.h (Qascii_0): Extern it.
20056
20057 * font.c (Qascii_0): New variable.
20058 (syms_of_font): DEFSYM it.
20059 (font_open_by_name): If the registry "iso8859-1" fails, try also
20060 "ascii-0".
20061
20062 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
20063
200642008-06-08 Kenichi Handa <handa@m17n.org>
20065
20066 * .gdbinit (xfont): New command.
20067
200682008-06-08 Andreas Schwab <schwab@suse.de>
20069
20070 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
20071 * Makefile.in (menu.o): Update dependencies.
20072
20073 * Makefile.in (obj): Always add menu.o.
20074 * emacs.c (main): Always call syms_of_menu.
20075 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
20076
200772008-06-08 Chong Yidong <cyd@stupidchicken.com>
20078
20079 * Makefile.in: Compile menu.c.
20080
20081 * lisp.h: Declare syms_of_menu.
20082
20083 * emacs.c (main): Call syms_of_menu.
20084
20085 * keyboard.h: Relocate platform-independent menu definitions from
20086 xmenu.c.
20087
20088 * menu.c: New file. Relocate platform-independent menu
20089 definitions from xmenu.c. Suggested by Adrian Robert.
20090
20091 * xmenu.c: Remove platform-independent menu definitions.
560bb7ae 20092 (menu_items, menu_items_inuse, menu_items_allocated)
aac0c6e3
MR
20093 (menu_items_used, menu_items_n_panes)
20094 (menu_items_submenu_depth): Move to keyboard.h.
20095 (init_menu_items, finish_menu_items, unuse_menu_items)
20096 (discard_menu_items, restore_menu_items, save_menu_items)
20097 (grow_menu_items, push_submenu_start, push_submenu_end)
20098 (push_left_right_boundary, push_menu_pane, push_menu_item)
20099 (keymap_panes, single_keymap_panes, single_menu_item)
20100 (list_of_panes, list_of_items, find_and_call_menu_selection)
20101 (xmalloc_widget_value, free_menubar_widget_value_tree)
20102 (parse_single_submenu, digest_single_submenu)
20103 (update_submenu_strings): Move to menu.c.
20104
201052008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
20106
20107 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
20108
201092008-06-06 Miles Bader <miles@gnu.org>
20110
20111 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
20112 face, not frame default.
20113
201142008-06-05 Martin Rudalics <rudalics@gmx.at>
20115
20116 * window.c (pop_up_windows, pop_up_frames)
20117 (display_buffer_reuse_frames, Vpop_up_frame_function)
20118 (Vdisplay_buffer_function, Veven_window_heights)
20119 (Vspecial_display_buffer_names, Vspecial_display_regexps)
20120 (Vspecial_display_function, Vsame_window_buffer_names)
20121 (Vsame_window_regexps, split_height_threshold)
20122 (Vsplit_window_preferred_function): Move those vars to window.el.
20123 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
20124 (Fdisplay_buffer): Move those functions to window.el.
20125 (syms_of_window): Remove corresponding declarations.
20126 (display_buffer): New function.
20127 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
20128 * dispnew.c (Flast_nonminibuf_frame): New function.
20129 * buffer.c (Fpop_to_buffer): Move to window.el.
20130
201312008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20132
20133 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
20134
201352008-06-05 Kenichi Handa <handa@m17n.org>
20136
20137 * coding.c (detect_coding): Fix previous change.
20138 (detect_coding_system): Likewise.
20139
201402008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20141
20142 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
20143
20144 * keymap.c (Vminibuffer_local_filename_must_match_map):
20145 Rename from Vminibuffer_local_must_match_filename_map.
20146 (syms_of_keymap):
20147 * minibuf.c (Fcompleting_read): Adjust accordingly.
20148 * commands.h: Rename declaration as well.
20149
201502008-06-05 Kenichi Handa <handa@m17n.org>
20151
20152 * font.c (Ffont_spec): Don't use font_parse_family_registry for
20153 family name.
20154 (Ffont_put): Likewise.
20155
20156 * fontset.c (fontset_find_font): Call font_open_for_lface with the
20157 current font-spec.
20158
20159 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
20160 is unspecified.
20161
20162 * xfaces.c (realize_x_face): If the font-related face attributes
20163 are the same as those of default face, realize a new fontset from
20164 default->fontset.
20165 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
20166
201672008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
20168
20169 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
20170 (move_it_in_display_line): New wrapper.
20171
20172 * window.c (window_scroll_pixel_based_preserve_x)
20173 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
20174 (window_scroll_pixel_based, window_scroll_line_based):
20175 Use them to preserve column positions.
20176 (syms_of_window): Initialize them.
20177
20178 * indent.c (Fvertical_motion): Extend first arg to allow passing an
20179 (HPOS . VPOS) pair.
20180
20181 * dispextern.h (move_it_in_display_line): Declare.
20182
201832008-06-05 Juanma Barranquero <lekktu@gmail.com>
20184
20185 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
20186 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
20187 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
20188
201892008-06-04 Juanma Barranquero <lekktu@gmail.com>
20190
20191 * window.c (Fset_window_parameter): Doc fix.
20192 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
20193
201942008-06-04 Joakim Verona <joakim@verona.se>
20195
20196 * window.h (struct window): Add new member window_parameters.
20197
20198 * window.c (Fwindow_parameters, Fwindow_parameter)
20199 (Fset_window_parameter): New defuns.
20200 (syms_of_window): Defsubr the new defuns.
20201 (make_window): Initialize window_parameters to nil.
20202
202032008-06-04 John Paul Wallington <jpw@pobox.com>
20204
20205 * eval.c (Fdefmacro): Doc fix.
20206
202072008-06-04 Kenichi Handa <handa@m17n.org>
20208
20209 * coding.c (detect_coding): Fix handling of coding->head_ascii.
20210 Be sure to call setup_coding_system when we find a proper coding system.
20211 (detect_coding_system): Fix handling of coding->head_ascii.
20212
202132008-06-03 Andreas Schwab <schwab@suse.de>
20214
20215 * font.c (font_prop_validate_spacing): Fix last change.
20216
202172008-06-03 Kenichi Handa <handa@m17n.org>
20218
20219 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
20220 (font_parse_fcname): Fix handling of unknown key.
20221
20222 * xfont.c (xfont_list): Try an alias.
20223
20224 * charset.c (char_charset): Return NULL if the arg charset_list is
20225 specified and C doesn't belong to any of them.
20226
202272008-06-02 Chip Coldwell <coldwell@redhat.com>
20228
20229 * font.c (font_pixel_size): Don't take cdr of an integer.
20230
202312008-06-02 Jim Meyering <meyering@redhat.com>
20232
20233 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
20234 * alloc.c (xfree): Return right away for a NULL arg.
20235 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
20236 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
20237 * mac.c (create_apple_event_from_event_ref): Likewise.
20238 (create_apple_event_from_drag_ref, cfstring_create_normalized):
20239 Likewise.
20240 * doprnt.c (doprnt1): Likewise.
20241 * frame.c (frame): Likewise.
20242 * keyboard.c (wipe_kboard): Likewise.
20243 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
20244 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
20245 * term.c (tty_default_color_capabilities, maybe_fatal)
20246 (delete_tty): Likewise.
20247 * w16select.c (string): Likewise.
20248 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
20249 * w32bdf.c (w32_free_bdf_font): Likewise.
20250 * w32fns.c (w32_unload_font): Likewise.
20251 * w32font.c (w32font_close): Likewise.
20252 * window.c (size_window): Likewise.
20253 * xselect.c (receive_incremental_selection): Likewise.
20254 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
20255 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
20256 * w32.c (stat): Likewise.
20257
20258 Remove useless if-before-free tests.
20259 * editfns.c (Fset_time_zone_rule): Likewise.
20260 * lread.c (nosuffix): Likewise.
20261 * ralloc.c (get_bloc): Likewise.
20262 * regex.c (reg_free): Likewise.
20263 * xftfont.c (xftfont_open, xftfont_close): Likewise.
20264 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
20265 * xsmfns.c (smc_save_yourself_CB): Likewise.
20266
202672008-06-02 Kenichi Handa <handa@m17n.org>
20268
20269 * font.c (font_find_for_lface): Handle float font size.
20270 (font_open_for_lface): Likewise.
20271
20272 * xfaces.c (x_supports_face_attributes_p): Check face->font before
20273 comparing the properties.
20274
202752008-06-01 Jason Rumney <jasonr@gnu.org>
20276
20277 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
20278 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
20279 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
20280 Don't add empty script list.
20281 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
20282
202832008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
20284
20285 * Makefile.in (dot, dotdot): Remove, update users.
20286 ".." has been used elsewhere in the file for a long time.
20287 (LIBXT_STATIC): Remove conditional based on unused variable.
20288
202892008-06-01 Miles Bader <miles@gnu.org>
20290
20291 * xfaces.c (Vface_remapping_alist): New variable.
20292 (syms_of_xfaces): Initialize it.
20293 (enum named_merge_point_kind): New type.
20294 (struct named_merge_point): Add `named_merge_point_kind' field.
20295 (push_named_merge_point): Make cycle detection respect different
20296 named-merge-point kinds.
20297 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
20298 Remove face-name alias resolution.
20299 (lface_from_face_name): New definition using
20300 `lface_from_face_name_no_resolve'.
20301 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
20302 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
20303 (get_lface_attributes): New definition that layers face-remapping on
20304 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
20305 (lookup_basic_face): New function.
20306 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
20307 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
20308 `get_lface_attributes'.
20309 (face_at_buffer_position): Use `lookup_basic_face' to lookup
20310 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
20311 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
20312
20313 * xdisp.c (init_iterator): Pass base_face_id through
20314 `lookup_basic_face' when we actually use it as a face-id.
20315 (handle_single_display_prop): Use `lookup_basic_face' to lookup
20316 DEFAULT_FACE_ID.
20317
20318 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
20319 lookup the initial face-id.
20320
20321 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
20322
203232008-06-01 Juanma Barranquero <lekktu@gmail.com>
20324
20325 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
20326 (Fremove_text_properties): Fix typos in docstrings.
20327
203282008-05-31 Kenichi Handa <handa@m17n.org>
20329
20330 * font.c (font_list_entities): Fix the car part of data to be
20331 stored in the cache.
20332
20333 * ftfont.c (ftfont_font_format): Don't use strcasestr.
20334
203352008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20336
20337 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
20338 Add a `test' argument so another predicate than `equal' can be used.
20339 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
20340 (map_char_table): Remove unused vars `c' and `i'.
20341 * lisp.h (Foptimize_char_table): Adjust declaration.
20342 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
20343
203442008-05-30 Kenichi Handa <handa@m17n.org>
20345
20346 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
20347 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
20348 defined.
20349
203502008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
20351
20352 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
20353 (Fmake_variable_frame_local): Disallow mixing buffer-local and
20354 frame-local settings for the same variable.
20355
203562008-05-30 Kenichi Handa <handa@m17n.org>
20357
20358 * fontset.c (Ffont_info): Move to font.c.
20359 (syms_of_fontset): Delete defsubr of Sfont_info.
20360
20361 * font.c (font_style_to_value, font_score): Delete casting of the
20362 args to xstcasecmp.
20363 (register_font_driver): Increment num_font_drivers only when
20364 registering the driver globally.
20365 (Ffont_info): Move from fontset.c. Handle a font object too.
20366 (syms_of_font): Defsubr Sfont_info.
20367
203682008-05-29 Kenichi Handa <handa@m17n.org>
20369
20370 * coding.h (enum define_coding_utf8_arg_index): New enum.
20371 (enum coding_attr_index): Change coding_attr_utf_16_bom to
20372 coding_attr_utf_bom.
20373 (enum utf_bom_type): Rename from utf_16_bom_type.
20374 (struct utf_16_spec): Adjust for the above change.
20375 (struct coding_system): Add utf_8_bom in `spec' union.
20376
20377 * coding.c (CODING_UTF_8_BOM): New macro.
20378 (enum coding_category): Delete coding_category_utf_8, add
20379 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
20380 coding_category_utf_8_sig.
20381 (CATEGORY_MASK_UTF_8): Delete it.
20382 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
20383 (CATEGORY_MASK_UTF_8_SIG): New macros.
20384 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
20385 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
20386 CATEGORY_MASK_UTF_8_SIG.
20387 (CATEGORY_MASK_UTF_8): New macro.
20388 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
20389 (detect_coding_utf_8): Check BOM.
20390 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
20391 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
20392 (encode_coding_utf_16): Likewise.
20393 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
20394 (detect_coding, detect_coding_system): Handle utf-8-auto.
20395 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
20396 (syms_of_coding): Fix setting up of Vcoding_category_table.
20397
203982008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
20399
20400 * process.c (Faccept_process_output): If `millisec' is non-nil,
20401 `seconds' default to 0.
20402 (wait_reading_process_output): Also return non-nil if we read output
20403 from a non-running process.
20404
204052008-05-29 Jason Rumney <jasonr@gnu.org>
20406
20407 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
20408 `raster' specified.
20409 (add_font_entity_to_list): Allow non-opentype truetype fonts back
20410 in the uniscribe backend, but disallow any font that has no
20411 unicode subrange support.
20412
204132008-05-29 Juanma Barranquero <lekktu@gmail.com>
20414
20415 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
20416 Fix typos in docstrings.
20417
204182008-05-29 Kenichi Handa <handa@m17n.org>
20419
20420 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
20421 (Fx_family_fonts): Set frame correctly.
20422
204232008-05-28 Jason Rumney <jasonr@gnu.org>
20424
20425 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
20426
204272008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
20428
20429 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
20430 calling build_annotations.
20431
204322008-05-28 Juanma Barranquero <lekktu@gmail.com>
20433
20434 * coding.c (Fdecode_coding_region, Fencode_coding_region)
20435 (Fencode_coding_string):
20436 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
20437 <latin-extra-code-table>: Fix typos in docstrings.
20438 (syms_of_coding) <coding-system-alist>: Doc fix.
20439 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
20440
204412008-05-28 Kenichi Handa <handa@m17n.org>
20442
20443 * fontset.c (Ffont_info): Don't call font_close_object.
20444
20445 * font.c (font_parse_family_registry): Use Ffont_put to validate
20446 foundry and family.
20447 (font_delete_unmatched): Don't check spacing.
20448 (font_list_entities): Add spacing to the spec to list fonts.
20449
20450 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
20451 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
20452
20453 * coding.c (encode_coding_raw_text): Fix previous change.
20454 (encode_coding_object): When the dst_object is a buffer and is
20455 different from src_object, move gap to PT.
20456
204572008-05-27 Chong Yidong <cyd@stupidchicken.com>
20458
20459 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
20460
204612008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20462
20463 * coding.c (encode_coding_raw_text): Set coding->produced_char for
20464 all branches. Compute it differently.
20465
20466 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
20467
204682008-05-27 Juanma Barranquero <lekktu@gmail.com>
20469
20470 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
20471 into "else if () ... else ...".
20472
204732008-05-27 Jason Rumney <jasonr@gnu.org>
20474
20475 * w32font.c (w32font_open_internal): Determine if glyph indices
20476 are likely to work here.
20477
204782008-05-27 Chong Yidong <cyd@stupidchicken.com>
20479
20480 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
20481 draw overlap glyphs with appropriate highlighting.
20482
204832008-05-27 Kenichi Handa <handa@m17n.org>
20484
20485 * xfont.c (xfont_open): Fix calculation of font->average_width.
20486
204872008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
20488
20489 * casefiddle.c (casify_object): Try to guess better whether the
20490 argument is a byte or a char.
20491
204922008-05-26 Andreas Schwab <schwab@suse.de>
20493
20494 * xselect.c (x_reply_selection_request): Properly handle format == 32.
20495 Always send multiples of format size.
20496
20497 * xterm.c (x_set_frame_alpha): Fix type mismatch.
20498
204992008-05-26 Jason Rumney <jasonr@gnu.org>
20500
20501 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
20502 (compute_metrics): Don't set failure if we just cleared the cache.
20503 (w32_weight_table): Remove unused variable.
20504 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
20505 backwards compatibility.
20506
205072008-05-25 Kenichi Handa <handa@m17n.org>
20508
20509 * w32term.c (x_draw_glyph_string):
20510 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
20511
20512 * xfaces.c: Delete unused function prototypes.
20513 (xstrlwr, font_frame): Delete them.
20514 (clear_face_cache): Delete unused variable.
20515
20516 * xftfont.c (xftfont_open): Delete unused variable.
20517 If underline_thickness is not 1, adjust underline_position.
20518
20519 * ftxfont.c (ftxfont_open): Delete unused variable.
20520
20521 * fontset.c (face_for_char): Optimize for the case of no charset
20522 property.
20523
20524 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
20525 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
20526 (otf_open, font_otf_capability, generate_otf_features)
20527 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
20528 Comment out by surrounding "#if 0" and "#endif" for the moment.
20529 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
20530 (syms_of_font): Codes for accessing above commented out.
20531
205322008-05-24 Eli Zaretskii <eliz@gnu.org>
20533
20534 * w32proc.c: Include dispextern.h.
20535
20536 * w32.c: Include dispextern.h.
20537
205382008-05-23 Juanma Barranquero <lekktu@gmail.com>
20539
20540 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
20541 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
20542 Fix typos in docstrings.
20543
205442008-05-23 Jason Rumney <jasonr@gnu.org>
20545
20546 * xsmfns.c: Remove includes that are already included by config.h.
20547
205482008-05-23 Kenichi Handa <handa@m17n.org>
20549
20550 * charset.c (Qemacs, charset_emacs): New variables.
20551 (char_charset): Fix for non-Unicode characters.
20552 (syms_of_charset): Define charset_emacs.
20553
20554 * w32term.c (x_draw_glyph_string): Be sure to update
20555 s->underline_thickness and s->underline_position. Be sure to draw
20556 underline within the current line area.
20557
20558 * xterm.c (x_draw_glyph_string): Be sure to update
20559 s->underline_thickness and s->underline_position. Be sure to draw
20560 underline within the current line area.
20561
20562 * fontset.c: Delete unused variables and add casting for char *
20563 throughout the file.
20564 (fontset_font): Try the fallback fonts of the current fontset
20565 before consulting the default fontset.
20566
20567 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
20568
20569 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
20570
205712008-05-22 Jason Rumney <jasonr@gnu.org>
20572
20573 * font.c: Don't include strings.h.
20574
20575 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
20576
20577 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
20578 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
20579 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
20580 to call xstrcasecmp.
20581
20582 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
20583
20584 * fontset.c (fs_query_fontset): Use xstrcasecmp.
20585
20586 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
20587
20588 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
20589
205902008-05-22 Kenichi Handa <handa@m17n.org>
20591
20592 * puresize.h (BASE_PURESIZE): Increase to 1220000.
20593
20594 * font.c (font_prop_validate_style): Adjust for the format
20595 change of font_style_table.
20596
20597 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
20598 two args.
20599
20600 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
20601 two args.
20602
206032008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
20604
20605 * minibuf.c (keys_of_minibuf): Delete.
20606 * lisp.h (keys_of_minibuf): Delete.
20607 * emacs.c (main): Don't call keys_of_minibuf.
20608
206092008-05-22 Kenichi Handa <handa@m17n.org>
20610
20611 * ftfont.c (ftfont_resolve_generic_family): Rename from
20612 ftfont_list_generic_family. Return a single family for each
20613 generic family.
20614 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
20615 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
20616 Call font_add_log.
20617 (ftfont_match): Call font_add_log.
20618
20619 * font.h (Ffont_xlfd_name): EXFUN adjusted.
20620 (FONT_DEBUG): Define it.
20621 (font_add_log): Extern it.
20622 (font_assert): Rename from xassert.
20623
20624 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
20625 (xfont_list_family): Call font_add_log.
20626 (xfont_match): Likewise.
20627 (memq_no_quit): Delete.
20628
20629 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
20630 call of Ffont_xlfd_name.
20631
20632 * xfaces.c (struct table_entry, slant_table, weight_table)
20633 (swidth_table): Move to font.c.
20634
20635 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
20636 xassert are changed to font_assert. Delete many unused variables.
20637 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
20638 New variables.
20639 (struct table_entry): Move from xfaces.c and modified.
20640 (weight_table, slant_table, width_table): Move from xfaces.c and
20641 contents adjusted for the change of struct table_entry.
20642 (font_style_to_value, font_style_symbolic): Adjust for the
20643 format change of font_style_table.
20644 (font_parse_family_registry): Don't overwrite existing foundry and
20645 family of font_spec.
20646 (font_score): Fix calculation of diff for sizes.
20647 (font_sort_entites): Call font_add_log.
20648 (font_delete_unmatched): Return a newly created list.
20649 (font_list_entities): Fix previous change. Call font_add_log.
20650 (font_matching_entity, font_open_entity, font_close_entity):
20651 Call font_add_log.
20652 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
20653 (Finternal_set_font_style_table): Delete.
20654 (BUILD_STYLE_TABLE): New macro.
20655 (build_style_table): New function.
20656 (Vfont_log, font_log_env_checked): New variables.
20657 (font_add_log): New function.
20658 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
20659 Declare Lisp variables "font-weight-table", "font-slant-table",
20660 "font-width-table", and "font-log". Initialize font_style_table.
20661
206622008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
20663
20664 * xterm.c (x_set_frame_alpha): Move declarations before statements.
20665
206662008-05-21 Seiji Zenitani <zenitani@mac.com>
acd0102a 20667 Ryo Yoshitake <ryo@shiftmode.net>
aac0c6e3
MR
20668
20669 * frame.c (Qalpha): Add a new frame parameter `alpha'.
20670 (Vframe_alpha_lower_limit): New variable.
20671 (x_set_alpha): New function.
20672
20673 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
20674
20675 * xfns.c (x-create-frame, Qalpha):
20676 Initialize the frame parameter `alpha'.
20677 * xterm.c (OPAQUE, OPACITY): New.
20678 (x_set_frame_alpha): New function.
20679 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
20680
20681 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
20682 * w32fns.c (w32_frame_parm_handlers): Likewise.
20683
206842008-05-20 Jason Rumney <jasonr@gnu.org>
20685
20686 * w32font.c (add_font_entity_to_list): Don't add non-opentype
20687 truetype fonts to opentype list.
20688
206892008-05-20 Juanma Barranquero <lekktu@gmail.com>
20690
20691 * fontset.c (Ffontset_info): Doc fix.
20692 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
20693 <ignore-relative-composition>: Fix typos in docstrings.
20694
20695 * font.c (syms-of-font) <font-encoding-alist>:
20696 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
20697 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
20698 (Ffont_otf_alternates): Doc fixes.
20699
207002008-05-20 Kenichi Handa <handa@m17n.org>
20701
20702 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
20703 font.h through out the file.
20704 (FONT_DRIVERS): Rename from FONTOBJ.
20705 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
20706 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
20707
20708 * emacs.c (main): Call syms_of_font unconditionally.
20709
20710 * font.h (find_font_encoding): Extern it.
20711
20712 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
20713 fontset.c.
194d44e7 20714 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
20715 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
20716 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
20717 only when HAVE_WINDOW_SYSTEM is defined.
20718 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
20719 when HAVE_WINDOW_SYSTEM is defined.
20720
20721 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
20722 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
20723
20724 * xfaces.c: Include font.h unconditionally.
20725 (merge_face_ref, merge_face_vectors)
20726 (Finternal_set_lisp_face_attribute): Cancel the previous change.
20727
207282008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
20729
20730 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
20731 indirect_variable.
20732 * eval.c (lisp_indirect_variable): New fun.
20733 (Fuser_variable_p): Use it.
20734
207352008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
20736
20737 * lisp.h (indirect_variable):
20738 * data.c (indirect_variable, let_shadows_buffer_binding_p):
20739 Use Lisp_Symbol pointers rather than Lisp_Object.
20740 Adjust callers.
20741 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
20742 To this end, change calling-convention.
20743
20744 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
20745 if some non-hidden buffers are selected by string&pred.
20746
207472008-05-19 Chong Yidong <cyd@stupidchicken.com>
20748
20749 * process.c (wait_reading_process_output): Always check status
20750 when in batch mode.
20751
207522008-05-19 Kenichi Handa <handa@m17n.org>
20753
20754 * font.c (font_list_entities): Fix handling of cache.
20755 (font_matching_entity): Likewise.
20756
20757 * ftfont.c (cs_iso8859_1): Delete.
20758 (ft_face_cache): New variable.
20759 (struct ftfont_info): New member fc_charset_idx.
20760 (ftfont_build_basic_charsets): Delete.
20761 (fc_charset_table): New variable.
20762 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
20763 . FC_CHARSET_IDX) as :font-entity property in the font entity.
20764 Callers changed.
20765 (ftfont_lookup_cache, ftfont_get_charset): New functions.
20766 (ftfont_spec_pattern): New argument fc_charset_idx.
20767 Check registry more rigidly. Change callers.
20768 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
20769 change of :font-entity property of the font.
20770
20771 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
20772 property of the font.
20773
207742008-05-18 Juanma Barranquero <lekktu@gmail.com>
20775
20776 * coding.c (Fcoding_system_p): Rename argument to match docstring.
20777 (Funencodable_char_position, Fcheck_coding_systems_region)
20778 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
20779 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
20780 (Ffind_operation_coding_system, Fset_coding_system_priority)
20781 (Fcoding_system_eol_type): Doc fixes.
20782
207832008-05-17 Glenn Morris <rgm@gnu.org>
20784
20785 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
20786
207872008-05-16 Eli Zaretskii <eliz@gnu.org>
20788
20789 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
20790 and st_gid.
20791
20792 * frame.c (Fdelete_frame): Don't call font_update_drivers if
20793 HAVE_WINDOW_SYSTEM is not defined.
20794
20795 * xfaces.c (merge_face_ref, merge_face_vectors)
20796 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
20797 HAVE_WINDOW_SYSTEM is defined.
20798 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
20799
208002008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
20801
20802 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
20803
208042008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20805
20806 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
20807
208082008-05-15 Kenichi Handa <handa@m17n.org>
20809
20810 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
20811 preference.
20812
208132008-05-15 Glenn Morris <rgm@gnu.org>
20814
20815 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
20816
208172008-05-15 Chong Yidong <cyd@stupidchicken.com>
20818
20819 * fns.c (init_fns): Don't initialize weak_hash_tables here.
20820 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
20821
20822 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
20823
208242008-05-15 Kenichi Handa <handa@m17n.org>
20825
20826 * ftfont.c (ftfont_list): Downcase family name to check generic
20827 families.
20828
20829 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
20830 font-spec for QCfont value.
20831
20832 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
20833 buffer. Check the return value of it.
20834
208352008-05-14 Jason Rumney <jasonr@gnu.org>
20836
20837 * w32term.c (w32_get_glyph_overhangs): Remove.
20838 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
20839
208402008-05-14 Kenichi Handa <handa@m17n.org>
20841
20842 * font.c (font_prop_validate): Make nil a valid value.
20843 (font_clear_cache): Check if the cached vector of entities is nil
20844 or not.
20845
208462008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20847
20848 * emacs.c (main_thread): Conditionalize on
20849 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20850 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
20851
20852 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
20853 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
20854 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
20855
208562008-05-14 Kenichi Handa <handa@m17n.org>
20857
20858 * coding.c (detect_coding_iso_2022): Ignore a coding category that
20859 has no corresponding coding system.
20860
208612008-05-14 Jason Rumney <jasonr@gnu.org>
20862
20863 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
20864
20865 * w32font.h (w32font_open_internal): Update declaration.
20866
20867 * w32font.c (w32font_open_internal): Change last argument from
20868 w32font_info struct to font object. Fill in font object from
20869 font_entity. Get Outline metrics if possible. Use them to
20870 calculate underline position and thickness. Use xlfd name as name
20871 property. Don't set codepage.
20872 (w32font_open): Pass font_object to w32font_open_internal. Don't
20873 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
20874 (w32font_draw): Use s->font.
20875 (clear_cached_metrics): Don't clear non-existent blocks.
20876
20877 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
20878 font was not found.
20879 (x_draw_glyph_string): Use underline position and thickness from font.
20880
20881 * w32uniscribe.c (uniscribe_open): Pass font_object to
20882 w32font_open_internal.
20883
208842008-05-14 Kenichi Handa <handa@m17n.org>
20885
20886 These changes are to delete all legacy font-handling codes, and
20887 make Emacs use only font-backends.
20888
20889 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
20890 (frame.o, image.o, print.o): Depend on $(FONTSRC).
20891
20892 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
20893
20894 * charset.h (Vcharset_non_preferred_head)
20895 (Vcurrent_iso639_language): Extern them.
20896
20897 * charset.c (Vcharset_non_preferred_head): New variable.
20898 (Vcurrent_iso639_language): New variable.
20899 (syms_of_charset): Declare it as a Lisp variable.
20900 (char_charset): Don't check non preferred charsets. As a last
20901 resort, return charset_unicode.
20902 (Fset_charset_priority): Update Vcharset_non_preferred_head.
20903
20904 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
20905 conditionals. Don't check enable_font_backend. Delete all codes
20906 used only when USE_FONT_BACKEND is not defined.
20907
20908 * dispextern.h (struct glyph_string): Change type of `font' to
20909 `struct font *'.
20910 (struct glyph_string): New member underline_position and
20911 underline_thickness.
20912 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
bba3e508
SM
20913 (struct face): Change type of `font' to `struct font *'.
20914 Remove members `font_name', `font_info_id'.
aac0c6e3
MR
20915 (per_char_metric, encode_char): Delete externs.
20916 (calc_pixel_width_or_height): Adjust the prototype.
20917
20918 * emacs.c (enable_font_backend): Delete extern.
20919 (main): Don't set enable_font_backend. Don't check the command
20920 line argument "-disable-font-backend".
20921
20922 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
20923 (enum font_property_index): New members FONT_DPI_INDEX,
20924 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
20925 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
20926 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
20927 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
20928 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
20929 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
20930 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
20931 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
20932 (struct font_spec, struct font_entity): New structs.
ef1b0ba7 20933 (FONT_ENCODING_NOT_DECIDED): Move from fontset.h.
aac0c6e3
MR
20934 (struct font): Many members from old "struct font_info" moved to
20935 here. Members font and entity deleted.
20936 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
20937 the new font-related objects.
20938 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
20939 (CHECK_FONT_GET_OBJECT): Likewise.
20940 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
ef1b0ba7 20941 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move from font.h.
bba3e508
SM
20942 (struct font_driver): New members case_sensitive anc check.
20943 Type of the member list and open changed.
aac0c6e3
MR
20944 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
20945 (font_symbolic_width, font_find_object, font_get_spec)
20946 (font_set_lface_from_name): Delete extern.
20947 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
20948
20949 * font.c: Include <strings.h>.
20950 (enable_font_backend): Delete it.
20951 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
20952 (CHECK_VALIDATE_FONT_SPEC): Delete it.
ef1b0ba7 20953 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Move to font.h.
aac0c6e3
MR
20954 (null_string): Delete it.
20955 (null_vector): Make it static.
20956 (font_family_alist): Delete it.
20957 (Qnormal): Extern it.
20958 (QCextra, QClanguage): Delete it.
20959 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
20960 (font_make_spec, font_make_entity, font_make_object)
ef1b0ba7 20961 (font_intern_prop): Rename from intern_downcase. Don't downcase
aac0c6e3 20962 the string. Callers changed.
bba3e508 20963 (font_pixel_size): Adjust for the format change of font-related
aac0c6e3
MR
20964 objects.
20965 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
20966 (font_style_to_value, font_style_symbolic): New function.
20967 (build_font_family_alist): Delete it.
20968 (font_registry_charsets): Use Fassoc_string instead of
20969 assq_no_quit.
20970 (font_prop_validate_symbol): Don't return null_string.
bba3e508 20971 (font_prop_validate_style): Adjust for the change of
aac0c6e3
MR
20972 style-related values in a font vector.
20973 (font_property_table): Delete entries for QClanguage and
20974 QCantialias, add entries for QCavgwidth.
20975 (get_font_prop_index): Delete the 2nd argument FROM.
20976 (font_prop_validate): Arguments changed.
bba3e508 20977 (font_put_extra): Adjust for the change of font-related objects.
aac0c6e3
MR
20978 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
20979 (font_parse_fcname, font_unparse_fcname)
20980 (font_prepare_composition): Likewise.
ef1b0ba7 20981 (font_parse_family_registry): Rename from font_merge_old_spec.
aac0c6e3 20982 (otf_open): Delete the 1st arg entity.
bba3e508 20983 (font_otf_capability): Adjust for the above change.
aac0c6e3
MR
20984 (font_score): New arg alternate_families. Adjusted for the change
20985 of font-related objects.
20986 (font_sort_entites): New arg best_only.
20987 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
20988 Delete them.
20989 (font_match_p): Check alternate families.
20990 (font_find_object): Delete it.
20991 (font_check_object): New function.
bba3e508 20992 (font_clear_cache): Adjust for the change of font-related objects.
aac0c6e3
MR
20993 (font_delete_unmatched): New arg.
20994 (font_list_entities): Call font_driver->list with a spec that
20995 doesn't specify style-related properties.
20996 (font_matching_entity): Arguments changed. Caller changed.
bba3e508 20997 (font_open_entity): Adjust for the change of font-related objects.
aac0c6e3
MR
20998 (font_close_object, font_has_char, font_encode_char)
20999 (font_get_name, font_get_spec): Likewise.
21000 (font_spec_from_name, font_clear_prop, font_update_lface):
21001 New functions.
21002 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
21003 (font_prepare_for_face, font_done_for_face, font_open_by_name)
bba3e508 21004 (font_at): Adjust for the change of font-related objects.
aac0c6e3
MR
21005 (font_range): New function.
21006 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
bba3e508 21007 (Ffont_xlfd_name): Adjust for the change of font-related objects.
aac0c6e3 21008 (Fcopy_font_spec, Fmerge_font_spec): New function.
ef1b0ba7 21009 (Ffont_family_list): Rename from list-families.
aac0c6e3
MR
21010 (Finternal_set_font_style_table): Arguments changed.
21011 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
bba3e508 21012 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjust for the
aac0c6e3
MR
21013 change of font-related objects.
21014 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
21015
21016 * fontset.h (struct font_info): Delete it. Most members go to
21017 struct font.
ef1b0ba7 21018 (FONT_ENCODING_NOT_DECIDED): Move to font.h.
aac0c6e3
MR
21019 (enum FONT_SPEC_INDEX): Delete it.
21020 (font_info, list_fonts_func, load_font_func, query_font_func)
21021 (set_frame_fontset_func, find_ccl_program_func)
bba3e508
SM
21022 (get_font_repertory_func, new_fontset_from_font_name):
21023 Delete externs.
aac0c6e3
MR
21024 (fontset_from_font_name): Extern it.
21025 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
21026 (FONT_INFO_FROM_FACE): Deleted.
21027 (face_for_font): Adjust prototype.
21028
21029 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
21030 conditionals. Don't check enable_font_backend. Delete all codes
21031 used only when USE_FONT_BACKEND is not defined.
21032 (get_font_info_func, list_font_func, load_font_func)
21033 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
21034 (get_font_repertory_func): Delete them.
21035 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
21036 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
21037 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
21038 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
21039 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
21040 (fontset_compare_rfontdef): New function.
21041 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
21042 rfont-defs by qsort. Adjusted for the change of font-group vector.
21043 (load_font_get_repertory): Deleted.
21044 (fontset_find_font): Use new macros to ref/set elements of
21045 font-def and rfont-def.
21046 (fontset_font): Fix the timing of remembering that no font for C.
21047 (free_face_fontset): Do nothing if the face has no fontset.
21048 (face_suitable_for_char_p): Use new macros to ref/set elements of
21049 rfont-def.
21050 (face_for_char): Likewise. Call face_for_char with font_object.
21051 (fs_load_font): Delete. Delete #pragma surrounding it.
21052 (fs_query_fontset): Use strcasecmp instead of strcmp.
bba3e508 21053 (generate_ascii_font_name): Adjust for the format change of
aac0c6e3
MR
21054 font-spec.
21055 (Fset_fontset_font): Likewise. Use new macros to set elements of
21056 font-def.
21057 (Fnew_fontset): Use font_unparse_xlfd to generate
21058 FONTSET_ASCII (fontset).
21059 (new_fontset_from_font_name): Deleted.
ef1b0ba7 21060 (fontset_from_font): Rename from new_fontset_from_font. Check if
aac0c6e3
MR
21061 a fontset is already created for the font. FIx updating of
21062 Vfontset_alias_alist.
21063 (fontset_ascii_font): Deleted.
bba3e508 21064 (Ffont_info): Adjust for the format change of font-spec.
aac0c6e3
MR
21065 (Finternal_char_font): Likewise.
21066 (Ffontset_info): Likewise.
21067 (syms_of_fontset): Don't check load_font_func.
21068
21069 * fns.c (internal_equal): Handle PREV_FONT.
21070
21071 * frame.h: Delete USE_FONT_BACKEND conditional.
21072
21073 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
21074 conditionals. Don't check enable_font_backend. Delete all codes
21075 used only when USE_FONT_BACKEND is not defined.
21076 (x_set_font): Call x_new_font, not x_new_fontset2.
21077 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
21078 already set for the frame.
21079
bba3e508
SM
21080 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed.
21081 Make a font-entity by font_make_entity. Use font_intern_prop instead
aac0c6e3
MR
21082 of intern_downcase. Use FONT_SET_STYLE to set a style-related
21083 font property. If a font is scalable, set avgwidth property to 0.
21084 Set font-entity property by font_put_extra.
21085 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
bba3e508 21086 (ffont_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21087 (ftfont_spec_pattern): New function.
21088 (ftfont_list): Return a list, not vector.
21089 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
21090 (ftfont_list_family): Don't downcase names.
21091 (ftfont_free_entity): Deleted.
21092 (ftfont_open): Return a font-object. Adjusted for the change of
21093 struct font. Get underline_thickness and underline_position from
21094 font property. Don't update dpyinfo->smallest_font_height and
21095 dpyinfo->smallest_char_width.
21096 (ftfont_close): Don't free `struct font'.
bba3e508 21097 (ftfont_has_char): Adjust for the format change of font-entity.
aac0c6e3
MR
21098 (ftfont_encode_char, ftfont_text_extents): Likewise.
21099
21100 * ftxfont.c (ftxfont_list): Return a list, not vector.
21101 (ftxfont_open): Return a font-object. Adjusted for the change of
21102 struct font. Get underline_thickness and underline_position from
21103 font property. Don't update dpyinfo->smallest_font_height and
21104 dpyinfo->smallest_char_width.
21105 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
bba3e508 21106 (ftxfont_draw): Adjust for the change of struct font.
aac0c6e3 21107
bba3e508
SM
21108 * image.c (image_ascent): Don't include "charset.h".
21109 Include "character.h" and "font.h".
aac0c6e3
MR
21110
21111 * lisp.h (enum pvec_type): New member PREV_FONT.
21112 (Fassoc_string): EXFUN it.
21113
21114 * print.c: Include font.h.
21115 (print_object): Handle font-related objects.
21116
21117 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
21118 conditionals. Don't check enable_font_backend. Delete all codes
21119 used only when USE_FONT_BACKEND is not defined.
21120 (handle_auto_composed_prop): Do nothing if it->f is not on a
21121 window system. Check how many following characters can be
21122 displayed by the same font.
21123 (calc_pixel_width_or_height): Type of the 4th arg is changed to
21124 'struct font *'.
21125 (get_char_face_and_encoding): Assign the whole encoding task to
21126 the `encode-char' method of a font driver.
bba3e508 21127 (fill_composite_glyph_string): Adjust for the change of `struct
aac0c6e3
MR
21128 face' and `struct glyph_string'.
21129 (fill_glyph_string): Likewise.
21130 (get_per_char_metric): Arguments changed.
bba3e508 21131 (x_get_glyph_overhangs): Adjust for the change of `struct face'
aac0c6e3
MR
21132 and `struct glyph_string'.
21133 (produce_stretch_glyph, calc_line_height_property)
21134 (x_produce_glyphs): Likewise.
21135
21136 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
21137 conditionals. Don't check enable_font_backend. Delete all codes
bba3e508
SM
21138 used only when USE_FONT_BACKEND is not defined.
21139 Use FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
aac0c6e3
MR
21140 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
21141 (Qp): Extern them.
21142 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
21143 Deleted.
21144 (struct font_name): Deleted.
21145 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
21146 (compare_fonts_by_sort_order): New function.
21147 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
21148 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
21149 Deleted.
21150 (Fx_family_fonts): Use font_list_entities, and sort fonts by
21151 compare_fonts_by_sort_order.
21152 (Fx_font_family_list): Call Ffont_family_list.
21153 (face_numeric_value, face_numeric_weight, face_numeric_slant)
21154 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
21155 (face_symbolic_slant, face_symbolic_swidth)
21156 (split_font_name_into_vector, build_font_name_from_vector)
21157 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
21158 (font_rescale_ratio, split_font_name, build_font_name)
21159 (free_font_names, sort_fonts, x_face_list_fonts)
21160 (face_font_available_p, sorted_font_list, cmp_font_names)
21161 (font_list_1, concat_font_list, font_list, remove_duplicates):
21162 Deleted.
21163 (Fx_list_fonts): Use Ffont_list.
21164 (LFACE_AVGWIDTH): Deleted.
21165 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
21166 by FONTP.
21167 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
21168 (set_lface_from_font_name): Delete it.
ef1b0ba7 21169 (set_lface_from_font): Rename from
aac0c6e3
MR
21170 set_lface_from_font_and_fontset. Caller changed. Don't set
21171 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
21172 for face.
21173 (merge_face_vectors): Copy font-spec if necessary.
21174 Clear properties of the font-spec if necessary.
21175 (merge_face_ref): Clear properties of the font-spec if necessary.
21176 (Finternal_set_lisp_face_attribute): Likewise.
21177 (set_font_frame_param): Use font_load_for_lface to load a
21178 font-object, and call Fmodify_frame_parameters with it.
21179 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
21180 font name by Ffont_xlfd_name.
21181 (Finternal_lisp_face_attribute_values): Don't check QCweight,
21182 QCslant, and QCwidth.
21183 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
21184 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
21185 Compare fonts by EQ.
21186 (lookup_non_ascii_face): Deleted.
21187 (face_for_font): The 2nd argument changed.
21188 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
21189 Check atomic font properties by case insensitive.
21190 (realize_non_ascii_face): Set face->overstrike correctly.
21191 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
21192 (dump_realized_face): Get font name from
21193 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
21194
21195 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
21196 conditionals. Don't check enable_font_backend. Delete all codes
21197 used only when USE_FONT_BACKEND is not defined.
21198 (xic_create_xfontset): Original code deleted and renamed from
21199 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
21200 (x_make_gc): Don't set GCFont in GCs.
21201 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
21202 opened by "fixed".
21203 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
21204 find_ccl_program_func, query_font_func, set_frame_fontset_func,
21205 get_font_repertory_func.
21206
21207 * xfont.c: Include <stdlib.h> and "ccl.h".
21208 (struct xfont_info): New structure.
21209 (xfont_query_font): Deleted.
ef1b0ba7 21210 (xfont_find_ccl_program): Rename from x_find_ccl_program and
aac0c6e3 21211 moved from xterm.c.
bba3e508 21212 (xfont_driver): Adjust for the change of struct font_driver.
aac0c6e3 21213 (compare_font_names): New function.
ef1b0ba7
SM
21214 (xfont_list_pattern): Sort font names case insensitively.
21215 Make font_entity by calling font_make_entity. Avoid auto-scaled fonts.
aac0c6e3
MR
21216 (xfont_list): Return a list, not vector.
21217 (xfont_match): If the font doesn't have QCname property, generate
21218 a name from the other font properties.
21219 (xfont_open): Return a font-object. Adjusted for the change of
21220 struct font. Get underline_thickness and underline_position from
21221 font property. Don't update dpyinfo->smallest_font_height and
21222 dpyinfo->smallest_char_width.
21223 (xfont_close): Don't free struct font.
bba3e508 21224 (xfont_prepare_face): Adjust for the change of struct font.
aac0c6e3 21225 (xfont_done_face): Deleted.
bba3e508 21226 (xfont_has_char): Adjust for the change of struct font.
aac0c6e3
MR
21227 (xfont_encode_char, xfont_draw): Likewise.
21228 (xfont_check): New function.
21229
bba3e508 21230 * xftfont.c (xftfont_list): Adjust for the change of `list'
aac0c6e3 21231 callback function.
bba3e508
SM
21232 (xftfont_match): Adjust for the format change of font-entity.
21233 (xftfont_open): Adjust for the format change of font-entity and
aac0c6e3
MR
21234 font-object. Adjusted for the change of struct font. Return a
21235 font-object. Don't update dpyinfo->smallest_font_height and
21236 dpyinfo->smallest_char_width.
21237 (xftfont_close): Block input while calling XftFontClose.
21238 (xftfont_prepare_face): Don't block input while calling
21239 xftfont_get_colors. Adjusted for the change of struct font.
21240 (xftfont_shape): Return value of error case fixed.
21241
21242 * xrdb.c (x_load_resources): Don't setup a fontset resource.
21243
21244 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
21245 conditionals.
21246 (FONT_WIDTH): Return (f)->max_width.
21247 (struct x_display_info): Delete member `font'.
21248 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
21249 (x_find_ccl_program, x_get_font_repertory): Delete externs.
21250 (struct x_output): Change type of `font' to `struct font *'.
21251
21252 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
21253 conditionals. Don't check enable_font_backend. Delete all codes
21254 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
21255 (x_per_char_metric, x_encode_char): Deleted.
21256 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
bba3e508 21257 (x_compute_glyph_string_overhangs): Adjust for the change of
aac0c6e3
MR
21258 `struct face'.
21259 (x_draw_glyph_string_foreground)
21260 (x_draw_composite_glyph_string_foreground): Likewise.
21261 (x_draw_glyph_string): Likewise. Use font->underline_position and
21262 font->underline_thickness.
ef1b0ba7 21263 (x_new_font): Rename from x_new_fontset2.
aac0c6e3
MR
21264 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
21265 (x_check_font): Call `check' method of a font driver.
21266 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
21267 (x_query_font, x_get_font_repertory): Deleted.
ef1b0ba7 21268 (x_find_ccl_program): Rename and moved to xfont.c.
bba3e508 21269 (x_redisplay_interface): Adjust for the change of `struct
aac0c6e3
MR
21270 redisplay_interface'.
21271
21272 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
21273 conditionals. Don't check enable_font_backend. Delete all codes
21274 used only when USE_FONT_BACKEND is not defined. Surround non-used
21275 code by "#ifdef OLD_FONT" and "endif".
21276 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
21277
21278 * w32font.h (struct w32font_info): New member.
21279 (FONT_COMPAT): New macro.
21280 (w32font_open_internal): Prototype adjusted.
21281
21282 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
21283 OLD_FONT" and "endif".
21284
21285 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
21286 conditionals. Don't check enable_font_backend. Delete all codes
21287 used only when USE_FONT_BACKEND is not defined.
21288 (w32font_open): Return a font-object. Make a font-object by
21289 font_make_object. Adjusted for the change of struct w32font_info.
21290 (w32font_close): Don't free struct font. Adjusted for the change
21291 of struct w32font_info.
21292 (w32font_encode_char, w32font_text_extents, w32font_draw):
ef1b0ba7 21293 Adjust for the change of struct w32font_info.
aac0c6e3
MR
21294 (w32font_draw): Likewise.
21295 (w32font_list_internal): Return a list, not vector.
21296 (w32font_open_internal): Change the 4th arg to font-object.
21297 Adjusted for the change of struct w32font_info and font-object format.
21298 (add_font_name_to_list): Don't downcase names.
21299 (w32_enumfont_pattern_entity): Make a font-entity by
21300 font_make_entity. Adjusted for the format change of font-entity.
21301 Use FONT_SET_STYLE to set a style-related font property. If a
21302 font is scalable, set avgwidth property to 0. Set font-entity
21303 property by font_put_extra.
bba3e508 21304 (font_matches_spec): Adjust for the format change of font-entity.
aac0c6e3
MR
21305 (w32_weight_table, w32_decode_weight): New variables.
21306 (w32_encode_weight): New function.
bba3e508 21307 (fill_in_logfont): Adjust for the format change of font-spec.
aac0c6e3
MR
21308 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
21309 weight value.
bba3e508 21310 (w32font_driver): Adjust for the change of struct font_driver.
aac0c6e3
MR
21311
21312 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
21313 conditionals. Don't check enable_font_backend. Surround non-used
21314 code by "#ifdef OLD_FONT" and "endif".
21315 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
bba3e508 21316 (FONT_AVG_WIDTH): Adjust for the change of struct font.
aac0c6e3
MR
21317
21318 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
21319 conditionals. Don't check enable_font_backend. Delete all codes
21320 used only when USE_FONT_BACKEND is not defined. Surround non-used
21321 code by "#ifdef OLD_FONT" and "endif".
21322
21323 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
21324 (uniscribe_open): Return value changed to font-object.
21325 Adjusted for the format change of font-object.
bba3e508 21326 (uniscribe_otf_capability): Adjust for the change of struct font.
aac0c6e3 21327 (add_opentype_font_name_to_list): Don't downcase names.
bba3e508 21328 (uniscribe_font_driver): Adjust for the change of struct
aac0c6e3
MR
21329 font_driver.
21330
213312008-05-13 Chong Yidong <cyd@stupidchicken.com>
21332
21333 * dispnew.c (update_frame_1): Check if tty output is still valid
21334 before flushing it.
21335
213362008-05-13 Jan Djärv <jan.h.d@swipnet.se>
21337
21338 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
21339 to Gtk+ menus.
21340
213412008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
21342
21343 * dired.c (file_name_completion): Tweak the code so as to always do it
21344 in a single pass. Tighten the scope of some variables.
21345
21346 * dired.c (Qdefault_directory): New var.
21347 (file_name_completion): Use it instead of Fexpand_file_name.
21348 (syms_of_dired): Initialize it.
21349
213502008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
21351
21352 * fileio.c (double_dollars): Remove dead code.
21353
213542008-05-10 Eli Zaretskii <eliz@gnu.org>
21355
21356 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
21357 Mention w32-get-true-file-attributes in doc string.
21358
21359 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
21360
213612008-05-09 Glenn Morris <rgm@gnu.org>
21362
21363 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
21364 2008-04-23.
21365
213662008-05-09 Eli Zaretskii <eliz@gnu.org>
21367
21368 Support for reporting owner and group of each file on MS-Windows:
21369 * dired.c (stat_uname, stat_gname): New functions, with special
21370 implementation for w32.
21371 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
21372
21373 * w32.c: Rename the_passwd_* to dflt_passwd_*.
21374 (dflt_group_name): New static variable.
21375 (dflt_group): Rename from the_group.
21376 (init_user_info): Init dflt_group fields. Get user's group name
21377 from LookupAccountSid.
21378 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
21379 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
21380 New initialization states.
21381 (globals_of_w32): Initialize them to zero. Initialize the default
21382 group name to "None".
21383 (GetFileSecurity_Name): New global var, the name of the function
21384 to call for GetFileSecurity.
21385 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
21386 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
21387 (get_file_security, get_security_descriptor_owner)
21388 (get_security_descriptor_group, is_valid_sid)
21389 (get_file_security_desc, get_rid, get_name_and_id)
21390 (get_file_owner_and_group): New functions.
21391 (stat): Use get_file_security_desc and get_file_owner_and_group to
21392 report the owner and primary group of each file. Don't ignore the
21393 high 32 bits of file's size, now that st_size is 64-bit wide.
21394 Fix test when to get true file attributes.
21395 (init_user_info): Use get_rid instead of equivalent inline code.
21396 (fstat): Don't ignore the high 32 bits of file's size.
21397
213982008-05-09 Chong Yidong <cyd@stupidchicken.com>
21399
21400 * image.c (png_load): Use correct bit-depth for setting background
21401 color.
21402
214032008-05-08 Eli Zaretskii <eliz@gnu.org>
21404
21405 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
21406 epa-hook.elc.
21407
214082008-05-08 Juanma Barranquero <lekktu@gmail.com>
21409
21410 * font.c (Ffont_match_p): Don't use `iff' in docstring.
21411
214122008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
21413
21414 * macfns.c (Fx_create_frame): Make a copy of frame parameters
21415 because the original parameters are in pure storage now.
21416 (mac_window): Remove unused params. Update callers.
21417
214182008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
21419
21420 * lread.c (substitute_object_recurse): Use lower-level primitives.
21421 Don't signal errors when traversing sub-char-tables.
21422 Don't loop over all the possible characters when traversing char-tables.
21423
21424 * print.c (print_preprocess): Add sub-char-tables to the print-table,
21425 just like we do in print.c.
21426
214272008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
21428
21429 * minibuf.c (Ftry_completion): Remove code left over from when we used
21430 scmp instead of Fcompare_strings.
21431
214322008-05-04 Juanma Barranquero <lekktu@gmail.com>
21433
21434 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
21435
214362008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21437
21438 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
21439 Create bitmap context in native byte order.
21440
21441 * macterm.c (XDrawLine)
21442 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
21443 context in native byte order.
21444
214452008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21446
21447 * config.in: Regenerate.
21448
21449 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
21450 New definitions for Image I/O support.
21451 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
21452 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
21453 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21454 (mac_data_provider_release_data, image_load_image_io)
21455 [USE_MAC_IMAGE_IO]: New functions.
21456 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
21457 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
21458 (init_image_func_pointer) [MAC_OSX]: Remove function.
21459 (image_load_quartz2d) [MAC_OSX]: Check availability of
21460 CGImageCreateWithPNGDataProvider at compile time.
21461 Use lowercase `false' for boolean constant.
21462 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
21463 Use image_load_image_io.
21464 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
21465 Don't check MyCGImageCreateWithPNGDataProvider.
21466 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
21467 Don't call init_image_func_pointer.
21468
21469 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
21470
21471 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
21472 Make variable non-static.
21473 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
21474 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
21475
21476 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
21477 (RED_FROM_ULONG): Mask off higher bits.
21478 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
21479
21480 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
21481 Include AvailabilityMacros.h.
21482 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
21483 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
21484
214852008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
21486
21487 * chartab.c (Fset_char_table_range): If range is t, really set all
21488 chars to that value.
21489
214902008-05-03 Eli Zaretskii <eliz@gnu.org>
21491
21492 * dired.c (Ffile_attributes): Don't allow the device number become
21493 negative.
21494
214952008-05-02 Daiki Ueno <ueno@unixuser.org>
21496
21497 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
21498
214992008-05-02 Juri Linkov <juri@jurta.org>
21500
21501 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
21502 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
21503 DEFAULT argument as a list of default values in docstrings.
21504
215052008-05-01 Chong Yidong <cyd@stupidchicken.com>
21506
21507 * puresize.h (BASE_PURESIZE): Increase to 1210000.
21508
215092008-05-01 Martin Rudalics <rudalics@gmx.at>
21510
21511 * dispnew.c (change_frame_size_1): Preserve small windows when
21512 shrinking frames by calling set_window_height|width with third
21513 arg 2.
21514
21515 * window.h (struct window): Replace field too_small_ok by field
21516 resize_proportionally.
21517
21518 * window.c (make_window): Initialize resize_proportionally.
21519 (enlarge_window): Temporarily set resize_proportionally to make
21520 sure that shrink_windows does scale the window proportionally.
21521 (shrink_windows): When window has resize_proportionally set try
21522 to shrink it proportionally by stealing from other windows.
21523 (struct saved_window, Fset_window_configuration)
21524 (compare_window_configurations): Handle resize_proportionally.
21525 (WINDOW_TOTAL_SIZE): New macro.
21526 (window_min_size, shrink_windows, size_window): Use it.
21527 (check_min_window_sizes): Remove. Invalid values of
21528 window-min-height|width are handled by window_min_size_2 now.
21529 (size_window, Fsplit_window, enlarge_window)
21530 (adjust_window_trailing_edge, grow_mini_window): Don't call
21531 check_min_window_sizes.
21532 (window_min_size_2, window_min_size_1, window_min_size):
21533 New argument safe_p for retrieving "safe" minimum sizes.
21534 (Fdisplay_buffer, Fsplit_window, enlarge_window)
21535 (adjust_window_trailing_edge, grow_mini_window):
21536 Adjust arguments of window_min_size... functions.
21537 (shrink_windows): Argument min_size removed. New argument
21538 safe_p allows shrinking windows to their safe minimum sizes.
21539 Calculate minimum size and decide whether a window shall be
21540 deleted for each window individually.
21541 (size_window): When nodelete_p equals 2, tell shrink_windows to
21542 delete windows only if their new minimum size is no more safe.
21543 (shrink_window_lowest_first): Call window_min_size_1 to make
21544 sure to preserve modeline of bottom-most window when resizing
21545 the minibuffer.
21546 (Fset_window_configuration, Fcurrent_window_configuration)
21547 (compare_window_configurations): Do not handle
21548 window-min-height|width any more.
21549 (syms_of_window): Clarify window-min-height|width doc-strings.
21550
215512008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
21552
21553 * dired.c (file_name_completion): Fix up the encoding/decoding issue
21554 some more. Copy some of the code from Ftry_completions.
21555 Remove special case code that dates back to initial revision when the
21556 slash was only added when necessary and that can't trigger nowadays.
21557
215582008-04-27 Kenichi Handa <handa@m17n.org>
21559
21560 * font.c (font_prop_validate): Signal `error' instead of `font'.
21561
215622008-04-29 Jason Rumney <jasonr@gnu.org>
21563
21564 * w32fns.c (Fw32_battery_status): New defun.
21565 (syms_of_w32fns): Defsubr it.
21566
215672008-04-28 Andreas Schwab <schwab@suse.de>
21568
21569 * dired.c (file_name_completion): Fix another mixing of encoded
21570 and decoded names.
21571
215722008-04-28 Juanma Barranquero <lekktu@gmail.com>
21573
21574 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
21575
215762008-04-27 Juanma Barranquero <lekktu@gmail.com>
21577
21578 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
21579
215802008-04-27 Andreas Schwab <schwab@suse.de>
21581
21582 * dired.c (file_name_completion): Fix inappropriate mixing of
21583 encoded and decoded names.
21584
21585 * xterm.c (XTread_socket): Fix use of uninitialized variable.
21586
21587 * puresize.h (BASE_PURESIZE): Increase to 1200000.
21588
215892008-04-26 Eli Zaretskii <eliz@gnu.org>
21590
21591 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
21592 2008-03-31, it's not needed anymore with `struct stat' definition
21593 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
21594 for the same reasons.
21595
215962008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
21597
21598 * m/sparc.h: Additional redefinitions for GNU/Linux.
21599
216002008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21601
21602 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
21603 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
21604 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
21605 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
21606 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21607 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
21608 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21609 Likewise.
21610
21611 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
21612 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
21613 (mac_ax_number_of_characters): Add externs.
21614 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
21615 [USE_MAC_TSM]: Likewise.
21616 (mac_handle_text_input_event) [MAC_OSX]:
21617 Handle kEventTextInputOffsetToPos for no active input area case.
21618 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21619 (mac_handle_document_access_event)
21620 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
21621 (install_application_handler) [MAC_OSX]: Register handlers for
21622 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
21623 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
21624 Register mac_handle_document_access_event.
21625
21626 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
21627 Make functions non-static.
21628
216292008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
21630
21631 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
21632 (read_file_name_completion_ignore_case, insert_default_directory)
21633 (Qdefault_directory): Move to minibuffer.el.
21634 (Fread_file_name): Call the new `read-file-name' instead.
21635
216362008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21637
21638 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
21639 Make function non-static.
21640 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
21641 Remove function.
21642 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21643 Move to mactoolbox.c.
21644 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
21645
21646 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
21647 (mac_rect_make): New macro.
21648
21649 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
21650 instead of float.
21651 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21652 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
21653 (XSetBackground) [USE_CG_DRAWING]: Likewise.
21654 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
21655 CGRectMake.
21656 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
21657 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
21658 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
21659 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21660 instead of WindowRef in argument type.
21661 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
21662 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
21663 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
21664 instead of DISPLAY. All uses changed.
21665 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
21666 (x_calc_absolute_position): Simplify so as not to use
21667 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
21668
21669 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
21670 instead of WindowRef in argument type.
21671 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
21672 [TARGET_API_MAC_CARBON]: Remove externs.
21673 (create_apple_event, mac_event_parameters_to_lisp)
21674 [TARGET_API_MAC_CARBON]: Add externs.
21675
21676 * mactoolbox.c (Vmac_ts_script_language_on_focus)
21677 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
21678 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
21679 is clicked.
21680 (x_activate_menubar): Remove extern for saved_menu_event_location.
21681 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
21682 Move from mac.c.
21683
216842008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21685
21686 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
21687 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
21688
216892008-04-23 Jason Rumney <jasonr@gnu.org>
21690
21691 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
21692 attributes only for local files.
21693
21694 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
21695 default to Qlocal.
21696
216972008-04-22 Juri Linkov <juri@jurta.org>
21698
21699 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
21700 read-buffer-to-switch instead of using the letter "B".
21701
217022008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
21703
21704 * fileio.c (Qdefault_directory): New variable.
21705 (Fread_file_name): Use it to pass `dir' to the completion functions.
21706
217072008-04-20 Chong Yidong <cyd@stupidchicken.com>
21708
21709 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
21710
217112008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
21712
21713 * keyboard.c (Vpre_help_message): Remove.
21714 (show_help_echo): Remove default C code.
21715
21716 * dired.c (directory_files_internal, file_name_completion):
21717 Only call ENCODE_FILE if the string is indeed decoded.
21718
217192008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21720
21721 * Makefile.in (TOOLKIT_DEFINES): Remove.
21722 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
21723
217242008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21725
21726 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
21727 (mactoolbox.o): New target.
21728
21729 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
21730 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
21731
21732 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
21733 Use mac_set_frame_window_background instead of XSetWindowBackground.
21734 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
21735 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
21736 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
21737 instead of SetWindowTitleWithCFString.
21738 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
21739 Move function to mactoolbox.c.
21740 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
21741 Use mac_set_window_modified instead of SetWindowModified.
21742 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
21743 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
21744 (Fx_focus_frame): Use mac_front_non_floating_window instead of
21745 FrontNonFloatingWindow. Use mac_activate_window instead of
21746 ActivateWindow. Use mac_active_non_floating_window instead of
21747 ActiveNonFloatingWindow.
21748 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
21749 Use mac_show_hourglass and mac_hide_hourglass.
21750 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
21751 instead of GetGlobalMouse.
21752 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
21753 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
21754 Use mac_bring_window_to_front instead of BringToFront.
21755 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
21756 mactoolbox.c.
21757 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
21758 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
21759 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
21760 mactoolbox.c.
21761
21762 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
21763 (XtPointer): Move typedef from macmenu.c.
21764 (enum button_type): Move enum from macmenu.c.
21765 (widget_value): Move typedef from macmenu.c.
21766 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
21767 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21768 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21769 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21770 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21771 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21772 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21773 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
21774 (Selection): Move typedef from macselect.c.
21775 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
21776 macterm.c.
21777 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
21778 (mac_is_window_collapsed, mac_bring_window_to_front)
21779 (mac_send_window_behind, mac_hide_window, mac_show_window)
21780 (mac_collapse_window, mac_front_non_floating_window)
21781 (mac_active_non_floating_window, mac_activate_window)
21782 (mac_move_window_structure, mac_move_window, mac_size_window)
21783 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
21784
21785 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
21786 (enum mac_menu_kind): Move enum to mactoolbox.c.
21787 (min_menu_id): Move variable to mactoolbox.c.
21788 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
21789 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
21790 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
21791 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
21792 [TARGET_API_MAC_CARBON]: Likewise.
21793 (XtPointer): Move typedef to macgui.h.
21794 (enum button_type): Move enum to macgui.h.
21795 (widget_value): Move typedef to macgui.h.
21796 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
21797 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
21798 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
21799 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
21800 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
21801 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
21802 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
21803 (popup_activated_flag): Make variable non-static.
21804 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
21805 (add_menu_item, fill_menu, dispose_menus):
21806 Move functions to mactoolbox.c.
21807 (restore_show_help_function, menu_target_item_handler)
21808 (install_menu_target_item_handler, mac_handle_dialog_event)
21809 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
21810 [TARGET_API_MAC_CARBON]: Likewise.
21811 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
21812 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21813 (find_and_call_menu_selection, name_is_separator): Make function
21814 non-static.
21815 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
21816 to mactoolbox.c.
21817 (set_frame_menubar): Don't call install_menu_quit_handler.
21818 (menu_item_selection): New variable.
21819 (mac_menu_show): Use create_and_show_popup_menu.
21820 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
21821 selection but set variable menu_item_selection. All uses changed.
21822 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
21823 Call install_menu_quit_handler. Move to mactoolbox.c.
21824
21825 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
21826 (Selection): Move typedef to macgui.h.
21827 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
21828 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
21829 Make variables non-static.
21830 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21831 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
21832 Make functions non-static.
21833 (Vmac_service_selection) [MAC_OSX]: Likewise.
21834 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
21835 (mac_valid_selection_target_p, mac_clear_selection)
21836 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21837 (mac_put_selection_value, mac_selection_has_target_p)
21838 (mac_get_selection_value, mac_get_selection_target_list)
21839 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
21840 Move functions to mactoolbox.c.
21841 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
21842 Likewise.
21843 (copy_scrap_flavor_data, mac_handle_service_event)
21844 (install_service_handler) [MAC_OSX]: Likewise.
21845 (syms_of_macselect) <Vmac_dnd_known_types>:
21846 Use mac_dnd_default_known_types.
21847
21848 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
21849 Move to mactoolbox.c.
21850 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
21851 (Fx_selection_owner_p): Add EXFUN.
21852 (install_window_handler, remove_window_handler, XSetWindowBackground):
21853 Remove externs.
21854 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
21855 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
21856 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
21857 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
21858 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
21859 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
21860 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
21861 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
21862 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
21863 (create_and_show_popup_menu, mac_get_selection_from_symbol)
21864 (mac_valid_selection_target_p, mac_clear_selection)
21865 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21866 (mac_put_selection_value, mac_selection_has_target_p)
21867 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
21868 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
21869 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
21870 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
21871 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
21872 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
21873 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
21874 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21875 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
21876
21877 * mactoolbox.c: New file.
21878
218792008-04-18 Jason Rumney <jasonr@gnu.org>
21880
21881 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
21882
218832008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
21884
21885 * character.c (Fmultibyte_char_to_unibyte):
21886 Return latin1 chars unchanged.
21887
21888 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
21889 relocated if it points to `name'.
21890
218912008-04-17 Kenichi Handa <handa@m17n.org>
21892
21893 * data.c (Faset): Allow setting a multibyte character in an
21894 ASCII-only unibyte string.
21895
21896 * lisp.h (STRING_SET_MULTIBYTE): New macro.
21897
218982008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
21899
21900 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
21901 done in config.h.
21902
219032008-04-16 Juanma Barranquero <lekktu@gmail.com>
21904
21905 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
21906 (Fchar_direction): Add usage in the docstring.
21907
219082008-04-15 Chong Yidong <cyd@stupidchicken.com>
21909
21910 * keyboard.c (read_key_sequence): Remove always-true checks.
21911
219122008-04-14 Jason Rumney <jasonr@gnu.org>
21913
21914 * w32font.c (w32font_open_internal): Set max_bounds.descent in
21915 compatibility struct, for better underline positioning.
21916
219172008-04-13 David Hansen <david.hansen@gmx.net>
21918
21919 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
21920 string.
21921
219222008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
21923
21924 * m/hp800.h (XUINT, XSET): Remove.
21925
219262008-04-12 Juanma Barranquero <lekktu@gmail.com>
21927
21928 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
21929 previous change.
21930
219312008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
21932
21933 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
21934 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
21935
219362008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21937
21938 * keymap.h (map_keymap_canonical): Declare.
21939 * xmenu.c (single_keymap_panes): Use it.
21940
219412008-04-11 Glenn Morris <rgm@gnu.org>
21942
21943 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
21944 set the target's value to that of the alias.
21945
219462008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
21947
21948 * term.c (set_tty_color_mode): Left over typo.
21949
219502008-04-10 Michael Albinus <michael.albinus@gmx.de>
21951
21952 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
21953 only after check for file name handler functions. Signal, when
21954 native functionality is not supported.
21955 (syms_of_fileio): Declare it unconditionally.
21956
219572008-04-10 Jason Rumney <jasonr@gnu.org>
21958
21959 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
21960 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
21961
21962 * w32.c (logon_network_drive): Also logon to remote drives that
21963 are mapped to drive letters.
21964
219652008-04-10 Glenn Morris <rgm@gnu.org>
21966
21967 * xdisp.c (truncate-partial-width-windows): Doc fix.
21968
219692008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
21970
21971 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
21972 Move functions to minibuffer.el.
21973 (syms_of_fileio): Don't declare them.
21974
219752008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
21976
21977 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
21978 (syms_of_minibuf): Remove its initialization.
21979
21980 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
21981
219822008-04-09 Juanma Barranquero <lekktu@gmail.com>
21983
21984 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
21985
219862008-04-09 Jason Rumney <jasonr@gnu.org>
21987
21988 * makefile.w32-in (distclean): Delete makefile too.
21989 (maintainer-clean): New target.
21990
21991 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
21992
21993 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
21994 for new font backend and composite cases.
21995
219962008-04-09 Jan Djärv <jan.h.d@swipnet.se>
21997
21998 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
21999 Most of the code moved to run_timers.
22000 (do_pending_atimers): Call run_timers.
22001 (run_timers): New function.
22002
22003 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
22004 run atimers.
22005
22006 * process.c (wait_reading_process_output): The same as above.
22007
220082008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
22009
22010 * minibuf.c (last_exact_completion): Remove variable.
22011 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
22012 (complete_and_exit_1, complete_and_exit_2)
22013 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
22014 (Fdisplay_completion_list, display_completion_list_1)
22015 (Fminibuffer_completion_help, Fself_insert_and_exit)
22016 (Fexit_minibuffer, Fminibuffer_message): Move functions to
22017 minibuffer.el.
22018 (syms_of_minibuf): Remove corresponding initializations.
22019
22020 * keyboard.c (Qdeactivate_mark): New var.
22021 (command_loop_1): Use it to call `deactivate-mark'.
22022 (syms_of_keyboard): Initialize it.
22023
22024 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
22025 to another frame.
22026 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
22027 Don't call set_tty_color_mode.
22028 (store_frame_param): Reset previous_frame rather than call
22029 set_tty_color_mode.
22030 * term.c (set_tty_color_mode): Rewrite.
22031 * dispextern.h (set_tty_color_mode): New type.
22032 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
22033
220342008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
22035
22036 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
22037 for generic chars, which do not exist any more in emacs-unicode.
22038
220392008-04-08 Michael Albinus <michael.albinus@gmx.de>
22040
22041 * coding.c (detect_coding_emacs_mule)
22042 (Ffind_operation_coding_system): Fix typo.
22043
220442008-04-08 Jason Rumney <jasonr@gnu.org>
22045
22046 * w32uniscribe.c (SNAME): Extract only symbol name.
22047
22048 * w32font.h (struct w32_metric_cache): New struct.
22049 (w32font_info): Use it.
22050 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
22051 (CACHE_BLOCKSIZE): New constants.
22052
22053 * w32font.c (Qja, Qko, Qzh): New symbols.
22054 (syms_of_w32font): Initialise them.
22055 (font_matches_spec): Use them to filter by language.
22056 (recompute_cached_metrics): Remove function.
22057 (compute_metrics, clear_cached_metrics): New functions.
22058 (w32font_encode_char): Use them to manage metric cache.
22059 (w32font_text_extents): Cache metrics for all glyphs on demand.
22060 Delay converting glyph indices to WORD until needed.
22061 (w32font_open_internal): Initialize metric cache to empty.
22062 (registry_to_w32_charset): Charset should always be a symbol.
22063 (fill_in_logfont, list_all_matching_fonts): Family should
22064 always be a symbol.
22065
220662008-04-06 Jason Rumney <jasonr@gnu.org>
22067
22068 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
22069 Give up if glyph indices not supported. Use uniscribe obtained
22070 ABC widths for individual metrics. Map glyph clusters back to
22071 characters using fClusterStart flag. Return number of glyphs
22072 produced, not chars processed.
22073 (uniscribe_shape): Map char at FROM to current glyph.
22074
220752008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22076
22077 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
22078 Use SetMenuItemHierarchicalMenu.
22079
220802008-04-05 Jason Rumney <jasonr@gnu.org>
22081
22082 * image.c (pbm_load): Allow color values up to 65535.
22083 Throw an error if max_color_idx is outside the supported range.
22084 Report an error when image size is invalid.
22085 Read two bytes at a time when raw images have max_color_idx above 255.
22086
aac0c6e3
MR
220872008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
22088
22089 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
22090 append "CCL: Quitted" when the CCL program is quitted.
22091 (setup_ccl_program): Initialize ccl->quit_silently to zero.
22092
22093 * ccl.h (struct ccl_program): New member quit_silently.
22094
220952008-04-05 Chong Yidong <cyd@stupidchicken.com>
22096
22097 * search.c (compile_pattern_1): Treat non-nil and non-string of
22098 search-spaces-regexp as nil.
22099
22100 * minibuf.c (Fassoc_string): Tweak docstring.
22101
221022008-04-05 Eli Zaretskii <eliz@gnu.org>
22103
22104 * dired.c (Ffile_attributes): Support inode numbers wider than 32
22105 bits. Remove ugly WINDOWSNT-specific kludge introduced on
22106 2008-03-14 to force inode be positive.
22107
22108 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
22109 _S_* ones, since we now use our own sys/stat.h.
22110 (stat, fstat): Don't mangle the inode number.
22111 (init_user_info): Don't restrict UID and GID to 0-60000 range.
22112
221132008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
22114
22115 * frame.h (struct frame): Give one more bit to `visible' since we use
22116 values larger than 1 to indicate obscured frames on ttys.
22117
22118 * keymap.c (Qkeymap_canonicalize): New var.
22119 (Fmap_keymap_internal): New fun.
22120 (describe_map): Use keymap-canonicalize.
22121
22122 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
22123 (Fundo_boundary): Set them.
22124 (syms_of_undo): Initialize them.
22125 (record_point): Use them instead of last_point_position*.
22126 (last_undo_buffer): Change type.
22127
221282008-04-04 Jason Rumney <jasonr@gnu.org>
22129
22130 * w32font.c (w32font_text_extents): Use font's ascent and descent.
22131 (recompute_cached_metrics): Don't set ascent and descent per char.
22132
22133 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
22134 (uniscribe_check_otf): Add GC protection before consing.
22135 Rearrange loop for counting features.
22136
221372008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
22138
22139 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
22140 buffer with byte-size of source buffer.
22141
221422008-04-03 Chong Yidong <cyd@stupidchicken.com>
22143
22144 * callint.c (Fcall_interactively): Handle temporary region even
22145 when shift-select-mode is off.
22146
221472008-04-03 Jason Rumney <jasonr@gnu.org>
22148
22149 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
22150
221512008-04-03 Kenichi Handa <handa@m17n.org>
22152
22153 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
22154 (CATEGORY_MASK_UTF_16): Likewise.
22155 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
22156 binary file.
22157 (detect_coding): Add null-byte detection for a binary file.
22158 (detect_coding_system): Likewise.
22159
221602008-04-03 Jason Rumney <jasonr@gnu.org>
22161
22162 * w32uniscribe.c: New file.
22163
22164 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
22165
22166 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
22167
22168 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
22169 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
22170 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
22171 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
22172 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
22173 (Qphonetic): New symbols.
22174 (syms_of_w32font): Initialize them.
22175 (font_supported_scripts): Use them.
22176 (w32font_list_family): List all charsets.
22177 (w32font_text_extents, recompute_cached_metrics): Fix metric
22178 calculations.
22179 (w32_enumfont_pattern_entity): Make full_type a DWORD.
22180 Give opentype fonts their own format.
22181 (font_matches_spec): New arguments backend and logfont.
22182 Handle :otf spec for uniscribe backend.
22183 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
22184 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
22185
22186 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
22187 font backend.
22188 (globals_of_w32fns): Initialize uniscribe font backend.
22189
22190 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
22191 dependencies.
22192 (w32uniscribe.$(O)): New file to build.
22193 (FONT_OBJ): Include w32uniscribe.$(O).
22194 (LIBS): Add uniscribe libraries.
22195
22196 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
22197
221982008-04-02 Chong Yidong <cyd@stupidchicken.com>
22199
22200 * callint.c (Vshift_select_mode): New var.
22201 (Finteractive): Document new ^ spec.
22202 (Fcall_interactively): Call handle-shift-selection if the ^ spec
22203 is present.
22204
22205 * keyboard.c (Vthis_command_keys_shift_translated): New var.
22206 (command_loop_1): Avoid running the direct display versions of
22207 forward-char and backward-char if shift-selection may occur.
22208 (read_key_sequence): Set Vthis_command_keys_shift_translated if
22209 shift-translation takes place.
22210
22211 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
22212 avoid clobbering by define-minor-mode.
22213
22214 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
22215 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
22216
22217 * syntax.c (Fforward_word): Add ^ interactive spec.
22218
22219 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
22220 (Fscroll_right): Add ^ interactive spec.
22221
222222008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
22223
22224 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
22225
22226 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
22227
22228 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
22229
222302008-03-31 Juri Linkov <juri@jurta.org>
22231
22232 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
22233
222342008-03-30 Jan Djärv <jan.h.d@swipnet.se>
22235
22236 * gtkutil.c (xg_set_geometry): Fix indentation.
22237 (xg_resize_outer_widget): Remove.
22238 (x_wm_size_hint_off): Fix indentation.
22239 (xg_frame_set_char_size): Call flush_and_sync after
22240 gtk_window_resize.
22241 (x_wm_set_size_hint): Pass NULL as geometry window to
22242 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
22243 Add menu bar and tool bar height to base height.
22244 (xg_update_frame_menubar, free_frame_menubar)
22245 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
22246 (update_frame_tool_bar, free_frame_tool_bar):
22247 Change xg_resize_outer_widget to xg_frame_set_char_size.
22248
222492008-03-30 Michael Albinus <michael.albinus@gmx.de>
22250
22251 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
22252 (Fdbus_call_method): New parameter TIMEOUT.
22253 (dbus-send-signal): Optimize UNGCPRO call.
22254
222552008-03-29 Juri Linkov <juri@jurta.org>
22256
22257 * window.c (Fdisplay_buffer): Move call to
22258 Vsplit_window_preferred_function out of conditions that check
22259 if window is eligible for vertical splitting.
22260 When Vsplit_window_preferred_function is non-nil, call it and use
22261 its non-nil return value as window. Otherwise, continue doing
22262 vertical splitting using Fsplit_window with arg horflag=nil.
22263 (syms_of_window) <Vsplit_window_preferred_function>: Change the
22264 default value from `split-window' to nil.
22265
222662008-03-29 Juri Linkov <juri@jurta.org>
22267
22268 * callint.c (Fcall_interactively): Revert 2008-03-16 change
22269 for interactive code letters 'b' and 'B'.
22270
222712008-03-29 Eli Zaretskii <eliz@gnu.org>
22272
22273 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
22274 multibyte string.
22275
222762008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
22277
22278 * keyboard.c (pending_funcalls): New var.
22279 (timer_check): Run it.
22280 (syms_of_keyboard): Initialize it.
22281 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
22282 (Vdelete_terminal_functions): New vars.
22283 (syms_of_terminal): Initialize them.
22284 (Fdelete_terminal): Run delete-terminal-functions.
22285 * xdisp.c (safe_eval): Rewrite.
22286 (safe_call2): New fun.
22287 * frame.c (Qdelete_frame_functions): New var.
22288 (syms_of_frame): Initialize it.
22289 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
22290 * lisp.h (safe_call2, pending_funcalls): Declare.
22291
222922008-03-28 Andreas Schwab <schwab@suse.de>
22293
22294 * indent.c (Fmove_to_column): Move declaration before statements.
22295
222962008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
22297
22298 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
22299 (struct frame): Use bit fields for boolean vars.
22300
22301 * process.c (server_accept_connection): Simplify naming.
22302 (emacs_get_tty_pgrp): Use SDATA.
22303
22304 * coding.c (decode_coding_object): Fix last change.
22305
223062008-03-27 Jason Rumney <jasonr@gnu.org>
22307
22308 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
22309
223102008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
22311
22312 * charset.c (Fdefine_charset_internal): Change the way of
22313 registering charsets in Vcharset_order_list.
22314 (syms_of_charset): Make the charset `eight-bit' supplementary.
22315
223162008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
22317
22318 * regex.c (EXTEND_BUFFER): Change order of pointer addition
22319 operations, to avoid having the difference between pointers
22320 overflow.
22321
223222008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
22323
22324 * indent.c (check_display_width): New fun.
22325 (scan_for_column): Use it.
22326
22327 * data.c (syms_of_data): Mark most-positive-fixnum and
22328 most-negative-fixnum as constants.
22329
22330 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
22331
22332 * indent.c (scan_for_column): Extract from current_column_1.
22333 Merge with the same code from Fmove_to_column.
22334 (current_column_1, Fmove_to_column): Use it.
22335
223362008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
22337
22338 * keymap.c (map_keymap_internal): New fun.
22339 (map_keymap): Use it.
22340 (Fmap_keymap_internal): New fun.
22341 (Fmap_keymap): Remove left-out test from before make_save_value.
22342
22343 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
22344
22345 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
22346 Use XCAR/XCDR.
22347
22348 * process.h (struct Lisp_Process): Remove filter_multibyte.
22349 * process.c (QCfilter_multibyte): Remove.
22350 (setup_process_coding_systems): Don't use filter_multibyte.
22351 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
22352 (read_process_output): Don't adjust multibyteness to filter_multibyte.
22353 (Fset_process_filter_multibyte): Change the coding-system to
22354 approximate the previous behavior.
22355 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
22356 coding-system.
22357
22358 * coding.c (decode_coding_object): When not decoding into a buffer,
22359 obey the coding system's preference of (uni|multi)byte.
22360
223612008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
22362
22363 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
22364 every char is changed and has a different byte-length.
22365 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
22366 Fix int -> EMACS_INT.
22367
223682008-03-23 David Hansen <david.hansen@gmx.net>
22369
22370 * dbusbind.c (xd_read_message): Remove extra copying of message
22371 strings. Check for NULL `interface' or `member'.
22372
223732008-03-22 Eli Zaretskii <eliz@gnu.org>
22374
22375 * w32.c (readdir): If FindFirstFile/FindNextFile return in
22376 cFileName a file name that includes `?' characters, use the 8+3
22377 alias in cAlternateFileName instead.
22378
223792008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
22380
22381 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
22382
223832008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22384
22385 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
22386 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
22387 work on current_buffer only instead (that was already the case
22388 for some of the code anyway).
22389 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
22390 (temp_set_point, temp_set_point_both): Use EMACS_INT.
22391 (SET_PT, SET_PT_BOTH): Adjust.
22392 * intervals.h (set_point, temp_set_point, set_point_both)
22393 (temp_set_point_both): Remove redundant declarations.
22394
223952008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
22396
22397 * fileio.c (Finsert_file_contents):
22398 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
22399 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
22400 when buffer != current_buffer anyway.
22401
224022008-03-20 Andreas Schwab <schwab@suse.de>
22403
22404 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
22405 as default.
22406
224072008-03-19 Jason Rumney <jasonr@gnu.org>
22408
22409 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
22410 (syms_of_w32fns): Initialize them.
22411 (HOURGLASS_ID): New constant.
22412 (x_window_to_frame): Don't check hourglass_window.
22413 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
22414 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
22415 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
22416 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
22417 Only change the cursor if hourglass is not active.
22418 (Fx_create_frame): Initialize frame's current_cursor.
22419 (hourglass_atimer): Remove.
22420 (hourglass_started): New function.
22421 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
22422 (show_hourglass): Adapt to w32, changing argument to frame.
22423
22424 * w32term.h (struct w32_output): Remove hourglass_window.
22425 Add current_cursor.
22426
22427 * eval.c (call_debugger, Fsignal):
22428 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
22429 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
22430 (Fexecute_extended_command, cancel_hourglass_unwind):
22431 * minibuf.c (read_minibuf):
22432 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
22433
224342008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
22435
22436 * window.c (run_funs): New fun.
22437 (run_window_configuration_change_hook): Use it to run the buffer-local
22438 and the global part of the hook.
22439
22440 * xdisp.c (format_mode_line_unwind_data): Add window argument.
22441 (unwind_format_mode_line): Restore selected window.
22442 (x_consider_frame_title, Fformat_mode_line): Set selected window.
22443
224442008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
22445
22446 * editfns.c (Fchar_equal): Check they are valid characters.
22447
22448 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
22449
224502008-03-17 Andreas Schwab <schwab@suse.de>
22451
22452 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
22453 against a charset.
22454
22455 * lisp.h (Fbuffer_list): Declare.
22456
224572008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 22458
aac0c6e3
MR
22459 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
22460 handlebox_widget is != 0.
22461
224622008-03-16 Juri Linkov <juri@jurta.org>
22463
22464 * callint.c (Fcall_interactively): For interactive code letters
22465 'b' and 'B' put the buffer list into the list of default "future"
22466 values of the minibuffer.
22467
224682008-03-16 Andreas Schwab <schwab@suse.de>
22469
22470 * keyboard.c (read_key_sequence): Fix downcasing of letters with
22471 modifiers.
22472
22473 * regex.c (re_match_2_internal): Correct matching of a charset
22474 against latin-1 characters.
22475
224762008-03-16 Kenichi Handa <handa@m17n.org>
22477
22478 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
22479 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
22480 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
22481 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
22482 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
22483 CHAR_STRING_ADVANCE.
22484 (produce_chars): Fix for the case that the source and the
22485 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
22486 instead of CHAR_STRING_ADVANCE.
22487 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
22488 STRING_CHAR_ADVANCE.
22489
224902008-03-15 Andreas Schwab <schwab@suse.de>
22491
22492 * regex.c (re_match_2_internal): Correct matching of eight bit
22493 characters in unibyte strings.
22494
224952008-03-15 Martin Rudalics <rudalics@gmx.at>
22496
22497 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
22498 at end of range when it coincides with the end of the buffer.
22499
225002008-03-14 Eli Zaretskii <eliz@gnu.org>
22501
22502 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
22503
22504 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
22505
225062008-03-14 Jason Rumney <jasonr@gnu.org>
22507
22508 * editfns.c (initial_tz): New variable.
22509 (syms_of_editfns): Initialize it.
22510 (Fset_time_zone_rule): Set it when first called.
22511 Use it when TZSTRING is nil.
22512
22513 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
22514 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
22515 (monitor_from_point_fn, get_monitor_info_fn): New globals.
22516 (globals_of_w32fns): Initialize them.
22517 (compute_tip_xy): Use them to position tooltips.
22518
225192008-03-14 Glenn Morris <rgm@gnu.org>
22520
22521 * emacs.c (main): Revert previous change.
22522 (standard_args): Revert -internal-script back to -scriptload,
22523 and remove the long-option form.
22524
225252008-03-13 Glenn Morris <rgm@gnu.org>
22526
22527 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
22528 Remove option -enable-font-backend.
22529
225302008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
22531
22532 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
22533
225342008-03-11 Jan Djärv <jan.h.d@swipnet.se>
22535
22536 * xterm.c (x_connection_closed): For GTK: If this is the last
22537 terminal just exit without closing the display.
22538
225392008-03-11 Jason Rumney <jasonr@gnu.org>
22540
22541 * w32font.c (w32font_full_name): Use floor to round.
22542
f0131492 225432008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
22544
22545 * sound.c (alsa_configure): Declare vol at beginning of block.
22546
22547 * fontset.c (Ffontset_info): Remove extra semicolon.
22548
225492008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
22550
22551 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
22552 size of resulting string.
22553
225542008-03-10 Jason Rumney <jasonr@gnu.org>
22555
22556 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
22557
225582008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22559
22560 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
22561 Don't pretend as if characters with display property haven't been
22562 consumed for string-replacing-string case.
22563
225642008-03-08 Kim F. Storm <storm@cua.dk>
22565
22566 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
22567 (get_next_display_element, next_element_from_string)
22568 (next_element_from_ellipsis, next_element_from_buffer): Use it.
22569
225702008-03-08 Andreas Schwab <schwab@suse.de>
22571
22572 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
22573
225742008-03-06 Jason Rumney <jasonr@gnu.org>
22575
22576 * w32font.c (w32_registry): Take font_type argument. Use ANSI
22577 when charset not specified. Only translate ANSI to unicode when
22578 font_type is truetype.
22579 (w32font_coverage_ok): New function.
22580 (add_font_entity_to_list): Use it to filter unsuitable fonts.
22581
225822008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
22583
22584 * lread.c (Fread_char): Resolve modifiers.
22585 (Fread_char_exclusive): Likewise.
22586
22587 * character.c (char_resolve_modifier_mask): New function.
22588 (char_string): Use char_resolve_modifier_mask.
22589 (Fchar_resolve_modifiers): New function.
22590 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
22591 function.
22592
225932008-03-04 Jason Rumney <jasonr@gnu.org>
22594
22595 * makefile.w32-in: Always include w32font.c in the build.
22596 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
22597
225982008-03-04 Andreas Schwab <schwab@suse.de>
22599
22600 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
22601 (versionclean): Likewise.
22602
226032008-03-04 Juanma Barranquero <lekktu@gmail.com>
22604
22605 * .cvsignore: Add oo.
22606
226072008-03-03 Andreas Schwab <schwab@suse.de>
22608
22609 * coding.c (decode_coding_object): Inhibit gap shrinking while
22610 decoding in place.
22611
226122008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
22613
22614 * w32term.c: Remove unused include "gnu.h".
22615 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
22616
22617 * gnu.h: Rename to ...
22618 * emacs-icon.h: ... this.
22619 * xterm.c: Use emacs-icon.h instead of gnu.h.
22620 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
22621
226222008-03-03 Juanma Barranquero <lekktu@gmail.com>
22623
22624 * w32font.c: Include math.h.
22625
226262008-03-03 Jason Rumney <jasonr@gnu.org>
22627
22628 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
22629 Compute options separately.
22630 (w32font_open_internal): Set glyph_idx before caching metrics.
22631
22632 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
22633 Define if system headers don't.
22634 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
22635 (w32font_encode_char): Don't declare here.
22636
22637 * w32font.c (Quniscribe, QCformat): New symbols.
22638 (syms_of_w32font): Define them.
22639 (w32font_has_char): Indicate uncertainty.
22640 (w32font_encode_char): Encode as glyph point. Make static.
22641 (recompute_cached_metrics): New function.
22642 (w32font_open_internal): Use it. Set font to use glyph points
22643 initially. Set format based on type of font.
22644 (w32font_text_extents, w32font_draw): Optionally use glyph points.
22645 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
22646 on it. Set format based on information available here.
22647 (add_font_entity_to_list): Identify backend based on opentype_only.
22648
226492008-03-02 Andreas Schwab <schwab@suse.de>
22650
22651 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
22652
22653 * coding.c (decode_coding_big5, produce_chars):
22654 Fix typos in last change.
22655
226562008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
22657
22658 * gnu.h: New icon.
22659
226602008-03-02 Kenichi Handa <handa@m17n.org>
22661
22662 * coding.c (decode_coding_utf_8): When eol-type of CODING is
22663 `dos', don't decode '\r' if that is the last in the source.
22664 (decode_coding_utf_16, decode_coding_emacs_mule)
22665 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
22666 (decode_coding_raw_text, decode_coding_charset): Likewise.
22667 (produce_chars): Don't decode EOL here. Use EMACS_INT.
22668
226692008-03-01 Jason Rumney <jasonr@gnu.org>
22670
22671 * w32font.c (w32font_full_name): Report point size for scalable fonts.
22672
226732008-03-01 Kim F. Storm <storm@cua.dk>
22674
22675 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
22676
226772008-03-01 Jason Rumney <jasonr@gnu.org>
22678
22679 * w32font.c (w32font_full_name): New function.
22680 (w32font_open_internal): Use it.
22681
226822008-03-01 Kim F. Storm <storm@cua.dk>
22683
22684 * dispnew.c (line_draw_cost): Fix invalid glyph check.
22685
226862008-03-01 Jason Rumney <jasonr@gnu.org>
22687
22688 * font.c (font_unparse_fcname): Increase len when style is a symbol.
22689
226902008-03-01 Jan Djärv <jan.h.d@swipnet.se>
22691
22692 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
22693 xg_frame_resized when the event is for the edit widget.
22694
ef1b0ba7 22695 * gtkutil.h (xg_frame_resized): Rename from xg_resize_widgets.
aac0c6e3
MR
22696
22697 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
22698 set_char_size.
ef1b0ba7 22699 (xg_frame_resized): Rename from xg_resize_widgets. Remove all
aac0c6e3
MR
22700 operations on widgets here. Just set frame size if needed.
22701 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
22702 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
22703 (x_wm_set_size_hint): Set size hints on the edit widget only, not
22704 the whole frame.
22705 (xg_create_tool_bar): Move attachment of the tool bar to
22706 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
22707 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
22708
227092008-03-01 Jason Rumney <jasonr@gnu.org>
22710
22711 * w32fns.c (w32_msg_pump): Disable debug code.
22712
227132008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22714
22715 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
22716
227172008-02-29 Chong Yidong <cyd@stupidchicken.com>
22718
22719 * xdisp.c (next_overlay_string): Don't set
22720 overlay_strings_at_end_processed_p if we're currently reading from
22721 a display string.
22722
227232008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
22724
22725 * xdisp.c (get_overlay_strings_1): Fix typo.
22726
227272008-02-29 Chong Yidong <cyd@stupidchicken.com>
22728
22729 * xdisp.c (get_overlay_strings_1): Add missing argument type.
22730
227312008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
22732
22733 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
22734
22735 * xdisp.c (display_mode_element): Cancel the previous change.
22736 (decode_mode_spec): Likewise.
22737 (handle_auto_composed_prop): Don't make composition if it->string
22738 is a string.
22739
227402008-02-27 Kim F. Storm <storm@cua.dk>
22741
22742 * lisp.h (GLYPH): Change type from int to struct with separate char
22743 and face_id members.
22744 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
22745 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
22746 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
22747 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
22748 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
22749 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
22750 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
22751 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
22752 handle new Lisp glyph code encoding, either an integer or a cons.
22753
22754 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
22755 (GLYPH_ALIAS): Delete.
22756 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
22757 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
22758 (GLYPH_FROM_CHAR): Replace macro by ...
22759 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
22760
22761 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
22762 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
22763 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
22764 (GLYPH_INVALID_P): New macro.
22765 (spec_glyph_lookup_face): Update prototype.
22766
22767 * dispnew.c (line_draw_cost): Adapt to new glyph type.
22768 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
22769 new glyph code encoding.
22770 (spec_glyph_lookup_face): No return value; update passed glyph instead.
22771 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
22772
22773 * xdisp.c (get_next_display_element, next_element_from_display_vector):
22774 Adapt to new glyph type and new glyph code encoding.
22775
22776 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
22777
22778 * indent.c (current_column, current_column_1, Fmove_to_column)
22779 (compute_motion): Adapt to new glyph code encoding.
22780
22781 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
22782
227832008-02-27 Chong Yidong <cyd@stupidchicken.com>
22784
22785 * process.c (wait_reading_process_output): Check for window
22786 changes caused by timers.
22787 Suggested by Johan Bockgård.
22788
227892008-02-27 Glenn Morris <rgm@gnu.org>
22790
22791 * emacs.c (USAGE1): Add `--disable-font-backend'.
22792
227932008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
22794
22795 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
22796 is made to the buffer.
22797
227982008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
22799
22800 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
22801 (face_at_string_position):
22802 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
22803 (face_at_string_position):
22804 * xdisp.c (display_string, next_overlay_change):
22805 * buffer.h (overlays_at):
22806 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
22807 Update callers.
22808
228092008-02-26 Chong Yidong <cyd@stupidchicken.com>
22810
22811 * editfns.c (Fformat): Doc fix.
22812
228132008-02-26 Juanma Barranquero <lekktu@gmail.com>
22814
22815 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
22816 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
22817 (Ffont_otf_alternates, Fquery_font): Doc fixes.
22818
228192008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22820
22821 * buffer.c (Fbuffer_swap_text): New function.
22822 (syms_of_buffer): Defsubr it.
22823
228242008-02-25 Chong Yidong <cyd@stupidchicken.com>
22825
22826 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
22827
228282008-02-25 Jason Rumney <jasonr@gnu.org>
22829
22830 * w32font.c (w32font_draw): Draw one character at a time when padding.
22831
228322008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
22833
22834 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
22835 Handle a nil arg. Use run_window_configuration_change_hook.
22836 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
22837 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
22838 Use run_window_configuration_change_hook.
22839
228402008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22841
22842 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
22843 1-pixel width.
22844
228452008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
22846
22847 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
22848 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
22849 if the glyph in the font is zero pixel with.
22850
22851 * dispextern.h (struct glyph_string): New member padding_p.
22852
22853 * w32font.c (w32font_draw): Pay attention to s->padding_p.
22854
22855 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
22856
22857 * xfont.c (xfont_draw): Pay attention to s->padding_p.
22858
22859 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
22860
22861 * font.c: If the font driver doesn't have `shape' function, return Qnil.
22862
228632008-02-25 Jason Rumney <jasonr@gnu.org>
22864
22865 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
22866
228672008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
22868
22869 Allow fine-grained image-cache flushing.
22870 * dispextern.h (struct image): Add `dependencies' field.
22871 (clear_image_caches): Change arg to Lisp_Object.
22872 * image.c (make_image): Initialize `dependencies' field.
22873 (clear_image_cache): Change arg to allow fine-grained flushing.
22874 Perform the flush even if image-cache-eviction-delay is nil.
22875 (clear_image_caches): Change arg to Lisp_Object.
22876 (Fclear_image_cache): Expand meaning of the argument.
22877 (mark_image): Mark `dependencies' field.
22878 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
22879 (lface_hash): Use XHASH rather than XFASTINT.
22880 (face_at_buffer_position): Fix int -> EMACS_INT position.
22881 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
22882 (select_frame_for_redisplay): Remove code duplication.
22883 (redisplay_internal): Adapt arg to call to clear_image_caches.
22884
228852008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
22886
22887 * s/vms4-0.h:
22888 * s/vms4-2.h:
22889 * s/vms4-4.h:
22890 * s/vms5-5.h: Remove, unused.
22891
22892 * s/irix5-2.h:
22893 * s/irix6-0.h:
22894 * s/riscos5.h:
22895 * s/mach-bsd4-3.h:
22896 * m/mips4.h: Remove files for obsolete systems.
22897
22898 * Makefile.in:
22899 * filelock.c:
22900 * unexmips.c:
22901 * m/hp9000s300.h:
22902 * m/iris4d.h:
22903 * s/aix3-1.h:
22904 * s/hpux.h:
22905 * s/msdos.h:
22906 * s/usg5-0.h:
22907 * s/usg5-2-2.h:
22908 * s/usg5-2.h:
22909 * s/usg5-3.h: Remove references to obsolete variables.
22910
22911 * s/irix5-0.h: Remove, move all the contents ...
22912 * s/irix6-5.h: ... here. Simplify.
22913 * config.in: Regenerate.
22914
229152008-02-24 Jason Rumney <jasonr@gnu.org>
22916
22917 * w32term.c (x_draw_glyph_string_background): Clear the background
22918 manually when cleartype is in use.
22919 (x_draw_glyph_string_foreground): Draw text transparently when
22920 cleartype is in use.
22921
22922 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
22923 a font into it unless we have to.
22924
229252008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
22926
22927 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
22928 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 22929
aac0c6e3
MR
229302008-02-18 Jason Rumney <jasonr@gnu.org>
22931
22932 * w32fns.c (Fw32_shell_execute): Encode parameters.
22933
229342008-02-09 Eli Zaretskii <eliz@gnu.org>
22935
22936 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
22937
229382008-02-05 Juanma Barranquero <lekktu@gmail.com>
22939
22940 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
22941
229422008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
22943
22944 * xterm.c (x_set_offset): Don't change the gravity if
22945 CHANGE_GRAVITY is -1.
22946
229472008-02-23 Chong Yidong <cyd@stupidchicken.com>
22948
22949 * fileio.c (auto_save_error_occurred): New var.
22950 (auto_save_error): Set it.
22951 (Fdo_auto_save): Don't overwrite the error message if an auto-save
22952 error occurred.
22953
229542008-02-23 Eli Zaretskii <eliz@gnu.org>
22955
22956 * w32.c (globals_of_w32): Add initializations for
22957 g_b_init_get_sid_sub_authority and
22958 g_b_init_get_sid_sub_authority_count.
22959
229602008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
22961
22962 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
22963 (font_parse_xlfd): Use them for sanity check.
22964 (Finternal_set_font_style_table): Make sure the table is bijective.
22965
22966 Consolidate the image_cache to the terminal struct.
22967 * termhooks.h (P_): Remove redundant def.
22968 (struct terminal): New field `image_cache'.
22969 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
22970 of FRAME_X_IMAGE_CACHE.
22971 * xterm.h (struct x_display_info): Remove image_cache field.
22972 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22973 * w32term.h (struct w32_display_info): Remove image_cache field.
22974 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22975 * macterm.h (struct mac_display_info): Remove image_cache field.
22976 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
22977 * xterm.c (x_term_init):
22978 * w32term.c (w32_term_init):
22979 * macterm.c (mac_term_init): Set the image_cache in the terminal.
22980 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
22981 Remove declarations.
22982 (clear_image_caches, mark_image_cache): New declarations.
22983 * xfaces.c (clear_face_cache):
22984 * xdisp.c (redisplay_internal): Use clear_image_caches.
22985 * image.c (clear_image_cache): Don't check that a frame is on
22986 a window-system before checking if it shares the same cache.
22987 (clear_image_caches): New function.
22988 (Fclear_image_cache): Use it.
22989 (mark_image): Move from allo.c.
22990 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
22991 * alloc.c (mark_image, mark_image_cache): Move to image.c.
22992 (mark_object): Don't call mark_image_cache for frames.
22993 (mark_terminals): Call mark_image_cache.
22994
22995 * lisp.h (Fdelete_terminal): Declare.
22996
22997 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
22998 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
22999 wrong_type_argument.
23000
230012008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
23002
23003 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
23004 malayalam.el, and tamil.el. Add sinhala.el.
23005
230062008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
23007
23008 * xterm.c (x_connection_closed): Consolidate identical tests.
23009 (x_delete_terminal): Don't crash if called via x_connection_closed.
23010
230112008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
23012
23013 * xdisp.c (decode_mode_spec): New arg string.
23014 (display_mode_element): Adjust for the above change.
23015
230162008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
23017
23018 * callint.c (Fcall_interactively): Use AREF.
23019
230202008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
23021
23022 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
23023
230242008-02-18 Jan Djärv <jan.h.d@swipnet.se>
23025
23026 * xfns.c (Fx_show_tip): Set string to " " if empty.
23027
230282008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
23029
23030 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
23031 with Qt.
23032
230332008-02-17 Kenichi Handa <handa@m17n.org>
23034
23035 * ftfont.c (ftfont_shape): Return Lispy number.
23036
23037 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
23038 for GCs.
23039 (Finternal_set_font_selection_order): Call font_update_sort_order
23040 only when enable_font_backend is set.
23041 (realize_x_face): Set face->font_info to that of default face only
23042 when enable_font_backend is set.
23043
23044 * xdisp.c (handle_composition_prop): Set it->c to the fist
23045 character of the composed region.
23046 (fill_composite_glyph_string): Set base_face->font_info to
23047 s->font_info. Get a face for ascii from base_face->ascii_face.
23048 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
23049 with a face already decided.
23050 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
23051 non-negative.
23052 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
23053 call font_prepare_composition unconditionally.
23054
23055 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
23056
23057 * xterm.h (struct x_display_info): New member font.
23058
23059 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
23060 (x_set_mouse_face_gc, x_new_font): Likewise.
23061 (x_term_init): Setup display_info->font.
23062 (x_delete_terminal): Free display_info->font.
23063
23064 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
23065
23066 * ftxfont.c (ftxfont_default_fid): Delete it.
23067 (ftxfont_open): Set xfont->fid to 0.
23068 (ftxfont_end_for_frame): Clear data specific to the frame and the
23069 font-driver.
23070
23071 * xftfont.c (xftfont_default_fid): Delete it.
23072 (xftfont_open): Set xfont->fid to 0.
23073
23074 * fontset.c (FONTSET_OBJLIST): New macro.
23075 (fontset_find_font): Update font-object list of the fontset.
23076 (free_realized_fontset): New function.
23077 (free_face_fontset): Call free_realized_fontset.
23078 (Ffont_info): Call font_close_object only when enable_font_backend
23079 is set.
23080
23081 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
23082 [HAVE_NTGUI]: Include w32term.h.
23083 [MAC_OS]: Include macterm.ch.
23084 (font_otf_ValueRecord): Use make_number.
23085 (font_finish_cache): Fix handling of reference count.
23086 (font_clear_cache): Update num_fonts.
23087 (font_open_entity): Update smallest_char_width and
23088 smallest_font_height of the frame.
23089 (font_close_object): Update num_fonts.
23090 (Fclear_font_cache): Fix finding the target cache data.
23091
230922008-02-16 Glenn Morris <rgm@gnu.org>
23093
23094 * fontset.c (Finternal_char_font): Fix compilation warning.
23095
230962008-02-16 Eli Zaretskii <eliz@gnu.org>
23097
23098 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
23099 instead of char arrays. Enlarge the size of array passed to
23100 get_token_information.
23101
23102 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
23103 warnings.
23104
231052008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
23106
23107 * .gdbinit: Don't set `args', it breaks gdb --args.
23108
231092008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
23110
23111 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
23112 within a narrowed buffer.
23113
231142008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
23115
23116 * coding.c (decode_coding_object, encode_coding_object):
23117 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
23118
231192008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
23120
23121 * coding.c (coding_set_destination): Use BEG_BYTE rather than
23122 hardcoding 1.
23123 (detect_coding_system):
23124 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
23125 (string_char_to_byte, string_byte_to_char, insert_from_gap):
23126 * insdel.c (insert_from_gap):
23127 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
23128 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
23129 (string_to_multibyte):
23130 * character.c (chars_in_text, multibyte_chars_in_text):
23131 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
23132
23133 * character.h (FETCH_STRING_CHAR_ADVANCE)
23134 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
23135 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
23136 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
23137
23138 * casefiddle.c (casify_region): Only call after-change and composition
23139 functions on the part of the region that was changed.
23140
23141 * keyboard.c (read_avail_input):
23142 * frame.c (Fdelete_frame): Call Fdelete_terminal.
23143
231442008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23145
23146 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
23147 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
23148
231492008-02-11 Juanma Barranquero <lekktu@gmail.com>
23150
23151 * w32menu.c (push_submenu_start, push_submenu_end)
23152 (push_left_right_boundary, push_menu_pane, push_menu_item):
23153 * keyboard.c (read_key_sequence): Don't pass args with side effects
23154 to AREF, it fails when compiling with -DENABLE_CHECKING.
23155
231562008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
23157
23158 * Makefile.in (${lispsource}international/charprop.el):
23159 Delete this target.
23160
23161 * search.c (boyer_moore): Fix incorrect synching of the trunk and
23162 emacs-unicode-2.
23163
231642008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
23165
23166 * terminal.c (Fdelete_terminal): Clean up the `force' path.
23167
231682008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23169
23170 * frame.c (Qnoelisp): New symbol.
23171 (syms_of_frame): Initialize it.
23172 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
23173 harmless Elisp code, from a strong `force' from x_connection_closed.
23174 * frame.h (Qnoelisp): Declare.
23175 * xterm.c (x_connection_closed): Pass `noelisp'.
23176
23177 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
23178 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
23179 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
23180 rather than `int' for the type of `type'.
23181
231822008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
23183
23184 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
23185
23186 * Makefile.in (GNUC): Remove support for gcc-1.x.
23187
231882008-02-10 Richard Stallman <rms@gnu.org>
23189
23190 * lisp.h (ASET): Use AREF, not ASLOT.
23191
231922008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
23193
23194 * lisp.h (ASET): Check bounds.
23195
231962008-02-10 Glenn Morris <rgm@gnu.org>
23197
23198 * buffer.c (mode-name): Doc fix.
23199
232002008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23201
23202 * Makefile.in:
23203 * emacs.c:
23204 * gmalloc.c:
23205 * keyboard.c:
23206 * lisp.h:
23207 * m/ibm370aix.h:
23208 * process.c:
23209 * regex.c:
23210 * s/hpux.h:
23211 * sysdep.c:
23212 * sysselect.h:
23213 * systty.h:
23214 * unexec.c:
23215 * w32term.c:
23216 * xsmfns.c:
23217 * xterm.c: Remove code that deals with obsolete variables.
23218
23219 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
23220
23221 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
23222 nothing else needs it anymore.
23223
232242008-02-09 Eli Zaretskii <eliz@gnu.org>
23225
23226 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
23227 instead of unibyte_char_to_multibyte.
23228
232292008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
23230
23231 * s/gnu-linux.h: Remove commented out code.
23232
23233 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
23234
23235 * Makefile.in: Update what RMS says about using autoconf.
23236 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
23237 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
23238 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
23239 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
23240
232412008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
23242
23243 * keymap.c (Fkey_description): Move side effect outside of macro call.
23244
23245 * xfaces.c (Finternal_make_lisp_face):
23246 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
23247
23248 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
23249 (syms_of_fontset): Use ASET.
23250
23251 * fns.c (concat): Move side effect outside of macro call.
23252 (hash_clear): Use ASET.
23253
232542008-02-08 Richard Stallman <rms@gnu.org>
23255
23256 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
23257 If FORCE, and frame has a surrogate minibuffer for another frame,
23258 delete the other frame first.
23259
232602008-02-07 Timo Savola <timo.savola@iki.fi>
23261
23262 * xterm.c (x_detect_focus_change): Handle embed client message.
23263 (handle_one_xevent): Ditto.
23264 (handle_one_xevent): If embedded and we get a button press/release,
23265 request focus.
23266 (xembed_set_info, xembed_send_message): New functions.
23267 (x_make_frame_visible): Call xembed_set_info if embedded.
23268 (x_make_frame_invisible): Call xembed_set_info if embedded.
23269 (x_term_init): Initialize Xatom_XEMBED.
23270 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
23271 (x_iconify_frame): Ditto.
23272
23273 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
23274 (enum xembed_info, enum xembed_message, enum xembed_focus)
23275 (enum xembed_modifier, enum xembed_accelerator): New.
23276 (xembed_set_info, xembed_send_message): Declare.
23277 (FRAME_X_EMBEDDED_P): New.
23278
23279 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
23280 gtk_plug_new.
23281
23282 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
23283 window ID of a frame.
23284 (x_window): Reparent frame if embedded.
23285 (Fx_create_frame): Don't set border width if embedded.
23286
23287 * emacs.c (USAGE3): Add --parent-id.
23288 (standard_args): Ditto.
23289
232902008-02-07 Jan Djärv <jan.h.d@swipnet.se>
23291
23292 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
23293
232942008-02-07 Jim Meyering <meyering@redhat.com>
23295
23296 Use "do...while (0)", not "if (1)...else" in macro definitions.
23297 The latter provokes a warning from gcc about the empty else, when
23298 followed by ";". Also, without that trailing semicolon, it would
23299 silently swallow up any following statement.
23300 * syntax.h (SETUP_SYNTAX_TABLE)
23301 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
23302 * buffer.h (DECODE_POSITION): Likewise.
23303 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
23304 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
23305 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
23306 (FETCH_CHAR_ADVANCE): Likewise.
23307 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
23308
233092008-02-07 Jim Meyering <meyering@redhat.com>
23310
23311 * lread.c [lint]: Don't include <sys/inode.h>.
23312
233132008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
23314
23315 * xselect.c (x_handle_dnd_message):
23316 * xmenu.c (digest_single_submenu, xmenu_show):
23317 * xdisp.c (with_echo_area_buffer_unwind_data)
23318 (format_mode_line_unwind_data, unwind_format_mode_line)
23319 (display_menu_bar):
23320 * eval.c (Ffetch_bytecode):
23321 * doc.c (store_function_docstring):
23322 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
23323 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
23324 * buffer.c (add_overlay_mod_hooklist): Use ASET.
23325
233262008-02-07 Kenichi Handa <handa@m17n.org>
23327
23328 * ftxfont.c (ftxfont_open): Don't set
23329 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
23330
23331 * ftfont.c (ftfont_open): Fix previous change.
23332
233332008-02-06 Jason Rumney <jasonr@gnu.org>
23334
23335 * w32font.c (w32font_text_extents): Fill in lbearing metric.
23336 Use cached metrics for ASCII characters.
23337 (w32font_open_internal): Don't set font's owning_frame.
23338 Cache metrics for ASCII characters.
23339
23340 * w32font.h (struct w32font_info): Add ascii_metrics.
23341 Remove owning_frame.
23342
233432008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
23344
23345 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
23346 to negative value.
23347
23348 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
23349
23350 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
23351
23352 * charset.c (syms_of_charset): Set QCtest and Qeq.
23353
233542008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
23355
23356 * process.c (Fstart_process):
23357 * callproc.c (Fcall_process): Handle the case where
23358 Funhandled_file_name_directory returns nil.
23359
23360 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
23361 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
23362 * font.c (check_gstring): Use them and AREF to access the vector before
23363 we know it's really a gstring.
23364 (Ffont_shape_text): Fix typo.
46e722a9 23365 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
23366
23367 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
23368 Declare.
23369
23370 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
23371
233722008-02-05 Jason Rumney <jasonr@gnu.org>
23373
23374 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
23375 Set smallest_font_height and smallest_char_width in display info.
23376
233772008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
23378
23379 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
23380
233812008-02-05 Miles Bader <miles@gnu.org>
23382
23383 * xfaces.c (get_lface_attributes, merge_named_face)
23384 (lookup_named_face, lookup_derived_face, realize_named_face):
23385 Revert 2008-02-01 change by cyd@stupidchicken.com.
23386
233872008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
23388
23389 * fontset.c (Ffontset_info): Handle the case of inhibitting the
23390 fallback fonts.
23391 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
23392
233932008-02-04 Jason Rumney <jasonr@gnu.org>
23394
23395 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
23396 set full_name.
23397 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
23398
233992008-02-03 Jason Rumney <jasonr@gnu.org>
23400
23401 * makefile.w32-in (OBJ1): Include font.o here.
23402 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
23403
234042008-02-02 Jason Rumney <jasonr@gnu.org>
23405
23406 * makefile.w32-in (temacs): Bump EMHEAP to 21.
23407
234082008-02-01 Jason Rumney <jasonr@gnu.org>
23409
23410 * s/cygwin.h: Define VIRT_ADDR_VARIES.
23411
23412 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
23413
234142008-02-01 Andreas Schwab <schwab@suse.de>
23415
23416 * Makefile.in (shortlisp, lisp): Update for rename of
23417 ../lisp/language/myanmar.el.
23418
234192008-02-01 Chong Yidong <cyd@stupidchicken.com>
23420
23421 * xfaces.c (get_lface_attributes): Delete function.
23422 (merge_named_face, lookup_named_face, lookup_derived_face)
23423 (realize_named_face): Call lface_from_face_name directly, and use
23424 the fact that merge_face_vectors does not alter its FROM argument.
23425
234262008-02-01 Jason Rumney <jasonr@gnu.org>
23427
23428 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
23429 input in the default locale. Handle non-Unicode multibyte input.
23430
234312008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23432
23433 * fontset.c (reorder_font_vector): Exclude nil elements from the
23434 font group. Don't try multiple fonts.
23435 (fontset_font): Adjust for the above change.
23436 (Finternal_char_font): Return nil if the found font doesn't
23437 contain the character ch.
23438
23439 * Makefile.in (lisp, shortlisp): Add cham.el.
23440
234412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23442
23443 * font.h (FONTP): Make it return 1 also for a font-object.
23444
23445 * .gdbinit (xfontset): New function.
23446
23447 * font.c (font_find_for_lface): Check if the character C is
23448 supported or not only for the first font.
23449
23450 * fontset.c (reorder_font_vector): Fix typo.
23451 (fontset_find_font): Don't add a font-spec specifying a script.
23452 Use 0 (not Qt) for the indication of empty font-group. Change the
23453 format of RFONT-DEF. Return Qt if no font in the font-group
23454 support the character.
23455 (fontset_font): Adjust for the above change. If no font was
23456 found the character, remember that.
23457 (face_for_char): Adjust for the change of RFONT-DEF.
23458 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
23459 no font for the target.
23460 (Finternal_char_font): Adjust for the change of RFONT-DEF.
23461
234622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23463
23464 * font.c (font_load_for_face): Handle the case that the font in
23465 face->lface is a string.
23466
234672008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23468
23469 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
23470
234712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23472
23473 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
23474 Fix previous change. If the frame is not on a window system,
23475 signal an error.
23476
234772008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23478
bba3e508
SM
23479 * coding.c (decode_coding_object, encode_coding_object):
23480 Adjust marker positions after conversion.
aac0c6e3
MR
23481
23482 * lisp.h (struct Lisp_Marker): New member need_adjustment.
23483
234842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23485
23486 * font.c (font_find_for_lface): Fix the handling of the return
23487 value of font_has_char.
23488 (Ffont_shape_text): Fix previous change.
23489
23490 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
23491 (fontset_ref_and_range): Delete it.
23492 (fontset_find_font): Call char_table_ref_and_range instead of
23493 FONTSET_REF_AND_RANGE.
23494 (make_fontset): Don't setup font groups of Latin here.
23495 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
23496 (new_fontset_from_font): Make the specified font the default for
23497 all Latin characters.
23498
234992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23500
23501 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
23502 is on a window system before accessing the fontset of the frame.
23503
235042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23505
23506 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
23507
23508 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
23509 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
23510
23511 * font.c (Ffont_shape_text): If the font driver doesn't have a
23512 shaper function, make zero-width glyphs to have at least one-pixel
23513 width. Fix setting of `to' field of glyphs.
23514
235152008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23516
23517 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
23518 glyphs.
23519
23520 * font.h (struct font_driver): Improve docstring of member `shape'.
23521
235222008-02-01 Kenichi Handa <handa@m17n.org>
23523
23524 * composite.c (syms_of_composite): Fix docstring of
23525 auto-composition-function.
23526
23527 * font.h (LGLYPH_SIZE): New macro.
23528
23529 * font.c (Ffont_fill_gstring): Stop filling when a character not
23530 supported by the font is found.
23531 (Ffont_shape_text): When a shape callback function returns nil,
23532 try at most two more times with larger gstring.
23533 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
23534
23535 * xdisp.c (handle_auto_composed_prop): Change the argument to
23536 auto-composition-function.
23537
23538 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
23539 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
23540 Lispy glyph and store it in the lgstring.
23541
23542 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
23543
23544 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
23545
235462008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23547
23548 * font.c (Ffont_shape_text): Avoid unnecessary composition.
23549
23550 * fontset.c (Vfont_encoding_charset_alist): New variable.
23551 (syms_of_fontset): DEFVAR it.
23552 (reorder_font_vector, fontset_find_font): Optimize for the case of
23553 no need of reordering.
23554 (face_for_char): Map the charset property by
23555 Vfont_encoding_charset_alist.
23556
235572008-02-01 Jason Rumney <jasonr@gnu.org>
23558
23559 * w32font.c (logfonts_match): Don't check adstyle here.
23560 (font_matches_spec): Check here against physical font instead.
23561 (add_font_entity_to_list): Avoid some substitutions.
23562
23563 * font.c (font_parse_fcname): Default weight and slant to normal.
23564 (font_score): Prefer normal fonts if weight or slant unspecified.
23565 (font_score) [WINDOWSNT]: Scale weight difference down to closer
23566 match freetype scores.
23567
235682008-02-01 Jason Rumney <jasonr@gnu.org>
23569
23570 * w32font.c (w32font_text_extents): Don't use the frame stored in the
23571 font, as it may have been deleted.
23572 (w32_enumfont_pattern_entity): Map generic family to adstyle using
23573 most common hyphenless variation.
23574 (logfonts_match): Check generic family.
23575 (font_matches_spec): Don't check generic family here.
23576 (fill_in_logfont): Set generic family based on adstyle.
23577
23578 * w32font.h (w32font_get_cache): Update declaration.
23579
235802008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23581
23582 * ftfont.c (ftfont_get_cache): Adjust the argument type.
23583
23584 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
23585 If none of the new drivers are available, call font_update_drivers
23586 with the old drivers.
23587
23588 * w32font.c (w32font_get_cache): Adjust the argument type.
23589
23590 * xfont.c (xfont_get_cache): Adjust the argument type.
23591
23592 * font.h (struct font_driver): Change argument type of get_cache.
23593
23594 * xftfont.c (xftfont_start_for_frame): Delete prototype.
23595
23596 * font.c (Ffont_get): Fix arguments to Fassoc.
23597 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
23598 (font_clear_cache): New function.
23599 (font_list_entities, font_matching_entity): Use font_get_cache.
23600 (font_update_drivers): Call font_clear_cache when finishing a driver.
23601
23602 * fontset.c (fontset_find_font): Fix previous change.
23603
236042008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23605
23606 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
23607 dpyinfo->font_table.
23608 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
23609 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
23610
23611 * font.c (font_at): Handle the case that the arg C is negative.
23612 Handle the unibyte case.
23613 (Ffont_at): Call font_at with the arg C -1.
23614
23615 * xdisp.c (handle_auto_composed_prop): Don't get a character at
23616 the position here, and call font_at with the arg C -1.
23617 Don't check the range of the existing composition at the point.
23618
236192008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23620
23621 * fontset.c (fontset_add): New args charset_id and family.
23622 Change caller.
23623 (load_font_get_repertory, fontset_find_font): Assume that
23624 font_spec is always a font-spec object.
23625 (Fset_fontset_font): Always store a font-spec object in a fontset.
23626
23627 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
23628 instead of get_property_and_range.
23629
236302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23631
23632 * xftfont.c (struct xftfont_info): Delete the member ft_face.
23633 (xftfont_open): Don't keep locking face.
23634 (xftfont_close): Don't unlock face.
23635 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
23636
23637 * fontset.c (fontset_find_font): Don't prefer a font of
23638 supplementary charset.
23639
236402008-02-01 Kenichi Handa <handa@m17n.org>
23641
23642 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
23643 script, langsys_tag to langsys, new member script.
23644 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 23645 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
23646 listing to the script specified in that property. Fix arg to
23647 OTF_check_features.
23648
236492008-02-01 Jason Rumney <jasonr@gnu.org>
23650
23651 * w32font.h: New file.
23652
23653 * w32font.c: Include it.
23654 (struct w32font_info): Add owning_frame field. Move to w32font.h.
23655 (w32font_open): Set owning_frame.
23656 (w32font_text_extents): Use owning_frame.
23657 (struct font_callback_data): Add opentype_only field.
23658 (add_font_entity_to_list): Use it to filter fonts.
23659 Don't check against full name.
23660 (w32font_list_internal): New function.
23661 (w32font_list): Use it.
23662 (w32font_match_internal): New function.
23663 (w32font_match): Use it.
23664 (w32font_open_internal): New function.
23665 (w32font_open): Use it.
23666 (w32font_get_cache, w32font_close, w32font_has_char)
23667 (w32font_encode_char, w32font_text_extents, w32font_draw):
23668 Make non-static.
23669
23670 * makefile.w32-in (w32font.o): Depend on w32font.h.
23671
236722008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23673
23674 * charset.c (Fdefine_charset_internal): Record a supplementary
23675 charset at the tail of Vcharset_order_list.
23676
23677 * font.c (Ffont_shape_text): Fix the return value.
23678
23679 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
23680
23681 * xdisp.c (handle_auto_composed_prop): Fix previous change.
23682
236832008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23684
23685 * ftfont.c (struct OpenTypeSpec): New struct.
23686 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
23687 (ftfont_get_open_type_spec): New function.
23688 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
23689
23690 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
23691
236922008-02-01 Jason Rumney <jasonr@gnu.org>
23693
23694 * w32font.c (add_font_entity_to_list): Compare only the beginning
23695 of full name.
23696
236972008-02-01 Kenichi Handa <handa@m17n.org>
23698
23699 * xdisp.c (handle_auto_composed_prop): Simplify the code.
23700 Never return HANDLED_RECOMPUTE_PROPS.
23701
237022008-02-01 Kenichi Handa <handa@m17n.org>
23703
23704 * font.c (font_gstring_produce): Delete it.
23705
23706 * composite.h (COMPOSITION_METHOD):
23707 Handle COMPOSITION_WITH_GLYPH_STRING.
23708
237092008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23710
23711 * xfont.c (Qx): Delete.
23712 (syms_of_xfont): Don't initialize Qx.
23713
23714 * composite.h (enum composition_method):
23715 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
23716
237172008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23718
23719 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
23720 (choose_face_font): Accept new form of font-spec.
23721
23722 * frame.h (font_driver_list): Declare it unconditionally.
23723 (struct frame): Define members font_driver_list and font_data_list
23724 unconditionally.
23725
23726 * fontset.c: Include "font.h" unconditionally.
23727 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
23728 (Fset_fontset_font): Accept a font-spec object.
23729
23730 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
23731 PIXEL_SIZE part a wild card.
23732
23733 * dispextern.h (struct glyph_string): Define members clip and
23734 num_clips unconditionally.
23735 (struct face): Define members font_info and extra unconditionally.
23736
23737 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
23738 ftfont_info only when HAVE_LIBOTF is defined.
23739
237402008-02-01 Andreas Schwab <schwab@suse.de>
23741
23742 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
23743 and end.
23744
237452008-02-01 Jason Rumney <jasonr@gnu.org>
23746
23747 * w32font.c (w32font_driver): Add new fields.
23748
237492008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23750
23751 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
23752 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
23753 (LIBES): Add @M17N_FLT_CFLAGS@.
23754
23755 * composite.c (compose_text): Don't treat the new style
23756 composition specially.
23757
23758 * emacs.c (main): Call syms_of_font unconditionally.
23759
23760 * font.h (FONT_ENTITY_NOT_LOADABLE)
23761 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
23762 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
23763 (struct font_driver): New member shape.
23764 (font_registry_charsets): Extern it.
23765 (font_find_for_lface, font_prepare_composition): Adjust prototype.
23766 (font_otf_capability, font_drive_otf): Delete their externs.
23767
23768 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
23769 (font_charset_alist, font_registry_charsets): Move from xfont.c
23770 and rename.
23771 (font_prop_validate_otf): New function.
23772 (font_property_table): Register it for QCotf.
23773 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
23774 (font_drive_otf): Delete.
23775 (font_prepare_composition): New arg F. Adjust for the change of
23776 lispy gstring.
23777 (font_find_for_lface): New arg C.
23778 (font_load_for_face): Adjust for the change of font_find_for_lface.
23779 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
23780 lispy gstring.
23781 (Ffont_shape_text): New function.
23782 (Fopen_font): If the font size is not given, use 12-pixel.
23783 (Ffont_at): New arg STRING.
40b1a3a9 23784 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
23785 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
23786 conditionally.
23787
23788 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
23789 fonts of the same font-spec. Change the format of RFONT-DEF.
23790 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
23791 Adjust for the change of RFONT-DEF.
23792 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
23793
23794 * ftfont.h: New file.
23795
23796 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
23797 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23798 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23799 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
23800 font_otf_capability and font_drive_otf, set ftfont_shape.
23801 (ftfont_list): Adjust for the change of :otf property value.
23802 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
23803 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
23804 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
23805 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23806 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
23807 (otf_gstring, gstring, m17n_flt_initialized): New variables.
23808
23809 * w32term.c (x_draw_composite_glyph_string_foreground):
23810 Adjust for the change of lispy gstring.
23811
23812 * xdisp.c (handle_composition_prop): Adjust for the change of
23813 lispy gstring. Call a function for auto-composition with the
23814 third arg it->window.
23815 (fill_composite_glyph_string): Adjust for the change of lispy string.
23816 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
23817
23818 * xfaces.c (set_font_frame_param): Adjust for the change of
23819 font_find_for_lface.
23820
23821 * xfont.c (x_font_charset_alist): Move to font.c and rename.
23822 (xfont_registry_charsets): Likewise. Change caller.
23823 (syms_of_xfont): Don't handle x_font_charset_alist.
23824
23825 * xftfont.c: Include "ftfont.h".
23826 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
23827 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
23828 (xftfont_close) [HAVE_LIBOTF]: Close otf.
23829 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
23830 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
23831 Set xftfont_driver.shape to xftfont_shape.
23832
23833 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
23834 the change of lispy gstring.
23835
238362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23837
23838 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
23839
238402008-02-01 Jason Rumney <jasonr@gnu.org>
23841
23842 * w32font.c (w32font_draw): Fill background manually.
23843
238442008-02-01 Jason Rumney <jasonr@gnu.org>
23845
23846 * font.c (Qfontp): Remove unused symbol.
23847 (QCantialias): New symbol.
23848 (syms_of_font): Define it.
23849 (font_property_table): Set a validator for QCantialias.
23850
23851 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
23852 Define if not already.
23853 (QCfamily): Share with xfaces.c.
23854 (Qstandard, Qsubpixel, Qnatural): New symbols.
23855 (syms_of_w32font): Define them. Don't define QCfamily here.
23856 (w32_antialias_type, lispy_antialias_type): New functions.
23857 (w32_enumfont_pattern_entity): New arg requested_font.
23858 Set antialias parameter if non-default was requested.
23859 (fill_in_logfont): Fill in lfQuality if :antialias specified.
23860
238612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23862
23863 * lread.c (read1): Undo the previous change.
23864
238652008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
23866
23867 * frame.c (Fdelete_frame): Call font_update_drivers only when
23868 USE_FONT_BACKEND is defined.
23869
238702008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23871
23872 * font.h (struct font_bitmap): New member bits_per_pixel.
23873 (struct font_driver): New members start_for_frame and end_for_frame.
23874 (struct font_data_list): New struct.
23875 (font_put_frame_data, font_get_frame_data): Extern them.
23876
23877 * frame.h (struct frame): New member font_data_list.
23878
23879 * font.c (font_update_drivers): Call driver->start_for_frame and
23880 driver->end_for_frame at proper timings.
23881 (font_put_frame_data, font_get_frame_data): New functions.
23882 (Ffont_spec): Add usage in the docstring.
23883
23884 * frame.c (make_frame): Initialize f->font_data_list to NULL.
23885 (Fdelete_frame): Call font_update_drivers.
23886
23887 * xftfont.c (struct xftface_info): Delete the member xft_draw.
23888 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
23889 (xftfont_get_xft_draw): New function.
23890 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
23891 (xftfont_end_for_frame): New function.
23892 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
23893
23894 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
23895 Change argument. Cache GCs in the per-frame data.
23896 (struct ftxfont_frame_data): New struct.
23897 (ftxfont_draw_bitmap): New arg gc_fore and flush.
23898 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
23899 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
23900 (ftxfont_end_for_frame): New function.
23901 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
23902
23903 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
23904
239052008-02-01 Kenichi Handa <handa@m17n.org>
23906
23907 * xselect.c (Vselection_coding_system)
23908 (Vnext_selection_coding_system): Delete them.
23909 (syms_of_xselect): Don't declare selection-coding-system and
23910 next-selection-coding-system. They are declared in select.el.
23911
239122008-02-01 Jason Rumney <jasonr@gnu.org>
23913
23914 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
23915
23916 * w32fns.c: Include imm.h.
23917 (get_composition_string_fn, get_ime_context_fn): New optional
23918 system functions.
23919 (globals_of_w32fns): Load them from imm32.dll.
23920 (ignore_ime_char): New flag.
23921 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
23922 WM_IME_ENDCOMPOSITION messages.
23923
23924 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
23925 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
23926
239272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23928
23929 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
23930 (READCHAR_REPORT_MULTIBYTE): New macro.
23931 (readchar): New 2nd arg MULTIBYTE.
23932 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
23933 Make symbol's name multibyte according to the multibyteness of the
23934 source.
23935
239362008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23937
23938 * xfaces.c (face_for_overlay_string): Call lookup_face with
23939 correct arguments (fix of synching with the trunk).
23940
239412008-02-01 Kenichi Handa <handa@m17n.org>
23942
23943 * font.c (font_prop_validate_symbol, font_prop_validate_style)
23944 (font_prop_validate_non_neg, font_prop_validate_spacing):
23945 Delete argument prop_index.
23946 (font_property_table): Change arguments to validater. Change Callers.
23947 (font_lispy_object): Delete.
23948 (font_at): Use font_find_object instead fo font_lispy_object.
23949
239502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
23951
23952 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
23953 and file names.
23954
239552008-02-01 Jason Rumney <jasonr@gnu.org>
23956
23957 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
23958 (font_matches_spec): Remove debug output.
23959 (add_font_entity_to_list): Avoid using substituted fonts.
23960
239612008-02-01 Jason Rumney <jasonr@gnu.org>
23962
23963 * doc.c (Fsnarf_documentation):
23964 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
23965
239662008-02-01 Miles Bader <miles@gnu.org>
23967
23968 * dispextern.h (struct glyph_row): Only define "clip" field if
23969 HAVE_WINDOW_SYSTEM is defined.
23970
239712008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
23972
23973 Fix up multi-tty merge.
23974
23975 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
23976 and indentation.
23977
23978 * xfaces.c (free_realized_face, clear_face_gcs):
23979 Include font_done_for_face in the input_blocked section, just in case.
23980
23981 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
23982 (get_char_face_and_encoding): Undo last change and remove the *other*
23983 duplicate definition (i.e. keep the one that's better scoped and that
23984 includes code for the font-backend).
23985
23986 * terminal.c (create_terminal): Default keyboard_coding to
23987 `no-conversion' and terminal_coding to `undecided'.
23988
23989 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
23990
23991 * fontset.c (free_realized_fontsets): Check that the table entry does
23992 contain a fontset before trying to compare it to `base'.
23993
23994 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
23995 syms_of_charset, and syms_of_coding earlier because init_window_once
23996 now needs Vcoding_system_hash_table to be setup.
23997
23998 * coding.h (default_buffer_file_coding): Remove.
23999
24000 * coding.c (default_buffer_file_coding): Remove.
24001 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
24002 than ->symbol, and use the terminal-local coding system.
24003 (syms_of_coding): Don't setup the coding-systems that are not
24004 terminal-local.
24005 (Fdefine_coding_system_internal): Use XCAR/XCDR.
24006
24007 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
24008 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
24009
24010 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
24011 in chartab.c and were re-added here by mistake.
24012 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
24013
24014 * doc.c (Fsnarf_documentation):
24015 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
24016 src to etc.
24017
24018 * ChangeLog.10: Add mistakenly removed entry.
24019
240202008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
24021
24022 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
24023
240242008-02-01 Miles Bader <miles@gnu.org>
24025
24026 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
24027 Add extra args to FACE_FOR_CHAR.
24028
240292008-02-01 Kenichi Handa <handa@m17n.org>
24030
24031 * keymap.c (where_is_internal_1): If key is a cons, store the copy
24032 in sequence.
24033
24034 * chartab.c (map_sub_char_table, map_char_table): If the range
24035 contains just one character, call the function with that character
24036 even if the depth is not 3.
24037
240382008-02-01 Jason Rumney <jasonr@gnu.org>
24039
24040 * w32font.c (w32font_text_extents): Calculate metrics for the
24041 whole string.
24042
240432008-02-01 Jason Rumney <jasonr@gnu.org>
24044
24045 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
24046
240472008-02-01 Jason Rumney <jasonr@gnu.org>
24048
bba3e508
SM
24049 * w32term.c (x_set_glyph_string_clipping):
24050 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24051 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24052 Adjust for the change of struct glyph_string.
24053
24054 * w32font.c (w32font_draw): Do clipping here.
24055
240562008-02-01 Kenichi Handa <handa@m17n.org>
24057
24058 * xftfont.c (xftfont_draw): Adjust for the change of struct
24059 glyph_string.
24060
bba3e508
SM
24061 * xterm.c (x_set_glyph_string_clipping):
24062 Use get_glyph_string_clip_rects.
aac0c6e3
MR
24063 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
24064 Adjust for the change of struct glyph_string.
24065
24066 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
24067 the resulting clip(s}.
24068 (expose_overlaps): Add arg r. Change callers. Set it to
24069 row->clip temporarily.
24070 (expose_window): Redraw rows overlapping the exposed area.
24071
24072 * dispextern.h (struct glyph_row): New member clip.
24073 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
24074 clip_height, new member clip, and num_clips.
24075
240762008-02-01 Kenichi Handa <handa@m17n.org>
24077
24078 * data.c (Fchar_or_string_p): Fix docstring.
24079
240802008-02-01 Kenichi Handa <handa@m17n.org>
24081
24082 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
24083 create a temporary XftDraw object.
24084
240852008-02-01 Kenichi Handa <handa@m17n.org>
24086
24087 * font.c (Ffontp): Fix docstring.
24088
24089 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
24090 strong evidence of ISO-2022.
24091
240922008-02-01 Kenichi Handa <handa@m17n.org>
24093
24094 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
24095 SYNTAX_ENTRY_FOLLOW_PARENT.
24096
240972008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
24098
24099 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
24100 its type.
24101 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
24102 Update to the new type of weak_hash_tables and next_weak.
24103
24104 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
24105 a plain C pointer to Lisp_Hash_Table.
24106
24107 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
24108 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
24109 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
24110 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
24111 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
24112 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
24113 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
24114 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
24115 (GC_EQ): Remove since they've been identical to their non-GC_
24116 alter-egos ever since the markbit was eradicated.
24117
24118 * alloc.c:
24119 * buffer.c:
24120 * buffer.h:
24121 * data.c:
24122 * fileio.c:
24123 * filelock.c:
24124 * fns.c:
24125 * frame.h:
24126 * lisp.h:
24127 * macterm.c:
24128 * print.c:
24129 * process.c:
24130 * w32fns.c:
24131 * w32menu.c:
24132 * w32term.c:
24133 * xfns.c:
24134 * xmenu.c:
24135 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
24136
241372008-02-01 Kenichi Handa <handa@m17n.org>
24138
24139 * chartab.c (map_sub_char_table): Make it work for the top-level
24140 char-table. Fix handling of parent char-table.
24141 (map_char_table): Adjust for the above change.
24142
241432008-02-01 Jason Rumney <jasonr@gnu.org>
24144
24145 * w32font.c (Qgdi): Rename from Qw32.
24146
241472008-02-01 Jason Rumney <jasonr@gnu.org>
24148
24149 * w32bdf.c (get_quoted_string): Make function static.
24150
241512008-02-01 Kenichi Handa <handa@m17n.org>
24152
24153 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
24154 bigger ascent and descent than those of the font, use them as
24155 font's ascent and descent.
24156
241572008-02-01 Kenichi Handa <handa@m17n.org>
24158
24159 * Makefile.in (${lispsource}international/charprop.el): Move this
24160 target within "#ifdef HAVE_UNIDATA" and "#endif".
24161
241622008-02-01 Kenichi Handa <handa@m17n.org>
24163
24164 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
24165 (shortlisp): Add ../lisp/language/tai-viet.el.
24166
241672008-02-01 Ulrich Mueller <ulm@gentoo.org>
24168
24169 * Makefile.in (${lispsource}international/charprop.el): Depend on
24170 temacs${EXEEXT}.
24171
241722008-02-01 Jason Rumney <jasonr@gnu.org>
24173
24174 * w32font.c (w32font_close): Delete the GDI font object.
24175
24176 * w32menu.c: Include character.h.
24177
24178 * w32proc.c: Likewise.
24179
24180 * w32select.c: Likewise.
24181
24182 * makefile.w32-in (w32proc.o): Depend on character.h.
24183
241842008-02-01 Jason Rumney <jasonr@gnu.org>
24185
24186 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
24187
24188 * w32menu.c (syms_of_w32menu): Likewise.
24189
24190 * w32proc.c (syms_of_ntproc): Likewise.
24191
24192 * w32select.c (syms_of_w32select): Likewise.
24193
24194 * w32term.c (syms_of_w32term): Likewise.
24195
241962008-02-01 Jason Rumney <jasonr@gnu.org>
24197
24198 * w32font.c (w32font_draw): Delete brush after using it.
24199
242002008-02-01 Jason Rumney <jasonr@gnu.org>
24201
24202 * w32font.c (w32font_open): Don't set font_idx.
24203 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
24204 to font settings.
24205 (w32font_draw): Fill background explicitly.
24206
242072008-02-01 Jason Rumney <jasonr@gnu.org>
24208
24209 * w32term.c (w32_initialize): Don't call w32font_initialize.
24210
24211 * w32font.c (w32font_info): Remove subranges.
24212 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
24213 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
24214 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
24215 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
24216 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
24217 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
24218 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
24219 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
24220 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
24221 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
24222 New symbols.
24223 (font_callback_data): New struct.
24224 (w32font_list, w32font_match): Use it.
24225 (w32font_open): Don't populate subranges.
24226 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
24227 (w32font_encode_char): Always return unicode code-point as-is.
24228 (w32font_text_extents): Supply a transformation matrix to
24229 GetGlyphOutline. Never look up by glyph index. Avoid looping
24230 twice. Use unicode version of GetTexExtentPoint32 instead of
24231 glyph index version.
24232 (set_fonts_frame): Remove.
24233 (w32_enumfont_pattern_entity): Add frame parameter, use it to
24234 set frame parameter. Use backward compatible fake foundries.
24235 Save generic family in extra slot under QCfamily. Make width slot
24236 constant. Save QCspacing value. Save list of scripts instead of
24237 binary subranges.
24238 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
bba3e508
SM
24239 (add_font_entity_to_list): Use font_callback_data struct.
24240 Filter unwanted fonts.
aac0c6e3
MR
24241 (add_one_font_entity_to_list): Use font_callback_data struct.
24242 (w32_registry): Default to iso10646_1.
24243 (fill_in_logfont): Use dpi from extra slot. Don't bother with
24244 string font registries. Don't fill in font name if it is a generic
24245 family name, fill family instead. Use spacing, family and script
24246 extra info to fill pitch, family and charset fields.
24247 (list_all_matching_fonts): Use font_callback_data struct.
24248 (unicode_range_for_char): Remove.
24249 (font_supported_scripts): New function.
24250 (w32font_initialize): Remove.
24251 (syms_of_w32font): Update which symbols are defined.
24252
242532008-02-01 Jason Rumney <jasonr@gnu.org>
24254
24255 * font.c (font_pixel_size): Reverse assq_no_quit args.
24256
24257 * w32term.h (FONT_WIDTH): Report max width, not average.
24258 (FONT_MAX_WIDTH): Remove.
24259 (FONT_AVG_WIDTH): New macro.
24260
24261 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
24262 redefinition of FONT_WIDTH.
24263
24264 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
24265 (w32_cache_char_metrics): Use FONT_WIDTH.
24266
24267 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
24268
242692008-02-01 Jason Rumney <jasonr@gnu.org>
24270
24271 * w32font.c (w32font_open): Make lfHeight negative.
24272
24273 * w32fns.c (x_default_font_parameter): Use new style font name.
24274 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
24275
242762008-02-01 Jason Rumney <jasonr@gnu.org>
24277
24278 * w32font.c (QCsubranges): New symbol.
24279 (w32font_open, w32font_has_char): Get subranges from subproperty
24280 of extra.
24281 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
24282 (syms_of_w32font): Define :subranges symbol.
24283
24284 * font.c (font_put_extra): Expose externally.
24285
24286 * font.h (font_put_extra): Move declaration from font.c.
24287
24288 * font.c (Ffont_get): Use font driver to determine otf capability.
24289 (adjust_anchor): Check if driver defines anchor_point before using.
24290
24291 * w32font.c (w32font_open): Handle size, height and pixel_size better.
24292 (w32font_draw): Use options.
24293 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
24294 Fix detection of truetype fonts.
24295 (registry_to_w32_charset): Handle charsets other than iso8859-1
24296 expressed as lisp symbols.
24297 (w32_registry): Express charset as lisp symbol.
24298 (fill_in_logfont): Reverse pixel and point height logic.
24299 Don't set width here. Set quality to default.
24300
24301 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
24302 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
24303
24304 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24305 Remove redundant loop and allocation.
24306
24307 * makefile.w32-in (font.o, w32font.o): New objects.
24308 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
24309 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
24310
24311 * xdisp.c (fill_composite_glyph_string): Make the first arg to
24312 STORE_XCHARB a valid l-value.
24313
24314 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
24315 calculations for non-Truetype fonts.
24316 (x_draw_glyph_string): Sync with xterm.c.
24317 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
24318 Remove redundant code.
24319 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
24320
24321 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
24322 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
24323
24324 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
24325 (x_to_w32_charset, w32_to_x_charset): Expose externally.
24326
24327 * w32font.c: New file for w32 font backend.
24328
243292008-02-01 Kenichi Handa <handa@m17n.org>
24330
24331 * term.c: Don't include "buffer.h" twice.
24332
243332008-02-01 Kenichi Handa <handa@m17n.org>
24334
24335 * character.c (Funibyte_string): New function.
24336 (syms_of_character): Defsubr it.
24337
243382008-02-01 Jason Rumney <jasonr@gnu.org>
24339
24340 * w32term.c [USE_FONT_BACKEND]:
24341 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
24342 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
24343 (x_draw_glyph_string, x_draw_glyph_string_foreground)
24344 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
24345 (x_free_frame_resources): Sync with xterm.c.
24346
243472008-02-01 Andreas Schwab <schwab@suse.de>
24348
24349 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
24350 char-table size.
24351
243522008-02-01 Kenichi Handa <handa@m17n.org>
24353
24354 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
24355
243562008-02-01 Kenichi Handa <handa@m17n.org>
24357
24358 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
24359 font_otf_gpos, add font_drive_otf.
24360
24361 * fontset.c (fontset_find_font): Pay attention to font size
24362 specified for a font.
24363 (reorder_font_vector): Check contents of font_def.
24364
24365 * font.c (struct otf_list): Delete it.
24366 (otf_list): Make it a lisp variable.
24367 (otf_open): Use lispy otf_list.
24368 (generate_otf_features): Rename from parse_gsub_gpos_spec.
24369 (check_otf_features): New function.
24370 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
24371 New functions.
24372 (font_drive_otf): New function merging font_otf_gsub and
24373 font_otf_gpos.
24374 (font_open_for_lface): New arg spec. Change argument order.
24375 (font_load_for_face): Adjust for the change of font_open_for_lface.
24376 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
24377 Ffont_otf_gpos.
24378 (syms_of_font): Staticpro otf_list. Delete defsubr of
24379 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
24380
24381 * xfaces.c (set_font_frame_param): Adjust for the change of
24382 font_open_for_lface.
24383
24384 * font.h (font_open_for_lface): Adjust prototype.
24385 (struct font_driver): Delete members otf_gsub and otf_gpos, add
24386 member otf_drive.
24387 (font_otf_gsub, font_otf_gpos): Delete externs.
24388 (font_drive_otf): Extern it.
24389
243902008-02-01 Kenichi Handa <handa@m17n.org>
24391
24392 * font.c (font_at): If the window W is not on a window system,
24393 return Qnil.
24394
24395 * coding.c (produce_chars, encode_coding): Don't call
24396 insert_from_gap if no characters to produce.
24397
243982008-02-01 Kenichi Handa <handa@m17n.org>
24399
24400 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
24401 Fclear_face_cache.
24402
24403 * xfaces.c (face_for_font): Check also face->font==font->font.font.
24404
244052008-02-01 Miles Bader <miles@gnu.org>
24406
24407 * emacs.c (main): Change default value of `enable_font_backend' to 1.
24408 Parse "--disable-font-backend" option.
24409 (standard_args): Add "--disable-font-backend" option.
24410
244112008-02-01 Kenichi Handa <handa@m17n.org>
24412
24413 * fontset.c (fontset_find_font): New function.
24414 (fontset_font): Use fontset_find_font.
24415 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
24416 Register the specified font for all Latin characters.
24417 (new_fontset_from_font): Register the specified font for all Latin
24418 characters.
24419 (dump_fontset): For a realized fontset, include the base fontset
24420 name in the returned vector.
24421
244222008-02-01 Kenichi Handa <handa@m17n.org>
24423
24424 * character.h (CHAR_STRING): Cast C to unsigned on calling
24425 char_string.
24426
24427 * character.c (char_string): Type of arg C changed to unsigned.
24428 Signal an error if C is an invalid character code.
24429
24430 * editfns.c (general_insert_function, Fchar_to_string):
24431 Use CHARACTERP, not INTEGERP.
24432
244332008-02-01 Kenichi Handa <handa@m17n.org>
24434
24435 * character.h (MIN_MULTIBYTE_LEADING_CODE)
24436 (MAX_MULTIBYTE_LEADING_CODE): New macros.
24437
24438 * regex.c (analyse_first): Fix for multibyte characters in "case
24439 charset:" and "case categoryspec:".
24440
244412008-02-01 Andreas Schwab <schwab@suse.de>
24442
24443 * Makefile.in (LIBES): Move standard libraries to the end.
24444
244452008-02-01 Kenichi Handa <handa@m17n.org>
24446
24447 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
24448 nonzero, don't shrink the buffer nextb.
24449
24450 * buffer.h (struct buffer_text): New member inhibit_shrinking.
24451
24452 * coding.c (coding_alloc_by_making_gap): New arg offset.
24453 (alloc_destination): Call coding_alloc_by_making_gap with the arg
24454 offset.
24455 (decode_coding_iso_2022): Update coding->safe_charsets.
24456 (decode_coding_gap): Temporarily set
24457 current_buffer->text->inhibit_shrinking to 1.
24458
244592008-02-01 Kenichi Handa <handa@m17n.org>
24460
bba3e508
SM
24461 * xterm.c (x_draw_composite_glyph_string_foreground):
24462 Fix indexing into elements of s->cmp and s->char2b.
aac0c6e3
MR
24463
244642008-02-01 Juanma Barranquero <lekktu@gmail.com>
24465
24466 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
24467
244682008-02-01 Kenichi Handa <handa@m17n.org>
24469
24470 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
24471 target_multibyte instead of multibyte.
24472 (re_match_2_internal): Call bcmp_translate with target_multibyte.
24473 (bcmp_translate): Change the argument name from multibyte to
24474 target_multibyte.
24475
244762008-02-01 Kenichi Handa <handa@m17n.org>
24477
24478 These changes are to compile a regexp into a pattern that can be
24479 used both for multibyte and unibyte targets.
24480
24481 * Makefile.in (search.o): Depend on charset.h.
24482
24483 * character.c (multibyte_char_to_unibyte_safe): New function.
24484
24485 * search.c: Include "charset.h".
24486 (compile_pattern_1): Delete argument multibyte. Don't set
24487 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
24488 (compile_pattern): Don't compare cp->buf.target_multibyte.
24489 Compare cp->buf.charset_unibyte.
24490 (compile_pattern): Set cp->buf.target_multibyte.
24491
24492 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
24493
24494 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
24495
24496 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
24497 multibyte. Change callers.
24498 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
24499 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
24500 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
24501 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
24502 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
24503 (regex_compile): Make the compiled pattern usable both for
24504 multibyte and unibyte targets.
24505 (analyse_first): Make the fastmap usable both for multibyte and
24506 unibyte targets.
24507 (TRANSLATE_VIA_MULTIBYTE): Delete.
24508 (re_match_2_internal): Pay attention to the case that the
24509 multibyteness of bufp and target may be different.
24510
245112008-02-01 Kenichi Handa <handa@m17n.org>
24512
24513 * xdisp.c (x_produce_glyphs): When a font is not found, make the
24514 empty box occupy at least one column width.
24515
245162008-02-01 Miles Bader <miles@gnu.org>
24517
24518 * Makefile.in: Remove redundant HAVE_XFT clause.
24519
245202008-02-01 Kenichi Handa <handa@m17n.org>
24521
24522 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
24523
245242008-02-01 Kenichi Handa <handa@m17n.org>
24525
24526 * fontset.c (Finternal_char_font): Fix for the case of POSITION
24527 being nil.
24528
245292008-02-01 Kenichi Handa <handa@m17n.org>
24530
24531 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
24532
245332008-02-01 Kenichi Handa <handa@m17n.org>
24534
24535 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
24536
245372008-02-01 Kenichi Handa <handa@m17n.org>
24538
24539 * search.c (simple_search): Fix previous change.
24540
245412008-02-01 Kenichi Handa <handa@m17n.org>
24542
24543 * xftfont.c (ftfont_font_format): Extern declaration.
24544
24545 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
24546
24547 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
24548 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
24549
24550 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
24551 (ftfont_font_format): Fix previous change.
24552
24553 * font.h (Ffont_xlfd_name): EXFUN it.
24554
24555 * font.c (font_parse_xlfd): Fix the array size of `f'.
24556 (register_font_driver): Use EQ to compare driver->type.
24557
24558 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
24559 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
24560 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
24561
245622008-02-01 Kenichi Handa <handa@m17n.org>
24563
24564 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
24565 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
24566
245672008-02-01 Kenichi Handa <handa@m17n.org>
24568
24569 * xfont.c (xfont_open): Set font->format.
24570
24571 * xftfont.c (xftfont_open): Set font->format.
24572
24573 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
24574 (ftfont_list): Include FC_FONTFORMAT in FcObject.
24575 (ftfont_open): Set font->format.
24576 (ftfont_font_format): New function.
24577
24578 * font.h (struct font): New member format.
24579
24580 * font.c (Qopentype): New variable.
24581 (syms_of_font): Defsym it.
24582 (Fquery_font): Change the format of the last element of the return
24583 value.
24584
245852008-02-01 Kenichi Handa <handa@m17n.org>
24586
24587 * xfns.c (xic_create_xfontset): Try the default fontset name as a
24588 last resort.
24589
245902008-02-01 Kenichi Handa <handa@m17n.org>
24591
24592 * coding.c (detect_coding_charset): Fix detection of multi-byte
24593 charset.
24594
245952008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
24596
24597 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
24598
245992008-02-01 Kenichi Handa <handa@m17n.org>
24600
24601 * xdisp.c (get_next_display_element): Set it->face_id for the
24602 first component of a composition.
24603 (x_produce_glyphs): Check if the font is changed or not for composition.
24604
246052008-02-01 Kenichi Handa <handa@m17n.org>
24606
24607 * fontset.c (Qlatin): New variable.
24608 (syms_of_fontset): Define it as a lisp symbol.
24609 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
24610
246112008-02-01 Kenichi Handa <handa@m17n.org>
24612
24613 * font.c (font_unparse_fcname): Pay attention to the case that
24614 some of font property is a null string.
24615
246162008-02-01 Kenichi Handa <handa@m17n.org>
24617
24618 * term.c: Include "composite.h".
24619 (encode_terminal_code): Output all components of composition.
24620 Check the size of encode_terminal_src.
24621 (produce_glyphs): For composition, call produce_composite_glyph.
24622 (append_composite_glyph, produce_composite_glyph): New functions.
24623
24624 * xdisp.c (x_produce_glyphs): In handling composition, if a font
24625 is not found, get font_info from the current ascii face.
24626
246272008-02-01 Kenichi Handa <handa@m17n.org>
24628
24629 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
24630 buffer-file-name to Qnil before calling insert_from_buffer.
24631
24632 * font.c (font_unparse_fcname): Pay attention to the case that
24633 foundry is a null string.
24634
246352008-02-01 Kenichi Handa <handa@m17n.org>
24636
24637 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
24638
24639 * font.c (Qunicode_sip): New variable.
24640 (syms_of_font): Declare it as a Lisp symbol.
24641
24642 * font.h (Qunicode_sip): Extern it.
24643
246442008-02-01 Kenichi Handa <handa@m17n.org>
24645
24646 * composite.c (get_composition_id): Pay attention to TAB component.
24647
24648 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
24649 TAB. Adjust for the change of s->char2b which always points to
24650 the first element of allocated memory.
24651
24652 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
24653
24654 * xdisp.c (handle_composition_prop): Set it->c to the first
24655 non-TAB component.
24656 (fill_composite_glyph_string): Change argument.
24657 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
24658 (x_produce_glyphs): Fix handling of left/right padding.
24659
246602008-02-01 Kenichi Handa <handa@m17n.org>
24661
24662 * coding.c (detect_coding_system): Fix for handling off
24663 inhibit_iso_escape_detection. Fix for the case that no coding
24664 system is defined for a specific coding category.
24665
246662008-02-01 Kenichi Handa <handa@m17n.org>
24667
24668 * font.c (font_matching_entity): Delete unused local var.
24669
24670 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
24671 opening a font.
24672
24673 * fileio.c (Finsert_file_contents): On recovering a file, assume
24674 Unix-like eol.
24675 (choose_write_coding_system): On auto-saving a file, force
24676 Unix-like eol.
24677
24678 * coding.c (setup_coding_system): Fix setting of
24679 coding->common_flags based on eol_type.
24680 (coding_inherit_eol_type): If PARENT is not nil, be sure to
24681 inherit from it.
24682
246832008-02-01 Kenichi Handa <handa@m17n.org>
24684
24685 * alloc.c (NSTATICS): Increas to 0x600.
24686
246872008-02-01 Kenichi Handa <handa@m17n.org>
24688
24689 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
24690 (ftfont_list): Don't check :name property.
24691 (ftfont_match): New function.
24692 (ftfont_pattern_entity): If the pattern doesn't contain
24693 FC_SPACING, don't assume FC_MONO.
24694
24695 * font.h (struct font_driver): New member `match'.
24696 (font_update_drivers): Adjust prototype.
24697
24698 * font.c (font_parse_fcname, font_parse_name): Don't change :name
24699 property of FONT.
bba3e508
SM
24700 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring):
24701 Define them unconditionally.
aac0c6e3
MR
24702 (font_matching_entity): New function.
24703 (font_open_by_name): Try font_matching_entity if exact match is
24704 not found.
24705 (font_update_drivers): Delete the arg FONT. Return a list of
24706 actually used backends. Don't free faces, font caches here.
24707 Don't store data in frame parameters. Don't call x_set_font.
24708 (Ffont_spec): Store :name property as is.
24709 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
24710 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
24711 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
24712 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
24713 Call font->driver->otf_gsub instead of font_otf_gsub.
24714
24715 * frame.c (x_set_font_backend): Do more works that were done in
24716 font_update_drivers before.
24717
24718 * xfont.c (xfont_match): New function.
24719 (xfont_driver): Set xfont_driver.match to xfont_match.
24720 (xfont_draw): Set font in GC if necessary.
24721
24722 * ftxfont.c (ftxfont_match): New function.
24723 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
24724
24725 * xftfont.c (xftfont_match): New function.
24726 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
24727
247282008-02-01 Kenichi Handa <handa@m17n.org>
24729
24730 * font.h (struct font): New member scalable.
24731 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
24732 (font_otf_gsub): Adjust prototype.
24733
24734 * font.c (font_otf_capability): Fix handling of the default langsys.
24735 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
24736 Check the contents of SPEC.
24737 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
24738 (check_gstring): New function.
24739 (REPLACEMENT_CHARACTER): New macro.
24740 (font_otf_gsub): New arg alternate_subst. Be sure to set all
24741 glyph codes of GSTRING.
24742 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
24743 (font_prepare_composition): Set cmp->glyph_len.
24744 (font_open_entity): Set font->scalable.
24745 (Ffont_get): Handle :otf property.
bba3e508
SM
24746 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates):
24747 New functions.
aac0c6e3
MR
24748 (Fquery_font): Use font->font.full_name.
24749 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
24750 Sfont_otf_alternates.
24751
24752 * ftfont.c (ftfont_open): Set font->font.full_name and
24753 font->font.name properly. Fix calculation of font->font.height
24754 and font->min_width.
24755
24756 * ftxfont.c (ftxfont_create_gcs): New function.
24757 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
24758 (ftxfont_draw_backgrond): Fix filling region.
24759 (ftxfont_default_fid): New function.
24760 (ftxfont_open): Set xfont->fid to the return value of
24761 ftxfont_default_fid.
24762 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
24763 (ftxfont_done_face): Free only GCs that are created by
24764 ftxfont_create_gcs.
24765 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
24766
24767 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
24768 Clip to src->width, etc (not src->clip_XXX).
24769
24770 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
24771 FontBackend frame parameter.
24772
247732008-02-01 Kenichi Handa <handa@m17n.org>
24774
24775 * font.h (struct font_driver_list): New member `on'.
24776 (Fclear_font_cache): EXFUN it.
24777 (font_update_drivers): Extern it.
24778
24779 * font.c (font_unparse_fcname): Fix typo (swidth->width).
24780 (font_list_entities): Check driver_list->on.
40b1a3a9 24781 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
24782 (font_update_drivers): New function.
24783 (Fclear_font_cache): Check driver_list->on.
24784
24785 * frame.h (Qfont_backend): Extern it.
24786 (x_set_font_backend): Extern it.
24787
24788 * frame.c (Qfont_backend): New variable.
24789 (frame_parms): New element for font-backend.
24790 (x_set_font_backend): New function.
24791
24792 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
24793 FontBackend frame parameter.
24794 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
24795 x_set_font_backend.
24796
24797 * xfont.c (xfont_list): Don't try listing by :name property if the
24798 name is not for XLFD.
24799
248002008-02-01 Kenichi Handa <handa@m17n.org>
24801
24802 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
24803 (LGLYPH_SET_TO): New macros.
24804 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
24805 element of G is vector or not.
24806 (font_at): Extern it.
24807
24808 * font.c: Include window.h.
24809 (font_lispy_object): New function.
24810 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
24811 end of valid glyph.
24812 (font_close_object): Fix getting (struct font *).
24813 (font_at): New function.
24814 (Ffont_get): If FONT is a font-object, get entity from it.
24815 (Ffont_make_gstring): Initialize elements of glyphs with nil.
bba3e508
SM
24816 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX.
24817 Fix range check.
aac0c6e3
MR
24818 (Ffont_at): New function.
24819 (syms_of_font): Defsubr Sfont_at.
24820
24821 * xdisp.c (it_props): Move the entry for Qauto_composed to just
24822 before the entry for Qcomposition.
24823 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
24824 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
24825 the font in gstring.
24826 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
24827 LGLYPH_FORM (g) to detect the end of valid glyph.
24828 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
24829 we are composing with gstring.
24830
24831 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
24832 Check if adjustment is vector or not.
24833
24834 * Makefile.in (font.o): Make it depends on window.h.
24835
248362008-02-01 Kenichi Handa <handa@m17n.org>
24837
24838 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
24839 adjustment is vector or not.
24840
248412008-02-01 Miles Bader <miles@gnu.org>
24842
24843 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
24844
248452008-02-01 Kenichi Handa <handa@m17n.org>
24846
24847 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
bba3e508 24848 (LGLYPH_SET_WIDTH): Adjust for the change of LGLYPH format.
aac0c6e3
MR
24849 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
24850
24851 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
24852 (DEVICE_DELTA): Fix typo.
24853 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
24854 LGLYPH format.
24855
24856 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
24857 the change of LGLYPH format.
24858
248592008-02-01 Kenichi Handa <handa@m17n.org>
24860
24861 * ftfont.c (ftfont_list): Fix typo.
24862 (ftfont_build_basic_charsets): Don't include letters with diacritics.
24863
248642008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24865
24866 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
24867
24868 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
24869 xftface_info is non-NULL.
24870
248712008-02-01 Jan Djärv <jan.h.d@swipnet.se>
24872
24873 * ftfont.c (ftfont_list): Move misplaced #endif.
24874
248752008-02-01 Kenichi Handa <handa@m17n.org>
24876
24877 * ftfont.c (ftfont_list): Pay attention to the case that
24878 FC_CAPABILITY is not defined.
24879
248802008-02-01 Kenichi Handa <handa@m17n.org>
24881
24882 * xftfont.c (xftfont_open): Set charset related members to -1.
24883
24884 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
24885 QCname.
24886 (ftfont_open): Set charset related members to -1.
24887
24888 * fontset.c (Votf_script_alist): New variable.
24889 (syms_of_fontset): Initialize it.
24890 (fontset_font): Delete unused variable.
24891
24892 * fontset.h (Votf_script_alist): Extern it.
24893
24894 * font.c (font_find_for_lface): Optimize code.
24895
24896 * font.h (font_close_object, font_merge_old_spec): Extern them.
24897
248982008-02-01 Kenichi Handa <handa@m17n.org>
24899
24900 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
24901 (syms_of_font): Initialize them.
24902 (font_pixel_size): Allow float value in dpi.
24903 (font_prop_validate_type): Delete.
24904 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
24905 Change caller.
24906 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
24907 (font_prop_validate_extra): Delete.
24908 (font_prop_validate_spacing): New function.
24909 (font_property_table): Add elements for all known properties.
bba3e508
SM
24910 (get_font_prop_index): Rename from check_font_prop_name.
24911 New argument FROM. Change caller.
aac0c6e3
MR
24912 (font_prop_validate): Validate all known properties.
24913 (font_put_extra): Delete argument force. Change caller.
24914 (font_expand_wildcards): Make it static. Fix the way of shrinking
24915 the possible range.
24916 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
24917 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
24918 Change caller.
24919 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
24920 (font_parse_fcname): Delete argument merge. Fix parsing of point
24921 size. Don't validate properties values here. Change caller.
24922 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
24923 (font_open_by_name): Delete unused variable.
24924 (Ffont_spec): Likewise. Validate property values.
24925 (Ffont_match_p): New function.
24926
24927 * font.h (QCscalable): Extern it.
24928 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
24929
24930 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
24931
24932 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
24933 (xfont_list_pattern): New function.
24934 (xfont_list): Use xfont_list_pattern.
24935
249362008-02-01 Kenichi Handa <handa@m17n.org>
24937
24938 * font.h (Flist_fonts): EXFUN it.
24939
249402008-02-01 Jason Rumney <jasonr@gnu.org>
24941
24942 * w32term.c (w32_initialize): Add back smoothing_type and
24943 smoothing_enabled definitions.
24944
249452008-02-01 Kenichi Handa <handa@m17n.org>
24946
24947 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
24948 s->face->font on determining underline position.
24949
249502008-02-01 Kenichi Handa <handa@m17n.org>
24951
24952 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
24953 (font_has_char): Accept font-object too.
24954 (font_find_for_lface): Try at first with a size specified in face.
24955
249562008-02-01 Kenichi Handa <handa@m17n.org>
24957
24958 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
24959 font_open_by_name.
24960
249612008-02-01 Kenichi Handa <handa@m17n.org>
24962
24963 * font.h (QCspacing, QCdpi): Extern them.
24964 (enum font_spacing): New enum.
24965 (FONT_PIXEL_SIZE_QUANTUM): New macro.
24966
24967 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
24968 (QCspacing, QCdpi): New variables.
24969 (syms_of_font): Initialize them.
24970 (font_pixel_size): New function.
24971 (font_put_extra): New function.
24972 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
24973 in FONT_EXTRA.
24974 (font_parse_fcname): Handle enumerated values (e.g. bold).
24975 Fix handling font size. Add QCname property that contains only
24976 unknown properties.
24977 (font_score): Change argument. Change caller. Pay attention to
24978 FONT_PIXEL_SIZE_QUANTUM.
24979 (font_sort_entites, font_list_entities, font_find_for_lface)
24980 (font_open_for_lface, font_open_by_name): Fix handling of font size.
24981 (Ffont_spec): Add QCname property that contains only unknown properties.
24982
bba3e508
SM
24983 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq.
24984 Don't include weight in listing pattern, instead check weight of each
aac0c6e3
MR
24985 listed font. Don't include scalable in pattern. Pay attention to
24986 FONT_PIXEL_SIZE_QUANTUM.
24987
249882008-02-01 Kenichi Handa <handa@m17n.org>
24989
24990 * font.c (font_parse_fcname): Fix parsing of point-size.
24991 (font_unparse_fcname): Produce symbolic names for style properties.
24992 (font_list_entities): Handle float size correctly.
24993 (font_open_by_name): Prefer `normal' property values if the name
24994 doesn't specify them.
24995
24996 * fontset.c (Finternal_char_font): Use font_get_name, not
24997 Ffont_xlfd_name.
24998
24999 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
25000 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
25001 pattern. Don't force scalable.
25002
25003 * xftfont.c (xftfont_open): For generating a name, start from
25004 96-byte buffer.
25005
250062008-02-01 Jan Djärv <jan.h.d@swipnet.se>
25007
25008 * frame.h (x_new_fontset2): Fix prototype.
25009
250102008-02-01 Kenichi Handa <handa@m17n.org>
25011
25012 * font.h (struct font_driver): Delete member parse_name.
25013 (font_match_p, font_get_spec, font_parse_fcname)
25014 (font_unparse_fcname): Extern them.
25015 (font_get_name): Adjust prototype.
25016
25017 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
25018 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
bba3e508
SM
25019 (font_expand_wildcards): Fix handling ENCODING field.
25020 Avoid unnecessary checks for weight, slant, and swidth.
aac0c6e3
MR
25021 (font_parse_fcname): New function.
25022 (font_unparse_fcname): New function.
25023 (font_parse_name): New function.
25024 (font_match_p): New function.
25025 (font_get_name): Change return value to Lisp string.
25026 (font_get_spec): New function.
25027 (Qunspecified, Qignore_defface): Don't extern them.
25028 (font_find_for_lface): Assume that LFACE is fully specified.
25029 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
25030 object, use it for FACE.
25031 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
25032 driver->parse_name.
25033 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
25034
25035 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
25036 prototype.
25037
25038 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
25039 argument F. Don't call Fnew_fontset. Instead, directly call
25040 make_fontset.
25041
25042 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
25043
25044 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
25045 of x_new_fontset2.
25046
25047 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
25048 (Qsans__serif): New variables.
25049 (ftfont_generic_family_list): New variable.
25050 (syms_of_ftfont): Initialize the above variables.
25051 (ftfont_pattern_entity): Delete argument NAME.
25052 (ftfont_list_generic_family): New function.
25053 (ftfont_parse_name): Delete this function.
25054 (ftfont_list): Try generic family only when FcFontList found no font.
25055 (ftfont_list_family): Fix args to FcObjectSetBuild.
25056
25057 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
25058 object in attrs[LFACE_FONT_INDEX].
25059 (set_lface_from_font_name): Cancel all changes for font-backend.
25060 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
25061 function.
25062 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
25063 font object in QCfont attribute.
25064 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
25065 (realize_default_face) [USE_FONT_BACKEND]: Call
25066 set_lface_from_font_and_fontset.
25067
25068 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
25069 "fixed", and signal error here if no suitable font was found.
25070
25071 * xfont.c (xfont_parse_name): Delete this function.
25072
25073 * xftfont.c (xftfont_open): Change coding style of error
25074 handling. Generate fontconfig's fontname pattern.
25075
25076 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
25077 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
25078
25079 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
25080 Both args FONTSET and FONT_OBJECT must be existing ones.
25081
250822008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25083
25084 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
25085
250862008-02-01 Kenichi Handa <handa@m17n.org>
25087
25088 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
25089
25090 * font.h (struct font): Fix typo.
25091
25092 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
25093 XLFD_XXX_INDEX.
25094 (enum xlfd_field_mask): New enum.
ef1b0ba7 25095 (intern_font_field): Change argument. Change caller. If digits
aac0c6e3
MR
25096 are followed by non-digits, return a symbol.
25097 (font_expand_wildcards): New function.
25098 (font_parse_xlfd): Fix wildcard handling.
25099 (Ffont_spec): If :name is specified, reflect the info in the other
25100 properties.
25101
25102 * ftfont.c (ftfont_pattern_entity): Fix typo.
25103 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
25104 locale.
25105
251062008-02-01 Kenichi Handa <handa@m17n.org>
25107
25108 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
25109
25110 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
25111 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
25112 registry doesn't specify encoding part.
25113 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
25114 (font_open_by_name): At first try parsing the name.
25115 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
25116 as Lisp symbols.
25117
25118 * fontset.c (reorder_font_vector): Pay attention to the case that
25119 the 3rd element of font_def is nil.
25120 (fontset_font): For the default fontset, append one more fontset
25121 elements for a script-based font specification. Don't add script
25122 attribute on finding a font.
25123 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
25124 font name.
25125 (fontset_ascii_font): If a font can't be opened, return nil.
25126
25127 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
25128 (ftfont_pattern_entity): New function.
25129 (ftfont_get_cache): Assume that freetype_font_cache is already
25130 initialized.
25131 (ftfont_list): Handle the case that a file is specified in font
25132 name. Use ftfont_pattern_entity to generate entities.
25133 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
25134 (syms_of_ftfont): Initialize freetype_font_cache.
25135
25136 * xftfont.c (xftfont_open): Make the font name fontconfig's
25137 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
25138 (xftfont_close): Free font->font.name if not NULL.
25139
25140 * xfont.c (xfont_list): If script is specified for a font, return
25141 null_vector.
25142 (xfont_list_family): Declare argument type.
25143
25144 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
25145 name, set LFACE_FONT (lface) to nil.
25146
25147 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
25148 return Qnil.
25149
251502008-02-01 Kenichi Handa <handa@m17n.org>
25151
25152 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
25153 (standard_args): Add "-enable-font-backend".
25154
251552008-02-01 Kenichi Handa <handa@m17n.org>
25156
25157 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
25158 (struct xftdraw_list, xftdraw_list): Delete them.
25159 (register_xftdraw, check_xftdraw): Delete them.
25160 (xftfont_prepare_face): Don't call register_xftdraw.
25161 (xftfont_done_face): Don't call check_xftdraw.
25162 (xftfont_draw): Get background color only when with_background is
25163 nonzero.
25164
25165 * xfont.c (xfont_encode_char): Fix calculation of char2b.
25166
251672008-02-01 Kenichi Handa <handa@m17n.org>
25168
25169 These changes are for the new font handling codes.
25170
25171 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
25172 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
25173 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
25174 (FONTSRC, FONTOBJ): New variables.
25175 (obj): Add $(FONTOBJ).
25176 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
25177 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
25178 @LIBOTF_LIBS@.
25179 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
25180 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
25181
25182 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
25183
25184 * character.h (Vscript_representative_chars): Extern it.
25185
25186 * character.c (Vscript_representative_chars): New variable.
25187 (syms_of_character): Declare it as a Lisp variable.
25188
25189 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
25190 enable_font_backend is nonzero, accept the composition method
25191 COMPOSITION_WITH_GLYPH_STRING.
25192
25193 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
25194 enumeration COMPOSITION_WITH_GLYPH_STRING.
25195
25196 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
25197 members clip_x, clip_y, clip_width, and clip_height.
25198 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
25199
25200 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
25201 --enable-font-backend. Call syms_of_font.
25202
25203 * fns.c (assoc_no_quit): New function.
25204
25205 * fontset.h (FONT_INFO_FROM_FACE): New macro.
25206 (face_for_font, new_fontset_from_font)
25207 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
25208
25209 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
25210 (fontset_font, fontset_ascii, face_for_char)
25211 (make_fontset_for_ascii_face, Ffont_info)
25212 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
25213 is nonzero, use font-backend mechanism.
25214 (find_font_encoding): Make it non-static.
25215 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
25216 New functions.
25217
25218 * frame.h (struct frame): New members resx and resy.
25219 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
25220 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
25221
25222 * frame.c [USE_FONT_BACKEND]: Include "font.h".
25223 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
25224
25225 * lisp.h (assoc_no_quit): Extern it.
25226
25227 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
25228 Through out the file, use FONT_INFO_FROM_FACE instead of
25229 FONT_INFO_FROM_ID, use get_per_char_metric instead of
25230 rif->per_char_metric.
25231 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
25232 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
25233 (get_glyph_face_and_encoding, fill_composite_glyph_string)
25234 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25235 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
25236 nonzero, use font-backend mechanism.
25237 (get_per_char_metric): New function.
25238
25239 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
25240 (set_lface_from_font_name)
25241 (set_font_frame_param, free_realized_face)
25242 (prepare_face_for_display, clear_face_gcs)
25243 (Finternal_set_font_selection_order, realize_x_face)
25244 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
25245 font-backend mechanism.
25246 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
25247 (load_face_font) [USE_FONT_BACKEND]: Abort.
25248 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
25249 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
25250
25251 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
25252 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
25253 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
bba3e508
SM
25254 nonzero, register all available font drivers.
25255 Call x_default_font_parameter for deciding a font.
aac0c6e3
MR
25256 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
25257
25258 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
25259 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
25260 (x_set_glyph_string_clipping_exactly)
25261 (x_compute_glyph_string_overhangs)
25262 (x_draw_glyph_string_foreground)
25263 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
25264 (x_free_frame_resources) [USE_FONT_BACKEND]: If
25265 enable_font_backend is nonzero, use font-backend mechanism.
25266 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
25267
252682008-02-01 Kenichi Handa <handa@m17n.org>
25269
25270 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
25271 system_eol_type.
25272 (syms_of_coding): Initialize system_eol_type.
25273
25274 * process.c (Fset_process_coding_system): Inherit system's eol
25275 format if necessary.
25276
252772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25278
25279 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
25280
252812008-02-01 Kenichi Handa <handa@m17n.org>
25282
25283 * coding.c (decode_eol): Pay attention to buffer relocation in
25284 del_range_2.
25285 (decode_coding): Call decode_eol before restoring undo_list.
25286
252872008-02-01 Kenichi Handa <handa@m17n.org>
25288
25289 * charset.c (Fdefine_charset_internal): Fix setting of
25290 emacs_mule_bytes.
25291
252922008-02-01 Kenichi Handa <handa@m17n.org>
25293
25294 * keyboard.c (read_char): Check if C is a character or not before
25295 looking up Vkeyboard_translate_table.
25296
252972008-02-01 Kenichi Handa <handa@m17n.org>
25298
bba3e508
SM
25299 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION):
25300 Fix condition to terminate the loop.
aac0c6e3
MR
25301
253022008-02-01 Kenichi Handa <handa@m17n.org>
25303
25304 * coding.c (produce_composition): Compare charbuf[i] instead of
25305 args[i] against 0.
25306 (Fterminal_coding_system): Use EQ to compare Lisp objects.
25307
253082008-02-01 Kenichi Handa <handa@m17n.org>
25309
25310 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
25311 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
25312 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
25313 detect_coding.
25314 (emacs_mule_char): Handle old style (Emacs 20) component character
25315 of a composition.
25316 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
25317 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
25318 composition rule.
25319 (decode_coding_emacs_mule): Handle invalid bytes correctly.
25320
253212008-02-01 Kenichi Handa <handa@m17n.org>
25322
25323 * coding.c (encode_coding_ccl): Allocate destination dynamically
25324 when necessary.
25325
253262008-02-01 Kenichi Handa <handa@m17n.org>
25327
25328 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
25329 the loop. When quitted, show a proper error message.
25330
253312008-02-01 Kenichi Handa <handa@m17n.org>
25332
bba3e508
SM
25333 * xterm.c (x_set_glyph_string_clipping_exactly):
25334 Set src->clip_head and src->clip_tail temporarily instead of src->hl.
aac0c6e3
MR
25335
25336 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
25337 character sequence.
25338 (Fccl_execute_on_string): Use ASET, not XSET.
25339
253402008-02-01 Kenichi Handa <handa@m17n.org>
25341
25342 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
25343
253442008-02-01 Kenichi Handa <handa@m17n.org>
25345
25346 * coding.c (decode_coding): Fix the condition of terminating the
25347 decoding loop.
25348
253492008-02-01 Kenichi Handa <handa@m17n.org>
25350
25351 * data.c (Faset): On setting a character bigger than 255 in a
25352 unibyte string, signal an error instead of make the string multibyte.
25353
253542008-02-01 Kenichi Handa <handa@m17n.org>
25355
25356 * charset.c (map_charset_chars): Fix for ascii-compatible charset
25357 made by a mapping table.
25358
253592008-02-01 Kenichi Handa <handa@m17n.org>
25360
25361 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
25362 not.
25363 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
25364 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
25365
bba3e508
SM
25366 * xterm.c (x_draw_composite_glyph_string_foreground):
25367 Check s->face is NULL or not.
aac0c6e3
MR
25368
253692008-02-01 Kenichi Handa <handa@m17n.org>
25370
25371 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
25372 (x_draw_glyph_string): Fix drawing of right_overhang and
25373 left_overhang around/on cursor.
25374
25375 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
25376
253772008-02-01 Kenichi Handa <handa@m17n.org>
25378
25379 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
25380
253812008-02-01 Kenichi Handa <handa@m17n.org>
25382
25383 * coding.c (Fdefine_coding_system_internal)
25384 (Fdefine_coding_system_alias): Avoid a duplicated element in
25385 Vcoding_system_alist.
25386
253872008-02-01 Kenichi Handa <handa@m17n.org>
25388
25389 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
25390
25391 * coding.c (Qcoding_system_define_form): New variable.
25392 (syms_of_coding): Intern and staticpro it.
25393 (Fcoding_system_p): Check Qcoding_system_define_form.
25394 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
25395
25396 * coding.h (CODING_SYSTEM_P): If ID is not available, call
25397 Fcoding_system_p.
25398 (CHECK_CODING_SYSTEM): If ID is not available, call
25399 Fcheck_coding_system.
25400 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
25401 Try also Fcheck_coding_system.
25402
254032008-02-01 Kenichi Handa <handa@m17n.org>
25404
25405 * coding.c (code_conversion_restore): GCPRO arg.
25406
254072008-02-01 Kenichi Handa <handa@m17n.org>
25408
25409 * character.c (lisp_string_width): Check multibyteness of STRING.
25410
254112008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25412
25413 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
25414 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
25415 (decode_mac_font_name): Use decode_coding_c_string instead of
25416 decode_coding.
bba3e508
SM
25417 (x_load_font): Initialize fontp->fontset to -1.
25418 Set fontp->encoding_type.
aac0c6e3
MR
25419
254202008-02-01 Kenichi Handa <handa@m17n.org>
25421
25422 * search.c (search_buffer): Give up BM search on case-fold-search
25423 if one of a target character has a case-equivalence of different
3b59c351 25424 byte length even if that target character is an ASCII.
aac0c6e3
MR
25425 (simple_search): Fix calculation of byte length of matched text.
25426 (boyer_moore): Fix handling of case-equivalent multibyte characters.
25427
254282008-02-01 Kenichi Handa <handa@m17n.org>
25429
25430 * coding.c (decode_coding): Fix handling of invalid bytes.
25431
254322008-02-01 Kenichi Handa <handa@m17n.org>
25433
25434 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
25435 Unicode characters.
25436
254372008-02-01 Kenichi Handa <handa@m17n.org>
25438
25439 * coding.c (encode_coding_object): If a pre-write-conversion
25440 function makes a new buffer, kill it.
25441
254422008-02-01 Kenichi Handa <handa@m17n.org>
25443
25444 * coding.c (QCascii_compatible_p): New variable.
25445 (syms_of_coding): Initialize it.
25446 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
25447 calling string_char.
25448 (record_conversion_result): Add `default:' case.
25449 (coding_charset_list): Delete unused variable `coding_type'.
25450 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
25451 property in the plist of the coding system.
25452 (Fcoding_system_put): Check QCascii_compatible_p.
25453
254542008-02-01 Miles Bader <miles@gnu.org>
25455
25456 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
25457 removed calculation of frame `f', as it's now used.
25458
254592008-02-01 Kenichi Handa <handa@m17n.org>
25460
25461 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
25462 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
25463 (UNIDATA): New variable.
25464 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
bba3e508
SM
25465 (bootstrap-emacs${EXEEXT}): Depends on charprop.el.
25466 Run $(RUN_TEMACS) unconditionally.
aac0c6e3
MR
25467
254682008-02-01 Kenichi Handa <handa@m17n.org>
25469
25470 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
25471 (admindir): New variable.
25472 ($(lispsource)international/charprop.el): New target.
25473
254742008-02-01 Miles Bader <miles@gnu.org>
25475
25476 * character.c (chars-in-region): Remove obsolete function.
25477 (syms_of_character): Remove its initialization.
25478
254792008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
25480
25481 * w32select.c (validate_coding_system)
25482 (setup_windows_coding_system): New functions.
bba3e508
SM
25483 (convert_to_handle_as_coded, Fw32_get_clipboard_data):
25484 Use setup_windows_coding_system.
25485 (setup_config, Fw32_get_clipboard_data):
25486 Use validate_coding_system.
aac0c6e3
MR
25487 (Fx_selection_exists): Move call to setup_config to a place
25488 where signals are allowed.
25489
25490 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
25491 (Fcheck_coding_system): Add declarations.
25492
254932008-02-01 Kenichi Handa <handa@m17n.org>
25494
25495 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
25496
254972008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25498
25499 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
25500 string as the second argument for x_new_fontset.
25501
255022008-02-01 Kenichi Handa <handa@m17n.org>
25503
25504 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
25505 (encode_coding_object): Use safe_call instead of call2.
25506
255072008-02-01 Kenichi Handa <handa@m17n.org>
25508
25509 * fontset.c (Fset_fontset_font): Check family element of a given vector.
25510
25511 * Makefile.in (lisp): Include charprop.el.
25512
255132008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
25514
25515 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
25516 Not sure if it's unnecessary.
25517
255182008-02-01 Steven Tamm <steventamm@mac.com>
25519
25520 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
25521 some possibly unnecessary fontset checking code that crashed
25522 when creating a new frame.
25523
255242008-02-01 Kenichi Handa <handa@m17n.org>
25525
25526 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
25527 lookup_face.
25528
25529 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
25530
25531 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
25532
255332008-02-01 Kenichi Handa <handa@m17n.org>
25534
25535 * coding.c: Cancel the change done in HEAD on 2008-02-01.
25536 (coding_charset_list): New function.
25537
25538 * coding.h (coding_charset_list): Extern it.
25539
255402008-02-01 Kenichi Handa <handa@m17n.org>
25541
25542 * fontset.c (Fset_fontset_font): Call find_font_encoding with
25543 concatenation of family and registry.
25544
255452008-02-01 Kenichi Handa <handa@m17n.org>
25546
25547 * character.h (BYTE8_STRING): Fix typo.
25548
25549 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
25550 string to multibyte (sync to HEAD).
25551
25552 * casefiddle.c (casify_region): Handle changes in byte-length
25553 using replace_range_2 (sync to HEAD).
25554
255552008-02-01 Andreas Schwab <schwab@suse.de>
25556
25557 * chartab.c (map_char_table): GCPRO table and arg.
25558
255592008-02-01 Kenichi Handa <handa@m17n.org>
25560
25561 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
25562 already at limit.
25563
255642008-02-01 Kenichi Handa <handa@m17n.org>
25565
25566 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
25567 instead of fast_c_string_match_ignore_case.
bba3e508
SM
25568 (find_font_encoding): Change argument to Lisp_Object.
25569 Use fast_string_match_ignore_case instead of
aac0c6e3
MR
25570 fast_c_string_match_ignore_case. Change caller.
25571
255722008-02-01 Kenichi Handa <handa@m17n.org>
25573
25574 * xdisp.c (get_next_display_element): In unibyte case, decide to
25575 display in octal form by checking a character by
25576 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
25577
25578 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
25579
25580 * character.c (unibyte_has_multibyte_table): New variable.
25581
25582 * character.h (unibyte_has_multibyte_table): Extern it.
25583 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
25584
255852008-02-01 Kenichi Handa <handa@m17n.org>
25586
25587 * coding.c (encode_coding_iso_2022): Fix handling of charset
25588 annotation.
25589
255902008-02-01 Kenichi Handa <handa@m17n.org>
25591
25592 * coding.c (setup_coding_system): If coding_system is nil, use
25593 Qundecided.
25594 (Fterminal_coding_system): Return nil if terminal coding system is
25595 `undecided'.
bba3e508
SM
25596 (syms_of_coding): Define coding-system `undecided' here.
25597 Setup terminal_coding as `undecided'.
aac0c6e3
MR
25598
255992008-02-01 Kenichi Handa <handa@m17n.org>
25600
bba3e508
SM
25601 * xdisp.c (message_dolog, set_message_1):
25602 Call unibyte_char_to_multibyte with arg type int.
aac0c6e3
MR
25603
25604 * lread.c (read1): Fix reading of a char-table.
25605
25606 * print.c (print_object): Include sub char-table in circularities
25607 detection.
25608
256092008-02-01 Kenichi Handa <handa@m17n.org>
25610
25611 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
25612 Append the found sequences in car of ARGS instead of prepending.
25613
256142008-02-01 Kenichi Handa <handa@m17n.org>
25615
25616 * fileio.c (report_file_error): Make a unibyte string from
25617 strerror (errorno).
25618 (Fsubstitute_in_file_name): Fix the arg to
25619 unibyte_char_to_multibyte. It is evaluated twice.
25620
256212008-02-01 Kenichi Handa <handa@m17n.org>
25622
25623 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
25624
256252008-02-01 Kenichi Handa <handa@m17n.org>
25626
25627 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
25628 BOM is not found.
25629 (detect_coding, detect_coding_system): Optimization for ISO-2022
25630 when no 8-bit data is found.
25631
256322008-02-01 Jason Rumney <jasonr@gnu.org>
25633
25634 * w32fns.c (x_to_w32_font): Update to use new coding struct.
25635
256362008-02-01 Kenichi Handa <handa@m17n.org>
25637
25638 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
25639 CHARS.
25640
256412008-02-01 Steven Tamm <steventamm@mac.com>
25642
25643 * macterm.c (mac_encode_char): Add charset argument and update
25644 to use encoding_type.
25645 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
25646 switch to pure fontset.
25647 (decode_mac_font_name): Temporarily remove decoding.
25648 (x_font_name_to_mac_font_name): Temporarily remove encoding.
25649 (x_load_font): Temporarily remove encoding.
25650
256512008-02-01 Kenichi Handa <handa@m17n.org>
25652
25653 * xfaces.c (Fface_font): If frame is not on a window system,
25654 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
25655 refer to face->font.
25656 (split_font_name_into_vector, build_font_name_from_vector)
25657 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
25658 when HAVE_WINDOW_SYSTEM is defined.
25659
256602008-02-01 Kenichi Handa <handa@m17n.org>
25661
25662 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
25663 (x_produce_glyphs): Fix setting of members of cmp in case
25664 cmp->glyph_len is zero.
25665
25666 * fontset.c (Fset_fontset_font): Fix docstring.
25667 (Ffontset_info): Make it backward compatible. New arg ALL.
25668
256692008-02-01 Kim F. Storm <storm@cua.dk>
25670
25671 * process.c (read_process_output): Grow decoding_buf when needed;
25672 this could cause a crash in allocate_string and compact_small_strings.
25673
256742008-02-01 Kenichi Handa <handa@m17n.org>
25675
25676 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
25677
256782008-02-01 Kenichi Handa <handa@m17n.org>
25679
25680 * coding.c (setup_coding_system): Set coding->common_flags
25681 correctly for raw-text.
25682 (consume_chars): On encoding unibyte text by raw-text, don't check
25683 multibyte form.
25684 (encode_coding): On encoding by raw-text, never use translation tables.
25685
25686 * fileio.c (e_write): Short cut for the case of no encoding.
25687
256882008-02-01 Kenichi Handa <handa@m17n.org>
25689
25690 * coding.c (detect_coding, detect_coding_system): Delete unused
25691 variables.
25692
256932008-02-01 Kenichi Handa <handa@m17n.org>
25694
25695 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
25696 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
25697
256982008-02-01 Kenichi Handa <handa@m17n.org>
25699
bba3e508
SM
25700 * coding.c (Ffind_coding_systems_region_internal):
25701 Include raw-text and no-conversion in the result.
aac0c6e3
MR
25702
257032008-02-01 Kenichi Handa <handa@m17n.org>
25704
25705 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
25706 (load_font_get_repertory): Delete unnecessary check of ENCODING of
25707 FONT_DEF.
25708 (font_def_arg, add_arg, from_arg, to_arg): New args.
25709 (set_fontset_font): Change argument.
25710 (Fset_fontset_font): Fix for the case that TARGET is a script
25711 name and charset name.
25712 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
25713
257142008-02-01 Kenichi Handa <handa@m17n.org>
25715
25716 * fontset.c (fontset_font): Rename from fontset_face. Change return
25717 value.
25718 (face_suitable_for_char_p, face_for_char): Adjust for the change
25719 of fontset_font.
25720 (make_fontset_for_ascii_face): Fix setting of the fontset element
25721 for ASCII.
25722 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
25723 to get a font name.
25724 (Ffontset_info): Adjust for the change of fontset_font.
25725
25726 * coding.c (emacs_mule_char): Check invalid code more rigidly.
25727
25728 * character.h (LEADING_CODE_LATIN_1_MIN)
25729 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
25730
257312008-02-01 Kenichi Handa <handa@m17n.org>
25732
25733 * editfns.c (check_translation): New function.
25734 (Ftranslate_region_internal): Handle M:N mapping.
25735
257362008-02-01 Kenichi Handa <handa@m17n.org>
25737
25738 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
25739
257402008-02-01 Kenichi Handa <handa@m17n.org>
25741
25742 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
25743 goto invalid_code.
25744 (decode_coding_iso_2022): Fix handling of invalid designation.
25745
25746 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
25747 after calling code_conversion_save.
25748
257492008-02-01 Kenichi Handa <handa@m17n.org>
25750
25751 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
25752
25753 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
25754
25755 * fontset.c: Include "intervals.h".
25756 (fontset_face): Fix comparing of Lisp_Objects.
bba3e508
SM
25757 (free_face_fontset, new_fontset_from_font_name):
25758 Fix Lisp_Object/int mixup.
aac0c6e3
MR
25759
25760 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
25761
25762 * coding.c: Add many prototypes for static functions.
25763 (get_translation_table): Allow max_lookup to be NULL.
25764 (decode_coding, Ffind_coding_systems_region_internal)
bba3e508
SM
25765 (Funencodable_char_position, Fcheck_coding_systems_region):
25766 Call get_translation_table with max_lookup NULL.
aac0c6e3
MR
25767
257682008-02-01 Kenichi Handa <handa@m17n.org>
25769
25770 * coding.c (get_translation_table): Declare it as Lisp_Object.
25771 (LOOKUP_TRANSLATION_TABLE): New macro.
25772 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
25773 instead of CHAR_TABLE_REF.
25774
257752008-02-01 Kenichi Handa <handa@m17n.org>
25776
25777 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
25778 annotation data format.
25779 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
25780 Change arguments FROM and TO to single argument NCHARS. Change caller.
25781 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
25782 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
25783 (decode_coding_ccl, decode_coding_charset): Pay attention to
25784 coding->charbuf_used.
25785 (get_translation): New function.
25786 (produce_chars): New arguments translation_table and last_block.
25787 Translate characters here. Return number of carryover chars.
25788 Change caller.
25789 (produce_composition): New argument pos. Change caller.
25790 Adjust for the change of annotation data format.
25791 (produce_charset, produce_annotation): Likewise.
25792 (decode_coding, encode_coding): Don't call translate_chars.
25793 (consume_chars): New arg translation_table. Change caller.
25794 (translate_chars): Delete.
25795 (syms_of_coding): Make translation-table's number of extra slots 2.
25796
257972008-02-01 Kenichi Handa <handa@m17n.org>
25798
25799 * search.c (simple_search): Fix setting this_pos_byte in backward
25800 search.
25801
25802 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
25803 byte sequence.
25804 (detect_coding_ccl): Fix setting of the variable valids.
25805
258062008-02-01 Kenichi Handa <handa@m17n.org>
25807
25808 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
25809
25810 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
25811
25812 * editfns.c (Ftranslate_region_internal): Rename from
25813 Ftranslate_region. Accept a char-table in TABLE.
25814 (syms_of_editfns): Defsubr Stranslate_region_internal.
25815
25816 * xfaces.c (set_lface_from_font_name): If a font is specified for
25817 a frame, generate a fontset from the font.
25818 (build_scalable_font_name): If the scalable font is requested for
25819 a specific size, don't change that size.
25820 (try_font_list): Try a scalable font also in the case that a
25821 pattern string is specified.
25822
258232008-02-01 Kenichi Handa <handa@m17n.org>
25824
25825 * xfaces.c (Fface_font): New optional arg CHARACTER.
25826
258272008-02-01 Kenichi Handa <handa@m17n.org>
25828
25829 * charset.h (CHARSET_OFFSET): New macro.
25830
258312008-02-01 Kenichi Handa <handa@m17n.org>
25832
25833 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
25834
25835 * fontset.c (fontset_face): Handle the case that repertory is a
25836 char-table.
25837 (find_font_encoding): Return nil for unknown encoding.
25838 (Fset_fontset_font): Ignore a font of unknown encoding.
25839
258402008-02-01 Kenichi Handa <handa@m17n.org>
25841
25842 * keymap.c (describe_vector): Handle default value of a char table.
25843
25844 * fontset.c (fontset_face): Handle fallback fonts correctly.
25845 (Ffontset_info): Return infomation about fallback fonts.
25846
258472008-02-01 Kenichi Handa <handa@m17n.org>
25848
25849 * fontset.c (FONTSET_DEFAULT): New macro.
25850 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
25851 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
25852 the case that it is nil.
25853 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
25854 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
25855
25856 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
25857 subset or superset.
25858
258592008-02-01 Kenichi Handa <handa@m17n.org>
25860
25861 * emacs.c (main): Call init_charset after syms_of_XXX.
25862
25863 * charset.c (Vcharset_map_directory): Delete.
25864 (Vcharset_map_path): New variable.
25865 (load_charset_map_from_file): Use Vcharset_map_path instead.
25866 (init_charset): Initialize Vcharset_map_path.
25867 (syms_of_charset): Delete declaration of "charset-map-directory",
25868 add declaration of "charset-map-path".
25869
258702008-02-01 Kenichi Handa <handa@m17n.org>
25871
25872 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
25873 ASCII only string.
25874
25875 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
25876
25877 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
25878 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
25879
258802008-02-01 Kenichi Handa <handa@m17n.org>
25881
25882 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
25883
25884 * coding.c (QCmnemonic, QCdefalut_char)
25885 (QCdecode_translation_table, QCencode_translation_table)
25886 (QCpost_read_conversion, QCpre_write_conversion): New variables.
25887 (get_translation_table): Return a list of translation tables if
25888 necessary.
25889 (decode_coding): Call get_translation_table with ENCODEP 0.
25890 (char_encodable_p): If translation_table is non-nil, always call
25891 translate_char.
25892 (Fdefine_coding_system_internal): Accept list of translation
25893 tables as :encode-translation-table and :decode-translation-table.
25894 (Fcoding_system_put): New function.
bba3e508
SM
25895 (syms_of_coding): Declare new symbols.
25896 Defsubr Scoding_system_put.
aac0c6e3
MR
25897 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
25898 typically JISX0212.
25899
25900 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
25901 when the charset is superset type.
25902
25903 * character.c (translate_char): Accept list of translation tables.
25904
259052008-02-01 Kenichi Handa <handa@m17n.org>
25906
25907 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
25908 (CODING_ATTR_TRANS_TBL): New macro.
25909
25910 * coding.c (get_translation_table): New function.
25911 (translate_chars): Fix the bug of skipping annotation data.
25912 (decode_coding, encode_coding): Utilize get_translation_table.
25913 (char_encodable_p, Funencodable_char_position): Translate char if
25914 necessary.
25915 (Ffind_coding_systems_region_internal)
25916 (Fcheck_coding_systems_region): Setup translation table for encode
25917 in a coding system attribute vector in advance.
25918 (Fdefine_coding_system_internal): Allow a symbol as translation
25919 table. For shift-jis type coding system, allow 4th charset.
25920
259212008-02-01 Kenichi Handa <handa@m17n.org>
25922
25923 * coding.c (decode_coding_sjis): Check the first byte rigidly.
25924
25925 * xdisp.c (get_next_display_element): Pass -1 as POS to
25926 FACE_FOR_CHAR if displaying a C-string.
25927
259282008-02-01 Kenichi Handa <handa@m17n.org>
25929
25930 * composite.c (get_composition_id): Handle xoff and yoff in a
25931 composition rule.
25932
25933 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
25934 (struct composition): New member lbearing and rbearing.
25935
25936 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
25937 (x_get_glyph_overhangs): Handle a composition glyph.
25938 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
25939
25940 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
25941 composition glyph.
25942
259432008-02-01 Kenichi Handa <handa@m17n.org>
25944
25945 * print.c: Include charset.h.
25946 (Vprint_charset_text_property): New variable.
25947 (Qdefault): Extern it.
25948 (PRINT_STRING_NON_CHARSET_FOUND)
25949 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
25950 (print_check_string_result): New variable.
25951 (print_check_string_charset_prop): New function.
25952 (print_prune_charset_plist): New variable.
25953 (print_prune_string_charset): New function.
25954 (print_object): Call print_prune_string_charset if
25955 Vprint_charset_text_property is not t.
25956 (print_interval): Print nothing if interval->plist is nil.
25957 (syms_of_print): Declare Vprint_charset_text_property as a lisp
25958 variable. Init and staticpro print_prune_charset_plist.
25959
259602008-02-01 Kenichi Handa <handa@m17n.org>
25961
25962 * fontset.c (new_fontset_from_font_name): Use the specified font
25963 for all characters in the new fontset.
25964
25965 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25966 OBJECT args.
25967
25968 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
25969 OBJECT args for composition too.
25970
25971 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
25972 OBJECT args.
25973
259742008-02-01 Kenichi Handa <handa@m17n.org>
25975
25976 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
25977
25978 * fontset.c (reorder_font_vector): Adjust for the change of
25979 FONT_DEF format.
25980 (fontset_face): New arg id. Change caller.
25981 (face_for_char): New args pos and object.
25982 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
25983 (fs_query_fontset): Check NAME by Fassoc too.
25984 (Fset_fontset_font): Allow non-XLFD font name.
25985 (Ffontset_info): Adjust for the change of FONT_DEF format.
25986
25987 * fontset.h (face_for_char): Adjust prototype.
25988
25989 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
25990 (append_space, extend_face_to_end_of_line)
25991 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
25992 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
25993
25994 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
25995 POS and OBJECT args.
25996
25997 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
25998 POS and OBJECT args.
25999
260002008-02-01 Jason Rumney <jasonr@gnu.org>
26001
26002 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
26003 of GlobalAlloc'ed memory.
26004
260052008-02-01 Kenichi Handa <handa@m17n.org>
26006
26007 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
26008
26009 * charset.h (charset_table_used): Delete extern.
26010
26011 * charset.c (charset_table_used): Make it static.
26012 (map_charset_chars): Fix args to c_function with.
26013
26014 * chartab.c (map_sub_char_table_for_charset): Fix args to
26015 c_function with.
26016
bba3e508
SM
26017 * coding.h (enum coding_result_code):
26018 Delete CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
aac0c6e3
MR
26019
26020 * coding.c (Qinsufficient_source, Qinconsistent_eol)
26021 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
26022 (Vlast_code_conversion_error): New variables.
26023 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
26024 (ONE_MORE_BYTE): Record error if any instead of signaling an
26025 error. If non-ASCII multibyte char is found, return the negative
26026 value of the code. All callers changed to check it.
26027 (ONE_MORE_BYTE_NO_CHECK): Likewise.
26028 (record_conversion_result): New function. Change all codes setting
26029 coding->result to call this function.
26030 (detect_coding_utf_8, decode_coding_utf_8)
26031 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
26032 Don't use the local variable incomplete.
26033 (emacs_mule_char): Change the second arg to `const'.
26034 (decode_coding): Fix of flushing out unprocessed data.
26035 (make_conversion_work_buffer): Fix making of a work buffer.
26036 (decode_coding_object): Return coding->dst_object.
26037
26038 * fontset.c (set_fontset_font): Fix args.
26039
26040 * lisp.h (CHARACTERBITS): Define as 22.
26041
26042 * process.c (send_process): Be sure to set coding->src_multibyte.
26043
26044 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
26045
260462008-02-01 Kenichi Handa <handa@m17n.org>
26047
26048 * xdisp.c (handle_auto_composed_prop): Give limit to
26049 Fnext_single_char_property_change.
26050
260512008-02-01 Kenichi Handa <handa@m17n.org>
26052
26053 * composite.c (syms_of_composite): Don't make the composition hash
26054 table weak.
26055
26056 * fontset.c (Fset_fontset_font): Fix docstring.
26057
26058 * lisp.h (detect_coding_system): Adjust prototype.
26059
26060 * fileio.c (kill_workbuf_unwind): Delete this function.
26061 (Finsert_file_contents): Adjust the call of detect_coding_system.
26062 Get conversion_buffer by code_conversion_save. Use the macro
26063 CODING_MAY_REQUIRE_DECODING. After decoding, update
26064 coding_system.
26065
26066 * coding.h (make_conversion_work_buffer): Delete extern.
26067 (code_conversion_save): Extern it.
26068
26069 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
26070 (CODING_GET_INFO): Delete argument eol_type. Change callers.
26071 (decode_coding_utf_8): Don't do eol converion.
26072 (detect_coding_utf_16): Check coding->src_chars, not
26073 coding->src_bytes. Add heuristics for those that have no signature.
26074 (decode_coding_emacs_mule, decode_coding_iso_2022)
26075 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26076 Don't do eol converion.
26077 (adjust_coding_eol_type): Return a new coding system.
26078 (detect_coding): Don't detect eol. Fix for utf-16 detection.
26079 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
26080 each change.
26081 (decode_coding): Pay attention to undo_list. Do eol conversion for
26082 all types of coding-systems (if necessary).
26083 (Vcode_conversion_work_buf_list): Delete it.
26084 (Vcode_conversion_reused_workbuf): Rename from
26085 Vcode_conversion_reused_work_buf.
26086 (Vcode_conversion_workbuf_name): New variable.
26087 (reused_workbuf_in_use): New variable.
26088 (make_conversion_work_buffer): Delete the arg DEPTH.
26089 (code_conversion_restore): Change argument to cons.
26090 (code_conversion_save): Delete the argument BUFFER. Change callers.
26091 (detect_coding_system): New argument src_chars. Change callers.
26092 Fix for utf-16 detection.
26093 (init_coding_once): Don't use ISO_carriage_return.
26094 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
26095 reused_workbuf_in_use.
26096
260972008-02-01 Kenichi Handa <handa@m17n.org>
26098
26099 * keymap.c (store_in_keymap): Pay attention to the case that idx
26100 is a cons specifying a character range.
26101
261022008-02-01 Kenichi Handa <handa@m17n.org>
26103
26104 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
26105 HANDLED_RECOMPUTE_PROPS.
26106
26107 * coding.c (Fdefine_coding_system_internal): Fix checking of
26108 ascii compatibility.
26109
261102008-02-01 Kenichi Handa <handa@m17n.org>
26111
26112 * charset.c (find_charsets_in_text): Delete unused locale variable.
26113 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
26114
26115 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
26116 Resync charset_list to Vemacs_mule_charset_list.
26117
26118 * keymap.c (store_in_keymap): Pay attention to the case that idx
26119 is a cons specifying a character range.
26120
261212008-02-01 Kenichi Handa <handa@m17n.org>
26122
26123 * composite.c (update_compositions): Bind inhibit-read-only, etc
26124 to t before calling remove-list-of-text-properties.
26125
26126 * print.c (print_object): Always print ASCII chars as is.
26127
261282008-02-01 Kenichi Handa <handa@m17n.org>
26129
26130 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
26131
26132 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
26133 is a char table.
26134
261352008-02-01 Kenichi Handa <handa@m17n.org>
26136
26137 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
26138
261392008-02-01 Kenichi Handa <handa@m17n.org>
26140
26141 * xfaces.c (set_lface_from_font_name): Fix for the case that
26142 FONTNAME is not fontset name.
26143
261442008-02-01 Kenichi Handa <handa@m17n.org>
26145
26146 * fns.c (base64_encode_1): Fix previous change.
26147
261482008-02-01 Kenichi Handa <handa@m17n.org>
26149
26150 * fontset.c (set_fontset_font): New function.
26151 (Fset_fontset_font): If a font is specified for a charset, use
26152 map_charset_chars to store the font spec in a fontset.
26153
261542008-02-01 Kenichi Handa <handa@m17n.org>
26155
26156 * fontset.c (fontset_face): Create a fallback fontset on demand.
26157 (make_fontset): Don't create a fallback fontset here.
26158 (free_face_fontset): Free a fallback fontset (if any) too.
26159 (n_auto_fontsets): Delete this variable.
26160 (auto_fontset_alist): New variable.
26161 (new_fontset_from_font_name): Check auto_fontset_alist.
26162 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
26163 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
26164 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
26165 Defsubr Sfontset_list_all.
26166
261672008-02-01 Kenichi Handa <handa@m17n.org>
26168
26169 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
26170
261712008-02-01 Kenichi Handa <handa@m17n.org>
26172
26173 * fontset.c (Fnew_fontset): Check NAME more rigidly.
26174
261752008-02-01 Kenichi Handa <handa@m17n.org>
26176
26177 * editfns.c (Fgoto_char): Fix docstring.
26178
261792008-02-01 Kenichi Handa <handa@m17n.org>
26180
26181 * insdel.c (insert_from_gap): Adjust intervals correctly.
26182
261832008-02-01 Jason Rumney <jasonr@gnu.org>
26184
26185 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
26186 (pfnGetFontUnicodeRanges): New dynamically loaded function.
26187 (w32_initialize): Try to load it.
26188 (x_get_font_repertory): Use it if available.
26189 (w32_encode_char): Add shortcut for unicode output.
26190
26191 * w32fns.c (w32_load_system_font): Default charset to -1.
26192 (x_to_w32_charset): Match all fonts for unicode.
26193 (w32_to_x_charset): New parameter matching. Don't return partial
26194 or wildcard charsets.
26195 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
26196 (w32_codepage_for_font): Return CP_UNICODE for unicode.
26197 (w32_to_x_font): Match charset to real charset.
26198 (enum_font_cb2): Always list unicode versions.
26199
26200 * makefile.w32-in (temacs): Increase EMHEAP.
26201
262022008-02-01 Jason Rumney <jasonr@gnu.org>
26203
26204 * w32term.c (w32_encode_char): New charset parameter.
26205 font_info.encoding becomes encoding_type.
26206 (x_get_font_repertory): New function. Warning: stub only!
26207 (x_new_font): Return quickly if font already set.
26208 (x_new_fontset): fontsetname parameter is Lisp_Object.
26209 Use new fs_query_fontset. Try new_fontset_from_font_name.
26210 Use fontset_name for return value.
26211
26212 * w32term.h: Declare x_get_font_repertory.
26213
26214 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
26215 place of find_charset_in_text. Use encode_coding_object in place
26216 of encode_coding.
26217 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
26218 decode_coding.
26219
26220 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
26221 of x_new_fontset.
26222 (w32_load_system_font): Initialize charset as unicode.
26223 font_info.encoding becomes encoding_type.
26224 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
26225 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
26226 (syms_of_w32fns): Set get_font_repertory_func.
26227
26228 * w32console.c: Include character.h. Use terminal_encode_buffer
26229 from term.c.
bba3e508
SM
26230 (write_glyphs): Use new version of encode_terminal_code.
26231 Use encode_coding_object in place of encode_coding.
aac0c6e3
MR
26232
26233 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
26234 encoding becomes encoding_type.
26235
26236 * term.c (terminal_encode_buffer): Make externally visible.
26237
26238 * makefile.w32-in: Add character.h dependancies.
26239 (character.o, chartab.o): New targets.
26240
262412008-02-01 Kenichi Handa <handa@m17n.org>
26242
26243 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
26244 CODING_ID_EOL_TYPE.
26245
262462008-02-01 Andreas Schwab <schwab@suse.de>
26247
26248 * coding.c (produce_chars): Revert last change.
26249
262502008-02-01 Kenichi Handa <handa@m17n.org>
26251
26252 * charset.h (charset_unicode): Extern it.
26253
26254 * charset.c (string_xstring_p): Check by (C >= 0x100).
bba3e508
SM
26255 (find_charsets_in_text): Change format of the arc CHARSETS.
26256 New arg MULTIBYTE.
aac0c6e3
MR
26257 (Ffind_charset_region, Ffind_charset_string): Adjust for the
26258 change of find_charsets_in_text.
26259 (Fsplit_char): Fix doc. Never return unknown.
26260
26261 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
26262
bba3e508
SM
26263 * coding.c (Fdefine_coding_system_alias):
26264 Update Vcoding_system_list.
aac0c6e3
MR
26265
26266 * fontset.c (load_font_get_repertory): Pay attention to the case
26267 that ENCODING of a font is specified by a char-table.
26268
26269 * xterm.c (x_get_font_repertory): Handle the case that the
26270 encoding of font is other than Unicode.
26271
262722008-02-01 Kenichi Handa <handa@m17n.org>
26273
bba3e508
SM
26274 * term.c (encode_terminal_code): Don't handle glyph-table.
26275 Check if a character is encodable by the terminal coding system.
26276 If not, produces proper number of `?'s. Update
aac0c6e3
MR
26277 terminal_encode_buffer and terminal_encode_buf_size if necessary.
26278 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
26279
262802008-02-01 Kenichi Handa <handa@m17n.org>
26281
bba3e508
SM
26282 * term.c (terminal_encode_buffer, terminal_encode_buf_size):
26283 New variables.
aac0c6e3
MR
26284 (encode_terminal_code): Change argument. Encode multiple
26285 characters at once. Store the result of encoding in
26286 terminal_encode_buffer.
26287 (write_glyphs, insert_glyphs): Adjust for the change of
26288 encode_terminal_code.
26289 (term_init): Initialize terminal_encode_buffer and
26290 terminal_encode_buf_size.
26291
26292 * coding.c (consume_chars): If coding->src_object is nil, don't
26293 check annotation.
26294
262952008-02-01 Kenichi Handa <handa@m17n.org>
26296
26297 * character.c (char_string): Use ASCII_CHAR_P instead of
26298 SINGLE_BYTE_CHAR_P.
26299
263002008-02-01 Kenichi Handa <handa@m17n.org>
26301
26302 * xdisp.c (handle_auto_composed_prop): Check if the last
26303 characters of auto-composed region is newly composed with the
26304 following characters.
26305 (handle_composition_prop): Fix checking of point being inside
26306 composition.
26307
263082008-02-01 Kenichi Handa <handa@m17n.org>
26309
26310 * fns.c (concat): Don't change multibyteness of the result by
26311 concatenating an 8-bit character.
26312
26313 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
26314 multibyteness of the result when newelt is an 8-bit character.
26315
263162008-02-01 Dave Love <fx@gnu.org>
26317
26318 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
26319 EMACS_INT.
26320
26321 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
26322
26323 * xfaces.c (face_numeric_value): Declare dim size_t.
26324 (Finternal_lisp_face_equal_p): Remove unused f.
26325
26326 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
26327 (MATRIX_ROW): Remove unused vars.
26328 (draw_glyphs, x_insert_glyphs, fast_find_position)
26329 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
26330 byte/char counts.
26331
26332 * regex.c (regex_compile): Remove unused var.
26333
26334 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
26335
26336 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
26337 (Faccessible_keymaps, where_is_internal): Remove unused vars.
26338
26339 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
26340
26341 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
26342
26343 * fileio.c (Fwrite_region): Remove unused var.
26344
26345 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
26346 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
26347
26348 * composite.c (Fremove_list_of_text_properties): Declare.
26349
26350 * coding.c (inhibit_pre_post_conversion): Remove (unused).
26351 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
26352 (coding_inherit_eol_type): Remove unused attrs.
26353 (detect_coding): Cast arg of detect_eol.
26354
26355 * charset.c (syms_of_charset): Remove unused var p.
26356 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
26357 byte/char counts.
26358
26359 * casetab.c (set_case_table): Remove unused var.
26360
bba3e508
SM
26361 * window.c (Fdisplay_buffer, Fframe_selected_window):
26362 Remove unused vars.
aac0c6e3
MR
26363
263642008-02-01 Dave Love <fx@gnu.org>
26365
26366 * xterm.c (x_bitmap_mask): Declare.
26367
263682008-02-01 Dave Love <fx@gnu.org>
26369
26370 * xterm.c (x_term_init): Fix type error.
26371
26372 * lisp.h: Add Funibyte_char_to_multibyte.
26373
26374 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
26375 (Fset_coding_system_priority): Doc fix.
26376
26377 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
26378
26379 * indent.c (check_composition): Make start and end EMACS_INT.
26380
26381 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
26382
26383 * xdisp.c (handle_composition_prop, check_point_in_composition):
26384 Make buffer positions EMACS_INT.
26385
26386 * composite.c (find_composition, run_composition_function)
26387 (update_compositions, Ffind_composition_internal): Make buffer
26388 positions EMACS_INT.
26389
bba3e508
SM
26390 * composite.h (find_composition, update_compositions):
26391 Make position args EMACS_INT.
aac0c6e3
MR
26392
26393 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
26394
26395 * intervals.c (get_property_and_range):
26396 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
26397
26398 * unexalpha.c: Don't include varargs.h.
26399
264002008-02-01 Dave Love <fx@gnu.org>
26401
26402 * coding.h (ENCODE_UTF_8): New.
26403
26404 * Makefile.in (gtkutil.o): Depend on coding.h.
26405
26406 * coding.c (Fset_coding_system_priority): Doc fix.
26407
264082008-02-01 Kenichi Handa <handa@m17n.org>
26409
26410 * fileio.c (Finsert_file_contents): Call setup_coding_system in
26411 the case of auto saving.
26412
264132008-02-01 Andreas Schwab <schwab@suse.de>
26414
bba3e508
SM
26415 * chartab.c (map_char_table, map_char_table_for_charset):
26416 Protect `range' from GC.
aac0c6e3
MR
26417
264182008-02-01 Kenichi Handa <handa@m17n.org>
26419
26420 * coding.c (decode_coding_sjis): Check bytes more rigidly.
26421
264222008-02-01 Kenichi Handa <handa@m17n.org>
26423
26424 * fileio.c (choose_write_coding_system): Return a decided coding system.
26425 (Fwrite_region): Set Vlast_coding_system_used to the return value
26426 of choose_write_coding_system.
26427
264282008-02-01 Kenichi Handa <handa@m17n.org>
26429
26430 * charset.c (Fset_charset_priority): Pay attention to duplicated
26431 arguments.
26432
26433 * coding.c (QCcategory): New variable.
26434 (syms_of_coding): Defsym it. Set all elements of
26435 Vcoding_category_table and their symbol values.
26436 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
26437 coding-category-XXX, and coding-category-list.
26438 (Fdefine_coding_system_internal): Add category in the plist.
26439
264402008-02-01 Kenichi Handa <handa@m17n.org>
26441
26442 * callproc.c (Fcall_process): Handle carryover correctly.
26443
26444 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
26445 (raw_text_coding_system): Check NILP (coding_system).
26446 (coding_inherit_eol_type): Check NILP (coding_system) and
26447 NILP (parent).
26448 (consume_chars): Fix for the case of raw-text.
26449
26450 * process.c (read_process_output): Handle carryover correctly.
26451
264522008-02-01 Dave Love <fx@gnu.org>
26453
26454 * regex.c (re_search_2): Fix last change.
26455
264562008-02-01 Kenichi Handa <handa@m17n.org>
26457
26458 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
26459 target_multibyte. Even in a unibyte case, return a converted
26460 multibyte char.
26461 (GET_CHAR_AFTER): New macro.
26462 (PATFETCH): Translate via multibyte char.
26463 (HANDLE_UNIBYTE_RANGE): Delete this macro.
26464 (SETUP_MULTIBYTE_RANGE): New macro.
26465 (regex_compile): Setup compiled code so that its multibyteness
26466 matches that of a target. Fix the handling of "[X-YZ]" using
26467 SETUP_MULTIBYTE_RANGE.
26468 (analyse_first) <charset>: For filling fastmap for all multibyte
26469 characters, don't check by BASE_LEADING_CODE_P.
26470 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
26471 the same as RE_MULTIBYTE_P (bufp) now.
26472 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
26473 (TARGET_CHAR_AND_LENGTH): Delete this macro.
26474 (TRANSLATE_VIA_MULTIBYTE): New macro.
26475 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
26476 It is the same as RE_MULTIBYTE_P (bufp) now.
26477 <exactn>: Translate via multibyte.
bba3e508
SM
26478 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH.
26479 Don't translate it.
aac0c6e3
MR
26480 <charset, charset_not>: Fetch a character by
26481 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
26482 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
26483 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
26484 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
26485 by GET_CHAR_AFTER.
26486 (bcmp_translate): Likewise.
26487
26488 * search.c (compile_pattern): Check the member target_multibyte,
26489 not the member multibyte of buf.
26490
26491 * lread.c (read1): While reading a string, set force_singlebyte
26492 and force_multibyte correctly.
26493
26494 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
26495 up of unibyte_to_multibyte_table.
26496
264972008-02-01 Kenichi Handa <handa@m17n.org>
26498
26499 * coding.c (setup_coding_system): If coding has
26500 post-read-conversion or pre-write-conversion, set
26501 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
26502 respectively.
26503 (decode_coding_gap): Run post-read-conversion if any.
26504
26505 * fileio.c (Finsert_file_contents): Even if we read into a
26506 unibyte buffer, check if we must decode the result or not.
26507
265082008-02-01 Kenichi Handa <handa@m17n.org>
26509
26510 * coding.c (make_conversion_work_buffer): Change the work buffer
26511 name to the same one as that of Emacs 21.
26512
265132008-02-01 Kenichi Handa <handa@m17n.org>
26514
26515 * coding.h (make_conversion_work_buffer): Adjust prototype.
26516 (code_conversion_restore): Don't extern it.
26517
26518 * coding.c (detected_mask): Delete unused variable.
26519 (decode_coding_iso_2022): Pay attention to the byte sequence of
26520 CTEXT extended segment, and retain those bytes as is.
26521 (decode_coding_ccl): Delete unused variable `valids'.
26522 (setup_coding_system): Delete unused variable `category'.
26523 (consume_chars): Delete unused variable `category'. Make it work
26524 for non-multibyte case.
26525 (make_conversion_work_buffer): Change argument.
26526 (saved_coding): Delete unused variable.
26527 (code_conversion_restore): Don't check saved_coding->destination.
26528 (code_conversion_save): New function.
26529 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
26530 instead of record_unwind_protect.
26531 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
26532 (detect_coding_system): Delete unused variable `mask'.
26533 (Fdefine_coding_system_internal): Delete unused variable id.
26534
26535 * fileio.c (kill_workbuf_unwind): New function.
26536 (Finsert_file_contents): On replacing, call
26537 make_conversion_work_buffer with correct args, and call
26538 record_unwind_protect with the first arg kill_workbuf_unwind.
26539
26540 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
26541
265422008-02-01 Kenichi Handa <handa@m17n.org>
26543
26544 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
26545 (fontset_add): Fix for the case that TO is less than TO1.
26546 (Ffontset_info): Don't use fallback fontset on checking the
26547 default fontset.
26548 (dump_fontset): New function for debugging.
26549
26550 * coding.c (Fdefine_coding_system_internal): Fix for the case that
26551 coding_type is Qcharset.
26552
265532008-02-01 Kenichi Handa <handa@m17n.org>
26554
26555 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
26556 (map_char_table): Don't inherit the value from the parent on
26557 initializing VAL. Adjust for the above change.
26558
265592008-02-01 Kenichi Handa <handa@m17n.org>
26560
26561 * coding.c (Qsignature, Qendian): Delete these variables.
26562 (syms_of_coding): Don't initialize them.
26563 (CATEGORY_MASK_UTF_16_AUTO): New macro.
26564 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
26565 detect_info->found.
26566 (decode_coding_utf_16): Don't detect BOM here.
26567 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
26568 is NOT utf_16_without_bom.
26569 (setup_coding_system): For a coding system of type utf-16, check
26570 if the attribute :endian is Qbig or not (not nil or not), and set
26571 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
26572 (detect_coding): If coding type is utf-16 and BOM detection is
26573 required, detect it.
26574 (Fdefine_coding_system_internal): For a coding system of type
26575 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
26576
265772008-02-01 Kenichi Handa <handa@m17n.org>
26578
26579 * coding.c (coding_set_source): Fix for the case that the current
26580 buffer is different from coding->src_object.
26581 (decode_coding_object): Don't use the conversion work buffer if
26582 DST_OBJECT is a buffer.
26583
265842008-02-01 Dave Love <fx@gnu.org>
26585
26586 * lread.c (read_emacs_mule_char) [len==2]: Index
26587 emacs_mule_charset correctly.
26588
265892008-02-01 Dave Love <fx@gnu.org>
26590
26591 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
26592 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
26593 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
26594 treated specially.)
26595 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
26596 (detected_mask): Remove Big5 bits.
26597
265982008-02-01 Kenichi Handa <handa@m17n.org>
26599
26600 The following changes are to make the font rescaling facility
26601 compatible with Emacs 21.
26602
26603 * xfaces.c (Vface_font_rescale_alist): Rename from
26604 Vface_resizing_fonts.
26605 (struct font_name): Rename member resizing_ratio to rescale_ratio.
26606 (font_rescale_ratio): Rename from font_resizing_ratio.
26607 (split_font_name): Set font->rescale_ratio.
26608 (better_font_p): Pay attention to font->rescale_ratio.
26609 (build_scalable_font_name): Likewise. Change RESX, and RESY
26610 fields.
26611 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
26612
266132008-02-01 Kenichi Handa <handa@m17n.org>
26614
26615 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
26616 (Qutf_16_le): Remove these variables.
26617 (syms_of_coding): Don't DEFSYM them.
26618 (decode_coding_utf_16): Fix handling of BOM.
26619 (encode_coding_utf_16): Fix handling of BOM.
26620
266212008-02-01 Kenichi Handa <handa@m17n.org>
26622
26623 * fileio.c (Finsert_file_contents): On replacing, before decoding
26624 the file into the work buffer, set point of the work buffer to the end.
26625
266262008-02-01 Dave Love <fx@gnu.org>
26627
26628 * coding.c (Fcheck_coding_systems_region): Fix type errors.
26629
266302008-02-01 Dave Love <fx@gnu.org>
26631
26632 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26633 and fix C types.
26634
266352008-02-01 Kenichi Handa <handa@m17n.org>
26636
26637 * xdisp.c (SKIP_GLYPHS): New macro.
26638 (set_cursor_from_row): Pay attention to string display properties.
26639
26640 * category.c (copy_category_entry): Fix for the case that RANGE
26641 is an integer.
26642
26643 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
26644
26645 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
26646
266472008-02-01 Kenichi Handa <handa@m17n.org>
26648
26649 * charset.c (Fcharset_id_internal): New function.
26650 (syms_of_charset): Defsubr it.
26651
26652 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
26653 with the last arg charset_list acquired from coding.
26654 (Fdefine_coding_system_internal): For ccl-based coding system, fix
26655 the attribute coding_attr_ccl_valids.
26656
26657 * coding.h (enum define_coding_ccl_arg_index): Set the first
26658 member coding_arg_ccl_decoder to coding_arg_max.
26659
26660 * ccl.h (ccl_driver): Adjust prototype.
26661
26662 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
26663 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 26664 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
26665 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
26666 last arg Qnil.
26667
266682008-02-01 Kenichi Handa <handa@m17n.org>
26669
26670 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
26671 call encode_char.
26672
26673 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
26674
266752008-02-01 Dave Love <fx@gnu.org>
26676
26677 * composite.c (syms_of_composite): Make composition_hash_table weak.
26678
266792008-02-01 Kenichi Handa <handa@m17n.org>
26680
26681 * dispextern.h (check_face_attributes, generate_ascii_font_name)
26682 (font_name_registry): Don't extern them.
26683 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
26684
26685 * fontset.h (Qfontset): Don't extern it.
26686 (new_fontset_from_font_name): Extern it.
26687
26688 * fontset.c: Give 8 extra slots to fontset objects.
26689 (Qfontset_info): New variable.
26690 (syms_of_fontset): Defsym it.
26691 (FONTSET_FALLBACK): New macro.
26692 (fontset_face): Try also the default fontset.
26693 (make_fontset): Realize a fallback fontset from the default fontset.
26694 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
26695 using split_font_name_into_vector and build_font_name_from_vector.
26696 (Fset_fontset_font): Access the elements of font_spec by enum
26697 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
26698 name by using split_font_name_into_vector.
26699 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
bba3e508
SM
26700 generate a proper font name from the fontset name.
26701 Update Vfontset_alias_alist.
aac0c6e3
MR
26702 (n_auto_fontsets): New variable.
26703 (new_fontset_from_font_name): New function.
26704 (Ffont_info): Store the information about fonts generated from the
26705 default fontset in the first extra slot of the returned char-table.
26706
26707 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
26708 (font_name_registry): Delete function.
26709 (split_font_name_into_vector): New function.
26710 (build_font_name_from_vector): New function.
26711 (font_list): The argument REGISTRY is now a list of registry names.
26712 (choose_face_font): If we are choosing an ASCII font, and ATTRS
26713 specifies an explicit font name, return the name as is. Make a
26714 list of registy names.
26715
26716 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
26717 of x_new_fontset.
26718 (Fx_create_frame): Don't call x_new_fontset here. Just use
26719 x_list_fonts to check the existence of fonts.
26720
26721 * xterm.h (x_new_fontset): Adjust prototype.
26722
26723 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
26724 string. Use new_fontset_from_font_name to create a fontset from a
26725 font name.
26726
267272008-02-01 Kenichi Handa <handa@m17n.org>
26728
26729 * syntax.c (Vfind_word_boundary_function_table): New name for
26730 Vnext_word_boundary_function_table.
26731 (find-word-boundary-function-table): New name for
26732 next-word-boundary-function-table.
26733
267342008-02-01 Dave Love <fx@gnu.org>
26735
26736 * Makefile.in: Fix some dependencies.
26737
26738 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
26739 set it to nil before returning.
26740
26741 * composite.c (update_compositions): Fix type error.
26742
26743 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
26744
267452008-02-01 Kenichi Handa <handa@m17n.org>
26746
26747 * xterm.c (x_new_font): Optimize for the case that the font is
26748 already set for the frame.
26749
267502008-02-01 Kenichi Handa <handa@m17n.org>
26751
26752 * chartab.c (char_table_ascii): Check if the char table contents
26753 is sub-char-table or not.
26754 (char_table_set, char_table_set_range): Fix argument to
26755 char_table_ascii.
26756
26757 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
26758 (detect_coding_utf_8, detect_coding_utf_16)
26759 (detect_coding_emacs_mule, detect_coding_iso_2022)
26760 (detect_coding_sjis, detect_coding_big5)
26761 (detect_coding_ccl, detect_coding_charset): Change argument MASK
26762 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
26763 sequence is valid in this coding system. Change callers.
26764 (MAX_ANNOTATION_LENGTH): New macro.
26765 (ADD_ANNOTATION_DATA): New macro.
bba3e508
SM
26766 (ADD_COMPOSITION_DATA): Change argument. Change callers.
26767 Call ADD_ANNOTATION_DATA. Change the format of annotation data.
aac0c6e3
MR
26768 (ADD_CHARSET_DATA): New macro.
26769 (emacs_mule_char): New argument ID. Change callers.
26770 (decode_coding_emacs_mule, decode_coding_iso_2022)
26771 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
26772 Produce charset annotation data in coding->charbuf.
26773 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
26774 to charset annotation data in coding->charbuf.
26775 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
26776 coding->common_flags if the coding system is iso-2022 based and
26777 uses designation.
26778 (produce_composition): Adjust for the new annotation data format.
26779 (produce_charset): New function.
26780 (produce_annotation): Handle charset annotation.
bba3e508
SM
26781 (handle_composition_annotation, handle_charset_annotation):
26782 New functions.
aac0c6e3
MR
26783 (consume_chars): Handle charset annotation. Utilize the above two
26784 functions.
26785 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
26786 buffer, get the deleted text as a string and set
26787 coding->src_object to that string.
26788 (detect_coding, detect_coding_system): Use the new struct
26789 coding_detection_info.
26790
26791 * coding.h (struct coding_detection_info): New structure.
26792 (struct coding_system): Adjust prototype of the member `detector'.
26793 (CODING_ANNOTATE_CHARSET_MASK): New macro.
26794
267952008-02-01 Kenichi Handa <handa@m17n.org>
26796
26797 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
26798
267992008-02-01 Dave Love <fx@gnu.org>
26800
26801 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
26802 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
26803 to new local and nullify apropos_accumulate before returning.
26804 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
26805
268062008-02-01 Kenichi Handa <handa@m17n.org>
26807
26808 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
26809 correctly.
e3eea1fc 26810
aac0c6e3
MR
268112008-02-01 Dave Love <fx@gnu.org>
26812
26813 * fns.c (Flanginfo): Call synchronize_system_time_locale.
26814
268152008-02-01 Kenichi Handa <handa@m17n.org>
26816
26817 The following changes are to make character composition happen
26818 automatically on displaying.
26819
26820 * Makefile.in (lisp, shortlisp): Add composite.elc.
26821
26822 * composite.h (Qauto_composed, Vauto_composition_function)
26823 (Qauto_composition_function): Extern them.
26824
26825 * composite.c (Vcomposition_function_table)
26826 (Qcomposition_function_table): Delete variables.
26827 (Qauto_composed, Vauto_composition_function)
26828 (Qauto_composition_function): New variables.
26829 (run_composition_function): Don't call
26830 compose-chars-after-function.
26831 (update_compositions): Clear `auto-composed' text property.
26832 (compose_chars_in_text): Delete this function.
26833 (syms_of_composite): Staticpro Qauto_composed and
26834 Qauto_composition_function. Declare Vauto_composition_function as
26835 a Lisp variable.
26836
26837 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
26838
26839 * xdisp.c (it_props): Add an entry for Qauto_composed.
26840 (handle_auto_composed_prop): New function.
26841
26842 * xselect.c (selection_data_to_lisp_data): Don't call
26843 compose_chars_in_text.
26844
268452008-02-01 Dave Love <fx@gnu.org>
26846
26847 * keyboard.c (read_char): Modify checking around use of
26848 Vkeyboard_translate_table.
26849
26850 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
26851 and fix C types.
26852
268532008-02-01 Kenichi Handa <handa@m17n.org>
26854
26855 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
26856 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
26857 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
26858 the case that the last byte is '\r' correctly.
26859 (decode_coding): Flush out the unprocessed data correctly.
26860 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
26861
268622008-02-01 Dave Love <fx@gnu.org>
26863
26864 * xterm.c (XTread_socket): Fix changes for defined keysyms.
26865 Add XK_ISO... case.
26866 (xaw_scroll_callback): Revert last change.
26867
268682008-02-01 Kenichi Handa <handa@m17n.org>
26869
26870 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
26871
268722008-02-01 Kenichi Handa <handa@m17n.org>
26873
26874 * xfaces.c (Vface_resizing_fonts): New variable.
26875 (struct font_name): New member `resizing_ratio'.
26876 (font_resizing_ratio): New function.
26877 (split_font_name): Set font->resizing_ratio.
26878 (better_font_p): Pay attention to font->resizing_ratio.
26879 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
26880 RESX, and RESY fields.
26881 (try_alternative_families): Try scalable fonts if
26882 Vscalable_fonts_allowed is not Qt.
26883 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
26884
268852008-02-01 Dave Love <fx@gnu.org>
26886
26887 * xterm.c (xaw_scroll_callback): Cast correctly.
26888
268892008-02-01 Dave Love <fx@gnu.org>
26890
26891 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
26892 (lispy_kana_keys): Comment out.
26893 (make_lispy_event) [XK_kana_A]: Comment out.
26894
26895 * xterm.c (xaw_scroll_callback): Cast call_data.
26896 (XTread_socket): Deal with ASCII keysyms.
26897 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
26898
268992008-02-01 Dave Love <fx@gnu.org>
26900
26901 * xterm.c (Vx_keysym_table): New.
26902 (syms_of_xterm): Initialize it.
26903 (XTread_socket): Use it.
26904 From head: Eliminate incorrect optimization that tried to avoid
26905 decoding the output of X*LookupString.
26906 (x_get_font_repertory): Delete charset declaration.
26907
269082008-02-01 Kenichi Handa <handa@m17n.org>
26909
26910 * coding.c (detect_coding_charset): If only ASCII bytes are found,
26911 return 0.
bba3e508
SM
26912 (Fdefine_coding_system_internal):
26913 Setup CODING_ATTR_ASCII_COMPAT (attrs) correctly.
aac0c6e3
MR
26914
269152008-02-01 Dave Love <fx@gnu.org>
26916
26917 * coding.c (Fcheck_coding_system): Doc fix.
26918
26919 * editfns.c (Finsert_byte): Return a proper value.
26920
269212008-02-01 Kenichi Handa <handa@m17n.org>
26922
bba3e508
SM
26923 * coding.c (decode_coding): Fix args to translate_chars.
26924 Pay attention to Vstandard_translation_table_for_decode.
aac0c6e3
MR
26925 (encode_coding): Fix args to translate_chars. Pay attention to
26926 Vstandard_translation_table_for_encode.
26927
26928 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
26929 SINGLE_BYTE_CHAR_P.
26930
26931 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
26932 not by SINGLE_BYTE_CHAR_P.
26933
26934 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
26935 SINGLE_BYTE_CHAR_P.
26936
26937 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
26938 SINGLE_BYTE_CHAR_P.
26939
26940 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
26941 by SINGLE_BYTE_CHAR_P.
26942
26943 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
26944 SINGLE_BYTE_CHAR_P.
26945
269462008-02-01 Dave Love <fx@gnu.org>
26947
26948 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
26949
269502008-02-01 Dave Love <fx@gnu.org>
26951
26952 * fns.c (Flanginfo): Fix typo.
26953
26954 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
26955
269562008-02-01 Kenichi Handa <handa@m17n.org>
26957
26958 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
26959 (detect_coding_emacs_mule, detect_coding_iso_2022)
26960 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
26961 incomplete byte sequence. Don't update *mask when correctly detected.
26962 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
26963 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
26964 (detect_coding, detect_coding_system): Adjust for the changes above.
26965
269662008-02-01 Kenichi Handa <handa@m17n.org>
26967
26968 * character.c (char_string): Rename from
26969 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
26970 (string_char): Rename from string_char.
26971
26972 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
26973 if C is greater than MAX_3_BYTE_CHAR.
bba3e508
SM
26974 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE):
26975 Call string_char instead of string_char_with_unification.
aac0c6e3
MR
26976
269772008-02-01 Dave Love <fx@gnu.org>
26978
26979 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
26980
269812008-02-01 Kenichi Handa <handa@m17n.org>
26982
26983 * keymap.c (push_key_description): Pay attention to force_multibyte.
26984
26985 * regex.c (re_search_2): Fix for the case of unibyte buffer.
26986
269872008-02-01 Dave Love <fx@gnu.org>
26988
26989 * charset.c (define_charset_internal): Rename `supprementary'.
26990
26991 * Makefile.in (lisp, shortlisp): Remove latin-N.
26992
269932008-02-01 Dave Love <fx@gnu.org>
26994
26995 * xfns.c (x_window, x_window): Use use_xim.
26996
26997 * xterm.c (use_xim): Initialize.
26998 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
26999 (x_term_init): Maybe set use_xim.
27000
27001 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
27002
270032008-02-01 Kenichi Handa <handa@m17n.org>
27004
27005 * search.c (search_buffer): Fix case-fold-search of multibyte
27006 characters.
27007 (boyer_moore): Rename the last argument to char_high_bits.
27008
270092008-02-01 Kenichi Handa <handa@m17n.org>
27010
27011 * xdisp.c (display_string): Fix for the case of zero width glyph.
27012
27013 * xfns.c (x_set_font): Change the error message of the case that
27014 x_new_fontset returns Qt.
27015
27016 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
27017 (Finternal_set_lisp_face_attribute): Use signal_error for the
27018 error of invalid fontset.
27019
27020 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
27021 fontset, return Qt.
27022
270232008-02-01 Dave Love <fx@gnu.org>
27024
27025 * unexelf.c (unexec): Make .got handling not SGI-specific.
27026
27027 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
27028
27029 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
27030
27031 * keyboard.c (read_key_sequence): Fix type error.
27032
bba3e508
SM
27033 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte):
27034 Fix type error.
aac0c6e3
MR
27035
27036 * fontset.c (fontset_add): Return Lisp_Object.
27037
270382008-02-01 Dave Love <fx@gnu.org>
27039
27040 * charset.h (charset_ordered_list_tick): Declare extern.
27041
270422008-02-01 Kenichi Handa <handa@m17n.org>
27043
27044 The following changes (and some of 2008-02-01 changes of mine) are
27045 for handling syntax, category, and case conversion for unibyte
27046 characters by converting them to multibyte on the fly. With these
27047 changes, we don't have to setup syntax and case tables for unibyte
27048 characters in each language environment.
27049
27050 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
27051 multibyte if necessary.
27052
27053 * bytecode.c (Fbyte_code): Likewise.
27054
27055 * character.h (LEADING_CODE_LATIN_1_MIN)
27056 (LEADING_CODE_LATIN_1_MAX): New macros.
27057 (unibyte_to_multibyte_table): Extern it.
27058 (unibyte_char_to_multibyte): New macro.
27059 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
27060 (CHAR_LEADING_CODE): New macro.
27061 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
27062
27063 * character.c (unibyte_to_multibyte_table): New variable.
27064 (unibyte_char_to_multibyte): Move to character.h and define as macro.
27065 (multibyte_char_to_unibyte): If C is an eight-bit character,
27066 convert it to the corresponding byte value.
27067
27068 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
27069 not 1, signals an error. Update the elements of
27070 unibyte_to_multibyte_table.
27071 (init_charset_once): Initialize unibyte_to_multibyte_table.
27072 (syms_of_charset): Define the charset `iso-8859-1'.
27073
27074 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
27075 as is without converting it to unibyte. In a unibyte buffer,
27076 convert C to multibyte before checking the syntax.
27077
27078 * lisp.h (unibyte_char_to_multibyte): Delete extern.
27079
27080 * minibuf.c (Fminibuffer_complete_word): Use the macro
27081 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
27082
27083 * regex.h (struct re_pattern_buffer): New member target_multibyte.
27084
27085 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
bba3e508
SM
27086 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte.
27087 If that is zero, convert an eight-bit char to multibyte.
aac0c6e3
MR
27088 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
27089 non-emacs case.
27090 (PATFETCH): Convert an eight-bit char to multibyte.
27091 (HANDLE_UNIBYTE_RANGE): New macro.
27092 (regex_compile): Setup the compiled pattern for multibyte chars
27093 even if the given regex string is unibyte. Use PATFETCH_RAW
27094 instead of PATFETCH in many places. To handle `charset'
27095 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
27096 only for ASCII chars.
27097 (analyse_first) <exactn>: Simplify because the compiled pattern
27098 is multibyte.
27099 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
27100 <charset>: Use CHAR_LEADING_CODE to get leading codes.
27101 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
27102 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
27103 multibyte always 1.
27104 (re_search_2): In emacs, set the locale variable multibyte to 1,
27105 otherwise to 0. New local variable target_multibyte. Check it
bba3e508
SM
27106 to decide the multibyteness of STR1 and STR2.
27107 If target_multibyte is zero, convert unibyte chars to multibyte
aac0c6e3
MR
27108 before translating and checking fastmap.
27109 (TARGET_CHAR_AND_LENGTH): New macro.
27110 (re_match_2_internal): In emacs, set the locale variable multibyte
bba3e508
SM
27111 to 1, otherwise to 0. New local variable target_multibyte.
27112 Check it to decide the multibyteness of STR1 and STR2.
27113 Use TARGET_CHAR_AND_LENGTH to fetch a character from D.
aac0c6e3
MR
27114 <charset, charset_not>: If multibyte is nonzero, check fastmap
27115 only for ASCII chars. Call bcmp_translate with
27116 target_multibyte, not with multibyte.
27117 <begline>: Declare the local variable C as `unsigned'.
27118 (bcmp_translate): Change the last arg name to target_multibyte.
27119
27120 * search.c (compile_pattern_1): Don't adjust the multibyteness of
27121 the regexp pattern and the matching target. Set cp->buf.multibyte
27122 to the multibyteness of the regexp pattern. Set
27123 cp->but.target_multibyte to the multibyteness of the matching target.
27124 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
27125 FETCH_STRING_CHAR_ADVANCE.
27126 (Freplace_match): Convert unibyte chars to multibyte.
27127
27128 * syntax.c (char_quoted, back_comment, scan_words)
27129 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
27130 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
27131 unibyte chars to multibyte.
27132 (skip_chars): Delete the arg syntaxp, and move the code for
27133 handling syntaxes to skip_syntaxes. Change callers.
27134 Fix the case that the multibyteness of STRING and the current
27135 buffer doesn't match.
27136 (skip_syntaxes): New function.
27137 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
27138 SINGLE_BYTE_CHAR_P.
27139
271402008-02-01 Kenichi Handa <handa@m17n.org>
27141
27142 * xfaces.c (QCfontset): New variable.
27143 (LFACE_FONTSET): New macro.
27144 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
27145 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
27146 (Finternal_set_lisp_face_attribute)
27147 (Finternal_get_lisp_face_attribute): Handle QCfontset.
27148 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
27149 check also LFACE_FONTSET_INDEX.
27150 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
27151 attrs[LFACE_FONT_INDEX].
27152 (syms_of_xfaces): Intern and staticpro QCfontset.
27153
27154 * dispextern.h (enum lface_attribute_index): New member
27155 LFACE_FONTSET_INDEX.
27156
27157 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
27158
271592008-02-01 Kenichi Handa <handa@m17n.org>
27160
27161 * coding.c (coding_set_destination): Fix coding->destination for
27162 the case converting a region.
27163 (encode_coding_utf_8): Encode eight-bit chars as single byte.
27164 (encode_coding_object): Fix coding->dst_pos and
27165 coding->dst_pos_byte for the case converting a region.
27166
27167 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
27168
27169 * character.h (BYTE8_STRING): New macro.
27170
27171 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
27172
271732008-02-01 Kenichi Handa <handa@m17n.org>
27174
27175 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
27176 characters by octal form.
27177
27178 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
27179
27180 * buffer.h (_fetch_multibyte_char_len): Delete extern.
27181 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
27182 _fetch_multibyte_char_len.
27183 (FETCH_CHAR_AS_MULTIBYTE): New macro.
27184
27185 * casetab.c (set_canon, set_identity, shuffle): Simplify.
27186
27187 * casefiddle.c (casify_object): Simplify. Handle the case that
27188 the case conversion change the byte length.
27189 (casify_region): Likewise.
27190
27191 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
27192
27193 * character.c (_fetch_multibyte_char_len): Delete this variable.
27194 (syms_of_character): Setup Vprintable_chars.
27195
27196 * editfns.c (Fchar_equal): Fix for the unibyte case.
27197 (Finsert_byte): New function.
27198 (syms_of_editfns): Defsubr it.
27199
27200 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
27201 of direct code 0x3ffff.
27202
27203 * search.c (Freplace_match): Fix for the unibyte case.
27204
272052008-02-01 Kenichi Handa <handa@m17n.org>
27206
27207 * lread.c (safe_to_load_p): Fix the logic.
27208
27209 * syntax.c (scan_words): Don't treat characters belonging to
27210 different scripts as constituting a word.
27211
27212 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27213
27214 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
27215
27216 * emacs.c (main): In the case of --unibyte, instead of aborting on
27217 finding non-empty buffer, make it unibyte.
27218
272192008-02-01 Kenichi Handa <handa@m17n.org>
27220
27221 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
27222 to create a fontset.
27223
272242008-02-01 Dave Love <fx@gnu.org>
27225
27226 * character.c (Funibyte_char_to_multibyte): Doc fix.
27227
27228 * xfns.c [HAVE_STDLIB_H]: Fix last change.
27229
272302008-02-01 Kenichi Handa <handa@m17n.org>
27231
27232 * fontset.c (fontset_add): Make the type `int'.
27233 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
27234
27235 * character.c (unibyte_char_to_multibyte)
27236 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
27237 charset_unibyte, not charset_primary.
27238
27239 * charset.h (charset_unibyte): Extern it instead of charset_primary.
27240
27241 * charset.c (charset_unibyte): Rename from charset_primary.
27242 (Funibyte_charset): Rename from Fprimary_charset.
27243 (Fset_unibyte_charset): Rename from Fset_primary_charset.
27244 (syms_of_charset): Adjust for the above changes.
27245
27246 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27247 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27248 it->multibyte_p is zero.
27249
27250 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
27251 Delete extern.
27252
272532008-02-01 Kenichi Handa <handa@m17n.org>
27254
27255 * coding.c (Fdefine_coding_system_internal): Fix category setting
27256 for a coding system of type iso-2022.
27257
272582008-02-01 Kenichi Handa <handa@m17n.org>
27259
27260 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
27261
272622008-02-01 Kenichi Handa <handa@m17n.org>
27263
27264 * syntax.c (Vnext_word_boundary_function_table): New variable.
27265 (next-word-boundary-function-table): Declare it as a Lisp variable
27266 in syms_of_syntax.
27267 (scan_words): Call functions in Vnext_word_boundary_function_table
27268 if any.
27269
27270 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
27271
27272 * fontset.c (fs_load_font): If fontp->charset is not negative,
27273 return fontp without setting its members.
27274
272752008-02-01 Dave Love <fx@gnu.org>
27276
27277 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
27278
27279 * m/sparc.h (HAVE_ALLOCA): Delete.
27280
27281 * s/irix6-5.h: Don't include strings.h.
27282 (bcopy, bzero, bcmp): Don't undef.
27283
27284 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
27285
27286 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
27287 (TIOCSIGSEND): Don't test IRIX6.
27288 (bcopy, bzero, bcmp): Define conditionally.
27289
272902008-02-01 Kenichi Handa <handa@m17n.org>
27291
27292 * buffer.c (Qas, Qmake, Qto): New variables.
27293 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
27294 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
27295
27296 * callproc.c (Fcall_process): Don't call insert_1_both directly if
27297 we are inserting a process output into a multibyte buffer.
27298
27299 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
27300 multibyte_char_to_unibyte.
27301
27302 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
27303 by the primary charset, make it eight-bit char.
27304 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
27305
27306 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
27307 (charset_8_bit__control, charset_8_bit_graphic)
27308 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
27309 (define_charset_internal): New function.
27310 (syms_of_charset): Call define_charset_internal for pre-defined
27311 charsets.
27312
27313 * charset.h (charset_8_bit): Extern it.
27314
27315 * coding.c (make_conversion_work_buffer): Adjust for the change
27316 of Fset_buffer_multibyte.
27317 (encode_coding_raw_text): Increment p0 in the loop.
27318
27319 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
27320
bba3e508
SM
27321 * xdisp.c (setup_echo_area_for_printing, set_message_1):
27322 Adjust for the change of Fset_buffer_multibyte.
aac0c6e3
MR
27323
27324 * fns.c (Fstring_to_multibyte): New function.
27325 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
27326
273272008-02-01 Dave Love <fx@gnu.org>
27328
27329 * xfns.c (x_put_x_image): Declare args.
27330
27331 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
27332 (try_font_list): Declare an arg.
27333
27334 * xdisp.c (message2_nolog, set_message): Declare an arg.
27335
27336 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
27337
27338 * syntax.c (scan_sexps_forward): Declare an arg.
27339
27340 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
27341 Declare an arg.
27342
27343 * lisp.h (Fnew_fontset): Declare.
27344
27345 * keymap.c (push_key_description): Call CHARACTERP correctly.
27346
27347 * fontset.c (fontset_add): Declare args. Call make_number correctly.
27348 (face_for_char): Delete unused vars.
27349 (Fset_fontset_font): Doc fix. Delete unused vars.
27350
27351 * doc.c (Fsubstitute_command_keys): Delete unused vars.
27352
27353 * composite.c (update_compositions): Declare arg.
27354
27355 * cm.c (calccost, cmgoto): Declare args.
27356
27357 * charset.c: Remove `emacs' conditional. Doc fixes.
27358 (map_char_table_for_charset): Declare.
27359
27360 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
27361
27362 * ccl.c: Remove `emacs' conditional.
27363
273642008-02-01 Kenichi Handa <handa@m17n.org>
27365
27366 The following changes are to allow specifying multiple font
27367 patterns for a character range (specified by script or charset).
27368
27369 * Makefile.in (abbrev.o): Depend on syntax.h.
27370 (xfaces.o): Depend on charset.h.
27371
27372 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
27373 SINGLE_BYTE_CHAR_P.
27374
27375 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
27376
27377 * character.h (Vchar_script_table): Extern it.
27378
27379 * character.c (Vscript_alist): Delete.
27380 (Vchar_script_table, Qchar_script_table): New variable.
27381 (syms_of_character): Declare Vchar_script_table as a lisp variable
27382 and initialize it.
27383
27384 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
27385 have property char-table-extra-slots, make no extra slot.
27386
27387 * dispextern.h (struct face): Delete member `charset'.
27388 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
27389 SINGLE_BYTE_CHAR_P.
27390 (choose_face_font, lookup_non_ascii_face, font_name_registry):
27391 Add prototypes.
27392 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
27393 (generate_ascii_font_name): Rename from generate_ascii_font.
27394
27395 * fontset.h (get_font_repertory_func): New prototype.
27396 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
27397 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
27398
27399 * fontset.c (Qprepend, Qappend): New variables.
27400 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
27401 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
27402 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
27403 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
27404 (fontset_ref_and_range, fontset_add, reorder_font_vector)
27405 (load_font_get_repertory): New functions.
27406 (fontset_set): Delete.
27407 (fontset_face): New arg FACE. Return face ID, not face.
27408 Complete re-write to handle new fontset structure. Change caller.
27409 (free_face_fontset): Use ASET istead of AREF (X) = Y.
27410 (face_for_char): Don't call lookup_face.
27411 (make_fontset_for_ascii_face): New arg FACE.
27412 (fs_load_font): New arg CHARSET_ID. Don't check
27413 Vfont_encoding_alist here.
27414 (find_font_encoding): New function.
27415 (list_fontsets): Use STRINGP, not ! NILP.
27416 (accumulate_script_ranges): New function.
bba3e508
SM
27417 (Fset_fontset_font, Fnew_fontset, Ffontset_info):
27418 Completely re-written to handle new fontset structure.
aac0c6e3 27419 (Ffontset_font): Return a copy of element.
bba3e508
SM
27420 (syms_of_fontset): Define symbols Qprepend and Qappend.
27421 Fix docstring of font-encoding-alist.
aac0c6e3
MR
27422
27423 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
27424 (Fset_fotset_font): Fix arguments to 5.
27425
27426 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
27427
27428 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
27429 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27430 (highlight_trailing_whitespace): Adjust for the change of
27431 lookup_named_face.
27432
27433 * xfaces.c: Include charset.h.
27434 (load_face_font): Delete argument C. Change caller.
27435 (generate_ascii_font_name): Rename from generate_ascii_font.
27436 (font_name_registry): New function.
27437 (cache_face): Store ascii faces before non-ascii faces in buckets.
27438 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
27439 Lookup only ascii faces.
27440 (lookup_non_ascii_face): New function.
27441 (lookup_named_face): Delete argument C. Change caller.
27442 (lookup_derived_face): Delete argument C. Change caller.
27443 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
27444 a string, just call font_list with it.
27445 (choose_face_font): Delete arguments FACE and C. New arg
27446 FONT_SPEC. Change caller.
27447 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
27448 Change caller.
27449 (realize_non_ascii_face): New function.
27450 (realize_x_face): Call load_face_font here.
27451 (realize_tty_face): Delete argument C. Change caller.
27452 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
27453 get a face ID.
27454 (dump_realized_face): Don't print charset of FACE.
27455
27456 * xfns.c (x_set_font): Always call x_new_fontset and
27457 store_frame_parameter.
27458 (Fx_create_frame): Call x_new_fontset, not x_new_font.
27459 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
27460
27461 * xterm.h (x_get_font_repertory): Extern it.
27462
27463 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
27464 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
27465 it->multibyte_p is zero.
27466 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
27467 (x_new_fontset): If FONTSETNAME doesn't match any existing
27468 fontsets, create a new one.
27469 (x_get_font_repertory): New function.
27470
274712008-02-01 Kenichi Handa <handa@m17n.org>
27472
27473 * coding.c (Ffind_coding_systems_region_internal): Detect an
27474 ASCII only string correctly.
27475
27476 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
27477 version is 0.
27478
274792008-02-01 Kenichi Handa <handa@m17n.org>
27480
27481 * lread.c: Include "coding.h".
27482 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
27483 (load_each_byte, unread_char): New variables.
27484 (readchar_backlog): Delete.
27485 (readchar): Return a character unless load_each_byte is nonzero.
27486 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
27487 cons. If unread_char is not -1, simply return it.
27488 (unreadchar): Handle the case that readcharfun is
27489 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
27490 (read_multibyte): Delete.
27491 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
27492 (read_emacs_mule_char): New functions.
27493 (Fload): Even if the file doesn't have the extension ".elc", if
27494 safe_to_load_p returns a positive version number, assume that the
27495 file contains bytecompiled code. If the version is less than 22,
27496 load the file while decoding multibyte sequences by emacs-mule.
27497 (readevalloop): Don't use readchar_backlog.
27498 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
27499 (Fread_from_string): Pay attention to the case that STREAM is a cons.
27500 (read_escape): Delete the arg BYTEREP.
27501 (read1): Set load_each_byte to 1 temporarily while handling
27502 #@NUMBER. Don't call read_multibyte.
27503 (read_vector): Call Fread with a cons. If readcharfun is
27504 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
27505 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
27506 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
27507 and Qload_force_doc_strings.
27508
275092008-02-01 Kenichi Handa <handa@m17n.org>
27510
bba3e508
SM
27511 * xdisp.c (face_before_or_after_it_pos):
27512 Call FETCH_MULTIBYTE_CHAR with byte postion, not char position.
aac0c6e3
MR
27513
275142008-02-01 Kenichi Handa <handa@m17n.org>
27515
27516 * character.h (TRAILING_CODE_P): New macro.
27517 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
27518 (string_char_with_unification): Fix prototype.
27519 (Vscript_alist): Extern it.
27520
27521 * character.c (Vscript_alist): New variable.
27522 (string_char_with_unification, str_as_unibyte)
27523 (string_escape_byte8): Add `const' to local variables.
27524 (syms_of_character): Declare script-alist as a Lisp variable.
27525
27526 * charset.h (Vcharset_ordered_list): Extern it.
27527 (charset_ordered_list_tick): Extern it.
27528 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
27529 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
27530 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
27531 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
27532 (Funify_charset): Adjust for the change of Funify_charset.
27533
27534 * charset.c (charset_ordered_list_tick): New variable.
27535 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
27536 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
6e051c0a 27537 deunify instead of unify a charset.
aac0c6e3
MR
27538 (string_xstring_p): Add `const' to local variables.
27539 (find_charsets_in_text): Add `const' to arguments and local variables.
bba3e508
SM
27540 (encode_char): Adjust for the change of Funify_charset.
27541 Fix detecting of invalid code.
aac0c6e3
MR
27542 (Fset_charset_priority): Increment charset_ordered_list_tick.
27543 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
27544 and TO_CODE.
27545
27546 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
27547 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
27548 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
27549 (decode_coding_ccl, consume_chars)
27550 (Ffind_coding_systems_region_internal)
27551 (Fcheck_coding_systems_region): Add `const' to local variables.
27552
27553 * print.c (print_object): Use octal form for printing the
27554 contents of a bool vector.
27555
275562008-02-01 Dave Love <fx@gnu.org>
27557
27558 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
27559 <version == 20>: Refuse to load.
27560
275612008-02-01 Dave Love <fx@gnu.org>
27562
27563 * fns.c: Move coding.h.
27564 (Qcodeset, Qdays, Qmonths): New.
27565 (concat): Use CHARACTERP instead of INTEGERP.
27566 (Flocale_codeset): Delete.
27567 (Flanginfo): New function.
27568 (syms_of_fns): Change accordingly.
27569
27570 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
27571
275722008-02-01 Dave Love <fx@gnu.org>
27573
bba3e508
SM
27574 * casetab.c (init_casetab_once, init_casetab_once):
27575 Fix CHAR_TABLE_SET call.
aac0c6e3
MR
27576
27577 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
27578
27579 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
27580
27581 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
27582 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
27583 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
27584
27585 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
27586
27587 * coding.c (ENCODE_DESIGNATION, decode_eol)
27588 (make_conversion_work_buffer, code_conversion_restore)
27589 (Fdefine_coding_system_internal): Convert Lisp types.
27590 (code_conversion_restore): Use EQ, not ==.
27591 (Fencode_coding_string): Fix code_convert_string call.
27592
27593 * coding.h (code_convert_region): Fix prototype.
27594
27595 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
27596
27597 * fontset.c (fontset_ref, fontset_set, fs_load_font)
27598 (Ffontset_info): Convert Lisp types.
27599
27600 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
27601
27602 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
27603
27604 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
27605
27606 * chartab.c: Include "...h", not <...h> in some cases.
27607
27608 * callproc.c (Fcall_process): Remove unused variables.
27609
276102008-02-01 Dave Love <fx@gnu.org>
27611
27612 * coding.c (Fset_coding_system_priority): Allow null arg list.
27613
276142008-02-01 Dave Love <fx@gnu.org>
27615
27616 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
27617 (Fself_insert_and_exit): Use CHARACTERP.
27618
27619 * callproc.c (Fcall_process): Remove unused vars.
27620
27621 * xterm.c (XTread_socket): Add extra dead keysyms.
27622
27623 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
27624
27625 * dispextern.h: Remove prototypes for redraw_frame,
27626 redraw_garbaged_frames.
27627
27628 * cmds.c (Fself_insert_command): Use CHARACTERP.
27629
27630 * chartab.c (make_sub_char_table): Remove unused var.
27631 (Fset_char_table_default, Fmap_char_table): Doc fix.
27632
27633 * keymap.c (access_keymap): Remove generic char code.
27634 (push_key_description): Use CHARACTERP.
27635
276362008-02-01 Dave Love <fx@gnu.org>
27637
27638 * charset.c: Doc fixes.
27639 (Funify_charset): Extra checking.
27640
276412008-02-01 Dave Love <fx@gnu.org>
27642
27643 * lread.c: Remove some unused variables.
27644 (safe_to_load_p): If safe, return the magic number version byte.
27645 (Fload): Maybe use load-with-code-conversion.
27646
276472008-02-01 Kenichi Handa <handa@m17n.org>
27648
27649 * category.c (Fmodify_category_entry): Don't modify the contents
bba3e508
SM
27650 of category_set for characters out of the range.
27651 Avoid unnecessary modification.
aac0c6e3
MR
27652
27653 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
27654 Vchar_unify_table. The default value of the table is now nil.
27655
27656 * character.c (syms_of_character): Setup Vchar_width_table for
27657 eight-bit-control and raw-byte chars.
27658
bba3e508
SM
27659 * charset.h (enum define_charset_arg_index):
27660 Delete charset_arg_parents and add charset_arg_subset and
aac0c6e3
MR
27661 charset_arg_superset.
27662 (enum charset_attr_index): Delete charset_parents and add
27663 charset_subset and charset_superset.
27664 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
27665 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
27666 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
27667 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
27668 (CHARSET_SUPERSET): New macros.
27669 (charset_work): Extern it.
27670 (ENCODE_CHAR): Use charset_work.
27671 (CHAR_CHARSET_P): Adjust for the change of encoder format.
27672 (map_charset_chars): Extern it.
27673
27674 * charset.c (load_charset_map): Set the default value of encoder
27675 and deunifier char-tables to nil.
bba3e508
SM
27676 (map_charset_chars): Change argument. Change callers.
27677 Use map_char_table_for_charset instead of map_char_table.
aac0c6e3
MR
27678 (Fmap_charset_chars): New optional args from_code and to_code.
27679 (Fdefine_charset_internal): Adjust for the change of
27680 `define-charset' (:parents -> :subset or :superset).
27681 (charset_work): New variable.
27682 (encode_char, syms_of_charset): Adjust for the change of
27683 Fdefine_charset_internal.
27684 (Ffind_charset_string): Setup the vector `charsets' correctly.
27685
bba3e508
SM
27686 * chartab.c (sub_char_table_ref_and_range): New arg default.
27687 Fix the previous change.
aac0c6e3
MR
27688 (char_table_ref_and_range): Adjust for the above change.
27689 (map_sub_char_table_for_charset): New function.
27690 (map_char_table_for_charset): New function.
27691
27692 * keymap.c (describe_vector): Handle a char-table directly here.
27693 (describe_char_table): Delete.
27694
27695 * lisp.h (map_charset_chars): Delete.
27696
276972008-02-01 Dave Love <fx@gnu.org>
27698
27699 * fns.c (count_combining): Comment out (unused).
27700 (Flocale_codeset): New.
27701 (syms_of_fns): Defsubr it.
27702
27703 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
27704 (size_t): Remove.
27705
277062008-02-01 Dave Love <fx@gnu.org>
27707
27708 * Makefile.in (chartab.o): Depend on charset.h.
27709
277102008-02-01 Kenichi Handa <handa@m17n.org>
27711
27712 * character.c (syms_of_character): Set the default value of
27713 Vprintable_chars to Qnil.
27714
277152008-02-01 Dave Love <fx@gnu.org>
27716
27717 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
27718
277192008-02-01 Kenichi Handa <handa@m17n.org>
27720
27721 * charset.c (load_charset_map): Handle the case that from < to
27722 correctly.
27723
27724 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
27725 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
27726 Pay attention to raw-8-bit chars.
27727
277282008-02-01 Kenichi Handa <handa@m17n.org>
27729
27730 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
27731 It is not bytecompiled now.
27732
27733 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
27734 (charset_jisx0208): New variables.
27735 (Fdefine_charset_internal): Setup them if appropriate.
27736 (init_charset_once): Initialize them to -1.
27737
27738 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
27739 (charset_jisx0208): Extern them.
27740
27741 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
27742 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
27743 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
27744 (setup_iso_safe_charsets): Fix arguments to Fassq.
27745 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
27746 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
27747 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
27748 (encode_coding_iso_2022): Change the 1st arg to
27749 ENCODE_ISO_CHARACTER to a variable.
27750
277512008-02-01 Kenichi Handa <handa@m17n.org>
27752
27753 * charset.h (enum define_charset_arg_index): New enums
27754 charset_arg_min_code and charset_arg_max_code.
27755 (struct charset): New member char_index_offset.
27756
27757 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
27758 Take charset->char_index_offset into account.
27759 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
27760 args[charset_arg_max_code]. Setup charset.char_index_offset.
27761 (syms_of_charset): Fix args to Fdefine_charset_internal.
27762
277632008-02-01 Dave Love <fx@gnu.org>
27764
27765 * coding.c (decode_coding_utf_8): Reject overlong sequences.
27766
277672008-02-01 Dave Love <fx@gnu.org>
27768
27769 * coding.c: Doc fixes.
27770 (Fcoding_system_aliases): Fix return value.
27771 (Qmac): Remove (duplicated) definition.
27772
277732008-02-01 Dave Love <fx@gnu.org>
27774
362654a6
JB
27775 * charset.c (Fcharset_priority_list, Fset_charset_priority):
27776 New functions.
aac0c6e3
MR
27777
27778 * character.c (Fstring): Doc fix.
27779
27780 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
27781
362654a6 27782 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
27783 (font-encoding-alist): Doc fix.
27784
277852008-02-01 Dave Love <fx@gnu.org>
27786
27787 * term.c (costs_set): Declare static, non-initialized for pcc.
27788 (encode_terminal_code): Remove unused var.
27789
27790 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
27791 for K&R.
27792
27793 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
27794
27795 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
27796 (suffixes): Move out of make_subsidiaries for K&R.
27797
27798 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
27799
27800 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
27801
278022008-02-01 Dave Love <fx@gnu.org>
27803
27804 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
27805
27806 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
27807
278082008-02-01 Yong Lu <lyongu@asia-infonet.com>
27809
27810 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
27811
27812 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
27813
278142008-02-01 Kenichi Handa <handa@m17n.org>
27815
27816 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
27817 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
27818
278192008-02-01 Kenichi Handa <handa@m17n.org>
27820
27821 * coding.c (decode_coding_charset): Adjust for the change of
27822 Fdefine_coding_system_internal.
27823 (Fdefine_coding_system_internal): For a coding system of
27824 `charset' type, store a list of charset IDs in
27825 `charset_attr_charset_valids' element of coding attributes.
27826
278272008-02-01 Kenichi Handa <handa@m17n.org>
27828
27829 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
bba3e508
SM
27830 (emacs_mule_char): New arg src. Delete arg `composition'.
27831 Change caller. Handle 2-byte and 3-byte charsets correctly.
aac0c6e3
MR
27832 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
27833 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
27834 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
ef1b0ba7
SM
27835 (DECODE_EMACS_MULE_21_COMPOSITION):
27836 Call DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
aac0c6e3
MR
27837 sequence.
27838 (decode_coding_emacs_mule): Handle composition correctly. Rewind
27839 `src' and `consumed_chars' correctly before calling emacs_mule_char.
27840 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
27841 and alt&rule composition.
27842 (decode_coding_iso_2022): Handle composition correctly.
27843 (init_coding_once): Setup emacs_mule_bytes for private charsets.
27844
27845 * charset.c (Fdefine_charset_internal): Fix bug for the case of
27846 re-defining a charset. If the charset has :emacs-mule-id, setup
27847 emacs_mule_bytes.
27848 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
27849
278502008-02-01 Kenichi Handa <handa@m17n.org>
27851
27852 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
27853 (encode_coding_big5, encode_coding_charset): If coding requires safe
27854 encoding, produce a character specified by
27855 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
27856
278572008-02-01 Dave Love <fx@gnu.org>
27858
27859 * xterm.c (XSetIMValues): Declare.
27860
27861 * process.c: Conditionally include sys/wait.h, pty.h.
27862
27863 * print.c (print_object): Fix print format for 64-bit systems.
27864
27865 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
27866
27867 * buffer.c (emacs_strerror): Declare.
27868
27869 * fontset.c (Fclear_face_cache): Declare.
27870 (accumulate_font_info): Comment-out (unused).
27871 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
27872 variables.
27873
27874 * character.h (string_escape_byte8): Declare.
27875
bba3e508
SM
27876 * charset.c (load_charset_map, load_charset_map_from_file):
27877 Remove unused vars.
aac0c6e3
MR
27878 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
27879 (Fmap_charset_chars): Doc fix.
27880
27881 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
27882 (Fset_coding_system_priority, Fset_coding_system_priority)
27883 (Fdefine_coding_system_internal): Doc fix.
27884
278852008-02-01 Dave Love <fx@gnu.org>
27886
27887 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
27888
278892008-02-01 Kenichi Handa <handa@m17n.org>
27890
27891 * character.c (string_escape_byte8): Make multibyte string with
27892 correct size.
27893
27894 * charset.c (Fmake_char): Delete unnecessary code.
27895
278962008-02-01 Kenichi Handa <handa@m17n.org>
27897
27898 * xfns.c (x_encode_text): Allocate coding.destination here, and
27899 call encode_coding_object with dst_object Qnil.
27900
27901 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
27902 multibyte form correctly.
27903
27904 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
27905 against Vfont_encoding_alist.
27906
27907 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
27908 handling of charset list.
27909 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
27910 (decode_coding_object): Move point to coding->dst_pos before
27911 calling post-read-conversion function.
27912 (encode_coding_object): Give correct arguments to
27913 pre-write-conversion. Ignore the return value of
27914 pre-write-conversion function. Pay attention to the case that
27915 pre-write-conversion changes the current buffer. If dst_object is
27916 Qt, even if coding->src_bytes is zero, allocate at least one byte
27917 to coding->destination.
27918
27919 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
27920
27921 * charset.c (Fmake_char): Make it more backward compatible.
27922 (Fmap_charset_chars): Fix docstring.
27923
279242008-02-01 Dave Love <fx@gnu.org>
27925
27926 * coding.c: Doc fixes.
27927 (Fdefine_coding_system_alias): Use names, not symbols, in
27928 coding-system-alist.
27929
279302008-02-01 Kenichi Handa <handa@m17n.org>
27931
27932 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
27933 of calling free_realized_face.
27934
279352008-02-01 Yong Lu <lyongu@asia-infonet.com>
27936
27937 * charset.c (read_hex): Don't treat SPC as a comment starter.
27938 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
27939 (Fdecode_char): Fix typo.
27940
279412008-02-01 Kenichi Handa <handa@m17n.org>
27942
27943 * charset.h (struct charset): New member `code_space_mask'.
27944
27945 * coding.c (coding_set_source): Delete the local variable beg_byte.
27946 (encode_coding_charset, Fdefine_coding_system_internal):
27947 Delete the local variable charset.
bba3e508
SM
27948 (Fdefine_coding_system_internal):
27949 Setup attrs[coding_attr_charset_valids] correctly.
aac0c6e3
MR
27950
27951 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
27952 member to check if CODE is valid or not.
27953 (Fdefine_charset_internal): Initialize `code_space_mask' member.
27954 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
27955 is within the range of charset->min_code and carset->max_code.
27956
279572008-02-01 Dave Love <fx@gnu.org>
27958
27959 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
27960
27961 * dispextern.h (generate_ascii_font): Fix return type.
27962
27963 * xfaces.c (generate_ascii_font): Fix arg declaration.
27964
27965 * coding.c (coding_inherit_eol_type)
27966 (Fset_terminal_coding_system_internal)
27967 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
27968
279692008-02-01 Kenichi Handa <handa@m17n.org>
27970
bba3e508
SM
27971 * coding.c (decode_coding_charset, encode_coding_charset):
27972 Handle multiple charsets correctly.
aac0c6e3
MR
27973
279742008-02-01 Kenichi Handa <handa@m17n.org>
27975
27976 * search.c (boyer_moore): Fix handling of multibyte character
27977 translation.
27978
27979 * xdisp.c (display_mode_element): When the variable `elt' is
27980 changed, update `this' and `lisp_string'.
27981
279822008-02-01 Kenichi Handa <handa@m17n.org>
27983
27984 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
27985
27986 * callproc.c (Fcall_process): Be sure to give the current buffer
27987 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
27988
27989 * charset.c (struct charset_map_entries): New struct.
27990 (load_charset_map): Rename from parse_charset_map. New args
27991 entries and n_entries. Change caller.
27992 (load_charset_map_from_file): Rename from load_charset_map.
27993 Change caller. New arg control_flag. Call load_charset_map at
27994 the tail.
27995 (load_charset_map_from_vector): New function.
27996 (Fdefine_charset_internal): Setup charset.compact_codes_p.
27997 (encode_char): If the charset is compact, change a character index
27998 to a code point.
27999
28000 * coding.c (coding_alloc_by_making_gap): Check the case that the
28001 source and destination are the same correctly.
28002 (decode_coding_raw_text): Set coding->consumed_char and
28003 coding->consumed to 0.
28004 (produce_chars): If coding->chars_at_source is nonzero, update
28005 coding->consumed_char and coding->consumed before calling
28006 alloc_destination.
28007 (Fdefine_coding_system_alias): Register ALIAS in
28008 Vcoding_system_alist.
28009 (syms_of_coding): Define `no-conversion' coding system at the tail.
28010
28011 * fileio.c (Finsert_file_contents): Set coding_system instead of
28012 val. If the current buffer is multibyte, always call
28013 decode_coding_gap.
28014
28015 * xfaces.c (try_font_list): Give higher priority to fontset's
28016 family than face's family.
28017
280182008-02-01 Kenichi Handa <handa@m17n.org>
28019
28020 * callproc.c (Fcall_process): Be sure to give the current buffer
28021 to decode_coding_c_string.
28022
28023 * xfaces.c (try_font_list): Give a family specified in a fontset
28024 higher priority than a family specified in a face.
28025
280262008-02-01 Kenichi Handa <handa@m17n.org>
28027
28028 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
28029 Fix arguments to insert_from_buffer.
28030
28031 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
28032
280332008-02-01 Kenichi Handa <handa@m17n.org>
28034
28035 * coding.c (produce_chars): Set the variable `multibytep' correctly.
28036 (decode_coding_gap): Set coding->dst_multibyte correctly.
28037
280382008-02-01 Kenichi Handa <handa@m17n.org>
28039
28040 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
28041 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
28042 (encode_coding_utf_16): Substitute coding->default_char for
28043 non-Unicode characters.
28044 (decode_coding): Don't call record_insert here.
28045 (setup_coding_system): Initialize `surrogate' of
28046 coding->spec.utf_16 to 0.
28047 (EMIT_ONE_BYTE): Fix for multibyte case.
28048
28049 * insdel.c (insert_from_gap): Call record_insert.
28050
280512008-02-01 Kenichi Handa <handa@m17n.org>
28052
28053 * casefiddle.c (casify_region): Fix multibyte case.
28054
28055 * character.c (c_string_width): Add return type `int'.
28056 (char_string_with_unification): Delete arg ADVANCED.
28057
28058 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
28059 (CHAR_STRING): Adjust for the change of char_string_with_unification.
28060 (CHAR_STRING_ADVANCE): Make it do-while statement.
28061
28062 * chartab.c (sub_char_table_set_range): Optimize for the case
28063 DEPTH == 3. Add workaround code for a GCC optimization bug.
28064
28065 * charset.c (parse_charset_map): Remove an unused variable.
28066
28067 * coding.c: Delete unused variables.
28068
28069 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
28070 earlier. If inserted is zero and the coding system doesn't
28071 require flushing, don't call decode_coding_gap.
28072
28073 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
28074
280752008-02-01 Kenichi Handa <handa@m17n.org>
28076
28077 The following changes are for using Unicode as an internal
28078 character model, and use UTF-8 format for buffer/string
28079 representation.
28080
28081 * .gdbinit (xchartable): Adjust for the change of char table structure.
28082 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
28083
28084 * Makefile.in (obj): Add character.o and chartab.o.
28085 (lisp, shortlisp): Remove utf-8.elc.
28086 (*.o): For many files, change dependency on charset.h to
28087 character.h, and add dependency on character.h.
28088 (character.o, chartab.o): New targets.
28089
28090 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
28091 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
28092 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
28093 of "charset.h".
28094
28095 * dired.c, filelock.c: Include "character.h".
28096
28097 * alloc.c: Include "character.h" instead of "charset.h".
28098 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
28099 (syms_of_alloc): Remove defsubr for Smake_char_table.
28100
28101 * buffer.c: Include "character.h" instead of "charset.h", don't
28102 include "coding.h".
28103 (Fset_buffer_multibyte): Adjust for UTF-8.
28104
28105 * buffer.h: EXFUN Fbuffer_live_p.
28106
28107 * callproc.c: Include "character.h" instead of "charset.h".
28108 (Fcall_process): Big change for the new code-conversion APIs.
28109
28110 * casetab.c: Include "character.h" instead of "charset.h".
28111 (set_canon, set_identity, shuffle): Adjust for the new
28112 map_char_table spec.
28113 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
28114 accessing the char table structure.
28115
28116 * chartab.c: New file that implements char table.
28117
28118 * category.c: Include "character.h".
28119 (copy_category_entry): New function.
28120 (copy_category_table): Call map_char_table and copy_category_entry.
28121 (Fmake_category_table): Initialize all top-level slots.
28122 (char_category_set): New function.
28123 (modify_lower_category_set): Delete.
28124 (Fmodify_category_entry): Call char_table_ref_and_range.
28125
28126 * category.h (CATEGORY_SET): Just call char_category_set.
28127
28128 * ccl.c: Include "character.h".
28129 (Qccl, Qcclp): New variables.
28130 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
28131 it's less than 256.
28132 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
28133 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
28134 and DST type.
28135 (ccl_driver): Change types of argument, adjust code accordingly.
28136 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
28137 ccl_driver.
28138 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
28139
28140 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
28141 New members src_multibyte, dst_multibyte, consumed, and produced.
28142 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
28143 (CODING_SPEC_CCL_PROGRAM): New macro.
28144 (ccl_driver): Update prototype.
28145 (Qccl, Qcclp, Fccl_program_p): Extern them.
28146 (CHECK_CCL_PROGRAM): New macro.
28147
28148 * character.c, character.h, chartab.c: New files.
28149
28150 * charset.c: Mostly re-written. Move character and multibyte sequence
28151 handling codes to character.c.
28152
28153 * charset.h: Mostly re-written. Move character and multibyte sequence
28154 handling codes to character.h.
28155
28156 * coding.c, coding.h: Mostly re-written.
28157
28158 * composite.c: Include "character.h" instead of "charset.h".
28159 (CHAR_WIDTH): Move to character.h.
28160 (HASH_KEY, HASH_VALUE): Delete.
28161
28162 * composite.h (enum composition_method): Change order of enumeration
28163 symbols.
28164
28165 * data.c: Include "character.h" instead of "charset.h".
28166 (Faref): Call CHAR_TABLE_REF for a char table.
28167 (Faset): Call CHAR_TABLE_SET for a char table.
28168
28169 * dispextern.h (free_realized_face, check_face_attribytes)
28170 (generate_ascii_font): Extern them.
28171 (free_realized_multibyte_face): Delete extern.
28172
28173 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
28174 table structure.
28175
28176 * editfns.c: Include "character.h" instead of "charset.h".
28177 (Fchar_to_string): Always call CHAR_STRING.
28178
28179 * emacs.c (main): Call init_charset_once, init_charset,
28180 syms_of_chartab, and syms_of_character.
28181
28182 * fileio.c: Include "character.h" instead of "charset.h".
28183 (Finsert_file_contents): Big change for the new code-conversion API.
28184 (choose_write_coding_system, Fwrite_region): Likewise.
28185 (build_annotations_2): Delete.
28186 (e_write): Big change for the new code-conversion API.
28187
28188 * fns.c: Include "character.h" instead of "charset.h".
28189 (copy_sub_char_table): Move to chartab.c.
28190 (Fcopy_sequence): Call copy_char_table for a char table.
28191 (concat): Delete codes calling count_multibyte.
28192 (string_char_to_byte, string_byte_to_char): Adjust for the new
28193 multibyte form.
28194 (internal_equal): Adjust for the change of char table structure.
28195 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
28196 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
28197 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
28198 (char_table_translate, optimize_sub_char_table)
28199 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
28200 chartab.c.
28201 (char_table_ref_and_index): Delete.
28202 (HASH_KEY, HASH_VALUE): Move to lisp.h.
28203 (Fmd5): Call preferred_coding_system instead of accessing
28204 Vcoding_category_list. Adjust for the new code-conversion API.
28205 (syms_of_fns): Move defsubr for char table related functions to
28206 chartab.c.
28207
28208 * fontset.c: Mostly re-written.
28209
28210 * fontset.h (struct font_info): Change type of the member encoding_type.
28211 (enum FONT_SPEC_INDEX): New enum.
28212 (fontset_font_pattern, fs_load_font): Update prototype.
28213 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
28214
28215 * indent.c: Include "character.h" instead of "charset.h".
28216 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
28217
28218 * insdel.c: Include "character.h" instead of "charset.h".
28219 (copy_text): Don't refer to Vnonascii_translation_table.
28220 (insert_from_gap): New function.
28221
28222 * keyboard.c: Include "character.h" instead of "charset.h".
28223 (command_loop_1): Never call direct_output_forward_char before
28224 a non-ASCII character.
28225 (read_char): If Vkeyboard_translate_table is a char table, always
28226 translate a character.
28227
28228 * keymap.c: Include "character.h".
28229 (store_in_keymap): Handle the case that IDX is a cons.
28230 (Fdefine_key): Handle the case that KEY is a cons and the car part
28231 is also a cons (range).
28232 (push_key_description): Adjust for the new character code.
28233 (describe_vector): Call describe_char_table for a char table.
28234 (describe_char_table): New function.
28235
28236 * keymap.h (describe_char_table): Extern it.
28237
28238 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
28239 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
28240 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
28241 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
28242 Delete.
28243 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
28244 structure.
28245 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
28246 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
28247 (CHARTAB_SIZE_BITS_3): New macros.
28248 (chartab_size): Extern it.
28249 (struct Lisp_Char_Table): Re-design.
28250 (struct Lisp_Sub_Char_Table): New structure.
28251 (HASH_KEY, HASH_VALUE): Move from fns.c.
28252 (CHARACTERBITS): Define as 22.
28253 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
28254 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
28255 (GC_SUB_CHAR_TABLE_P): New macro.
28256 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
ef1b0ba7 28257 (code_convert_string_norecord): Delete extern.
aac0c6e3
MR
28258 (init_character_once, syms_of_character, init_charset)
28259 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
28260
28261 * lread.c: Include "character.h".
28262 (read_multibyte): New arg NBYTES.
28263 (read_escape): Change the meaning of returned *BYTEREP.
28264 (to_multibyte): Delete.
28265 (read1): Adjust the handling of char table and string.
28266
28267 * print.c: Include "character.h" instead of "charset.h".
28268 (print_string): Convert 8-bit raw bytes to octal form by
28269 string_escape_byte8.
28270 (print_object): Adjust for the new multibyte form. Print 8-bit
28271 raw bytes always in octal form. Handle sub char table correctly.
28272
28273 * process.c: Include "character.h" instead of "charset.h".
28274 (read_process_output, send_process): Adjust for the new
28275 code-conversion API.
28276
28277 * puresize.h (BASE_PURESIZE): Increase.
28278
28279 * regex.c: Include "character.h" instead of "charset.h".
28280 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
28281 (regex_compile): Accept a range whose starting and ending
28282 character have different leading bytes.
28283 (analyse_first): Adjust for the above change.
28284
28285 * search.c: Include "character.h" instead of "charset.h".
28286 (search_buffer, boyer_moore): Adjust for the new multibyte form.
28287 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
28288
28289 * syntax.c: Include "character.h" instead of "charset.h".
28290 (syntax_parent_lookup): Delete.
28291 (Fmodify_syntax_entry): Accept a cons as CHAR.
28292 (skip_chars): Adjust for the new multibyte form.
28293 (init_syntax_once): Call char_table_set_range instead of directly
28294 accessing the structure of a char table.
28295
28296 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
28297 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
28298 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
28299 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
28300
28301 * term.c: Include "buffer.h" and "character.h".
28302 (encode_terminal_code, write_glyphs): Adjust for the new
28303 code-conversion API.
28304 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
28305
28306 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
28307
28308 * xdisp.c: Include "character.h".
28309 (get_next_display_element): Adjust for the new multibyte form.
28310 (disp_char_vector): Adjust for the new char table structure.
28311 (decode_mode_spec_coding): Adjust for the new structure of
28312 coding system.
28313 (decode_mode_spec): Adjust for the new code-conversion API.
28314
28315 * xfaces.c: Include "character.h" instead of "charset.h".
28316 (load_face_font): Adjust for the change of choose_face_font and
28317 FS_LOAD_FONT.
28318 (generate_ascii_font): New function.
28319 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
28320 (set_font_frame_param): Adjust for the change of choose_face_font.
28321 (free_realized_face): Make it public.
28322 (free_realized_faces_for_fontset): Rename from
28323 free_realized_multibyte_face. Free also faces realized for ASCII.
28324 (choose_face_font): Change arguments. Adjust for the change of
28325 fontset_font_pattern and FS_LOAD_FONT.
28326
28327 * xfns.c: Include "character.h".
28328 (x_encode_text): Adjust for the new code-conversion API.
28329
28330 * xselect.c: Don't include "charset.h".
28331 (selection_data_to_lisp_data): Adjust for the new code conversion API.
28332
28333 * xterm.c: Include "character.h".
28334 (x_encode_char): New argument CHARSET. Change caller.
28335 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
28336 Call ENCODE_CHAR instead of SPLIT_CHAR.
28337 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
28338 CHAR_WIDTH instead of CHARSET_WIDTH.
28339 (XTread_socket): Adjust for the new code-conversion API.
28340 (x_new_font): Adjust for the change of FS_LOAD_FONT.
28341 (x_load_font): Adjust for the change of struct font.
28342
283432008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
28344
28345 * xfaces.c (face_at_buffer_position): Remove unused vars.
28346
283472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28348
28349 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
28350 Fix overflow checking.
28351
283522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
28353
28354 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
28355 Cancel previous change.
28356
283572008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28358
28359 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
28360 ccl->eight_bit_control. Fix check for buffer overflow.
28361 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
28362 (ccl_driver): Initialize extra_bytes to 0.
28363
283642008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
28365
28366 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
28367 return it ORed with ctrl_modifier.
28368
283692008-01-29 Miles Bader <miles@gnu.org>
28370
28371 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
28372
283732008-01-28 Jason Rumney <jasonr@gnu.org>
28374
28375 * w32.c (stat): Don't double check for networked drive.
28376
283772008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
28378
28379 * window.c (run_window_configuration_change_hook): New function.
28380 Code extracted from set_window_buffer. Set the selected frame.
28381 (set_window_buffer): Use it.
28382 * window.h (run_window_configuration_change_hook): Declare.
28383 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
28384
28385 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
28386
283872008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
28388
28389 * Makefile.in: Remove references to unused macros.
28390
283912008-01-26 Eli Zaretskii <eliz@gnu.org>
28392
28393 * w32.c (g_b_init_get_sid_sub_authority)
28394 (g_b_init_get_sid_sub_authority_count): New static variables.
28395 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
28396 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
28397 (init_user_info): Use them to retrieve uid and gid.
28398 Use 500/513, the Windows defaults, as Administrator's uid/gid.
28399 (fstat): Use pw_uid and pw_gid from the_passwd structure for
28400 st_uid and st_gid of the file.
28401
284022008-01-26 Jason Rumney <jasonr@gnu.org>
28403
28404 * w32.c (logon_network_drive): New function.
28405 (stat): Use it.
28406
284072008-01-26 Chong Yidong <cyd@stupidchicken.com>
28408
28409 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
28410 invisible text covered with an ellipsis.
28411
284122008-01-25 Richard Stallman <rms@gnu.org>
28413
28414 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
28415 jump back to beginning. Move some other initializations after that.
28416 (Qwindow_text_change_functions, Vwindow_text_change_functions):
28417 New variables.
28418 (syms_of_xdisp): Init them.
28419
28420 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
28421
28422 * buffer.c (reset_buffer_local_variables):
28423 Implement `permanent-local-hook'.
28424 (Qpermanent_local_hook): New variable.
28425 (syms_of_buffer): Init and staticpro it.
28426
284272008-01-25 Michael Albinus <michael.albinus@gmx.de>
28428
28429 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
28430
284312008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
28432
28433 * fns.c (Fclrhash): Return TABLE.
28434
284352008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28436
28437 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
28438 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
28439 is set even without positional changes.
28440 (x_scroll_bar_clear): Set bar->redraw_needed_p.
28441
28442 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
28443
284442008-01-23 Jason Rumney <jasonr@gnu.org>
28445
28446 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
28447
28448 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
28449 the unicode range available in MULE by locale-coding-system.
28450 Improve dbcs lead byte detection. Set event timestamp and modifiers
28451 earlier.
28452
284532008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28454
28455 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
28456 [MAC_OSX] (init_mac_osx_environment): Initialize it.
28457 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
28458 when used on child processes.
28459
284602008-01-21 Michael Albinus <michael.albinus@gmx.de>
28461
28462 * dbusbind.c (Fdbus_method_return_internal): Rename from
28463 Fdbus_method_return.
28464 (Fdbus_unregister_object): Move to dbus.el.
28465 (Fdbus_call_method, Fdbus_method_return_internal)
28466 (Fdbus_send_signal): Improve debug messages.
28467
284682008-01-20 Martin Rudalics <rudalics@gmx.at>
28469
28470 * undo.c (undo_inhibit_record_point): New variable.
28471 (syms_of_undo): Initialize it.
28472 (record_point): Don't record point when undo_inhibit_record_point
28473 is set.
28474
284752008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
28476
28477 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
28478
28479 * xdisp.c (Qauto_hscroll_mode): New var.
28480 (syms_of_xdisp): Initialize it.
28481 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
28482 window's buffer.
28483 (hscroll_windows): Don't check automatic_hscrolling_p here.
28484
28485 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
28486 vscroll if we're setting window-buffer to the value it already has.
28487
284882008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
28489
28490 * m/intel386.h: Remove references to XENIX.
28491
284922008-01-17 Andreas Schwab <schwab@suse.de>
28493
28494 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
28495 instead of HAVE_X86_64_LIB64_DIR.
28496 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
28497
284982008-01-17 Glenn Morris <rgm@gnu.org>
28499
28500 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
28501 to HAVE_X86_64_LIB64_DIR.
28502
285032008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
28504
28505 * s/irix3-3.h:
28506 * s/irix4-0.h:
28507 * s/386-ix.h:
28508 * s/domain.h:
28509 * s/hpux9-x11r4.h:
28510 * s/hpux9shxr4.h: Remove files for systems no longer supported.
28511
28512 * sysdep.c: Remove code containing references to symbols defined
28513 by unsupported systems.
28514
285152008-01-16 Glenn Morris <rgm@gnu.org>
28516
28517 * coding.c (select-safe-coding-system-function): Doc fix.
28518
285192008-01-15 Glenn Morris <rgm@gnu.org>
28520
28521 * config.in: Revert 2008-01-13 change: this is a generated file.
28522
285232008-01-13 Tom Tromey <tromey@redhat.com>
28524
28525 * lisp.h: Fix typo.
28526
285272008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28528
28529 * m/sequent-ptx.h:
28530 * m/sequent.h:
28531 * s/ptx.h:
28532 * s/ptx4-2.h:
28533 * s/ptx4.h: Remove files for systems no longer supported.
28534
28535 * callproc.c (Fcall_process): Fix previous change.
28536
285372008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
28538
28539 * unexsunos4.c: Remove file, system not supported anymore.
28540
28541 * m/mips.h:
28542 * m/intel386.h:
28543 * callproc.c:
28544 * config.in:
28545 * ecrt0.c:
28546 * emacs.c:
28547 * fileio.c:
28548 * frame.c:
28549 * getpagesize.h:
28550 * keyboard.c:
28551 * lread.c:
28552 * process.c:
28553 * puresize.h:
28554 * sysdep.c:
28555 * systty.h:
28556 * syswait.h:
28557 * unexec.c:
28558 * xdisp.c:
28559 * alloc.c: Remove code containing references to symbols defined by
28560 unsupported systems.
28561
285622008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
28563
28564 * coding.c (detect_coding_mask): Fix previous change.
28565
285662008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
28567
28568 * coding.c (detect_coding_iso2022): New arg
28569 latin_extra_code_state. Allow Latin extra codes only
28570 when *latin_extra_code_state is nonzero.
28571 (detect_coding_mask): If there is a NULL byte, detect the encoding
28572 as UTF-16 or binary. If Latin extra codes exist, detect the
28573 encoding as ISO-2022 only when there's no other proper encoding is
28574 found.
28575
285762008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28577
28578 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
28579 #ifdef MAC_OS.
28580
285812008-01-08 Richard Stallman <rms@gnu.org>
28582
28583 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
28584
285852008-01-06 Nick Roberts <nickrob@snap.net.nz>
28586
28587 * keyboard.c (parse_menu_item): Don't enclose key bindings on
28588 menu bar in parentheses.
28589
285902008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
28591
28592 * m/7300.h:
28593 * m/acorn.h:
28594 * m/alliant-2800.h:
28595 * m/alliant.h:
28596 * m/alliant1.h:
28597 * m/alliant4.h:
28598 * m/altos.h:
28599 * m/amdahl.h:
28600 * m/apollo.h:
28601 * m/att3b.h:
28602 * m/aviion-intel.h:
28603 * m/aviion.h:
28604 * m/celerity.h:
28605 * m/clipper.h:
28606 * m/cnvrgnt.h:
28607 * m/convex.h:
28608 * m/cydra5.h:
28609 * m/delta88k.h:
28610 * m/dpx2.h:
28611 * m/dual.h:
28612 * m/elxsi.h:
28613 * m/f301.h:
28614 * m/gould-np1.h:
28615 * m/gould.h:
28616 * m/i860.h:
28617 * m/ibmps2-aix.h:
28618 * m/ibmrt-aix.h:
28619 * m/ibmrt.h:
28620 * m/irist.h:
28621 * m/is386.h:
28622 * m/isi-ov.h:
28623 * m/mega68.h:
28624 * m/mg1.h:
28625 * m/news-r6.h:
28626 * m/news-risc.h:
28627 * m/news.h:
28628 * m/nh3000.h:
28629 * m/nh4000.h:
28630 * m/ns16000.h:
28631 * m/ns32000.h:
28632 * m/nu.h:
28633 * m/orion.h:
28634 * m/orion105.h:
28635 * m/paragon.h:
28636 * m/pfa50.h:
28637 * m/plexus.h:
28638 * m/pyramid.h:
28639 * m/pyrmips.h:
28640 * m/sh3el.h:
28641 * m/sps7.h:
28642 * m/sr2k.h:
28643 * m/stride.h:
28644 * m/sun1.h:
28645 * m/sun2.h:
28646 * m/sun3-68881.h:
28647 * m/sun3-fpa.h:
28648 * m/sun3-soft.h:
28649 * m/sun3.h:
28650 * m/sun386.h:
28651 * m/symmetry.h:
28652 * m/tad68k.h:
28653 * m/tahoe.h:
28654 * m/targon31.h:
28655 * m/tek4300.h:
28656 * m/tekxd88.h:
28657 * m/tower32.h:
28658 * m/tower32v3.h:
28659 * m/ustation.h:
28660 * m/wicat.h:
28661 * m/xps100.h:
28662 * s/cxux.h:
28663 * s/cxux7.h:
28664 * s/dgux.h:
28665 * s/dgux4.h:
28666 * s/dgux5-4-3.h:
28667 * s/dgux5-4r2.h:
28668 * s/esix.h:
28669 * s/esix5r4.h:
28670 * s/hiuxmpp.h:
28671 * s/hiuxwe2.h:
28672 * s/iris3-5.h:
28673 * s/iris3-6.h:
28674 * s/isc2-2.h:
28675 * s/isc3-0.h:
28676 * s/isc4-0.h:
28677 * s/isc4-1.h:
28678 * s/newsos5.h:
28679 * s/newsos6.h:
28680 * s/osf1.h:
28681 * s/osf5-0.h:
28682 * s/riscix1-1.h:
28683 * s/riscix12.h:
28684 * s/sco4.h:
28685 * s/sco5.h:
28686 * s/sunos4-0.h:
28687 * s/sunos4-1.h:
28688 * s/sunos413.h:
28689 * s/sunos4shr.h:
28690 * s/umax.h:
28691 * s/unipl5-2.h:
28692 * s/xenix.h:
28693 * cxux-crt0.s:
28694 * unexapollo.c:
28695 * unexconvex.c:
28696 * unexenix.c:
28697 * unexsni.c: Remove files for systems no longer supported.
28698
28699 * m/intel386.h: Remove references to unsupported systems.
28700
28701 * w32.c (get_emacs_configuration): Remove reference to i860.
28702
28703 * sysdep.c: Remove dead code.
28704
287052008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
28706
28707 * s/rtu.h:
28708 * m/masscomp.h: Remove files. Platform is obsolete.
28709
287102008-01-04 Michael Albinus <michael.albinus@gmx.de>
28711
28712 * dbusbind.c (Fdbus_method_return): New function.
28713 (xd_read_message): Add the serial number to the event.
28714 (Fdbus_register_method): Activate the function.
28715
287162008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
28717
28718 * keyboard.c (read_key_sequence): Fix typo.
28719
287202008-01-03 Michael Albinus <michael.albinus@gmx.de>
28721
28722 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
28723 (xd_signature, xd_append_arg): Handle element type detection for
28724 empty arrays.
28725 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
28726 SDATA () calls; this must be solved more general.
28727 (Fdbus_register_signal): Use SBYTES instead of strlen.
28728
287292008-01-03 Magnus Henoch <magnus@zemdatav>
28730
28731 * dbusbind.c (xd_append_arg): Use unsigned char instead of
28732 unsigned int for byte values (necessary for big-endian platform).
28733 (Fdbus_call_method): Handle the case of no returned arguments.
28734
287352007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
28736
28737 * dbusbind.c (xd_read_message): Use non-static input_event struct.
28738
287392007-12-31 Magnus Henoch <mange@freemail.hu>
28740
28741 * dbusbind.c (xd_signature): Signature of variant is just "v".
28742
287432007-12-30 Michael Albinus <michael.albinus@gmx.de>
28744
28745 * dbusbind.c: Fix several errors and compiler warnings.
28746 Reported by Tom Tromey <tromey@redhat.com>.
28747 (XD_ERROR, XD_DEBUG_MESSAGE)
28748 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
28749 (xd_append_arg): Part for basic D-Bus types rewritten.
28750 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
28751 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
28752 appropriate.
28753 (xd_read_message): Return Qnil. Don't signal an error; it is not
28754 useful during event reading.
28755 (Fdbus_register_signal): Signal an error if the check for
28756 FUNCTIONP fails.
28757 (Fdbus_register_method): New function. The implementation is not
28758 complete, the call of the function signals an error therefore.
28759 (Fdbus_unregister_object): New function, renamed from
28760 Fdbus_unregister_signal. The initial check signals an error, if
28761 the object is not well formed.
28762
287632007-12-30 Richard Stallman <rms@gnu.org>
28764
28765 * textprop.c (get_char_property_and_overlay):
28766 Signal error if POSITION is out of range in a buffer.
28767
287682007-12-29 Martin Rudalics <rudalics@gmx.at>
28769
28770 * w32fns.c (Fx_create_frame): Make copy of frame parameters
28771 because the original parameters are in pure storage now.
28772
287732007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28774
28775 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
28776
287772007-12-22 Eli Zaretskii <eliz@gnu.org>
28778
28779 * callint.c (syms_of_callint) <command-history>: Add reference to
28780 history-length in the doc string.
28781
287822007-12-17 Jason Rumney <jasonr@gnu.org>
28783
28784 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
28785 before passing as wParam.
28786
287872007-12-22 Michael Albinus <michael.albinus@gmx.de>
28788
28789 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
28790 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
28791 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
28792 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
28793 as number.
28794 (Fdbus_call_method): Fix docstring.
28795
287962007-12-21 Michael Albinus <michael.albinus@gmx.de>
28797
28798 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
28799 New macros.
28800 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
28801 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
28802 Simplify.
28803 (xd_signature): New function.
28804 (xd_append_arg): Compute also signatures. Major rewrite.
28805 (xd_retrieve_arg): Make debug messages friendly.
28806 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
28807 Check for signatures of arguments.
28808
288092007-12-19 Michael Albinus <michael.albinus@gmx.de>
28810
28811 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
28812 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
28813 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
28814 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
28815 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
28816 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
28817 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
28818 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
28819 (xd_retrieve_value): Remove. Functionality included in ...
28820 (xd_append_arg): New function.
28821 (Fdbus_call_method, Fdbus_send_signal): Apply it.
28822
288232007-12-16 Michael Albinus <michael.albinus@gmx.de>
28824
28825 * dbusbind.c (top): Include <stdio.h>.
28826 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
28827 dbus_message_new_method_call and dbus_message_new_signal.
28828 (Fdbus_register_signal): Rename unique_name to uname.
28829 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
28830 non-existing unique name. Fix typos in matching rule. Return an
28831 object which is useful in Fdbus_unregister_signal.
28832 (Fdbus_unregister_signal): Reimplementation, in order to remove
28833 only the corresponding entry.
28834 (Vdbus_registered_functions_table): Change the order of entries.
28835 Apply these changes in xd_read_message and Fdbus_register_signal.
28836
288372007-12-16 Andreas Schwab <schwab@suse.de>
28838
28839 * fileio.c (Finsert_file_contents): Fix overflow check to not
28840 depend on undefined integer overflow.
28841
288422007-12-14 Jason Rumney <jasonr@gnu.org>
28843
28844 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
28845 for characters above 127.
28846
288472007-12-13 Jason Rumney <jasonr@gnu.org>
28848
28849 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
28850 before dereferencing array.
28851 (lookup_vk_code): Remove zero comparison.
28852
288532007-12-14 Michael Albinus <michael.albinus@gmx.de>
28854
28855 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
28856 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
28857 Use `unsigned int' instead of `uint'.
28858 (xd_read_message, Fdbus_register_signal): Split expressions into
28859 multiple lines before operators "&&" and "||", according to the
28860 GNU Coding Standards.
28861
288622007-12-14 Eli Zaretskii <eliz@gnu.org>
28863
28864 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
28865
288662007-12-12 Juri Linkov <juri@jurta.org>
28867
28868 * buffer.c (Frename_buffer): In interactive spec replace
28869 `read-buffer' with `read-string' that uses `buffer-name-history'
28870 as history, and the current buffer's name as default.
28871
288722007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
28873
28874 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
28875 manipulating the backtrace manually.
28876 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
28877 (struct backtrace, backtrace_list): Remove.
28878 (command_loop_1): Remove dead var `no_direct'.
28879
28880 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
28881 preserve non-built-in buffer-local variables.
28882 (Fkill_all_local_variables): Don't re-create&re-set permanent
28883 buffer-local variables.
28884
288852007-12-09 Juri Linkov <juri@jurta.org>
28886
28887 * buffer.c (Frename_buffer): Change interactive spec from "s" to
28888 Lisp code that uses `read-buffer' with current buffer as default.
28889
288902007-12-08 Michael Albinus <michael.albinus@gmx.de>
28891
28892 * dbusbind.c (xd_read_message): Generate an event for every
28893 registered handler. There might be several handlers registered
28894 for the same signal.
28895 (Fdbus_register_signal): Don't overwrite a registration for the
28896 same signal. Add a new registration if handlers are different.
28897 (Vdbus_registered_functions_table): Rework doc string.
28898
288992007-12-07 Michael Albinus <michael.albinus@gmx.de>
28900
28901 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
28902 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
28903 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
28904 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
28905 Unify argument lists.
28906 (xd_read_message, Fdbus_register_signal): Reorder and extend event
28907 arguments and hash table keys. Use unique name for service.
28908 (Fdbus_unregister_signal): Remove checks.
28909 (Vdbus_registered_functions_table): Fix doc string.
28910
289112007-12-05 Magnus Henoch <mange@freemail.hu>
28912
28913 * process.c (make_process): Initialize pty_flag to 0.
28914
289152007-12-05 Jason Rumney <jasonr@gnu.org>
28916
28917 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
28918 specified XBMs.
28919
289202007-12-05 Richard Stallman <rms@gnu.org>
28921
28922 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
28923
289242007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28925
28926 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
28927 New variable.
28928 (mac_try_close_socket) [MAC_OSX]: New function.
28929 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
28930 Update cfsockets_for_select. Replace invalid CFRunLoop source.
28931
28932 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
28933 Use mac_try_close_socket.
28934
289352007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28936
28937 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
28938 reloc_base.
28939 (copy_dysymtab): Compute relocation base here.
28940 (rebase_reloc_address) [__ppc64__]: New function.
28941 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
28942 changed.
28943
289442007-12-05 Jason Rumney <jasonr@gnu.org>
28945
28946 * w32proc.c (sys_spawnve): Quote args with wildcards.
28947
289482007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
28949
28950 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
28951 __objc_* sections.
28952 (unrelocate) [_LP64]: Set relocation base to address of data segment.
28953
289542007-12-05 Michael Albinus <michael.albinus@gmx.de>
28955
28956 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
28957 Move check for Vdbus_registered_functions_table to
28958 xd_read_queued_messages.
28959 (xd_read_queued_messages): Protect xd_read_message calls by
28960 internal_condition_case_1.
28961
289622007-12-04 Michael Albinus <michael.albinus@gmx.de>
28963
28964 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
28965 Qdbus_system_bus and Qdbus_session_bus, respectively.
28966 (Vdbus_intern_symbols): Remove.
28967 (Vdbus_registered_functions_table): New hash table.
28968 (XD_SYMBOL_INTERN_SYMBOL): Remove.
28969 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
28970 Rewrite in order to manage registered functions by hash table
28971 Vdbus_registered_functions_table.
28972
289732007-12-03 Jan Djärv <jan.h.d@swipnet.se>
28974
28975 * xterm.c: Update URL to Window Manager Specification in comment.
28976
289772007-12-02 Michael Albinus <michael.albinus@gmx.de>
28978
28979 * config.in (HAVE_DBUS): Add.
28980
28981 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
28982 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
28983 (obj): Add $(DBUS_OBJ).
28984 (LIBES): Add $(DBUS_LIBS).
28985 (dbusbind.o): New target.
28986
28987 * dbusbind.c: New file.
28988
28989 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
28990
28991 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
28992 (Qdbus_event): New Lisp symbol.
28993 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
28994 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 28995 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
28996
28997 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
28998
289992007-12-01 Richard Stallman <rms@gnu.org>
29000
29001 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
29002
290032007-11-30 Jason Rumney <jasonr@gnu.org>
29004
29005 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
29006 (w32con_reset_terminal_modes): Clear screen buffer.
29007 (w32_face_attributes): Don't use color indexes that are out of range.
29008 Only reverse the default colors.
29009
29010 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
29011 WINDOWSNT.
29012
29013 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
29014
290152007-11-29 Jason Rumney <jasonr@gnu.org>
29016
29017 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
29018 (w32_face_attributes): Use Vtty_defined_color_alist to determine
29019 if the terminal colors are initialized.
29020 (unspecified_fg, unspecified_bg): Remove unused declarations.
29021
290222007-11-29 Andreas Schwab <schwab@suse.de>
29023
29024 * keyboard.c (apply_modifiers): Fix typo.
29025
290262007-11-29 Richard Stallman <rms@gnu.org>
29027
29028 * keymap.c (Fcurrent_local_map): Doc fix.
29029
290302007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
29031
29032 * s/gnu-kfreebsd.h: New file.
29033
290342007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
29035
29036 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
29037 Don't cast redundantly.
29038
29039 * keyboard.c (KEY_TO_CHAR): New macro.
29040 (parse_modifiers, apply_modifiers): Accept integer arguments.
29041 (read_key_sequence): Use them to unify the "shift->unshift" mapping
29042 for chars and symbol keys.
29043 After doing such remapping, apply function-key-map again.
29044
290452007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
29046
29047 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
29048 compiled anymore.
29049
290502007-11-26 Andreas Schwab <schwab@suse.de>
29051
29052 * process.c (list_processes_1): Fix indentation level of the
29053 command column.
29054
290552007-11-23 Andreas Schwab <schwab@suse.de>
29056
29057 * editfns.c (Fformat): Handle %c specially since it requires the
29058 argument to be of type int.
29059
290602007-11-23 Markus Triska <markus.triska@gmx.at>
29061
29062 * emacs.c (main): Call init_editfns before init_process, since
29063 init_process sets Vprocess_connection_type depending on OS release.
29064
290652007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
29066
29067 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
29068 (find_symbol_value): Use do_symval_forwarding.
29069
29070 * data.c (set_internal): Set the value in the `cons-cell' (for
29071 Buffer_Local_values) not only for frame-local variables.
29072
290732007-11-22 Andreas Schwab <schwab@suse.de>
29074
29075 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
29076 values to sprintf.
29077 * keymap.c (Fsingle_key_description): Likewise.
29078 * print.c (print_object): Likewise.
29079
290802007-11-22 Jan Djärv <jan.h.d@swipnet.se>
29081
29082 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
29083 file for image is nil.
29084
290852007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
29086
29087 * term.c: Include stdarg.h.
29088 (fatal): Implement using varargs.
29089 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
29090
290912007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29092
29093 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
29094 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
29095 Update call to buffer_slot_type_mismatch.
29096 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
29097 (buffer_slot_type_mismatch): Update.
29098 * buffer.c (buffer_local_types): Remove.
29099 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
29100 (defvar_per_buffer): Set the type in the buffer_objfwd.
29101
291022007-11-21 Jason Rumney <jasonr@gnu.org>
29103
29104 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
29105 CreateFileMapping returns NULL on failure.
29106
291072007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
29108
29109 * search.c (Fset_match_data): Remove the `evaporate' feature.
29110 (unwind_set_match_data): Don't use the `evaporate' feature.
29111
291122007-11-21 Jason Rumney <jasonr@gnu.org>
29113
29114 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
29115
29116 * w32console.c (w32con_write_glyphs): Remove unused variables.
29117
291182007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
29119
29120 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
29121
29122 * s/darwin.h (MULTI_KBOARD): Remove.
29123
29124 * macfns.c (x_create_tip_frame, Fx_create_frame)
29125 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
29126
291272007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
29128
29129 * buffer.c (Fbuffer_local_value): Remove redundant test.
29130 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
29131 than in `current-buffer' to match the comment.
29132 Do the swap using swap_in_global_binding.
29133
29134 * data.c (store_symval_forwarding, set_internal):
29135 * eval.c (specbind): Remove dead code.
29136
29137 * coding.c (detect_coding, Fupdate_coding_systems_internal):
29138 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
29139 Since we do not want to see internal Lisp_*fwd objects here.
29140
291412007-11-18 Jan Djärv <jan.h.d@swipnet.se>
29142
29143 * sysdep.c (init_system_name): Use getaddrinfo if available.
29144
29145 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
29146 (x_scroll_bar_note_movement): start, end, with, height in struct
29147 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
29148
291492007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
29150
29151 * puresize.h (BASE_PURESIZE): Increase to 1190000.
29152
291532007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
29154
29155 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
29156 This undoes Richard's change of 14-Oct-2002.
29157
29158 * alloc.c (allocate_other_vector):
29159 * lisp.h (allocate_other_vector): Remove.
29160
29161 * window.c (struct save_window_data): Move non-lisp data to the end
29162 and make it `int' rather than Lisp_Object.
29163 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
29164 Done wrap/unwrap integer values.
29165 (Fset_window_configuration, compare_window_configurations):
29166 Update use of fields to their new types.
29167
29168 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
29169 Turn integer fields into `int'. Merge x_window_low and x_window_high.
29170 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
29171 (SET_SCROLL_BAR_X_WINDOW): Remove.
29172 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
29173 Access the new x_window field directly.
29174 * xterm.c (x_scroll_bar_create): Use a pseudovector.
29175 Don't wrap/unwrap integers into Lisp_Objects.
29176 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
29177 (x_scroll_bar_report_motion):
29178 Don't wrap/unwrap integers into Lisp_Objects.
29179 (x_term_init): Use SDATA.
29180 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
29181 (x_scroll_bar_set_handle, x_scroll_bar_remove)
29182 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
29183 (x_scroll_bar_report_motion, x_scroll_bar_clear):
29184 * xfns.c (x_set_background_color):
29185 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
29186 Access the new x_window field directly.
29187
29188 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
29189 (allocate_pseudovector): Make non-static.
29190
29191 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
29192 (allocate_pseudovector): Declare.
29193 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
29194
291952007-11-15 Andreas Schwab <schwab@suse.de>
29196
29197 * editfns.c (Fformat): Correctly format EMACS_INT values.
29198 Also take precision into account when formatting an integer.
29199
29200 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
29201
292022007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
29203
29204 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
29205 (syms_of_keyboard): Defsubr it.
29206
29207 * data.c (swap_in_global_binding): Fix longstanding bug where
29208 store_symval_forwarding was not called with the right second argument,
29209 thus causing objfwd-ing from being dropped.
29210
292112007-11-14 Juanma Barranquero <lekktu@gmail.com>
29212
29213 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
29214 (Fx_display_pixel_height, Fx_display_planes)
29215 (Fx_display_color_cells, Fx_server_max_request_size)
29216 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29217 (Fx_display_visual_class, Fx_display_save_under):
29218 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
29219 (Fx_display_pixel_height, Fx_display_planes)
29220 (Fx_display_color_cells, Fx_server_max_request_size)
29221 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
29222 (Fx_display_mm_height, Fx_display_mm_width)
29223 (Fx_display_backing_store, Fx_display_visual_class)
29224 (Fw32_select_font, Fx_display_save_under):
29225 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
29226 (Fx_display_pixel_height, Fx_display_planes)
29227 (Fx_display_color_cells, Fx_server_max_request_size)
29228 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
29229 (Fx_display_save_under): Fix typos in docstrings.
29230
292312007-11-14 Juanma Barranquero <lekktu@gmail.com>
29232
29233 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
29234 corresponding to deleted entries; they are an implementation detail.
29235 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
29236 Remove variables.
29237 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
29238 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
29239 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
29240 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
29241 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
29242 (Fw32_define_rgb_color, Fw32_load_color_file)
29243 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
29244 Fix typos in docstrings.
29245 (Fx_server_version): Reflow docstring.
29246 (Fw32_shell_execute): Doc fixes.
29247
292482007-11-13 Juanma Barranquero <lekktu@gmail.com>
29249
29250 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
29251 if w32_parse_hot_key returned nil.
29252
292532007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
29254
29255 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
29256
292572007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 29258
aac0c6e3
MR
29259 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
29260
29261 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
29262
29263 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
29264 Remove W32_SCROLL_BAR_CLICK_EVENT.
29265
29266 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
29267 Add MULTIMEDIA_KEY_EVENT.
29268
29269 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
29270 (lispy_multimedia_keys) [WINDOWSNT]: New array.
29271 (make_lispy_event) [WINDOWSNT]: Use it to translate
29272 MULTIMEDIA_KEY_EVENT.
29273
29274 * w32term.h (WM_APPCOMMAND): Define if not already.
29275 (GET_APPCOMMAND_LPARAM): Likewise.
29276
29277 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
29278 WM_APPCOMMAND.
29279
29280 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
29281 (syms_of_w32fns): Export and initialize it.
29282 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
29283
292842007-11-09 Chong Yidong <cyd@stupidchicken.com>
29285
29286 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
29287 twice.
29288
29289 * xdisp.c (handle_face_prop): Fix last change.
29290
292912007-11-09 Richard Stallman <rms@gnu.org>
29292
29293 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
29294 not just for after-strings and before-strings.
29295 Call face_for_overlay_string and pass the overlay to it.
29296 (handle_display_prop): Determine whether property came from an overlay.
29297 Pass OVERLAY arg to handle_single_display_spec.
29298 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
29299 (load_overlay_strings): Fill in it->string_overlays.
29300 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
29301
29302 * xfaces.c (face_for_overlay_string): Function renamed from
29303 face_at_buffer_position_no_overlays, and add arg OVERLAY.
29304
29305 * dispextern.h (struct it): New elt string_overlays.
29306 New elt from_overlay, also in stack.
29307 Rearrange a few elements.
29308 (face_for_overlay_string): Decl renamed from
29309 face_at_buffer_position_no_overlays, and add argument.
29310
293112007-11-09 Richard Stallman <rms@gnu.org>
29312
29313 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
29314 to get the base face for an overlay string.
29315
29316 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
29317
29318 * xfaces.c (face_at_buffer_position_no_overlays): New function.
29319
29320 * xdisp.c (handle_stop): Move some code out of loop.
29321
293222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29323
29324 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
29325 Fix conversion from Lisp object to ATSUFontID.
29326
293272007-11-09 Jason Rumney <jasonr@gnu.org>
29328
29329 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
29330
293312007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29332
29333 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
29334 Don't assume regions are aligned to page boundary.
29335 (print_load_command_name): Add LC_UUID if defined.
29336
293372007-11-09 Richard Stallman <rms@gnu.org>
29338
29339 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
29340
293412007-11-07 Jason Rumney <jasonr@gnu.org>
29342
29343 * s/windows95.h: Remove.
29344
293452007-11-06 Jan Djärv <jan.h.d@swipnet.se>
29346
29347 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
29348 abort with a message on unhandled store_type values.
29349
293502007-11-01 Jan Djärv <jan.h.d@swipnet.se>
29351
29352 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
29353 Remove HAVE_X11R5 and HAVE_X11R4.
29354
293552007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29356
29357 * Makefile.in: Remove references to sunfns.c and sunfns.o.
29358
293592007-11-01 Johan Bockgård <bojohan@gnu.org>
29360
29361 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
29362 Don't set s->stippled_p here, since it has already been set by
29363 x_set_glyph_string_gc from x_draw_glyph_string.
29364
293652007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
29366
29367 * sunfns.c: Remove file.
29368
29369 * m/sun386.h:
29370 * m/sun2.h:
29371 * m/sparc.h: Remove Sun windows code.
29372
293732007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
29374
29375 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
29376 (init_keyboard): Set current_kboard's window-system to nil.
29377 (tty_read_avail_input): Typo.
29378 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
29379
293802007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
29381
29382 * s/usg5-4.h:
29383 * s/usg5-3.h:
29384 * s/ptx.h:
29385 * m/is386.h:
29386 * m/ibmps2-aix.h:
29387 * Makefile.in: Remove all mentions of X10.
29388
29389 * dispnew.c (syms_of_display): Don't mention version 10.
29390
293912007-10-28 Juanma Barranquero <lekktu@gmail.com>
29392
29393 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
29394 ($(BLD)/abbrev.$(O)): Remove.
29395
293962007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
29397
29398 Rewrite abbrev.c in Elisp.
29399 * image.c (Qcount): Don't declare as extern.
29400 (syms_of_image): Initialize and staticpro `Qcount'.
29401 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
29402 * emacs.c (main): Don't call syms_of_abbrev.
29403 * Makefile.in (obj): Remove abbrev.o.
29404 (abbrev.o): Remove.
29405 * abbrev.c: Remove.
29406
294072007-10-26 Martin Rudalics <rudalics@gmx.at>
29408
29409 * window.c (window_min_size_2): Don't count header-line.
29410
294112007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
29412
29413 * frame.h (struct frame): Move all bit fields after the first bit
29414 field to take advantage of the available space. Group all the
29415 chars together to reduce wasted space due to padding.
29416
294172007-10-26 Juanma Barranquero <lekktu@gmail.com>
29418
29419 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
29420
29421 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
29422 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
29423 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
29424 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
29425 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
29426 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
29427 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
29428 (last_marked, mark_object_loop_halt): Make static.
29429
29430 * frame.c (syms_of_frame) <delete-frame-functions>:
29431 Fix typo in docstring.
29432
294332007-10-25 Juanma Barranquero <lekktu@gmail.com>
29434
29435 * w32.c (init_environment): Fix tiny memory leak.
29436 (w32_get_resource): Remove unused variable `ok'.
29437
294382007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
29439
29440 Make `window-system' into a keyboard-local variable (rather than
29441 frame-local as done originally by multi-tty).
29442
29443 * keyboard.h (struct kboard): Add Vwindow_system.
29444 * keyboard.c (init_kboard): Set a default for Vwindow_system.
29445 (mark_kboards): Mark Vwindow_system.
29446
29447 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
29448 (init_display): Don't set the obsolete `window-system' frame-param.
29449
29450 * xterm.c (x_term_init):
29451 * w32term.c (w32_create_terminal):
29452 * term.c (init_tty): Set Vwindow_system.
29453 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
29454 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
29455
29456 * xfns.c (Fx_create_frame, x_create_tip_frame):
29457 * w32fns.c (Fx_create_frame, x_create_tip_frame):
29458 * macfns.c (Fx_create_frame):
29459 Don't set the obsolete `window-system' frame-param.
29460
29461 * frame.h (Qwindow_system): Remove.
29462 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
29463 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
29464
294652007-10-24 Richard Stallman <rms@gnu.org>
29466
29467 * frame.c (x_figure_window_size): For fullscreen case,
29468 set USPosition | PPosition without clobbering rest of window_prompting.
29469
29470 * keyboard.c (Fcurrent_idle_time): Doc fix.
29471
29472 * print.c (Fwith_output_to_temp_buffer): Doc fix.
29473
294742007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
29475
29476 * process.c (unwind_request_sigio): Only define if __ultrix__.
29477
29478 * callproc.c (child_setup): Remove spurious *.
29479
29480 * lisp.h (Fget_text_property): Declare.
29481 (have_menus_p): Declare it here rather than in sys-dep header files.
29482 * macterm.h (have_menus_p):
29483 * msdos.h (have_menus_p):
29484 * xterm.h (have_menus_p): Remove.
29485
29486 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
29487 (Fmake_variable_frame_local): Just check the variable's const-ness
29488 rather than checking nil or t.
29489
294902007-10-22 Jason Rumney <jasonr@gnu.org>
29491
29492 * w32fns.c: Include math.h.
29493 (w32_abort): Declaration moved to nt/config.nt.
29494
29495 * s/ms-w32.h (HAVE_STDLIB_H): Define.
29496 (abort): Redefinition moved to nt/config.nt.
29497
29498 * m/windowsnt.h: Remove.
29499
295002007-10-22 Juanma Barranquero <lekktu@gmail.com>
29501
29502 * emacs.c (Fdump_emacs): Fix typo in message.
29503 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
29504 <installation-directory>: Reflow docstring.
29505
295062007-10-22 Juri Linkov <juri@jurta.org>
29507
29508 * minibuf.c: Allow minibuffer default to be a list of default values.
29509 With empty input use the first element of this list as returned default.
29510 (string_to_object)
29511 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
29512 (read_minibuf): If defalt is cons, set histstring to its car.
29513 (Fread_string): If default_value is cons, set val to its car.
29514 (Fread_buffer): If def is cons, use its car.
29515 (Fcompleting_read): If defalt is cons, set val to its car.
29516
295172007-10-21 Michael Albinus <michael.albinus@gmx.de>
29518
29519 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
29520
295212007-10-20 Juanma Barranquero <lekktu@gmail.com>
29522
29523 * doc.c (Fdocumentation): Check for advice in all cases.
29524
295252007-10-19 Chong Yidong <cyd@stupidchicken.com>
29526
29527 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
29528
295292007-10-19 Richard Stallman <rms@gnu.org>
29530
29531 * doc.c (Fdocumentation): Check for and handle an advised function.
29532
295332007-10-19 Juanma Barranquero <lekktu@gmail.com>
29534
29535 * process.c (Fset_process_filter): Doc fix.
29536
295372007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
29538
29539 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
29540 which caused key-translation-map to applied repeatedly (thus breaking
29541 double-mode).
29542
295432007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29544
29545 * xselect.c (x_own_selection, x_handle_selection_clear)
29546 (x_clear_frame_selections):
29547 * w32menu.c (list_of_panes, list_of_items):
29548 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
29549 * textprop.c (validate_plist, interval_has_all_properties)
29550 (interval_has_some_properties, interval_has_some_properties_list)
29551 (add_properties, text_property_list):
29552 * process.c (Fget_buffer_process, list_processes_1, status_notify):
29553 * minibuf.c (Fassoc_string):
29554 * macselect.c (x_own_selection, x_clear_frame_selections)
29555 (Fx_disown_selection_internal):
29556 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
29557 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
29558
295592007-10-17 Chong Yidong <cyd@stupidchicken.com>
29560
29561 * process.c: Link to libs for calling res_init() if available.
29562 (Fmake_network_process): Call res_init() before getaddrinfo or
29563 gethostbyname, if possible.
29564
295652007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
29566
29567 * lread.c (read1): Set pvectype for char_tables.
29568
29569 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
29570 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
29571 Add type checks.
29572 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
29573
29574 * alloc.c (free_misc): Use XMISCTYPE.
29575 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
29576
295772007-10-17 Glenn Morris <rgm@gnu.org>
29578
29579 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
29580 (syms_of_minibuf): Add Qcompletion_ignore_case.
29581 * dired.c (Qcompletion_ignore_case): Change to external.
29582 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
29583 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
29584 (Fread_file_name): Use it rather than intern'ing.
29585
29586 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
29587 (Fread_coding_system): Ignore case of user input.
29588
295892007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29590
29591 * xdisp.c (handle_display_prop): Ignore display specs after
29592 replacing one when string text is being replaced.
29593 (handle_single_display_spec): Pretend as if characters with display
29594 property haven't been consumed only when buffer text is being replaced.
29595
295962007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
29597
29598 * xfns.c (Fx_create_frame, Fx_display_list):
29599 * window.c (window_fixed_size_p, enlarge_window)
29600 (shrink_window_lowest_first):
29601 * macterm.c (init_font_name_table):
29602 * macfns.c (Fx_create_frame, Fx_display_list):
29603 * lread.c (close_load_descs):
29604 * keyboard.c (read_char_x_menu_prompt):
29605 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
29606 * coding.c (code_convert_region_unwind): Test the type of an object
29607 rather than just !NILP before extracting data from it.
29608
29609 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
29610
29611 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
29612 (XMISCANY): New macro.
29613 (XMISCTYPE): Use it.
29614 (struct Lisp_Misc_Any): New type.
29615 (union Lisp_Misc): Use it.
29616 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
29617 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
29618 (find_symbol_value, set_internal, default_value, Fset_default)
29619 (Fmake_variable_buffer_local, Fmake_local_variable)
29620 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
29621 (Flocal_variable_if_set_p, Fvariable_binding_locus):
29622 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
29623 * alloc.c (allocate_buffer): Set the size and tag.
29624 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
29625 Use XMISCANY.
29626 (die): Follow the GNU convention for error messages.
29627 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
29628 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
29629 tag any more.
29630 (set_buffer_internal_1):
29631 * frame.c (store_frame_param):
29632 * eval.c (specbind):
29633 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
29634
29635 * doc.c (Fsnarf_documentation): Simplify.
29636
296372007-10-14 Juanma Barranquero <lekktu@gmail.com>
29638
29639 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
29640 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
29641
296422007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
29643
29644 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
29645
296462007-10-14 Juanma Barranquero <lekktu@gmail.com>
29647
29648 * eval.c (do_autoload): Don't save autoloads.
29649
29650 * data.c (Ffset): Save autoload of the function being set.
29651
296522007-10-07 John Paul Wallington <jpw@pobox.com>
29653
29654 * xfns.c (x_create_tip_frame): Set the `display-type' frame
29655 parameter before setting up faces.
29656
296572007-10-13 Eli Zaretskii <eliz@gnu.org>
29658
29659 * ccl.c (Fregister_code_conversion_map):
29660 * keyboard.c (append_tool_bar_item): Reformat last change.
29661
29662 * lisp.h (eabs): Rename from `abs'. All callers changed.
29663
296642007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
29665
29666 * buffer.c (add_overlay_mod_hooklist):
29667 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
29668 * fontset.c (make_fontset):
29669 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
29670 (append_tool_bar_item):
29671 * macmenu.c (grow_menu_items):
29672 * w32menu.c (grow_menu_items):
29673 * xmenu.c (grow_menu_items): Use larger_vector.
29674
296752007-10-13 Eli Zaretskii <eliz@gnu.org>
29676
29677 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
29678 selected frame'' on MSDOS).
29679
296802007-10-12 Martin Rudalics <rudalics@gmx.at>
29681
29682 * frame.c (Qexplicit_name): New variable.
29683 (x_report_frame_params): Report it in parameter alist.
29684 (syms_of_frame): Intern and staticpro it.
29685
296862007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
29687
29688 * macfns.c (x_create_tip_frame): Set terminal for frame.
29689
296902007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
29691
29692 * frame.c (Qenvironment): Remove.
29693 (syms_of_frame) <Qenvironment>: Don't initialize.
29694 (Fdelete_frame): Don't treat the `environment' param specially.
29695 * frame.h (Qenvironment): Don't declare.
29696 * callproc.c (set_initial_environment): Don't set unused frame param.
29697
29698 * frame.c (Fframe_with_environment): Remove.
29699 (syms_of_frame) <Sframe_with_environment>: Don't declare.
29700
29701 * lisp.h (Fframe_with_environment): Don't declare.
29702
297032007-10-10 Juanma Barranquero <lekktu@gmail.com>
29704
29705 * indent.c (indent_tabs_mode, last_known_column)
29706 (last_known_column_modified): Make static.
29707 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
29708
297092007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
29710
29711 * puresize.h (BASE_PURESIZE): Increase to 1170000.
29712
297132007-10-09 Jason Rumney <jasonr@gnu.org>
29714
29715 * w32term.c (x_set_window_size): Disable code that attempts to tell
29716 Lisp code about a size change before it actually happens.
29717
297182007-10-09 Richard Stallman <rms@gnu.org>
29719
29720 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
29721 return HANDLED_RETURN.
29722
297232007-10-08 Martin Rudalics <rudalics@gmx.at>
29724
29725 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
29726 when there's an unread command event.
29727
29728 * frame.c (focus_follows_mouse): Move here from frame.el to allow
29729 window autoselection act appropriately when leaving selected frame.
29730 (syms_of_frame): Initialize focus_follows_mouse.
29731 * frame.h (focus_follows_mouse): Extern it.
29732 * macterm.c (XTread_socket): When focus_follows_mouse is nil
29733 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
29734 * msdos.c (dos_rawgetc): Likewise.
29735 * w32term.c (w32_read_socket): Likewise.
29736 * xterm.c (handle_one_xevent): Likewise.
29737 * xdisp.c (syms_of_xdisp): In doc-string of
29738 mouse-autoselect-window mention focus-follows-mouse.
29739
297402007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
29741
29742 * macterm.c (mac_load_query_font): Fix missing return value.
29743 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
29744 Add BLOCK_INPUT.
29745
297462007-10-08 Richard Stallman <rms@gnu.org>
29747
29748 * xdisp.c (get_window_cursor_type): Implement documented behavior
29749 for cursor-in-non-selected-windows = t.
29750
297512007-10-08 Jason Rumney <jasonr@gnu.org>
29752
29753 * w32.c (w32_get_resource): Always close registry keys.
29754
297552007-10-08 Jason Rumney <jasonr@gnu.org>
29756
29757 * makefile.w32-in (LIBS): Add COMCTL32.
29758
29759 * w32fns.c (globals_of_w32fns): Init common controls.
29760
297612007-10-08 Richard Stallman <rms@gnu.org>
29762
29763 * image.c (our_memory_buffer): Rename from omfib_buffer.
29764
297652007-10-08 Richard Stallman <rms@gnu.org>
29766
29767 * buffer.c (Foverlays_at): Doc fix.
29768
297692007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
29770
29771 * fns.c (Fplist_put): Preserve uneven tail data.
29772
297732007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
29774
29775 * termhooks.h (enum event_kind): Remove trailing comma.
29776
29777 * frame.h (enum): Remove trailing comma.
29778
297792007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
29780
29781 * w32proc.c (delete_child): Don't terminate threads of zombies.
29782
297832007-10-08 Martin Rudalics <rudalics@gmx.at>
29784
29785 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
29786
29787 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
29788 last-repeatable-command.
29789 (init_kboard): Initialize Vlast_repeatable_command.
29790 (command_loop_1): Set it to real_this_command unless that was
29791 bound to an input event.
29792 (mark_kboards): Mark it.
29793
297942007-10-08 Richard Stallman <rms@gnu.org>
29795
29796 * eval.c (condition-case): Doc fix.
29797
297982007-10-08 Masatake YAMATO <jet@gyve.org>
29799
29800 * xfaces.c (tty_supports_face_attributes_p): Fix code
29801 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
29802 was copied and not edited.
29803
298042007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
29805
29806 Add new `input-decode-map' keymap and use it for terminal
29807 escape sequences.
29808 * keyboard.h (struct kboard): Add Vinput_decode_map.
29809 Remove Vlocal_key_translation_map.
29810 * keyboard.c (read_key_sequence): Add support for input-decode-map.
29811 (init_kboard): Init input-decode-map.
29812 Replace local-key-translation-map back with key-translation-map.
29813 (syms_of_keyboard): Declare input-decode-map.
29814 Remove local-key-translation-map. Update docstrings.
29815 (mark_kboards): Mark Vinput_decode_map.
29816 Don't mark Vlocal_key_translation_map.
29817 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
29818 Replace local-key-translation-map back with key-translation-map.
29819 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
29820 Bind in input-decode-map rather than function-key-map.
29821
29822 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
29823 This was made redundant by the previous introduction of XSETPVECTYPE.
29824
298252007-10-09 Richard Stallman <rms@gnu.org>
29826
29827 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
29828
298292007-09-29 Richard Stallman <rms@gnu.org>
29830
29831 * eval.c (internal_condition_case_2, internal_condition_case_1)
29832 (internal_condition_case): Reenable abort if x_catching_errors ()
29833 to see if that really happens and why.
29834
298352007-10-06 Andreas Schwab <schwab@suse.de>
29836
29837 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
29838
298392007-10-04 Juanma Barranquero <lekktu@gmail.com>
29840
29841 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
29842
298432007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
29844
29845 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
29846
298472007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
29848
29849 * window.h (struct window):
29850 * window.c (struct save_window_data, struct saved_window):
29851 * termhooks.h (struct terminal):
29852 * process.h (struct Lisp_Process):
29853 * frame.h (struct frame):
29854 * buffer.h (struct buffer):
29855 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
29856 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
29857 The size field of (pseudo)vectors is now unsigned.
29858 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
29859
29860 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
29861 Turn `count' into an integer.
29862
29863 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
29864 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
29865 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
29866 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
29867 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
29868
29869 * alloc.c (allocate_pseudovector): New fun.
29870 (ALLOCATE_PSEUDOVECTOR): New macro.
29871 (allocate_window, allocate_terminal, allocate_frame)
29872 (allocate_process): Use it.
29873 (mark_vectorlike): New function.
29874 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
29875 (mark_terminals): Use it.
29876 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
29877 (Fmake_byte_code): Use XSETPVECTYPE.
29878
29879 * frame.c (Fframe_parameters): Minor simplification.
29880
29881 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
29882
29883 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
29884
29885 * buffer.c (Fget_buffer_create, init_buffer_once):
29886 * lread.c (defsubr):
29887 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
29888
29889 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
29890 defined differently in the m/*.h files.
29891 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
29892 (XSETPVECTYPE): New macro.
29893 (XSETPSEUDOVECTOR): Use it.
29894
29895 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
29896 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
29897
29898 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
29899 * lread.c (defvar_per_buffer):
29900 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
29901
29902 * window.c (candidate_window_p): Only consider as visible frames that
29903 are on the same terminal.
29904
29905 * m/ibms390x.h (MARKBIT): Remove unused macro.
29906
299072007-10-01 Juanma Barranquero <lekktu@gmail.com>
29908
29909 * lread.c (Fload): Fix typo in docstring.
29910
299112007-10-01 Michaël Cadilhac <michael@cadilhac.name>
29912
29913 * floatfns.c (Fexpt): Manually check for overflows, so that a power
29914 of a non-zero value can't yield zero.
29915
299162007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
29917
29918 * term.c (term_clear_mouse_face, term_mouse_highlight)
29919 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
29920
29921 * print.c (safe_debug_print): Use XHASH.
29922
29923 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
29924 Lisp elements such as tags.
29925 (XHASH): New macro.
29926 (EQ): Use it.
29927 (SREF, SSET, STRING_COPYIN): Use SDATA.
29928 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
29929
29930 * alloc.c (mark_terminal): Remove left-over declaration.
29931 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
29932 (allocate_vectorlike): Remove type argument. Adjust callers.
29933 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
29934 Only handle the one remaining MEM_TYPE_VECTORLIKE.
29935
29936 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
29937 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
29938 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
29939 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
29940 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
29941 Use them.
29942
29943 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
29944 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
29945 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
29946
299472007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
29948
29949 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
29950 loaded by default.
29951
299522007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
29953
29954 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
29955 on this tty.
29956 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
29957
29958 * term.c (mouse_face_window): Rename from Qmouse_face_window.
29959 Update all users.
29960 (handle_one_term_event): Use Gpm_DrawPointer.
29961 (Fgpm_mouse_start): Rename from Fterm_open_connection.
29962 Signal errors instead of returning nil. Always return nil.
29963 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
29964 Make it a noop if gpm-mouse was not activated.
29965 (syms_of_term): Update names.
29966
299672007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
29968
29969 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
29970 (init_sys_modes): Check that gpm_tty is the current tty.
29971
29972 * alloc.c (allocate_terminal): Set the vector size to only count the
29973 lisp fields. Initialize those to nil.
29974 (mark_object): Don't treat terminals specially.
29975 (mark_terminal): Remove.
29976 (mark_terminals): Use mark_object instead.
29977
29978 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
29979 the GC to the beginning.
29980
29981 * indent.h:
29982 * indent.c: Use EMACS_INT for ints coming from Elisp data.
29983
29984 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
29985
299862007-09-25 Jason Rumney <jasonr@gnu.org>
29987
29988 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
29989
29990 * w32console.c (create_w32cons_output): Remove.
29991
29992 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
29993
29994 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
29995 (reset_sys_modes): Use reset_terminal_modes_hook.
29996
299972007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
29998
29999 * eval.c (do_autoload): Don't output any message.
30000
300012007-09-24 Juri Linkov <juri@jurta.org>
30002
30003 * emacs.c (standard_args): Change priority of "--no-splash"
30004 from 40 to 3. Add "--no-desktop" with the same priority.
30005
300062007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
30007
30008 * alloc.c (gc_sweep): Check cons cell mark bits word by word
30009 and optimize the case where they are all 1.
30010
300112007-09-23 Johannes Weiner <hannes@saeurebad.de>
30012
30013 * lisp.h (abs): Define if not defined.
30014 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
30015 Don't define `abs', since it's defined in lisp.h.
30016
300172007-09-22 Eli Zaretskii <eliz@gnu.org>
30018
30019 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
30020 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
30021 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
30022 (init_tty): Use DEV_TTY instead of "/dev/tty".
30023 [WINDOWSNT]: No need to protect from NAME arg being null.
30024
300252007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
30026
30027 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
30028 up the tty state.
30029
300302007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30031
30032 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
30033 (gpm_tty): Change its type.
30034 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
30035 (gpm_tty): Change its type and initialize it.
30036 (Fterm_open_connection): Check the frame is indeed a tty.
30037 Use the new gpm_tty.
30038 (Fterm_close_connection): Use the new gpm_tty.
30039 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
30040 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
30041
300422007-09-21 Juanma Barranquero <lekktu@gmail.com>
30043
30044 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
30045 underline_color, to draw strike-through.
30046
300472007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
30048
30049 * lisp.h (allocate_terminal): Declare.
30050
30051 * window.c (candidate_window_p): Consider frames that are being placed
30052 by the user as somewhere between visible and iconified.
30053 (window_loop): Prefer windows on the current frame.
30054 (Fselect_window): Move the use of select-frame to the beginning so we
30055 can just delegate all the work (it'll call us back anyway).
30056
30057 * frame.c (Qdisplay_environment_variable):
30058 * frame.h (Qdisplay_environment_variable): Delete.
30059
30060 * .gdbinit (xbacktrace): Print the arg's address rather than the value
30061 of the first arg, since that value may be a union.
30062
30063 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
30064 parameter rather than Qdisplay_environment_variable. If all else
30065 fails, look for DISPLAY in initial-environment.
30066
300672007-09-21 Glenn Morris <rgm@gnu.org>
30068
30069 * Makefile.in (emacstool): Remove target.
30070 (lisp, shortlisp): Remove termdev.elc.
30071
300722007-09-21 Markus Triska <markus.triska@gmx.at>
30073
30074 * xterm.c (x_delete_display): Compile session management conditionally.
30075
300762007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
30077
30078 * callproc.c (getenv_internal_1): New function.
30079 (getenv_internal): Use it.
30080 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
30081
30082 * terminal.c (get_terminal): Don't accept ints to represent terminals.
30083 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
30084 (Fset_terminal_parameter): Work with dead terminals as well.
30085 (Fmodify_terminal_parameters): Remove.
30086
30087 * terminal.c (get_terminal): Handle terminals.
30088 Make sure the terminal returned is live.
30089 (create_terminal): Use allocate_terminal.
30090 (mark_terminals): Move to alloc.c.
30091 (delete_terminal): Use terminal->name as liveness status.
30092 NULL out fields after freeing their contents.
30093 Don't deallocate the object.
30094 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
30095 rather than an int.
30096 (Fterminal_live_p): Accept non-integer arguments.
30097 (Fterminal_list): Return terminal objects rather than an ints.
30098
30099 * alloc.c (enum mem_type): New member for `terminal' objects.
30100 (allocate_terminal): New function.
30101 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
30102 Handle terminals.
30103 (mark_terminal): New fun.
30104 (mark_terminals): Move from terminal.c.
30105
30106 * term.c (get_tty_terminal): Don't treat output_initial specially.
30107 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
30108 (delete_tty): Use terminal->name as liveness status.
30109
30110 * termhooks.h (struct terminal): Make it into a pseudovector.
30111 Remove `deleted' replaced by checking `name's nullness.
30112
30113 * print.c (print_object): Handle terminals.
30114
30115 * lisp.h (enum pvec_type): New `terminal' pseudovector.
30116 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
30117
30118 * frame.c (make_terminal_frame):
30119 * keyboard.c (tty_read_avail_input):
30120 * w32term.c (x_delete_terminal):
30121 * xfns.c (Fx_create_frame, x_create_tip_frame):
30122 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
30123
301242007-09-20 Glenn Morris <rgm@gnu.org>
30125
30126 * process.c (Fmake_network_process): Doc fix.
30127
301282007-09-19 Jason Rumney <jasonr@gnu.org>
30129
30130 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
30131
301322007-09-19 Michaël Cadilhac <michael@cadilhac.name>
30133
30134 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
30135 Fix a C warning regarding variable constness.
30136
30137 * xterm.c (handle_one_xevent): Fix a C warning.
30138
301392007-09-18 Jason Rumney <jasonr@gnu.org>
30140
30141 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
30142
301432007-09-17 Jan Djärv <jan.h.d@swipnet.se>
30144
30145 * gtkutil.c (gdpy_def): New variable.
30146 (xg_initialize): Initialize gdpy_def.
30147 (xg_display_close): If no other display exists, set gdpy_def to a
30148 new connection.
30149
301502007-09-16 Jan Djärv <jan.h.d@swipnet.se>
30151
30152 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
30153 when we have no file name for the icon.
30154 (xg_tool_bar_expose_callback): Remove.
30155 (xg_create_tool_bar): Don't connect expose signal to
30156 xg_tool_bar_expose_callback.
30157 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
30158
301592007-09-16 Andreas Schwab <schwab@suse.de>
30160
30161 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
30162 values instead of zapping them.
30163
301642007-09-14 Glenn Morris <rgm@gnu.org>
30165
30166 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
30167 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
30168 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
30169 scope and rename to omfib_buffer for clarity.
30170 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
30171
301722007-09-14 Kenichi Handa <handa@m17n.org>
30173
30174 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
30175
301762007-09-13 Jason Rumney <jasonr@gnu.org>
30177
30178 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
30179
30180 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
30181
30182 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
30183 (mac_term_init): Call here instead, passing rif.
30184
301852007-09-13 Glenn Morris <rgm@gnu.org>
30186
30187 * s/hpux.h: No longer define `static' as nothing.
30188
301892007-09-13 Johan Bockgård <bojohan@gnu.org>
30190
30191 * callint.c (Fcall_interactively): Remove unused var `fun'.
30192
301932007-09-12 Romain Francoise <romain@orebokech.com>
30194
30195 * window.c (prefer_window_split_horizontally, display_buffer):
30196 Revert 2007-09-08 change.
30197
301982007-09-12 Glenn Morris <rgm@gnu.org>
30199
30200 * alloca.c: Remove file.
30201 * Makefile.in (alloca): Do not undef.
30202 (allocaobj, alloca.o): Remove.
30203 (otherobj): Remove allocaobj.
30204 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
30205 * regex.c (C_ALLOCA): Remove all references and code that was only
30206 used when this was defined.
30207 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
30208 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
30209 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
30210
30211 * Makefile.in (SOURCES, unlock, relock): Delete.
30212
30213 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
30214 (menu_grab_callback): All uses changed.
30215
30216 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
30217 (x_reply_selection_request): All uses changed.
30218
302192007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
30220
30221 * lread.c (load_warn_old_style_backquotes): Change message to look
30222 better when it appears in the middle of byte-compiler messages.
30223
302242007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
30225
30226 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
30227
30228 * xterm.c (x_create_terminal): Add comment.
30229
30230 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
30231
302322007-09-10 Richard Stallman <rms@gnu.org>
30233
30234 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
30235
302362007-09-10 Michaël Cadilhac <michael@cadilhac.name>
30237
30238 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
30239 (DEFUN): Document `intspec', use it instead of `prompt'.
30240
30241 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
30242
30243 * data.c (Finteractive_form): If the interactive specification starts
30244 with a `(', use it as a Lisp form.
30245
30246 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
30247 name and file modes.
30248
30249 * callint.c (Fcall_interactively): Comment fixes.
30250
302512007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
30252
30253 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
30254 and compiled functions.
30255
302562007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
30257
30258 * window.c (prefer_window_split_horizontally): New variable.
30259 (display_buffer): Consider splitting window horizontally depending
30260 on prefer_window_split_horizontally.
30261
302622007-09-08 Eli Zaretskii <eliz@gnu.org>
30263
30264 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
30265
302662007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30267
30268 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
30269
30270 * frame.c (x_set_frame_parameters): Check number is positive before
30271 using XFASTINT.
30272
30273 * window.c (freeze_window_start): Don't presume selected_window holds
30274 a window object.
30275 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
30276
302772007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
30278
30279 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
30280
302812007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
30282
30283 * window.c (Vsplit_window_preferred_function): New var.
30284 (Fdisplay_buffer): Use it.
30285 (syms_of_window): Export, and initialize it.
30286
302872007-09-06 Pixel <pixel@mandriva.com> (tiny change)
30288
30289 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
30290
302912007-09-06 Glenn Morris <rgm@gnu.org>
30292
30293 * gtkutil.c (menu_grab_callback) <cnt>:
30294 * xselect.c (x_reply_selection_request) <cnt>: Move static
30295 variable to file scope.
30296
302972007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
30298
30299 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
30300 consistent values of selected_frame and selected_window.
30301
303022007-09-04 Jason Rumney <jasonr@gnu.org>
30303
30304 * w32console.c (initialize_w32_display): Zero unused hooks.
30305
303062007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30307
30308 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
30309 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
30310
303112007-09-04 Jason Rumney <jasonr@gnu.org>
30312
30313 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
30314 in w32console.c. Set up input. Remove XXX comments that have been
30315 confirmed as correct.
30316
30317 * s/ms-w32.h (MULTI_KBOARD): Define.
30318
30319 * w32console.c (one_and_only_w32cons): Remove.
30320 (initialize_w32_display): Take terminal argument.
30321
30322 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
30323 initialize_w32_display.
30324 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
30325
30326 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
30327
30328 * keyboard.c (discard_mouse_events): Discard it.
30329 (make_lispy_event): Translate it to a lisp event.
30330 (lispy_wheel_names): Add wheel-left and right events.
30331 (syms_of_keyboard): Enlarge wheel_syms.
30332
30333 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
30334 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
30335
30336 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
30337
30338 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
30339 from WM_MOUSEHWHEEL.
30340 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
30341
30342 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
30343 terminal.
30344
30345 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
30346 keyboard for the terminal.
30347
303482007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
30349
30350 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
30351 (Vresume_tty_hook): Rename from Vresume_tty_functions.
30352 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
30353 and resume-tty-function to resume-tty-hook.
30354 (Fsuspend_tty, Fresume_tty): Use new names.
30355
303562007-09-02 Jan Djärv <jan.h.d@swipnet.se>
30357
30358 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
30359 if it starts with "n:".
30360
303612007-08-31 Jan Djärv <jan.h.d@swipnet.se>
30362
30363 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
30364
303652007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
30366
30367 * frame.h:
30368 * frame.c (Qterm_environment_variable): Remove.
30369 (syms_of_frame): Don't init and staticpro it.
30370
30371 * callproc.c (getenv_internal): Remove special case for $TERM.
30372
30373 * callproc.c (Vinitial_environment): New variable.
30374 (set_initial_environment): Initialize it.
30375 (syms_of_callproc): Declare it.
30376 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
30377 TERM under which a process runs is never related to the TERM in which
30378 Emacs is running.
30379
303802007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30381
30382 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
30383 * s/darwin.h: ... do it here.
30384
303852007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
30386
30387 * lisp.h (set_initial_environment): Rename from set_global_environment.
30388
30389 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
30390 removed by mistake on the multi-tty branch.
30391
30392 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
30393 (Fmodify_frame_parameters): Return a value.
30394
30395 * image.c (png_load): Comment-out var only used in commented-out code.
30396
30397 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
30398 before passing it to mark_object.
30399
30400 * xfaces.c (internal_resolve_face_name): Return a value.
30401 (internal_resolve_face_name, resolve_face_name_error): Comment out.
30402
30403 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
30404 (x_icon): Comment-out var only used in commented-out code.
30405
304062007-08-29 Romain Francoise <romain@orebokech.com>
30407
30408 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
30409 QUIT hasn't been provided.
30410
304112007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
30412
30413 * callproc.c (child_setup, getenv_internal): Use the
30414 display-environment-variable and term-environment-variable frame params.
30415 (set_initial_environment): Initialise Vprocess_environment.
30416
30417 * config.in: Disable multi-keyboard support on a mac.
30418
30419 * frame.c (Qterm_environment_variable)
30420 (Qdisplay_environment_variable): New variables.
30421 (syms_of_frame): Intern and staticpro them.
30422 (Fmake_terminal_frame): Disable output method test.
30423
30424 * frame.h: Declare them here.
30425
30426 * macfns.c (x_set_mouse_color): Get rif from the frame.
30427 (x_set_tool_bar_lines): Don't use updating_frame.
30428 (mac_window): Add 2 new parameters for consistency with other systems.
30429 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
30430 frame parameters following what is done in X11 and w32. Don't use
30431 FRAME_MAC_DISPLAY_INFO.
30432 (Fx_open_connection, start_hourglass): Remove window-system check.
30433 (x_create_tip_frame): Get the keyboard from the terminal.
30434
30435 * macmenu.c: Reorder includes.
30436 (Fx_popup_menu): Use terminal specific mouse_position_hook.
30437
30438 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
30439 terminal parameter.
30440 (x_clear_frame): Add a frame parameter.
30441 (note_mouse_movement): Get rif from the frame.
30442 (mac_term_init): Initialize the terminal.
30443 (mac_initialize): Make static and move terminal initialization ...
30444 (mac_create_terminal): ... to this new function.
30445
30446 * macterm.h (struct mac_display_info): Add terminal.
30447 (mac_initialize): Delete declaration.
30448
30449 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
30450
30451 * sysdep.c: Comment out text after #endif.
30452
30453 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
30454 is defined. Better initialize ttys in windows. Use terminal
30455 specific mouse_position_hook.
30456
30457 * termhooks.h (union display_info): Add mac_display_info.
30458
30459 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
30460 Set the default minibuffer frame, window_system and the rest of the
30461 frame parameters following what is done in X11.
30462
30463 * w32term.c (w32_initialize): Make static.
30464
30465 * xselect.c (x_handle_selection_clear): Only access
30466 terminal->kboard when MULTI_KBOARD is defined.
30467
30468 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
30469 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
30470
304712007-08-29 Jason Rumney <jasonr@gnu.org>
30472
30473 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
30474 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
30475
30476 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
30477 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
30478
30479 * keyboard.c (restore_kboard_configuration): Only define when
30480 MULTI_KBOARD defined.
30481
30482 * makefile.w32-in: Update dependancies from Makefile.in.
30483 (OBJ1): Add terminal.$(O)
30484
30485 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
30486 Don't define function body.
30487 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
30488
30489 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
30490
30491 * w32.c (request_sigio, unrequest_sigio): Remove.
30492
30493 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
30494 (w32con_clear_frame, w32con_clear_end_of_line)
30495 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
30496 (w32con_delete_glyphs, w32con_set_terminal_window)
30497 (scroll_line, w32_sys_ring_bell): Add frame arg.
30498 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
30499 Add terminal arg.
30500 (PICK_FRAME): Remove.
30501 (w32con_write_glyphs): Use frame specific terminal coding.
30502 (one_and_only_w32cons): New global variable.
30503 (initialize_w32_display): Use it for storing hooks.
30504 (create_w32cons_output): New function.
30505
30506 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
30507 arg a frame.
30508
30509 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
30510 Set window_system.
30511 (x_set_tool_bar_lines): Don't use updating_frame.
30512 (Fx_create_frame): Set terminal and ref count.
30513 (Fx_open_connection): Remove window-system check.
30514
30515 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
30516
30517 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
30518 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
30519 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
30520 Add frame arg.
30521 (x_delete_terminal, w32_create_terminal): New functions.
30522 (w32_term_init): Create a terminal.
30523 (w32_initialize): Move terminal specific initialization to
30524 w32_create_terminal.
30525
30526 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
30527 (w32_clear_rect, w32_clear_area): Use background from frame.
30528 (w32_display_info): Add terminal.
30529 (w32_sys_ring_bell, x_delete_display): Declare here.
30530
30531 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
30532
30533 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
30534
305352007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
30536
30537 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
30538 Fix get_named_tty calls for the controlling tty.
30539
305402007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
30541
194d44e7 30542 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
30543
305442007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
30545
30546 * term.c (tty_insert_glyphs): Add missing first parameter.
30547
305482007-08-29 Károly Lőrentey <karoly@lorentey.hu>
30549
30550 * buffer.c (Fbuffer_list, Fbury_buffer):
30551 Take frame->buried_buffer_list into account.
30552
30553 * cm.c (current_tty): New variable, for cmputc().
30554 (cmputc): Use it.
30555 (cmcheckmagic): Add tty parameter, look up terminal streams there.
30556 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
30557 (cmgoto): Add tty parameter. Pass it on to calccost().
30558 Use emacs_tputs() instead of tputs().
30559
30560 * cm.h (emacs_tputs): New macro to set current_tty, and then call
30561 tputs().
30562 (current_tty): New variable, for cmputc().
30563 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
30564
30565 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
30566 (internal_condition_case, internal_condition_case_1)
30567 (internal_condition_case_2): Don't abort when x_catching_errors.
30568
30569 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
30570 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
30571 prevent crashes caused by bogus longjmps in read_char.
30572
30573 * keymap.h (Fset_keymap_parent): Add EXFUN.
30574
30575 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
30576 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30577 Remove redundant definition.
30578
30579 * macfns.c (x_set_mouse_color, x_make_gc):
30580 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30581
30582 * w32term.c (x_free_frame_resources):
30583 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30584 (w32_initialize): Use the accessor macros for terminal characteristics.
30585
30586 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
30587 Use the accessor macros for terminal characteristics.
30588 * msdos.c (internal_terminal_init): Use the accessor macros for
30589 terminal characteristics.
30590 (ScreenVisualBell, internal_terminal_init):
30591 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30592
30593 * termopts.h (no_redraw_on_reenter): Declare.
30594
30595 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
30596 (mark_terminals, mark_ttys): Declare.
30597 (Fgarbage_collect): Call them.
30598 (mark_object): Mark buried_buffer_list.
30599
30600 * prefix-args.c: Include stdlib.h for exit.
30601
30602 * syssignal.h: Add comment.
30603
30604 * indent.c: Include stdio.h.
30605
30606 * window.h (Vinitial_window_system): Declare.
30607 (Vwindow_system): Delete declaration.
30608
30609 * fontset.c (Finternal_char_font): Use FRAME_RIF.
30610
30611 * image.c (lookup_image): Don't initialize `c' until the xasserts
30612 have been run.
30613
30614 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
30615 FRAME_FOREGROUND_PIXEL.
30616
30617 * print.c (print_preprocess): Don't lose print_depth levels while
30618 iterating.
30619
30620 * widget.c (update_from_various_frame_slots):
30621 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30622
30623 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
30624 frames.
30625 (window_internal_height): Remove bogus make_number call.
30626 (init_window_once): Call make_terminal_frame with two zero parameters.
30627
30628 * fileio.c (Fread_file_name): Update comment.
30629
30630 * callint.c (Fcall_interactively):
30631 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
30632 Make sure it is correctly unwound.
30633
30634 * xsmfns.c (x_session_close): New function.
30635
30636 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
30637 Delete declarations.
30638
30639 * xterm.h: Remove declaration for x_fully_uncatch_errors.
30640 (x_output): Remove background_pixel and foreground_pixel fields.
30641 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
30642 (x_delete_device, x_session_close): Declare.
30643
30644 * lread.c: Include setjmp.h. Update declaration of `read_char'.
30645 (read_filtered_event): Call `read_char' with a local
30646 `wrong_kboard_jmpbuf'.
30647
30648 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
30649 Don't call single_kboard_state. Use FRAME_RIF.
30650
30651 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
30652 systems.
30653
30654 * lisp.h (set_process_environment): Rename to `set_global_environment'.
30655 (Fframe_with_environment, Fset_input_meta_mode)
30656 (Fset_quit_char): EXFUN.
30657 (x_create_device, tty_output, terminal, tty_display_info): Declare.
30658 (init_sys_modes, reset_sys_modes): Update prototypes.
30659 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
30660
30661 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
30662 Vlocal_key_translation_map, and Vkeyboard_translate_table.
30663 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
30664 Delete declarations.
30665 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
30666 (temporarily_switch_to_single_kboard, tty_read_avail_input):
30667 New declarations.
30668
30669 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
30670 already does that during init_display(). Call syms_of_keymap
30671 before syms_of_keyboard. Call `syms_of_terminal'.
30672 Call set_initial_environment, not set_process_environment.
30673 (shut_down_emacs): Call reset_all_sys_modes() instead of
30674 reset_sys_modes().
30675
30676 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
30677 (internal_resolve_face_name, resolve_face_name_error): New functions.
30678 (resolve_face_name): Protect against loops and errors thrown by Fget.
30679 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
30680 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
30681
30682 * scroll.c: Replace CURTTY() with local variables throughout the
30683 file (where applicable).
30684 (calculate_scrolling, calculate_direct_scrolling)
30685 (scrolling_1, scroll_cost): Use the accessor macros for terminal
30686 characteristics.
30687
30688 * keymap.c (Vfunction_key_map): Remove.
30689 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
30690 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
30691 (Vkey_translation_map): Remove.
30692 (syms_of_keymap): Remove DEFVAR for key-translation-map.
30693 (Fdescribe_buffer_bindings)
30694 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
30695 Update for terminal-local key-translation-map.
30696
30697 * Makefile.in (callproc.o): Update dependencies.
30698 (lisp, shortlisp): Add termdev.elc.
30699 (obj): Add terminal.o.
30700 (terminal.o): Add dependencies.
30701 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
30702 (data.o, fns.o): Add termhooks.h dependency.
30703 (SOME_MACHINE_LISP): Add dnd.elc.
30704 (minibuf.o): Fix typo.
30705 Update dependencies.
30706
30707 * data.c (do_symval_forwarding, store_symval_forwarding)
30708 (find_symbol_value): Use the selected frame's keyboard, not
30709 current_kboard.
30710
30711 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
30712 Vwindow_system.
30713
30714 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
30715 Fmenu_bar_open.
30716 (syms_of_xmenu): Update defsubr.
30717 (mouse_position_for_popup, Fx_popup_menu)
30718 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
30719 (set_frame_menubar, free_frame_menubar)
b97439ce 30720 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
30721 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
30722 an X frame.
30723
30724 * xselect.c (x_own_selection): Abort if not an X frame.
30725 (some_frame_on_display): Check if it is an X frame.
30726 (x_handle_selection_clear): Deal with MULTI_KBOARD.
30727
30728 * coding.c: Include frame.h and termhooks.h.
30729 (terminal_coding, keyboard_coding): Delete.
30730 (Fset_terminal_coding_system_internal)
30731 (Fset_keyboard_coding_system_internal)
30732 (Fkeyboard_coding_system)
30733 (Fterminal_coding_system): Add a terminal parameter.
30734 Get terminal_coding from the terminal.
30735 (init_coding_once): Don't call setup_coding_system here.
30736
30737 * dispextern.h (set_scroll_region, turn_off_insert)
30738 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
30739 (tty_clear_end_of_line, tty_setup_colors)
30740 (delete_tty, updating_frame)
30741 (produce_special_glyphs, produce_glyphs, write_glyphs)
30742 (insert_glyphs): Remove.
30743 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
30744 (tty_turn_off_highlight, get_tty_size): Add declaration.
30745 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
30746
30747 * frame.h (enum output_method): Add output_initial.
30748 (struct x_output): Delete.
30749 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
30750 Access foreground_pixel and background_pixel directly from the frame.
30751 (tty_display): Delete.
30752 (struct frame): Add buried_buffer_list, foreground_pixel,
30753 background_pixel and terminal. Delete kboard.
30754 (union output_data): Add tty.
30755 (FRAME_KBOARD): Get the kboard from the terminal.
30756 (FRAME_INITIAL_P): New macro.
30757 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
30758 (Qterm_environment_variable, Qdisplay_environment_variable)
30759 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
30760 New declarations.
30761
30762 * termchar.h (tty_output, tty_display_info): New structures.
30763 (tty_list): Declare.
30764 (FRAME_TTY, CURTTY): New macros.
30765 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
30766 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
30767 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
30768 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
30769
30770 * callproc.c: Include frame.h and termhooks.h, for terminal
30771 parameters.
30772 (add_env): New function.
30773 (child_setup): Use it.
30774 (child_setup, getenv_internal): Handle the new Vprocess_environment.
30775 (getenv_internal): Fix get_terminal_param call.
30776 (Fgetenv_internal, egetenv): Update doc.
30777 (syms_of_callproc): Initialize Vprocess_environment to nil.
30778 Register and initialize them. Remove obsolete defvars. Update doc
30779 strings.
30780 (child_setup): Handle Vlocal_environment_variables.
30781 (getenv_internal): Add terminal parameter.
30782 Handle Vlocal_environment_variables.
30783 (Fgetenv_internal): Add terminal parameter.
30784 (child_setup, getenv_internal, Fgetenv_internal): Store the local
30785 environment in a frame (not terminal) parameter. Update doc strings.
30786 (set_initial_environment): Rename from set_global_environment.
30787 Store Emacs environment in initial frame parameter.
30788
30789 * xdisp.c (redisplay_internal): Update references to
30790 `previous_terminal_frame'.
30791 (display_mode_line, Fformat_mode_line): Replace calls to
30792 `push_frame_kboard' with `push_kboard'.
30793 (get_glyph_string_clip_rects): Add extra parentheses and
30794 braces to prevent compiler warnings.
30795 (calc_pixel_width_or_height): Add xassert to check that the
30796 frame is alive. Don't call `lookup_image' on a termcap frame.
30797 (message2_nolog, message3_nolog, redisplay_internal)
30798 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
30799 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
30800 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
30801 (Fx_display_pixel_width, Fx_display_pixel_height)
30802 (Fx_display_planes, Fx_display_color_cells)
30803 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
30804 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
30805 (Fx_display_backing_store, Fx_display_visual_class)
30806 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
30807 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
30808
30809 * xfns.c (x_set_foreground_color x_set_background_color)
30810 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
30811 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30812 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
30813 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
30814 terminal that is being deleted.
30815 (Fx_create_frame): Use `store_frame_param' to set `window-system'
30816 frame parameter, and make sure it overrides any user-supplied setting.
30817 (Fx_close_connection, Fx_synchronize): Unify argument names with
30818 the rest of the DEFUNs.
30819
30820 * dispnew.c (Fsend_string_to_terminal): Update call to
30821 `get_tty_terminal'.
30822 (Fredraw_frame, Fsend_string_to_terminal)
30823 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
30824 FRAME_TERMCAP_P and FRAME_TTY.
30825 (window_change_signal): Don't believe width/height values that are
30826 impossibly small.
30827 (Vinitial_window_system): Rename from Vwindow_system.
30828 (termscript, Wcm, rif): Delete.
30829
30830 * termhooks.h (struct terminal): New struct containing the
30831 previously global text display hooks and new members NAME,
30832 DELETED and PARAM_ALIST.
30833 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
30834 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
30835 (FRAME_RIF): New macros.
30836 (get_terminal_param, get_device): New declarations.
30837 (termscript): Delete declaration.
30838
30839 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
30840 (XTflash, x_free_frame_resources, x_scroll_bar_create)
30841 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
30842 FRAME_FOREGROUND_PIXEL.
30843 (x_fully_uncatch_errors): Disable definition.
30844 (x_scroll_bar_expose): Fix reference to foreground pixel.
30845 (XTread_socket): Disable loop on all X displays.
30846 (x_delete_terminal): Don't set terminal->deleted and let
30847 delete_terminal delete the frames on the terminal.
30848 (x_delete_display): Doc update to reflect changes in
30849 delete_terminal.
30850 (x_display_info) <terminal>: Move member earlier in the struct.
30851 (deleting_tty): Remove old variable.
30852 (Fsuspend_tty): Call clear_tty_hooks.
30853 (Fresume_tty, init_tty): Call set_tty_hooks.
30854 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
30855 errors on X frames.
30856 (x_catch_errors_unwind): Abort if x_error_message is NULL.
30857 (handle_one_xevent): Initialize `f' to NULL.
30858 (x_delete_terminal, x_create_terminal): New functions.
30859 (XTset_terminal_modes, XTreset_terminal_modes)
30860 (XTread_socket, x_connection_closed, x_term_init)
30861 (x_term_init, x_delete_display): Add terminal parameter.
30862 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
30863 X connections.
30864
30865 * frame.c: Include termchar.h.
30866 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
30867 (Qwindow_system, Qenvironment, Qterm_environment_variable)
30868 (Qdisplay_environment_variable): New vars.
30869 (Fframep): Deal with output_initial.
30870 (Fframe-live-p): Doc fix.
30871 (Fwindow-system): New function.
30872 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
30873 (make_terminal_frame): Don't create frames on a terminal that is
30874 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
30875 (store_frame_param): Check for found_for_frame before calling XFRAME.
30876 (Fmake_terminal_frame): Handle NULL tty names correctly.
30877 (syms_of_frame): Enhance doc string of `default-frame-alist'.
30878 (Fdelete_frame): Remove unused variable `count'. Don't allow other
30879 frames to refer to a deleted frame in their 'environment parameter.
30880 (Fframe_with_environment): New function.
30881 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
30882 (get_future_frame_param): New function.
30883 (Fmake_terminal_frame): Use it.
30884 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
30885
30886 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
30887 * sysdep.c (reset_sys_modes): Update for renames.
30888
30889 * keyboard.c (tty_read_avail_input): New function.
30890 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
30891 (syms_of_keyboard): Defsubr them.
30892 (Fset_input_meta_mode, Fset_quit_char): New functions.
30893 (Fset_input_mode): Split to above functions.
30894 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
30895 parameter. Use it in call to `read_char'.
30896 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
30897 Set wrong_kboard_jmpbuf correctly in recursive calls.
30898 Use current_kboard to access Vkeyboard_translate_table.
30899 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
30900 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
30901 Update longjmp invocations. Remember the original current_kboard,
30902 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
30903 changes it. Comment out unnecessary calls to
30904 `record_single_kboard_state' and `any_kboard_state'.
30905 Update recursive calls.
30906 (wrong_kboard_jmpbuf): Remove global variable.
30907 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
30908 Handle deleted interrupted_kboards correctly; that is a legal
30909 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
30910 and read_char calls. Abort if interrupted_kboard died in read_char.
30911 (any_kboard_state, single_kboard_state)
30912 (push_frame_kboard): Remove function.
30913 (pop_kboard): Switch out of single_kboard mode if the kboard has
30914 been deleted. Remove unused variable. Help debugging by not
30915 changing current_kboard unnecessarily. Set current_kboard to the
30916 kboard of the selected frame when the stored kboard object has
30917 been deleted before pop_kboard.
30918 (temporarily_switch_to_single_kboard): Change first parameter to a
30919 frame pointer. Throw an error when caller wants to change kboards
30920 while in single_kboard mode. Don't push_kboard if we weren't in
30921 single kboard state. Don't pop_kboard if we popped into any
30922 kboard state.
30923 (restore_kboard_configuration): Abort if pop_kboard changed the
30924 kboard in single_kboard mode. Call pop_kboard only after setting
30925 up single_kboard mode.
30926 (Frecursive_edit): Switch to single_kboard mode only in nested
30927 command loops.
30928 (cmd_error, command_loop, command_loop_1, timer_check):
30929 Comment out unnecessary call to `any_kboard_state' and
30930 `record_single_kboard_state'.
30931 (delete_kboard): Exit single_kboard mode if we have just deleted
30932 that kboard. Use FRAME_KBOARD.
30933 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
30934 `fatal_error_signal'.
30935 (record_single_kboard_state): Don't push_kboard if we weren't in
30936 single kboard state. Don't pop_kboard if we popped into any
30937 kboard state.
30938 (push_frame_kboard): Rename to push_kboard.
30939 (kbd_buffer_get_event): Use FRAME_TERMINAL.
30940 (read_avail_input): Read input from all terminals.
30941 (mark_kboards): Also mark Vkeyboard_translate_table.
30942 (kbd_buffer_store_event_hold): Simplify condition.
30943 (read_key_sequence): Reinitialize fkey and keytran at each replay.
30944 (Vkeyboard_translate_table): Move to struct kboard.
30945 (init_kboard): Initialize Vkeyboard_translate_table.
30946 (syms_of_keyboard): Use DEFVAR_KBOARD to define
30947 Vkeyboard_translate_table. Update doc strings. Update docs of
30948 local-function-key-map and function-key-map.
30949
30950 * terminal.c: New file.
30951
30952 * term.c: Include errno.h.
30953 (Vring_bell_function, device_list, initial_device)
30954 (next_device_id, ring_bell, update_begin, update_end)
30955 (set_terminal_window, cursor_to, raw_cursor_to)
30956 (clear_to_end, clear_frame, clear_end_of_line)
30957 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
30958 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
30959 (syms_of_term): Move their initialization to terminal.c.
30960 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
30961 (Ftty_display_color_cells)
30962 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
30963 (clear_tty_hooks, set_tty_hooks)
30964 (init_tty, maybe_fatal): New functions.
30965 (Ftty_type): Return nil if terminal is not on a tty instead of
30966 throwing an error. Doc update.
30967 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
30968 Doc update. Initialize new subrs and variables.
30969 (delete_tty): Use terminal->deleted.
30970 (tty_set_terminal_modes): Rename from set_terminal_modes.
30971 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
30972 (set_scroll_region): Rename to `tty_set_scroll_region'.
30973 (turn_on_insert): Rename to `tty_turn_on_insert'.
30974 (turn_off_insert): Rename to `tty_turn_off_insert'.
30975 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
30976 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
30977 (toggle_highligh): Rename to `tty_toggle_highlight'.
30978 (background_highlight): Rename to `tty_background_highlight'.
30979 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
30980 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
30981 (tty_set_scroll_region, tty_background_highlight)
30982 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
30983 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
30984 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
30985 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
30986 Add static modifier.
30987 (tty_reset_terminal_modes, tty_set_terminal_window)
30988 (tty_set_scroll_region, tty_background_highlight)
30989 (tty_highlight_if_desired, tty_cursor_to)
30990 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
30991 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
30992 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
30993 renames.
30994
309952007-08-28 Jan Djärv <jan.h.d@swipnet.se>
30996
30997 * keyboard.c: Qrtl is new.
30998 (parse_tool_bar_item): Handle :rtl keyword.
30999 (syms_of_keyboard): Intern :rtl keyword.
31000
31001 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
31002
31003 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
31004 so no Lisp code is executed.
31005 (file_for_image, find_rtl_image): New functions.
31006 (xg_get_image_for_pixmap): Use file_for_image.
31007 (update_frame_tool_bar): If direction is RTL, use RTL image if
31008 defined. Use Gtk stock images if defined.
31009
310102007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31011
31012 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
31013 for nonexistent or zero-width glyph in composition glyph.
31014
310152007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
31016
31017 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
31018
31019 * xdisp.c (Finvisible_p): New function.
31020 (syms_of_xdisp): defsubr it.
31021
310222007-08-24 Juanma Barranquero <lekktu@gmail.com>
31023
31024 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
31025 Doc fixes.
31026
310272007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31028
31029 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
31030
310312007-08-24 Martin Rudalics <rudalics@gmx.at>
31032
31033 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
31034 whether decoding has modified buffer contents.
31035
310362007-08-24 Jason Rumney <jasonr@gnu.org>
31037
31038 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
31039 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
31040 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
31041 (init_svg_functions) [HAVE_NTGUI]: New function.
31042 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
31043 (svg_load_image): Use them.
31044 (svg_load_image) [HAVE_NTGUI]: Implement background.
31045
310462007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31047
31048 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
31049 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
31050 (LIBX): Remove @RSVG_LIBS@.
31051 (LIBES): Add $(RSVG_LIBS).
31052
31053 * image.c (svg_load_image): Blend with specified background if exists.
31054 Use IMAGE_BACKGROUND. Add Mac OS Support.
31055
31056 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
31057 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
31058 Remove macros.
31059 [MAC_OSX] (socket_callback): Do nothing.
31060 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
31061 ReceiveNextEvent.
31062 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
31063 socket_callback.
31064 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
31065
310662007-08-22 Glenn Morris <rgm@gnu.org>
31067
31068 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
31069
310702007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
31071
31072 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
31073
31074 * image.c: Add support for SVG images. Some additional comments
31075 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
31076 (svg_image_p): New function to test for SVG image.
31077 (svg_load): New function to load SVG image.
31078 (svg_load_image): New function, helper for svg_load.
31079 (Qsvg): New Lisp_object.
31080 (svg_keyword_index): New enum.
31081 (svg_format): New static `image_keyword' struct.
31082 (svg_type): New static `image_type' struct.
31083 (librsvg/rsvg.h): Include it.
31084
310852007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
31086
31087 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
31088
310892007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
31090
31091 * lread.c (Qold_style_backquotes): New var.
31092 (syms_of_lread): Init and staticpro it.
31093 (load_warn_old_style_backquotes): New fun.
31094 (Fload): Use them to warn about old style backquotes.
31095 (end_of_file_error, Fload): Remove unused vars.
31096
31097 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
31098
31099 * lread.c (Vold_style_backquotes): New var.
31100 (syms_of_lread): Init and export it to Elisp.
31101 (read1): Set it when we find an old-style (back)quote.
31102
311032007-08-22 Jason Rumney <jasonr@gnu.org>
31104
31105 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
31106
311072007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
31108
31109 * puresize.h (BASE_PURESIZE): Increase to 1140000.
31110
311112007-08-19 Richard Stallman <rms@gnu.org>
31112
31113 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
31114
311152007-08-19 Andreas Schwab <schwab@suse.de>
31116
31117 * alloc.c (pure): Round PURESIZE up.
31118
311192007-08-17 Jan Djärv <jan.h.d@swipnet.se>
31120
31121 * xterm.c (handle_one_xevent): Remove check that mouse click is in
31122 active frame.
31123
311242007-08-16 Richard Stallman <rms@gnu.org>
31125
31126 * eval.c (Fcommandp): Add parens to clarify.
31127
31128 * minibuf.c (Fall_completions): Use enum for type of table.
31129
31130 * emacs.c (USAGE2): Improve text.
31131
311322007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
31133
31134 * term.c (tty_default_color_capabilities): Declare static
31135 variables in file scope, to avoid HPUX compiler problem.
31136
311372007-08-13 Jan Djärv <jan.h.d@swipnet.se>
31138
31139 * gtkutil.c (update_frame_tool_bar): Use -1 as index
31140 to gtk_toolbar_insert.
31141
311422007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
31143
31144 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
31145
31146 * insdel.c (reset_var_on_error): New fun.
31147 (signal_before_change, signal_after_change):
31148 Use it to reset (after|before)-change-functions to nil in case of error.
31149 Bind inhibit-modification-hooks to t.
31150 Don't bind (after|before)-change-functions to nil while they run.
31151
311522007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31153
31154 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
31155 filling pixmap with stippled background.
31156
311572007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31158
31159 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
31160 Don't use invisible frame as parent window for repositioning.
31161
311622007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
31163
31164 * print.c (new_backquote_output): Rename from old_backquote_output.
31165 (print): Inverse its logic (according to its name) so as to match the
31166 behavior of new_backquote_flag in lread.c.
31167
311682007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31169
31170 * gmalloc.c (posix_memalign): New function.
31171
31172 * macterm.c (frame_highlight, frame_unhighlight): Don't call
31173 ActivateControl/DeactivateControl here.
31174 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
31175 frame-notice-user-settings is non-nil.
31176 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
31177 for kEventParamFMFontStyle.
31178 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
31179 mac_pass_command_to_system and mac_pass_control_to_system here.
31180 (XTread_socket): Call ActivateControl/DeactivateControl here.
31181 (XTread_socket) [TARGET_API_MAC_CARBON]:
31182 Check mac_pass_command_to_system and mac_pass_control_to_system here.
31183 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
31184 for window repositioning.
31185
311862007-08-08 Glenn Morris <rgm@gnu.org>
31187
31188 * Replace `iff' in doc-strings and comments.
31189
311902007-08-07 Chong Yidong <cyd@stupidchicken.com>
31191
31192 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
31193
311942007-08-07 Martin Rudalics <rudalics@gmx.at>
31195
31196 * fileio.c (Finsert_file_contents): Run format-decode and
31197 after_insert_file_functions on entire buffer when REPLACE is
31198 non-nil and inhibit modification_hooks and point_motion_hooks.
31199 For consistency, run after_insert_file_functions iff something
31200 got inserted. Move signal_after_change and update_compositions
31201 after code running after_insert_file_functions. Make sure that
31202 undo_list doesn't record intermediate steps of the decoding process.
31203
312042007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31205
31206 * emacs.c (main)
31207 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
31208 Call malloc_enable_thread on interactive startup.
31209
31210 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
31211 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
31212 [USE_PTHREAD]: Conditionalize with it.
31213 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
31214 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
31215 New functions.
31216
312172007-08-06 Chong Yidong <cyd@stupidchicken.com>
31218
31219 * xdisp.c (redisplay_window): When restoring original buffer
31220 position, make sure it is still valid.
31221
31222 * image.c (png_load): Ignore png-supplied background color.
31223
312242007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31225
31226 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
31227 Use kCFAbsoluteTimeIntervalSince1970.
31228
31229 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
31230 New variable.
31231 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
31232 event loop should be quit.
31233 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
31234 Quit dialog event loop if quit_dialog_event_loop is set.
31235
31236 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
31237 (Selection): New typedef. Use instead of ScrapRef.
31238 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
31239 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
31240 (mac_clear_selection): Rename from clear_scrap.
31241 (get_flavor_type_from_symbol): New argument SEL and subsume function of
31242 scrap_has_target_type. All uses changed.
31243 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
31244 (mac_selection_has_target_p): New functions.
31245 (mac_put_selection_value): Rename from put_scrap_string.
31246 (mac_get_selection_value): Rename from get_scrap_string.
31247 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
31248 (put_scrap_private_timestamp, scrap_has_target_type)
31249 (get_scrap_private_timestamp): Remove functions.
31250 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
31251 (x_own_selection, x_get_local_selection):
31252 Use mac_valid_selection_value_p.
31253 (x_own_selection): Don't use put_scrap_private_timestamp.
31254 Record OWNERSHIP-INFO into Vselection_alist instead.
31255 (x_get_local_selection): Don't check type if request is local.
31256 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
31257 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
31258
312592007-08-04 Jan Djärv <jan.h.d@swipnet.se>
31260
31261 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
31262 add comment explaining why.
31263
312642007-08-03 Richard Stallman <rms@gnu.org>
31265
31266 * fileio.c (Fvisited_file_modtime): Use make_time.
31267
312682007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
31269
31270 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
31271 build.
31272
312732007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
31274
31275 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
31276
312772007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
31278
31279 * puresize.h (BASE_PURESIZE): Increase to 1130000.
31280
312812007-07-30 Richard Stallman <rms@gnu.org>
31282
31283 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
31284
312852007-07-29 Jan Djärv <jan.h.d@swipnet.se>
31286
31287 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
31288
312892007-07-28 Nick Roberts <nickrob@snap.net.nz>
31290
31291 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
31292 remote default-directory.
31293
31294 * buffer.c (mode-line-format): Update doc string.
31295
312962007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31297
31298 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
31299 scroll bar gap.
31300 (x_scroll_bar_create): Set bar->fringe_extended_p.
31301 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
31302 on frame edge. Check fringe background extension. Don't clear
31303 extended fringe background area.
31304
31305 * w32term.h (struct scroll_bar): New member fringe_extended_p.
31306 (w32_fill_area): Enclose multiple statements with do ... while (0).
31307
31308 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
31309 Extend fringe background to scroll bar gap.
31310 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
31311 Set bar->fringe_extended_p.
31312 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31313 Put leftmost/rightmost scroll bars on frame edge. Check fringe
31314 background extension. Don't clear extended fringe background area.
31315
31316 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
31317 New member fringe_extended_p.
31318
313192007-07-25 Glenn Morris <rgm@gnu.org>
31320
31321 * Relicense all FSF files to GPLv3 or later.
31322
31323 * COPYING: Switch to GPLv3.
31324
313252007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
31326
31327 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
31328
31329 * data.c (Finteractive_form): Check for the presence of an
31330 `interactive-form' symbol property more thoroughly.
31331
31332 * data.c (Finteractive_form): Use an `interactive-form' property if
31333 present, analogous to the function-documentation property.
31334
313352007-07-24 Jason Rumney <jasonr@gnu.org>
31336
31337 * w32fns.c (x_real_positions): Get real position from OS instead of
31338 calculating it.
31339
313402007-07-23 Jason Rumney <jasonr@gnu.org>
31341
31342 * filelock.c (current_lock_owner): Allow for @ sign in username.
31343
313442007-07-22 Nick Roberts <nickrob@snap.net.nz>
31345
31346 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
31347 remote default-directory.
31348
31349 * buffer.c (mode-line-format): Describe above case in doc string.
31350
313512007-07-20 Eli Zaretskii <eliz@gnu.org>
31352
31353 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
31354 Define if not defined.
31355
313562007-07-18 Jason Rumney <jasonr@gnu.org>
31357
31358 * w32proc.c (w32_executable_type): Handle 64 bit executables.
31359
313602007-07-18 Richard Stallman <rms@gnu.org>
31361
31362 * data.c (Fsetq_default): Doc fix.
31363
31364 * eval.c (Fsetq): Doc fix.
31365
313662007-07-18 Juanma Barranquero <lekktu@gmail.com>
31367
31368 * coding.c (Ffind_operation_coding_system):
31369 * eval.c (For, Fand): Doc fixes.
31370 Reported by Johan Bockgård.
31371
313722007-07-18 Jan Djärv <jan.h.d@swipnet.se>
31373
31374 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
31375
31376 * xterm.h: Declare x_ewmh_activate_frame.
31377
31378 * xterm.c (x_ewmh_activate_frame): New function.
31379 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
31380
313812007-07-17 Martin Rudalics <rudalics@gmx.at>
31382
31383 * window.c (Fdisplay_buffer): If largest or LRU window is the
31384 only window, split it even if it is not eligible for splitting.
31385 This restores the original behavior broken by the 2007-07-15
31386 change.
31387
313882007-07-17 Glenn Morris <rgm@gnu.org>
31389
31390 * abbrev.c (abbrev_check_chars): New function.
31391 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
31392 Call abbrev_check_chars to check abbrev characters are word
31393 constituents. Doc fix.
31394
313952007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
31396
31397 * process.c (Fstart_process, Fmake_network_process)
31398 (read_process_output): Fix up last changes.
31399
314002007-07-16 Eli Zaretskii <eliz@gnu.org>
31401
31402 * makefile.w32-in (clean): Don't delete *~.
31403
314042007-07-16 Andreas Schwab <schwab@suse.de>
31405
31406 * window.c (Fdisplay_buffer): Use NILP.
31407 (Fset_window_scroll_bars): Likewise.
31408
314092007-07-15 Martin Rudalics <rudalics@gmx.at>
31410
31411 * window.c (window_min_size_2): New function.
31412 (window_min_size_1, size_window, Fdisplay_buffer)
31413 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
31414 windows without mode- or header-lines when window-min-height is
31415 too small.
31416 (size_window): Reset nodelete_p after testing it, following an
31417 earlier note by Kim F. Storm.
31418 (display_buffer): Do not set split_height_threshold to twice the
31419 value of window_min_height to avoid changing the value of a
31420 customizable variable. Rather explicitly check whether the
31421 height of the window that shall be splitted is at least as large
31422 as split_height_threshold.
31423 (Fwindow_full_width_p): New defun.
31424 (syms_of_window): Defsubr it.
31425
31426 * window.h: Add EXFUN for Fwindow_full_width_p.
31427
314282007-07-14 Jason Rumney <jasonr@gnu.org>
31429
31430 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
31431
314322007-07-14 Richard Stallman <rms@gnu.org>
31433
31434 * eval.c (maybe_call_debugger): New function.
31435 (find_handler_clause): Use maybe_call_debugger.
31436 Call it when the handler says `debug'.
31437 Eliminate DEBUGGER_VALUE_PTR.
31438 (Fsignal): Eliminate debugger_value.
31439 (Qdebug): New variable.
31440 (syms_of_eval): Initialize it.
31441
314422007-07-14 Juanma Barranquero <lekktu@gmail.com>
31443
31444 * eval.c (Fprogn):
31445 * keyboard.c (Ftrack_mouse):
31446 * print.c (Fwith_output_to_temp_buffer):
31447 * window.c (Fsave_window_excursion): Doc fix.
31448
314492007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
31450
31451 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
31452
314532007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
31454
31455 * process.h (struct Lisp_Process): Turn slots infd, outfd,
31456 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
31457 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
31458 read_output_delay, and read_output_skip from Lisp_Objects to ints.
31459 Remove unused encoding_carryover.
31460 * process.c: Adjust all functions accordingly.
31461
314622007-07-12 Richard Stallman <rms@gnu.org>
31463
31464 * term.c: Include unistd.h only if HAVE_UNISTD_H.
31465
314662007-07-11 Jason Rumney <jasonr@gnu.org>
31467
31468 * makefile.w32-in (LIBS): Include OLE32.
31469
31470 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
31471 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
31472
314732007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
31474
31475 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
31476 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
31477 from a Lisp_Object into a bare pointer.
31478 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
31479 Adjust the code correspondingly.
31480
31481 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
31482
31483 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
31484 (term_show_mouse_face): Remove unused var `j'.
31485 (handle_one_term_event): Remove unused vars `i' and `j'.
31486 Don't cast return value of ttyname since it's not necessary.
31487
314882007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
31489
31490 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
31491 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
31492
31493 * fns.c (map_char_table): Use an array of int for `indices' rather than
31494 an array of Lisp_Objects (which are only ever integers anyway).
31495 (Fmap_char_table): Update caller.
31496 * lisp.h: Update prototype.
31497 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
31498 * fontset.c (Ffontset_info):
31499 * casetab.c (set_case_table): Update callers.
31500
31501 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
31502
31503 * keymap.c (struct accessible_keymaps_data)
31504 (struct where_is_internal_data): New structures.
31505 (accessible_keymaps_1, where_is_internal_1): Use them to change
31506 interface to adhere to the one used by map_keymap.
31507 (Faccessible_keymaps, where_is_internal): Use map_keymap.
31508 (accessible_keymaps_char_table, where_is_internal_2): Remove.
31509
31510 * keymap.h (map_keymap_function_t): More informative prototype.
31511
315122007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
31513
31514 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
31515 (looking_at_1): Don't change search_regs and last_thing_searched
31516 if `inhibit-changing-match-data' is non-nil.
31517 (string_match_1, search_buffer, set_search_regs): Likewise.
31518 (syms_of_search): Add Lisp level definition for
31519 `inhibit-changing-match-data' and set it to nil.
31520 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
31521 start and end of the match, instead of using values in search_regs.
31522
315232007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
31524
31525 * minibuf.c (Fcompleting_read): New value `confirm-only'
31526 for `require-match'.
31527
315282007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
31529
31530 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
31531 part of the 2007-06-27 change to syms_of_fileio.
31532
315332007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31534
31535 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
31536 Check WINDOWP before using XWINDOW. Consolidate return statements.
31537
315382007-06-27 Richard Stallman <rms@gnu.org>
31539
31540 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
31541
315422007-06-27 Juanma Barranquero <lekktu@gmail.com>
31543
31544 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
31545
315462007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31547
31548 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
31549 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
31550 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
31551 (_free_internal, memalign): Use them.
31552 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
31553 Initialize to PTHREAD_MUTEX_INITIALIZER.
31554 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
31555 (morecore_nolock): Rename from morecore. All uses changed.
31556 Use only nolock versions of internal allocation functions.
31557 (_malloc_internal_nolock, _realloc_internal_nolock)
31558 (_free_internal_nolock): New functions created from
31559 _malloc_internal, _realloc_internal, and _free_internal.
31560 (_malloc_internal, _realloc_internal, _free_internal): Use them.
31561 Copy hook value to automatic variable before its use.
31562 (memalign): Copy hook value to automatic variable before its use.
31563
315642007-06-26 Kenichi Handa <handa@m17n.org>
31565
31566 * coding.c (Ffind_operation_coding_system): Docstring improved.
31567 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
31568
315692007-06-25 David Kastrup <dak@gnu.org>
31570
31571 * keymap.c (Fcurrent_active_maps): Add `position' argument.
31572 (Fwhere_is_internal): Adjust call to `current-active-maps' to
31573 cater for additional parameter.
31574
31575 * keymap.h: Adjust number of parameters to `current-active-maps'.
31576
31577 * doc.c (Fsubstitute_command_keys): Adjust call of
31578 `current-active-maps'.
31579
315802007-06-25 David Kastrup <dak@gnu.org>
31581
31582 * callint.c (Fcall_interactively): Make the parsing of interactive
31583 specs somewhat more readable.
31584
315852007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31586
31587 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
31588 to scroll bar gap also when bitmap fills fringe. Draw only foreground
31589 if extended background has already been filled.
31590
315912007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31592
31593 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
31594 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
31595
31596 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
31597 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
31598 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
31599 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
31600 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
31601 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
31602 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
31603 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
31604 Run timers during dialog popup.
31605 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
31606
316072007-06-21 Jason Rumney <jasonr@gnu.org>
31608
31609 * image.c (convert_mono_to_color_image): Swap fore and background.
31610
316112007-06-20 Jason Rumney <jasonr@gnu.org>
31612
31613 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
31614 (w32_free_bdf_font): Unmap memory not handle.
31615
316162007-06-20 Sam Steingold <sds@gnu.org>
31617
31618 * gmalloc.c (__morecore): Fix the declaration to comply with the
31619 definition.
31620
316212007-06-20 Juanma Barranquero <lekktu@gmail.com>
31622
31623 * w32term.c (w32_delete_display): Remove leftover declaration.
31624 (w32_define_cursor, w32_initialize): Make static.
31625
31626 * w32.c (_wsa_errlist): Fix typo in error message.
31627 (init_environment): Ignore any environment variable from the
31628 registry having a null value.
31629
316302007-06-20 Glenn Morris <rgm@gnu.org>
31631
31632 * Makefile.in (LIBGIF): Default to -lgif.
31633
316342007-06-17 Jason Rumney <jasonr@gnu.org>
31635
31636 * w32menu.c (add_menu_item): Don't use multibyte string functions on
31637 unicode strings.
31638
316392007-06-16 Juanma Barranquero <lekktu@gmail.com>
31640
31641 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
31642 Fix typo in docstring.
31643
316442007-06-16 Eli Zaretskii <eliz@gnu.org>
31645
31646 * w32menu.c (add_menu_item): Escape `&' characters in menu items
31647 and their keybindings.
31648
316492007-06-15 Chong Yidong <cyd@stupidchicken.com>
31650
31651 * composite.c (update_compositions): Fix last fix.
31652
316532007-06-14 Jason Rumney <jasonr@gnu.org>
31654
31655 * w32.c (get_process_times_fn): New function pointer.
31656 (globals_of_w32): Intialize it if present in kernel32.dll.
31657 (w32_get_internal_run_time): New function.
31658
31659 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
31660
316612007-06-14 Kenichi Handa <handa@etlken.m17n.org>
31662
31663 * composite.c (update_compositions): Check the validness of
31664 compositions.
31665
316662007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31667
31668 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
31669 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
31670
31671 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
31672 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
31673
31674 * macgui.h (USE_MAC_TOOLBAR): New define.
31675
31676 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31677 Return immediately unless popup is activated.
31678
31679 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
31680 background to scroll bar gap.
31681 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
31682 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
31683 scroll bars on frame edge. Check fringe background extension.
31684 Don't clear extended fringe background area.
31685 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
31686 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
31687 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
31688 [USE_MAC_TOOLBAR]: New macros.
31689 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
31690 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
31691 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
31692 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
31693 [USE_MAC_TOOLBAR]: New functions.
31694 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
31695 manually if previous repositioning has failed.
31696 (mac_handle_keyboard_event): Use precomputed event kind.
31697 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
31698 as tool bar item click. Handle mouse movement over tool bar items.
31699
31700 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
31701 toolbar_win_gravity.
31702 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
31703 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
31704 Add externs.
31705
31706 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
31707 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
31708
317092007-06-14 Chong Yidong <cyd@stupidchicken.com>
31710
31711 * image.c (search_image_cache): Remove unused variable.
31712
317132007-06-13 Chong Yidong <cyd@stupidchicken.com>
31714
31715 * xfns.c, xmenu.c: Link to xaw3d if available.
31716
317172007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31718
31719 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
31720 frame_foreground and frame_background.
31721
31722 * image.c (lookup_image): Save frame foreground and background colors.
31723 (search_image_cache): Check if saved and current frame colors match.
31724
317252007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
31726
31727 * regex.c (regex_compile): Remove the `regnum' counter.
31728 Use bufp->re_nsub instead. Add support for \(?N:RE\).
31729
317302007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
31731
31732 * term.c: Include intervals.h to declare Fget_text_property.
31733
317342007-06-10 Jason Rumney <jasonr@gnu.org>
31735
31736 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
31737
317382007-06-08 Juanma Barranquero <lekktu@gmail.com>
31739
31740 * callint.c (Fcall_interactively):
31741 * editfns.c (Fdelete_and_extract_region):
31742 * fileio.c (Fread_file_name):
31743 * fns.c (Fmapconcat):
31744 * keyboard.c (cmd_error_internal):
31745 * keymap.c (Fkey_description):
31746 * lread.c (openp):
31747 * minibuf.c (read_minibuf):
31748 * search.c (wordify):
31749 * sunfns.c (sel_read):
31750 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
31751 * xfns.c (x_default_scroll_bar_color_parameter):
31752 * xmenu.c (menu_help_callback):
31753 * xselect.c (Fx_get_atom_name):
31754 * xterm.c (x_term_init): Use empty_unibyte_string.
31755
317562007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
31757
31758 * alloc.c (init_strings): Initialize canonical empty strings.
31759 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
31760 canonical empty string when the requested size is 0.
31761
31762 * emacs.c (empty_unibyte_string): Rename from empty_string.
31763 (empty_multibyte_string): New canonical empty string.
31764 (syms_of_emacs): Don't initialize empty_string.
31765
31766 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
31767 string, if appropriate.
31768 (empty_unibyte_string, empty_multibyte_string): New externs.
31769 (empty_string): Remove extern.
31770
31771 * lread.c (syms_of_lread): Use empty_unibyte_string.
31772
317732007-06-07 Jason Rumney <jasonr@gnu.org>
31774
31775 * s/ms-w32.h: Don't define HAVE_TZNAME.
31776
31777 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
31778
317792007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31780
31781 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
31782
31783 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
31784 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
31785
31786 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
31787 Don't call next handler.
31788 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
31789 Remove argument. Install handler to application.
31790 (set_frame_menubar): Don't change deep_p.
31791 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
31792 FRAME_OUTER_TO_INNER_DIFF_Y.
31793 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
31794 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
31795 [HAVE_DIALOGS]: New macros.
31796 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
31797 Use them.
31798 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
31799
31800 * macselect.c [MAC_OSX] (install_service_handler): Rename from
31801 init_service_handler. All callers changed. Return OSStatus value.
31802
31803 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
31804 All callers changed so as not to call SetPortWindowPort.
31805 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
31806 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
31807 mac_draw_string_common.
31808 (mac_draw_image_string_qd): Likewise.
31809 (mac_draw_string_common): Use them. Add INLINE.
31810 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
31811 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
31812 GetGlobalMouse.
31813 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
31814 and FRAME_OUTER_TO_INNER_DIFF_Y.
31815 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
31816 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
31817 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
31818 repositioning window to mac_handle_window_event.
31819 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
31820 saving window location to mac_handle_window_event
31821 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
31822 (install_menu_target_item_handler): Remove argument in extern.
31823 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
31824 Also accept command events.
31825 (do_keystroke): New function created from XTread_socket.
31826 (init_command_handler): Remove functions.
31827 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
31828 and save window location by kEventWindowShowing and kEventWindowHiding
31829 handlers here. Don't call next handler for window state change and
31830 focus events.
31831 (mac_handle_application_event, mac_handle_keyboard_event)
31832 [TARGET_API_MAC_CARBON]: New functions.
31833 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
31834 kEventWindowShowing and kEventWindowHiding events. Move installation
31835 of mouse, font, text input and menu target item handlers to
31836 install_application_handler.
31837 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
31838 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31839 New function.
31840 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
31841 Register it.
31842 (XTread_socket) [TARGET_API_MAC_CARBON]:
31843 Consolidate SendEventToEventTarget calls.
31844 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
31845 Move application activation handler to mac_handle_application_event.
31846 Move keyboard handler to mac_handle_keyboard_event.
31847 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
31848 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
31849 init_command_handler. Call install_application_handler.
31850
31851 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
31852 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
31853
318542007-06-07 Glenn Morris <rgm@gnu.org>
31855
31856 * emacs.c (main): Use `emacs-copyright' in --version output.
31857
318582007-06-06 Chong Yidong <cyd@stupidchicken.com>
31859
31860 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
31861
318622007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31863
31864 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
31865
31866 * macgui.h: Replace WindowPtr with WindowRef.
31867
31868 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31869 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31870 Replace ControlHandle with ControlRef.
31871 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
31872
31873 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
31874 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
31875 Replace ControlHandle with ControlRef.
31876 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
31877 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
31878
31879 * macterm.h (struct scroll_bar): Rename member control_handle_low
31880 and control_handle_high to control_ref_low and control_ref_high.
31881 All uses changed.
31882 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
31883 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
31884 respectively. All uses changed.
31885 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
31886 (install_window_handler, remove_window_handler): Replace WindowPtr
31887 with WindowRef in externs.
31888
318892007-06-05 Juanma Barranquero <lekktu@gmail.com>
31890
31891 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
31892
318932007-06-03 Nick Roberts <nickrob@snap.net.nz>
31894
31895 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
31896
31897 * frame.c (Fmouse_position, Fmouse_pixel_position):
31898 Condition on HAVE_GPM too.
31899
31900 * term.c (term_mouse_highlight): Remove unused variables.
31901 (Fterm_open_connection): Set gpm_zerobased to 1.
31902 (term_mouse_movement, term_mouse_click, handle_one_term_event):
31903 Use zero based co-ordinates.
31904 (handle_one_term_event): Report a drag as mouse movement too.
31905
31906 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
31907
319082007-06-03 Chong Yidong <cyd@stupidchicken.com>
31909
31910 * image.c (search_image_cache): New function. Require background
31911 color match if background color is unspecified in the image spec.
31912 (uncache_image, lookup_image): Use it.
31913
319142007-06-01 Juanma Barranquero <lekktu@gmail.com>
31915
31916 * window.c (Fshrink_window): Reflow docstring.
31917
319182007-06-02 Chong Yidong <cyd@stupidchicken.com>
31919
31920 * Version 22.1 released.
31921
319222007-06-01 Richard Stallman <rms@gnu.org>
31923
31924 * xfns.c (x_encode_text): Add GCPRO.
31925
319262007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31927
31928 * xfns.c (x_set_name_internal): Save encoded name before
31929 x_encode_text in case string data is relocated.
31930
319312007-05-31 Richard Stallman <rms@gnu.org>
31932
31933 * buffer.c (syms_of_buffer): Doc fix.
31934
319352007-05-30 Nick Roberts <nickrob@snap.net.nz>
31936
31937 * sysdep.c (init_sys_modes): Add rather than replace with
31938 O_NONBLOCK.
31939
31940 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
31941 term_mouse_moveto.
31942
31943 * termhooks.h (term_mouse_moveto): New extern.
31944
31945 * term.c (mouse_face_window): Rename...
31946 (Qmouse_face_window): ...to this.
31947 (term_show_mouse_face, term_clear_mouse_face)
31948 (term_mouse_highlight): Use Qmouse_face_window.
31949 (term_mouse_moveto): New function.
31950 (term_mouse_position): Make it work.
31951 (syms_of_term): Uncomment assignment to mouse_position_hook.
31952 Staticpro Qmouse_face_window.
31953
319542007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31955
31956 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
31957 around current_column call.
31958
319592007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
31960
31961 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
31962 * xdisp.c (next_element_from_buffer):
31963 * window.c (delete_window):
31964 * term.c (term_mouse_highlight):
31965 * msdos.c (getdefdir):
31966 * macterm.c (mac_create_bitmap_from_bitmap_data)
31967 (init_font_name_table):
31968 * fns.c (Fsxhash):
31969 * data.c (Fmake_local_variable):
31970 * ccl.c (ccl_driver): Likewise.
31971
319722007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
31973
31974 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
31975 Call mac_wakeup_from_rne on window size change.
31976
319772007-05-25 Chong Yidong <cyd@stupidchicken.com>
31978
31979 * image.c (uncache_image): Fix typo.
31980
319812007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
31982
31983 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
31984
319852007-05-22 Richard Stallman <rms@gnu.org>
31986
31987 * xterm.c (x_connection_closed): Remove NO_RETURN.
31988
319892007-05-22 Martin Rudalics <rudalics@gmx.at>
31990
31991 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
31992
319932007-05-21 Chong Yidong <cyd@stupidchicken.com>
31994
31995 * image.c (uncache_image): New function.
31996 (Fimage_refresh): New function.
31997
319982007-05-20 Jan Djärv <jan.h.d@swipnet.se>
31999
32000 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
32001
320022007-05-20 Nick Roberts <nickrob@snap.net.nz>
32003
32004 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
32005 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
32006
320072007-05-20 Nick Roberts <nickrob@snap.net.nz>
32008
32009 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
32010 conditional on [HAVE_GPM_H].
32011
320122007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
32013
32014 * syntax.c (skip_chars): Update syntax-table only after we checked that
32015 the new location is valid.
32016
320172007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32018
32019 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
32020 mac_get_window_bounds.
32021
320222007-05-20 Nick Roberts <nickrob@snap.net.nz>
32023
32024 * Makefile.in (LIBGPM): Allow it to be set from configure.
32025 If set then link Emacs with it.
32026
32027 * config.in: Regenerate.
32028
32029 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
32030 New externs.
32031
32032 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
32033 Include gpm.h.
32034 (handle_one_term_event, term_gpm): New externs.
32035
32036 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
32037 and allow it to be interrupted by SIGIO.
32038
32039 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
32040 (wait_reading_process_output): Wait on gpm_fd too.
32041 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
32042 (add_gpm_wait_descriptor_called_flag): New variable.
32043 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
32044
32045 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
32046 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
32047 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
32048 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
32049 (make_lispy_event): Add case GPM_CLICK_EVENT.
32050 (read_avail_input): Handle mouse input.
32051
32052 * term.c (write_glyphs_with_face): New function.
32053 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
32054 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
32055 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
32056 (mouse_face_face_id, term_gpm, pos_x, pos_y)
32057 (last_mouse_x, last_mouse_y): New variables.
32058 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
32059 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
32060 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
32061 (Fterm_close_connection): New functions.
32062 (term_init): Initialise mouse_face_window.
32063
320642007-05-19 Chong Yidong <cyd@stupidchicken.com>
32065
32066 * xdisp.c (redisplay_window): If first window line is a
32067 continuation line, recompute the new window start instead of
32068 recentering.
32069
320702007-05-18 Glenn Morris <rgm@gnu.org>
32071
32072 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
32073 Suggested by Alfred M. Szmidt <ams@gnu.org>.
32074
320752007-05-17 Glenn Morris <rgm@gnu.org>
32076
32077 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
32078
320792007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32080
32081 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
32082 dead key repeat and up events.
32083
320842007-05-14 Chong Yidong <cyd@stupidchicken.com>
32085
32086 * image.c (pbm_load): Check image size for monochrome pbm.
32087
320882007-05-13 Chong Yidong <cyd@stupidchicken.com>
32089
32090 * xterm.c (XTread_socket): Revert last change.
32091
320922007-05-12 Chong Yidong <cyd@stupidchicken.com>
32093
32094 * image.c (pbm_load): Correctly check image size for greyscale pbm.
32095
32096 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
32097
320982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32099
32100 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
32101 mixup (YAILOM).
32102
321032007-05-07 Andreas Schwab <schwab@suse.de>
32104
32105 * keymap.c (Flookup_key): Fix typo in last change.
32106
321072007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
32108
32109 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
32110 mapping for unibyte strings.
32111
321122007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32113
32114 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
32115 (Fx_popup_dialog) [MAC_OSX]: Likewise.
32116
321172007-04-29 Richard Stallman <rms@gnu.org>
32118
32119 * insdel.c (replace_range): For undo, record insertion first.
32120
321212007-04-29 Andreas Schwab <schwab@suse.de>
32122
32123 * lisp.h (VECSIZE): Use OFFSETOF.
32124
321252007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
32126
32127 * xdisp.c (try_window_reusing_current_matrix): Fix number of
32128 disabled lines.
32129
321302007-04-28 Richard Stallman <rms@gnu.org>
32131
32132 * lread.c (read_escape): In a string, \s is always space.
32133
321342007-04-27 Jan Djärv <jan.h.d@swipnet.se>
32135
32136 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
32137
32138 * gtkutil.c (xg_update_menubar, create_menus): Create empty
32139 submenu for menu bar items.
32140
32141See ChangeLog.10 for earlier changes.
32142
32143;; Local Variables:
32144;; coding: utf-8
aac0c6e3
MR
32145;; End:
32146
73b0cd50 32147 Copyright (C) 2007-2011 Free Software Foundation, Inc.
aac0c6e3
MR
32148
32149 This file is part of GNU Emacs.
32150
32151 GNU Emacs is free software: you can redistribute it and/or modify
32152 it under the terms of the GNU General Public License as published by
32153 the Free Software Foundation, either version 3 of the License, or
32154 (at your option) any later version.
32155
32156 GNU Emacs is distributed in the hope that it will be useful,
32157 but WITHOUT ANY WARRANTY; without even the implied warranty of
32158 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32159 GNU General Public License for more details.
32160
32161 You should have received a copy of the GNU General Public License
32162 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.