Fix macro definitions in last change to image.c
[bpt/emacs.git] / src / ChangeLog
CommitLineData
7f9c5df9
CY
12011-01-29 Chong Yidong <cyd@stupidchicken.com>
2
3 * image.c (fn_png_longjmp, fn_png_set_longjmp_fn): New png
4 function definitions for compiling with libpng-1.5.
5 (PNG_LONGJMP, PNG_JMPBUF): New macros for libpng-1.5.
6 (my_png_error, png_load): Use them. Suggested by Thomas Klausner
7 (Bug#7908).
8
46b3f2be
CY
92011-01-28 Chong Yidong <cyd@stupidchicken.com>
10
11 * m/intel386.h: Define NO_ARG_ARRAY. Suggested by Dan Nicolaescu.
12
37d1c45d
CY
132011-01-27 Chong Yidong <cyd@stupidchicken.com>
14
15 * font.c (font_parse_fcname): Require GTK-style font sizes to
16 occur at the end of the font string (Bug#7853).
17
ea08011c
CY
182011-01-26 Chong Yidong <cyd@stupidchicken.com>
19
20 * font.c (font_parse_fcname): Fix typo in string length.
21
f996bbcb
SM
222011-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
23
24 * xdisp.c (handle_fontified_prop): Be careful with font-lock changing
25 the buffer's point-max (bug#7876).
26
19634648
CY
272011-01-23 Chong Yidong <cyd@stupidchicken.com>
28
29 * lisp.h (XPNTR): Obey DATA_SEG_BITS in all non-USE_LSB_TAG cases.
30 Remove unused HAVE_SHM branch (Bug#6811).
31
6de1218f 322011-01-23 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
19634648 33
6de1218f
PG
34 * s/hpux11.h: Set CANNOT_DUMP on IA64 (Bug#6811).
35
e6b84b30
MR
362011-01-22 Martin Rudalics <rudalics@gmx.at>
37
38 * window.c (select_window): New function.
39 (Fselect_window): Call it.
40 (inhibit_point_swap): Variable deleted.
41 (Fset_window_configuration): Call select_window directly.
42
0514b4be
SM
432011-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
44
45 * image.c (syms_of_image): Don't access XSYMBOL's internals directly.
46
e7f50e8f
EZ
472011-01-16 Eli Zaretskii <eliz@gnu.org>
48
49 * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848)
50
6dc1d2d3
MR
512011-01-15 Martin Rudalics <rudalics@gmx.at>
52
53 * window.c (inhibit_point_swap): New variable.
54 (Fselect_window): If inhibit_point_swap is nonzero, avoid swapping
55 point this time.
56 (Fset_window_configuration): Set inhibit_point_swap to 1 instead
57 of setting selected_window to nil (Bug#7728).
58
70ba1ec8
CY
592011-01-12 Chong Yidong <cyd@stupidchicken.com>
60
61 * config.in (TERMINFO): New definition.
62
63 * s/netbsd.h: Use it to choose between terminfo and termcap
64 (Bug#7642).
65
0ad25444
JD
662011-01-03 Jan Djärv <jan.h.d@swipnet.se>
67
68 * coding.h (ENCODE_UTF_8): Remove "Used by ..." comment.
69
70 * nsfns.m (ns_set_name_iconic): Remove.
71 (ns_get_screen): Don't assign integer to f.
72 (ns_set_name_internal): New function (Bug#7517).
73 (Vicon_title_format): Extern declare.
74 (ns_set_name): Call ns_set_name_internal.
75 (x_explicitly_set_name): Remove call to ns_set_name_iconic.
76 (x_implicitly_set_name): Ditto.
77 (x_set_title): Remove commet about EXPLICIT. Call ns_set_name_internal.
78 (ns_set_name_as_filename): Encode name with ENCODE_UTF_8.
79 Always use buffer name for title and buffer filename only for
80 RepresentedFilename. Handle bad UTF-8 in buffer name (Bug#7517).
81
fb724e55
EZ
822011-01-03 Eli Zaretskii <eliz@gnu.org>
83
84 * image.c (png_jmpbuf): Remove definition.
85 (my_png_error, png_load): Don't use png_jmpbuf.
86
5be1c984
EZ
872010-12-31 Eli Zaretskii <eliz@gnu.org>
88
89 * image.c <Qlibpng_version>: New variable.
90 (syms_of_image): Intern and staticpro it. Set its value to the
91 version of PNG library we were compiled with.
92 (my_png_error, png_load): Avoid GCC warnings about direct access
93 to png_ptr->jmpbuf. (Bug#7716)
18da2e74
EZ
94 (png_jmpbuf): New macro.
95 (my_png_error, png_load): Use it instead of #ifdef'ing according
96 to PNG_LIBPNG_VER_MAJOR and PNG_LIBPNG_VER_MINOR.
5be1c984 97
cf07311b
SM
982010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
99
100 * .gdbinit (xgetptr): Fix the union+lsb case.
101 (xbacktrace): Fix the union case.
102
794b75c7
SM
1032010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
104
105 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
106 different from selected-window's.
107
2e4ab211
EZ
1082010-12-25 Eli Zaretskii <eliz@gnu.org>
109
71fe378d
EZ
110 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
111 equivalent of a menu item when the key sequence is given by the
112 `:keys' attribute. (Bug#7662)
113
2e4ab211
EZ
114 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
115 the basic faces are supported.
116
84595ff0
JD
1172010-12-24 Jan Djärv <jan.h.d@swipnet.se>
118
119 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
120
30d621a2
EZ
1212010-12-17 Eli Zaretskii <eliz@gnu.org>
122
123 * xdisp.c (Fformat_mode_line): Fix last change.
124
4bf3e46e
CY
1252010-12-16 Chong Yidong <cyd@stupidchicken.com>
126
127 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
128 faces (Bug#7587).
129
1b2a627f
EZ
1302010-12-13 Eli Zaretskii <eliz@gnu.org>
131
132 * fileio.c (Fexpand_file_name): One more doc fix.
133
15579471
EZ
1342010-12-12 Eli Zaretskii <eliz@gnu.org>
135
136 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
137
f0559026
EZ
1382010-12-11 Eli Zaretskii <eliz@gnu.org>
139
76feb864
EZ
140 * w32fns.c (Fx_show_tip): Call try_window with last argument
141 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
142 solved. Round up the tip height to an integral multiple of the
143 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
144 (Bug#7398)
145
f0559026
EZ
146 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
147 (face_before_or_after_it_pos, next_element_from_string)
148 (next_element_from_c_string, produce_stretch_glyph): Remove unused
149 calculations of maximum string length before calling
150 string_char_and_length and STRING_CHAR_AND_LENGTH.
151 (string_char_and_length): Update commentary: MAXLEN is no longer
152 needed.
153
0b9fc69a
JD
1542010-12-10 Jan Djärv <jan.h.d@swipnet.se>
155
156 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
157 as (Qsave_session arg).
158
159 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
160 (smc_die_CB): Make an event with arg Qt.
161 (Fhandle_save_session): If event has Qt as argument,
162 call Fkill_emacs (Bug#7552).
163
2b815743
JD
1642010-12-07 Jan Djärv <jan.h.d@swipnet.se>
165
166 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
167
d8b2a962
CY
1682010-12-06 Chong Yidong <cyd@stupidchicken.com>
169
170 * dispextern.h (struct it): New member overlay_strings_charpos.
171
172 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
173 charpos where we computed n_overlay_strings.
174 (next_overlay_string): Load overlay strings at recorded position,
175 which may not be the same as the iterator's charpos (Bug#7016).
176
a56d164e
JD
1772010-12-05 Jan Djärv <jan.h.d@swipnet.se>
178
179 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
180 with cursor color and draw a rectangle around the image (Bug#7412).
181
77f1ed6c
CY
1822010-12-05 Chong Yidong <cyd@stupidchicken.com>
183
184 * xdisp.c (try_scrolling): Avoid infloop if the first line is
185 obscured due to a vscroll (Bug#7537).
186
2a91a0b5
JD
1872010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
188
189 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
190
191 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
192 Use FRAME_TOOLBAR_HEIGHT.
193 (x_set_offset): Handle XNegative and YNegative in
194 f->size_hint_flags (Bug#7510).
195
b84ae584
KH
1962010-11-25 Kenichi Handa <handa@m17n.org>
197
198 * charset.c (emacs_mule_charset): Make it an array of charset ID;
199 i.e. integer.
200 (Fdefine_charset_internal): Adjusted for the above change.
201 (init_charset_once): Likewise.
202
203 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
204 duplicated extern.
205
206 * coding.c (emacs_mule_char): Adjust for the change of
207 emacs_mule_charset.
208
209 * lread.c (read_emacs_mule_char): Adjust for the change of
210 emacs_mule_charset.
211
b8e5cf1d
EZ
2122010-11-22 Eli Zaretskii <eliz@gnu.org>
213
214 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
215 of w32api >= 3.15. (Bug#6989) (Bug#7452)
216
96ad0af7
YM
2172010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
218
219 * alloc.c (mark_terminals): Ensure that the image cache is marked
220 even if the terminal object was marked earlier (Bug#6301).
221
35f1de62
CY
2222010-11-21 Chong Yidong <cyd@stupidchicken.com>
223
224 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
225
8d7f026f
JD
2262010-11-20 Jan Djärv <jan.h.d@swipnet.se>
227
228 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
229 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
230 Use 23 as menubar height if 0. (Bug#7425).
231
37de8fd0
J
2322010-11-14 Jan Djärv <jan.h.d@swipnet.se>
233
234 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
235
236 * config.in (HAVE_G_TYPE_INIT): New symbol.
237
c7926fe2
EZ
2382010-11-12 Eli Zaretskii <eliz@gnu.org>
239
240 * lread.c (Fload): Mention `load-in-progress' and
241 `load-file-name'. (Bug#7346)
242
c0098065
EZ
2432010-11-09 Eli Zaretskii <eliz@gnu.org>
244
86520d8c
EZ
245 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
246 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
247 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
248 subprocesses. Use buffer_free only ifdef subprocesses.
249
250 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
251 the subprocesses version, not in the non-subprocesses one.
252
794a4b6d
EZ
253 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
254
c0098065
EZ
255 * xfns.c (x_real_positions): Fix declaration-after-statement
256 problem.
257
be3faa80
CY
2582010-11-05 Chong Yidong <cyd@stupidchicken.com>
259
260 * image.c (free_image): Don't garbage the frame here, since this
261 function can be called while redisplaying (Bug#7210).
262 (uncache_image): Garbage the frame here (Bug#6426).
263
055c91d4 2642010-11-04 Chong Yidong <cyd@stupidchicken.com>
184765cc
CY
265
266 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
267 Windows.
268
055c91d4 2692010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
bd80a886
YM
270
271 * process.c (Fmake_network_process): Don't call turn_on_atimers around
272 `connect' (Bug#5723).
273
055c91d4 2742010-11-04 Helmut Eller <eller.helmut@gmail.com>
c2e124a9
HE
275
276 * process.c (Fmake_network_process): Call `select' for interrupted
277 `connect' rather than creating new socket (Bug#5173).
278
68ae6cda
KH
2792010-11-04 Kenichi Handa <handa@m17n.org>
280
281 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
282 Don't sheck SPEC if it is nil.
283 (font_list_entities): Call font_delete_unmatched if
284 Vface_ignored_fonts is non-nil.
285
db5cada2 2862010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
fa884f18 287
2511e8e0
CY
288 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
289 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
290
291 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
292 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
293 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
294 TRY_WINDOW_CHECK_MARGINS.
295
296 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
297 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
fa884f18 298
d75c9992
JD
2992010-11-04 Jan Djärv <jan.h.d@swipnet.se>
300
31887d45
JD
301 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
302 parent is the root window. Check this after traversing window tree.
303
d75c9992
JD
304 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
305
306 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
307
308 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
309 before traversing window tree (Bug#5721).
310
754996bc
GM
3112010-11-03 Glenn Morris <rgm@gnu.org>
312
313 * Makefile.in (CRT_DIR): New variable, set by configure.
314 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
315 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
316
3649d303
JD
3172010-11-01 Jan Djärv <jan.h.d@swipnet.se>
318
319 * process.c (kbd_is_on_hold): New variable.
320 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
321 New functions.
322 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
323 select on empty input mask.
324 (init_process): Initialize kbd_is_on_hold to 0.
325
326 * process.h (hold_keyboard_input, unhold_keyboard_input)
327 (kbd_on_hold_p): Declare.
328
329 * keyboard.c (input_available_signal): Declare.
330 (kbd_buffer_nr_stored): New function.
331 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
332 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
333 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
334 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
335 (tty_read_avail_input): If input is on hold, return.
336 Don't read more that free slots in kbd_buffer (Bug#6571).
337
46eadc7a
CY
3382010-10-31 Chong Yidong <cyd@stupidchicken.com>
339
340 * xterm.c (x_connection_closed): Print informative error message
341 when aborting on GTK. This requires using shut_down_emacs
342 directly instead of Fkill_emacs.
343
655441b2
MA
3442010-10-25 Michael Albinus <michael.albinus@gmx.de>
345
346 * dbusbind.c (Fdbus_call_method_asynchronously)
347 (Fdbus_register_signal, Fdbus_register_method): Check, whether
348 `dbus-registered-objects-table' is initialized.
349
23c261f5
CY
3502010-10-24 Chong Yidong <cyd@stupidchicken.com>
351
352 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
353
89baa1df
EZ
3542010-10-22 Eli Zaretskii <eliz@gnu.org>
355
356 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
357
358 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
359 Deprecate use as a boolean flag.
360
5419963b
KB
3612010-10-18 Ken Brown <kbrown@cornell.edu>
362
363 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
364
31daa5e1
KH
3652010-10-15 Kenichi Handa <handa@m17n.org>
366
367 Fix incorrect font metrics when the same font is opened with
368 different pixelsizes.
369
370 * xftfont.c: Include composite.h.
371 (xftfont_shape): New function.
372 (syms_of_xftfont): Set xftfont_driver.shape.
373
9fa82824
DP
3742010-10-13 Damyan Pepper <damyanp@gmail.com>
375
376 Fix handling of font properties on Windows (bug#6303).
377 * font.c (font_filter_properties): New function, refactored from
378 ftfont_filter_properties.
379 * font.h (font_filter_properties): Declare.
380 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
381 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
382 (w32font_filter_properties): New function.
383 (w32font_driver): Add w32font_filter_properties.
384
51e4f4a8
JB
3852010-10-12 Juanma Barranquero <lekktu@gmail.com>
386
c0943d3d 387 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
388 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
389
a2e35ef5
JD
3902010-10-10 Jan Djärv <jan.h.d@swipnet.se>
391
392 * nsterm.m (Qleft): Declare.
393 (ns_right_alternate_modifier): New variable
394 (NSRightAlternateKeyMask): New define.
395 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
396 ns_right_alternate_modifier isn't Qleft.
397 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
398 as emacs modifier for NSRightAlternateKeyMask.
399 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
400
2e828c79
MA
4012010-10-08 Michael Albinus <michael.albinus@gmx.de>
402
403 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
404 (xd_pending_messages): Catch xd_get_dispatch_status calls.
405
93d50df8
KH
4062010-10-08 Kenichi Handa <handa@m17n.org>
407
2b7c9342 408 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 409
a79b0f28
MA
4102010-10-03 Michael Albinus <michael.albinus@gmx.de>
411
412 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
413 (Fdbus_init_bus): ... here. (Bug#7113)
414
7b2bf907
GM
4152010-10-03 Glenn Morris <rgm@gnu.org>
416
417 * buffer.c (before-change-functions, after-change-functions):
418 Three-year overdue doc fix following 2007-08-13 change.
419
1911a33b
KH
4202010-10-02 Kenichi Handa <handa@m17n.org>
421
422 * coding.c (coding_inherit_eol_type): If parent doesn't specify
423 eol-format, inherit from the system's default.
424 (complement_process_encoding_system): Make a new coding system
425 inherit the original eol-format.
426
fcaf8878
KH
4272010-09-30 Kenichi Handa <handa@m17n.org>
428
429 * coding.c (complement_process_encoding_system): New function.
430
431 * coding.h (complement_process_encoding_system): Extern it.
432
433 * callproc.c (Fcall_process): Complement the coding system for
434 encoding arguments.
435 (Fcall_process_region): Complement the coding system for encoding
436 the input to the process.
437
438 * process.c (Fstart_process): Complement the coding system for
439 encoding arguments.
440 (send_process): Complement the coding system for encoding what
441 sent to the process.
442
18acb5ad
KH
4432010-09-29 Kenichi Handa <handa@m17n.org>
444
445 * xfont.c (xfont_open): Fix setting of font->average_width from
446 :avgwidth property (Bug#7123).
447
dec83468
MA
4482010-09-28 Michael Albinus <michael.albinus@gmx.de>
449
450 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
451 is more portable.
452
453 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
454 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
455 has not defined SIGIO.
456
e0720500
MA
4572010-09-27 Michael Albinus <michael.albinus@gmx.de>
458
11a5af7c 459 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
460 (Bug#7113)
461
42d3022b
J
4622010-09-26 Jan Djärv <jan.h.d@swipnet.se>
463
464 * xgselect.c (xg_select): Clear file descriptors not set from
465 rfds and wfds.
466
fbb3da77
SM
4672010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
468
469 * syntax.c (back_comment): Detect the case where a 1-char comment
470 starter is also the 2nd char of a 2-char comment ender.
471
2b5b82db
J
4722010-09-17 Jan Djärv <jan.h.d@swipnet.se>
473
474 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
475
5f61a25c
J
4762010-09-12 Jan Djärv <jan.h.d@swipnet.se>
477
478 * xterm.c (get_current_vm_state): New function.
479 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
480 want_fullscreen so set_wm_state calls are few (Bug#7013).
481 (x_handle_net_wm_state): Move code to get_current_vm_state and
482 call that function.
483
65c92e31 4842010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
485
486 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
487
a552b35a
KH
4882010-09-08 Kenichi Handa <handa@m17n.org>
489
490 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
491 we may use designation or locking-shift.
492
396475b7
KH
4932010-09-07 Kenichi Handa <handa@m17n.org>
494
495 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
496 sequence when the source is multibyte.
497
d419e1d9
KH
4982010-08-31 Kenichi Handa <handa@m17n.org>
499
500 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
501 characters.
502
503 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
504 (produce_glyphs): Don't set it->char_to_display here.
505 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
506 (produce_special_glyphs): Set temp_it.char_to_display before
507 calling produce_glyphs.
508
509 * xdisp.c (get_next_display_element): Set it->char_to_display
510 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
511 characters.
512 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
513 calling PRODUCE_GLYPHS.
514 (append_space_for_newline): Save and store it->char_to_display.
515 Set it->char_to_display before calling PRODUCE_GLYPHS.
516 (extend_face_to_end_of_line): Set it->char_to_display before
517 calling PRODUCE_GLYPHS.
518 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
519 character to its byte value.
520 (get_char_glyph_code): New function.
521 (produce_stretch_glyph): Set it2.char_to_display too before
522 calling x_produce_glyphs.
523 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
524 non-ASCII characters. Don't set it->char_to_display here.
525 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 526 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 527
769ae9e1
KH
5282010-08-29 Kenichi Handa <handa@m17n.org>
529
530 * term.c (encode_terminal_code): Encode byte chars to the
531 correspnding bytes.
532
b72e0717
AS
5332010-08-17 Andreas Schwab <schwab@linux-m68k.org>
534
535 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
536 instead of SAFE_ALLOCA.
537
3a7a9129
CY
5382010-08-17 Chong Yidong <cyd@stupidchicken.com>
539
540 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
541 (Bug#6214).
542
983b8302
J
5432010-08-14 Jan Djärv <jan.h.d@swipnet.se>
544
545 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
546
7d1b9df3
J
5472010-08-13 Jan Djärv <jan.h.d@swipnet.se>
548
549 * doc.c (Fsnarf_documentation): Initialize skip_file before
550 build-files test.
551
2294b255
PG
5522010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
553
65b3d997
A
554 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
555 New definitions.
2294b255
PG
556 (HAVE_TERMIO): Remove.
557
7a84eee5
KH
5582010-08-06 Kenichi Handa <handa@m17n.org>
559
560 * charset.c: Include <stdlib.h>
561 (struct charset_sort_data): New struct.
562 (charset_compare): New function.
c0943d3d 563 (Fsort_charsets): New function.
7a84eee5
KH
564 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
565
566 * coding.c (decode_coding_iso_2022): Fix checking of dimension
567 number in CTEXT extended segment.
568
f5f6c0e0
JB
5692010-08-01 Juanma Barranquero <lekktu@gmail.com>
570
571 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
572 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
573
b756c005
JB
5742010-07-30 Juanma Barranquero <lekktu@gmail.com>
575
576 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
577 (Fhash_table_size): Fix typos in docstrings.
578 (Fmake_hash_table): Doc fix.
579
b4f588fa
JB
5802010-07-28 Juanma Barranquero <lekktu@gmail.com>
581
582 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
583 Doc fix (bug#5625).
584
9f8c08a7
KB
5852010-07-27 Ken Brown <kbrown@cornell.edu>
586
587 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
588 the MSDOS definition.
589
a2a0d36b
CS
5902010-07-25 Christoph Scholtes <cschol2112@gmail.com>
591
592 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
593
a77cfeaf
CS
5942010-07-22 Christoph Scholtes <cschol2112@gmail.com>
595
596 * window.c (Fwindow_height): Doc fix (bug#6518).
597
14fb5704
JB
5982010-07-21 Juanma Barranquero <lekktu@gmail.com>
599
600 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
601
499322ce
J
6022010-07-17 Jan Djärv <jan.h.d@swipnet.se>
603
604 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
605 is related to the menu bar (Bug#6499).
606
b78f9767
J
6072010-07-14 Jan Djärv <jan.h.d@swipnet.se>
608
609 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
610
611 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
612
613 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
614 i.e. don't put back ButtonRelease (Bug#6608).
615
616 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
617 instead of Window. Call xg_event_is_for_menubar when
618 USE_GTK (Bug#6499).
619
620 * gtkutil.h (xg_event_is_for_menubar): Declare.
621
622 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
623
1f60c16a
EZ
6242010-07-14 Eli Zaretskii <eliz@gnu.org>
625
626 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
627 when it's the same as the old foreground. (Bug#6609)
628
7c33a057
CY
6292010-07-10 Chong Yidong <cyd@stupidchicken.com>
630
631 * xfaces.c (realize_face): Garbage the frame if a face is removed
632 (Bug#6593).
633
9d70a3fc
AS
6342010-07-05 Andreas Schwab <schwab@linux-m68k.org>
635
636 * keyboard.c: Remove duplicate <setjmp.h>.
637 (read_key_sequence): Remove volatile qualifiers.
638
5a874e95
YM
6392010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
640
641 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
642 (struct glyph_row): New members left_fringe_offset and
643 right_fringe_offset.
644
645 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
646 specially.
647 * w32term.c (w32_draw_fringe_bitmap): Likewise.
648 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
649
650 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
651 Take account of bitmap offset.
652 (draw_window_fringes): Take account of window vscroll.
653 (update_window_fringes): Likewise. Extend top-aligned top indicator
654 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
655 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
656 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
657
0682186e
JB
6582010-07-04 Juanma Barranquero <lekktu@gmail.com>
659
660 * w32fns.c (Qtooltip): Declare.
661 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
662
ad3e6f44
J
6632010-07-03 Jan Djärv <jan.h.d@swipnet.se>
664
665 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
666 grab on just Press (Bug#6499).
667
54ee7410
CY
6682010-07-02 Chong Yidong <cyd@stupidchicken.com>
669
670 * frame.c (Qtooltip): New var.
671 (delete_frame): Use it. Fix faulty if statement. Don't update
672 mode line for tooltip frames. Suggested by Martin Rudalics.
673
674 * xfns.c (x_create_tip_frame):
675 * w32fns.c (x_create_tip_frame): Use it.
676
3d8416fc
NA
6772010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
678
679 * xftfont.c (xftfont_open): Check font width one by one also when
680 spacing is dual.
681
682 * ftfont.c (ftfont_open): Ditto.
683
b1feb9b4
AS
6842010-06-26 Andreas Schwab <schwab@linux-m68k.org>
685
686 * alloc.c (Fmake_byte_code): Don't access undefined argument
687 (Bug#6517).
688
c7dd9743
CY
6892010-06-25 Chong Yidong <cyd@stupidchicken.com>
690
691 * xdisp.c (next_element_from_image): Ensure that after-strings are
692 read the next time we hit handle_stop (Bug#1336).
693
5721b4ed
AS
6942010-06-23 Andreas Schwab <schwab@linux-m68k.org>
695
696 * lread.c (read1): Signal error if #s is not followed by paren.
697
277c5f18
CY
6982010-06-19 Chong Yidong <cyd@stupidchicken.com>
699
52ab9bb2
CY
700 * image.c (free_image): Mark frame as garbaged (Bug#6426).
701
277c5f18
CY
702 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
703
6fda6a0c
GM
7042010-06-15 Glenn Morris <rgm@gnu.org>
705
706 * editfns.c (Fbyte_to_string): Pacify compiler.
707
e454a4a3
SM
7082010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
709
710 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
711 Check `object's type before accessing its guts.
712
657d4c0b
AS
7132010-06-08 Andreas Schwab <schwab@linux-m68k.org>
714
715 * minibuf.c (Fall_completions): Add more checks.
716
9b27fd9f
JB
7172010-06-08 Juanma Barranquero <lekktu@gmail.com>
718
719 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
720
0eb7675e
AS
7212010-06-03 Andreas Schwab <schwab@linux-m68k.org>
722
723 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 724 address. (Bug#6346)
0eb7675e 725
78edd3b7
JB
7262010-06-03 Juanma Barranquero <lekktu@gmail.com>
727
728 * ccl.c (Fccl_program_p): Fix typo in docstring.
729
1ab8293c
SM
7302010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
731
732 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
733 of bug#6305).
734
5ca3929b
CY
7352010-05-27 Chong Yidong <cyd@stupidchicken.com>
736
737 * xdisp.c (redisplay_window): After redisplay, check if point is
738 still valid before setting it (Bug#6177).
739
f5b416d2 7402010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
741
742 * s/netbsd.h: If terminfo is found, use it in preference to
743 termcap. (Bug#6190) [Backport from trunk]
744
aeb77d46
CY
7452010-05-20 Kevin Ryde <user42@zip.com.au>
746
747 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
748 (Voverriding_terminal_local_map, Vsystem_key_alist)
749 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
750
c3bb441d
SM
7512010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
752
753 * editfns.c (Fbyte_to_string): New function.
754
754790b6
CY
7552010-05-18 Chong Yidong <cyd@stupidchicken.com>
756
757 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
758 prevent stack overflow if number of arguments is too large
759 (Bug#6214).
760
c8670ded
EZ
7612010-05-11 Eli Zaretskii <eliz@gnu.org>
762
763 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
764
765 * w32fns.c: Include w32.h.
766 (Fw32_shell_execute): Decode the error message before passing it
767 to `error'. (Bug#6126)
768
3ffd4615 7692010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
770
771 * ftfont.c: Fix incorrect parentheses of #if condition for
772 definining M17N_FLT_USE_NEW_FEATURE.
773
61a808e8
CY
7742010-05-07 Chong Yidong <cyd@stupidchicken.com>
775
776 * Version 23.2 released.
777
5dcde606
AS
7782010-04-30 Andreas Schwab <schwab@linux-m68k.org>
779
780 * composite.c (autocmp_chars): Save point as marker before calling
781 auto-composition-function (Bug#5984).
782
783 * lisp.h (restore_point_unwind): Add prototype.
784
785 * fileio.c (restore_point_unwind): Remove static attribute.
786
c4170e32
KH
7872010-04-23 Kenichi Handa <handa@m17n.org>
788
789 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
790 new feature of libotf and m17n-flt.
65b3d997
A
791 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
792 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
793 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
794 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
795 that OUT is NULL. Use OTF_drive_gsub_with_log and
796 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
797 OTF_drive_gpos.
798 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
799 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
800 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 801
e42cd1a7
JB
8022010-04-19 Juanma Barranquero <lekktu@gmail.com>
803
804 * dired.c (Ffile_attributes): Fix typo in docstring.
805
79353a53
AR
8062010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
807
808 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
809 NSInteger (Bug#5811).
810
658b9b93
YM
8112010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
812
813 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
814 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
815
16009a0e
YM
8162010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
817
818 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
819
f016f225
JD
8202010-04-07 Jan Djärv <jan.h.d@swipnet.se>
821
822 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
823 FRAME_LINE_TO_PIXEL_Y.
824
825 * xterm.c (x_set_window_size_1): Don't add border_width/height to
826 pixelwidth/height.
827
84257d93
CY
8282010-04-05 Chong Yidong <cyd@stupidchicken.com>
829
830 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
831 terminal frames (Bug#5837).
832
95b1abcf
CY
8332010-03-31 Chong Yidong <cyd@stupidchicken.com>
834
835 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
836 * nsterm.h: Fix prototype.
837
4a217bed
EZ
8382010-03-31 Eli Zaretskii <eliz@gnu.org>
839
840 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
841 in this function. (Bug#5703)
842
4f103e04
CY
8432010-03-31 Chong Yidong <cyd@stupidchicken.com>
844
845 * nsterm.h: Fix last change.
846
a6d676d9
CY
8472010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
848
849 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
850
67fee863
JD
8512010-03-30 Jan Djärv <jan.h.d@swipnet.se>
852
853 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
854 invisible (Bug#5766).
855
9ae6e189
CY
8562010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
857
858 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
859 HAVE_NS conditionals.
194d44e7 860 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
861
862 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
863 filename for the title.
864 (ns_set_doc_edited): Do nothing if the selected window is a
865 minibuffer window.
866
867 * nsterm.h: Add prototypes for ns_set_name_as_filename and
868 ns_set_doc_edited.
869
870 * nsterm.m: Remove unneeded prototype.
871
25c72475
GM
8722010-03-28 Glenn Morris <rgm@gnu.org>
873
874 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
875 in the DOC file. (Bug#5336)
876
f79a01db
CY
8772010-03-24 Chong Yidong <cyd@stupidchicken.com>
878
879 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
880
93318cbd
JD
8812010-03-20 Jan Djärv <jan.h.d@swipnet.se>
882
883 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
884
885 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
886
887 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
888
ad13a3ee
YM
8892010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
890
891 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
892 XLoadQueryFont.
893
fbdc1721
KH
8942010-03-16 Kenichi Handa <handa@m17n.org>
895
896 * coding.c (decode_coding_ccl): Fix previous change for the
897 multibyte case.
fb608df3
KH
898 (encode_coding_ccl): Don't setup ccl program here. Fix for the
899 case that the output buffer is fullfilled.
900 (encode_coding): Setup ccl program here.
fbdc1721 901
35cd7cd6
CY
9022010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
903
904 * editfns.c (Fformat): Account for string precision when computing
905 field width (Bug#5710).
906
618db430
SM
9072010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
908
c0335e02
SM
909 Make it possible to C-g in a tight bytecode loop again (bug#5680).
910 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
911 (QUIT): Use it to consolidate code and remove redundancy.
912 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
913
254c06a8
SM
914 * regex.c (regex_compile): Setup gl_state as well.
915
618db430
SM
916 * syntax.c (skip_chars): Setup gl_state (bug#3823).
917 (in_classes): Use CONSP before XCAR/XCDR.
918
233f0c9f
CY
9192010-03-03 Chong Yidong <cyd@stupidchicken.com>
920
921 * keymap.c (Fwhere_is_internal): Use Fequal to compare
922 definitions, so that keyboard macros are correctly handled
923 (Bug#5481).
924
75f80e63
EZ
9252010-03-02 Eli Zaretskii <eliz@gnu.org>
926
927 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
928 text that could be relocated inside the call to emacs_mule_char.
929 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
930 (CODING_DECODE_CHAR): Add a comment describing its purpose.
931
dcfb9bc4
KH
9322010-03-02 Kenichi Handa <handa@m17n.org>
933
fc9a17bc
KH
934 * character.c (parse_str_as_multibyte): Fix handling of the
935 multibyte form of raw-bytes.
936 (str_as_multibyte): Likewise.
937
dcfb9bc4
KH
938 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
939 form of raw-bytes.
940
412c01b6
CY
9412010-02-28 Chong Yidong <cyd@stupidchicken.com>
942
943 * charset.c (load_charset_map_from_file)
944 (load_charset_map_from_vector): Zero out allocated
945 charset_map_entries before using them.
946
df7e1ea0
AS
9472010-02-27 Andreas Schwab <schwab@linux-m68k.org>
948
949 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
950
fe69a722
CY
9512010-02-27 Chong Yidong <cyd@stupidchicken.com>
952
4ed28cf4
CY
953 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
954 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 955
7379cfce
KH
9562010-02-26 Kenichi Handa <handa@m17n.org>
957
f88cc4d6
KH
958 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
959
7379cfce
KH
960 * xdisp.c (reseat_to_string): Fix previous change.
961
cf2fdcfb
CY
9622010-02-26 David Reitter <david.reitter@gmail.com>
963
964 * nsfont.m (nsfont_draw): ns_antialias_text should be a
965 Lisp_Object (Bug#4736).
966
cc6c7c75
KH
9672010-02-25 Kenichi Handa <handa@m17n.org>
968
969 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
970
32e737d7
JD
9712010-02-24 Jan Djärv <jan.h.d@swipnet.se>
972
973 * xterm.c (XTflash): Move declarations before statements.
974
975 * gtkutil.c (xg_get_gdk_display): Remove (unused).
976 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
977 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
978 (xg_create_tool_bar): Remove unused variables.
979 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 980 (xg_create_frame_widgets): Remove variable grav.
32e737d7 981
676cae9f
CY
9822010-02-21 Chong Yidong <cyd@stupidchicken.com>
983
984 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
985
886cc2b8
SM
9862010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
987
988 * term.c (fatal): Add a final \n if needed (bug#5596).
989
ddb2d8e2
CY
9902010-02-18 Chong Yidong <cyd@stupidchicken.com>
991
992 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
993
2a4f8d3d
GM
9942010-02-18 Glenn Morris <rgm@gnu.org>
995
996 * callint.c (Finteractive): Doc fix.
997
ebaf11b6
KH
9982010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
999
886cc2b8
SM
1000 * coding.c (record_conversion_result):
1001 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
1002 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
1003 memory allocation error.
1004
d0396581
KH
10052010-02-17 Kenichi Handa <handa@m17n.org>
1006
886cc2b8
SM
1007 * coding.c (decode_coding_ccl): Don't setup ccl program here.
1008 Fix for the case that the output buffer is fullfilled.
d0396581
KH
1009 (decode_coding): Setup ccl program here. Keep looping when the
1010 decoder stopped because the output buffer is
1011 fullfilled (bug#5534).
1012
1013 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
1014
98599f74
JD
10152010-02-13 Jan Djärv <jan.h.d@swipnet.se>
1016
471e4f04 1017 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 1018 bug #5571.
886cc2b8 1019 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 1020 overdrawn.
98599f74 1021
182659ae
JD
10222010-02-10 Jan Djärv <jan.h.d@swipnet.se>
1023
1024 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
1025 doing_interact here.
1026 (ice_connection_closed): New function.
1027 (x_session_check_input, smc_die_CB, ice_io_error_handler)
1028 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
1029 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
1030 returns I/O error.
1031 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
1032 bug #5512.
1033
9be32c4e 10342010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
1035
1036 * nsfont.m (nsfont_open): The system's value for the font descent
1037 is negative, so round it down to avoid clipping.
1038
a2f3eb19
CY
10392010-02-06 Chong Yidong <cyd@stupidchicken.com>
1040
1041 * charset.c (load_charset_map_from_file)
1042 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 1043 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 1044
3088147c
CY
10452010-02-05 Chong Yidong <cyd@stupidchicken.com>
1046
1047 * charset.c (load_charset_map_from_file): Allocate large
1048 charset_map_entries structure on the heap rather than the stack.
1049 (Bug#5526).
1050
b57d9029
KH
10512010-01-31 Kenichi Handa <handa@m17n.org>
1052
1053 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 1054 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 1055
c67d885b
CY
10562010-01-31 Chong Yidong <cyd@stupidchicken.com>
1057
1058 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
1059 <deactivated@gmail.com> (Bug#3605).
1060
8fab2362
CY
10612010-01-31 David De La Harpe Golden <david@harpegolden.net>
1062
1063 * fileio.c (Frename_file): Correctly rename symlinks to
1064 directories (Bug#5496).
1065
cb2a62f2
CY
10662010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
1067
1068 * nsterm.m (ns_ring_bell): Handle visible bell like X.
1069
944c7a26
AS
10702010-01-30 Andreas Schwab <schwab@linux-m68k.org>
1071
1072 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
1073
c024ac08
CY
10742010-01-29 Chong Yidong <cyd@stupidchicken.com>
1075
1076 * frame.c (DEFAULT_ROWS): Change default to 35.
1077
1078 * xfns.c (x_default_font_parameter): Change default XFT font to
1079 monospace-10 (Bug#3643).
1080
af93af83
EZ
10812010-01-29 Eli Zaretskii <eliz@gnu.org>
1082
1083 * w32inevt.c (key_event): Remove unnecessary comparison of
1084 event->uChar.AsciiChar with 128.
1085
ca0eb708
CY
10862010-01-28 Chong Yidong <cyd@stupidchicken.com>
1087
b242dbfc
CY
1088 * fileio.c (Frename_file): Fix last change (Bug#5487).
1089
ca0eb708
CY
1090 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1091
1092 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1093
45d45af5
JD
10942010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1095
1096 * xfns.c (Fx_create_frame): Remove window size matching code from
1097 2010-01-15.
a73f9c9d 1098 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 1099
7e233730
JR
11002010-01-27 Jason Rumney <jasonr@gnu.org>
1101
1102 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1103 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1104
86e893e3
KH
11052010-01-27 Kenichi Handa <handa@m17n.org>
1106
1107 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1108 pattern string (Bug#4209).
86e893e3 1109
8719abec
CY
11102010-01-27 David De La Harpe Golden <david@harpegolden.net>
1111
1112 * fileio.c (Frename_file): Call copy-directory and
1113 delete-directory for directories, in order to handle cross-device
1114 renaming (Bug#3353).
1115
844794c8
JD
11162010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1117
aa3e13b5 1118 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1119 sizes 24 and 10. Bug #3643.
844794c8 1120
bd4b5750
SM
11212010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1122
8dc1adf6 1123 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1124 * keymap.c (shadow_lookup): Add `remap' arg.
1125 (describe_map, describe_vector): Update calls to shadow_lookup.
1126 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1127 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1128 perform remapping during shadow_lookup check of remapped_sequences.
1129
285d07e2
CY
11302010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1131
1132 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1133 png_check_sig, which has been removed in libpng 1.4.
1134
c6d09b8d
CY
11352010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1136
1137 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1138 lacks this header file).
1139
3d782998
YM
11402010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1141
1142 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1143 as in Emacs 22.
1144
2aff7c53
YM
11452010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1146
1147 * lisp.h (make_pure_string): String pointer arg now points to const.
1148
1149 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1150 args now point to const.
1151
74327f7a
EZ
11522010-01-22 Eli Zaretskii <eliz@gnu.org>
1153
1154 * lread.c (Fload): Don't treat files without .elc extension as
1155 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1156 them. (bug#5303)
1157
4d1e6632
KH
11582010-01-20 Kenichi Handa <handa@m17n.org>
1159
1160 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1161 treat the source as actual byte sequence.
1162
1fdede8f
AM
11632010-01-19 Alan Mackenzie <acm@muc.de>
1164
1165 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1166 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1167 `signal_after_change_p' to `coherent_change_p', and make the
1168 invocation of `modify_region' conditional on it.
1169
67477f30
JD
11702010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1171
1172 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1173 for debug purpose.
1174 (syms_of_xsettings): Declare xft-settings.
1175
244b023e
CY
11762010-01-18 Chong Yidong <cyd@stupidchicken.com>
1177
1178 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1179
617364fe
CY
11802010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1181
1182 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1183
4fe22cdf
CY
11842010-01-16 Chong Yidong <cyd@stupidchicken.com>
1185
1186 * emacs.c (standard_args): Adjust arg priorities to reflect how
1187 they are processed in startup.el.
1188
e118d2be
AS
11892010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1190
1191 * Makefile.in (lisp, shortlisp): Update.
1192
523ae620
SM
11932010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1194
1195 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1196 code, link the new kboard into all_kboard before running Lisp code,
1197 and protect the new terminal with GCPRO (Bug#5365).
1198 (x_term_init): Remove unused var `atom'.
1199 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1200
f0d13888
JD
12012010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1202
1203 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1204 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1205 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1206 this. Bug #3643.
f0d13888 1207
cc320f07
KH
12082010-01-15 Kenichi Handa <handa@m17n.org>
1209
1210 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1211
7ffdf101
CY
12122010-01-15 Chong Yidong <cyd@stupidchicken.com>
1213
1214 * nsterm.m (Qnone): Define.
1215
1216 * nsfns.m (Qnone): Move definition to nsterm.m.
1217
d12bd917
KH
12182010-01-14 Kenichi Handa <handa@m17n.org>
1219
1220 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1221 systems.
1222
d9a7c140
KH
12232010-01-14 Kenichi Handa <handa@m17n.org>
1224
1225 Make auto-composition work on all buffers even if they are
1226 fundamental mode.
1227
1228 * composite.c (Vauto_composition_mode): New variable.
1229 (composition_compute_stop_pos): Check Vauto_composition_mode
1230 instead of Vauto_composition_function.
1231 (composition_adjust_point, Ffind_composition_internal): Likewise.
1232 (syms_of_composite): Declare Lisp variable
1233 "auto-composition-mode" here.
1234
63286bb2
CY
12352010-01-13 Chong Yidong <cyd@stupidchicken.com>
1236
1237 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1238 during call to vendor-specific-keysyms (Bug#5365).
1239
c2623ee7
YM
12402010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1241
1242 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1243 Call SIGNAL_THREAD_CHECK (Bug#5333).
1244
1245 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1246 Call SIGNAL_THREAD_CHECK.
1247
0b5397c2
SM
12482010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1249
1250 Try to fix bug#5314. This is probably not the final word, tho.
1251 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1252 recent-auto-save-p as a side-effect.
1253 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1254 * buffer.c (Fkill_buffer, reset_buffer):
1255 * editfns.c (Fsubst_char_in_region):
1256 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1257 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1258
dc954cb2
KH
12592010-01-13 Kenichi Handa <handa@m17n.org>
1260
1261 Display buffer name, etc. in mode line by composing correctly.
1262
1263 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1264 STRING is not nil.
0b5397c2 1265 (display_mode_element): Adjust for the change of
dc954cb2
KH
1266 decode_mode_spec and display_line.
1267 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1268 (display_string): Handle the case that STRING is non-null and
1269 LISP_STRING is not nil.
1270
0b5397c2
SM
1271 * xterm.c (x_draw_composite_glyph_string_foreground):
1272 Pay attention to s->face->overstrike.
dc954cb2
KH
1273
1274 * composite.c (composition_reseat_it): Don't check PT if STRING is
1275 non nil.
1276
4a00eaca
YM
12772010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1278
1279 * keyboard.c (read_char): Don't apply previous change when current
1280 buffer is unchanged by command execution.
1281
60abb287
JD
12822010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1283
1284 * keyboard.c (read_char): Return after executing from special map.
1285
893db5bc
GM
12862010-01-12 Glenn Morris <rgm@gnu.org>
1287
1288 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1289 bug-gnu-emacs rather than emacs-pretest-bug.
1290
4d03ece0
CY
12912010-01-11 Chong Yidong <cyd@stupidchicken.com>
1292
1293 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1294 initializing the Lisp variables that depend on them.
1295
1df47e38
YM
12962010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1297
1298 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1299 Clear areas that will not be updated after change of menu bar lines.
1300 Clear the menu bar window's current matrix when the window gets empty.
1301
2f1c6384
CY
13022010-01-09 Chong Yidong <cyd@stupidchicken.com>
1303
e398c61c
CY
1304 * intervals.h, textprop.c (extend_property_ranges): Return value
1305 and args changed. Discard properties that begin at or after the
1306 new end (Bug#5306).
1307
1308 * editfns.c (Fformat): Caller changed.
1309
e5a29a10
CY
1310 * nsterm.m (ns_set_default_prefs): Delete function.
1311 (syms_of_nsterm): Initialize ns_command_modifier,
1312 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1313 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1314
2f1c6384
CY
1315 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1316 position (Bug#4040).
1317
d427a9fa
EZ
13182010-01-09 Eli Zaretskii <eliz@gnu.org>
1319
1320 * editfns.c (Ffloat_time): Doc fix.
1321
21b9df2f
JD
13222010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1323
1324 * xfns.c (Fx_create_frame): Don't create frame larger than display
1325 by default bug#3643.
1326
4b00d3b1
YM
13272010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1328
1329 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1330 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1331 windows above internal border.
1332
1333 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1334 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1335 windows above internal border.
1336
1337 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1338 tool bar windows specially.
1339
1340 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1341
1342 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1343 specially.
1344 (XTflash): Take account of menu bar height.
1345
1346 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1347 specially.
1348
5075d853
JD
13492010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1350
ac146f82 1351 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1352 also be true before we can return early (bug #5339).
1353
474217c8
CY
13542010-01-06 David Reitter <david.reitter@gmail.com>
1355
1356 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1357 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1358 (Bug#3233).
1359
c0e6d47d
JD
13602010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1361
d0cf45b7
JD
1362 * font.c (font_open_entity): Enable chache and call cached_font_ok
1363 for the driver if defined.
1364 (QCuser_spec): New symbol.
1365 (font_spec_from_name): Save name as user-spec.
1366 (font_load_for_lface): Keep user-spec instead of name.
1367 (font_open_by_name): Save name as user-spec.
1368 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1369 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1370
1371 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1372 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1373 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1374
1375 * font.h (struct font_driver): Add cached_font_ok.
1376
c0e6d47d
JD
1377 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1378
7c583cd8
JD
13792010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1380
1381 * xterm.c (x_new_font): Move code for setting rows/cols before
1382 resizing ...
ac146f82 1383 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1384
1385 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1386 (xg_frame_resized, xg_frame_set_char_size):
1387 Call xg_clear_under_internal_border.
7c583cd8 1388 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1389
03f77f0a
CY
13902010-01-05 Chong Yidong <cyd@stupidchicken.com>
1391
1392 * keyboard.c (read_key_sequence): Catch keyboard switch after
1393 making a new tty frame (Bug#5095).
1394
2a1ef5be
KH
13952010-01-05 Kenichi Handa <handa@m17n.org>
1396
1397 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1398
e3eb1dae
SM
13992010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1400
1401 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1402 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1403 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1404
777013f2
MA
14052010-01-03 Michael Albinus <michael.albinus@gmx.de>
1406
1407 * dbusbind.c (xd_add_watch): Improve debug message.
1408 (xd_remove_watch): Improve debug message. If DATA is the session
1409 bus, unset D-Bus session environment.
1410 (Fdbus_init_bus): Pass the bus as argument to
1411 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1412
8932b1c2
CY
14132010-01-01 Chong Yidong <cyd@stupidchicken.com>
1414
87231e2c
CY
1415 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1416
4801c5fa
CY
1417 * lread.c (syms_of_lread): Make it clearer that these are the
1418 names of loaded files (Bug#5068).
1419
8932b1c2
CY
1420 * eval.c (run_hook_with_args): Handle the case where the global
1421 value has the obsolete single-function form (Bug#5026).
1422
11e3c684
CY
14232009-12-27 Chong Yidong <cyd@stupidchicken.com>
1424
1425 * minibuf.c (Fall_completions): Minor optimization.
1426
5b28ce35
EZ
14272009-12-26 Eli Zaretskii <eliz@gnu.org>
1428
5ce6e4f4
JB
1429 * .gdbinit (pgx): Fix display of composite glyphs.
1430 Display cmp.from and cmp.to as well.
1431 (pitx): Fix last change.
5b28ce35 1432
bcffff46
KH
14332009-12-25 Kenichi Handa <handa@m17n.org>
1434
1435 * composite.h (composition_adjust_point): Update prototype.
1436
1437 * composite.c (composition_reseat_it): Don't make a composition
1438 spanning over point.
1439 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1440 composable characters.
1441 (composition_adjust_point): New arg NEW_PT. Callers changed.
1442
1443 * keyboard.c (command_loop_1): Force redisplay if the last point
1444 was within a composition.
1445 (adjust_point_for_property): Don't adjust point for automatic
1446 composition when called after buffer modification.
1447
3f670e9a
EZ
14482009-12-19 Eli Zaretskii <eliz@gnu.org>
1449
5ce6e4f4
JB
1450 * .gdbinit (pitx): Don't use enum names, use their values.
1451 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1452 (pgx): Don't use enum names, use their values.
1453 (pitmethod): New helper command.
1454 (pitx): Use it to display iteration method.
1455 (pgrowit): New command.
1456
ad903955
EZ
1457 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1458
3f670e9a
EZ
1459 Update dependencies in Makefile.in.
1460
1461 * Makefile.in (alloc.o): Depend on termhooks.h.
1462 (atimer.o): Depend on blockinput.h.
1463 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1464 and frame.h.
1465 (callint.o): Depend on systime.h, coding.h, and composite.h.
1466 (callproc.o): Depend on buffer.h.
1467 (casefiddle.o): Don't depend on charset.h.
1468 (casetab.o): Depend on character.h.
1469 (ccl.o): Depend on composite.h.
1470 (chartab.o): Depend on ccl.h.
1471 (cm.o): Depend on dispextern.h.
1472 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1473 (coding.o): Don't depend on $(INTERVALS_H).
1474 (composite.o): Don't depend on dispextern.h explicitly (it's in
1475 $(INTERVALS_H)). Depend on ccl.h.
1476 (data.o): Depend on systime.h, coding.h, composite.h,
1477 dispextern.h, font.h, and ccl.h.
1478 (dired.o): Depend on composite.h.
1479 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1480 composite.h (it's in $(INTERVALS_H)).
1481 (doc.o): Depend on systime.h, coding.h, and composite.h.
1482 (editfns.o): Don't depend explicitly on dispextern.h.
1483 (emacs.o): Depend on frame.h and coding.h.
1484 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1485 (fileio.o): Depend on frame.h and commands.h. Don't depend
1486 explicitly on dispextern.h.
1487 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1488 composite.h.
1489 (fns.o): Don't depend on termhooks.h.
1490 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1491 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1492 coding.h, $(INTERVALS_H), window.h, xterm.h.
1493 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1494 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1495 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1496 fontset.h, ccl.h, and ftfont.h.
1497 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1498 (gtkutil.o): Depend on dispextern.h and composite.h.
1499 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1500 termhooks.h, and ccl.h.
1501 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1502 (intervals.o): Depend on systime.h and coding.h.
1503 (keyboard.o): Depend on composite.h and coding.h.
1504 (keymap.o): Depend on coding.h and frame.h.
1505 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1506 (macros.o): Depend on systime.h, coding.h, and composite.h.
1507 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1508 and atimer.h.
1509 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1510 dispextern.h explicitly.
0b5397c2
SM
1511 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1512 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1513 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1514 (regex.o): Don't depend on charset.h.
1515 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1516 (search.o): Don't depend explicitly on composite.h.
1517 (sound.o): Depend on atimer.h and systime.h.
1518 (syntax.o): Don't depend explicitly on composite.h.
1519 (sysdep.o): Depend on coding.h and composite.h.
1520 (term.o): Depend on xterm.h and buffer.h.
1521 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1522 (textprop.o): Don't depend on dispextern.h explicitly.
1523 (undo.o): Depend on dispextern.h.
1524 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1525 dispextern.h and composite.h explicitly.
1526 (xdisp.o): Depend on ccl.h.
1527 (xfaces.o): Depend on coding.h and ccl.h.
1528 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1529 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1530 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1531 ftfont.h.
1532 (xgselect.o): New dependency.
1533 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1534 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1535 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1536 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1537 (xsmfns.o): Depend on frame.h and dispextern.h.
1538 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1539 sysselect.h.
1540
7a6f7fea
AS
15412009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1542
1543 * font.c (Fclear_font_cache): Pass correct cache argument to
1544 font_clear_cache.
1545
f4c21026
AS
15462009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1547
1548 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1549 twice.
1550
f7ab0997
CY
15512009-12-15 Chong Yidong <cyd@stupidchicken.com>
1552
1553 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1554 calling file-remote-p. Reported by Jim Meyering.
1555
fa8e045a
MA
15562009-12-15 Michael Albinus <michael.albinus@gmx.de>
1557
1558 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1559 avoid compiler warnings. (Bug #5217)
fa8e045a 1560
a63dba42
KH
15612009-12-14 Kenichi Handa <handa@m17n.org>
1562
1563 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1564 in 8-bit encoding.
1565
5ce6e4f4 15662009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1567
1568 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1569 tooltip windows.
1570
223e5fc6
JD
15712009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1572
36acb2a7
JD
1573 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1574 Xatom_net_window_type.
1575
1576 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1577 Xatom_net_window_type.
1578
b8f00677
JD
1579 * xterm.c (my_log_handler): New function.
1580 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1581 so we can filter out buggy messages. (Bug #5120).
b8f00677 1582
e5f0bc9a
JD
1583 * xterm.c (xg_scroll_callback): Parameter list changed,
1584 use parameter GtkScrollType to determine scroll/line/page.
1585 Only allow dragging if a button < 4 is grabbed (bug #5177).
1586 (xg_end_scroll_callback): New function.
1587 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1588 xg_create_scroll_bar.
1589
1590 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1591 (scroll_end_callback): Remove.
1592 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1593 button-release-event. Replace value-changed event with change-value,
1594 bug #5177,
1595 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1596 bug #5177.
1597
1598 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1599 (xg_create_scroll_bar): Add GCallback end_callback.
1600
223e5fc6
JD
1601 * xftfont.c (QClcdfilter): New variable.
1602 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1603 (syms_of_xftfont): Initialize QClcdfilter.
1604
3c055b77
JD
16052009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1606
1607 * xsettings.c (struct xsettings): Add member seen.
1608 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1609 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1610 (apply_xft_settings): Only update Xft settings with what member seen
1611 indicates as new.
1612
05fe33ff
EZ
16132009-12-12 Eli Zaretskii <eliz@gnu.org>
1614
1615 * dispextern.h (struct text_pos): Use EMACS_INT;
1616 (struct glyph): Use EMACS_INT for charpos.
1617 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1618 region_beg_charpos, region_end_charpos,
1619 redisplay_end_trigger_charpos, and also for
1620 iterator_stack_entry.end_charpos and
1621 iterator_stack_entry.stop_charpos.
1622
e8d7886a
JD
16232009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1624
5ce6e4f4 1625 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1626 (xg_create_scroll_bar): Call scroll_end_callback on button release
1627 event (bug #5177).
1628 (xg_event_is_for_scrollbar): != replaced with ==.
1629
d0db2ec8
KH
16302009-12-12 Kenichi Handa <handa@m17n.org>
1631
1632 * ftfont.c (struct ftfont_info): New member matrix.
1633 (ftfont_open): Setup xftfont_info->matrix.
1634 (MFLTFontFT): New member matrix.
1635 (FLOOR, CEIL, ROUND): New macros.
1636 (ftfont_get_metrics): Handle matrix transformation.
1637 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1638
1639 * xftfont.c (struct xftfont_info): New member matrix.
1640 (xftfont_open): Setup xftfont_info->matrix.
1641
16422009-12-10 Kenichi Handa <handa@m17n.org>
1643
1644 * xdisp.c (append_space_for_newline): Consider face-remapping.
1645
2cc7b62f
AS
16462009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1647
b87dd913
AS
1648 * xsettings.c: Include "keyboard.h".
1649
eba5eb94
AS
1650 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1651
2cc7b62f
AS
1652 Fix implicit function declarations.
1653 * cmds.c: Include "frame.h".
1654 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1655 * frame.h: Move declaration of delete_frame outside of
1656 HAVE_WINDOW_SYSTEM.
1657
a4ef73c8
CY
16582009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1659
1660 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1661
1662 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1663 GTK builds.
1664
944a300c
AS
16652009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1666
1667 * unexelf.c (unexec): Don't search for .data twice.
1668
022eef62
CY
16692009-12-05 Chong Yidong <cyd@stupidchicken.com>
1670
426ac949
CY
1671 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1672 if push failed.
1673 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1674 of push_display_prop (Bug#5000).
1675
022eef62
CY
1676 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1677 value of font_list_entities (Bug#5085).
1678
be95bee9
JB
16792009-12-04 Juanma Barranquero <lekktu@gmail.com>
1680
1681 Fix `string-to-number' to deal consistently with integers and floats.
1682 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1683 trailing characters, not just whitespace.
1684 (read1): Pass new arg 0 to keep old behavior.
1685 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1686 trailing chars, as it is already done for integers. Doc fixes.
1687 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1688
24c2d7ce
EZ
16892009-12-04 Eli Zaretskii <eliz@gnu.org>
1690
0b5397c2
SM
1691 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1692 Delete unused enumeration value.
24c2d7ce 1693
7e694795
EZ
16942009-12-03 Eli Zaretskii <eliz@gnu.org>
1695
1696 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1697
84b31826
SM
16982009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1699
1700 * process.c (Fmake_network_process): Fix up the tests for
1701 "connectionless socket", so they DTRT for seqpacket sockets as well.
1702
f00c449b
SM
17032009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1704
1705 * process.c (Qseqpacket): New symbol.
1706 (HAVE_SEQPACKET): New macro.
1707 (Fmake_network_process): Accept new :type `seqpacket'.
1708 (init_process): Add `seqpacket' feature when applicable.
1709 (syms_of_process): Initialize Qseqpacket.
1710
8096a0ff
YM
17112009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1712
1713 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1714 if entity is Qnil.
1715
3e0de07f
SM
17162009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1717
1718 * print.c (print_preprocess): Preprocess the key_and_value table of
1719 hashtables, even tho they're "hidden" (bug#5082).
1720
abeafb2a
JD
17212009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1722
1723 * frame.c (frame_make_pointer_invisible)
1724 (frame_make_pointer_visible): Declare f before statements.
1725
4bf47195
EZ
17262009-11-28 Eli Zaretskii <eliz@gnu.org>
1727
1728 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1729 omitted dependencies on lisp.h.
1730
c525b3f2
JD
17312009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1732
ece2d4ed
JD
1733 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1734 is NULL.
1735
1736 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1737
1738 * frame.c (frame_make_pointer_invisible)
3e0de07f 1739 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1740 frame.
1741
c525b3f2
JD
1742 * search.c (simple_search): Remove warning by making *p const.
1743
2f00e299
DN
17442009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1745
1746 * xdisp.c (power_letter): Remove duplicate const.
1747
084b049b
JD
17482009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1749
a1fadc6f
JD
1750 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1751
5ce6e4f4 1752 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1753 defaults (bug #5025).
1754
28259cac
SM
17552009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1756
1757 * insdel.c (adjust_markers_for_delete): Move it in the
1758 right direction! (bug#4803)
1759
e8e14166
YM
17602009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1761
1762 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1763
1764 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1765
86677b58
GM
17662009-11-24 Glenn Morris <rgm@gnu.org>
1767
1768 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1769
581e51e8
JD
17702009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1771
cfc86c7a
JD
1772 * Makefile.in: Must create deps for ecrt0.o in its rule.
1773
581e51e8
JD
1774 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1775 because that is what Gtk+ font dialog understands.
1776
1777 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1778 of Fcopy_sequence.
1779 (font_open_by_name): Put name given into QCname for font-object returned.
1780
1781 * frame.c (x_set_font): Save original font name as frame parameter
1782 font-parameter.
1783
1784 * xsettings.c (set_default_xft_settings): New function.
1785 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1786 is found.
1787
8b264ecb
AS
17882009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1789
1790 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1791 searching backwards through multibyte buffer.
1792
872870b2
JD
17932009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1794
1795 * xterm.c: #include xgselect.h.
1796 (x_initialize): Call xgselect_initialize.
1797
1798 * xsettings.c (something_changedCB): C++ comments => C comments.
1799 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1800 does that now.
1801
1802 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1803 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1804 (scroll_bar_button_cb): Remove.
5ce6e4f4 1805 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1806 event.
1807 (xg_create_scroll_bar): Don't bind button-press-event and
1808 button-release-event.
1809
1810 * process.c: Include xgselect.h if defined (USE_GTK) ||
1811 defined (HAVE_GCONF).
1812 (wait_reading_process_output): Call xg_select for the same condition.
1813
1814 * xgselect.c (xg_select): New function to better integrate with
1815 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1816
1817 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1818
1819 * Makefile.in (XOBJ): Add xgselect.o.
1820
62a6e103
AS
18212009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1822
0b5397c2
SM
1823 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1824 Remove ignored second argument. All callers changed.
62a6e103
AS
1825 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1826 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1827 * xdisp.c (string_char_and_length): Likewise.
1828
b0ca0f33
DN
18292009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1830
1831 * xterm.c (x_new_font):
1832 * print.c (print_object):
1833 * cmds.c (Fself_insert_command): Move declarations before statements.
1834
dd5a6279
CY
18352009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1836
1837 * s/cygwin.h: Remove unneeded linker flags.
1838
4a8e097d
JD
18392009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1840
0d1d0d26
JD
1841 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1842
1843 * xsettings.h: Declare xsettings_get_system_font.
1844
1845 * xsettings.c (xsettings_get_system_font): New function.
1846 (init_gconf): No use initiating gconf unless we have Xft also.
1847 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1848 HAVE_GCONF.
1849
4a8e097d
JD
1850 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1851 add a blank entry so it doesn't collapse into nothing.
1852
8ab1650e
SM
18532009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1854
1855 * lread.c (Funintern): Comment out last change.
1856
82c602f0
RS
18572009-11-19 Richard Stallman <rms@gnu.org>
1858
1859 * lread.c (Funintern): Error if symbol is t or nil.
1860
87e32266
SM
18612009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1862
1863 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1864 representation of Lisp integers.
1865 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1866
1b9ac145
AS
18672009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1868
1869 * lisp.h: Remove declaration of Ffont_get_system_font.
1870 * xfns.c: Move include of "xsettings.h".
1871 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1872
dfb3c4c6
JD
18732009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1874
87e32266
SM
1875 * xsettings.c (something_changedCB, Ffont_get_system_font):
1876 Check use_system_font.
dfb3c4c6
JD
1877 (syms_of_xsettings): DEFVAR font-use-system-font.
1878
9370c1d8
AS
18792009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1880
25fe851a
AS
1881 * xfns.c (x_default_font_parameter): Remove dead assignment.
1882
9370c1d8
AS
1883 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1884
637fa988
JD
18852009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1886
87e32266 1887 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1888 not have FC_LCD_*. #define them if not there.
a6eb20d8 1889
87e32266 1890 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1891
637fa988
JD
1892 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1893
1894 * xterm.c (handle_one_xevent): Call xft_settings_event for
1895 ClientMessage, PropertyNotify and DestroyNotify.
1896 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1897 Call xsettings_initialize.
1898
1899 * xftfont.c (xftfont_fix_match): New function.
1900 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1901 Call xftfont_fix_match after XftFontMatch.
1902
1903 * xfont.c (xfont_driver): Initialize all members.
1904
87e32266
SM
1905 * xfns.c (x_default_font_parameter):
1906 Try font from Ffont_get_system_font.
637fa988
JD
1907 Do not get font from x_default_parameter if we got one from
1908 Ffont_get_system_font.
87e32266 1909 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1910
1911 * w32font.c (w32font_driver): Initialize all members.
1912
1913 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1914
1915 * lisp.h: Declare syms_of_xsettings.
1916
87e32266
SM
1917 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1918 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1919
1920 * ftfont.c (ftfont_filter_properties): New function.
1921
1922 * frame.c (x_set_font): Remove unused variable lval.
1923
87e32266 1924 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1925
1926 * font.c (font_put_extra): Don't return if val is nil, it means
1927 boolean option is off.
1928 (font_parse_fcname): Collect all extra properties in extra_props
1929 and call filter_properties for all drivers with extra_props and
1930 font as parameter.
87e32266
SM
1931 (font_open_entity): Do not use cache, it does not pick up new
1932 fontconfig settings like hinting.
637fa988
JD
1933 (font_load_for_lface): If spec had a name in it, store it in entity.
1934
a73f9c9d 1935 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1936
1937 * config.in: HAVE_GCONF is new.
1938
1939 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1940 xsettings.o is new.
1941
5a942932
KH
19422009-11-17 Kenichi Handa <handa@m17n.org>
1943
1944 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1945 back to the default font in case that no suitable font is found.
1946
b7c7a4d1
SM
19472009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1948
1949 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1950 Suggested by Chad Brown <yandros@mit.edu>.
1951 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1952
072f1e39
JD
19532009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1954
1955 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1956
5d1e70a2
AS
19572009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1958
87e32266 1959 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1960
a53cfbe5
JD
19612009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1962
473a99b7
JD
1963 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1964 has a parent.
1965
a53cfbe5 1966 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1967 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1968
1969 * config.in: Generated (AUTO_DEPEND).
1970
f04bb9b2
MA
19712009-11-13 Michael Albinus <michael.albinus@gmx.de>
1972
b7c7a4d1 1973 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1974 Vdbus_registered_functions_table, because it contains also
1975 properties. Fix docstring.
b7c7a4d1 1976 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1977
8f11f7ec
SM
19782009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1979
1980 * alloc.c (mark_object): Don't reprocess marked strings.
1981 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1982 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1983
8a605fe8
KH
19842009-11-13 Kenichi Handa <handa@m17n.org>
1985
8f11f7ec 1986 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1987 semantics of Vword_combining_categories.
1988 (Vword_combining_categories): Describe the slight change of the
1989 semantics.
1990
241c4680
EZ
19912009-11-13 Eli Zaretskii <eliz@gnu.org>
1992
1993 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1994
1995 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1996
5d58e44c
SM
19972009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1998
1999 * xdisp.c (syms_of_xdisp): Fix typo in last change.
2000
5e13f9d3
JB
20012009-11-12 Juanma Barranquero <lekktu@gmail.com>
2002
2003 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
2004
cf54c754
DR
20052009-11-11 David Reitter <david.reitter@gmail.com>
2006
2007 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
2008 variables to fix 2009-11-09 change.
2009
a4ada374
DN
20102009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
2011
91433552
DN
2012 * process.c (ifflag_def): Make flag_sym constant.
2013 (Fnetwork_interface_info): Use a constant pointer.
2014 (ifflag_table):
2015 * xfns.c (cursor_bits):
2016 * xdisp.c (power_letter):
2017 * termcap.c (speeds, esctab):
2018 * sysdep.c (baud_convert):
2019 * keyboard.c (lispy_accent_codes, modifier_names):
2020 * image.c (xbm_format, xpm_format, pbm_format, png_format)
2021 (jpeg_format, tiff_format, gif_format, svg_format)
2022 (interlace_start, interlace_increment, gs_format):
2023 * gtkutil.c (separator_names):
2024 * fringe.c (swap_nibble):
2025 * fns.c (base64_value_to_char, base64_char_to_value):
2026 * fileio.c (make_temp_name_tbl):
2027 * coding.c (suffixes): Make constant.
2028
f4265f6c
DN
2029 * frame.c (make_initial_frame):
2030 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
2031 build_string.
2032 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
2033
04420943
DN
2034 * s/freebsd.h:
2035 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
2036
0a5d24ae
DN
2037 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
2038 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
2039
a4ada374
DN
2040 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
2041 * xterm.c (syms_of_xterm):
2042 * xfaces.c (syms_of_xfaces):
2043 * xdisp.c (syms_of_xdisp):
2044 * lread.c (syms_of_lread):
2045 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
2046 build_string.
91433552 2047
a4ada374
DN
2048 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
2049
af98fc7f
SM
20502009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2051
8ab1650e 2052 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 2053
e90292a9
JD
20542009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2055
2056 * keyboard.h: Declare timer_check.
2057
2058 * keyboard.c (timer_check_2): New function that does what the old
2059 timer_check did.
2060 (timer_check): Call timer_check_2 until -1 or a non-zero time is
2061 returned, i.e. don't return -1 with timers pending.
2062
2063 * process.c: Remove extern declaration of timer_check.
2064
2065 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
2066 even if timer_check returned -1.
2067
af98fc7f
SM
2068 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
2069 xg_dialog_data.
e90292a9
JD
2070 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
2071 the event loop.
2072 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
2073 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
2074 Destroy the dialog after xg_dialog_run.
2075
045b83c0
SM
20762009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
2077
2078 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
2079
1fb99a3a
JD
20802009-11-10 Jan Djärv <jan.h.d@swipnet.se>
2081
2082 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
2083
04e452cb
JB
20842009-11-09 Juanma Barranquero <lekktu@gmail.com>
2085
2086 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
2087
ef7417fd
SM
20882009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2089
2090 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2091 w32menu.c, and nsmenu.m.
2092 Simplify the obsolete case where position is nil.
2093 (cleanup_popup_menu): New function, moved from nsmenu.m.
2094 (struct skp): Remove slot `notreal'.
2095 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2096 adjust callers.
2097 (single_menu_item): Adjust call to parse_menu_item.
2098 (syms_of_menu): Defsubr x-popup-menu.
2099 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2100 (keymap_panes): Don't export any more.
2101 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2102 (xmenu_show): Declare.
2103 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2104 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2105 * keyboard.h (parse_menu_item): Update declaration.
2106 * xmenu.c (Fx_popup_menu): Remove.
2107 (syms_of_xmenu): Don't defsubr x-popup-menu.
2108 * w32menu.c (Fx_popup_menu): Remove.
2109 (syms_of_w32menu): Don't defsubr x-popup-menu.
2110 * nsmenu.m (cleanup_popup_menu): Remove.
2111 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2112 moved to menu.c's Fx_popup_menu.
2113 (Fx_popup_menu): Remove.
2114 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2115 menu_items (it's done in menu.c already).
2116
424d6179
SM
21172009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2118
2119 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2120 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2121
c0df13a6 21222009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2123
2124 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2125 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2126 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2127 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2128
2de9f71c
SM
21292009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2130
2131 Let integers use up 2 tags to give them one extra bit and thus double
2132 their range.
2133 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2134 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2135 New macros.
2136 (enum Lisp_Type): Use them. Give explicit values.
2137 (Lisp_Type_Limit): Remove.
2138 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2139 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2140 Pay attention to USE_2_TAGS_FOR_INTS.
2141 (INTEGERP): Use LISP_INT_TAG_P.
2142 * fns.c (internal_equal): Simplify the default case.
2143 (sxhash): Use case_Lisp_Int.
2144 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2145 any more.
2146 (Ftype_of): Use case_Lisp_Int.
2147 (store_symval_forwarding): Take into account the fact that Ints can
2148 now have more than one tag.
2149 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2150 buffer_slot_type_mismatch):
2151 * xfaces.c (face_attr_equal_p):
2152 * print.c (print_object):
2153 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2154 Use case_Lisp_Int.
2155
323637a2
EZ
21562009-11-06 Eli Zaretskii <eliz@gnu.org>
2157
7ac65b38
EZ
2158 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2159
323637a2
EZ
2160 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2161 warning.
2162
e511451f
JD
21632009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2164
2165 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2166
2167 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2168
2169 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2170 ButtonPressRelease and MotionNotify (bug#4870).
2171
5e2327cf
DN
21722009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2173
5adc433e
DN
2174 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2175
d67b4f80
DN
2176 * xterm.c (syms_of_xterm):
2177 * xselect.c (syms_of_xselect):
2178 * xmenu.c (syms_of_xmenu):
2179 * xfns.c (syms_of_xfns):
2180 * xfaces.c (syms_of_xfaces):
2181 * xdisp.c (syms_of_xdisp):
2182 * window.c (syms_of_window):
2183 * w32fns.c (syms_of_w32fns):
2184 * undo.c (syms_of_undo):
2185 * textprop.c (syms_of_textprop):
2186 * terminal.c (syms_of_terminal):
2187 * syntax.c (syms_of_syntax):
2188 * sound.c (syms_of_sound):
2189 * search.c (syms_of_search):
2190 * print.c (syms_of_print):
2191 * minibuf.c (syms_of_minibuf):
2192 * macros.c (syms_of_macros):
2193 * keymap.c (syms_of_keymap, initial_define_key)
2194 (initial_define_lispy_key):
2195 * keyboard.c (syms_of_keyboard):
2196 * insdel.c (syms_of_insdel):
2197 * image.c (syms_of_image):
2198 * fringe.c (syms_of_fringe):
2199 * frame.c (syms_of_frame):
2200 * fontset.c (syms_of_fontset):
2201 * fns.c (syms_of_fns):
2202 * fns.c (syms_of_fns):
2203 * fileio.c (syms_of_fileio):
2204 * fileio.c (syms_of_fileio):
2205 * eval.c (syms_of_eval):
2206 * doc.c (syms_of_doc):
2207 * dispnew.c (syms_of_display):
2208 * dired.c (syms_of_dired):
2209 * dbusbind.c (syms_of_dbusbind):
2210 * data.c (syms_of_data):
2211 * composite.c (syms_of_composite):
2212 * coding.c (syms_of_coding):
2213 * cmds.c (syms_of_cmds):
2214 * charset.c (define_charset_internal, syms_of_character):
2215 * ccl.c (syms_of_ccl):
2216 * category.c (syms_of_category, init_category_once):
2217 * casetab.c (syms_of_casetab):
2218 * casefiddle.c (syms_of_casefiddle):
2219 * callint.c (syms_of_callint):
2220 * bytecode.c (syms_of_bytecode):
2221 * buffer.c (keys_of_buffer, syms_of_buffer):
2222 * alloc.c (syms_of_alloc):
2223 * process.c (syms_of_process, init_process):
2224 * lread.c (syms_of_lread, init_obarray):
2225 * font.c (build_style_table):
2226 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2227 intern_c_string, calls to make_pure_string with
2228 make_pure_c_string. Use pure_cons instead of Fcons.
2229
5e2327cf
DN
2230 * process.c (socket_options): Make it const.
2231 (set_socket_option, init_process): Use a const pointer.
2232
2233 * lread.c (intern_c_string): New function.
2234 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2235 (defvar_int): Uset it. Make the name const char*.
2236
2237 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2238 (defvar_int): Update prototypes.
2239 (DEFUN, EXFUN): Support for prototypes is now required.
2240 (intern_c_string): New prototype.
2241 (struct Lisp_Subr): Make symbol_name constant.
2242
2243 * font.c (struct table_entry): Remove unused member. Make NAMES
2244 constant.
2245 (weight_table, slant_table, width_table): Make constant.
2246
2247 * emacs.c (struct standard_args): Make name and longname constant.
2248
2249 * character.h (DEFSYM): Use intern_c_string.
2250
a56eaaef
DN
22512009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2252
2253 * alloc.c (make_pure_c_string): New function.
2254
2255 * eval.c (Fautoload): Purecopy all arguments.
2256
f6a07420
KH
22572009-11-05 Kenichi Handa <handa@m17n.org>
2258
2259 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2260 the buffer in case of replace.
2261
5d28d4b1
DN
22622009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2263
2264 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2265
b349d111
SM
22662009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2267
d528b1ce
SM
2268 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2269 when applicable (bug#4851).
2270
b349d111
SM
2271 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2272 (P_): Support for prototypes is now required.
2273
c38eb027
CY
22742009-10-31 Chong Yidong <cyd@stupidchicken.com>
2275
2276 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2277 (Bug#4827).
2278
0405f8d9
EZ
22792009-10-30 Eli Zaretskii <eliz@gnu.org>
2280
d528b1ce 2281 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2282
ca0a881a
DN
22832009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2284
2285 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2286
d528b1ce
SM
2287 * lread.c (Fload): Purecopy the file name when building
2288 Vpreloaded_file_list.
ca0a881a 2289
47e0e0e4
JR
22902009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2291
2292 * w32fns.c (syms_of_w32fns): Change default value of
2293 w32-scroll-lock-modifier to nil. (Bug#2827)
2294
057bce6f
JB
22952009-10-26 Juanma Barranquero <lekktu@gmail.com>
2296
782a943e 2297 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2298
242bc74c
AS
22992009-10-26 Andreas Schwab <schwab@redhat.com>
2300
2301 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2302
522d013a
JB
23032009-10-26 Juanma Barranquero <lekktu@gmail.com>
2304
2305 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2306 For delta < 0, skip check that only makes sense when the mini-window
2307 is going to be enlarged. (Bug#4534)
2308
18060980
CY
23092009-10-25 Chong Yidong <cyd@stupidchicken.com>
2310
2311 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2312 string in menu maps (Bug#4471).
2313
fec8f0fe
CY
23142009-10-24 Chong Yidong <cyd@stupidchicken.com>
2315
2316 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2317 FRAME_NS_VIEW on terminal frames (Bug#4765).
2318
10d66ec0
AS
23192009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2320
1cae01f7
AS
2321 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2322 DBUS_TYPE_UINTnn separately to get proper sign extension.
2323
58a12889
AS
2324 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2325 can properly handle unsigned types.
d528b1ce 2326 (make_uid, make_gid): Remove.
58a12889 2327
987c9327
AS
2328 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2329 types again.
2330
522d013a 2331 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2332 (system_process_attributes): Likewise.
2333
905a9ed3
DN
23342009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2335
2336 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2337
2338 * eval.c (Fautoload): Purecopy the filename. Simplify.
2339
2340 * category.c (Fdefine_category): Purecopy docstring.
2341
a599b3e8
AS
23422009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2343
7b792fc9
AS
2344 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2345
a599b3e8
AS
2346 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2347
b35ac83e
CY
23482009-10-23 Chong Yidong <cyd@stupidchicken.com>
2349
2350 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2351 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2352 (Bug#4775).
2353
e8903e00
SM
23542009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2355
2356 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2357 (init_fileio_once):
2358 * lisp.h (init_fileio_once): Remove.
2359 * emacs.c (main): Don't call init_fileio_once.
2360
8f43cbf3
DN
23612009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2362
2363 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2364
26898943
AS
23652009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2366
2367 * doprnt.c (doprnt): Fix overflow check.
2368
5c646d5a
JD
23692009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2370
3132a7ea
JD
2371 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2372
5c646d5a
JD
2373 * xterm.h (x_wait_for_event): Declare it.
2374
2375 * xterm.c (pending_event_wait): New variable.
2376 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2377 see pending_event_wait.eventtype.
2378 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2379 (x_new_font): Call change_frame_size with new rows/columns before we
2380 try to resize the frame.
5c646d5a 2381 (x_wait_for_event): New function.
d528b1ce
SM
2382 (x_set_window_size_1): Don't change gravity unless change_gravity
2383 is set.
5c646d5a
JD
2384 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2385 don't change frame size, instead wait for the ConfigureNotify.
2386 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2387 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2388 (x_initialize): Initialize pending_event_wait.
2389
2390 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2391 size.
2392
2393 * widget.c (EmacsFrameSetValues): Add comment.
2394 (EmacsFrameSetCharSize): Just call x_set_window_size.
2395
2396 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2397 x_wait_for_event.
d528b1ce 2398 (flush_and_sync): Remove again.
5c646d5a
JD
2399 (xg_get_font_name): Suggest monospace if no previous font is known.
2400
e9c1637d
SM
24012009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2402
2403 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2404 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2405
5a72cccb
YM
24062009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2407
2408 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2409 processing pending events when event is filtered for input method.
ab04798f 2410 (Bug#3681)
5a72cccb 2411
2629aa37
JB
24122009-10-20 Juanma Barranquero <lekktu@gmail.com>
2413
2414 * fns.c: Add #endif accidentally removed in previous change.
2415
c3417a74
DN
24162009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2417
2418 * fns.c: Remove code for unsupported system: MAC_OS.
2419 * image.c: Likewise. Include setjmp.h.
2420
9685cef2
JD
24212009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2422
2423 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2424 pixel -1 (bug #4742).
2425
d7306fe6
DN
24262009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2427
019d2c4c
DN
2428 * process.c (create_pty): Remove conditionals for no longer
2429 supported systems: UNIPLUS and RTU.
2430
ee6bacd4
DN
2431 * xterm.c:
2432 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2433
d7306fe6
DN
2434 * alloc.c: Do not define struct catchtag.
2435 * eval.c: Move struct catchtag definition ...
2436 * lisp.h: ... here.
2437
2438 * image.c: Move png.h #include earlier to avoid warnings.
2439
2440 * xterm.c:
2441 * xsmfns.c:
2442 * xselect.c:
2443 * xrdb.c:
2444 * xmenu.c:
2445 * xftfont.c:
2446 * xfont.c:
2447 * xfns.c:
2448 * xfaces.c:
2449 * xdisp.c:
2450 * window.c:
2451 * widget.c:
2452 * w32xfns.c:
2453 * w32uniscribe.c:
2454 * w32term.c:
2455 * w32select.c:
2456 * w32reg.c:
2457 * w32proc.c:
2458 * w32menu.c:
2459 * w32inevt.c:
2460 * w32heap.c:
2461 * w32font.c:
2462 * w32fns.c:
2463 * w32console.c:
2464 * w32.c:
2465 * w16select.c:
2466 * vm-limit.c:
2467 * unexsol.c:
2468 * unexec.c:
2469 * unexcw.c:
2470 * unexaix.c:
2471 * undo.c:
2472 * tparam.c:
2473 * textprop.c:
2474 * terminfo.c:
2475 * terminal.c:
2476 * termcap.c:
2477 * term.c:
2478 * syntax.c:
2479 * sound.c:
2480 * sheap.c:
2481 * search.c:
2482 * scroll.c:
2483 * region-cache.c:
2484 * regex.c:
2485 * ralloc.c:
2486 * process.c:
2487 * print.c:
b024548b
DN
2488 * nsterm.m:
2489 * nsselect.m:
2490 * nsmenu.m:
2491 * nsimage.m:
2492 * nsfont.m:
2493 * nsfns.m:
d7306fe6
DN
2494 * msdos.c:
2495 * minibuf.c:
2496 * menu.c:
2497 * marker.c:
2498 * macros.c:
2499 * keymap.c:
2500 * keyboard.c:
2501 * intervals.c:
2502 * insdel.c:
2503 * indent.c:
2504 * gtkutil.c:
2505 * ftxfont.c:
2506 * ftfont.c:
2507 * fringe.c:
2508 * frame.c:
2509 * fontset.c:
2510 * font.c:
2511 * fns.c:
2512 * floatfns.c:
2513 * filelock.c:
2514 * fileio.c:
2515 * emacs.c:
2516 * editfns.c:
2517 * dosfns.c:
2518 * doprnt.c:
2519 * doc.c:
2520 * dispnew.c:
2521 * dired.c:
2522 * dbusbind.c:
2523 * data.c:
2524 * composite.c:
2525 * coding.c:
2526 * cmds.c:
2527 * cm.c:
2528 * chartab.c:
2529 * charset.c:
2530 * character.c:
2531 * ccl.c:
2532 * category.c:
2533 * casetab.c:
2534 * casefiddle.c:
2535 * callproc.c:
2536 * callint.c:
2537 * bytecode.c:
2538 * buffer.c:
2539 * atimer.c: Include setjmp.h. (Bug#4643)
2540
fd5f21e6
SM
25412009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2542
4c0354d7
SM
2543 Remove leftover table unibyte_to_multibyte_table.
2544 * character.c (unibyte_to_multibyte_table): Remove.
2545 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2546 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2547 * character.h (UNIBYTE_TO_CHAR): New macro.
2548 (MAKE_CHAR_MULTIBYTE): Use it.
2549 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2550 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2551 (message_dolog, set_message_1):
2552 * search.c (Freplace_match):
2553 * editfns.c (Fcompare_buffer_substrings):
2554 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2555 (concat):
2556 * insdel.c (copy_text, count_size_as_multibyte):
2557 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2558 * term.c (produce_glyphs):
2559 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2560 * regex.c (RE_CHAR_TO_MULTIBYTE):
2561 * cmds.c (internal_self_insert):
2562 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2563
fd5f21e6
SM
2564 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2565
4418646e
DN
25662009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2567
2568 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2569
35f5c1d2
JB
25702009-10-16 Juanma Barranquero <lekktu@gmail.com>
2571
2572 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2573
a0cd8f6b
AR
25742009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2575
2576 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2577 still needed under Tiger.
2578
2579 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2580
2581 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2582 __Apple__.
2583
2584 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2585
01a8d3fa
KH
25862009-10-15 Kenichi Handa <handa@m17n.org>
2587
2588 * print.c (print_object): Escape a symbol like "2E10" too.
2589
bf6c75c9 25902009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2591
2592 Cleanups and changes for 64-bit compile under Snow Leopard.
2593 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2594
2595 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2596
c5959062 2597 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2598 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2599 cast argument.
2600 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2601 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2602
2603 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2604
2605 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2606 where appropriate.
2607
2608 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2609 where appropriate.
6e4780c5
JB
2610 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2611 Use stringWithUTF8String.
bf6c75c9
AR
2612 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2613
6e4780c5
JB
2614 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2615 Add formal protocol mention to inheritance.
bf6c75c9
AR
2616 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2617
6e4780c5
JB
2618 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2619 Fix printf format.
bf6c75c9
AR
2620 (ns_query_color): Use CGFloat where appropriate.
2621 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2622 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2623 argument.
2624
3d87f118
AR
2625 * config.in (NS_HAVE_NSINTEGER): Drop.
2626
a95c8102
AR
2627 * dbusbind.c (dbus-method-return-internal)
2628 (dbus-method-error-internal): Use long format in printf, and cast
2629 argument.
2630
2631 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2632 in printf, and cast argument.
2633
6873acca 2634 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2635 cast argument.
2636
9ec6f100
GM
26372009-10-11 Glenn Morris <rgm@gnu.org>
2638
2639 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2640
5be883cd
JD
26412009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2642
2643 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2644 menu bar with a small width so it doesn't enlarge the frame.
2645
d7a39b51
JB
26462009-10-08 Juanma Barranquero <lekktu@gmail.com>
2647
2648 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2649
0c2b6f8e
GM
26502009-10-06 Glenn Morris <rgm@gnu.org>
2651
2652 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2653 SOME_MACHINE_LISP (this enters indirectly via DOC).
2654
e02131a2
EZ
26552009-10-05 Eli Zaretskii <eliz@gnu.org>
2656
2657 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2658
b4744254
EZ
26592009-10-04 Eli Zaretskii <eliz@gnu.org>
2660
2661 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2662 Doc fix.
2663
dbf64827
JB
26642009-10-03 Martin Rudalics <rudalics@gmx.at>
2665
2666 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2667
e9a0aef8
MA
26682009-10-02 Michael Albinus <michael.albinus@gmx.de>
2669
d528b1ce 2670 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2671 used anymore outside fileio.c.
2672
2673 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2674
64eb2b56
JB
26752009-10-01 Juanma Barranquero <lekktu@gmail.com>
2676
2677 * lisp.h (Qdelete_directory_internal):
2678 Declare, instead of Qdelete_directory.
2679
2680 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2681
9d28c33e
SM
26822009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2683
2684 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2685
9d8f3bd9
MA
26862009-10-01 Michael Albinus <michael.albinus@gmx.de>
2687
9d28c33e 2688 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2689 Fdelete_directory. It is not a command anymore. It has no file
2690 name handler.
2691
9694740b
SM
26922009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2693
2694 * xdisp.c (get_next_display_element): Use an enum in last change.
2695
748e162f
KH
26962009-09-28 Kenichi Handa <handa@m17n.org>
2697
9694740b 2698 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2699 unibyte_display_via_language_environment in handling
2700 Vnobreak_char_display.
2701
17efd58d
AR
27022009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2703
2704 * nsterm.h (ns_app_name): New extern variable.
2705
2706 * nsterm.m (ns_app_name): New variable.
2707 (ns_term_init): Set and use it.
2708 (ns_term_shutdown): Use it.
2709
2710 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2711 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2712
2713 * nsfns.m (ns_set_name_iconic, ns_set_name)
2714 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2715 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2716
9694740b
SM
2717 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2718 Remove double-casting in client_data comparison.
31c2d412 2719
3208cb35
YM
27202009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2721
2722 * keyboard.c (make_lispy_event): Remember last wheel direction.
2723 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2724
b7d552d6
GM
27252009-09-26 Glenn Morris <rgm@gnu.org>
2726
2727 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2728 internal.elc. Add term/pc-win.elc.
2729 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2730 term/x-win.elc.
2731 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2732 term/w32-win.elc.
2733 (NS_SUPPORT): New.
2734 (lisp): Add NS_SUPPORT.
2735 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2736
4ff670a8
DR
27372009-09-25 David Reitter <david.reitter@gmail.com>
2738
2739 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2740 on Mac OS X 10.6+ (bug#4513).
2741
feabfb6c
JB
27422009-09-24 Juanma Barranquero <lekktu@gmail.com>
2743
2744 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2745 some parts of Emacs code (like font selection) don't grok them.
2746 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2747
de59072a
AS
27482009-09-24 Andreas Schwab <schwab@redhat.com>
2749
2750 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2751
a489517b
JB
27522009-09-24 Juanma Barranquero <lekktu@gmail.com>
2753
2754 * dired.c (Fdirectory_files): Fix typo in docstring.
2755
0592970c
AR
27562009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2757
2758 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2759 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2760 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2761 under GNUstep.
2762 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2763
2764 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2765 glyph advancement.
2766
48e8a88b
AR
27672009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2768
2769 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2770 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2771
2772 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2773 deleted (bug #4492).
2774
e14f0a78
AR
2775 * nsfont.m (Vns_reg_to_script): New lisp variable.
2776 (syms_of_nsfont): Declare it.
2777 (ns_registry_to_script): New function.
2778 (ns_get_req_script): Call it.
2779 (ns_findfonts): Don't give up on non-unicode registry.
2780
2781 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2782
5b650faa
SM
27832009-09-20 Tom Tromey <tromey@redhat.com>
2784
2785 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2786 batch mode (bug#4228).
2787
a489517b 27882009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2789
2790 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2791 carefully. (Bug #4339)
0bae4e09 2792
fcfe06f3
CY
27932009-09-18 Chong Yidong <cyd@stupidchicken.com>
2794
d798ba87 2795 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2796
31642728
AR
27972009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2798
2799 * emacs.c (inhibit_x_resources): Update doc string for NS.
2800 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2801 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2802
2803 * nsterm.h (ns_no_defaults): Remove.
2804
2805 * nsterm.m (ns_no_defaults): Remove.
2806 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2807 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2808 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2809 don't update the NSWindow itself.
2810 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2811 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2812
2813 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2814 ns_use_qd_smoothing.
2815
2816 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2817 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2818 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2819 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2820
8686ac71
JB
28212009-09-17 Juanma Barranquero <lekktu@gmail.com>
2822
2823 * emacs.c (inhibit_x_resources): New variable.
2824 (main) [HAVE_NS]: Don't process --quick command line option.
2825 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2826
2827 * lisp.h (inhibit_x_resources): Declare it extern.
2828
2829 * w32reg.c (x_get_string_resource):
2830 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2831
e227ba05
EZ
28322009-09-17 Eli Zaretskii <eliz@gnu.org>
2833
362654a6
JB
2834 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2835 Add lisp/term/internal.elc.
e227ba05 2836
742d40e8
SM
28372009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2838
2839 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2840 (bug#4461).
2841
005bd5a2
DN
28422009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2843
2844 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2845
2846 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2847 (OBJECTS_MACHINE): Remove, unused.
2848
f9af9719
SM
28492009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2850
2851 * frame.c (x_get_resource_string): Remove unused.
2852
0307c7d2
JD
28532009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2854
2855 * xterm.c (x_new_font): Call change_frame_size before calling
2856 x_set_window_size, in case frame size won't change.
2857
2858 * frame.c (x_set_font): Remove dead code.
2859
428b13d6
SM
28602009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2861
2862 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2863
5766c380
SM
28642009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2865
2866 * lread.c (Fload): Don't output a message after loading an obsolete
2867 package any more (done in Lisp now).
2868
2fd0161b
CY
28692009-09-12 Chong Yidong <cyd@stupidchicken.com>
2870
2871 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2872
bc5e75b6
SM
28732009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2874
2875 * keymap.c (Fwhere_is_internal): Use nconc2.
2876
c31c985e
AM
28772009-09-11 Alan Mackenzie <acm@muc.de>
2878
2879 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2880 batch mode.
2881
78012bd2
AS
28822009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2883
2884 * xdisp.c (display_mode_element): Detect cycles.
2885
9d889332
SM
28862009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2887
2888 * keymap.c (where_is_internal): Don't erroneously return nil right after
2889 filling the cache.
2890 (where_is_internal_1): Fix up typo.
2891
7ab5d780
GM
28922009-09-11 Glenn Morris <rgm@gnu.org>
2893
2894 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2895 share a common doc-string.
2896
5238a749
SM
28972009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2898
66d77eda
SM
2899 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2900 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2901
5238a749
SM
2902 * keymap.c (QCadvertised_binding): New constant.
2903 (syms_of_keymap): Initialize it.
2904 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2905 if applicable.
2906
19f48442
SM
29072009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2908
50d4ba39
SM
2909 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2910 (parse_menu_item): Streamline since bindings are recomputed all the
2911 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2912 more and don't support lmenu's menu-alias any more either.
2913
a88a5372
SM
2914 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2915 (where_is_internal): Strip it down to only traverse the keymaps.
2916 Move the cache handling from Fwhere_is_internal to here.
2917 (Fwhere_is_internal): Move the handling of remapping and the choice of
2918 the best binding from where_is_internal to here.
2919 Unify the cached/noncached paths, so remapping is also handled
2920 correctly when the cache is used, and so the cache can be used to
2921 speed up remap-handling when applicable.
2922 Give preference to non-remapped bindings.
2923 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2924 non-remapped bindings.
2925 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2926 command remapping.
2927
19f48442
SM
2928 * xdisp.c (display_mode_element): Move list length limit from 50 to
2929 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2930
599498c3 29312009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2932
2933 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2934
f9b7b5ac
SM
29352009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2936
a53af587
JB
2937 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2938 (Bug#4334)
2939
f9b7b5ac
SM
2940 * keymap.c (where_is_internal): Filter out shadowed remappings.
2941 Assume that where_is_internal returns unshadowed bindings to simplify
2942 the code and get rid of the gotos. Use ASIZE.
2943
04f4b72d
JD
29442009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2945
4da146f2
JD
2946 * xterm.c (x_focus_changed): If we get a focusout and pointer
2947 is invisible, make it visible.
2948
04f4b72d
JD
2949 * xterm.h: Remove condition for declaration of
2950 x_*_window_to_frame.
2951
7cef7ce3
SM
29522009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2953
2954 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2955 initial terminal as well.
2956
a54fa5b7
JD
29572009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2958
2959 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2960 x_menubar_window_to_frame.
a54fa5b7
JD
2961
2962 * xterm.c: Remove declarations also in xterm.h
2963 (XTmouse_position): Do not return valid positions
2964 for clicks in the menubar and the toolbar for Gtk+.
2965
2966 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2967 if the widget for the event has the same top level as a frame,
2968 return the frame.
2969 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2970 internal windows, bug #4122.
2971 (x_non_menubar_window_to_frame): Remove.
2972
5a021dd0
GM
29732009-09-02 Glenn Morris <rgm@gnu.org>
2974
2975 * buffer.c (default-major-mode): Move most of the doc from here...
2976 (major-mode): ... to here.
2977
548fe2f3
NR
29782009-08-30 Nick Roberts <nickrob@snap.net.nz>
2979
2980 * process.c (wait_reading_process_output): Keep the descriptor
2981 when pty is used by a non-child process, e.g., in I/O buffer of
2982 GDB this allows inferior to be restarted.
2983
e0840eef
EZ
29842009-08-29 Eli Zaretskii <eliz@gnu.org>
2985
2986 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2987 both branches into one.
2988
82e98df4
SM
29892009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2990
2991 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2992 (main): Use enable-multibyte-characters rather than
2993 default-enable-multibyte-characters. Output a warning message when
2994 running a unibyte session.
2995
890617cb
YM
29962009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2997
2998 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2999 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
3000 (copy_data_segment): Also copy __program_vars section.
3001 (copy_dyld_info) [LC_DYLD_INFO]: New function.
3002 (dump_it) [LC_DYLD_INFO]: Use it.
3003
3004 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
3005
e7adeadc
EZ
30062009-08-28 Eli Zaretskii <eliz@gnu.org>
3007
3008 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
3009 $(SRC)/buildobj.h.
3010 (buildobj.h): Renamed from $(SRC)/buildobj.h.
3011 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
3012 $(SRC)/buildobj.h.
3013 (clean): Add buildobj.h.
3014
3ed8bbdc
TZ
30152009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
3016
3017 * print.c (print_object): Set escapeflag to 1 when printing
3018 hashtable keys and values.
3019
155a6764
SM
30202009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
3021
3022 * lread.c (read_integer): Use doubles (and potentially return a float
3023 number) as we do in string-to-number.
3024 (read1): Use strtol to read integers, signal errors on strtol's
3025 overflow and use floats if strtol's output is too large for
3026 Elisp integers.
3027
877610de
EZ
30282009-08-27 Eli Zaretskii <eliz@gnu.org>
3029
3030 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
3031 (make-buildobj-SH): Fix last change.
3032 (SRC): Move to before where it's first used.
3033
ef73e7be
KH
30342009-08-27 Kenichi Handa <handa@m17n.org>
3035
550c8289
KH
3036 * process.c (send_process): Use encode_coding_object instead of
3037 encode_coding_string to perform eol-conversion even if the string
3038 is unibyte.
3039
60afa08d
KH
3040 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
3041 character.
3042
ef73e7be 3043 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 3044 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 3045
7b3a82d7
DN
30462009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
3047
5654bf63
DN
3048 * callproc.c (Fcall_process): Remove always true #if.
3049
7b3a82d7
DN
3050 * lisp.h: Replace #if 0 code for checking with text pointing to
3051 the --enable-checking configure flag.
3052
3053 * emacs.c (main): Mention the --enable-profiling configure flag
3054 instead of using CFLAGS.
3055
878bde49
KR
30562009-08-26 Ken Raeburn <raeburn@raeburn.org>
3057
3058 * Makefile.in (buildobj.h): New target.
3059 (doc.o): Depend on it.
3060 (temacs${EXEEXT}): Don't generate buildobj.lst.
3061 (mostlyclean): Delete buildobj.h, not buildobj.lst.
3062 * makefile.w32-in ($(SRC)/buildobj.h): New target.
3063 ($(BLD)/doc.$(O)): Depend on it.
3064 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
3065 provided by Eli Zaretskii.)
3066 ($(TEMACS)): Don't generate buildobj.lst.
3067 * doc.c: Include buildobj.h.
3068 (buildobj): New static variable.
3069 (Fsnarf_documentation): Use it, instead of opening and reading
3070 buildobj.lst.
3071
1574224c
MA
30722009-08-25 Michael Albinus <michael.albinus@gmx.de>
3073
3074 * dbusbind.c (Fdbus_call_method)
3075 (Fdbus_call_method_asynchronously): Use English numeric format for
3076 timeout values in doc string.
3077
d9da2f45
KH
30782009-08-25 Kenichi Handa <handa@m17n.org>
3079
ef73e7be
KH
3080 * alloc.c (mark_char_table): New function.
3081 (mark_object): Use mark_char_table for a char-table.
3082
d9da2f45
KH
3083 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
3084 (CHAR_TABLE_REF): Use it.
3085
c8edcc01
KR
30862009-08-23 Ken Raeburn <raeburn@raeburn.org>
3087
3088 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3089 before invoking the newly build emacs to check for load-path
3090 shadowing.
3091
7763401b
GM
30922009-08-22 Glenn Morris <rgm@gnu.org>
3093
3094 * Makefile.in (bootstrap_exe): New variable.
3095 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3096 Use ${bootstrap_exe}.
3097
729eadda
EZ
30982009-08-22 Eli Zaretskii <eliz@gnu.org>
3099
3100 * coding.h (encode_coding_string): Don't encode unibyte strings.
3101 (Bug#4047)
3102
eb4c6ace
MA
31032009-08-22 Michael Albinus <michael.albinus@gmx.de>
3104
3105 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3106
3107 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3108 intended as hotfix only.
3109 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3110
36e34d1b
AR
31112009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3112
3113 * nsterm.m (ns_get_color): Update documentation properly for last
3114 change, and clean up loose ends in the code left by it. Fix
3115 longstanding bug with 16-bit hex parsing, and add support for
3116 yet another X11 format (rgb:r/g/b) for compatibility.
3117 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3118 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3119
f983eb8a
SM
31202009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3121
3122 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3123
3f56d3c6
MA
31242009-08-20 Michael Albinus <michael.albinus@gmx.de>
3125
3126 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3127 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3128 (xd_initialize, xd_pending_messages): Check, whether
3129 $DBUS_SESSION_BUS_ADDRESS is set.
3130
fb641d68
YM
31312009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3132
3133 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3134
3135 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3136
cf59a374
GM
31372009-08-20 Glenn Morris <rgm@gnu.org>
3138
3139 * emacs.c (system-type): Doc fix.
3140
1373f3be
SM
31412009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3142
3143 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3144 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3145
058ed861
MA
31462009-08-18 Michael Albinus <michael.albinus@gmx.de>
3147
1373f3be
SM
3148 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3149 New functions.
058ed861
MA
3150 (xd_initialize): Revert change from 2009-08-16.
3151
563a866e 31522009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3153
3154 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3155 font-group vector, return nil.
5fc05db0 3156
e42bdf01
CY
31572009-08-17 Chong Yidong <cyd@stupidchicken.com>
3158
3159 * process.c (status_notify): Don't perform redisplay.
3160 (Fdelete_process, list_processes_1, process_send_signal):
3161 Expliticly perform redisplay.
3162 (wait_reading_process_output): Always check process status, but
3163 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3164
4230ab74
KR
31652009-08-17 Ken Raeburn <raeburn@raeburn.org>
3166
1373f3be 3167 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3168 (XFLOAT_INIT): New macro for storing a float value.
3169 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3170 * fns.c (sxhash): Copy out the value of a float in order to
3171 examine its bytes.
3172 * dbusbind.c (xd_append_arg): Likewise.
3173
4230ab74
KR
3174 * emacs.c (main): Don't call syms_of_data twice.
3175
a0645cdd
MA
31762009-08-16 Michael Albinus <michael.albinus@gmx.de>
3177
3178 * dbusbind.c (xd_initialize): Add connection file descriptor to
3179 input_wait_mask, in order to let select() detect, whether a new
3180 message has been arrived.
ca4f31ea 3181 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3182
485db0ba
MA
31832009-08-15 Michael Albinus <michael.albinus@gmx.de>
3184
1373f3be
SM
3185 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3186 New functions.
485db0ba
MA
3187
3188 * lisp.h (xd_pending_messages): Declare.
3189
3190 * keyboard.c (readable_events): Call xd_pending_messages.
3191
b5b98ff4
CY
31922009-08-15 Chong Yidong <cyd@stupidchicken.com>
3193
1373f3be 3194 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3195
f8354c6e
CY
3196 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3197
b5b98ff4
CY
3198 * buffer.c (set_buffer_internal_1)
3199 (swap_out_buffer_local_variables): Check for unbound local
3200 variables (Bug#4138).
3201
8b9fc636
EZ
32022009-08-14 Eli Zaretskii <eliz@gnu.org>
3203
3204 * process.c (create_pty): Fix last change.
3205
ce959360
CY
32062009-08-13 Chong Yidong <cyd@stupidchicken.com>
3207
3208 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3209 (xbm_load_image): Caller changed.
64b807c9 3210 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3211
c7baf7e9
NR
32122009-08-13 Nick Roberts <nickrob@snap.net.nz>
3213
3214 * process.c (create_pty): New function.
3215 (Fstart_process): Use it to allow Emacs to just associate a pty
3216 with the buffer. See associated change in gdb-mi.el.
3217 (list_processes_1): Deal with no program name.
3218 (start_process_unwind): Use pid == -2 to mean no process.
3219
1ac9108a
SM
32202009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3221
3222 * cmds.c (nonundocount): New global variable.
3223 (keys_of_cmds): Initialize it.
3224 (Fself_insert_command): Use it to combine upto 20 sequential chars
3225 into a single undo entry, just like the Qself_insert_command code in
3226 keyboard.c does.
3227 Call frame_make_pointer_invisible, also like the Qself_insert_command
3228 code in keyboard.c does.
3229 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3230 than its own local replacement for it.
3231
e267324c
KR
32322009-08-10 Ken Raeburn <raeburn@raeburn.org>
3233
1ac9108a 3234 * fns.c (concat): Don't re-set string length to its current value.
77437343 3235
1ac9108a
SM
3236 * coding.h (decode_coding_string, encode_coding_string):
3237 Use SBYTES macro.
f0bed503 3238
1ac9108a 3239 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3240 (doprnt): Merge with doprnt1, discarding lispstrings code.
3241 * lisp.h (doprnt_lisp): Don't declare.
3242
416e006d
JL
32432009-08-07 Juri Linkov <juri@jurta.org>
3244
3245 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3246
6f7d5780
DN
32472009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3248
3249 * print.c (syms_of_print): Undo previous change.
3250
f19a0f5b
TZ
32512009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3252
3253 * lread.c (read1, syms_of_lread): Read hashtables back from the
3254 readable format.
3255
3256 * print.c (print_preprocess, print_object): Print hashtables fully
3257 and readably.
3258 (syms_of_print): Provide 'hashtable-print-readable.
3259
b9173dc2
AR
32602009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3261
3262 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3263 no family set.
3264 (nsfont_open): Handle case when entity has no family.
3265
1586503c
AR
32662009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3267
3268 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3269 element, not a list, for match case.
3270
087048cd
KH
32712009-07-28 Kenichi Handa <handa@m17n.org>
3272
3273 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3274 rigidly.
3275
3276 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3277 font_parse_xlfd. Check font properties more rigidly.
3278
780c2506
DN
32792009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3280
31fd7c5c
JB
3281 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3282 bsd-common.h.
780c2506 3283
a8c0cc18
KH
32842009-07-27 Kenichi Handa <handa@m17n.org>
3285
3286 * xfaces.c (face_with_height): Call font_clear_prop.
3287
4fbe2306
CY
32882009-07-26 Chong Yidong <cyd@stupidchicken.com>
3289
111d9af3
CY
3290 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3291
3292 * xterm.c (x_term_init): Use Qx.
3293
4fbe2306
CY
3294 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3295
1ac9108a 3296 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3297 (ns_get_color): Revert 2009-07-16 change.
3298
beb0b7f9
EZ
32992009-07-25 Eli Zaretskii <eliz@gnu.org>
3300
3301 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3302 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3303
2baf5e76
KR
33042009-07-25 Ken Raeburn <raeburn@raeburn.org>
3305
1ac9108a
SM
3306 * coding.h (decode_coding_string, encode_coding_string):
3307 Use SCHARS macro.
8890e5f5 3308
2baf5e76 3309 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3310 (load_depth): Delete.
2baf5e76
KR
3311 (Qload_in_progress): New variable.
3312 (load_unwind): Don't reference load_depth or load_in_progress.
3313 (Fload): Likewise; specbind Qload_in_progress instead.
3314 (init_lread): Don't initialize load_depth.
3315 (syms_of_lread): Initialize and protect Qload_in_progress.
3316
1395c6f5
AR
33172009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3318
3319 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3320
4e2f36cf
AR
33212009-07-23 Yavor Doganov <yavor@gnu.org>
3322
3323 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3324
5dd9a6f7
AR
33252009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3326
3327 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3328 Bugs 3792, 3720, 2402.
3329 (ns_lookup_indexed_color): Check for bad index.
3330 (ns_index_color): Init unused slot to 0.
3331 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3332 Bug 3714, possibly 3082.
5dd9a6f7 3333
c902b920
JR
33342009-07-22 Jason Rumney <jasonr@gnu.org>
3335
1ac9108a
SM
3336 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3337 Position IME window at cursor (Bug#2570).
c902b920
JR
3338 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3339 (globals_of_w32fns): Dynamically load functions required above.
3340
3341 * w32term.c (w32_draw_window_cursor): Send message to reposition
3342 any IME window.
3343
090101cf
CY
33442009-07-21 Chong Yidong <cyd@stupidchicken.com>
3345
3346 * fileio.c: Revert 2009-07-16 changes.
3347 (Vauto_save_include_big_deletions): New variable.
3348 (Fdo_auto_save): Disable auto-save only if
3349 auto-save-include-big-deletions is nil.
3350
e6583e3d
CY
33512009-07-21 Chong Yidong <cyd@stupidchicken.com>
3352
3353 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3354 the overflowed pixels into account (Bug#3879).
3355
ece435a5
KR
33562009-07-21 Ken Raeburn <raeburn@raeburn.org>
3357
3358 * lread.c (load_depth): New variable.
3359 (Fload, load_unwind, init_lread): Set it to the load recursion
3360 depth; set load_in_progress as a simple boolean based on the
3361 current load_depth. (Bug#3892)
3362
40b2d973
AR
33632009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3364
3365 * nsfont.m (ns_has_attribute): Remove.
3366 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3367
10be7e0d
JL
33682009-07-18 Juri Linkov <juri@jurta.org>
3369
3370 * process.c (Fset_process_query_on_exit_flag): Mention killing
3371 a buffer in docstring.
3372
fa055055
KH
33732009-07-17 Kenichi Handa <handa@m17n.org>
3374
3375 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3376
042f7b69
YM
33772009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3378
3379 * nsfns.m (Fns_set_alpha): Remove function.
3380 (syms_of_nsfns): Don't defsubr it.
3381
3382 * nsterm.m (ns_get_color): Remove incompatible color formats.
3383 (ns_color_to_lisp): Generate #rrggbb color format string.
3384
4be941e3
RS
33852009-07-16 Richard Stallman <rms@gnu.org>
3386
3387 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3388 (Fset_buffer_auto_saved): Handle save_length = -2.
3389
4e6b227d
CY
33902009-07-16 Chong Yidong <cyd@stupidchicken.com>
3391
3392 * xterm.c (Qx_gtk_map_stock): New var.
3393
3394 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3395 of calling intern each time.
3396
a1856973
YM
33972009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3398
3399 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3400 does tiling.
3401
3402 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3403
497e54d8
KH
34042009-07-14 Kenichi Handa <handa@m17n.org>
3405
72d36834
KH
3406 * font.c (font_vconcat_entity_vectors): New function.
3407 (struct font_sort_data): New member font_driver_preference.
3408 (font_compare): Check font_driver_preference.
3409 (font_sort_entities): The format of the first argument changed.
3410 (font_delete_unmatched): Likewise.
3411 (font_list_entities): The return type changed.
3412 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3413 (font_find_for_lface): Adjuste for the above changes.
3414 Don't suppress the checking of C even if the repertory supports it.
3415 (Flist_fonts): Adjust for the above changes.
72d36834 3416
1ac9108a
SM
3417 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3418 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3419 Reject a font who has adstyle property that is different from a
3420 langname derived from registry property.
1ac9108a 3421 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3422
b6046155
EZ
34232009-07-13 Eli Zaretskii <eliz@gnu.org>
3424
3425 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3426 local copy of dirfilename.
3427
fb6b6049
KH
34282009-07-13 Kenichi Handa <handa@m17n.org>
3429
e2402a5e
KH
3430 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3431 against max_char.
3432
fb6b6049
KH
3433 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3434 calling XSYMBOL (sym).
3435
65156807
EZ
34362009-07-11 Eli Zaretskii <eliz@gnu.org>
3437
1ac9108a
SM
3438 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3439 New function.
3440 (directory_files_internal) [WINDOWSNT]:
3441 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3442 the filesystem of the directory is fast or slow.
3443
3444 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3445 file name.
3446 (is_slow_fs): New function.
3447 (stat): Use it to determine whether to issue more system calls to
3448 get accurate file attributes, when w32-get-true-file-attributes is
3449 `local'.
3450
e0ab5fcf
JD
34512009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3452
3453 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3454 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3455 parameter font-parameter as default to the font dialog.
3456
784ceded
KH
34572009-07-10 Kenichi Handa <handa@m17n.org>
3458
3459 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3460
fb8edc0b
EZ
34612009-07-09 Eli Zaretskii <eliz@gnu.org>
3462
1ac9108a 3463 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3464
fb8edc0b
EZ
3465 * w32.c (stat): Treat UNC file names as residing on remote
3466 drives. (Bug#3542)
3467
635c75b1
KH
34682009-07-09 Kenichi Handa <handa@m17n.org>
3469
3470 * fontset.c (fontset_find_font): Fix previous change.
3471
c1d5ce94
MA
34722009-07-08 Michael Albinus <michael.albinus@gmx.de>
3473
3474 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3475 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3476 error flag.
3477
edb61b39
KH
34782009-07-08 Kenichi Handa <handa@m17n.org>
3479
374bf7e4
KH
3480 * fontset.c (fontset_find_font): Fix the logic of handling
3481 charset_matched.
3482 (font_for_char): Delete unused var.
3483 (generate_ascii_font_name): Delete it.
3484
edb61b39
KH
3485 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3486
3487 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3488 (encode_coding_sjis): Fix the code range check.
3489
0f3f018c
CY
34902009-07-07 Chong Yidong <cyd@stupidchicken.com>
3491
3492 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3493 (Fexpand_file_name): Copy string data properly (Bug#3772).
3494
fcaf6f3a
JD
34952009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3496
3497 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3498 first MapNotify.
3499
6809ca75
KH
35002009-07-07 Kenichi Handa <handa@m17n.org>
3501
3502 * character.h (unibyte_has_multibyte_table): Delete extern.
3503 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3504
3505 * charset.c (Fset_charset_priority): Update charset_unibyte.
3506 (syms_of_charset): Initialize charset_unibyte.
3507
3508 * character.c (unibyte_has_multibyte_table): Delete it.
3509 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3510 charset_unibyte.
3511 (multibyte_char_to_unibyte_safe): Likewise.
3512 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3513
1ac9108a 3514 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3515 (x_produce_glyphs): Likewise.
3516
3517 * .gdbinit (xcharset): Fix the treating $arg0.
3518
ad9e2d54
EZ
35192009-07-04 Eli Zaretskii <eliz@gnu.org>
3520
3521 Emulation of `getloadavg' on MS-Windows.
3522 * w32.c: Include float.h
3523 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3524 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3525 (get_native_system_info, get_system_times): New functions.
3526 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3527 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3528 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3529 g_b_init_get_system_times, and num_of_processors.
3530
0a3472c7
JR
35312009-07-03 Jason Rumney <jasonr@gnu.org>
3532
3533 * w32term.c (w32_initialize): Use standard types.
3534
80904120
EZ
35352009-07-03 Eli Zaretskii <eliz@gnu.org>
3536
3537 * dired.c (Ffile_attributes): Decode user and group names by the
3538 locale's encoding. (Bug#3443)
3539
6978862d
DN
35402009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3541
f8d23104
DN
3542 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3543 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3544
3545 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3546
3547 * term.c (init_tty): Remove spurious #ifdef.
3548
6978862d
DN
3549 * m/mips.h: Mention this file is also used for netbsd.
3550 * m/pmax.h: Remove file.
3551
e044e4fc
JD
35522009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3553
3554 * xterm.h (struct x_display_info): Add invisible_cursor.
3555 (struct x_output): Add current_cursor.
3556
3557 * xterm.c (XTtoggle_invisible_pointer): New function.
3558 (x_define_frame_cursor): Don't define cursor if invisible or the
3559 same as before. Set current_cursor.
3560 (x_create_terminal): Set toggle_invisible_pointer_hook.
3561
3562 * xfns.c (make_invisible_cursor): New function.
3563 (x_set_mouse_color): Call make_invisible_cursor.
3564 Set current_cursor.
3565 (x_window): Set current_cursor.
3566
3567 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3568
3569 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3570 inserting a character.
3571 (read_avail_input): Call frame_make_pointer_visible.
3572
3573 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3574 (frame_make_pointer_invisible, frame_make_pointer_visible):
3575 New functions.
e044e4fc
JD
3576 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3577
3578 * frame.h: Declare frame_make_pointer_invisible and
3579 frame_make_pointer_visible.
3580 (struct frame): Add pointer_invisible.
3581
574c8efa
JD
35822009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3583
7b507248
JD
3584 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3585 frame isn't visible.
3586 (xg_frame_resized): If width/height is -1, get size of window
3587 from X server.
3588
3589 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3590 for MapNotify.
3591
835bdaa7 3592 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3593 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3594 (flush_and_sync): Reintroduce.
574c8efa 3595
3f1c6666 35962009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3597
31fd7c5c 3598 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3599
3600 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3601 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3602
3603 * frame.h: Declare Qsticky.
3604
cad9ef74
JD
3605 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3606
3607 * nsfns.m (ns_frame_parm_handlers): Ditto.
3608
3609 * frame.c: Declare Qsticky.
3610 (frame_parms): Add sticky.
3611
3612 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3613
3614 * xterm.h: Declare x_set_sticky.
3615
3616 * xterm.c (x_set_sticky): New function.
3617
69b16610
JD
3618 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3619 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3620 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3621
3622 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3623
3624 * frame.c: Qmaximized is new.
3625 (x_set_frame_parameters): Do not handle fullscreen specially.
3626 Only set width and height if explicitly set.
3627 (x_set_fullscreen): Handle Qmaximized.
3628 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3629 (syms_of_frame): Initialize Qmaximized.
3630
1ac9108a
SM
3631 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3632 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3633
3634 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3635 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3636 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3637 set gravity to NorthWestGravity when USE_GTK.
3638 (set_wm_state): New function.
31fd7c5c 3639 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3640 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3641 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3642 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3643 to x_real_positions and x_fullscreen_adjust.
3644
3645 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3646 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3647 flush_and_sync.
3648 (xg_height_changed): New function.
3649 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3650 and gtk_window_set_policy. Set frame gravity after parsing the
3651 geometry string.
3f1c6666
JD
3652 (xg_update_frame_menubar, free_frame_menubar)
3653 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3654 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3655 Remove calls to xg_frame_set_char_size.
3656
fd503d99
KH
36572009-07-01 Kenichi Handa <handa@m17n.org>
3658
3659 * keyboard.c (decode_keyboard_code): New function.
3660 (tty_read_avail_input): Decode the input bytes if necessary.
3661
1ac9108a
SM
3662 * coding.c (setup_coding_system):
3663 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3664 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3665 use Qno_conversion.
3666
24ed93fb
YM
36672009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3668
3669 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3670
99061dfc
CY
36712009-06-30 Chong Yidong <cyd@stupidchicken.com>
3672
1ac9108a 3673 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3674
ff90fbde
JR
36752009-06-30 Jason Rumney <jasonr@gnu.org>
3676
3677 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3678 is already loaded.
3679 Set user model ID if supported (bug#1849).
3680
5f445726
JM
36812009-06-29 Jim Meyering <meyering@redhat.com>
3682
3683 Remove useless if-before-xfree test.
3684 * nsfont.m (nsfont_close): Remove useless test.
3685 * term.c (delete_tty): Likewise.
3686 * w32.c (system_process_attributes): Likewise.
3687 * w32font.c (w32font_close): Likewise.
3688 * xfaces.c (x_free_gc): Likewise.
3689 * xselect.c (buffer): Likewise.
3690
b9607587
AS
36912009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3692
3693 * process.c (send_process): Keep decoded string in a local
3694 variable and protect it from GC. (Bug#3521)
3695
89ba96f4
EZ
36962009-06-28 Eli Zaretskii <eliz@gnu.org>
3697
3698 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3699 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3700
098a1589
CY
37012009-06-28 Chong Yidong <cyd@stupidchicken.com>
3702
485422be
CY
3703 * xdisp.c (start_display, handle_face_prop)
3704 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3705 (redisplay_window, try_window_id, produce_image_glyph):
3706 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3707
098a1589
CY
3708 * xterm.c (x_update_window_begin, x_new_focus_frame)
3709 (x_scroll_bar_handle_click, handle_one_xevent)
3710 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3711 (x_make_frame_visible, x_make_frame_invisible)
3712 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3713 code chunks that are now obsolete.
3714
78c38319
MA
37152009-06-28 Michael Albinus <michael.albinus@gmx.de>
3716
3717 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3718 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3719 for hours, when optimzation is enabled.
3720 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3721 (xd_read_message): Make them static.
3722
4189ed40
CY
37232009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3724
3725 * term.c (turn_on_face): Allow simultaneously bold and dim
3726 terminal faces (Bug#3530).
3727
cd9b5e16
CY
37282009-06-27 Chong Yidong <cyd@stupidchicken.com>
3729
4e23bedb
CY
3730 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3731
cd9b5e16
CY
3732 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3733 truncation glyphs (Bug#3686).
3734
07cc3c35
GM
37352009-06-27 Glenn Morris <rgm@gnu.org>
3736
3737 * m/pmax.h: Restore file, with only netbsd portions.
3738
31fd7c5c 37392009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3740
cd9b5e16 3741 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3742
42d4a64f
KH
37432009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3744
3745 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3746 the arg FORCE_SYMBOL.
3747
930fe55b 37482009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3749
3750 * fontset.c (fontset_find_font): When a usable rfont_def is found
3751 in a fallback font-group, make it the first element of the group.
3752
57ebc3fd
CY
37532009-06-24 Chong Yidong <cyd@stupidchicken.com>
3754
3755 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3756
f084f942
KH
37572009-06-24 Kenichi Handa <handa@m17n.org>
3758
3759 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3760 set for C.
3761 (fontset_font): Record the availability of a font for C both in
3762 the realized fontsets of the current one and the default one.
3763
2f686c87
DN
37642009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3765
3766 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3767 conditional, it is always defined on AIX.
3768
666e158e
MB
37692009-06-23 Miles Bader <miles@gnu.org>
3770
3771 * window.c (Vrecenter_redisplay): New variable.
3772 (syms_of_window): Initialize it.
3773 (Qtty): New extern declaration.
3774 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3775
c6da7cd2
JM
37762009-06-23 Jim Meyering <meyering@redhat.com>
3777
1ac9108a
SM
3778 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3779 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3780 pointer dereferences are guaranteed to be valid.
c6da7cd2 3781
678dca3d
KH
37822009-06-23 Kenichi Handa <handa@m17n.org>
3783
74d75424
KH
3784 * emacs.c (main): Call init_font ().
3785
3786 * font.h (Vfont_log): Extern it.
3787 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3788
3789 * font.c (font_sort_entities, font_list_entities)
3790 (font_matching_entity, font_open_entity)
3791 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3792 (Vfont_log): Delete static.
3793 (font_log_env_checked): Delete this variable.
3794 (font_add_log): Don't check font_log_env_checked.
3795 (font_deferred_log): Check Vfont_log.
3796 (init_font): New function.
3797
678dca3d
KH
3798 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3799
3800 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3801
3802 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3803
3804 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3805
3806 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3807 (face_for_char): Don't call font_deferred_log here.
3808 (font_for_char): Likewise.
3809
8a668709
CY
38102009-06-22 Chong Yidong <cyd@stupidchicken.com>
3811
9a01ee33
CY
3812 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3813 rather than its background_width for drawing the overline and
3814 underline (Bug#489).
3815
3816 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3817 rather than its background_width for drawing the overline and
3818 underline (Bug#489).
ec7c9926
CY
3819 (xg_default_icon_file): New variable.
3820 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3821 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3822
8a668709
CY
3823 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3824 (load_overlay_strings): Remove externs.
3825 (fast_find_position): Function deleted.
3826 (mouse_face_from_buffer_pos): New function, based on
3827 fast_find_position. Correctly handle before-strings,
3828 display-strings, and after-strings (Bug#1220).
3829 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3830
4d4c02d8
CY
38312009-06-21 Chong Yidong <cyd@stupidchicken.com>
3832
1ac9108a 3833 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3834 (move_it_in_display_line_to, move_it_in_display_line_to)
3835 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3836
70243478
CY
38372009-06-21 Chong Yidong <cyd@stupidchicken.com>
3838
3839 * Branch for 23.1.
3840
13087e59
JR
38412009-06-21 Jason Rumney <jasonr@gnu.org>
3842
3843 * w32term.c (keyboard_codepage): New static variable.
3844 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3845 (w32_read_socket) [WM_CHAR]: Use it to decode character
3846 input (bug#3237).
3847 (w32_initialize): Initialize it.
3848 (codepage_for_locale): New function.
3849
4735b74e
KR
38502009-06-20 Ken Raeburn <raeburn@raeburn.org>
3851
3852 * process.c (status_message): Pass Faset index argument as a lisp
3853 object, so as to work with USE_LISP_UNION_TYPE.
3854
0e727afa
YM
38552009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3856
3857 * coding.c (Ffind_coding_systems_region_internal):
3858 Cache checked characters.
3859
cf299835
KH
38602009-06-18 Kenichi Handa <handa@m17n.org>
3861
1ac9108a 3862 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3863
90f20d94
AS
38642009-06-18 Andreas Schwab <aschwab@redhat.com>
3865
3866 * xdisp.c (redisplay_internal): Check that the frame is still
3867 live after redisplay of its windows.
3868 (redisplay_windows): Check that the window is still live.
3869
7f1faf1c
KH
38702009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3871
3872 * coding.c (detect_coding_utf_16): Fix previous change.
3873
cc13543e
KH
38742009-06-16 Kenichi Handa <handa@m17n.org>
3875
3876 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3877 UTF-16 by checking the dispersion of Eth and Oth bytes.
3878
977b85f4
AS
38792009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3880
3881 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3882
66bd43d1
KH
38832009-06-15 Kenichi Handa <handa@m17n.org>
3884
3885 * process.c (status_message): Fix previous change. Be sure to
3886 decode a localized string.
3887
cb5ca9c5
YM
38882009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3889
3890 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3891 add comment explaining why.
3892
ec7709ba 38932009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3894
ec7709ba 3895 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3896
4b7f335c
AR
38972009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3898
3899 * nsfont.m (ns_attribute_value): Remove.
3900 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3901 (ns_has_attribute): Shrink the normal range.
3902 (ns_findfonts): Don't worry about requested spec in determining
3903 need for synthItal.
e41820ee 3904 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3905
73b26103
SZ
39062009-06-14 Seiji Zenitani <zenitani@mac.com>
3907
3908 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3909
5753e4da
KH
39102009-06-11 Kenichi Handa <handa@m17n.org>
3911
3912 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3913 overhang for the static composition case.
3914
3561b671
KH
39152009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3916
5753e4da
KH
3917 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3918 overhang for the automatic composition case.
3919
3561b671
KH
3920 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3921 composition case.
3922
852bbd41
CY
39232009-06-10 Chong Yidong <cyd@stupidchicken.com>
3924
3925 * xdisp.c (get_next_display_element): When handling wrap-prefix
3926 and line-prefix, treat \n as a control character (bug#3502).
3927
9903d1e6
KH
39282009-06-10 Kenichi Handa <handa@m17n.org>
3929
3930 * font.c (font_parse_family_registry): Fix for one-char foundry.
3931 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3932
0bcbaaaa
CY
39332009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3934
3935 * process.c (status_message): Fix handling of multibyte signal
3936 string (Bug#3499).
3937
40aa3f13
JM
39382009-06-09 Jim Meyering <meyering@redhat.com>
3939
1f80c7e2
CY
3940 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3941 color name is missing.
40aa3f13 3942
72d51285
KH
39432009-06-09 Kenichi Handa <handa@m17n.org>
3944
3945 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3946 FROM-CODE and TO-CODE are codepoints of CHARSET.
3947
c1d04d84
AR
39482009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3949
3950 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3951
39522009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3953
3954 Changes to support :script/:lang/:otf in NS font driver.
3955 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3956 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3957 indicate not part of font driver interface, and change callers.
3958 (ns_get_family): Remove pointless null check.
3959 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3960 ns_spec_to_descriptor, ns_descriptor_to_entity.
3961 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3962 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3963 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3964 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3965 (ns_get_req_script, ns_accumulate_script_ranges)
3966 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3967 New functions.
3968 (nsfont_list, nsfont_match): Use ns_findfonts.
3969 (nsfont_open): Use font descriptor instead of traits.
3970 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3971 (dump_glyphstring): Rename to ns_dump_glyphstring.
3972
c7eb9816
AR
3973 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3974
c1d04d84
AR
3975 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3976
3977 * fontset.c (fontset_from_font): Remove NS-specific code.
3978
ec7709ba 39792009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3980
3981 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3982 nonactive windows.
3983
31fd7c5c 39842009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3985
1ac9108a 3986 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3987
68852c13 39882009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3989
3990 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3991
6756cd1d
CY
39922009-06-07 Chong Yidong <cyd@stupidchicken.com>
3993
3994 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3995 account for the overflowing of newlines into the last glyph on the
3996 display line (Bug#3482).
3997
28bf482a
DR
39982009-06-05 David Reitter <david.reitter@gmail.com>
3999
ec7709ba
JB
4000 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
4001 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
4002 Fns_selection_exists_p, Fns_selection_owner_p.
4003
fdb55376
JR
40042009-06-03 Jason Rumney <jasonr@gnu.org>
4005
4006 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
4007 available. (Bug#3379)
4008
05129fbe
KH
40092009-05-29 Kenichi Handa <handa@m17n.org>
4010
1ac9108a
SM
4011 * coding.c (get_translation_table):
4012 Check Venable_character_translation.
05129fbe 4013
ec7709ba 40142009-05-26 David Reitter <david.reitter@gmail.com>
15891144 4015
ec7709ba
JB
4016 * nsterm.m (ns_raise_frame): Only raise frame if visible.
4017 (x_make_frame_visible): Move frame to front rather than calling
15891144 4018 ns_raise_frame().
ec7709ba 4019 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 4020 isn't key window.
ec7709ba 4021 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
4022 drawRect may be called by NSView even if the frame is hidden.
4023
ec7709ba
JB
4024 * nsfns.m (Fx_create_frame): Follow other ports in
4025 determining visibility; default to t. Ensure async_visible is set.
15891144 4026
21f73755
EZ
40272009-05-23 Eli Zaretskii <eliz@gnu.org>
4028
4029 * dired.c (Ffile_attributes): Doc fix.
4030
34001e41
CY
40312009-05-22 Chong Yidong <cyd@stupidchicken.com>
4032
4033 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
4034
46306a17
SM
40352009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
4036
4037 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
4038 and xfont_scratch_props.
4039 (syms_of_xfont): Do it here instead.
4040 (xfont_find_ccl_program): Delete, unused.
4041 (xfont_open): Delete unused var `i'.
4042
ef6e0694
KH
40432009-05-21 Kenichi Handa <handa@m17n.org>
4044
4045 * fontset.c (Qlatin): Don't make it static.
4046
46306a17
SM
4047 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
4048 New functions.
ef6e0694
KH
4049 (xfont_scripts_cache, xfont_scratch_props): New variables.
4050 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
4051 (xfont_list_pattern): Argument changed. Callers changed.
4052 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
4053 (xfont_list): Don't reject a font spec with :script property.
4054 (xfont_has_char): Fix setting of encoding.
4055 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
4056 xfont_scratch_props.
4057
40582009-05-19 Kenichi Handa <handa@m17n.org>
4059
46306a17 4060 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
4061 Callers changed.
4062
40632009-05-18 Kenichi Handa <handa@m17n.org>
4064
4065 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
4066
ac71ced7
SM
40672009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
4068
4069 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
4070 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
4071
1c6d1051
YM
40722009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4073
4074 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
4075 (x_delete_terminal): Dissociate resource database from display and
4076 then call XrmDestroyDatabase before closing display.
4077
9b9b779c
AR
40782009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
4079
4080 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
4081 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
4082 whether selected frame is viable before raising it (based on patch
4083 by David Reitter), and improve commentary.
4084 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 4085
cccd42d5
KH
40862009-05-15 Kenichi Handa <handa@m17n.org>
4087
4088 * font.c (Ffont_spec): Check arguments.
4089
337fbd17
CY
40902009-05-14 Chong Yidong <cyd@stupidchicken.com>
4091
4092 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4093 weight when testing attributes (Bug#3282).
4094
47a6002f
JD
40952009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4096
4097 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4098 what we expect to get in the next ConfigureNotify event.
4099
9cb363db
YM
4100 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4101 before Xft one (Bug#1696).
4102
b9126609
CY
41032009-05-07 David Reitter <david.reitter@gmail.com>
4104
4105 * nsfns.m (Fx_display_planes): Compute bitplanes using
4106 NSBitsPerPixelFromDepth (Bug#3207).
4107
27a69fd9
CY
41082009-05-10 Chong Yidong <cyd@stupidchicken.com>
4109
4110 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4111
00f37552
TTN
41122009-05-10 Ulrich Mueller <ulm@gentoo.org>
4113
4114 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4115
2d82a920
DR
41162009-05-07 David Reitter <david.reitter@gmail.com>
4117
ec7709ba
JB
4118 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4119 Respect mouse face background.
2d82a920 4120
46b0d52d
DR
41212009-05-07 David Reitter <david.reitter@gmail.com>
4122
ec7709ba
JB
4123 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4124 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4125 in ns_update_begin and ns_update_end.
4126
ce1b23bb
SM
41272009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4128
5996e1b7
SM
4129 * nsfns.m (ns_get_screen): Rewrite.
4130 Don't presume selected-frame is of type `ns'.
4131
ba98e3a0
SM
4132 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4133 all drivers.
4134
ce1b23bb
SM
4135 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4136
bcda200f
YM
41372009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4138
4139 * keyboard.h (add_user_signal): Fix typo in extern.
4140
4141 * lisp.h (add_user_signal): Remove extern.
4142
4143 * unexelf.c (unexec): Consider a section to precede the .bss section
4144 if its addresses overlap that of .bss.
4145 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4146 instead of dumping process.
4147
864660a2
SM
41482009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4149
4150 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4151
50da4e56
SM
41522009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4153
4154 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4155
51520a1a
DN
41562009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4157
4158 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4159 any statements.
4160
409ea3a1
AS
41612009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4162
59c4c60f
AS
4163 * process.c (read_process_output): Make sure the current buffer is
4164 always restored.
4165
409ea3a1
AS
4166 * coding.c (record_conversion_result): Don't modify
4167 Vlast_code_conversion_error for successful result.
4168 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4169
56f00ed2
KH
41702009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4171
4172 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4173 (load_charset_map): Remove unnecessary code.
56f00ed2 4174
4491c9d2
DR
41752009-04-30 David Reitter <david.reitter@gmail.com>
4176
35f5b128 4177 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4178 through f24.
4179
6970f632
CY
41802009-04-30 Chong Yidong <cyd@stupidchicken.com>
4181
4182 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4183
4184 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4185 face_at_buffer_position.
4186 (face_before_or_after_it_pos, get_next_display_element)
4187 (note_mouse_highlight): Update face_at_buffer_position call.
4188
4189 * term.c (term_mouse_highlight):
4190 * msdos.c (IT_note_mouse_highlight):
4191 * fontset.c (Finternal_char_font):
35f5b128 4192 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4193
4194 * dispextern.h (face_at_buffer_position): Update prototype.
4195
0c616f63
KH
41962009-04-30 Kenichi Handa <handa@m17n.org>
4197
35f5b128 4198 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4199
ad3aaf33
AS
42002009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4201
4202 * callproc.c (Fcall_process): Fix GC protection. Make sure
4203 current buffer is always restored.
4204
c3c963a0
YM
42052009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4206
4207 * atimer.c (init_atimer): Also clear stopped_atimers.
4208
4209 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4210
7e3386cb
YM
4211 * process.c (create_process): Clean up merger residues of
4212 2008-07-17 change.
4213
91f68422
CY
42142009-04-29 Ulrich Mueller <ulm@gentoo.org>
4215
4216 * lread.c (Vread_circle): New variable.
4217 (read1): Disable recursive read if Vread_circle is nil.
4218
24b34550
KH
42192009-04-29 Kenichi Handa <handa@m17n.org>
4220
4221 * fontset.h (set_default_ascii_font): Delete extern.
4222
4223 * fontset.c (set_default_ascii_font): Delete this unused function.
4224
4225 * frame.c (x_set_font): When ARG is a font-object, check if the
4226 font-object matches with the ASCII font-spec of the frame's
9c358bda 4227 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4228
77bf07e1
AS
42292009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4230
4231 * fns.c (Flocale_info): Protect vector from GC during decoding.
4232
4233 * process.c (Fstart_process): Protect argv strings from GC during
4234 encoding.
4235
2c55aacf
AS
42362009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4237
4238 * sysdep.c: Include <ctype.h>.
4239
b892d3c9
DR
42402009-04-27 David Reitter <david.reitter@gmail.com>
4241
35f5b128 4242 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4243 Remove commented-out code.
4244
9d0644c4
JB
42452009-04-26 Johan Bockgård <bojohan@gnu.org>
4246
4247 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4248
b7053016
JR
42492009-04-25 Jason Rumney <jasonr@gnu.org>
4250
4251 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4252
4e8231f3
YM
42532009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4254
4255 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4256 Swap bytes in short integer if fringe bitmap width > 8.
4257
493dcf2c
KH
42582009-04-23 Kenichi Handa <handa@m17n.org>
4259
4260 * xfaces.c (Fx_list_fonts): If a font size is specified in
4261 PATTERN, set it in returned scalable fonts.
4262
401e9e57
CY
42632009-04-22 Chong Yidong <cyd@stupidchicken.com>
4264
708e05dc
CY
4265 * keyboard.c (Fset_input_meta_mode): Doc fix.
4266
4267 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4268
1ac9108a 4269 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4270
4271 * coding.c (Fterminal_coding_system): Doc fix.
4272
4273 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4274 (Fx_display_pixel_height, Fx_display_planes)
4275 (Fx_display_color_cells, Fx_server_max_request_size)
4276 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4277 (Fx_display_mm_height, Fx_display_mm_width)
4278 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4279 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4280 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4281 (check_x_display_info): Handle terminal objects instead of
4282 terminal ids.
4283
401e9e57
CY
4284 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4285 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4286 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4287 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4288
df80c7f0
KH
42892009-04-21 Kenichi Handa <handa@m17n.org>
4290
5a8f12af 4291 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4292 (font_score): Check AVGWIDTH too.
908567ef 4293
df80c7f0
KH
4294 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4295 worst case.
1ac9108a
SM
4296 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4297 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4298
705af33f
JR
42992009-04-19 Jason Rumney <jasonr@gnu.org>
4300
4301 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4302 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4303
4304 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4305 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4306 get_phys_cursor_geometry.
4307
b71ac3dd 4308 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4309 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4310 using get_phys_cursor_geometry.
4311
4312 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4313 correctly calculated.
4314
dc2933eb
JD
43152009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4316
1ac9108a
SM
4317 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4318 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4319 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4320 is deprecated.
4321
973e7849
AS
43222009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4323
4324 * font.c (font_put_frame_data): Use xfree instead of free.
4325
314d66f4
JB
43262009-04-17 Juanma Barranquero <lekktu@gmail.com>
4327
4328 * w32font.c (Qja, Qko): Remove declarations.
4329 (syms_of_w32font): Don't DEFSYM them.
4330
cf702558
CY
43312009-04-17 Chong Yidong <cyd@stupidchicken.com>
4332
4333 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4334
4335 * font.h (Qja, Qko): Extern them.
4336
4337 * ftfont.c (Qja, Qko): Remove declarations.
4338
4339 * xfont.c (Qja, Qko): Remove declarations.
4340
b50504f5
KH
43412009-04-17 Kenichi Handa <handa@m17n.org>
4342
bde25748
KH
4343 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4344 string from a vector to handle Latin-1 characters correctly.
4345
b50504f5
KH
4346 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4347 entity even if the cache hits.
4348
f4646fff
AS
43492009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4350
4351 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4352 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4353
e7deaab0
AS
4354 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4355 * lisp.h: Adjust prototypes.
4356
0a0e7d49
CY
43572009-04-16 Chong Yidong <cyd@stupidchicken.com>
4358
4359 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4360 change (Bug#3003).
4361
3c908a57
KH
43622009-04-16 Kenichi Handa <handa@m17n.org>
4363
1ac9108a 4364 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4365
4366 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4367 adstyle.
4368
4369 * ftfont.c (Qja, Qko): Don't make them static.
4370 (enum ftfont_cache_for): New enum.
4371 (fc_charset_table): Undo the previous change.
4372 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4373 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4374 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4375 non-scarable font, try to get AVERAGE_WIDTH.
4376 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4377 Change ft_face_cache from a list of a hash-table. Don't check
4378 `ja' and `ko' adstyle here.
4379 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4380 FTFONT_CACHE_FOR_CHARET.
4381 (ftfont_get_charset): Undo the previous change.
1ac9108a 4382 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4383 (ftfont_close): Likewise.
4384 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4385
4386 * font.c (font_sort_entites): Change the meaning of the arg
4387 BEST-ONLY. Don't optimize for VEC of lenght 1.
4388 (font_select_entity): Just return the value of font_sort_entites.
4389
4390 * xfaces.c (merge_face_vectors): Reflect font properties in
4391 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4392 font_clear_prop if a face attribute doesn't change.
4393
3c908a57
KH
4394 * charset.h (charset_ksc5601): Extern it.
4395
4396 * charset.c (charset_ksc5601): New variable.
4397 (Fdefine_charset_internal): Set charset_ksc5601.
4398 (init_charset_once): Initialize charset_ksc5601 to -1.
4399
d65859c3
DN
44002009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4401
4402 * fileio.c (history_delete_duplicates): Remove unused declaration.
4403
4404 * callint.c (history_delete_duplicates): New declaration.
4405 (Fcall_interactively): Remove command history duplicates when
4406 history_delete_duplicates is true.
4407
3ba010e5
EZ
44082009-04-14 Eli Zaretskii <eliz@gnu.org>
4409
4410 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4411
06f19b91
KH
44122009-04-14 Kenichi Handa <handa@m17n.org>
4413
4414 * font.c (Ffont_info): Fix docstring. Fix the second element of
4415 the returned value (bug#2949).
4416
2cce8bfc
CY
44172009-04-14 Chong Yidong <cyd@stupidchicken.com>
4418
4419 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4420
d156542d
KH
44212009-04-14 Kenichi Handa <handa@m17n.org>
4422
4423 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4424 encoding charset is ascii_compatible.
4425
4426 * charset.c (Fdefine_charset_internal): Make charset
4427 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4428 code_offset is 0, and covers all ASCII characters.
4429
86fa089e
SM
44302009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4431
4432 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4433 (ns_string_to_pasteboard_internal):
4434 * nsmenu.m (process_dialog):
4435 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4436 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4437 * lisp.h (Fx_load_color_file): Declare.
4438
a8a3728b
KH
44392009-04-13 Kenichi Handa <handa@m17n.org>
4440
1ac9108a 4441 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4442 (font_select_entity): Suppress the code to optimize for the same
4443 kind of fonts.
4444 (font_load_for_lface): Get a font that supports at least ASCII
4445 characters.
4446
4447 * ftfont.c (Qja, Qko): New variables.
4448 (fc_charset_table): Delete uniquifier data for iso8859-1.
4449 (ftfont_get_latin1_charset): New function.
4450 (get_adstyle_property): New function.
4451 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4452 bitmap fonts.
4453 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4454 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4455 `ko' or `ja'.
4456 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4457 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4458 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4459 property.
4460 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4461 (syms_of_ftfont): DEFSYM Qja and Qko.
4462
483670b5
KH
44632009-04-09 Kenichi Handa <handa@m17n.org>
4464
12b55765
KH
4465 * charset.c (map_charset_chars): For a charset of `superset'
4466 method, fix calculation of code range.
4467
483670b5
KH
4468 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4469 from the list of extra properties.
4470 (font_clear_prop): Be sure to delete `:name' font property.
4471
57d3b93b
KH
44722009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4473
b4b2c2ca
YM
4474 * dispnew.c (redraw_overlapping_rows): Fix detection of
4475 overlapping for topmost and bottommost rows.
4476
1ac9108a 4477 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4478
472c3609
JR
44792009-04-06 Jason Rumney <jasonr@gnu.org>
4480
4481 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4482
ab193662
KH
44832009-04-06 Kenichi Handa <handa@m17n.org>
4484
4485 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4486
4487 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4488
0c26f026
KH
44892009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4490
4491 * ftfont.c (ftfont_open): Fix checking of the return value of
4492 FT_Load_Char. Fix setting font->underline_thickness.
4493
e173bbce
CY
44942009-04-04 Chong Yidong <cyd@stupidchicken.com>
4495
4496 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4497 (Fterminal_parameters, Fterminal_parameter)
4498 (Fset_terminal_parameter): In doc string, refer to terminal
4499 objects rather than terminal ids.
4500
693a2698
EZ
45012009-04-04 Eli Zaretskii <eliz@gnu.org>
4502
4503 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4504 ret_lim_data. (Bug#2867)
4505
d5221487
CY
45062009-04-03 Chong Yidong <cyd@stupidchicken.com>
4507
4508 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4509 so they don't get wider than the window, matching 2006-01-23
4510 change to the partner function in xdisp.c (Bug#2800).
4511
223509a3
KH
45122009-04-03 Kenichi Handa <handa@m17n.org>
4513
4514 * print.c (print_object): Make each lowest sub_char_table start a
4515 new line (Bug#2866).
4516
74fcd0b1
KH
45172009-04-02 Kenichi Handa <handa@m17n.org>
4518
4519 * fontset.c (fontset_font): Record no-font when a fontset
4520 explicitly tells not to try another font-specs.
4521
c542407d
SM
45222009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4523
4524 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4525
e3869731
KH
45262009-03-30 Kenichi Handa <handa@m17n.org>
4527
d8d2f142
KH
4528 * fontset.c (fontset_from_font): Specify only registry in a
4529 font-spec for all characters supported by that registry.
4530
e3869731
KH
4531 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4532 even if HAVE_M17N_FLT is not defined.
4533
5da5f805
CY
45342009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4535
4536 * ftfont.c: Conditionalize prototyping and use of
4537 ftfont_variation_glyphs.
4538
ab226c50
SM
45392009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4540
9628fed7
SM
4541 * frame.c (delete_frame): Work around compiler bug.
4542
4543 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4544 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4545 Some more EMACS_INT.
4546 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4547
4548 * xdisp.c (dump_glyph): Fix typo.
4549
ae19ba7c
SM
4550 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4551 (adjust_markers_gap_motion, adjust_markers_for_delete)
4552 (adjust_markers_for_insert, adjust_point)
4553 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4554 (make_gap, copy_text, count_size_as_multibyte, insert)
4555 (insert_and_inherit, insert_before_markers)
4556 (insert_before_markers_and_inherit, insert_1)
4557 (count_combining_before, count_combining_after, insert_1_both)
4558 (insert_from_string, insert_from_string_before_markers)
4559 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4560 (insert_from_buffer_1, adjust_after_replace)
4561 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4562 (replace_range_2, del_range, del_range_1, del_range_byte)
4563 (del_range_both, del_range_2, modify_region)
4564 (prepare_to_modify_buffer, signal_before_change)
4565 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4566 for buffer positions and sizes.
4567 * lisp.h: Adjust prototypes accordingly.
4568
4569 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4570 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4571 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4572
ab226c50
SM
4573 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4574
46dfb8fb
JD
45752009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4576
4577 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4578 lines and columns so we keep the same pixel height and width.
4579
4580 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4581 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4582 (x_handle_net_wm_state): New function to update frame parameter
4583 fullscreen.
4584 (x_term_init): Initialize atoms for _NET_WM_STATE.
4585
4586 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4587
d347e494
SM
45882009-03-27 Kevin Ryde <user42@zip.com.au>
4589
4590 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4591 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4592 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4593 (Fgpm_mouse_stop): Pass that new parameter.
4594 * termhooks.h (close_gpm): Adjust prototype.
4595
84db11d6
SM
45962009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4597
c95a5008
SM
4598 * lisp.h (Fx_focus_frame): Declare.
4599
84db11d6
SM
4600 * callint.c (Fcall_interactively): For '^' just delegate the work to
4601 handle-shift-selection.
4602 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4603
0a1958d6
CY
46042009-03-24 Chong Yidong <cyd@stupidchicken.com>
4605
0bfdff23
CY
4606 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4607
0a1958d6
CY
4608 * data.c (Qinteractive_form): New variable.
4609 (Finteractive_form): Use it.
4610
4611 * eval.c (Fcommandp): Use Qinteractive_form.
4612
58aec0d6
JR
46132009-03-24 Jason Rumney <jasonr@gnu.org>
4614
4615 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4616 Calculate total size precisely. Decode environment variables
4617 before substituting. (Bug#38)
4618
553dd618
KH
46192009-03-24 Kenichi Handa <handa@m17n.org>
4620
4621 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4622 encoding (Bug#2722).
553dd618 4623
c39ea606
JD
46242009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4625
4626 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4627 that gdpy is set.
4628
bc9b2b5e
AM
46292009-03-22 Alan Mackenzie <acm@muc.de>
4630
4631 * callint.c (Finteractive): Clarify the doc string - even
4632 promptless elements need \n separators.
4633
9f995a76
JR
46342009-03-22 Jason Rumney <jasonr@gnu.org>
4635
4636 * w32term.c (syms_of_w32term): Doc fix for
4637 x-use-underline-position-properties.
4638
22749e9a
EZ
46392009-03-21 Eli Zaretskii <eliz@gnu.org>
4640
4641 * w32.c (getpwuid): Change argument type to unsigned.
4642 (struct w32_id): Change type of `rid' member to unsigned.
4643 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4644 argument ID to unsigned. All callers changed.
4645 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4646
e00553bf
EZ
46472009-03-20 Eli Zaretskii <eliz@gnu.org>
4648
4649 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4650 negative, produce a float value.
4651
4652 * dired.c (make_uid, make_gid): New functions.
4653 (Ffile_attributes): Use them to avoid negative UID and GID.
4654
f761d6b6
JB
46552009-03-20 Juanma Barranquero <lekktu@gmail.com>
4656
4657 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4658 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4659 Fix typos in docstrings.
4660
d507f8d7
KH
46612009-03-19 Kenichi Handa <handa@m17n.org>
4662
4663 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4664 changed, use font_load_for_lface to get a new font object.
4665 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4666
4667 * frame.c (x_set_font): Handle the case that ARG is a cons.
4668
c68845e0
GM
46692009-03-19 Glenn Morris <rgm@gnu.org>
4670
4671 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4672
bfa49dd1
CY
46732009-03-19 Chong Yidong <cyd@stupidchicken.com>
4674
4675 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4676
8458d4c1
KH
46772009-03-19 Kenichi Handa <handa@m17n.org>
4678
4679 * charset.c (load_charset_map_from_file): When a mapfile can't be
4680 loaded, signal an error.
4681
78e7d1fe
EZ
46822009-03-18 Eli Zaretskii <eliz@gnu.org>
4683
4684 * dired.c (Ffile_attributes): Make sure UID and GID are always
4685 positive, even if the value is too large for a positive EMACS_INT.
4686 Doc fix.
4687
4688 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4689
5da9fdfa
YM
46902009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4691
4692 * xmenu.c (xdialog_show): Move Fredisplay call ...
4693 (Fx_popup_dialog): ... here.
4694
7519c40d
SM
46952009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4696
4697 * dired.c (file_name_completion): Disable the first optimization just
4698 installed, since it is not implemented correctly.
4699
2cd298e2
SM
47002009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4701
4702 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4703 only if the entry can affect bestmatch.
2cd298e2
SM
4704 Stop the search early, as Ftry_completion already does.
4705
48d37adf
CY
47062009-03-17 Chong Yidong <cyd@stupidchicken.com>
4707
e10c9c93 4708 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4709
9286b16a
CY
47102009-03-15 Chong Yidong <cyd@stupidchicken.com>
4711
4712 * keyboard.c (parse_menu_item): Don't display remappings as menu
4713 equivalent bindings (Bug#788).
4714
f7b146dc
JR
47152009-03-15 Jason Rumney <jasonr@gnu.org>
4716
4717 * w32term.h (WM_EMACS_PAINT): New message.
4718 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4719 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4720 before passing to lisp thread. (Bug#950)
4721
f761d6b6 47222009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4723
d93f9575
CY
4724 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4725 variable as it was never reset.
4726 (ns_term_init): Remove initialization of Lisp-settable defaults
4727 and ns_expand_space.
4728 (-setPanelFromDefaultValues): Remove ns_expand_space.
4729 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4730 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4731 i.e. no additional spacing, similar to Carbon port.
4732
d93f9575
CY
4733 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4734 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4735
305018ec
JD
47362009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4737
4738 * sound.c (alsa_configure): Remove call to deprecated
4739 snd_pcm_sw_params_set_xfer_align.
4740
f761d6b6 47412009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4742
4743 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4744 after clicking in a detached tool bar.
4745 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4746
46e722a9
SM
47472009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4748
348db3dd
SM
4749 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4750 int/Lisp_Object mixup).
46e722a9 4751
a3d16f39
KH
47522009-03-13 Kenichi Handa <handa@m17n.org>
4753
4754 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4755 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4756 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4757 (set_fontset_font): Change ARG to a vector. Handle range_list in
4758 ARG correctly.
4759 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4760 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4761 the above change.
4762 (fontset_from_font): Fix previous change.
fe24f56a 4763 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4764 entry. If FONTSET is the default fontset, don't set the extra
4765 slot of the returning char-table.
4766
b066e6b6
JB
47672009-03-12 Juanma Barranquero <lekktu@gmail.com>
4768
4769 * nsfns.m (Fx_close_connection): Doc fix.
4770 (Fns_do_applescript): Reflow docstring.
4771 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4772 (Fx_display_pixel_width, Fx_display_pixel_height)
4773 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4774 Fix typos in docstrings.
4775 (Fns_set_alpha): Fix typos in error messages.
4776
d472514e 47772009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4778
d472514e 4779 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4780 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4781 were used for such events.
4782
d472514e
JB
4783 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4784 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4785
d472514e 4786 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4787 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4788
fb930676
KH
47892009-03-11 Kenichi Handa <handa@m17n.org>
4790
ff85581a
KH
4791 * font.h (font_open_by_spec): Extern it.
4792
c50b7e98
KH
4793 * font.c (font_open_by_spec): New function.
4794 (font_open_by_name): Use font_open_by_spec.
4795
fb930676
KH
4796 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4797 fontset of the frame.
4798
4799 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4800 modify the default font of frames that use this fontset.
4801 (num_auto_fontsets): New variable.
4802 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4803 name. Be sure to set FONTSET_ASCII to the correct font name.
4804 (update_auto_fontset_alist): New function.
4805
df4e8455
JB
48062009-03-11 Juanma Barranquero <lekktu@gmail.com>
4807
4808 * makefile.w32-in: Update dependencies.
4809
0a375797
AR
48102009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4811
4812 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4813
61313fa3
SM
48142009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4815
4816 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4817
b55103fb
CY
48182009-03-10 Chong Yidong <cyd@stupidchicken.com>
4819
4820 * lread.c (Feval_buffer): Doc fix.
4821
dde2559c
KH
48222009-03-09 Kenichi Handa <handa@m17n.org>
4823
4824 * charset.c (Qfile_name_handler_alist): Extern it.
4825 (load_charset_map_from_file): Temporarily bind
4826 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4827
df4e8455 48282009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4829
47f588bb
GM
4830 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4831 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4832
4ddf94bd
AR
48332009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4834
4c9bdfc2
AR
4835 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4836 (x_set_window_size): Change back to calculated method of setting
4837 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4838 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4839 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4840
fe41ae9e
AR
4841 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4842
4c9bdfc2
AR
4843 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4844 accelerator in parens under GNUstep.
4845
825d0875
KH
48462009-03-06 Kenichi Handa <handa@m17n.org>
4847
4848 These changes are to detect incorrect composition sequence without
f3b3be74 4849 looking ahead the source. (Bug#2370)
825d0875
KH
4850
4851 * coding.h: Include "composite.h".
4852 (enum compisition_state): New enum.
4853 (struct compisition_status): New struct.
4854 (struct iso_2022_spec): New member cmp_status.
4855 (struct emacs_mule_spec): New struct.
4856 (struct coding_system): New members ctext_extended_segment_len and
4857 embedded_utf_8. Change the union member
4858 spec.emacs_mule_full_support to spec.emacs_mule.
4859
4860 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4861 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4862 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4863 (ADD_COMPOSITION_DATA): New arg nbytes.
4864 (emacs_mule_char): New arg cmp_status.
4865 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4866 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4867 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4868 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4869 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4870 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4871 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4872 (EMACS_MULE_COMPOSITION_END): New macro.
4873 (emacs_mule_finish_composition): New function.
4874 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4875 (decode_coding_emacs_mule): Avoid long looking ahead while
4876 handling composition.
4877 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4878 (ENCODE_COMPOSITION_RULE): New macro.
4879 (finish_composition): New function.
4880 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4881 (DECODE_COMPOSITION_START): New implementation.
4882 (DECODE_COMPOSITION_END): Likewise.
4883 (STORE_COMPOSITION_RULE): New macro.
4884 (decode_coding_iso_2022): Avoid long looking ahead while handling
4885 composition, CTEXT extended segment, and embedded UTF-8.
4886 (setup_coding_system): For a coding of type iso-2022, reset
4887 CODING_ISO_EXTSEGMENT_LEN (coding) and
4888 CODING_ISO_EMBEDDED_UTF_8 (coding).
4889 (get_translation): Delete arguments last_block, from_nchars,
4890 to_nchars. Callers changed.
4891 (produce_chars): Don't modify charbuf. Adjusted for the change of
4892 get_translation.
98a326f7 4893 (produce_composition): Adjust for the new annotation sequence.
825d0875 4894 (handle_composition_annotation): Likewise.
98a326f7 4895 (consume_chars): Adjust for the change of get_translation.
825d0875 4896
ccbc4452
AR
48972009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4898
4ddf94bd 4899 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4900
988a7ddb
KH
49012009-03-05 Kenichi Handa <handa@m17n.org>
4902
4903 * font.c (font_select_entity): New function.
4904 (font_find_for_lface): Use font_select_entity to select a font.
4905
4906 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4907 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4908 font with C restriction.
4909
98a326f7 49102009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4911
be1bce46 4912 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4913
10ea2b82
JR
49142009-03-04 Jason Rumney <jasonr@gnu.org>
4915
2c93b248 4916 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4917 characters that have already been read. (Bug#2569)
2c93b248 4918
10ea2b82
JR
4919 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4920 Log an error message if check_image_size failed.
4921 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4922 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4923
71a0c011
EZ
49242009-03-02 Eli Zaretskii <eliz@gnu.org>
4925
4926 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4927 when decoding process output.
4928
2f63bba8
RS
49292009-03-01 Richard M Stallman <rms@gnu.org>
4930
4931 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4932
4933 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4934
0a9564cb
EZ
49352009-02-28 Eli Zaretskii <eliz@gnu.org>
4936
4937 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4938 (decode_coding_emacs_mule, decode_coding_iso_2022)
4939 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4940 (decode_coding_raw_text, decode_coding_charset)
4941 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4942 Honor inhibit-eol-conversion. (Bug #2186)
4943
449148b3
JR
49442009-02-28 Jason Rumney <jasonr@gnu.org>
4945
4946 * coding.c (detect_coding_charset): If not checking latin extra,
4947 fail on characters between 0x80 and 0xA0. (Bug#2354)
4948
a4aee864
EZ
49492009-02-28 Eli Zaretskii <eliz@gnu.org>
4950
4951 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4952 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4953
d88bee5a
GM
49542009-02-27 Glenn Morris <rgm@gnu.org>
4955
4956 * callint.c (Finteractive): Doc fix.
4957
a808f22d
KH
49582009-02-27 Kenichi Handa <handa@m17n.org>
4959
4960 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4961
caf8d60c
CY
49622009-02-27 Chong Yidong <cyd@stupidchicken.com>
4963
4964 * font.c (font_style_to_value): Set value for unknown symbols to
4965 100 instead of 255.
b61137ea
CY
4966 (weight_table, slant_table, width_table): Treat "unspecified" as
4967 the default value.
caf8d60c 4968
1a0de25c
JB
49692009-02-26 Juanma Barranquero <lekktu@gmail.com>
4970
4971 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4972
8fc45744
JB
49732009-02-25 Juanma Barranquero <lekktu@gmail.com>
4974
107bd7d1
JB
4975 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4976 error as soon as a recursive load is detected.
8fc45744 4977
f097e223
AR
49782009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4979
4980 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4981 before caching.
4982
8810a12f
KH
49832009-02-24 Kenichi Handa <handa@m17n.org>
4984
4985 * fontset.c (fontset_find_font): Fix the condition for checking
4986 unavailable font.
4987
2c7d1565
GM
49882009-02-24 Glenn Morris <rgm@gnu.org>
4989
4990 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4991 whitespace that confuses documentation.
4992
a20878b6
MB
49932009-02-23 Miles Bader <miles@gnu.org>
4994
4995 * process.c (Flist_system_processes, Fprocess_attributes)
4996 (syms_of_process): Rename `system-process-attributes' to
4997 `process-attributes'.
4998
b3b58c01
AS
49992009-02-22 Andreas Schwab <schwab@linux-m68k.org>
5000
1b3b981b
AS
5001 * coding.h (struct coding_system): Make safe_charsets a pointer to
5002 unsigned char.
5003 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
5004 being 255.
5005 (SAFE_CHARSET_P): Likewise.
5006 (setup_iso_safe_charsets): Properly setup safe_charsets.
5007 (Fdefine_coding_system_internal): Likewise.
5008 (setup_coding_system): Likewise. Remove unneeded casts.
5009 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
5010 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
5011 unneeded casts.
5012
b3b58c01
AS
5013 * insdel.c (del_range_2): Don't modify gap contents when called
5014 from decode_coding_object. (Bug#1809)
5015
0b6f228c
CY
50162009-02-21 Chong Yidong <cyd@stupidchicken.com>
5017
5018 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
5019 Qfont_object.
5020 (Ftype_of): Recognize font objects.
5021
5022 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
5023
5024 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
5025 moved to data.c.
5026
52f8870b
AR
50272009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
5028
5029 * nsterm.m (x_make_frame_invisible): Unset async_visible,
5030 async_iconified. Based on a patch by Christian Lynbech
5031 <christian.lynbech@tieto.com>.
5032 (EmacsView-windowDidMiniaturize:): Unset async_visible.
5033
7087d5e9
GM
50342009-02-20 Glenn Morris <rgm@gnu.org>
5035
5036 * syntax.c (Fskip_chars_forward): Fix doc typo.
5037
41d2ceef
CY
50382009-02-20 Chong Yidong <cyd@stupidchicken.com>
5039
5040 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
5041
1a3b7ca6
CY
50422009-02-19 Chong Yidong <cyd@stupidchicken.com>
5043
5044 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
5045
73cce38d
KH
50462009-02-19 Kenichi Handa <handa@m17n.org>
5047
5048 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 5049 Don't overflow coding->carryover. (Bug#2370)
73cce38d 5050
a51092ee
DN
50512009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
5052
5053 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
5054
c423ecca
KH
50552009-02-18 Kenichi Handa <handa@m17n.org>
5056
5057 * font.c (font_check_otf_features): Fix handling of `nil' element.
5058 (Ffont_spec): Describe :lang and :otf in the docstring.
5059
4c1958f4
AS
50602009-02-16 Andreas Schwab <schwab@suse.de>
5061
5062 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
5063 string.
5064
5704f39a
KH
50652009-02-16 Kenichi Handa <handa@m17n.org>
5066
5067 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 5068 (Bug#1723)
5704f39a 5069
8f0085aa
CY
50702009-02-14 Chong Yidong <cyd@stupidchicken.com>
5071
a057d86a 5072 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
5073
5074 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
5075 (handle_line_prefix): Suppress wrapping of wrap prefixes.
5076
aff01dd9
EZ
50772009-02-14 Eli Zaretskii <eliz@gnu.org>
5078
5079 * msdos.c (MAX_SCREEN_BUF): New macro.
5080 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
5081 Encode the entire run of glyphs sharing the same face, instead of
5082 doing that one glyph at a time (fixes a bug with displaying
5083 double-size characters).
5084
ba301db3
AR
50852009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
5086
5087 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
5088
5089 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5090 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5091 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5092
5093 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5094 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5095
51d861de
SM
50962009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5097
ac146f82 5098 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5099 invisible areas.
5100
7fed8996
JR
51012009-02-12 Jason Rumney <jasonr@gnu.org>
5102
631ea4fb
JR
5103 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5104 (add_font_entity_to_list): Call check_face_name even when family
5105 is unspecified.
5106
cb4a3e42
JR
5107 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5108 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5109 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5110
7fed8996 5111 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5112 raster fonts. (Bug#2219)
7fed8996 5113
895416e3
KH
51142009-02-12 Kenichi Handa <handa@m17n.org>
5115
5116 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5117 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5118 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5119 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5120 (find_automatic_composition): While looking forward and backward,
5121 check static composition. Fix where to stop looking forward.
5122 (composition_adjust_point): Fix checking of static composition.
5123 (Fcomposition_get_gstring): Pay attention to
1dacf998 5124 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5125
5126 * lisp.h (fast_looking_at): Extern it.
5127
5128 * search.c (fast_looking_at): New function.
5129
51d861de 5130 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5131 <struct glyph>.u.cmp.to.
5132 (append_composite_glyph): Likewise.
5133
51d861de 5134 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5135 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5136 composition.
51d861de 5137 (append_composite_glyph): Adjust for the change of
895416e3
KH
5138 <strcut glyph>.u.cmp.to.
5139
8510724d
JB
51402009-02-11 Juanma Barranquero <lekktu@gmail.com>
5141
5142 * casetab.c (init_casetab_once):
5143 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5144 * font.c (font_update_lface):
5145 * fontset.c (Fnew_fontset):
5146 * ftfont.c (ftfont_drive_otf):
5147 * xfont.c (xfont_open):
5148 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5149
294fa707
SM
51502009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5151
5152 * fileio.c (Fwrite_region): !NILP -> CONSP.
5153
b5bfebec
AS
51542009-02-10 Andreas Schwab <schwab@suse.de>
5155
5156 * process.c (send_process): Properly relocate pointer into data
adab88bd 5157 when using encoded data. (Bug#2272)
b5bfebec 5158
cb84a2be
KH
51592009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5160
5161 * coding.c (detect_coding_charset): Fix previous change.
5162
89e09428
JR
51632009-02-08 Jason Rumney <jasonr@gnu.org>
5164
5165 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5166 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5167
4470a277
AS
51682009-02-07 Andreas Schwab <schwab@suse.de>
5169
5170 * unexelf.c (unexec): Fix error message.
5171
3175b12a
AR
51722009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5173
5174 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5175 when modal window is active. (Bug #2152)
3175b12a
AR
5176 (applicationShouldTerminate:): Remove now-unneeded while loop
5177 around NSRunAlertPanel.
5178
5179 * nsmenu.m (popupSession): New file-global variable.
5180 (pop_down_menu): End the popupSession before closing dialog.
5181 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5182 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5183 don't query NSApp for events (just sleep instead).
5184
8434d0b8
EZ
51852009-02-07 Eli Zaretskii <eliz@gnu.org>
5186
51d861de
SM
5187 * coding.c (syms_of_coding) <translation-table-for-input>:
5188 Modify doc string to discourage use for character code unification.
8434d0b8 5189
aa82edfd
CY
51902009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5191
5192 * atimer.c (run_timers): Update pending_atimers.
5193
2d283c7c
CY
51942009-02-06 Chong Yidong <cyd@stupidchicken.com>
5195
eb306cab
CY
5196 * image.c (svg_load_image): Fix last change.
5197
2d283c7c
CY
5198 * xfns.c (Fx_create_frame): Signal an error if no font is
5199 found (Bug#2147).
5200
4d8e170e
JB
52012009-02-05 Juanma Barranquero <lekktu@gmail.com>
5202
5203 * character.c (syms_of_character) <script-representative-chars>:
5204 Fix typo in docstring.
5205
c96169a0
AR
52062009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5207
5208 * nsmenu.m (pop_down_menu): New function.
5209 (ns_popup_dialog): Call it on unwind.
5210 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5211 call timer_check() (Bug#2154).
5212 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5213 handling_signal is set.
5214 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5215
31fd7c5c 5216 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5217
5218 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5219
5220 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5221
51d861de
SM
5222 * keyboard.c (poll_for_input_1, handle_async_input):
5223 Set handling_signal under HAVE_NS.
c96169a0 5224
aacd8ba1
GM
52252009-02-04 Glenn Morris <rgm@gnu.org>
5226
5227 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5228
4cb75c4b
KH
52292009-02-04 Kenichi Handa <handa@m17n.org>
5230
5231 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5232
5233 * charset.c (Fchar_charset): New optional arg restriction.
5234
5235 * coding.h (coding_system_charset_list): Extern it.
5236
5237 * coding.c (coding_system_charset_list): New function.
5238
5239 * composite.c: Include coding.h and termhooks.h.
5240 (composition_gstring_p): Fix for the terminal case.
5241 (composition_gstring_width): Likewise.
5242 (fill_gstring_body): Likewise.
5243 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5244 the frame.
5245 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5246 is within a composition.
867d4bb3 5247 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5248
5249 * term.c (encode_terminal_code): Fix handling of composition.
5250 (produce_composite_glyph): For static composition, get pixel_width
5251 from struct composition.
5252
826ba17e
AS
52532009-02-02 Andreas Schwab <schwab@suse.de>
5254
5255 * unexelf.c (unexec): Handle unaligned bss offset.
5256
8ad093db
AR
52572009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5258
5259 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5260 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5261
8ad093db
AR
5262 * keyboard.c (handle_interrupt): Don't call
5263 quit_throw_to_read_char() under NS.
d0a76a6e 5264
8ad093db
AR
5265 * blockinput.h: Remove NS-specific code.
5266
4d18a7a2
DN
52672009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5268
db878925
DN
5269 * dispnew.c (window_change_signal): Don't try to get the size of a
5270 suspended tty frame.
5271 * term.c (Fresume_tty): Resize if the size has changed while the
5272 tty was suspended.
5273
4d18a7a2
DN
5274 * alloc.c (mark_stack): Properly conditionalize previous change.
5275
8984df7c
JB
52762009-01-30 Juanma Barranquero <lekktu@gmail.com>
5277
5278 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5279 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5280 Remove; this code is not used on Windows.
5281
75f4f1ac
EZ
52822009-01-30 Eli Zaretskii <eliz@gnu.org>
5283
5284 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5285 EOLs that also has stray ^M characters.
5286
07a1e794
JB
52872009-01-30 Juanma Barranquero <lekktu@gmail.com>
5288
5289 * atimer.c (run_timers, alarm_signal_handler):
5290 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5291 * w32inevt.c (w32_console_read_socket):
5292 * w32term.c (w32_read_socket):
5293 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5294
a8b11cc9
CY
52952009-01-30 Chong Yidong <cyd@stupidchicken.com>
5296
5297 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5298 Initialize it as a relative filename pattern.
5299 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5300 (Fcall_process_region): Simplify temp file creation using
5301 temporary-file-directory.
5302
c279587b
EZ
53032009-01-29 Eli Zaretskii <eliz@gnu.org>
5304
5305 * msdos.c: Rename pending_signals to msdos_pending_signals.
5306 (sig_suspender, sigprocmask): Adjust.
5307
a8fe3242
CY
53082009-01-29 Chong Yidong <cyd@stupidchicken.com>
5309
5310 * keyboard.c (pending_signals): New var.
5311 (poll_for_input, input_available_signal, init_keyboard): Set it.
5312 (process_pending_signals): New function.
5313
5314 * lisp.h (QUIT): Check pending_signals instead of
5315 interrupt_input_pending. Use process_pending_signals.
5316
51d861de 5317 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5318
51d861de 5319 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5320
5321 * sysdep.c (emacs_write): Use process_pending_signals.
5322
5323 * xterm.c (XTread_socket): Update pending_signals.
5324
5325 * w32term.c (w32_read_socket): Update pending_signals.
5326
5327 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5328
6570a1c4
KH
53292009-01-29 Kenichi Handa <handa@m17n.org>
5330
5331 * xftfont.c (xftfont_has_char): New function.
5332 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5333
d72a4afa
AR
53342009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5335
5336 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5337 under GNUstep.
5338 (ns_query_color): New declaration.
5339
5340 * nsterm.m (ns_confirm_quit): New variable.
5341 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5342 (EmacsApp-applicationShouldTerminate:): Use it.
5343 (EmacsPrefsController): Let user set it.
5344 (ns_query_color): New function.
5345 (ns_defined_color): Use it.
5346 (ns_initialize): Drop.
5347 (ns_term_init): Add two lines from ns_initialize(), and set
5348 input_interrupt_mode to nil.
5349
5350 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5351 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5352
9fe78804
KH
53532009-01-28 Kenichi Handa <handa@m17n.org>
5354
5355 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5356 (fontset_get_font_group): Remember that no font-group is specified
5357 for C.
9fe78804 5358
fa57de36
CY
53592009-01-27 Chong Yidong <cyd@stupidchicken.com>
5360
930600e9
CY
5361 * fns.c (concat): Check for string overflow (bug#1787).
5362
fa57de36
CY
5363 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5364 Quadruple undo limits (bug#1501).
5365
7179ce7b
KH
53662009-01-27 Kenichi Handa <handa@m17n.org>
5367
5368 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5369 directly use GT_Get_Char_index.
5370
5371 * xftfont.c (struct xftfont_info): New member `index'.
5372
5373 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5374 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5375
5be8fcc0
CY
53762009-01-26 Kenichi Handa <handa@m17n.org>
5377
5378 * fontset.c (fontset_find_font): Fix handling of non-cons return
5379 value of fontset_get_font_group.
5380 (fontset_font): Revert last change.
5381
19ae3e61
JR
53822009-01-26 Jason Rumney <jasonr@gnu.org>
5383
5384 * w32font.c (w32font_list_internal): Return quickly if registry is
5385 unknown. Simplify final return.
5386 (add_font_entity_to_list): Break complex logic down into more
5387 manageable chunks. Move unknown registry check to
5388 w32font_list_internal.
5389
8612b71a
AR
53902009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5391
5392 Changes to remove Feval calls from GUI under NS.
5393
d8038940
JB
5394 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5395 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5396 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5397
5398 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5399 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5400 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5401 instead of NON_ASCII_KEYSTROKE_EVENT.
5402 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5403 (EmacsApp-applicationShouldTerminate:): Query user.
5404 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5405 instead of Feval.
5406
5407 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5408
5409 * keyboard.c (kbd_buffer_get_event): Check for it.
5410 (keys_of_keyboard): Define lispy keys for
5411 ns-put/unput-working-text.
5412
5413 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5414 versions.
5415 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5416
6288ae55
CY
54172009-01-25 Chong Yidong <cyd@stupidchicken.com>
5418
5419 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5420 setting current_buffer directly. (Bug#2044)
6288ae55 5421
289e7f8f
CY
54222009-01-24 Chong Yidong <cyd@stupidchicken.com>
5423
5ce87308 5424 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5425 any work. (Bug#1952, bug#1990).
5ce87308 5426
64cc3cf6 5427 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5428
b3243e6f
AR
54292009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5430
5431 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5432 (ns_no_defaults): New declaration.
5433 (main): Use it.
e0d2e69a 5434
d900b2af 5435 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5436
d900b2af 5437 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5438
d900b2af
AR
5439 * nsterm.m (ns_no_defaults): New variable.
5440 (ns_initialize): Don't read defaults when ns_no_defaults.
5441 (EmacsView-readSelectionFromPasteboard:)
5442 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5443 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5444 (ns_dumpglyphs_stretch): New function.
5445 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5446 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5447
e0d2e69a
AR
5448 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5449
3ac71f5d
CY
54502009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5451
5452 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5453 call for Sparc64.
5454
3fe53a83
AR
54552009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5456
5457 * nsfns.m:
5458 * nsgui.h:
5459 * nsmenu.m:
5460 * nsselect.m:
5461 * nsterm.h:
5462 * nsterm.m: Remove '23' comments that indicated code added during
5463 update from emacs-20 -> emacs-23.
5464
10f87c6f 54652009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5466
5467 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5468 ns_alternate_modifier. (Bug#1217)
a3b53a85 5469
c7cef62d
AR
5470 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5471 Display all shortcuts, including those w/o super modifier.
5472
575fb8bd
AR
5473 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5474
918b848b
CY
54752009-01-22 Chong Yidong <cyd@stupidchicken.com>
5476
5477 * fileio.c (Vwrite_region_post_annotation_function)
5478 (Vwrite_region_annotation_buffers): New vars.
5479 (build_annotations_unwind): Just reset
5480 Vwrite_region_annotation_buffers.
5481 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5482 Call write-region-post-annotation-function.
5483 (build_annotations): Add to Vwrite_region_annotation_buffers if
5484 buffer changes.
5485
a39e2539
AR
54862009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5487
5488 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5489 Tiger.
51d861de
SM
5490 * nsfns.m (ns_do_applescript):
5491 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5492
35ed44db
AR
54932009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5494
5495 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5496
cbe0b5bf
AR
54972009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5498
5499 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5500
6049d3a0
AR
5501 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5502
5503 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5504 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5505 handle Ctrl-tab. (Bug#1841)
5506 (ns_get_color): Use unsigned long long for scanned hex string value.
5507 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5508 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5509 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5510 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5511 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5512 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5513 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5514
d3810c21 5515 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5516 DPI. (Bug#1316)
d3810c21
AR
5517 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5518 values in onTiger section.
4c7077c3 5519
e301e634
CY
55202009-01-19 Chong Yidong <cyd@stupidchicken.com>
5521
7f82490b
CY
5522 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5523 Check return value of font_spec_from_name.
64cc3cf6 5524 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5525
5526 * font.c (font_spec_from_name): Return Qnil if font name could not
5527 be parsed.
5528 (font_parse_name): Treat a `?' character as part of an XLFD.
5529
e301e634
CY
5530 * fns.c (Fsubstring): Doc fix.
5531
1c0db158
KH
55322009-01-19 Kenichi Handa <handa@m17n.org>
5533
51d861de 5534 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5535 (ftfont_list): Likewise.
5536
acf20901
JB
55372009-01-18 Juanma Barranquero <lekktu@gmail.com>
5538
fff4e459
JB
5539 * dbusbind.c (Fdbus_register_signal):
5540 * process.c (conv_sockaddr_to_lisp):
5541 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5542
acf20901
JB
5543 * callproc.c (Fgetenv_internal): Doc fix.
5544
e7abcdfb
CY
55452009-01-16 Chong Yidong <cyd@stupidchicken.com>
5546
5547 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5548 it is not even used.
5549
b60861e6
GM
55502009-01-16 Glenn Morris <rgm@gnu.org>
5551
5552 * font.c (Ffont_variation_glyphs): Silence compiler.
5553
8db52afe
JB
55542009-01-15 Juanma Barranquero <lekktu@gmail.com>
5555
5556 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5557 Reported by David Robinow <drobinow@gmail.com>.
5558
4cddb209
KH
55592009-01-15 Kenichi Handa <handa@m17n.org>
5560
51d861de 5561 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5562
f247f67b
JR
55632009-01-14 Jason Rumney <jasonr@gnu.org>
5564
5565 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5566 never a fontset. (Bug#1562)
f247f67b 5567
f56a4450
KH
55682009-01-14 Kenichi Handa <handa@m17n.org>
5569
5570 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5571 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5572
4e99855e
CY
55732009-01-13 Chong Yidong <cyd@stupidchicken.com>
5574
5575 * font.c (font_clear_prop): If clearing the family, clear the font
5576 width index too.
5577
fff4e459 5578 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5579
24f01470
JB
55802009-01-12 Juanma Barranquero <lekktu@gmail.com>
5581
5582 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5583 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5584 functions, use sizeof.
5585
a41240a3
MR
55862009-01-12 Martin Rudalics <rudalics@gmx.at>
5587
5588 * keyboard.c (read_char): Fix case where last_nonmenu_event
5589 returned a bad value with submenus. (Bug#447)
5590
944636b8
CY
55912009-01-12 Chong Yidong <cyd@stupidchicken.com>
5592
5593 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5594 family, clear the font width index too.
5595
0dad7c6f
JR
55962009-01-11 Jason Rumney <jasonr@gnu.org>
5597
5598 * keyboard.c (cmd_error_internal): Exit when errors occur before
5599 frame creation and not in daemon mode. (Bug#1836)
5600
7c2363af
CY
56012009-01-10 Chong Yidong <cyd@stupidchicken.com>
5602
5603 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5604 of a display vector, backtrack.
5605 (try_window_reusing_current_matrix): Check glyph type before
5606 referencing charpos member.
5607
97b1b294
EZ
56082009-01-10 Eli Zaretskii <eliz@gnu.org>
5609
5610 Fix Bug #876:
5611
5612 * coding.c (inhibit_null_byte_detection): New variable.
5613 (detect_coding, detect_coding_system): Don't pay attention to null
5614 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5615 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5616 <inhibit-iso-escape-detection>: Doc fix.
5617
4624b6e3
JR
56182009-01-09 Jason Rumney <jasonr@gnu.org>
5619
5620 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5621 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5622 Only report Unicode Plane 2 fonts as unicode-sip.
5623
323b840c
CY
56242009-01-09 Chong Yidong <cyd@stupidchicken.com>
5625
51d861de
SM
5626 * xfaces.c (Fx_font_family_list): Delete function.
5627 Move compatibility version to faces.el.
323b840c 5628
51d861de 5629 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5630
eba7400d
MR
56312009-01-09 Martin Rudalics <rudalics@gmx.at>
5632
5633 * frame.c (x_set_frame_parameters): Remember requested value for
5634 fullscreen before it's reset by the parameter handler.
5635
4b09796d
GM
56362009-01-09 Glenn Morris <rgm@gnu.org>
5637
5638 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5639 (last_command_event): ... and update all users.
4b09796d
GM
5640 (last_input_char): For clarity, rename to...
5641 (last_input_event): ... and update all users.
5642 (last-command-char, last-input-char): Move to subr.el as aliases.
5643 * cmds.c, commands.h: Update for last_command_char rename.
5644
14ccea62
CY
56452009-01-08 Chong Yidong <cyd@stupidchicken.com>
5646
51d861de 5647 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5648
5f004711
JR
56492009-01-08 Jason Rumney <jasonr@gnu.org>
5650
5651 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5652 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5653 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5654 Don't declare.
fff4e459 5655 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5656 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5657
b71f6f73
KH
56582009-01-07 Kenichi Handa <handa@m17n.org>
5659
50b06221 5660 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5661 remember the coding system used for decoding in
50b06221
KH
5662 coding_system (Bug#1039).
5663
b71f6f73 5664 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5665 breaking the loop. (Bug#870)
b71f6f73
KH
5666 (decode_coding_utf_16, decode_coding_emacs_mule)
5667 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5668 (decode_coding_charset): Likewise.
5669
56f668f7
MR
56702009-01-05 Martin Rudalics <rudalics@gmx.at>
5671
5672 * frame.c (x_set_frame_parameters): Make sure height (width) get
5673 applied when fullwidth (fullheight) is set. (Bug#1522)
5674
5da9424d
JB
56752009-01-04 Juanma Barranquero <lekktu@gmail.com>
5676
5677 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5678 (utc_base): Declare as ULONGLONG, not long double.
5679 (convert_time_raw): Delete.
5680 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5681 (initialize_utc_base): New function.
5682 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5683 (convert_from_time_t): Use initialize_utc_base; compute result with
5684 64-bit arithmetic.
5685 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5686
c4605e09
EZ
56872009-01-03 Eli Zaretskii <eliz@gnu.org>
5688
9acef61c 5689 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5690 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5691 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5692 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5693 [!subprocesses]: Define.
5694 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5695 (Flist_system_processes, Fsystem_process_attributes)
5696 [!subprocesses]: Call list_system_processes and
5697 system_process_attributes instead of returning Qnil.
5698
9acef61c
JB
5699 * dosfns.c (system_process_attributes, list_system_processes):
5700 New functions.
c4605e09
EZ
5701
5702 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5703
5704 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5705 Don't use the default (no-op) implementation.
5706
8b7d0a16
JR
57072009-01-03 Jason Rumney <jasonr@gnu.org>
5708
a6d46bc1
JR
5709 * keyboard.c (parse_modifiers_uncached): Wheel events are
5710 clicks (bug#687).
5711
8b7d0a16
JR
5712 * w32term.c (x_query_colors, x_query_color): New functions.
5713
5714 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5715 (svg_load_image): Cast returned pointers from dynamically loaded
5716 functions. Eliminate W32 specific code.
5717
bfe11752
DN
57182009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5719
89e2438a
DN
5720 * nsfns.m (x_set_foreground_color, x_set_background_color)
5721 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5722 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5723 x_ prefix instead of ns_. Update references.
5724 (syms_of_nsfns): Add a FIXME comment.
5725
5726 * nsterm.m (x_set_cursor_type): New prototype.
5727 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5728
bfe11752
DN
5729 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5730 for Solaris instead of incorrectly providing Qutime and Qcutime.
5731
031da700
EZ
57322009-01-02 Eli Zaretskii <eliz@gnu.org>
5733
5734 * w32.c (process_times): Compute sum of utime and stime.
5735 (system_process_attributes): Add Qtime to the alist.
5736
5737 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5738 and add them to the alist.
5739
5740 * process.c (top level) <Qtime, Qctime>: New variables.
5741 (syms_of_process): staticpro them.
5742 (Fsystem_process_attributes): Add their documentation to the doc
5743 string.
5744
5745 * process.h: Declare Qtime and Qctime.
5746
df23bf08
JR
57472009-01-02 Jason Rumney <jasonr@gnu.org>
5748
9acef61c 5749 * image.c (Qgobject): New symbol.
df23bf08
JR
5750 (syms_of_image): Initialize it.
5751 (init_svg_functions): Load some functions from gobject library.
5752
5bbdf7aa
DN
57532009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5754
5755 * frame.c (make_terminal_frame): Remove redundant code and useless
5756 block.
5757
63136da6
AS
57582009-01-01 Andreas Schwab <schwab@suse.de>
5759
5760 * process.c (conv_sockaddr_to_lisp): Add workaround for
5761 getsockname bug on BSD.
5762
9ef69046
CY
57632009-01-01 Chong Yidong <cyd@stupidchicken.com>
5764
d6fafbe0
CY
5765 * xfns.c (x_create_tip_frame): Set border width of the X window.
5766
51d861de 5767 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5768
f9c34147
JR
57692009-01-01 Jason Rumney <jasonr@gnu.org>
5770
9acef61c 5771 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5772 Don't block input, as per earlier xterm.c changes.
5773
f5497e45
AR
57742008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5775
5776 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5777 (ns_appkit_version_int): New function.
5778 (x-server-version): Use ns_appkit_version_int and follow 21+
5779 convention of returning 3 integers.
5780
c19cab20
KH
57812008-12-30 Kenichi Handa <handa@m17n.org>
5782
5783 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5784 (CHAR_SURROGATE_PAIR_P): New macro.
5785
5786 * font.h (struct font_driver): New member get_variation_glyphs.
5787
9acef61c 5788 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5789 (Ffont_variation_glyphs): New function.
5790 (syms_of_font): Defsubr it.
5791
5792 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5793 ftfont_variation_glyphs.
5794 (setup_otf_gstring): New function.
5795 (ftfont_drive_otf): Use it.
5796 (ftfont_shape_by_flt): Handle variation selector.
5797 (ftfont_variation_glyphs): New function.
5798
28cd591f
MR
57992008-12-30 Martin Rudalics <rudalics@gmx.at>
5800
5801 * frame.c (Vemacs_iconified): Remove.
5802
7f714baf
JR
58032008-12-30 Jason Rumney <jasonr@gnu.org>
5804
5805 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5806 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5807
9d2d22ab
CY
58082008-12-30 Chong Yidong <cyd@stupidchicken.com>
5809
5810 * indent.c (Fvertical_motion): Don't advance iterator if we have
5811 reseated to the desired position.
5812
5813 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5814 checking for pos match.
5815
545312c2
KH
58162008-12-30 Kenichi Handa <handa@m17n.org>
5817
1ede3eb6
KH
5818 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5819 just get the low 8-bit of the code.
5820
545312c2
KH
5821 * font.c (font_intern_prop): Validate str as multibyte.
5822
bd7bbf29
DN
58232008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5824
31e0750e
DN
5825 * dispextern.h (struct face): Move lface and hash from the middle
5826 of bitfields.
5827
bd7bbf29
DN
5828 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5829
b5672e7c
DN
58302008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5831
5832 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5833 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5834 instead of intervals.h.
5835
d704470f
AS
58362008-12-26 Andreas Schwab <schwab@suse.de>
5837
5838 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5839 cons.
5840
54b33868
MR
58412008-12-26 Martin Rudalics <rudalics@gmx.at>
5842
5843 * textprop.c (Qminibuffer_prompt): New variable.
5844 (syms_of_textprop): Initialize it.
5845 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5846 in minibuffer-prompt face. (Bug#1662)
5847
40b615d6
JR
58482008-12-25 Jason Rumney <jasonr@gnu.org>
5849
5850 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5851
baae5c2d
JR
58522008-12-24 Jason Rumney <jasonr@gnu.org>
5853
5854 * ralloc.c (r_alloc_reset_variable): New function.
5855
5856 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5857 record of what points where. (Bug#716)
baae5c2d 5858
a9051c88
DN
58592008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5860
5861 * minibuf.c (read_minibuf): Follow the non-interactive case when
5862 running as a daemon, before detaching.
5863
8b146312
AS
58642008-12-22 Andreas Schwab <schwab@suse.de>
5865
5866 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5867 * gtkutil.c (free_widget_value): Use xfree instead of free.
5868
56f2de10
MR
58692008-12-22 Martin Rudalics <rudalics@gmx.at>
5870
5871 * frame.c (delete_frame): New function derived from
5872 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5873 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5874 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5875 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5876 * frame.h: Extern delete_frame.
5877 * window.c (window_loop):
5878 * terminal.c (delete_terminal):
5879 * xterm.c (x_connection_closed):
5880 * xfns.c (Fx_hide_tip):
9acef61c 5881 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5882
1fc200d6
JR
58832008-12-21 Jason Rumney <jasonr@gnu.org>
5884
5885 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5886 when character maps to .notdef character.
5887
5e252df2
SM
58882008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5889
5890 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5891
99b72cc4
JR
58922008-12-20 Jason Rumney <jasonr@gnu.org>
5893
5894 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5895 a graphical frame on Windows. (Bug#1325)
99b72cc4 5896
acc49a52
JD
58972008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5898
5899 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5900
6ea15123
CY
59012008-12-20 Chong Yidong <cyd@stupidchicken.com>
5902
5903 * minibuf.c (Fread_buffer): Doc fix.
5904
b2dab6c8
JR
59052008-12-20 Jason Rumney <jasonr@gnu.org>
5906
54ea0c87 5907 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5908 server name in UNC paths. (Bug#719)
54ea0c87 5909
b2dab6c8 5910 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5911 charbuf. (Bug#1035)
b2dab6c8 5912
6d1921be
DN
59132008-12-19 Daniel Engeler <engeler@gmail.com>
5914
5915 * sysdep.c (serial_configure): Fix typo.
5916
53934c98
DN
59172008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5918
5919 * sysdep.c: Include alloca.h.
f4f634e8
DN
5920 (system_process_attributes): Add implementation for Solaris.
5921
5922 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5923
06e111a6
DN
59242008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5925
5926 Reorganize implementation of Flist_system_processes and
5927 Fsystem_process_attributes. No functional changes.
5928 * process.c: Don't #include pwd.h, grp.h and limits.h.
5929 (Flist_system_processes): Just call list_system_processes.
5930 (Fsystem_process_attributes): Just call system_process_attributes.
5931 (procfs_list_system_processes, time_from_jiffies)
5932 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5933 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5934
5935 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5936 (list_system_processes): Rename from
5937 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5938 Provide a do nothing implementation.
5939 (system_process_attributes): Rename from
5940 procfs_list_system_processes.
5941 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5942 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5943
5944 * w32.c (list_system_processes): Rename from
5945 w32_list_system_processes.
5946 (system_process_attributes): Rename from
5947 w32_system_process_attributes.
5948
5949 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5950
5951 * process.h (w32_list_system_processes)
5952 (w32_system_process_attributes): Remove.
362654a6
JB
5953 (list_system_processes, system_process_attributes):
5954 New prototypes.
06e111a6 5955
6a705b23
KH
59562008-12-19 Kenichi Handa <handa@m17n.org>
5957
5958 * xfont.c (xfont_decode_coding_xlfd): New function.
5959 (xfont_encode_coding_xlfd): New function.
5960 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5961 (xfont_list): Decode and encode XLFD by iso-8859-1.
5962 (xfont_match): Likewise.
5963 (xfont_list_family): Likewise.
5964 (xfont_open): Likewise.
5965
d66c0241 5966 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5967 names are utf-8.
5968
d66c0241 5969 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5970 names are utf-8.
5971
5a130941
JD
59722008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5973
5974 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5975 changed.
bfd20325
JD
5976 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5977 clicked on a detached tool bar button.
5a130941 5978
fd95644b
DN
59792008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5980
5981 * emacs.c (main): Print and error and exit when no data is read
5982 from the pipe.
5983
e6eee6ae
JR
59842008-12-17 Jason Rumney <jasonr@gnu.org>
5985
5986 * w32font.c (w32font_has_char): Always return -1.
5987
a35dd56b
KH
59882008-12-16 Kenichi Handa <handa@m17n.org>
5989
5990 * font.c (font_open_entity): Fix previous change.
5991
0e3635c2
DN
59922008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5993
5994 * process.c: Include <limits.h>.
5995
d4835507 59962008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5997
5998 * font.c (font_update_drivers): Fix mistake in reconstructing the
5999 driver list.
6000
60012008-12-16 Chong Yidong <cyd@stupidchicken.com>
6002
6003 * font.c (font_clear_cache): Fix format of font cache data.
6004
e2cbc401
CY
60052008-12-15 Chong Yidong <cyd@stupidchicken.com>
6006
6007 * xftfont.c (xftfont_open): Free Xft font pattern if
6008 XftFontOpenPattern fails.
6009
6010 * xterm.c (x_free_frame_resources): Remove extraneous call to
6011 free_frame_faces.
6012
b131d535
CY
60132008-12-13 Chong Yidong <cyd@stupidchicken.com>
6014
6015 * xterm.c (x_delete_display): Move xim_close_dpy call to
6016 x_delete_terminal.
6017 (x_delete_terminal): Call xim_close_dpy.
6018
e6df5336
JR
60192008-12-13 Jason Rumney <jasonr@gnu.org>
6020
6021 * w32font.c (intern_font_name): New function.
6022 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
6023 (w32font_open_internal, Fx_select_font): Decode font name.
6024 (fill_in_logfont, list_all_matching_fonts): Encode font name.
6025
6026 * w32font.h (intern_font_name): Declare new function.
6027
6028 * w32uniscribe.c (add_opentype_font_name_to_list):
6029 Use intern_font_name.
6030
20d68145
CY
60312008-12-13 Chong Yidong <cyd@stupidchicken.com>
6032
9f2554de
CY
6033 * frame.c (Fdelete_frame): Call free_font_driver_list.
6034
3d9bec9a
CY
6035 * font.c (free_font_driver_list): Implement missing function.
6036
20d68145
CY
6037 * w32term.c (w32_term_init): Don't initialize the image cache
6038 here; it will be done in init_frame_faces.
6039
6040 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
6041 (struct x_display_info): Remove unused member null_pixel. New
6042 member xim_callback_data.
6043
6044 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
6045 (xim_initialize): Save pointer to callback function data.
6046 (xim_close_dpy): Free callback function data. Call XCloseIM,
6047 reverting 2008-11-04 change by David Smith.
6048 (x_term_init): Don't initialize the image cache here; it will be
6049 done in init_frame_faces. Remove ancient "null_pixel" cruft.
6050 (x_delete_display): Free x_dnd_atoms member.
6051
96f9306b
KH
60522008-12-13 Kenichi Handa <handa@m17n.org>
6053
6dec9044
JB
6054 * font.c (font_rescale_ratio): Moved from xfaces.c.
6055 Argument type changed. Handle a font-spec too.
96f9306b 6056 (font_score): Check Vface_font_rescale_alist.
6dec9044 6057 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
6058
6059 * xfaces.c (font_rescale_ratio): Moved to font.c.
6060
8d5b4964
CY
60612008-12-13 Chong Yidong <cyd@stupidchicken.com>
6062
6063 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
6064
e6df5336
JR
60652008-12-12 Jason Rumney <jasonr@gnu.org>
6066
6067 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
6068 Vwindow_system_version to the real w32 major version.
6069
97c6058a
DN
60702008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
6071
6072 * term.c (init_tty): Move setting the terminal name before the
6073 potential user: maybe_fatal.
6074
ec4e88d7
CY
60752008-12-11 Chong Yidong <cyd@stupidchicken.com>
6076
d4835507
JB
6077 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
6078 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 6079
b4233ec9
JR
60802008-12-11 Jason Rumney <jasonr@gnu.org>
6081
8ec71e23 6082 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 6083 SYMBOL_CHARSET. (Bug#547)
8ec71e23 6084
b4233ec9 6085 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 6086 size for surrogates. (Bug#1096, bug#872)
b4233ec9 6087
011a0143
JB
60882008-12-11 Juanma Barranquero <lekktu@gmail.com>
6089
6090 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6091
3c309f34
JB
60922008-12-11 Juanma Barranquero <lekktu@gmail.com>
6093
6094 * process.c (Fsystem_process_attributes, syms_of_process):
6095 Fix typo in name of Ssystem_process_attributes.
6096 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6097
fedc6ab5
JB
60982008-12-11 Juanma Barranquero <lekktu@gmail.com>
6099
6100 * syntax.c (Fmodify_syntax_entry): Doc fix.
6101
ba3de0e8
JB
61022008-12-10 Juanma Barranquero <lekktu@gmail.com>
6103
6104 * font.c (Ffont_spec): Move usage to end of docstring.
6105
174f1c74
JR
61062008-12-10 Jason Rumney <jasonr@gnu.org>
6107
6108 * w32font.c (Qcham): New symbol.
6109 (font_supported_scripts): Add cham, and comments for other new
6110 scripts in bitfield from OpenType spec.
9d32f818
JR
6111 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6112 contain characters beyond the bmp.
174f1c74 6113
7b649478
KH
61142008-12-10 Kenichi Handa <handa@m17n.org>
6115
6116 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6117 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6118 Qunicode_sip.
6119
2133e2d1
JB
61202008-12-10 Juanma Barranquero <lekktu@gmail.com>
6121
6122 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6123 (Fcoding_system_put): Use QCdefault_char.
6124 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6125
9af886ee
CY
61262008-12-09 Chong Yidong <cyd@stupidchicken.com>
6127
74d819eb
CY
6128 * xftfont.c (syms_of_xftfont): Fix typo.
6129
4ccfa1c0 6130 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6131
7c19d3ae
DN
61322008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6133
6134 * emacs.c (main): Close daemon_pipe on exec.
6135
567826bb
CY
61362008-12-08 Chong Yidong <cyd@stupidchicken.com>
6137
6138 * termchar.h (struct tty): New members termcap_term_buffer and
6139 termcap_strings_buffer.
6140
6141 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6142 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6143 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6144 All callers changed.
6145 (init_tty): Store termcap data and string buffers in new struct
6146 tty members termcap_term_buffer and termcap_strings_buffer.
6147 (delete_tty): Free them.
4ccfa1c0 6148 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6149
aa96c42b
SZ
61502008-12-07 Seiji Zenitani <zenitani@mac.com>
6151
6152 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6153 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6154
b7e1d896
CY
61552008-12-06 Chong Yidong <cyd@stupidchicken.com>
6156
6157 * coding.c (make_conversion_work_buffer): Disable buffer
6158 modification hooks in the work buffer.
6159
b5ec91a5
EZ
61602008-12-05 Eli Zaretskii <eliz@gnu.org>
6161
6162 * process.c (procfs_system_process_attributes): If `nread' has a
6163 negative value, assign zero to it.
6164
a5d2a52b
CY
61652008-12-05 Chong Yidong <cyd@stupidchicken.com>
6166
68c5540b 6167 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6168
7bf1bb21
KH
61692008-12-05 Kenichi Handa <handa@m17n.org>
6170
6171 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6172 second character is a combining character.
6173
2fdc7d00
EZ
61742008-12-05 Eli Zaretskii <eliz@gnu.org>
6175
6176 * process.c (procfs_system_process_attributes): Don't use cmd,
6177 cmdsize, and q without initializing them first.
6178
bf6bfba8
JR
61792008-12-04 Jason Rumney <jasonr@gnu.org>
6180
6181 * w32font.c (w32font_draw): Initialize orig_clip before getting
6182 it, and delete it when finished.
6183
a3b1a468
DN
61842008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6185
6186 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6187 case when running as a daemon before detaching.
6188
8b8be8eb
JB
61892008-12-03 Juanma Barranquero <lekktu@gmail.com>
6190
805f2638 6191 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6192
b1bde622
KH
61932008-12-03 Kenichi Handa <handa@m17n.org>
6194
e500c47d
KH
6195 * font.c (font_at): Set `multibyte' at first.
6196
ca516334
KH
6197 * coding.c (decode_coding_charset): Check type of an element of
6198 vector VALIDS.
7bf1bb21 6199 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6200
4ccfa1c0 6201 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6202 (font_for_char): Likewise.
6203
1e5ecd37
CY
62042008-12-03 Chong Yidong <cyd@stupidchicken.com>
6205
d5b01609 6206 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6207 (font_update_lface): Handle fonts with corrupted size specs,
6208 i.e. non-int and non-float.
d5b01609 6209
11e3a6e4 6210 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6211 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6212 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6213
ab06788b
CY
6214 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6215
1e5ecd37 6216 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6217 underline_minimum_offset for underline position.
1e5ecd37 6218
63c125ab
DN
62192008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6220
6221 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6222
6223 * character.c (c_string_width): Specify the type for LEN.
6224
3a8406e1
KH
62252008-12-03 Kenichi Handa <handa@m17n.org>
6226
4ccfa1c0 6227 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6228 (decode_coding_utf_8): Likewise.
4ccfa1c0 6229 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6230 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6231
651df7d9
CY
62322008-12-02 Chong Yidong <cyd@stupidchicken.com>
6233
6234 * keyboard.c (make_lispy_position): Only use PT if the selected
6235 window is current.
6236
1f625c6c
AS
62372008-12-02 Andreas Schwab <schwab@suse.de>
6238
f7741ce9
AS
6239 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6240
1f625c6c
AS
6241 * doprnt.c (doprnt1): Fix size of charbuf.
6242
92bc2678
CY
62432008-12-02 Chong Yidong <cyd@stupidchicken.com>
6244
6245 * keyboard.c (timer_check): Revert last change.
6246
93b9e8cc
JB
62472008-12-02 Juanma Barranquero <lekktu@gmail.com>
6248
6249 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6250
fd7a37d5
JB
62512008-12-01 Juanma Barranquero <lekktu@gmail.com>
6252
6253 * makefile.w32-in: Update dependencies.
6254 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6255
c115043b
AS
62562008-12-01 Andreas Schwab <schwab@suse.de>
6257
6258 * font.c (register_font_driver): Use xmalloc.
6259 (font_put_frame_data): Likewise.
6260
f5668d2a
CY
62612008-12-01 Chong Yidong <cyd@stupidchicken.com>
6262
860d96be
CY
6263 * xfaces.c (realize_x_face): Make abort condition clearer.
6264
f5668d2a
CY
6265 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6266
379c17e7
CY
62672008-11-30 Chong Yidong <cyd@stupidchicken.com>
6268
6269 * keyboard.c (timer_check): After a timer runs, ensure that the
6270 selected window's buffer is current.
6271
35f36d65
JB
62722008-11-30 Juanma Barranquero <lekktu@gmail.com>
6273
f952c61c
JB
6274 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6275 It was accidentally restored by the Unicode merge.
6276
35f36d65
JB
6277 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6278
b23077df
JB
62792008-11-29 Juanma Barranquero <lekktu@gmail.com>
6280
6281 * w32proc.c: Include "coding.h".
6282 (Fw32_short_file_name): Encode filename passed to Windows API.
6283 (Fw32_long_file_name): Encode filename passed to Windows API and
6284 decode back the result. (Bug#1433)
6285
b8ebe9dd
KH
62862008-11-29 Kenichi Handa <handa@m17n.org>
6287
8cc53f96
KH
6288 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6289 not before accessing it.
6290
b8ebe9dd
KH
6291 * charset.c (Fdefine_charset_internal): After calculating
6292 min_char, max_char, and fastmap, copy the charset structure again.
6293 (encode_char): Fix the previous change.
6294
59bc82c0
SZ
62952008-11-28 Seiji Zenitani <zenitani@mac.com>
6296
6297 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6298
6299 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6300
6301 * nsterm.m (x_set_frame_alpha): New function.
6302
32247e3d
EZ
63032008-11-27 Eli Zaretskii <eliz@gnu.org>
6304
6305 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6306
b003e5ff
JB
63072008-11-27 Juanma Barranquero <lekktu@gmail.com>
6308
6309 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6310 pointer to check_face_name.
6311
708550f5
KH
63122008-11-27 Kenichi Handa <handa@m17n.org>
6313
6314 * category.h (SET_CATEGORY_SET): Call set_category_set.
6315 (set_category_set): Extern it.
6316
6317 * category.c (hash_get_category_set): New function.
6318 (Fmodify_category_entry): Adjusted for the change of
6319 char_table_ref_and_range. Call hash_get_category_set to get a
6320 category set to store in the table.
6321
6322 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6323 Funify_charset.
6324
2ae37cf0 6325 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6326 (DECODE_CHAR): Check if the decoder vector is ready.
6327 (ENCODE_CHAR): Check if the encoder char-table is ready.
6328 (maybe_unify_char): Extern it.
6329
6330 * charset.c (Vchar_unified_charset_table): Delete it.
6331 (inhibit_load_charset_map): New variable.
6332 (temp_charset_work): New variable.
6333 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6334 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6335 New macros.
6336 (load_charset_map): Meaning of control_flag changed. If
6337 inhibit_load_charset_map is nonzero, setup a table in
6338 temp_charset_work.
6339 (load_charset): New argument control_flag.
6340 (map_charset_for_dump): New function.
6341 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6342 map_charset_for_dump.
6343 (Fdefine_charset_internal): If the charset method is MAP, load
6344 mapping tables by calling load_charset.
6345 (Funify_charset): Don't load a mapping table but directly set
6346 Vchar_unify_table.
6347 (maybe_unify_char): New function.
6348 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6349 Handle the case of inhibit_load_charset_map being nonzero.
6350 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6351 Handle the case of inhibit_load_charset_map being nonzero.
6352 (Fclear_charset_maps): Just free temp_charset_work.
6353 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6354 variable.
6355
6356 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6357 change of char_table_ref_and_range.
6358 (char_table_ref_and_range): Change the meaning of argument FROM
6359 and TO. Now the caller must provide initial values for *FROM
6360 and *TO.
6361
6362 * fontset.c (fontset_add): Adjusted for the change of
6363 char_table_ref_and_range.
6364 (fontset_get_font_group): Likewise.
6365 (Ffontset_info): Likewise.
6366
6367 * keymap.c (describe_vector): Adjusted for the change of
6368 char_table_ref_and_range. For char-table, put boundary between
6369 non-ASCII and 8-bit characters.
6370
6371 * print.c (print_object): For bool-vector, delete unnecessary
6372 check of ASCII_BYTE_P.
6373
9196133b
JR
63742008-11-26 Jason Rumney <jasonr@gnu.org>
6375
6376 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6377 leading in font height. (Bug#879)
9196133b 6378
9f688acf
GM
63792008-11-26 Glenn Morris <rgm@gnu.org>
6380
6381 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6382 redefinition with ifdef. (Bug#1383)
6383
90d19aff
AR
63842008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6385
6386 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6387
4ccfa1c0 63882008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6389
6390 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6391 New EmacsView methods.
6392 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6393 Fixes bug #1048,1357,1414.
6394
63952008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6396
6397 Fix bug #1362.
6398 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6399 is not an indexed color.
6400 * nsterm.m (free_indexed_color): Add argument checking.
6401 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6402
e7d5ecb3
CY
64032008-11-24 Chong Yidong <cyd@stupidchicken.com>
6404
6405 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6406 Document confirm-after-completion value for
6407 minibuffer-completion-confirm.
6408
c285743c
JR
64092008-11-24 Jason Rumney <jasonr@gnu.org>
6410
6411 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6412 warning.
6413
b0857706
JR
64142008-11-23 Jason Rumney <jasonr@gnu.org>
6415
6416 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6417 restored before returning.
6418
6419 * w32font.c (check_face_name): New function.
6420 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6421 fonts. (Bug#642)
b0857706 6422
ee50ff07
MR
64232008-11-22 Martin Rudalics <rudalics@gmx.at>
6424
6425 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6426 confirm-nonexistent-file-or-buffer in doc-string.
6427
b8ff72fa
SM
64282008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6429
6430 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6431 Fix copy/paste typo. Add checks.
6432
cee53ed4
KH
64332008-11-21 Kenichi Handa <handa@m17n.org>
6434
6435 * coding.c (detect_coding_iso_2022): Reject invalid composition
6436 sequence.
6437 (DECODE_COMPOSITION_START): If the current source is the last
6438 block, and the current composition doesn't end, regard this
6439 sequence as invalid.
6440 (decode_coding_iso_2022): Handle invalid composition sequence.
6441
f6ef1e65
MR
64422008-11-20 Martin Rudalics <rudalics@gmx.at>
6443
6444 * window.c (coordinates_in_window): Don't return
6445 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6446 line when the window is not the rightmost one. (Bug#1372)
6447
e08b1705
MR
64482008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6449
6450 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6451
ad98e89f
EZ
64522008-11-15 Eli Zaretskii <eliz@gnu.org>
6453
6454 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6455 and bright_bg if noninteractive is non-zero.
6456
fb098a4b
CY
64572008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6458
6459 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6460 x_draw_glyph_string_background.
6461
6462 * w32term.c (x_draw_glyph_string): Likewise.
6463
ce952b6e
CY
64642008-11-15 Chong Yidong <cyd@stupidchicken.com>
6465
6466 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6467 the next glyph string once past the overhang width.
6468
6469 * nsterm.m (ns_draw_glyph_string): Likewise.
6470
6471 * w32term.c (x_draw_glyph_string): Likewise.
6472
26ea7079
CY
64732008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6474
6475 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6476 double file close.
6477
1c33c906
MR
64782008-11-14 Martin Rudalics <rudalics@gmx.at>
6479
6480 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6481 dedicated status of window before attempting to display another
6482 buffer in it.
6483
8fc29035
JB
64842008-11-14 Juanma Barranquero <lekktu@gmail.com>
6485
6486 * msdos.c (Fmsdos_long_file_names):
6487 (syms_of_msdos) <dos-unsupported-char-glyph>:
6488 * dosfns.c (Fint86): Fix typos in docstrings.
6489
55fb4286
EZ
64902008-11-14 Eli Zaretskii <eliz@gnu.org>
6491
6492 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6493
3fda0315
KY
64942008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6495
6496 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6497
7e849c17
CY
64982008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6499
6500 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6501
6502 * frame.h: Negative alpha means "don't touch".
6503
6504 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6505
6506 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6507
b9fd67bd
DN
65082008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6509
6510 * hftctl.c:
6511 * chpdef.h:
6512 * acldef.h: Remove files used only for systems no longer supported.
6513
6514 * Makefile.in: Fix .o alphabetical ordering.
6515 (hftctl.o): Remove dependency, file removed.
6516 (keymap.o, print.o): Depend on charset.h.
6517
d5998e03
KH
65182008-11-10 Kenichi Handa <handa@m17n.org>
6519
2ae37cf0 6520 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6521
be70e183
CY
65222008-11-08 Chong Yidong <cyd@stupidchicken.com>
6523
6524 * dired.c (file_name_completion): If completion_ignore_case is
6525 enabled, ignore case when checking completion-regexp-list.
6526
7cf94eac
EZ
65272008-11-08 Eli Zaretskii <eliz@gnu.org>
6528
6529 * vm-limit.c (get_lim_data): Fix last change.
6530
ee107a89
KH
65312008-11-08 Kenichi Handa <handa@m17n.org>
6532
6533 * character.c (Fget_byte): New function.
6534 (syms_of_character): Defsubr Fget_byte.
6535
5fd15622
CY
65362008-11-07 Chong Yidong <cyd@stupidchicken.com>
6537
6538 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6539 cursor position is valid after scrolling.
6540
13d62fad
JB
65412008-11-06 Juanma Barranquero <lekktu@gmail.com>
6542
6543 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6544
a1dd2936
GM
65452008-11-06 Glenn Morris <rgm@gnu.org>
6546
6547 * xterm.c (handle_one_xevent): Don't let popup menus cause
6548 mouse-autoselect-window related window switching. (Bug#1261)
6549
860cd236
CY
65502008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6551
6552 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6553
653a3150
AS
65542008-11-04 Andreas Schwab <schwab@suse.de>
6555
6556 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6557
870f5cac
CY
65582008-11-03 Chong Yidong <cyd@stupidchicken.com>
6559
6560 * xfns.c (Fx_wm_set_size_hint): New function.
6561
1e02f3cb
MR
65622008-11-03 Martin Rudalics <rudalics@gmx.at>
6563
6564 * textprop.c (Fprevious_single_char_property_change): Return 0
6565 when there's no change in a string. (Bug#1301)
6566
e630dfc6
MR
65672008-11-02 Martin Rudalics <rudalics@gmx.at>
6568
6569 * frame.c (do_switch_frame): New argument NORECORD passed to
6570 Fselect_window.
6571 (Fselect_frame): New argument NORECORD passed to
6572 do_switch_frame.
6573 (Fset_frame_selected_window): New argument NORECORD passed to
6574 Fselect_frame.
6575 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6576 in call of do_switch_frame.
6577 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6578 Handle NORECORD argument in call of Fselect_frame.
6579 * lisp.h (do_switch_frame, Fselect_frame)
6580 (Fset_frame_selected_window): Adjust declarations.
6581 * window.c (select_frame_norecord): New function.
6582 (run_window_configuration_change_hook): Use it and call
6583 Fselect_frame with NORECORD set.
6584 (Fselect_window): Pass NORECORD to Fselect_frame.
6585 (Fset_window_configuration): Handle NORECORD argument in call of
6586 do_switch_frame.
6587 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6588 Fset_frame_selected_window.
6589 * keyboard.c (command_loop_1): Handle NORECORD in call of
6590 Fselect_frame (currently ifdefd).
6591
9020b223
GM
65922008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6593
6594 * emacs.c (USAGE2): Untabify.
6595
793ffee8
SM
65962008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6597
6598 * composite.c (fill_gstring_header): Fix copy/paste typo.
6599
ab6d1131
MR
66002008-10-31 Martin Rudalics <rudalics@gmx.at>
6601
6602 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6603 (Fother_window): Rename argument and rewrite doc-string.
6604 (select_window_norecord): Fix return value. (Bug#1276)
6605
601a9cf1
JB
66062008-10-30 Juanma Barranquero <lekktu@gmail.com>
6607
6608 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6609 new frames overriding foreground for tooltips. Based on similar patch
6610 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6611
813b0652
CY
66122008-10-29 Chong Yidong <cyd@stupidchicken.com>
6613
6614 * emacs.c (Fdaemon_initialized): Initialize nfd.
6615
4414f58f
MR
66162008-10-29 Martin Rudalics <rudalics@gmx.at>
6617
6618 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6619 (Fwindow_text_height): Clarify doc-strings.
6620 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6621 doc-string of window-scroll-functions.
6622
ecdcaa09
RS
66232008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6624
6625 * category.c (syms_of_category): Fix typo in docstring.
6626
23fe745a
JB
66272008-10-28 Juanma Barranquero <lekktu@gmail.com>
6628
6629 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6630 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6631 Fix typos in docstrings.
6632
ff808935
DN
66332008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6634
6635 * emacs.c (daemon_pipe): Make non-static.
6636 (IS_DAEMON): Move definition ...
6637 * lisp.h (IS_DAEMON): ... here.
6638 (daemon_pipe): Declare.
6639 (is_daemon): Remove.
6640 * dispnew.c (init_display): Use IS_DAEMON.
6641
fc012771
SM
66422008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6643
6644 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6645 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6646
6647 * emacs.c (is_daemon): Remove.
6648 (main): Don't set is_daemon.
6649 (IS_DAEMON): New macro.
6650 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6651 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6652 parent exits.
6653 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6654
d8bdbe6f
CY
66552008-10-27 Chong Yidong <cyd@stupidchicken.com>
6656
d1a072bf
CY
6657 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6658 over-sized glyph, draw it with the default glyph width.
6659
e2e325aa
CY
6660 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6661 glyph, draw it with the default glyph width.
6662
6663 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6664 glyph, draw it with the default glyph width.
6665
d8bdbe6f
CY
6666 * xdisp.c (try_scrolling): When computing the distance from the
6667 scroll margin to PT, try moving some distance past the window
6668 bottom before giving up.
6669
7bfac547
MR
66702008-10-27 Martin Rudalics <rudalics@gmx.at>
6671
6672 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6673 (Fset_window_buffer): Explain in doc-string that a window can be
6674 "strongly" dedicated to its buffer.
6675
4ff029f6
DN
66762008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6677
6678 * emacs.c (daemon_name): New variable.
6679 (main): Deal with --daemon=SERVER_NAME.
6680 (Fdaemonp): Return a name if one was passed to --daemon.
6681
5790ef40
DN
66822008-10-26 Romain Francoise <romain@orebokech.com>
6683
f9bd0df9 6684 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6685 (main): Create a pipe before forking, make the parent exit only after
6686 the child has closed its end of the pipe. Move closing the
6687 descriptors ...
6688 (Fdaemon_initialized): ... here. New function.
6689
f5385255
SM
66902008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6691
4d632321
SM
6692 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6693 the previous unoptimized table.
6694
f5385255
SM
6695 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6696 the distinction between non-nil and non-t value of `dedicated'.
6697
6c56a0f3
CY
66982008-10-25 Chong Yidong <cyd@stupidchicken.com>
6699
6700 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6701 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6702
fec89261
MR
67032008-10-25 Martin Rudalics <rudalics@gmx.at>
6704
6705 * window.c (Fget_buffer_window, Fdelete_windows_on)
6706 (Freplace_buffer_in_windows): Make buffer argument optional and
6707 rename to buffer_or_name.
6708
34fcddd0
CY
67092008-10-24 Chong Yidong <cyd@stupidchicken.com>
6710
f5385255
SM
6711 * xdisp.c (handle_single_display_spec, handle_display_prop):
6712 Undo 2005-05-16 change.
34fcddd0
CY
6713 (handle_stop): Pop iterator if it's loaded with an empty string.
6714 (get_overlay_strings_1): Don't save iterator if it's loaded with
6715 an empty string (bug#1201).
6716
064766f2
KH
67172008-10-24 Kenichi Handa <handa@m17n.org>
6718
6719 * ftfont.c (ftfont_otf_features): Fix previous change.
6720 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6721 calling ftfont_otf_features.
6722
f9bd0df9 67232008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6724
6725 * font.c (font_match_p): Fix for the case that a vector of
6726 characters is in script-representative-chars.
6727
1dae9197
MA
67282008-10-24 Michael Albinus <michael.albinus@gmx.de>
6729
6730 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6731 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6732 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6733 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6734 macro. (Bug#1186)
1dae9197 6735
f9bd0df9 67362008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6737
6738 * s/sol2-10.h: New file.
6739
878a4584
JB
67402008-10-23 Juanma Barranquero <lekktu@gmail.com>
6741
6742 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6743 poor beast has survived 9+ years and the jump from xterm.c!).
6744
cd265ca6
MR
67452008-10-23 Martin Rudalics <rudalics@gmx.at>
6746
6747 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6748 Reword doc-string.
f5385255 6749 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6750
472a4dc9
JB
67512008-10-23 Juanma Barranquero <lekktu@gmail.com>
6752
6753 * character.c (syms_of_character) <script-representative-chars>:
6754 <unicode-category-table>: Doc fixes.
6755
159bd5a2
NF
67562008-10-23 Noah Friedman <friedman@splode.com>
6757
6758 * coding.c (make_conversion_work_buffer): Check that
6759 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6760 Fget_buffer_create.
6761
49f9c344
KH
67622008-10-23 Kenichi Handa <handa@m17n.org>
6763
6764 * font.c (font_add_log): Check the values of extra properties.
6765
12bb3111
MR
67662008-10-22 Martin Rudalics <rudalics@gmx.at>
6767
6768 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6769 Reword doc-string.
6770 (Fset_window_parameter): Use NILP.
6771 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6772 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6773
bbeb4e99
JB
67742008-10-22 Juanma Barranquero <lekktu@gmail.com>
6775
6776 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6777
67782008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6779
6780 * nsfns.m (ns_appkit_version): New function.
6781 (x-server-version): Use it.
6782 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6783 (x-server-vendor): Don't check_ns().
6784
6785 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6786
a9b555d3
JB
67872008-10-22 Juanma Barranquero <lekktu@gmail.com>
6788
6789 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6790 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6791
4626499f
KH
67922008-10-22 Kenichi Handa <handa@m17n.org>
6793
e3681952
KH
6794 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6795 scripts.
6796
4626499f
KH
6797 * category.c (word_boundary_p): Check scripts instead of charset.
6798 Handle nil value in word-separating-categories and
6799 word-combining-categories.
6800 (syms_of_category): Fix docstrings of word-separating-categories
6801 and word-combining-categories.
6802
1560f91a
EZ
68032008-10-21 Eli Zaretskii <eliz@gnu.org>
6804
6805 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6806 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6807
f4668441
MR
68082008-10-21 Martin Rudalics <rudalics@gmx.at>
6809
6810 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6811 Rename arg "buffer" to "buffer_or_name".
6812 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6813 it optional.
6814 (no_switch_window): Remove since the return value is not used.
a9b555d3 6815 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6816 Consider window as dedicated when Fwindow_dedicated_p returns a
6817 non-nil value.
6818 * lisp.h: Remove prototype for no_switch_window.
6819
fd75ddb2
JD
68202008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6821
6822 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6823 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6824
07295713
KH
68252008-10-21 Kenichi Handa <handa@m17n.org>
6826
6827 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6828 check Vlatin_extra_code_table.
6829
712adc82
EZ
68302008-10-20 Eli Zaretskii <eliz@gnu.org>
6831
6832 * fileio.c (Fset_file_modes): Doc fix.
6833
f549eb0b
MA
68342008-10-19 Michael Albinus <michael.albinus@gmx.de>
6835
6836 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6837 in arrays.
6838
aac0c6e3
MR
68392008-10-19 Martin Rudalics <rudalics@gmx.at>
6840
6841 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6842 Mention kill-buffer in doc-string.
6843 (Fset_window_buffer): Reinsert tem check removed in last commit.
6844 (Fenlarge_window, Fshrink_window): Have argument names and
6845 doc-string follow Elisp manual more closely.
6846
68472008-10-18 Eli Zaretskii <eliz@gnu.org>
6848
6849 * fileio.c (Fset_file_modes): Doc fix.
6850
68512008-10-18 Martin Rudalics <rudalics@gmx.at>
6852
6853 * window.c (Fwindow_width, Fset_window_start)
6854 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6855 (Fdelete_windows_on, Freplace_buffer_in_windows):
6856 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6857 (Fwindow_dedicated_p): Make window argument optional.
6858 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6859 (Fset_window_buffer): Respect any non-nil dedicated value for
6860 window. Rename "buffer" argument to "buffer_or_name".
6861
68622008-10-18 Ulrich Mueller <ulm@gentoo.org>
6863
6864 * m/sh3.h: New file, machine description for SuperH.
6865
68662008-10-17 Martin Rudalics <rudalics@gmx.at>
6867
6868 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6869
68702008-10-17 Kenichi Handa <handa@m17n.org>
6871
6872 * ftfont.c (ftfont_otf_features): Fix indexing
6873 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6874
68752008-10-16 Magnus Henoch <mange@freemail.hu>
6876
6877 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6878 (Fdbus_call_method_asynchronously): Ditto.
6879 This change makes C-h f display the argument list.
6880
68812008-10-16 Chong Yidong <cyd@stupidchicken.com>
6882
6883 * fileio.c (Fexpand_file_name): Doc fix.
6884
6885 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6886 of :foreground and :background equivalent to unspecified (20.x
6887 compatibility).
6888
68892008-10-15 Eli Zaretskii <eliz@gnu.org>
6890
6891 * buffer.c (syms_of_buffer): Doc fix.
6892
68932008-10-14 Kenichi Handa <handa@m17n.org>
6894
6895 * font.c (font_clear_prop): When clearing font width, clear the
6896 average width field too.
6897
68982008-10-12 Andreas Schwab <schwab@suse.de>
6899
6900 * ftfont.c (ftfont_shape_by_flt): Make static.
6901 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6902
6903 * font.c: Don't include <m17n-flt.h>.
6904
69052008-10-10 Eli Zaretskii <eliz@gnu.org>
6906
6907 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6908
69092008-10-09 Eli Zaretskii <eliz@gnu.org>
6910
6911 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6912 away code.
6913
69142008-10-09 Chong Yidong <cyd@stupidchicken.com>
6915
6916 * dispnew.c (update_text_area): Avoid looping due to large glyph
6917 overhangs (bug#1070).
6918
69192008-10-09 Kenichi Handa <handa@m17n.org>
6920
6921 * fontset.c (face_for_char): If face->fontset is negative, just
6922 return ascii_face.
6923
f5385255
SM
6924 * font.c (font_delete_unmatched): Fix previous change.
6925 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6926
69272008-10-09 Martin Rudalics <rudalics@gmx.at>
6928
6929 * frame.c (Fraise_frame): On text-only terminals select frame in
6930 order to make it visible. (Bug#1061)
6931
69322008-10-08 Chong Yidong <cyd@stupidchicken.com>
6933
6934 * fontset.c (fontset_find_font): Check frame validity.
6935
69362008-10-07 Chong Yidong <cyd@stupidchicken.com>
6937
a9b555d3 6938 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6939 (xg_display_close): Allow Emacs to close all displays (bug#985).
6940
69412008-10-06 Andreas Schwab <schwab@suse.de>
6942
f5385255 6943 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6944
69452008-10-06 Chong Yidong <cyd@stupidchicken.com>
6946
f5385255 6947 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6948
a9b555d3 6949 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6950
6951 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6952 during initialization.
6953
69542008-10-04 Eli Zaretskii <eliz@gnu.org>
6955
6956 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6957 whole thing on MSDOS frames as well as on a TTY.
6958
6959 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6960 well as for TTY.
6961 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6962 well as on a TTY.
6963
6964 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6965 as well as for TTY.
6966
6967 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6968
6969 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6970 MSDOS frames as well.
6971
69722008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6973
6974 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6975 correct arguments.
b71ac3dd 6976 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6977
69782008-10-03 Glenn Morris <rgm@gnu.org>
6979
6980 * emacs.c (USAGE1): Add --daemon.
6981
69822008-10-02 Eli Zaretskii <eliz@gnu.org>
6983
6984 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6985 100, so it's in percents as advertised.
6986
69872008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6988
6989 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6990 (ns_output.current_cursor, ns_output.desired_cursor)
6991 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6992 (FRAME_NEW_CURSOR_COLOR): Remove.
6993
6994 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6995 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6996 enumeration (HOLLOW_BOX_CURSOR, etc.).
6997
6998 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6999 (draw_window_cursor): Simplify code.
f5385255
SM
7000 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
7001 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 7002 updates manually.
a9b555d3
JB
7003 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
7004 Use core Emacs cursor types.
aac0c6e3 7005
b8ff72fa 7006 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
7007
70082008-10-02 Martin Rudalics <rudalics@gmx.at>
7009
7010 * process.c (Faccept_process_output): Fix doc-string.
7011
70122008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
7013
7014 * gmalloc.c (__sbrk): Also define for uClibc.
7015
7016 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
7017 for uClibc.
7018
70192008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7020
7021 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
7022 styles.
7023 (nsfont_open): Reenable the cache.
7024
70252008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
7026
7027 * font.c (font_matching_entity): Reflect ATTRS in font selection.
7028 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
7029
70302008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
7031
7032 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
7033 a suspended terminal.
7034
70352008-09-30 Michael Albinus <michael.albinus@gmx.de>
7036
7037 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
7038
70392008-09-30 Eli Zaretskii <eliz@gnu.org>
7040
7041 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
7042
70432008-09-30 Chong Yidong <cyd@stupidchicken.com>
7044
7045 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
7046 in a continued line coincides with a line beginning.
7047
70482008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
7049
7050 * nsfont.m (nsfont_trait_distance): Fix bug.
7051 (nsfont_list): Return a list rather than a vector (syncs with Handa
7052 changes of 2008-05-14).
7053 (nsfont_open): Improve logging.
7054
70552008-09-29 Andreas Schwab <schwab@suse.de>
7056
7057 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
7058
70592008-09-28 Martin Rudalics <rudalics@gmx.at>
7060
7061 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
7062 name as char-resolve-modifiers.
7063 Reported by: Markus Triska <markus.triska@gmx.at>
7064
70652008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
7066
7067 * dispnew.c (init_display): Return earlier when running as a daemon.
7068
70692008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
7070
7071 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
7072
70732008-09-27 Eli Zaretskii <eliz@gnu.org>
7074
7075 * composite.c (Fcomposition_get_gstring)
7076 (Fcompose_region_internal, Fcompose_string_internal)
7077 (Ffind_composition_internal): Doc fix.
7078 (syms_of_composite) <compose-chars-after-function>: Doc fix.
7079 (syms_of_composite) <auto-composition-function>: Doc fix.
7080 (syms_of_composite) <composition-function-table>: Doc fix.
7081
70822008-09-25 Chong Yidong <cyd@stupidchicken.com>
7083
7084 * search.c (wordify): New argument for lax word-ends.
7085 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
7086
70872008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
7088
7089 * lisp.h (is_daemon): Declare.
7090 * dispnew.c (init_display): Do not try to initialize the terminal
7091 when running as a daemon.
7092
70932008-09-22 Chong Yidong <cyd@stupidchicken.com>
7094
7095 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7096 x_display_pixel_height.
7097
70982008-09-22 Martin Rudalics <rudalics@gmx.at>
7099
7100 * undo.c (record_point): Don't call Fundo_boundary for first
7101 change. (Bug#731)
7102
71032008-09-22 Juanma Barranquero <lekktu@gmail.com>
7104
7105 * emacs.c (Fdaemonp): Doc fix.
7106
71072008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7108
7109 * emacs.c (main): Place #ifdef in the proper place.
7110
71112008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7112
7113 * emacs.c (standard_args): Add --daemon.
7114 (main): Disconnect from the terminal when --daemon is passed.
7115 (is_daemon): New variable.
7116 (Fdaemonp): New function.
7117 (syms_of_emacs): Defsubr it.
7118
71192008-09-20 Chong Yidong <cyd@stupidchicken.com>
7120
7121 * xdisp.c (get_next_display_element): Handle string display
7122 correctly when checking for the end of a box run.
7123
71242008-09-20 Glenn Morris <rgm@gnu.org>
7125
7126 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7127 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7128 (Frename_file): Avoid copying to trash if a rename involves
7129 a delete. (Bug#964).
7130
71312008-09-20 Eli Zaretskii <eliz@gnu.org>
7132
7133 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7134 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7135 frames as well as termcap frames.
7136 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7137 get_named_tty.
7138
71392008-09-19 Eli Zaretskii <eliz@gnu.org>
7140
7141 * process.c (procfs_system_process_attributes): Fix cmdline in
7142 case /proc/PID/cmdline is empty.
7143
7144 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7145 x_display_pixel_height.
7146
71472008-09-19 Juanma Barranquero <lekktu@gmail.com>
7148
7149 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7150
7151 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7152 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7153
71542008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7155
7156 * dispextern.h (struct it): Move line_wrap away from the middle of
7157 bitfields. Move voffset in struct iterator_stack_entry after the
7158 bitfields. Move tab_width near after another short.
7159
71602008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7161
7162 * frame.h (struct frame): Move alpha from the middle of bitfields.
7163
7164 * window.h (struct window): Move frozen_window_start_p after the
7165 rest of the bitfields to reduce padding.
7166
71672008-09-18 Chong Yidong <cyd@stupidchicken.com>
7168
7169 * xterm.h (x_display_info): Remove `height' and `width' members.
7170
7171 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7172
7173 * w32term.h (w32_display_info): Remove `height', `width',
7174 `height_in', and `width_in' members.
7175
b8ff72fa
SM
7176 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7177 New functions.
aac0c6e3
MR
7178 (x_calc_absolute_position): Use them.
7179 (x_term_init): Omit removed `height' and `width' members.
7180
b8ff72fa
SM
7181 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7182 New functions.
aac0c6e3
MR
7183 (w32_read_socket, x_calc_absolute_position): Use them.
7184 (w32_initialize_display_info, w32_term_init): Omit removed members
7185 of w32_display_info.
7186
b8ff72fa
SM
7187 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7188 New functions.
7189 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7190
b8ff72fa
SM
7191 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7192 New functions.
aac0c6e3
MR
7193 (x_calc_absolute_position): Use them.
7194 (x_term_init): Omit removed `height' and `width' members.
7195
7196 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7197 (compute_tip_xy):
7198 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7199 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7200 x_display_pixel_width.
7201
72022008-09-18 Kenichi Handa <handa@m17n.org>
7203
7204 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7205 (composition_compute_stop_pos): Fix handling of static composition.
7206 (Fcomposition_get_gstring): Check FROM and TO at first.
7207
72082008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7209
46e722a9 7210 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7211 mixup (YAILOM).
7212
72132008-09-17 Chong Yidong <cyd@stupidchicken.com>
7214
7215 * indent.c (Fvertical_motion): Use position reported by iterator
7216 instead of PT for determining screen motion (bug#943).
7217
72182008-09-17 Romain Francoise <romain@orebokech.com>
7219
7220 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7221
72222008-09-17 Kenichi Handa <handa@m17n.org>
7223
7224 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7225
7226 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7227 if necessary.
7228
72292008-09-16 Kenichi Handa <handa@m17n.org>
7230
7231 * coding.c (make_conversion_work_buffer): Avoid calling
7232 Fget_buffer_create if it is not necessary.
7233
72342008-09-15 Martin Rudalics <rudalics@gmx.at>
7235
7236 * window.c (Fselect_window): Don't update window_select_count and
7237 use_time when norecord is not nil.
7238
72392008-09-14 Kenichi Handa <handa@m17n.org>
7240
7241 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7242 specpdl_ptr.
7243
72442008-09-12 Kenichi Handa <handa@m17n.org>
7245
7246 * indent.c (scan_for_column): Don't handle automatic composition
7247 if the current buffer is not associated with a window.
7248
7249 * composite.c (composition_reseat_it): If the current buffer is
7250 not associated with a window, ignore the automatic composition.
7251 (find_automatic_composition): Likewise.
7252
72532008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7254
7255 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7256 (Fgpm_mouse_stop): Use it.
7257 * termhooks.h (close_gpm): Declare.
7258 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7259 connection if Gpm_GetEvent fails.
7260
7261 * window.c (set_window_buffer): Always preserve current-buffer.
7262
72632008-09-12 Glenn Morris <rgm@gnu.org>
7264
7265 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7266
72672008-09-11 Glenn Morris <rgm@gnu.org>
7268
7269 * charset.c (charset-map-path): Doc fix.
7270
72712008-09-10 Kenichi Handa <handa@m17n.org>
7272
7273 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7274
7275 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7276 compose a grapheme cluster with the preceding base glyph.
7277
7278 * composite.c (composition_compute_stop_pos): Fix previous change.
7279 Reset cmp_it->id to -1 at first.
7280
72812008-09-10 Glenn Morris <rgm@gnu.org>
7282
7283 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7284
72852008-09-09 Chong Yidong <cyd@stupidchicken.com>
7286
7287 * keyboard.c (read_key_sequence): Reapply translation maps when
7288 switching keyboards.
7289
72902008-09-09 Kenichi Handa <handa@m17n.org>
7291
7292 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7293 characters.
7294
7295 * composite.c (FORWARD_CHAR): Fix calculation
7296 of (POSITION).pos_byte.
7297 (composition_compute_stop_pos): Limit the search of composition to
7298 at most 500 characters ahead. If we reach the limit or find a
7299 newline, set cmp_it->ch to -2 and return 0.
7300 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7301
73022008-09-08 Kenichi Handa <handa@m17n.org>
7303
7304 * indent.c (Fvertical_motion): Be sure to set
7305 it_overshoot_expected if it.cmp_it.id is non-negative.
7306
73072008-09-07 Andreas Schwab <schwab@suse.de>
7308
7309 * callproc.c (Fcall_process): Don't hold references to string data
7310 across garbage collection. Move initialisation of new_argv down
7311 to avoid compiler bug.
7312
73132008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7314
7315 * process.c (Fsystem_process_attributes): Doc fix.
7316
73172008-09-07 Chong Yidong <cyd@stupidchicken.com>
7318
7319 * callproc.c (Fcall_process): Canonicalize current directory name.
7320
7321 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7322 iterator advances to the next line if the current line ends in a
7323 continued tab.
7324
73252008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7326
7327 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7328 member to point to cmp_from.
7329
7330 * xdisp.c: Doc fix for references to gidx data member.
7331
73322008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7333
7334 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7335
73362008-09-07 Kenichi Handa <handa@m17n.org>
7337
7338 * composite.c (FORWARD_CHAR): Check STOP after
7339 incrementing (POSITION).pos.
7340
73412008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7342
7343 * process.c (Fsystem_process_attributes): Doc fix.
7344
73452008-09-06 Chong Yidong <cyd@stupidchicken.com>
7346
7347 * keyboard.c (Ftop_level): Doc fix.
7348
73492008-09-06 Eli Zaretskii <eliz@gnu.org>
7350
7351 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7352 minibuffer, don't let lower part of menu invade the echo area.
7353
7354 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7355 "char *q" to access menu text and advance through it. Revert the
7356 change that displayed ">" instead of ASCII character 0x10.
7357
73582008-09-05 Eli Zaretskii <eliz@gnu.org>
7359
7360 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7361 toggle boxes and radio buttons on MS-DOS as well.
7362
73632008-09-05 Kenichi Handa <handa@m17n.org>
7364
7365 * composite.c (autocmp_chars): Check lookback count.
7366 (composition_compute_stop_pos): Set cmp_it->lookback.
7367 (composition_reseat_it): Check lookback count.
7368 (struct position_record): New struct.
7369 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7370 (find_automatic_composition): New function.
7371 (composition_adjust_point): Use find_automatic_composition.
7372
7373 * dispextern.h (struct composition_it): New member lookback.
7374
73752008-09-02 Chong Yidong <cyd@stupidchicken.com>
7376
7377 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7378 if moving by a single line.
7379
73802008-09-02 Andreas Schwab <schwab@suse.de>
7381
7382 * xterm.c (x_delete_display): Fix merge error.
7383
7384 * fileio.c (Fexpand_file_name): Remove unused variables.
7385
73862008-09-02 Eli Zaretskii <eliz@gnu.org>
7387
7388 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7389 storage on all platforms, not just on DOS_NT.
7390
73912008-09-02 Jason Rumney <jasonr@gnu.org>
7392
b8ff72fa
SM
7393 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7394 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7395
73962008-09-01 Chong Yidong <cyd@stupidchicken.com>
7397
7398 * xfaces.c (Finternal_set_alternative_font_family_alist)
7399 (Finternal_set_alternative_font_registry_alist): Properly copy
7400 entire alist structure.
7401
74022008-09-01 Kenichi Handa <handa@m17n.org>
7403
d66c0241 7404 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7405 representative chars of the script is a vector.
d66c0241
JB
7406 (ftfont_list): Handle the case where the representative chars of
7407 the script is a vector.
aac0c6e3
MR
7408
7409 * character.c (syms_of_character): Docstring of
7410 script-representative-chars fixed.
7411
74122008-08-31 Eli Zaretskii <eliz@gnu.org>
7413
7414 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7415 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7416 the menu. Allocate larger buffer for `text', to account for
7417 possible ^C characters.
7418
74192008-08-31 Martin Rudalics <rudalics@gmx.at>
7420
7421 * xdisp.c (prepare_menu_bars): Don't call
7422 Vwindow_size_change_functions with arg Qt.
7423
74242008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7425
7426 * font.h (font_range):
7427 * fileio.c (report_file_error):
46e722a9
SM
7428 * composite.c (composition_update_it): Yet another int/Lisp_Object
7429 mixup (YAILOM).
aac0c6e3
MR
7430
74312008-08-30 Glenn Morris <rgm@gnu.org>
7432
7433 * data.c (Fmake_variable_frame_local): Doc fix.
7434
7435 * frame.c (Fmodify_frame_parameters): Doc fix.
7436
74372008-08-30 Eli Zaretskii <eliz@gnu.org>
7438
7439 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7440 needed by GetTokenInformation.
7441 (w32_system_process_attributes): Check return values of all system
7442 APIs.
7443
7444 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7445 only when the state changes.
7446 (IT_update_begin, IT_update_end): Add termscript trace.
7447
7448 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7449 clipboard is unavailable. Set dst to NULL if it doesn't point to
7450 malloc'ed data.
7451 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7452 passing random values to xfree.
7453
7454 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7455 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7456
74572008-08-29 Jason Rumney <jasonr@gnu.org>
7458
7459 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7460
74612008-08-29 Eli Zaretskii <eliz@gnu.org>
7462
7463 * composite.c (fill_gstring_body): Avoid compiler warnings.
7464
7465 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7466 LGLYPH_SET_CODE to avoid compiler warnings.
7467
2ae37cf0 7468 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7469
7470 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7471
7472 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7473 LGLYPH_SET_CODE.
7474
74752008-08-29 Kenichi Handa <handa@m17n.org>
7476
7477 * fileio.c (report_file_error): Don't downcase the first character
7478 of errstring if it is still unibyte.
7479
74802008-08-29 Kenichi Handa <handa@m17n.org>
7481
7482 These changes are to re-implement the automatic composition so
7483 that it doesn't use text properties.
7484
7485 * Makefile.in (ftfont.o): Depend on composite.h.
7486 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7487
7488 * character.h (Vunicode_category_table): Extern it.
7489
7490 * character.c (Vunicode_category_table): New variable.
7491 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7492
7493 * chartab.c (optimize_sub_char_table): Perform more greedy
7494 optimization.
7495
b8ff72fa
SM
7496 * composite.h (enum composition_method):
7497 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7498 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7499 (Vcomposition_function_table): Extern it.
7500 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7501 (composition_gstring_put_cache, composition_gstring_from_id)
7502 (composition_gstring_p, composition_gstring_width)
7503 (composition_compute_stop_pos, composition_reseat_it)
7504 (composition_update_it, composition_adjust_point): Extern them.
7505 (Fcomposition_get_gstring): EXFUN it.
7506
d66c0241 7507 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7508 (Vcomposition_function_table)
7509 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7510 (gstring_hash_table, gstring_work, gstring_work_headers):
7511 New variables.
aac0c6e3
MR
7512 (gstring_lookup_cache, composition_gstring_put_cache)
7513 (composition_gstring_from_id, composition_gstring_p)
7514 (composition_gstring_width, fill_gstring_header)
7515 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7516 (composition_reseat_it, composition_update_it)
b8ff72fa 7517 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7518 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7519 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7520 Defsubr composition_get_gstring.
aac0c6e3
MR
7521
7522 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7523 cmp_id.
7524 (struct glyph_string): Delete the member gidx. New members
7525 cmp_id, cmp_from, and cmp_to.
7526 (enum it_method): Delete GET_FROM_COMPOSITION.
7527 (struct composition_it): New struct.
7528 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7529 Delete c, len, cmp_id, cmp_len in u.comp.
7530
7531 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7532 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7533 (enum lglyph_indices): Likewise.
b8ff72fa 7534 (font_range): Adjust extern.
aac0c6e3
MR
7535 (font_fill_lglyph_metrics): Extern it.
7536
7537 * font.c (QCf): New variable.
7538 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7539 (font_prepare_composition): Delete this function.
7540 (font_range): Type and arguments changed.
7541 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7542 (font_fill_lglyph_metrics): New function.
b8ff72fa 7543 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7544 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7545 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7546 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7547
7548 * fontset.h (font_for_char): Extern it.
7549
7550 * fontset.c (font_for_char): New function.
7551
7552 * ftfont.c: Include composite.h.
7553 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7554 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7555
7556 * indent.c: Include composite.h and dispextern.h.
7557 (check_composition): Delete this function.
7558 (scan_for_column): Handle composition by
7559 composition_compute_stop_pos, composition_reseat_it, and
7560 composition_update_it.
7561 (compute_motion): Likewise.
7562 (Fvertical_motion): Fix checking of composition.
7563
7564 * keyboard.c (adjust_point_for_property): Check composition by
7565 composition_adjust_point.
7566
b8ff72fa 7567 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7568 struct glyph_string.
7569
b8ff72fa
SM
7570 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7571 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7572 struct glyph.
7573 (produce_composite_glyph): Likewise.
7574
b8ff72fa
SM
7575 * w32term.c (x_draw_composite_glyph_string_foreground):
7576 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7577 (x_draw_glyph_string): Likewise.
7578
7579 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7580 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7581
7582 * xdisp.c: Include font.h.
7583 (it_props): Delete the entry for Qauto_composed.
7584 (init_iterator): Initialize it->cmp_it.id to -1.
7585 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7586 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7587 (handle_auto_composed_prop): Delete it.
7588 (handle_composition_prop): Handle only static composition.
7589 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7590 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7591 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7592 (pop_it): Likewise.
7593 (get_next_element): Delete next_element_from_composition.
7594 (CHAR_COMPOSED_P): New macro.
7595 (get_next_display_element): For automatic composition, get a face
7596 from the font in the glyph-string.
7597 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7598 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7599 (next_element_from_string): Check if the character at the current
7600 position is composed by CHAR_COMPOSED_P.
7601 (next_element_from_buffer): Likewise.
d66c0241
JB
7602 (next_element_from_composition): Adjust for the change of struct it.
7603 Update it->cmp_it.
b8ff72fa
SM
7604 (dump_glyph): Adjust for the change of struct glyph.
7605 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7606 it and struct glyph. Don't handle automatic composition here.
7607 (fill_gstring_glyph_string): New function.
7608 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7609 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7610 (BUILD_GSTRING_GLYPH_STRING): New macro.
7611 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7612 automatic composition.
b8ff72fa 7613 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7614 struct glyph.
b8ff72fa 7615 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7616
b8ff72fa 7617 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7618 the change of struct glyph_string.
7619 (x_draw_glyph_string): Likewise.
7620
76212008-08-29 Glenn Morris <rgm@gnu.org>
7622
7623 * buffer.c (word-wrap): Doc fix.
7624 * xdisp.c (truncate-partial-width-windows): Doc fix.
7625 Increase default to 50.
7626
76272008-08-29 Chong Yidong <cyd@stupidchicken.com>
7628
7629 * xdisp.c (update_tool_bar_unwind): New function.
7630 (update_tool_bar): Temporarily set selected frame before building
7631 tool-bar items.
7632
76332008-08-28 Michael Albinus <michael.albinus@gmx.de>
7634
7635 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7636 snprintf, respectively.
7637 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7638
76392008-08-28 Chong Yidong <cyd@stupidchicken.com>
7640
7641 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7642 LDFLAGS to GNUstep CC invocation.
7643
76442008-08-27 Chong Yidong <cyd@stupidchicken.com>
7645
7646 * indent.c (Fvertical_motion): Revert last change. Handle the
7647 general case where we are moving forward, and PT spans multiple
7648 screen lines.
7649
7650 * eval.c (find_handler_clause): Temporarily increase
7651 max-lisp-eval-depth while printing the backtrace buffer, to
7652 guarantee that help-mode code can run.
7653
76542008-08-27 Eli Zaretskii <eliz@gnu.org>
7655
7656 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7657 colors under -rv.
7658 (IT_set_frame_parameters): Don't swap foreground and background
7659 colors if `(reverse . t)' is present in the frame properties.
7660 (internal_terminal_init): Call init_frame_faces only for the
7661 initial frame.
7662
76632008-08-27 Andreas Schwab <schwab@suse.de>
7664
7665 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7666
76672008-08-27 Andreas Schwab <schwab@suse.de>
7668
7669 * search.c (search_buffer): Set char_base to zero only at the end.
7670
76712008-08-27 Kenichi Handa <handa@m17n.org>
7672
b8ff72fa 7673 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7674
76752008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7676
7677 * xterm.c (x_term_init): Temporarily hide the partially
7678 initialized terminal while calling vendor-specific-keysyms.
7679
76802008-08-26 Eli Zaretskii <eliz@gnu.org>
7681
7682 * msdos.c (internal_terminal_init): Most initializations done only
7683 once, especially initial_screen_colors[] and termscript open.
7684
76852008-08-26 Chong Yidong <cyd@stupidchicken.com>
7686
7687 * eval.c (Fcondition_case): Doc fix.
7688
7689 * widgetprv.h (EmacsFramePart): Change font member to the new font
7690 struct.
7691
7692 * widget.c: Include character.h and font.h for XSETFONT.
7693 (setup_frame_gcs): Compute X font id from font struct, just once.
7694
76952008-08-26 Eli Zaretskii <eliz@gnu.org>
7696
7697 * term.c (get_named_tty): Fix last change.
7698
76992008-08-26 Chong Yidong <cyd@stupidchicken.com>
7700
7701 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7702 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7703
77042008-08-25 Eli Zaretskii <eliz@gnu.org>
7705
7706 * frame.c (do_switch_frame): Mark previously displayed frame as
7707 obscured for FRAME_MSDOS_P frames as well.
7708
77092008-08-24 Eli Zaretskii <eliz@gnu.org>
7710
7711 * frame.c (make_terminal_frame): Initialize f->terminal,
7712 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7713 Set the top frame to newly created frame.
7714 (Fmake_terminal_frame): Reuse the_only_display_info.
7715
7716 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7717 estimating available memory.
7718
b97439ce 77192008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7720
7721 * nsterm.m (ns_draw_window_cursor): Don't call
7722 NSDisableScreenUpdates and NSEnableScreenUpdates on
7723 non-NS_IMPL_COCOA systems.
7724
77252008-08-23 Andreas Schwab <schwab@suse.de>
7726
7727 * process.c (procfs_system_process_attributes): Fix use of
7728 uninitialized variables.
7729
77302008-08-23 Eli Zaretskii <eliz@gnu.org>
7731
7732 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7733
7734 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7735 calling tty-set-up-initial-frame-faces.
7736
b8ff72fa
SM
7737 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7738 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7739
7740 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7741 addition to output_termcap.
7742
7743 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7744
7745 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7746 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7747 highlight.
7748
7749 * process.c [!subprocesses]: Define QCname.
7750 (syms_of_process): Intern and staticpro it.
7751
7752 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7753 Adjust for changes in encoding/decoding routines.
7754 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7755 encode_coding and decode_coding.
7756
b8ff72fa 7757 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7758
7759 * dosfns.c: Include frame.h before termhooks.h.
7760 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7761 variable termscript.
7762
7763 * s/msdos.h (USER_FULL_NAME): Define.
7764 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7765
7766 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7767 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7768 pw->pw_gecos.
7769
7770 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7771 SELECTED_FRAME as additional (1st) argument.
7772 (tty_read_avail_input): Handle output_msdos_raw in
7773 addition to output_termcap.
7774
7775 * msdos.c: Include frame.h before termhooks.h.
7776 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7777 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7778 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7779 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7780 (IT_set_terminal_modes, IT_reset_terminal_modes)
7781 (IT_set_frame_parameters): Use tty->termscript instead of a global
7782 variable termscript.
7783 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7784 global variable terminal_coding. Don't refer to
7785 Vnonascii_translation_table.
7786 (internal_terminal_init): Set Vwindow_system in current_kboard.
7787 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7788 Announce date and time of session start, if termscript is open.
7789 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7790 term.c:init_tty). Open termscript only of not already open.
7791 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7792 here instead of dos_ttraw. Don't initialize display if this is an
7793 initial tty. Don't set FRAME_FONT.
7794 (Vwindow_system_version): Bump to 23.
7795 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7796 is available, set up mouse_position_hook.
7797 (dos_ttraw, IT_set_terminal_modes): If called with initial
7798 terminal, do nothing.
7799 (IT_set_frame_parameters): Handle the Qtty_type frame
7800 parameter by calling internal_terminal_init.
7801 (dos_set_window_size, show_mouse_face)
7802 (clear_mouse_face, IT_note_mode_line_highlight)
7803 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7804 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7805 (initialize_msdos_display): New function.
7806 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7807 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7808 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7809 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7810 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7811 (request_sigio, unrequest_sigio): Don't define, now defined on
7812 sysdep.c.
7813 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7814
7815 * term.c [MSDOS]: Include msdos.h.
7816 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7817 conditional to DOS_NT. Allow only one call to this function in a
7818 session. Don't allocate a new struct tty_display_info; instead,
7819 reuse the_only_display_info. Call get_tty_size to get screen
7820 dimensions. Call init_baud_rate to set bad_rate.
7821 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7822 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7823 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7824 (get_tty_terminal, get_named_tty, Ftty_type)
7825 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7826 output_termcap.
b8ff72fa
SM
7827 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7828 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7829 only when subprocesses are supported.
aac0c6e3
MR
7830
7831 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7832 f->output_data.x.
7833 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7834 terminal devices.
7835
5582fbc7 7836 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7837 x_output.
7838 (FRAME_FONT): Use output_data.tty.
7839 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7840 (struct x_display_info): Rename from display_info. Update all users in
7841 msdos.c.
aac0c6e3 7842 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7843 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7844 (dos_ttraw): Update prototype.
7845
7846 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7847 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7848
78492008-08-23 Jason Rumney <jasonr@gnu.org>
7850
7851 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7852 (fn_TIFFSetDirectory): New library function used.
7853 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7854 (tiff_load): Use :index to select among multiple images. Set count
7855 property when multiple images exist.
7856 (gif_format): Use :index, not :image.
7857
78582008-08-23 Chong Yidong <cyd@stupidchicken.com>
7859
7860 * xdisp.c (try_scrolling): Check INT_MAX instead of
7861 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7862 to obtain INT_MAX.
7863
78642008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7865
7866 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7867
78682008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7869
7870 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7871 GNUstep library location.
7872
78732008-08-21 Chong Yidong <cyd@stupidchicken.com>
7874
7875 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7876 before using it.
7877
7878 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7879
78802008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7881
7882 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7883 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7884 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7885 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7886 (EmacsApp-cursor_blink_handler): Remove declaration.
7887 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7888 match 01 Feb 2008 changes in xterm.c.
7889 (ns_read_socket): Add cast to avoid warning.
7890 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7891 GNUstep.
7892
78932008-08-20 Chong Yidong <cyd@stupidchicken.com>
7894
7895 * xselect.c (x_get_foreign_selection): Return nil if desired
7896 selection could not be obtained, instead of signalling an error.
7897
78982008-08-20 David Reitter <david.reitter@gmail.com>
7899
7900 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7901 * nsterm.m: Remove ns-specific code for cursor blinking.
7902 (ns_draw_window_cursor): Clear cursor properly rather than
7903 redrawing the area. Respect width of bar cursors.
7904 These changes enable the use of generic blink-cursor-mode and
7905 generic cursor types in NS and support smooth cursor movements (do
7906 not blink off after command).
7907 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7908 Nextstep, too.
7909
79102008-08-19 Kenichi Handa <handa@m17n.org>
7911
7912 * font.c (Vfont_log_deferred): New variable.
7913 (font_add_log): Check Vfont_log_deferred.
7914 (font_deferred_log): New function.
7915
7916 * font.h (font_deferred_log): Extern it.
7917
7918 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7919 for sorting.
7920 (face_for_char): Use deferred log.
7921
79222008-08-18 Kenichi Handa <handa@m17n.org>
7923
7924 * fontset.c (face_for_char): Add font log.
7925
7926 * font.c (font_add_log): Add the font properties :script, :lang,
7927 and :otf in the log.
7928
79292008-08-17 Chong Yidong <cyd@stupidchicken.com>
7930
7931 * xdisp.c: Remove dead code.
7932 (handle_invisible_prop, next_overlay_string): Defer call to
7933 setup_for_ellipsis.
7934 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7935
79362008-08-15 Chong Yidong <cyd@stupidchicken.com>
7937
7938 * xfaces.c (lookup_derived_face): Properly handle possible zero
7939 return value of get_lface_attributes.
7940 (merge_faces): Don't tell lookup_derived_face to signal an error
7941 if face is not found.
7942
7943 * dired.c (Fdirectory_files): Doc fix.
7944
7945 * process.c (make_process): Initialize kill_without_query struct
7946 member.
7947
79482008-08-15 Eli Zaretskii <eliz@gnu.org>
7949
7950 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7951 Alternative calculation of totphys for Visual Studio 6.
7952
7953 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7954
7955 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7956 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7957 All users changed.
7958 (stat): Only root directory passed to GetDriveType. Allow RAM
7959 disk as well as local fixed disk when w32-get-true-file-attributes
7960 is set to `local'.
7961 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7962 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7963 (w32_cached_id, w32_add_to_cache): New functions.
7964 (get_name_and_id): Look account names in the cache before calling
7965 lookup_account_sid.
7966 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7967 New initialization flags.
7968 (globals_of_w32): Initialize them to zero.
7969 (w32_system_process_attributes): Use w32_cached_id and
7970 w32_add_to_cache.
7971
79722008-08-14 Lawrence Mitchell <wence@gmx.li>
7973
7974 * lread.c (Fread_char, Fread_char_exclusive): If no character
7975 event is read before timeout is reached, return nil, rather than
7976 converting to a number.
7977
79782008-08-14 Chong Yidong <cyd@stupidchicken.com>
7979
7980 * fns.c (use_dialog_box): Doc fix.
7981
7982 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7983 on OS X.
7984
79852008-08-13 Chong Yidong <cyd@stupidchicken.com>
7986
7987 * frame.c (Qns_parse_geometry): New var.
7988 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7989
79902008-08-11 Chong Yidong <cyd@stupidchicken.com>
7991
7992 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7993 space character in calculating tabs.
7994
79952008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7996
7997 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7998
79992008-08-10 Glenn Morris <rgm@gnu.org>
8000
8001 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
8002 silence gcc "limited range of data type" warnings in some
8003 make_fixnum_or_float calls.
8004
80052008-08-09 Eli Zaretskii <eliz@gnu.org>
8006
8007 * w32.c (w32_system_process_attributes): If the process does not
8008 exist, return nil.
8009
8010 * w32.c: Include thelp32.h, psapi.h and coding.h.
8011 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
8012 declarations.
8013 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
8014 (Process32Next_Proc): New typedefs.
8015 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
8016 (g_b_init_process32_next, g_b_init_open_thread_token)
8017 (g_b_init_impersonate_self, g_b_init_revert_to_self)
8018 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
8019 (g_b_init_get_process_working_set_size)
8020 (g_b_init_global_memory_status_ex): New static variables.
8021 (globals_of_w32): Initialize them.
8022 (create_toolhelp32_snapshot, process32_first, process32_next)
8023 (open_thread_token, impersonate_self, revert_to_self)
8024 (get_process_memory_info, get_process_working_set_size)
8025 (global_memory_status, global_memory_status_ex): New wrapper
8026 functions.
8027 (w32_list_system_processes, w32_system_process_attributes)
8028 (enable_privilege, restore_privilege, ltime, process_times):
8029 New functions.
8030 (convert_time_raw): New function.
8031 (convert_time): Remove conversion of FILETIME into time in 100
8032 nsec units, call convert_time_raw instead.
8033
8034 * process.h (w32_list_system_processes, w32_system_process_attributes):
8035 Add prototypes.
8036 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
8037 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
8038 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
8039 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
8040
8041 * process.c (Fsystem_process_attributes): Doc fix.
8042
80432008-08-08 Chong Yidong <cyd@stupidchicken.com>
8044
8045 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
8046 a continued multi-char glyph; if so, advance to the actual glyph.
8047
80482008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
8049
8050 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
8051
8052 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
8053 (.m.o): Use it.
8054 * config.in: Regenerate.
8055
80562008-08-07 Chong Yidong <cyd@stupidchicken.com>
8057
8058 * xdisp.c (redisplay_window): Revert last change.
8059 (try_window): Check bottom scroll margin too.
8060
80612008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8062
8063 * config.in: Regenerate.
8064
8065 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
8066 -list-load-path-shadows'.
8067 (nsgui.h): Reduce number of things depending on it.
8068
80692008-08-06 Chong Yidong <cyd@stupidchicken.com>
8070
8071 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
8072 instead of window-end which does the wrong thing at eob.
8073 (try_cursor_movement): Minor optimization.
8074 (redisplay_window): If scroll margin is defined, don't assume
8075 window doesn't need scrolling.
8076
80772008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
8078
8079 * config.in: Regenerate.
8080
8081 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
8082 (mostlyclean): Don't delete *.d under NS.
8083
8084 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
8085
80862008-08-06 Kenichi Handa <handa@m17n.org>
8087
8088 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8089
80902008-08-06 Andreas Schwab <schwab@suse.de>
8091
8092 * config.in: Regenerate.
8093
80942008-08-05 Chong Yidong <cyd@stupidchicken.com>
8095
8096 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8097 forcing a window start.
8098
8099 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8100 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8101
81022008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8103
8104 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8105 argument.
8106
81072008-08-05 Juanma Barranquero <lekktu@gmail.com>
8108
8109 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8110 <scroll-down-aggressively, before-change-functions>:
8111 <after-change-functions>: Reflow docstrings.
8112
81132008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8114 Ken Raeburn <raeburn@gnu.org>
8115
8116 Dock menu customization, based on a patch by Ken Raeburn, plus some
8117 other fixes.
8118 * nsmenu.m (dockMenu): New variable.
8119 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8120
8121 * nsterm.h (dockMenu): Declare.
8122
8123 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8124 (ns_term_init): Initialize dockMenu.
8125 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8126 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8127 left.
8128
8129 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8130
81312008-08-04 Chong Yidong <cyd@stupidchicken.com>
8132
8133 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8134
8135 * config.in: Regenerate.
8136
81372008-08-04 Seiji Zenitani <zenitani@mac.com>
8138
8139 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8140
81412008-08-04 Chong Yidong <cyd@stupidchicken.com>
8142
8143 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8144
81452008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8146
8147 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8148
8149 * keyboard.h: Comment an #endif.
8150
8151 * lisp.h (have_menus_p): Adjust comment.
8152
8153 * menu.c (find_and_return_menu_selection): Fix comparison with
8154 client_data.
8155
8156 * nsmenu.m (popup_activated_flag): New variable.
8157 (popup_activated): New function.
8158 (menu-or-popup-active-p): New exported lisp definition.
8159 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8160 when popup done.
8161 (ns_popup_dialog): Set popup_activated_flag.
8162
8163 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8164 version for GNUstep (handled by conditional typedef in nsterm.m).
8165 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8166 in rgb.txt).
8167
8168 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8169
8170 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8171
8172 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8173
8174 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8175 shortcircuit if popup_activated like GTK and X toolkit.
8176
8177 * m/inter386.h: Change DARWIN to DARWIN_OS.
8178
8179 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8180 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8181 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8182 comment on NO_SOCK_SIGIO.
8183
81842008-08-03 Chong Yidong <cyd@stupidchicken.com>
8185
8186 * nsterm.m (windowDidResize): Remove stopModal call.
8187
81882008-08-03 Andreas Schwab <schwab@suse.de>
8189
8190 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8191 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8192
81932008-08-02 Chong Yidong <cyd@stupidchicken.com>
8194
8195 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8196 Don't use uninitialized pointer variable when using getrlimit.
8197
81982008-08-02 Jason Rumney <jasonr@gnu.org>
8199
8200 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8201
82022008-08-02 Eli Zaretskii <eliz@gnu.org>
8203
8204 * alloc.c (NSTATICS): Bump to 0x640.
8205
8206 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8207
8208 * lisp.h: Add prototype for directory_files_internal.
8209
8210 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8211 New functions.
8212 (syms_of_process): Defsubr them. Add initializations for various
8213 Q* symbols used in procfs_system_process_attributes.
8214 (procfs_list_system_processes, procfs_system_process_attributes)
8215 [HAVE_PROCFS]: New functions.
8216 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8217 (procfs_get_total_memory): New functions.
8218
82192008-08-01 Juanma Barranquero <lekktu@gmail.com>
8220
8221 * xfaces.c (Fx_load_color_file): Fix previous change;
8222 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8223
82242008-08-01 Michael Albinus <michael.albinus@gmx.de>
8225
8226 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8227
82282008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8229
8230 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8231
82322008-08-01 Chong Yidong <cyd@stupidchicken.com>
8233
8234 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8235
8236 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8237 define NSApplicationDelegateReplySuccess.
8238 (EmacsView -converstationIdentifier): Use long instead of
8239 NSInteger for GNUstep, since it doesn't have NSInteger.
8240
8241 * xmenu.c: Revert last change.
8242
8243 * keyboard.h: Fix last change.
8244
82452008-08-01 Juanma Barranquero <lekktu@gmail.com>
8246
8247 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8248 on Windows.
8249
82502008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8251
8252 Warning clearing and clean-up in NS port.
8253 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8254 Add prototypes.
8255 * nsgui.h (FACE_DEFAULT): Remove, unused.
8256 (XGCValues): Change colors to unsigned long.
8257 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8258 nsterm.m.
8259 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8260 (ns_list_fonts): Remove, unused.
8261 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8262 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8263 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8264 (nsfont_draw): Compare face colors to 0, not nil.
8265 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8266 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8267 (-addSubmenuWithTitle:): Use NSMenuItem class.
8268 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8269 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8270 (ns_clip_to_row): Make gc arg a BOOL.
8271 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8272 ns_clip_to_row() call.
8273 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8274 used). Cast FRAME_FONT assignments.
8275 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8276 (ns_string_to_lispmod): Change arg to const char.
8277 (ns_term_init): Use NSMenuItem class.
8278 (EmacsApp -openFile:): Move to different section of file.
8279 (EmacsApp -application:openFiles:): Don't return a value, call
8280 -replyToOpenOrPrint:.
8281 (EmacsView -keyDown:): Fix up cast.
8282 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8283 (EmacsView -menuDown:): Cast tag in call to
8284 find_and_call_menu_selection().
8285 (ns_list_fonts): Remove, unused.
8286 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8287 (ns_fontname_to_xlfd): Make static.
8288 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8289 Remove prototypes (now in keyboard.h).
8290 (next_menubar_widget_id): Remove, unused.
8291 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8292 Remove prototypes (now in keyboard.h).
8293 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8294
82952008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8296
8297 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8298 (floatfns.o): Depend on syssignal.h.
8299 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8300
8301 * systty.h: Fix previous change that removed BSD_TERMIOS.
8302 Add comments to #ifdefs.
8303
83042008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8305
8306 * w32fns.c (w32-load-color-file): Remove.
8307 (x-open-connection): Use renamed Fx_load_color_file.
8308 * xfaces.c (x-load-color-file): Add.
8309 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8310 Emacs.clr.
8311 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8312
83132008-07-31 Michael Albinus <michael.albinus@gmx.de>
8314
8315 * dbusbind.c (Fdbus_call_method_asynchronously)
8316 (Fdbus_method_error_internal): New defuns.
8317 (xd_read_message): Handle also reply messages.
8318 (Vdbus_registered_functions_table): Extend docstring.
8319
83202008-07-31 Juanma Barranquero <lekktu@gmail.com>
8321
8322 * keyboard.c (gobble_input): Fix previous change.
8323
83242008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8325
8326 * bitmaps/README:
8327 * xfns.c:
8328 * termcap.c:
8329 * term.c:
8330 * syswait.h:
8331 * systty.h:
8332 * systime.h:
8333 * syssignal.h:
8334 * sysdep.c:
8335 * process.h:
8336 * process.c:
8337 * print.c:
8338 * ndir.h:
8339 * lread.c:
8340 * keyboard.c:
8341 * getpagesize.h:
8342 * floatfns.c:
8343 * fileio.c:
8344 * emacs.c:
8345 * doc.c:
8346 * dispnew.c:
8347 * dired.c:
8348 * data.c:
8349 * callproc.c:
8350 * buffer.c:
8351 * README:
8352 * Makefile.in:
8353 * s/template.h:
8354 * s/msdos.h:
8355 * m/vax.h: Remove VMS support.
8356 * s/vms.h:
8357 * vlimit.h:
8358 * uaf.h:
8359 * temacs.opt:
8360 * param.h:
8361 * ioctl.h: Remove file.
8362
83632008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8364
8365 * s/ms-w32.h (MULTI_KBOARD): Remove.
8366 * xterm.c:
8367 * xselect.c:
8368 * xfns.c:
8369 * window.c:
8370 * w32term.c:
8371 * w32fns.c:
8372 * terminal.c:
8373 * termhooks.h:
8374 * term.c:
8375 * sysdep.c:
8376 * keyboard.h:
8377 * keyboard.c:
8378 * frame.h:
8379 * frame.c:
8380 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8381 * config.in: Regenerate.
8382
83832008-07-30 Jason Rumney <jasonr@gnu.org>
8384
8385 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8386
8387 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8388 (w32font_open_internal): Get unicode version of textmetrics.
8389 Don't enable or disable glyph indices here.
8390 (w32font_open): Disable use of glyph indices.
8391
8392 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8393
83942008-07-30 Chong Yidong <cyd@stupidchicken.com>
8395
8396 * minibuf.c (Vread_buffer_function): Doc fix.
8397
83982008-07-30 John Paul Wallington <jpw@pobox.com>
8399
8400 * minibuf.c (read_buffer_completion_ignore_case): New var.
8401 (Fread_buffer): Use it.
8402
84032008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8404
8405 * systty.h (sensemode): Remove empty #if. Remove reference to
8406 BSD_TERMIOS, unused.
8407
8408 * sysdep.c: Remove reference to DGUX.
8409 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8410
8411 * config.in: Regenerate.
8412
84132008-07-30 Jason Rumney <jasonr@gnu.org>
8414
8415 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8416
84172008-07-29 Jason Rumney <jasonr@gnu.org>
8418
8419 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8420 is populated.
8421 (uniscribe_encode_char): Always use uniscribe.
8422 Avoid using context if cache is populated.
8423
84242008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8425
8426 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8427 open menu.
8428
8429 * gtkutil.c (menu_nav_ended): Remove.
8430 (create_menus): Remove signal connect for menu_nav_ended.
8431
84322008-07-28 Chong Yidong <cyd@stupidchicken.com>
8433
8434 * xdisp.c (redisplay_window): Check return value of
8435 compute_window_start_on_continuation_line before forcing a window
8436 start.
8437
84382008-07-28 Jason Rumney <jasonr@gnu.org>
8439
8440 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8441
8442 * w32term.c (w32_enable_unicode_output, cleartype_active):
8443 Remove obsolete display options.
8444 (x_draw_glyph_string_background): Don't use old cleartype_active
8445 workaround.
8446 (w32_initialize): Remove cleartype_active initialization.
8447 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8448
84492008-07-28 Andreas Schwab <schwab@suse.de>
8450
8451 * lisp.h (init_weak_hash_tables, syms_of_font)
8452 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8453 (remove_hash_entry): Don't declare.
8454 * eval.c (maybe_call_debugger): Make static and move before use.
8455 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8456 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8457 * xterm.h (x_set_frame_alpha): Declare.
8458
84592008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8460
8461 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8462 (create_menus): Connect selection-done to menu_nav_ended.
8463
84642008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8465
8466 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8467 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8468 parameter with read of 'alpha' one.
8469 (Qns_frame_parameter): Remove.
5582fbc7 8470 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8471 (next-selection-coding-system, Vselection_coding_system)
8472 (Vnext_selection_coding_system): Drop.
8473
84742008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8475
8476 * nsfns.m (do-applescript, do_applescript): Rename to
8477 ns-do-applescript, ns_do_applescript, and move within file.
8478
84792008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8480
8481 Remove support for Mac Carbon.
8482 * mactoolbox.c:
8483 * macterm.h:
8484 * macterm.c:
8485 * macselect.c:
8486 * macmenu.c:
8487 * macgui.h:
8488 * macfns.c:
8489 * mac.c: Remove file.
8490 * s/darwin.h:
8491 * m/intel386.h:
8492 * xfaces.c:
8493 * xdisp.c:
8494 * window.c:
8495 * tparam.c:
8496 * termhooks.h:
8497 * termcap.c:
8498 * term.c:
8499 * syssignal.h:
8500 * sysselect.h:
8501 * sysdep.c:
8502 * process.c:
8503 * lread.c:
8504 * lisp.h:
8505 * keyboard.c:
8506 * image.c:
8507 * fringe.c:
8508 * frame.h:
8509 * frame.c:
8510 * fontset.c:
8511 * font.h:
8512 * font.c:
8513 * fns.c:
8514 * fileio.c:
8515 * emacs.c:
8516 * dispnew.c:
8517 * dispextern.h:
8518 * config.in:
8519 * atimer.c:
2ae37cf0 8520 * Makefile.in: Remove code for Carbon.
aac0c6e3 8521
f0131492 85222008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8523
8524 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8525
85262008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8527
8528 * macterm.h (kCGBitmapByteOrder32Host): New define for
8529 non-universal SDKs.
8530
8531 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8532 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8533
8534 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8535 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8536
85372008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8538
8539 * w32inevt.c: Include dispextern.h.
8540
85412008-07-26 Andreas Schwab <schwab@suse.de>
8542
8543 * print.c (print_object): Fix off-by-one in last change.
8544
85452008-07-25 Juanma Barranquero <lekktu@gmail.com>
8546
8547 * term.c (syms_of_term): Don't initialize default_orig_pair,
8548 default_set_foreground and default_set_background on Windows.
8549
85502008-07-25 Jason Rumney <jasonr@gnu.org>
8551
8552 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8553 ScriptItemize. Clean up return value checking. Remove unused
8554 variables.
8555 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8556 shaping engine.
8557
8558 * w32font.c (w32font_has_char): Handle the case where we can't
8559 determine the script for a character.
8560
85612008-07-25 Chong Yidong <cyd@stupidchicken.com>
8562
8563 * term.c (syms_of_term): Initialize default_orig_pair,
8564 default_set_foreground, and default_set_background.
8565
8566 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8567 clash (bug#86).
8568 (getloadavg): Callers changed.
8569
8570 * image.c (svg_load_image): Fix last change.
8571 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8572 image size is valid. Use g_object_unref instead of deprecated
8573 rsvg_handle_free to free rsvg handle.
8574 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8575
85762008-07-25 Jason Rumney <jasonr@gnu.org>
8577
8578 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8579 surrogates before looking up glyph index.
8580 (w32font_text_extents): Encode as surrogates if falling back to
8581 functions that need UTF-16 wide chars.
8582
8583 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8584 BMP as surrogates before looking up glyph index.
8585
85862008-07-25 Chong Yidong <cyd@stupidchicken.com>
8587
8588 * image.c (svg_load_image): Check for failure in return value of
8589 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8590
85912008-07-25 Jason Rumney <jasonr@gnu.org>
8592
8593 * w32font.c (Fx_select_font): Reverse sense of second arg.
8594
85952008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8596
8597 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8598 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8599
8600 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8601 (PURESIZE): Use it.
8602
86032008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8604
8605 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8606 * m/alpha.h (TEXT_END):
8607 * m/ibmrs6000.h (TEXT_END):
8608 * m/macppc.h (TEXT_END):
8609 * s/darwin.h (TEXT_END):
8610 * s/msdos.h (TEXT_END): Remove, unused.
8611 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8612 * s/cygwin.h: Remove comment.
8613
8614 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8615 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8616 * m/intel386.h (DOT_GLOBAL_START):
8617 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8618 (USG): Remove, file not used on USG platforms.
8619
8620 * Makefile.in (HAVE_X11): Remove empty #else.
8621
86222008-07-24 Andreas Schwab <schwab@suse.de>
8623
8624 * fileio.c (Finsert_file_contents): Properly adjust undo list
8625 after format conversion.
8626
86272008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8628
8629 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8630 (menu_nav_ended): Remove.
8631 (create_menus): Remove signal connect for menu_nav_ended.
8632 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8633 create_menus.
8634 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8635
86362008-07-23 Jason Rumney <jasonr@gnu.org>
8637
8638 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8639 with opened font.
8640 (w32font_open): Set font type to gdi.
8641
8642 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8643
86442008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8645
8646 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8647 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8648 defines it.
8649 * unexec.c (ADDR_CORRECT): Define unconditionally.
8650
8651 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8652
8653 * unexec.c: Remove code depending on !COFF and USG, the file is
8654 not used for such systems.
8655
8656 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8657 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8658 (LD_SWITCH_SYSTEM_1): Remove, update users.
8659
8660 * s/darwin.h (DATA_END):
8661 * m/intel386.h (DATA_END):
8662 * m/ibmrs6000.h (DATA_END):
8663 * m/alpha.h (DATA_END): Remove, unused.
8664
8665 * config.in: Regenerate.
8666 * s/ms-w32.h (subprocesses): Define unconditionally.
8667 * s/template.h (subprocesses): Update comment.
8668 * s/vms.h (subprocesses):
8669 * s/usg5-4.h (subprocesses):
8670 * s/hpux10-20.h (subprocesses):
8671 * s/gnu-linux.h (subprocesses):
8672 * s/cygwin.h (subprocesses):
8673 * s/bsd-common.h (subprocesses):
8674 * s/aix4-2.h (subprocesses):
8675 * s/darwin.h (subprocesses): Do not define, defined by default now.
8676
8677 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8678 Remove all references.
8679 (temacs): Add GNUstep specific ld flags.
8680
8681 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8682 similarly to what X does.
8683
86842008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8685
8686 * nsfns.m (x-list-fonts): Remove.
8687 (syms_of_nsfns): Drop the x-list-fonts declaration.
8688 * nsterm.m: Get rid of remaining "//" comments.
8689
86902008-07-22 Chong Yidong <cyd@stupidchicken.com>
8691
8692 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8693
8694 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8695 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8696 (Fns_own_selection_internal, Fx_disown_selection_internal)
8697 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8698
8699 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8700 ... */' style of docstrings. Doc fixes.
8701
87022008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8703
8704 * terminfo.c (UP, BC, PC): Undo previous change.
8705
8706 * nsfns.m: Rename ns prefixed functions/variables to the
8707 corresponding x versions. Update references.
8708
87092008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8710
8711 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8712
87132008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8714
8715 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8716 Remove forwarding functions.
8717 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8718 non-static.
8719 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8720 non-static.
8721 (ns_frame_parm_handlers): Use the new names.
8722 (syms_of_nsfns): Move to the end of file.
8723
8724 * nsterm.m (syms_of_nsterm): Move to the end of file.
8725
8726 * dispnew.c (init_display): Remove code for X10.
8727
87282008-07-22 Jason Rumney <jasonr@gnu.org>
8729
8730 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8731 bare drive.
8732
87332008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8734
8735 * nsterm.m (syms_of_nsterm): Remove debugging println.
8736
87372008-07-22 David Reitter <david.reitter@gmail.com>
8738
8739 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8740 Carbon implementation of the same functionality: execute arbitrary
8741 AppleScript code.
8742
87432008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8744
8745 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8746 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8747 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8748 (Fx_display_mm_height, Fx_display_mm_width)
8749 (Fx_display_backing_store, Fx_display_visual_class)
8750 (Fx_display_save_under, Fx_open_connection)
8751 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8752 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8753 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8754 (Fx_display_pixel_width, Fx_display_pixel_height)
8755 (Fx_display_usable_bounds, Fx_display_planes)
8756 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8757 ... */' style of docstrings.
8758
87592008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8760
8761 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8762 on this platform.
8763 (mips):
8764 * m/iris4d.h (mips): Do not define.
8765 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8766
8767 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8768
8769 * image.c:
8770 * nsfns.m:
8771 * nsselect.m:
8772 * nsterm.h:
8773 * nsterm.m: Rename ns prefixed functions/variables to the
8774 corresponding x versions. Update references.
8775
8776 * m/ibms390x.h (NO_REMAP): Do not undefine.
8777
8778 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8779
87802008-07-21 Chong Yidong <cyd@stupidchicken.com>
8781
8782 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8783 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8784 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8785 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8786 (Fns_display_mm_height, Fns_display_mm_width)
8787 (Fns_display_backing_store, Fns_display_visual_class)
8788 (Fns_display_save_under, Fns_open_connection)
8789 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8790 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8791 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8792 (Fns_display_pixel_width, Fns_display_pixel_height)
8793 (Fns_display_usable_bounds, Fx_display_planes)
8794 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8795
87962008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8797
8798 * print.c (print_object): Check print_depth before searching for
8799 circularities.
8800
88012008-07-21 Michael Albinus <michael.albinus@gmx.de>
8802
8803 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8804 only sprintf.
8805
88062008-07-21 Kenichi Handa <handa@m17n.org>
8807
8808 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8809
88102008-07-20 Andreas Schwab <schwab@suse.de>
8811
8812 * syntax.c (find_start_pos, find_start_value)
8813 (find_start_value_byte, find_start_begv, find_defun_start)
8814 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8815
88162008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8817
8818 * s/sol2-3.h: Insert contents of s/sol2.h.
8819 (LD_SWITCH_SYSTEM): Remove redundant definition.
8820 * s/sol2.h: Remove, unused.
8821
88222008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8823
8824 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8825
88262008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8827
8828 * Makefile.in (ns_appdir): Fix typo in find command.
8829
88302008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8831
8832 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8833
8834 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8835 added not supported anymore.
8836
8837 * s/usg5-4-2.h (LIBS_SYSTEM):
8838 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8839
8840 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8841 * s/lynxos.h (GETPGRP_NO_ARG):
8842 * s/hpux10-20.h (NO_SIOCTL_H):
8843 * s/gnu.h (GETPGRP_NO_ARG):
8844 * s/gnu-linux.h (NO_SIOCTL_H):
8845 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8846 * s/cygwin.h (GETPGRP_NO_ARG):
8847 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8848 (C_DEBUG_SWITCH): Remove duplicate definition.
8849
8850 * m/ibms390.h: Remove boilerplate comments.
8851
8852 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8853
8854 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8855 (wait_reading_process_output): Remove code for SunOS, platform not
8856 supported anymore. Use SOLARIS2 instead of sun.
8857
88582008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8859
8860 * font.c (font_open_by_name): Under NS, default lface height to zero.
8861 (font_open_for_lface): Under NS, set size based on frame fontsize.
8862 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8863 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8864
88652008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8866
8867 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8868 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8869 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8870 YES/NO.
8871 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8872 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8873 * Makefile.in (clean): Clear out build destination dir.
8874
88752008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8876
8877 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8878 xterm, xselect.
8879 * lisp.h: Remove declaration of hash_remove.
8880 * nsgui.h: Remove redefinitions of hash_remove.
8881 * fns.c (hash_remove): Rename to hash_remove_from_table.
8882
88832008-07-19 Seiji Zenitani <zenitani@mac.com>
8884
8885 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8886 strdup() the family UTF8String before modifying it.
8887
88882008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8889
8890 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8891 NS_FACE_BACKGROUND with 0 instead of nil.
8892 * nsfont.m (nsfont_draw): Same.
8893
88942008-07-19 Chong Yidong <cyd@stupidchicken.com>
8895
8896 * nsfns.m (ns_set_background_color): Fix crash.
8897
88982008-07-18 Chong Yidong <cyd@stupidchicken.com>
8899
8900 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8901
89022008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8903
8904 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8905
89062008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8907
8908 * gtkutil.c: Include <config.h> instead of "config.h".
8909
8910 * lisp.h (Foverlay_buffer): Add EXFUN.
8911
8912 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8913 child process to complete child_setup. Undo 2005-09-21 change.
8914
8915 * s/darwin.h: Mention setsid after vfork.
8916
89172008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8918
8919 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8920 Depend on macgui.h.
8921
8922 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8923 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8924
8925 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8926 and f19.
8927 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8928
8929 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8930 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8931 Remove enumerators.
8932
8933 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8934 Check if FACE_FROM_ID returns NULL.
8935
89362008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8937
8938 * w32inevt.c (change_frame_size): Remove extern declaration.
8939 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8940 change_frame_size.
8941
89422008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8943
8944 * getloadavg.c: Revert last change (2008-07-15).
8945
89462008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8947
8948 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8949 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8950 from configure.
8951
89522008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8953
8954 * s/sol2.h:
8955 * s/sol2-4.h: Reorganize conditionals.
8956
8957 * ecrt0.c: Remove code depending on m68000, not used anymore.
8958
8959 * fns.c (hash_remove): Make static.
8960 * lisp.h (hash_remove): Don't prototype.
8961
8962 * m/ibmrs6000.h:
8963 * m/ibms390x.h:
8964 * m/macppc.h: Remove boilerplate comments.
8965
8966 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8967 Solaris, which does not need them.
8968
8969 * m/vax.h: Remove comments about unsupported systems.
8970
8971 * s/darwin.h: Reorganize ifdefs.
8972
89732008-07-17 Andreas Schwab <schwab@suse.de>
8974
8975 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8976
89772008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8978
8979 Use SDATA. Follow coding convention of placing operators at
8980 beginning of next line rather than end of previous line, and placing
8981 spaces around infix operators.
8982
8983 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8984 in case it was defined already.
8985 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8986 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8987 ns_default.
8988 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8989 Lisp_Objects.
8990 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8991 (ns_defined_color, ns_color_to_lisp): Declare.
8992 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8993 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8994 it's accepted even with USE_LISP_UNION_TYPE.
8995 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8996 (update_frame_tool_bar): Remove apparently obsolete tests for
8997 non-integerness of f->tool_bar_lines.
8998 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8999 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
9000 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
9001 (nsfont_open): Don't confuse NULL for Qnil.
9002 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
9003 * menu.h (find_and_call_menu_selection):
9004 * menu.c (find_and_call_menu_selection): Use just int for vector size.
9005 (find_and_return_menu_selection): Always return something.
9006 * frame.h: Include dispextern.h for Display_Info.
9007 (display_x_get_resource): Declare.
9008
90092008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
9010
9011 * syntax.c: Remove stdio.h include accidentally introduced in
9012 Emacs.app commit.
9013 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
9014 NS_IMPL_COCOA.
9015 * keyboard.c (handle_async_input, input_available_signal): Remove
9016 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
9017
90182008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9019
9020 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
9021 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
9022 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
9023 Use SDATA.
9024
9025 * keymap.c: Remove all NS-specific code.
9026 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
9027 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
9028 where_is_preferred_modifier, return a different value depending on how
9029 preferred is the binding.
9030 (where_is_internal): Adjust accordingly.
9031 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
9032 Adjust to new preferred_sequence_p.
9033 (syms_of_keymap): Declare `where-is-preferred-modifier'.
9034 * keyboard.c (parse_solitary_modifier): Not static any more.
9035 * keyboard.h (parse_solitary_modifier): Declare.
9036
90372008-07-16 Andreas Schwab <schwab@suse.de>
9038
9039 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
9040 of easymenu.
9041
90422008-07-16 Chong Yidong <cyd@stupidchicken.com>
9043
9044 * xdisp.c (move_it_in_display_line): Account for word wrap, so
9045 that we don't move off the line.
9046
90472008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
9048
9049 * keyboard.c (Qsuper): Remove.
9050 (parse_menu_item): Don't call where_is_internal specially for NS.
9051
90522008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9053
9054 * s/gnu-linux.h: Remove boilerplate comments.
9055
9056 * m/alpha.h (__ELF__): Consolidate conditions.
9057
9058 * m/m68k.h (linux): Use GNU_LINUX instead.
9059 Remove boilerplate comments.
9060
9061 * m/intel386.h: Undo refactoring from previous change.
9062 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
9063 too, remove dead code.
9064 (linux): Use GNU_LINUX instead.
9065
90662008-07-16 Jason Rumney <jasonr@gnu.org>
9067
9068 * w32gui.h: Repeat 26 June changes lost by last change.
9069
90702008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
9071
9072 * systty.h: Remove code for Aix on 386, unsupported platform.
9073
9074 * s/ms-w32.h: Remove boilerplate comments.
9075 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
9076
9077 * s/gnu-linux.h (TERM): Remove support.
9078 (HAVE_SYSVIPC): Remove, unused.
9079 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
9080 for this system.
9081
9082 * process.c: Remove support for IRIS, unused.
9083 Remove support for TERM, not relevant anymore.
9084
9085 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
9086 used with the definition.
9087
9088 * s/aix4-2.h (static): Do not undef.
9089
9090 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9091 only used on Aix.
9092 (HAVE_SYSVIPC): Remove, unused.
9093
9094 * m/hp800.h (CANNOT_DUMP): Do not undef.
9095
9096 * m/alpha.h: Fix comment.
9097
9098 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9099 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9100 used by this configuration.
9101 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9102 * unexec.c: Remove code depending on HPUX and
9103 USG_SHARED_LIBRARIES, not used with this file. Remove code
9104 depending on IRIS, unused. Remove if 0-ed code.
9105
9106 * s/template.h: Remove comments about static.
9107
9108 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9109 Remove if 0-ed code.
9110 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9111 were the same as the default.
9112 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9113 Remove boilerplate comments.
9114 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9115 (HAVE_SYSVIPC): Remove, unused.
9116 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9117
9118 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9119 Remove boilerplate comments.
9120 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9121 Remove boilerplate comments.
9122 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9123 Remove boilerplate comments.
9124 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9125
9126 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9127 USG systems which do not use DATA_SEG_BITS.
9128 Refactor code. Remove boilerplate comments.
9129
9130 * m/ibms390.h:
9131 * m/m68k.h:
9132 * s/bsd-common.h:
9133 * s/cygwin.h:
9134 * s/darwin.h:
9135 * s/freebsd.h:
9136 * s/gnu.h:
9137 * s/msdos.h: Remove boilerplate comments.
9138
9139 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9140 do not use this file.
aac0c6e3
MR
9141 (IRIS_4D): Remove, unused.
9142
9143 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9144 do not use this file.
aac0c6e3
MR
9145 (SIGN_EXTEND_CHAR):
9146 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9147 * unexmips.c: Remove file, unused.
9148
9149 * editfns.c (Fuser_full_name): Replace the only use of
9150 USER_FULL_NAME with its value.
9151 * config.in: Regenerate.
9152
91532008-07-16 David Reitter <david.reitter@gmail.com>
9154
9155 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9156 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9157
91582008-07-16 Glenn Morris <rgm@gnu.org>
9159
9160 * emacs.c (system-type): Doc fix.
9161
91622008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9163
9164 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9165 If the cache doesn't work, let's fix it, rather than work around it.
9166
91672008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9168
9169 * Makefile.in: Correct additions for nsfont.o in last commit.
9170 * nsfont.m: New file (forgot last commit).
9171
91722008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9173
9174 * callproc.c (set_initial_environment): Initialize
9175 Vprocess_environment under CANNOT_DUMP (fixes crash when
9176 batch-compiling for bootstrap).
9177
91782008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9179 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9180
9181 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9182 fix crash due to different init order.
9183
91842008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9185
9186 Changes and additions for NeXTstep windowing system (Cocoa and
9187 GNUstep) support.
9188
9189 * Makefile.in:
9190 * config.in: Support defines and build commands for NS port.
9191 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9192 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9193 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9194 windowing.
9195 (struct face): Add synth_ital field.
9196 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9197 (init_display): Initialize Vinitial_window_system to "ns" when so
9198 compiled.
9199 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9200 (display_arg): Use under NS.
9201 (main): Under NS, allocate autorelease pool and handle command line
9202 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9203 (standard_args): Add NS-specific args.
9204 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9205 * font.c (DEFAULT_ENCODING): New variable.
9206 (font_find_for_lface): Use it.
9207 (syms_of_font): Load syms_of_nsfont under NS.
9208 * font.h: Declare nsfont_driver when compiled under NS.
9209 * fontset.c: When compiling under NS, include nsterm.h.
9210 (fontset_from_font): Autoconstruct fontset under NS.
9211 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9212 symbol, document and use it.
9213 (do_switch_frame): When for_deletion under Cocoa, add
9214 Fraise_frame(Qnil).
9215 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9216 (x_get_arg): Allow "yes" and "no" as boolean values.
9217 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9218 Qright under Cocoa.
9219 (focus-follows-mouse): Default to 0 under NS.
9220 * frame.h (enum output_method): Add output_ns.
9221 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9222 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9223 (FRAME_WINDOW_P): NS-specific definition.
9224 * fringe.c (max_used_fringe_bitmap): Make public.
9225 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9226 (getloadavg): Use NeXT code under descendant OS's.
9227 * image.c (includes and header section, x_create_bitmap_from_data)
9228 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9229 (image_background_transparent, x_clear_image_1)
9230 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9231 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9232 (x_to_xcolors, x_from_xcolors, x_disable_image)
9233 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9234 other GUIs, including XPM support using code originally written for
9235 Carbon GUI.
9236 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9237 using NS API.
9238 (image_ascent): Use font metrics macros instead of direct struct field
9239 access.
9240 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9241 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9242 Also, handle NS as GTK for menu bar purposes.
9243 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9244 toolkit where they differ.
9245 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9246 use cachelist, still needed under NS.
9247 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9248 (struct widget_value): Define it here for menu.c.
9249 * keymap.c (includes): Include modifier internals.
9250 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9251 NS.
9252 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9253 support for preferring sequences using certain modifiers, specified by
9254 the FIRSTONLY argument.
9255 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9256 under NS GNUstep implementation.
9257 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9258 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9259 * menu.c: Include nsterm.h under NS.
9260 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9261 (free_menubar_widget_tree_value, update_submenu_strings)
9262 (find_and_call_menu_selection): Treat NS as X and NT.
9263 (find_and_return_menu_selection): New function, used for popup menus.
9264 * nsgui.h:
9265 * nsterm.h:
9266 * nsfns.m:
9267 * nsimage.m:
9268 * nsmenu.m:
9269 * nsselect.m:
9270 * nsterm.m: New files.
9271 * process.c (wait_reading_process_output): Under NS, call ns_select()
9272 instead of plain select().
9273 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9274 beginning of buffer.
9275 * sysselect.h (init_process): Rename when compiling under Cocoa to
9276 avoid name conflict.
9277 * termhooks.h (display_info): Add ns_display_info to union.
9278 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9279 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9280 COCOA environment.
9281 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9282 unexec() signature. (Note, this will dump, but the resulting file
9283 crashes; unexosx is used instead; keeping around for reference and
9284 possible aid in getting dump working under GNUstep.)
9285 * w32gui.h (button_type, widget_value): Remove definitions (now in
9286 keyboard.h).
9287 * window.c: Include nsterm.h when compiling under NS.
9288 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9289 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9290 other GUI windowing systems.
9291 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9292 GTK.
9293 (x_consider_frame_title): Under NS, set icon type and frame
9294 modified-state indicator; use ns_set_name_as_filename() when using
9295 formatted title.
9296 (update_window_cursor): Make public when compiling under NS.
9297 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9298 (hourglass_atimer, Vhourglass_delay
9299 * xfaces.c (header section, init_frame_faces, clear_font_table)
9300 (defined_color, unload_color, x_face_list_fonts)
9301 (prepare_face_for_display): Add NS support parallel to other GUIs.
9302 Emulate GCs like other non-X GUIs.
9303 (split_font_name): Don't lowercase font name under NS.
9304 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9305 under NS.
9306 * s/darwin.h: Add support for compilation under NS.
9307
93082008-07-15 Jason Rumney <jasonr@gnu.org>
9309
9310 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9311 (w32_show_hourglass): Rename from show_hourglass.
9312 (w32_hide_hourglass): Rename from hide_hourglass.
9313 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9314 (Vhourglass_delay): Declare extern.
9315 (hourglass_started): Remove.
9316
9317 * xdisp.c (Vhourglass_delay): Remove static.
9318 (hourglass_started, start_hourglass, cancel_hourglass):
9319 Don't include these versions on WINDOWSNT.
9320
93212008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9322
9323 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9324 variables (formerly in xfns.c).
9325 (show_hourglass, hide_hourglass): New prototypes (same).
9326 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9327 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9328 in xfns.c).
9329 (syms_of_xdisp): Declare/initialize display-hourglass,
9330 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9331 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9332 formerly in xfns.c.
9333 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9334 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9335 (start_hourglass, cancel_hourglass): Remove.
9336 (show_hourglass, hide_hourglass): Remove prototypes and static
9337 modifiers.
9338 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9339 hourglass_atimer, hourglass_shown_p declaration/initialization.
9340 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9341 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9342 (start_hourglass, cancel_hourglass): Remove.
9343 (show_hourglass, hide_hourglass): Remove prototypes and static
9344 modifiers.
9345 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9346 hourglass_atimer, hourglass_shown_p declaration/initialization.
9347 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9348 (DEFAULT_HOURGLASS_DELAY): Remove.
9349 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9350 hourglass_shown_p declaration/initialization.
9351
93522008-07-14 Jason Rumney <jasonr@gnu.org>
9353
9354 * w32fns.c (w32_get_arg): Remove wrapper function.
9355 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9356 directly.
9357 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9358
93592008-07-14 Kenichi Handa <handa@m17n.org>
9360
9361 * xfont.c (xfont_open): Add workaround for X's bug.
9362
93632008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9364
9365 * fontset.c: Include <stdio.h> unconditionally.
9366
93672008-07-13 Michael Albinus <michael.albinus@gmx.de>
9368
9369 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9370 for filtering.
9371
93722008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9373
9374 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9375
9376 * m/macppc.h:
9377 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9378
9379 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9380 (SPECIAL_EMACS_INT):
9381 * m/ia64.h (SPECIAL_EMACS_INT):
9382 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9383 * s/gnu.h (NLIST_STRUCT):
9384 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9385 * s/gnu-linux.h (LINUX):
9386 * s/msdos.h (HAVE_FACES):
9387 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9388
9389 * systty.h:
9390 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9391 anymore.
9392
93932008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9394
9395 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9396 always defined as int.
9397
9398 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9399 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9400 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9401 * s/freebsd.h (HAVE_WAIT_HEADER):
9402 * s/bsd-common.h (HAVE_UNION_WAIT):
9403 * s/aix4-2.h (HAVE_WAIT_HEADER):
9404 * m/mips.h (HAVE_UNION_WAIT):
9405 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9406 (COFF, static): Do not define, they are undefined later in the file.
9407
9408 * process.c (update_status): Don't use a union.
9409 (status_convert):
9410 (sigchld_handler): Use int instead of WAITTYPE.
9411
94122008-07-12 Chong Yidong <cyd@stupidchicken.com>
9413
9414 * indent.c (Fvertical_motion): Restore hscroll before moving to
9415 goal column.
9416
94172008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9418
9419 * lisp.h: Remove left over code.
9420
94212008-07-11 Andreas Schwab <schwab@suse.de>
9422
9423 * lisp.h: Fix logic in last change.
9424
9425 * menu.h: New file.
9426 * menu.c: Include it.
9427 * xmenu.c: Likewise.
9428 * Makefile.in: Update dependencies.
9429
94302008-07-11 Kenichi Handa <handa@m17n.org>
9431
9432 * fontset.c (fontset_from_font): Cancel the previous change.
9433
94342008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9435
9436 * lisp.h:
9437 * w32heap.c:
9438 * emacs.c:
9439 * alloc.c: Replace all references of NO_UNION_TYPE with
9440 USE_LISP_UNION_TYPE.
9441
9442 * m/xtensa.h (NO_UNION_TYPE):
9443 * m/vax.h (NO_UNION_TYPE):
9444 * m/template.h (NO_UNION_TYPE):
9445 * m/sparc.h (NO_UNION_TYPE):
9446 * m/mips.h (NO_UNION_TYPE):
9447 * m/macppc.h (NO_UNION_TYPE):
9448 * m/m68k.h (NO_UNION_TYPE):
9449 * m/iris4d.h (NO_UNION_TYPE):
9450 * m/intel386.h (NO_UNION_TYPE):
9451 * m/ibms390x.h (NO_UNION_TYPE):
9452 * m/ibms390.h (NO_UNION_TYPE):
9453 * m/ibmrs6000.h (NO_UNION_TYPE):
9454 * m/ia64.h (NO_UNION_TYPE):
9455 * m/hp800.h (NO_UNION_TYPE):
9456 * m/arm.h (NO_UNION_TYPE):
9457 * m/amdx86-64.h (NO_UNION_TYPE):
9458 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9459 defining it the same.
9460
94612008-07-10 Chong Yidong <cyd@stupidchicken.com>
9462
9463 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9464
94652008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9466
9467 * fileio.c:
9468 * sysdep.c
9469 * systty.h:
9470 * m/ibmrs6000.h:
9471 * m/iris4d.h:
9472 * s/aix4-2.h:
9473 * s/freebsd.h:
9474 * s/gnu-linux.h:
9475 * s/hpux10-20.h:
9476 * s/hpux11.h:
9477 * s/netbsd.h:
9478 * s/sol2-3.h:
9479 * s/sol2-4.h:
9480 * s/sol2.h:
9481 * s/usg5-4.h:
9482 * s/vms.h: Remove references to unused variables.
9483
94842008-07-10 Andreas Schwab <schwab@suse.de>
9485
9486 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9487 pattern before matching the generic family.
9488
94892008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9490
9491 * unexec.c:
9492 * s/vms.h:
9493 * s/usg5-4-2.h:
9494 * s/sol2-5.h:
9495 * s/freebsd.h:
9496 * s/darwin.h: Remove dead code.
9497
9498 * m/template.h:
9499 * m/sparc.h:
9500 * m/mips.h:
9501 * m/m68k.h:
9502 * m/iris4d.h:
9503 * m/intel386.h:
9504 * m/ibms390x.h:
9505 * m/ibms390.h:
9506 * m/ia64.h:
9507 * m/hp800.h:
9508 * m/arm.h:
9509 * m/amdx86-64.h: Remove dead code and references to unused
9510 and compiler defined symbols.
9511
9512 * unexmips.c:
9513 * unexelf.c: Remove references to desupported systems.
9514
9515 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9516
9517 * m/powermac.h: Remove boilerplate comments.
9518 (NO_REMAP): Remove unused definition.
9519
9520 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9521 define them.
9522
95232008-07-10 Kenichi Handa <handa@m17n.org>
9524
9525 * xfont.c (xfont_open): Log the reason of failure.
9526
95272008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9528
9529 * fontset.c (fontset_get_font_group):
9530 * font.c (font_check_otf): Specify argument types.
9531
95322008-07-09 Kenichi Handa <handa@m17n.org>
9533
9534 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9535 non-ASCII char is found.
9536
9537 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9538 (reorder_font_vector): Change the arg preferred_family to font.
9539 Prefer the spec matching with font.
9540 (fontset_get_font_group): New function.
9541 (fontset_find_font): Change the format of an element of a realized
9542 fontset. Use fontset_get_font_group.
9543 (fontset_font): Try the current fontset, the default fontset, the
9544 fallbacks of the current fontset, and the fallbacks of the default
9545 fontset in this order.
9546 (face_for_char): Delete the shortcut to use the current font.
9547 (fontset_from_font): Don't set fonts for Latin in the fontset.
9548
9549 * font.h (font_make_object, font_match_p): Adjust prototypes.
9550
9551 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9552
9553 * font.c (font_make_object): New arg entity and pixelsize.
9554 (font_check_otf_features, font_check_otf): New functions.
9555 (font_match_p): Check :lang, :script, and :otf properties.
9556
9557 * xfont.c (xfont_open): Adjust it for the change of
9558 font_make_object.
9559 (xfont_text_extents): Fix initial setting of metrics.
9560
9561 * ftfont.c (struct ftfont_info): New member index, delete member
9562 fc_charset_idx. Make the member order compatible with struct
9563 xftfont_info.
9564 (fc_charset_table): Change charset names to registry names.
9565 (ftfont_pattern_entity): Delete the args registry and
9566 fc_charset_idx. Change the value of :font-entity property
9567 to (FONTNAME . INDEX). Always set :registry property to
9568 `iso10646-1'.
9569 (struct ftfont_cache_data): New struct.
9570 (ftfont_lookup_cache): New arg for_face.
9571 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9572 (ftfont_driver): Set the member otf_capability.
9573 (ftfont_get_charset): Adjust it for the change of
9574 fc_charset_table.
9575 (OTF_TAG_SYM): New macro.
9576 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9577 for the change of fc_charset_table.
9578 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9579 ftfont_pattern_entity. Add FC_INDEX to objset.
9580 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9581 and ftfont_pattern_entity.
9582 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9583 font_make_object, struct ftfont_info.
9584 (ftfont_has_char): Use ftfont_get_fc_charset.
9585 (ftfont_otf_features, ftfont_otf_capability): New functions.
9586 (ftfont_shape): Use ftfont_get_otf.
9587 (ftfont_text_extents): Fix initial setting of metrics.
9588
9589 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9590 member order compatible with struct ftfont_info.
9591 (xftfont_open): Add FC_CHARSET to the pattern. Set
9592 xftfont_info->ft_size. Don't unlock the face. Check BDF
9593 properties if appropriate.
9594 (xftfont_close): Unlock the face.
9595 (xftfont_anchor_point, xftfont_shape): Deleted.
9596 (syms_of_xftfont): Don't set members anchor_point and shape of
9597 xftfont_driver.
9598
9599 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9600 font_make_object.
9601
9602 * w32font.c (w32font_open): Adjust it for the change of
9603 font_make_object.
9604 (w32font_open_internal): Don't set properties of font_object here.
9605
96062008-07-08 Chong Yidong <cyd@stupidchicken.com>
9607
9608 * macfns.c (x_create_tip_frame):
9609 * w32fns.c (x_create_tip_frame):
9610 * xfns.c (x_create_tip_frame): Pass parameter argument to
9611 face-set-after-frame-default.
9612
9613 * xfaces.c (Finternal_merge_in_global_face): Save merged
9614 attributes for the default face back into the face vector.
9615
96162008-07-08 Andreas Schwab <schwab@suse.de>
9617
9618 * fontset.h: Declare fontset_from_font. Don't declare
9619 new_fontset_from_font and fontset_from_font_name.
9620 * xterm.c: Include "fontset.h".
9621 * Makefile.in (xterm.o): Update dependencies.
9622
96232008-07-08 Glenn Morris <rgm@gnu.org>
9624
9625 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9626 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9627
96282008-07-07 Chong Yidong <cyd@stupidchicken.com>
9629
9630 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9631 (x_set_frame_parameters): Don't bind it.
9632
96332008-07-07 Juanma Barranquero <lekktu@gmail.com>
9634
9635 * w32fns.c (map_w32_filename): Declare extern.
9636
96372008-07-07 Jason Rumney <jasonr@gnu.org>
9638
9639 * w32term.c (WS_EX_LAYERED): Define if not already.
9640
96412008-07-06 Chong Yidong <cyd@stupidchicken.com>
9642
9643 * xfaces.c (set_font_frame_param): Don't try to set the font
9644 parameter if it is still unspecified in the lface.
9645
96462008-07-05 Chong Yidong <cyd@stupidchicken.com>
9647
9648 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9649 face if it didn't already exist.
9650
9651 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9652
96532008-07-05 Andreas Schwab <schwab@suse.de>
9654
9655 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9656
96572008-07-05 Chong Yidong <cyd@stupidchicken.com>
9658
9659 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9660 word-wrapping.
9661 (IT_DISPLAYING_WHITESPACE): New macro.
9662 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9663 when word-wrapping. Simplify word-wrapping logic. Use correct
9664 pixel positions when saving copies of the iterator.
9665 (display_line): Use proper wrap point if the last character on a
9666 line was preceded by whitespace.
9667
96682008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9669
9670 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9671
96722008-07-04 Kenichi Handa <handa@m17n.org>
9673
9674 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9675
9676 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9677
96782008-07-02 Jason Rumney <jasonr@gnu.org>
9679
9680 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9681 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9682
9683 * xdisp.c (next_element_from_display_vector): Move assignment out
9684 of if statement.
9685
96862008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9687
9688 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9689
9690 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9691 (syms_of_fileio): Initialize and export them.
9692 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9693
9694 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9695 (Fsystem_move_file_to_trash): New function.
9696 (syms_of_w32fns): Export it to lisp.
9697
96982008-07-01 Jason Rumney <jasonr@gnu.org>
9699
9700 * w32font.c (w32font_text_extents): Don't count overhang as part
9701 of width.
9702
97032008-06-30 Miles Bader <miles@gnu.org>
9704
9705 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9706 Add `avoid_cursor_p' field.
9707
9708 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9709 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9710 (append_glyph, append_composite_glyph, produce_image_glyph)
9711 (append_stretch_glyph): Initialize avoid_cursor_p.
9712 (get_it_property): Rename from `get_line_height_property'.
9713 (x_produce_glyphs): Use get_it_property.
9714 (handle_line_prefix, push_display_prop): New functions.
9715 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9716 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9717 New variables.
9718 (syms_of_xdisp): Initialize them.
9719
97202008-06-30 Kenichi Handa <handa@m17n.org>
9721
9722 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9723 XftDefaultSubstitute (they are called in XftFontMatch).
9724 (xftfont_open): Fix args to ftfont_font_format.
9725
9726 * ftfont.c (fc_charset_table): New member lang.
9727 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9728 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9729 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9730 (ftfont_open): Fix args to ftfont_font_format.
9731 (ftfont_font_format): New arg filename.
9732
97332008-06-30 Chong Yidong <cyd@stupidchicken.com>
9734
9735 * xfaces.c (Finternal_merge_in_global_face): If default face was
9736 modified, realize it again. Update the font face attribute.
9737
97382008-06-29 Jason Rumney <jasonr@gnu.org>
9739
9740 * w32term.c (x_set_frame_alpha): Fix logic.
9741
97422008-06-29 Kenichi Handa <handa@m17n.org>
9743
9744 * fontset.c (Finternal_char_font): Return font-object instead of
9745 font-name.
9746
9747 * composite.c (get_composition_id): Fix the width calculation for TAB.
9748
97492008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9750
9751 * indent.c (Fvertical_motion): Properly handle float column arg.
9752
97532008-06-28 Jason Rumney <jasonr@gnu.org>
9754
9755 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9756 (pfnSetLayeredWindowAttributes): New function pointer.
9757 (w32_initialize): Initialize it when supported.
9758 (x_set_frame_alpha): New function.
9759
9760 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9761 (w32_frame_parm_handlers): Set alpha handler.
9762
9763 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9764
97652008-06-27 Jason Rumney <jasonr@gnu.org>
9766
9767 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9768 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9769 (w32_to_x_charset, x_to_w32_charset)
9770 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9771 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9772 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9773 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9774 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9775 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9776 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9777 (Qw32_charset_unicode): Remove.
9778 (syms_of_w32fns): Update for above changes.
9779
9780 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9781 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9782 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9783 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9784 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9785 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9786 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9787 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9788 (syms_of_w32font): Update for above changes.
9789
97902008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9791
9792 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9793 removed #if.
9794 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9795
97962008-06-26 Juanma Barranquero <lekktu@gmail.com>
9797 Eli Zaretskii <eliz@gnu.org>
9798
9799 * makefile.w32-in (LOCAL_FLAGS):
9800 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9801
9802 * sysdep.c (_spawnlp, _getpid):
9803 Declare with explicit _cdecl instead of _CRTAPI1.
9804
9805 * editfns.c (Fget_internal_run_time):
9806 Check for WINDOWSNT with #ifdef, not #if.
9807
98082008-06-26 Jason Rumney <jasonr@gnu.org>
9809
9810 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9811
9812 * w32term.c (x_draw_glyph_string_foreground)
9813 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9814 Use FONT_HANDLE macro.
9815 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9816
9817 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9818 (uniscribe_encode_char): Use FONT_HANDLE macro.
9819
9820 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9821 (w32font_text_extents): Use precast w32_font.
9822 (w32font_close): Free cached metrics.
9823 (w32font_open_internal): Allocate space for name on stack.
9824
98252008-06-26 Chong Yidong <cyd@stupidchicken.com>
9826
9827 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9828
98292008-06-26 Jason Rumney <jasonr@gnu.org>
9830
9831 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9832 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9833
98342008-06-26 Juanma Barranquero <lekktu@gmail.com>
9835
9836 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9837
98382008-06-26 Jason Rumney <jasonr@gnu.org>
9839
9840 * w32bdf.c, w32bdf.h: Remove obsolete files.
9841
9842 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9843
9844 * w32gui.h: Don't include w32bdf.h.
9845 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9846 Remove obsolete font support.
9847
9848 * w32font.h (struct w32font_info): Remove compat_w32_font.
9849 Add hfont member.
9850 (FONT_COMPAT): Remove obsolete macro.
9851
9852 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9853 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9854 (w32font_open_internal): Remove compat code. Set new hfont member.
9855 (Fx_select_font): Use new hfont member.
9856
9857 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9858 (uniscribe_encode_char): Use new hfont member.
9859
9860 * w32term.c (x_draw_glyph_string_foreground)
9861 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9862 (x_draw_glyph_string): Use metrics in w32font_info.
9863
98642008-06-26 Kenichi Handa <handa@m17n.org>
9865
9866 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9867
98682008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9869
9870 * unexnext.c:
9871 * m/ews4800.h:
9872 * m/hp9000s300.h:
9873 * m/ibm370aix.h:
9874 * m/mips-siemens.h:
9875 * m/ncr386.h:
9876 * m/next.h:
9877 * m/pmax.h:
9878 * m/powerpcle.h:
9879 * m/tandem-s2.h:
9880 * s/386bsd.h:
9881 * s/bsd386.h:
9882 * s/bsd4-1.h:
9883 * s/bsd4-2.h:
9884 * s/bsdos2-1.h:
9885 * s/bsdos2.h:
9886 * s/bsdos3.h:
9887 * s/bsdos4.h:
9888 * s/nextstep.h:
9889 * s/ultrix4-3.h:
9890 * s/usg5-0.h:
9891 * s/usg5-2-2.h:
9892 * s/usg5-2.h:
9893 * s/usg5-4-3.h:
9894 * s/ux4800.h:
9895 * s/uxpds.h:
9896 * s/uxpv.h: Remove support for obsolete systems.
9897 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9898 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9899 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9900 Remove, insert contents in s/aix4-2.h.
9901 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9902 * s/bsd4-3.h: Rename to ...
9903 * s/bsd-common.h: ... this.
9904 * data.c:
9905 * doc.c:
9906 * ecrt0.c:
9907 * emacs.c:
9908 * fileio.c:
9909 * floatfns.c:
9910 * keyboard.c:
9911 * mem-limits.h:
9912 * print.c:
9913 * process.c:
9914 * sysdep.c:
9915 * syssignal.h:
9916 * systty.h:
9917 * syswait.h:
9918 * term.c:
9919 * unexec.c:
9920 * unexelf.c:
9921 * unexhp9k800.c:
9922 * m/hp800.h:
9923 * m/ibmrs6000.h:
9924 * m/mips.h:
9925 * m/vax.h:
9926 * s/darwin.h:
9927 * s/freebsd.h:
9928 * s/gnu.h:
9929 * s/ms-w32.h:
9930 * s/msdos.h:
9931 * s/netbsd.h:
9932 * s/template.h: Remove references to obsolete variables.
9933
9934 * Makefile.in: Add dependencies for all unexec files.
9935 (admindir): Remove unused variable.
9936 (UNEXEC_SRC): Remove references.
9937
99382008-06-25 Chong Yidong <cyd@stupidchicken.com>
9939
9940 * xfns.c (x_default_font_parameter): If Xft is available, first
9941 try Monospace-12 for the default font.
9942
99432008-06-25 Jason Rumney <jasonr@gnu.org>
9944
9945 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9946
99472008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9948
9949 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9950
9951 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9952
99532008-06-25 Juanma Barranquero <lekktu@gmail.com>
9954
9955 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9956 <scroll-conservatively>: Fix typo in docstring.
9957
9958 * xselect.c (Fx_send_client_event): Doc fix.
9959
99602008-06-25 Kenichi Handa <handa@m17n.org>
9961
9962 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9963
9964 * font.c (font_parse_fcname): Remove unused variables.
9965 (font_sort_entites): Delete the arg SPEC. Caller changed.
9966 Fix for the case of ! best_only.
9967 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9968
9969 * lisp.h (Fstring_to_unibyte): EXFUN it.
9970
9971 * character.h (str_to_unibyte): Extern it.
9972
9973 * character.c (str_to_unibyte): New function.
9974
9975 * fns.c (Fstring_to_unibyte): New function.
9976 (syms_of_fns): Defsubr it.
9977
99782008-06-24 Kenichi Handa <handa@m17n.org>
9979
9980 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9981 DPI too.
9982 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9983
99842008-06-24 Andreas Schwab <schwab@suse.de>
9985
9986 * Makefile.in (${lispsource}loaddefs.el): Rename from
9987 ../lisp/loaddefs.el.
9988 (bootstrap-clean): Do what distclean does but don't remove
9989 Makefile.
9990 (distclean): Depend on bootstrap-clean and remove Makefile.
9991
99922008-06-24 Chong Yidong <cyd@stupidchicken.com>
9993
9994 * buffer.h (struct buffer): New member word_wrap.
9995
9996 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9997 word-wrap.
9998 (init_buffer_once): Initialize them.
9999
10000 * dispextern.h (struct it): Replace bool truncate_lines_p with a
10001 line_wrap enum possessing three possible values.
10002
10003 * termopts.h: Replace truncate_partial_width_windows with
10004 Vtruncate_partial_width_windows.
10005
10006 * dispnew.c (direct_output_for_insert): Avoid direct output when
10007 inserting a space with word wrap on.
10008
10009 * indent.c (compute_motion): Obey integer values of
10010 truncate-partial-width-windows.
10011
10012 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
10013 replacing truncate_partial_width_windows.
10014 (init_iterator): If Vtruncate_partial_width_windows is an integer,
10015 truncate only if the window width is below that integer.
10016 (start_display, resize_mini_window, produce_stretch_glyph)
10017 (display_string, move_it_in_display_line_to): Use line_wrap.
10018 (back_to_previous_visible_line_start, reseat_1): Reset
10019 string_from_display_prop_p.
10020 (display_line): Extend default face to end of line when wrapping.
10021
100222008-06-24 Kim F. Storm <storm@cua.dk>
10023
10024 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
10025 to wrap continued lines at word boundaries.
10026
100272008-06-24 Jason Rumney <jasonr@gnu.org>
10028
10029 * font.c (Ffont_face_attributes): Multiply pixel size before point
10030 conversion to avoid multiplying rounding error.
10031
100322008-06-23 Jason Rumney <jasonr@gnu.org>
10033
10034 * w32term.c (x_draw_glyph_string_background)
10035 (x_draw_glyph_string): Remove old bdf font code.
10036
10037 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
10038
100392008-06-22 Kenichi Handa <handa@m17n.org>
10040
10041 * font.c (font_find_for_lface): Try the adstyle specified in
10042 the property of LFACE_FONT of LFACE (if any).
10043
100442008-06-21 Seiji Zenitani <zenitani@mac.com>
10045 Ryo Yoshitake <ryo@shiftmode.net>
10046
10047 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
10048
100492008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
10050
10051 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
10052 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
10053 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
10054 (witness-emacs): Remove.
10055 (lisp, shortlisp): Move loaddefs.el earlier.
10056 (mostlyclean): Forget about witness-emacs.
10057
100582008-06-22 Glenn Morris <rgm@gnu.org>
10059
10060 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
10061 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
10062
100632008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10064
10065 * Makefile.in (PRECOMP): Remove.
10066 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
10067 (witness-emacs): Run `compile-first'.
10068 (.el.elc): Use the new compile-onefile target.
10069
100702008-06-21 Kenichi Handa <handa@m17n.org>
10071
10072 * xftfont.c (xftfont_open): Handle QCembolden only when
10073 FC_EMBOLDEN is defined.
10074
100752008-06-21 Andreas Schwab <schwab@suse.de>
10076
10077 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
10078 (.el.elc): Likewise.
10079
100802008-06-21 Miles Bader <miles@gnu.org>
10081
10082 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
10083 build dir, not the lisp source dir.
10084
100852008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
10086
10087 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
10088 (bootstrapclean): Remove.
10089 (.el.elc): New rule.
10090 (PRECOMP): New var.
10091 (../lisp/subdirs.el): Remove.
10092 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10093 (witness-emacs): New target.
10094 (mostlyclean): Remove witness-emacs as well.
10095 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10096 Add witness-emacs dependency.
10097
100982008-06-20 Chong Yidong <cyd@stupidchicken.com>
10099
10100 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10101 defined by the font.
10102
101032008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10104
10105 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10106 (bootstrap-clean): New target that keeps TAGS around.
10107 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10108 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10109
101102008-06-20 Jason Rumney <jasonr@gnu.org>
10111
10112 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10113 Remove obsolete font code.
10114
10115 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10116 to determine language support.
10117
101182008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10119
10120 * sysdep.c (cfsetspeed): New fun extracted from the code.
10121 (cfmakeraw): Move before first use.
10122
101232008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10124
10125 * sysdep.c (cfmakeraw): Provide fallback implementation.
10126 (serial_configure): Provide fallback implementation of cfsetspeed.
10127
101282008-06-20 Kenichi Handa <handa@m17n.org>
10129
10130 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10131 the pattern.
10132
10133 * fontset.c (fontset_from_font): Copy font_spec before changing
10134 the elements.
10135
10136 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10137
101382008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10139
10140 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10141 for explicit `font' parameters.
10142
10143 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10144
101452008-06-19 Kenichi Handa <handa@m17n.org>
10146
10147 * frame.c: Include <ctype.h>.
10148 (x_set_font_backend): Allow spacing characters in the X resource
10149 for FontBackend.
10150
101512008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10152
10153 * w32fns.c, xfns.c (Qfont_param): New var.
10154 (syms_of_w32fns): Initialize it.
10155 (x_default_font_parameter): Record explicit `font' into
10156 `font-parameter'.
10157
101582008-06-18 Kenichi Handa <handa@m17n.org>
10159
10160 * font.c (font_parse_xlfd): Fix previous change.
10161 (font_parse_fcname): Don't use :fc-unknown-spec.
10162 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10163 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10164 (font_add_log): Prepend the driver name to the resulting fonts.
10165
10166 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10167 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10168 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10169
10170 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10171 (QCembolden): New variables.
10172 (syms_of_xftfont): DEFSYM them.
10173 (xftfont_open): Call XftFontMatch. Don't trust the result of
10174 XftTextExtents8 if the pixel_size is less than 5.
10175
101762008-06-18 Andreas Schwab <schwab@suse.de>
10177
10178 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10179 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10180
101812008-06-18 Jason Rumney <jasonr@gnu.org>
10182
10183 * w32font.c (w32font_list, w32font_match): Add logging.
10184
10185 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10186
101872008-06-17 Chong Yidong <cyd@stupidchicken.com>
10188
10189 * font.c (font_parse_fcname): Store divider characters for
10190 unknown-spec list. For known key symbols, intern using correct
10191 symbol name.
10192
101932008-06-17 Kenichi Handa <handa@m17n.org>
10194
10195 * xfaces.c (realize_default_face): If the frame is not on window
10196 system, set the fontset of face to nil.
10197
101982008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10199
10200 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10201
102022008-06-16 Juanma Barranquero <lekktu@gmail.com>
10203
10204 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10205 (build_font_name_from_vector): Delete externs.
10206
10207 * xfaces.c (struct font_name): Don't declare.
10208
102092008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10210
10211 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10212
102132008-06-16 Chong Yidong <cyd@stupidchicken.com>
10214
10215 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10216
102172008-06-16 Juanma Barranquero <lekktu@gmail.com>
10218
10219 * font.c (Ffont_spec): Fix usage in docstring.
10220 (Ffont_face_attributes): Doc fix.
10221
102222008-06-16 Andreas Schwab <schwab@suse.de>
10223
10224 * font.c (Ffont_face_attributes): Fix definition.
10225
102262008-06-16 Jason Rumney <jasonr@gnu.org>
10227
10228 * font.h (font_style_symbolic_from_value): Remove.
10229
10230 * font.c (font_style_symbolic_from_value): Remove.
10231 (font_style_symbolic): Revert to pre 2008-06-13 version.
10232
10233 * w32font.c (w32_to_fc_weight): New function.
10234 (w32font_full_name, logfont_to_fcname): Use it.
10235
102362008-06-16 Kenichi Handa <handa@m17n.org>
10237
10238 * font.c (font_check_object): Delete it.
10239 (font_clear_cache): Check if a font-object is alive.
10240 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10241 font-object to nil.
10242 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10243 (font_at): Don't call font_check_object.
10244 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10245
102462008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10247
10248 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10249
102502008-06-16 Chong Yidong <cyd@stupidchicken.com>
10251
10252 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10253
102542008-06-15 Chong Yidong <cyd@stupidchicken.com>
10255
10256 * font.c (font_parse_fcname): Only one decimal point.
10257 (font_unparse_fcname): Handle data in family and foundry indices
10258 as symbols, not strings.
10259 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10260
10261 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10262
10263 * font.h (font_unparse_gtkname): Add prototype.
10264
102652008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10266
10267 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10268
102692008-06-15 Andreas Schwab <schwab@suse.de>
10270
10271 * font.c (font_update_drivers): Fix crash when no drivers match.
10272
102732008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10274
10275 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10276 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10277
102782008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10279
10280 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10281
102822008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10283
10284 * process.c (Fserial_process_configure, Fprocess_send_eof):
10285 Use EQ to compare Lisp_Objects.
10286
102872008-06-13 Jason Rumney <jasonr@gnu.org>
10288
10289 * w32fns.c (Fw32_select_font): Remove old font API function.
10290
10291 * w32font.c (logfont_to_fcname): New function.
10292 (Fx_select_font): New font dialog function compatible with
10293 GTK/fontconfig version.
10294
10295 * font.c (font_style_symbolic_from_value): New function.
10296 (font_style_symbolic): Use it.
10297
10298 * font.h (font_style_symbolic_from_value): Declare new function.
10299
103002008-06-13 Juanma Barranquero <lekktu@gmail.com>
10301
10302 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10303 <font-width-table>: Fix typos in docstrings.
10304
103052008-06-13 Daniel Engeler <engeler@gmail.com>
10306
10307 These changes add serial port access.
10308 * process.c: Add HAVE_SERIAL.
10309 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10310 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10311 (list_processes_1, select_wrapper, Fstop_process)
10312 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10313 (status_notify): Modify to handle serial processes.
10314 [HAVE_SERIAL] (Fserial_process_configure)
10315 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10316 New functions.
10317 * process.h (struct Lisp_Process): Add `type'.
10318 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10319 New functions.
10320 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10321 serial ports.
b71ac3dd 10322 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10323 * w32.h: Add FILE_SERIAL.
10324 (struct _child_process): Add ovl_read, ovl_write.
10325
103262008-06-13 Kenichi Handa <handa@m17n.org>
10327
10328 * dispextern.h (enum lface_attribute_index): New member
10329 LFACE_FOUNDRY_INDEX.
10330
10331 * font.c (font_score): Delete arg alternate_families. Check only
10332 weight, slant, width, and size. Ignore the difference of alias
10333 style symbols.
10334 (font_sort_entites): Adjust for the above change. Reflect the
10335 order of font-driver to scores.
10336 (font_list_entities): Don't check alternate_familes here.
10337 (font_clear_prop): Handle foundry.
10338 (font_update_lface): Don't parse "foundry-family" form here.
10339 Handle FONT_FOUNDRY_INDEX.
10340 (font_find_for_lface): Likewise. Handle alternate families here.
10341 If registry is nil, try iso8859-1 and ascii-0.
10342 (font_open_for_lface): Pay attention to size in ENTITY.
10343 (font_open_by_name): Simplify by calling font_load_for_lface.
10344 (free_font_driver_list): Delete it.
10345 (font_update_drivers): Preserve the order of backends.
10346 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10347 of font_score and font_sort_entites.
10348 (font_update_sort_order): Likewise.
10349
10350 * xfaces.c (LFACE_FOUNDRY): New macro.
10351 (check_lface_attrs): Check foundry.
10352 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10353 (merge_face_vectors): Check foundry.
10354 (merge_face_ref): Likewise.
10355 (Finternal_set_lisp_face_attribute): Likewise.
10356 (x_update_menu_appearance): Likewise.
10357 (Finternal_get_lisp_face_attribute): Likewise.
10358 (lface_hash): Likewise.
10359 (lface_same_font_attributes_p): Likewise.
10360 (x_supports_face_attributes_p): Likewise.
10361 (tty_supports_face_attributes_p): Likewise.
10362 (Finternal_set_alternative_font_family_alist): Intern strings.
10363 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10364 (realize_default_face): Set LFACE_FOUNDRY (lface).
10365
10366 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10367 font-driver at first.
10368
10369 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10370
103712008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10372
10373 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10374
103752008-06-12 Jim Meyering <meyering@redhat.com>
10376
10377 Make unexec_free handle NULL the same way free does.
10378 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10379
103802008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10381
10382 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10383 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10384 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10385 (WEAK_ALIAS): Simplify.
10386 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10387 when searching a unibyte buffer.
10388
103892008-06-12 Chong Yidong <cyd@stupidchicken.com>
10390
10391 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10392
103932008-06-12 Juanma Barranquero <lekktu@gmail.com>
10394
10395 * w32font.c: Include ctype.h.
10396
103972008-06-11 Jason Rumney <jasonr@gnu.org>
10398
10399 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10400 misreported as space.
10401 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10402 as aliases for registry iso10646-1.
10403
104042008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10405
10406 * buffer.c (clone_per_buffer_values): Skip `name'.
10407
104082008-06-11 Chong Yidong <cyd@stupidchicken.com>
10409
10410 * font.c (font_parse_fcname): Fix last change; accept decimal
10411 points in font size.
10412
104132008-06-10 Jason Rumney <jasonr@gnu.org>
10414
10415 * w32uniscribe.c (add_opentype_font_name_to_list):
10416 Skip non unicode fonts.
10417
104182008-06-10 Chong Yidong <cyd@stupidchicken.com>
10419
10420 * xfns.c (Fx_font_dialog): New function.
10421
10422 * gtkutil.c (xg_dialog_response_cb): Rename from
10423 xg_file_response_callback.
10424 (pop_down_dialog): Rename from pop_down_file_dialog.
10425 (xg_get_file_name): Callers changed.
10426 (xg_get_font_name): New function.
10427
10428 * gtkutil.h (xg_get_font_name): Insert prototype.
10429
104302008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10431
10432 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10433 x_underline_minimum_display_offset.
10434 (syms_of_xdisp): Declare it here rather than in xterm.c.
10435 * dispextern.h (underline_minimum_offset): Declare it.
10436 * w32term.c (x_draw_glyph_string): Use it.
10437 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10438 (syms_of_xterm): Don't declare it any more.
10439 (x_draw_glyph_string): Adjust to the new name.
10440
8719abec 104412008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10442
10443 * xterm.c (x_underline_minimum_display_offset): New var.
10444 (x_draw_glyph_string): Use it.
10445 (syms_of_xterm): Declare it.
10446
104472008-06-10 Chong Yidong <cyd@stupidchicken.com>
10448
10449 * font.c (font_parse_fcname): Accept GTK-style font names too.
10450
104512008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10452
10453 * dired.c (file_name_completion): Don't return t if the match is exact
10454 but with different capitalization.
10455 * minibuf.c (Ftry_completion): Simplify.
10456
10457 * window.c (Vwindow_point_insertion_type): New var.
10458 (set_window_buffer): Use it.
10459 (syms_of_window): Init and export it to Lisp.
10460
104612008-06-10 Kenichi Handa <handa@m17n.org>
10462
10463 * font.h (font_intern_prop): Prototype adjusted.
10464
10465 * font.c (font_intern_prop): New arg force_symbol.
10466 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10467 Adjust for the change of font_intern_prop.
10468
10469 * ftfont.c (ftfont_pattern_entity):
10470 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10471 (w32_registry):
10472 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10473 the change of font_intern_prop.
10474
104752008-06-09 Juanma Barranquero <lekktu@gmail.com>
10476
10477 * w32menu.c (digest_single_submenu): Declare extern.
10478
104792008-06-09 Jason Rumney <jasonr@gnu.org>
10480
10481 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10482
10483 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10484 (parse_single_submenu): Remove.
10485 (digest_single_submenu): Remove.
10486 (syms_of_w32menu): Don't initialise variables that have moved
10487 to menu.c.
10488 (set_frame_menubar): Sync with version in xmenu.c.
10489 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10490
10491 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10492 Make static again.
10493
104942008-06-09 Jason Rumney <jasonr@gnu.org>
10495
10496 Changes to w32 files related to the move of common menu code
10497 to menu.c on 2008-06-08 by Chong Yidong.
10498
10499 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10500 defs to w32gui.h.
10501 (single_keymap_panes, push_menu_item, push_menu_pane):
10502 Make globally visible.
10503
10504 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10505 (local_free, malloc_widget_value, free_widget_value)
10506 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10507 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10508 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10509 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10510 (menu_items, menu_items_allocated, menu_items_used)
10511 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10512 (init_menu_items, finish_menu_items, discard_menu_items)
10513 (grow_menu_items, push_submenu_start, push_submenu_end)
10514 (push_left_right_boundary, push_menu_pane, push_menu_item)
10515 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10516 (free_menubar_widget_tree_value, parse_single_submenu)
10517 (update_submenu_strings): Remove functions.
10518 (xmalloc_widget_value): Remove and declare extern.
10519
10520 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10521 (OBJ1): Build it.
10522
10523 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10524 (local_heap, local_alloc, local_free, malloc_widget_value)
10525 (free_widget_value): Define here.
10526
105272008-06-09 Kenichi Handa <handa@m17n.org>
10528
10529 * font.h (Qascii_0): Extern it.
10530
10531 * font.c (Qascii_0): New variable.
10532 (syms_of_font): DEFSYM it.
10533 (font_open_by_name): If the registry "iso8859-1" fails, try also
10534 "ascii-0".
10535
10536 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10537
105382008-06-08 Kenichi Handa <handa@m17n.org>
10539
10540 * .gdbinit (xfont): New command.
10541
105422008-06-08 Andreas Schwab <schwab@suse.de>
10543
10544 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10545 * Makefile.in (menu.o): Update dependencies.
10546
10547 * Makefile.in (obj): Always add menu.o.
10548 * emacs.c (main): Always call syms_of_menu.
10549 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10550
105512008-06-08 Chong Yidong <cyd@stupidchicken.com>
10552
10553 * Makefile.in: Compile menu.c.
10554
10555 * lisp.h: Declare syms_of_menu.
10556
10557 * emacs.c (main): Call syms_of_menu.
10558
10559 * keyboard.h: Relocate platform-independent menu definitions from
10560 xmenu.c.
10561
10562 * menu.c: New file. Relocate platform-independent menu
10563 definitions from xmenu.c. Suggested by Adrian Robert.
10564
10565 * xmenu.c: Remove platform-independent menu definitions.
10566 (menu_items menu_items_inuse, menu_items_allocated)
10567 (menu_items_used, menu_items_n_panes)
10568 (menu_items_submenu_depth): Move to keyboard.h.
10569 (init_menu_items, finish_menu_items, unuse_menu_items)
10570 (discard_menu_items, restore_menu_items, save_menu_items)
10571 (grow_menu_items, push_submenu_start, push_submenu_end)
10572 (push_left_right_boundary, push_menu_pane, push_menu_item)
10573 (keymap_panes, single_keymap_panes, single_menu_item)
10574 (list_of_panes, list_of_items, find_and_call_menu_selection)
10575 (xmalloc_widget_value, free_menubar_widget_value_tree)
10576 (parse_single_submenu, digest_single_submenu)
10577 (update_submenu_strings): Move to menu.c.
10578
105792008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10580
10581 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10582
105832008-06-06 Miles Bader <miles@gnu.org>
10584
10585 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10586 face, not frame default.
10587
105882008-06-05 Martin Rudalics <rudalics@gmx.at>
10589
10590 * window.c (pop_up_windows, pop_up_frames)
10591 (display_buffer_reuse_frames, Vpop_up_frame_function)
10592 (Vdisplay_buffer_function, Veven_window_heights)
10593 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10594 (Vspecial_display_function, Vsame_window_buffer_names)
10595 (Vsame_window_regexps, split_height_threshold)
10596 (Vsplit_window_preferred_function): Move those vars to window.el.
10597 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10598 (Fdisplay_buffer): Move those functions to window.el.
10599 (syms_of_window): Remove corresponding declarations.
10600 (display_buffer): New function.
10601 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10602 * dispnew.c (Flast_nonminibuf_frame): New function.
10603 * buffer.c (Fpop_to_buffer): Move to window.el.
10604
106052008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10606
10607 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10608
106092008-06-05 Kenichi Handa <handa@m17n.org>
10610
10611 * coding.c (detect_coding): Fix previous change.
10612 (detect_coding_system): Likewise.
10613
106142008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10615
10616 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10617
10618 * keymap.c (Vminibuffer_local_filename_must_match_map):
10619 Rename from Vminibuffer_local_must_match_filename_map.
10620 (syms_of_keymap):
10621 * minibuf.c (Fcompleting_read): Adjust accordingly.
10622 * commands.h: Rename declaration as well.
10623
106242008-06-05 Kenichi Handa <handa@m17n.org>
10625
10626 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10627 family name.
10628 (Ffont_put): Likewise.
10629
10630 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10631 current font-spec.
10632
10633 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10634 is unspecified.
10635
10636 * xfaces.c (realize_x_face): If the font-related face attributes
10637 are the same as those of default face, realize a new fontset from
10638 default->fontset.
10639 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10640
106412008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10642
10643 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10644 (move_it_in_display_line): New wrapper.
10645
10646 * window.c (window_scroll_pixel_based_preserve_x)
10647 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10648 (window_scroll_pixel_based, window_scroll_line_based):
10649 Use them to preserve column positions.
10650 (syms_of_window): Initialize them.
10651
10652 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10653 (HPOS . VPOS) pair.
10654
10655 * dispextern.h (move_it_in_display_line): Declare.
10656
106572008-06-05 Juanma Barranquero <lekktu@gmail.com>
10658
10659 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10660 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10661 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10662
106632008-06-04 Juanma Barranquero <lekktu@gmail.com>
10664
10665 * window.c (Fset_window_parameter): Doc fix.
10666 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10667
106682008-06-04 Joakim Verona <joakim@verona.se>
10669
10670 * window.h (struct window): Add new member window_parameters.
10671
10672 * window.c (Fwindow_parameters, Fwindow_parameter)
10673 (Fset_window_parameter): New defuns.
10674 (syms_of_window): Defsubr the new defuns.
10675 (make_window): Initialize window_parameters to nil.
10676
106772008-06-04 John Paul Wallington <jpw@pobox.com>
10678
10679 * eval.c (Fdefmacro): Doc fix.
10680
106812008-06-04 Kenichi Handa <handa@m17n.org>
10682
10683 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10684 Be sure to call setup_coding_system when we find a proper coding system.
10685 (detect_coding_system): Fix handling of coding->head_ascii.
10686
106872008-06-03 Andreas Schwab <schwab@suse.de>
10688
10689 * font.c (font_prop_validate_spacing): Fix last change.
10690
106912008-06-03 Kenichi Handa <handa@m17n.org>
10692
10693 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10694 (font_parse_fcname): Fix handling of unknown key.
10695
10696 * xfont.c (xfont_list): Try an alias.
10697
10698 * charset.c (char_charset): Return NULL if the arg charset_list is
10699 specified and C doesn't belong to any of them.
10700
107012008-06-02 Chip Coldwell <coldwell@redhat.com>
10702
10703 * font.c (font_pixel_size): Don't take cdr of an integer.
10704
107052008-06-02 Jim Meyering <meyering@redhat.com>
10706
10707 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10708 * alloc.c (xfree): Return right away for a NULL arg.
10709 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10710 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10711 * mac.c (create_apple_event_from_event_ref): Likewise.
10712 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10713 Likewise.
10714 * doprnt.c (doprnt1): Likewise.
10715 * frame.c (frame): Likewise.
10716 * keyboard.c (wipe_kboard): Likewise.
10717 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10718 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10719 * term.c (tty_default_color_capabilities, maybe_fatal)
10720 (delete_tty): Likewise.
10721 * w16select.c (string): Likewise.
10722 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10723 * w32bdf.c (w32_free_bdf_font): Likewise.
10724 * w32fns.c (w32_unload_font): Likewise.
10725 * w32font.c (w32font_close): Likewise.
10726 * window.c (size_window): Likewise.
10727 * xselect.c (receive_incremental_selection): Likewise.
10728 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10729 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10730 * w32.c (stat): Likewise.
10731
10732 Remove useless if-before-free tests.
10733 * editfns.c (Fset_time_zone_rule): Likewise.
10734 * lread.c (nosuffix): Likewise.
10735 * ralloc.c (get_bloc): Likewise.
10736 * regex.c (reg_free): Likewise.
10737 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10738 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10739 * xsmfns.c (smc_save_yourself_CB): Likewise.
10740
107412008-06-02 Kenichi Handa <handa@m17n.org>
10742
10743 * font.c (font_find_for_lface): Handle float font size.
10744 (font_open_for_lface): Likewise.
10745
10746 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10747 comparing the properties.
10748
107492008-06-01 Jason Rumney <jasonr@gnu.org>
10750
10751 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10752 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10753 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10754 Don't add empty script list.
10755 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10756
107572008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10758
10759 * Makefile.in (dot, dotdot): Remove, update users.
10760 ".." has been used elsewhere in the file for a long time.
10761 (LIBXT_STATIC): Remove conditional based on unused variable.
10762
107632008-06-01 Miles Bader <miles@gnu.org>
10764
10765 * xfaces.c (Vface_remapping_alist): New variable.
10766 (syms_of_xfaces): Initialize it.
10767 (enum named_merge_point_kind): New type.
10768 (struct named_merge_point): Add `named_merge_point_kind' field.
10769 (push_named_merge_point): Make cycle detection respect different
10770 named-merge-point kinds.
10771 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10772 Remove face-name alias resolution.
10773 (lface_from_face_name): New definition using
10774 `lface_from_face_name_no_resolve'.
10775 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10776 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10777 (get_lface_attributes): New definition that layers face-remapping on
10778 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10779 (lookup_basic_face): New function.
10780 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10781 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10782 `get_lface_attributes'.
10783 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10784 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10785 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10786
10787 * xdisp.c (init_iterator): Pass base_face_id through
10788 `lookup_basic_face' when we actually use it as a face-id.
10789 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10790 DEFAULT_FACE_ID.
10791
10792 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10793 lookup the initial face-id.
10794
10795 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10796
107972008-06-01 Juanma Barranquero <lekktu@gmail.com>
10798
10799 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10800 (Fremove_text_properties): Fix typos in docstrings.
10801
108022008-05-31 Kenichi Handa <handa@m17n.org>
10803
10804 * font.c (font_list_entities): Fix the car part of data to be
10805 stored in the cache.
10806
10807 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10808
108092008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10810
10811 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10812 Add a `test' argument so another predicate than `equal' can be used.
10813 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10814 (map_char_table): Remove unused vars `c' and `i'.
10815 * lisp.h (Foptimize_char_table): Adjust declaration.
10816 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10817
108182008-05-30 Kenichi Handa <handa@m17n.org>
10819
10820 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10821 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10822 defined.
10823
108242008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10825
10826 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10827 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10828 frame-local settings for the same variable.
10829
108302008-05-30 Kenichi Handa <handa@m17n.org>
10831
10832 * fontset.c (Ffont_info): Move to font.c.
10833 (syms_of_fontset): Delete defsubr of Sfont_info.
10834
10835 * font.c (font_style_to_value, font_score): Delete casting of the
10836 args to xstcasecmp.
10837 (register_font_driver): Increment num_font_drivers only when
10838 registering the driver globally.
10839 (Ffont_info): Move from fontset.c. Handle a font object too.
10840 (syms_of_font): Defsubr Sfont_info.
10841
108422008-05-29 Kenichi Handa <handa@m17n.org>
10843
10844 * coding.h (enum define_coding_utf8_arg_index): New enum.
10845 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10846 coding_attr_utf_bom.
10847 (enum utf_bom_type): Rename from utf_16_bom_type.
10848 (struct utf_16_spec): Adjust for the above change.
10849 (struct coding_system): Add utf_8_bom in `spec' union.
10850
10851 * coding.c (CODING_UTF_8_BOM): New macro.
10852 (enum coding_category): Delete coding_category_utf_8, add
10853 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10854 coding_category_utf_8_sig.
10855 (CATEGORY_MASK_UTF_8): Delete it.
10856 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10857 (CATEGORY_MASK_UTF_8_SIG): New macros.
10858 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10859 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10860 CATEGORY_MASK_UTF_8_SIG.
10861 (CATEGORY_MASK_UTF_8): New macro.
10862 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10863 (detect_coding_utf_8): Check BOM.
10864 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10865 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10866 (encode_coding_utf_16): Likewise.
10867 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10868 (detect_coding, detect_coding_system): Handle utf-8-auto.
10869 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10870 (syms_of_coding): Fix setting up of Vcoding_category_table.
10871
108722008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10873
10874 * process.c (Faccept_process_output): If `millisec' is non-nil,
10875 `seconds' default to 0.
10876 (wait_reading_process_output): Also return non-nil if we read output
10877 from a non-running process.
10878
108792008-05-29 Jason Rumney <jasonr@gnu.org>
10880
10881 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10882 `raster' specified.
10883 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10884 in the uniscribe backend, but disallow any font that has no
10885 unicode subrange support.
10886
108872008-05-29 Juanma Barranquero <lekktu@gmail.com>
10888
10889 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10890 Fix typos in docstrings.
10891
108922008-05-29 Kenichi Handa <handa@m17n.org>
10893
10894 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10895 (Fx_family_fonts): Set frame correctly.
10896
108972008-05-28 Jason Rumney <jasonr@gnu.org>
10898
10899 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10900
109012008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10902
10903 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10904 calling build_annotations.
10905
109062008-05-28 Juanma Barranquero <lekktu@gmail.com>
10907
10908 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10909 (Fencode_coding_string):
10910 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10911 <latin-extra-code-table>: Fix typos in docstrings.
10912 (syms_of_coding) <coding-system-alist>: Doc fix.
10913 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10914
109152008-05-28 Kenichi Handa <handa@m17n.org>
10916
10917 * fontset.c (Ffont_info): Don't call font_close_object.
10918
10919 * font.c (font_parse_family_registry): Use Ffont_put to validate
10920 foundry and family.
10921 (font_delete_unmatched): Don't check spacing.
10922 (font_list_entities): Add spacing to the spec to list fonts.
10923
10924 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10925 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10926
10927 * coding.c (encode_coding_raw_text): Fix previous change.
10928 (encode_coding_object): When the dst_object is a buffer and is
10929 different from src_object, move gap to PT.
10930
109312008-05-27 Chong Yidong <cyd@stupidchicken.com>
10932
10933 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10934
109352008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10936
10937 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10938 all branches. Compute it differently.
10939
10940 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10941
109422008-05-27 Juanma Barranquero <lekktu@gmail.com>
10943
10944 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10945 into "else if () ... else ...".
10946
109472008-05-27 Jason Rumney <jasonr@gnu.org>
10948
10949 * w32font.c (w32font_open_internal): Determine if glyph indices
10950 are likely to work here.
10951
109522008-05-27 Chong Yidong <cyd@stupidchicken.com>
10953
10954 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10955 draw overlap glyphs with appropriate highlighting.
10956
109572008-05-27 Kenichi Handa <handa@m17n.org>
10958
10959 * xfont.c (xfont_open): Fix calculation of font->average_width.
10960
109612008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10962
10963 * casefiddle.c (casify_object): Try to guess better whether the
10964 argument is a byte or a char.
10965
109662008-05-26 Andreas Schwab <schwab@suse.de>
10967
10968 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10969 Always send multiples of format size.
10970
10971 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10972
109732008-05-26 Jason Rumney <jasonr@gnu.org>
10974
10975 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10976 (compute_metrics): Don't set failure if we just cleared the cache.
10977 (w32_weight_table): Remove unused variable.
10978 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10979 backwards compatibility.
10980
109812008-05-25 Kenichi Handa <handa@m17n.org>
10982
10983 * w32term.c (x_draw_glyph_string):
10984 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10985
10986 * xfaces.c: Delete unused function prototypes.
10987 (xstrlwr, font_frame): Delete them.
10988 (clear_face_cache): Delete unused variable.
10989
10990 * xftfont.c (xftfont_open): Delete unused variable.
10991 If underline_thickness is not 1, adjust underline_position.
10992
10993 * ftxfont.c (ftxfont_open): Delete unused variable.
10994
10995 * fontset.c (face_for_char): Optimize for the case of no charset
10996 property.
10997
10998 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10999 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
11000 (otf_open, font_otf_capability, generate_otf_features)
11001 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
11002 Comment out by surrounding "#if 0" and "#endif" for the moment.
11003 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
11004 (syms_of_font): Codes for accessing above commented out.
11005
110062008-05-24 Eli Zaretskii <eliz@gnu.org>
11007
11008 * w32proc.c: Include dispextern.h.
11009
11010 * w32.c: Include dispextern.h.
11011
110122008-05-23 Juanma Barranquero <lekktu@gmail.com>
11013
11014 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
11015 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
11016 Fix typos in docstrings.
11017
110182008-05-23 Jason Rumney <jasonr@gnu.org>
11019
11020 * xsmfns.c: Remove includes that are already included by config.h.
11021
110222008-05-23 Kenichi Handa <handa@m17n.org>
11023
11024 * charset.c (Qemacs, charset_emacs): New variables.
11025 (char_charset): Fix for non-Unicode characters.
11026 (syms_of_charset): Define charset_emacs.
11027
11028 * w32term.c (x_draw_glyph_string): Be sure to update
11029 s->underline_thickness and s->underline_position. Be sure to draw
11030 underline within the current line area.
11031
11032 * xterm.c (x_draw_glyph_string): Be sure to update
11033 s->underline_thickness and s->underline_position. Be sure to draw
11034 underline within the current line area.
11035
11036 * fontset.c: Delete unused variables and add casting for char *
11037 throughout the file.
11038 (fontset_font): Try the fallback fonts of the current fontset
11039 before consulting the default fontset.
11040
11041 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
11042
11043 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
11044
110452008-05-22 Jason Rumney <jasonr@gnu.org>
11046
11047 * font.c: Don't include strings.h.
11048
11049 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
11050
11051 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
11052 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
11053 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
11054 to call xstrcasecmp.
11055
11056 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
11057
11058 * fontset.c (fs_query_fontset): Use xstrcasecmp.
11059
11060 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
11061
11062 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
11063
110642008-05-22 Kenichi Handa <handa@m17n.org>
11065
11066 * puresize.h (BASE_PURESIZE): Increase to 1220000.
11067
11068 * font.c (font_prop_validate_style): Adjust for the format
11069 change of font_style_table.
11070
11071 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
11072 two args.
11073
11074 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
11075 two args.
11076
110772008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
11078
11079 * minibuf.c (keys_of_minibuf): Delete.
11080 * lisp.h (keys_of_minibuf): Delete.
11081 * emacs.c (main): Don't call keys_of_minibuf.
11082
110832008-05-22 Kenichi Handa <handa@m17n.org>
11084
11085 * ftfont.c (ftfont_resolve_generic_family): Rename from
11086 ftfont_list_generic_family. Return a single family for each
11087 generic family.
11088 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11089 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11090 Call font_add_log.
11091 (ftfont_match): Call font_add_log.
11092
11093 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11094 (FONT_DEBUG): Define it.
11095 (font_add_log): Extern it.
11096 (font_assert): Rename from xassert.
11097
11098 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11099 (xfont_list_family): Call font_add_log.
11100 (xfont_match): Likewise.
11101 (memq_no_quit): Delete.
11102
11103 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11104 call of Ffont_xlfd_name.
11105
11106 * xfaces.c (struct table_entry, slant_table, weight_table)
11107 (swidth_table): Move to font.c.
11108
11109 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11110 xassert are changed to font_assert. Delete many unused variables.
11111 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11112 New variables.
11113 (struct table_entry): Move from xfaces.c and modified.
11114 (weight_table, slant_table, width_table): Move from xfaces.c and
11115 contents adjusted for the change of struct table_entry.
11116 (font_style_to_value, font_style_symbolic): Adjust for the
11117 format change of font_style_table.
11118 (font_parse_family_registry): Don't overwrite existing foundry and
11119 family of font_spec.
11120 (font_score): Fix calculation of diff for sizes.
11121 (font_sort_entites): Call font_add_log.
11122 (font_delete_unmatched): Return a newly created list.
11123 (font_list_entities): Fix previous change. Call font_add_log.
11124 (font_matching_entity, font_open_entity, font_close_entity):
11125 Call font_add_log.
11126 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11127 (Finternal_set_font_style_table): Delete.
11128 (BUILD_STYLE_TABLE): New macro.
11129 (build_style_table): New function.
11130 (Vfont_log, font_log_env_checked): New variables.
11131 (font_add_log): New function.
11132 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11133 Declare Lisp variables "font-weight-table", "font-slant-table",
11134 "font-width-table", and "font-log". Initialize font_style_table.
11135
111362008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11137
11138 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11139
111402008-05-21 Seiji Zenitani <zenitani@mac.com>
11141 Ryo Yoshitake <ryo@shiftmode.net>
11142
11143 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11144 (Vframe_alpha_lower_limit): New variable.
11145 (x_set_alpha): New function.
11146
11147 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11148
11149 * xfns.c (x-create-frame, Qalpha):
11150 Initialize the frame parameter `alpha'.
11151 * xterm.c (OPAQUE, OPACITY): New.
11152 (x_set_frame_alpha): New function.
11153 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11154
11155 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11156 * w32fns.c (w32_frame_parm_handlers): Likewise.
11157
111582008-05-20 Jason Rumney <jasonr@gnu.org>
11159
11160 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11161 truetype fonts to opentype list.
11162
111632008-05-20 Juanma Barranquero <lekktu@gmail.com>
11164
11165 * fontset.c (Ffontset_info): Doc fix.
11166 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11167 <ignore-relative-composition>: Fix typos in docstrings.
11168
11169 * font.c (syms-of-font) <font-encoding-alist>:
11170 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11171 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11172 (Ffont_otf_alternates): Doc fixes.
11173
111742008-05-20 Kenichi Handa <handa@m17n.org>
11175
11176 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11177 font.h through out the file.
11178 (FONT_DRIVERS): Rename from FONTOBJ.
11179 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11180 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11181
11182 * emacs.c (main): Call syms_of_font unconditionally.
11183
11184 * font.h (find_font_encoding): Extern it.
11185
11186 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11187 fontset.c.
194d44e7 11188 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11189 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11190 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11191 only when HAVE_WINDOW_SYSTEM is defined.
11192 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11193 when HAVE_WINDOW_SYSTEM is defined.
11194
11195 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11196 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11197
11198 * xfaces.c: Include font.h unconditionally.
11199 (merge_face_ref, merge_face_vectors)
11200 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11201
112022008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11203
11204 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11205 indirect_variable.
11206 * eval.c (lisp_indirect_variable): New fun.
11207 (Fuser_variable_p): Use it.
11208
112092008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11210
11211 * lisp.h (indirect_variable):
11212 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11213 Use Lisp_Symbol pointers rather than Lisp_Object.
11214 Adjust callers.
11215 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11216 To this end, change calling-convention.
11217
11218 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11219 if some non-hidden buffers are selected by string&pred.
11220
112212008-05-19 Chong Yidong <cyd@stupidchicken.com>
11222
11223 * process.c (wait_reading_process_output): Always check status
11224 when in batch mode.
11225
112262008-05-19 Kenichi Handa <handa@m17n.org>
11227
11228 * font.c (font_list_entities): Fix handling of cache.
11229 (font_matching_entity): Likewise.
11230
11231 * ftfont.c (cs_iso8859_1): Delete.
11232 (ft_face_cache): New variable.
11233 (struct ftfont_info): New member fc_charset_idx.
11234 (ftfont_build_basic_charsets): Delete.
11235 (fc_charset_table): New variable.
11236 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11237 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11238 Callers changed.
11239 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11240 (ftfont_spec_pattern): New argument fc_charset_idx.
11241 Check registry more rigidly. Change callers.
11242 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11243 change of :font-entity property of the font.
11244
11245 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11246 property of the font.
11247
112482008-05-18 Juanma Barranquero <lekktu@gmail.com>
11249
11250 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11251 (Funencodable_char_position, Fcheck_coding_systems_region)
11252 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11253 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11254 (Ffind_operation_coding_system, Fset_coding_system_priority)
11255 (Fcoding_system_eol_type): Doc fixes.
11256
112572008-05-17 Glenn Morris <rgm@gnu.org>
11258
11259 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11260
112612008-05-16 Eli Zaretskii <eliz@gnu.org>
11262
11263 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11264 and st_gid.
11265
11266 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11267 HAVE_WINDOW_SYSTEM is not defined.
11268
11269 * xfaces.c (merge_face_ref, merge_face_vectors)
11270 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11271 HAVE_WINDOW_SYSTEM is defined.
11272 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11273
112742008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11275
11276 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11277
112782008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11279
11280 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11281
112822008-05-15 Kenichi Handa <handa@m17n.org>
11283
11284 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11285 preference.
11286
112872008-05-15 Glenn Morris <rgm@gnu.org>
11288
11289 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11290
112912008-05-15 Chong Yidong <cyd@stupidchicken.com>
11292
11293 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11294 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11295
11296 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11297
112982008-05-15 Kenichi Handa <handa@m17n.org>
11299
11300 * ftfont.c (ftfont_list): Downcase family name to check generic
11301 families.
11302
11303 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11304 font-spec for QCfont value.
11305
11306 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11307 buffer. Check the return value of it.
11308
113092008-05-14 Jason Rumney <jasonr@gnu.org>
11310
11311 * w32term.c (w32_get_glyph_overhangs): Remove.
11312 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11313
113142008-05-14 Kenichi Handa <handa@m17n.org>
11315
11316 * font.c (font_prop_validate): Make nil a valid value.
11317 (font_clear_cache): Check if the cached vector of entities is nil
11318 or not.
11319
113202008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11321
11322 * emacs.c (main_thread): Conditionalize on
11323 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11324 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11325
11326 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11327 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11328 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11329
113302008-05-14 Kenichi Handa <handa@m17n.org>
11331
11332 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11333 has no corresponding coding system.
11334
113352008-05-14 Jason Rumney <jasonr@gnu.org>
11336
11337 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11338
11339 * w32font.h (w32font_open_internal): Update declaration.
11340
11341 * w32font.c (w32font_open_internal): Change last argument from
11342 w32font_info struct to font object. Fill in font object from
11343 font_entity. Get Outline metrics if possible. Use them to
11344 calculate underline position and thickness. Use xlfd name as name
11345 property. Don't set codepage.
11346 (w32font_open): Pass font_object to w32font_open_internal. Don't
11347 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11348 (w32font_draw): Use s->font.
11349 (clear_cached_metrics): Don't clear non-existent blocks.
11350
11351 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11352 font was not found.
11353 (x_draw_glyph_string): Use underline position and thickness from font.
11354
11355 * w32uniscribe.c (uniscribe_open): Pass font_object to
11356 w32font_open_internal.
11357
113582008-05-14 Kenichi Handa <handa@m17n.org>
11359
11360 These changes are to delete all legacy font-handling codes, and
11361 make Emacs use only font-backends.
11362
11363 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11364 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11365
11366 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11367
11368 * charset.h (Vcharset_non_preferred_head)
11369 (Vcurrent_iso639_language): Extern them.
11370
11371 * charset.c (Vcharset_non_preferred_head): New variable.
11372 (Vcurrent_iso639_language): New variable.
11373 (syms_of_charset): Declare it as a Lisp variable.
11374 (char_charset): Don't check non preferred charsets. As a last
11375 resort, return charset_unicode.
11376 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11377
11378 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11379 conditionals. Don't check enable_font_backend. Delete all codes
11380 used only when USE_FONT_BACKEND is not defined.
11381
11382 * dispextern.h (struct glyph_string): Change type of `font' to
11383 `struct font *'.
11384 (struct glyph_string): New member underline_position and
11385 underline_thickness.
11386 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11387 (struct face): Change type of `font' to `struct font *'. Remove
11388 members `font_name', `font_info_id'.
11389 (per_char_metric, encode_char): Delete externs.
11390 (calc_pixel_width_or_height): Adjust the prototype.
11391
11392 * emacs.c (enable_font_backend): Delete extern.
11393 (main): Don't set enable_font_backend. Don't check the command
11394 line argument "-disable-font-backend".
11395
11396 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11397 (enum font_property_index): New members FONT_DPI_INDEX,
11398 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11399 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11400 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11401 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11402 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11403 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11404 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11405 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11406 (struct font_spec, struct font_entity): New structs.
11407 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11408 (struct font): Many members from old "struct font_info" moved to
11409 here. Members font and entity deleted.
11410 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11411 the new font-related objects.
11412 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11413 (CHECK_FONT_GET_OBJECT): Likewise.
11414 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11415 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11416 (struct font_driver): New members case_sensitive anc check. Type
11417 of the member list and open changed.
11418 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11419 (font_symbolic_width, font_find_object, font_get_spec)
11420 (font_set_lface_from_name): Delete extern.
11421 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11422
11423 * font.c: Include <strings.h>.
11424 (enable_font_backend): Delete it.
11425 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11426 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11427 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11428 (null_string): Delete it.
11429 (null_vector): Make it static.
11430 (font_family_alist): Delete it.
11431 (Qnormal): Extern it.
11432 (QCextra, QClanguage): Delete it.
11433 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11434 (font_make_spec, font_make_entity, font_make_object)
11435 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11436 the string. Callers changed.
11437 (font_pixel_size): Adjusted for the format change of font-related
11438 objects.
11439 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11440 (font_style_to_value, font_style_symbolic): New function.
11441 (build_font_family_alist): Delete it.
11442 (font_registry_charsets): Use Fassoc_string instead of
11443 assq_no_quit.
11444 (font_prop_validate_symbol): Don't return null_string.
11445 (font_prop_validate_style): Adjusted for the change of
11446 style-related values in a font vector.
11447 (font_property_table): Delete entries for QClanguage and
11448 QCantialias, add entries for QCavgwidth.
11449 (get_font_prop_index): Delete the 2nd argument FROM.
11450 (font_prop_validate): Arguments changed.
11451 (font_put_extra): Adjusted for the change of font-related objects.
11452 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11453 (font_parse_fcname, font_unparse_fcname)
11454 (font_prepare_composition): Likewise.
11455 (font_parse_family_registry): Renamed from font_merge_old_spec.
11456 (otf_open): Delete the 1st arg entity.
11457 (font_otf_capability): Adjusted for the above change.
11458 (font_score): New arg alternate_families. Adjusted for the change
11459 of font-related objects.
11460 (font_sort_entites): New arg best_only.
11461 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11462 Delete them.
11463 (font_match_p): Check alternate families.
11464 (font_find_object): Delete it.
11465 (font_check_object): New function.
11466 (font_clear_cache): Adjusted for the change of font-related objects.
11467 (font_delete_unmatched): New arg.
11468 (font_list_entities): Call font_driver->list with a spec that
11469 doesn't specify style-related properties.
11470 (font_matching_entity): Arguments changed. Caller changed.
11471 (font_open_entity): Adjusted for the change of font-related objects.
11472 (font_close_object, font_has_char, font_encode_char)
11473 (font_get_name, font_get_spec): Likewise.
11474 (font_spec_from_name, font_clear_prop, font_update_lface):
11475 New functions.
11476 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11477 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11478 (font_at): Adjusted for the change of font-related objects.
11479 (font_range): New function.
11480 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11481 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11482 (Fcopy_font_spec, Fmerge_font_spec): New function.
11483 (Ffont_family_list): Renamed from list-families.
11484 (Finternal_set_font_style_table): Arguments changed.
11485 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11486 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11487 change of font-related objects.
11488 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11489
11490 * fontset.h (struct font_info): Delete it. Most members go to
11491 struct font.
11492 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11493 (enum FONT_SPEC_INDEX): Delete it.
11494 (font_info, list_fonts_func, load_font_func, query_font_func)
11495 (set_frame_fontset_func, find_ccl_program_func)
11496 (get_font_repertory_func, new_fontset_from_font_name): Delete
11497 externs.
11498 (fontset_from_font_name): Extern it.
11499 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11500 (FONT_INFO_FROM_FACE): Deleted.
11501 (face_for_font): Adjust prototype.
11502
11503 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11504 conditionals. Don't check enable_font_backend. Delete all codes
11505 used only when USE_FONT_BACKEND is not defined.
11506 (get_font_info_func, list_font_func, load_font_func)
11507 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11508 (get_font_repertory_func): Delete them.
11509 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11510 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11511 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11512 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11513 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11514 (fontset_compare_rfontdef): New function.
11515 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11516 rfont-defs by qsort. Adjusted for the change of font-group vector.
11517 (load_font_get_repertory): Deleted.
11518 (fontset_find_font): Use new macros to ref/set elements of
11519 font-def and rfont-def.
11520 (fontset_font): Fix the timing of remembering that no font for C.
11521 (free_face_fontset): Do nothing if the face has no fontset.
11522 (face_suitable_for_char_p): Use new macros to ref/set elements of
11523 rfont-def.
11524 (face_for_char): Likewise. Call face_for_char with font_object.
11525 (fs_load_font): Delete. Delete #pragma surrounding it.
11526 (fs_query_fontset): Use strcasecmp instead of strcmp.
11527 (generate_ascii_font_name): Adjusted for the format change of
11528 font-spec.
11529 (Fset_fontset_font): Likewise. Use new macros to set elements of
11530 font-def.
11531 (Fnew_fontset): Use font_unparse_xlfd to generate
11532 FONTSET_ASCII (fontset).
11533 (new_fontset_from_font_name): Deleted.
11534 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11535 a fontset is already created for the font. FIx updating of
11536 Vfontset_alias_alist.
11537 (fontset_ascii_font): Deleted.
11538 (Ffont_info): Adjusted for the format change of font-spec.
11539 (Finternal_char_font): Likewise.
11540 (Ffontset_info): Likewise.
11541 (syms_of_fontset): Don't check load_font_func.
11542
11543 * fns.c (internal_equal): Handle PREV_FONT.
11544
11545 * frame.h: Delete USE_FONT_BACKEND conditional.
11546
11547 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11548 conditionals. Don't check enable_font_backend. Delete all codes
11549 used only when USE_FONT_BACKEND is not defined.
11550 (x_set_font): Call x_new_font, not x_new_fontset2.
11551 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11552 already set for the frame.
11553
11554 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11555 a font-entity by font_make_entity. Use font_intern_prop instead
11556 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11557 font property. If a font is scalable, set avgwidth property to 0.
11558 Set font-entity property by font_put_extra.
11559 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11560 (ffont_driver): Adjusted for the change of struct font_driver.
11561 (ftfont_spec_pattern): New function.
11562 (ftfont_list): Return a list, not vector.
11563 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11564 (ftfont_list_family): Don't downcase names.
11565 (ftfont_free_entity): Deleted.
11566 (ftfont_open): Return a font-object. Adjusted for the change of
11567 struct font. Get underline_thickness and underline_position from
11568 font property. Don't update dpyinfo->smallest_font_height and
11569 dpyinfo->smallest_char_width.
11570 (ftfont_close): Don't free `struct font'.
11571 (ftfont_has_char): Adjusted for the format change of font-entity.
11572 (ftfont_encode_char, ftfont_text_extents): Likewise.
11573
11574 * ftxfont.c (ftxfont_list): Return a list, not vector.
11575 (ftxfont_open): Return a font-object. Adjusted for the change of
11576 struct font. Get underline_thickness and underline_position from
11577 font property. Don't update dpyinfo->smallest_font_height and
11578 dpyinfo->smallest_char_width.
11579 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11580 (ftxfont_draw): Adjusted for the change of struct font.
11581
11582 * image.c (image_ascent): Don't include "charset.h". Include
11583 "character.h" and "font.h".
11584
11585 * lisp.h (enum pvec_type): New member PREV_FONT.
11586 (Fassoc_string): EXFUN it.
11587
11588 * print.c: Include font.h.
11589 (print_object): Handle font-related objects.
11590
11591 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11592 conditionals. Don't check enable_font_backend. Delete all codes
11593 used only when USE_FONT_BACKEND is not defined.
11594 (handle_auto_composed_prop): Do nothing if it->f is not on a
11595 window system. Check how many following characters can be
11596 displayed by the same font.
11597 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11598 'struct font *'.
11599 (get_char_face_and_encoding): Assign the whole encoding task to
11600 the `encode-char' method of a font driver.
11601 (fill_composite_glyph_string): Adjusted for the change of `struct
11602 face' and `struct glyph_string'.
11603 (fill_glyph_string): Likewise.
11604 (get_per_char_metric): Arguments changed.
11605 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11606 and `struct glyph_string'.
11607 (produce_stretch_glyph, calc_line_height_property)
11608 (x_produce_glyphs): Likewise.
11609
11610 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11611 conditionals. Don't check enable_font_backend. Delete all codes
11612 used only when USE_FONT_BACKEND is not defined. Use
11613 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11614 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11615 (Qp): Extern them.
11616 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11617 Deleted.
11618 (struct font_name): Deleted.
11619 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11620 (compare_fonts_by_sort_order): New function.
11621 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11622 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11623 Deleted.
11624 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11625 compare_fonts_by_sort_order.
11626 (Fx_font_family_list): Call Ffont_family_list.
11627 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11628 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11629 (face_symbolic_slant, face_symbolic_swidth)
11630 (split_font_name_into_vector, build_font_name_from_vector)
11631 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11632 (font_rescale_ratio, split_font_name, build_font_name)
11633 (free_font_names, sort_fonts, x_face_list_fonts)
11634 (face_font_available_p, sorted_font_list, cmp_font_names)
11635 (font_list_1, concat_font_list, font_list, remove_duplicates):
11636 Deleted.
11637 (Fx_list_fonts): Use Ffont_list.
11638 (LFACE_AVGWIDTH): Deleted.
11639 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11640 by FONTP.
11641 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11642 (set_lface_from_font_name): Delete it.
11643 (set_lface_from_font): Renamed from
11644 set_lface_from_font_and_fontset. Caller changed. Don't set
11645 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11646 for face.
11647 (merge_face_vectors): Copy font-spec if necessary.
11648 Clear properties of the font-spec if necessary.
11649 (merge_face_ref): Clear properties of the font-spec if necessary.
11650 (Finternal_set_lisp_face_attribute): Likewise.
11651 (set_font_frame_param): Use font_load_for_lface to load a
11652 font-object, and call Fmodify_frame_parameters with it.
11653 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11654 font name by Ffont_xlfd_name.
11655 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11656 QCslant, and QCwidth.
11657 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11658 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11659 Compare fonts by EQ.
11660 (lookup_non_ascii_face): Deleted.
11661 (face_for_font): The 2nd argument changed.
11662 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11663 Check atomic font properties by case insensitive.
11664 (realize_non_ascii_face): Set face->overstrike correctly.
11665 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11666 (dump_realized_face): Get font name from
11667 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11668
11669 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11670 conditionals. Don't check enable_font_backend. Delete all codes
11671 used only when USE_FONT_BACKEND is not defined.
11672 (xic_create_xfontset): Original code deleted and renamed from
11673 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11674 (x_make_gc): Don't set GCFont in GCs.
11675 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11676 opened by "fixed".
11677 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11678 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11679 get_font_repertory_func.
11680
11681 * xfont.c: Include <stdlib.h> and "ccl.h".
11682 (struct xfont_info): New structure.
11683 (xfont_query_font): Deleted.
11684 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11685 moved from xterm.c.
11686 (xfont_driver): Adjusted for the change of struct font_driver.
11687 (compare_font_names): New function.
11688 (xfont_list_pattern): Sort font names case insensitively. Make
11689 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11690 (xfont_list): Return a list, not vector.
11691 (xfont_match): If the font doesn't have QCname property, generate
11692 a name from the other font properties.
11693 (xfont_open): Return a font-object. Adjusted for the change of
11694 struct font. Get underline_thickness and underline_position from
11695 font property. Don't update dpyinfo->smallest_font_height and
11696 dpyinfo->smallest_char_width.
11697 (xfont_close): Don't free struct font.
11698 (xfont_prepare_face): Adjusted for the change of struct font.
11699 (xfont_done_face): Deleted.
11700 (xfont_has_char): Adjusted for the change of struct font.
11701 (xfont_encode_char, xfont_draw): Likewise.
11702 (xfont_check): New function.
11703
11704 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11705 callback function.
11706 (xftfont_match): Adjusted for the format change of font-entity.
11707 (xftfont_open): Adjusted for the format change of font-entity and
11708 font-object. Adjusted for the change of struct font. Return a
11709 font-object. Don't update dpyinfo->smallest_font_height and
11710 dpyinfo->smallest_char_width.
11711 (xftfont_close): Block input while calling XftFontClose.
11712 (xftfont_prepare_face): Don't block input while calling
11713 xftfont_get_colors. Adjusted for the change of struct font.
11714 (xftfont_shape): Return value of error case fixed.
11715
11716 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11717
11718 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11719 conditionals.
11720 (FONT_WIDTH): Return (f)->max_width.
11721 (struct x_display_info): Delete member `font'.
11722 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11723 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11724 (struct x_output): Change type of `font' to `struct font *'.
11725
11726 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11727 conditionals. Don't check enable_font_backend. Delete all codes
11728 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11729 (x_per_char_metric, x_encode_char): Deleted.
11730 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11731 (x_compute_glyph_string_overhangs): Adjusted for the change of
11732 `struct face'.
11733 (x_draw_glyph_string_foreground)
11734 (x_draw_composite_glyph_string_foreground): Likewise.
11735 (x_draw_glyph_string): Likewise. Use font->underline_position and
11736 font->underline_thickness.
11737 (x_new_font): Renamed from x_new_fontset2.
11738 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11739 (x_check_font): Call `check' method of a font driver.
11740 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11741 (x_query_font, x_get_font_repertory): Deleted.
11742 (x_find_ccl_program): Renamed and moved to xfont.c.
11743 (x_redisplay_interface): Adjusted for the change of `struct
11744 redisplay_interface'.
11745
11746 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11747 conditionals. Don't check enable_font_backend. Delete all codes
11748 used only when USE_FONT_BACKEND is not defined. Surround non-used
11749 code by "#ifdef OLD_FONT" and "endif".
11750 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11751
11752 * w32font.h (struct w32font_info): New member.
11753 (FONT_COMPAT): New macro.
11754 (w32font_open_internal): Prototype adjusted.
11755
11756 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11757 OLD_FONT" and "endif".
11758
11759 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11760 conditionals. Don't check enable_font_backend. Delete all codes
11761 used only when USE_FONT_BACKEND is not defined.
11762 (w32font_open): Return a font-object. Make a font-object by
11763 font_make_object. Adjusted for the change of struct w32font_info.
11764 (w32font_close): Don't free struct font. Adjusted for the change
11765 of struct w32font_info.
11766 (w32font_encode_char, w32font_text_extents, w32font_draw):
11767 Adjusted for the change of struct w32font_info.
11768 (w32font_draw): Likewise.
11769 (w32font_list_internal): Return a list, not vector.
11770 (w32font_open_internal): Change the 4th arg to font-object.
11771 Adjusted for the change of struct w32font_info and font-object format.
11772 (add_font_name_to_list): Don't downcase names.
11773 (w32_enumfont_pattern_entity): Make a font-entity by
11774 font_make_entity. Adjusted for the format change of font-entity.
11775 Use FONT_SET_STYLE to set a style-related font property. If a
11776 font is scalable, set avgwidth property to 0. Set font-entity
11777 property by font_put_extra.
11778 (font_matches_spec): Adjusted for the format change of font-entity.
11779 (w32_weight_table, w32_decode_weight): New variables.
11780 (w32_encode_weight): New function.
11781 (fill_in_logfont): Adjusted for the format change of font-spec.
11782 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11783 weight value.
11784 (w32font_driver): Adjusted for the change of struct font_driver.
11785
11786 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11787 conditionals. Don't check enable_font_backend. Surround non-used
11788 code by "#ifdef OLD_FONT" and "endif".
11789 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11790 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11791
11792 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11793 conditionals. Don't check enable_font_backend. Delete all codes
11794 used only when USE_FONT_BACKEND is not defined. Surround non-used
11795 code by "#ifdef OLD_FONT" and "endif".
11796
11797 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11798 (uniscribe_open): Return value changed to font-object.
11799 Adjusted for the format change of font-object.
11800 (uniscribe_otf_capability): Adjusted for the change of struct font.
11801 (add_opentype_font_name_to_list): Don't downcase names.
11802 (uniscribe_font_driver): Adjusted for the change of struct
11803 font_driver.
11804
118052008-05-13 Chong Yidong <cyd@stupidchicken.com>
11806
11807 * dispnew.c (update_frame_1): Check if tty output is still valid
11808 before flushing it.
11809
118102008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11811
11812 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11813 to Gtk+ menus.
11814
118152008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11816
11817 * dired.c (file_name_completion): Tweak the code so as to always do it
11818 in a single pass. Tighten the scope of some variables.
11819
11820 * dired.c (Qdefault_directory): New var.
11821 (file_name_completion): Use it instead of Fexpand_file_name.
11822 (syms_of_dired): Initialize it.
11823
118242008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11825
11826 * fileio.c (double_dollars): Remove dead code.
11827
118282008-05-10 Eli Zaretskii <eliz@gnu.org>
11829
11830 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11831 Mention w32-get-true-file-attributes in doc string.
11832
11833 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11834
118352008-05-09 Glenn Morris <rgm@gnu.org>
11836
11837 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11838 2008-04-23.
11839
118402008-05-09 Eli Zaretskii <eliz@gnu.org>
11841
11842 Support for reporting owner and group of each file on MS-Windows:
11843 * dired.c (stat_uname, stat_gname): New functions, with special
11844 implementation for w32.
11845 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11846
11847 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11848 (dflt_group_name): New static variable.
11849 (dflt_group): Rename from the_group.
11850 (init_user_info): Init dflt_group fields. Get user's group name
11851 from LookupAccountSid.
11852 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11853 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11854 New initialization states.
11855 (globals_of_w32): Initialize them to zero. Initialize the default
11856 group name to "None".
11857 (GetFileSecurity_Name): New global var, the name of the function
11858 to call for GetFileSecurity.
11859 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11860 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11861 (get_file_security, get_security_descriptor_owner)
11862 (get_security_descriptor_group, is_valid_sid)
11863 (get_file_security_desc, get_rid, get_name_and_id)
11864 (get_file_owner_and_group): New functions.
11865 (stat): Use get_file_security_desc and get_file_owner_and_group to
11866 report the owner and primary group of each file. Don't ignore the
11867 high 32 bits of file's size, now that st_size is 64-bit wide.
11868 Fix test when to get true file attributes.
11869 (init_user_info): Use get_rid instead of equivalent inline code.
11870 (fstat): Don't ignore the high 32 bits of file's size.
11871
118722008-05-09 Chong Yidong <cyd@stupidchicken.com>
11873
11874 * image.c (png_load): Use correct bit-depth for setting background
11875 color.
11876
118772008-05-08 Eli Zaretskii <eliz@gnu.org>
11878
11879 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11880 epa-hook.elc.
11881
118822008-05-08 Juanma Barranquero <lekktu@gmail.com>
11883
11884 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11885
118862008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11887
11888 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11889 because the original parameters are in pure storage now.
11890 (mac_window): Remove unused params. Update callers.
11891
118922008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11893
11894 * lread.c (substitute_object_recurse): Use lower-level primitives.
11895 Don't signal errors when traversing sub-char-tables.
11896 Don't loop over all the possible characters when traversing char-tables.
11897
11898 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11899 just like we do in print.c.
11900
119012008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11902
11903 * minibuf.c (Ftry_completion): Remove code left over from when we used
11904 scmp instead of Fcompare_strings.
11905
119062008-05-04 Juanma Barranquero <lekktu@gmail.com>
11907
11908 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11909
119102008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11911
11912 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11913 Create bitmap context in native byte order.
11914
11915 * macterm.c (XDrawLine)
11916 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11917 context in native byte order.
11918
119192008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11920
11921 * config.in: Regenerate.
11922
11923 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11924 New definitions for Image I/O support.
11925 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11926 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11927 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11928 (mac_data_provider_release_data, image_load_image_io)
11929 [USE_MAC_IMAGE_IO]: New functions.
11930 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11931 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11932 (init_image_func_pointer) [MAC_OSX]: Remove function.
11933 (image_load_quartz2d) [MAC_OSX]: Check availability of
11934 CGImageCreateWithPNGDataProvider at compile time.
11935 Use lowercase `false' for boolean constant.
11936 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11937 Use image_load_image_io.
11938 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11939 Don't check MyCGImageCreateWithPNGDataProvider.
11940 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11941 Don't call init_image_func_pointer.
11942
11943 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11944
11945 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11946 Make variable non-static.
11947 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11948 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11949
11950 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11951 (RED_FROM_ULONG): Mask off higher bits.
11952 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11953
11954 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11955 Include AvailabilityMacros.h.
11956 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11957 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11958
119592008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11960
11961 * chartab.c (Fset_char_table_range): If range is t, really set all
11962 chars to that value.
11963
119642008-05-03 Eli Zaretskii <eliz@gnu.org>
11965
11966 * dired.c (Ffile_attributes): Don't allow the device number become
11967 negative.
11968
119692008-05-02 Daiki Ueno <ueno@unixuser.org>
11970
11971 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11972
119732008-05-02 Juri Linkov <juri@jurta.org>
11974
11975 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11976 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11977 DEFAULT argument as a list of default values in docstrings.
11978
119792008-05-01 Chong Yidong <cyd@stupidchicken.com>
11980
11981 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11982
119832008-05-01 Martin Rudalics <rudalics@gmx.at>
11984
11985 * dispnew.c (change_frame_size_1): Preserve small windows when
11986 shrinking frames by calling set_window_height|width with third
11987 arg 2.
11988
11989 * window.h (struct window): Replace field too_small_ok by field
11990 resize_proportionally.
11991
11992 * window.c (make_window): Initialize resize_proportionally.
11993 (enlarge_window): Temporarily set resize_proportionally to make
11994 sure that shrink_windows does scale the window proportionally.
11995 (shrink_windows): When window has resize_proportionally set try
11996 to shrink it proportionally by stealing from other windows.
11997 (struct saved_window, Fset_window_configuration)
11998 (compare_window_configurations): Handle resize_proportionally.
11999 (WINDOW_TOTAL_SIZE): New macro.
12000 (window_min_size, shrink_windows, size_window): Use it.
12001 (check_min_window_sizes): Remove. Invalid values of
12002 window-min-height|width are handled by window_min_size_2 now.
12003 (size_window, Fsplit_window, enlarge_window)
12004 (adjust_window_trailing_edge, grow_mini_window): Don't call
12005 check_min_window_sizes.
12006 (window_min_size_2, window_min_size_1, window_min_size):
12007 New argument safe_p for retrieving "safe" minimum sizes.
12008 (Fdisplay_buffer, Fsplit_window, enlarge_window)
12009 (adjust_window_trailing_edge, grow_mini_window):
12010 Adjust arguments of window_min_size... functions.
12011 (shrink_windows): Argument min_size removed. New argument
12012 safe_p allows shrinking windows to their safe minimum sizes.
12013 Calculate minimum size and decide whether a window shall be
12014 deleted for each window individually.
12015 (size_window): When nodelete_p equals 2, tell shrink_windows to
12016 delete windows only if their new minimum size is no more safe.
12017 (shrink_window_lowest_first): Call window_min_size_1 to make
12018 sure to preserve modeline of bottom-most window when resizing
12019 the minibuffer.
12020 (Fset_window_configuration, Fcurrent_window_configuration)
12021 (compare_window_configurations): Do not handle
12022 window-min-height|width any more.
12023 (syms_of_window): Clarify window-min-height|width doc-strings.
12024
120252008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
12026
12027 * dired.c (file_name_completion): Fix up the encoding/decoding issue
12028 some more. Copy some of the code from Ftry_completions.
12029 Remove special case code that dates back to initial revision when the
12030 slash was only added when necessary and that can't trigger nowadays.
12031
120322008-04-27 Kenichi Handa <handa@m17n.org>
12033
12034 * font.c (font_prop_validate): Signal `error' instead of `font'.
12035
120362008-04-29 Jason Rumney <jasonr@gnu.org>
12037
12038 * w32fns.c (Fw32_battery_status): New defun.
12039 (syms_of_w32fns): Defsubr it.
12040
120412008-04-28 Andreas Schwab <schwab@suse.de>
12042
12043 * dired.c (file_name_completion): Fix another mixing of encoded
12044 and decoded names.
12045
120462008-04-28 Juanma Barranquero <lekktu@gmail.com>
12047
12048 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
12049
120502008-04-27 Juanma Barranquero <lekktu@gmail.com>
12051
12052 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
12053
120542008-04-27 Andreas Schwab <schwab@suse.de>
12055
12056 * dired.c (file_name_completion): Fix inappropriate mixing of
12057 encoded and decoded names.
12058
12059 * xterm.c (XTread_socket): Fix use of uninitialized variable.
12060
12061 * puresize.h (BASE_PURESIZE): Increase to 1200000.
12062
120632008-04-26 Eli Zaretskii <eliz@gnu.org>
12064
12065 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
12066 2008-03-31, it's not needed anymore with `struct stat' definition
12067 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
12068 for the same reasons.
12069
120702008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
12071
12072 * m/sparc.h: Additional redefinitions for GNU/Linux.
12073
120742008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12075
12076 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
12077 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
12078 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
12079 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
12080 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12081 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
12082 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12083 Likewise.
12084
12085 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
12086 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
12087 (mac_ax_number_of_characters): Add externs.
12088 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12089 [USE_MAC_TSM]: Likewise.
12090 (mac_handle_text_input_event) [MAC_OSX]:
12091 Handle kEventTextInputOffsetToPos for no active input area case.
12092 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12093 (mac_handle_document_access_event)
12094 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12095 (install_application_handler) [MAC_OSX]: Register handlers for
12096 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12097 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12098 Register mac_handle_document_access_event.
12099
12100 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12101 Make functions non-static.
12102
121032008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12104
12105 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12106 (read_file_name_completion_ignore_case, insert_default_directory)
12107 (Qdefault_directory): Move to minibuffer.el.
12108 (Fread_file_name): Call the new `read-file-name' instead.
12109
121102008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12111
12112 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12113 Make function non-static.
12114 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12115 Remove function.
12116 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12117 Move to mactoolbox.c.
12118 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12119
12120 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12121 (mac_rect_make): New macro.
12122
12123 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12124 instead of float.
12125 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12126 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12127 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12128 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12129 CGRectMake.
12130 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12131 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12132 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12133 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12134 instead of WindowRef in argument type.
12135 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12136 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12137 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12138 instead of DISPLAY. All uses changed.
12139 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12140 (x_calc_absolute_position): Simplify so as not to use
12141 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12142
12143 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12144 instead of WindowRef in argument type.
12145 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12146 [TARGET_API_MAC_CARBON]: Remove externs.
12147 (create_apple_event, mac_event_parameters_to_lisp)
12148 [TARGET_API_MAC_CARBON]: Add externs.
12149
12150 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12151 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12152 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12153 is clicked.
12154 (x_activate_menubar): Remove extern for saved_menu_event_location.
12155 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12156 Move from mac.c.
12157
121582008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12159
12160 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12161 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12162
121632008-04-23 Jason Rumney <jasonr@gnu.org>
12164
12165 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12166 attributes only for local files.
12167
12168 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12169 default to Qlocal.
12170
121712008-04-22 Juri Linkov <juri@jurta.org>
12172
12173 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12174 read-buffer-to-switch instead of using the letter "B".
12175
121762008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12177
12178 * fileio.c (Qdefault_directory): New variable.
12179 (Fread_file_name): Use it to pass `dir' to the completion functions.
12180
121812008-04-20 Chong Yidong <cyd@stupidchicken.com>
12182
12183 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12184
121852008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12186
12187 * keyboard.c (Vpre_help_message): Remove.
12188 (show_help_echo): Remove default C code.
12189
12190 * dired.c (directory_files_internal, file_name_completion):
12191 Only call ENCODE_FILE if the string is indeed decoded.
12192
121932008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12194
12195 * Makefile.in (TOOLKIT_DEFINES): Remove.
12196 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12197
121982008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12199
12200 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12201 (mactoolbox.o): New target.
12202
12203 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12204 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12205
12206 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12207 Use mac_set_frame_window_background instead of XSetWindowBackground.
12208 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12209 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12210 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12211 instead of SetWindowTitleWithCFString.
12212 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12213 Move function to mactoolbox.c.
12214 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12215 Use mac_set_window_modified instead of SetWindowModified.
12216 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12217 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12218 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12219 FrontNonFloatingWindow. Use mac_activate_window instead of
12220 ActivateWindow. Use mac_active_non_floating_window instead of
12221 ActiveNonFloatingWindow.
12222 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12223 Use mac_show_hourglass and mac_hide_hourglass.
12224 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12225 instead of GetGlobalMouse.
12226 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12227 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12228 Use mac_bring_window_to_front instead of BringToFront.
12229 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12230 mactoolbox.c.
12231 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12232 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12233 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12234 mactoolbox.c.
12235
12236 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12237 (XtPointer): Move typedef from macmenu.c.
12238 (enum button_type): Move enum from macmenu.c.
12239 (widget_value): Move typedef from macmenu.c.
12240 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12241 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12242 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12243 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12244 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12245 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12246 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12247 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12248 (Selection): Move typedef from macselect.c.
12249 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12250 macterm.c.
12251 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12252 (mac_is_window_collapsed, mac_bring_window_to_front)
12253 (mac_send_window_behind, mac_hide_window, mac_show_window)
12254 (mac_collapse_window, mac_front_non_floating_window)
12255 (mac_active_non_floating_window, mac_activate_window)
12256 (mac_move_window_structure, mac_move_window, mac_size_window)
12257 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12258
12259 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12260 (enum mac_menu_kind): Move enum to mactoolbox.c.
12261 (min_menu_id): Move variable to mactoolbox.c.
12262 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12263 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12264 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12265 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12266 [TARGET_API_MAC_CARBON]: Likewise.
12267 (XtPointer): Move typedef to macgui.h.
12268 (enum button_type): Move enum to macgui.h.
12269 (widget_value): Move typedef to macgui.h.
12270 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12271 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12272 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12273 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12274 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12275 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12276 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12277 (popup_activated_flag): Make variable non-static.
12278 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12279 (add_menu_item, fill_menu, dispose_menus):
12280 Move functions to mactoolbox.c.
12281 (restore_show_help_function, menu_target_item_handler)
12282 (install_menu_target_item_handler, mac_handle_dialog_event)
12283 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12284 [TARGET_API_MAC_CARBON]: Likewise.
12285 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12286 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12287 (find_and_call_menu_selection, name_is_separator): Make function
12288 non-static.
12289 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12290 to mactoolbox.c.
12291 (set_frame_menubar): Don't call install_menu_quit_handler.
12292 (menu_item_selection): New variable.
12293 (mac_menu_show): Use create_and_show_popup_menu.
12294 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12295 selection but set variable menu_item_selection. All uses changed.
12296 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12297 Call install_menu_quit_handler. Move to mactoolbox.c.
12298
12299 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12300 (Selection): Move typedef to macgui.h.
12301 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12302 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12303 Make variables non-static.
12304 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12305 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12306 Make functions non-static.
12307 (Vmac_service_selection) [MAC_OSX]: Likewise.
12308 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12309 (mac_valid_selection_target_p, mac_clear_selection)
12310 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12311 (mac_put_selection_value, mac_selection_has_target_p)
12312 (mac_get_selection_value, mac_get_selection_target_list)
12313 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12314 Move functions to mactoolbox.c.
12315 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12316 Likewise.
12317 (copy_scrap_flavor_data, mac_handle_service_event)
12318 (install_service_handler) [MAC_OSX]: Likewise.
12319 (syms_of_macselect) <Vmac_dnd_known_types>:
12320 Use mac_dnd_default_known_types.
12321
12322 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12323 Move to mactoolbox.c.
12324 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12325 (Fx_selection_owner_p): Add EXFUN.
12326 (install_window_handler, remove_window_handler, XSetWindowBackground):
12327 Remove externs.
12328 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12329 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12330 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12331 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12332 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12333 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12334 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12335 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12336 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12337 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12338 (mac_valid_selection_target_p, mac_clear_selection)
12339 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12340 (mac_put_selection_value, mac_selection_has_target_p)
12341 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12342 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12343 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12344 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12345 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12346 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12347 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12348 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12349 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12350
12351 * mactoolbox.c: New file.
12352
123532008-04-18 Jason Rumney <jasonr@gnu.org>
12354
12355 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12356
123572008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12358
12359 * character.c (Fmultibyte_char_to_unibyte):
12360 Return latin1 chars unchanged.
12361
12362 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12363 relocated if it points to `name'.
12364
123652008-04-17 Kenichi Handa <handa@m17n.org>
12366
12367 * data.c (Faset): Allow setting a multibyte character in an
12368 ASCII-only unibyte string.
12369
12370 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12371
123722008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12373
12374 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12375 done in config.h.
12376
123772008-04-16 Juanma Barranquero <lekktu@gmail.com>
12378
12379 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12380 (Fchar_direction): Add usage in the docstring.
12381
123822008-04-15 Chong Yidong <cyd@stupidchicken.com>
12383
12384 * keyboard.c (read_key_sequence): Remove always-true checks.
12385
123862008-04-14 Jason Rumney <jasonr@gnu.org>
12387
12388 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12389 compatibility struct, for better underline positioning.
12390
123912008-04-13 David Hansen <david.hansen@gmx.net>
12392
12393 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12394 string.
12395
123962008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12397
12398 * m/hp800.h (XUINT, XSET): Remove.
12399
124002008-04-12 Juanma Barranquero <lekktu@gmail.com>
12401
12402 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12403 previous change.
12404
124052008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12406
12407 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12408 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12409
124102008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12411
12412 * keymap.h (map_keymap_canonical): Declare.
12413 * xmenu.c (single_keymap_panes): Use it.
12414
124152008-04-11 Glenn Morris <rgm@gnu.org>
12416
12417 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12418 set the target's value to that of the alias.
12419
124202008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12421
12422 * term.c (set_tty_color_mode): Left over typo.
12423
124242008-04-10 Michael Albinus <michael.albinus@gmx.de>
12425
12426 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12427 only after check for file name handler functions. Signal, when
12428 native functionality is not supported.
12429 (syms_of_fileio): Declare it unconditionally.
12430
124312008-04-10 Jason Rumney <jasonr@gnu.org>
12432
12433 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12434 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12435
12436 * w32.c (logon_network_drive): Also logon to remote drives that
12437 are mapped to drive letters.
12438
124392008-04-10 Glenn Morris <rgm@gnu.org>
12440
12441 * xdisp.c (truncate-partial-width-windows): Doc fix.
12442
124432008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12444
12445 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12446 Move functions to minibuffer.el.
12447 (syms_of_fileio): Don't declare them.
12448
124492008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12450
12451 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12452 (syms_of_minibuf): Remove its initialization.
12453
12454 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12455
124562008-04-09 Juanma Barranquero <lekktu@gmail.com>
12457
12458 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12459
124602008-04-09 Jason Rumney <jasonr@gnu.org>
12461
12462 * makefile.w32-in (distclean): Delete makefile too.
12463 (maintainer-clean): New target.
12464
12465 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12466
12467 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12468 for new font backend and composite cases.
12469
124702008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12471
12472 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12473 Most of the code moved to run_timers.
12474 (do_pending_atimers): Call run_timers.
12475 (run_timers): New function.
12476
12477 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12478 run atimers.
12479
12480 * process.c (wait_reading_process_output): The same as above.
12481
124822008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12483
12484 * minibuf.c (last_exact_completion): Remove variable.
12485 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12486 (complete_and_exit_1, complete_and_exit_2)
12487 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12488 (Fdisplay_completion_list, display_completion_list_1)
12489 (Fminibuffer_completion_help, Fself_insert_and_exit)
12490 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12491 minibuffer.el.
12492 (syms_of_minibuf): Remove corresponding initializations.
12493
12494 * keyboard.c (Qdeactivate_mark): New var.
12495 (command_loop_1): Use it to call `deactivate-mark'.
12496 (syms_of_keyboard): Initialize it.
12497
12498 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12499 to another frame.
12500 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12501 Don't call set_tty_color_mode.
12502 (store_frame_param): Reset previous_frame rather than call
12503 set_tty_color_mode.
12504 * term.c (set_tty_color_mode): Rewrite.
12505 * dispextern.h (set_tty_color_mode): New type.
12506 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12507
125082008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12509
12510 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12511 for generic chars, which do not exist any more in emacs-unicode.
12512
125132008-04-08 Michael Albinus <michael.albinus@gmx.de>
12514
12515 * coding.c (detect_coding_emacs_mule)
12516 (Ffind_operation_coding_system): Fix typo.
12517
125182008-04-08 Jason Rumney <jasonr@gnu.org>
12519
12520 * w32uniscribe.c (SNAME): Extract only symbol name.
12521
12522 * w32font.h (struct w32_metric_cache): New struct.
12523 (w32font_info): Use it.
12524 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12525 (CACHE_BLOCKSIZE): New constants.
12526
12527 * w32font.c (Qja, Qko, Qzh): New symbols.
12528 (syms_of_w32font): Initialise them.
12529 (font_matches_spec): Use them to filter by language.
12530 (recompute_cached_metrics): Remove function.
12531 (compute_metrics, clear_cached_metrics): New functions.
12532 (w32font_encode_char): Use them to manage metric cache.
12533 (w32font_text_extents): Cache metrics for all glyphs on demand.
12534 Delay converting glyph indices to WORD until needed.
12535 (w32font_open_internal): Initialize metric cache to empty.
12536 (registry_to_w32_charset): Charset should always be a symbol.
12537 (fill_in_logfont, list_all_matching_fonts): Family should
12538 always be a symbol.
12539
125402008-04-06 Jason Rumney <jasonr@gnu.org>
12541
12542 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12543 Give up if glyph indices not supported. Use uniscribe obtained
12544 ABC widths for individual metrics. Map glyph clusters back to
12545 characters using fClusterStart flag. Return number of glyphs
12546 produced, not chars processed.
12547 (uniscribe_shape): Map char at FROM to current glyph.
12548
125492008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12550
12551 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12552 Use SetMenuItemHierarchicalMenu.
12553
125542008-04-05 Jason Rumney <jasonr@gnu.org>
12555
12556 * image.c (pbm_load): Allow color values up to 65535.
12557 Throw an error if max_color_idx is outside the supported range.
12558 Report an error when image size is invalid.
12559 Read two bytes at a time when raw images have max_color_idx above 255.
12560
125612008-04-05 Eli Zaretskii <eliz@gnu.org>
12562
12563 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12564 cFileName a file name that includes `?' characters, use the 8+3
12565 alias in cAlternateFileName instead.
12566
125672008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12568
12569 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12570 append "CCL: Quitted" when the CCL program is quitted.
12571 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12572
12573 * ccl.h (struct ccl_program): New member quit_silently.
12574
125752008-04-05 Chong Yidong <cyd@stupidchicken.com>
12576
12577 * search.c (compile_pattern_1): Treat non-nil and non-string of
12578 search-spaces-regexp as nil.
12579
12580 * minibuf.c (Fassoc_string): Tweak docstring.
12581
125822008-04-05 Eli Zaretskii <eliz@gnu.org>
12583
12584 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12585 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12586 2008-03-14 to force inode be positive.
12587
12588 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12589 _S_* ones, since we now use our own sys/stat.h.
12590 (stat, fstat): Don't mangle the inode number.
12591 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12592
125932008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12594
12595 * frame.h (struct frame): Give one more bit to `visible' since we use
12596 values larger than 1 to indicate obscured frames on ttys.
12597
12598 * keymap.c (Qkeymap_canonicalize): New var.
12599 (Fmap_keymap_internal): New fun.
12600 (describe_map): Use keymap-canonicalize.
12601
12602 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12603 (Fundo_boundary): Set them.
12604 (syms_of_undo): Initialize them.
12605 (record_point): Use them instead of last_point_position*.
12606 (last_undo_buffer): Change type.
12607
126082008-04-04 Jason Rumney <jasonr@gnu.org>
12609
12610 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12611 (recompute_cached_metrics): Don't set ascent and descent per char.
12612
12613 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12614 (uniscribe_check_otf): Add GC protection before consing.
12615 Rearrange loop for counting features.
12616
126172008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12618
12619 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12620 buffer with byte-size of source buffer.
12621
126222008-04-03 Chong Yidong <cyd@stupidchicken.com>
12623
12624 * callint.c (Fcall_interactively): Handle temporary region even
12625 when shift-select-mode is off.
12626
126272008-04-03 Jason Rumney <jasonr@gnu.org>
12628
12629 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12630
126312008-04-03 Kenichi Handa <handa@m17n.org>
12632
12633 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12634 (CATEGORY_MASK_UTF_16): Likewise.
12635 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12636 binary file.
12637 (detect_coding): Add null-byte detection for a binary file.
12638 (detect_coding_system): Likewise.
12639
126402008-04-03 Jason Rumney <jasonr@gnu.org>
12641
12642 * w32uniscribe.c: New file.
12643
12644 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12645
12646 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12647
12648 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12649 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12650 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12651 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12652 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12653 (Qphonetic): New symbols.
12654 (syms_of_w32font): Initialize them.
12655 (font_supported_scripts): Use them.
12656 (w32font_list_family): List all charsets.
12657 (w32font_text_extents, recompute_cached_metrics): Fix metric
12658 calculations.
12659 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12660 Give opentype fonts their own format.
12661 (font_matches_spec): New arguments backend and logfont.
12662 Handle :otf spec for uniscribe backend.
12663 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12664 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12665
12666 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12667 font backend.
12668 (globals_of_w32fns): Initialize uniscribe font backend.
12669
12670 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12671 dependencies.
12672 (w32uniscribe.$(O)): New file to build.
12673 (FONT_OBJ): Include w32uniscribe.$(O).
12674 (LIBS): Add uniscribe libraries.
12675
12676 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12677
126782008-04-02 Chong Yidong <cyd@stupidchicken.com>
12679
12680 * callint.c (Vshift_select_mode): New var.
12681 (Finteractive): Document new ^ spec.
12682 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12683 is present.
12684
12685 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12686 (command_loop_1): Avoid running the direct display versions of
12687 forward-char and backward-char if shift-selection may occur.
12688 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12689 shift-translation takes place.
12690
12691 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12692 avoid clobbering by define-minor-mode.
12693
12694 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12695 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12696
12697 * syntax.c (Fforward_word): Add ^ interactive spec.
12698
12699 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12700 (Fscroll_right): Add ^ interactive spec.
12701
127022008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12703
12704 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12705
12706 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12707
12708 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12709
127102008-03-31 Juri Linkov <juri@jurta.org>
12711
12712 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12713
127142008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12715
12716 * gtkutil.c (xg_set_geometry): Fix indentation.
12717 (xg_resize_outer_widget): Remove.
12718 (x_wm_size_hint_off): Fix indentation.
12719 (xg_frame_set_char_size): Call flush_and_sync after
12720 gtk_window_resize.
12721 (x_wm_set_size_hint): Pass NULL as geometry window to
12722 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12723 Add menu bar and tool bar height to base height.
12724 (xg_update_frame_menubar, free_frame_menubar)
12725 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12726 (update_frame_tool_bar, free_frame_tool_bar):
12727 Change xg_resize_outer_widget to xg_frame_set_char_size.
12728
127292008-03-30 Michael Albinus <michael.albinus@gmx.de>
12730
12731 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12732 (Fdbus_call_method): New parameter TIMEOUT.
12733 (dbus-send-signal): Optimize UNGCPRO call.
12734
127352008-03-29 Juri Linkov <juri@jurta.org>
12736
12737 * window.c (Fdisplay_buffer): Move call to
12738 Vsplit_window_preferred_function out of conditions that check
12739 if window is eligible for vertical splitting.
12740 When Vsplit_window_preferred_function is non-nil, call it and use
12741 its non-nil return value as window. Otherwise, continue doing
12742 vertical splitting using Fsplit_window with arg horflag=nil.
12743 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12744 default value from `split-window' to nil.
12745
127462008-03-29 Juri Linkov <juri@jurta.org>
12747
12748 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12749 for interactive code letters 'b' and 'B'.
12750
127512008-03-29 Eli Zaretskii <eliz@gnu.org>
12752
12753 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12754 multibyte string.
12755
127562008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12757
12758 * keyboard.c (pending_funcalls): New var.
12759 (timer_check): Run it.
12760 (syms_of_keyboard): Initialize it.
12761 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12762 (Vdelete_terminal_functions): New vars.
12763 (syms_of_terminal): Initialize them.
12764 (Fdelete_terminal): Run delete-terminal-functions.
12765 * xdisp.c (safe_eval): Rewrite.
12766 (safe_call2): New fun.
12767 * frame.c (Qdelete_frame_functions): New var.
12768 (syms_of_frame): Initialize it.
12769 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12770 * lisp.h (safe_call2, pending_funcalls): Declare.
12771
127722008-03-28 Andreas Schwab <schwab@suse.de>
12773
12774 * indent.c (Fmove_to_column): Move declaration before statements.
12775
127762008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12777
12778 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12779 (struct frame): Use bit fields for boolean vars.
12780
12781 * process.c (server_accept_connection): Simplify naming.
12782 (emacs_get_tty_pgrp): Use SDATA.
12783
12784 * coding.c (decode_coding_object): Fix last change.
12785
127862008-03-27 Jason Rumney <jasonr@gnu.org>
12787
12788 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12789
127902008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12791
12792 * charset.c (Fdefine_charset_internal): Change the way of
12793 registering charsets in Vcharset_order_list.
12794 (syms_of_charset): Make the charset `eight-bit' supplementary.
12795
127962008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12797
12798 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12799 operations, to avoid having the difference between pointers
12800 overflow.
12801
128022008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12803
12804 * indent.c (check_display_width): New fun.
12805 (scan_for_column): Use it.
12806
12807 * data.c (syms_of_data): Mark most-positive-fixnum and
12808 most-negative-fixnum as constants.
12809
12810 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12811
12812 * indent.c (scan_for_column): Extract from current_column_1.
12813 Merge with the same code from Fmove_to_column.
12814 (current_column_1, Fmove_to_column): Use it.
12815
128162008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12817
12818 * keymap.c (map_keymap_internal): New fun.
12819 (map_keymap): Use it.
12820 (Fmap_keymap_internal): New fun.
12821 (Fmap_keymap): Remove left-out test from before make_save_value.
12822
12823 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12824
12825 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12826 Use XCAR/XCDR.
12827
12828 * process.h (struct Lisp_Process): Remove filter_multibyte.
12829 * process.c (QCfilter_multibyte): Remove.
12830 (setup_process_coding_systems): Don't use filter_multibyte.
12831 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12832 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12833 (Fset_process_filter_multibyte): Change the coding-system to
12834 approximate the previous behavior.
12835 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12836 coding-system.
12837
12838 * coding.c (decode_coding_object): When not decoding into a buffer,
12839 obey the coding system's preference of (uni|multi)byte.
12840
128412008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12842
12843 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12844 every char is changed and has a different byte-length.
12845 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12846 Fix int -> EMACS_INT.
12847
128482008-03-23 David Hansen <david.hansen@gmx.net>
12849
12850 * dbusbind.c (xd_read_message): Remove extra copying of message
12851 strings. Check for NULL `interface' or `member'.
12852
128532008-03-22 Eli Zaretskii <eliz@gnu.org>
12854
12855 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12856 cFileName a file name that includes `?' characters, use the 8+3
12857 alias in cAlternateFileName instead.
12858
128592008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12860
12861 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12862
128632008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12864
12865 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12866 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12867 work on current_buffer only instead (that was already the case
12868 for some of the code anyway).
12869 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12870 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12871 (SET_PT, SET_PT_BOTH): Adjust.
12872 * intervals.h (set_point, temp_set_point, set_point_both)
12873 (temp_set_point_both): Remove redundant declarations.
12874
128752008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12876
12877 * fileio.c (Finsert_file_contents):
12878 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12879 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12880 when buffer != current_buffer anyway.
12881
128822008-03-20 Andreas Schwab <schwab@suse.de>
12883
12884 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12885 as default.
12886
128872008-03-19 Jason Rumney <jasonr@gnu.org>
12888
12889 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12890 (syms_of_w32fns): Initialize them.
12891 (HOURGLASS_ID): New constant.
12892 (x_window_to_frame): Don't check hourglass_window.
12893 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12894 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12895 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12896 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12897 Only change the cursor if hourglass is not active.
12898 (Fx_create_frame): Initialize frame's current_cursor.
12899 (hourglass_atimer): Remove.
12900 (hourglass_started): New function.
12901 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12902 (show_hourglass): Adapt to w32, changing argument to frame.
12903
12904 * w32term.h (struct w32_output): Remove hourglass_window.
12905 Add current_cursor.
12906
12907 * eval.c (call_debugger, Fsignal):
12908 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12909 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12910 (Fexecute_extended_command, cancel_hourglass_unwind):
12911 * minibuf.c (read_minibuf):
12912 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12913
129142008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12915
12916 * window.c (run_funs): New fun.
12917 (run_window_configuration_change_hook): Use it to run the buffer-local
12918 and the global part of the hook.
12919
12920 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12921 (unwind_format_mode_line): Restore selected window.
12922 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12923
129242008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12925
12926 * editfns.c (Fchar_equal): Check they are valid characters.
12927
12928 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12929
129302008-03-17 Andreas Schwab <schwab@suse.de>
12931
12932 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12933 against a charset.
12934
12935 * lisp.h (Fbuffer_list): Declare.
12936
129372008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12938
aac0c6e3
MR
12939 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12940 handlebox_widget is != 0.
12941
129422008-03-16 Juri Linkov <juri@jurta.org>
12943
12944 * callint.c (Fcall_interactively): For interactive code letters
12945 'b' and 'B' put the buffer list into the list of default "future"
12946 values of the minibuffer.
12947
129482008-03-16 Andreas Schwab <schwab@suse.de>
12949
12950 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12951 modifiers.
12952
12953 * regex.c (re_match_2_internal): Correct matching of a charset
12954 against latin-1 characters.
12955
129562008-03-16 Kenichi Handa <handa@m17n.org>
12957
12958 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12959 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12960 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12961 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12962 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12963 CHAR_STRING_ADVANCE.
12964 (produce_chars): Fix for the case that the source and the
12965 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12966 instead of CHAR_STRING_ADVANCE.
12967 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12968 STRING_CHAR_ADVANCE.
12969
129702008-03-15 Andreas Schwab <schwab@suse.de>
12971
12972 * regex.c (re_match_2_internal): Correct matching of eight bit
12973 characters in unibyte strings.
12974
129752008-03-15 Martin Rudalics <rudalics@gmx.at>
12976
12977 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12978 at end of range when it coincides with the end of the buffer.
12979
129802008-03-14 Eli Zaretskii <eliz@gnu.org>
12981
12982 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12983
12984 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12985
129862008-03-14 Jason Rumney <jasonr@gnu.org>
12987
12988 * editfns.c (initial_tz): New variable.
12989 (syms_of_editfns): Initialize it.
12990 (Fset_time_zone_rule): Set it when first called.
12991 Use it when TZSTRING is nil.
12992
12993 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12994 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12995 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12996 (globals_of_w32fns): Initialize them.
12997 (compute_tip_xy): Use them to position tooltips.
12998
129992008-03-14 Glenn Morris <rgm@gnu.org>
13000
13001 * emacs.c (main): Revert previous change.
13002 (standard_args): Revert -internal-script back to -scriptload,
13003 and remove the long-option form.
13004
130052008-03-13 Glenn Morris <rgm@gnu.org>
13006
13007 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
13008 Remove option -enable-font-backend.
13009
130102008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
13011
13012 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
13013
130142008-03-11 Jan Djärv <jan.h.d@swipnet.se>
13015
13016 * xterm.c (x_connection_closed): For GTK: If this is the last
13017 terminal just exit without closing the display.
13018
130192008-03-11 Jason Rumney <jasonr@gnu.org>
13020
13021 * w32font.c (w32font_full_name): Use floor to round.
13022
f0131492 130232008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
13024
13025 * sound.c (alsa_configure): Declare vol at beginning of block.
13026
13027 * fontset.c (Ffontset_info): Remove extra semicolon.
13028
130292008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
13030
13031 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
13032 size of resulting string.
13033
130342008-03-10 Jason Rumney <jasonr@gnu.org>
13035
13036 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
13037
130382008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13039
13040 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
13041 Don't pretend as if characters with display property haven't been
13042 consumed for string-replacing-string case.
13043
130442008-03-08 Kim F. Storm <storm@cua.dk>
13045
13046 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
13047 (get_next_display_element, next_element_from_string)
13048 (next_element_from_ellipsis, next_element_from_buffer): Use it.
13049
130502008-03-08 Andreas Schwab <schwab@suse.de>
13051
13052 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
13053
130542008-03-06 Jason Rumney <jasonr@gnu.org>
13055
13056 * w32font.c (w32_registry): Take font_type argument. Use ANSI
13057 when charset not specified. Only translate ANSI to unicode when
13058 font_type is truetype.
13059 (w32font_coverage_ok): New function.
13060 (add_font_entity_to_list): Use it to filter unsuitable fonts.
13061
130622008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
13063
13064 * lread.c (Fread_char): Resolve modifiers.
13065 (Fread_char_exclusive): Likewise.
13066
13067 * character.c (char_resolve_modifier_mask): New function.
13068 (char_string): Use char_resolve_modifier_mask.
13069 (Fchar_resolve_modifiers): New function.
13070 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
13071 function.
13072
130732008-03-04 Jason Rumney <jasonr@gnu.org>
13074
13075 * makefile.w32-in: Always include w32font.c in the build.
13076 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
13077
130782008-03-04 Andreas Schwab <schwab@suse.de>
13079
13080 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
13081 (versionclean): Likewise.
13082
130832008-03-04 Juanma Barranquero <lekktu@gmail.com>
13084
13085 * .cvsignore: Add oo.
13086
130872008-03-03 Andreas Schwab <schwab@suse.de>
13088
13089 * coding.c (decode_coding_object): Inhibit gap shrinking while
13090 decoding in place.
13091
130922008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13093
13094 * w32term.c: Remove unused include "gnu.h".
13095 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13096
13097 * gnu.h: Rename to ...
13098 * emacs-icon.h: ... this.
13099 * xterm.c: Use emacs-icon.h instead of gnu.h.
13100 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13101
131022008-03-03 Juanma Barranquero <lekktu@gmail.com>
13103
13104 * w32font.c: Include math.h.
13105
131062008-03-03 Jason Rumney <jasonr@gnu.org>
13107
13108 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13109 Compute options separately.
13110 (w32font_open_internal): Set glyph_idx before caching metrics.
13111
13112 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13113 Define if system headers don't.
13114 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13115 (w32font_encode_char): Don't declare here.
13116
13117 * w32font.c (Quniscribe, QCformat): New symbols.
13118 (syms_of_w32font): Define them.
13119 (w32font_has_char): Indicate uncertainty.
13120 (w32font_encode_char): Encode as glyph point. Make static.
13121 (recompute_cached_metrics): New function.
13122 (w32font_open_internal): Use it. Set font to use glyph points
13123 initially. Set format based on type of font.
13124 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13125 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13126 on it. Set format based on information available here.
13127 (add_font_entity_to_list): Identify backend based on opentype_only.
13128
131292008-03-02 Andreas Schwab <schwab@suse.de>
13130
13131 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13132
13133 * coding.c (decode_coding_big5, produce_chars):
13134 Fix typos in last change.
13135
131362008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13137
13138 * gnu.h: New icon.
13139
131402008-03-02 Kenichi Handa <handa@m17n.org>
13141
13142 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13143 `dos', don't decode '\r' if that is the last in the source.
13144 (decode_coding_utf_16, decode_coding_emacs_mule)
13145 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13146 (decode_coding_raw_text, decode_coding_charset): Likewise.
13147 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13148
131492008-03-01 Jason Rumney <jasonr@gnu.org>
13150
13151 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13152
131532008-03-01 Kim F. Storm <storm@cua.dk>
13154
13155 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13156
131572008-03-01 Jason Rumney <jasonr@gnu.org>
13158
13159 * w32font.c (w32font_full_name): New function.
13160 (w32font_open_internal): Use it.
13161
131622008-03-01 Kim F. Storm <storm@cua.dk>
13163
13164 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13165
131662008-03-01 Jason Rumney <jasonr@gnu.org>
13167
13168 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13169
131702008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13171
13172 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13173 xg_frame_resized when the event is for the edit widget.
13174
13175 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13176
13177 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13178 set_char_size.
13179 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13180 operations on widgets here. Just set frame size if needed.
13181 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13182 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13183 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13184 the whole frame.
13185 (xg_create_tool_bar): Move attachment of the tool bar to
13186 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13187 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13188
131892008-03-01 Jason Rumney <jasonr@gnu.org>
13190
13191 * w32fns.c (w32_msg_pump): Disable debug code.
13192
131932008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13194
13195 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13196
131972008-02-29 Chong Yidong <cyd@stupidchicken.com>
13198
13199 * xdisp.c (next_overlay_string): Don't set
13200 overlay_strings_at_end_processed_p if we're currently reading from
13201 a display string.
13202
132032008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13204
13205 * xdisp.c (get_overlay_strings_1): Fix typo.
13206
132072008-02-29 Chong Yidong <cyd@stupidchicken.com>
13208
13209 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13210
132112008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13212
13213 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13214
13215 * xdisp.c (display_mode_element): Cancel the previous change.
13216 (decode_mode_spec): Likewise.
13217 (handle_auto_composed_prop): Don't make composition if it->string
13218 is a string.
13219
132202008-02-27 Kim F. Storm <storm@cua.dk>
13221
13222 * lisp.h (GLYPH): Change type from int to struct with separate char
13223 and face_id members.
13224 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13225 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13226 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13227 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13228 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13229 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13230 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13231 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13232 handle new Lisp glyph code encoding, either an integer or a cons.
13233
13234 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13235 (GLYPH_ALIAS): Delete.
13236 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13237 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13238 (GLYPH_FROM_CHAR): Replace macro by ...
13239 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13240
13241 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13242 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13243 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13244 (GLYPH_INVALID_P): New macro.
13245 (spec_glyph_lookup_face): Update prototype.
13246
13247 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13248 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13249 new glyph code encoding.
13250 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13251 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13252
13253 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13254 Adapt to new glyph type and new glyph code encoding.
13255
13256 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13257
13258 * indent.c (current_column, current_column_1, Fmove_to_column)
13259 (compute_motion): Adapt to new glyph code encoding.
13260
13261 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13262
132632008-02-27 Chong Yidong <cyd@stupidchicken.com>
13264
13265 * process.c (wait_reading_process_output): Check for window
13266 changes caused by timers.
13267 Suggested by Johan Bockgård.
13268
132692008-02-27 Glenn Morris <rgm@gnu.org>
13270
13271 * emacs.c (USAGE1): Add `--disable-font-backend'.
13272
132732008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13274
13275 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13276 is made to the buffer.
13277
132782008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13279
13280 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13281 (face_at_string_position):
13282 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13283 (face_at_string_position):
13284 * xdisp.c (display_string, next_overlay_change):
13285 * buffer.h (overlays_at):
13286 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13287 Update callers.
13288
132892008-02-26 Chong Yidong <cyd@stupidchicken.com>
13290
13291 * editfns.c (Fformat): Doc fix.
13292
132932008-02-26 Juanma Barranquero <lekktu@gmail.com>
13294
13295 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13296 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13297 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13298
132992008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13300
13301 * buffer.c (Fbuffer_swap_text): New function.
13302 (syms_of_buffer): Defsubr it.
13303
133042008-02-25 Chong Yidong <cyd@stupidchicken.com>
13305
13306 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13307
133082008-02-25 Jason Rumney <jasonr@gnu.org>
13309
13310 * w32font.c (w32font_draw): Draw one character at a time when padding.
13311
133122008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13313
13314 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13315 Handle a nil arg. Use run_window_configuration_change_hook.
13316 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13317 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13318 Use run_window_configuration_change_hook.
13319
133202008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13321
13322 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13323 1-pixel width.
13324
133252008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13326
13327 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13328 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13329 if the glyph in the font is zero pixel with.
13330
13331 * dispextern.h (struct glyph_string): New member padding_p.
13332
13333 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13334
13335 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13336
13337 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13338
13339 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13340
13341 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13342
133432008-02-25 Jason Rumney <jasonr@gnu.org>
13344
13345 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13346
133472008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13348
13349 Allow fine-grained image-cache flushing.
13350 * dispextern.h (struct image): Add `dependencies' field.
13351 (clear_image_caches): Change arg to Lisp_Object.
13352 * image.c (make_image): Initialize `dependencies' field.
13353 (clear_image_cache): Change arg to allow fine-grained flushing.
13354 Perform the flush even if image-cache-eviction-delay is nil.
13355 (clear_image_caches): Change arg to Lisp_Object.
13356 (Fclear_image_cache): Expand meaning of the argument.
13357 (mark_image): Mark `dependencies' field.
13358 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13359 (lface_hash): Use XHASH rather than XFASTINT.
13360 (face_at_buffer_position): Fix int -> EMACS_INT position.
13361 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13362 (select_frame_for_redisplay): Remove code duplication.
13363 (redisplay_internal): Adapt arg to call to clear_image_caches.
13364
133652008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13366
13367 * s/vms4-0.h:
13368 * s/vms4-2.h:
13369 * s/vms4-4.h:
13370 * s/vms5-5.h: Remove, unused.
13371
13372 * s/irix5-2.h:
13373 * s/irix6-0.h:
13374 * s/riscos5.h:
13375 * s/mach-bsd4-3.h:
13376 * m/mips4.h: Remove files for obsolete systems.
13377
13378 * Makefile.in:
13379 * filelock.c:
13380 * unexmips.c:
13381 * m/hp9000s300.h:
13382 * m/iris4d.h:
13383 * s/aix3-1.h:
13384 * s/hpux.h:
13385 * s/msdos.h:
13386 * s/usg5-0.h:
13387 * s/usg5-2-2.h:
13388 * s/usg5-2.h:
13389 * s/usg5-3.h: Remove references to obsolete variables.
13390
13391 * s/irix5-0.h: Remove, move all the contents ...
13392 * s/irix6-5.h: ... here. Simplify.
13393 * config.in: Regenerate.
13394
133952008-02-24 Jason Rumney <jasonr@gnu.org>
13396
13397 * w32term.c (x_draw_glyph_string_background): Clear the background
13398 manually when cleartype is in use.
13399 (x_draw_glyph_string_foreground): Draw text transparently when
13400 cleartype is in use.
13401
13402 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13403 a font into it unless we have to.
13404
134052008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13406
13407 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13408 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13409
aac0c6e3
MR
134102008-02-18 Jason Rumney <jasonr@gnu.org>
13411
13412 * w32fns.c (Fw32_shell_execute): Encode parameters.
13413
134142008-02-09 Eli Zaretskii <eliz@gnu.org>
13415
13416 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13417
134182008-02-05 Juanma Barranquero <lekktu@gmail.com>
13419
13420 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13421
134222008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13423
13424 * xterm.c (x_set_offset): Don't change the gravity if
13425 CHANGE_GRAVITY is -1.
13426
134272008-02-23 Chong Yidong <cyd@stupidchicken.com>
13428
13429 * fileio.c (auto_save_error_occurred): New var.
13430 (auto_save_error): Set it.
13431 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13432 error occurred.
13433
134342008-02-23 Eli Zaretskii <eliz@gnu.org>
13435
13436 * w32.c (globals_of_w32): Add initializations for
13437 g_b_init_get_sid_sub_authority and
13438 g_b_init_get_sid_sub_authority_count.
13439
134402008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13441
13442 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13443 (font_parse_xlfd): Use them for sanity check.
13444 (Finternal_set_font_style_table): Make sure the table is bijective.
13445
13446 Consolidate the image_cache to the terminal struct.
13447 * termhooks.h (P_): Remove redundant def.
13448 (struct terminal): New field `image_cache'.
13449 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13450 of FRAME_X_IMAGE_CACHE.
13451 * xterm.h (struct x_display_info): Remove image_cache field.
13452 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13453 * w32term.h (struct w32_display_info): Remove image_cache field.
13454 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13455 * macterm.h (struct mac_display_info): Remove image_cache field.
13456 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13457 * xterm.c (x_term_init):
13458 * w32term.c (w32_term_init):
13459 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13460 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13461 Remove declarations.
13462 (clear_image_caches, mark_image_cache): New declarations.
13463 * xfaces.c (clear_face_cache):
13464 * xdisp.c (redisplay_internal): Use clear_image_caches.
13465 * image.c (clear_image_cache): Don't check that a frame is on
13466 a window-system before checking if it shares the same cache.
13467 (clear_image_caches): New function.
13468 (Fclear_image_cache): Use it.
13469 (mark_image): Move from allo.c.
13470 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13471 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13472 (mark_object): Don't call mark_image_cache for frames.
13473 (mark_terminals): Call mark_image_cache.
13474
13475 * lisp.h (Fdelete_terminal): Declare.
13476
13477 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13478 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13479 wrong_type_argument.
13480
134812008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13482
13483 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13484 malayalam.el, and tamil.el. Add sinhala.el.
13485
134862008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13487
13488 * xterm.c (x_connection_closed): Consolidate identical tests.
13489 (x_delete_terminal): Don't crash if called via x_connection_closed.
13490
134912008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13492
13493 * xdisp.c (decode_mode_spec): New arg string.
13494 (display_mode_element): Adjust for the above change.
13495
134962008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13497
13498 * callint.c (Fcall_interactively): Use AREF.
13499
135002008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13501
13502 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13503
135042008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13505
13506 * xfns.c (Fx_show_tip): Set string to " " if empty.
13507
135082008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13509
13510 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13511 with Qt.
13512
135132008-02-17 Kenichi Handa <handa@m17n.org>
13514
13515 * ftfont.c (ftfont_shape): Return Lispy number.
13516
13517 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13518 for GCs.
13519 (Finternal_set_font_selection_order): Call font_update_sort_order
13520 only when enable_font_backend is set.
13521 (realize_x_face): Set face->font_info to that of default face only
13522 when enable_font_backend is set.
13523
13524 * xdisp.c (handle_composition_prop): Set it->c to the fist
13525 character of the composed region.
13526 (fill_composite_glyph_string): Set base_face->font_info to
13527 s->font_info. Get a face for ascii from base_face->ascii_face.
13528 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13529 with a face already decided.
13530 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13531 non-negative.
13532 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13533 call font_prepare_composition unconditionally.
13534
13535 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13536
13537 * xterm.h (struct x_display_info): New member font.
13538
13539 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13540 (x_set_mouse_face_gc, x_new_font): Likewise.
13541 (x_term_init): Setup display_info->font.
13542 (x_delete_terminal): Free display_info->font.
13543
13544 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13545
13546 * ftxfont.c (ftxfont_default_fid): Delete it.
13547 (ftxfont_open): Set xfont->fid to 0.
13548 (ftxfont_end_for_frame): Clear data specific to the frame and the
13549 font-driver.
13550
13551 * xftfont.c (xftfont_default_fid): Delete it.
13552 (xftfont_open): Set xfont->fid to 0.
13553
13554 * fontset.c (FONTSET_OBJLIST): New macro.
13555 (fontset_find_font): Update font-object list of the fontset.
13556 (free_realized_fontset): New function.
13557 (free_face_fontset): Call free_realized_fontset.
13558 (Ffont_info): Call font_close_object only when enable_font_backend
13559 is set.
13560
13561 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13562 [HAVE_NTGUI]: Include w32term.h.
13563 [MAC_OS]: Include macterm.ch.
13564 (font_otf_ValueRecord): Use make_number.
13565 (font_finish_cache): Fix handling of reference count.
13566 (font_clear_cache): Update num_fonts.
13567 (font_open_entity): Update smallest_char_width and
13568 smallest_font_height of the frame.
13569 (font_close_object): Update num_fonts.
13570 (Fclear_font_cache): Fix finding the target cache data.
13571
135722008-02-16 Glenn Morris <rgm@gnu.org>
13573
13574 * fontset.c (Finternal_char_font): Fix compilation warning.
13575
135762008-02-16 Eli Zaretskii <eliz@gnu.org>
13577
13578 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13579 instead of char arrays. Enlarge the size of array passed to
13580 get_token_information.
13581
13582 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13583 warnings.
13584
135852008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13586
13587 * .gdbinit: Don't set `args', it breaks gdb --args.
13588
135892008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13590
13591 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13592 within a narrowed buffer.
13593
135942008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13595
13596 * coding.c (decode_coding_object, encode_coding_object):
13597 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13598
135992008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13600
13601 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13602 hardcoding 1.
13603 (detect_coding_system):
13604 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13605 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13606 * insdel.c (insert_from_gap):
13607 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13608 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13609 (string_to_multibyte):
13610 * character.c (chars_in_text, multibyte_chars_in_text):
13611 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13612
13613 * character.h (FETCH_STRING_CHAR_ADVANCE)
13614 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13615 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13616 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13617
13618 * casefiddle.c (casify_region): Only call after-change and composition
13619 functions on the part of the region that was changed.
13620
13621 * keyboard.c (read_avail_input):
13622 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13623
136242008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13625
13626 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13627 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13628
136292008-02-11 Juanma Barranquero <lekktu@gmail.com>
13630
13631 * w32menu.c (push_submenu_start, push_submenu_end)
13632 (push_left_right_boundary, push_menu_pane, push_menu_item):
13633 * keyboard.c (read_key_sequence): Don't pass args with side effects
13634 to AREF, it fails when compiling with -DENABLE_CHECKING.
13635
136362008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13637
13638 * Makefile.in (${lispsource}international/charprop.el):
13639 Delete this target.
13640
13641 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13642 emacs-unicode-2.
13643
136442008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13645
13646 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13647
136482008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13649
13650 * frame.c (Qnoelisp): New symbol.
13651 (syms_of_frame): Initialize it.
13652 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13653 harmless Elisp code, from a strong `force' from x_connection_closed.
13654 * frame.h (Qnoelisp): Declare.
13655 * xterm.c (x_connection_closed): Pass `noelisp'.
13656
13657 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13658 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13659 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13660 rather than `int' for the type of `type'.
13661
136622008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13663
13664 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13665
13666 * Makefile.in (GNUC): Remove support for gcc-1.x.
13667
136682008-02-10 Richard Stallman <rms@gnu.org>
13669
13670 * lisp.h (ASET): Use AREF, not ASLOT.
13671
136722008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13673
13674 * lisp.h (ASET): Check bounds.
13675
136762008-02-10 Glenn Morris <rgm@gnu.org>
13677
13678 * buffer.c (mode-name): Doc fix.
13679
136802008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13681
13682 * Makefile.in:
13683 * emacs.c:
13684 * gmalloc.c:
13685 * keyboard.c:
13686 * lisp.h:
13687 * m/ibm370aix.h:
13688 * process.c:
13689 * regex.c:
13690 * s/hpux.h:
13691 * sysdep.c:
13692 * sysselect.h:
13693 * systty.h:
13694 * unexec.c:
13695 * w32term.c:
13696 * xsmfns.c:
13697 * xterm.c: Remove code that deals with obsolete variables.
13698
13699 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13700
13701 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13702 nothing else needs it anymore.
13703
137042008-02-09 Eli Zaretskii <eliz@gnu.org>
13705
13706 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13707 instead of unibyte_char_to_multibyte.
13708
137092008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13710
13711 * s/gnu-linux.h: Remove commented out code.
13712
13713 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13714
13715 * Makefile.in: Update what RMS says about using autoconf.
13716 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13717 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13718 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13719 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13720
137212008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13722
13723 * keymap.c (Fkey_description): Move side effect outside of macro call.
13724
13725 * xfaces.c (Finternal_make_lisp_face):
13726 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13727
13728 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13729 (syms_of_fontset): Use ASET.
13730
13731 * fns.c (concat): Move side effect outside of macro call.
13732 (hash_clear): Use ASET.
13733
137342008-02-08 Richard Stallman <rms@gnu.org>
13735
13736 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13737 If FORCE, and frame has a surrogate minibuffer for another frame,
13738 delete the other frame first.
13739
137402008-02-07 Timo Savola <timo.savola@iki.fi>
13741
13742 * xterm.c (x_detect_focus_change): Handle embed client message.
13743 (handle_one_xevent): Ditto.
13744 (handle_one_xevent): If embedded and we get a button press/release,
13745 request focus.
13746 (xembed_set_info, xembed_send_message): New functions.
13747 (x_make_frame_visible): Call xembed_set_info if embedded.
13748 (x_make_frame_invisible): Call xembed_set_info if embedded.
13749 (x_term_init): Initialize Xatom_XEMBED.
13750 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13751 (x_iconify_frame): Ditto.
13752
13753 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13754 (enum xembed_info, enum xembed_message, enum xembed_focus)
13755 (enum xembed_modifier, enum xembed_accelerator): New.
13756 (xembed_set_info, xembed_send_message): Declare.
13757 (FRAME_X_EMBEDDED_P): New.
13758
13759 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13760 gtk_plug_new.
13761
13762 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13763 window ID of a frame.
13764 (x_window): Reparent frame if embedded.
13765 (Fx_create_frame): Don't set border width if embedded.
13766
13767 * emacs.c (USAGE3): Add --parent-id.
13768 (standard_args): Ditto.
13769
137702008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13771
13772 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13773
137742008-02-07 Jim Meyering <meyering@redhat.com>
13775
13776 Use "do...while (0)", not "if (1)...else" in macro definitions.
13777 The latter provokes a warning from gcc about the empty else, when
13778 followed by ";". Also, without that trailing semicolon, it would
13779 silently swallow up any following statement.
13780 * syntax.h (SETUP_SYNTAX_TABLE)
13781 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13782 * buffer.h (DECODE_POSITION): Likewise.
13783 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13784 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13785 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13786 (FETCH_CHAR_ADVANCE): Likewise.
13787 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13788
137892008-02-07 Jim Meyering <meyering@redhat.com>
13790
13791 * lread.c [lint]: Don't include <sys/inode.h>.
13792
137932008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13794
13795 * xselect.c (x_handle_dnd_message):
13796 * xmenu.c (digest_single_submenu, xmenu_show):
13797 * xdisp.c (with_echo_area_buffer_unwind_data)
13798 (format_mode_line_unwind_data, unwind_format_mode_line)
13799 (display_menu_bar):
13800 * eval.c (Ffetch_bytecode):
13801 * doc.c (store_function_docstring):
13802 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13803 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13804 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13805
138062008-02-07 Kenichi Handa <handa@m17n.org>
13807
13808 * ftxfont.c (ftxfont_open): Don't set
13809 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13810
13811 * ftfont.c (ftfont_open): Fix previous change.
13812
138132008-02-06 Jason Rumney <jasonr@gnu.org>
13814
13815 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13816 Use cached metrics for ASCII characters.
13817 (w32font_open_internal): Don't set font's owning_frame.
13818 Cache metrics for ASCII characters.
13819
13820 * w32font.h (struct w32font_info): Add ascii_metrics.
13821 Remove owning_frame.
13822
138232008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13824
13825 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13826 to negative value.
13827
13828 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13829
13830 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13831
13832 * charset.c (syms_of_charset): Set QCtest and Qeq.
13833
138342008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13835
13836 * process.c (Fstart_process):
13837 * callproc.c (Fcall_process): Handle the case where
13838 Funhandled_file_name_directory returns nil.
13839
13840 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13841 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13842 * font.c (check_gstring): Use them and AREF to access the vector before
13843 we know it's really a gstring.
13844 (Ffont_shape_text): Fix typo.
46e722a9 13845 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13846
13847 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13848 Declare.
13849
13850 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13851
138522008-02-05 Jason Rumney <jasonr@gnu.org>
13853
13854 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13855 Set smallest_font_height and smallest_char_width in display info.
13856
138572008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13858
13859 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13860
138612008-02-05 Miles Bader <miles@gnu.org>
13862
13863 * xfaces.c (get_lface_attributes, merge_named_face)
13864 (lookup_named_face, lookup_derived_face, realize_named_face):
13865 Revert 2008-02-01 change by cyd@stupidchicken.com.
13866
138672008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13868
13869 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13870 fallback fonts.
13871 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13872
138732008-02-04 Jason Rumney <jasonr@gnu.org>
13874
13875 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13876 set full_name.
13877 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13878
138792008-02-03 Jason Rumney <jasonr@gnu.org>
13880
13881 * makefile.w32-in (OBJ1): Include font.o here.
13882 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13883
138842008-02-02 Jason Rumney <jasonr@gnu.org>
13885
13886 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13887
138882008-02-01 Jason Rumney <jasonr@gnu.org>
13889
13890 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13891
13892 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13893
138942008-02-01 Andreas Schwab <schwab@suse.de>
13895
13896 * Makefile.in (shortlisp, lisp): Update for rename of
13897 ../lisp/language/myanmar.el.
13898
138992008-02-01 Chong Yidong <cyd@stupidchicken.com>
13900
13901 * xfaces.c (get_lface_attributes): Delete function.
13902 (merge_named_face, lookup_named_face, lookup_derived_face)
13903 (realize_named_face): Call lface_from_face_name directly, and use
13904 the fact that merge_face_vectors does not alter its FROM argument.
13905
139062008-02-01 Jason Rumney <jasonr@gnu.org>
13907
13908 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13909 input in the default locale. Handle non-Unicode multibyte input.
13910
139112008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13912
13913 * fontset.c (reorder_font_vector): Exclude nil elements from the
13914 font group. Don't try multiple fonts.
13915 (fontset_font): Adjust for the above change.
13916 (Finternal_char_font): Return nil if the found font doesn't
13917 contain the character ch.
13918
13919 * Makefile.in (lisp, shortlisp): Add cham.el.
13920
139212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13922
13923 * font.h (FONTP): Make it return 1 also for a font-object.
13924
13925 * .gdbinit (xfontset): New function.
13926
13927 * font.c (font_find_for_lface): Check if the character C is
13928 supported or not only for the first font.
13929
13930 * fontset.c (reorder_font_vector): Fix typo.
13931 (fontset_find_font): Don't add a font-spec specifying a script.
13932 Use 0 (not Qt) for the indication of empty font-group. Change the
13933 format of RFONT-DEF. Return Qt if no font in the font-group
13934 support the character.
13935 (fontset_font): Adjust for the above change. If no font was
13936 found the character, remember that.
13937 (face_for_char): Adjust for the change of RFONT-DEF.
13938 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13939 no font for the target.
13940 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13941
139422008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13943
13944 * font.c (font_load_for_face): Handle the case that the font in
13945 face->lface is a string.
13946
139472008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13948
13949 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13950
139512008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13952
13953 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13954 Fix previous change. If the frame is not on a window system,
13955 signal an error.
13956
139572008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13958
13959 * coding.c (decode_coding_object, encode_coding_object): Adjust
13960 marker positions after conversion.
13961
13962 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13963
139642008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13965
13966 * font.c (font_find_for_lface): Fix the handling of the return
13967 value of font_has_char.
13968 (Ffont_shape_text): Fix previous change.
13969
13970 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13971 (fontset_ref_and_range): Delete it.
13972 (fontset_find_font): Call char_table_ref_and_range instead of
13973 FONTSET_REF_AND_RANGE.
13974 (make_fontset): Don't setup font groups of Latin here.
13975 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13976 (new_fontset_from_font): Make the specified font the default for
13977 all Latin characters.
13978
139792008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13980
13981 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13982 is on a window system before accessing the fontset of the frame.
13983
139842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13985
13986 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13987
13988 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13989 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13990
13991 * font.c (Ffont_shape_text): If the font driver doesn't have a
13992 shaper function, make zero-width glyphs to have at least one-pixel
13993 width. Fix setting of `to' field of glyphs.
13994
139952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13996
13997 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13998 glyphs.
13999
14000 * font.h (struct font_driver): Improve docstring of member `shape'.
14001
140022008-02-01 Kenichi Handa <handa@m17n.org>
14003
14004 * composite.c (syms_of_composite): Fix docstring of
14005 auto-composition-function.
14006
14007 * font.h (LGLYPH_SIZE): New macro.
14008
14009 * font.c (Ffont_fill_gstring): Stop filling when a character not
14010 supported by the font is found.
14011 (Ffont_shape_text): When a shape callback function returns nil,
14012 try at most two more times with larger gstring.
14013 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
14014
14015 * xdisp.c (handle_auto_composed_prop): Change the argument to
14016 auto-composition-function.
14017
14018 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
14019 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
14020 Lispy glyph and store it in the lgstring.
14021
14022 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
14023
14024 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
14025
140262008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14027
14028 * font.c (Ffont_shape_text): Avoid unnecessary composition.
14029
14030 * fontset.c (Vfont_encoding_charset_alist): New variable.
14031 (syms_of_fontset): DEFVAR it.
14032 (reorder_font_vector, fontset_find_font): Optimize for the case of
14033 no need of reordering.
14034 (face_for_char): Map the charset property by
14035 Vfont_encoding_charset_alist.
14036
140372008-02-01 Jason Rumney <jasonr@gnu.org>
14038
14039 * w32font.c (logfonts_match): Don't check adstyle here.
14040 (font_matches_spec): Check here against physical font instead.
14041 (add_font_entity_to_list): Avoid some substitutions.
14042
14043 * font.c (font_parse_fcname): Default weight and slant to normal.
14044 (font_score): Prefer normal fonts if weight or slant unspecified.
14045 (font_score) [WINDOWSNT]: Scale weight difference down to closer
14046 match freetype scores.
14047
140482008-02-01 Jason Rumney <jasonr@gnu.org>
14049
14050 * w32font.c (w32font_text_extents): Don't use the frame stored in the
14051 font, as it may have been deleted.
14052 (w32_enumfont_pattern_entity): Map generic family to adstyle using
14053 most common hyphenless variation.
14054 (logfonts_match): Check generic family.
14055 (font_matches_spec): Don't check generic family here.
14056 (fill_in_logfont): Set generic family based on adstyle.
14057
14058 * w32font.h (w32font_get_cache): Update declaration.
14059
140602008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14061
14062 * ftfont.c (ftfont_get_cache): Adjust the argument type.
14063
14064 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
14065 If none of the new drivers are available, call font_update_drivers
14066 with the old drivers.
14067
14068 * w32font.c (w32font_get_cache): Adjust the argument type.
14069
14070 * xfont.c (xfont_get_cache): Adjust the argument type.
14071
14072 * font.h (struct font_driver): Change argument type of get_cache.
14073
14074 * xftfont.c (xftfont_start_for_frame): Delete prototype.
14075
14076 * font.c (Ffont_get): Fix arguments to Fassoc.
14077 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
14078 (font_clear_cache): New function.
14079 (font_list_entities, font_matching_entity): Use font_get_cache.
14080 (font_update_drivers): Call font_clear_cache when finishing a driver.
14081
14082 * fontset.c (fontset_find_font): Fix previous change.
14083
140842008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14085
14086 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
14087 dpyinfo->font_table.
14088 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14089 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14090
14091 * font.c (font_at): Handle the case that the arg C is negative.
14092 Handle the unibyte case.
14093 (Ffont_at): Call font_at with the arg C -1.
14094
14095 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14096 the position here, and call font_at with the arg C -1.
14097 Don't check the range of the existing composition at the point.
14098
140992008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14100
14101 * fontset.c (fontset_add): New args charset_id and family.
14102 Change caller.
14103 (load_font_get_repertory, fontset_find_font): Assume that
14104 font_spec is always a font-spec object.
14105 (Fset_fontset_font): Always store a font-spec object in a fontset.
14106
14107 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14108 instead of get_property_and_range.
14109
141102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14111
14112 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14113 (xftfont_open): Don't keep locking face.
14114 (xftfont_close): Don't unlock face.
14115 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14116
14117 * fontset.c (fontset_find_font): Don't prefer a font of
14118 supplementary charset.
14119
141202008-02-01 Kenichi Handa <handa@m17n.org>
14121
14122 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14123 script, langsys_tag to langsys, new member script.
14124 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14125 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14126 listing to the script specified in that property. Fix arg to
14127 OTF_check_features.
14128
141292008-02-01 Jason Rumney <jasonr@gnu.org>
14130
14131 * w32font.h: New file.
14132
14133 * w32font.c: Include it.
14134 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14135 (w32font_open): Set owning_frame.
14136 (w32font_text_extents): Use owning_frame.
14137 (struct font_callback_data): Add opentype_only field.
14138 (add_font_entity_to_list): Use it to filter fonts.
14139 Don't check against full name.
14140 (w32font_list_internal): New function.
14141 (w32font_list): Use it.
14142 (w32font_match_internal): New function.
14143 (w32font_match): Use it.
14144 (w32font_open_internal): New function.
14145 (w32font_open): Use it.
14146 (w32font_get_cache, w32font_close, w32font_has_char)
14147 (w32font_encode_char, w32font_text_extents, w32font_draw):
14148 Make non-static.
14149
14150 * makefile.w32-in (w32font.o): Depend on w32font.h.
14151
141522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14153
14154 * charset.c (Fdefine_charset_internal): Record a supplementary
14155 charset at the tail of Vcharset_order_list.
14156
14157 * font.c (Ffont_shape_text): Fix the return value.
14158
14159 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14160
14161 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14162
141632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14164
14165 * ftfont.c (struct OpenTypeSpec): New struct.
14166 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14167 (ftfont_get_open_type_spec): New function.
14168 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14169
14170 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14171
141722008-02-01 Jason Rumney <jasonr@gnu.org>
14173
14174 * w32font.c (add_font_entity_to_list): Compare only the beginning
14175 of full name.
14176
141772008-02-01 Kenichi Handa <handa@m17n.org>
14178
14179 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14180 Never return HANDLED_RECOMPUTE_PROPS.
14181
141822008-02-01 Kenichi Handa <handa@m17n.org>
14183
14184 * font.c (font_gstring_produce): Delete it.
14185
14186 * composite.h (COMPOSITION_METHOD):
14187 Handle COMPOSITION_WITH_GLYPH_STRING.
14188
141892008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14190
14191 * xfont.c (Qx): Delete.
14192 (syms_of_xfont): Don't initialize Qx.
14193
14194 * composite.h (enum composition_method):
14195 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14196
141972008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14198
14199 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14200 (choose_face_font): Accept new form of font-spec.
14201
14202 * frame.h (font_driver_list): Declare it unconditionally.
14203 (struct frame): Define members font_driver_list and font_data_list
14204 unconditionally.
14205
14206 * fontset.c: Include "font.h" unconditionally.
14207 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14208 (Fset_fontset_font): Accept a font-spec object.
14209
14210 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14211 PIXEL_SIZE part a wild card.
14212
14213 * dispextern.h (struct glyph_string): Define members clip and
14214 num_clips unconditionally.
14215 (struct face): Define members font_info and extra unconditionally.
14216
14217 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14218 ftfont_info only when HAVE_LIBOTF is defined.
14219
142202008-02-01 Andreas Schwab <schwab@suse.de>
14221
14222 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14223 and end.
14224
142252008-02-01 Jason Rumney <jasonr@gnu.org>
14226
14227 * w32font.c (w32font_driver): Add new fields.
14228
142292008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14230
14231 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14232 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14233 (LIBES): Add @M17N_FLT_CFLAGS@.
14234
14235 * composite.c (compose_text): Don't treat the new style
14236 composition specially.
14237
14238 * emacs.c (main): Call syms_of_font unconditionally.
14239
14240 * font.h (FONT_ENTITY_NOT_LOADABLE)
14241 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14242 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14243 (struct font_driver): New member shape.
14244 (font_registry_charsets): Extern it.
14245 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14246 (font_otf_capability, font_drive_otf): Delete their externs.
14247
14248 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14249 (font_charset_alist, font_registry_charsets): Move from xfont.c
14250 and rename.
14251 (font_prop_validate_otf): New function.
14252 (font_property_table): Register it for QCotf.
14253 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14254 (font_drive_otf): Delete.
14255 (font_prepare_composition): New arg F. Adjust for the change of
14256 lispy gstring.
14257 (font_find_for_lface): New arg C.
14258 (font_load_for_face): Adjust for the change of font_find_for_lface.
14259 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14260 lispy gstring.
14261 (Ffont_shape_text): New function.
14262 (Fopen_font): If the font size is not given, use 12-pixel.
14263 (Ffont_at): New arg STRING.
c0943d3d 14264 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
14265 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14266 conditionally.
14267
14268 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14269 fonts of the same font-spec. Change the format of RFONT-DEF.
14270 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14271 Adjust for the change of RFONT-DEF.
14272 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14273
14274 * ftfont.h: New file.
14275
14276 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14277 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14278 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14279 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14280 font_otf_capability and font_drive_otf, set ftfont_shape.
14281 (ftfont_list): Adjust for the change of :otf property value.
14282 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14283 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14284 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14285 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14286 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14287 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14288
14289 * w32term.c (x_draw_composite_glyph_string_foreground):
14290 Adjust for the change of lispy gstring.
14291
14292 * xdisp.c (handle_composition_prop): Adjust for the change of
14293 lispy gstring. Call a function for auto-composition with the
14294 third arg it->window.
14295 (fill_composite_glyph_string): Adjust for the change of lispy string.
14296 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14297
14298 * xfaces.c (set_font_frame_param): Adjust for the change of
14299 font_find_for_lface.
14300
14301 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14302 (xfont_registry_charsets): Likewise. Change caller.
14303 (syms_of_xfont): Don't handle x_font_charset_alist.
14304
14305 * xftfont.c: Include "ftfont.h".
14306 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14307 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14308 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14309 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14310 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14311 Set xftfont_driver.shape to xftfont_shape.
14312
14313 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14314 the change of lispy gstring.
14315
143162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14317
14318 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14319
143202008-02-01 Jason Rumney <jasonr@gnu.org>
14321
14322 * w32font.c (w32font_draw): Fill background manually.
14323
143242008-02-01 Jason Rumney <jasonr@gnu.org>
14325
14326 * font.c (Qfontp): Remove unused symbol.
14327 (QCantialias): New symbol.
14328 (syms_of_font): Define it.
14329 (font_property_table): Set a validator for QCantialias.
14330
14331 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14332 Define if not already.
14333 (QCfamily): Share with xfaces.c.
14334 (Qstandard, Qsubpixel, Qnatural): New symbols.
14335 (syms_of_w32font): Define them. Don't define QCfamily here.
14336 (w32_antialias_type, lispy_antialias_type): New functions.
14337 (w32_enumfont_pattern_entity): New arg requested_font.
14338 Set antialias parameter if non-default was requested.
14339 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14340
143412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14342
14343 * lread.c (read1): Undo the previous change.
14344
143452008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14346
14347 * frame.c (Fdelete_frame): Call font_update_drivers only when
14348 USE_FONT_BACKEND is defined.
14349
143502008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14351
14352 * font.h (struct font_bitmap): New member bits_per_pixel.
14353 (struct font_driver): New members start_for_frame and end_for_frame.
14354 (struct font_data_list): New struct.
14355 (font_put_frame_data, font_get_frame_data): Extern them.
14356
14357 * frame.h (struct frame): New member font_data_list.
14358
14359 * font.c (font_update_drivers): Call driver->start_for_frame and
14360 driver->end_for_frame at proper timings.
14361 (font_put_frame_data, font_get_frame_data): New functions.
14362 (Ffont_spec): Add usage in the docstring.
14363
14364 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14365 (Fdelete_frame): Call font_update_drivers.
14366
14367 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14368 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14369 (xftfont_get_xft_draw): New function.
14370 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14371 (xftfont_end_for_frame): New function.
14372 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14373
14374 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14375 Change argument. Cache GCs in the per-frame data.
14376 (struct ftxfont_frame_data): New struct.
14377 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14378 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14379 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14380 (ftxfont_end_for_frame): New function.
14381 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14382
14383 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14384
143852008-02-01 Kenichi Handa <handa@m17n.org>
14386
14387 * xselect.c (Vselection_coding_system)
14388 (Vnext_selection_coding_system): Delete them.
14389 (syms_of_xselect): Don't declare selection-coding-system and
14390 next-selection-coding-system. They are declared in select.el.
14391
143922008-02-01 Jason Rumney <jasonr@gnu.org>
14393
14394 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14395
14396 * w32fns.c: Include imm.h.
14397 (get_composition_string_fn, get_ime_context_fn): New optional
14398 system functions.
14399 (globals_of_w32fns): Load them from imm32.dll.
14400 (ignore_ime_char): New flag.
14401 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14402 WM_IME_ENDCOMPOSITION messages.
14403
14404 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14405 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14406
144072008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14408
14409 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14410 (READCHAR_REPORT_MULTIBYTE): New macro.
14411 (readchar): New 2nd arg MULTIBYTE.
14412 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14413 Make symbol's name multibyte according to the multibyteness of the
14414 source.
14415
144162008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14417
14418 * xfaces.c (face_for_overlay_string): Call lookup_face with
14419 correct arguments (fix of synching with the trunk).
14420
144212008-02-01 Kenichi Handa <handa@m17n.org>
14422
14423 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14424 (font_prop_validate_non_neg, font_prop_validate_spacing):
14425 Delete argument prop_index.
14426 (font_property_table): Change arguments to validater. Change Callers.
14427 (font_lispy_object): Delete.
14428 (font_at): Use font_find_object instead fo font_lispy_object.
14429
144302008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14431
14432 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14433 and file names.
14434
144352008-02-01 Jason Rumney <jasonr@gnu.org>
14436
14437 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14438 (font_matches_spec): Remove debug output.
14439 (add_font_entity_to_list): Avoid using substituted fonts.
14440
144412008-02-01 Jason Rumney <jasonr@gnu.org>
14442
14443 * doc.c (Fsnarf_documentation):
14444 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14445
144462008-02-01 Miles Bader <miles@gnu.org>
14447
14448 * dispextern.h (struct glyph_row): Only define "clip" field if
14449 HAVE_WINDOW_SYSTEM is defined.
14450
144512008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14452
14453 Fix up multi-tty merge.
14454
14455 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14456 and indentation.
14457
14458 * xfaces.c (free_realized_face, clear_face_gcs):
14459 Include font_done_for_face in the input_blocked section, just in case.
14460
14461 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14462 (get_char_face_and_encoding): Undo last change and remove the *other*
14463 duplicate definition (i.e. keep the one that's better scoped and that
14464 includes code for the font-backend).
14465
14466 * terminal.c (create_terminal): Default keyboard_coding to
14467 `no-conversion' and terminal_coding to `undecided'.
14468
14469 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14470
14471 * fontset.c (free_realized_fontsets): Check that the table entry does
14472 contain a fontset before trying to compare it to `base'.
14473
14474 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14475 syms_of_charset, and syms_of_coding earlier because init_window_once
14476 now needs Vcoding_system_hash_table to be setup.
14477
14478 * coding.h (default_buffer_file_coding): Remove.
14479
14480 * coding.c (default_buffer_file_coding): Remove.
14481 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14482 than ->symbol, and use the terminal-local coding system.
14483 (syms_of_coding): Don't setup the coding-systems that are not
14484 terminal-local.
14485 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14486
14487 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14488 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14489
14490 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14491 in chartab.c and were re-added here by mistake.
14492 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14493
14494 * doc.c (Fsnarf_documentation):
14495 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14496 src to etc.
14497
14498 * ChangeLog.10: Add mistakenly removed entry.
14499
145002008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14501
14502 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14503
145042008-02-01 Miles Bader <miles@gnu.org>
14505
14506 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14507 Add extra args to FACE_FOR_CHAR.
14508
145092008-02-01 Kenichi Handa <handa@m17n.org>
14510
14511 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14512 in sequence.
14513
14514 * chartab.c (map_sub_char_table, map_char_table): If the range
14515 contains just one character, call the function with that character
14516 even if the depth is not 3.
14517
145182008-02-01 Jason Rumney <jasonr@gnu.org>
14519
14520 * w32font.c (w32font_text_extents): Calculate metrics for the
14521 whole string.
14522
145232008-02-01 Jason Rumney <jasonr@gnu.org>
14524
14525 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14526
145272008-02-01 Jason Rumney <jasonr@gnu.org>
14528
14529 * w32term.c (x_set_glyph_string_clipping): Use
14530 get_glyph_string_clip_rects.
14531 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14532 Adjust for the change of struct glyph_string.
14533
14534 * w32font.c (w32font_draw): Do clipping here.
14535
145362008-02-01 Kenichi Handa <handa@m17n.org>
14537
14538 * xftfont.c (xftfont_draw): Adjust for the change of struct
14539 glyph_string.
14540
14541 * xterm.c (x_set_glyph_string_clipping): Use
14542 get_glyph_string_clip_rects.
14543 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14544 Adjust for the change of struct glyph_string.
14545
14546 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14547 the resulting clip(s}.
14548 (expose_overlaps): Add arg r. Change callers. Set it to
14549 row->clip temporarily.
14550 (expose_window): Redraw rows overlapping the exposed area.
14551
14552 * dispextern.h (struct glyph_row): New member clip.
14553 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14554 clip_height, new member clip, and num_clips.
14555
145562008-02-01 Kenichi Handa <handa@m17n.org>
14557
14558 * data.c (Fchar_or_string_p): Fix docstring.
14559
145602008-02-01 Kenichi Handa <handa@m17n.org>
14561
14562 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14563 create a temporary XftDraw object.
14564
145652008-02-01 Kenichi Handa <handa@m17n.org>
14566
14567 * font.c (Ffontp): Fix docstring.
14568
14569 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14570 strong evidence of ISO-2022.
14571
145722008-02-01 Kenichi Handa <handa@m17n.org>
14573
14574 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14575 SYNTAX_ENTRY_FOLLOW_PARENT.
14576
145772008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14578
14579 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14580 its type.
14581 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14582 Update to the new type of weak_hash_tables and next_weak.
14583
14584 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14585 a plain C pointer to Lisp_Hash_Table.
14586
14587 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14588 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14589 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14590 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14591 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14592 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14593 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14594 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14595 (GC_EQ): Remove since they've been identical to their non-GC_
14596 alter-egos ever since the markbit was eradicated.
14597
14598 * alloc.c:
14599 * buffer.c:
14600 * buffer.h:
14601 * data.c:
14602 * fileio.c:
14603 * filelock.c:
14604 * fns.c:
14605 * frame.h:
14606 * lisp.h:
14607 * macterm.c:
14608 * print.c:
14609 * process.c:
14610 * w32fns.c:
14611 * w32menu.c:
14612 * w32term.c:
14613 * xfns.c:
14614 * xmenu.c:
14615 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14616
146172008-02-01 Kenichi Handa <handa@m17n.org>
14618
14619 * chartab.c (map_sub_char_table): Make it work for the top-level
14620 char-table. Fix handling of parent char-table.
14621 (map_char_table): Adjust for the above change.
14622
146232008-02-01 Jason Rumney <jasonr@gnu.org>
14624
14625 * w32font.c (Qgdi): Rename from Qw32.
14626
146272008-02-01 Jason Rumney <jasonr@gnu.org>
14628
14629 * w32bdf.c (get_quoted_string): Make function static.
14630
146312008-02-01 Kenichi Handa <handa@m17n.org>
14632
14633 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14634 bigger ascent and descent than those of the font, use them as
14635 font's ascent and descent.
14636
146372008-02-01 Kenichi Handa <handa@m17n.org>
14638
14639 * Makefile.in (${lispsource}international/charprop.el): Move this
14640 target within "#ifdef HAVE_UNIDATA" and "#endif".
14641
146422008-02-01 Kenichi Handa <handa@m17n.org>
14643
14644 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14645 (shortlisp): Add ../lisp/language/tai-viet.el.
14646
146472008-02-01 Ulrich Mueller <ulm@gentoo.org>
14648
14649 * Makefile.in (${lispsource}international/charprop.el): Depend on
14650 temacs${EXEEXT}.
14651
146522008-02-01 Jason Rumney <jasonr@gnu.org>
14653
14654 * w32font.c (w32font_close): Delete the GDI font object.
14655
14656 * w32menu.c: Include character.h.
14657
14658 * w32proc.c: Likewise.
14659
14660 * w32select.c: Likewise.
14661
14662 * makefile.w32-in (w32proc.o): Depend on character.h.
14663
146642008-02-01 Jason Rumney <jasonr@gnu.org>
14665
14666 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14667
14668 * w32menu.c (syms_of_w32menu): Likewise.
14669
14670 * w32proc.c (syms_of_ntproc): Likewise.
14671
14672 * w32select.c (syms_of_w32select): Likewise.
14673
14674 * w32term.c (syms_of_w32term): Likewise.
14675
146762008-02-01 Jason Rumney <jasonr@gnu.org>
14677
14678 * w32font.c (w32font_draw): Delete brush after using it.
14679
146802008-02-01 Jason Rumney <jasonr@gnu.org>
14681
14682 * w32font.c (w32font_open): Don't set font_idx.
14683 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14684 to font settings.
14685 (w32font_draw): Fill background explicitly.
14686
146872008-02-01 Jason Rumney <jasonr@gnu.org>
14688
14689 * w32term.c (w32_initialize): Don't call w32font_initialize.
14690
14691 * w32font.c (w32font_info): Remove subranges.
14692 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14693 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14694 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14695 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14696 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14697 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14698 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14699 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14700 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14701 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14702 New symbols.
14703 (font_callback_data): New struct.
14704 (w32font_list, w32font_match): Use it.
14705 (w32font_open): Don't populate subranges.
14706 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14707 (w32font_encode_char): Always return unicode code-point as-is.
14708 (w32font_text_extents): Supply a transformation matrix to
14709 GetGlyphOutline. Never look up by glyph index. Avoid looping
14710 twice. Use unicode version of GetTexExtentPoint32 instead of
14711 glyph index version.
14712 (set_fonts_frame): Remove.
14713 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14714 set frame parameter. Use backward compatible fake foundries.
14715 Save generic family in extra slot under QCfamily. Make width slot
14716 constant. Save QCspacing value. Save list of scripts instead of
14717 binary subranges.
14718 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14719 (add_font_entity_to_list): Use font_callback_data struct. Filter
14720 unwanted fonts.
14721 (add_one_font_entity_to_list): Use font_callback_data struct.
14722 (w32_registry): Default to iso10646_1.
14723 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14724 string font registries. Don't fill in font name if it is a generic
14725 family name, fill family instead. Use spacing, family and script
14726 extra info to fill pitch, family and charset fields.
14727 (list_all_matching_fonts): Use font_callback_data struct.
14728 (unicode_range_for_char): Remove.
14729 (font_supported_scripts): New function.
14730 (w32font_initialize): Remove.
14731 (syms_of_w32font): Update which symbols are defined.
14732
147332008-02-01 Jason Rumney <jasonr@gnu.org>
14734
14735 * font.c (font_pixel_size): Reverse assq_no_quit args.
14736
14737 * w32term.h (FONT_WIDTH): Report max width, not average.
14738 (FONT_MAX_WIDTH): Remove.
14739 (FONT_AVG_WIDTH): New macro.
14740
14741 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14742 redefinition of FONT_WIDTH.
14743
14744 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14745 (w32_cache_char_metrics): Use FONT_WIDTH.
14746
14747 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14748
147492008-02-01 Jason Rumney <jasonr@gnu.org>
14750
14751 * w32font.c (w32font_open): Make lfHeight negative.
14752
14753 * w32fns.c (x_default_font_parameter): Use new style font name.
14754 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14755
147562008-02-01 Jason Rumney <jasonr@gnu.org>
14757
14758 * w32font.c (QCsubranges): New symbol.
14759 (w32font_open, w32font_has_char): Get subranges from subproperty
14760 of extra.
14761 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14762 (syms_of_w32font): Define :subranges symbol.
14763
14764 * font.c (font_put_extra): Expose externally.
14765
14766 * font.h (font_put_extra): Move declaration from font.c.
14767
14768 * font.c (Ffont_get): Use font driver to determine otf capability.
14769 (adjust_anchor): Check if driver defines anchor_point before using.
14770
14771 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14772 (w32font_draw): Use options.
14773 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14774 Fix detection of truetype fonts.
14775 (registry_to_w32_charset): Handle charsets other than iso8859-1
14776 expressed as lisp symbols.
14777 (w32_registry): Express charset as lisp symbol.
14778 (fill_in_logfont): Reverse pixel and point height logic.
14779 Don't set width here. Set quality to default.
14780
14781 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14782 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14783
14784 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14785 Remove redundant loop and allocation.
14786
14787 * makefile.w32-in (font.o, w32font.o): New objects.
14788 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14789 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14790
14791 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14792 STORE_XCHARB a valid l-value.
14793
14794 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14795 calculations for non-Truetype fonts.
14796 (x_draw_glyph_string): Sync with xterm.c.
14797 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14798 Remove redundant code.
14799 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14800
14801 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14802 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14803
14804 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14805 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14806
14807 * w32font.c: New file for w32 font backend.
14808
148092008-02-01 Kenichi Handa <handa@m17n.org>
14810
14811 * term.c: Don't include "buffer.h" twice.
14812
148132008-02-01 Kenichi Handa <handa@m17n.org>
14814
14815 * character.c (Funibyte_string): New function.
14816 (syms_of_character): Defsubr it.
14817
148182008-02-01 Jason Rumney <jasonr@gnu.org>
14819
14820 * w32term.c [USE_FONT_BACKEND]:
14821 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14822 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14823 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14824 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14825 (x_free_frame_resources): Sync with xterm.c.
14826
148272008-02-01 Andreas Schwab <schwab@suse.de>
14828
14829 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14830 char-table size.
14831
148322008-02-01 Kenichi Handa <handa@m17n.org>
14833
14834 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14835
148362008-02-01 Kenichi Handa <handa@m17n.org>
14837
14838 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14839 font_otf_gpos, add font_drive_otf.
14840
14841 * fontset.c (fontset_find_font): Pay attention to font size
14842 specified for a font.
14843 (reorder_font_vector): Check contents of font_def.
14844
14845 * font.c (struct otf_list): Delete it.
14846 (otf_list): Make it a lisp variable.
14847 (otf_open): Use lispy otf_list.
14848 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14849 (check_otf_features): New function.
14850 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14851 New functions.
14852 (font_drive_otf): New function merging font_otf_gsub and
14853 font_otf_gpos.
14854 (font_open_for_lface): New arg spec. Change argument order.
14855 (font_load_for_face): Adjust for the change of font_open_for_lface.
14856 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14857 Ffont_otf_gpos.
14858 (syms_of_font): Staticpro otf_list. Delete defsubr of
14859 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14860
14861 * xfaces.c (set_font_frame_param): Adjust for the change of
14862 font_open_for_lface.
14863
14864 * font.h (font_open_for_lface): Adjust prototype.
14865 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14866 member otf_drive.
14867 (font_otf_gsub, font_otf_gpos): Delete externs.
14868 (font_drive_otf): Extern it.
14869
148702008-02-01 Kenichi Handa <handa@m17n.org>
14871
14872 * font.c (font_at): If the window W is not on a window system,
14873 return Qnil.
14874
14875 * coding.c (produce_chars, encode_coding): Don't call
14876 insert_from_gap if no characters to produce.
14877
148782008-02-01 Kenichi Handa <handa@m17n.org>
14879
14880 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14881 Fclear_face_cache.
14882
14883 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14884
148852008-02-01 Miles Bader <miles@gnu.org>
14886
14887 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14888 Parse "--disable-font-backend" option.
14889 (standard_args): Add "--disable-font-backend" option.
14890
148912008-02-01 Kenichi Handa <handa@m17n.org>
14892
14893 * fontset.c (fontset_find_font): New function.
14894 (fontset_font): Use fontset_find_font.
14895 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14896 Register the specified font for all Latin characters.
14897 (new_fontset_from_font): Register the specified font for all Latin
14898 characters.
14899 (dump_fontset): For a realized fontset, include the base fontset
14900 name in the returned vector.
14901
149022008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * character.h (CHAR_STRING): Cast C to unsigned on calling
14905 char_string.
14906
14907 * character.c (char_string): Type of arg C changed to unsigned.
14908 Signal an error if C is an invalid character code.
14909
14910 * editfns.c (general_insert_function, Fchar_to_string):
14911 Use CHARACTERP, not INTEGERP.
14912
149132008-02-01 Kenichi Handa <handa@m17n.org>
14914
14915 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14916 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14917
14918 * regex.c (analyse_first): Fix for multibyte characters in "case
14919 charset:" and "case categoryspec:".
14920
149212008-02-01 Andreas Schwab <schwab@suse.de>
14922
14923 * Makefile.in (LIBES): Move standard libraries to the end.
14924
149252008-02-01 Kenichi Handa <handa@m17n.org>
14926
14927 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14928 nonzero, don't shrink the buffer nextb.
14929
14930 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14931
14932 * coding.c (coding_alloc_by_making_gap): New arg offset.
14933 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14934 offset.
14935 (decode_coding_iso_2022): Update coding->safe_charsets.
14936 (decode_coding_gap): Temporarily set
14937 current_buffer->text->inhibit_shrinking to 1.
14938
149392008-02-01 Kenichi Handa <handa@m17n.org>
14940
14941 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14942 indexing into elements of s->cmp and s->char2b.
14943
149442008-02-01 Juanma Barranquero <lekktu@gmail.com>
14945
14946 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14947
149482008-02-01 Kenichi Handa <handa@m17n.org>
14949
14950 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14951 target_multibyte instead of multibyte.
14952 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14953 (bcmp_translate): Change the argument name from multibyte to
14954 target_multibyte.
14955
149562008-02-01 Kenichi Handa <handa@m17n.org>
14957
14958 These changes are to compile a regexp into a pattern that can be
14959 used both for multibyte and unibyte targets.
14960
14961 * Makefile.in (search.o): Depend on charset.h.
14962
14963 * character.c (multibyte_char_to_unibyte_safe): New function.
14964
14965 * search.c: Include "charset.h".
14966 (compile_pattern_1): Delete argument multibyte. Don't set
14967 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14968 (compile_pattern): Don't compare cp->buf.target_multibyte.
14969 Compare cp->buf.charset_unibyte.
14970 (compile_pattern): Set cp->buf.target_multibyte.
14971
14972 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14973
14974 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14975
14976 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14977 multibyte. Change callers.
14978 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14979 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14980 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14981 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14982 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14983 (regex_compile): Make the compiled pattern usable both for
14984 multibyte and unibyte targets.
14985 (analyse_first): Make the fastmap usable both for multibyte and
14986 unibyte targets.
14987 (TRANSLATE_VIA_MULTIBYTE): Delete.
14988 (re_match_2_internal): Pay attention to the case that the
14989 multibyteness of bufp and target may be different.
14990
149912008-02-01 Kenichi Handa <handa@m17n.org>
14992
14993 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14994 empty box occupy at least one column width.
14995
149962008-02-01 Miles Bader <miles@gnu.org>
14997
14998 * Makefile.in: Remove redundant HAVE_XFT clause.
14999
150002008-02-01 Kenichi Handa <handa@m17n.org>
15001
15002 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
15003
150042008-02-01 Kenichi Handa <handa@m17n.org>
15005
15006 * fontset.c (Finternal_char_font): Fix for the case of POSITION
15007 being nil.
15008
150092008-02-01 Kenichi Handa <handa@m17n.org>
15010
15011 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
15012
150132008-02-01 Kenichi Handa <handa@m17n.org>
15014
15015 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
15016
150172008-02-01 Kenichi Handa <handa@m17n.org>
15018
15019 * search.c (simple_search): Fix previous change.
15020
150212008-02-01 Kenichi Handa <handa@m17n.org>
15022
15023 * xftfont.c (ftfont_font_format): Extern declaration.
15024
15025 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
15026
15027 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
15028 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
15029
15030 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
15031 (ftfont_font_format): Fix previous change.
15032
15033 * font.h (Ffont_xlfd_name): EXFUN it.
15034
15035 * font.c (font_parse_xlfd): Fix the array size of `f'.
15036 (register_font_driver): Use EQ to compare driver->type.
15037
15038 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
15039 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
15040 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
15041
150422008-02-01 Kenichi Handa <handa@m17n.org>
15043
15044 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
15045 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
15046
150472008-02-01 Kenichi Handa <handa@m17n.org>
15048
15049 * xfont.c (xfont_open): Set font->format.
15050
15051 * xftfont.c (xftfont_open): Set font->format.
15052
15053 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
15054 (ftfont_list): Include FC_FONTFORMAT in FcObject.
15055 (ftfont_open): Set font->format.
15056 (ftfont_font_format): New function.
15057
15058 * font.h (struct font): New member format.
15059
15060 * font.c (Qopentype): New variable.
15061 (syms_of_font): Defsym it.
15062 (Fquery_font): Change the format of the last element of the return
15063 value.
15064
150652008-02-01 Kenichi Handa <handa@m17n.org>
15066
15067 * xfns.c (xic_create_xfontset): Try the default fontset name as a
15068 last resort.
15069
150702008-02-01 Kenichi Handa <handa@m17n.org>
15071
15072 * coding.c (detect_coding_charset): Fix detection of multi-byte
15073 charset.
15074
150752008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
15076
15077 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
15078
150792008-02-01 Kenichi Handa <handa@m17n.org>
15080
15081 * xdisp.c (get_next_display_element): Set it->face_id for the
15082 first component of a composition.
15083 (x_produce_glyphs): Check if the font is changed or not for composition.
15084
150852008-02-01 Kenichi Handa <handa@m17n.org>
15086
15087 * fontset.c (Qlatin): New variable.
15088 (syms_of_fontset): Define it as a lisp symbol.
15089 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15090
150912008-02-01 Kenichi Handa <handa@m17n.org>
15092
15093 * font.c (font_unparse_fcname): Pay attention to the case that
15094 some of font property is a null string.
15095
150962008-02-01 Kenichi Handa <handa@m17n.org>
15097
15098 * term.c: Include "composite.h".
15099 (encode_terminal_code): Output all components of composition.
15100 Check the size of encode_terminal_src.
15101 (produce_glyphs): For composition, call produce_composite_glyph.
15102 (append_composite_glyph, produce_composite_glyph): New functions.
15103
15104 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15105 is not found, get font_info from the current ascii face.
15106
151072008-02-01 Kenichi Handa <handa@m17n.org>
15108
15109 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15110 buffer-file-name to Qnil before calling insert_from_buffer.
15111
15112 * font.c (font_unparse_fcname): Pay attention to the case that
15113 foundry is a null string.
15114
151152008-02-01 Kenichi Handa <handa@m17n.org>
15116
15117 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15118
15119 * font.c (Qunicode_sip): New variable.
15120 (syms_of_font): Declare it as a Lisp symbol.
15121
15122 * font.h (Qunicode_sip): Extern it.
15123
151242008-02-01 Kenichi Handa <handa@m17n.org>
15125
15126 * composite.c (get_composition_id): Pay attention to TAB component.
15127
15128 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15129 TAB. Adjust for the change of s->char2b which always points to
15130 the first element of allocated memory.
15131
15132 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15133
15134 * xdisp.c (handle_composition_prop): Set it->c to the first
15135 non-TAB component.
15136 (fill_composite_glyph_string): Change argument.
15137 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15138 (x_produce_glyphs): Fix handling of left/right padding.
15139
151402008-02-01 Kenichi Handa <handa@m17n.org>
15141
15142 * coding.c (detect_coding_system): Fix for handling off
15143 inhibit_iso_escape_detection. Fix for the case that no coding
15144 system is defined for a specific coding category.
15145
151462008-02-01 Kenichi Handa <handa@m17n.org>
15147
15148 * font.c (font_matching_entity): Delete unused local var.
15149
15150 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15151 opening a font.
15152
15153 * fileio.c (Finsert_file_contents): On recovering a file, assume
15154 Unix-like eol.
15155 (choose_write_coding_system): On auto-saving a file, force
15156 Unix-like eol.
15157
15158 * coding.c (setup_coding_system): Fix setting of
15159 coding->common_flags based on eol_type.
15160 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15161 inherit from it.
15162
151632008-02-01 Kenichi Handa <handa@m17n.org>
15164
15165 * alloc.c (NSTATICS): Increas to 0x600.
15166
151672008-02-01 Kenichi Handa <handa@m17n.org>
15168
15169 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15170 (ftfont_list): Don't check :name property.
15171 (ftfont_match): New function.
15172 (ftfont_pattern_entity): If the pattern doesn't contain
15173 FC_SPACING, don't assume FC_MONO.
15174
15175 * font.h (struct font_driver): New member `match'.
15176 (font_update_drivers): Adjust prototype.
15177
15178 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15179 property of FONT.
15180 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15181 them unconditionally.
15182 (font_matching_entity): New function.
15183 (font_open_by_name): Try font_matching_entity if exact match is
15184 not found.
15185 (font_update_drivers): Delete the arg FONT. Return a list of
15186 actually used backends. Don't free faces, font caches here.
15187 Don't store data in frame parameters. Don't call x_set_font.
15188 (Ffont_spec): Store :name property as is.
15189 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15190 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15191 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15192 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15193 Call font->driver->otf_gsub instead of font_otf_gsub.
15194
15195 * frame.c (x_set_font_backend): Do more works that were done in
15196 font_update_drivers before.
15197
15198 * xfont.c (xfont_match): New function.
15199 (xfont_driver): Set xfont_driver.match to xfont_match.
15200 (xfont_draw): Set font in GC if necessary.
15201
15202 * ftxfont.c (ftxfont_match): New function.
15203 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15204
15205 * xftfont.c (xftfont_match): New function.
15206 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15207
152082008-02-01 Kenichi Handa <handa@m17n.org>
15209
15210 * font.h (struct font): New member scalable.
15211 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15212 (font_otf_gsub): Adjust prototype.
15213
15214 * font.c (font_otf_capability): Fix handling of the default langsys.
15215 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15216 Check the contents of SPEC.
15217 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15218 (check_gstring): New function.
15219 (REPLACEMENT_CHARACTER): New macro.
15220 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15221 glyph codes of GSTRING.
15222 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15223 (font_prepare_composition): Set cmp->glyph_len.
15224 (font_open_entity): Set font->scalable.
15225 (Ffont_get): Handle :otf property.
15226 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15227 functions.
15228 (Fquery_font): Use font->font.full_name.
15229 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15230 Sfont_otf_alternates.
15231
15232 * ftfont.c (ftfont_open): Set font->font.full_name and
15233 font->font.name properly. Fix calculation of font->font.height
15234 and font->min_width.
15235
15236 * ftxfont.c (ftxfont_create_gcs): New function.
15237 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15238 (ftxfont_draw_backgrond): Fix filling region.
15239 (ftxfont_default_fid): New function.
15240 (ftxfont_open): Set xfont->fid to the return value of
15241 ftxfont_default_fid.
15242 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15243 (ftxfont_done_face): Free only GCs that are created by
15244 ftxfont_create_gcs.
15245 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15246
15247 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15248 Clip to src->width, etc (not src->clip_XXX).
15249
15250 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15251 FontBackend frame parameter.
15252
152532008-02-01 Kenichi Handa <handa@m17n.org>
15254
15255 * font.h (struct font_driver_list): New member `on'.
15256 (Fclear_font_cache): EXFUN it.
15257 (font_update_drivers): Extern it.
15258
15259 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15260 (font_list_entities): Check driver_list->on.
c0943d3d 15261 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
15262 (font_update_drivers): New function.
15263 (Fclear_font_cache): Check driver_list->on.
15264
15265 * frame.h (Qfont_backend): Extern it.
15266 (x_set_font_backend): Extern it.
15267
15268 * frame.c (Qfont_backend): New variable.
15269 (frame_parms): New element for font-backend.
15270 (x_set_font_backend): New function.
15271
15272 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15273 FontBackend frame parameter.
15274 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15275 x_set_font_backend.
15276
15277 * xfont.c (xfont_list): Don't try listing by :name property if the
15278 name is not for XLFD.
15279
152802008-02-01 Kenichi Handa <handa@m17n.org>
15281
15282 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15283 (LGLYPH_SET_TO): New macros.
15284 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15285 element of G is vector or not.
15286 (font_at): Extern it.
15287
15288 * font.c: Include window.h.
15289 (font_lispy_object): New function.
15290 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15291 end of valid glyph.
15292 (font_close_object): Fix getting (struct font *).
15293 (font_at): New function.
15294 (Ffont_get): If FONT is a font-object, get entity from it.
15295 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15296 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15297 range check.
15298 (Ffont_at): New function.
15299 (syms_of_font): Defsubr Sfont_at.
15300
15301 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15302 before the entry for Qcomposition.
15303 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15304 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15305 the font in gstring.
15306 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15307 LGLYPH_FORM (g) to detect the end of valid glyph.
15308 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15309 we are composing with gstring.
15310
15311 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15312 Check if adjustment is vector or not.
15313
15314 * Makefile.in (font.o): Make it depends on window.h.
15315
153162008-02-01 Kenichi Handa <handa@m17n.org>
15317
15318 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15319 adjustment is vector or not.
15320
153212008-02-01 Miles Bader <miles@gnu.org>
15322
15323 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15324
153252008-02-01 Kenichi Handa <handa@m17n.org>
15326
15327 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15328 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15329 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15330
15331 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15332 (DEVICE_DELTA): Fix typo.
15333 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15334 LGLYPH format.
15335
15336 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15337 the change of LGLYPH format.
15338
153392008-02-01 Kenichi Handa <handa@m17n.org>
15340
15341 * ftfont.c (ftfont_list): Fix typo.
15342 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15343
153442008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15345
15346 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15347
15348 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15349 xftface_info is non-NULL.
15350
153512008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15352
15353 * ftfont.c (ftfont_list): Move misplaced #endif.
15354
153552008-02-01 Kenichi Handa <handa@m17n.org>
15356
15357 * ftfont.c (ftfont_list): Pay attention to the case that
15358 FC_CAPABILITY is not defined.
15359
153602008-02-01 Kenichi Handa <handa@m17n.org>
15361
15362 * xftfont.c (xftfont_open): Set charset related members to -1.
15363
15364 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15365 QCname.
15366 (ftfont_open): Set charset related members to -1.
15367
15368 * fontset.c (Votf_script_alist): New variable.
15369 (syms_of_fontset): Initialize it.
15370 (fontset_font): Delete unused variable.
15371
15372 * fontset.h (Votf_script_alist): Extern it.
15373
15374 * font.c (font_find_for_lface): Optimize code.
15375
15376 * font.h (font_close_object, font_merge_old_spec): Extern them.
15377
153782008-02-01 Kenichi Handa <handa@m17n.org>
15379
15380 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15381 (syms_of_font): Initialize them.
15382 (font_pixel_size): Allow float value in dpi.
15383 (font_prop_validate_type): Delete.
15384 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15385 Change caller.
15386 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15387 (font_prop_validate_extra): Delete.
15388 (font_prop_validate_spacing): New function.
15389 (font_property_table): Add elements for all known properties.
15390 (get_font_prop_index): Rename from check_font_prop_name. New
15391 argument FROM. Change caller.
15392 (font_prop_validate): Validate all known properties.
15393 (font_put_extra): Delete argument force. Change caller.
15394 (font_expand_wildcards): Make it static. Fix the way of shrinking
15395 the possible range.
15396 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15397 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15398 Change caller.
15399 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15400 (font_parse_fcname): Delete argument merge. Fix parsing of point
15401 size. Don't validate properties values here. Change caller.
15402 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15403 (font_open_by_name): Delete unused variable.
15404 (Ffont_spec): Likewise. Validate property values.
15405 (Ffont_match_p): New function.
15406
15407 * font.h (QCscalable): Extern it.
15408 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15409
15410 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15411
15412 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15413 (xfont_list_pattern): New function.
15414 (xfont_list): Use xfont_list_pattern.
15415
154162008-02-01 Kenichi Handa <handa@m17n.org>
15417
15418 * font.h (Flist_fonts): EXFUN it.
15419
154202008-02-01 Jason Rumney <jasonr@gnu.org>
15421
15422 * w32term.c (w32_initialize): Add back smoothing_type and
15423 smoothing_enabled definitions.
15424
154252008-02-01 Kenichi Handa <handa@m17n.org>
15426
15427 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15428 s->face->font on determining underline position.
15429
154302008-02-01 Kenichi Handa <handa@m17n.org>
15431
15432 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15433 (font_has_char): Accept font-object too.
15434 (font_find_for_lface): Try at first with a size specified in face.
15435
154362008-02-01 Kenichi Handa <handa@m17n.org>
15437
15438 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15439 font_open_by_name.
15440
154412008-02-01 Kenichi Handa <handa@m17n.org>
15442
15443 * font.h (QCspacing, QCdpi): Extern them.
15444 (enum font_spacing): New enum.
15445 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15446
15447 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15448 (QCspacing, QCdpi): New variables.
15449 (syms_of_font): Initialize them.
15450 (font_pixel_size): New function.
15451 (font_put_extra): New function.
15452 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15453 in FONT_EXTRA.
15454 (font_parse_fcname): Handle enumerated values (e.g. bold).
15455 Fix handling font size. Add QCname property that contains only
15456 unknown properties.
15457 (font_score): Change argument. Change caller. Pay attention to
15458 FONT_PIXEL_SIZE_QUANTUM.
15459 (font_sort_entites, font_list_entities, font_find_for_lface)
15460 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15461 (Ffont_spec): Add QCname property that contains only unknown properties.
15462
15463 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15464 include weight in listing pattern, instead check weight of each
15465 listed font. Don't include scalable in pattern. Pay attention to
15466 FONT_PIXEL_SIZE_QUANTUM.
15467
154682008-02-01 Kenichi Handa <handa@m17n.org>
15469
15470 * font.c (font_parse_fcname): Fix parsing of point-size.
15471 (font_unparse_fcname): Produce symbolic names for style properties.
15472 (font_list_entities): Handle float size correctly.
15473 (font_open_by_name): Prefer `normal' property values if the name
15474 doesn't specify them.
15475
15476 * fontset.c (Finternal_char_font): Use font_get_name, not
15477 Ffont_xlfd_name.
15478
15479 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15480 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15481 pattern. Don't force scalable.
15482
15483 * xftfont.c (xftfont_open): For generating a name, start from
15484 96-byte buffer.
15485
154862008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15487
15488 * frame.h (x_new_fontset2): Fix prototype.
15489
154902008-02-01 Kenichi Handa <handa@m17n.org>
15491
15492 * font.h (struct font_driver): Delete member parse_name.
15493 (font_match_p, font_get_spec, font_parse_fcname)
15494 (font_unparse_fcname): Extern them.
15495 (font_get_name): Adjust prototype.
15496
15497 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15498 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15499 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15500 unnecessary checks for weight, slant, and swidth.
15501 (font_parse_fcname): New function.
15502 (font_unparse_fcname): New function.
15503 (font_parse_name): New function.
15504 (font_match_p): New function.
15505 (font_get_name): Change return value to Lisp string.
15506 (font_get_spec): New function.
15507 (Qunspecified, Qignore_defface): Don't extern them.
15508 (font_find_for_lface): Assume that LFACE is fully specified.
15509 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15510 object, use it for FACE.
15511 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15512 driver->parse_name.
15513 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15514
15515 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15516 prototype.
15517
15518 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15519 argument F. Don't call Fnew_fontset. Instead, directly call
15520 make_fontset.
15521
15522 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15523
15524 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15525 of x_new_fontset2.
15526
15527 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15528 (Qsans__serif): New variables.
15529 (ftfont_generic_family_list): New variable.
15530 (syms_of_ftfont): Initialize the above variables.
15531 (ftfont_pattern_entity): Delete argument NAME.
15532 (ftfont_list_generic_family): New function.
15533 (ftfont_parse_name): Delete this function.
15534 (ftfont_list): Try generic family only when FcFontList found no font.
15535 (ftfont_list_family): Fix args to FcObjectSetBuild.
15536
15537 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15538 object in attrs[LFACE_FONT_INDEX].
15539 (set_lface_from_font_name): Cancel all changes for font-backend.
15540 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15541 function.
15542 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15543 font object in QCfont attribute.
15544 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15545 (realize_default_face) [USE_FONT_BACKEND]: Call
15546 set_lface_from_font_and_fontset.
15547
15548 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15549 "fixed", and signal error here if no suitable font was found.
15550
15551 * xfont.c (xfont_parse_name): Delete this function.
15552
15553 * xftfont.c (xftfont_open): Change coding style of error
15554 handling. Generate fontconfig's fontname pattern.
15555
15556 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15557 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15558
15559 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15560 Both args FONTSET and FONT_OBJECT must be existing ones.
15561
155622008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15563
15564 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15565
155662008-02-01 Kenichi Handa <handa@m17n.org>
15567
15568 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15569
15570 * font.h (struct font): Fix typo.
15571
15572 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15573 XLFD_XXX_INDEX.
15574 (enum xlfd_field_mask): New enum.
15575 (intern_font_field): Changed argument. Change caller. If digits
15576 are followed by non-digits, return a symbol.
15577 (font_expand_wildcards): New function.
15578 (font_parse_xlfd): Fix wildcard handling.
15579 (Ffont_spec): If :name is specified, reflect the info in the other
15580 properties.
15581
15582 * ftfont.c (ftfont_pattern_entity): Fix typo.
15583 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15584 locale.
15585
155862008-02-01 Kenichi Handa <handa@m17n.org>
15587
15588 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15589
15590 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15591 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15592 registry doesn't specify encoding part.
15593 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15594 (font_open_by_name): At first try parsing the name.
15595 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15596 as Lisp symbols.
15597
15598 * fontset.c (reorder_font_vector): Pay attention to the case that
15599 the 3rd element of font_def is nil.
15600 (fontset_font): For the default fontset, append one more fontset
15601 elements for a script-based font specification. Don't add script
15602 attribute on finding a font.
15603 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15604 font name.
15605 (fontset_ascii_font): If a font can't be opened, return nil.
15606
15607 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15608 (ftfont_pattern_entity): New function.
15609 (ftfont_get_cache): Assume that freetype_font_cache is already
15610 initialized.
15611 (ftfont_list): Handle the case that a file is specified in font
15612 name. Use ftfont_pattern_entity to generate entities.
15613 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15614 (syms_of_ftfont): Initialize freetype_font_cache.
15615
15616 * xftfont.c (xftfont_open): Make the font name fontconfig's
15617 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15618 (xftfont_close): Free font->font.name if not NULL.
15619
15620 * xfont.c (xfont_list): If script is specified for a font, return
15621 null_vector.
15622 (xfont_list_family): Declare argument type.
15623
15624 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15625 name, set LFACE_FONT (lface) to nil.
15626
15627 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15628 return Qnil.
15629
156302008-02-01 Kenichi Handa <handa@m17n.org>
15631
15632 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15633 (standard_args): Add "-enable-font-backend".
15634
156352008-02-01 Kenichi Handa <handa@m17n.org>
15636
15637 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15638 (struct xftdraw_list, xftdraw_list): Delete them.
15639 (register_xftdraw, check_xftdraw): Delete them.
15640 (xftfont_prepare_face): Don't call register_xftdraw.
15641 (xftfont_done_face): Don't call check_xftdraw.
15642 (xftfont_draw): Get background color only when with_background is
15643 nonzero.
15644
15645 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15646
156472008-02-01 Kenichi Handa <handa@m17n.org>
15648
15649 These changes are for the new font handling codes.
15650
15651 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15652 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15653 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15654 (FONTSRC, FONTOBJ): New variables.
15655 (obj): Add $(FONTOBJ).
15656 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15657 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15658 @LIBOTF_LIBS@.
15659 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15660 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15661
15662 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15663
15664 * character.h (Vscript_representative_chars): Extern it.
15665
15666 * character.c (Vscript_representative_chars): New variable.
15667 (syms_of_character): Declare it as a Lisp variable.
15668
15669 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15670 enable_font_backend is nonzero, accept the composition method
15671 COMPOSITION_WITH_GLYPH_STRING.
15672
15673 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15674 enumeration COMPOSITION_WITH_GLYPH_STRING.
15675
15676 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15677 members clip_x, clip_y, clip_width, and clip_height.
15678 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15679
15680 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15681 --enable-font-backend. Call syms_of_font.
15682
15683 * fns.c (assoc_no_quit): New function.
15684
15685 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15686 (face_for_font, new_fontset_from_font)
15687 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15688
15689 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15690 (fontset_font, fontset_ascii, face_for_char)
15691 (make_fontset_for_ascii_face, Ffont_info)
15692 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15693 is nonzero, use font-backend mechanism.
15694 (find_font_encoding): Make it non-static.
15695 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15696 New functions.
15697
15698 * frame.h (struct frame): New members resx and resy.
15699 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15700 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15701
15702 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15703 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15704
15705 * lisp.h (assoc_no_quit): Extern it.
15706
15707 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15708 Through out the file, use FONT_INFO_FROM_FACE instead of
15709 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15710 rif->per_char_metric.
15711 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15712 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15713 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15714 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15715 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15716 nonzero, use font-backend mechanism.
15717 (get_per_char_metric): New function.
15718
15719 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15720 (set_lface_from_font_name)
15721 (set_font_frame_param, free_realized_face)
15722 (prepare_face_for_display, clear_face_gcs)
15723 (Finternal_set_font_selection_order, realize_x_face)
15724 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15725 font-backend mechanism.
15726 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15727 (load_face_font) [USE_FONT_BACKEND]: Abort.
15728 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15729 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15730
15731 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15732 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15733 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15734 nonzero, register all available font drivers. Call
15735 x_default_font_parameter for deciding a font.
15736 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15737
15738 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15739 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15740 (x_set_glyph_string_clipping_exactly)
15741 (x_compute_glyph_string_overhangs)
15742 (x_draw_glyph_string_foreground)
15743 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15744 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15745 enable_font_backend is nonzero, use font-backend mechanism.
15746 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15747
157482008-02-01 Kenichi Handa <handa@m17n.org>
15749
15750 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15751 system_eol_type.
15752 (syms_of_coding): Initialize system_eol_type.
15753
15754 * process.c (Fset_process_coding_system): Inherit system's eol
15755 format if necessary.
15756
157572008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15758
15759 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15760
157612008-02-01 Kenichi Handa <handa@m17n.org>
15762
15763 * coding.c (decode_eol): Pay attention to buffer relocation in
15764 del_range_2.
15765 (decode_coding): Call decode_eol before restoring undo_list.
15766
157672008-02-01 Kenichi Handa <handa@m17n.org>
15768
15769 * charset.c (Fdefine_charset_internal): Fix setting of
15770 emacs_mule_bytes.
15771
157722008-02-01 Kenichi Handa <handa@m17n.org>
15773
15774 * keyboard.c (read_char): Check if C is a character or not before
15775 looking up Vkeyboard_translate_table.
15776
157772008-02-01 Kenichi Handa <handa@m17n.org>
15778
15779 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15780 condition to terminate the loop.
15781
157822008-02-01 Kenichi Handa <handa@m17n.org>
15783
15784 * coding.c (produce_composition): Compare charbuf[i] instead of
15785 args[i] against 0.
15786 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15787
157882008-02-01 Kenichi Handa <handa@m17n.org>
15789
15790 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15791 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15792 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15793 detect_coding.
15794 (emacs_mule_char): Handle old style (Emacs 20) component character
15795 of a composition.
15796 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15797 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15798 composition rule.
15799 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15800
158012008-02-01 Kenichi Handa <handa@m17n.org>
15802
15803 * coding.c (encode_coding_ccl): Allocate destination dynamically
15804 when necessary.
15805
158062008-02-01 Kenichi Handa <handa@m17n.org>
15807
15808 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15809 the loop. When quitted, show a proper error message.
15810
158112008-02-01 Kenichi Handa <handa@m17n.org>
15812
15813 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15814 src->clip_head and src->clip_tail temporarily instead of src->hl.
15815
15816 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15817 character sequence.
15818 (Fccl_execute_on_string): Use ASET, not XSET.
15819
158202008-02-01 Kenichi Handa <handa@m17n.org>
15821
15822 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15823
158242008-02-01 Kenichi Handa <handa@m17n.org>
15825
15826 * coding.c (decode_coding): Fix the condition of terminating the
15827 decoding loop.
15828
158292008-02-01 Kenichi Handa <handa@m17n.org>
15830
15831 * data.c (Faset): On setting a character bigger than 255 in a
15832 unibyte string, signal an error instead of make the string multibyte.
15833
158342008-02-01 Kenichi Handa <handa@m17n.org>
15835
15836 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15837 made by a mapping table.
15838
158392008-02-01 Kenichi Handa <handa@m17n.org>
15840
15841 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15842 not.
15843 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15844 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15845
15846 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15847 s->face is NULL or not.
15848
158492008-02-01 Kenichi Handa <handa@m17n.org>
15850
15851 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15852 (x_draw_glyph_string): Fix drawing of right_overhang and
15853 left_overhang around/on cursor.
15854
15855 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15856
158572008-02-01 Kenichi Handa <handa@m17n.org>
15858
15859 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15860
158612008-02-01 Kenichi Handa <handa@m17n.org>
15862
15863 * coding.c (Fdefine_coding_system_internal)
15864 (Fdefine_coding_system_alias): Avoid a duplicated element in
15865 Vcoding_system_alist.
15866
158672008-02-01 Kenichi Handa <handa@m17n.org>
15868
15869 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15870
15871 * coding.c (Qcoding_system_define_form): New variable.
15872 (syms_of_coding): Intern and staticpro it.
15873 (Fcoding_system_p): Check Qcoding_system_define_form.
15874 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15875
15876 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15877 Fcoding_system_p.
15878 (CHECK_CODING_SYSTEM): If ID is not available, call
15879 Fcheck_coding_system.
15880 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15881 Try also Fcheck_coding_system.
15882
158832008-02-01 Kenichi Handa <handa@m17n.org>
15884
15885 * coding.c (code_conversion_restore): GCPRO arg.
15886
158872008-02-01 Kenichi Handa <handa@m17n.org>
15888
15889 * character.c (lisp_string_width): Check multibyteness of STRING.
15890
158912008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15892
15893 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15894 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15895 (decode_mac_font_name): Use decode_coding_c_string instead of
15896 decode_coding.
15897 (x_load_font): Initialize fontp->fontset to -1. Set
15898 fontp->encoding_type.
15899
159002008-02-01 Kenichi Handa <handa@m17n.org>
15901
15902 * search.c (search_buffer): Give up BM search on case-fold-search
15903 if one of a target character has a case-equivalence of different
15904 byte length even if that target charcter is an ASCII.
15905 (simple_search): Fix calculation of byte length of matched text.
15906 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15907
159082008-02-01 Kenichi Handa <handa@m17n.org>
15909
15910 * coding.c (decode_coding): Fix handling of invalid bytes.
15911
159122008-02-01 Kenichi Handa <handa@m17n.org>
15913
15914 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15915 Unicode characters.
15916
159172008-02-01 Kenichi Handa <handa@m17n.org>
15918
15919 * coding.c (encode_coding_object): If a pre-write-conversion
15920 function makes a new buffer, kill it.
15921
159222008-02-01 Kenichi Handa <handa@m17n.org>
15923
15924 * coding.c (QCascii_compatible_p): New variable.
15925 (syms_of_coding): Initialize it.
15926 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15927 calling string_char.
15928 (record_conversion_result): Add `default:' case.
15929 (coding_charset_list): Delete unused variable `coding_type'.
15930 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15931 property in the plist of the coding system.
15932 (Fcoding_system_put): Check QCascii_compatible_p.
15933
159342008-02-01 Miles Bader <miles@gnu.org>
15935
15936 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15937 removed calculation of frame `f', as it's now used.
15938
159392008-02-01 Kenichi Handa <handa@m17n.org>
15940
15941 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15942 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15943 (UNIDATA): New variable.
15944 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15945 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15946 $(RUN_TEMACS) unconditionally.
15947
159482008-02-01 Kenichi Handa <handa@m17n.org>
15949
15950 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15951 (admindir): New variable.
15952 ($(lispsource)international/charprop.el): New target.
15953
159542008-02-01 Miles Bader <miles@gnu.org>
15955
15956 * character.c (chars-in-region): Remove obsolete function.
15957 (syms_of_character): Remove its initialization.
15958
159592008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15960
15961 * w32select.c (validate_coding_system)
15962 (setup_windows_coding_system): New functions.
15963 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15964 setup_windows_coding_system.
15965 (setup_config, Fw32_get_clipboard_data): Use
15966 validate_coding_system.
15967 (Fx_selection_exists): Move call to setup_config to a place
15968 where signals are allowed.
15969
15970 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15971 (Fcheck_coding_system): Add declarations.
15972
159732008-02-01 Kenichi Handa <handa@m17n.org>
15974
15975 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15976
159772008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15978
15979 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15980 string as the second argument for x_new_fontset.
15981
159822008-02-01 Kenichi Handa <handa@m17n.org>
15983
15984 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15985 (encode_coding_object): Use safe_call instead of call2.
15986
159872008-02-01 Kenichi Handa <handa@m17n.org>
15988
15989 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15990
15991 * Makefile.in (lisp): Include charprop.el.
15992
159932008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15994
15995 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15996 Not sure if it's unnecessary.
15997
159982008-02-01 Steven Tamm <steventamm@mac.com>
15999
16000 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
16001 some possibly unnecessary fontset checking code that crashed
16002 when creating a new frame.
16003
160042008-02-01 Kenichi Handa <handa@m17n.org>
16005
16006 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
16007 lookup_face.
16008
16009 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
16010
16011 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
16012
160132008-02-01 Kenichi Handa <handa@m17n.org>
16014
16015 * coding.c: Cancel the change done in HEAD on 2008-02-01.
16016 (coding_charset_list): New function.
16017
16018 * coding.h (coding_charset_list): Extern it.
16019
160202008-02-01 Kenichi Handa <handa@m17n.org>
16021
16022 * fontset.c (Fset_fontset_font): Call find_font_encoding with
16023 concatenation of family and registry.
16024
160252008-02-01 Kenichi Handa <handa@m17n.org>
16026
16027 * character.h (BYTE8_STRING): Fix typo.
16028
16029 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
16030 string to multibyte (sync to HEAD).
16031
16032 * casefiddle.c (casify_region): Handle changes in byte-length
16033 using replace_range_2 (sync to HEAD).
16034
160352008-02-01 Andreas Schwab <schwab@suse.de>
16036
16037 * chartab.c (map_char_table): GCPRO table and arg.
16038
160392008-02-01 Kenichi Handa <handa@m17n.org>
16040
16041 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
16042 already at limit.
16043
160442008-02-01 Kenichi Handa <handa@m17n.org>
16045
16046 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
16047 instead of fast_c_string_match_ignore_case.
16048 (find_font_encoding): Change argument to Lisp_Object. Use
16049 fast_string_match_ignore_case instead of
16050 fast_c_string_match_ignore_case. Change caller.
16051
160522008-02-01 Kenichi Handa <handa@m17n.org>
16053
16054 * xdisp.c (get_next_display_element): In unibyte case, decide to
16055 display in octal form by checking a character by
16056 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
16057
16058 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
16059
16060 * character.c (unibyte_has_multibyte_table): New variable.
16061
16062 * character.h (unibyte_has_multibyte_table): Extern it.
16063 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
16064
160652008-02-01 Kenichi Handa <handa@m17n.org>
16066
16067 * coding.c (encode_coding_iso_2022): Fix handling of charset
16068 annotation.
16069
160702008-02-01 Kenichi Handa <handa@m17n.org>
16071
16072 * coding.c (setup_coding_system): If coding_system is nil, use
16073 Qundecided.
16074 (Fterminal_coding_system): Return nil if terminal coding system is
16075 `undecided'.
16076 (syms_of_coding): Define coding-system `undecided' here. Setup
16077 terminal_coding as `undecided'.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * xdisp.c (message_dolog, set_message_1): Call
16082 unibyte_char_to_multibyte with arg type int.
16083
16084 * lread.c (read1): Fix reading of a char-table.
16085
16086 * print.c (print_object): Include sub char-table in circularities
16087 detection.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16092 Append the found sequences in car of ARGS instead of prepending.
16093
160942008-02-01 Kenichi Handa <handa@m17n.org>
16095
16096 * fileio.c (report_file_error): Make a unibyte string from
16097 strerror (errorno).
16098 (Fsubstitute_in_file_name): Fix the arg to
16099 unibyte_char_to_multibyte. It is evaluated twice.
16100
161012008-02-01 Kenichi Handa <handa@m17n.org>
16102
16103 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16104
161052008-02-01 Kenichi Handa <handa@m17n.org>
16106
16107 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16108 BOM is not found.
16109 (detect_coding, detect_coding_system): Optimization for ISO-2022
16110 when no 8-bit data is found.
16111
161122008-02-01 Jason Rumney <jasonr@gnu.org>
16113
16114 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16115
161162008-02-01 Kenichi Handa <handa@m17n.org>
16117
16118 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16119 CHARS.
16120
161212008-02-01 Steven Tamm <steventamm@mac.com>
16122
16123 * macterm.c (mac_encode_char): Add charset argument and update
16124 to use encoding_type.
16125 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16126 switch to pure fontset.
16127 (decode_mac_font_name): Temporarily remove decoding.
16128 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16129 (x_load_font): Temporarily remove encoding.
16130
161312008-02-01 Kenichi Handa <handa@m17n.org>
16132
16133 * xfaces.c (Fface_font): If frame is not on a window system,
16134 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16135 refer to face->font.
16136 (split_font_name_into_vector, build_font_name_from_vector)
16137 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16138 when HAVE_WINDOW_SYSTEM is defined.
16139
161402008-02-01 Kenichi Handa <handa@m17n.org>
16141
16142 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16143 (x_produce_glyphs): Fix setting of members of cmp in case
16144 cmp->glyph_len is zero.
16145
16146 * fontset.c (Fset_fontset_font): Fix docstring.
16147 (Ffontset_info): Make it backward compatible. New arg ALL.
16148
161492008-02-01 Kim F. Storm <storm@cua.dk>
16150
16151 * process.c (read_process_output): Grow decoding_buf when needed;
16152 this could cause a crash in allocate_string and compact_small_strings.
16153
161542008-02-01 Kenichi Handa <handa@m17n.org>
16155
16156 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16157
161582008-02-01 Kenichi Handa <handa@m17n.org>
16159
16160 * coding.c (setup_coding_system): Set coding->common_flags
16161 correctly for raw-text.
16162 (consume_chars): On encoding unibyte text by raw-text, don't check
16163 multibyte form.
16164 (encode_coding): On encoding by raw-text, never use translation tables.
16165
16166 * fileio.c (e_write): Short cut for the case of no encoding.
16167
161682008-02-01 Kenichi Handa <handa@m17n.org>
16169
16170 * coding.c (detect_coding, detect_coding_system): Delete unused
16171 variables.
16172
161732008-02-01 Kenichi Handa <handa@m17n.org>
16174
16175 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16176 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16177
161782008-02-01 Kenichi Handa <handa@m17n.org>
16179
16180 * coding.c (Ffind_coding_systems_region_internal): Include
16181 raw-text and no-conversion in the result.
16182
161832008-02-01 Kenichi Handa <handa@m17n.org>
16184
16185 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16186 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16187 FONT_DEF.
16188 (font_def_arg, add_arg, from_arg, to_arg): New args.
16189 (set_fontset_font): Change argument.
16190 (Fset_fontset_font): Fix for the case that TARGET is a script
16191 name and charset name.
16192 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16193
161942008-02-01 Kenichi Handa <handa@m17n.org>
16195
16196 * fontset.c (fontset_font): Rename from fontset_face. Change return
16197 value.
16198 (face_suitable_for_char_p, face_for_char): Adjust for the change
16199 of fontset_font.
16200 (make_fontset_for_ascii_face): Fix setting of the fontset element
16201 for ASCII.
16202 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16203 to get a font name.
16204 (Ffontset_info): Adjust for the change of fontset_font.
16205
16206 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16207
16208 * character.h (LEADING_CODE_LATIN_1_MIN)
16209 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16210
162112008-02-01 Kenichi Handa <handa@m17n.org>
16212
16213 * editfns.c (check_translation): New function.
16214 (Ftranslate_region_internal): Handle M:N mapping.
16215
162162008-02-01 Kenichi Handa <handa@m17n.org>
16217
16218 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16219
162202008-02-01 Kenichi Handa <handa@m17n.org>
16221
16222 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16223 goto invalid_code.
16224 (decode_coding_iso_2022): Fix handling of invalid designation.
16225
16226 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16227 after calling code_conversion_save.
16228
162292008-02-01 Kenichi Handa <handa@m17n.org>
16230
16231 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16232
16233 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16234
16235 * fontset.c: Include "intervals.h".
16236 (fontset_face): Fix comparing of Lisp_Objects.
16237 (free_face_fontset, new_fontset_from_font_name): Fix
16238 Lisp_Object/int mixup.
16239
16240 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16241
16242 * coding.c: Add many prototypes for static functions.
16243 (get_translation_table): Allow max_lookup to be NULL.
16244 (decode_coding, Ffind_coding_systems_region_internal)
16245 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16246 get_translation_table with max_lookup NULL.
16247
162482008-02-01 Kenichi Handa <handa@m17n.org>
16249
16250 * coding.c (get_translation_table): Declare it as Lisp_Object.
16251 (LOOKUP_TRANSLATION_TABLE): New macro.
16252 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16253 instead of CHAR_TABLE_REF.
16254
162552008-02-01 Kenichi Handa <handa@m17n.org>
16256
16257 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16258 annotation data format.
16259 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16260 Change arguments FROM and TO to single argument NCHARS. Change caller.
16261 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16262 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16263 (decode_coding_ccl, decode_coding_charset): Pay attention to
16264 coding->charbuf_used.
16265 (get_translation): New function.
16266 (produce_chars): New arguments translation_table and last_block.
16267 Translate characters here. Return number of carryover chars.
16268 Change caller.
16269 (produce_composition): New argument pos. Change caller.
16270 Adjust for the change of annotation data format.
16271 (produce_charset, produce_annotation): Likewise.
16272 (decode_coding, encode_coding): Don't call translate_chars.
16273 (consume_chars): New arg translation_table. Change caller.
16274 (translate_chars): Delete.
16275 (syms_of_coding): Make translation-table's number of extra slots 2.
16276
162772008-02-01 Kenichi Handa <handa@m17n.org>
16278
16279 * search.c (simple_search): Fix setting this_pos_byte in backward
16280 search.
16281
16282 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16283 byte sequence.
16284 (detect_coding_ccl): Fix setting of the variable valids.
16285
162862008-02-01 Kenichi Handa <handa@m17n.org>
16287
16288 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16289
16290 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16291
16292 * editfns.c (Ftranslate_region_internal): Rename from
16293 Ftranslate_region. Accept a char-table in TABLE.
16294 (syms_of_editfns): Defsubr Stranslate_region_internal.
16295
16296 * xfaces.c (set_lface_from_font_name): If a font is specified for
16297 a frame, generate a fontset from the font.
16298 (build_scalable_font_name): If the scalable font is requested for
16299 a specific size, don't change that size.
16300 (try_font_list): Try a scalable font also in the case that a
16301 pattern string is specified.
16302
163032008-02-01 Kenichi Handa <handa@m17n.org>
16304
16305 * xfaces.c (Fface_font): New optional arg CHARACTER.
16306
163072008-02-01 Kenichi Handa <handa@m17n.org>
16308
16309 * charset.h (CHARSET_OFFSET): New macro.
16310
163112008-02-01 Kenichi Handa <handa@m17n.org>
16312
16313 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16314
16315 * fontset.c (fontset_face): Handle the case that repertory is a
16316 char-table.
16317 (find_font_encoding): Return nil for unknown encoding.
16318 (Fset_fontset_font): Ignore a font of unknown encoding.
16319
163202008-02-01 Kenichi Handa <handa@m17n.org>
16321
16322 * keymap.c (describe_vector): Handle default value of a char table.
16323
16324 * fontset.c (fontset_face): Handle fallback fonts correctly.
16325 (Ffontset_info): Return infomation about fallback fonts.
16326
163272008-02-01 Kenichi Handa <handa@m17n.org>
16328
16329 * fontset.c (FONTSET_DEFAULT): New macro.
16330 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16331 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16332 the case that it is nil.
16333 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16334 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16335
16336 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16337 subset or superset.
16338
163392008-02-01 Kenichi Handa <handa@m17n.org>
16340
16341 * emacs.c (main): Call init_charset after syms_of_XXX.
16342
16343 * charset.c (Vcharset_map_directory): Delete.
16344 (Vcharset_map_path): New variable.
16345 (load_charset_map_from_file): Use Vcharset_map_path instead.
16346 (init_charset): Initialize Vcharset_map_path.
16347 (syms_of_charset): Delete declaration of "charset-map-directory",
16348 add declaration of "charset-map-path".
16349
163502008-02-01 Kenichi Handa <handa@m17n.org>
16351
16352 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16353 ASCII only string.
16354
16355 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16356
16357 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16358 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16359
163602008-02-01 Kenichi Handa <handa@m17n.org>
16361
16362 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16363
16364 * coding.c (QCmnemonic, QCdefalut_char)
16365 (QCdecode_translation_table, QCencode_translation_table)
16366 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16367 (get_translation_table): Return a list of translation tables if
16368 necessary.
16369 (decode_coding): Call get_translation_table with ENCODEP 0.
16370 (char_encodable_p): If translation_table is non-nil, always call
16371 translate_char.
16372 (Fdefine_coding_system_internal): Accept list of translation
16373 tables as :encode-translation-table and :decode-translation-table.
16374 (Fcoding_system_put): New function.
16375 (syms_of_coding): Declare new symbols. Defsubr
16376 Scoding_system_put.
16377 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16378 typically JISX0212.
16379
16380 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16381 when the charset is superset type.
16382
16383 * character.c (translate_char): Accept list of translation tables.
16384
163852008-02-01 Kenichi Handa <handa@m17n.org>
16386
16387 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16388 (CODING_ATTR_TRANS_TBL): New macro.
16389
16390 * coding.c (get_translation_table): New function.
16391 (translate_chars): Fix the bug of skipping annotation data.
16392 (decode_coding, encode_coding): Utilize get_translation_table.
16393 (char_encodable_p, Funencodable_char_position): Translate char if
16394 necessary.
16395 (Ffind_coding_systems_region_internal)
16396 (Fcheck_coding_systems_region): Setup translation table for encode
16397 in a coding system attribute vector in advance.
16398 (Fdefine_coding_system_internal): Allow a symbol as translation
16399 table. For shift-jis type coding system, allow 4th charset.
16400
164012008-02-01 Kenichi Handa <handa@m17n.org>
16402
16403 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16404
16405 * xdisp.c (get_next_display_element): Pass -1 as POS to
16406 FACE_FOR_CHAR if displaying a C-string.
16407
164082008-02-01 Kenichi Handa <handa@m17n.org>
16409
16410 * composite.c (get_composition_id): Handle xoff and yoff in a
16411 composition rule.
16412
16413 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16414 (struct composition): New member lbearing and rbearing.
16415
16416 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16417 (x_get_glyph_overhangs): Handle a composition glyph.
16418 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16419
16420 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16421 composition glyph.
16422
164232008-02-01 Kenichi Handa <handa@m17n.org>
16424
16425 * print.c: Include charset.h.
16426 (Vprint_charset_text_property): New variable.
16427 (Qdefault): Extern it.
16428 (PRINT_STRING_NON_CHARSET_FOUND)
16429 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16430 (print_check_string_result): New variable.
16431 (print_check_string_charset_prop): New function.
16432 (print_prune_charset_plist): New variable.
16433 (print_prune_string_charset): New function.
16434 (print_object): Call print_prune_string_charset if
16435 Vprint_charset_text_property is not t.
16436 (print_interval): Print nothing if interval->plist is nil.
16437 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16438 variable. Init and staticpro print_prune_charset_plist.
16439
164402008-02-01 Kenichi Handa <handa@m17n.org>
16441
16442 * fontset.c (new_fontset_from_font_name): Use the specified font
16443 for all characters in the new fontset.
16444
16445 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16446 OBJECT args.
16447
16448 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16449 OBJECT args for composition too.
16450
16451 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16452 OBJECT args.
16453
164542008-02-01 Kenichi Handa <handa@m17n.org>
16455
16456 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16457
16458 * fontset.c (reorder_font_vector): Adjust for the change of
16459 FONT_DEF format.
16460 (fontset_face): New arg id. Change caller.
16461 (face_for_char): New args pos and object.
16462 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16463 (fs_query_fontset): Check NAME by Fassoc too.
16464 (Fset_fontset_font): Allow non-XLFD font name.
16465 (Ffontset_info): Adjust for the change of FONT_DEF format.
16466
16467 * fontset.h (face_for_char): Adjust prototype.
16468
16469 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16470 (append_space, extend_face_to_end_of_line)
16471 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16472 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16473
16474 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16475 POS and OBJECT args.
16476
16477 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16478 POS and OBJECT args.
16479
164802008-02-01 Jason Rumney <jasonr@gnu.org>
16481
16482 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16483 of GlobalAlloc'ed memory.
16484
164852008-02-01 Kenichi Handa <handa@m17n.org>
16486
16487 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16488
16489 * charset.h (charset_table_used): Delete extern.
16490
16491 * charset.c (charset_table_used): Make it static.
16492 (map_charset_chars): Fix args to c_function with.
16493
16494 * chartab.c (map_sub_char_table_for_charset): Fix args to
16495 c_function with.
16496
16497 * coding.h (enum coding_result_code): Delete
16498 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16499
16500 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16501 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16502 (Vlast_code_conversion_error): New variables.
16503 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16504 (ONE_MORE_BYTE): Record error if any instead of signaling an
16505 error. If non-ASCII multibyte char is found, return the negative
16506 value of the code. All callers changed to check it.
16507 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16508 (record_conversion_result): New function. Change all codes setting
16509 coding->result to call this function.
16510 (detect_coding_utf_8, decode_coding_utf_8)
16511 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16512 Don't use the local variable incomplete.
16513 (emacs_mule_char): Change the second arg to `const'.
16514 (decode_coding): Fix of flushing out unprocessed data.
16515 (make_conversion_work_buffer): Fix making of a work buffer.
16516 (decode_coding_object): Return coding->dst_object.
16517
16518 * fontset.c (set_fontset_font): Fix args.
16519
16520 * lisp.h (CHARACTERBITS): Define as 22.
16521
16522 * process.c (send_process): Be sure to set coding->src_multibyte.
16523
16524 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16525
165262008-02-01 Kenichi Handa <handa@m17n.org>
16527
16528 * xdisp.c (handle_auto_composed_prop): Give limit to
16529 Fnext_single_char_property_change.
16530
165312008-02-01 Kenichi Handa <handa@m17n.org>
16532
16533 * composite.c (syms_of_composite): Don't make the composition hash
16534 table weak.
16535
16536 * fontset.c (Fset_fontset_font): Fix docstring.
16537
16538 * lisp.h (detect_coding_system): Adjust prototype.
16539
16540 * fileio.c (kill_workbuf_unwind): Delete this function.
16541 (Finsert_file_contents): Adjust the call of detect_coding_system.
16542 Get conversion_buffer by code_conversion_save. Use the macro
16543 CODING_MAY_REQUIRE_DECODING. After decoding, update
16544 coding_system.
16545
16546 * coding.h (make_conversion_work_buffer): Delete extern.
16547 (code_conversion_save): Extern it.
16548
16549 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16550 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16551 (decode_coding_utf_8): Don't do eol converion.
16552 (detect_coding_utf_16): Check coding->src_chars, not
16553 coding->src_bytes. Add heuristics for those that have no signature.
16554 (decode_coding_emacs_mule, decode_coding_iso_2022)
16555 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16556 Don't do eol converion.
16557 (adjust_coding_eol_type): Return a new coding system.
16558 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16559 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16560 each change.
16561 (decode_coding): Pay attention to undo_list. Do eol conversion for
16562 all types of coding-systems (if necessary).
16563 (Vcode_conversion_work_buf_list): Delete it.
16564 (Vcode_conversion_reused_workbuf): Rename from
16565 Vcode_conversion_reused_work_buf.
16566 (Vcode_conversion_workbuf_name): New variable.
16567 (reused_workbuf_in_use): New variable.
16568 (make_conversion_work_buffer): Delete the arg DEPTH.
16569 (code_conversion_restore): Change argument to cons.
16570 (code_conversion_save): Delete the argument BUFFER. Change callers.
16571 (detect_coding_system): New argument src_chars. Change callers.
16572 Fix for utf-16 detection.
16573 (init_coding_once): Don't use ISO_carriage_return.
16574 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16575 reused_workbuf_in_use.
16576
165772008-02-01 Kenichi Handa <handa@m17n.org>
16578
16579 * keymap.c (store_in_keymap): Pay attention to the case that idx
16580 is a cons specifying a character range.
16581
165822008-02-01 Kenichi Handa <handa@m17n.org>
16583
16584 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16585 HANDLED_RECOMPUTE_PROPS.
16586
16587 * coding.c (Fdefine_coding_system_internal): Fix checking of
16588 ascii compatibility.
16589
165902008-02-01 Kenichi Handa <handa@m17n.org>
16591
16592 * charset.c (find_charsets_in_text): Delete unused locale variable.
16593 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16594
16595 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16596 Resync charset_list to Vemacs_mule_charset_list.
16597
16598 * keymap.c (store_in_keymap): Pay attention to the case that idx
16599 is a cons specifying a character range.
16600
166012008-02-01 Kenichi Handa <handa@m17n.org>
16602
16603 * composite.c (update_compositions): Bind inhibit-read-only, etc
16604 to t before calling remove-list-of-text-properties.
16605
16606 * print.c (print_object): Always print ASCII chars as is.
16607
166082008-02-01 Kenichi Handa <handa@m17n.org>
16609
16610 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16611
16612 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16613 is a char table.
16614
166152008-02-01 Kenichi Handa <handa@m17n.org>
16616
16617 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16618
166192008-02-01 Kenichi Handa <handa@m17n.org>
16620
16621 * xfaces.c (set_lface_from_font_name): Fix for the case that
16622 FONTNAME is not fontset name.
16623
166242008-02-01 Kenichi Handa <handa@m17n.org>
16625
16626 * fns.c (base64_encode_1): Fix previous change.
16627
166282008-02-01 Kenichi Handa <handa@m17n.org>
16629
16630 * fontset.c (set_fontset_font): New function.
16631 (Fset_fontset_font): If a font is specified for a charset, use
16632 map_charset_chars to store the font spec in a fontset.
16633
166342008-02-01 Kenichi Handa <handa@m17n.org>
16635
16636 * fontset.c (fontset_face): Create a fallback fontset on demand.
16637 (make_fontset): Don't create a fallback fontset here.
16638 (free_face_fontset): Free a fallback fontset (if any) too.
16639 (n_auto_fontsets): Delete this variable.
16640 (auto_fontset_alist): New variable.
16641 (new_fontset_from_font_name): Check auto_fontset_alist.
16642 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16643 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16644 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16645 Defsubr Sfontset_list_all.
16646
166472008-02-01 Kenichi Handa <handa@m17n.org>
16648
16649 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16650
166512008-02-01 Kenichi Handa <handa@m17n.org>
16652
16653 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16654
166552008-02-01 Kenichi Handa <handa@m17n.org>
16656
16657 * editfns.c (Fgoto_char): Fix docstring.
16658
166592008-02-01 Kenichi Handa <handa@m17n.org>
16660
16661 * insdel.c (insert_from_gap): Adjust intervals correctly.
16662
166632008-02-01 Jason Rumney <jasonr@gnu.org>
16664
16665 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16666 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16667 (w32_initialize): Try to load it.
16668 (x_get_font_repertory): Use it if available.
16669 (w32_encode_char): Add shortcut for unicode output.
16670
16671 * w32fns.c (w32_load_system_font): Default charset to -1.
16672 (x_to_w32_charset): Match all fonts for unicode.
16673 (w32_to_x_charset): New parameter matching. Don't return partial
16674 or wildcard charsets.
16675 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16676 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16677 (w32_to_x_font): Match charset to real charset.
16678 (enum_font_cb2): Always list unicode versions.
16679
16680 * makefile.w32-in (temacs): Increase EMHEAP.
16681
166822008-02-01 Jason Rumney <jasonr@gnu.org>
16683
16684 * w32term.c (w32_encode_char): New charset parameter.
16685 font_info.encoding becomes encoding_type.
16686 (x_get_font_repertory): New function. Warning: stub only!
16687 (x_new_font): Return quickly if font already set.
16688 (x_new_fontset): fontsetname parameter is Lisp_Object.
16689 Use new fs_query_fontset. Try new_fontset_from_font_name.
16690 Use fontset_name for return value.
16691
16692 * w32term.h: Declare x_get_font_repertory.
16693
16694 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16695 place of find_charset_in_text. Use encode_coding_object in place
16696 of encode_coding.
16697 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16698 decode_coding.
16699
16700 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16701 of x_new_fontset.
16702 (w32_load_system_font): Initialize charset as unicode.
16703 font_info.encoding becomes encoding_type.
16704 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16705 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16706 (syms_of_w32fns): Set get_font_repertory_func.
16707
16708 * w32console.c: Include character.h. Use terminal_encode_buffer
16709 from term.c.
16710 (write_glyphs): Use new version of encode_terminal_code. Use
16711 encode_coding_object in place of encode_coding.
16712
16713 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16714 encoding becomes encoding_type.
16715
16716 * term.c (terminal_encode_buffer): Make externally visible.
16717
16718 * makefile.w32-in: Add character.h dependancies.
16719 (character.o, chartab.o): New targets.
16720
167212008-02-01 Kenichi Handa <handa@m17n.org>
16722
16723 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16724 CODING_ID_EOL_TYPE.
16725
167262008-02-01 Andreas Schwab <schwab@suse.de>
16727
16728 * coding.c (produce_chars): Revert last change.
16729
167302008-02-01 Kenichi Handa <handa@m17n.org>
16731
16732 * charset.h (charset_unicode): Extern it.
16733
16734 * charset.c (string_xstring_p): Check by (C >= 0x100).
16735 (find_charsets_in_text): Change format of the arc CHARSETS. New
16736 arg MULTIBYTE.
16737 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16738 change of find_charsets_in_text.
16739 (Fsplit_char): Fix doc. Never return unknown.
16740
16741 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16742
16743 * coding.c (Fdefine_coding_system_alias): Update
16744 Vcoding_system_list.
16745
16746 * fontset.c (load_font_get_repertory): Pay attention to the case
16747 that ENCODING of a font is specified by a char-table.
16748
16749 * xterm.c (x_get_font_repertory): Handle the case that the
16750 encoding of font is other than Unicode.
16751
167522008-02-01 Kenichi Handa <handa@m17n.org>
16753
16754 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16755 if a character is encodable by the terminal coding system. If
16756 not, produces proper number of `?'s. Update
16757 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16758 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16759
167602008-02-01 Kenichi Handa <handa@m17n.org>
16761
16762 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16763 variables.
16764 (encode_terminal_code): Change argument. Encode multiple
16765 characters at once. Store the result of encoding in
16766 terminal_encode_buffer.
16767 (write_glyphs, insert_glyphs): Adjust for the change of
16768 encode_terminal_code.
16769 (term_init): Initialize terminal_encode_buffer and
16770 terminal_encode_buf_size.
16771
16772 * coding.c (consume_chars): If coding->src_object is nil, don't
16773 check annotation.
16774
167752008-02-01 Kenichi Handa <handa@m17n.org>
16776
16777 * character.c (char_string): Use ASCII_CHAR_P instead of
16778 SINGLE_BYTE_CHAR_P.
16779
167802008-02-01 Kenichi Handa <handa@m17n.org>
16781
16782 * xdisp.c (handle_auto_composed_prop): Check if the last
16783 characters of auto-composed region is newly composed with the
16784 following characters.
16785 (handle_composition_prop): Fix checking of point being inside
16786 composition.
16787
167882008-02-01 Kenichi Handa <handa@m17n.org>
16789
16790 * fns.c (concat): Don't change multibyteness of the result by
16791 concatenating an 8-bit character.
16792
16793 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16794 multibyteness of the result when newelt is an 8-bit character.
16795
167962008-02-01 Dave Love <fx@gnu.org>
16797
16798 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16799 EMACS_INT.
16800
16801 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16802
16803 * xfaces.c (face_numeric_value): Declare dim size_t.
16804 (Finternal_lisp_face_equal_p): Remove unused f.
16805
16806 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16807 (MATRIX_ROW): Remove unused vars.
16808 (draw_glyphs, x_insert_glyphs, fast_find_position)
16809 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16810 byte/char counts.
16811
16812 * regex.c (regex_compile): Remove unused var.
16813
16814 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16815
16816 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16817 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16818
16819 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16820
16821 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16822
16823 * fileio.c (Fwrite_region): Remove unused var.
16824
16825 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16826 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16827
16828 * composite.c (Fremove_list_of_text_properties): Declare.
16829
16830 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16831 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16832 (coding_inherit_eol_type): Remove unused attrs.
16833 (detect_coding): Cast arg of detect_eol.
16834
16835 * charset.c (syms_of_charset): Remove unused var p.
16836 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16837 byte/char counts.
16838
16839 * casetab.c (set_case_table): Remove unused var.
16840
16841 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16842 unused vars.
16843
168442008-02-01 Dave Love <fx@gnu.org>
16845
16846 * xterm.c (x_bitmap_mask): Declare.
16847
168482008-02-01 Dave Love <fx@gnu.org>
16849
16850 * xterm.c (x_term_init): Fix type error.
16851
16852 * lisp.h: Add Funibyte_char_to_multibyte.
16853
16854 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16855 (Fset_coding_system_priority): Doc fix.
16856
16857 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16858
16859 * indent.c (check_composition): Make start and end EMACS_INT.
16860
16861 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16862
16863 * xdisp.c (handle_composition_prop, check_point_in_composition):
16864 Make buffer positions EMACS_INT.
16865
16866 * composite.c (find_composition, run_composition_function)
16867 (update_compositions, Ffind_composition_internal): Make buffer
16868 positions EMACS_INT.
16869
16870 * composite.h (find_composition, update_compositions): Make
16871 position args EMACS_INT.
16872
16873 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16874
16875 * intervals.c (get_property_and_range):
16876 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16877
16878 * unexalpha.c: Don't include varargs.h.
16879
168802008-02-01 Dave Love <fx@gnu.org>
16881
16882 * coding.h (ENCODE_UTF_8): New.
16883
16884 * Makefile.in (gtkutil.o): Depend on coding.h.
16885
16886 * coding.c (Fset_coding_system_priority): Doc fix.
16887
168882008-02-01 Kenichi Handa <handa@m17n.org>
16889
16890 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16891 the case of auto saving.
16892
168932008-02-01 Andreas Schwab <schwab@suse.de>
16894
16895 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16896 `range' from GC.
16897
168982008-02-01 Kenichi Handa <handa@m17n.org>
16899
16900 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16901
169022008-02-01 Kenichi Handa <handa@m17n.org>
16903
16904 * fileio.c (choose_write_coding_system): Return a decided coding system.
16905 (Fwrite_region): Set Vlast_coding_system_used to the return value
16906 of choose_write_coding_system.
16907
169082008-02-01 Kenichi Handa <handa@m17n.org>
16909
16910 * charset.c (Fset_charset_priority): Pay attention to duplicated
16911 arguments.
16912
16913 * coding.c (QCcategory): New variable.
16914 (syms_of_coding): Defsym it. Set all elements of
16915 Vcoding_category_table and their symbol values.
16916 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16917 coding-category-XXX, and coding-category-list.
16918 (Fdefine_coding_system_internal): Add category in the plist.
16919
169202008-02-01 Kenichi Handa <handa@m17n.org>
16921
16922 * callproc.c (Fcall_process): Handle carryover correctly.
16923
16924 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16925 (raw_text_coding_system): Check NILP (coding_system).
16926 (coding_inherit_eol_type): Check NILP (coding_system) and
16927 NILP (parent).
16928 (consume_chars): Fix for the case of raw-text.
16929
16930 * process.c (read_process_output): Handle carryover correctly.
16931
169322008-02-01 Dave Love <fx@gnu.org>
16933
16934 * regex.c (re_search_2): Fix last change.
16935
169362008-02-01 Kenichi Handa <handa@m17n.org>
16937
16938 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16939 target_multibyte. Even in a unibyte case, return a converted
16940 multibyte char.
16941 (GET_CHAR_AFTER): New macro.
16942 (PATFETCH): Translate via multibyte char.
16943 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16944 (SETUP_MULTIBYTE_RANGE): New macro.
16945 (regex_compile): Setup compiled code so that its multibyteness
16946 matches that of a target. Fix the handling of "[X-YZ]" using
16947 SETUP_MULTIBYTE_RANGE.
16948 (analyse_first) <charset>: For filling fastmap for all multibyte
16949 characters, don't check by BASE_LEADING_CODE_P.
16950 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16951 the same as RE_MULTIBYTE_P (bufp) now.
16952 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16953 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16954 (TRANSLATE_VIA_MULTIBYTE): New macro.
16955 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16956 It is the same as RE_MULTIBYTE_P (bufp) now.
16957 <exactn>: Translate via multibyte.
16958 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16959 translate it.
16960 <charset, charset_not>: Fetch a character by
16961 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16962 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16963 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16964 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16965 by GET_CHAR_AFTER.
16966 (bcmp_translate): Likewise.
16967
16968 * search.c (compile_pattern): Check the member target_multibyte,
16969 not the member multibyte of buf.
16970
16971 * lread.c (read1): While reading a string, set force_singlebyte
16972 and force_multibyte correctly.
16973
16974 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16975 up of unibyte_to_multibyte_table.
16976
169772008-02-01 Kenichi Handa <handa@m17n.org>
16978
16979 * coding.c (setup_coding_system): If coding has
16980 post-read-conversion or pre-write-conversion, set
16981 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16982 respectively.
16983 (decode_coding_gap): Run post-read-conversion if any.
16984
16985 * fileio.c (Finsert_file_contents): Even if we read into a
16986 unibyte buffer, check if we must decode the result or not.
16987
169882008-02-01 Kenichi Handa <handa@m17n.org>
16989
16990 * coding.c (make_conversion_work_buffer): Change the work buffer
16991 name to the same one as that of Emacs 21.
16992
169932008-02-01 Kenichi Handa <handa@m17n.org>
16994
16995 * coding.h (make_conversion_work_buffer): Adjust prototype.
16996 (code_conversion_restore): Don't extern it.
16997
16998 * coding.c (detected_mask): Delete unused variable.
16999 (decode_coding_iso_2022): Pay attention to the byte sequence of
17000 CTEXT extended segment, and retain those bytes as is.
17001 (decode_coding_ccl): Delete unused variable `valids'.
17002 (setup_coding_system): Delete unused variable `category'.
17003 (consume_chars): Delete unused variable `category'. Make it work
17004 for non-multibyte case.
17005 (make_conversion_work_buffer): Change argument.
17006 (saved_coding): Delete unused variable.
17007 (code_conversion_restore): Don't check saved_coding->destination.
17008 (code_conversion_save): New function.
17009 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
17010 instead of record_unwind_protect.
17011 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
17012 (detect_coding_system): Delete unused variable `mask'.
17013 (Fdefine_coding_system_internal): Delete unused variable id.
17014
17015 * fileio.c (kill_workbuf_unwind): New function.
17016 (Finsert_file_contents): On replacing, call
17017 make_conversion_work_buffer with correct args, and call
17018 record_unwind_protect with the first arg kill_workbuf_unwind.
17019
17020 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
17021
170222008-02-01 Kenichi Handa <handa@m17n.org>
17023
17024 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
17025 (fontset_add): Fix for the case that TO is less than TO1.
17026 (Ffontset_info): Don't use fallback fontset on checking the
17027 default fontset.
17028 (dump_fontset): New function for debugging.
17029
17030 * coding.c (Fdefine_coding_system_internal): Fix for the case that
17031 coding_type is Qcharset.
17032
170332008-02-01 Kenichi Handa <handa@m17n.org>
17034
17035 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
17036 (map_char_table): Don't inherit the value from the parent on
17037 initializing VAL. Adjust for the above change.
17038
170392008-02-01 Kenichi Handa <handa@m17n.org>
17040
17041 * coding.c (Qsignature, Qendian): Delete these variables.
17042 (syms_of_coding): Don't initialize them.
17043 (CATEGORY_MASK_UTF_16_AUTO): New macro.
17044 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
17045 detect_info->found.
17046 (decode_coding_utf_16): Don't detect BOM here.
17047 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
17048 is NOT utf_16_without_bom.
17049 (setup_coding_system): For a coding system of type utf-16, check
17050 if the attribute :endian is Qbig or not (not nil or not), and set
17051 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
17052 (detect_coding): If coding type is utf-16 and BOM detection is
17053 required, detect it.
17054 (Fdefine_coding_system_internal): For a coding system of type
17055 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
17056
170572008-02-01 Kenichi Handa <handa@m17n.org>
17058
17059 * coding.c (coding_set_source): Fix for the case that the current
17060 buffer is different from coding->src_object.
17061 (decode_coding_object): Don't use the conversion work buffer if
17062 DST_OBJECT is a buffer.
17063
170642008-02-01 Dave Love <fx@gnu.org>
17065
17066 * lread.c (read_emacs_mule_char) [len==2]: Index
17067 emacs_mule_charset correctly.
17068
170692008-02-01 Dave Love <fx@gnu.org>
17070
17071 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
17072 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
17073 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
17074 treated specially.)
17075 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
17076 (detected_mask): Remove Big5 bits.
17077
170782008-02-01 Kenichi Handa <handa@m17n.org>
17079
17080 The following changes are to make the font rescaling facility
17081 compatible with Emacs 21.
17082
17083 * xfaces.c (Vface_font_rescale_alist): Rename from
17084 Vface_resizing_fonts.
17085 (struct font_name): Rename member resizing_ratio to rescale_ratio.
17086 (font_rescale_ratio): Rename from font_resizing_ratio.
17087 (split_font_name): Set font->rescale_ratio.
17088 (better_font_p): Pay attention to font->rescale_ratio.
17089 (build_scalable_font_name): Likewise. Change RESX, and RESY
17090 fields.
17091 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17092
170932008-02-01 Kenichi Handa <handa@m17n.org>
17094
17095 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17096 (Qutf_16_le): Remove these variables.
17097 (syms_of_coding): Don't DEFSYM them.
17098 (decode_coding_utf_16): Fix handling of BOM.
17099 (encode_coding_utf_16): Fix handling of BOM.
17100
171012008-02-01 Kenichi Handa <handa@m17n.org>
17102
17103 * fileio.c (Finsert_file_contents): On replacing, before decoding
17104 the file into the work buffer, set point of the work buffer to the end.
17105
171062008-02-01 Dave Love <fx@gnu.org>
17107
17108 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17109
171102008-02-01 Dave Love <fx@gnu.org>
17111
17112 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17113 and fix C types.
17114
171152008-02-01 Kenichi Handa <handa@m17n.org>
17116
17117 * xdisp.c (SKIP_GLYPHS): New macro.
17118 (set_cursor_from_row): Pay attention to string display properties.
17119
17120 * category.c (copy_category_entry): Fix for the case that RANGE
17121 is an integer.
17122
17123 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17124
17125 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17126
171272008-02-01 Kenichi Handa <handa@m17n.org>
17128
17129 * charset.c (Fcharset_id_internal): New function.
17130 (syms_of_charset): Defsubr it.
17131
17132 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17133 with the last arg charset_list acquired from coding.
17134 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17135 the attribute coding_attr_ccl_valids.
17136
17137 * coding.h (enum define_coding_ccl_arg_index): Set the first
17138 member coding_arg_ccl_decoder to coding_arg_max.
17139
17140 * ccl.h (ccl_driver): Adjust prototype.
17141
17142 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17143 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17144 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17145 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17146 last arg Qnil.
17147
171482008-02-01 Kenichi Handa <handa@m17n.org>
17149
17150 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17151 call encode_char.
17152
17153 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17154
171552008-02-01 Dave Love <fx@gnu.org>
17156
17157 * composite.c (syms_of_composite): Make composition_hash_table weak.
17158
171592008-02-01 Kenichi Handa <handa@m17n.org>
17160
17161 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17162 (font_name_registry): Don't extern them.
17163 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17164
17165 * fontset.h (Qfontset): Don't extern it.
17166 (new_fontset_from_font_name): Extern it.
17167
17168 * fontset.c: Give 8 extra slots to fontset objects.
17169 (Qfontset_info): New variable.
17170 (syms_of_fontset): Defsym it.
17171 (FONTSET_FALLBACK): New macro.
17172 (fontset_face): Try also the default fontset.
17173 (make_fontset): Realize a fallback fontset from the default fontset.
17174 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17175 using split_font_name_into_vector and build_font_name_from_vector.
17176 (Fset_fontset_font): Access the elements of font_spec by enum
17177 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17178 name by using split_font_name_into_vector.
17179 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17180 generate a proper font name from the fontset name. Update
17181 Vfontset_alias_alist.
17182 (n_auto_fontsets): New variable.
17183 (new_fontset_from_font_name): New function.
17184 (Ffont_info): Store the information about fonts generated from the
17185 default fontset in the first extra slot of the returned char-table.
17186
17187 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17188 (font_name_registry): Delete function.
17189 (split_font_name_into_vector): New function.
17190 (build_font_name_from_vector): New function.
17191 (font_list): The argument REGISTRY is now a list of registry names.
17192 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17193 specifies an explicit font name, return the name as is. Make a
17194 list of registy names.
17195
17196 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17197 of x_new_fontset.
17198 (Fx_create_frame): Don't call x_new_fontset here. Just use
17199 x_list_fonts to check the existence of fonts.
17200
17201 * xterm.h (x_new_fontset): Adjust prototype.
17202
17203 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17204 string. Use new_fontset_from_font_name to create a fontset from a
17205 font name.
17206
172072008-02-01 Kenichi Handa <handa@m17n.org>
17208
17209 * syntax.c (Vfind_word_boundary_function_table): New name for
17210 Vnext_word_boundary_function_table.
17211 (find-word-boundary-function-table): New name for
17212 next-word-boundary-function-table.
17213
172142008-02-01 Dave Love <fx@gnu.org>
17215
17216 * Makefile.in: Fix some dependencies.
17217
17218 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17219 set it to nil before returning.
17220
17221 * composite.c (update_compositions): Fix type error.
17222
17223 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17224
172252008-02-01 Kenichi Handa <handa@m17n.org>
17226
17227 * xterm.c (x_new_font): Optimize for the case that the font is
17228 already set for the frame.
17229
172302008-02-01 Kenichi Handa <handa@m17n.org>
17231
17232 * chartab.c (char_table_ascii): Check if the char table contents
17233 is sub-char-table or not.
17234 (char_table_set, char_table_set_range): Fix argument to
17235 char_table_ascii.
17236
17237 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17238 (detect_coding_utf_8, detect_coding_utf_16)
17239 (detect_coding_emacs_mule, detect_coding_iso_2022)
17240 (detect_coding_sjis, detect_coding_big5)
17241 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17242 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17243 sequence is valid in this coding system. Change callers.
17244 (MAX_ANNOTATION_LENGTH): New macro.
17245 (ADD_ANNOTATION_DATA): New macro.
17246 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17247 ADD_ANNOTATION_DATA. Change the format of annotation data.
17248 (ADD_CHARSET_DATA): New macro.
17249 (emacs_mule_char): New argument ID. Change callers.
17250 (decode_coding_emacs_mule, decode_coding_iso_2022)
17251 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17252 Produce charset annotation data in coding->charbuf.
17253 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17254 to charset annotation data in coding->charbuf.
17255 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17256 coding->common_flags if the coding system is iso-2022 based and
17257 uses designation.
17258 (produce_composition): Adjust for the new annotation data format.
17259 (produce_charset): New function.
17260 (produce_annotation): Handle charset annotation.
17261 (handle_composition_annotation, handle_charset_annotation): New
17262 functions.
17263 (consume_chars): Handle charset annotation. Utilize the above two
17264 functions.
17265 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17266 buffer, get the deleted text as a string and set
17267 coding->src_object to that string.
17268 (detect_coding, detect_coding_system): Use the new struct
17269 coding_detection_info.
17270
17271 * coding.h (struct coding_detection_info): New structure.
17272 (struct coding_system): Adjust prototype of the member `detector'.
17273 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17274
172752008-02-01 Kenichi Handa <handa@m17n.org>
17276
17277 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17278
172792008-02-01 Dave Love <fx@gnu.org>
17280
17281 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17282 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17283 to new local and nullify apropos_accumulate before returning.
17284 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17285
172862008-02-01 Kenichi Handa <handa@m17n.org>
17287
17288 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17289 correctly.
e3eea1fc 17290
aac0c6e3
MR
172912008-02-01 Dave Love <fx@gnu.org>
17292
17293 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17294
172952008-02-01 Kenichi Handa <handa@m17n.org>
17296
17297 The following changes are to make character composition happen
17298 automatically on displaying.
17299
17300 * Makefile.in (lisp, shortlisp): Add composite.elc.
17301
17302 * composite.h (Qauto_composed, Vauto_composition_function)
17303 (Qauto_composition_function): Extern them.
17304
17305 * composite.c (Vcomposition_function_table)
17306 (Qcomposition_function_table): Delete variables.
17307 (Qauto_composed, Vauto_composition_function)
17308 (Qauto_composition_function): New variables.
17309 (run_composition_function): Don't call
17310 compose-chars-after-function.
17311 (update_compositions): Clear `auto-composed' text property.
17312 (compose_chars_in_text): Delete this function.
17313 (syms_of_composite): Staticpro Qauto_composed and
17314 Qauto_composition_function. Declare Vauto_composition_function as
17315 a Lisp variable.
17316
17317 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17318
17319 * xdisp.c (it_props): Add an entry for Qauto_composed.
17320 (handle_auto_composed_prop): New function.
17321
17322 * xselect.c (selection_data_to_lisp_data): Don't call
17323 compose_chars_in_text.
17324
173252008-02-01 Dave Love <fx@gnu.org>
17326
17327 * keyboard.c (read_char): Modify checking around use of
17328 Vkeyboard_translate_table.
17329
17330 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17331 and fix C types.
17332
173332008-02-01 Kenichi Handa <handa@m17n.org>
17334
17335 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17336 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17337 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17338 the case that the last byte is '\r' correctly.
17339 (decode_coding): Flush out the unprocessed data correctly.
17340 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17341
173422008-02-01 Dave Love <fx@gnu.org>
17343
17344 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17345 Add XK_ISO... case.
17346 (xaw_scroll_callback): Revert last change.
17347
173482008-02-01 Kenichi Handa <handa@m17n.org>
17349
17350 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17351
173522008-02-01 Kenichi Handa <handa@m17n.org>
17353
17354 * xfaces.c (Vface_resizing_fonts): New variable.
17355 (struct font_name): New member `resizing_ratio'.
17356 (font_resizing_ratio): New function.
17357 (split_font_name): Set font->resizing_ratio.
17358 (better_font_p): Pay attention to font->resizing_ratio.
17359 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17360 RESX, and RESY fields.
17361 (try_alternative_families): Try scalable fonts if
17362 Vscalable_fonts_allowed is not Qt.
17363 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17364
173652008-02-01 Dave Love <fx@gnu.org>
17366
17367 * xterm.c (xaw_scroll_callback): Cast correctly.
17368
173692008-02-01 Dave Love <fx@gnu.org>
17370
17371 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17372 (lispy_kana_keys): Comment out.
17373 (make_lispy_event) [XK_kana_A]: Comment out.
17374
17375 * xterm.c (xaw_scroll_callback): Cast call_data.
17376 (XTread_socket): Deal with ASCII keysyms.
17377 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17378
173792008-02-01 Dave Love <fx@gnu.org>
17380
17381 * xterm.c (Vx_keysym_table): New.
17382 (syms_of_xterm): Initialize it.
17383 (XTread_socket): Use it.
17384 From head: Eliminate incorrect optimization that tried to avoid
17385 decoding the output of X*LookupString.
17386 (x_get_font_repertory): Delete charset declaration.
17387
173882008-02-01 Kenichi Handa <handa@m17n.org>
17389
17390 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17391 return 0.
17392 (Fdefine_coding_system_internal): Setup
17393 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17394
173952008-02-01 Dave Love <fx@gnu.org>
17396
17397 * coding.c (Fcheck_coding_system): Doc fix.
17398
17399 * editfns.c (Finsert_byte): Return a proper value.
17400
174012008-02-01 Kenichi Handa <handa@m17n.org>
17402
17403 * coding.c (decode_coding): Fix args to translate_chars. Pay
17404 attention to Vstandard_translation_table_for_decode.
17405 (encode_coding): Fix args to translate_chars. Pay attention to
17406 Vstandard_translation_table_for_encode.
17407
17408 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17409 SINGLE_BYTE_CHAR_P.
17410
17411 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17412 not by SINGLE_BYTE_CHAR_P.
17413
17414 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17415 SINGLE_BYTE_CHAR_P.
17416
17417 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17418 SINGLE_BYTE_CHAR_P.
17419
17420 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17421 by SINGLE_BYTE_CHAR_P.
17422
17423 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17424 SINGLE_BYTE_CHAR_P.
17425
174262008-02-01 Dave Love <fx@gnu.org>
17427
17428 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17429
174302008-02-01 Dave Love <fx@gnu.org>
17431
17432 * fns.c (Flanginfo): Fix typo.
17433
17434 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17435
174362008-02-01 Kenichi Handa <handa@m17n.org>
17437
17438 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17439 (detect_coding_emacs_mule, detect_coding_iso_2022)
17440 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17441 incomplete byte sequence. Don't update *mask when correctly detected.
17442 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17443 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17444 (detect_coding, detect_coding_system): Adjust for the changes above.
17445
174462008-02-01 Kenichi Handa <handa@m17n.org>
17447
17448 * character.c (char_string): Rename from
17449 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17450 (string_char): Rename from string_char.
17451
17452 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17453 if C is greater than MAX_3_BYTE_CHAR.
17454 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17455 string_char instead of string_char_with_unification.
17456
174572008-02-01 Dave Love <fx@gnu.org>
17458
17459 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17460
174612008-02-01 Kenichi Handa <handa@m17n.org>
17462
17463 * keymap.c (push_key_description): Pay attention to force_multibyte.
17464
17465 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17466
174672008-02-01 Dave Love <fx@gnu.org>
17468
17469 * charset.c (define_charset_internal): Rename `supprementary'.
17470
17471 * Makefile.in (lisp, shortlisp): Remove latin-N.
17472
174732008-02-01 Dave Love <fx@gnu.org>
17474
17475 * xfns.c (x_window, x_window): Use use_xim.
17476
17477 * xterm.c (use_xim): Initialize.
17478 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17479 (x_term_init): Maybe set use_xim.
17480
17481 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17482
174832008-02-01 Kenichi Handa <handa@m17n.org>
17484
17485 * search.c (search_buffer): Fix case-fold-search of multibyte
17486 characters.
17487 (boyer_moore): Rename the last argument to char_high_bits.
17488
174892008-02-01 Kenichi Handa <handa@m17n.org>
17490
17491 * xdisp.c (display_string): Fix for the case of zero width glyph.
17492
17493 * xfns.c (x_set_font): Change the error message of the case that
17494 x_new_fontset returns Qt.
17495
17496 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17497 (Finternal_set_lisp_face_attribute): Use signal_error for the
17498 error of invalid fontset.
17499
17500 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17501 fontset, return Qt.
17502
175032008-02-01 Dave Love <fx@gnu.org>
17504
17505 * unexelf.c (unexec): Make .got handling not SGI-specific.
17506
17507 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17508
17509 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17510
17511 * keyboard.c (read_key_sequence): Fix type error.
17512
17513 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17514 type error.
17515
17516 * fontset.c (fontset_add): Return Lisp_Object.
17517
175182008-02-01 Dave Love <fx@gnu.org>
17519
17520 * charset.h (charset_ordered_list_tick): Declare extern.
17521
175222008-02-01 Kenichi Handa <handa@m17n.org>
17523
17524 The following changes (and some of 2008-02-01 changes of mine) are
17525 for handling syntax, category, and case conversion for unibyte
17526 characters by converting them to multibyte on the fly. With these
17527 changes, we don't have to setup syntax and case tables for unibyte
17528 characters in each language environment.
17529
17530 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17531 multibyte if necessary.
17532
17533 * bytecode.c (Fbyte_code): Likewise.
17534
17535 * character.h (LEADING_CODE_LATIN_1_MIN)
17536 (LEADING_CODE_LATIN_1_MAX): New macros.
17537 (unibyte_to_multibyte_table): Extern it.
17538 (unibyte_char_to_multibyte): New macro.
17539 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17540 (CHAR_LEADING_CODE): New macro.
17541 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17542
17543 * character.c (unibyte_to_multibyte_table): New variable.
17544 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17545 (multibyte_char_to_unibyte): If C is an eight-bit character,
17546 convert it to the corresponding byte value.
17547
17548 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17549 not 1, signals an error. Update the elements of
17550 unibyte_to_multibyte_table.
17551 (init_charset_once): Initialize unibyte_to_multibyte_table.
17552 (syms_of_charset): Define the charset `iso-8859-1'.
17553
17554 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17555 as is without converting it to unibyte. In a unibyte buffer,
17556 convert C to multibyte before checking the syntax.
17557
17558 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17559
17560 * minibuf.c (Fminibuffer_complete_word): Use the macro
17561 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17562
17563 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17564
17565 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17566 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17567 that is zero, convert an eight-bit char to multibyte.
17568 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17569 non-emacs case.
17570 (PATFETCH): Convert an eight-bit char to multibyte.
17571 (HANDLE_UNIBYTE_RANGE): New macro.
17572 (regex_compile): Setup the compiled pattern for multibyte chars
17573 even if the given regex string is unibyte. Use PATFETCH_RAW
17574 instead of PATFETCH in many places. To handle `charset'
17575 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17576 only for ASCII chars.
17577 (analyse_first) <exactn>: Simplify because the compiled pattern
17578 is multibyte.
17579 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17580 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17581 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17582 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17583 multibyte always 1.
17584 (re_search_2): In emacs, set the locale variable multibyte to 1,
17585 otherwise to 0. New local variable target_multibyte. Check it
17586 to decide the multibyteness of STR1 and STR2. If
17587 target_multibyte is zero, convert unibyte chars to multibyte
17588 before translating and checking fastmap.
17589 (TARGET_CHAR_AND_LENGTH): New macro.
17590 (re_match_2_internal): In emacs, set the locale variable multibyte
17591 to 1, otherwise to 0. New local variable target_multibyte. Check
17592 it to decide the multibyteness of STR1 and STR2. Use
17593 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17594 <charset, charset_not>: If multibyte is nonzero, check fastmap
17595 only for ASCII chars. Call bcmp_translate with
17596 target_multibyte, not with multibyte.
17597 <begline>: Declare the local variable C as `unsigned'.
17598 (bcmp_translate): Change the last arg name to target_multibyte.
17599
17600 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17601 the regexp pattern and the matching target. Set cp->buf.multibyte
17602 to the multibyteness of the regexp pattern. Set
17603 cp->but.target_multibyte to the multibyteness of the matching target.
17604 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17605 FETCH_STRING_CHAR_ADVANCE.
17606 (Freplace_match): Convert unibyte chars to multibyte.
17607
17608 * syntax.c (char_quoted, back_comment, scan_words)
17609 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17610 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17611 unibyte chars to multibyte.
17612 (skip_chars): Delete the arg syntaxp, and move the code for
17613 handling syntaxes to skip_syntaxes. Change callers.
17614 Fix the case that the multibyteness of STRING and the current
17615 buffer doesn't match.
17616 (skip_syntaxes): New function.
17617 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17618 SINGLE_BYTE_CHAR_P.
17619
176202008-02-01 Kenichi Handa <handa@m17n.org>
17621
17622 * xfaces.c (QCfontset): New variable.
17623 (LFACE_FONTSET): New macro.
17624 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17625 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17626 (Finternal_set_lisp_face_attribute)
17627 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17628 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17629 check also LFACE_FONTSET_INDEX.
17630 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17631 attrs[LFACE_FONT_INDEX].
17632 (syms_of_xfaces): Intern and staticpro QCfontset.
17633
17634 * dispextern.h (enum lface_attribute_index): New member
17635 LFACE_FONTSET_INDEX.
17636
17637 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17638
176392008-02-01 Kenichi Handa <handa@m17n.org>
17640
17641 * coding.c (coding_set_destination): Fix coding->destination for
17642 the case converting a region.
17643 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17644 (encode_coding_object): Fix coding->dst_pos and
17645 coding->dst_pos_byte for the case converting a region.
17646
17647 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17648
17649 * character.h (BYTE8_STRING): New macro.
17650
17651 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17652
176532008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17656 characters by octal form.
17657
17658 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17659
17660 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17661 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17662 _fetch_multibyte_char_len.
17663 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17664
17665 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17666
17667 * casefiddle.c (casify_object): Simplify. Handle the case that
17668 the case conversion change the byte length.
17669 (casify_region): Likewise.
17670
17671 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17672
17673 * character.c (_fetch_multibyte_char_len): Delete this variable.
17674 (syms_of_character): Setup Vprintable_chars.
17675
17676 * editfns.c (Fchar_equal): Fix for the unibyte case.
17677 (Finsert_byte): New function.
17678 (syms_of_editfns): Defsubr it.
17679
17680 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17681 of direct code 0x3ffff.
17682
17683 * search.c (Freplace_match): Fix for the unibyte case.
17684
176852008-02-01 Kenichi Handa <handa@m17n.org>
17686
17687 * lread.c (safe_to_load_p): Fix the logic.
17688
17689 * syntax.c (scan_words): Don't treat characters belonging to
17690 different scripts as constituting a word.
17691
17692 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17693
17694 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17695
17696 * emacs.c (main): In the case of --unibyte, instead of aborting on
17697 finding non-empty buffer, make it unibyte.
17698
176992008-02-01 Kenichi Handa <handa@m17n.org>
17700
17701 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17702 to create a fontset.
17703
177042008-02-01 Dave Love <fx@gnu.org>
17705
17706 * character.c (Funibyte_char_to_multibyte): Doc fix.
17707
17708 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17709
177102008-02-01 Kenichi Handa <handa@m17n.org>
17711
17712 * fontset.c (fontset_add): Make the type `int'.
17713 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17714
17715 * character.c (unibyte_char_to_multibyte)
17716 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17717 charset_unibyte, not charset_primary.
17718
17719 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17720
17721 * charset.c (charset_unibyte): Rename from charset_primary.
17722 (Funibyte_charset): Rename from Fprimary_charset.
17723 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17724 (syms_of_charset): Adjust for the above changes.
17725
17726 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17727 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17728 it->multibyte_p is zero.
17729
17730 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17731 Delete extern.
17732
177332008-02-01 Kenichi Handa <handa@m17n.org>
17734
17735 * coding.c (Fdefine_coding_system_internal): Fix category setting
17736 for a coding system of type iso-2022.
17737
177382008-02-01 Kenichi Handa <handa@m17n.org>
17739
17740 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17741
177422008-02-01 Kenichi Handa <handa@m17n.org>
17743
17744 * syntax.c (Vnext_word_boundary_function_table): New variable.
17745 (next-word-boundary-function-table): Declare it as a Lisp variable
17746 in syms_of_syntax.
17747 (scan_words): Call functions in Vnext_word_boundary_function_table
17748 if any.
17749
17750 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17751
17752 * fontset.c (fs_load_font): If fontp->charset is not negative,
17753 return fontp without setting its members.
17754
177552008-02-01 Dave Love <fx@gnu.org>
17756
17757 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17758
17759 * m/sparc.h (HAVE_ALLOCA): Delete.
17760
17761 * s/irix6-5.h: Don't include strings.h.
17762 (bcopy, bzero, bcmp): Don't undef.
17763
17764 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17765
17766 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17767 (TIOCSIGSEND): Don't test IRIX6.
17768 (bcopy, bzero, bcmp): Define conditionally.
17769
177702008-02-01 Kenichi Handa <handa@m17n.org>
17771
17772 * buffer.c (Qas, Qmake, Qto): New variables.
17773 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17774 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17775
17776 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17777 we are inserting a process output into a multibyte buffer.
17778
17779 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17780 multibyte_char_to_unibyte.
17781
17782 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17783 by the primary charset, make it eight-bit char.
17784 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17785
17786 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17787 (charset_8_bit__control, charset_8_bit_graphic)
17788 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17789 (define_charset_internal): New function.
17790 (syms_of_charset): Call define_charset_internal for pre-defined
17791 charsets.
17792
17793 * charset.h (charset_8_bit): Extern it.
17794
17795 * coding.c (make_conversion_work_buffer): Adjust for the change
17796 of Fset_buffer_multibyte.
17797 (encode_coding_raw_text): Increment p0 in the loop.
17798
17799 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17800
17801 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17802 for the change of Fset_buffer_multibyte.
17803
17804 * fns.c (Fstring_to_multibyte): New function.
17805 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17806
178072008-02-01 Dave Love <fx@gnu.org>
17808
17809 * xfns.c (x_put_x_image): Declare args.
17810
17811 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17812 (try_font_list): Declare an arg.
17813
17814 * xdisp.c (message2_nolog, set_message): Declare an arg.
17815
17816 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17817
17818 * syntax.c (scan_sexps_forward): Declare an arg.
17819
17820 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17821 Declare an arg.
17822
17823 * lisp.h (Fnew_fontset): Declare.
17824
17825 * keymap.c (push_key_description): Call CHARACTERP correctly.
17826
17827 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17828 (face_for_char): Delete unused vars.
17829 (Fset_fontset_font): Doc fix. Delete unused vars.
17830
17831 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17832
17833 * composite.c (update_compositions): Declare arg.
17834
17835 * cm.c (calccost, cmgoto): Declare args.
17836
17837 * charset.c: Remove `emacs' conditional. Doc fixes.
17838 (map_char_table_for_charset): Declare.
17839
17840 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17841
17842 * ccl.c: Remove `emacs' conditional.
17843
178442008-02-01 Kenichi Handa <handa@m17n.org>
17845
17846 The following changes are to allow specifying multiple font
17847 patterns for a character range (specified by script or charset).
17848
17849 * Makefile.in (abbrev.o): Depend on syntax.h.
17850 (xfaces.o): Depend on charset.h.
17851
17852 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17853 SINGLE_BYTE_CHAR_P.
17854
17855 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17856
17857 * character.h (Vchar_script_table): Extern it.
17858
17859 * character.c (Vscript_alist): Delete.
17860 (Vchar_script_table, Qchar_script_table): New variable.
17861 (syms_of_character): Declare Vchar_script_table as a lisp variable
17862 and initialize it.
17863
17864 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17865 have property char-table-extra-slots, make no extra slot.
17866
17867 * dispextern.h (struct face): Delete member `charset'.
17868 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17869 SINGLE_BYTE_CHAR_P.
17870 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17871 Add prototypes.
17872 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17873 (generate_ascii_font_name): Rename from generate_ascii_font.
17874
17875 * fontset.h (get_font_repertory_func): New prototype.
17876 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17877 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17878
17879 * fontset.c (Qprepend, Qappend): New variables.
17880 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17881 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17882 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17883 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17884 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17885 (load_font_get_repertory): New functions.
17886 (fontset_set): Delete.
17887 (fontset_face): New arg FACE. Return face ID, not face.
17888 Complete re-write to handle new fontset structure. Change caller.
17889 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17890 (face_for_char): Don't call lookup_face.
17891 (make_fontset_for_ascii_face): New arg FACE.
17892 (fs_load_font): New arg CHARSET_ID. Don't check
17893 Vfont_encoding_alist here.
17894 (find_font_encoding): New function.
17895 (list_fontsets): Use STRINGP, not ! NILP.
17896 (accumulate_script_ranges): New function.
17897 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17898 re-written to handle new fontset structure.
17899 (Ffontset_font): Return a copy of element.
17900 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17901 docstring of font-encoding-alist.
17902
17903 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17904 (Fset_fotset_font): Fix arguments to 5.
17905
17906 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17907
17908 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17909 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17910 (highlight_trailing_whitespace): Adjust for the change of
17911 lookup_named_face.
17912
17913 * xfaces.c: Include charset.h.
17914 (load_face_font): Delete argument C. Change caller.
17915 (generate_ascii_font_name): Rename from generate_ascii_font.
17916 (font_name_registry): New function.
17917 (cache_face): Store ascii faces before non-ascii faces in buckets.
17918 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17919 Lookup only ascii faces.
17920 (lookup_non_ascii_face): New function.
17921 (lookup_named_face): Delete argument C. Change caller.
17922 (lookup_derived_face): Delete argument C. Change caller.
17923 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17924 a string, just call font_list with it.
17925 (choose_face_font): Delete arguments FACE and C. New arg
17926 FONT_SPEC. Change caller.
17927 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17928 Change caller.
17929 (realize_non_ascii_face): New function.
17930 (realize_x_face): Call load_face_font here.
17931 (realize_tty_face): Delete argument C. Change caller.
17932 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17933 get a face ID.
17934 (dump_realized_face): Don't print charset of FACE.
17935
17936 * xfns.c (x_set_font): Always call x_new_fontset and
17937 store_frame_parameter.
17938 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17939 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17940
17941 * xterm.h (x_get_font_repertory): Extern it.
17942
17943 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17944 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17945 it->multibyte_p is zero.
17946 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17947 (x_new_fontset): If FONTSETNAME doesn't match any existing
17948 fontsets, create a new one.
17949 (x_get_font_repertory): New function.
17950
179512008-02-01 Kenichi Handa <handa@m17n.org>
17952
17953 * coding.c (Ffind_coding_systems_region_internal): Detect an
17954 ASCII only string correctly.
17955
17956 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17957 version is 0.
17958
179592008-02-01 Kenichi Handa <handa@m17n.org>
17960
17961 * lread.c: Include "coding.h".
17962 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17963 (load_each_byte, unread_char): New variables.
17964 (readchar_backlog): Delete.
17965 (readchar): Return a character unless load_each_byte is nonzero.
17966 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17967 cons. If unread_char is not -1, simply return it.
17968 (unreadchar): Handle the case that readcharfun is
17969 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17970 (read_multibyte): Delete.
17971 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17972 (read_emacs_mule_char): New functions.
17973 (Fload): Even if the file doesn't have the extension ".elc", if
17974 safe_to_load_p returns a positive version number, assume that the
17975 file contains bytecompiled code. If the version is less than 22,
17976 load the file while decoding multibyte sequences by emacs-mule.
17977 (readevalloop): Don't use readchar_backlog.
17978 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17979 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17980 (read_escape): Delete the arg BYTEREP.
17981 (read1): Set load_each_byte to 1 temporarily while handling
17982 #@NUMBER. Don't call read_multibyte.
17983 (read_vector): Call Fread with a cons. If readcharfun is
17984 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17985 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17986 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17987 and Qload_force_doc_strings.
17988
179892008-02-01 Kenichi Handa <handa@m17n.org>
17990
17991 * xdisp.c (face_before_or_after_it_pos): Call
17992 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17993
179942008-02-01 Kenichi Handa <handa@m17n.org>
17995
17996 * character.h (TRAILING_CODE_P): New macro.
17997 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17998 (string_char_with_unification): Fix prototype.
17999 (Vscript_alist): Extern it.
18000
18001 * character.c (Vscript_alist): New variable.
18002 (string_char_with_unification, str_as_unibyte)
18003 (string_escape_byte8): Add `const' to local variables.
18004 (syms_of_character): Declare script-alist as a Lisp variable.
18005
18006 * charset.h (Vcharset_ordered_list): Extern it.
18007 (charset_ordered_list_tick): Extern it.
18008 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
18009 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
18010 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
18011 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
18012 (Funify_charset): Adjust for the change of Funify_charset.
18013
18014 * charset.c (charset_ordered_list_tick): New variable.
18015 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
18016 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
18017 deunify intead of unify a charset.
18018 (string_xstring_p): Add `const' to local variables.
18019 (find_charsets_in_text): Add `const' to arguments and local variables.
18020 (encode_char): Adjust for the change of Funify_charset. Fix
18021 detecting of invalid code.
18022 (Fset_charset_priority): Increment charset_ordered_list_tick.
18023 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
18024 and TO_CODE.
18025
18026 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
18027 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
18028 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
18029 (decode_coding_ccl, consume_chars)
18030 (Ffind_coding_systems_region_internal)
18031 (Fcheck_coding_systems_region): Add `const' to local variables.
18032
18033 * print.c (print_object): Use octal form for printing the
18034 contents of a bool vector.
18035
180362008-02-01 Dave Love <fx@gnu.org>
18037
18038 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
18039 <version == 20>: Refuse to load.
18040
180412008-02-01 Dave Love <fx@gnu.org>
18042
18043 * fns.c: Move coding.h.
18044 (Qcodeset, Qdays, Qmonths): New.
18045 (concat): Use CHARACTERP instead of INTEGERP.
18046 (Flocale_codeset): Delete.
18047 (Flanginfo): New function.
18048 (syms_of_fns): Change accordingly.
18049
18050 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
18051
180522008-02-01 Dave Love <fx@gnu.org>
18053
18054 * casetab.c (init_casetab_once, init_casetab_once): Fix
18055 CHAR_TABLE_SET call.
18056
18057 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
18058
18059 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
18060
18061 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
18062 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
18063 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
18064
18065 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
18066
18067 * coding.c (ENCODE_DESIGNATION, decode_eol)
18068 (make_conversion_work_buffer, code_conversion_restore)
18069 (Fdefine_coding_system_internal): Convert Lisp types.
18070 (code_conversion_restore): Use EQ, not ==.
18071 (Fencode_coding_string): Fix code_convert_string call.
18072
18073 * coding.h (code_convert_region): Fix prototype.
18074
18075 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
18076
18077 * fontset.c (fontset_ref, fontset_set, fs_load_font)
18078 (Ffontset_info): Convert Lisp types.
18079
18080 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
18081
18082 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
18083
18084 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
18085
18086 * chartab.c: Include "...h", not <...h> in some cases.
18087
18088 * callproc.c (Fcall_process): Remove unused variables.
18089
180902008-02-01 Dave Love <fx@gnu.org>
18091
18092 * coding.c (Fset_coding_system_priority): Allow null arg list.
18093
180942008-02-01 Dave Love <fx@gnu.org>
18095
18096 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18097 (Fself_insert_and_exit): Use CHARACTERP.
18098
18099 * callproc.c (Fcall_process): Remove unused vars.
18100
18101 * xterm.c (XTread_socket): Add extra dead keysyms.
18102
18103 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18104
18105 * dispextern.h: Remove prototypes for redraw_frame,
18106 redraw_garbaged_frames.
18107
18108 * cmds.c (Fself_insert_command): Use CHARACTERP.
18109
18110 * chartab.c (make_sub_char_table): Remove unused var.
18111 (Fset_char_table_default, Fmap_char_table): Doc fix.
18112
18113 * keymap.c (access_keymap): Remove generic char code.
18114 (push_key_description): Use CHARACTERP.
18115
181162008-02-01 Dave Love <fx@gnu.org>
18117
18118 * charset.c: Doc fixes.
18119 (Funify_charset): Extra checking.
18120
181212008-02-01 Dave Love <fx@gnu.org>
18122
18123 * lread.c: Remove some unused variables.
18124 (safe_to_load_p): If safe, return the magic number version byte.
18125 (Fload): Maybe use load-with-code-conversion.
18126
181272008-02-01 Kenichi Handa <handa@m17n.org>
18128
18129 * category.c (Fmodify_category_entry): Don't modify the contents
18130 of category_set for characters out of the range. Avoid
18131 unnecessary modification.
18132
18133 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18134 Vchar_unify_table. The default value of the table is now nil.
18135
18136 * character.c (syms_of_character): Setup Vchar_width_table for
18137 eight-bit-control and raw-byte chars.
18138
18139 * charset.h (enum define_charset_arg_index): Delete
18140 charset_arg_parents and add charset_arg_subset and
18141 charset_arg_superset.
18142 (enum charset_attr_index): Delete charset_parents and add
18143 charset_subset and charset_superset.
18144 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18145 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18146 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18147 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18148 (CHARSET_SUPERSET): New macros.
18149 (charset_work): Extern it.
18150 (ENCODE_CHAR): Use charset_work.
18151 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18152 (map_charset_chars): Extern it.
18153
18154 * charset.c (load_charset_map): Set the default value of encoder
18155 and deunifier char-tables to nil.
18156 (map_charset_chars): Change argument. Change callers. Use
18157 map_char_table_for_charset instead of map_char_table.
18158 (Fmap_charset_chars): New optional args from_code and to_code.
18159 (Fdefine_charset_internal): Adjust for the change of
18160 `define-charset' (:parents -> :subset or :superset).
18161 (charset_work): New variable.
18162 (encode_char, syms_of_charset): Adjust for the change of
18163 Fdefine_charset_internal.
18164 (Ffind_charset_string): Setup the vector `charsets' correctly.
18165
18166 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18167 the previous change.
18168 (char_table_ref_and_range): Adjust for the above change.
18169 (map_sub_char_table_for_charset): New function.
18170 (map_char_table_for_charset): New function.
18171
18172 * keymap.c (describe_vector): Handle a char-table directly here.
18173 (describe_char_table): Delete.
18174
18175 * lisp.h (map_charset_chars): Delete.
18176
181772008-02-01 Dave Love <fx@gnu.org>
18178
18179 * fns.c (count_combining): Comment out (unused).
18180 (Flocale_codeset): New.
18181 (syms_of_fns): Defsubr it.
18182
18183 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18184 (size_t): Remove.
18185
181862008-02-01 Dave Love <fx@gnu.org>
18187
18188 * Makefile.in (chartab.o): Depend on charset.h.
18189
181902008-02-01 Kenichi Handa <handa@m17n.org>
18191
18192 * character.c (syms_of_character): Set the default value of
18193 Vprintable_chars to Qnil.
18194
181952008-02-01 Dave Love <fx@gnu.org>
18196
18197 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18198
181992008-02-01 Kenichi Handa <handa@m17n.org>
18200
18201 * charset.c (load_charset_map): Handle the case that from < to
18202 correctly.
18203
18204 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18205 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18206 Pay attention to raw-8-bit chars.
18207
182082008-02-01 Kenichi Handa <handa@m17n.org>
18209
18210 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18211 It is not bytecompiled now.
18212
18213 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18214 (charset_jisx0208): New variables.
18215 (Fdefine_charset_internal): Setup them if appropriate.
18216 (init_charset_once): Initialize them to -1.
18217
18218 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18219 (charset_jisx0208): Extern them.
18220
18221 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18222 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18223 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18224 (setup_iso_safe_charsets): Fix arguments to Fassq.
18225 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18226 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18227 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18228 (encode_coding_iso_2022): Change the 1st arg to
18229 ENCODE_ISO_CHARACTER to a variable.
18230
182312008-02-01 Kenichi Handa <handa@m17n.org>
18232
18233 * charset.h (enum define_charset_arg_index): New enums
18234 charset_arg_min_code and charset_arg_max_code.
18235 (struct charset): New member char_index_offset.
18236
18237 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18238 Take charset->char_index_offset into account.
18239 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18240 args[charset_arg_max_code]. Setup charset.char_index_offset.
18241 (syms_of_charset): Fix args to Fdefine_charset_internal.
18242
182432008-02-01 Dave Love <fx@gnu.org>
18244
18245 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18246
182472008-02-01 Dave Love <fx@gnu.org>
18248
18249 * coding.c: Doc fixes.
18250 (Fcoding_system_aliases): Fix return value.
18251 (Qmac): Remove (duplicated) definition.
18252
182532008-02-01 Dave Love <fx@gnu.org>
18254
362654a6
JB
18255 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18256 New functions.
aac0c6e3
MR
18257
18258 * character.c (Fstring): Doc fix.
18259
18260 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18261
362654a6 18262 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18263 (font-encoding-alist): Doc fix.
18264
182652008-02-01 Dave Love <fx@gnu.org>
18266
18267 * term.c (costs_set): Declare static, non-initialized for pcc.
18268 (encode_terminal_code): Remove unused var.
18269
18270 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18271 for K&R.
18272
18273 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18274
18275 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18276 (suffixes): Move out of make_subsidiaries for K&R.
18277
18278 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18279
18280 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18281
182822008-02-01 Dave Love <fx@gnu.org>
18283
18284 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18285
18286 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18287
182882008-02-01 Yong Lu <lyongu@asia-infonet.com>
18289
18290 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18291
18292 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18293
182942008-02-01 Kenichi Handa <handa@m17n.org>
18295
18296 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18297 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18298
182992008-02-01 Kenichi Handa <handa@m17n.org>
18300
18301 * coding.c (decode_coding_charset): Adjust for the change of
18302 Fdefine_coding_system_internal.
18303 (Fdefine_coding_system_internal): For a coding system of
18304 `charset' type, store a list of charset IDs in
18305 `charset_attr_charset_valids' element of coding attributes.
18306
183072008-02-01 Kenichi Handa <handa@m17n.org>
18308
18309 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18310 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18311 caller. Handle 2-byte and 3-byte charsets correctly.
18312 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18313 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18314 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18315 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18316 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18317 sequence.
18318 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18319 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18320 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18321 and alt&rule composition.
18322 (decode_coding_iso_2022): Handle composition correctly.
18323 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18324
18325 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18326 re-defining a charset. If the charset has :emacs-mule-id, setup
18327 emacs_mule_bytes.
18328 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18329
183302008-02-01 Kenichi Handa <handa@m17n.org>
18331
18332 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18333 (encode_coding_big5, encode_coding_charset): If coding requires safe
18334 encoding, produce a character specified by
18335 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18336
183372008-02-01 Dave Love <fx@gnu.org>
18338
18339 * xterm.c (XSetIMValues): Declare.
18340
18341 * process.c: Conditionally include sys/wait.h, pty.h.
18342
18343 * print.c (print_object): Fix print format for 64-bit systems.
18344
18345 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18346
18347 * buffer.c (emacs_strerror): Declare.
18348
18349 * fontset.c (Fclear_face_cache): Declare.
18350 (accumulate_font_info): Comment-out (unused).
18351 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18352 variables.
18353
18354 * character.h (string_escape_byte8): Declare.
18355
18356 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18357 unused vars.
18358 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18359 (Fmap_charset_chars): Doc fix.
18360
18361 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18362 (Fset_coding_system_priority, Fset_coding_system_priority)
18363 (Fdefine_coding_system_internal): Doc fix.
18364
183652008-02-01 Dave Love <fx@gnu.org>
18366
18367 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18368
183692008-02-01 Kenichi Handa <handa@m17n.org>
18370
18371 * character.c (string_escape_byte8): Make multibyte string with
18372 correct size.
18373
18374 * charset.c (Fmake_char): Delete unnecessary code.
18375
183762008-02-01 Kenichi Handa <handa@m17n.org>
18377
18378 * xfns.c (x_encode_text): Allocate coding.destination here, and
18379 call encode_coding_object with dst_object Qnil.
18380
18381 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18382 multibyte form correctly.
18383
18384 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18385 against Vfont_encoding_alist.
18386
18387 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18388 handling of charset list.
18389 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18390 (decode_coding_object): Move point to coding->dst_pos before
18391 calling post-read-conversion function.
18392 (encode_coding_object): Give correct arguments to
18393 pre-write-conversion. Ignore the return value of
18394 pre-write-conversion function. Pay attention to the case that
18395 pre-write-conversion changes the current buffer. If dst_object is
18396 Qt, even if coding->src_bytes is zero, allocate at least one byte
18397 to coding->destination.
18398
18399 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18400
18401 * charset.c (Fmake_char): Make it more backward compatible.
18402 (Fmap_charset_chars): Fix docstring.
18403
184042008-02-01 Dave Love <fx@gnu.org>
18405
18406 * coding.c: Doc fixes.
18407 (Fdefine_coding_system_alias): Use names, not symbols, in
18408 coding-system-alist.
18409
184102008-02-01 Kenichi Handa <handa@m17n.org>
18411
18412 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18413 of calling free_realized_face.
18414
184152008-02-01 Yong Lu <lyongu@asia-infonet.com>
18416
18417 * charset.c (read_hex): Don't treat SPC as a comment starter.
18418 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18419 (Fdecode_char): Fix typo.
18420
184212008-02-01 Kenichi Handa <handa@m17n.org>
18422
18423 * charset.h (struct charset): New member `code_space_mask'.
18424
18425 * coding.c (coding_set_source): Delete the local variable beg_byte.
18426 (encode_coding_charset, Fdefine_coding_system_internal):
18427 Delete the local variable charset.
18428 (Fdefine_coding_system_internal): Setup
18429 attrs[coding_attr_charset_valids] correctly.
18430
18431 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18432 member to check if CODE is valid or not.
18433 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18434 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18435 is within the range of charset->min_code and carset->max_code.
18436
184372008-02-01 Dave Love <fx@gnu.org>
18438
18439 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18440
18441 * dispextern.h (generate_ascii_font): Fix return type.
18442
18443 * xfaces.c (generate_ascii_font): Fix arg declaration.
18444
18445 * coding.c (coding_inherit_eol_type)
18446 (Fset_terminal_coding_system_internal)
18447 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18448
184492008-02-01 Kenichi Handa <handa@m17n.org>
18450
18451 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18452 multiple charsets correctly.
18453
184542008-02-01 Kenichi Handa <handa@m17n.org>
18455
18456 * search.c (boyer_moore): Fix handling of multibyte character
18457 translation.
18458
18459 * xdisp.c (display_mode_element): When the variable `elt' is
18460 changed, update `this' and `lisp_string'.
18461
184622008-02-01 Kenichi Handa <handa@m17n.org>
18463
18464 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18465
18466 * callproc.c (Fcall_process): Be sure to give the current buffer
18467 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18468
18469 * charset.c (struct charset_map_entries): New struct.
18470 (load_charset_map): Rename from parse_charset_map. New args
18471 entries and n_entries. Change caller.
18472 (load_charset_map_from_file): Rename from load_charset_map.
18473 Change caller. New arg control_flag. Call load_charset_map at
18474 the tail.
18475 (load_charset_map_from_vector): New function.
18476 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18477 (encode_char): If the charset is compact, change a character index
18478 to a code point.
18479
18480 * coding.c (coding_alloc_by_making_gap): Check the case that the
18481 source and destination are the same correctly.
18482 (decode_coding_raw_text): Set coding->consumed_char and
18483 coding->consumed to 0.
18484 (produce_chars): If coding->chars_at_source is nonzero, update
18485 coding->consumed_char and coding->consumed before calling
18486 alloc_destination.
18487 (Fdefine_coding_system_alias): Register ALIAS in
18488 Vcoding_system_alist.
18489 (syms_of_coding): Define `no-conversion' coding system at the tail.
18490
18491 * fileio.c (Finsert_file_contents): Set coding_system instead of
18492 val. If the current buffer is multibyte, always call
18493 decode_coding_gap.
18494
18495 * xfaces.c (try_font_list): Give higher priority to fontset's
18496 family than face's family.
18497
184982008-02-01 Kenichi Handa <handa@m17n.org>
18499
18500 * callproc.c (Fcall_process): Be sure to give the current buffer
18501 to decode_coding_c_string.
18502
18503 * xfaces.c (try_font_list): Give a family specified in a fontset
18504 higher priority than a family specified in a face.
18505
185062008-02-01 Kenichi Handa <handa@m17n.org>
18507
18508 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18509 Fix arguments to insert_from_buffer.
18510
18511 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18512
185132008-02-01 Kenichi Handa <handa@m17n.org>
18514
18515 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18516 (decode_coding_gap): Set coding->dst_multibyte correctly.
18517
185182008-02-01 Kenichi Handa <handa@m17n.org>
18519
18520 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18521 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18522 (encode_coding_utf_16): Substitute coding->default_char for
18523 non-Unicode characters.
18524 (decode_coding): Don't call record_insert here.
18525 (setup_coding_system): Initialize `surrogate' of
18526 coding->spec.utf_16 to 0.
18527 (EMIT_ONE_BYTE): Fix for multibyte case.
18528
18529 * insdel.c (insert_from_gap): Call record_insert.
18530
185312008-02-01 Kenichi Handa <handa@m17n.org>
18532
18533 * casefiddle.c (casify_region): Fix multibyte case.
18534
18535 * character.c (c_string_width): Add return type `int'.
18536 (char_string_with_unification): Delete arg ADVANCED.
18537
18538 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18539 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18540 (CHAR_STRING_ADVANCE): Make it do-while statement.
18541
18542 * chartab.c (sub_char_table_set_range): Optimize for the case
18543 DEPTH == 3. Add workaround code for a GCC optimization bug.
18544
18545 * charset.c (parse_charset_map): Remove an unused variable.
18546
18547 * coding.c: Delete unused variables.
18548
18549 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18550 earlier. If inserted is zero and the coding system doesn't
18551 require flushing, don't call decode_coding_gap.
18552
18553 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18554
185552008-02-01 Kenichi Handa <handa@m17n.org>
18556
18557 The following changes are for using Unicode as an internal
18558 character model, and use UTF-8 format for buffer/string
18559 representation.
18560
18561 * .gdbinit (xchartable): Adjust for the change of char table structure.
18562 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18563
18564 * Makefile.in (obj): Add character.o and chartab.o.
18565 (lisp, shortlisp): Remove utf-8.elc.
18566 (*.o): For many files, change dependency on charset.h to
18567 character.h, and add dependency on character.h.
18568 (character.o, chartab.o): New targets.
18569
18570 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18571 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18572 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18573 of "charset.h".
18574
18575 * dired.c, filelock.c: Include "character.h".
18576
18577 * alloc.c: Include "character.h" instead of "charset.h".
18578 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18579 (syms_of_alloc): Remove defsubr for Smake_char_table.
18580
18581 * buffer.c: Include "character.h" instead of "charset.h", don't
18582 include "coding.h".
18583 (Fset_buffer_multibyte): Adjust for UTF-8.
18584
18585 * buffer.h: EXFUN Fbuffer_live_p.
18586
18587 * callproc.c: Include "character.h" instead of "charset.h".
18588 (Fcall_process): Big change for the new code-conversion APIs.
18589
18590 * casetab.c: Include "character.h" instead of "charset.h".
18591 (set_canon, set_identity, shuffle): Adjust for the new
18592 map_char_table spec.
18593 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18594 accessing the char table structure.
18595
18596 * chartab.c: New file that implements char table.
18597
18598 * category.c: Include "character.h".
18599 (copy_category_entry): New function.
18600 (copy_category_table): Call map_char_table and copy_category_entry.
18601 (Fmake_category_table): Initialize all top-level slots.
18602 (char_category_set): New function.
18603 (modify_lower_category_set): Delete.
18604 (Fmodify_category_entry): Call char_table_ref_and_range.
18605
18606 * category.h (CATEGORY_SET): Just call char_category_set.
18607
18608 * ccl.c: Include "character.h".
18609 (Qccl, Qcclp): New variables.
18610 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18611 it's less than 256.
18612 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18613 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18614 and DST type.
18615 (ccl_driver): Change types of argument, adjust code accordingly.
18616 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18617 ccl_driver.
18618 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18619
18620 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18621 New members src_multibyte, dst_multibyte, consumed, and produced.
18622 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18623 (CODING_SPEC_CCL_PROGRAM): New macro.
18624 (ccl_driver): Update prototype.
18625 (Qccl, Qcclp, Fccl_program_p): Extern them.
18626 (CHECK_CCL_PROGRAM): New macro.
18627
18628 * character.c, character.h, chartab.c: New files.
18629
18630 * charset.c: Mostly re-written. Move character and multibyte sequence
18631 handling codes to character.c.
18632
18633 * charset.h: Mostly re-written. Move character and multibyte sequence
18634 handling codes to character.h.
18635
18636 * coding.c, coding.h: Mostly re-written.
18637
18638 * composite.c: Include "character.h" instead of "charset.h".
18639 (CHAR_WIDTH): Move to character.h.
18640 (HASH_KEY, HASH_VALUE): Delete.
18641
18642 * composite.h (enum composition_method): Change order of enumeration
18643 symbols.
18644
18645 * data.c: Include "character.h" instead of "charset.h".
18646 (Faref): Call CHAR_TABLE_REF for a char table.
18647 (Faset): Call CHAR_TABLE_SET for a char table.
18648
18649 * dispextern.h (free_realized_face, check_face_attribytes)
18650 (generate_ascii_font): Extern them.
18651 (free_realized_multibyte_face): Delete extern.
18652
18653 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18654 table structure.
18655
18656 * editfns.c: Include "character.h" instead of "charset.h".
18657 (Fchar_to_string): Always call CHAR_STRING.
18658
18659 * emacs.c (main): Call init_charset_once, init_charset,
18660 syms_of_chartab, and syms_of_character.
18661
18662 * fileio.c: Include "character.h" instead of "charset.h".
18663 (Finsert_file_contents): Big change for the new code-conversion API.
18664 (choose_write_coding_system, Fwrite_region): Likewise.
18665 (build_annotations_2): Delete.
18666 (e_write): Big change for the new code-conversion API.
18667
18668 * fns.c: Include "character.h" instead of "charset.h".
18669 (copy_sub_char_table): Move to chartab.c.
18670 (Fcopy_sequence): Call copy_char_table for a char table.
18671 (concat): Delete codes calling count_multibyte.
18672 (string_char_to_byte, string_byte_to_char): Adjust for the new
18673 multibyte form.
18674 (internal_equal): Adjust for the change of char table structure.
18675 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18676 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18677 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18678 (char_table_translate, optimize_sub_char_table)
18679 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18680 chartab.c.
18681 (char_table_ref_and_index): Delete.
18682 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18683 (Fmd5): Call preferred_coding_system instead of accessing
18684 Vcoding_category_list. Adjust for the new code-conversion API.
18685 (syms_of_fns): Move defsubr for char table related functions to
18686 chartab.c.
18687
18688 * fontset.c: Mostly re-written.
18689
18690 * fontset.h (struct font_info): Change type of the member encoding_type.
18691 (enum FONT_SPEC_INDEX): New enum.
18692 (fontset_font_pattern, fs_load_font): Update prototype.
18693 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18694
18695 * indent.c: Include "character.h" instead of "charset.h".
18696 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18697
18698 * insdel.c: Include "character.h" instead of "charset.h".
18699 (copy_text): Don't refer to Vnonascii_translation_table.
18700 (insert_from_gap): New function.
18701
18702 * keyboard.c: Include "character.h" instead of "charset.h".
18703 (command_loop_1): Never call direct_output_forward_char before
18704 a non-ASCII character.
18705 (read_char): If Vkeyboard_translate_table is a char table, always
18706 translate a character.
18707
18708 * keymap.c: Include "character.h".
18709 (store_in_keymap): Handle the case that IDX is a cons.
18710 (Fdefine_key): Handle the case that KEY is a cons and the car part
18711 is also a cons (range).
18712 (push_key_description): Adjust for the new character code.
18713 (describe_vector): Call describe_char_table for a char table.
18714 (describe_char_table): New function.
18715
18716 * keymap.h (describe_char_table): Extern it.
18717
18718 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18719 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18720 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18721 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18722 Delete.
18723 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18724 structure.
18725 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18726 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18727 (CHARTAB_SIZE_BITS_3): New macros.
18728 (chartab_size): Extern it.
18729 (struct Lisp_Char_Table): Re-design.
18730 (struct Lisp_Sub_Char_Table): New structure.
18731 (HASH_KEY, HASH_VALUE): Move from fns.c.
18732 (CHARACTERBITS): Define as 22.
18733 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18734 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18735 (GC_SUB_CHAR_TABLE_P): New macro.
18736 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18737 (code_convert_string_norecord): Deleted extern.
18738 (init_character_once, syms_of_character, init_charset)
18739 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18740
18741 * lread.c: Include "character.h".
18742 (read_multibyte): New arg NBYTES.
18743 (read_escape): Change the meaning of returned *BYTEREP.
18744 (to_multibyte): Delete.
18745 (read1): Adjust the handling of char table and string.
18746
18747 * print.c: Include "character.h" instead of "charset.h".
18748 (print_string): Convert 8-bit raw bytes to octal form by
18749 string_escape_byte8.
18750 (print_object): Adjust for the new multibyte form. Print 8-bit
18751 raw bytes always in octal form. Handle sub char table correctly.
18752
18753 * process.c: Include "character.h" instead of "charset.h".
18754 (read_process_output, send_process): Adjust for the new
18755 code-conversion API.
18756
18757 * puresize.h (BASE_PURESIZE): Increase.
18758
18759 * regex.c: Include "character.h" instead of "charset.h".
18760 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18761 (regex_compile): Accept a range whose starting and ending
18762 character have different leading bytes.
18763 (analyse_first): Adjust for the above change.
18764
18765 * search.c: Include "character.h" instead of "charset.h".
18766 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18767 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18768
18769 * syntax.c: Include "character.h" instead of "charset.h".
18770 (syntax_parent_lookup): Delete.
18771 (Fmodify_syntax_entry): Accept a cons as CHAR.
18772 (skip_chars): Adjust for the new multibyte form.
18773 (init_syntax_once): Call char_table_set_range instead of directly
18774 accessing the structure of a char table.
18775
18776 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18777 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18778 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18779 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18780
18781 * term.c: Include "buffer.h" and "character.h".
18782 (encode_terminal_code, write_glyphs): Adjust for the new
18783 code-conversion API.
18784 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18785
18786 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18787
18788 * xdisp.c: Include "character.h".
18789 (get_next_display_element): Adjust for the new multibyte form.
18790 (disp_char_vector): Adjust for the new char table structure.
18791 (decode_mode_spec_coding): Adjust for the new structure of
18792 coding system.
18793 (decode_mode_spec): Adjust for the new code-conversion API.
18794
18795 * xfaces.c: Include "character.h" instead of "charset.h".
18796 (load_face_font): Adjust for the change of choose_face_font and
18797 FS_LOAD_FONT.
18798 (generate_ascii_font): New function.
18799 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18800 (set_font_frame_param): Adjust for the change of choose_face_font.
18801 (free_realized_face): Make it public.
18802 (free_realized_faces_for_fontset): Rename from
18803 free_realized_multibyte_face. Free also faces realized for ASCII.
18804 (choose_face_font): Change arguments. Adjust for the change of
18805 fontset_font_pattern and FS_LOAD_FONT.
18806
18807 * xfns.c: Include "character.h".
18808 (x_encode_text): Adjust for the new code-conversion API.
18809
18810 * xselect.c: Don't include "charset.h".
18811 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18812
18813 * xterm.c: Include "character.h".
18814 (x_encode_char): New argument CHARSET. Change caller.
18815 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18816 Call ENCODE_CHAR instead of SPLIT_CHAR.
18817 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18818 CHAR_WIDTH instead of CHARSET_WIDTH.
18819 (XTread_socket): Adjust for the new code-conversion API.
18820 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18821 (x_load_font): Adjust for the change of struct font.
18822
188232008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18824
18825 * xfaces.c (face_at_buffer_position): Remove unused vars.
18826
188272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18828
18829 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18830 Fix overflow checking.
18831
188322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18833
18834 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18835 Cancel previous change.
18836
188372008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18838
18839 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18840 ccl->eight_bit_control. Fix check for buffer overflow.
18841 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18842 (ccl_driver): Initialize extra_bytes to 0.
18843
188442008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18845
18846 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18847 return it ORed with ctrl_modifier.
18848
188492008-01-29 Miles Bader <miles@gnu.org>
18850
18851 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18852
188532008-01-28 Jason Rumney <jasonr@gnu.org>
18854
18855 * w32.c (stat): Don't double check for networked drive.
18856
188572008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18858
18859 * window.c (run_window_configuration_change_hook): New function.
18860 Code extracted from set_window_buffer. Set the selected frame.
18861 (set_window_buffer): Use it.
18862 * window.h (run_window_configuration_change_hook): Declare.
18863 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18864
18865 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18866
188672008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18868
18869 * Makefile.in: Remove references to unused macros.
18870
188712008-01-26 Eli Zaretskii <eliz@gnu.org>
18872
18873 * w32.c (g_b_init_get_sid_sub_authority)
18874 (g_b_init_get_sid_sub_authority_count): New static variables.
18875 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18876 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18877 (init_user_info): Use them to retrieve uid and gid.
18878 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18879 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18880 st_uid and st_gid of the file.
18881
188822008-01-26 Jason Rumney <jasonr@gnu.org>
18883
18884 * w32.c (logon_network_drive): New function.
18885 (stat): Use it.
18886
188872008-01-26 Chong Yidong <cyd@stupidchicken.com>
18888
18889 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18890 invisible text covered with an ellipsis.
18891
188922008-01-25 Richard Stallman <rms@gnu.org>
18893
18894 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18895 jump back to beginning. Move some other initializations after that.
18896 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18897 New variables.
18898 (syms_of_xdisp): Init them.
18899
18900 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18901
18902 * buffer.c (reset_buffer_local_variables):
18903 Implement `permanent-local-hook'.
18904 (Qpermanent_local_hook): New variable.
18905 (syms_of_buffer): Init and staticpro it.
18906
189072008-01-25 Michael Albinus <michael.albinus@gmx.de>
18908
18909 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18910
189112008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18912
18913 * fns.c (Fclrhash): Return TABLE.
18914
189152008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18916
18917 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18918 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18919 is set even without positional changes.
18920 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18921
18922 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18923
189242008-01-23 Jason Rumney <jasonr@gnu.org>
18925
18926 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18927
18928 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18929 the unicode range available in MULE by locale-coding-system.
18930 Improve dbcs lead byte detection. Set event timestamp and modifiers
18931 earlier.
18932
189332008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18934
18935 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18936 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18937 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18938 when used on child processes.
18939
189402008-01-21 Michael Albinus <michael.albinus@gmx.de>
18941
18942 * dbusbind.c (Fdbus_method_return_internal): Rename from
18943 Fdbus_method_return.
18944 (Fdbus_unregister_object): Move to dbus.el.
18945 (Fdbus_call_method, Fdbus_method_return_internal)
18946 (Fdbus_send_signal): Improve debug messages.
18947
189482008-01-20 Martin Rudalics <rudalics@gmx.at>
18949
18950 * undo.c (undo_inhibit_record_point): New variable.
18951 (syms_of_undo): Initialize it.
18952 (record_point): Don't record point when undo_inhibit_record_point
18953 is set.
18954
189552008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18956
18957 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18958
18959 * xdisp.c (Qauto_hscroll_mode): New var.
18960 (syms_of_xdisp): Initialize it.
18961 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18962 window's buffer.
18963 (hscroll_windows): Don't check automatic_hscrolling_p here.
18964
18965 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18966 vscroll if we're setting window-buffer to the value it already has.
18967
189682008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18969
18970 * m/intel386.h: Remove references to XENIX.
18971
189722008-01-17 Andreas Schwab <schwab@suse.de>
18973
18974 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18975 instead of HAVE_X86_64_LIB64_DIR.
18976 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18977
189782008-01-17 Glenn Morris <rgm@gnu.org>
18979
18980 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18981 to HAVE_X86_64_LIB64_DIR.
18982
189832008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18984
18985 * s/irix3-3.h:
18986 * s/irix4-0.h:
18987 * s/386-ix.h:
18988 * s/domain.h:
18989 * s/hpux9-x11r4.h:
18990 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18991
18992 * sysdep.c: Remove code containing references to symbols defined
18993 by unsupported systems.
18994
189952008-01-16 Glenn Morris <rgm@gnu.org>
18996
18997 * coding.c (select-safe-coding-system-function): Doc fix.
18998
189992008-01-15 Glenn Morris <rgm@gnu.org>
19000
19001 * config.in: Revert 2008-01-13 change: this is a generated file.
19002
190032008-01-13 Tom Tromey <tromey@redhat.com>
19004
19005 * lisp.h: Fix typo.
19006
190072008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19008
19009 * m/sequent-ptx.h:
19010 * m/sequent.h:
19011 * s/ptx.h:
19012 * s/ptx4-2.h:
19013 * s/ptx4.h: Remove files for systems no longer supported.
19014
19015 * callproc.c (Fcall_process): Fix previous change.
19016
190172008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
19018
19019 * unexsunos4.c: Remove file, system not supported anymore.
19020
19021 * m/mips.h:
19022 * m/intel386.h:
19023 * callproc.c:
19024 * config.in:
19025 * ecrt0.c:
19026 * emacs.c:
19027 * fileio.c:
19028 * frame.c:
19029 * getpagesize.h:
19030 * keyboard.c:
19031 * lread.c:
19032 * process.c:
19033 * puresize.h:
19034 * sysdep.c:
19035 * systty.h:
19036 * syswait.h:
19037 * unexec.c:
19038 * xdisp.c:
19039 * alloc.c: Remove code containing references to symbols defined by
19040 unsupported systems.
19041
190422008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
19043
19044 * coding.c (detect_coding_mask): Fix previous change.
19045
190462008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
19047
19048 * coding.c (detect_coding_iso2022): New arg
19049 latin_extra_code_state. Allow Latin extra codes only
19050 when *latin_extra_code_state is nonzero.
19051 (detect_coding_mask): If there is a NULL byte, detect the encoding
19052 as UTF-16 or binary. If Latin extra codes exist, detect the
19053 encoding as ISO-2022 only when there's no other proper encoding is
19054 found.
19055
190562008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19057
19058 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
19059 #ifdef MAC_OS.
19060
190612008-01-08 Richard Stallman <rms@gnu.org>
19062
19063 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
19064
190652008-01-06 Nick Roberts <nickrob@snap.net.nz>
19066
19067 * keyboard.c (parse_menu_item): Don't enclose key bindings on
19068 menu bar in parentheses.
19069
190702008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
19071
19072 * m/7300.h:
19073 * m/acorn.h:
19074 * m/alliant-2800.h:
19075 * m/alliant.h:
19076 * m/alliant1.h:
19077 * m/alliant4.h:
19078 * m/altos.h:
19079 * m/amdahl.h:
19080 * m/apollo.h:
19081 * m/att3b.h:
19082 * m/aviion-intel.h:
19083 * m/aviion.h:
19084 * m/celerity.h:
19085 * m/clipper.h:
19086 * m/cnvrgnt.h:
19087 * m/convex.h:
19088 * m/cydra5.h:
19089 * m/delta88k.h:
19090 * m/dpx2.h:
19091 * m/dual.h:
19092 * m/elxsi.h:
19093 * m/f301.h:
19094 * m/gould-np1.h:
19095 * m/gould.h:
19096 * m/i860.h:
19097 * m/ibmps2-aix.h:
19098 * m/ibmrt-aix.h:
19099 * m/ibmrt.h:
19100 * m/irist.h:
19101 * m/is386.h:
19102 * m/isi-ov.h:
19103 * m/mega68.h:
19104 * m/mg1.h:
19105 * m/news-r6.h:
19106 * m/news-risc.h:
19107 * m/news.h:
19108 * m/nh3000.h:
19109 * m/nh4000.h:
19110 * m/ns16000.h:
19111 * m/ns32000.h:
19112 * m/nu.h:
19113 * m/orion.h:
19114 * m/orion105.h:
19115 * m/paragon.h:
19116 * m/pfa50.h:
19117 * m/plexus.h:
19118 * m/pyramid.h:
19119 * m/pyrmips.h:
19120 * m/sh3el.h:
19121 * m/sps7.h:
19122 * m/sr2k.h:
19123 * m/stride.h:
19124 * m/sun1.h:
19125 * m/sun2.h:
19126 * m/sun3-68881.h:
19127 * m/sun3-fpa.h:
19128 * m/sun3-soft.h:
19129 * m/sun3.h:
19130 * m/sun386.h:
19131 * m/symmetry.h:
19132 * m/tad68k.h:
19133 * m/tahoe.h:
19134 * m/targon31.h:
19135 * m/tek4300.h:
19136 * m/tekxd88.h:
19137 * m/tower32.h:
19138 * m/tower32v3.h:
19139 * m/ustation.h:
19140 * m/wicat.h:
19141 * m/xps100.h:
19142 * s/cxux.h:
19143 * s/cxux7.h:
19144 * s/dgux.h:
19145 * s/dgux4.h:
19146 * s/dgux5-4-3.h:
19147 * s/dgux5-4r2.h:
19148 * s/esix.h:
19149 * s/esix5r4.h:
19150 * s/hiuxmpp.h:
19151 * s/hiuxwe2.h:
19152 * s/iris3-5.h:
19153 * s/iris3-6.h:
19154 * s/isc2-2.h:
19155 * s/isc3-0.h:
19156 * s/isc4-0.h:
19157 * s/isc4-1.h:
19158 * s/newsos5.h:
19159 * s/newsos6.h:
19160 * s/osf1.h:
19161 * s/osf5-0.h:
19162 * s/riscix1-1.h:
19163 * s/riscix12.h:
19164 * s/sco4.h:
19165 * s/sco5.h:
19166 * s/sunos4-0.h:
19167 * s/sunos4-1.h:
19168 * s/sunos413.h:
19169 * s/sunos4shr.h:
19170 * s/umax.h:
19171 * s/unipl5-2.h:
19172 * s/xenix.h:
19173 * cxux-crt0.s:
19174 * unexapollo.c:
19175 * unexconvex.c:
19176 * unexenix.c:
19177 * unexsni.c: Remove files for systems no longer supported.
19178
19179 * m/intel386.h: Remove references to unsupported systems.
19180
19181 * w32.c (get_emacs_configuration): Remove reference to i860.
19182
19183 * sysdep.c: Remove dead code.
19184
191852008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19186
19187 * s/rtu.h:
19188 * m/masscomp.h: Remove files. Platform is obsolete.
19189
191902008-01-04 Michael Albinus <michael.albinus@gmx.de>
19191
19192 * dbusbind.c (Fdbus_method_return): New function.
19193 (xd_read_message): Add the serial number to the event.
19194 (Fdbus_register_method): Activate the function.
19195
191962008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19197
19198 * keyboard.c (read_key_sequence): Fix typo.
19199
192002008-01-03 Michael Albinus <michael.albinus@gmx.de>
19201
19202 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19203 (xd_signature, xd_append_arg): Handle element type detection for
19204 empty arrays.
19205 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19206 SDATA () calls; this must be solved more general.
19207 (Fdbus_register_signal): Use SBYTES instead of strlen.
19208
192092008-01-03 Magnus Henoch <magnus@zemdatav>
19210
19211 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19212 unsigned int for byte values (necessary for big-endian platform).
19213 (Fdbus_call_method): Handle the case of no returned arguments.
19214
192152007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19216
19217 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19218
192192007-12-31 Magnus Henoch <mange@freemail.hu>
19220
19221 * dbusbind.c (xd_signature): Signature of variant is just "v".
19222
192232007-12-30 Michael Albinus <michael.albinus@gmx.de>
19224
19225 * dbusbind.c: Fix several errors and compiler warnings.
19226 Reported by Tom Tromey <tromey@redhat.com>.
19227 (XD_ERROR, XD_DEBUG_MESSAGE)
19228 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19229 (xd_append_arg): Part for basic D-Bus types rewritten.
19230 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19231 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19232 appropriate.
19233 (xd_read_message): Return Qnil. Don't signal an error; it is not
19234 useful during event reading.
19235 (Fdbus_register_signal): Signal an error if the check for
19236 FUNCTIONP fails.
19237 (Fdbus_register_method): New function. The implementation is not
19238 complete, the call of the function signals an error therefore.
19239 (Fdbus_unregister_object): New function, renamed from
19240 Fdbus_unregister_signal. The initial check signals an error, if
19241 the object is not well formed.
19242
192432007-12-30 Richard Stallman <rms@gnu.org>
19244
19245 * textprop.c (get_char_property_and_overlay):
19246 Signal error if POSITION is out of range in a buffer.
19247
192482007-12-29 Martin Rudalics <rudalics@gmx.at>
19249
19250 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19251 because the original parameters are in pure storage now.
19252
192532007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19254
19255 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19256
192572007-12-22 Eli Zaretskii <eliz@gnu.org>
19258
19259 * callint.c (syms_of_callint) <command-history>: Add reference to
19260 history-length in the doc string.
19261
192622007-12-17 Jason Rumney <jasonr@gnu.org>
19263
19264 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19265 before passing as wParam.
19266
192672007-12-22 Michael Albinus <michael.albinus@gmx.de>
19268
19269 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19270 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19271 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19272 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19273 as number.
19274 (Fdbus_call_method): Fix docstring.
19275
192762007-12-21 Michael Albinus <michael.albinus@gmx.de>
19277
19278 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19279 New macros.
19280 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19281 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19282 Simplify.
19283 (xd_signature): New function.
19284 (xd_append_arg): Compute also signatures. Major rewrite.
19285 (xd_retrieve_arg): Make debug messages friendly.
19286 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19287 Check for signatures of arguments.
19288
192892007-12-19 Michael Albinus <michael.albinus@gmx.de>
19290
19291 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19292 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19293 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19294 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19295 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19296 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19297 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19298 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19299 (xd_retrieve_value): Remove. Functionality included in ...
19300 (xd_append_arg): New function.
19301 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19302
193032007-12-16 Michael Albinus <michael.albinus@gmx.de>
19304
19305 * dbusbind.c (top): Include <stdio.h>.
19306 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19307 dbus_message_new_method_call and dbus_message_new_signal.
19308 (Fdbus_register_signal): Rename unique_name to uname.
19309 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19310 non-existing unique name. Fix typos in matching rule. Return an
19311 object which is useful in Fdbus_unregister_signal.
19312 (Fdbus_unregister_signal): Reimplementation, in order to remove
19313 only the corresponding entry.
19314 (Vdbus_registered_functions_table): Change the order of entries.
19315 Apply these changes in xd_read_message and Fdbus_register_signal.
19316
193172007-12-16 Andreas Schwab <schwab@suse.de>
19318
19319 * fileio.c (Finsert_file_contents): Fix overflow check to not
19320 depend on undefined integer overflow.
19321
193222007-12-14 Jason Rumney <jasonr@gnu.org>
19323
19324 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19325 for characters above 127.
19326
193272007-12-13 Jason Rumney <jasonr@gnu.org>
19328
19329 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19330 before dereferencing array.
19331 (lookup_vk_code): Remove zero comparison.
19332
193332007-12-14 Michael Albinus <michael.albinus@gmx.de>
19334
19335 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19336 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19337 Use `unsigned int' instead of `uint'.
19338 (xd_read_message, Fdbus_register_signal): Split expressions into
19339 multiple lines before operators "&&" and "||", according to the
19340 GNU Coding Standards.
19341
193422007-12-14 Eli Zaretskii <eliz@gnu.org>
19343
19344 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19345
193462007-12-12 Juri Linkov <juri@jurta.org>
19347
19348 * buffer.c (Frename_buffer): In interactive spec replace
19349 `read-buffer' with `read-string' that uses `buffer-name-history'
19350 as history, and the current buffer's name as default.
19351
193522007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19353
19354 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19355 manipulating the backtrace manually.
19356 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19357 (struct backtrace, backtrace_list): Remove.
19358 (command_loop_1): Remove dead var `no_direct'.
19359
19360 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19361 preserve non-built-in buffer-local variables.
19362 (Fkill_all_local_variables): Don't re-create&re-set permanent
19363 buffer-local variables.
19364
193652007-12-09 Juri Linkov <juri@jurta.org>
19366
19367 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19368 Lisp code that uses `read-buffer' with current buffer as default.
19369
193702007-12-08 Michael Albinus <michael.albinus@gmx.de>
19371
19372 * dbusbind.c (xd_read_message): Generate an event for every
19373 registered handler. There might be several handlers registered
19374 for the same signal.
19375 (Fdbus_register_signal): Don't overwrite a registration for the
19376 same signal. Add a new registration if handlers are different.
19377 (Vdbus_registered_functions_table): Rework doc string.
19378
193792007-12-07 Michael Albinus <michael.albinus@gmx.de>
19380
19381 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19382 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19383 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19384 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19385 Unify argument lists.
19386 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19387 arguments and hash table keys. Use unique name for service.
19388 (Fdbus_unregister_signal): Remove checks.
19389 (Vdbus_registered_functions_table): Fix doc string.
19390
193912007-12-05 Magnus Henoch <mange@freemail.hu>
19392
19393 * process.c (make_process): Initialize pty_flag to 0.
19394
193952007-12-05 Jason Rumney <jasonr@gnu.org>
19396
19397 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19398 specified XBMs.
19399
194002007-12-05 Richard Stallman <rms@gnu.org>
19401
19402 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19403
194042007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19405
19406 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19407 New variable.
19408 (mac_try_close_socket) [MAC_OSX]: New function.
19409 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19410 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19411
19412 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19413 Use mac_try_close_socket.
19414
194152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19416
19417 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19418 reloc_base.
19419 (copy_dysymtab): Compute relocation base here.
19420 (rebase_reloc_address) [__ppc64__]: New function.
19421 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19422 changed.
19423
194242007-12-05 Jason Rumney <jasonr@gnu.org>
19425
19426 * w32proc.c (sys_spawnve): Quote args with wildcards.
19427
194282007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19429
19430 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19431 __objc_* sections.
19432 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19433
194342007-12-05 Michael Albinus <michael.albinus@gmx.de>
19435
19436 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19437 Move check for Vdbus_registered_functions_table to
19438 xd_read_queued_messages.
19439 (xd_read_queued_messages): Protect xd_read_message calls by
19440 internal_condition_case_1.
19441
194422007-12-04 Michael Albinus <michael.albinus@gmx.de>
19443
19444 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19445 Qdbus_system_bus and Qdbus_session_bus, respectively.
19446 (Vdbus_intern_symbols): Remove.
19447 (Vdbus_registered_functions_table): New hash table.
19448 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19449 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19450 Rewrite in order to manage registered functions by hash table
19451 Vdbus_registered_functions_table.
19452
194532007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19454
19455 * xterm.c: Update URL to Window Manager Specification in comment.
19456
194572007-12-02 Michael Albinus <michael.albinus@gmx.de>
19458
19459 * config.in (HAVE_DBUS): Add.
19460
19461 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19462 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19463 (obj): Add $(DBUS_OBJ).
19464 (LIBES): Add $(DBUS_LIBS).
19465 (dbusbind.o): New target.
19466
19467 * dbusbind.c: New file.
19468
19469 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19470
19471 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19472 (Qdbus_event): New Lisp symbol.
19473 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19474 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19475 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19476
19477 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19478
194792007-12-01 Richard Stallman <rms@gnu.org>
19480
19481 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19482
194832007-11-30 Jason Rumney <jasonr@gnu.org>
19484
19485 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19486 (w32con_reset_terminal_modes): Clear screen buffer.
19487 (w32_face_attributes): Don't use color indexes that are out of range.
19488 Only reverse the default colors.
19489
19490 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19491 WINDOWSNT.
19492
19493 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19494
194952007-11-29 Jason Rumney <jasonr@gnu.org>
19496
19497 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19498 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19499 if the terminal colors are initialized.
19500 (unspecified_fg, unspecified_bg): Remove unused declarations.
19501
195022007-11-29 Andreas Schwab <schwab@suse.de>
19503
19504 * keyboard.c (apply_modifiers): Fix typo.
19505
195062007-11-29 Richard Stallman <rms@gnu.org>
19507
19508 * keymap.c (Fcurrent_local_map): Doc fix.
19509
195102007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19511
19512 * s/gnu-kfreebsd.h: New file.
19513
195142007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19515
19516 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19517 Don't cast redundantly.
19518
19519 * keyboard.c (KEY_TO_CHAR): New macro.
19520 (parse_modifiers, apply_modifiers): Accept integer arguments.
19521 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19522 for chars and symbol keys.
19523 After doing such remapping, apply function-key-map again.
19524
195252007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19526
19527 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19528 compiled anymore.
19529
195302007-11-26 Andreas Schwab <schwab@suse.de>
19531
19532 * process.c (list_processes_1): Fix indentation level of the
19533 command column.
19534
195352007-11-23 Andreas Schwab <schwab@suse.de>
19536
19537 * editfns.c (Fformat): Handle %c specially since it requires the
19538 argument to be of type int.
19539
195402007-11-23 Markus Triska <markus.triska@gmx.at>
19541
19542 * emacs.c (main): Call init_editfns before init_process, since
19543 init_process sets Vprocess_connection_type depending on OS release.
19544
195452007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19546
19547 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19548 (find_symbol_value): Use do_symval_forwarding.
19549
19550 * data.c (set_internal): Set the value in the `cons-cell' (for
19551 Buffer_Local_values) not only for frame-local variables.
19552
195532007-11-22 Andreas Schwab <schwab@suse.de>
19554
19555 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19556 values to sprintf.
19557 * keymap.c (Fsingle_key_description): Likewise.
19558 * print.c (print_object): Likewise.
19559
195602007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19561
19562 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19563 file for image is nil.
19564
195652007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19566
19567 * term.c: Include stdarg.h.
19568 (fatal): Implement using varargs.
19569 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19570
195712007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19572
19573 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19574 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19575 Update call to buffer_slot_type_mismatch.
19576 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19577 (buffer_slot_type_mismatch): Update.
19578 * buffer.c (buffer_local_types): Remove.
19579 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19580 (defvar_per_buffer): Set the type in the buffer_objfwd.
19581
195822007-11-21 Jason Rumney <jasonr@gnu.org>
19583
19584 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19585 CreateFileMapping returns NULL on failure.
19586
195872007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19588
19589 * search.c (Fset_match_data): Remove the `evaporate' feature.
19590 (unwind_set_match_data): Don't use the `evaporate' feature.
19591
195922007-11-21 Jason Rumney <jasonr@gnu.org>
19593
19594 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19595
19596 * w32console.c (w32con_write_glyphs): Remove unused variables.
19597
195982007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19599
19600 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19601
19602 * s/darwin.h (MULTI_KBOARD): Remove.
19603
19604 * macfns.c (x_create_tip_frame, Fx_create_frame)
19605 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19606
196072007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19608
19609 * buffer.c (Fbuffer_local_value): Remove redundant test.
19610 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19611 than in `current-buffer' to match the comment.
19612 Do the swap using swap_in_global_binding.
19613
19614 * data.c (store_symval_forwarding, set_internal):
19615 * eval.c (specbind): Remove dead code.
19616
19617 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19618 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19619 Since we do not want to see internal Lisp_*fwd objects here.
19620
196212007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19622
19623 * sysdep.c (init_system_name): Use getaddrinfo if available.
19624
19625 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19626 (x_scroll_bar_note_movement): start, end, with, height in struct
19627 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19628
196292007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19630
19631 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19632
196332007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19634
19635 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19636 This undoes Richard's change of 14-Oct-2002.
19637
19638 * alloc.c (allocate_other_vector):
19639 * lisp.h (allocate_other_vector): Remove.
19640
19641 * window.c (struct save_window_data): Move non-lisp data to the end
19642 and make it `int' rather than Lisp_Object.
19643 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19644 Done wrap/unwrap integer values.
19645 (Fset_window_configuration, compare_window_configurations):
19646 Update use of fields to their new types.
19647
19648 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19649 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19650 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19651 (SET_SCROLL_BAR_X_WINDOW): Remove.
19652 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19653 Access the new x_window field directly.
19654 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19655 Don't wrap/unwrap integers into Lisp_Objects.
19656 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19657 (x_scroll_bar_report_motion):
19658 Don't wrap/unwrap integers into Lisp_Objects.
19659 (x_term_init): Use SDATA.
19660 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19661 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19662 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19663 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19664 * xfns.c (x_set_background_color):
19665 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19666 Access the new x_window field directly.
19667
19668 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19669 (allocate_pseudovector): Make non-static.
19670
19671 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19672 (allocate_pseudovector): Declare.
19673 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19674
196752007-11-15 Andreas Schwab <schwab@suse.de>
19676
19677 * editfns.c (Fformat): Correctly format EMACS_INT values.
19678 Also take precision into account when formatting an integer.
19679
19680 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19681
196822007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19683
19684 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19685 (syms_of_keyboard): Defsubr it.
19686
19687 * data.c (swap_in_global_binding): Fix longstanding bug where
19688 store_symval_forwarding was not called with the right second argument,
19689 thus causing objfwd-ing from being dropped.
19690
196912007-11-14 Juanma Barranquero <lekktu@gmail.com>
19692
19693 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19694 (Fx_display_pixel_height, Fx_display_planes)
19695 (Fx_display_color_cells, Fx_server_max_request_size)
19696 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19697 (Fx_display_visual_class, Fx_display_save_under):
19698 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19699 (Fx_display_pixel_height, Fx_display_planes)
19700 (Fx_display_color_cells, Fx_server_max_request_size)
19701 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19702 (Fx_display_mm_height, Fx_display_mm_width)
19703 (Fx_display_backing_store, Fx_display_visual_class)
19704 (Fw32_select_font, Fx_display_save_under):
19705 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19706 (Fx_display_pixel_height, Fx_display_planes)
19707 (Fx_display_color_cells, Fx_server_max_request_size)
19708 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19709 (Fx_display_save_under): Fix typos in docstrings.
19710
197112007-11-14 Juanma Barranquero <lekktu@gmail.com>
19712
19713 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19714 corresponding to deleted entries; they are an implementation detail.
19715 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19716 Remove variables.
19717 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19718 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19719 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19720 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19721 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19722 (Fw32_define_rgb_color, Fw32_load_color_file)
19723 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19724 Fix typos in docstrings.
19725 (Fx_server_version): Reflow docstring.
19726 (Fw32_shell_execute): Doc fixes.
19727
197282007-11-13 Juanma Barranquero <lekktu@gmail.com>
19729
19730 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19731 if w32_parse_hot_key returned nil.
19732
197332007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19734
19735 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19736
197372007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19738
aac0c6e3
MR
19739 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19740
19741 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19742
19743 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19744 Remove W32_SCROLL_BAR_CLICK_EVENT.
19745
19746 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19747 Add MULTIMEDIA_KEY_EVENT.
19748
19749 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19750 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19751 (make_lispy_event) [WINDOWSNT]: Use it to translate
19752 MULTIMEDIA_KEY_EVENT.
19753
19754 * w32term.h (WM_APPCOMMAND): Define if not already.
19755 (GET_APPCOMMAND_LPARAM): Likewise.
19756
19757 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19758 WM_APPCOMMAND.
19759
19760 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19761 (syms_of_w32fns): Export and initialize it.
19762 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19763
197642007-11-09 Chong Yidong <cyd@stupidchicken.com>
19765
19766 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19767 twice.
19768
19769 * xdisp.c (handle_face_prop): Fix last change.
19770
197712007-11-09 Richard Stallman <rms@gnu.org>
19772
19773 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19774 not just for after-strings and before-strings.
19775 Call face_for_overlay_string and pass the overlay to it.
19776 (handle_display_prop): Determine whether property came from an overlay.
19777 Pass OVERLAY arg to handle_single_display_spec.
19778 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19779 (load_overlay_strings): Fill in it->string_overlays.
19780 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19781
19782 * xfaces.c (face_for_overlay_string): Function renamed from
19783 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19784
19785 * dispextern.h (struct it): New elt string_overlays.
19786 New elt from_overlay, also in stack.
19787 Rearrange a few elements.
19788 (face_for_overlay_string): Decl renamed from
19789 face_at_buffer_position_no_overlays, and add argument.
19790
197912007-11-09 Richard Stallman <rms@gnu.org>
19792
19793 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19794 to get the base face for an overlay string.
19795
19796 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19797
19798 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19799
19800 * xdisp.c (handle_stop): Move some code out of loop.
19801
198022007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19803
19804 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19805 Fix conversion from Lisp object to ATSUFontID.
19806
198072007-11-09 Jason Rumney <jasonr@gnu.org>
19808
19809 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19810
198112007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19812
19813 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19814 Don't assume regions are aligned to page boundary.
19815 (print_load_command_name): Add LC_UUID if defined.
19816
198172007-11-09 Richard Stallman <rms@gnu.org>
19818
19819 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19820
198212007-11-07 Jason Rumney <jasonr@gnu.org>
19822
19823 * s/windows95.h: Remove.
19824
198252007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19826
19827 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19828 abort with a message on unhandled store_type values.
19829
198302007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19831
19832 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19833 Remove HAVE_X11R5 and HAVE_X11R4.
19834
198352007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19836
19837 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19838
198392007-11-01 Johan Bockgård <bojohan@gnu.org>
19840
19841 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19842 Don't set s->stippled_p here, since it has already been set by
19843 x_set_glyph_string_gc from x_draw_glyph_string.
19844
198452007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19846
19847 * sunfns.c: Remove file.
19848
19849 * m/sun386.h:
19850 * m/sun2.h:
19851 * m/sparc.h: Remove Sun windows code.
19852
198532007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19854
19855 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19856 (init_keyboard): Set current_kboard's window-system to nil.
19857 (tty_read_avail_input): Typo.
19858 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19859
198602007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19861
19862 * s/usg5-4.h:
19863 * s/usg5-3.h:
19864 * s/ptx.h:
19865 * m/is386.h:
19866 * m/ibmps2-aix.h:
19867 * Makefile.in: Remove all mentions of X10.
19868
19869 * dispnew.c (syms_of_display): Don't mention version 10.
19870
198712007-10-28 Juanma Barranquero <lekktu@gmail.com>
19872
19873 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19874 ($(BLD)/abbrev.$(O)): Remove.
19875
198762007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19877
19878 Rewrite abbrev.c in Elisp.
19879 * image.c (Qcount): Don't declare as extern.
19880 (syms_of_image): Initialize and staticpro `Qcount'.
19881 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19882 * emacs.c (main): Don't call syms_of_abbrev.
19883 * Makefile.in (obj): Remove abbrev.o.
19884 (abbrev.o): Remove.
19885 * abbrev.c: Remove.
19886
198872007-10-26 Martin Rudalics <rudalics@gmx.at>
19888
19889 * window.c (window_min_size_2): Don't count header-line.
19890
198912007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19892
19893 * frame.h (struct frame): Move all bit fields after the first bit
19894 field to take advantage of the available space. Group all the
19895 chars together to reduce wasted space due to padding.
19896
198972007-10-26 Juanma Barranquero <lekktu@gmail.com>
19898
19899 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19900
19901 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19902 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19903 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19904 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19905 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19906 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19907 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19908 (last_marked, mark_object_loop_halt): Make static.
19909
19910 * frame.c (syms_of_frame) <delete-frame-functions>:
19911 Fix typo in docstring.
19912
199132007-10-25 Juanma Barranquero <lekktu@gmail.com>
19914
19915 * w32.c (init_environment): Fix tiny memory leak.
19916 (w32_get_resource): Remove unused variable `ok'.
19917
199182007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19919
19920 Make `window-system' into a keyboard-local variable (rather than
19921 frame-local as done originally by multi-tty).
19922
19923 * keyboard.h (struct kboard): Add Vwindow_system.
19924 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19925 (mark_kboards): Mark Vwindow_system.
19926
19927 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19928 (init_display): Don't set the obsolete `window-system' frame-param.
19929
19930 * xterm.c (x_term_init):
19931 * w32term.c (w32_create_terminal):
19932 * term.c (init_tty): Set Vwindow_system.
19933 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19934 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19935
19936 * xfns.c (Fx_create_frame, x_create_tip_frame):
19937 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19938 * macfns.c (Fx_create_frame):
19939 Don't set the obsolete `window-system' frame-param.
19940
19941 * frame.h (Qwindow_system): Remove.
19942 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19943 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19944
199452007-10-24 Richard Stallman <rms@gnu.org>
19946
19947 * frame.c (x_figure_window_size): For fullscreen case,
19948 set USPosition | PPosition without clobbering rest of window_prompting.
19949
19950 * keyboard.c (Fcurrent_idle_time): Doc fix.
19951
19952 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19953
199542007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19955
19956 * process.c (unwind_request_sigio): Only define if __ultrix__.
19957
19958 * callproc.c (child_setup): Remove spurious *.
19959
19960 * lisp.h (Fget_text_property): Declare.
19961 (have_menus_p): Declare it here rather than in sys-dep header files.
19962 * macterm.h (have_menus_p):
19963 * msdos.h (have_menus_p):
19964 * xterm.h (have_menus_p): Remove.
19965
19966 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19967 (Fmake_variable_frame_local): Just check the variable's const-ness
19968 rather than checking nil or t.
19969
199702007-10-22 Jason Rumney <jasonr@gnu.org>
19971
19972 * w32fns.c: Include math.h.
19973 (w32_abort): Declaration moved to nt/config.nt.
19974
19975 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19976 (abort): Redefinition moved to nt/config.nt.
19977
19978 * m/windowsnt.h: Remove.
19979
199802007-10-22 Juanma Barranquero <lekktu@gmail.com>
19981
19982 * emacs.c (Fdump_emacs): Fix typo in message.
19983 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19984 <installation-directory>: Reflow docstring.
19985
199862007-10-22 Juri Linkov <juri@jurta.org>
19987
19988 * minibuf.c: Allow minibuffer default to be a list of default values.
19989 With empty input use the first element of this list as returned default.
19990 (string_to_object)
19991 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19992 (read_minibuf): If defalt is cons, set histstring to its car.
19993 (Fread_string): If default_value is cons, set val to its car.
19994 (Fread_buffer): If def is cons, use its car.
19995 (Fcompleting_read): If defalt is cons, set val to its car.
19996
199972007-10-21 Michael Albinus <michael.albinus@gmx.de>
19998
19999 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
20000
200012007-10-20 Juanma Barranquero <lekktu@gmail.com>
20002
20003 * doc.c (Fdocumentation): Check for advice in all cases.
20004
200052007-10-19 Chong Yidong <cyd@stupidchicken.com>
20006
20007 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
20008
200092007-10-19 Richard Stallman <rms@gnu.org>
20010
20011 * doc.c (Fdocumentation): Check for and handle an advised function.
20012
200132007-10-19 Juanma Barranquero <lekktu@gmail.com>
20014
20015 * process.c (Fset_process_filter): Doc fix.
20016
200172007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
20018
20019 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
20020 which caused key-translation-map to applied repeatedly (thus breaking
20021 double-mode).
20022
200232007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20024
20025 * xselect.c (x_own_selection, x_handle_selection_clear)
20026 (x_clear_frame_selections):
20027 * w32menu.c (list_of_panes, list_of_items):
20028 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
20029 * textprop.c (validate_plist, interval_has_all_properties)
20030 (interval_has_some_properties, interval_has_some_properties_list)
20031 (add_properties, text_property_list):
20032 * process.c (Fget_buffer_process, list_processes_1, status_notify):
20033 * minibuf.c (Fassoc_string):
20034 * macselect.c (x_own_selection, x_clear_frame_selections)
20035 (Fx_disown_selection_internal):
20036 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
20037 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
20038
200392007-10-17 Chong Yidong <cyd@stupidchicken.com>
20040
20041 * process.c: Link to libs for calling res_init() if available.
20042 (Fmake_network_process): Call res_init() before getaddrinfo or
20043 gethostbyname, if possible.
20044
200452007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
20046
20047 * lread.c (read1): Set pvectype for char_tables.
20048
20049 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
20050 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
20051 Add type checks.
20052 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
20053
20054 * alloc.c (free_misc): Use XMISCTYPE.
20055 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
20056
200572007-10-17 Glenn Morris <rgm@gnu.org>
20058
20059 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
20060 (syms_of_minibuf): Add Qcompletion_ignore_case.
20061 * dired.c (Qcompletion_ignore_case): Change to external.
20062 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
20063 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
20064 (Fread_file_name): Use it rather than intern'ing.
20065
20066 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
20067 (Fread_coding_system): Ignore case of user input.
20068
200692007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20070
20071 * xdisp.c (handle_display_prop): Ignore display specs after
20072 replacing one when string text is being replaced.
20073 (handle_single_display_spec): Pretend as if characters with display
20074 property haven't been consumed only when buffer text is being replaced.
20075
200762007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
20077
20078 * xfns.c (Fx_create_frame, Fx_display_list):
20079 * window.c (window_fixed_size_p, enlarge_window)
20080 (shrink_window_lowest_first):
20081 * macterm.c (init_font_name_table):
20082 * macfns.c (Fx_create_frame, Fx_display_list):
20083 * lread.c (close_load_descs):
20084 * keyboard.c (read_char_x_menu_prompt):
20085 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
20086 * coding.c (code_convert_region_unwind): Test the type of an object
20087 rather than just !NILP before extracting data from it.
20088
20089 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20090
20091 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20092 (XMISCANY): New macro.
20093 (XMISCTYPE): Use it.
20094 (struct Lisp_Misc_Any): New type.
20095 (union Lisp_Misc): Use it.
20096 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20097 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20098 (find_symbol_value, set_internal, default_value, Fset_default)
20099 (Fmake_variable_buffer_local, Fmake_local_variable)
20100 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20101 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20102 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20103 * alloc.c (allocate_buffer): Set the size and tag.
20104 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20105 Use XMISCANY.
20106 (die): Follow the GNU convention for error messages.
20107 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20108 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20109 tag any more.
20110 (set_buffer_internal_1):
20111 * frame.c (store_frame_param):
20112 * eval.c (specbind):
20113 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20114
20115 * doc.c (Fsnarf_documentation): Simplify.
20116
201172007-10-14 Juanma Barranquero <lekktu@gmail.com>
20118
20119 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20120 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20121
201222007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20123
20124 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20125
201262007-10-14 Juanma Barranquero <lekktu@gmail.com>
20127
20128 * eval.c (do_autoload): Don't save autoloads.
20129
20130 * data.c (Ffset): Save autoload of the function being set.
20131
201322007-10-07 John Paul Wallington <jpw@pobox.com>
20133
20134 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20135 parameter before setting up faces.
20136
201372007-10-13 Eli Zaretskii <eliz@gnu.org>
20138
20139 * ccl.c (Fregister_code_conversion_map):
20140 * keyboard.c (append_tool_bar_item): Reformat last change.
20141
20142 * lisp.h (eabs): Rename from `abs'. All callers changed.
20143
201442007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20145
20146 * buffer.c (add_overlay_mod_hooklist):
20147 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20148 * fontset.c (make_fontset):
20149 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20150 (append_tool_bar_item):
20151 * macmenu.c (grow_menu_items):
20152 * w32menu.c (grow_menu_items):
20153 * xmenu.c (grow_menu_items): Use larger_vector.
20154
201552007-10-13 Eli Zaretskii <eliz@gnu.org>
20156
20157 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20158 selected frame'' on MSDOS).
20159
201602007-10-12 Martin Rudalics <rudalics@gmx.at>
20161
20162 * frame.c (Qexplicit_name): New variable.
20163 (x_report_frame_params): Report it in parameter alist.
20164 (syms_of_frame): Intern and staticpro it.
20165
201662007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20167
20168 * macfns.c (x_create_tip_frame): Set terminal for frame.
20169
201702007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20171
20172 * frame.c (Qenvironment): Remove.
20173 (syms_of_frame) <Qenvironment>: Don't initialize.
20174 (Fdelete_frame): Don't treat the `environment' param specially.
20175 * frame.h (Qenvironment): Don't declare.
20176 * callproc.c (set_initial_environment): Don't set unused frame param.
20177
20178 * frame.c (Fframe_with_environment): Remove.
20179 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20180
20181 * lisp.h (Fframe_with_environment): Don't declare.
20182
201832007-10-10 Juanma Barranquero <lekktu@gmail.com>
20184
20185 * indent.c (indent_tabs_mode, last_known_column)
20186 (last_known_column_modified): Make static.
20187 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20188
201892007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20190
20191 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20192
201932007-10-09 Jason Rumney <jasonr@gnu.org>
20194
20195 * w32term.c (x_set_window_size): Disable code that attempts to tell
20196 Lisp code about a size change before it actually happens.
20197
201982007-10-09 Richard Stallman <rms@gnu.org>
20199
20200 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20201 return HANDLED_RETURN.
20202
202032007-10-08 Martin Rudalics <rudalics@gmx.at>
20204
20205 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20206 when there's an unread command event.
20207
20208 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20209 window autoselection act appropriately when leaving selected frame.
20210 (syms_of_frame): Initialize focus_follows_mouse.
20211 * frame.h (focus_follows_mouse): Extern it.
20212 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20213 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20214 * msdos.c (dos_rawgetc): Likewise.
20215 * w32term.c (w32_read_socket): Likewise.
20216 * xterm.c (handle_one_xevent): Likewise.
20217 * xdisp.c (syms_of_xdisp): In doc-string of
20218 mouse-autoselect-window mention focus-follows-mouse.
20219
202202007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20221
20222 * macterm.c (mac_load_query_font): Fix missing return value.
20223 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20224 Add BLOCK_INPUT.
20225
202262007-10-08 Richard Stallman <rms@gnu.org>
20227
20228 * xdisp.c (get_window_cursor_type): Implement documented behavior
20229 for cursor-in-non-selected-windows = t.
20230
202312007-10-08 Jason Rumney <jasonr@gnu.org>
20232
20233 * w32.c (w32_get_resource): Always close registry keys.
20234
202352007-10-08 Jason Rumney <jasonr@gnu.org>
20236
20237 * makefile.w32-in (LIBS): Add COMCTL32.
20238
20239 * w32fns.c (globals_of_w32fns): Init common controls.
20240
202412007-10-08 Richard Stallman <rms@gnu.org>
20242
20243 * image.c (our_memory_buffer): Rename from omfib_buffer.
20244
202452007-10-08 Richard Stallman <rms@gnu.org>
20246
20247 * buffer.c (Foverlays_at): Doc fix.
20248
202492007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20250
20251 * fns.c (Fplist_put): Preserve uneven tail data.
20252
202532007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20254
20255 * termhooks.h (enum event_kind): Remove trailing comma.
20256
20257 * frame.h (enum): Remove trailing comma.
20258
202592007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20260
20261 * w32proc.c (delete_child): Don't terminate threads of zombies.
20262
202632007-10-08 Martin Rudalics <rudalics@gmx.at>
20264
20265 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20266
20267 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20268 last-repeatable-command.
20269 (init_kboard): Initialize Vlast_repeatable_command.
20270 (command_loop_1): Set it to real_this_command unless that was
20271 bound to an input event.
20272 (mark_kboards): Mark it.
20273
202742007-10-08 Richard Stallman <rms@gnu.org>
20275
20276 * eval.c (condition-case): Doc fix.
20277
202782007-10-08 Masatake YAMATO <jet@gyve.org>
20279
20280 * xfaces.c (tty_supports_face_attributes_p): Fix code
20281 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20282 was copied and not edited.
20283
202842007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20285
20286 Add new `input-decode-map' keymap and use it for terminal
20287 escape sequences.
20288 * keyboard.h (struct kboard): Add Vinput_decode_map.
20289 Remove Vlocal_key_translation_map.
20290 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20291 (init_kboard): Init input-decode-map.
20292 Replace local-key-translation-map back with key-translation-map.
20293 (syms_of_keyboard): Declare input-decode-map.
20294 Remove local-key-translation-map. Update docstrings.
20295 (mark_kboards): Mark Vinput_decode_map.
20296 Don't mark Vlocal_key_translation_map.
20297 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20298 Replace local-key-translation-map back with key-translation-map.
20299 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20300 Bind in input-decode-map rather than function-key-map.
20301
20302 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20303 This was made redundant by the previous introduction of XSETPVECTYPE.
20304
203052007-10-09 Richard Stallman <rms@gnu.org>
20306
20307 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20308
203092007-09-29 Richard Stallman <rms@gnu.org>
20310
20311 * eval.c (internal_condition_case_2, internal_condition_case_1)
20312 (internal_condition_case): Reenable abort if x_catching_errors ()
20313 to see if that really happens and why.
20314
203152007-10-06 Andreas Schwab <schwab@suse.de>
20316
20317 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20318
203192007-10-04 Juanma Barranquero <lekktu@gmail.com>
20320
20321 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20322
203232007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20324
20325 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20326
203272007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20328
20329 * window.h (struct window):
20330 * window.c (struct save_window_data, struct saved_window):
20331 * termhooks.h (struct terminal):
20332 * process.h (struct Lisp_Process):
20333 * frame.h (struct frame):
20334 * buffer.h (struct buffer):
20335 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20336 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20337 The size field of (pseudo)vectors is now unsigned.
20338 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20339
20340 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20341 Turn `count' into an integer.
20342
20343 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20344 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20345 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20346 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20347 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20348
20349 * alloc.c (allocate_pseudovector): New fun.
20350 (ALLOCATE_PSEUDOVECTOR): New macro.
20351 (allocate_window, allocate_terminal, allocate_frame)
20352 (allocate_process): Use it.
20353 (mark_vectorlike): New function.
20354 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20355 (mark_terminals): Use it.
20356 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20357 (Fmake_byte_code): Use XSETPVECTYPE.
20358
20359 * frame.c (Fframe_parameters): Minor simplification.
20360
20361 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20362
20363 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20364
20365 * buffer.c (Fget_buffer_create, init_buffer_once):
20366 * lread.c (defsubr):
20367 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20368
20369 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20370 defined differently in the m/*.h files.
20371 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20372 (XSETPVECTYPE): New macro.
20373 (XSETPSEUDOVECTOR): Use it.
20374
20375 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20376 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20377
20378 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20379 * lread.c (defvar_per_buffer):
20380 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20381
20382 * window.c (candidate_window_p): Only consider as visible frames that
20383 are on the same terminal.
20384
20385 * m/ibms390x.h (MARKBIT): Remove unused macro.
20386
203872007-10-01 Juanma Barranquero <lekktu@gmail.com>
20388
20389 * lread.c (Fload): Fix typo in docstring.
20390
203912007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20392
20393 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20394 of a non-zero value can't yield zero.
20395
203962007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20397
20398 * term.c (term_clear_mouse_face, term_mouse_highlight)
20399 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20400
20401 * print.c (safe_debug_print): Use XHASH.
20402
20403 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20404 Lisp elements such as tags.
20405 (XHASH): New macro.
20406 (EQ): Use it.
20407 (SREF, SSET, STRING_COPYIN): Use SDATA.
20408 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20409
20410 * alloc.c (mark_terminal): Remove left-over declaration.
20411 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20412 (allocate_vectorlike): Remove type argument. Adjust callers.
20413 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20414 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20415
20416 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20417 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20418 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20419 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20420 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20421 Use them.
20422
20423 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20424 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20425 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20426
204272007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20428
20429 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20430 loaded by default.
20431
204322007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20433
20434 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20435 on this tty.
20436 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20437
20438 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20439 Update all users.
20440 (handle_one_term_event): Use Gpm_DrawPointer.
20441 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20442 Signal errors instead of returning nil. Always return nil.
20443 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20444 Make it a noop if gpm-mouse was not activated.
20445 (syms_of_term): Update names.
20446
204472007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20448
20449 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20450 (init_sys_modes): Check that gpm_tty is the current tty.
20451
20452 * alloc.c (allocate_terminal): Set the vector size to only count the
20453 lisp fields. Initialize those to nil.
20454 (mark_object): Don't treat terminals specially.
20455 (mark_terminal): Remove.
20456 (mark_terminals): Use mark_object instead.
20457
20458 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20459 the GC to the beginning.
20460
20461 * indent.h:
20462 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20463
20464 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20465
204662007-09-25 Jason Rumney <jasonr@gnu.org>
20467
20468 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20469
20470 * w32console.c (create_w32cons_output): Remove.
20471
20472 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20473
20474 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20475 (reset_sys_modes): Use reset_terminal_modes_hook.
20476
204772007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20478
20479 * eval.c (do_autoload): Don't output any message.
20480
204812007-09-24 Juri Linkov <juri@jurta.org>
20482
20483 * emacs.c (standard_args): Change priority of "--no-splash"
20484 from 40 to 3. Add "--no-desktop" with the same priority.
20485
204862007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20487
20488 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20489 and optimize the case where they are all 1.
20490
204912007-09-23 Johannes Weiner <hannes@saeurebad.de>
20492
20493 * lisp.h (abs): Define if not defined.
20494 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20495 Don't define `abs', since it's defined in lisp.h.
20496
204972007-09-22 Eli Zaretskii <eliz@gnu.org>
20498
20499 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20500 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20501 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20502 (init_tty): Use DEV_TTY instead of "/dev/tty".
20503 [WINDOWSNT]: No need to protect from NAME arg being null.
20504
205052007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20506
20507 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20508 up the tty state.
20509
205102007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20511
20512 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20513 (gpm_tty): Change its type.
20514 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20515 (gpm_tty): Change its type and initialize it.
20516 (Fterm_open_connection): Check the frame is indeed a tty.
20517 Use the new gpm_tty.
20518 (Fterm_close_connection): Use the new gpm_tty.
20519 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20520 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20521
205222007-09-21 Juanma Barranquero <lekktu@gmail.com>
20523
20524 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20525 underline_color, to draw strike-through.
20526
205272007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20528
20529 * lisp.h (allocate_terminal): Declare.
20530
20531 * window.c (candidate_window_p): Consider frames that are being placed
20532 by the user as somewhere between visible and iconified.
20533 (window_loop): Prefer windows on the current frame.
20534 (Fselect_window): Move the use of select-frame to the beginning so we
20535 can just delegate all the work (it'll call us back anyway).
20536
20537 * frame.c (Qdisplay_environment_variable):
20538 * frame.h (Qdisplay_environment_variable): Delete.
20539
20540 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20541 of the first arg, since that value may be a union.
20542
20543 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20544 parameter rather than Qdisplay_environment_variable. If all else
20545 fails, look for DISPLAY in initial-environment.
20546
205472007-09-21 Glenn Morris <rgm@gnu.org>
20548
20549 * Makefile.in (emacstool): Remove target.
20550 (lisp, shortlisp): Remove termdev.elc.
20551
205522007-09-21 Markus Triska <markus.triska@gmx.at>
20553
20554 * xterm.c (x_delete_display): Compile session management conditionally.
20555
205562007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20557
20558 * callproc.c (getenv_internal_1): New function.
20559 (getenv_internal): Use it.
20560 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20561
20562 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20563 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20564 (Fset_terminal_parameter): Work with dead terminals as well.
20565 (Fmodify_terminal_parameters): Remove.
20566
20567 * terminal.c (get_terminal): Handle terminals.
20568 Make sure the terminal returned is live.
20569 (create_terminal): Use allocate_terminal.
20570 (mark_terminals): Move to alloc.c.
20571 (delete_terminal): Use terminal->name as liveness status.
20572 NULL out fields after freeing their contents.
20573 Don't deallocate the object.
20574 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20575 rather than an int.
20576 (Fterminal_live_p): Accept non-integer arguments.
20577 (Fterminal_list): Return terminal objects rather than an ints.
20578
20579 * alloc.c (enum mem_type): New member for `terminal' objects.
20580 (allocate_terminal): New function.
20581 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20582 Handle terminals.
20583 (mark_terminal): New fun.
20584 (mark_terminals): Move from terminal.c.
20585
20586 * term.c (get_tty_terminal): Don't treat output_initial specially.
20587 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20588 (delete_tty): Use terminal->name as liveness status.
20589
20590 * termhooks.h (struct terminal): Make it into a pseudovector.
20591 Remove `deleted' replaced by checking `name's nullness.
20592
20593 * print.c (print_object): Handle terminals.
20594
20595 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20596 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20597
20598 * frame.c (make_terminal_frame):
20599 * keyboard.c (tty_read_avail_input):
20600 * w32term.c (x_delete_terminal):
20601 * xfns.c (Fx_create_frame, x_create_tip_frame):
20602 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20603
206042007-09-20 Glenn Morris <rgm@gnu.org>
20605
20606 * process.c (Fmake_network_process): Doc fix.
20607
206082007-09-19 Jason Rumney <jasonr@gnu.org>
20609
20610 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20611
206122007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20613
20614 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20615 Fix a C warning regarding variable constness.
20616
20617 * xterm.c (handle_one_xevent): Fix a C warning.
20618
206192007-09-18 Jason Rumney <jasonr@gnu.org>
20620
20621 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20622
206232007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20624
20625 * gtkutil.c (gdpy_def): New variable.
20626 (xg_initialize): Initialize gdpy_def.
20627 (xg_display_close): If no other display exists, set gdpy_def to a
20628 new connection.
20629
206302007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20631
20632 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20633 when we have no file name for the icon.
20634 (xg_tool_bar_expose_callback): Remove.
20635 (xg_create_tool_bar): Don't connect expose signal to
20636 xg_tool_bar_expose_callback.
20637 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20638
206392007-09-16 Andreas Schwab <schwab@suse.de>
20640
20641 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20642 values instead of zapping them.
20643
206442007-09-14 Glenn Morris <rgm@gnu.org>
20645
20646 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20647 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20648 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20649 scope and rename to omfib_buffer for clarity.
20650 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20651
206522007-09-14 Kenichi Handa <handa@m17n.org>
20653
20654 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20655
206562007-09-13 Jason Rumney <jasonr@gnu.org>
20657
20658 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20659
20660 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20661
20662 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20663 (mac_term_init): Call here instead, passing rif.
20664
206652007-09-13 Glenn Morris <rgm@gnu.org>
20666
20667 * s/hpux.h: No longer define `static' as nothing.
20668
206692007-09-13 Johan Bockgård <bojohan@gnu.org>
20670
20671 * callint.c (Fcall_interactively): Remove unused var `fun'.
20672
206732007-09-12 Romain Francoise <romain@orebokech.com>
20674
20675 * window.c (prefer_window_split_horizontally, display_buffer):
20676 Revert 2007-09-08 change.
20677
206782007-09-12 Glenn Morris <rgm@gnu.org>
20679
20680 * alloca.c: Remove file.
20681 * Makefile.in (alloca): Do not undef.
20682 (allocaobj, alloca.o): Remove.
20683 (otherobj): Remove allocaobj.
20684 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20685 * regex.c (C_ALLOCA): Remove all references and code that was only
20686 used when this was defined.
20687 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20688 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20689 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20690
20691 * Makefile.in (SOURCES, unlock, relock): Delete.
20692
20693 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20694 (menu_grab_callback): All uses changed.
20695
20696 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20697 (x_reply_selection_request): All uses changed.
20698
206992007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20700
20701 * lread.c (load_warn_old_style_backquotes): Change message to look
20702 better when it appears in the middle of byte-compiler messages.
20703
207042007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20705
20706 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20707
20708 * xterm.c (x_create_terminal): Add comment.
20709
20710 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20711
207122007-09-10 Richard Stallman <rms@gnu.org>
20713
20714 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20715
207162007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20717
20718 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20719 (DEFUN): Document `intspec', use it instead of `prompt'.
20720
20721 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20722
20723 * data.c (Finteractive_form): If the interactive specification starts
20724 with a `(', use it as a Lisp form.
20725
20726 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20727 name and file modes.
20728
20729 * callint.c (Fcall_interactively): Comment fixes.
20730
207312007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20732
20733 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20734 and compiled functions.
20735
207362007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20737
20738 * window.c (prefer_window_split_horizontally): New variable.
20739 (display_buffer): Consider splitting window horizontally depending
20740 on prefer_window_split_horizontally.
20741
207422007-09-08 Eli Zaretskii <eliz@gnu.org>
20743
20744 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20745
207462007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20747
20748 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20749
20750 * frame.c (x_set_frame_parameters): Check number is positive before
20751 using XFASTINT.
20752
20753 * window.c (freeze_window_start): Don't presume selected_window holds
20754 a window object.
20755 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20756
207572007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20758
20759 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20760
207612007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20762
20763 * window.c (Vsplit_window_preferred_function): New var.
20764 (Fdisplay_buffer): Use it.
20765 (syms_of_window): Export, and initialize it.
20766
207672007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20768
20769 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20770
207712007-09-06 Glenn Morris <rgm@gnu.org>
20772
20773 * gtkutil.c (menu_grab_callback) <cnt>:
20774 * xselect.c (x_reply_selection_request) <cnt>: Move static
20775 variable to file scope.
20776
207772007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20778
20779 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20780 consistent values of selected_frame and selected_window.
20781
207822007-09-04 Jason Rumney <jasonr@gnu.org>
20783
20784 * w32console.c (initialize_w32_display): Zero unused hooks.
20785
207862007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20787
20788 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20789 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20790
207912007-09-04 Jason Rumney <jasonr@gnu.org>
20792
20793 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20794 in w32console.c. Set up input. Remove XXX comments that have been
20795 confirmed as correct.
20796
20797 * s/ms-w32.h (MULTI_KBOARD): Define.
20798
20799 * w32console.c (one_and_only_w32cons): Remove.
20800 (initialize_w32_display): Take terminal argument.
20801
20802 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20803 initialize_w32_display.
20804 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20805
20806 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20807
20808 * keyboard.c (discard_mouse_events): Discard it.
20809 (make_lispy_event): Translate it to a lisp event.
20810 (lispy_wheel_names): Add wheel-left and right events.
20811 (syms_of_keyboard): Enlarge wheel_syms.
20812
20813 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20814 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20815
20816 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20817
20818 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20819 from WM_MOUSEHWHEEL.
20820 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20821
20822 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20823 terminal.
20824
20825 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20826 keyboard for the terminal.
20827
208282007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20829
20830 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20831 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20832 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20833 and resume-tty-function to resume-tty-hook.
20834 (Fsuspend_tty, Fresume_tty): Use new names.
20835
208362007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20837
20838 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20839 if it starts with "n:".
20840
208412007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20842
20843 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20844
208452007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20846
20847 * frame.h:
20848 * frame.c (Qterm_environment_variable): Remove.
20849 (syms_of_frame): Don't init and staticpro it.
20850
20851 * callproc.c (getenv_internal): Remove special case for $TERM.
20852
20853 * callproc.c (Vinitial_environment): New variable.
20854 (set_initial_environment): Initialize it.
20855 (syms_of_callproc): Declare it.
20856 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20857 TERM under which a process runs is never related to the TERM in which
20858 Emacs is running.
20859
208602007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20861
20862 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20863 * s/darwin.h: ... do it here.
20864
208652007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20866
20867 * lisp.h (set_initial_environment): Rename from set_global_environment.
20868
20869 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20870 removed by mistake on the multi-tty branch.
20871
20872 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20873 (Fmodify_frame_parameters): Return a value.
20874
20875 * image.c (png_load): Comment-out var only used in commented-out code.
20876
20877 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20878 before passing it to mark_object.
20879
20880 * xfaces.c (internal_resolve_face_name): Return a value.
20881 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20882
20883 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20884 (x_icon): Comment-out var only used in commented-out code.
20885
208862007-08-29 Romain Francoise <romain@orebokech.com>
20887
20888 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20889 QUIT hasn't been provided.
20890
208912007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20892
20893 * callproc.c (child_setup, getenv_internal): Use the
20894 display-environment-variable and term-environment-variable frame params.
20895 (set_initial_environment): Initialise Vprocess_environment.
20896
20897 * config.in: Disable multi-keyboard support on a mac.
20898
20899 * frame.c (Qterm_environment_variable)
20900 (Qdisplay_environment_variable): New variables.
20901 (syms_of_frame): Intern and staticpro them.
20902 (Fmake_terminal_frame): Disable output method test.
20903
20904 * frame.h: Declare them here.
20905
20906 * macfns.c (x_set_mouse_color): Get rif from the frame.
20907 (x_set_tool_bar_lines): Don't use updating_frame.
20908 (mac_window): Add 2 new parameters for consistency with other systems.
20909 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20910 frame parameters following what is done in X11 and w32. Don't use
20911 FRAME_MAC_DISPLAY_INFO.
20912 (Fx_open_connection, start_hourglass): Remove window-system check.
20913 (x_create_tip_frame): Get the keyboard from the terminal.
20914
20915 * macmenu.c: Reorder includes.
20916 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20917
20918 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20919 terminal parameter.
20920 (x_clear_frame): Add a frame parameter.
20921 (note_mouse_movement): Get rif from the frame.
20922 (mac_term_init): Initialize the terminal.
20923 (mac_initialize): Make static and move terminal initialization ...
20924 (mac_create_terminal): ... to this new function.
20925
20926 * macterm.h (struct mac_display_info): Add terminal.
20927 (mac_initialize): Delete declaration.
20928
20929 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20930
20931 * sysdep.c: Comment out text after #endif.
20932
20933 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20934 is defined. Better initialize ttys in windows. Use terminal
20935 specific mouse_position_hook.
20936
20937 * termhooks.h (union display_info): Add mac_display_info.
20938
20939 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20940 Set the default minibuffer frame, window_system and the rest of the
20941 frame parameters following what is done in X11.
20942
20943 * w32term.c (w32_initialize): Make static.
20944
20945 * xselect.c (x_handle_selection_clear): Only access
20946 terminal->kboard when MULTI_KBOARD is defined.
20947
20948 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20949 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20950
209512007-08-29 Jason Rumney <jasonr@gnu.org>
20952
20953 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20954 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20955
20956 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20957 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20958
20959 * keyboard.c (restore_kboard_configuration): Only define when
20960 MULTI_KBOARD defined.
20961
20962 * makefile.w32-in: Update dependancies from Makefile.in.
20963 (OBJ1): Add terminal.$(O)
20964
20965 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20966 Don't define function body.
20967 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20968
20969 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20970
20971 * w32.c (request_sigio, unrequest_sigio): Remove.
20972
20973 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20974 (w32con_clear_frame, w32con_clear_end_of_line)
20975 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20976 (w32con_delete_glyphs, w32con_set_terminal_window)
20977 (scroll_line, w32_sys_ring_bell): Add frame arg.
20978 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20979 Add terminal arg.
20980 (PICK_FRAME): Remove.
20981 (w32con_write_glyphs): Use frame specific terminal coding.
20982 (one_and_only_w32cons): New global variable.
20983 (initialize_w32_display): Use it for storing hooks.
20984 (create_w32cons_output): New function.
20985
20986 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20987 arg a frame.
20988
20989 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20990 Set window_system.
20991 (x_set_tool_bar_lines): Don't use updating_frame.
20992 (Fx_create_frame): Set terminal and ref count.
20993 (Fx_open_connection): Remove window-system check.
20994
20995 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20996
20997 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20998 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20999 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
21000 Add frame arg.
21001 (x_delete_terminal, w32_create_terminal): New functions.
21002 (w32_term_init): Create a terminal.
21003 (w32_initialize): Move terminal specific initialization to
21004 w32_create_terminal.
21005
21006 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
21007 (w32_clear_rect, w32_clear_area): Use background from frame.
21008 (w32_display_info): Add terminal.
21009 (w32_sys_ring_bell, x_delete_display): Declare here.
21010
21011 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
21012
21013 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
21014
210152007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
21016
21017 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
21018 Fix get_named_tty calls for the controlling tty.
21019
210202007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
21021
194d44e7 21022 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
21023
210242007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
21025
21026 * term.c (tty_insert_glyphs): Add missing first parameter.
21027
210282007-08-29 Károly Lőrentey <karoly@lorentey.hu>
21029
21030 * buffer.c (Fbuffer_list, Fbury_buffer):
21031 Take frame->buried_buffer_list into account.
21032
21033 * cm.c (current_tty): New variable, for cmputc().
21034 (cmputc): Use it.
21035 (cmcheckmagic): Add tty parameter, look up terminal streams there.
21036 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
21037 (cmgoto): Add tty parameter. Pass it on to calccost().
21038 Use emacs_tputs() instead of tputs().
21039
21040 * cm.h (emacs_tputs): New macro to set current_tty, and then call
21041 tputs().
21042 (current_tty): New variable, for cmputc().
21043 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
21044
21045 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
21046 (internal_condition_case, internal_condition_case_1)
21047 (internal_condition_case_2): Don't abort when x_catching_errors.
21048
21049 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
21050 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
21051 prevent crashes caused by bogus longjmps in read_char.
21052
21053 * keymap.h (Fset_keymap_parent): Add EXFUN.
21054
21055 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
21056 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21057 Remove redundant definition.
21058
21059 * macfns.c (x_set_mouse_color, x_make_gc):
21060 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21061
21062 * w32term.c (x_free_frame_resources):
21063 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21064 (w32_initialize): Use the accessor macros for terminal characteristics.
21065
21066 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
21067 Use the accessor macros for terminal characteristics.
21068 * msdos.c (internal_terminal_init): Use the accessor macros for
21069 terminal characteristics.
21070 (ScreenVisualBell, internal_terminal_init):
21071 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21072
21073 * termopts.h (no_redraw_on_reenter): Declare.
21074
21075 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
21076 (mark_terminals, mark_ttys): Declare.
21077 (Fgarbage_collect): Call them.
21078 (mark_object): Mark buried_buffer_list.
21079
21080 * prefix-args.c: Include stdlib.h for exit.
21081
21082 * syssignal.h: Add comment.
21083
21084 * indent.c: Include stdio.h.
21085
21086 * window.h (Vinitial_window_system): Declare.
21087 (Vwindow_system): Delete declaration.
21088
21089 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21090
21091 * image.c (lookup_image): Don't initialize `c' until the xasserts
21092 have been run.
21093
21094 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21095 FRAME_FOREGROUND_PIXEL.
21096
21097 * print.c (print_preprocess): Don't lose print_depth levels while
21098 iterating.
21099
21100 * widget.c (update_from_various_frame_slots):
21101 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21102
21103 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21104 frames.
21105 (window_internal_height): Remove bogus make_number call.
21106 (init_window_once): Call make_terminal_frame with two zero parameters.
21107
21108 * fileio.c (Fread_file_name): Update comment.
21109
21110 * callint.c (Fcall_interactively):
21111 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21112 Make sure it is correctly unwound.
21113
21114 * xsmfns.c (x_session_close): New function.
21115
21116 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21117 Delete declarations.
21118
21119 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21120 (x_output): Remove background_pixel and foreground_pixel fields.
21121 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21122 (x_delete_device, x_session_close): Declare.
21123
21124 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21125 (read_filtered_event): Call `read_char' with a local
21126 `wrong_kboard_jmpbuf'.
21127
21128 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21129 Don't call single_kboard_state. Use FRAME_RIF.
21130
21131 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21132 systems.
21133
21134 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21135 (Fframe_with_environment, Fset_input_meta_mode)
21136 (Fset_quit_char): EXFUN.
21137 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21138 (init_sys_modes, reset_sys_modes): Update prototypes.
21139 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21140
21141 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21142 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21143 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21144 Delete declarations.
21145 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21146 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21147 New declarations.
21148
21149 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21150 already does that during init_display(). Call syms_of_keymap
21151 before syms_of_keyboard. Call `syms_of_terminal'.
21152 Call set_initial_environment, not set_process_environment.
21153 (shut_down_emacs): Call reset_all_sys_modes() instead of
21154 reset_sys_modes().
21155
21156 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21157 (internal_resolve_face_name, resolve_face_name_error): New functions.
21158 (resolve_face_name): Protect against loops and errors thrown by Fget.
21159 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21160 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21161
21162 * scroll.c: Replace CURTTY() with local variables throughout the
21163 file (where applicable).
21164 (calculate_scrolling, calculate_direct_scrolling)
21165 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21166 characteristics.
21167
21168 * keymap.c (Vfunction_key_map): Remove.
21169 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21170 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21171 (Vkey_translation_map): Remove.
21172 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21173 (Fdescribe_buffer_bindings)
21174 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21175 Update for terminal-local key-translation-map.
21176
21177 * Makefile.in (callproc.o): Update dependencies.
21178 (lisp, shortlisp): Add termdev.elc.
21179 (obj): Add terminal.o.
21180 (terminal.o): Add dependencies.
21181 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21182 (data.o, fns.o): Add termhooks.h dependency.
21183 (SOME_MACHINE_LISP): Add dnd.elc.
21184 (minibuf.o): Fix typo.
21185 Update dependencies.
21186
21187 * data.c (do_symval_forwarding, store_symval_forwarding)
21188 (find_symbol_value): Use the selected frame's keyboard, not
21189 current_kboard.
21190
21191 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21192 Vwindow_system.
21193
21194 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21195 Fmenu_bar_open.
21196 (syms_of_xmenu): Update defsubr.
21197 (mouse_position_for_popup, Fx_popup_menu)
21198 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21199 (set_frame_menubar, free_frame_menubar)
b97439ce 21200 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21201 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21202 an X frame.
21203
21204 * xselect.c (x_own_selection): Abort if not an X frame.
21205 (some_frame_on_display): Check if it is an X frame.
21206 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21207
21208 * coding.c: Include frame.h and termhooks.h.
21209 (terminal_coding, keyboard_coding): Delete.
21210 (Fset_terminal_coding_system_internal)
21211 (Fset_keyboard_coding_system_internal)
21212 (Fkeyboard_coding_system)
21213 (Fterminal_coding_system): Add a terminal parameter.
21214 Get terminal_coding from the terminal.
21215 (init_coding_once): Don't call setup_coding_system here.
21216
21217 * dispextern.h (set_scroll_region, turn_off_insert)
21218 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21219 (tty_clear_end_of_line, tty_setup_colors)
21220 (delete_tty, updating_frame)
21221 (produce_special_glyphs, produce_glyphs, write_glyphs)
21222 (insert_glyphs): Remove.
21223 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21224 (tty_turn_off_highlight, get_tty_size): Add declaration.
21225 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21226
21227 * frame.h (enum output_method): Add output_initial.
21228 (struct x_output): Delete.
21229 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21230 Access foreground_pixel and background_pixel directly from the frame.
21231 (tty_display): Delete.
21232 (struct frame): Add buried_buffer_list, foreground_pixel,
21233 background_pixel and terminal. Delete kboard.
21234 (union output_data): Add tty.
21235 (FRAME_KBOARD): Get the kboard from the terminal.
21236 (FRAME_INITIAL_P): New macro.
21237 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21238 (Qterm_environment_variable, Qdisplay_environment_variable)
21239 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21240 New declarations.
21241
21242 * termchar.h (tty_output, tty_display_info): New structures.
21243 (tty_list): Declare.
21244 (FRAME_TTY, CURTTY): New macros.
21245 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21246 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21247 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21248 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21249
21250 * callproc.c: Include frame.h and termhooks.h, for terminal
21251 parameters.
21252 (add_env): New function.
21253 (child_setup): Use it.
21254 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21255 (getenv_internal): Fix get_terminal_param call.
21256 (Fgetenv_internal, egetenv): Update doc.
21257 (syms_of_callproc): Initialize Vprocess_environment to nil.
21258 Register and initialize them. Remove obsolete defvars. Update doc
21259 strings.
21260 (child_setup): Handle Vlocal_environment_variables.
21261 (getenv_internal): Add terminal parameter.
21262 Handle Vlocal_environment_variables.
21263 (Fgetenv_internal): Add terminal parameter.
21264 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21265 environment in a frame (not terminal) parameter. Update doc strings.
21266 (set_initial_environment): Rename from set_global_environment.
21267 Store Emacs environment in initial frame parameter.
21268
21269 * xdisp.c (redisplay_internal): Update references to
21270 `previous_terminal_frame'.
21271 (display_mode_line, Fformat_mode_line): Replace calls to
21272 `push_frame_kboard' with `push_kboard'.
21273 (get_glyph_string_clip_rects): Add extra parentheses and
21274 braces to prevent compiler warnings.
21275 (calc_pixel_width_or_height): Add xassert to check that the
21276 frame is alive. Don't call `lookup_image' on a termcap frame.
21277 (message2_nolog, message3_nolog, redisplay_internal)
21278 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21279 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21280 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21281 (Fx_display_pixel_width, Fx_display_pixel_height)
21282 (Fx_display_planes, Fx_display_color_cells)
21283 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21284 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21285 (Fx_display_backing_store, Fx_display_visual_class)
21286 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21287 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21288
21289 * xfns.c (x_set_foreground_color x_set_background_color)
21290 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21291 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21292 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21293 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21294 terminal that is being deleted.
21295 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21296 frame parameter, and make sure it overrides any user-supplied setting.
21297 (Fx_close_connection, Fx_synchronize): Unify argument names with
21298 the rest of the DEFUNs.
21299
21300 * dispnew.c (Fsend_string_to_terminal): Update call to
21301 `get_tty_terminal'.
21302 (Fredraw_frame, Fsend_string_to_terminal)
21303 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21304 FRAME_TERMCAP_P and FRAME_TTY.
21305 (window_change_signal): Don't believe width/height values that are
21306 impossibly small.
21307 (Vinitial_window_system): Rename from Vwindow_system.
21308 (termscript, Wcm, rif): Delete.
21309
21310 * termhooks.h (struct terminal): New struct containing the
21311 previously global text display hooks and new members NAME,
21312 DELETED and PARAM_ALIST.
21313 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21314 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21315 (FRAME_RIF): New macros.
21316 (get_terminal_param, get_device): New declarations.
21317 (termscript): Delete declaration.
21318
21319 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21320 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21321 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21322 FRAME_FOREGROUND_PIXEL.
21323 (x_fully_uncatch_errors): Disable definition.
21324 (x_scroll_bar_expose): Fix reference to foreground pixel.
21325 (XTread_socket): Disable loop on all X displays.
21326 (x_delete_terminal): Don't set terminal->deleted and let
21327 delete_terminal delete the frames on the terminal.
21328 (x_delete_display): Doc update to reflect changes in
21329 delete_terminal.
21330 (x_display_info) <terminal>: Move member earlier in the struct.
21331 (deleting_tty): Remove old variable.
21332 (Fsuspend_tty): Call clear_tty_hooks.
21333 (Fresume_tty, init_tty): Call set_tty_hooks.
21334 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21335 errors on X frames.
21336 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21337 (handle_one_xevent): Initialize `f' to NULL.
21338 (x_delete_terminal, x_create_terminal): New functions.
21339 (XTset_terminal_modes, XTreset_terminal_modes)
21340 (XTread_socket, x_connection_closed, x_term_init)
21341 (x_term_init, x_delete_display): Add terminal parameter.
21342 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21343 X connections.
21344
21345 * frame.c: Include termchar.h.
21346 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21347 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21348 (Qdisplay_environment_variable): New vars.
21349 (Fframep): Deal with output_initial.
21350 (Fframe-live-p): Doc fix.
21351 (Fwindow-system): New function.
21352 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21353 (make_terminal_frame): Don't create frames on a terminal that is
21354 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21355 (store_frame_param): Check for found_for_frame before calling XFRAME.
21356 (Fmake_terminal_frame): Handle NULL tty names correctly.
21357 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21358 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21359 frames to refer to a deleted frame in their 'environment parameter.
21360 (Fframe_with_environment): New function.
21361 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21362 (get_future_frame_param): New function.
21363 (Fmake_terminal_frame): Use it.
21364 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21365
21366 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21367 * sysdep.c (reset_sys_modes): Update for renames.
21368
21369 * keyboard.c (tty_read_avail_input): New function.
21370 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21371 (syms_of_keyboard): Defsubr them.
21372 (Fset_input_meta_mode, Fset_quit_char): New functions.
21373 (Fset_input_mode): Split to above functions.
21374 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21375 parameter. Use it in call to `read_char'.
21376 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21377 Set wrong_kboard_jmpbuf correctly in recursive calls.
21378 Use current_kboard to access Vkeyboard_translate_table.
21379 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21380 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21381 Update longjmp invocations. Remember the original current_kboard,
21382 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21383 changes it. Comment out unnecessary calls to
21384 `record_single_kboard_state' and `any_kboard_state'.
21385 Update recursive calls.
21386 (wrong_kboard_jmpbuf): Remove global variable.
21387 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21388 Handle deleted interrupted_kboards correctly; that is a legal
21389 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21390 and read_char calls. Abort if interrupted_kboard died in read_char.
21391 (any_kboard_state, single_kboard_state)
21392 (push_frame_kboard): Remove function.
21393 (pop_kboard): Switch out of single_kboard mode if the kboard has
21394 been deleted. Remove unused variable. Help debugging by not
21395 changing current_kboard unnecessarily. Set current_kboard to the
21396 kboard of the selected frame when the stored kboard object has
21397 been deleted before pop_kboard.
21398 (temporarily_switch_to_single_kboard): Change first parameter to a
21399 frame pointer. Throw an error when caller wants to change kboards
21400 while in single_kboard mode. Don't push_kboard if we weren't in
21401 single kboard state. Don't pop_kboard if we popped into any
21402 kboard state.
21403 (restore_kboard_configuration): Abort if pop_kboard changed the
21404 kboard in single_kboard mode. Call pop_kboard only after setting
21405 up single_kboard mode.
21406 (Frecursive_edit): Switch to single_kboard mode only in nested
21407 command loops.
21408 (cmd_error, command_loop, command_loop_1, timer_check):
21409 Comment out unnecessary call to `any_kboard_state' and
21410 `record_single_kboard_state'.
21411 (delete_kboard): Exit single_kboard mode if we have just deleted
21412 that kboard. Use FRAME_KBOARD.
21413 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21414 `fatal_error_signal'.
21415 (record_single_kboard_state): Don't push_kboard if we weren't in
21416 single kboard state. Don't pop_kboard if we popped into any
21417 kboard state.
21418 (push_frame_kboard): Rename to push_kboard.
21419 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21420 (read_avail_input): Read input from all terminals.
21421 (mark_kboards): Also mark Vkeyboard_translate_table.
21422 (kbd_buffer_store_event_hold): Simplify condition.
21423 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21424 (Vkeyboard_translate_table): Move to struct kboard.
21425 (init_kboard): Initialize Vkeyboard_translate_table.
21426 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21427 Vkeyboard_translate_table. Update doc strings. Update docs of
21428 local-function-key-map and function-key-map.
21429
21430 * terminal.c: New file.
21431
21432 * term.c: Include errno.h.
21433 (Vring_bell_function, device_list, initial_device)
21434 (next_device_id, ring_bell, update_begin, update_end)
21435 (set_terminal_window, cursor_to, raw_cursor_to)
21436 (clear_to_end, clear_frame, clear_end_of_line)
21437 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21438 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21439 (syms_of_term): Move their initialization to terminal.c.
21440 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21441 (Ftty_display_color_cells)
21442 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21443 (clear_tty_hooks, set_tty_hooks)
21444 (init_tty, maybe_fatal): New functions.
21445 (Ftty_type): Return nil if terminal is not on a tty instead of
21446 throwing an error. Doc update.
21447 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21448 Doc update. Initialize new subrs and variables.
21449 (delete_tty): Use terminal->deleted.
21450 (tty_set_terminal_modes): Rename from set_terminal_modes.
21451 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21452 (set_scroll_region): Rename to `tty_set_scroll_region'.
21453 (turn_on_insert): Rename to `tty_turn_on_insert'.
21454 (turn_off_insert): Rename to `tty_turn_off_insert'.
21455 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21456 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21457 (toggle_highligh): Rename to `tty_toggle_highlight'.
21458 (background_highlight): Rename to `tty_background_highlight'.
21459 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21460 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21461 (tty_set_scroll_region, tty_background_highlight)
21462 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21463 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21464 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21465 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21466 Add static modifier.
21467 (tty_reset_terminal_modes, tty_set_terminal_window)
21468 (tty_set_scroll_region, tty_background_highlight)
21469 (tty_highlight_if_desired, tty_cursor_to)
21470 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21471 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21472 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21473 renames.
21474
214752007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21476
21477 * keyboard.c: Qrtl is new.
21478 (parse_tool_bar_item): Handle :rtl keyword.
21479 (syms_of_keyboard): Intern :rtl keyword.
21480
21481 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21482
21483 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21484 so no Lisp code is executed.
21485 (file_for_image, find_rtl_image): New functions.
21486 (xg_get_image_for_pixmap): Use file_for_image.
21487 (update_frame_tool_bar): If direction is RTL, use RTL image if
21488 defined. Use Gtk stock images if defined.
21489
214902007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21491
21492 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21493 for nonexistent or zero-width glyph in composition glyph.
21494
214952007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21496
21497 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21498
21499 * xdisp.c (Finvisible_p): New function.
21500 (syms_of_xdisp): defsubr it.
21501
215022007-08-24 Juanma Barranquero <lekktu@gmail.com>
21503
21504 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21505 Doc fixes.
21506
215072007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21508
21509 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21510
215112007-08-24 Martin Rudalics <rudalics@gmx.at>
21512
21513 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21514 whether decoding has modified buffer contents.
21515
215162007-08-24 Jason Rumney <jasonr@gnu.org>
21517
21518 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21519 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21520 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21521 (init_svg_functions) [HAVE_NTGUI]: New function.
21522 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21523 (svg_load_image): Use them.
21524 (svg_load_image) [HAVE_NTGUI]: Implement background.
21525
215262007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21527
21528 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21529 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21530 (LIBX): Remove @RSVG_LIBS@.
21531 (LIBES): Add $(RSVG_LIBS).
21532
21533 * image.c (svg_load_image): Blend with specified background if exists.
21534 Use IMAGE_BACKGROUND. Add Mac OS Support.
21535
21536 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21537 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21538 Remove macros.
21539 [MAC_OSX] (socket_callback): Do nothing.
21540 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21541 ReceiveNextEvent.
21542 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21543 socket_callback.
21544 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21545
215462007-08-22 Glenn Morris <rgm@gnu.org>
21547
21548 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21549
215502007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21551
21552 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21553
21554 * image.c: Add support for SVG images. Some additional comments
21555 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21556 (svg_image_p): New function to test for SVG image.
21557 (svg_load): New function to load SVG image.
21558 (svg_load_image): New function, helper for svg_load.
21559 (Qsvg): New Lisp_object.
21560 (svg_keyword_index): New enum.
21561 (svg_format): New static `image_keyword' struct.
21562 (svg_type): New static `image_type' struct.
21563 (librsvg/rsvg.h): Include it.
21564
215652007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21566
21567 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21568
215692007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21570
21571 * lread.c (Qold_style_backquotes): New var.
21572 (syms_of_lread): Init and staticpro it.
21573 (load_warn_old_style_backquotes): New fun.
21574 (Fload): Use them to warn about old style backquotes.
21575 (end_of_file_error, Fload): Remove unused vars.
21576
21577 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21578
21579 * lread.c (Vold_style_backquotes): New var.
21580 (syms_of_lread): Init and export it to Elisp.
21581 (read1): Set it when we find an old-style (back)quote.
21582
215832007-08-22 Jason Rumney <jasonr@gnu.org>
21584
21585 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21586
215872007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21588
21589 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21590
215912007-08-19 Richard Stallman <rms@gnu.org>
21592
21593 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21594
215952007-08-19 Andreas Schwab <schwab@suse.de>
21596
21597 * alloc.c (pure): Round PURESIZE up.
21598
215992007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21600
21601 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21602 active frame.
21603
216042007-08-16 Richard Stallman <rms@gnu.org>
21605
21606 * eval.c (Fcommandp): Add parens to clarify.
21607
21608 * minibuf.c (Fall_completions): Use enum for type of table.
21609
21610 * emacs.c (USAGE2): Improve text.
21611
216122007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21613
21614 * term.c (tty_default_color_capabilities): Declare static
21615 variables in file scope, to avoid HPUX compiler problem.
21616
216172007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21618
21619 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21620 to gtk_toolbar_insert.
21621
216222007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21623
21624 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21625
21626 * insdel.c (reset_var_on_error): New fun.
21627 (signal_before_change, signal_after_change):
21628 Use it to reset (after|before)-change-functions to nil in case of error.
21629 Bind inhibit-modification-hooks to t.
21630 Don't bind (after|before)-change-functions to nil while they run.
21631
216322007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21633
21634 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21635 filling pixmap with stippled background.
21636
216372007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21638
21639 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21640 Don't use invisible frame as parent window for repositioning.
21641
216422007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21643
21644 * print.c (new_backquote_output): Rename from old_backquote_output.
21645 (print): Inverse its logic (according to its name) so as to match the
21646 behavior of new_backquote_flag in lread.c.
21647
216482007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21649
21650 * gmalloc.c (posix_memalign): New function.
21651
21652 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21653 ActivateControl/DeactivateControl here.
21654 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21655 frame-notice-user-settings is non-nil.
21656 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21657 for kEventParamFMFontStyle.
21658 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21659 mac_pass_command_to_system and mac_pass_control_to_system here.
21660 (XTread_socket): Call ActivateControl/DeactivateControl here.
21661 (XTread_socket) [TARGET_API_MAC_CARBON]:
21662 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21663 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21664 for window repositioning.
21665
216662007-08-08 Glenn Morris <rgm@gnu.org>
21667
21668 * Replace `iff' in doc-strings and comments.
21669
216702007-08-07 Chong Yidong <cyd@stupidchicken.com>
21671
21672 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21673
216742007-08-07 Martin Rudalics <rudalics@gmx.at>
21675
21676 * fileio.c (Finsert_file_contents): Run format-decode and
21677 after_insert_file_functions on entire buffer when REPLACE is
21678 non-nil and inhibit modification_hooks and point_motion_hooks.
21679 For consistency, run after_insert_file_functions iff something
21680 got inserted. Move signal_after_change and update_compositions
21681 after code running after_insert_file_functions. Make sure that
21682 undo_list doesn't record intermediate steps of the decoding process.
21683
216842007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21685
21686 * emacs.c (main)
21687 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21688 Call malloc_enable_thread on interactive startup.
21689
21690 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21691 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21692 [USE_PTHREAD]: Conditionalize with it.
21693 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21694 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21695 New functions.
21696
216972007-08-06 Chong Yidong <cyd@stupidchicken.com>
21698
21699 * xdisp.c (redisplay_window): When restoring original buffer
21700 position, make sure it is still valid.
21701
21702 * image.c (png_load): Ignore png-supplied background color.
21703
217042007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21705
21706 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21707 Use kCFAbsoluteTimeIntervalSince1970.
21708
21709 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21710 New variable.
21711 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21712 event loop should be quit.
21713 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21714 Quit dialog event loop if quit_dialog_event_loop is set.
21715
21716 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21717 (Selection): New typedef. Use instead of ScrapRef.
21718 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21719 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21720 (mac_clear_selection): Rename from clear_scrap.
21721 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21722 scrap_has_target_type. All uses changed.
21723 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21724 (mac_selection_has_target_p): New functions.
21725 (mac_put_selection_value): Rename from put_scrap_string.
21726 (mac_get_selection_value): Rename from get_scrap_string.
21727 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21728 (put_scrap_private_timestamp, scrap_has_target_type)
21729 (get_scrap_private_timestamp): Remove functions.
21730 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21731 (x_own_selection, x_get_local_selection):
21732 Use mac_valid_selection_value_p.
21733 (x_own_selection): Don't use put_scrap_private_timestamp.
21734 Record OWNERSHIP-INFO into Vselection_alist instead.
21735 (x_get_local_selection): Don't check type if request is local.
21736 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21737 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21738
217392007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21740
21741 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21742 add comment explaining why.
21743
217442007-08-03 Richard Stallman <rms@gnu.org>
21745
21746 * fileio.c (Fvisited_file_modtime): Use make_time.
21747
217482007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21749
21750 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21751 build.
21752
217532007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21754
21755 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21756
217572007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21758
21759 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21760
217612007-07-30 Richard Stallman <rms@gnu.org>
21762
21763 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21764
217652007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21766
21767 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21768
217692007-07-28 Nick Roberts <nickrob@snap.net.nz>
21770
21771 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21772 remote default-directory.
21773
21774 * buffer.c (mode-line-format): Update doc string.
21775
217762007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21777
21778 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21779 scroll bar gap.
21780 (x_scroll_bar_create): Set bar->fringe_extended_p.
21781 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21782 on frame edge. Check fringe background extension. Don't clear
21783 extended fringe background area.
21784
21785 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21786 (w32_fill_area): Enclose multiple statements with do ... while (0).
21787
21788 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21789 Extend fringe background to scroll bar gap.
21790 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21791 Set bar->fringe_extended_p.
21792 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21793 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21794 background extension. Don't clear extended fringe background area.
21795
21796 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21797 New member fringe_extended_p.
21798
217992007-07-25 Glenn Morris <rgm@gnu.org>
21800
21801 * Relicense all FSF files to GPLv3 or later.
21802
21803 * COPYING: Switch to GPLv3.
21804
218052007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21806
21807 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21808
21809 * data.c (Finteractive_form): Check for the presence of an
21810 `interactive-form' symbol property more thoroughly.
21811
21812 * data.c (Finteractive_form): Use an `interactive-form' property if
21813 present, analogous to the function-documentation property.
21814
218152007-07-24 Jason Rumney <jasonr@gnu.org>
21816
21817 * w32fns.c (x_real_positions): Get real position from OS instead of
21818 calculating it.
21819
218202007-07-23 Jason Rumney <jasonr@gnu.org>
21821
21822 * filelock.c (current_lock_owner): Allow for @ sign in username.
21823
218242007-07-22 Nick Roberts <nickrob@snap.net.nz>
21825
21826 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21827 remote default-directory.
21828
21829 * buffer.c (mode-line-format): Describe above case in doc string.
21830
218312007-07-20 Eli Zaretskii <eliz@gnu.org>
21832
21833 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21834 Define if not defined.
21835
218362007-07-18 Jason Rumney <jasonr@gnu.org>
21837
21838 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21839
218402007-07-18 Richard Stallman <rms@gnu.org>
21841
21842 * data.c (Fsetq_default): Doc fix.
21843
21844 * eval.c (Fsetq): Doc fix.
21845
218462007-07-18 Juanma Barranquero <lekktu@gmail.com>
21847
21848 * coding.c (Ffind_operation_coding_system):
21849 * eval.c (For, Fand): Doc fixes.
21850 Reported by Johan Bockgård.
21851
218522007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21853
21854 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21855
21856 * xterm.h: Declare x_ewmh_activate_frame.
21857
21858 * xterm.c (x_ewmh_activate_frame): New function.
21859 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21860
218612007-07-17 Martin Rudalics <rudalics@gmx.at>
21862
21863 * window.c (Fdisplay_buffer): If largest or LRU window is the
21864 only window, split it even if it is not eligible for splitting.
21865 This restores the original behavior broken by the 2007-07-15
21866 change.
21867
218682007-07-17 Glenn Morris <rgm@gnu.org>
21869
21870 * abbrev.c (abbrev_check_chars): New function.
21871 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21872 Call abbrev_check_chars to check abbrev characters are word
21873 constituents. Doc fix.
21874
218752007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21876
21877 * process.c (Fstart_process, Fmake_network_process)
21878 (read_process_output): Fix up last changes.
21879
218802007-07-16 Eli Zaretskii <eliz@gnu.org>
21881
21882 * makefile.w32-in (clean): Don't delete *~.
21883
218842007-07-16 Andreas Schwab <schwab@suse.de>
21885
21886 * window.c (Fdisplay_buffer): Use NILP.
21887 (Fset_window_scroll_bars): Likewise.
21888
218892007-07-15 Martin Rudalics <rudalics@gmx.at>
21890
21891 * window.c (window_min_size_2): New function.
21892 (window_min_size_1, size_window, Fdisplay_buffer)
21893 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21894 windows without mode- or header-lines when window-min-height is
21895 too small.
21896 (size_window): Reset nodelete_p after testing it, following an
21897 earlier note by Kim F. Storm.
21898 (display_buffer): Do not set split_height_threshold to twice the
21899 value of window_min_height to avoid changing the value of a
21900 customizable variable. Rather explicitly check whether the
21901 height of the window that shall be splitted is at least as large
21902 as split_height_threshold.
21903 (Fwindow_full_width_p): New defun.
21904 (syms_of_window): Defsubr it.
21905
21906 * window.h: Add EXFUN for Fwindow_full_width_p.
21907
219082007-07-14 Jason Rumney <jasonr@gnu.org>
21909
21910 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21911
219122007-07-14 Richard Stallman <rms@gnu.org>
21913
21914 * eval.c (maybe_call_debugger): New function.
21915 (find_handler_clause): Use maybe_call_debugger.
21916 Call it when the handler says `debug'.
21917 Eliminate DEBUGGER_VALUE_PTR.
21918 (Fsignal): Eliminate debugger_value.
21919 (Qdebug): New variable.
21920 (syms_of_eval): Initialize it.
21921
219222007-07-14 Juanma Barranquero <lekktu@gmail.com>
21923
21924 * eval.c (Fprogn):
21925 * keyboard.c (Ftrack_mouse):
21926 * print.c (Fwith_output_to_temp_buffer):
21927 * window.c (Fsave_window_excursion): Doc fix.
21928
219292007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21930
21931 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21932
219332007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21934
21935 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21936 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21937 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21938 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21939 Remove unused encoding_carryover.
21940 * process.c: Adjust all functions accordingly.
21941
219422007-07-12 Richard Stallman <rms@gnu.org>
21943
21944 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21945
219462007-07-11 Jason Rumney <jasonr@gnu.org>
21947
21948 * makefile.w32-in (LIBS): Include OLE32.
21949
21950 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21951 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21952
219532007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21954
21955 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21956 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21957 from a Lisp_Object into a bare pointer.
21958 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21959 Adjust the code correspondingly.
21960
21961 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21962
21963 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21964 (term_show_mouse_face): Remove unused var `j'.
21965 (handle_one_term_event): Remove unused vars `i' and `j'.
21966 Don't cast return value of ttyname since it's not necessary.
21967
219682007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21969
21970 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21971 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21972
21973 * fns.c (map_char_table): Use an array of int for `indices' rather than
21974 an array of Lisp_Objects (which are only ever integers anyway).
21975 (Fmap_char_table): Update caller.
21976 * lisp.h: Update prototype.
21977 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21978 * fontset.c (Ffontset_info):
21979 * casetab.c (set_case_table): Update callers.
21980
21981 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21982
21983 * keymap.c (struct accessible_keymaps_data)
21984 (struct where_is_internal_data): New structures.
21985 (accessible_keymaps_1, where_is_internal_1): Use them to change
21986 interface to adhere to the one used by map_keymap.
21987 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21988 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21989
21990 * keymap.h (map_keymap_function_t): More informative prototype.
21991
219922007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21993
21994 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21995 (looking_at_1): Don't change search_regs and last_thing_searched
21996 if `inhibit-changing-match-data' is non-nil.
21997 (string_match_1, search_buffer, set_search_regs): Likewise.
21998 (syms_of_search): Add Lisp level definition for
21999 `inhibit-changing-match-data' and set it to nil.
22000 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
22001 start and end of the match, instead of using values in search_regs.
22002
220032007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
22004
22005 * minibuf.c (Fcompleting_read): New value `confirm-only'
22006 for `require-match'.
22007
220082007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
22009
22010 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
22011 part of the 2007-06-27 change to syms_of_fileio.
22012
220132007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22014
22015 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
22016 Check WINDOWP before using XWINDOW. Consolidate return statements.
22017
220182007-06-27 Richard Stallman <rms@gnu.org>
22019
22020 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
22021
220222007-06-27 Juanma Barranquero <lekktu@gmail.com>
22023
22024 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
22025
220262007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22027
22028 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
22029 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
22030 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
22031 (_free_internal, memalign): Use them.
22032 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
22033 Initialize to PTHREAD_MUTEX_INITIALIZER.
22034 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
22035 (morecore_nolock): Rename from morecore. All uses changed.
22036 Use only nolock versions of internal allocation functions.
22037 (_malloc_internal_nolock, _realloc_internal_nolock)
22038 (_free_internal_nolock): New functions created from
22039 _malloc_internal, _realloc_internal, and _free_internal.
22040 (_malloc_internal, _realloc_internal, _free_internal): Use them.
22041 Copy hook value to automatic variable before its use.
22042 (memalign): Copy hook value to automatic variable before its use.
22043
220442007-06-26 Kenichi Handa <handa@m17n.org>
22045
22046 * coding.c (Ffind_operation_coding_system): Docstring improved.
22047 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
22048
220492007-06-25 David Kastrup <dak@gnu.org>
22050
22051 * keymap.c (Fcurrent_active_maps): Add `position' argument.
22052 (Fwhere_is_internal): Adjust call to `current-active-maps' to
22053 cater for additional parameter.
22054
22055 * keymap.h: Adjust number of parameters to `current-active-maps'.
22056
22057 * doc.c (Fsubstitute_command_keys): Adjust call of
22058 `current-active-maps'.
22059
220602007-06-25 David Kastrup <dak@gnu.org>
22061
22062 * callint.c (Fcall_interactively): Make the parsing of interactive
22063 specs somewhat more readable.
22064
220652007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22066
22067 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
22068 to scroll bar gap also when bitmap fills fringe. Draw only foreground
22069 if extended background has already been filled.
22070
220712007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22072
22073 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
22074 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
22075
22076 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
22077 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
22078 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
22079 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
22080 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
22081 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
22082 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
22083 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
22084 Run timers during dialog popup.
22085 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
22086
220872007-06-21 Jason Rumney <jasonr@gnu.org>
22088
22089 * image.c (convert_mono_to_color_image): Swap fore and background.
22090
220912007-06-20 Jason Rumney <jasonr@gnu.org>
22092
22093 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22094 (w32_free_bdf_font): Unmap memory not handle.
22095
220962007-06-20 Sam Steingold <sds@gnu.org>
22097
22098 * gmalloc.c (__morecore): Fix the declaration to comply with the
22099 definition.
22100
221012007-06-20 Juanma Barranquero <lekktu@gmail.com>
22102
22103 * w32term.c (w32_delete_display): Remove leftover declaration.
22104 (w32_define_cursor, w32_initialize): Make static.
22105
22106 * w32.c (_wsa_errlist): Fix typo in error message.
22107 (init_environment): Ignore any environment variable from the
22108 registry having a null value.
22109
221102007-06-20 Glenn Morris <rgm@gnu.org>
22111
22112 * Makefile.in (LIBGIF): Default to -lgif.
22113
221142007-06-17 Jason Rumney <jasonr@gnu.org>
22115
22116 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22117 unicode strings.
22118
221192007-06-16 Juanma Barranquero <lekktu@gmail.com>
22120
22121 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22122 Fix typo in docstring.
22123
221242007-06-16 Eli Zaretskii <eliz@gnu.org>
22125
22126 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22127 and their keybindings.
22128
221292007-06-15 Chong Yidong <cyd@stupidchicken.com>
22130
22131 * composite.c (update_compositions): Fix last fix.
22132
221332007-06-14 Jason Rumney <jasonr@gnu.org>
22134
22135 * w32.c (get_process_times_fn): New function pointer.
22136 (globals_of_w32): Intialize it if present in kernel32.dll.
22137 (w32_get_internal_run_time): New function.
22138
22139 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22140
221412007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22142
22143 * composite.c (update_compositions): Check the validness of
22144 compositions.
22145
221462007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22147
22148 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22149 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22150
22151 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22152 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22153
22154 * macgui.h (USE_MAC_TOOLBAR): New define.
22155
22156 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22157 Return immediately unless popup is activated.
22158
22159 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22160 background to scroll bar gap.
22161 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22162 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22163 scroll bars on frame edge. Check fringe background extension.
22164 Don't clear extended fringe background area.
22165 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22166 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22167 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22168 [USE_MAC_TOOLBAR]: New macros.
22169 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22170 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22171 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22172 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22173 [USE_MAC_TOOLBAR]: New functions.
22174 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22175 manually if previous repositioning has failed.
22176 (mac_handle_keyboard_event): Use precomputed event kind.
22177 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22178 as tool bar item click. Handle mouse movement over tool bar items.
22179
22180 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22181 toolbar_win_gravity.
22182 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22183 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22184 Add externs.
22185
22186 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22187 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22188
221892007-06-14 Chong Yidong <cyd@stupidchicken.com>
22190
22191 * image.c (search_image_cache): Remove unused variable.
22192
221932007-06-13 Chong Yidong <cyd@stupidchicken.com>
22194
22195 * xfns.c, xmenu.c: Link to xaw3d if available.
22196
221972007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22198
22199 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22200 frame_foreground and frame_background.
22201
22202 * image.c (lookup_image): Save frame foreground and background colors.
22203 (search_image_cache): Check if saved and current frame colors match.
22204
222052007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22206
22207 * regex.c (regex_compile): Remove the `regnum' counter.
22208 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22209
222102007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22211
22212 * term.c: Include intervals.h to declare Fget_text_property.
22213
222142007-06-10 Jason Rumney <jasonr@gnu.org>
22215
22216 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22217
222182007-06-08 Juanma Barranquero <lekktu@gmail.com>
22219
22220 * callint.c (Fcall_interactively):
22221 * editfns.c (Fdelete_and_extract_region):
22222 * fileio.c (Fread_file_name):
22223 * fns.c (Fmapconcat):
22224 * keyboard.c (cmd_error_internal):
22225 * keymap.c (Fkey_description):
22226 * lread.c (openp):
22227 * minibuf.c (read_minibuf):
22228 * search.c (wordify):
22229 * sunfns.c (sel_read):
22230 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22231 * xfns.c (x_default_scroll_bar_color_parameter):
22232 * xmenu.c (menu_help_callback):
22233 * xselect.c (Fx_get_atom_name):
22234 * xterm.c (x_term_init): Use empty_unibyte_string.
22235
222362007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22237
22238 * alloc.c (init_strings): Initialize canonical empty strings.
22239 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22240 canonical empty string when the requested size is 0.
22241
22242 * emacs.c (empty_unibyte_string): Rename from empty_string.
22243 (empty_multibyte_string): New canonical empty string.
22244 (syms_of_emacs): Don't initialize empty_string.
22245
22246 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22247 string, if appropriate.
22248 (empty_unibyte_string, empty_multibyte_string): New externs.
22249 (empty_string): Remove extern.
22250
22251 * lread.c (syms_of_lread): Use empty_unibyte_string.
22252
222532007-06-07 Jason Rumney <jasonr@gnu.org>
22254
22255 * s/ms-w32.h: Don't define HAVE_TZNAME.
22256
22257 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22258
222592007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22260
22261 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22262
22263 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22264 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22265
22266 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22267 Don't call next handler.
22268 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22269 Remove argument. Install handler to application.
22270 (set_frame_menubar): Don't change deep_p.
22271 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22272 FRAME_OUTER_TO_INNER_DIFF_Y.
22273 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22274 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22275 [HAVE_DIALOGS]: New macros.
22276 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22277 Use them.
22278 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22279
22280 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22281 init_service_handler. All callers changed. Return OSStatus value.
22282
22283 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22284 All callers changed so as not to call SetPortWindowPort.
22285 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22286 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22287 mac_draw_string_common.
22288 (mac_draw_image_string_qd): Likewise.
22289 (mac_draw_string_common): Use them. Add INLINE.
22290 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22291 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22292 GetGlobalMouse.
22293 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22294 and FRAME_OUTER_TO_INNER_DIFF_Y.
22295 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22296 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22297 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22298 repositioning window to mac_handle_window_event.
22299 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22300 saving window location to mac_handle_window_event
22301 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22302 (install_menu_target_item_handler): Remove argument in extern.
22303 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22304 Also accept command events.
22305 (do_keystroke): New function created from XTread_socket.
22306 (init_command_handler): Remove functions.
22307 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22308 and save window location by kEventWindowShowing and kEventWindowHiding
22309 handlers here. Don't call next handler for window state change and
22310 focus events.
22311 (mac_handle_application_event, mac_handle_keyboard_event)
22312 [TARGET_API_MAC_CARBON]: New functions.
22313 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22314 kEventWindowShowing and kEventWindowHiding events. Move installation
22315 of mouse, font, text input and menu target item handlers to
22316 install_application_handler.
22317 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22318 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22319 New function.
22320 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22321 Register it.
22322 (XTread_socket) [TARGET_API_MAC_CARBON]:
22323 Consolidate SendEventToEventTarget calls.
22324 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22325 Move application activation handler to mac_handle_application_event.
22326 Move keyboard handler to mac_handle_keyboard_event.
22327 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22328 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22329 init_command_handler. Call install_application_handler.
22330
22331 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22332 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22333
223342007-06-07 Glenn Morris <rgm@gnu.org>
22335
22336 * emacs.c (main): Use `emacs-copyright' in --version output.
22337
223382007-06-06 Chong Yidong <cyd@stupidchicken.com>
22339
22340 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22341
223422007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22343
22344 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22345
22346 * macgui.h: Replace WindowPtr with WindowRef.
22347
22348 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22349 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22350 Replace ControlHandle with ControlRef.
22351 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22352
22353 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22354 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22355 Replace ControlHandle with ControlRef.
22356 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22357 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22358
22359 * macterm.h (struct scroll_bar): Rename member control_handle_low
22360 and control_handle_high to control_ref_low and control_ref_high.
22361 All uses changed.
22362 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22363 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22364 respectively. All uses changed.
22365 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22366 (install_window_handler, remove_window_handler): Replace WindowPtr
22367 with WindowRef in externs.
22368
223692007-06-05 Juanma Barranquero <lekktu@gmail.com>
22370
22371 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22372
223732007-06-03 Nick Roberts <nickrob@snap.net.nz>
22374
22375 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22376
22377 * frame.c (Fmouse_position, Fmouse_pixel_position):
22378 Condition on HAVE_GPM too.
22379
22380 * term.c (term_mouse_highlight): Remove unused variables.
22381 (Fterm_open_connection): Set gpm_zerobased to 1.
22382 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22383 Use zero based co-ordinates.
22384 (handle_one_term_event): Report a drag as mouse movement too.
22385
22386 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22387
223882007-06-03 Chong Yidong <cyd@stupidchicken.com>
22389
22390 * image.c (search_image_cache): New function. Require background
22391 color match if background color is unspecified in the image spec.
22392 (uncache_image, lookup_image): Use it.
22393
223942007-06-01 Juanma Barranquero <lekktu@gmail.com>
22395
22396 * window.c (Fshrink_window): Reflow docstring.
22397
223982007-06-02 Chong Yidong <cyd@stupidchicken.com>
22399
22400 * Version 22.1 released.
22401
224022007-06-01 Richard Stallman <rms@gnu.org>
22403
22404 * xfns.c (x_encode_text): Add GCPRO.
22405
224062007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22407
22408 * xfns.c (x_set_name_internal): Save encoded name before
22409 x_encode_text in case string data is relocated.
22410
224112007-05-31 Richard Stallman <rms@gnu.org>
22412
22413 * buffer.c (syms_of_buffer): Doc fix.
22414
224152007-05-30 Nick Roberts <nickrob@snap.net.nz>
22416
22417 * sysdep.c (init_sys_modes): Add rather than replace with
22418 O_NONBLOCK.
22419
22420 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22421 term_mouse_moveto.
22422
22423 * termhooks.h (term_mouse_moveto): New extern.
22424
22425 * term.c (mouse_face_window): Rename...
22426 (Qmouse_face_window): ...to this.
22427 (term_show_mouse_face, term_clear_mouse_face)
22428 (term_mouse_highlight): Use Qmouse_face_window.
22429 (term_mouse_moveto): New function.
22430 (term_mouse_position): Make it work.
22431 (syms_of_term): Uncomment assignment to mouse_position_hook.
22432 Staticpro Qmouse_face_window.
22433
224342007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22435
22436 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22437 around current_column call.
22438
224392007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22440
22441 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22442 * xdisp.c (next_element_from_buffer):
22443 * window.c (delete_window):
22444 * term.c (term_mouse_highlight):
22445 * msdos.c (getdefdir):
22446 * macterm.c (mac_create_bitmap_from_bitmap_data)
22447 (init_font_name_table):
22448 * fns.c (Fsxhash):
22449 * data.c (Fmake_local_variable):
22450 * ccl.c (ccl_driver): Likewise.
22451
224522007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22453
22454 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22455 Call mac_wakeup_from_rne on window size change.
22456
224572007-05-25 Chong Yidong <cyd@stupidchicken.com>
22458
22459 * image.c (uncache_image): Fix typo.
22460
224612007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22462
22463 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22464
224652007-05-22 Richard Stallman <rms@gnu.org>
22466
22467 * xterm.c (x_connection_closed): Remove NO_RETURN.
22468
224692007-05-22 Martin Rudalics <rudalics@gmx.at>
22470
22471 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22472
224732007-05-21 Chong Yidong <cyd@stupidchicken.com>
22474
22475 * image.c (uncache_image): New function.
22476 (Fimage_refresh): New function.
22477
224782007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22479
22480 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22481
224822007-05-20 Nick Roberts <nickrob@snap.net.nz>
22483
22484 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22485 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22486
224872007-05-20 Nick Roberts <nickrob@snap.net.nz>
22488
22489 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22490 conditional on [HAVE_GPM_H].
22491
224922007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22493
22494 * syntax.c (skip_chars): Update syntax-table only after we checked that
22495 the new location is valid.
22496
224972007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22498
22499 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22500 mac_get_window_bounds.
22501
225022007-05-20 Nick Roberts <nickrob@snap.net.nz>
22503
22504 * Makefile.in (LIBGPM): Allow it to be set from configure.
22505 If set then link Emacs with it.
22506
22507 * config.in: Regenerate.
22508
22509 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22510 New externs.
22511
22512 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22513 Include gpm.h.
22514 (handle_one_term_event, term_gpm): New externs.
22515
22516 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22517 and allow it to be interrupted by SIGIO.
22518
22519 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22520 (wait_reading_process_output): Wait on gpm_fd too.
22521 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22522 (add_gpm_wait_descriptor_called_flag): New variable.
22523 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22524
22525 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22526 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22527 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22528 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22529 (make_lispy_event): Add case GPM_CLICK_EVENT.
22530 (read_avail_input): Handle mouse input.
22531
22532 * term.c (write_glyphs_with_face): New function.
22533 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22534 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22535 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22536 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22537 (last_mouse_x, last_mouse_y): New variables.
22538 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22539 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22540 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22541 (Fterm_close_connection): New functions.
22542 (term_init): Initialise mouse_face_window.
22543
225442007-05-19 Chong Yidong <cyd@stupidchicken.com>
22545
22546 * xdisp.c (redisplay_window): If first window line is a
22547 continuation line, recompute the new window start instead of
22548 recentering.
22549
225502007-05-18 Glenn Morris <rgm@gnu.org>
22551
22552 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22553 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22554
225552007-05-17 Glenn Morris <rgm@gnu.org>
22556
22557 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22558
225592007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22560
22561 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22562 dead key repeat and up events.
22563
225642007-05-14 Chong Yidong <cyd@stupidchicken.com>
22565
22566 * image.c (pbm_load): Check image size for monochrome pbm.
22567
225682007-05-13 Chong Yidong <cyd@stupidchicken.com>
22569
22570 * xterm.c (XTread_socket): Revert last change.
22571
225722007-05-12 Chong Yidong <cyd@stupidchicken.com>
22573
22574 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22575
22576 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22577
225782007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22579
22580 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22581 mixup (YAILOM).
22582
225832007-05-07 Andreas Schwab <schwab@suse.de>
22584
22585 * keymap.c (Flookup_key): Fix typo in last change.
22586
225872007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22588
22589 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22590 mapping for unibyte strings.
22591
225922007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22593
22594 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22595 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22596
225972007-04-29 Richard Stallman <rms@gnu.org>
22598
22599 * insdel.c (replace_range): For undo, record insertion first.
22600
226012007-04-29 Andreas Schwab <schwab@suse.de>
22602
22603 * lisp.h (VECSIZE): Use OFFSETOF.
22604
226052007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22606
22607 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22608 disabled lines.
22609
226102007-04-28 Richard Stallman <rms@gnu.org>
22611
22612 * lread.c (read_escape): In a string, \s is always space.
22613
226142007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22615
22616 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22617
22618 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22619 submenu for menu bar items.
22620
22621See ChangeLog.10 for earlier changes.
22622
22623;; Local Variables:
22624;; coding: utf-8
22625;; add-log-time-zone-rule: t
aac0c6e3
MR
22626;; End:
22627
5df4f04c 22628 Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
aac0c6e3
MR
22629
22630 This file is part of GNU Emacs.
22631
22632 GNU Emacs is free software: you can redistribute it and/or modify
22633 it under the terms of the GNU General Public License as published by
22634 the Free Software Foundation, either version 3 of the License, or
22635 (at your option) any later version.
22636
22637 GNU Emacs is distributed in the hope that it will be useful,
22638 but WITHOUT ANY WARRANTY; without even the implied warranty of
22639 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22640 GNU General Public License for more details.
22641
22642 You should have received a copy of the GNU General Public License
22643 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22644
22645;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40