Fix bug #7716 with PNG image support libraries on Windows.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
5be1c984
EZ
12010-12-31 Eli Zaretskii <eliz@gnu.org>
2
3 * image.c <Qlibpng_version>: New variable.
4 (syms_of_image): Intern and staticpro it. Set its value to the
5 version of PNG library we were compiled with.
6 (my_png_error, png_load): Avoid GCC warnings about direct access
7 to png_ptr->jmpbuf. (Bug#7716)
8
cf07311b
SM
92010-12-27 Stefan Monnier <monnier@iro.umontreal.ca>
10
11 * .gdbinit (xgetptr): Fix the union+lsb case.
12 (xbacktrace): Fix the union case.
13
794b75c7
SM
142010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
15
16 * window.c (Fmove_to_window_line): Avoid abort when called in a buffer
17 different from selected-window's.
18
2e4ab211
EZ
192010-12-25 Eli Zaretskii <eliz@gnu.org>
20
71fe378d
EZ
21 * keyboard.c (parse_menu_item): Prepend " " to the key sequence
22 equivalent of a menu item when the key sequence is given by the
23 `:keys' attribute. (Bug#7662)
24
2e4ab211
EZ
25 * xdisp.c (Fformat_mode_line): Doc fix: no need to state that only
26 the basic faces are supported.
27
84595ff0
JD
282010-12-24 Jan Djärv <jan.h.d@swipnet.se>
29
30 * xterm.c (x_check_fullscreen): Fix pixel/character mixup.
31
30d621a2
EZ
322010-12-17 Eli Zaretskii <eliz@gnu.org>
33
34 * xdisp.c (Fformat_mode_line): Fix last change.
35
4bf3e46e
CY
362010-12-16 Chong Yidong <cyd@stupidchicken.com>
37
38 * xdisp.c (Fformat_mode_line): Restrict the FACE argument to basic
39 faces (Bug#7587).
40
1b2a627f
EZ
412010-12-13 Eli Zaretskii <eliz@gnu.org>
42
43 * fileio.c (Fexpand_file_name): One more doc fix.
44
15579471
EZ
452010-12-12 Eli Zaretskii <eliz@gnu.org>
46
47 * fileio.c (Fexpand_file_name): Doc fix. (Bug#7617)
48
f0559026
EZ
492010-12-11 Eli Zaretskii <eliz@gnu.org>
50
76feb864
EZ
51 * w32fns.c (Fx_show_tip): Call try_window with last argument
52 TRY_WINDOW_IGNORE_FONTS_CHANGE. Delete the TODO ifdef: problem
53 solved. Round up the tip height to an integral multiple of the
54 frame's line height. Add FRAME_COLUMN_WIDTH to the tip width.
55 (Bug#7398)
56
f0559026
EZ
57 * xdisp.c (string_pos_nchars_ahead, c_string_pos)
58 (face_before_or_after_it_pos, next_element_from_string)
59 (next_element_from_c_string, produce_stretch_glyph): Remove unused
60 calculations of maximum string length before calling
61 string_char_and_length and STRING_CHAR_AND_LENGTH.
62 (string_char_and_length): Update commentary: MAXLEN is no longer
63 needed.
64
0b9fc69a
JD
652010-12-10 Jan Djärv <jan.h.d@swipnet.se>
66
67 * keyboard.c (kbd_buffer_get_event): Construct SAVE_SESSION_EVENT
68 as (Qsave_session arg).
69
70 * xsmfns.c (smc_interact_CB): Set arg to Qnil.
71 (smc_die_CB): Make an event with arg Qt.
72 (Fhandle_save_session): If event has Qt as argument,
73 call Fkill_emacs (Bug#7552).
74
2b815743
JD
752010-12-07 Jan Djärv <jan.h.d@swipnet.se>
76
77 * xsmfns.c (smc_die_CB): Call Fkill_emacs (Bug#7552).
78
d8b2a962
CY
792010-12-06 Chong Yidong <cyd@stupidchicken.com>
80
81 * dispextern.h (struct it): New member overlay_strings_charpos.
82
83 * xdisp.c (next_overlay_string, load_overlay_strings): Record the
84 charpos where we computed n_overlay_strings.
85 (next_overlay_string): Load overlay strings at recorded position,
86 which may not be the same as the iterator's charpos (Bug#7016).
87
a56d164e
JD
882010-12-05 Jan Djärv <jan.h.d@swipnet.se>
89
90 * nsterm.m (ns_dumpglyphs_image): If drawing cursor, fill background
91 with cursor color and draw a rectangle around the image (Bug#7412).
92
77f1ed6c
CY
932010-12-05 Chong Yidong <cyd@stupidchicken.com>
94
95 * xdisp.c (try_scrolling): Avoid infloop if the first line is
96 obscured due to a vscroll (Bug#7537).
97
2a91a0b5
JD
982010-12-02 Jan Djärv <jhd@zeplinf.localdomain>
99
100 * nsterm.h (FRAME_NS_TOOLBAR_HEIGHT): Rename to FRAME_TOOLBAR_HEIGHT.
101
102 * nsterm.m (x_set_window_size, windowWillResize, initFrameFromEmacs):
103 Use FRAME_TOOLBAR_HEIGHT.
104 (x_set_offset): Handle XNegative and YNegative in
105 f->size_hint_flags (Bug#7510).
106
b84ae584
KH
1072010-11-25 Kenichi Handa <handa@m17n.org>
108
109 * charset.c (emacs_mule_charset): Make it an array of charset ID;
110 i.e. integer.
111 (Fdefine_charset_internal): Adjusted for the above change.
112 (init_charset_once): Likewise.
113
114 * charset.h (emacs_mule_charset): Adjust the prototype. Delete
115 duplicated extern.
116
117 * coding.c (emacs_mule_char): Adjust for the change of
118 emacs_mule_charset.
119
120 * lread.c (read_emacs_mule_char): Adjust for the change of
121 emacs_mule_charset.
122
b8e5cf1d
EZ
1232010-11-22 Eli Zaretskii <eliz@gnu.org>
124
125 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
126 of w32api >= 3.15. (Bug#6989) (Bug#7452)
127
96ad0af7
YM
1282010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
129
130 * alloc.c (mark_terminals): Ensure that the image cache is marked
131 even if the terminal object was marked earlier (Bug#6301).
132
35f1de62
CY
1332010-11-21 Chong Yidong <cyd@stupidchicken.com>
134
135 * editfns.c (Fbyte_to_string): Signal an error arg is not a byte.
136
8d7f026f
JD
1372010-11-20 Jan Djärv <jan.h.d@swipnet.se>
138
139 * gtkutil.c (menubar_map_cb): New function (Bug#7425).
140 (xg_update_frame_menubar): Connect signal map to menubar_map_cb.
141 Use 23 as menubar height if 0. (Bug#7425).
142
37de8fd0
J
1432010-11-14 Jan Djärv <jan.h.d@swipnet.se>
144
145 * xsettings.c (init_gconf): Check HAVE_G_TYPE_INIT.
146
147 * config.in (HAVE_G_TYPE_INIT): New symbol.
148
c7926fe2
EZ
1492010-11-12 Eli Zaretskii <eliz@gnu.org>
150
151 * lread.c (Fload): Mention `load-in-progress' and
152 `load-file-name'. (Bug#7346)
153
c0098065
EZ
1542010-11-09 Eli Zaretskii <eliz@gnu.org>
155
86520d8c
EZ
156 * keyboard.c (kbd_buffer_nr_stored): Define only ifdef subprocesses.
157 (kbd_buffer_store_event_hold, kbd_buffer_get_event)
158 (tty_read_avail_input): Call kbd_buffer_nr_stored only ifdef
159 subprocesses. Use buffer_free only ifdef subprocesses.
160
161 * process.c (init_process) [subprocesses]: Init kbd_is_on_hold in
162 the subprocesses version, not in the non-subprocesses one.
163
794a4b6d
EZ
164 * Makefile.in: Don't use ## comment, it breaks the MSDOS build.
165
c0098065
EZ
166 * xfns.c (x_real_positions): Fix declaration-after-statement
167 problem.
168
be3faa80
CY
1692010-11-05 Chong Yidong <cyd@stupidchicken.com>
170
171 * image.c (free_image): Don't garbage the frame here, since this
172 function can be called while redisplaying (Bug#7210).
173 (uncache_image): Garbage the frame here (Bug#6426).
174
055c91d4 1752010-11-04 Chong Yidong <cyd@stupidchicken.com>
184765cc
CY
176
177 * process.c (Fmake_network_process): Don't apply Bug#5173 fix for
178 Windows.
179
055c91d4 1802010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
bd80a886
YM
181
182 * process.c (Fmake_network_process): Don't call turn_on_atimers around
183 `connect' (Bug#5723).
184
055c91d4 1852010-11-04 Helmut Eller <eller.helmut@gmail.com>
c2e124a9
HE
186
187 * process.c (Fmake_network_process): Call `select' for interrupted
188 `connect' rather than creating new socket (Bug#5173).
189
68ae6cda
KH
1902010-11-04 Kenichi Handa <handa@m17n.org>
191
192 * font.c (font_delete_unmatched): Check Vface_ignored_fonts.
193 Don't sheck SPEC if it is nil.
194 (font_list_entities): Call font_delete_unmatched if
195 Vface_ignored_fonts is non-nil.
196
db5cada2 1972010-11-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
fa884f18 198
2511e8e0
CY
199 * dispextern.h (TRY_WINDOW_CHECK_MARGINS)
200 (TRY_WINDOW_IGNORE_FONTS_CHANGE): New defines.
201
202 * xdisp.c (try_window): Change arg from CHECK_MARGINS to FLAGS.
203 Don't abort with fonts change if TRY_WINDOW_IGNORE_FONTS_CHANGE is
204 set in FLAGS. Callers with non-zero CHECK_MARGINS changed to use
205 TRY_WINDOW_CHECK_MARGINS.
206
207 * xfns.c (Fx_show_tip): Undo last change. Call try_window with
208 TRY_WINDOW_IGNORE_FONTS_CHANGE (Bug#2423).
fa884f18 209
d75c9992
JD
2102010-11-04 Jan Djärv <jan.h.d@swipnet.se>
211
31887d45
JD
212 * xfns.c (x_real_positions): Only use _NET_FRAME_EXTENTS if our
213 parent is the root window. Check this after traversing window tree.
214
d75c9992
JD
215 * xterm.c (x_term_init): Initialize Xatom_net_frame_extents.
216
217 * xterm.h (struct x_display_info): Xatom_net_frame_extents is new.
218
219 * xfns.c (x_real_positions): Try to get _NET_FRAME_EXTENTS first
220 before traversing window tree (Bug#5721).
221
754996bc
GM
2222010-11-03 Glenn Morris <rgm@gnu.org>
223
224 * Makefile.in (CRT_DIR): New variable, set by configure.
225 * m/amdx86-64.h, m/ibms390x.h (START_FILES, LIB_STANDARD):
226 Use $CRT_DIR rather than HAVE_LIB64_DIR. (Bug#5655)
227
3649d303
JD
2282010-11-01 Jan Djärv <jan.h.d@swipnet.se>
229
230 * process.c (kbd_is_on_hold): New variable.
231 (hold_keyboard_input, unhold_keyboard_input, kbd_on_hold_p):
232 New functions.
233 (wait_reading_process_output): If kbd_on_hold_p returns non-zero,
234 select on empty input mask.
235 (init_process): Initialize kbd_is_on_hold to 0.
236
237 * process.h (hold_keyboard_input, unhold_keyboard_input)
238 (kbd_on_hold_p): Declare.
239
240 * keyboard.c (input_available_signal): Declare.
241 (kbd_buffer_nr_stored): New function.
242 (kbd_buffer_store_event_hold): If kbd_buffer_nr_stored returns
243 more than KBD_BUFFER_SIZE/2, stop reding input (Bug#6571).
244 (kbd_buffer_get_event): If input is suspended and kbd_buffer_nr_stored
245 returns less than KBD_BUFFER_SIZE/4, resume reding input (Bug#6571).
246 (tty_read_avail_input): If input is on hold, return.
247 Don't read more that free slots in kbd_buffer (Bug#6571).
248
46eadc7a
CY
2492010-10-31 Chong Yidong <cyd@stupidchicken.com>
250
251 * xterm.c (x_connection_closed): Print informative error message
252 when aborting on GTK. This requires using shut_down_emacs
253 directly instead of Fkill_emacs.
254
655441b2
MA
2552010-10-25 Michael Albinus <michael.albinus@gmx.de>
256
257 * dbusbind.c (Fdbus_call_method_asynchronously)
258 (Fdbus_register_signal, Fdbus_register_method): Check, whether
259 `dbus-registered-objects-table' is initialized.
260
23c261f5
CY
2612010-10-24 Chong Yidong <cyd@stupidchicken.com>
262
263 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
264
89baa1df
EZ
2652010-10-22 Eli Zaretskii <eliz@gnu.org>
266
267 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
268
269 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
270 Deprecate use as a boolean flag.
271
5419963b
KB
2722010-10-18 Ken Brown <kbrown@cornell.edu>
273
274 * s/cygwin.h (SIGNALS_VIA_CHARACTERS): New define (bug#7225).
275
31daa5e1
KH
2762010-10-15 Kenichi Handa <handa@m17n.org>
277
278 Fix incorrect font metrics when the same font is opened with
279 different pixelsizes.
280
281 * xftfont.c: Include composite.h.
282 (xftfont_shape): New function.
283 (syms_of_xftfont): Set xftfont_driver.shape.
284
9fa82824
DP
2852010-10-13 Damyan Pepper <damyanp@gmail.com>
286
287 Fix handling of font properties on Windows (bug#6303).
288 * font.c (font_filter_properties): New function, refactored from
289 ftfont_filter_properties.
290 * font.h (font_filter_properties): Declare.
291 * ftfont.c (ftfont_filter_properties): Use font_filter_properties.
292 * w32font.c (w32font_booleans, w32font_non_booleans): New variables.
293 (w32font_filter_properties): New function.
294 (w32font_driver): Add w32font_filter_properties.
295
51e4f4a8
JB
2962010-10-12 Juanma Barranquero <lekktu@gmail.com>
297
c0943d3d 298 * font.c (Ffont_variation_glyphs):
51e4f4a8
JB
299 * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
300
a2e35ef5
JD
3012010-10-10 Jan Djärv <jan.h.d@swipnet.se>
302
303 * nsterm.m (Qleft): Declare.
304 (ns_right_alternate_modifier): New variable
305 (NSRightAlternateKeyMask): New define.
306 (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
307 ns_right_alternate_modifier isn't Qleft.
308 (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
309 as emacs modifier for NSRightAlternateKeyMask.
310 (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.
311
2e828c79
MA
3122010-10-08 Michael Albinus <michael.albinus@gmx.de>
313
314 * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object.
315 (xd_pending_messages): Catch xd_get_dispatch_status calls.
316
93d50df8
KH
3172010-10-08 Kenichi Handa <handa@m17n.org>
318
2b7c9342 319 * coding.c (complement_process_encoding_system): Fix previous change.
5886ec9c 320
a79b0f28
MA
3212010-10-03 Michael Albinus <michael.albinus@gmx.de>
322
323 * dbusbind.c (syms_of_dbusbind): Move putenv call ...
324 (Fdbus_init_bus): ... here. (Bug#7113)
325
7b2bf907
GM
3262010-10-03 Glenn Morris <rgm@gnu.org>
327
328 * buffer.c (before-change-functions, after-change-functions):
329 Three-year overdue doc fix following 2007-08-13 change.
330
1911a33b
KH
3312010-10-02 Kenichi Handa <handa@m17n.org>
332
333 * coding.c (coding_inherit_eol_type): If parent doesn't specify
334 eol-format, inherit from the system's default.
335 (complement_process_encoding_system): Make a new coding system
336 inherit the original eol-format.
337
fcaf8878
KH
3382010-09-30 Kenichi Handa <handa@m17n.org>
339
340 * coding.c (complement_process_encoding_system): New function.
341
342 * coding.h (complement_process_encoding_system): Extern it.
343
344 * callproc.c (Fcall_process): Complement the coding system for
345 encoding arguments.
346 (Fcall_process_region): Complement the coding system for encoding
347 the input to the process.
348
349 * process.c (Fstart_process): Complement the coding system for
350 encoding arguments.
351 (send_process): Complement the coding system for encoding what
352 sent to the process.
353
18acb5ad
KH
3542010-09-29 Kenichi Handa <handa@m17n.org>
355
356 * xfont.c (xfont_open): Fix setting of font->average_width from
357 :avgwidth property (Bug#7123).
358
dec83468
MA
3592010-09-28 Michael Albinus <michael.albinus@gmx.de>
360
361 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
362 is more portable.
363
364 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
365 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
366 has not defined SIGIO.
367
e0720500
MA
3682010-09-27 Michael Albinus <michael.albinus@gmx.de>
369
11a5af7c 370 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
e0720500
MA
371 (Bug#7113)
372
42d3022b
J
3732010-09-26 Jan Djärv <jan.h.d@swipnet.se>
374
375 * xgselect.c (xg_select): Clear file descriptors not set from
376 rfds and wfds.
377
fbb3da77
SM
3782010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
379
380 * syntax.c (back_comment): Detect the case where a 1-char comment
381 starter is also the 2nd char of a 2-char comment ender.
382
2b5b82db
J
3832010-09-17 Jan Djärv <jan.h.d@swipnet.se>
384
385 * gtkutil.c (xg_tool_bar_menu_proxy): Set gtk-menu-items to TRUE.
386
5f61a25c
J
3872010-09-12 Jan Djärv <jan.h.d@swipnet.se>
388
389 * xterm.c (get_current_vm_state): New function.
390 (do_ewmh_fullscreen): Call get_current_vm_state and compare with
391 want_fullscreen so set_wm_state calls are few (Bug#7013).
392 (x_handle_net_wm_state): Move code to get_current_vm_state and
393 call that function.
394
65c92e31 3952010-09-11 Courtney Bane <emacs-bugs-7626@cbane.org> (tiny change)
65b3d997
A
396
397 * term.c (tty_set_terminal_modes): Don't initialize twice (bug#7002).
398
a552b35a
KH
3992010-09-08 Kenichi Handa <handa@m17n.org>
400
401 * coding.c (encode_coding_iso_2022): Don't optimize for ASCII if
402 we may use designation or locking-shift.
403
396475b7
KH
4042010-09-07 Kenichi Handa <handa@m17n.org>
405
406 * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
407 sequence when the source is multibyte.
408
d419e1d9
KH
4092010-08-31 Kenichi Handa <handa@m17n.org>
410
411 * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
412 characters.
413
414 * term.c (encode_terminal_code): Fix the previous change.
65b3d997
A
415 (produce_glyphs): Don't set it->char_to_display here.
416 Don't handle unibyte-display-via-language-environment here.
d419e1d9
KH
417 (produce_special_glyphs): Set temp_it.char_to_display before
418 calling produce_glyphs.
419
420 * xdisp.c (get_next_display_element): Set it->char_to_display
421 here. Convert all 8-bit bytes from unibyte buffer/string to 8-bit
422 characters.
423 (get_overlay_arrow_glyph_row): Set it.char_to_display too before
424 calling PRODUCE_GLYPHS.
425 (append_space_for_newline): Save and store it->char_to_display.
426 Set it->char_to_display before calling PRODUCE_GLYPHS.
427 (extend_face_to_end_of_line): Set it->char_to_display before
428 calling PRODUCE_GLYPHS.
429 (get_glyph_face_and_encoding): Set the glyph code an 8-bit
430 character to its byte value.
431 (get_char_glyph_code): New function.
432 (produce_stretch_glyph): Set it2.char_to_display too before
433 calling x_produce_glyphs.
434 (x_produce_glyphs): Simplify by using the same code for ASCII and
65b3d997
A
435 non-ASCII characters. Don't set it->char_to_display here.
436 Don't handle unibyte-display-via-language-environment here. For a
c0943d3d 437 character of no glyph, use font->space_width instead of FONT_WIDTH.
d419e1d9 438
769ae9e1
KH
4392010-08-29 Kenichi Handa <handa@m17n.org>
440
441 * term.c (encode_terminal_code): Encode byte chars to the
442 correspnding bytes.
443
b72e0717
AS
4442010-08-17 Andreas Schwab <schwab@linux-m68k.org>
445
446 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA_LISP
447 instead of SAFE_ALLOCA.
448
3a7a9129
CY
4492010-08-17 Chong Yidong <cyd@stupidchicken.com>
450
451 * eval.c (Flet, Feval, Fapply, apply_lambda): Use SAFE_ALLOCA
452 (Bug#6214).
453
983b8302
J
4542010-08-14 Jan Djärv <jan.h.d@swipnet.se>
455
456 * doc.c (Fsnarf_documentation): Set skip_file only if p[1] is S.
457
7d1b9df3
J
4582010-08-13 Jan Djärv <jan.h.d@swipnet.se>
459
460 * doc.c (Fsnarf_documentation): Initialize skip_file before
461 build-files test.
462
2294b255
PG
4632010-08-09 Peter O'Gorman <pogma@thewrittenword.com> (tiny change)
464
65b3d997
A
465 * s/hpux10-20.h (HAVE_TERMIOS, NO_TERMIO, ORDINARY_LINK):
466 New definitions.
2294b255
PG
467 (HAVE_TERMIO): Remove.
468
7a84eee5
KH
4692010-08-06 Kenichi Handa <handa@m17n.org>
470
471 * charset.c: Include <stdlib.h>
472 (struct charset_sort_data): New struct.
473 (charset_compare): New function.
c0943d3d 474 (Fsort_charsets): New function.
7a84eee5
KH
475 (syms_of_charset): Declare Fsort_charsets as a Lisp function.
476
477 * coding.c (decode_coding_iso_2022): Fix checking of dimension
478 number in CTEXT extended segment.
479
f5f6c0e0
JB
4802010-08-01 Juanma Barranquero <lekktu@gmail.com>
481
482 * w32fns.c (syms_of_w32fns) <x-max-tooltip-size>: Fix typo in docstring.
483 * xfns.c (syms_of_xfns) <x-max-tooltip-size>: Reflow docstring.
484
b756c005
JB
4852010-07-30 Juanma Barranquero <lekktu@gmail.com>
486
487 * fns.c (Fsubstring_no_properties, Fnthcdr, Ffeaturep)
488 (Fhash_table_size): Fix typos in docstrings.
489 (Fmake_hash_table): Doc fix.
490
b4f588fa
JB
4912010-07-28 Juanma Barranquero <lekktu@gmail.com>
492
493 * minibuf.c (syms_of_minibuf) <read-buffer-function>:
494 Doc fix (bug#5625).
495
9f8c08a7
KB
4962010-07-27 Ken Brown <kbrown@cornell.edu>
497
498 * dired.c (DIRENTRY_NONEMPTY) [cygwin]: Use d_ino instead of
499 the MSDOS definition.
500
a2a0d36b
CS
5012010-07-25 Christoph Scholtes <cschol2112@gmail.com>
502
503 * minibuf.c (Fread_buffer): Doc fix (bug#6528).
504
a77cfeaf
CS
5052010-07-22 Christoph Scholtes <cschol2112@gmail.com>
506
507 * window.c (Fwindow_height): Doc fix (bug#6518).
508
14fb5704
JB
5092010-07-21 Juanma Barranquero <lekktu@gmail.com>
510
511 * buffer.c (syms_of_buffer) <fringe-indicator-alist>: Doc fix.
512
499322ce
J
5132010-07-17 Jan Djärv <jan.h.d@swipnet.se>
514
515 * gtkutil.c (xg_event_is_for_menubar): Also check that event window
516 is related to the menu bar (Bug#6499).
517
b78f9767
J
5182010-07-14 Jan Djärv <jan.h.d@swipnet.se>
519
520 * xterm.h (x_menubar_window_to_frame): Second parameter is XEvent*.
521
522 * xterm.c (handle_one_xevent): Pass event to x_menubar_window_to_frame.
523
524 * xmenu.c (x_activate_menubar): Revert previous fix for Bug#6499,
525 i.e. don't put back ButtonRelease (Bug#6608).
526
527 * xfns.c (x_menubar_window_to_frame): Take XEvent as second parameter
528 instead of Window. Call xg_event_is_for_menubar when
529 USE_GTK (Bug#6499).
530
531 * gtkutil.h (xg_event_is_for_menubar): Declare.
532
533 * gtkutil.c (xg_event_is_for_menubar): New function (Bug#6499).
534
1f60c16a
EZ
5352010-07-14 Eli Zaretskii <eliz@gnu.org>
536
537 * w32fns.c (x_set_foreground_color): Fix setting the cursor color
538 when it's the same as the old foreground. (Bug#6609)
539
7c33a057
CY
5402010-07-10 Chong Yidong <cyd@stupidchicken.com>
541
542 * xfaces.c (realize_face): Garbage the frame if a face is removed
543 (Bug#6593).
544
9d70a3fc
AS
5452010-07-05 Andreas Schwab <schwab@linux-m68k.org>
546
547 * keyboard.c: Remove duplicate <setjmp.h>.
548 (read_key_sequence): Remove volatile qualifiers.
549
5a874e95
YM
5502010-07-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
551
552 * dispextern.h (FRINGE_HEIGHT_BITS): New define.
553 (struct glyph_row): New members left_fringe_offset and
554 right_fringe_offset.
555
556 * xterm.c (x_draw_fringe_bitmap): Don't clip bottom aligned bitmap
557 specially.
558 * w32term.c (w32_draw_fringe_bitmap): Likewise.
559 * nsterm.m (ns_draw_fringe_bitmap): Likewise.
560
561 * fringe.c (draw_fringe_bitmap_1): Don't clip bitmap here.
562 Take account of bitmap offset.
563 (draw_window_fringes): Take account of window vscroll.
564 (update_window_fringes): Likewise. Extend top-aligned top indicator
565 or bottom-aligned bottom indicator to adjacent rows if it doesn't fit
566 in one row. Don't set redraw_fringe_bitmaps_p outside row comparison.
567 Set left_fringe_offset and right_fringe_offset (Bug#5634, Bug#6325).
568
0682186e
JB
5692010-07-04 Juanma Barranquero <lekktu@gmail.com>
570
571 * w32fns.c (Qtooltip): Declare.
572 Suggested by Andy Moreton <andrewjmoreton@gmail.com>.
573
ad3e6f44
J
5742010-07-03 Jan Djärv <jan.h.d@swipnet.se>
575
576 * xmenu.c (x_activate_menubar): Send Press/Release for Gtk+ to avoid
577 grab on just Press (Bug#6499).
578
54ee7410
CY
5792010-07-02 Chong Yidong <cyd@stupidchicken.com>
580
581 * frame.c (Qtooltip): New var.
582 (delete_frame): Use it. Fix faulty if statement. Don't update
583 mode line for tooltip frames. Suggested by Martin Rudalics.
584
585 * xfns.c (x_create_tip_frame):
586 * w32fns.c (x_create_tip_frame): Use it.
587
3d8416fc
NA
5882010-06-30 Naohiro Aota <naota@elisp.net> (tiny change)
589
590 * xftfont.c (xftfont_open): Check font width one by one also when
591 spacing is dual.
592
593 * ftfont.c (ftfont_open): Ditto.
594
b1feb9b4
AS
5952010-06-26 Andreas Schwab <schwab@linux-m68k.org>
596
597 * alloc.c (Fmake_byte_code): Don't access undefined argument
598 (Bug#6517).
599
c7dd9743
CY
6002010-06-25 Chong Yidong <cyd@stupidchicken.com>
601
602 * xdisp.c (next_element_from_image): Ensure that after-strings are
603 read the next time we hit handle_stop (Bug#1336).
604
5721b4ed
AS
6052010-06-23 Andreas Schwab <schwab@linux-m68k.org>
606
607 * lread.c (read1): Signal error if #s is not followed by paren.
608
277c5f18
CY
6092010-06-19 Chong Yidong <cyd@stupidchicken.com>
610
52ab9bb2
CY
611 * image.c (free_image): Mark frame as garbaged (Bug#6426).
612
277c5f18
CY
613 * keymap.c (Fdefine_key): Doc fix (Bug#6460).
614
6fda6a0c
GM
6152010-06-15 Glenn Morris <rgm@gnu.org>
616
617 * editfns.c (Fbyte_to_string): Pacify compiler.
618
e454a4a3
SM
6192010-06-09 Stefan Monnier <monnier@iro.umontreal.ca>
620
621 * dbusbind.c (xd_append_arg): Don't "make-unibyte" the string.
622 Check `object's type before accessing its guts.
623
657d4c0b
AS
6242010-06-08 Andreas Schwab <schwab@linux-m68k.org>
625
626 * minibuf.c (Fall_completions): Add more checks.
627
9b27fd9f
JB
6282010-06-08 Juanma Barranquero <lekktu@gmail.com>
629
630 * minibuf.c (Fall_completions): Check COLLECTION's size (bug#6378).
631
0eb7675e
AS
6322010-06-03 Andreas Schwab <schwab@linux-m68k.org>
633
634 * process.c (conv_lisp_to_sockaddr): Fix conversion of IPv4
f07b083d 635 address. (Bug#6346)
0eb7675e 636
78edd3b7
JB
6372010-06-03 Juanma Barranquero <lekktu@gmail.com>
638
639 * ccl.c (Fccl_program_p): Fix typo in docstring.
640
1ab8293c
SM
6412010-05-31 Stefan Monnier <monnier@iro.umontreal.ca>
642
643 * keymap.c (Fwhere_is_internal): Fix handling of remapping (in thread
644 of bug#6305).
645
5ca3929b
CY
6462010-05-27 Chong Yidong <cyd@stupidchicken.com>
647
648 * xdisp.c (redisplay_window): After redisplay, check if point is
649 still valid before setting it (Bug#6177).
650
f5b416d2 6512010-05-20 enami tsugutomo <tsugutomo.enami@jp.sony.com>
652
653 * s/netbsd.h: If terminfo is found, use it in preference to
654 termcap. (Bug#6190) [Backport from trunk]
655
aeb77d46
CY
6562010-05-20 Kevin Ryde <user42@zip.com.au>
657
658 * keyboard.c (Vlast_command, Vkeyboard_translate_table)
659 (Voverriding_terminal_local_map, Vsystem_key_alist)
660 (Vlocal_function_key_map): Fix manual link in docstring (Bug#6224).
661
c3bb441d
SM
6622010-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
663
664 * editfns.c (Fbyte_to_string): New function.
665
754790b6
CY
6662010-05-18 Chong Yidong <cyd@stupidchicken.com>
667
668 * character.c (Fstring, Funibyte_string): Use SAFE_ALLOCA to
669 prevent stack overflow if number of arguments is too large
670 (Bug#6214).
671
c8670ded
EZ
6722010-05-11 Eli Zaretskii <eliz@gnu.org>
673
674 * makefile.w32-in ($(BLD)/w32fns.$(O)): Depend on $(SRC)/w32.h.
675
676 * w32fns.c: Include w32.h.
677 (Fw32_shell_execute): Decode the error message before passing it
678 to `error'. (Bug#6126)
679
3ffd4615 6802010-05-11 Karel Klic <kklic@redhat.com>
c90ca7b7
KH
681
682 * ftfont.c: Fix incorrect parentheses of #if condition for
683 definining M17N_FLT_USE_NEW_FEATURE.
684
61a808e8
CY
6852010-05-07 Chong Yidong <cyd@stupidchicken.com>
686
687 * Version 23.2 released.
688
5dcde606
AS
6892010-04-30 Andreas Schwab <schwab@linux-m68k.org>
690
691 * composite.c (autocmp_chars): Save point as marker before calling
692 auto-composition-function (Bug#5984).
693
694 * lisp.h (restore_point_unwind): Add prototype.
695
696 * fileio.c (restore_point_unwind): Remove static attribute.
697
c4170e32
KH
6982010-04-23 Kenichi Handa <handa@m17n.org>
699
700 * ftfont.c (M17N_FLT_USE_NEW_FEATURE): Define it if we can use the
701 new feature of libotf and m17n-flt.
65b3d997
A
702 (ftfont_check_otf) [M17N_FLT_USE_NEW_FEATURE]:
703 Call OTF_check_features even if no specific feature is given.
c4170e32
KH
704 (PACK_OTF_TAG) [M17N_FLT_USE_NEW_FEATURE]: New macro.
705 (ftfont_drive_otf) [M17N_FLT_USE_NEW_FEATURE]: Handle the case
706 that OUT is NULL. Use OTF_drive_gsub_with_log and
707 OTF_drive_gpos_with_log instead of OTF_drive_gsub and
708 OTF_drive_gpos.
709 (ftfont_try_otf) [M17N_FLT_USE_NEW_FEATURE]: New function.
65b3d997
A
710 (ftfont_shape_by_flt) [M17N_FLT_USE_NEW_FEATURE]:
711 Setup mflt_enable_new_feature and mflt_try_otf.
c4170e32 712
e42cd1a7
JB
7132010-04-19 Juanma Barranquero <lekktu@gmail.com>
714
715 * dired.c (Ffile_attributes): Fix typo in docstring.
716
79353a53
AR
7172010-04-13 Adrian Robert <Adrian.B.Robert@gmail.com>
718
719 * nsmenu.m (EmacsDialog-runDialogAt:): Declare ret as
720 NSInteger (Bug#5811).
721
658b9b93
YM
7222010-04-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
723
724 * s/darwin.h (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_TTY_NAME_SPRINTF)
725 (PTY_OPEN): New defines. Use openpty (Bug#726, Bug#5819).
726
16009a0e
YM
7272010-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
728
729 * frame.h (FRAME_LINE_TO_PIXEL_Y): Add missing parenthesis.
730
f016f225
JD
7312010-04-07 Jan Djärv <jan.h.d@swipnet.se>
732
733 * frame.h (FRAME_TEXT_LINES_TO_PIXEL_HEIGHT): Don't use
734 FRAME_LINE_TO_PIXEL_Y.
735
736 * xterm.c (x_set_window_size_1): Don't add border_width/height to
737 pixelwidth/height.
738
84257d93
CY
7392010-04-05 Chong Yidong <cyd@stupidchicken.com>
740
741 * xdisp.c (prepare_menu_bars): Don't call ns_set_doc_edited for
742 terminal frames (Bug#5837).
743
95b1abcf
CY
7442010-03-31 Chong Yidong <cyd@stupidchicken.com>
745
746 * nsfns.m (ns_set_doc_edited): Remove unused arg OLDVAL.
747 * nsterm.h: Fix prototype.
748
4a217bed
EZ
7492010-03-31 Eli Zaretskii <eliz@gnu.org>
750
751 * w32fns.c (x_create_tip_frame): Copy `parms' before we modify it
752 in this function. (Bug#5703)
753
4f103e04
CY
7542010-03-31 Chong Yidong <cyd@stupidchicken.com>
755
756 * nsterm.h: Fix last change.
757
a6d676d9
CY
7582010-03-30 Bernhard Herzog <bh@intevation.de> (tiny change)
759
760 * menu.c (Fx_popup_menu): Use last_event_timestamp (Bug#4930).
761
67fee863
JD
7622010-03-30 Jan Djärv <jan.h.d@swipnet.se>
763
764 * xdisp.c (note_mouse_highlight): Don't do highlight if pointer is
765 invisible (Bug#5766).
766
9ae6e189
CY
7672010-03-29 Adrian Robert <adrian.b.robert@gmail.com>
768
769 * xdisp.c (x_consider_frame_title, update_window_cursor): Remove
770 HAVE_NS conditionals.
194d44e7 771 (prepare_menu_bars) [HAVE_NS]: Call ns_set_doc_edited.
9ae6e189
CY
772
773 * nsfns.m (x_implicitly_set_name): If frame-title-format is t, use
774 filename for the title.
775 (ns_set_doc_edited): Do nothing if the selected window is a
776 minibuffer window.
777
778 * nsterm.h: Add prototypes for ns_set_name_as_filename and
779 ns_set_doc_edited.
780
781 * nsterm.m: Remove unneeded prototype.
782
25c72475
GM
7832010-03-28 Glenn Morris <rgm@gnu.org>
784
785 * Makefile.in (SOME_MACHINE_OBJECTS): Ensure dbus stuff is always
786 in the DOC file. (Bug#5336)
787
f79a01db
CY
7882010-03-24 Chong Yidong <cyd@stupidchicken.com>
789
790 * xdisp.c (pos_visible_p): Revert 2008-01-25 change (Bug#5730).
791
93318cbd
JD
7922010-03-20 Jan Djärv <jan.h.d@swipnet.se>
793
794 * frame.c (x_get_arg): Handle RES_TYPE_BOOLEAN_NUMBER (bug #5736).
795
796 * xfns.c (Fx_create_frame): Make menuBar a RES_TYPE_BOOLEAN_NUMBER.
797
798 * dispextern.h (resource_types): RES_TYPE_BOOLEAN_NUMBER is new.
799
ad13a3ee
YM
8002010-03-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
801
802 * xfns.c (Fx_create_frame) [USE_LUCID]: Add BLOCK_INPUT around
803 XLoadQueryFont.
804
fbdc1721
KH
8052010-03-16 Kenichi Handa <handa@m17n.org>
806
807 * coding.c (decode_coding_ccl): Fix previous change for the
808 multibyte case.
fb608df3
KH
809 (encode_coding_ccl): Don't setup ccl program here. Fix for the
810 case that the output buffer is fullfilled.
811 (encode_coding): Setup ccl program here.
fbdc1721 812
35cd7cd6
CY
8132010-03-15 Andreas Politz <politza@fh-trier.de> (tiny change)
814
815 * editfns.c (Fformat): Account for string precision when computing
816 field width (Bug#5710).
817
618db430
SM
8182010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
819
c0335e02
SM
820 Make it possible to C-g in a tight bytecode loop again (bug#5680).
821 * lisp.h (ELSE_PENDING_SIGNALS): New macro.
822 (QUIT): Use it to consolidate code and remove redundancy.
823 * bytecode.c (BYTE_CODE_QUIT): Use it as well.
824
254c06a8
SM
825 * regex.c (regex_compile): Setup gl_state as well.
826
618db430
SM
827 * syntax.c (skip_chars): Setup gl_state (bug#3823).
828 (in_classes): Use CONSP before XCAR/XCDR.
829
233f0c9f
CY
8302010-03-03 Chong Yidong <cyd@stupidchicken.com>
831
832 * keymap.c (Fwhere_is_internal): Use Fequal to compare
833 definitions, so that keyboard macros are correctly handled
834 (Bug#5481).
835
75f80e63
EZ
8362010-03-02 Eli Zaretskii <eliz@gnu.org>
837
838 * coding.c (decode_coding_emacs_mule): Fixup pointers to buffer
839 text that could be relocated inside the call to emacs_mule_char.
840 (emacs_mule_char): Use CODING_DECODE_CHAR instead of DECODE_CHAR.
841 (CODING_DECODE_CHAR): Add a comment describing its purpose.
842
dcfb9bc4
KH
8432010-03-02 Kenichi Handa <handa@m17n.org>
844
fc9a17bc
KH
845 * character.c (parse_str_as_multibyte): Fix handling of the
846 multibyte form of raw-bytes.
847 (str_as_multibyte): Likewise.
848
dcfb9bc4
KH
849 * buffer.c (Fset_buffer_multibyte): Fix handling of the multibyte
850 form of raw-bytes.
851
412c01b6
CY
8522010-02-28 Chong Yidong <cyd@stupidchicken.com>
853
854 * charset.c (load_charset_map_from_file)
855 (load_charset_map_from_vector): Zero out allocated
856 charset_map_entries before using them.
857
df7e1ea0
AS
8582010-02-27 Andreas Schwab <schwab@linux-m68k.org>
859
860 * w32uniscribe.c (uniscribe_check_otf): Fix length check.
861
fe69a722
CY
8622010-02-27 Chong Yidong <cyd@stupidchicken.com>
863
4ed28cf4
CY
864 * font.c (font_parse_fcname): Recognize "Book", "Condensed",
865 "Medium", and "Semi-Condensed" keywords in GTK names (Bug#5646).
fe69a722 866
7379cfce
KH
8672010-02-26 Kenichi Handa <handa@m17n.org>
868
f88cc4d6
KH
869 * ftfont.c (ftfont_get_open_type_spec): Fix parsing of otf_spec.
870
7379cfce
KH
871 * xdisp.c (reseat_to_string): Fix previous change.
872
cf2fdcfb
CY
8732010-02-26 David Reitter <david.reitter@gmail.com>
874
875 * nsfont.m (nsfont_draw): ns_antialias_text should be a
876 Lisp_Object (Bug#4736).
877
cc6c7c75
KH
8782010-02-25 Kenichi Handa <handa@m17n.org>
879
880 * xdisp.c (reseat_to_string): Fix previous change (bug#5609).
881
32e737d7
JD
8822010-02-24 Jan Djärv <jan.h.d@swipnet.se>
883
884 * xterm.c (XTflash): Move declarations before statements.
885
886 * gtkutil.c (xg_get_gdk_display): Remove (unused).
887 (xg_get_pixbuf_from_pix_and_mask, xg_create_frame_widgets)
888 (xg_toggle_notify_cb, xg_set_toolkit_scroll_bar_thumb)
889 (xg_create_tool_bar): Remove unused variables.
890 (x_wm_set_size_hint): Move declarations before statements.
a73f9c9d 891 (xg_create_frame_widgets): Remove variable grav.
32e737d7 892
676cae9f
CY
8932010-02-21 Chong Yidong <cyd@stupidchicken.com>
894
895 * m/arm.h: Define the LIB_GCC flag to be -lgcc_s (Bug#5518).
896
886cc2b8
SM
8972010-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
898
899 * term.c (fatal): Add a final \n if needed (bug#5596).
900
ddb2d8e2
CY
9012010-02-18 Chong Yidong <cyd@stupidchicken.com>
902
903 * nsterm.m (ns_ring_bell): Revert last change (Bug#5569).
904
2a4f8d3d
GM
9052010-02-18 Glenn Morris <rgm@gnu.org>
906
907 * callint.c (Finteractive): Doc fix.
908
ebaf11b6
KH
9092010-02-18 Kazuhiro Ito <kzhr@d1.dion.ne.jp> (tiny change)
910
886cc2b8
SM
911 * coding.c (record_conversion_result):
912 Handle CODING_RESULT_INSUFFICIENT_DST.
ebaf11b6
KH
913 (decode_coding_object): Record CODING_RESULT_INSUFFICIENT_MEM on
914 memory allocation error.
915
d0396581
KH
9162010-02-17 Kenichi Handa <handa@m17n.org>
917
886cc2b8
SM
918 * coding.c (decode_coding_ccl): Don't setup ccl program here.
919 Fix for the case that the output buffer is fullfilled.
d0396581
KH
920 (decode_coding): Setup ccl program here. Keep looping when the
921 decoder stopped because the output buffer is
922 fullfilled (bug#5534).
923
924 * ccl.c (ccl_driver): Never reset ic to CCL_HEADER_MAIN.
925
98599f74
JD
9262010-02-13 Jan Djärv <jan.h.d@swipnet.se>
927
471e4f04 928 * xterm.c (x_clear_frame_area): Call gtk_widget_queue_draw if USE_GTK,
98599f74 929 bug #5571.
886cc2b8 930 (XTflash): Use Gdk-routines if USE_GTK so scroll bars don't get
471e4f04 931 overdrawn.
98599f74 932
182659ae
JD
9332010-02-10 Jan Djärv <jan.h.d@swipnet.se>
934
935 * xsmfns.c (x_session_initialize): Move initialization of ice_fd and
936 doing_interact here.
937 (ice_connection_closed): New function.
938 (x_session_check_input, smc_die_CB, ice_io_error_handler)
939 (ice_conn_watch_CB, x_session_close): Call ice_connection_closed.
940 (x_session_check_input): Call IceCloseConnection if IceProcessMessages
941 returns I/O error.
942 (ice_conn_watch_CB): Call add_keyboard_wait_descriptor on ice_fd,
943 bug #5512.
944
9be32c4e 9452010-02-08 Francis Devereux <francis@devrx.org> (tiny change)
14a225f9
CY
946
947 * nsfont.m (nsfont_open): The system's value for the font descent
948 is negative, so round it down to avoid clipping.
949
a2f3eb19
CY
9502010-02-06 Chong Yidong <cyd@stupidchicken.com>
951
952 * charset.c (load_charset_map_from_file)
953 (load_charset_map_from_vector): Fix last change to use SAFE_ALLOCA
953d248c 954 instead of xmalloc (Bug#5526). Suggested by Vivek Dasmohapatra.
a2f3eb19 955
3088147c
CY
9562010-02-05 Chong Yidong <cyd@stupidchicken.com>
957
958 * charset.c (load_charset_map_from_file): Allocate large
959 charset_map_entries structure on the heap rather than the stack.
960 (Bug#5526).
961
b57d9029
KH
9622010-01-31 Kenichi Handa <handa@m17n.org>
963
964 * font.c (font_parse_xlfd): If FONT is a font-entity and pixel
115e4fd3 965 size in NAME is invalid, return -1 (Bug#5396).
b57d9029 966
c67d885b
CY
9672010-01-31 Chong Yidong <cyd@stupidchicken.com>
968
969 * nsterm.m (ns_defined_color): Block input. Suggested by Mike
970 <deactivated@gmail.com> (Bug#3605).
971
8fab2362
CY
9722010-01-31 David De La Harpe Golden <david@harpegolden.net>
973
974 * fileio.c (Frename_file): Correctly rename symlinks to
975 directories (Bug#5496).
976
cb2a62f2
CY
9772010-01-31 Filipe Cabecinhas <filcab@gmail.com> (tiny change)
978
979 * nsterm.m (ns_ring_bell): Handle visible bell like X.
980
944c7a26
AS
9812010-01-30 Andreas Schwab <schwab@linux-m68k.org>
982
983 * character.h (CHAR_PRINTABLE_P): Reparenthesize to avoid warning.
984
c024ac08
CY
9852010-01-29 Chong Yidong <cyd@stupidchicken.com>
986
987 * frame.c (DEFAULT_ROWS): Change default to 35.
988
989 * xfns.c (x_default_font_parameter): Change default XFT font to
990 monospace-10 (Bug#3643).
991
af93af83
EZ
9922010-01-29 Eli Zaretskii <eliz@gnu.org>
993
994 * w32inevt.c (key_event): Remove unnecessary comparison of
995 event->uChar.AsciiChar with 128.
996
ca0eb708
CY
9972010-01-28 Chong Yidong <cyd@stupidchicken.com>
998
b242dbfc
CY
999 * fileio.c (Frename_file): Fix last change (Bug#5487).
1000
ca0eb708
CY
1001 * m/mips.h: Remove DATA_START. Suggested by Dan Nicolaescu.
1002
1003 * m/alpha.h: Don't define DATA_START on NetBSD (Bug#4629).
1004
45d45af5
JD
10052010-01-28 Jan Djärv <jan.h.d@swipnet.se>
1006
1007 * xfns.c (Fx_create_frame): Remove window size matching code from
1008 2010-01-15.
a73f9c9d 1009 (x_get_current_desktop, x_get_desktop_workarea): Remove.
45d45af5 1010
7e233730
JR
10112010-01-27 Jason Rumney <jasonr@gnu.org>
1012
1013 * w32inevt.c (w32_kbd_patch_key): Save the unicode character.
a292592c 1014 (key_event): Use unicode for characters 128 and higher (Bug#4567).
7e233730 1015
86e893e3
KH
10162010-01-27 Kenichi Handa <handa@m17n.org>
1017
1018 * regex.c (analyse_first): Fix setting of fastmap for unibyte
c8b96b2a 1019 pattern string (Bug#4209).
86e893e3 1020
8719abec
CY
10212010-01-27 David De La Harpe Golden <david@harpegolden.net>
1022
1023 * fileio.c (Frename_file): Call copy-directory and
1024 delete-directory for directories, in order to handle cross-device
1025 renaming (Bug#3353).
1026
844794c8
JD
10272010-01-25 Jan Djärv <jan.h.d@swipnet.se>
1028
aa3e13b5 1029 * xfns.c (Fx_create_frame): If frame height is too big, try
ac146f82 1030 sizes 24 and 10. Bug #3643.
844794c8 1031
bd4b5750
SM
10322010-01-24 Stefan Monnier <monnier@iro.umontreal.ca>
1033
8dc1adf6 1034 Try and fix bug#788, hopefully for real this time.
bd4b5750
SM
1035 * keymap.c (shadow_lookup): Add `remap' arg.
1036 (describe_map, describe_vector): Update calls to shadow_lookup.
1037 (Fwhere_is_internal): Fix up handling of `remapped_sequences' and
1038 `remapped' so this flag is applicable to `sequence'. Be careful to
8dc1adf6
SM
1039 perform remapping during shadow_lookup check of remapped_sequences.
1040
285d07e2
CY
10412010-01-24 Eric Bélanger <snowmaniscool@gmail.com> (tiny change)
1042
1043 * image.c (png_load): Use png_sig_cmp instead of the obsolete
1044 png_check_sig, which has been removed in libpng 1.4.
1045
c6d09b8d
CY
10462010-01-23 Giorgos Keramidas <keramida@ceid.upatras.gr> (tiny change)
1047
1048 * filelock.c: Include utmp.h only when HAVE_UTMP_H (FreeBSD 9.x
1049 lacks this header file).
1050
3d782998
YM
10512010-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1052
1053 * xdisp.c (draw_glyphs): Update `start' for left_overwritten case
1054 as in Emacs 22.
1055
2aff7c53
YM
10562010-01-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1057
1058 * lisp.h (make_pure_string): String pointer arg now points to const.
1059
1060 * alloc.c (find_string_data_in_pure, make_pure_string): String pointer
1061 args now point to const.
1062
74327f7a
EZ
10632010-01-22 Eli Zaretskii <eliz@gnu.org>
1064
1065 * lread.c (Fload): Don't treat files without .elc extension as
1066 byte-compiled if they are ``magic'', i.e. `openp' returned -2 for
1067 them. (bug#5303)
1068
4d1e6632
KH
10692010-01-20 Kenichi Handa <handa@m17n.org>
1070
1071 * coding.c (consume_chars): If ! multibyte and the encoder is ccl,
1072 treat the source as actual byte sequence.
1073
1fdede8f
AM
10742010-01-19 Alan Mackenzie <acm@muc.de>
1075
1076 Fix spurious before-change-functions invocation from (insert ?\n).
194d44e7 1077 * textprop.c (set_text_properties): Rename parameter
1fdede8f
AM
1078 `signal_after_change_p' to `coherent_change_p', and make the
1079 invocation of `modify_region' conditional on it.
1080
67477f30
JD
10812010-01-19 Jan Djärv <jan.h.d@swipnet.se>
1082
1083 * xsettings.c (apply_xft_settings): Save settings in Vxft_settings
1084 for debug purpose.
1085 (syms_of_xsettings): Declare xft-settings.
1086
244b023e
CY
10872010-01-18 Chong Yidong <cyd@stupidchicken.com>
1088
1089 * editfns.c (Fcurrent_time_string): Doc fix (Bug#5408).
1090
617364fe
CY
10912010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1092
1093 * xterm.c (event_handler_gdk): Block input (Bug#5037).
1094
4fe22cdf
CY
10952010-01-16 Chong Yidong <cyd@stupidchicken.com>
1096
1097 * emacs.c (standard_args): Adjust arg priorities to reflect how
1098 they are processed in startup.el.
1099
e118d2be
AS
11002010-01-16 Andreas Schwab <schwab@linux-m68k.org>
1101
1102 * Makefile.in (lisp, shortlisp): Update.
1103
523ae620
SM
11042010-01-16 Stefan Monnier <monnier@iro.umontreal.ca>
1105
1106 * xterm.c (x_term_init): Instead of inhibiting GC while running Lisp
1107 code, link the new kboard into all_kboard before running Lisp code,
1108 and protect the new terminal with GCPRO (Bug#5365).
1109 (x_term_init): Remove unused var `atom'.
1110 (x_delete_display, x_delete_terminal): Remove unused var `i'.
1111
f0d13888
JD
11122010-01-15 Jan Djärv <jan.h.d@swipnet.se>
1113
1114 * xfns.c (x_get_current_desktop, x_get_desktop_workarea): New functions.
1115 (Fx_create_frame): Call x_get_current_desktop and x_get_desktop_workarea
1116 to find out usable size of the desktop. Don't make frames larger than
ac146f82 1117 this. Bug #3643.
f0d13888 1118
cc320f07
KH
11192010-01-15 Kenichi Handa <handa@m17n.org>
1120
1121 * xdisp.c (CHAR_COMPOSED_P): New arg END_CHARPOS. Callers changed.
1122
7ffdf101
CY
11232010-01-15 Chong Yidong <cyd@stupidchicken.com>
1124
1125 * nsterm.m (Qnone): Define.
1126
1127 * nsfns.m (Qnone): Move definition to nsterm.m.
1128
d12bd917
KH
11292010-01-14 Kenichi Handa <handa@m17n.org>
1130
1131 * coding.c (detect_coding_iso_2022): Fix handling of euc-xx coding
1132 systems.
1133
d9a7c140
KH
11342010-01-14 Kenichi Handa <handa@m17n.org>
1135
1136 Make auto-composition work on all buffers even if they are
1137 fundamental mode.
1138
1139 * composite.c (Vauto_composition_mode): New variable.
1140 (composition_compute_stop_pos): Check Vauto_composition_mode
1141 instead of Vauto_composition_function.
1142 (composition_adjust_point, Ffind_composition_internal): Likewise.
1143 (syms_of_composite): Declare Lisp variable
1144 "auto-composition-mode" here.
1145
63286bb2
CY
11462010-01-13 Chong Yidong <cyd@stupidchicken.com>
1147
1148 * xterm.c (x_term_init): Avoid garbage-collecting the new terminal
1149 during call to vendor-specific-keysyms (Bug#5365).
1150
c2623ee7
YM
11512010-01-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1152
1153 * keyboard.c (input_available_signal) [SYNC_INPUT]:
1154 Call SIGNAL_THREAD_CHECK (Bug#5333).
1155
1156 * atimer.c (alarm_signal_handler) [!SYNC_INPUT]:
1157 Call SIGNAL_THREAD_CHECK.
1158
0b5397c2
SM
11592010-01-13 Stefan Monnier <monnier@iro.umontreal.ca>
1160
1161 Try to fix bug#5314. This is probably not the final word, tho.
1162 * buffer.c (Fset_buffer_modified_p): Try and be careful not to modify
1163 recent-auto-save-p as a side-effect.
1164 * buffer.h (BUF_AUTOSAVE_MODIFF): New macro.
1165 * buffer.c (Fkill_buffer, reset_buffer):
1166 * editfns.c (Fsubst_char_in_region):
1167 * fileio.c (Finsert_file_contents, Fdo_auto_save)
1168 (Fset_buffer_auto_saved, Frecent_auto_save_p): Use it.
1169
dc954cb2
KH
11702010-01-13 Kenichi Handa <handa@m17n.org>
1171
1172 Display buffer name, etc. in mode line by composing correctly.
1173
1174 * xdisp.c (reseat_to_string): Call composition_compute_stop_pos if
1175 STRING is not nil.
0b5397c2 1176 (display_mode_element): Adjust for the change of
dc954cb2
KH
1177 decode_mode_spec and display_line.
1178 (decode_mode_spec): Change arg MULTIBYTE to STRING.
1179 (display_string): Handle the case that STRING is non-null and
1180 LISP_STRING is not nil.
1181
0b5397c2
SM
1182 * xterm.c (x_draw_composite_glyph_string_foreground):
1183 Pay attention to s->face->overstrike.
dc954cb2
KH
1184
1185 * composite.c (composition_reseat_it): Don't check PT if STRING is
1186 non nil.
1187
4a00eaca
YM
11882010-01-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1189
1190 * keyboard.c (read_char): Don't apply previous change when current
1191 buffer is unchanged by command execution.
1192
60abb287
JD
11932010-01-12 Jan Djärv <jan.h.d@swipnet.se>
1194
1195 * keyboard.c (read_char): Return after executing from special map.
1196
893db5bc
GM
11972010-01-12 Glenn Morris <rgm@gnu.org>
1198
1199 * emacs.c (REPORT_EMACS_BUG_PRETEST_ADDRESS): Set it to
1200 bug-gnu-emacs rather than emacs-pretest-bug.
1201
4d03ece0
CY
12022010-01-11 Chong Yidong <cyd@stupidchicken.com>
1203
1204 * nsterm.m (syms_of_nsterm): Initialize Qcontrol etc. before
1205 initializing the Lisp variables that depend on them.
1206
1df47e38
YM
12072010-01-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1208
1209 * xfns.c (x_set_menu_bar_lines) [!USE_X_TOOLKIT && !USE_GTK]:
1210 Clear areas that will not be updated after change of menu bar lines.
1211 Clear the menu bar window's current matrix when the window gets empty.
1212
2f1c6384
CY
12132010-01-09 Chong Yidong <cyd@stupidchicken.com>
1214
e398c61c
CY
1215 * intervals.h, textprop.c (extend_property_ranges): Return value
1216 and args changed. Discard properties that begin at or after the
1217 new end (Bug#5306).
1218
1219 * editfns.c (Fformat): Caller changed.
1220
e5a29a10
CY
1221 * nsterm.m (ns_set_default_prefs): Delete function.
1222 (syms_of_nsterm): Initialize ns_command_modifier,
1223 ns_control_modifier, ns_function_modifier, ns_antialias_text, and
1224 ns_antialias_threshold here, not in ns_term_init (Bug#4113).
1225
2f1c6384
CY
1226 * xdisp.c (pos_visible_p): Check for invisible text at the correct
1227 position (Bug#4040).
1228
d427a9fa
EZ
12292010-01-09 Eli Zaretskii <eliz@gnu.org>
1230
1231 * editfns.c (Ffloat_time): Doc fix.
1232
21b9df2f
JD
12332010-01-09 Jan Djärv <jan.h.d@swipnet.se>
1234
1235 * xfns.c (Fx_create_frame): Don't create frame larger than display
1236 by default bug#3643.
1237
4b00d3b1
YM
12382010-01-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1239
1240 * frame.h (FRAME_TOP_MARGIN_HEIGHT): New macro.
1241 (FRAME_LINE_TO_PIXEL_Y, FRAME_PIXEL_Y_TO_LINE): Take account of pseudo
1242 windows above internal border.
1243
1244 * window.h (WINDOW_MENU_BAR_P, WINDOW_TOOL_BAR_P): New macros.
1245 (WINDOW_TOP_EDGE_Y, WINDOW_BOTTOM_EDGE_Y): Take account of pseudo
1246 windows above internal border.
1247
1248 * xdisp.c (get_glyph_string_clip_rects, init_glyph_string): Don't treat
1249 tool bar windows specially.
1250
1251 * xfns.c (x_set_tool_bar_lines): Take account of menu bar height.
1252
1253 * xterm.c (x_after_update_window_line): Don't treat tool bar windows
1254 specially.
1255 (XTflash): Take account of menu bar height.
1256
1257 * w32term.c (x_after_update_window_line): Don't treat tool bar windows
1258 specially.
1259
5075d853
JD
12602010-01-08 Jan Djärv <jan.h.d@swipnet.se>
1261
ac146f82 1262 * dispnew.c (change_frame_size_1): newwidth == FRAME_COLS (f) must
5075d853
JD
1263 also be true before we can return early (bug #5339).
1264
474217c8
CY
12652010-01-06 David Reitter <david.reitter@gmail.com>
1266
1267 * nsfns.m (ns_get_screen): Rewrite, returning NULL for non-NS.
1268 (Fns_display_usable_bounds): Rewrite, computing bounds properly
1269 (Bug#3233).
1270
c0e6d47d
JD
12712010-01-06 Jan Djärv <jan.h.d@swipnet.se>
1272
d0cf45b7
JD
1273 * font.c (font_open_entity): Enable chache and call cached_font_ok
1274 for the driver if defined.
1275 (QCuser_spec): New symbol.
1276 (font_spec_from_name): Save name as user-spec.
1277 (font_load_for_lface): Keep user-spec instead of name.
1278 (font_open_by_name): Save name as user-spec.
1279 (syms_of_font): Initialize QCuser_spec.
b7f8e4f5 1280 (font_clear_prop): Clear name if it exists in font (bug#5157).
d0cf45b7
JD
1281
1282 * xftfont.c (xftfont_open): Call xftfont_add_rendering_parameters.
1283 (xftfont_add_rendering_parameters, xftfont_cached_font_ok): New.
1284 (syms_of_xftfont): Initialize xftfont_driver.cached_font_ok.
1285
1286 * font.h (struct font_driver): Add cached_font_ok.
1287
c0e6d47d
JD
1288 * xterm.c (x_clear_frame): Queue draw for scroll bars.
1289
7c583cd8
JD
12902010-01-05 Jan Djärv <jan.h.d@swipnet.se>
1291
1292 * xterm.c (x_new_font): Move code for setting rows/cols before
1293 resizing ...
ac146f82 1294 (x_set_window_size): ... to here. Bug #2568.
7c583cd8
JD
1295
1296 * gtkutil.c (xg_clear_under_internal_border): New function.
0b5397c2
SM
1297 (xg_frame_resized, xg_frame_set_char_size):
1298 Call xg_clear_under_internal_border.
7c583cd8 1299 (xg_update_scrollbar_pos): Clear under old scroll bar position.
69e2f185 1300
03f77f0a
CY
13012010-01-05 Chong Yidong <cyd@stupidchicken.com>
1302
1303 * keyboard.c (read_key_sequence): Catch keyboard switch after
1304 making a new tty frame (Bug#5095).
1305
2a1ef5be
KH
13062010-01-05 Kenichi Handa <handa@m17n.org>
1307
1308 * fontset.c (fontset_find_font): Fix getting the frame pointer.
1309
e3eb1dae
SM
13102010-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
1311
1312 * dbusbind.c (xd_remove_watch): Avoid trying to convert a void* to
1313 Lisp_Object, preferring to convert a lisp_Object to a void* instead.
1314 (Fdbus_init_bus): Use XHASH to get a scalar value from a Lisp_Object.
1315
777013f2
MA
13162010-01-03 Michael Albinus <michael.albinus@gmx.de>
1317
1318 * dbusbind.c (xd_add_watch): Improve debug message.
1319 (xd_remove_watch): Improve debug message. If DATA is the session
1320 bus, unset D-Bus session environment.
1321 (Fdbus_init_bus): Pass the bus as argument to
1322 dbus_connection_set_watch_functions. (Bug#5283)
7c583cd8 1323
8932b1c2
CY
13242010-01-01 Chong Yidong <cyd@stupidchicken.com>
1325
87231e2c
CY
1326 * nsterm.m (ns_get_color): Fix buffer overflow (Bug#4763).
1327
4801c5fa
CY
1328 * lread.c (syms_of_lread): Make it clearer that these are the
1329 names of loaded files (Bug#5068).
1330
8932b1c2
CY
1331 * eval.c (run_hook_with_args): Handle the case where the global
1332 value has the obsolete single-function form (Bug#5026).
1333
11e3c684
CY
13342009-12-27 Chong Yidong <cyd@stupidchicken.com>
1335
1336 * minibuf.c (Fall_completions): Minor optimization.
1337
5b28ce35
EZ
13382009-12-26 Eli Zaretskii <eliz@gnu.org>
1339
5ce6e4f4
JB
1340 * .gdbinit (pgx): Fix display of composite glyphs.
1341 Display cmp.from and cmp.to as well.
1342 (pitx): Fix last change.
5b28ce35 1343
bcffff46
KH
13442009-12-25 Kenichi Handa <handa@m17n.org>
1345
1346 * composite.h (composition_adjust_point): Update prototype.
1347
1348 * composite.c (composition_reseat_it): Don't make a composition
1349 spanning over point.
1350 (CHAR_COMPOSABLE_P): Treat U+200C (ZWNJ) and U+200D (ZWJ) as
1351 composable characters.
1352 (composition_adjust_point): New arg NEW_PT. Callers changed.
1353
1354 * keyboard.c (command_loop_1): Force redisplay if the last point
1355 was within a composition.
1356 (adjust_point_for_property): Don't adjust point for automatic
1357 composition when called after buffer modification.
1358
3f670e9a
EZ
13592009-12-19 Eli Zaretskii <eliz@gnu.org>
1360
5ce6e4f4
JB
1361 * .gdbinit (pitx): Don't use enum names, use their values.
1362 Remove reference to non-existing value GET_FROM_COMPOSITION.
be996d82
EZ
1363 (pgx): Don't use enum names, use their values.
1364 (pitmethod): New helper command.
1365 (pitx): Use it to display iteration method.
1366 (pgrowit): New command.
1367
ad903955
EZ
1368 * makefile.w32-in ($(BLD)/cmds.$(O)): Depend on frame.h.
1369
3f670e9a
EZ
1370 Update dependencies in Makefile.in.
1371
1372 * Makefile.in (alloc.o): Depend on termhooks.h.
1373 (atimer.o): Depend on blockinput.h.
1374 (buffer.o): Depend on indent.h, keyboard.h, coding.h, keymap.h,
1375 and frame.h.
1376 (callint.o): Depend on systime.h, coding.h, and composite.h.
1377 (callproc.o): Depend on buffer.h.
1378 (casefiddle.o): Don't depend on charset.h.
1379 (casetab.o): Depend on character.h.
1380 (ccl.o): Depend on composite.h.
1381 (chartab.o): Depend on ccl.h.
1382 (cm.o): Depend on dispextern.h.
1383 (cmds.o): Depend on systime.h, coding.h, frame.h, and composite.h.
1384 (coding.o): Don't depend on $(INTERVALS_H).
1385 (composite.o): Don't depend on dispextern.h explicitly (it's in
1386 $(INTERVALS_H)). Depend on ccl.h.
1387 (data.o): Depend on systime.h, coding.h, composite.h,
1388 dispextern.h, font.h, and ccl.h.
1389 (dired.o): Depend on composite.h.
1390 (dispnew.o): Depend on coding.h. Don't depend explicitly on
1391 composite.h (it's in $(INTERVALS_H)).
1392 (doc.o): Depend on systime.h, coding.h, and composite.h.
1393 (editfns.o): Don't depend explicitly on dispextern.h.
1394 (emacs.o): Depend on frame.h and coding.h.
1395 (eval.o): Depend on coding.h, composite.h, and xterm.h.
1396 (fileio.o): Depend on frame.h and commands.h. Don't depend
1397 explicitly on dispextern.h.
1398 (filelock.o): Don't depend on epaths.h and charset.h. Depend on
1399 composite.h.
1400 (fns.o): Don't depend on termhooks.h.
1401 (font.o): Depend on buffer.h, composite.h, fontset.h, and xterm.h.
1402 (fontset.o): Depend on blockinput.h, atimer.h, systime.h,
1403 coding.h, $(INTERVALS_H), window.h, xterm.h.
1404 (frame.o): Depend on coding.h, composite.h, termhooks.h, and ccl.h.
1405 (fringe.o): Depend on blockinput.h, atimer.h, and systime.h.
1406 (ftfont.o): Depend on blockinput.h, atimer.h, systime.h, coding.h,
1407 fontset.h, ccl.h, and ftfont.h.
1408 (ftxfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1409 (gtkutil.o): Depend on dispextern.h and composite.h.
1410 (image.o): Depend on epaths.h, character.h, coding.h, composite.h,
1411 termhooks.h, and ccl.h.
1412 (indent.o): Depend on systime.h, coding.h, and $(INTERVALS_H).
1413 (intervals.o): Depend on systime.h and coding.h.
1414 (keyboard.o): Depend on composite.h and coding.h.
1415 (keymap.o): Depend on coding.h and frame.h.
1416 (lread.o): Depend on systime.h, frame.h, blockinput.h, and atimer.h.
1417 (macros.o): Depend on systime.h, coding.h, and composite.h.
1418 (menu.o): Depend on systime.h, coding.h, composite.h, window.h,
1419 and atimer.h.
1420 (minibuf.o): Depend on systime.h and coding.h. Don't depend on
1421 dispextern.h explicitly.
0b5397c2
SM
1422 (print.o): Depend on termhooks.h, coding.h, and ccl.h.
1423 Don't depend explicitly on dispextern.h and composite.h.
3f670e9a
EZ
1424 (process.o): Depend on character.h, xgselect.h, and sysselect.h.
1425 (regex.o): Don't depend on charset.h.
1426 (scroll.o): Depend on systime.h, coding.h, composite.h, and window.h.
1427 (search.o): Don't depend explicitly on composite.h.
1428 (sound.o): Depend on atimer.h and systime.h.
1429 (syntax.o): Don't depend explicitly on composite.h.
1430 (sysdep.o): Depend on coding.h and composite.h.
1431 (term.o): Depend on xterm.h and buffer.h.
1432 (terminal.o): Depend on dispextern.h, composite.h, and systime.h.
1433 (textprop.o): Don't depend on dispextern.h explicitly.
1434 (undo.o): Depend on dispextern.h.
1435 (window.o): Depend on coding.h and termhooks.h. Don't depend on
1436 dispextern.h and composite.h explicitly.
1437 (xdisp.o): Depend on ccl.h.
1438 (xfaces.o): Depend on coding.h and ccl.h.
1439 (xfns.o): Depend on $(INTERVALS_H) and ccl.h.
1440 (xfont.o): Depend on atimer.h, systime.h, fontset.h, and ccl.h.
1441 (xftfont.o): Depend on atimer.h, systime.h, fontset.h, ccl.h, and
1442 ftfont.h.
1443 (xgselect.o): New dependency.
1444 (xmenu.o): Depend on composite.h, keymap.h, and sysselect.h.
1445 (xselect.o): Depend on keyboard.h, coding.h, and composite.h.
1446 (xsettings.o): Depend on dispextern.h, keyboard.h, systime.h,
1447 coding.h, composite.h, blockinput.h, atimer.h, and termopts.h.
1448 (xsmfns.o): Depend on frame.h and dispextern.h.
1449 (xterm.o): Depend on intervals.h, keymap.h, xgselect.h, and
1450 sysselect.h.
1451
7a6f7fea
AS
14522009-12-19 Andreas Schwab <schwab@linux-m68k.org>
1453
1454 * font.c (Fclear_font_cache): Pass correct cache argument to
1455 font_clear_cache.
1456
f4c21026
AS
14572009-12-16 Andreas Schwab <schwab@linux-m68k.org>
1458
1459 * Makefile.in (prefix-args${EXEEXT}): Don't compile prefix-args.c
1460 twice.
1461
f7ab0997
CY
14622009-12-15 Chong Yidong <cyd@stupidchicken.com>
1463
1464 * xdisp.c (decode_mode_spec): Inhibit garbage collection when
1465 calling file-remote-p. Reported by Jim Meyering.
1466
fa8e045a
MA
14672009-12-15 Michael Albinus <michael.albinus@gmx.de>
1468
1469 * dbusbind.c (xd_retrieve_arg): Reorder declarations in order to
777013f2 1470 avoid compiler warnings. (Bug #5217)
fa8e045a 1471
a63dba42
KH
14722009-12-14 Kenichi Handa <handa@m17n.org>
1473
1474 * coding.c (decode_coding_iso_2022): Ignore ISO_CODE_SS2_7 (0x19)
1475 in 8-bit encoding.
1476
5ce6e4f4 14772009-12-13 Pat Thoyts <patthoyts@users.sourceforge.net> (tiny change)
36acb2a7
JD
1478
1479 * xfns.c (x_create_tip_frame): Set the extended window manager hint for
1480 tooltip windows.
1481
223e5fc6
JD
14822009-12-13 Jan Djärv <jan.h.d@swipnet.se>
1483
36acb2a7
JD
1484 * xterm.h (struct x_display_info): Add Xatom_net_window_type_tooltip and
1485 Xatom_net_window_type.
1486
1487 * xterm.c (x_term_init): Initialize Xatom_net_window_type_tooltip and
1488 Xatom_net_window_type.
1489
b8f00677
JD
1490 * xterm.c (my_log_handler): New function.
1491 (x_term_init): Set my_log_handler as log handler during gtk_init
5ce6e4f4 1492 so we can filter out buggy messages. (Bug #5120).
b8f00677 1493
e5f0bc9a
JD
1494 * xterm.c (xg_scroll_callback): Parameter list changed,
1495 use parameter GtkScrollType to determine scroll/line/page.
1496 Only allow dragging if a button < 4 is grabbed (bug #5177).
1497 (xg_end_scroll_callback): New function.
1498 (x_create_toolkit_scroll_bar): Pass xg_end_scroll_callback to
1499 xg_create_scroll_bar.
1500
1501 * gtkutil.c (xg_gtk_scroll_destroy): Remove XG_LAST_SB_DATA handling.
1502 (scroll_end_callback): Remove.
1503 (xg_create_scroll_bar): Add parameter end_callback, bind it to
1504 button-release-event. Replace value-changed event with change-value,
1505 bug #5177,
1506 (xg_event_is_for_scrollbar): Only return true if button is less than 4,
1507 bug #5177.
1508
1509 * gtkutil.h (XG_LAST_SB_DATA): Remove.
1510 (xg_create_scroll_bar): Add GCallback end_callback.
1511
223e5fc6
JD
1512 * xftfont.c (QClcdfilter): New variable.
1513 (xftfont_open): Parse constant names for RGBA, HINT_STYLE and LCDFILTER.
1514 (syms_of_xftfont): Initialize QClcdfilter.
1515
3c055b77
JD
15162009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1517
1518 * xsettings.c (struct xsettings): Add member seen.
1519 (parse_xft_settings): Update member seen with what we have read.
ba68c0b0 1520 Return non-zero if Xft-settings have been parsed, 0 otherwise.
3c055b77
JD
1521 (apply_xft_settings): Only update Xft settings with what member seen
1522 indicates as new.
1523
05fe33ff
EZ
15242009-12-12 Eli Zaretskii <eliz@gnu.org>
1525
1526 * dispextern.h (struct text_pos): Use EMACS_INT;
1527 (struct glyph): Use EMACS_INT for charpos.
1528 (struct it): Use EMACS_INT for stop_charpos, end_charpos,
1529 region_beg_charpos, region_end_charpos,
1530 redisplay_end_trigger_charpos, and also for
1531 iterator_stack_entry.end_charpos and
1532 iterator_stack_entry.stop_charpos.
1533
e8d7886a
JD
15342009-12-12 Jan Djärv <jan.h.d@swipnet.se>
1535
5ce6e4f4 1536 * gtkutil.c (scroll_end_callback): New function (bug #5177).
e8d7886a
JD
1537 (xg_create_scroll_bar): Call scroll_end_callback on button release
1538 event (bug #5177).
1539 (xg_event_is_for_scrollbar): != replaced with ==.
1540
d0db2ec8
KH
15412009-12-12 Kenichi Handa <handa@m17n.org>
1542
1543 * ftfont.c (struct ftfont_info): New member matrix.
1544 (ftfont_open): Setup xftfont_info->matrix.
1545 (MFLTFontFT): New member matrix.
1546 (FLOOR, CEIL, ROUND): New macros.
1547 (ftfont_get_metrics): Handle matrix transformation.
1548 (ftfont_shape_by_flt): New arg matrix. Callers changed.
1549
1550 * xftfont.c (struct xftfont_info): New member matrix.
1551 (xftfont_open): Setup xftfont_info->matrix.
1552
15532009-12-10 Kenichi Handa <handa@m17n.org>
1554
1555 * xdisp.c (append_space_for_newline): Consider face-remapping.
1556
2cc7b62f
AS
15572009-12-09 Andreas Schwab <schwab@linux-m68k.org>
1558
b87dd913
AS
1559 * xsettings.c: Include "keyboard.h".
1560
eba5eb94
AS
1561 * gtkutil.c (xg_tool_bar_proxy_help_callback): Fix missing return.
1562
2cc7b62f
AS
1563 Fix implicit function declarations.
1564 * cmds.c: Include "frame.h".
1565 * frame.c: Include "font.h" also if !HAVE_WINDOW_SYSTEM.
1566 * frame.h: Move declaration of delete_frame outside of
1567 HAVE_WINDOW_SYSTEM.
1568
a4ef73c8
CY
15692009-12-09 Ken Brown <kbrown@cornell.edu> (tiny change)
1570
1571 * s/cygwin.h (G_SLICE_ALWAYS_MALLOC): New variable.
1572
1573 * emacs.c (main): Set the G_SLICE environment variable for Cygwin
1574 GTK builds.
1575
944a300c
AS
15762009-12-07 Andreas Schwab <schwab@linux-m68k.org>
1577
1578 * unexelf.c (unexec): Don't search for .data twice.
1579
022eef62
CY
15802009-12-05 Chong Yidong <cyd@stupidchicken.com>
1581
426ac949
CY
1582 * xdisp.c (push_display_prop): Don't set avoid_cursor_p. Return 0
1583 if push failed.
1584 (handle_line_prefix): Set avoid_cursor_p here. Check return value
1585 of push_display_prop (Bug#5000).
1586
022eef62
CY
1587 * xfaces.c (Fx_family_fonts): Handle 2009-07-14 change to return
1588 value of font_list_entities (Bug#5085).
1589
be95bee9
JB
15902009-12-04 Juanma Barranquero <lekktu@gmail.com>
1591
1592 Fix `string-to-number' to deal consistently with integers and floats.
1593 * lread.c (isfloat_string): New argument ignore_trailing to accept all
1594 trailing characters, not just whitespace.
1595 (read1): Pass new arg 0 to keep old behavior.
1596 * data.c (Fstring_to_number): Pass 1 to isfloat_string to ignore
1597 trailing chars, as it is already done for integers. Doc fixes.
1598 * lisp.h (isfloat_string): Add new arg to declaration of isfloat_string.
1599
24c2d7ce
EZ
16002009-12-04 Eli Zaretskii <eliz@gnu.org>
1601
0b5397c2
SM
1602 * dispextern.h (enum prop_idx) <AUTO_COMPOSED_PROP_IDX>:
1603 Delete unused enumeration value.
24c2d7ce 1604
7e694795
EZ
16052009-12-03 Eli Zaretskii <eliz@gnu.org>
1606
1607 * Makefile.in (lisp, shortlisp): Replace indian.el with indian.elc.
1608
84b31826
SM
16092009-12-03 Daniel Hackney <dan@haxney.org> (tiny change)
1610
1611 * process.c (Fmake_network_process): Fix up the tests for
1612 "connectionless socket", so they DTRT for seqpacket sockets as well.
1613
f00c449b
SM
16142009-12-03 Stefan Monnier <monnier@iro.umontreal.ca>
1615
1616 * process.c (Qseqpacket): New symbol.
1617 (HAVE_SEQPACKET): New macro.
1618 (Fmake_network_process): Accept new :type `seqpacket'.
1619 (init_process): Add `seqpacket' feature when applicable.
1620 (syms_of_process): Initialize Qseqpacket.
1621
8096a0ff
YM
16222009-12-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1623
1624 * font.c (font_load_for_lface, font_open_by_name): Don't store name
1625 if entity is Qnil.
1626
3e0de07f
SM
16272009-11-30 Stefan Monnier <monnier@iro.umontreal.ca>
1628
1629 * print.c (print_preprocess): Preprocess the key_and_value table of
1630 hashtables, even tho they're "hidden" (bug#5082).
1631
abeafb2a
JD
16322009-11-29 Jan Djärv <jan.h.d@swipnet.se>
1633
1634 * frame.c (frame_make_pointer_invisible)
1635 (frame_make_pointer_visible): Declare f before statements.
1636
4bf47195
EZ
16372009-11-28 Eli Zaretskii <eliz@gnu.org>
1638
1639 * Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
1640 omitted dependencies on lisp.h.
1641
c525b3f2
JD
16422009-11-27 Jan Djärv <jan.h.d@swipnet.se>
1643
ece2d4ed
JD
1644 * xftfont.c (xftfont_end_for_frame): Just return if dpyinfo->display
1645 is NULL.
1646
1647 * xterm.c (x_delete_terminal): Set dpyinfo->display to NULL.
1648
1649 * frame.c (frame_make_pointer_invisible)
3e0de07f 1650 (frame_make_pointer_visible): Just return if there isn't any selected
ece2d4ed
JD
1651 frame.
1652
c525b3f2
JD
1653 * search.c (simple_search): Remove warning by making *p const.
1654
2f00e299
DN
16552009-11-26 Dan Nicolaescu <dann@ics.uci.edu>
1656
1657 * xdisp.c (power_letter): Remove duplicate const.
1658
084b049b
JD
16592009-11-25 Jan Djärv <jan.h.d@swipnet.se>
1660
a1fadc6f
JD
1661 * term.c (delete_tty): Remove check for last terminal (bug#4970).
1662
5ce6e4f4 1663 * xsettings.c: Revert changes from 2009-11-23. Just use Xft
084b049b
JD
1664 defaults (bug #5025).
1665
28259cac
SM
16662009-11-24 Stefan Monnier <monnier@iro.umontreal.ca>
1667
1668 * insdel.c (adjust_markers_for_delete): Move it in the
1669 right direction! (bug#4803)
1670
e8e14166
YM
16712009-11-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
1672
1673 * font.c (font_open_entity): Don't use ASET if font_object is Qnil.
1674
1675 * xterm.c (x_new_font): Update f->scroll_bar_actual_width.
1676
86677b58
GM
16772009-11-24 Glenn Morris <rgm@gnu.org>
1678
1679 * frame.c (focus-follows-mouse): Mention mouse-autoselect-window.
1680
581e51e8
JD
16812009-11-23 Jan Djärv <jan.h.d@swipnet.se>
1682
cfc86c7a
JD
1683 * Makefile.in: Must create deps for ecrt0.o in its rule.
1684
581e51e8
JD
1685 * xfns.c (Fx_select_font): Try to convert Fontconfig name to Gtk name
1686 because that is what Gtk+ font dialog understands.
1687
1688 * font.c (font_make_object, Fcopy_font_spec): Use Fcopy_alist instead
1689 of Fcopy_sequence.
1690 (font_open_by_name): Put name given into QCname for font-object returned.
1691
1692 * frame.c (x_set_font): Save original font name as frame parameter
1693 font-parameter.
1694
1695 * xsettings.c (set_default_xft_settings): New function.
1696 (init_xfd_settings): Call set_default_xft_settings if no XSETTINGS window
1697 is found.
1698
8b264ecb
AS
16992009-11-22 Andreas Schwab <schwab@linux-m68k.org>
1700
1701 * search.c (simple_search): Avoid CHAR_TO_BYTE in inner loop when
1702 searching backwards through multibyte buffer.
1703
872870b2
JD
17042009-11-21 Jan Djärv <jan.h.d@swipnet.se>
1705
1706 * xterm.c: #include xgselect.h.
1707 (x_initialize): Call xgselect_initialize.
1708
1709 * xsettings.c (something_changedCB): C++ comments => C comments.
1710 (init_gconf): Do not deal with any GLib file descriptors, xg_select
1711 does that now.
1712
1713 * gtkutil.c (xg_timer, xg_process_timeouts, xg_start_timer)
1714 (xg_stop_timer, menu_grab_callback_cnt, menu_grab_callback)
1715 (scroll_bar_button_cb): Remove.
5ce6e4f4 1716 (create_menus): C++ comments => C comments. Don't bind grab-notify
872870b2
JD
1717 event.
1718 (xg_create_scroll_bar): Don't bind button-press-event and
1719 button-release-event.
1720
1721 * process.c: Include xgselect.h if defined (USE_GTK) ||
1722 defined (HAVE_GCONF).
1723 (wait_reading_process_output): Call xg_select for the same condition.
1724
1725 * xgselect.c (xg_select): New function to better integrate with
1726 GLib/Gtk event handling. Needed if GConf daemon dies/restarts.
1727
1728 * xgselect.h: New file, declare xg_select, xgselect_initialize.
1729
1730 * Makefile.in (XOBJ): Add xgselect.o.
1731
62a6e103
AS
17322009-11-21 Andreas Schwab <schwab@linux-m68k.org>
1733
0b5397c2
SM
1734 * character.h (STRING_CHAR, STRING_CHAR_AND_LENGTH):
1735 Remove ignored second argument. All callers changed.
62a6e103
AS
1736 * regex.c (STRING_CHAR, STRING_CHAR_AND_LENGTH, RE_STRING_CHAR)
1737 (RE_STRING_CHAR_AND_LENGTH): Likewise.
1738 * xdisp.c (string_char_and_length): Likewise.
1739
b0ca0f33
DN
17402009-11-21 Dan Nicolaescu <dann@ics.uci.edu>
1741
1742 * xterm.c (x_new_font):
1743 * print.c (print_object):
1744 * cmds.c (Fself_insert_command): Move declarations before statements.
1745
dd5a6279
CY
17462009-11-20 Ken Brown <kbrown@cornell.edu> (tiny change)
1747
1748 * s/cygwin.h: Remove unneeded linker flags.
1749
4a8e097d
JD
17502009-11-20 Jan Djärv <jan.h.d@swipnet.se>
1751
0d1d0d26
JD
1752 * xfns.c (x_default_font_parameter): Call xsettings_get_system_font.
1753
1754 * xsettings.h: Declare xsettings_get_system_font.
1755
1756 * xsettings.c (xsettings_get_system_font): New function.
1757 (init_gconf): No use initiating gconf unless we have Xft also.
1758 (syms_of_xsettings): Only provide system-font-setting if HAVE_XFT and
1759 HAVE_GCONF.
1760
4a8e097d
JD
1761 * gtkutil.c (xg_modify_menubar_widgets): If menubar is totally empty
1762 add a blank entry so it doesn't collapse into nothing.
1763
8ab1650e
SM
17642009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1765
1766 * lread.c (Funintern): Comment out last change.
1767
82c602f0
RS
17682009-11-19 Richard Stallman <rms@gnu.org>
1769
1770 * lread.c (Funintern): Error if symbol is t or nil.
1771
87e32266
SM
17722009-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
1773
1774 * insdel.c (make_gap_larger): Don't make as many assumptions about the
1775 representation of Lisp integers.
1776 Reported by MJ Chan <mjchan.inbox@gmail.com>.
1777
1b9ac145
AS
17782009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1779
1780 * lisp.h: Remove declaration of Ffont_get_system_font.
1781 * xfns.c: Move include of "xsettings.h".
1782 * xsettings.h: Use EXFUN to declare Ffont_get_system_font.
1783
dfb3c4c6
JD
17842009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1785
87e32266
SM
1786 * xsettings.c (something_changedCB, Ffont_get_system_font):
1787 Check use_system_font.
dfb3c4c6
JD
1788 (syms_of_xsettings): DEFVAR font-use-system-font.
1789
9370c1d8
AS
17902009-11-17 Andreas Schwab <schwab@linux-m68k.org>
1791
25fe851a
AS
1792 * xfns.c (x_default_font_parameter): Remove dead assignment.
1793
9370c1d8
AS
1794 * lisp.h (Fbyteorder, init_font, Ffont_get_system_font): Declare.
1795
637fa988
JD
17962009-11-17 Jan Djärv <jan.h.d@swipnet.se>
1797
87e32266 1798 * xftfont.c (xftfont_fix_match): Older versions of fontconfig do
21050de1 1799 not have FC_LCD_*. #define them if not there.
a6eb20d8 1800
87e32266 1801 * xsettings.c (parse_xft_settings, apply_xft_settings): Ditto.
a6eb20d8 1802
637fa988
JD
1803 * xterm.h (struct x_display_info): Add atoms and Window for xsettings.
1804
1805 * xterm.c (handle_one_xevent): Call xft_settings_event for
1806 ClientMessage, PropertyNotify and DestroyNotify.
1807 (x_term_init): If we have XFT, get DPI from Xft.dpi.
1808 Call xsettings_initialize.
1809
1810 * xftfont.c (xftfont_fix_match): New function.
1811 (xftfont_open): Call XftDefaultSubstitute before XftFontMatch.
1812 Call xftfont_fix_match after XftFontMatch.
1813
1814 * xfont.c (xfont_driver): Initialize all members.
1815
87e32266
SM
1816 * xfns.c (x_default_font_parameter):
1817 Try font from Ffont_get_system_font.
637fa988
JD
1818 Do not get font from x_default_parameter if we got one from
1819 Ffont_get_system_font.
87e32266 1820 (Fx_select_font): Get the defaut font name from :name of FRAME_FONT(f).
637fa988
JD
1821
1822 * w32font.c (w32font_driver): Initialize all members.
1823
1824 * termhooks.h (enum event_kind): CONFIG_CHANGED_EVENT is new.
1825
1826 * lisp.h: Declare syms_of_xsettings.
1827
87e32266
SM
1828 * keyboard.c (kbd_buffer_get_event, make_lispy_event):
1829 Handle CONFIG_CHANGED_EVENT.
637fa988
JD
1830
1831 * ftfont.c (ftfont_filter_properties): New function.
1832
1833 * frame.c (x_set_font): Remove unused variable lval.
1834
87e32266 1835 * font.h (struct font_driver): Add filter_properties.
637fa988
JD
1836
1837 * font.c (font_put_extra): Don't return if val is nil, it means
1838 boolean option is off.
1839 (font_parse_fcname): Collect all extra properties in extra_props
1840 and call filter_properties for all drivers with extra_props and
1841 font as parameter.
87e32266
SM
1842 (font_open_entity): Do not use cache, it does not pick up new
1843 fontconfig settings like hinting.
637fa988
JD
1844 (font_load_for_lface): If spec had a name in it, store it in entity.
1845
a73f9c9d 1846 * emacs.c (main): Call syms_of_xsettings.
637fa988
JD
1847
1848 * config.in: HAVE_GCONF is new.
1849
1850 * Makefile.in (GCONF_CFLAGS, GCONF_LIBS): New variables for HAVE_GCONF.
1851 xsettings.o is new.
1852
5a942932
KH
18532009-11-17 Kenichi Handa <handa@m17n.org>
1854
1855 * xdisp.c (x_produce_glyphs): Consider face-remapping when falling
1856 back to the default font in case that no suitable font is found.
1857
b7c7a4d1
SM
18582009-11-17 Stefan Monnier <monnier@iro.umontreal.ca>
1859
1860 * menu.c (Fx_popup_menu) [HAVE_NS]: Use generic code for window edge.
1861 Suggested by Chad Brown <yandros@mit.edu>.
1862 (push_menu_item): Use MENU_ITEMS_ITEM_* names.
1863
072f1e39
JD
18642009-11-16 Jan Djärv <jan.h.d@swipnet.se>
1865
1866 * xmenu.c (x_menu_wait_for_event): Call XFlush before select.
1867
5d1e70a2
AS
18682009-11-14 Andreas Schwab <schwab@linux-m68k.org>
1869
87e32266 1870 * Makefile.in: Ignore errors from mkdir when creating deps directory.
5d1e70a2 1871
a53cfbe5
JD
18722009-11-14 Jan Djärv <jan.h.d@swipnet.se>
1873
473a99b7
JD
1874 * gtkutil.c (xg_update_frame_menubar): Do nothing if menubar already
1875 has a parent.
1876
a53cfbe5 1877 * Makefile.in: If AUTO_DEPEND is defined, make gcc generate
5ce6e4f4 1878 dependency files in deps/. Include those files into Makefile.
a53cfbe5
JD
1879
1880 * config.in: Generated (AUTO_DEPEND).
1881
f04bb9b2
MA
18822009-11-13 Michael Albinus <michael.albinus@gmx.de>
1883
b7c7a4d1 1884 * dbusbind.c (Vdbus_registered_objects_table): Rename from
f04bb9b2
MA
1885 Vdbus_registered_functions_table, because it contains also
1886 properties. Fix docstring.
b7c7a4d1 1887 (Fdbus_call_method, Fdbus_call_method_asynchronously): Fix docstring.
f04bb9b2 1888
8f11f7ec
SM
18892009-11-13 Stefan Monnier <monnier@iro.umontreal.ca>
1890
1891 * alloc.c (mark_object): Don't reprocess marked strings.
1892 Check vector's markbit earlier. Adjust calls to mark_vectorlike.
1893 (mark_vectorlike, mark_char_table): Assume the object is unmarked.
1894
8a605fe8
KH
18952009-11-13 Kenichi Handa <handa@m17n.org>
1896
8f11f7ec 1897 * category.c (word_boundary_p): Adjust for the change of the
8a605fe8
KH
1898 semantics of Vword_combining_categories.
1899 (Vword_combining_categories): Describe the slight change of the
1900 semantics.
1901
241c4680
EZ
19022009-11-13 Eli Zaretskii <eliz@gnu.org>
1903
1904 * menu.c (Fx_popup_menu): Call Fx_hide_tip only if HAVE_WINDOW_SYSTEM.
1905
1906 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Revert last change.
1907
5d58e44c
SM
19082009-11-12 Stefan Monnier <monnier@iro.umontreal.ca>
1909
1910 * xdisp.c (syms_of_xdisp): Fix typo in last change.
1911
5e13f9d3
JB
19122009-11-12 Juanma Barranquero <lekktu@gmail.com>
1913
1914 * makefile.w32-in: Update dependencies; add dependencies to lisp.h.
1915
cf54c754
DR
19162009-11-11 David Reitter <david.reitter@gmail.com>
1917
1918 * menu.c (Fx_popup_menu): Remove left-over debugging code and rename
1919 variables to fix 2009-11-09 change.
1920
a4ada374
DN
19212009-11-11 Dan Nicolaescu <dann@ics.uci.edu>
1922
91433552
DN
1923 * process.c (ifflag_def): Make flag_sym constant.
1924 (Fnetwork_interface_info): Use a constant pointer.
1925 (ifflag_table):
1926 * xfns.c (cursor_bits):
1927 * xdisp.c (power_letter):
1928 * termcap.c (speeds, esctab):
1929 * sysdep.c (baud_convert):
1930 * keyboard.c (lispy_accent_codes, modifier_names):
1931 * image.c (xbm_format, xpm_format, pbm_format, png_format)
1932 (jpeg_format, tiff_format, gif_format, svg_format)
1933 (interlace_start, interlace_increment, gs_format):
1934 * gtkutil.c (separator_names):
1935 * fringe.c (swap_nibble):
1936 * fns.c (base64_value_to_char, base64_char_to_value):
1937 * fileio.c (make_temp_name_tbl):
1938 * coding.c (suffixes): Make constant.
1939
f4265f6c
DN
1940 * frame.c (make_initial_frame):
1941 * buffer.c (init_buffer_once): Use make_pure_c_string instead of
1942 build_string.
1943 * alloc.c (syms_of_alloc): Build Vmemory_signal_data in pure memory.
1944
04420943
DN
1945 * s/freebsd.h:
1946 * s/netbsd.h: Remove code referring to non-existent file: unexsunos4.o.
1947
0a5d24ae
DN
1948 * Makefile.in: Add dependencies to lisp.h. Remove dependencies
1949 for non-existent files: unexmips.c, unexnext.c, abbrev.c, malloc.c.
1950
a4ada374
DN
1951 * xfns.c (syms_of_xfns): Use make_pure_string instead of build_string.
1952 * xterm.c (syms_of_xterm):
1953 * xfaces.c (syms_of_xfaces):
1954 * xdisp.c (syms_of_xdisp):
1955 * lread.c (syms_of_lread):
1956 * keyboard.c (syms_of_keyboard): Use make_pure_c_string instead of
1957 build_string.
91433552 1958
a4ada374
DN
1959 * doc.c (Fsnarf_documentation): Purecopy Vbuild_files.
1960
af98fc7f
SM
19612009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1962
8ab1650e 1963 * fns.c (Fplist_get): Merge the active and the commented out code.
af98fc7f 1964
e90292a9
JD
19652009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1966
1967 * keyboard.h: Declare timer_check.
1968
1969 * keyboard.c (timer_check_2): New function that does what the old
1970 timer_check did.
1971 (timer_check): Call timer_check_2 until -1 or a non-zero time is
1972 returned, i.e. don't return -1 with timers pending.
1973
1974 * process.c: Remove extern declaration of timer_check.
1975
1976 * xmenu.c (x_menu_wait_for_event): Remove code that did a timeout
1977 even if timer_check returned -1.
1978
af98fc7f
SM
1979 * gtkutil.c (xg_dialog_response_cb): Data is now a struct
1980 xg_dialog_data.
e90292a9
JD
1981 (pop_down_dialog): Destroy widget (if any), cancel timer and unref
1982 the event loop.
1983 (xg_maybe_add_timer, xg_dialog_run): New functions (bug #4574).
1984 (xg_get_file_name, xg_get_font_name): Call xg_dialog_run (bug #4574).
1985 Destroy the dialog after xg_dialog_run.
1986
045b83c0
SM
19872009-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
1988
1989 * menu.c (Fx_popup_menu) [HAVE_NS]: Remove unused vars.
1990
1fb99a3a
JD
19912009-11-10 Jan Djärv <jan.h.d@swipnet.se>
1992
1993 * xmenu.c (xmenu_show): Must not be static after 2009-11-09 changes.
1994
04e452cb
JB
19952009-11-09 Juanma Barranquero <lekktu@gmail.com>
1996
1997 * menu.c [HAVE_NTGUI]: Declare current_popup_menu.
1998
ef7417fd
SM
19992009-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2000
2001 * menu.c (Fx_popup_menu): Consolidate versions from xmenu.c,
2002 w32menu.c, and nsmenu.m.
2003 Simplify the obsolete case where position is nil.
2004 (cleanup_popup_menu): New function, moved from nsmenu.m.
2005 (struct skp): Remove slot `notreal'.
2006 (single_keymap_panes, keymap_panes): Remove arg `notreal' and
2007 adjust callers.
2008 (single_menu_item): Adjust call to parse_menu_item.
2009 (syms_of_menu): Defsubr x-popup-menu.
2010 * menu.h (Vmenu_updating_frame): Consolidate declarations from *menu.c.
2011 (keymap_panes): Don't export any more.
2012 (mouse_position_for_popup, w32_menu_show, ns_menu_show)
2013 (xmenu_show): Declare.
2014 * keyboard.c (parse_menu_item): Remove arg `notreal'.
2015 (menu_bar_item, read_char_minibuf_menu_prompt): Adjust callers.
2016 * keyboard.h (parse_menu_item): Update declaration.
2017 * xmenu.c (Fx_popup_menu): Remove.
2018 (syms_of_xmenu): Don't defsubr x-popup-menu.
2019 * w32menu.c (Fx_popup_menu): Remove.
2020 (syms_of_w32menu): Don't defsubr x-popup-menu.
2021 * nsmenu.m (cleanup_popup_menu): Remove.
2022 (ns_menu_show): Rename from ns_popup_menu and remove all the code
2023 moved to menu.c's Fx_popup_menu.
2024 (Fx_popup_menu): Remove.
2025 (syms_of_nsmenu): Don't defsubr x-popup-menu, and don't initialize
2026 menu_items (it's done in menu.c already).
2027
424d6179
SM
20282009-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2029
2030 * keyboard.c (parse_menu_item): Handle `notreal' a bit earlier.
2031 Use `tem' less. Make sure KEYEQ holds a string or nil (bug#4879).
2032
c0df13a6 20332009-11-08 Chong Yidong <cyd@stupidchicken.com>
a20903d0
CY
2034
2035 * xmenu.c (Fx_popup_menu): Extract event timestamp. Pass it to
c0df13a6 2036 xmenu_show. Hide any tooltip before opening a menu.
a20903d0
CY
2037 (xmenu_show): New arg. Pass it to create_and_show_popup_menu.
2038 (create_and_show_popup_menu): New arg. Pass it to gtk_menu_popup.
2039
2de9f71c
SM
20402009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2041
2042 Let integers use up 2 tags to give them one extra bit and thus double
2043 their range.
2044 * lisp.h (USE_2_TAGS_FOR_INTS): New macro.
2045 (LISP_INT_TAG, case_Lisp_Int, LISP_STRING_TAG, LISP_INT_TAG_P):
2046 New macros.
2047 (enum Lisp_Type): Use them. Give explicit values.
2048 (Lisp_Type_Limit): Remove.
2049 (XINT, XUINT, make_number) [!USE_LISP_UNION_TYPE]:
2050 (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK):
2051 Pay attention to USE_2_TAGS_FOR_INTS.
2052 (INTEGERP): Use LISP_INT_TAG_P.
2053 * fns.c (internal_equal): Simplify the default case.
2054 (sxhash): Use case_Lisp_Int.
2055 * data.c (wrong_type_argument): Don't check against Lisp_Type_Limit
2056 any more.
2057 (Ftype_of): Use case_Lisp_Int.
2058 (store_symval_forwarding): Take into account the fact that Ints can
2059 now have more than one tag.
2060 * buffer.c (syms_of_buffer): Use LISP_INT_TAG.
2061 buffer_slot_type_mismatch):
2062 * xfaces.c (face_attr_equal_p):
2063 * print.c (print_object):
2064 * alloc.c (mark_maybe_object, mark_object, survives_gc_p):
2065 Use case_Lisp_Int.
2066
323637a2
EZ
20672009-11-06 Eli Zaretskii <eliz@gnu.org>
2068
7ac65b38
EZ
2069 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce by further 30K.
2070
323637a2
EZ
2071 * alloc.c (make_pure_c_string): Fix last change to avoid compiler
2072 warning.
2073
e511451f
JD
20742009-11-06 Jan Djärv <jan.h.d@swipnet.se>
2075
2076 * gtkutil.c (xg_event_is_for_scrollbar): New function (bug#4870).
2077
2078 * gtkutil.h: Declare xg_event_is_for_scrollbar (bug#4870).
2079
2080 * xterm.c (handle_one_xevent): Call xg_event_is_for_scrollbar for
2081 ButtonPressRelease and MotionNotify (bug#4870).
2082
5e2327cf
DN
20832009-11-06 Dan Nicolaescu <dann@ics.uci.edu>
2084
5adc433e
DN
2085 * keymap.c (syms_of_keymap): Construct exclude_keys in pure memory.
2086
d67b4f80
DN
2087 * xterm.c (syms_of_xterm):
2088 * xselect.c (syms_of_xselect):
2089 * xmenu.c (syms_of_xmenu):
2090 * xfns.c (syms_of_xfns):
2091 * xfaces.c (syms_of_xfaces):
2092 * xdisp.c (syms_of_xdisp):
2093 * window.c (syms_of_window):
2094 * w32fns.c (syms_of_w32fns):
2095 * undo.c (syms_of_undo):
2096 * textprop.c (syms_of_textprop):
2097 * terminal.c (syms_of_terminal):
2098 * syntax.c (syms_of_syntax):
2099 * sound.c (syms_of_sound):
2100 * search.c (syms_of_search):
2101 * print.c (syms_of_print):
2102 * minibuf.c (syms_of_minibuf):
2103 * macros.c (syms_of_macros):
2104 * keymap.c (syms_of_keymap, initial_define_key)
2105 (initial_define_lispy_key):
2106 * keyboard.c (syms_of_keyboard):
2107 * insdel.c (syms_of_insdel):
2108 * image.c (syms_of_image):
2109 * fringe.c (syms_of_fringe):
2110 * frame.c (syms_of_frame):
2111 * fontset.c (syms_of_fontset):
2112 * fns.c (syms_of_fns):
2113 * fns.c (syms_of_fns):
2114 * fileio.c (syms_of_fileio):
2115 * fileio.c (syms_of_fileio):
2116 * eval.c (syms_of_eval):
2117 * doc.c (syms_of_doc):
2118 * dispnew.c (syms_of_display):
2119 * dired.c (syms_of_dired):
2120 * dbusbind.c (syms_of_dbusbind):
2121 * data.c (syms_of_data):
2122 * composite.c (syms_of_composite):
2123 * coding.c (syms_of_coding):
2124 * cmds.c (syms_of_cmds):
2125 * charset.c (define_charset_internal, syms_of_character):
2126 * ccl.c (syms_of_ccl):
2127 * category.c (syms_of_category, init_category_once):
2128 * casetab.c (syms_of_casetab):
2129 * casefiddle.c (syms_of_casefiddle):
2130 * callint.c (syms_of_callint):
2131 * bytecode.c (syms_of_bytecode):
2132 * buffer.c (keys_of_buffer, syms_of_buffer):
2133 * alloc.c (syms_of_alloc):
2134 * process.c (syms_of_process, init_process):
2135 * lread.c (syms_of_lread, init_obarray):
2136 * font.c (build_style_table):
2137 * emacs.c (syms_of_emacs, main): Replace calls to intern with
2138 intern_c_string, calls to make_pure_string with
2139 make_pure_c_string. Use pure_cons instead of Fcons.
2140
5e2327cf
DN
2141 * process.c (socket_options): Make it const.
2142 (set_socket_option, init_process): Use a const pointer.
2143
2144 * lread.c (intern_c_string): New function.
2145 (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2146 (defvar_int): Uset it. Make the name const char*.
2147
2148 * lisp.h (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool)
2149 (defvar_int): Update prototypes.
2150 (DEFUN, EXFUN): Support for prototypes is now required.
2151 (intern_c_string): New prototype.
2152 (struct Lisp_Subr): Make symbol_name constant.
2153
2154 * font.c (struct table_entry): Remove unused member. Make NAMES
2155 constant.
2156 (weight_table, slant_table, width_table): Make constant.
2157
2158 * emacs.c (struct standard_args): Make name and longname constant.
2159
2160 * character.h (DEFSYM): Use intern_c_string.
2161
a56eaaef
DN
21622009-11-06 Stefan Monnier <monnier@iro.umontreal.ca>
2163
2164 * alloc.c (make_pure_c_string): New function.
2165
2166 * eval.c (Fautoload): Purecopy all arguments.
2167
f6a07420
KH
21682009-11-05 Kenichi Handa <handa@m17n.org>
2169
2170 * fileio.c (Finsert_file_contents): Be sure set coding-system of
2171 the buffer in case of replace.
2172
5d28d4b1
DN
21732009-11-04 Dan Nicolaescu <dann@ics.uci.edu>
2174
2175 * puresize.h (BASE_PURESIZE): Increase to 1620000.
2176
b349d111
SM
21772009-11-03 Stefan Monnier <monnier@iro.umontreal.ca>
2178
d528b1ce
SM
2179 * editfns.c (save_restriction_restore): Update the (pt/begv/vz)_markers
2180 when applicable (bug#4851).
2181
b349d111
SM
2182 * lisp.h: Make USE_LSB_TAG work with USE_LISP_UNION_TYPE.
2183 (P_): Support for prototypes is now required.
2184
c38eb027
CY
21852009-10-31 Chong Yidong <cyd@stupidchicken.com>
2186
2187 * frame.c (Fmake_frame_invisible, Fframe_visible_p): Doc fix
2188 (Bug#4827).
2189
0405f8d9
EZ
21902009-10-30 Eli Zaretskii <eliz@gnu.org>
2191
d528b1ce 2192 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Redefine to waste less pure space.
0405f8d9 2193
ca0a881a
DN
21942009-10-30 Dan Nicolaescu <dann@ics.uci.edu>
2195
2196 * puresize.h (BASE_PURESIZE): Increase to 1470000.
2197
d528b1ce
SM
2198 * lread.c (Fload): Purecopy the file name when building
2199 Vpreloaded_file_list.
ca0a881a 2200
47e0e0e4
JR
22012009-10-29 Jason Rumney <jasonr@wanchan.jasonrumney.net>
2202
2203 * w32fns.c (syms_of_w32fns): Change default value of
2204 w32-scroll-lock-modifier to nil. (Bug#2827)
2205
057bce6f
JB
22062009-10-26 Juanma Barranquero <lekktu@gmail.com>
2207
782a943e 2208 * minibuf.c (Fall_completions): Fix typos in docstring.
057bce6f 2209
242bc74c
AS
22102009-10-26 Andreas Schwab <schwab@redhat.com>
2211
2212 * puresize.h (PURESIZE_RATIO): Increase back to 10/6.
2213
522d013a
JB
22142009-10-26 Juanma Barranquero <lekktu@gmail.com>
2215
2216 * window.c (grow_mini_window): Comment out "delta >= 0" assertion.
2217 For delta < 0, skip check that only makes sense when the mini-window
2218 is going to be enlarged. (Bug#4534)
2219
18060980
CY
22202009-10-25 Chong Yidong <cyd@stupidchicken.com>
2221
2222 * keyboard.c (read_char_x_menu_prompt): Don't demand a prompt
2223 string in menu maps (Bug#4471).
2224
fec8f0fe
CY
22252009-10-24 Chong Yidong <cyd@stupidchicken.com>
2226
2227 * nsfns.m (ns_set_name, ns_set_name_as_filename): Don't call
2228 FRAME_NS_VIEW on terminal frames (Bug#4765).
2229
10d66ec0
AS
22302009-10-24 Andreas Schwab <schwab@linux-m68k.org>
2231
1cae01f7
AS
2232 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_INTnn and
2233 DBUS_TYPE_UINTnn separately to get proper sign extension.
2234
58a12889
AS
2235 * dired.c (Ffile_attributes): Simplify now that FIXNUM_OVERFLOW_P
2236 can properly handle unsigned types.
d528b1ce 2237 (make_uid, make_gid): Remove.
58a12889 2238
987c9327
AS
2239 * lisp.h (FIXNUM_OVERFLOW_P): Fix last change to handle unsigned
2240 types again.
2241
522d013a 2242 * sysdep.c (procfs_ttyname): Fix sprintf format to match argument type.
10d66ec0
AS
2243 (system_process_attributes): Likewise.
2244
905a9ed3
DN
22452009-10-24 Dan Nicolaescu <dann@ics.uci.edu>
2246
2247 * keymap.c (Fmake_sparse_keymap): Purecopy the name.
2248
2249 * eval.c (Fautoload): Purecopy the filename. Simplify.
2250
2251 * category.c (Fdefine_category): Purecopy docstring.
2252
a599b3e8
AS
22532009-10-23 Andreas Schwab <schwab@linux-m68k.org>
2254
7b792fc9
AS
2255 * lisp.h (FIXNUM_OVERFLOW_P): Remove cast to avoid overflow.
2256
a599b3e8
AS
2257 * puresize.h (PURESIZE_RATIO): Decrease to 11/7.
2258
b35ac83e
CY
22592009-10-23 Chong Yidong <cyd@stupidchicken.com>
2260
2261 * window.c (Fwindow_edges, Fwindow_pixel_edges)
2262 (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix
2263 (Bug#4775).
2264
e8903e00
SM
22652009-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
2266
2267 * fileio.c (syms_of_fileio): Initialize Vdirectory_sep_char.
2268 (init_fileio_once):
2269 * lisp.h (init_fileio_once): Remove.
2270 * emacs.c (main): Don't call init_fileio_once.
2271
8f43cbf3
DN
22722009-10-23 Dan Nicolaescu <dann@ics.uci.edu>
2273
2274 * puresize.h (BASE_PURESIZE): Increase to 1430000.
2275
26898943
AS
22762009-10-21 Andreas Schwab <schwab@linux-m68k.org>
2277
2278 * doprnt.c (doprnt): Fix overflow check.
2279
5c646d5a
JD
22802009-10-21 Jan Djärv <jan.h.d@swipnet.se>
2281
3132a7ea
JD
2282 * xterm.c (x_term_init): Remove XSynchronize call done for debugging.
2283
5c646d5a
JD
2284 * xterm.h (x_wait_for_event): Declare it.
2285
2286 * xterm.c (pending_event_wait): New variable.
2287 (handle_one_xevent): Set pending_event_wait.eventtype to 0 if we
2288 see pending_event_wait.eventtype.
2289 (handle_one_xevent): Don't change gravity when parent changes.
d528b1ce
SM
2290 (x_new_font): Call change_frame_size with new rows/columns before we
2291 try to resize the frame.
5c646d5a 2292 (x_wait_for_event): New function.
d528b1ce
SM
2293 (x_set_window_size_1): Don't change gravity unless change_gravity
2294 is set.
5c646d5a
JD
2295 Call XResizeWindow with FRAME_OUTER_WINDOW. If we are visible,
2296 don't change frame size, instead wait for the ConfigureNotify.
2297 (x_set_window_size): Call x_set_window_size_1 for USE_X_TOOLKIT also.
2298 (x_wm_set_size_hint): Remove ifdefs for USE_X_TOOLKIT.
2299 (x_initialize): Initialize pending_event_wait.
2300
2301 * xmenu.c (set_frame_menubar): Add internal border width to menu bar
2302 size.
2303
2304 * widget.c (EmacsFrameSetValues): Add comment.
2305 (EmacsFrameSetCharSize): Just call x_set_window_size.
2306
2307 * gtkutil.c (xg_frame_set_char_size): Flush events and call
2308 x_wait_for_event.
d528b1ce 2309 (flush_and_sync): Remove again.
5c646d5a
JD
2310 (xg_get_font_name): Suggest monospace if no previous font is known.
2311
e9c1637d
SM
23122009-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2313
2314 * character.c (char_resolve_modifier_mask): Don't resolve meta to the
46be764e 2315 8th bit, since that only made sense in the ASCII world (bug#4751).
e9c1637d 2316
5a72cccb
YM
23172009-10-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2318
2319 * xterm.c (XTread_socket) [!USE_GTK && HAVE_X_I18N]: Don't quit
2320 processing pending events when event is filtered for input method.
ab04798f 2321 (Bug#3681)
5a72cccb 2322
2629aa37
JB
23232009-10-20 Juanma Barranquero <lekktu@gmail.com>
2324
2325 * fns.c: Add #endif accidentally removed in previous change.
2326
c3417a74
DN
23272009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2328
2329 * fns.c: Remove code for unsupported system: MAC_OS.
2330 * image.c: Likewise. Include setjmp.h.
2331
9685cef2
JD
23322009-10-19 Jan Djärv <jan.h.d@swipnet.se>
2333
2334 * xterm.c (x_create_toolkit_scroll_bar): Don't allocate color for
2335 pixel -1 (bug #4742).
2336
d7306fe6
DN
23372009-10-19 Dan Nicolaescu <dann@ics.uci.edu>
2338
019d2c4c
DN
2339 * process.c (create_pty): Remove conditionals for no longer
2340 supported systems: UNIPLUS and RTU.
2341
ee6bacd4
DN
2342 * xterm.c:
2343 * xfns.c: Remove always true condition: XtSpecificationRelease >= 5.
2344
d7306fe6
DN
2345 * alloc.c: Do not define struct catchtag.
2346 * eval.c: Move struct catchtag definition ...
2347 * lisp.h: ... here.
2348
2349 * image.c: Move png.h #include earlier to avoid warnings.
2350
2351 * xterm.c:
2352 * xsmfns.c:
2353 * xselect.c:
2354 * xrdb.c:
2355 * xmenu.c:
2356 * xftfont.c:
2357 * xfont.c:
2358 * xfns.c:
2359 * xfaces.c:
2360 * xdisp.c:
2361 * window.c:
2362 * widget.c:
2363 * w32xfns.c:
2364 * w32uniscribe.c:
2365 * w32term.c:
2366 * w32select.c:
2367 * w32reg.c:
2368 * w32proc.c:
2369 * w32menu.c:
2370 * w32inevt.c:
2371 * w32heap.c:
2372 * w32font.c:
2373 * w32fns.c:
2374 * w32console.c:
2375 * w32.c:
2376 * w16select.c:
2377 * vm-limit.c:
2378 * unexsol.c:
2379 * unexec.c:
2380 * unexcw.c:
2381 * unexaix.c:
2382 * undo.c:
2383 * tparam.c:
2384 * textprop.c:
2385 * terminfo.c:
2386 * terminal.c:
2387 * termcap.c:
2388 * term.c:
2389 * syntax.c:
2390 * sound.c:
2391 * sheap.c:
2392 * search.c:
2393 * scroll.c:
2394 * region-cache.c:
2395 * regex.c:
2396 * ralloc.c:
2397 * process.c:
2398 * print.c:
b024548b
DN
2399 * nsterm.m:
2400 * nsselect.m:
2401 * nsmenu.m:
2402 * nsimage.m:
2403 * nsfont.m:
2404 * nsfns.m:
d7306fe6
DN
2405 * msdos.c:
2406 * minibuf.c:
2407 * menu.c:
2408 * marker.c:
2409 * macros.c:
2410 * keymap.c:
2411 * keyboard.c:
2412 * intervals.c:
2413 * insdel.c:
2414 * indent.c:
2415 * gtkutil.c:
2416 * ftxfont.c:
2417 * ftfont.c:
2418 * fringe.c:
2419 * frame.c:
2420 * fontset.c:
2421 * font.c:
2422 * fns.c:
2423 * floatfns.c:
2424 * filelock.c:
2425 * fileio.c:
2426 * emacs.c:
2427 * editfns.c:
2428 * dosfns.c:
2429 * doprnt.c:
2430 * doc.c:
2431 * dispnew.c:
2432 * dired.c:
2433 * dbusbind.c:
2434 * data.c:
2435 * composite.c:
2436 * coding.c:
2437 * cmds.c:
2438 * cm.c:
2439 * chartab.c:
2440 * charset.c:
2441 * character.c:
2442 * ccl.c:
2443 * category.c:
2444 * casetab.c:
2445 * casefiddle.c:
2446 * callproc.c:
2447 * callint.c:
2448 * bytecode.c:
2449 * buffer.c:
2450 * atimer.c: Include setjmp.h. (Bug#4643)
2451
fd5f21e6
SM
24522009-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2453
4c0354d7
SM
2454 Remove leftover table unibyte_to_multibyte_table.
2455 * character.c (unibyte_to_multibyte_table): Remove.
2456 (Funibyte_char_to_multibyte): Use MAKE_CHAR_MULTIBYTE.
2457 * charset.c (init_charset_once): Don't init unibyte_to_multibyte_table.
2458 * character.h (UNIBYTE_TO_CHAR): New macro.
2459 (MAKE_CHAR_MULTIBYTE): Use it.
2460 (unibyte_to_multibyte_table, unibyte_char_to_multibyte): Remove.
2461 * xdisp.c (get_next_display_element): USE ASCII_CHAR_P.
2462 (message_dolog, set_message_1):
2463 * search.c (Freplace_match):
2464 * editfns.c (Fcompare_buffer_substrings):
2465 * fns.c (Fcompare_strings): Use MAKE_CHAR_MULTIBYTE.
2466 (concat):
2467 * insdel.c (copy_text, count_size_as_multibyte):
2468 Use ASCII_CHAR_P and BYTE8_TO_CHAR.
2469 * term.c (produce_glyphs):
2470 * syntax.c (skip_chars): Use BYTE8_TO_CHAR.
2471 * regex.c (RE_CHAR_TO_MULTIBYTE):
2472 * cmds.c (internal_self_insert):
2473 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use UNIBYTE_TO_CHAR.
2474
fd5f21e6
SM
2475 * cmds.c (internal_self_insert): `c' is already in "multibyte" form.
2476
4418646e
DN
24772009-10-17 Dan Nicolaescu <dann@ics.uci.edu>
2478
2479 * puresize.h (BASE_PURESIZE): Increase to 1310000.
2480
35f5c1d2
JB
24812009-10-16 Juanma Barranquero <lekktu@gmail.com>
2482
2483 * buffer.c (Fbuffer_name): Doc fix. (Bug#4728)
2484
a0cd8f6b
AR
24852009-10-15 Adrian Robert <Adrian.B.Robert@gmail.com>
2486
2487 * nsterm.h (NS_HAVE_NSINTEGER): Back out and augment with CGFloat,
2488 still needed under Tiger.
2489
2490 * nsterm.m (EmacsView-conversationIdentifier): Arg is long.
2491
2492 * m/amdx86-64.h: Don't set LIB_STANDARD and START_FILES under
2493 __Apple__.
2494
2495 * m/intel386.h: Remove DARWIN_OS/_LP64 special case.
2496
01a8d3fa
KH
24972009-10-15 Kenichi Handa <handa@m17n.org>
2498
2499 * print.c (print_object): Escape a symbol like "2E10" too.
2500
bf6c75c9 25012009-10-11 Adrian Robert <Adrian.B.Robert@gmail.com>
6e4780c5
JB
2502
2503 Cleanups and changes for 64-bit compile under Snow Leopard.
2504 Based on suggestions by Erik Charlebois.
bf6c75c9
AR
2505
2506 * nsfns.m (xw-color-values): Use CGFloat where appropriate.
2507
c5959062 2508 * nsfont.m (ns_char_width): Replace deprecated call.
bf6c75c9
AR
2509 (ns_findfonts, nsfont_list_family): Use long format in printf, and
2510 cast argument.
2511 (nsfont_open): Use ns_char_width() everywhere.
d528b1ce 2512 (ns_uni_to_glyphs, NSGlyphStorage): Use NS[U]Integer where appropriate.
bf6c75c9
AR
2513
2514 * nsgui.h (NSPoint, NSSize) [!__OBJC__]: Define and use CGFloat.
2515
2516 * nsimage.m (EmacsImage-setXBMColor:,-getPixelAtX:Y:): Use CGFloat
2517 where appropriate.
2518
2519 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
2520 where appropriate.
6e4780c5
JB
2521 (EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:):
2522 Use stringWithUTF8String.
bf6c75c9
AR
2523 (EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
2524
6e4780c5
JB
2525 * nsterm.h (EmacsView, EmacsMenu, EmacsToolbar, EmacsTooltip):
2526 Add formal protocol mention to inheritance.
bf6c75c9
AR
2527 [NS_HAVE_NSINTEGER]: Drop conditional and contents.
2528
6e4780c5
JB
2529 * nsterm.m (ns_color_to_lisp): Use CGFloat where appropriate.
2530 Fix printf format.
bf6c75c9
AR
2531 (ns_query_color): Use CGFloat where appropriate.
2532 (EmacsView<NSTextInput>, EmacsScroller): Fix method signatures.
ac146f82 2533 (EmacsScroller-mouseDown:): Use long format in printf, and cast
bf6c75c9
AR
2534 argument.
2535
3d87f118
AR
2536 * config.in (NS_HAVE_NSINTEGER): Drop.
2537
a95c8102
AR
2538 * dbusbind.c (dbus-method-return-internal)
2539 (dbus-method-error-internal): Use long format in printf, and cast
2540 argument.
2541
2542 * font.c (font_unparse_xlfd, font_unparse_fcname): Use long format
2543 in printf, and cast argument.
2544
6873acca 2545 * process.c (list_processes_1): Use long format in printf, and
a95c8102
AR
2546 cast argument.
2547
9ec6f100
GM
25482009-10-11 Glenn Morris <rgm@gnu.org>
2549
2550 * frame.c (Fframe_pixel_height): Doc fix. (Bug#4535)
2551
5be883cd
JD
25522009-10-08 Jan Djärv <jan.h.d@swipnet.se>
2553
2554 * gtkutil.c (create_menus): Call gtk_widget_set_size_request for
2555 menu bar with a small width so it doesn't enlarge the frame.
2556
d7a39b51
JB
25572009-10-08 Juanma Barranquero <lekktu@gmail.com>
2558
2559 * fontset.c (Fset_fontset_font): Fix typos in error messages.
2560
0c2b6f8e
GM
25612009-10-06 Glenn Morris <rgm@gnu.org>
2562
2563 * Makefile.in (emacs${EXEEXT}): Remove direct dependence on
2564 SOME_MACHINE_LISP (this enters indirectly via DOC).
2565
e02131a2
EZ
25662009-10-05 Eli Zaretskii <eliz@gnu.org>
2567
2568 * dired.c (Ffile_attributes): Doc fix. (Bug#4638)
2569
b4744254
EZ
25702009-10-04 Eli Zaretskii <eliz@gnu.org>
2571
2572 * xdisp.c (syms_of_xdisp) <unibyte-display-via-language-environment>:
2573 Doc fix.
2574
dbf64827
JB
25752009-10-03 Martin Rudalics <rudalics@gmx.at>
2576
2577 * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)
2578
e9a0aef8
MA
25792009-10-02 Michael Albinus <michael.albinus@gmx.de>
2580
d528b1ce 2581 * lisp.h (Qdelete_directory_internal): Remove, because it is not
e9a0aef8
MA
2582 used anymore outside fileio.c.
2583
2584 * w32fns.c (Fsystem_move_file_to_trash): Use delete-directory.
2585
64eb2b56
JB
25862009-10-01 Juanma Barranquero <lekktu@gmail.com>
2587
2588 * lisp.h (Qdelete_directory_internal):
2589 Declare, instead of Qdelete_directory.
2590
2591 * w32fns.c (Fsystem_move_file_to_trash): Use it.
2592
9d28c33e
SM
25932009-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2594
2595 * eval.c (Fcalled_interactively_p): Add `kind' argument.
2596
9d8f3bd9
MA
25972009-10-01 Michael Albinus <michael.albinus@gmx.de>
2598
9d28c33e 2599 * fileio.c (Fdelete_directory_internal): Rename from
9d8f3bd9
MA
2600 Fdelete_directory. It is not a command anymore. It has no file
2601 name handler.
2602
9694740b
SM
26032009-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
2604
2605 * xdisp.c (get_next_display_element): Use an enum in last change.
2606
748e162f
KH
26072009-09-28 Kenichi Handa <handa@m17n.org>
2608
9694740b 2609 * xdisp.c (get_next_display_element): Pay attention to
748e162f
KH
2610 unibyte_display_via_language_environment in handling
2611 Vnobreak_char_display.
2612
17efd58d
AR
26132009-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
2614
2615 * nsterm.h (ns_app_name): New extern variable.
2616
2617 * nsterm.m (ns_app_name): New variable.
2618 (ns_term_init): Set and use it.
2619 (ns_term_shutdown): Use it.
2620
2621 * nsmenu.m (ns_update_menubar): Use ns_app_name. Sync with xmenu.c.
2622 (EmacsMenu-clear:, ns_popup_dialog): Use ns_app_name.
2623
2624 * nsfns.m (ns_set_name_iconic, ns_set_name)
2625 (ns_set_name_as_filename, x-create-frame, ns-get-resource)
2626 (ns-set-resource): Use ns_app_name instead of NSProcessInfo call.
2627
9694740b
SM
2628 * menu.c (find_and_return_menu_selection) [HAVE_NS]:
2629 Remove double-casting in client_data comparison.
31c2d412 2630
3208cb35
YM
26312009-09-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2632
2633 * keyboard.c (make_lispy_event): Remember last wheel direction.
2634 (syms_of_keyboard) <wheel_syms>: Compute array size at compile time.
2635
b7d552d6
GM
26362009-09-26 Glenn Morris <rgm@gnu.org>
2637
2638 * Makefile.in (MSDOS_SUPPORT) [MSDOS]: Remove unneeded '/' in
2639 internal.elc. Add term/pc-win.elc.
2640 (WINDOW_SUPPORT) [HAVE_X_WINDOWS]: Add term/common-win.elc and
2641 term/x-win.elc.
2642 (WINNT_SUPPORT) [WINDOWSNT]: Add term/common-win.elc and
2643 term/w32-win.elc.
2644 (NS_SUPPORT): New.
2645 (lisp): Add NS_SUPPORT.
2646 (SOME_MACHINE_LISP): Add term/w32-win.elc and emacs-lisp/easymenu.elc.
2647
4ff670a8
DR
26482009-09-25 David Reitter <david.reitter@gmail.com>
2649
2650 * nsmenu.m (EmacsMenu-clear): Recognize application menu
2651 on Mac OS X 10.6+ (bug#4513).
2652
feabfb6c
JB
26532009-09-24 Juanma Barranquero <lekktu@gmail.com>
2654
2655 * frame.c (xrdb_get_resource): Return nil for empty string resources;
d528b1ce
SM
2656 some parts of Emacs code (like font selection) don't grok them.
2657 See http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
feabfb6c 2658
de59072a
AS
26592009-09-24 Andreas Schwab <schwab@redhat.com>
2660
2661 * coding.c (decode_coding_iso_2022): Fix operator precedence.
2662
a489517b
JB
26632009-09-24 Juanma Barranquero <lekktu@gmail.com>
2664
2665 * dired.c (Fdirectory_files): Fix typo in docstring.
2666
0592970c
AR
26672009-09-23 Adrian Robert <Adrian.B.Robert@gmail.com>
2668
2669 * nsterm.m (EV_TIMESTAMP, x_set_window_size)
2670 (EmacsApp-application:openFiles:): Remove GNUstep conditionals.
2671 (EmacsScroller-setPosition:portion:whole:): Remove -display call
2672 under GNUstep.
2673 (EmacsView-initFrameFromEmacs:): Set autoresizing mask.
2674
2675 * nsfont.m (ns_glyph_metrics): Remove GNUstep conditional for
2676 glyph advancement.
2677
48e8a88b
AR
26782009-09-22 Adrian Robert <Adrian.B.Robert@gmail.com>
2679
2680 * nsterm.m (CGContextSetFontRenderingMode): Drop declaration.
b3aac06a 2681 (EmacsScroller-mouseDown:): Use SCROLL_BAR_FIRST_DELAY.
48e8a88b
AR
2682
2683 * nsmenu.m (EmacsMenu-menuNeedsUpdate): Ignore if frame has been
2684 deleted (bug #4492).
2685
e14f0a78
AR
2686 * nsfont.m (Vns_reg_to_script): New lisp variable.
2687 (syms_of_nsfont): Declare it.
2688 (ns_registry_to_script): New function.
2689 (ns_get_req_script): Call it.
2690 (ns_findfonts): Don't give up on non-unicode registry.
2691
2692 * font.c (DEFAULT_ENCODING) [HAVE_NS]: Remove special case.
2693
5b650faa
SM
26942009-09-20 Tom Tromey <tromey@redhat.com>
2695
2696 * eval.c (find_handler_clause): Make stack-trace-on-error work in
2697 batch mode (bug#4228).
2698
a489517b 26992009-09-18 Rob Christie <robchristie@gmail.com> (tiny change)
0bae4e09
AR
2700
2701 * nsmenu.m (EmacsMenu-parseKeyEquiv:): Parse key equivalent more
a489517b 2702 carefully. (Bug #4339)
0bae4e09 2703
fcfe06f3
CY
27042009-09-18 Chong Yidong <cyd@stupidchicken.com>
2705
d798ba87 2706 * syntax.c (Fchar_syntax): Minor doc fix (Bug#4400).
fcfe06f3 2707
31642728
AR
27082009-09-18 Adrian Robert <Adrian.B.Robert@gmail.com>
2709
2710 * emacs.c (inhibit_x_resources): Update doc string for NS.
2711 (main) [HAVE_NS]: Don't process --no-init-file option. Remove
cff11156 2712 legacy code for -NXHost. Fix error printf in daemon case.
31642728
AR
2713
2714 * nsterm.h (ns_no_defaults): Remove.
2715
2716 * nsterm.m (ns_no_defaults): Remove.
2717 (ns_term_init): Switch ns_no_defaults -> inhibit_x_resources.
2718 (ns_use_qd_smoothing): Remove legacy variable.
6516d10a
AR
2719 (EmacsView-windowShouldZoom:): Set frame left_pos, top_pos and
2720 don't update the NSWindow itself.
2721 (EmacsView-windowWillUseStandardFrame:defaultFrame:): Improve
a489517b 2722 state detection and store user rect ourselves. (Bug #3581)
31642728
AR
2723
2724 * nsfont.m (nsfont_draw) [NS_IMPL_COCOA]: Don't use
2725 ns_use_qd_smoothing.
2726
2727 * nsfns.m (x_get_string_resource): Ape just-previous changes to other
2728 platform versions. Drop support for emacs-20-style face specs.
8aad0aea 2729 (x-close-connection): Drop PSFlush() under OS X.
a489517b 2730 (x-focus-frame): Activate the app first. (Bug #4180)
31642728 2731
8686ac71
JB
27322009-09-17 Juanma Barranquero <lekktu@gmail.com>
2733
2734 * emacs.c (inhibit_x_resources): New variable.
2735 (main) [HAVE_NS]: Don't process --quick command line option.
2736 (syms_of_emacs) <inhibit-x-resources>: DEFVAR_BOOL it.
2737
2738 * lisp.h (inhibit_x_resources): Declare it extern.
2739
2740 * w32reg.c (x_get_string_resource):
2741 * xrdb.c (x_get_string_resource): Obey inhibit_x_resources.
2742
e227ba05
EZ
27432009-09-17 Eli Zaretskii <eliz@gnu.org>
2744
362654a6
JB
2745 * Makefile.in (MSDOS_SUPPORT, SOME_MACHINE_LISP):
2746 Add lisp/term/internal.elc.
e227ba05 2747
742d40e8
SM
27482009-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
2749
2750 * frame.c (x_get_resource_string): Re-add for non-toolkit builds
2751 (bug#4461).
2752
005bd5a2
DN
27532009-09-17 Dan Nicolaescu <dann@ics.uci.edu>
2754
2755 * puresize.h (BASE_PURESIZE): Increase to 1290000.
2756
2757 * Makefile.in (OTHER_FILES): Define using autoconf, not cpp.
2758 (OBJECTS_MACHINE): Remove, unused.
2759
f9af9719
SM
27602009-09-16 Stefan Monnier <monnier@iro.umontreal.ca>
2761
2762 * frame.c (x_get_resource_string): Remove unused.
2763
0307c7d2
JD
27642009-09-15 Jan Djärv <jan.h.d@swipnet.se>
2765
2766 * xterm.c (x_new_font): Call change_frame_size before calling
2767 x_set_window_size, in case frame size won't change.
2768
2769 * frame.c (x_set_font): Remove dead code.
2770
428b13d6
SM
27712009-09-15 Stefan Monnier <monnier@iro.umontreal.ca>
2772
2773 * lread.c (Fload): Also run do-after-load-evaluation while dumping.
2774
5766c380
SM
27752009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2776
2777 * lread.c (Fload): Don't output a message after loading an obsolete
2778 package any more (done in Lisp now).
2779
2fd0161b
CY
27802009-09-12 Chong Yidong <cyd@stupidchicken.com>
2781
2782 * fns.c (syms_of_fns): Doc fix (Bug#4227).
2783
bc5e75b6
SM
27842009-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2785
2786 * keymap.c (Fwhere_is_internal): Use nconc2.
2787
c31c985e
AM
27882009-09-11 Alan Mackenzie <acm@muc.de>
2789
2790 * dispnew.c (Fsend_string_to_terminal): Amend doc string to cover
2791 batch mode.
2792
78012bd2
AS
27932009-09-11 Andreas Schwab <schwab@linux-m68k.org>
2794
2795 * xdisp.c (display_mode_element): Detect cycles.
2796
9d889332
SM
27972009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2798
2799 * keymap.c (where_is_internal): Don't erroneously return nil right after
2800 filling the cache.
2801 (where_is_internal_1): Fix up typo.
2802
7ab5d780
GM
28032009-09-11 Glenn Morris <rgm@gnu.org>
2804
2805 * frame.c (Fx_parse_geometry): Unify the X and NS versions so that they
2806 share a common doc-string.
2807
5238a749
SM
28082009-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
2809
66d77eda
SM
2810 * keymap.c (get_keymap): Return the actual keymap symbol rather than
2811 t for autoloaded keymaps when autoloading is not allowed (bug#4393).
2812
5238a749
SM
2813 * keymap.c (QCadvertised_binding): New constant.
2814 (syms_of_keymap): Initialize it.
2815 (Fwhere_is_internal): Try and use bindings from :advertised-binding
2816 if applicable.
2817
19f48442
SM
28182009-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
2819
50d4ba39
SM
2820 * keyboard.c (Qmenu_alias, Vdefine_key_rebound_commands): Remove.
2821 (parse_menu_item): Streamline since bindings are recomputed all the
2822 time anyway. Don't bother checking Vdefine_key_rebound_commands any
2823 more and don't support lmenu's menu-alias any more either.
2824
a88a5372
SM
2825 * keymap.c (where_is_internal_data): Make noindirect a boolean.
2826 (where_is_internal): Strip it down to only traverse the keymaps.
2827 Move the cache handling from Fwhere_is_internal to here.
2828 (Fwhere_is_internal): Move the handling of remapping and the choice of
2829 the best binding from where_is_internal to here.
2830 Unify the cached/noncached paths, so remapping is also handled
2831 correctly when the cache is used, and so the cache can be used to
2832 speed up remap-handling when applicable.
2833 Give preference to non-remapped bindings.
2834 * doc.c (Fsubstitute_command_keys): Let Fwhere_is_internal's prefer
2835 non-remapped bindings.
2836 * keyboard.c (parse_menu_item): Let Fwhere_is_internal handle
2837 command remapping.
2838
19f48442
SM
2839 * xdisp.c (display_mode_element): Move list length limit from 50 to
2840 5000 (see thread starting with <xbaik5174uqu.fsf@cam.ac.uk>).
2841
599498c3 28422009-09-09 Adrian Robert <Adrian.B.Robert@gmail.com>
c1905ca3
AR
2843
2844 * nsfont.m (ns_get_family): Don't force first letter to uppercase.
2845
f9b7b5ac
SM
28462009-09-09 Stefan Monnier <monnier@iro.umontreal.ca>
2847
a53af587
JB
2848 * xdisp.c (Vtruncate_partial_width_windows): Improve docstring.
2849 (Bug#4334)
2850
f9b7b5ac
SM
2851 * keymap.c (where_is_internal): Filter out shadowed remappings.
2852 Assume that where_is_internal returns unshadowed bindings to simplify
2853 the code and get rid of the gotos. Use ASIZE.
2854
04f4b72d
JD
28552009-09-04 Jan Djärv <jan.h.d@swipnet.se>
2856
4da146f2
JD
2857 * xterm.c (x_focus_changed): If we get a focusout and pointer
2858 is invisible, make it visible.
2859
04f4b72d
JD
2860 * xterm.h: Remove condition for declaration of
2861 x_*_window_to_frame.
2862
7cef7ce3
SM
28632009-09-03 Stefan Monnier <monnier@iro.umontreal.ca>
2864
2865 * dispnew.c (Fsend_string_to_terminal): Make it work again on the
2866 initial terminal as well.
2867
a54fa5b7
JD
28682009-09-02 Jan Djärv <jan.h.d@swipnet.se>
2869
2870 * xterm.h: Rename x_non_menubar_window_to_frame to
7cef7ce3 2871 x_menubar_window_to_frame.
a54fa5b7
JD
2872
2873 * xterm.c: Remove declarations also in xterm.h
2874 (XTmouse_position): Do not return valid positions
2875 for clicks in the menubar and the toolbar for Gtk+.
2876
2877 * xfns.c (x_any_window_to_frame): Assume less about Gtk+ internals,
2878 if the widget for the event has the same top level as a frame,
2879 return the frame.
2880 (x_menubar_window_to_frame): Detect menu bar even with Gtk+
2881 internal windows, bug #4122.
2882 (x_non_menubar_window_to_frame): Remove.
2883
5a021dd0
GM
28842009-09-02 Glenn Morris <rgm@gnu.org>
2885
2886 * buffer.c (default-major-mode): Move most of the doc from here...
2887 (major-mode): ... to here.
2888
548fe2f3
NR
28892009-08-30 Nick Roberts <nickrob@snap.net.nz>
2890
2891 * process.c (wait_reading_process_output): Keep the descriptor
2892 when pty is used by a non-child process, e.g., in I/O buffer of
2893 GDB this allows inferior to be restarted.
2894
e0840eef
EZ
28952009-08-29 Eli Zaretskii <eliz@gnu.org>
2896
2897 * xdisp.c (redisplay_internal): Remove redundant test and collapse
2898 both branches into one.
2899
82e98df4
SM
29002009-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
2901
2902 * emacs.c (USAGE1): Remove --(no-)multibyte, --(no-)unibyte.
2903 (main): Use enable-multibyte-characters rather than
2904 default-enable-multibyte-characters. Output a warning message when
2905 running a unibyte session.
2906
890617cb
YM
29072009-08-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2908
2909 * unexmacosx.c (print_load_command_name) [LC_DYLD_INFO]: Add cases
2910 LC_DYLD_INFO and LC_DYLD_INFO_ONLY.
2911 (copy_data_segment): Also copy __program_vars section.
2912 (copy_dyld_info) [LC_DYLD_INFO]: New function.
2913 (dump_it) [LC_DYLD_INFO]: Use it.
2914
2915 * s/darwin.h [temacs]: Undef HAVE_POSIX_MEMALIGN.
2916
e7adeadc
EZ
29172009-08-28 Eli Zaretskii <eliz@gnu.org>
2918
2919 * makefile.w32-in ($(BLD)/doc.$(O)): Depend on buildobj.h, not on
2920 $(SRC)/buildobj.h.
2921 (buildobj.h): Renamed from $(SRC)/buildobj.h.
2922 (make-buildobj-CMD, make-buildobj-SH): Create buildobj.h, not
2923 $(SRC)/buildobj.h.
2924 (clean): Add buildobj.h.
2925
3ed8bbdc
TZ
29262009-08-28 Teodor Zlatanov <tzz@lifelogs.com>
2927
2928 * print.c (print_object): Set escapeflag to 1 when printing
2929 hashtable keys and values.
2930
155a6764
SM
29312009-08-27 Stefan Monnier <monnier@iro.umontreal.ca>
2932
2933 * lread.c (read_integer): Use doubles (and potentially return a float
2934 number) as we do in string-to-number.
2935 (read1): Use strtol to read integers, signal errors on strtol's
2936 overflow and use floats if strtol's output is too large for
2937 Elisp integers.
2938
877610de
EZ
29392009-08-27 Eli Zaretskii <eliz@gnu.org>
2940
2941 * makefile.w32-in ($(SRC)/buildobj.h, make-buildobj-CMD)
2942 (make-buildobj-SH): Fix last change.
2943 (SRC): Move to before where it's first used.
2944
ef73e7be
KH
29452009-08-27 Kenichi Handa <handa@m17n.org>
2946
550c8289
KH
2947 * process.c (send_process): Use encode_coding_object instead of
2948 encode_coding_string to perform eol-conversion even if the string
2949 is unibyte.
2950
60afa08d
KH
2951 * coding.c (encode_coding_utf_16): Fix checking of a Unicode
2952 character.
2953
ef73e7be 2954 * cmds.c (Fself_insert_command): Avoid unnecessay
8a0b709a 2955 unibyte->multibyte conversion. (Bug#4240) (Bug#4037)
ef73e7be 2956
7b3a82d7
DN
29572009-08-26 Dan Nicolaescu <dann@ics.uci.edu>
2958
5654bf63
DN
2959 * callproc.c (Fcall_process): Remove always true #if.
2960
7b3a82d7
DN
2961 * lisp.h: Replace #if 0 code for checking with text pointing to
2962 the --enable-checking configure flag.
2963
2964 * emacs.c (main): Mention the --enable-profiling configure flag
2965 instead of using CFLAGS.
2966
878bde49
KR
29672009-08-26 Ken Raeburn <raeburn@raeburn.org>
2968
2969 * Makefile.in (buildobj.h): New target.
2970 (doc.o): Depend on it.
2971 (temacs${EXEEXT}): Don't generate buildobj.lst.
2972 (mostlyclean): Delete buildobj.h, not buildobj.lst.
2973 * makefile.w32-in ($(SRC)/buildobj.h): New target.
2974 ($(BLD)/doc.$(O)): Depend on it.
2975 (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
2976 provided by Eli Zaretskii.)
2977 ($(TEMACS)): Don't generate buildobj.lst.
2978 * doc.c: Include buildobj.h.
2979 (buildobj): New static variable.
2980 (Fsnarf_documentation): Use it, instead of opening and reading
2981 buildobj.lst.
2982
1574224c
MA
29832009-08-25 Michael Albinus <michael.albinus@gmx.de>
2984
2985 * dbusbind.c (Fdbus_call_method)
2986 (Fdbus_call_method_asynchronously): Use English numeric format for
2987 timeout values in doc string.
2988
d9da2f45
KH
29892009-08-25 Kenichi Handa <handa@m17n.org>
2990
ef73e7be
KH
2991 * alloc.c (mark_char_table): New function.
2992 (mark_object): Use mark_char_table for a char-table.
2993
d9da2f45
KH
2994 * lisp.h (CHAR_TABLE_REF_ASCII): New macro.
2995 (CHAR_TABLE_REF): Use it.
2996
c8edcc01
KR
29972009-08-23 Ken Raeburn <raeburn@raeburn.org>
2998
2999 * Makefile.in (emacs${EXEEXT}) [CANNOT_DUMP]: Set EMACSLOADPATH
3000 before invoking the newly build emacs to check for load-path
3001 shadowing.
3002
7763401b
GM
30032009-08-22 Glenn Morris <rgm@gnu.org>
3004
3005 * Makefile.in (bootstrap_exe): New variable.
3006 (.el.elc, ${lispsource}loaddefs.el, bootstrap-emacs${EXEEXT}):
3007 Use ${bootstrap_exe}.
3008
729eadda
EZ
30092009-08-22 Eli Zaretskii <eliz@gnu.org>
3010
3011 * coding.h (encode_coding_string): Don't encode unibyte strings.
3012 (Bug#4047)
3013
eb4c6ace
MA
30142009-08-22 Michael Albinus <michael.albinus@gmx.de>
3015
3016 * config.in (HAVE_DBUS_WATCH_GET_UNIX_FD): Add.
3017
3018 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): Remove. It was
3019 intended as hotfix only.
3020 (xd_add_watch, xd_remove_watch): Use HAVE_DBUS_WATCH_GET_UNIX_FD.
3021
36e34d1b
AR
30222009-08-21 Adrian Robert <Adrian.B.Robert@gmail.com>
3023
3024 * nsterm.m (ns_get_color): Update documentation properly for last
3025 change, and clean up loose ends in the code left by it. Fix
3026 longstanding bug with 16-bit hex parsing, and add support for
3027 yet another X11 format (rgb:r/g/b) for compatibility.
3028 * nsfns.m (EmacsDialogPanel-runDialogAt): Add declaration of
3029 timer_check() to avoid crash on Leopard/PPC. Bug #2154.
3030
f983eb8a
SM
30312009-08-21 Stefan Monnier <monnier@iro.umontreal.ca>
3032
3033 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 500 for js.el.
3034
3f56d3c6
MA
30352009-08-20 Michael Albinus <michael.albinus@gmx.de>
3036
3037 * dbusbind.c (XD_WITH_DBUS_WATCH_GET_UNIX_FD): New macro.
3038 (xd_add_watch, xd_remove_watch): Use it. Print debug messages.
3039 (xd_initialize, xd_pending_messages): Check, whether
3040 $DBUS_SESSION_BUS_ADDRESS is set.
3041
fb641d68
YM
30422009-08-20 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3043
3044 * nsfns.m (Fxw_color_values): Return 3-element list. Doc fix.
3045
3046 * nsterm.m (ns_get_color): Remove incompatible color formats again.
3047
cf59a374
GM
30482009-08-20 Glenn Morris <rgm@gnu.org>
3049
3050 * emacs.c (system-type): Doc fix.
3051
1373f3be
SM
30522009-08-19 Stefan Monnier <monnier@iro.umontreal.ca>
3053
3054 * keyboard.c (syms_of_keyboard): Default to 5 buttons, which should be
3055 enough for the most common situations. Avoid SET_SYMBOL_VALUE.
3056
058ed861
MA
30572009-08-18 Michael Albinus <michael.albinus@gmx.de>
3058
1373f3be
SM
3059 * dbusbind.c (xd_add_watch, xd_remove_watch, Fdbus_init_bus):
3060 New functions.
058ed861
MA
3061 (xd_initialize): Revert change from 2009-08-16.
3062
563a866e 30632009-08-18 Kenichi Handa <handa@m17n.org>
5fc05db0
KH
3064
3065 * fontset.c (Ffontset_font): If a nil element is found in a
563a866e 3066 font-group vector, return nil.
5fc05db0 3067
e42bdf01
CY
30682009-08-17 Chong Yidong <cyd@stupidchicken.com>
3069
3070 * process.c (status_notify): Don't perform redisplay.
3071 (Fdelete_process, list_processes_1, process_send_signal):
3072 Expliticly perform redisplay.
3073 (wait_reading_process_output): Always check process status, but
3074 don't perform redisplay unless DO_DISPLAY is non-zero (Bug#2930).
3075
4230ab74
KR
30762009-08-17 Ken Raeburn <raeburn@raeburn.org>
3077
1373f3be 3078 * lisp.h (XFLOAT_DATA): Produce an rvalue by adding 0 to the value.
f601cdf3
KR
3079 (XFLOAT_INIT): New macro for storing a float value.
3080 * alloc.c (make_float, make_pure_float): Use XFLOAT_INIT.
3081 * fns.c (sxhash): Copy out the value of a float in order to
3082 examine its bytes.
3083 * dbusbind.c (xd_append_arg): Likewise.
3084
4230ab74
KR
3085 * emacs.c (main): Don't call syms_of_data twice.
3086
a0645cdd
MA
30872009-08-16 Michael Albinus <michael.albinus@gmx.de>
3088
3089 * dbusbind.c (xd_initialize): Add connection file descriptor to
3090 input_wait_mask, in order to let select() detect, whether a new
3091 message has been arrived.
ca4f31ea 3092 (Fdbus_call_method_asynchronously): Allow nil HANDLER.
a0645cdd 3093
485db0ba
MA
30942009-08-15 Michael Albinus <michael.albinus@gmx.de>
3095
1373f3be
SM
3096 * dbusbind.c (xd_get_dispatch_status, xd_pending_messages):
3097 New functions.
485db0ba
MA
3098
3099 * lisp.h (xd_pending_messages): Declare.
3100
3101 * keyboard.c (readable_events): Call xd_pending_messages.
3102
b5b98ff4
CY
31032009-08-15 Chong Yidong <cyd@stupidchicken.com>
3104
1373f3be 3105 * eval.c (Fcalled_interactively_p, Finteractive_p): Doc fix (Bug#3936).
84b17ab0 3106
f8354c6e
CY
3107 * xdisp.c (pop_it): Don't pop into a display vector (Bug#4131).
3108
b5b98ff4
CY
3109 * buffer.c (set_buffer_internal_1)
3110 (swap_out_buffer_local_variables): Check for unbound local
3111 variables (Bug#4138).
3112
8b9fc636
EZ
31132009-08-14 Eli Zaretskii <eliz@gnu.org>
3114
3115 * process.c (create_pty): Fix last change.
3116
ce959360
CY
31172009-08-13 Chong Yidong <cyd@stupidchicken.com>
3118
3119 * image.c (xbm_read_bitmap_data): New arg inhibit_image_error.
3120 (xbm_load_image): Caller changed.
64b807c9 3121 (xbm_file_p): Avoid signalling an image_error (Bug#4107).
ce959360 3122
c7baf7e9
NR
31232009-08-13 Nick Roberts <nickrob@snap.net.nz>
3124
3125 * process.c (create_pty): New function.
3126 (Fstart_process): Use it to allow Emacs to just associate a pty
3127 with the buffer. See associated change in gdb-mi.el.
3128 (list_processes_1): Deal with no program name.
3129 (start_process_unwind): Use pid == -2 to mean no process.
3130
1ac9108a
SM
31312009-08-12 Stefan Monnier <monnier@iro.umontreal.ca>
3132
3133 * cmds.c (nonundocount): New global variable.
3134 (keys_of_cmds): Initialize it.
3135 (Fself_insert_command): Use it to combine upto 20 sequential chars
3136 into a single undo entry, just like the Qself_insert_command code in
3137 keyboard.c does.
3138 Call frame_make_pointer_invisible, also like the Qself_insert_command
3139 code in keyboard.c does.
3140 * keyboard.c (command_loop_1): Use the new global nonundocount rather
3141 than its own local replacement for it.
3142
e267324c
KR
31432009-08-10 Ken Raeburn <raeburn@raeburn.org>
3144
1ac9108a 3145 * fns.c (concat): Don't re-set string length to its current value.
77437343 3146
1ac9108a
SM
3147 * coding.h (decode_coding_string, encode_coding_string):
3148 Use SBYTES macro.
f0bed503 3149
1ac9108a 3150 * doprnt.c (doprnt_lisp): Delete unused function.
e267324c
KR
3151 (doprnt): Merge with doprnt1, discarding lispstrings code.
3152 * lisp.h (doprnt_lisp): Don't declare.
3153
416e006d
JL
31542009-08-07 Juri Linkov <juri@jurta.org>
3155
3156 * puresize.h (BASE_PURESIZE): Increase to 1270000.
3157
6f7d5780
DN
31582009-08-07 Dan Nicolaescu <dann@ics.uci.edu>
3159
3160 * print.c (syms_of_print): Undo previous change.
3161
f19a0f5b
TZ
31622009-08-05 Teodor Zlatanov <tzz@lifelogs.com>
3163
3164 * lread.c (read1, syms_of_lread): Read hashtables back from the
3165 readable format.
3166
3167 * print.c (print_preprocess, print_object): Print hashtables fully
3168 and readably.
3169 (syms_of_print): Provide 'hashtable-print-readable.
3170
b9173dc2
AR
31712009-08-02 Adrian Robert <Adrian.B.Robert@gmail.com>
3172
3173 * nsfont.m (ns_descriptor_to_entity): Handle case when descriptor has
3174 no family set.
3175 (nsfont_open): Handle case when entity has no family.
3176
1586503c
AR
31772009-07-29 Adrian Robert <Adrian.B.Robert@gmail.com>
3178
3179 * nsfont.m (ns_findfonts): Fix 2009-07-24 change to return only one
3180 element, not a list, for match case.
3181
087048cd
KH
31822009-07-28 Kenichi Handa <handa@m17n.org>
3183
3184 * font.c (font_parse_xlfd): Check DPI and AVGWIDTH properties more
3185 rigidly.
3186
3187 * xfont.c (xfont_list_pattern): Don't ignore the return value of
3188 font_parse_xlfd. Check font properties more rigidly.
3189
780c2506
DN
31902009-07-27 Dan Nicolaescu <dann@ics.uci.edu>
3191
31fd7c5c
JB
3192 * s/netbsd.h (SIGNALS_VIA_CHARACTERS): Remove, already defined in
3193 bsd-common.h.
780c2506 3194
a8c0cc18
KH
31952009-07-27 Kenichi Handa <handa@m17n.org>
3196
3197 * xfaces.c (face_with_height): Call font_clear_prop.
3198
4fbe2306
CY
31992009-07-26 Chong Yidong <cyd@stupidchicken.com>
3200
111d9af3
CY
3201 * dispnew.c (init_display): Use Qx, Qw32, and Qns.
3202
3203 * xterm.c (x_term_init): Use Qx.
3204
4fbe2306
CY
3205 * nsfont.m (nsfont_draw): Revert 2009-07-15 change.
3206
1ac9108a 3207 * nsterm.m (ns_maybe_dumpglyphs_background): Revert 2009-07-15 change.
4fbe2306
CY
3208 (ns_get_color): Revert 2009-07-16 change.
3209
beb0b7f9
EZ
32102009-07-25 Eli Zaretskii <eliz@gnu.org>
3211
3212 * lread.c (syms_of_lread) <force_load_messages>: New variable.
1ac9108a 3213 (Fload): Use it to force load messages, even if NOMESSAGES is non-nil.
beb0b7f9 3214
2baf5e76
KR
32152009-07-25 Ken Raeburn <raeburn@raeburn.org>
3216
1ac9108a
SM
3217 * coding.h (decode_coding_string, encode_coding_string):
3218 Use SCHARS macro.
8890e5f5 3219
2baf5e76 3220 * lread.c: Rewrite 2009-07-21 changes.
1ac9108a 3221 (load_depth): Delete.
2baf5e76
KR
3222 (Qload_in_progress): New variable.
3223 (load_unwind): Don't reference load_depth or load_in_progress.
3224 (Fload): Likewise; specbind Qload_in_progress instead.
3225 (init_lread): Don't initialize load_depth.
3226 (syms_of_lread): Initialize and protect Qload_in_progress.
3227
1395c6f5
AR
32282009-07-24 Adrian Robert <Adrian.B.Robert@gmail.com>
3229
3230 * nsfont.m (ns_findfonts): Correctly return fallback in match case.
3231
4e2f36cf
AR
32322009-07-23 Yavor Doganov <yavor@gnu.org>
3233
3234 * nsfont.m (NSFontDescriptor.h): Explicitly include under GNUstep.
3235
5dd9a6f7
AR
32362009-07-23 Adrian Robert <Adrian.B.Robert@gmail.com>
3237
3238 * nsterm.m (EmacsView-keyUp:): Only act when running under Tiger.
7f6ad209
AR
3239 Bugs 3792, 3720, 2402.
3240 (ns_lookup_indexed_color): Check for bad index.
3241 (ns_index_color): Init unused slot to 0.
3242 (ns_dumpglyphs_box_or_relief): Replace useless xassert with an if().
3243 Bug 3714, possibly 3082.
5dd9a6f7 3244
c902b920
JR
32452009-07-22 Jason Rumney <jasonr@gnu.org>
3246
1ac9108a
SM
3247 * w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]:
3248 Position IME window at cursor (Bug#2570).
c902b920
JR
3249 (w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
3250 (globals_of_w32fns): Dynamically load functions required above.
3251
3252 * w32term.c (w32_draw_window_cursor): Send message to reposition
3253 any IME window.
3254
090101cf
CY
32552009-07-21 Chong Yidong <cyd@stupidchicken.com>
3256
3257 * fileio.c: Revert 2009-07-16 changes.
3258 (Vauto_save_include_big_deletions): New variable.
3259 (Fdo_auto_save): Disable auto-save only if
3260 auto-save-include-big-deletions is nil.
3261
e6583e3d
CY
32622009-07-21 Chong Yidong <cyd@stupidchicken.com>
3263
3264 * xdisp.c (move_it_to): For continued lines ending in a tab, take
3265 the overflowed pixels into account (Bug#3879).
3266
ece435a5
KR
32672009-07-21 Ken Raeburn <raeburn@raeburn.org>
3268
3269 * lread.c (load_depth): New variable.
3270 (Fload, load_unwind, init_lread): Set it to the load recursion
3271 depth; set load_in_progress as a simple boolean based on the
3272 current load_depth. (Bug#3892)
3273
40b2d973
AR
32742009-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
3275
3276 * nsfont.m (ns_has_attribute): Remove.
3277 (ns_findfonts, nsfont_open): Use ns_attribute_fvalue() instead.
3278
10be7e0d
JL
32792009-07-18 Juri Linkov <juri@jurta.org>
3280
3281 * process.c (Fset_process_query_on_exit_flag): Mention killing
3282 a buffer in docstring.
3283
fa055055
KH
32842009-07-17 Kenichi Handa <handa@m17n.org>
3285
3286 * casetab.c (shuffle): Fix the logic of setting up the cycle.
3287
042f7b69
YM
32882009-07-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3289
3290 * nsfns.m (Fns_set_alpha): Remove function.
3291 (syms_of_nsfns): Don't defsubr it.
3292
3293 * nsterm.m (ns_get_color): Remove incompatible color formats.
3294 (ns_color_to_lisp): Generate #rrggbb color format string.
3295
4be941e3
RS
32962009-07-16 Richard Stallman <rms@gnu.org>
3297
3298 * fileio.c (Fwrite_region, Fdo_auto_save): Handle save_length = -2.
3299 (Fset_buffer_auto_saved): Handle save_length = -2.
3300
4e6b227d
CY
33012009-07-16 Chong Yidong <cyd@stupidchicken.com>
3302
3303 * xterm.c (Qx_gtk_map_stock): New var.
3304
3305 * gtkutil.c (update_frame_tool_bar): Use Qx_gtk_map_stock instead
3306 of calling intern each time.
3307
a1856973
YM
33082009-07-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3309
3310 * nsfont.m (nsfont_draw): Remove code for stippling, which actually
3311 does tiling.
3312
3313 * nsterm.m (ns_maybe_dumpglyphs_background): Likewise.
3314
497e54d8
KH
33152009-07-14 Kenichi Handa <handa@m17n.org>
3316
72d36834
KH
3317 * font.c (font_vconcat_entity_vectors): New function.
3318 (struct font_sort_data): New member font_driver_preference.
3319 (font_compare): Check font_driver_preference.
3320 (font_sort_entities): The format of the first argument changed.
3321 (font_delete_unmatched): Likewise.
3322 (font_list_entities): The return type changed.
3323 (font_select_entity): The format of the second argument changed.
1ac9108a
SM
3324 (font_find_for_lface): Adjuste for the above changes.
3325 Don't suppress the checking of C even if the repertory supports it.
3326 (Flist_fonts): Adjust for the above changes.
72d36834 3327
1ac9108a
SM
3328 * ftfont.c (ftfont_spec_pattern): New arg langname. Change caller.
3329 (ftfont_list): Adjust for the change of ftfont_spec_pattern.
497e54d8
KH
3330 Reject a font who has adstyle property that is different from a
3331 langname derived from registry property.
1ac9108a 3332 (ftfont_match): Adjust for the change of ftfont_spec_pattern.
497e54d8 3333
b6046155
EZ
33342009-07-13 Eli Zaretskii <eliz@gnu.org>
3335
3336 * dired.c (directory_files_internal) [WINDOWSNT]: Don't make a
3337 local copy of dirfilename.
3338
fb6b6049
KH
33392009-07-13 Kenichi Handa <handa@m17n.org>
3340
e2402a5e
KH
3341 * chartab.c (sub_char_table_ref_and_range): Fix the range check
3342 against max_char.
3343
fb6b6049
KH
3344 * cmds.c (internal_self_insert): Check sym by SYMBOLP before
3345 calling XSYMBOL (sym).
3346
65156807
EZ
33472009-07-11 Eli Zaretskii <eliz@gnu.org>
3348
1ac9108a
SM
3349 * dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]:
3350 New function.
3351 (directory_files_internal) [WINDOWSNT]:
3352 Bind w32-get-true-file-attributes to either t or nil, depending whether
65156807
EZ
3353 the filesystem of the directory is fast or slow.
3354
3355 * w32.c (logon_network_drive): Don't assume PATH is an absolute
3356 file name.
3357 (is_slow_fs): New function.
3358 (stat): Use it to determine whether to issue more system calls to
3359 get accurate file attributes, when w32-get-true-file-attributes is
3360 `local'.
3361
e0ab5fcf
JD
33622009-07-10 Jan Djärv <jan.h.d@swipnet.se>
3363
3364 * xfns.c (Fx_select_font): Remember last font selected in
31fd7c5c 3365 x_last_font_name and use that the next time. Also try the frame
e0ab5fcf
JD
3366 parameter font-parameter as default to the font dialog.
3367
784ceded
KH
33682009-07-10 Kenichi Handa <handa@m17n.org>
3369
3370 * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
3371
fb8edc0b
EZ
33722009-07-09 Eli Zaretskii <eliz@gnu.org>
3373
1ac9108a 3374 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
017dab84 3375
fb8edc0b
EZ
3376 * w32.c (stat): Treat UNC file names as residing on remote
3377 drives. (Bug#3542)
3378
635c75b1
KH
33792009-07-09 Kenichi Handa <handa@m17n.org>
3380
3381 * fontset.c (fontset_find_font): Fix previous change.
3382
c1d5ce94
MA
33832009-07-08 Michael Albinus <michael.albinus@gmx.de>
3384
3385 * dbusbind.c (xd_initialize, Fdbus_call_method, xd_read_message)
3386 (Fdbus_register_signal, Fdbus_register_method): Cleanup memory of
3387 error flag.
3388
edb61b39
KH
33892009-07-08 Kenichi Handa <handa@m17n.org>
3390
374bf7e4
KH
3391 * fontset.c (fontset_find_font): Fix the logic of handling
3392 charset_matched.
3393 (font_for_char): Delete unused var.
3394 (generate_ascii_font_name): Delete it.
3395
edb61b39
KH
3396 * coding.h (JIS_TO_SJIS2): Fix the code range check.
3397
3398 * coding.c (detect_coding_sjis): Handle shift_jis-2004 correctly.
3399 (encode_coding_sjis): Fix the code range check.
3400
0f3f018c
CY
34012009-07-07 Chong Yidong <cyd@stupidchicken.com>
3402
3403 * fileio.c (Fsubstitute_in_file_name, Ffile_name_directory)
3404 (Fexpand_file_name): Copy string data properly (Bug#3772).
3405
fcaf6f3a
JD
34062009-07-07 Jan Djärv <jan.h.d@swipnet.se>
3407
3408 * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the
3409 first MapNotify.
3410
6809ca75
KH
34112009-07-07 Kenichi Handa <handa@m17n.org>
3412
3413 * character.h (unibyte_has_multibyte_table): Delete extern.
3414 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): Delete it.
3415
3416 * charset.c (Fset_charset_priority): Update charset_unibyte.
3417 (syms_of_charset): Initialize charset_unibyte.
3418
3419 * character.c (unibyte_has_multibyte_table): Delete it.
3420 (multibyte_char_to_unibyte): Use CHAR_TO_BYTE8 instead of checking
3421 charset_unibyte.
3422 (multibyte_char_to_unibyte_safe): Likewise.
3423 (Funibyte_char_to_multibyte): Don't check charset_unibyte.
3424
1ac9108a 3425 * xdisp.c (get_next_display_element): Decode it->c by charset_unibyte.
6809ca75
KH
3426 (x_produce_glyphs): Likewise.
3427
3428 * .gdbinit (xcharset): Fix the treating $arg0.
3429
ad9e2d54
EZ
34302009-07-04 Eli Zaretskii <eliz@gnu.org>
3431
3432 Emulation of `getloadavg' on MS-Windows.
3433 * w32.c: Include float.h
3434 (g_b_init_get_native_system_info, g_b_init_get_system_times)
3435 (GetNativeSystemInfo_Proc, GetSystemTimes_Proc): Declare.
3436 (get_native_system_info, get_system_times): New functions.
3437 (buf_next, buf_prev, sample_system_load, getavg): New subroutines.
3438 (getloadavg): Rewrite using GetSystemTimes and GetNativeSystemInfo.
3439 (globals_of_w32): Initialize g_b_init_get_native_system_info,
3440 g_b_init_get_system_times, and num_of_processors.
3441
0a3472c7
JR
34422009-07-03 Jason Rumney <jasonr@gnu.org>
3443
3444 * w32term.c (w32_initialize): Use standard types.
3445
80904120
EZ
34462009-07-03 Eli Zaretskii <eliz@gnu.org>
3447
3448 * dired.c (Ffile_attributes): Decode user and group names by the
3449 locale's encoding. (Bug#3443)
3450
6978862d
DN
34512009-07-03 Dan Nicolaescu <dann@ics.uci.edu>
3452
f8d23104
DN
3453 * sysdep.c (sys_suspend): Remove USG_JOBCTRL #ifdef, unused.
3454 (mkdir): Remove MKDIR_PROTOTYPE #ifdef, unused.
3455
3456 * callproc.c (child_setup): Use #else instead of a separate #ifdef.
3457
3458 * term.c (init_tty): Remove spurious #ifdef.
3459
6978862d
DN
3460 * m/mips.h: Mention this file is also used for netbsd.
3461 * m/pmax.h: Remove file.
3462
e044e4fc
JD
34632009-07-03 Jan Djärv <jan.h.d@swipnet.se>
3464
3465 * xterm.h (struct x_display_info): Add invisible_cursor.
3466 (struct x_output): Add current_cursor.
3467
3468 * xterm.c (XTtoggle_invisible_pointer): New function.
3469 (x_define_frame_cursor): Don't define cursor if invisible or the
3470 same as before. Set current_cursor.
3471 (x_create_terminal): Set toggle_invisible_pointer_hook.
3472
3473 * xfns.c (make_invisible_cursor): New function.
3474 (x_set_mouse_color): Call make_invisible_cursor.
3475 Set current_cursor.
3476 (x_window): Set current_cursor.
3477
3478 * termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
3479
3480 * keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
3481 inserting a character.
3482 (read_avail_input): Call frame_make_pointer_visible.
3483
3484 * frame.c (Vmake_pointer_invisible): New variable.
1ac9108a
SM
3485 (frame_make_pointer_invisible, frame_make_pointer_visible):
3486 New functions.
e044e4fc
JD
3487 (syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
3488
3489 * frame.h: Declare frame_make_pointer_invisible and
3490 frame_make_pointer_visible.
3491 (struct frame): Add pointer_invisible.
3492
574c8efa
JD
34932009-07-02 Jan Djärv <jan.h.d@swipnet.se>
3494
7b507248
JD
3495 * gtkutil.c (xg_frame_set_char_size): Do set width/height if the
3496 frame isn't visible.
3497 (xg_frame_resized): If width/height is -1, get size of window
3498 from X server.
3499
3500 * xterm.c (handle_one_xevent): Call xg_frame_resized for USE_GTK
3501 for MapNotify.
3502
835bdaa7 3503 * gtkutil.c (xg_frame_set_char_size): Do not set pixel width/height
31fd7c5c 3504 here or call change_frame_size. Just call flush_and_sync.
1ac9108a 3505 (flush_and_sync): Reintroduce.
574c8efa 3506
3f1c6666 35072009-07-01 Jan Djärv <jan.h.d@swipnet.se>
69b16610 3508
31fd7c5c 3509 * xterm.h (struct x_display_info): Add Xatom_net_wm_state_sticky.
acd51077
JD
3510
3511 * xterm.c (x_handle_net_wm_state): Also look for sticky.
3512 (x_term_init): Initialize Xatom_net_wm_state_sticky.
3513
3514 * frame.h: Declare Qsticky.
3515
cad9ef74
JD
3516 * w32fns.c (w32_frame_parm_handlers): Set 0 for sticky.
3517
3518 * nsfns.m (ns_frame_parm_handlers): Ditto.
3519
3520 * frame.c: Declare Qsticky.
3521 (frame_parms): Add sticky.
3522
3523 * xfns.c (x_frame_parm_handlers): Let x_set_sticky handle sticky.
3524
3525 * xterm.h: Declare x_set_sticky.
3526
3527 * xterm.c (x_set_sticky): New function.
3528
69b16610
JD
3529 * gtkutil.c (xg_tool_bar_proxy_help_callback): New function.
3530 (xg_tool_bar_menu_proxy): Attach enter/leave events to
3531 xg_tool_bar_proxy_help_callback.
3f1c6666
JD
3532
3533 * emacs.c (USAGE3, standard_args): Add -mm and --maximized.
3534
3535 * frame.c: Qmaximized is new.
3536 (x_set_frame_parameters): Do not handle fullscreen specially.
3537 Only set width and height if explicitly set.
3538 (x_set_fullscreen): Handle Qmaximized.
3539 (x_set_font, x_figure_window_size): Do not handle fullscreen specially.
3540 (syms_of_frame): Initialize Qmaximized.
3541
1ac9108a
SM
3542 * frame.h (fullscreen_type): Add FULLSCREEN_MAXIMIZED.
3543 Declare Qfullwidth, Qfullheight, Qfullboth, Qmaximized.
3f1c6666
JD
3544
3545 * xterm.c (handle_one_xevent): Remove call to x_check_fullscreen
31fd7c5c
JB
3546 for Expose event. Add call to x_check_fullscreen for MapNotify event.
3547 Remove all code w.r.t. fullscreen from ConfigureNotify event. Do not
3f1c6666
JD
3548 set gravity to NorthWestGravity when USE_GTK.
3549 (set_wm_state): New function.
31fd7c5c 3550 (do_ewmh_fullscreen): Use set_wm_state. Also handle FULLSCREEN_MAXIMIZED.
3f1c6666
JD
3551 (x_handle_net_wm_state): Handle FULLSCREEN_MAXIMIZED.
3552 (x_check_fullscreen): Simplify so we only handle EMWH type of fullscreen
31fd7c5c 3553 or the case when no window manager is running. That means remove calls
3f1c6666
JD
3554 to x_real_positions and x_fullscreen_adjust.
3555
3556 * gtkutil.c (flush_and_sync, x_wm_size_hint_off): Remove.
3557 (xg_frame_set_char_size): Remove calls to x_wm_size_hint_off and
3558 flush_and_sync.
3559 (xg_height_changed): New function.
3560 (xg_create_frame_widgets): Remove call to gtk_widget_set_size_request
1ac9108a
SM
3561 and gtk_window_set_policy. Set frame gravity after parsing the
3562 geometry string.
3f1c6666
JD
3563 (xg_update_frame_menubar, free_frame_menubar)
3564 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
3565 (update_frame_tool_bar, free_frame_tool_bar): Call xg_height_changed.
3566 Remove calls to xg_frame_set_char_size.
3567
fd503d99
KH
35682009-07-01 Kenichi Handa <handa@m17n.org>
3569
3570 * keyboard.c (decode_keyboard_code): New function.
3571 (tty_read_avail_input): Decode the input bytes if necessary.
3572
1ac9108a
SM
3573 * coding.c (setup_coding_system):
3574 Initialize coding->carryover_bytes to 0.
fd503d99
KH
3575 (Fset_keyboard_coding_system_internal): If CODING-SYSTEM is nil,
3576 use Qno_conversion.
3577
24ed93fb
YM
35782009-07-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3579
3580 * Makefile.in (SOME_MACHINE_LISP): Add ../lisp/term/common-win.elc.
3581
99061dfc
CY
35822009-06-30 Chong Yidong <cyd@stupidchicken.com>
3583
1ac9108a 3584 * xftfont.c (xftfont_open): Avoid passing NULL argument to XftLockFace.
99061dfc 3585
ff90fbde
JR
35862009-06-30 Jason Rumney <jasonr@gnu.org>
3587
3588 * w32term.c (w32_initialize): Use GetModuleHandle for library that
3589 is already loaded.
3590 Set user model ID if supported (bug#1849).
3591
5f445726
JM
35922009-06-29 Jim Meyering <meyering@redhat.com>
3593
3594 Remove useless if-before-xfree test.
3595 * nsfont.m (nsfont_close): Remove useless test.
3596 * term.c (delete_tty): Likewise.
3597 * w32.c (system_process_attributes): Likewise.
3598 * w32font.c (w32font_close): Likewise.
3599 * xfaces.c (x_free_gc): Likewise.
3600 * xselect.c (buffer): Likewise.
3601
b9607587
AS
36022009-06-28 Andreas Schwab <schwab@linux-m68k.org>
3603
3604 * process.c (send_process): Keep decoded string in a local
3605 variable and protect it from GC. (Bug#3521)
3606
89ba96f4
EZ
36072009-06-28 Eli Zaretskii <eliz@gnu.org>
3608
3609 * term.c (create_tty_output) [MSDOS]: #ifdef away.
3610 (tty_free_frame_resources) [MSDOS]: Add a DOS-specific version.
3611
098a1589
CY
36122009-06-28 Chong Yidong <cyd@stupidchicken.com>
3613
485422be
CY
3614 * xdisp.c (start_display, handle_face_prop)
3615 (move_it_vertically_backward, cursor_row_fully_visible_p)
1ac9108a
SM
3616 (redisplay_window, try_window_id, produce_image_glyph):
3617 Delete some #ifdef-ed out code chunks that are now obsolete.
485422be 3618
098a1589
CY
3619 * xterm.c (x_update_window_begin, x_new_focus_frame)
3620 (x_scroll_bar_handle_click, handle_one_xevent)
3621 (handle_one_xevent, XTread_socket, x_focus_on_frame)
3622 (x_make_frame_visible, x_make_frame_invisible)
3623 (x_wm_set_icon_pixmap, x_initialize): Delete some #ifdef-ed out
3624 code chunks that are now obsolete.
3625
78c38319
MA
36262009-06-28 Michael Albinus <michael.albinus@gmx.de>
3627
3628 * dbusbind.c (XD_SYMBOL_TO_DBUS_TYPE): Convert macro into function
3629 xd_symbol_to_dbus_type. With Solaris 2.11, it was said to compile
3630 for hours, when optimzation is enabled.
3631 (xd_signature, xd_append_arg, xd_retrieve_arg, xd_initialize)
3632 (xd_read_message): Make them static.
3633
4189ed40
CY
36342009-06-27 Chuck Blake <cblake@pdos.csail.mit.edu> (tiny change)
3635
3636 * term.c (turn_on_face): Allow simultaneously bold and dim
3637 terminal faces (Bug#3530).
3638
cd9b5e16
CY
36392009-06-27 Chong Yidong <cyd@stupidchicken.com>
3640
4e23bedb
CY
3641 * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
3642
cd9b5e16
CY
3643 * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
3644 truncation glyphs (Bug#3686).
3645
07cc3c35
GM
36462009-06-27 Glenn Morris <rgm@gnu.org>
3647
3648 * m/pmax.h: Restore file, with only netbsd portions.
3649
31fd7c5c 36502009-06-26 David Reitter <david.reitter@gmail.com>
25c5550f 3651
cd9b5e16 3652 * nsterm.m (keydown): Avoid infinite loop.
25c5550f 3653
42d4a64f
KH
36542009-06-26 Peter Jolly <peter@jollys.org> (tiny change)
3655
3656 * ftfont.c (get_adstyle_property): Call font_intern_prop with 1 as
3657 the arg FORCE_SYMBOL.
3658
930fe55b 36592009-06-25 Kenichi Handa <handa@m17n.org>
a71ccf3a
KH
3660
3661 * fontset.c (fontset_find_font): When a usable rfont_def is found
3662 in a fallback font-group, make it the first element of the group.
3663
57ebc3fd
CY
36642009-06-24 Chong Yidong <cyd@stupidchicken.com>
3665
3666 * emacs-icon.h: Always define gnu_xpm_bits on GTK (bug#3671).
3667
f084f942
KH
36682009-06-24 Kenichi Handa <handa@m17n.org>
3669
3670 * fontset.c (fontset_get_font_group): Return 0 if no font-group is
3671 set for C.
3672 (fontset_font): Record the availability of a font for C both in
3673 the realized fontsets of the current one and the default one.
3674
2f686c87
DN
36752009-06-23 Dan Nicolaescu <dann@ics.uci.edu>
3676
3677 * sysdep.c (child_setup_tty): Remove SIGNALS_VIA_CHARACTERS
3678 conditional, it is always defined on AIX.
3679
666e158e
MB
36802009-06-23 Miles Bader <miles@gnu.org>
3681
3682 * window.c (Vrecenter_redisplay): New variable.
3683 (syms_of_window): Initialize it.
3684 (Qtty): New extern declaration.
3685 (Frecenter): Only do redisplay if Vrecenter_redisplay requests it.
3686
c6da7cd2
JM
36872009-06-23 Jim Meyering <meyering@redhat.com>
3688
1ac9108a
SM
3689 * src/ftfont.c (setup_otf_gstring, ftfont_shape_by_flt):
3690 Use xmalloc and xrealloc (not malloc and realloc), so subsequent heap
632c2030 3691 pointer dereferences are guaranteed to be valid.
c6da7cd2 3692
678dca3d
KH
36932009-06-23 Kenichi Handa <handa@m17n.org>
3694
74d75424
KH
3695 * emacs.c (main): Call init_font ().
3696
3697 * font.h (Vfont_log): Extern it.
3698 (FONT_ADD_LOG, FONT_DEFERRED_LOG): New macros.
3699
3700 * font.c (font_sort_entities, font_list_entities)
3701 (font_matching_entity, font_open_entity)
3702 (font_close_object): Change font_add_log to FONT_ADD_LOG.
3703 (Vfont_log): Delete static.
3704 (font_log_env_checked): Delete this variable.
3705 (font_add_log): Don't check font_log_env_checked.
3706 (font_deferred_log): Check Vfont_log.
3707 (init_font): New function.
3708
678dca3d
KH
3709 * ftfont.c: Change font_add_log to FONT_ADD_LOG.
3710
3711 * w32font.c: Change font_add_log to FONT_ADD_LOG.
3712
3713 * w32uniscribe.c: Change font_add_log to FONT_ADD_LOG.
3714
3715 * xfont.c: Change font_add_log to FONT_ADD_LOG.
3716
3717 * fontset.c (fontset_font): Call FONT_DEFERRED_LOG.
3718 (face_for_char): Don't call font_deferred_log here.
3719 (font_for_char): Likewise.
3720
8a668709
CY
37212009-06-22 Chong Yidong <cyd@stupidchicken.com>
3722
9a01ee33
CY
3723 * w32term.c (x_draw_glyph_string): Use the glyph string's width
3724 rather than its background_width for drawing the overline and
3725 underline (Bug#489).
3726
3727 * xterm.c (x_draw_glyph_string): Use the glyph string's width
3728 rather than its background_width for drawing the overline and
3729 underline (Bug#489).
ec7c9926
CY
3730 (xg_default_icon_file): New variable.
3731 (syms_of_xterm): Initialize it to the Emacs SVG icon file.
3732 (x_bitmap_icon): Under GTK, use xg_default_icon_file.
9a01ee33 3733
8a668709
CY
3734 * xdisp.c (Qbefore_string, Qafter_string): Add externs.
3735 (load_overlay_strings): Remove externs.
3736 (fast_find_position): Function deleted.
3737 (mouse_face_from_buffer_pos): New function, based on
3738 fast_find_position. Correctly handle before-strings,
3739 display-strings, and after-strings (Bug#1220).
3740 (note_mouse_highlight): Use mouse_face_from_buffer_pos.
3741
4d4c02d8
CY
37422009-06-21 Chong Yidong <cyd@stupidchicken.com>
3743
1ac9108a 3744 * xdisp.c (IT_DISPLAYING_WHITESPACE): Define for !HAVE_WINDOW_SYSTEM.
4d4c02d8
CY
3745 (move_it_in_display_line_to, move_it_in_display_line_to)
3746 (display_line): Remove #ifdef HAVE_WINDOW_SYSTEM.
3747
70243478
CY
37482009-06-21 Chong Yidong <cyd@stupidchicken.com>
3749
3750 * Branch for 23.1.
3751
13087e59
JR
37522009-06-21 Jason Rumney <jasonr@gnu.org>
3753
3754 * w32term.c (keyboard_codepage): New static variable.
3755 (w32_read_socket) [WM_INPUTLANGCHANGE]: Update it.
3756 (w32_read_socket) [WM_CHAR]: Use it to decode character
3757 input (bug#3237).
3758 (w32_initialize): Initialize it.
3759 (codepage_for_locale): New function.
3760
4735b74e
KR
37612009-06-20 Ken Raeburn <raeburn@raeburn.org>
3762
3763 * process.c (status_message): Pass Faset index argument as a lisp
3764 object, so as to work with USE_LISP_UNION_TYPE.
3765
0e727afa
YM
37662009-06-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3767
3768 * coding.c (Ffind_coding_systems_region_internal):
3769 Cache checked characters.
3770
cf299835
KH
37712009-06-18 Kenichi Handa <handa@m17n.org>
3772
1ac9108a 3773 * coding.c (decode_coding_iso_2022): Check MSB of bytes more rigidly.
cf299835 3774
90f20d94
AS
37752009-06-18 Andreas Schwab <aschwab@redhat.com>
3776
3777 * xdisp.c (redisplay_internal): Check that the frame is still
3778 live after redisplay of its windows.
3779 (redisplay_windows): Check that the window is still live.
3780
7f1faf1c
KH
37812009-06-17 Andreas Schwab <schwab@linux-m68k.org>
3782
3783 * coding.c (detect_coding_utf_16): Fix previous change.
3784
cc13543e
KH
37852009-06-16 Kenichi Handa <handa@m17n.org>
3786
3787 * coding.c (detect_coding_utf_16): Fix the logic of rejecting
3788 UTF-16 by checking the dispersion of Eth and Oth bytes.
3789
977b85f4
AS
37902009-06-15 Andreas Schwab <schwab@linux-m68k.org>
3791
3792 * coding.c (detect_coding_utf_16): Fix typo counting odd bytes.
3793
66bd43d1
KH
37942009-06-15 Kenichi Handa <handa@m17n.org>
3795
3796 * process.c (status_message): Fix previous change. Be sure to
3797 decode a localized string.
3798
cb5ca9c5
YM
37992009-06-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3800
3801 * xterm.c (x_delete_terminal): Put previous change in #if 0 and
3802 add comment explaining why.
3803
ec7709ba 38042009-06-14 Sidney Markowitz <sidney@sidney.com>
5ee6f629 3805
ec7709ba 3806 * nsmenu.m (EmacsTooltip: setText): Set height of tooltip.
5ee6f629 3807
4b7f335c
AR
38082009-06-14 Adrian Robert <Adrian.B.Robert@gmail.com>
3809
3810 * nsfont.m (ns_attribute_value): Remove.
3811 (ns_attribute_fvalue): Incorporate code from ns_attribute_value.
3812 (ns_has_attribute): Shrink the normal range.
3813 (ns_findfonts): Don't worry about requested spec in determining
3814 need for synthItal.
e41820ee 3815 (ns_get_covering_families): Retain scriptToFamilies.
4b7f335c 3816
73b26103
SZ
38172009-06-14 Seiji Zenitani <zenitani@mac.com>
3818
3819 * xdisp.c [USE_MAC_TOOLBAR]: Remove obsolete definition for Mac Carbon.
3820
5753e4da
KH
38212009-06-11 Kenichi Handa <handa@m17n.org>
3822
3823 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3824 overhang for the static composition case.
3825
3561b671
KH
38262009-06-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3827
5753e4da
KH
3828 * xdisp.c (x_get_glyph_overhangs): Fix calculation of right
3829 overhang for the automatic composition case.
3830
3561b671
KH
3831 * xterm.c (x_compute_glyph_string_overhangs): Handle the automatic
3832 composition case.
3833
852bbd41
CY
38342009-06-10 Chong Yidong <cyd@stupidchicken.com>
3835
3836 * xdisp.c (get_next_display_element): When handling wrap-prefix
3837 and line-prefix, treat \n as a control character (bug#3502).
3838
9903d1e6
KH
38392009-06-10 Kenichi Handa <handa@m17n.org>
3840
3841 * font.c (font_parse_family_registry): Fix for one-char foundry.
3842 (font_sort_entities): Initialize prefer_prop[FONT_AVGWIDTH_INDEX].
3843
0bcbaaaa
CY
38442009-06-09 Dmitry Dzhus <dima@sphinx.net.ru> (tiny change)
3845
3846 * process.c (status_message): Fix handling of multibyte signal
3847 string (Bug#3499).
3848
40aa3f13
JM
38492009-06-09 Jim Meyering <meyering@redhat.com>
3850
1f80c7e2
CY
3851 * xfaces.c (Fx_load_color_file): Avoid array bounds error if the
3852 color name is missing.
40aa3f13 3853
72d51285
KH
38542009-06-09 Kenichi Handa <handa@m17n.org>
3855
3856 * charset.c (Fmap_charset_chars): In docstring, state clearly that
3857 FROM-CODE and TO-CODE are codepoints of CHARSET.
3858
c1d04d84
AR
38592009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3860
3861 * nsterm.m (ns_use_system_highlight_color): Drop, unused.
3862
38632009-06-08 Adrian Robert <Adrian.B.Robert@gmail.com>
3864
3865 Changes to support :script/:lang/:otf in NS font driver.
3866 * nsfont.m (nsfont_escape_name, nsfont_unescape_name)
3867 (nsfont_get_family, nsfont_char_width): Rename to ns_ prefix to
3868 indicate not part of font driver interface, and change callers.
3869 (ns_get_family): Remove pointless null check.
3870 (nsfont_spec_to_traits, nsfont_fmember_to_entity): Replace with
3871 ns_spec_to_descriptor, ns_descriptor_to_entity.
3872 (nsfont_trait_distance, nsfont_make_fontset_for_font): Remove.
3873 (ns_attribute_value, ns_attribute_fvalue, ns_has_attribute)
3874 (ns_spec_to_descriptor, ns_descriptor_to_entity)
3875 (ns_charset_covers, ns_lang_to_script, ns_otf_to_script)
3876 (ns_get_req_script, ns_accumulate_script_ranges)
3877 (ns_script_to_charset, ns_get_covering_families, ns_findfonts):
3878 New functions.
3879 (nsfont_list, nsfont_match): Use ns_findfonts.
3880 (nsfont_open): Use font descriptor instead of traits.
3881 (nsfont_draw): Handle "automatic" (lookup-table) compositions.
3882 (dump_glyphstring): Rename to ns_dump_glyphstring.
3883
c7eb9816
AR
3884 * nsterm.h (dump_glyphstring): Rename to ns_dump_glyphstring.
3885
c1d04d84
AR
3886 * nsfns.m (Fns_popup_font_panel): Use shared font manager.
3887
3888 * fontset.c (fontset_from_font): Remove NS-specific code.
3889
ec7709ba 38902009-06-08 Peter Jones <pjones@pmade.com> (tiny change)
c1d04d84
AR
3891
3892 * nsterm.m (ns_draw_window_cursor): Respect cursor_type for
3893 nonactive windows.
3894
31fd7c5c 38952009-06-08 Felix Mueller <felix@enqueue.eu> (tiny change)
c1d04d84 3896
1ac9108a 3897 * nsterm.m (ns_init_paths): Append path separator to INFOPATH variable.
c1d04d84 3898
68852c13 38992009-06-08 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
e7777236
AR
3900
3901 * keyboard.c (kbd_buffer_get_event): Null-check used_mouse_menu.
3902
6756cd1d
CY
39032009-06-07 Chong Yidong <cyd@stupidchicken.com>
3904
3905 * xdisp.c (move_it_in_display_line_to): On text-only terminals,
3906 account for the overflowing of newlines into the last glyph on the
3907 display line (Bug#3482).
3908
28bf482a
DR
39092009-06-05 David Reitter <david.reitter@gmail.com>
3910
ec7709ba
JB
3911 * nsselect.m (Fx_own_selection_internal, Fx_selection_exists_p)
3912 (Fx_selection_owner_p): Rename from Fns_own_selection_internal,
28bf482a
DR
3913 Fns_selection_exists_p, Fns_selection_owner_p.
3914
fdb55376
JR
39152009-06-03 Jason Rumney <jasonr@gnu.org>
3916
3917 * w32fns.c (x_create_tip_frame): Use the uniscribe font backend if
3918 available. (Bug#3379)
3919
05129fbe
KH
39202009-05-29 Kenichi Handa <handa@m17n.org>
3921
1ac9108a
SM
3922 * coding.c (get_translation_table):
3923 Check Venable_character_translation.
05129fbe 3924
ec7709ba 39252009-05-26 David Reitter <david.reitter@gmail.com>
15891144 3926
ec7709ba
JB
3927 * nsterm.m (ns_raise_frame): Only raise frame if visible.
3928 (x_make_frame_visible): Move frame to front rather than calling
15891144 3929 ns_raise_frame().
ec7709ba 3930 (keyDown:): Do not swallow events that aren't re-sent if frame
15891144 3931 isn't key window.
ec7709ba 3932 (drawRect:): Do not set visibility/iconified flags because
15891144
DR
3933 drawRect may be called by NSView even if the frame is hidden.
3934
ec7709ba
JB
3935 * nsfns.m (Fx_create_frame): Follow other ports in
3936 determining visibility; default to t. Ensure async_visible is set.
15891144 3937
21f73755
EZ
39382009-05-23 Eli Zaretskii <eliz@gnu.org>
3939
3940 * dired.c (Ffile_attributes): Doc fix.
3941
34001e41
CY
39422009-05-22 Chong Yidong <cyd@stupidchicken.com>
3943
3944 * m/mips.h [GNU_LINUX]: Don't define DATA_START (Bug#2685).
3945
46306a17
SM
39462009-05-21 Stefan Monnier <monnier@iro.umontreal.ca>
3947
3948 * xfont.c (xfont_list_pattern): Don't initialize xfont_scripts_cache
3949 and xfont_scratch_props.
3950 (syms_of_xfont): Do it here instead.
3951 (xfont_find_ccl_program): Delete, unused.
3952 (xfont_open): Delete unused var `i'.
3953
ef6e0694
KH
39542009-05-21 Kenichi Handa <handa@m17n.org>
3955
3956 * fontset.c (Qlatin): Don't make it static.
3957
46306a17
SM
3958 * xfont.c (xfont_chars_supported, xfont_supported_scripts):
3959 New functions.
ef6e0694
KH
3960 (xfont_scripts_cache, xfont_scratch_props): New variables.
3961 (Qlatin, Vscalable_fonts_allowed): Extern it.
46306a17
SM
3962 (xfont_list_pattern): Argument changed. Callers changed.
3963 Check Vscalable_fonts_allowed. Check the support of a script.
ef6e0694
KH
3964 (xfont_list): Don't reject a font spec with :script property.
3965 (xfont_has_char): Fix setting of encoding.
3966 (syms_of_xfont): Staticpro and initialize xfont_scripts_cache and
3967 xfont_scratch_props.
3968
39692009-05-19 Kenichi Handa <handa@m17n.org>
3970
46306a17 3971 * font.c (font_sort_entities): Rename from font_sort_entites.
ef6e0694
KH
3972 Callers changed.
3973
39742009-05-18 Kenichi Handa <handa@m17n.org>
3975
3976 * font.c (font_find_for_lface): Copy SPEC's FONT_TYPE too.
3977
ac71ced7
SM
39782009-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
3979
3980 * frame.c (do_switch_frame) [NS_IMPL_COCOA]: Don't raise any window.
3981 (delete_frame) [NS_IMPL_COCOA]: Instead, do it here.
3982
1c6d1051
YM
39832009-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
3984
3985 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase here.
3986 (x_delete_terminal): Dissociate resource database from display and
3987 then call XrmDestroyDatabase before closing display.
3988
9b9b779c
AR
39892009-05-18 Adrian Robert <Adrian.B.Robert@gmail.com>
3990
3991 * nsterm.m (ns_read_socket): Remove unused variable.
1564e649
AR
3992 * frame.c (do_switch_frame): Under NS_IMPL_COCOA section, check
3993 whether selected frame is viable before raising it (based on patch
3994 by David Reitter), and improve commentary.
3995 * nsfont.m (nsfont_make_fontset_for_font): Avoid a compiler warning.
9b9b779c 3996
cccd42d5
KH
39972009-05-15 Kenichi Handa <handa@m17n.org>
3998
3999 * font.c (Ffont_spec): Check arguments.
4000
337fbd17
CY
40012009-05-14 Chong Yidong <cyd@stupidchicken.com>
4002
4003 * xfaces.c (tty_supports_face_attributes_p): Recognize unspecified
4004 weight when testing attributes (Bug#3282).
4005
47a6002f
JD
40062009-05-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4007
4008 * gtkutil.c (xg_frame_set_char_size): Set frame pixel width/height to
4009 what we expect to get in the next ConfigureNotify event.
4010
9cb363db
YM
4011 * xftfont.c (xftfont_open): Make sure that Xrender extension is added
4012 before Xft one (Bug#1696).
4013
b9126609
CY
40142009-05-07 David Reitter <david.reitter@gmail.com>
4015
4016 * nsfns.m (Fx_display_planes): Compute bitplanes using
4017 NSBitsPerPixelFromDepth (Bug#3207).
4018
27a69fd9
CY
40192009-05-10 Chong Yidong <cyd@stupidchicken.com>
4020
4021 * editfns.c (Ftranspose_regions): Doc fix (Bug#3248).
4022
00f37552
TTN
40232009-05-10 Ulrich Mueller <ulm@gentoo.org>
4024
4025 * s/gnu-linux.h: Make GCPROs and UNGCPRO no-ops also on SuperH.
4026
2d82a920
DR
40272009-05-07 David Reitter <david.reitter@gmail.com>
4028
ec7709ba
JB
4029 * nsterm.m (ns_dumpglyphs_stretch, ns_dumpglyphs_image):
4030 Respect mouse face background.
2d82a920 4031
46b0d52d
DR
40322009-05-07 David Reitter <david.reitter@gmail.com>
4033
ec7709ba
JB
4034 * nsterm.m (note_mouse_movement, ns_frame_up_to_date):
4035 Mouse movement/highlight: bracket drawing operations
46b0d52d
DR
4036 in ns_update_begin and ns_update_end.
4037
ce1b23bb
SM
40382009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4039
5996e1b7
SM
4040 * nsfns.m (ns_get_screen): Rewrite.
4041 Don't presume selected-frame is of type `ns'.
4042
ba98e3a0
SM
4043 * font.c (font_update_drivers): Sanity fallback to avoid disabling
4044 all drivers.
4045
ce1b23bb
SM
4046 * nsterm.m (-windowDidResize:): Avoid inf-loop under GNUStep.
4047
bcda200f
YM
40482009-05-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4049
4050 * keyboard.h (add_user_signal): Fix typo in extern.
4051
4052 * lisp.h (add_user_signal): Remove extern.
4053
4054 * unexelf.c (unexec): Consider a section to precede the .bss section
4055 if its addresses overlap that of .bss.
4056 (unexec) [NS_IMPL_GNUSTEP]: Copy ObjC-related data from old file
4057 instead of dumping process.
4058
864660a2
SM
40592009-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
4060
4061 * keyboard.c (syms_of_keyboard): Staticpro pending_funcalls.
4062
50da4e56
SM
40632009-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
4064
4065 * Makefile.in (ctagsfiles1, ctagsfiles2): Include ObjC files in TAGS.
4066
51520a1a
DN
40672009-05-02 Dan Nicolaescu <dann@ics.uci.edu>
4068
4069 * xterm.c (x_handle_net_wm_state): Move declaration of lval before
4070 any statements.
4071
409ea3a1
AS
40722009-05-02 Andreas Schwab <schwab@linux-m68k.org>
4073
59c4c60f
AS
4074 * process.c (read_process_output): Make sure the current buffer is
4075 always restored.
4076
409ea3a1
AS
4077 * coding.c (record_conversion_result): Don't modify
4078 Vlast_code_conversion_error for successful result.
4079 (alloc_destination): Don't clobber conversion result. (Bug#1650)
4080
56f00ed2
KH
40812009-05-01 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
4082
4083 * charset.c (load_charset): Reformat X==Y==Z to (X==Y)==Z.
896b1cc9 4084 (load_charset_map): Remove unnecessary code.
56f00ed2 4085
4491c9d2
DR
40862009-04-30 David Reitter <david.reitter@gmail.com>
4087
35f5b128 4088 * nsterm.m (convert_ns_to_X_keysym): Define function keys f16
4491c9d2
DR
4089 through f24.
4090
6970f632
CY
40912009-04-30 Chong Yidong <cyd@stupidchicken.com>
4092
4093 * xfaces.c (face_at_buffer_position): New arg base_face_id.
4094
4095 * xdisp.c (handle_face_prop): Pass base_face_id of iterator to
4096 face_at_buffer_position.
4097 (face_before_or_after_it_pos, get_next_display_element)
4098 (note_mouse_highlight): Update face_at_buffer_position call.
4099
4100 * term.c (term_mouse_highlight):
4101 * msdos.c (IT_note_mouse_highlight):
4102 * fontset.c (Finternal_char_font):
35f5b128 4103 * font.c (font_at, font_range): Update face_at_buffer_position call.
6970f632
CY
4104
4105 * dispextern.h (face_at_buffer_position): Update prototype.
4106
0c616f63
KH
41072009-04-30 Kenichi Handa <handa@m17n.org>
4108
35f5b128 4109 * fontset.c (fontset_find_font): Check if rfont_def is Qnil or not.
0c616f63 4110
ad3aaf33
AS
41112009-04-29 Andreas Schwab <schwab@linux-m68k.org>
4112
4113 * callproc.c (Fcall_process): Fix GC protection. Make sure
4114 current buffer is always restored.
4115
c3c963a0
YM
41162009-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4117
4118 * atimer.c (init_atimer): Also clear stopped_atimers.
4119
4120 * keyboard.c (init_keyboard) [POLL_FOR_INPUT]: Reset poll_timer.
4121
7e3386cb
YM
4122 * process.c (create_process): Clean up merger residues of
4123 2008-07-17 change.
4124
91f68422
CY
41252009-04-29 Ulrich Mueller <ulm@gentoo.org>
4126
4127 * lread.c (Vread_circle): New variable.
4128 (read1): Disable recursive read if Vread_circle is nil.
4129
24b34550
KH
41302009-04-29 Kenichi Handa <handa@m17n.org>
4131
4132 * fontset.h (set_default_ascii_font): Delete extern.
4133
4134 * fontset.c (set_default_ascii_font): Delete this unused function.
4135
4136 * frame.c (x_set_font): When ARG is a font-object, check if the
4137 font-object matches with the ASCII font-spec of the frame's
9c358bda 4138 fontset. If not, create a new fontset for the frame. (Bug #3075)
24b34550 4139
77bf07e1
AS
41402009-04-28 Andreas Schwab <schwab@linux-m68k.org>
4141
4142 * fns.c (Flocale_info): Protect vector from GC during decoding.
4143
4144 * process.c (Fstart_process): Protect argv strings from GC during
4145 encoding.
4146
2c55aacf
AS
41472009-04-27 Andreas Schwab <schwab@linux-m68k.org>
4148
4149 * sysdep.c: Include <ctype.h>.
4150
b892d3c9
DR
41512009-04-27 David Reitter <david.reitter@gmail.com>
4152
35f5b128 4153 * nsfont.m (nsfont_open): Remove unused variable shrink.
b892d3c9
DR
4154 Remove commented-out code.
4155
9d0644c4
JB
41562009-04-26 Johan Bockgård <bojohan@gnu.org>
4157
4158 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
4159
b7053016
JR
41602009-04-25 Jason Rumney <jasonr@gnu.org>
4161
4162 * w32font.c (clear_cached_metrics): Remove, unused since 2008-08-02.
4163
4e8231f3
YM
41642009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4165
4166 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4167 Swap bytes in short integer if fringe bitmap width > 8.
4168
493dcf2c
KH
41692009-04-23 Kenichi Handa <handa@m17n.org>
4170
4171 * xfaces.c (Fx_list_fonts): If a font size is specified in
4172 PATTERN, set it in returned scalable fonts.
4173
401e9e57
CY
41742009-04-22 Chong Yidong <cyd@stupidchicken.com>
4175
708e05dc
CY
4176 * keyboard.c (Fset_input_meta_mode): Doc fix.
4177
4178 * dispnew.c (Fsend_string_to_terminal): Doc fix.
4179
1ac9108a 4180 * data.c (Fterminal_local_value, Fset_terminal_local_value): Doc fixes.
708e05dc
CY
4181
4182 * coding.c (Fterminal_coding_system): Doc fix.
4183
4184 * xfns.c (Fx_display_grayscale_p, Fx_display_pixel_width)
4185 (Fx_display_pixel_height, Fx_display_planes)
4186 (Fx_display_color_cells, Fx_server_max_request_size)
4187 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
4188 (Fx_display_mm_height, Fx_display_mm_width)
4189 (Fx_display_backing_store, Fx_display_visual_class)
1ac9108a
SM
4190 (Fx_display_save_under, Fx_close_connection, Fx_synchronize):
4191 Doc fixes, replacing "terminal id" with "terminal object".
708e05dc
CY
4192 (check_x_display_info): Handle terminal objects instead of
4193 terminal ids.
4194
401e9e57
CY
4195 * term.c (Ftty_display_color_p, Ftty_display_color_cells)
4196 (Ftty_type, Fcontrolling_tty_p, Ftty_no_underline, Fsuspend_tty)
1ac9108a
SM
4197 (Fresume_tty, Vsuspend_tty_functions, Vresume_tty_functions):
4198 Doc fixes, replacing "terminal id" with "terminal object".
401e9e57 4199
df80c7f0
KH
42002009-04-21 Kenichi Handa <handa@m17n.org>
4201
5a8f12af 4202 * font.c (font_load_for_lface): Cancel previous change (bug#2994).
c0a6070d 4203 (font_score): Check AVGWIDTH too.
908567ef 4204
df80c7f0
KH
4205 * coding.c (decode_coding_utf_16): Reduce charbuf_end for the
4206 worst case.
1ac9108a
SM
4207 (decode_coding_sjis, decode_coding_big5, decode_coding_charset)
4208 (decode_coding_emacs_mule, decode_coding_iso_2022): Likewise.
df80c7f0 4209
705af33f
JR
42102009-04-19 Jason Rumney <jasonr@gnu.org>
4211
4212 The following changes fix Bug#3005 for wide glyphs on each platform,
b71ac3dd 4213 without reintroducing Bug#1258 for stretch glyphs.
705af33f
JR
4214
4215 * xterm.c (x_draw_bar_cursor): Limit cursor width differently for
4216 BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR using
4217 get_phys_cursor_geometry.
4218
b71ac3dd 4219 * w32term.c (x_draw_bar_cursor): Limit cursor width differently
705af33f
JR
4220 for BAR_CURSOR and HBAR_CURSOR. Calculate width of HBAR_CURSOR
4221 using get_phys_cursor_geometry.
4222
4223 * nsterm.m (ns_draw_window_cursor): HBAR_CURSOR width already
4224 correctly calculated.
4225
dc2933eb
JD
42262009-04-19 Jan Djärv <jan.h.d@swipnet.se>
4227
1ac9108a
SM
4228 * gtkutil.c (xg_tool_bar_menu_proxy, update_frame_tool_bar):
4229 Use G_CALLBACK instead of GTK_SIGNAL_FUNC which is deprecated.
dc2933eb
JD
4230 (xg_initialize): Use g_type_class_ref instead of gtk_type_class which
4231 is deprecated.
4232
973e7849
AS
42332009-04-18 Andreas Schwab <schwab@linux-m68k.org>
4234
4235 * font.c (font_put_frame_data): Use xfree instead of free.
4236
314d66f4
JB
42372009-04-17 Juanma Barranquero <lekktu@gmail.com>
4238
4239 * w32font.c (Qja, Qko): Remove declarations.
4240 (syms_of_w32font): Don't DEFSYM them.
4241
cf702558
CY
42422009-04-17 Chong Yidong <cyd@stupidchicken.com>
4243
4244 * font.c (Qja, Qko): Move definitions here from ftfont.c.
4245
4246 * font.h (Qja, Qko): Extern them.
4247
4248 * ftfont.c (Qja, Qko): Remove declarations.
4249
4250 * xfont.c (Qja, Qko): Remove declarations.
4251
b50504f5
KH
42522009-04-17 Kenichi Handa <handa@m17n.org>
4253
bde25748
KH
4254 * editfns.c (Ftranslate_region_internal): Use Fconcat to make a
4255 string from a vector to handle Latin-1 characters correctly.
4256
b50504f5
KH
4257 * ftfont.c (ftfont_pattern_entity): Return a newly allocated
4258 entity even if the cache hits.
4259
f4646fff
AS
42602009-04-16 Andreas Schwab <schwab@linux-m68k.org>
4261
4262 * search.c (boyer_moore): Use zero as marker value for a possible
6340c70e 4263 match instead of depending on overflow behavior. (Bug#2844)
f4646fff 4264
e7deaab0
AS
4265 * search.c: Use EMACS_INT for buffer positions. Add prototypes.
4266 * lisp.h: Adjust prototypes.
4267
0a0e7d49
CY
42682009-04-16 Chong Yidong <cyd@stupidchicken.com>
4269
4270 * keyboard.c (adjust_point_for_property): Disable 2009-02-12
4271 change (Bug#3003).
4272
3c908a57
KH
42732009-04-16 Kenichi Handa <handa@m17n.org>
4274
1ac9108a 4275 * xfont.c (xfont_has_char): Special handling of `ja' and `ko' adstyle.
bd0af90d
KH
4276
4277 * xftfont.c (xftfont_has_char): Special handling of `ja' and `ko'
4278 adstyle.
4279
4280 * ftfont.c (Qja, Qko): Don't make them static.
4281 (enum ftfont_cache_for): New enum.
4282 (fc_charset_table): Undo the previous change.
4283 (ftfont_get_latin1_charset): Delete it.
1ac9108a
SM
4284 (ftfont_pattern_entity): Check cache by ftfont_lookup_cache.
4285 Set FONT_SIZE_INDEX of the entity to 0 for a scalable font. For a
bd0af90d
KH
4286 non-scarable font, try to get AVERAGE_WIDTH.
4287 (ftfont_lookup_cache): Argument FOR-FACE is changed to CACHE_FOR.
4288 Change ft_face_cache from a list of a hash-table. Don't check
4289 `ja' and `ko' adstyle here.
4290 (ftfont_get_fc_charset): Call ftfont_lookup_cache with
4291 FTFONT_CACHE_FOR_CHARET.
4292 (ftfont_get_charset): Undo the previous change.
1ac9108a 4293 (ftfont_open): Call ftfont_lookup_cache with FTFONT_CACHE_FOR_FACE.
bd0af90d
KH
4294 (ftfont_close): Likewise.
4295 (ftfont_has_char): Special handling of `ja' and `ko' adstyle.
4296
4297 * font.c (font_sort_entites): Change the meaning of the arg
4298 BEST-ONLY. Don't optimize for VEC of lenght 1.
4299 (font_select_entity): Just return the value of font_sort_entites.
4300
4301 * xfaces.c (merge_face_vectors): Reflect font properties in
4302 to[LFACE_FONT_INDEX] to the other face attributes. Don't call
4303 font_clear_prop if a face attribute doesn't change.
4304
3c908a57
KH
4305 * charset.h (charset_ksc5601): Extern it.
4306
4307 * charset.c (charset_ksc5601): New variable.
4308 (Fdefine_charset_internal): Set charset_ksc5601.
4309 (init_charset_once): Initialize charset_ksc5601 to -1.
4310
d65859c3
DN
43112009-04-15 Dan Nicolaescu <dann@ics.uci.edu>
4312
4313 * fileio.c (history_delete_duplicates): Remove unused declaration.
4314
4315 * callint.c (history_delete_duplicates): New declaration.
4316 (Fcall_interactively): Remove command history duplicates when
4317 history_delete_duplicates is true.
4318
3ba010e5
EZ
43192009-04-14 Eli Zaretskii <eliz@gnu.org>
4320
4321 * buffer.c (syms_of_buffer) <line-spacing>: Doc fix.
4322
06f19b91
KH
43232009-04-14 Kenichi Handa <handa@m17n.org>
4324
4325 * font.c (Ffont_info): Fix docstring. Fix the second element of
4326 the returned value (bug#2949).
4327
2cce8bfc
CY
43282009-04-14 Chong Yidong <cyd@stupidchicken.com>
4329
4330 * xdisp.c (Vwrap_prefix, Vline_prefix): Reflow docstrings.
4331
d156542d
KH
43322009-04-14 Kenichi Handa <handa@m17n.org>
4333
4334 * xfont.c (xfont_has_char): The font has C if C is ASCII and the
4335 encoding charset is ascii_compatible.
4336
4337 * charset.c (Fdefine_charset_internal): Make charset
4338 ascii-compatible if the method is CHARSET_METHOD_OFFSET, the
4339 code_offset is 0, and covers all ASCII characters.
4340
86fa089e
SM
43412009-04-13 Stefan Monnier <monnier@iro.umontreal.ca>
4342
4343 * nsselect.m (symbol_to_nsstring, clean_local_selection_data)
4344 (ns_string_to_pasteboard_internal):
4345 * nsmenu.m (process_dialog):
4346 * nsimage.m (ns_load_image): Use SDATA and ASET where appropriate.
4347 * nsfont.m (nsfont_open): Use XHASH to make it compile with LISP_UNION.
4348 * lisp.h (Fx_load_color_file): Declare.
4349
a8a3728b
KH
43502009-04-13 Kenichi Handa <handa@m17n.org>
4351
1ac9108a 4352 * font.c (font_delete_unmatched): Preserve the order of list elements.
a8a3728b
KH
4353 (font_select_entity): Suppress the code to optimize for the same
4354 kind of fonts.
4355 (font_load_for_lface): Get a font that supports at least ASCII
4356 characters.
4357
4358 * ftfont.c (Qja, Qko): New variables.
4359 (fc_charset_table): Delete uniquifier data for iso8859-1.
4360 (ftfont_get_latin1_charset): New function.
4361 (get_adstyle_property): New function.
4362 (ftfont_pattern_entity): Set FONT_ADSTYLE_INDEX of entity for
4363 bitmap fonts.
4364 (ftfont_lookup_cache): Handle the case that KEY is a font-entity.
4365 Delete iso-8859-1 range from the charset of fonts whose adstyle is
4366 `ko' or `ja'.
4367 (ftfont_get_fc_charset): Call ftfont_lookup_cache with ENTITY.
1ac9108a 4368 (ftfont_get_charset): For iso8859-1, call ftfont_get_latin1_charset.
a8a3728b
KH
4369 (ftfont_list): Don't refuse a font spec with non-nil `adstyle'
4370 property.
4371 (ftfont_open): Call ftfont_lookup_cache with ENTITY.
4372 (syms_of_ftfont): DEFSYM Qja and Qko.
4373
483670b5
KH
43742009-04-09 Kenichi Handa <handa@m17n.org>
4375
12b55765
KH
4376 * charset.c (map_charset_chars): For a charset of `superset'
4377 method, fix calculation of code range.
4378
483670b5
KH
4379 * font.c (font_put_extra): If VAL is nil, delete the slot for PROP
4380 from the list of extra properties.
4381 (font_clear_prop): Be sure to delete `:name' font property.
4382
57d3b93b
KH
43832009-04-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4384
b4b2c2ca
YM
4385 * dispnew.c (redraw_overlapping_rows): Fix detection of
4386 overlapping for topmost and bottommost rows.
4387
1ac9108a 4388 * ftfont.c (ftfont_text_extents): Fix calculation of metrics->descent.
57d3b93b 4389
472c3609
JR
43902009-04-06 Jason Rumney <jasonr@gnu.org>
4391
4392 * frame.c (x_set_font): Avoid C99 mid-block variable declaration.
4393
ab193662
KH
43942009-04-06 Kenichi Handa <handa@m17n.org>
4395
4396 * ftxfont.c (ftxfont_draw_backgrond): Fix args to XFillRectangle.
4397
4398 * xftfont.c (xftfont_open): Fix setting font->underline_thickness.
4399
0c26f026
KH
44002009-04-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4401
4402 * ftfont.c (ftfont_open): Fix checking of the return value of
4403 FT_Load_Char. Fix setting font->underline_thickness.
4404
e173bbce
CY
44052009-04-04 Chong Yidong <cyd@stupidchicken.com>
4406
4407 * terminal.c (Fterminal_name, Fdelete_terminal, Fterminal_name)
4408 (Fterminal_parameters, Fterminal_parameter)
4409 (Fset_terminal_parameter): In doc string, refer to terminal
4410 objects rather than terminal ids.
4411
693a2698
EZ
44122009-04-04 Eli Zaretskii <eliz@gnu.org>
4413
4414 * dosfns.c (system_process_attributes) [SYSTEM_MALLOC]: Don't call
4415 ret_lim_data. (Bug#2867)
4416
d5221487
CY
44172009-04-03 Chong Yidong <cyd@stupidchicken.com>
4418
4419 * term.c (produce_stretch_glyph): Reduce width of stretch glyphs
4420 so they don't get wider than the window, matching 2006-01-23
4421 change to the partner function in xdisp.c (Bug#2800).
4422
223509a3
KH
44232009-04-03 Kenichi Handa <handa@m17n.org>
4424
4425 * print.c (print_object): Make each lowest sub_char_table start a
4426 new line (Bug#2866).
4427
74fcd0b1
KH
44282009-04-02 Kenichi Handa <handa@m17n.org>
4429
4430 * fontset.c (fontset_font): Record no-font when a fontset
4431 explicitly tells not to try another font-specs.
4432
c542407d
SM
44332009-03-30 Pierre Poissinger <pierre.poissinger@gmail.com> (tiny change)
4434
4435 * charset.c (map_charset_for_dump): Add missing UNGCPRO.
4436
e3869731
KH
44372009-03-30 Kenichi Handa <handa@m17n.org>
4438
d8d2f142
KH
4439 * fontset.c (fontset_from_font): Specify only registry in a
4440 font-spec for all characters supported by that registry.
4441
e3869731
KH
4442 * ftfont.c: Fix previous change. Define ftfont_variation_glyphs
4443 even if HAVE_M17N_FLT is not defined.
4444
5da5f805
CY
44452009-03-29 Sebastian Rose <sebastian_rose@gmx.de> (tiny change)
4446
4447 * ftfont.c: Conditionalize prototyping and use of
4448 ftfont_variation_glyphs.
4449
ab226c50
SM
44502009-03-28 Stefan Monnier <monnier@iro.umontreal.ca>
4451
9628fed7
SM
4452 * frame.c (delete_frame): Work around compiler bug.
4453
4454 * editfns.c (general_insert_function): Adjust to insdel.c changes.
4455 * insdel.c (prepare_to_modify_buffer, signal_before_change):
4456 Some more EMACS_INT.
4457 * lisp.h (copy_text, count_size_as_multibyte): Fix last change.
4458
4459 * xdisp.c (dump_glyph): Fix typo.
4460
ae19ba7c
SM
4461 * insdel.c (move_gap, move_gap_both, gap_left, gap_right)
4462 (adjust_markers_gap_motion, adjust_markers_for_delete)
4463 (adjust_markers_for_insert, adjust_point)
4464 (adjust_markers_for_replace, make_gap_larger, make_gap_smaller)
4465 (make_gap, copy_text, count_size_as_multibyte, insert)
4466 (insert_and_inherit, insert_before_markers)
4467 (insert_before_markers_and_inherit, insert_1)
4468 (count_combining_before, count_combining_after, insert_1_both)
4469 (insert_from_string, insert_from_string_before_markers)
4470 (insert_from_string_1, insert_from_gap, insert_from_buffer)
4471 (insert_from_buffer_1, adjust_after_replace)
4472 (adjust_after_replace_noundo, adjust_after_insert, replace_range)
4473 (replace_range_2, del_range, del_range_1, del_range_byte)
4474 (del_range_both, del_range_2, modify_region)
4475 (prepare_to_modify_buffer, signal_before_change)
4476 (signal_after_change, Fcombine_after_change_execute): Use EMACS_INT
4477 for buffer positions and sizes.
4478 * lisp.h: Adjust prototypes accordingly.
4479
4480 * fileio.c (adjust_markers_for_delete): Move declaration to lisp.h.
4481 (non_regular_inserted, non_regular_nbytes, read_non_regular)
4482 (Finsert_file_contents): Use EMACS_INT for buffer positions.
4483
ab226c50
SM
4484 * fileio.c (Finsert_file_contents): Don't limit size to INT_MAX/4.
4485
46dfb8fb
JD
44862009-03-27 Jan Djärv <jan.h.d@swipnet.se>
4487
4488 * frame.c (x_set_font): If the fullscreen property is non-nil, adjust
4489 lines and columns so we keep the same pixel height and width.
4490
4491 * xterm.c (handle_one_xevent): Call x_handle_net_wm_state if
4492 the property _NET_WM_STATE has changed.
46dfb8fb
JD
4493 (x_handle_net_wm_state): New function to update frame parameter
4494 fullscreen.
4495 (x_term_init): Initialize atoms for _NET_WM_STATE.
4496
4497 * xterm.h (struct x_display_info): Add atoms for _NET_WM_STATE.
4498
d347e494
SM
44992009-03-27 Kevin Ryde <user42@zip.com.au>
4500
4501 * keyboard.c (tty_read_avail_input): Don't treat a -1 return from
4502 Gpm_GetEvent as an error that justifies closing the filedescriptor.
4503 * term.c (close_gpm): Get the filedescriptor as a (new) parameter.
4504 (Fgpm_mouse_stop): Pass that new parameter.
4505 * termhooks.h (close_gpm): Adjust prototype.
4506
84db11d6
SM
45072009-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
4508
c95a5008
SM
4509 * lisp.h (Fx_focus_frame): Declare.
4510
84db11d6
SM
4511 * callint.c (Fcall_interactively): For '^' just delegate the work to
4512 handle-shift-selection.
4513 (syms_of_callint): Move declaration of shift-select-mode to simple.el.
4514
0a1958d6
CY
45152009-03-24 Chong Yidong <cyd@stupidchicken.com>
4516
0bfdff23
CY
4517 * editfns.c (Ffloat_time): Doc fix (Bug#2768).
4518
0a1958d6
CY
4519 * data.c (Qinteractive_form): New variable.
4520 (Finteractive_form): Use it.
4521
4522 * eval.c (Fcommandp): Use Qinteractive_form.
4523
58aec0d6
JR
45242009-03-24 Jason Rumney <jasonr@gnu.org>
4525
4526 * fileio.c (Fsubstitute_in_file_name): Always work on a copy.
4527 Calculate total size precisely. Decode environment variables
4528 before substituting. (Bug#38)
4529
553dd618
KH
45302009-03-24 Kenichi Handa <handa@m17n.org>
4531
4532 * font.c (find_font_encoding): Return Qnil for unsupported
639239cf 4533 encoding (Bug#2722).
553dd618 4534
c39ea606
JD
45352009-03-23 Jan Djärv <jan.h.d@swipnet.se>
4536
4537 * gtkutil.c (xg_display_open): Assign a value to gdpy_def, check
4538 that gdpy is set.
4539
bc9b2b5e
AM
45402009-03-22 Alan Mackenzie <acm@muc.de>
4541
4542 * callint.c (Finteractive): Clarify the doc string - even
4543 promptless elements need \n separators.
4544
9f995a76
JR
45452009-03-22 Jason Rumney <jasonr@gnu.org>
4546
4547 * w32term.c (syms_of_w32term): Doc fix for
4548 x-use-underline-position-properties.
4549
22749e9a
EZ
45502009-03-21 Eli Zaretskii <eliz@gnu.org>
4551
4552 * w32.c (getpwuid): Change argument type to unsigned.
4553 (struct w32_id): Change type of `rid' member to unsigned.
4554 (w32_cached_id, w32_add_to_cache, get_name_and_id): Change type of
4555 argument ID to unsigned. All callers changed.
4556 (getuid, geteuid, getgid, getegid): Change return type to unsigned.
4557
e00553bf
EZ
45582009-03-20 Eli Zaretskii <eliz@gnu.org>
4559
4560 * editfns.c (Fuser_uid, Fuser_real_uid): If UID as EMACS_INT is
4561 negative, produce a float value.
4562
4563 * dired.c (make_uid, make_gid): New functions.
4564 (Ffile_attributes): Use them to avoid negative UID and GID.
4565
f761d6b6
JB
45662009-03-20 Juanma Barranquero <lekktu@gmail.com>
4567
4568 * keyboard.c (Fcurrent_idle_time): Reflow docstring.
4569 (syms_of_keyboard) <command-hook-internal, input-method-function>:
4570 Fix typos in docstrings.
4571
d507f8d7
KH
45722009-03-19 Kenichi Handa <handa@m17n.org>
4573
4574 * fontset.c (Fset_fontset_font): When a spec of ASCII font is
f761d6b6
JB
4575 changed, use font_load_for_lface to get a new font object.
4576 Call free_realized_fontset after handling ASCII font change.
d507f8d7
KH
4577
4578 * frame.c (x_set_font): Handle the case that ARG is a cons.
4579
c68845e0
GM
45802009-03-19 Glenn Morris <rgm@gnu.org>
4581
4582 * fileio.c (Fsubstitute_in_file_name): Doc fix.
4583
bfa49dd1
CY
45842009-03-19 Chong Yidong <cyd@stupidchicken.com>
4585
4586 * indent.c (Fvertical_motion): Undo 2005-01-19 change (Bug#2694).
4587
8458d4c1
KH
45882009-03-19 Kenichi Handa <handa@m17n.org>
4589
4590 * charset.c (load_charset_map_from_file): When a mapfile can't be
4591 loaded, signal an error.
4592
78e7d1fe
EZ
45932009-03-18 Eli Zaretskii <eliz@gnu.org>
4594
4595 * dired.c (Ffile_attributes): Make sure UID and GID are always
4596 positive, even if the value is too large for a positive EMACS_INT.
4597 Doc fix.
4598
4599 * editfns.c (Fuser_login_name): Support float arguments. Doc fix.
4600
5da9fdfa
YM
46012009-03-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
4602
4603 * xmenu.c (xdialog_show): Move Fredisplay call ...
4604 (Fx_popup_dialog): ... here.
4605
7519c40d
SM
46062009-03-18 Stefan Monnier <monnier@iro.umontreal.ca>
4607
4608 * dired.c (file_name_completion): Disable the first optimization just
4609 installed, since it is not implemented correctly.
4610
2cd298e2
SM
46112009-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
4612
4613 * dired.c (file_name_completion): Check completion-ignored-extensions
c95a5008 4614 only if the entry can affect bestmatch.
2cd298e2
SM
4615 Stop the search early, as Ftry_completion already does.
4616
48d37adf
CY
46172009-03-17 Chong Yidong <cyd@stupidchicken.com>
4618
e10c9c93 4619 * minibuf.c (Vminibuffer_completion_confirm): Doc fix.
48d37adf 4620
9286b16a
CY
46212009-03-15 Chong Yidong <cyd@stupidchicken.com>
4622
4623 * keyboard.c (parse_menu_item): Don't display remappings as menu
4624 equivalent bindings (Bug#788).
4625
f7b146dc
JR
46262009-03-15 Jason Rumney <jasonr@gnu.org>
4627
4628 * w32term.h (WM_EMACS_PAINT): New message.
4629 * w32term.c (w32_read_socket): Use it instead of WM_PAINT.
4630 * w32fns.c (w32_wnd_proc): Change WM_PAINT to WM_EMACS_PAINT
4631 before passing to lisp thread. (Bug#950)
4632
f761d6b6 46332009-03-14 David Reitter <david.reitter@gmail.com>
c6c62e78 4634
d93f9575
CY
4635 * nsterm.m (ns_shutdown_properly, -terminate): Remove global state
4636 variable as it was never reset.
4637 (ns_term_init): Remove initialization of Lisp-settable defaults
4638 and ns_expand_space.
4639 (-setPanelFromDefaultValues): Remove ns_expand_space.
4640 (-showPreferencesWindow): Send new KEY_NS_SHOW_PREFS key.
4641 * nsfont.m (nsfont_open): Remove ns_expand_space, assume -0.5
c6c62e78
DR
4642 i.e. no additional spacing, similar to Carbon port.
4643
d93f9575
CY
4644 * nsterm.h: Define KEY_NS_SHOW_PREFS key.
4645 * nsfns.m (ns-popup-prefs-panel): Remove.
c6c62e78 4646
305018ec
JD
46472009-03-14 Jan Djärv <jan.h.d@swipnet.se>
4648
4649 * sound.c (alsa_configure): Remove call to deprecated
4650 snd_pcm_sw_params_set_xfer_align.
4651
f761d6b6 46522009-03-14 Stephen Berman <stephen.berman@gmx.net>
4a02423f
JD
4653
4654 * gtkutil.c (xg_tool_bar_callback): Set focus back to the frame
4655 after clicking in a detached tool bar.
4656 (xg_tool_bar_proxy_callback): Remove call to Fx_focus_frame.
4657
46e722a9
SM
46582009-03-13 Stefan Monnier <monnier@iro.umontreal.ca>
4659
348db3dd
SM
4660 * fontset.c (fontset_from_font, Ffontset_info): YAILOM (Yet another
4661 int/Lisp_Object mixup).
46e722a9 4662
a3d16f39
KH
46632009-03-13 Kenichi Handa <handa@m17n.org>
4664
4665 * fontset.c (Ffontset_info, check_fontset_name): New arg frame.
fe24f56a 4666 Handle NAME nil and t correctly. Callers changed.
a3d16f39
KH
4667 (font_def_arg, add_arg, from_arg, to_arg): Delete them.
4668 (set_fontset_font): Change ARG to a vector. Handle range_list in
4669 ARG correctly.
4670 (Fset_fontset_font): Fix the case that TARGET is both a script
fe24f56a 4671 name and charset name. Adjust the arg to set_fontset_font for
a3d16f39
KH
4672 the above change.
4673 (fontset_from_font): Fix previous change.
fe24f56a 4674 (Ffontset_info): Adjust for the 2008-07-09 change of fontset
a3d16f39
KH
4675 entry. If FONTSET is the default fontset, don't set the extra
4676 slot of the returning char-table.
4677
b066e6b6
JB
46782009-03-12 Juanma Barranquero <lekktu@gmail.com>
4679
4680 * nsfns.m (Fx_close_connection): Doc fix.
4681 (Fns_do_applescript): Reflow docstring.
4682 (Fns_hide_others, Fns_hide_emacs, Fns_convert_utf8_nfd_to_nfc)
4683 (Fx_display_pixel_width, Fx_display_pixel_height)
4684 (Fns_display_usable_bounds, Fx_display_planes, Fx_show_tip):
4685 Fix typos in docstrings.
4686 (Fns_set_alpha): Fix typos in error messages.
4687
d472514e 46882009-03-12 David Reitter <david.reitter@gmail.com>
d6220c13 4689
d472514e 4690 * termhooks.h [HAVE_NS]: Define NS_NONKEY_EVENT to be used for
d6220c13
DR
4691 non-key system events on NS. Formerly, NON_ASCII_KEYSTROKE_EVENT
4692 were used for such events.
4693
d472514e
JB
4694 * nsterm.m (newFrame, openFile, fulfillService, changeFont)
4695 (toggleToolbar, performDragOperation, runHelp): Use it.
d6220c13 4696
d472514e 4697 * keyboard.c (parse_menu_item) [HAVE_NS]: Treat new event like
d6220c13
DR
4698 NON_ASCII_KEYSTROKE_EVENT, but set used_mouse_menu.
4699
fb930676
KH
47002009-03-11 Kenichi Handa <handa@m17n.org>
4701
ff85581a
KH
4702 * font.h (font_open_by_spec): Extern it.
4703
c50b7e98
KH
4704 * font.c (font_open_by_spec): New function.
4705 (font_open_by_name): Use font_open_by_spec.
4706
fb930676
KH
4707 * frame.c (x_set_font): When ARG is a font-object, don't alter the
4708 fontset of the frame.
4709
4710 * fontset.c (Fset_fontset_font): When a font for ASCII is changed,
4711 modify the default font of frames that use this fontset.
4712 (num_auto_fontsets): New variable.
4713 (fontset_from_font): Use num_auto_fontsets to decide a fontset
4714 name. Be sure to set FONTSET_ASCII to the correct font name.
4715 (update_auto_fontset_alist): New function.
4716
df4e8455
JB
47172009-03-11 Juanma Barranquero <lekktu@gmail.com>
4718
4719 * makefile.w32-in: Update dependencies.
4720
0a375797
AR
47212009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4722
4723 * nsfns.m (syms_of_nsfns): Remove Qbuffered.
4724
61313fa3
SM
47252009-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
4726
4727 * buffer.c (Fswitch_to_buffer): Revert part of 2008-10-21's change.
4728
b55103fb
CY
47292009-03-10 Chong Yidong <cyd@stupidchicken.com>
4730
4731 * lread.c (Feval_buffer): Doc fix.
4732
dde2559c
KH
47332009-03-09 Kenichi Handa <handa@m17n.org>
4734
4735 * charset.c (Qfile_name_handler_alist): Extern it.
4736 (load_charset_map_from_file): Temporarily bind
4737 `file-name-handler-alist' to nil while calling openp. (Bug#2435)
4738
df4e8455 47392009-03-06 Aaron Ecay <aaronecay@gmail.com> (tiny change)
340e08a4 4740
47f588bb
GM
4741 * nsterm.m (ns_draw_vertical_window_border): Draw 1 pixel wide,
4742 not two, and use NSRectFill instead of NSDrawGroove. (Bug#2352)
340e08a4 4743
4ddf94bd
AR
47442009-03-06 Adrian Robert <Adrian.B.Robert@gmail.com>
4745
4c9bdfc2
AR
4746 * nsterm.m: Include <signal.h> for SIGTERM used in ns_term_shutdown.
4747 (x_set_window_size): Change back to calculated method of setting
4748 toolbar height under Cocoa. (Bug#2546)
4ddf94bd
AR
4749 (EmacsView-windowWillUseStandardFrame:defaultFrame:): New method.
4750 (EmacsView-drawRect:): Completely shortcircuit if ns_in_resize.
4751
fe41ae9e
AR
4752 * nsfns.m (ns_appkit_version_int): Fix typo in the version macro.
4753
4c9bdfc2
AR
4754 * nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Don't add
4755 accelerator in parens under GNUstep.
4756
825d0875
KH
47572009-03-06 Kenichi Handa <handa@m17n.org>
4758
4759 These changes are to detect incorrect composition sequence without
f3b3be74 4760 looking ahead the source. (Bug#2370)
825d0875
KH
4761
4762 * coding.h: Include "composite.h".
4763 (enum compisition_state): New enum.
4764 (struct compisition_status): New struct.
4765 (struct iso_2022_spec): New member cmp_status.
4766 (struct emacs_mule_spec): New struct.
4767 (struct coding_system): New members ctext_extended_segment_len and
4768 embedded_utf_8. Change the union member
4769 spec.emacs_mule_full_support to spec.emacs_mule.
4770
4771 * coding.c (CODING_ISO_CMP_STATUS): New macro.
4772 (CODING_ISO_EXTSEGMENT_LEN, CODING_ISO_EMBEDDED_UTF_8): New macros.
98a326f7 4773 (MAX_ANNOTATION_LENGTH): Define to 5.
825d0875
KH
4774 (ADD_COMPOSITION_DATA): New arg nbytes.
4775 (emacs_mule_char): New arg cmp_status.
4776 (DECODE_EMACS_MULE_COMPOSITION_CHAR): Delete it.
4777 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): New arg c.
4778 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New arg c.
4779 (DECODE_EMACS_MULE_21_COMPOSITION): Delete the arg c.
4780 (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Likewise.
4781 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Likewise.
4782 (DECODE_EMACS_MULE_COMPOSITION_START): New macro.
4783 (EMACS_MULE_COMPOSITION_END): New macro.
4784 (emacs_mule_finish_composition): New function.
4785 (EMACS_MULE_MAYBE_FINISH_COMPOSITION): New macro.
4786 (decode_coding_emacs_mule): Avoid long looking ahead while
4787 handling composition.
4788 (DECODE_COMPOSITION_RULE): Argument changed to rule and nbytes.
4789 (ENCODE_COMPOSITION_RULE): New macro.
4790 (finish_composition): New function.
4791 (MAYBE_FINISH_COMPOSITION): Call finish_composition.
4792 (DECODE_COMPOSITION_START): New implementation.
4793 (DECODE_COMPOSITION_END): Likewise.
4794 (STORE_COMPOSITION_RULE): New macro.
4795 (decode_coding_iso_2022): Avoid long looking ahead while handling
4796 composition, CTEXT extended segment, and embedded UTF-8.
4797 (setup_coding_system): For a coding of type iso-2022, reset
4798 CODING_ISO_EXTSEGMENT_LEN (coding) and
4799 CODING_ISO_EMBEDDED_UTF_8 (coding).
4800 (get_translation): Delete arguments last_block, from_nchars,
4801 to_nchars. Callers changed.
4802 (produce_chars): Don't modify charbuf. Adjusted for the change of
4803 get_translation.
98a326f7 4804 (produce_composition): Adjust for the new annotation sequence.
825d0875 4805 (handle_composition_annotation): Likewise.
98a326f7 4806 (consume_chars): Adjust for the change of get_translation.
825d0875 4807
ccbc4452
AR
48082009-03-05 Adrian Robert <Adrian.B.Robert@gmail.com>
4809
4ddf94bd 4810 * nsterm.m (ns_select): Shortcircuit if reentrant call. (Bug#2564)
ccbc4452 4811
988a7ddb
KH
48122009-03-05 Kenichi Handa <handa@m17n.org>
4813
4814 * font.c (font_select_entity): New function.
4815 (font_find_for_lface): Use font_select_entity to select a font.
4816
4817 * fontset.c (fontset_find_font): If a font found without
a8a3728b 4818 restricting to the characters C doesn't support C, try to find a
988a7ddb
KH
4819 font with C restriction.
4820
98a326f7 48212009-03-04 Nikolaj Schumacher <me@nschum.de>
2f462d73 4822
be1bce46 4823 * nsfont.m (nsfont_draw): Compare ns_antialias_text against lisp value.
2f462d73 4824
10ea2b82
JR
48252009-03-04 Jason Rumney <jasonr@gnu.org>
4826
2c93b248 4827 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4891ba1d 4828 characters that have already been read. (Bug#2569)
2c93b248 4829
10ea2b82
JR
4830 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4831 Log an error message if check_image_size failed.
4832 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
4891ba1d 4833 (gs_load): Mention max-image-size in size error message. (Bug#2560)
10ea2b82 4834
71a0c011
EZ
48352009-03-02 Eli Zaretskii <eliz@gnu.org>
4836
4837 * callproc.c (Fcall_process): Bind inhibit-modification-hooks to t
4838 when decoding process output.
4839
2f63bba8
RS
48402009-03-01 Richard M Stallman <rms@gnu.org>
4841
4842 * m/mips.h (DATA_SEG_BITS, XUINT, XSET): Definitions disabled.
4843
4844 * emacs.c (gdb_data_seg_bits) [USE_LSB_TAG]: Make it 0.
4845
0a9564cb
EZ
48462009-02-28 Eli Zaretskii <eliz@gnu.org>
4847
4848 * coding.c (decode_coding_utf_8, decode_coding_utf_16)
4849 (decode_coding_emacs_mule, decode_coding_iso_2022)
4850 (encode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
4851 (decode_coding_raw_text, decode_coding_charset)
4852 (setup_coding_system, decode_eol, decode_coding, consume_chars):
4853 Honor inhibit-eol-conversion. (Bug #2186)
4854
449148b3
JR
48552009-02-28 Jason Rumney <jasonr@gnu.org>
4856
4857 * coding.c (detect_coding_charset): If not checking latin extra,
4858 fail on characters between 0x80 and 0xA0. (Bug#2354)
4859
a4aee864
EZ
48602009-02-28 Eli Zaretskii <eliz@gnu.org>
4861
4862 * coding.c (detect_coding_charset): Fix change from 2008-10-21.
2a1573ff 4863 Also, check iso-latin-*, not only iso-8859-*. (Bug#2497)
a4aee864 4864
d88bee5a
GM
48652009-02-27 Glenn Morris <rgm@gnu.org>
4866
4867 * callint.c (Finteractive): Doc fix.
4868
a808f22d
KH
48692009-02-27 Kenichi Handa <handa@m17n.org>
4870
4871 * lread.c (read_escape): Signal an error for invalid \UXXXXXXXX.
4872
caf8d60c
CY
48732009-02-27 Chong Yidong <cyd@stupidchicken.com>
4874
4875 * font.c (font_style_to_value): Set value for unknown symbols to
4876 100 instead of 255.
b61137ea
CY
4877 (weight_table, slant_table, width_table): Treat "unspecified" as
4878 the default value.
caf8d60c 4879
1a0de25c
JB
48802009-02-26 Juanma Barranquero <lekktu@gmail.com>
4881
4882 * fileio.c (Fnext_read_file_uses_dialog_p): Fix typo in docstring.
4883
8fc45744
JB
48842009-02-25 Juanma Barranquero <lekktu@gmail.com>
4885
107bd7d1
JB
4886 * lread.c (Fload): Stop checking Vloads_in_progress and signal
4887 error as soon as a recursive load is detected.
8fc45744 4888
f097e223
AR
48892009-02-24 Adrian Robert <Adrian.B.Robert@gmail.com>
4890
4891 * nsterm.m (ns_ring_bell): Convert rect to window coordinates
4892 before caching.
4893
8810a12f
KH
48942009-02-24 Kenichi Handa <handa@m17n.org>
4895
4896 * fontset.c (fontset_find_font): Fix the condition for checking
4897 unavailable font.
4898
2c7d1565
GM
48992009-02-24 Glenn Morris <rgm@gnu.org>
4900
4901 * xfaces.c (Finternal_set_font_selection_order): Remove leading
4902 whitespace that confuses documentation.
4903
a20878b6
MB
49042009-02-23 Miles Bader <miles@gnu.org>
4905
4906 * process.c (Flist_system_processes, Fprocess_attributes)
4907 (syms_of_process): Rename `system-process-attributes' to
4908 `process-attributes'.
4909
b3b58c01
AS
49102009-02-22 Andreas Schwab <schwab@linux-m68k.org>
4911
1b3b981b
AS
4912 * coding.h (struct coding_system): Make safe_charsets a pointer to
4913 unsigned char.
4914 * coding.c (CODING_ISO_REQUEST): Check for safe_charsets content
4915 being 255.
4916 (SAFE_CHARSET_P): Likewise.
4917 (setup_iso_safe_charsets): Properly setup safe_charsets.
4918 (Fdefine_coding_system_internal): Likewise.
4919 (setup_coding_system): Likewise. Remove unneeded casts.
4920 (detect_coding_iso_2022): Compare Viso_2022_charset_list with
4921 CODING_ATTR_CHARSET_LIST, not CODING_ATTR_SAFE_CHARSETS. Remove
4922 unneeded casts.
4923
b3b58c01
AS
4924 * insdel.c (del_range_2): Don't modify gap contents when called
4925 from decode_coding_object. (Bug#1809)
4926
0b6f228c
CY
49272009-02-21 Chong Yidong <cyd@stupidchicken.com>
4928
4929 * data.c (syms_of_data): Define Qfont_spec, Qfont_entity, and
4930 Qfont_object.
4931 (Ftype_of): Recognize font objects.
4932
4933 * lisp.h: Define Qfont_spec, Qfont_entity, Qfont_object extern.
4934
4935 * font.c (Qfont_spec, Qfont_entity, Qfont_object): Definitions
4936 moved to data.c.
4937
52f8870b
AR
49382009-02-20 Adrian Robert <Adrian.B.Robert@gmail.com>
4939
4940 * nsterm.m (x_make_frame_invisible): Unset async_visible,
4941 async_iconified. Based on a patch by Christian Lynbech
4942 <christian.lynbech@tieto.com>.
4943 (EmacsView-windowDidMiniaturize:): Unset async_visible.
4944
7087d5e9
GM
49452009-02-20 Glenn Morris <rgm@gnu.org>
4946
4947 * syntax.c (Fskip_chars_forward): Fix doc typo.
4948
41d2ceef
CY
49492009-02-20 Chong Yidong <cyd@stupidchicken.com>
4950
4951 * keymap.c (Fkeymap_parent): Doc fix (Bug#2391).
4952
1a3b7ca6
CY
49532009-02-19 Chong Yidong <cyd@stupidchicken.com>
4954
4955 * xfns.c (Fx_create_frame): Give Xft driver a higher priority.
4956
73cce38d
KH
49572009-02-19 Kenichi Handa <handa@m17n.org>
4958
4959 * coding.c (detect_coding): Preserve coding->mode.
2bc550cb 4960 Don't overflow coding->carryover. (Bug#2370)
73cce38d 4961
a51092ee
DN
49622009-02-18 Dan Nicolaescu <dann@ics.uci.edu>
4963
4964 * m/ibmrs6000.h (ADDR_CORRECT): Restore, removed by mistake on 2008-07-23.
4965
c423ecca
KH
49662009-02-18 Kenichi Handa <handa@m17n.org>
4967
4968 * font.c (font_check_otf_features): Fix handling of `nil' element.
4969 (Ffont_spec): Describe :lang and :otf in the docstring.
4970
4c1958f4
AS
49712009-02-16 Andreas Schwab <schwab@suse.de>
4972
4973 * coding.c (Fcheck_coding_systems_region): Fix test for unibyte
4974 string.
4975
5704f39a
KH
49762009-02-16 Kenichi Handa <handa@m17n.org>
4977
4978 * coding.c (Fcheck_coding_systems_region): Fix typo; Qt -> Qnil.
a057d86a 4979 (Bug#1723)
5704f39a 4980
8f0085aa
CY
49812009-02-14 Chong Yidong <cyd@stupidchicken.com>
4982
a057d86a 4983 * dispextern.h (struct iterator_stack_entry): New line_wrap member.
8f0085aa
CY
4984
4985 * xdisp.c (push_it, pop_it): Save and restore line_wrap.
4986 (handle_line_prefix): Suppress wrapping of wrap prefixes.
4987
aff01dd9
EZ
49882009-02-14 Eli Zaretskii <eliz@gnu.org>
4989
4990 * msdos.c (MAX_SCREEN_BUF): New macro.
4991 (IT_write_glyphs): Make screen_buf[] always be MAX_SCREEN_BUF-long.
4992 Encode the entire run of glyphs sharing the same face, instead of
4993 doing that one glyph at a time (fixes a bug with displaying
4994 double-size characters).
4995
ba301db3
AR
49962009-02-13 Adrian Robert <Adrian.B.Robert@gmail.com>
4997
4998 * nsfns.m (ns-read-file-name): BLOCK_INPUT while showing dialog.
4999
5000 * nsmenu.m (pop_down_menu): Check popup_activated_flag.
5001 (ns_popup_dialog, EmacsDialogPanel-runDialogAt:): Let
a057d86a 5002 pop_down_menu do the cleanup work as it is always called. (Bug#2154)
ba301db3
AR
5003
5004 * nsfont.m (nsfont_make_fontset_for_font): For now, don't try to
a057d86a 5005 set fontset font for "mathematical-" sub-scripts. (Bug #2218)
ba301db3 5006
51d861de
SM
50072009-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
5008
ac146f82 5009 * keyboard.c (adjust_point_for_property): Allow stopping between two
51d861de
SM
5010 invisible areas.
5011
7fed8996
JR
50122009-02-12 Jason Rumney <jasonr@gnu.org>
5013
631ea4fb
JR
5014 * w32font.c (check_face_name): Check for fake helv. (Bug#2275)
5015 (add_font_entity_to_list): Call check_face_name even when family
5016 is unspecified.
5017
cb4a3e42
JR
5018 * w32term.c (x_display_pixel_height, x_display_pixel_width):
5019 Release DC when finished. Use NULL window to refer to desktop.
631ea4fb 5020 (w32_term_init): Use NULL window to refer to desktop. (Bug#460)
cb4a3e42 5021
7fed8996 5022 * w32font.c (add_font_entity_to_list): Fix check for substituted
631ea4fb 5023 raster fonts. (Bug#2219)
7fed8996 5024
895416e3
KH
50252009-02-12 Kenichi Handa <handa@m17n.org>
5026
5027 * composite.c (MAX_AUTO_COMPOSITION_LOOKBACK): New macro.
5028 (composition_gstring_width): Fix handling of LGLYPH_YOFF.
5029 (autocmp_chars): Use fast_looking_at. Don't compose more
1dacf998 5030 characters than MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5031 (find_automatic_composition): While looking forward and backward,
5032 check static composition. Fix where to stop looking forward.
5033 (composition_adjust_point): Fix checking of static composition.
5034 (Fcomposition_get_gstring): Pay attention to
1dacf998 5035 MAX_COMPOSITION_COMPONENTS.
895416e3
KH
5036
5037 * lisp.h (fast_looking_at): Extern it.
5038
5039 * search.c (fast_looking_at): New function.
5040
51d861de 5041 * term.c (encode_terminal_code): Adjust for the change of
895416e3
KH
5042 <struct glyph>.u.cmp.to.
5043 (append_composite_glyph): Likewise.
5044
51d861de 5045 * xdisp.c (fill_gstring_glyph_string): Adjust for the change of
895416e3
KH
5046 <struct glyph>.u.cmp.to. Check if the glyph belongs to the same
5047 composition.
51d861de 5048 (append_composite_glyph): Adjust for the change of
895416e3
KH
5049 <strcut glyph>.u.cmp.to.
5050
8510724d
JB
50512009-02-11 Juanma Barranquero <lekktu@gmail.com>
5052
5053 * casetab.c (init_casetab_once):
5054 * coding.c (ALLOC_CONVERSION_WORK_AREA):
5055 * font.c (font_update_lface):
5056 * fontset.c (Fnew_fontset):
5057 * ftfont.c (ftfont_drive_otf):
5058 * xfont.c (xfont_open):
5059 * xftfont.c (xftfont_get_xft_draw): Remove spurious semicolons.
5060
294fa707
SM
50612009-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
5062
5063 * fileio.c (Fwrite_region): !NILP -> CONSP.
5064
b5bfebec
AS
50652009-02-10 Andreas Schwab <schwab@suse.de>
5066
5067 * process.c (send_process): Properly relocate pointer into data
adab88bd 5068 when using encoded data. (Bug#2272)
b5bfebec 5069
cb84a2be
KH
50702009-02-08 ARISAWA Akihiro <ari@mbf.sphere.ne.jp>
5071
5072 * coding.c (detect_coding_charset): Fix previous change.
5073
89e09428
JR
50742009-02-08 Jason Rumney <jasonr@gnu.org>
5075
5076 * w32fns.c (w32_hide_hourglass): Handle case where frame
adab88bd 5077 disappeared while hourglass was displayed. (Bug #2193)
89e09428 5078
4470a277
AS
50792009-02-07 Andreas Schwab <schwab@suse.de>
5080
5081 * unexelf.c (unexec): Fix error message.
5082
3175b12a
AR
50832009-02-07 Adrian Robert <Adrian.B.Robert@gmail.com>
5084
5085 * nsterm.m (EmacsApp-sendEvent:): Defer NSApplicationDefined event
adab88bd 5086 when modal window is active. (Bug #2152)
3175b12a
AR
5087 (applicationShouldTerminate:): Remove now-unneeded while loop
5088 around NSRunAlertPanel.
5089
5090 * nsmenu.m (popupSession): New file-global variable.
5091 (pop_down_menu): End the popupSession before closing dialog.
5092 (ns_popup_dialog): BLOCK_INPUT around dialog presentation.
5093 (EmacsDialogPanel-runDialogAt:): Don't place window (superfluous),
5094 don't query NSApp for events (just sleep instead).
5095
8434d0b8
EZ
50962009-02-07 Eli Zaretskii <eliz@gnu.org>
5097
51d861de
SM
5098 * coding.c (syms_of_coding) <translation-table-for-input>:
5099 Modify doc string to discourage use for character code unification.
8434d0b8 5100
aa82edfd
CY
51012009-02-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
5102
5103 * atimer.c (run_timers): Update pending_atimers.
5104
2d283c7c
CY
51052009-02-06 Chong Yidong <cyd@stupidchicken.com>
5106
eb306cab
CY
5107 * image.c (svg_load_image): Fix last change.
5108
2d283c7c
CY
5109 * xfns.c (Fx_create_frame): Signal an error if no font is
5110 found (Bug#2147).
5111
4d8e170e
JB
51122009-02-05 Juanma Barranquero <lekktu@gmail.com>
5113
5114 * character.c (syms_of_character) <script-representative-chars>:
5115 Fix typo in docstring.
5116
c96169a0
AR
51172009-02-04 Adrian Robert <Adrian.B.Robert@gmail.com>
5118
5119 * nsmenu.m (pop_down_menu): New function.
5120 (ns_popup_dialog): Call it on unwind.
5121 (EmacsDialogPanel-runDialogAt:): Check popup_activated_flag and
5122 call timer_check() (Bug#2154).
5123 (EmacsMenu-menuNeedsUpdate:): Don't call ns_update_menu if
5124 handling_signal is set.
5125 (EmacsMenu-fillWithWidgetValue:): Set submenu title.
5126
31fd7c5c 5127 * config.in: Get rid of COCOA_EXPERIMENTAL_CTRL_G.
c96169a0
AR
5128
5129 * s/darwin.h: Same and NO_SOCK_SIGIO as well.
5130
5131 * nsterm.m (ns_read_socket): Same and don't set handling_signal.
5132
51d861de
SM
5133 * keyboard.c (poll_for_input_1, handle_async_input):
5134 Set handling_signal under HAVE_NS.
c96169a0 5135
aacd8ba1
GM
51362009-02-04 Glenn Morris <rgm@gnu.org>
5137
5138 * fileio.c (Fwrite_region): Doc fix (mention annotate-functions).
5139
4cb75c4b
KH
51402009-02-04 Kenichi Handa <handa@m17n.org>
5141
5142 * Makefile.in (composite.o): Depends on frame.h and termhooks.h.
5143
5144 * charset.c (Fchar_charset): New optional arg restriction.
5145
5146 * coding.h (coding_system_charset_list): Extern it.
5147
5148 * coding.c (coding_system_charset_list): New function.
5149
5150 * composite.c: Include coding.h and termhooks.h.
5151 (composition_gstring_p): Fix for the terminal case.
5152 (composition_gstring_width): Likewise.
5153 (fill_gstring_body): Likewise.
5154 (autocmp_chars): For terminal, call Fcomposition_get_gstring with
5155 the frame.
5156 (composition_compute_stop_pos): Adjust cmp_it->stop_pos if point
5157 is within a composition.
867d4bb3 5158 (Fcomposition_get_gstring): Fix the terminal case.
4cb75c4b
KH
5159
5160 * term.c (encode_terminal_code): Fix handling of composition.
5161 (produce_composite_glyph): For static composition, get pixel_width
5162 from struct composition.
5163
826ba17e
AS
51642009-02-02 Andreas Schwab <schwab@suse.de>
5165
5166 * unexelf.c (unexec): Handle unaligned bss offset.
5167
8ad093db
AR
51682009-02-01 Adrian Robert <Adrian.B.Robert@gmail.com>
5169
5170 * nsterm.m (ns_read_socket): Copy 2009-01-29 and 2009-01-30
5171 XT,w32read_socket changes to ns_read_socket.
d0a76a6e 5172
8ad093db
AR
5173 * keyboard.c (handle_interrupt): Don't call
5174 quit_throw_to_read_char() under NS.
d0a76a6e 5175
8ad093db
AR
5176 * blockinput.h: Remove NS-specific code.
5177
4d18a7a2
DN
51782009-01-30 Dan Nicolaescu <dann@ics.uci.edu>
5179
db878925
DN
5180 * dispnew.c (window_change_signal): Don't try to get the size of a
5181 suspended tty frame.
5182 * term.c (Fresume_tty): Resize if the size has changed while the
5183 tty was suspended.
5184
4d18a7a2
DN
5185 * alloc.c (mark_stack): Properly conditionalize previous change.
5186
8984df7c
JB
51872009-01-30 Juanma Barranquero <lekktu@gmail.com>
5188
5189 * w32inevt.c (w32_console_read_socket) [SYNC_INPUT]:
5190 * w32term.c (w32_read_socket) [SYNC_INPUT]:
5191 Remove; this code is not used on Windows.
5192
75f4f1ac
EZ
51932009-01-30 Eli Zaretskii <eliz@gnu.org>
5194
5195 * coding.c (detect_eol, decode_eol): Handle text with DOS-style
5196 EOLs that also has stray ^M characters.
5197
07a1e794
JB
51982009-01-30 Juanma Barranquero <lekktu@gmail.com>
5199
5200 * atimer.c (run_timers, alarm_signal_handler):
5201 * keyboard.c (pending_signals, handle_async_input, init_keyboard):
5202 * w32inevt.c (w32_console_read_socket):
5203 * w32term.c (w32_read_socket):
5204 * xterm.c (XTread_socket): Use "#ifdef SYNC_INPUT" where appropriate.
5205
a8b11cc9
CY
52062009-01-30 Chong Yidong <cyd@stupidchicken.com>
5207
5208 * callproc.c (Vtemp_file_name_pattern): Remove DEFVAR_LISP.
5209 Initialize it as a relative filename pattern.
5210 (init_callproc): Don't initialize Vtemp_file_name_pattern here.
5211 (Fcall_process_region): Simplify temp file creation using
5212 temporary-file-directory.
5213
c279587b
EZ
52142009-01-29 Eli Zaretskii <eliz@gnu.org>
5215
5216 * msdos.c: Rename pending_signals to msdos_pending_signals.
5217 (sig_suspender, sigprocmask): Adjust.
5218
a8fe3242
CY
52192009-01-29 Chong Yidong <cyd@stupidchicken.com>
5220
5221 * keyboard.c (pending_signals): New var.
5222 (poll_for_input, input_available_signal, init_keyboard): Set it.
5223 (process_pending_signals): New function.
5224
5225 * lisp.h (QUIT): Check pending_signals instead of
5226 interrupt_input_pending. Use process_pending_signals.
5227
51d861de 5228 * atimer.c (run_timers, alarm_signal_handler): Update pending_signals.
a8fe3242 5229
51d861de 5230 * process.c (wait_reading_process_output): Use process_pending_signals.
a8fe3242
CY
5231
5232 * sysdep.c (emacs_write): Use process_pending_signals.
5233
5234 * xterm.c (XTread_socket): Update pending_signals.
5235
5236 * w32term.c (w32_read_socket): Update pending_signals.
5237
5238 * w32inevt.c (w32_console_read_socket): Update pending_signals.
5239
6570a1c4
KH
52402009-01-29 Kenichi Handa <handa@m17n.org>
5241
5242 * xftfont.c (xftfont_has_char): New function.
5243 (syms_of_xftfont): Register xftfont_has_char in xftfont_driver.
5244
d72a4afa
AR
52452009-01-29 Adrian Robert <Adrian.B.Robert@gmail.com>
5246
5247 * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define
5248 under GNUstep.
5249 (ns_query_color): New declaration.
5250
5251 * nsterm.m (ns_confirm_quit): New variable.
5252 (ns_set_default_prefs, syms_of_nsterm, ns_term_init): Initialize it.
5253 (EmacsApp-applicationShouldTerminate:): Use it.
5254 (EmacsPrefsController): Let user set it.
5255 (ns_query_color): New function.
5256 (ns_defined_color): Use it.
5257 (ns_initialize): Drop.
5258 (ns_term_init): Add two lines from ns_initialize(), and set
5259 input_interrupt_mode to nil.
5260
5261 * image.c (svg_load_image): Don't right-shift background RGB when
6af84d77 5262 obtained from FRAME_BACKGROUND_PIXEL. Under HAVE_NS use ns_query_color.
d72a4afa 5263
9fe78804
KH
52642009-01-28 Kenichi Handa <handa@m17n.org>
5265
5266 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
f088b054
KH
5267 (fontset_get_font_group): Remember that no font-group is specified
5268 for C.
9fe78804 5269
fa57de36
CY
52702009-01-27 Chong Yidong <cyd@stupidchicken.com>
5271
930600e9
CY
5272 * fns.c (concat): Check for string overflow (bug#1787).
5273
fa57de36
CY
5274 * undo.c (undo_limit, undo_strong_limit, Vundo_outer_limit):
5275 Quadruple undo limits (bug#1501).
5276
7179ce7b
KH
52772009-01-27 Kenichi Handa <handa@m17n.org>
5278
5279 * ftfont.c (ftfont_has_char): If the arg FONT is a font-object,
5280 directly use GT_Get_Char_index.
5281
5282 * xftfont.c (struct xftfont_info): New member `index'.
5283
5284 * fontset.c (font_for_char): Use assq_no_quit, not assoc_no_quit.
51d861de 5285 (Ffontset_font): Adjust for the change of fontset entry.
7179ce7b 5286
5be8fcc0
CY
52872009-01-26 Kenichi Handa <handa@m17n.org>
5288
5289 * fontset.c (fontset_find_font): Fix handling of non-cons return
5290 value of fontset_get_font_group.
5291 (fontset_font): Revert last change.
5292
19ae3e61
JR
52932009-01-26 Jason Rumney <jasonr@gnu.org>
5294
5295 * w32font.c (w32font_list_internal): Return quickly if registry is
5296 unknown. Simplify final return.
5297 (add_font_entity_to_list): Break complex logic down into more
5298 manageable chunks. Move unknown registry check to
5299 w32font_list_internal.
5300
8612b71a
AR
53012009-01-25 Adrian Robert <Adrian.B.Robert@gmail.com>
5302
5303 Changes to remove Feval calls from GUI under NS.
5304
d8038940
JB
5305 * nsterm.h: Move KEY_NS_... definitions here from nsterm.m.
5306 Add NS_TOGGLE_TOOLBAR, NS_PUT_WORKING_TEXT, NS_UNPUT_WORKING_TEXT.
8612b71a
AR
5307 Remove NS_INSERT_WORKING_TEXT, NS_DELETE_WORKING_TEXT.
5308
5309 * nsterm.m: Move KEY_NS_... definitions to nsterm.h.
5310 (EmacsView-toggleToolbar:): Use KEY_NS_TOGGLE_TOOLBAR.
5311 (EmacsView-setMarkedText:,-deleteWorkingText:): Use NS_TEXT_EVENT
5312 instead of NON_ASCII_KEYSTROKE_EVENT.
5313 (EmacsApp-terminate:): Use KEY_NS_POWER_OFF instead of Feval.
5314 (EmacsApp-applicationShouldTerminate:): Query user.
5315 (EmacsPreferencesController-runHelp:): Use KEY_NS_INFO_PREFS
5316 instead of Feval.
5317
5318 * termhooks.h (NS_TEXT_EVENT): New event type under HAVE_NS.
5319
5320 * keyboard.c (kbd_buffer_get_event): Check for it.
5321 (keys_of_keyboard): Define lispy keys for
5322 ns-put/unput-working-text.
5323
5324 * nsmenu.m (ns_popup_dialog): Resync window setting with X and W32
5325 versions.
5326 (EmacsDialog-runDialogAt:): Use NSModalPanelRunLoopMode.
5327
6288ae55
CY
53282009-01-25 Chong Yidong <cyd@stupidchicken.com>
5329
5330 * dispnew.c (buffer_posn_from_coords): Use Fset_buffer instead of
64cc3cf6 5331 setting current_buffer directly. (Bug#2044)
6288ae55 5332
289e7f8f
CY
53332009-01-24 Chong Yidong <cyd@stupidchicken.com>
5334
5ce87308 5335 * fontset.c (fontset_font): If we know there is no font, don't do
d8038940 5336 any work. (Bug#1952, bug#1990).
5ce87308 5337
64cc3cf6 5338 * font.c (font_parse_xlfd): Handle patterns of length < 2. (Bug#1802)
289e7f8f 5339
b3243e6f
AR
53402009-01-23 Adrian Robert <Adrian.B.Robert@gmail.com>
5341
5342 * emacs.c (main): Do fork+exec under --daemon in Cocoa.
d900b2af
AR
5343 (ns_no_defaults): New declaration.
5344 (main): Use it.
e0d2e69a 5345
d900b2af 5346 * nsterm.h (ns_no_defaults): New declaration.
e0d2e69a 5347
d900b2af 5348 * nsfns.m (x_get_string_resource): Don't read when ns_no_defaults.
e0d2e69a 5349
d900b2af
AR
5350 * nsterm.m (ns_no_defaults): New variable.
5351 (ns_initialize): Don't read defaults when ns_no_defaults.
5352 (EmacsView-readSelectionFromPasteboard:)
5353 (writeSelectionToPasteboard:types:): New stubbed-out methods for
d8038940 5354 NSServicesRequests protocol. (Bug#1435)
27521ca6
AR
5355 (ns_dumpglyphs_stretch): New function.
5356 (ns_draw_glyph_string): Use it, parallel Yamamoto Mitsuharu change
d8038940 5357 of 2008-11-15 to other terms. (Bug#615)
b3243e6f 5358
e0d2e69a
AR
5359 * nsimage.m (setPixmapData:): Set to ignore image DPI.
5360
3ac71f5d
CY
53612009-01-23 Giorgos Keramidas <keramida@freebsd.org> (tiny change)
5362
5363 * alloc.c (mark_stack): Use "flushw" instead of "ta 3" assembly
5364 call for Sparc64.
5365
3fe53a83
AR
53662009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
5367
5368 * nsfns.m:
5369 * nsgui.h:
5370 * nsmenu.m:
5371 * nsselect.m:
5372 * nsterm.h:
5373 * nsterm.m: Remove '23' comments that indicated code added during
5374 update from emacs-20 -> emacs-23.
5375
10f87c6f 53762009-01-22 Adrian Robert <Adrian.B.Robert@gmail.com>
a3b53a85
AR
5377
5378 * nsterm.m (EmavsView-keyDown:): Treat nil as Qnone for
3a88a825 5379 ns_alternate_modifier. (Bug#1217)
a3b53a85 5380
c7cef62d
AR
5381 * nsmenu.m (EmacsMenu-parseKeyEquiv:, addItemWithWidgetValue:):
5382 Display all shortcuts, including those w/o super modifier.
5383
575fb8bd
AR
5384 * nsfns.m (ns-read-file-name): Fix typo in assignment statement.
5385
918b848b
CY
53862009-01-22 Chong Yidong <cyd@stupidchicken.com>
5387
5388 * fileio.c (Vwrite_region_post_annotation_function)
5389 (Vwrite_region_annotation_buffers): New vars.
5390 (build_annotations_unwind): Just reset
5391 Vwrite_region_annotation_buffers.
5392 (Fwrite_region): Initialize Vwrite_region_annotation_buffers.
5393 Call write-region-post-annotation-function.
5394 (build_annotations): Add to Vwrite_region_annotation_buffers if
5395 buffer changes.
5396
a39e2539
AR
53972009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5398
5399 * nsterm.h (EmacsApp-setAppleMenu:): Conditionalize more correctly on
5400 Tiger.
51d861de
SM
5401 * nsfns.m (ns_do_applescript):
5402 Conditionalize typeUTF16ExternalRepresentation on Tiger.
a39e2539 5403
35ed44db
AR
54042009-01-21 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
5405
5406 * nsterm.m (EV_TRAILER): Always use emacsframe for frame_or_window.
5407
cbe0b5bf
AR
54082009-01-21 Adrian Robert <Adrian.B.Robert@gmail.com>
5409
5410 * nsmenu.m (NSMENUPROFILE): Change #if style.
4c7077c3 5411
6049d3a0
AR
5412 * nsterm.h (EmacsPrefsController): Add -setPanelFromDefaultValues.
5413
5414 * nsterm.m (x_set_frame_alpha): Add prototype.
a9b4df69
AR
5415 (ns_fake_keydown, EmacsView-keyUp:): New variable and function to
5416 handle Ctrl-tab. (Bug#1841)
5417 (ns_get_color): Use unsigned long long for scanned hex string value.
5418 (ns_term_shutdown): Abort on non SIGTERM signals.
e889fa06 5419 (EmacsPrefsController-setDefaultFont:,-setColors:): Raise the frame.
b71ac3dd 5420 (EmacsPrefsController-setPanelFromDefaultValues): New function.
3a88a825 5421 (EmacsPrefsController-resetToDefaults:): Use it. (Bug#1801)
35ed44db 5422 (ns_font_to_xlfd, ns_fontname_to_xlfd): Remove, unused.
d3810c21 5423 (ns_defined_color): Fix settings of the XColor variable fields:
3a88a825 5424 red,green,blue scale to 2-byte, pixel's parts to 1-byte. (Bug#1663)
cbe0b5bf 5425
d3810c21 5426 * nsimage.m (EmacsImage+allocInitFromFile:): Set to ignore image
3a88a825 5427 DPI. (Bug#1316)
d3810c21
AR
5428 (EmacsImage-setPixelAtX:Y:toRed:green:blue:alpha:): Fix color
5429 values in onTiger section.
4c7077c3 5430
e301e634
CY
54312009-01-19 Chong Yidong <cyd@stupidchicken.com>
5432
7f82490b
CY
5433 * xfaces.c (Finternal_set_lisp_face_attribute, Fx_list_fonts):
5434 Check return value of font_spec_from_name.
64cc3cf6 5435 (Fx_list_fonts): Doc fix. (Bug#1951)
7f82490b
CY
5436
5437 * font.c (font_spec_from_name): Return Qnil if font name could not
5438 be parsed.
5439 (font_parse_name): Treat a `?' character as part of an XLFD.
5440
e301e634
CY
5441 * fns.c (Fsubstring): Doc fix.
5442
1c0db158
KH
54432009-01-19 Kenichi Handa <handa@m17n.org>
5444
51d861de 5445 * ftfont.c (ftfont_lookup_cache): Check the return value of FcFontList.
1c0db158
KH
5446 (ftfont_list): Likewise.
5447
acf20901
JB
54482009-01-18 Juanma Barranquero <lekktu@gmail.com>
5449
fff4e459
JB
5450 * dbusbind.c (Fdbus_register_signal):
5451 * process.c (conv_sockaddr_to_lisp):
5452 * w32fns.c (Fw32_battery_status): Use empty_unibyte_string.
5453
acf20901
JB
5454 * callproc.c (Fgetenv_internal): Doc fix.
5455
e7abcdfb
CY
54562009-01-16 Chong Yidong <cyd@stupidchicken.com>
5457
5458 * xfns.c (x_make_gc): Don't allocate stipple member for gc_values;
5459 it is not even used.
5460
b60861e6
GM
54612009-01-16 Glenn Morris <rgm@gnu.org>
5462
5463 * font.c (Ffont_variation_glyphs): Silence compiler.
5464
8db52afe
JB
54652009-01-15 Juanma Barranquero <lekktu@gmail.com>
5466
5467 * sound.c (SOUND_WARNING): Use _snprintf, for MSVC compatibility.
5468 Reported by David Robinow <drobinow@gmail.com>.
5469
4cddb209
KH
54702009-01-15 Kenichi Handa <handa@m17n.org>
5471
51d861de 5472 * coding.c (detect_coding_system): Fix handling of null_byte_found.
4cddb209 5473
f247f67b
JR
54742009-01-14 Jason Rumney <jasonr@gnu.org>
5475
5476 * frame.c (x_set_font): Always store a font to the font parameter,
fff4e459 5477 never a fontset. (Bug#1562)
f247f67b 5478
f56a4450
KH
54792009-01-14 Kenichi Handa <handa@m17n.org>
5480
5481 * coding.c (TWO_MORE_BYTES): New macro.
fff4e459 5482 (detect_coding_utf_16): Use TWO_MORE_BYTES instead of ONE_MORE_BYTE.
f56a4450 5483
4e99855e
CY
54842009-01-13 Chong Yidong <cyd@stupidchicken.com>
5485
5486 * font.c (font_clear_prop): If clearing the family, clear the font
5487 width index too.
5488
fff4e459 5489 * xfaces.c (Finternal_set_lisp_face_attribute): Revert last change.
4e99855e 5490
24f01470
JB
54912009-01-12 Juanma Barranquero <lekktu@gmail.com>
5492
5493 * sound.c [WINDOWSNT] (SOUND_WARNING): New macro.
5494 (do_play_sound): Use it. Don't pass a hardcoded buffer size to mci
5495 functions, use sizeof.
5496
a41240a3
MR
54972009-01-12 Martin Rudalics <rudalics@gmx.at>
5498
5499 * keyboard.c (read_char): Fix case where last_nonmenu_event
5500 returned a bad value with submenus. (Bug#447)
5501
944636b8
CY
55022009-01-12 Chong Yidong <cyd@stupidchicken.com>
5503
5504 * xfaces.c (Finternal_set_lisp_face_attribute): If setting the
5505 family, clear the font width index too.
5506
0dad7c6f
JR
55072009-01-11 Jason Rumney <jasonr@gnu.org>
5508
5509 * keyboard.c (cmd_error_internal): Exit when errors occur before
5510 frame creation and not in daemon mode. (Bug#1836)
5511
7c2363af
CY
55122009-01-10 Chong Yidong <cyd@stupidchicken.com>
5513
5514 * xdisp.c (pos_visible_p): When iterator stops on the last glyph
5515 of a display vector, backtrack.
5516 (try_window_reusing_current_matrix): Check glyph type before
5517 referencing charpos member.
5518
97b1b294
EZ
55192009-01-10 Eli Zaretskii <eliz@gnu.org>
5520
5521 Fix Bug #876:
5522
5523 * coding.c (inhibit_null_byte_detection): New variable.
5524 (detect_coding, detect_coding_system): Don't pay attention to null
5525 bytes if inhibit_null_byte_detection is non-zero.
51d861de 5526 (syms_of_coding) <inhibit-null-byte-detection>: Declare and document.
97b1b294
EZ
5527 <inhibit-iso-escape-detection>: Doc fix.
5528
4624b6e3
JR
55292009-01-09 Jason Rumney <jasonr@gnu.org>
5530
5531 * w32font.c (add_font_entity_to_list): Don't report unknown
fff4e459 5532 Windows charset as any unrecognized registry. (Bug#1548)
4624b6e3
JR
5533 Only report Unicode Plane 2 fonts as unicode-sip.
5534
323b840c
CY
55352009-01-09 Chong Yidong <cyd@stupidchicken.com>
5536
51d861de
SM
5537 * xfaces.c (Fx_font_family_list): Delete function.
5538 Move compatibility version to faces.el.
323b840c 5539
51d861de 5540 * font.c (Ffont_family_list): Return a list of strings, not symbols.
323b840c 5541
eba7400d
MR
55422009-01-09 Martin Rudalics <rudalics@gmx.at>
5543
5544 * frame.c (x_set_frame_parameters): Remember requested value for
5545 fullscreen before it's reset by the parameter handler.
5546
4b09796d
GM
55472009-01-09 Glenn Morris <rgm@gnu.org>
5548
5549 * keyboard.c (last_command_char): For clarity, rename to...
46e722a9 5550 (last_command_event): ... and update all users.
4b09796d
GM
5551 (last_input_char): For clarity, rename to...
5552 (last_input_event): ... and update all users.
5553 (last-command-char, last-input-char): Move to subr.el as aliases.
5554 * cmds.c, commands.h: Update for last_command_char rename.
5555
14ccea62
CY
55562009-01-08 Chong Yidong <cyd@stupidchicken.com>
5557
51d861de 5558 * font.c (font_open_for_lface): Handle unspecified height attribute.
14ccea62 5559
5f004711
JR
55602009-01-08 Jason Rumney <jasonr@gnu.org>
5561
5562 * w32fns.c (Vx_pointer_shape, Vx_nontext_pointer_shape)
5563 (Vx_mode_pointer_shape, Vx_window_horizontal_drag_shape)
5564 (Vx_hourglass_pointer_shape, Vx_sensitive_text_pointer_shape):
5565 Don't declare.
fff4e459 5566 (syms_of_w32fns): Don't define x-pointer-shape variable. (Bug#1485)
5f004711
JR
5567 (x_create_tip_frame) [GLYPH_DEBUG]: Enable image debugging code.
5568
b71f6f73
KH
55692009-01-07 Kenichi Handa <handa@m17n.org>
5570
50b06221 5571 * fileio.c (Finsert_file_contents): In the case of replace,
f56a4450 5572 remember the coding system used for decoding in
50b06221
KH
5573 coding_system (Bug#1039).
5574
b71f6f73 5575 * coding.c (decode_coding_utf_8): Check byte_after_cr before
79a97217 5576 breaking the loop. (Bug#870)
b71f6f73
KH
5577 (decode_coding_utf_16, decode_coding_emacs_mule)
5578 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
5579 (decode_coding_charset): Likewise.
5580
56f668f7
MR
55812009-01-05 Martin Rudalics <rudalics@gmx.at>
5582
5583 * frame.c (x_set_frame_parameters): Make sure height (width) get
5584 applied when fullwidth (fullheight) is set. (Bug#1522)
5585
5da9424d
JB
55862009-01-04 Juanma Barranquero <lekktu@gmail.com>
5587
5588 * w32.c: Use 64-bit arithmetic to do FILETIME conversions. (Bug#1766)
5589 (utc_base): Declare as ULONGLONG, not long double.
5590 (convert_time_raw): Delete.
5591 (FILETIME_TO_U64, U64_TO_LISP_TIME): New macros.
5592 (initialize_utc_base): New function.
5593 (convert_time): Use FILETIME_TO_U64, initialize_utc_base.
5594 (convert_from_time_t): Use initialize_utc_base; compute result with
5595 64-bit arithmetic.
5596 (process_times): Use FILETIME_TO_U64, U64_TO_LISP_TIME.
5597
c4605e09
EZ
55982009-01-03 Eli Zaretskii <eliz@gnu.org>
5599
9acef61c 5600 * process.c (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess)
c4605e09
EZ
5601 (Qttname, Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime)
5602 (Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs)
5603 (Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime)
5604 [!subprocesses]: Define.
5605 (syms_of_process) [!subprocesses]: Intern and staticpro them.
5606 (Flist_system_processes, Fsystem_process_attributes)
5607 [!subprocesses]: Call list_system_processes and
5608 system_process_attributes instead of returning Qnil.
5609
9acef61c
JB
5610 * dosfns.c (system_process_attributes, list_system_processes):
5611 New functions.
c4605e09
EZ
5612
5613 * vm-limit.c (ret_lim_data) [MSDOS]: New function.
5614
5615 * sysdep.c (list_system_processes, system_process_attributes) [MSDOS]:
5616 Don't use the default (no-op) implementation.
5617
8b7d0a16
JR
56182009-01-03 Jason Rumney <jasonr@gnu.org>
5619
a6d46bc1
JR
5620 * keyboard.c (parse_modifiers_uncached): Wheel events are
5621 clicks (bug#687).
5622
8b7d0a16
JR
5623 * w32term.c (x_query_colors, x_query_color): New functions.
5624
5625 * image.c (x_to_xcolors, png_load): Eliminate W32 specific code.
5626 (svg_load_image): Cast returned pointers from dynamically loaded
5627 functions. Eliminate W32 specific code.
5628
bfe11752
DN
56292009-01-02 Dan Nicolaescu <dann@ics.uci.edu>
5630
89e2438a
DN
5631 * nsfns.m (x_set_foreground_color, x_set_background_color)
5632 (x_set_cursor_color, x_set_icon_name, x_explicitly_set_name)
5633 (x_set_title, x_set_icon_type, x_set_cursor_type): Rename to use
5634 x_ prefix instead of ns_. Update references.
5635 (syms_of_nsfns): Add a FIXME comment.
5636
5637 * nsterm.m (x_set_cursor_type): New prototype.
5638 (setValuesFromPanel): Use it instead of the old ns_ prefixed name.
5639
bfe11752
DN
5640 * sysdep.c (system_process_attributes): Provide Qtime and Qctime
5641 for Solaris instead of incorrectly providing Qutime and Qcutime.
5642
031da700
EZ
56432009-01-02 Eli Zaretskii <eliz@gnu.org>
5644
5645 * w32.c (process_times): Compute sum of utime and stime.
5646 (system_process_attributes): Add Qtime to the alist.
5647
5648 * sysdep.c (system_process_attributes): Compute Qtime and Qctime
5649 and add them to the alist.
5650
5651 * process.c (top level) <Qtime, Qctime>: New variables.
5652 (syms_of_process): staticpro them.
5653 (Fsystem_process_attributes): Add their documentation to the doc
5654 string.
5655
5656 * process.h: Declare Qtime and Qctime.
5657
df23bf08
JR
56582009-01-02 Jason Rumney <jasonr@gnu.org>
5659
9acef61c 5660 * image.c (Qgobject): New symbol.
df23bf08
JR
5661 (syms_of_image): Initialize it.
5662 (init_svg_functions): Load some functions from gobject library.
5663
5bbdf7aa
DN
56642009-01-01 Dan Nicolaescu <dann@ics.uci.edu>
5665
5666 * frame.c (make_terminal_frame): Remove redundant code and useless
5667 block.
5668
63136da6
AS
56692009-01-01 Andreas Schwab <schwab@suse.de>
5670
5671 * process.c (conv_sockaddr_to_lisp): Add workaround for
5672 getsockname bug on BSD.
5673
9ef69046
CY
56742009-01-01 Chong Yidong <cyd@stupidchicken.com>
5675
d6fafbe0
CY
5676 * xfns.c (x_create_tip_frame): Set border width of the X window.
5677
51d861de 5678 * xfaces.c (Finternal_set_lisp_face_attribute): Improve error message.
9ef69046 5679
f9c34147
JR
56802009-01-01 Jason Rumney <jasonr@gnu.org>
5681
9acef61c 5682 * w32term.c (x_new_font): Return font object, not fontset. (Bug#119)
f9c34147
JR
5683 Don't block input, as per earlier xterm.c changes.
5684
f5497e45
AR
56852008-12-31 Adrian Robert <Adrian.B.Robert@gmail.com>
5686
5687 * nsfns.m (ns_appkit_version_str): Rename from ns_appkit_version.
5688 (ns_appkit_version_int): New function.
5689 (x-server-version): Use ns_appkit_version_int and follow 21+
5690 convention of returning 3 integers.
5691
c19cab20
KH
56922008-12-30 Kenichi Handa <handa@m17n.org>
5693
5694 * character.h (CHAR_VARIATION_SELECTOR_P): New macro.
5695 (CHAR_SURROGATE_PAIR_P): New macro.
5696
5697 * font.h (struct font_driver): New member get_variation_glyphs.
5698
9acef61c 5699 * font.c (font_range): Don't require a font for a variation selector.
c19cab20
KH
5700 (Ffont_variation_glyphs): New function.
5701 (syms_of_font): Defsubr it.
5702
5703 * ftfont.c (ftfont_driver): Set the member get_variation_glyphs to
5704 ftfont_variation_glyphs.
5705 (setup_otf_gstring): New function.
5706 (ftfont_drive_otf): Use it.
5707 (ftfont_shape_by_flt): Handle variation selector.
5708 (ftfont_variation_glyphs): New function.
5709
28cd591f
MR
57102008-12-30 Martin Rudalics <rudalics@gmx.at>
5711
5712 * frame.c (Vemacs_iconified): Remove.
5713
7f714baf
JR
57142008-12-30 Jason Rumney <jasonr@gnu.org>
5715
5716 * frame.c (store_frame_param, x_get_arg): Enable newer code on
9acef61c 5717 WINDOWSNT too, as related changes have already been synced. (Bug#117)
7f714baf 5718
9d2d22ab
CY
57192008-12-30 Chong Yidong <cyd@stupidchicken.com>
5720
5721 * indent.c (Fvertical_motion): Don't advance iterator if we have
5722 reseated to the desired position.
5723
5724 * xdisp.c (move_it_to): Handle GET_FROM_STRETCH method when
5725 checking for pos match.
5726
545312c2
KH
57272008-12-30 Kenichi Handa <handa@m17n.org>
5728
1ede3eb6
KH
5729 * insdel.c (copy_text): To convert a non-ASCII char to unibyte,
5730 just get the low 8-bit of the code.
5731
545312c2
KH
5732 * font.c (font_intern_prop): Validate str as multibyte.
5733
bd7bbf29
DN
57342008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5735
31e0750e
DN
5736 * dispextern.h (struct face): Move lface and hash from the middle
5737 of bitfields.
5738
bd7bbf29
DN
5739 * Makefile.in (INTERVALS_H): Rename from INTERVAL_SRC, update all users.
5740
b5672e7c
DN
57412008-12-29 Dan Nicolaescu <dann@ics.uci.edu>
5742
5743 * Makefile.in (INTERVAL_SRC): Also depend on dispextern.h.
5744 (coding.o, dispnew.o, keymap.o, msdos.o): Depend on INTERVAL_SRC
5745 instead of intervals.h.
5746
d704470f
AS
57472008-12-26 Andreas Schwab <schwab@suse.de>
5748
5749 * keymap.c (map_keymap_char_table_item): Make a copy of KEY if it is a
5750 cons.
5751
54b33868
MR
57522008-12-26 Martin Rudalics <rudalics@gmx.at>
5753
5754 * textprop.c (Qminibuffer_prompt): New variable.
5755 (syms_of_textprop): Initialize it.
5756 * callint.c (Fcall_interactively): For `c', `k', and `K' prompt
5757 in minibuffer-prompt face. (Bug#1662)
5758
40b615d6
JR
57592008-12-25 Jason Rumney <jasonr@gnu.org>
5760
5761 * buffer.c (Fbuffer_swap_text): Use POINTER_TYPE.
5762
baae5c2d
JR
57632008-12-24 Jason Rumney <jasonr@gnu.org>
5764
5765 * ralloc.c (r_alloc_reset_variable): New function.
5766
5767 * buffer.c (Fbuffer_swap_text) [REL_ALLOC]: Reset ralloc's internal
9acef61c 5768 record of what points where. (Bug#716)
baae5c2d 5769
a9051c88
DN
57702008-12-22 Dan Nicolaescu <dann@ics.uci.edu>
5771
5772 * minibuf.c (read_minibuf): Follow the non-interactive case when
5773 running as a daemon, before detaching.
5774
8b146312
AS
57752008-12-22 Andreas Schwab <schwab@suse.de>
5776
5777 * buffer.c (init_buffer): Use realloc instead of xrealloc.
5778 * gtkutil.c (free_widget_value): Use xfree instead of free.
5779
56f2de10
MR
57802008-12-22 Martin Rudalics <rudalics@gmx.at>
5781
5782 * frame.c (delete_frame): New function derived from
5783 Fdelete_frame to handle Qnoelisp value for FORCE argument.
5784 Delete last frame iff FORCE equals Qnoelisp. (Bug#1450)
5785 (Fdelete_frame): Call delete_frame. Remove line from doc-string
5786 saying that FORCE non-nil doesn't run `delete-frame-functions'.
5787 * frame.h: Extern delete_frame.
5788 * window.c (window_loop):
5789 * terminal.c (delete_terminal):
5790 * xterm.c (x_connection_closed):
5791 * xfns.c (Fx_hide_tip):
9acef61c 5792 * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
56f2de10 5793
1fc200d6
JR
57942008-12-21 Jason Rumney <jasonr@gnu.org>
5795
5796 * w32uniscribe.c (uniscribe_encode_char): Return FONT_INVALID_CHAR
5797 when character maps to .notdef character.
5798
5e252df2
SM
57992008-12-21 Stefan Monnier <monnier@iro.umontreal.ca>
5800
5801 * keyboard.c (cmd_error_internal): Don't exit in daemon mode, bug#1310.
5802
99b72cc4
JR
58032008-12-20 Jason Rumney <jasonr@gnu.org>
5804
5805 * frame.c (Fmake_terminal_frame): Raise an error when called from
9acef61c 5806 a graphical frame on Windows. (Bug#1325)
99b72cc4 5807
acc49a52
JD
58082008-12-20 Jan Djärv <jan.h.d@swipnet.se>
5809
5810 * frame.c (Fdelete_frame): Set f->menu_bar_vector to Qnil.
5811
6ea15123
CY
58122008-12-20 Chong Yidong <cyd@stupidchicken.com>
5813
5814 * minibuf.c (Fread_buffer): Doc fix.
5815
b2dab6c8
JR
58162008-12-20 Jason Rumney <jasonr@gnu.org>
5817
54ea0c87 5818 * fileio.c (Fexpand_file_name): Do not allow ../ to go beyond the
9acef61c 5819 server name in UNC paths. (Bug#719)
54ea0c87 5820
b2dab6c8 5821 * coding.c (decode_coding): Clear chars_at_source flag when using
9acef61c 5822 charbuf. (Bug#1035)
b2dab6c8 5823
6d1921be
DN
58242008-12-19 Daniel Engeler <engeler@gmail.com>
5825
5826 * sysdep.c (serial_configure): Fix typo.
5827
53934c98
DN
58282008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5829
5830 * sysdep.c: Include alloca.h.
f4f634e8
DN
5831 (system_process_attributes): Add implementation for Solaris.
5832
5833 * s/sol2-10.h (HAVE_PROCFS, _STRUCTURED_PROC): New defines.
53934c98 5834
06e111a6
DN
58352008-12-19 Dan Nicolaescu <dann@ics.uci.edu>
5836
5837 Reorganize implementation of Flist_system_processes and
5838 Fsystem_process_attributes. No functional changes.
5839 * process.c: Don't #include pwd.h, grp.h and limits.h.
5840 (Flist_system_processes): Just call list_system_processes.
5841 (Fsystem_process_attributes): Just call system_process_attributes.
5842 (procfs_list_system_processes, time_from_jiffies)
5843 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
5844 (procfs_get_total_memory, procfs_system_process_attributes): Move ...
5845
5846 * sysdep.c: ... here. Include pwd.h, grp.h and limits.h.
5847 (list_system_processes): Rename from
5848 procfs_list_system_processes. Enclose in #ifdef HAVE_PROCFS.
5849 Provide a do nothing implementation.
5850 (system_process_attributes): Rename from
5851 procfs_list_system_processes.
5852 (ltime_from_jiffies, get_up_time, procfs_ttyname, MAJOR, MINOR)
9acef61c 5853 (procfs_get_total_memory): Enclose in #ifdef GNU_LINUX.
06e111a6
DN
5854
5855 * w32.c (list_system_processes): Rename from
5856 w32_list_system_processes.
5857 (system_process_attributes): Rename from
5858 w32_system_process_attributes.
5859
5860 * s/gnu-linux.h (LISTPROC, PROCATTR): Remove.
5861
5862 * process.h (w32_list_system_processes)
5863 (w32_system_process_attributes): Remove.
362654a6
JB
5864 (list_system_processes, system_process_attributes):
5865 New prototypes.
06e111a6 5866
6a705b23
KH
58672008-12-19 Kenichi Handa <handa@m17n.org>
5868
5869 * xfont.c (xfont_decode_coding_xlfd): New function.
5870 (xfont_encode_coding_xlfd): New function.
5871 (xfont_list_pattern): Decode XLFD by iso-8859-1.
5872 (xfont_list): Decode and encode XLFD by iso-8859-1.
5873 (xfont_match): Likewise.
5874 (xfont_list_family): Likewise.
5875 (xfont_open): Likewise.
5876
d66c0241 5877 * ftfont.c (ftfont_open): Generate a multibyte string if given
6a705b23
KH
5878 names are utf-8.
5879
d66c0241 5880 * xftfont.c (xftfont_open): Generate a multibyte string if given
6a705b23
KH
5881 names are utf-8.
5882
5a130941
JD
58832008-12-18 Jan Djärv <jan.h.d@swipnet.se>
5884
5885 * gtkutil.c (xg_frame_resized): Remove check if rows/columns have
5886 changed.
bfd20325
JD
5887 (xg_tool_bar_proxy_callback): Put focus on the frame after we have
5888 clicked on a detached tool bar button.
5a130941 5889
fd95644b
DN
58902008-12-18 Dan Nicolaescu <dann@ics.uci.edu>
5891
5892 * emacs.c (main): Print and error and exit when no data is read
5893 from the pipe.
5894
e6eee6ae
JR
58952008-12-17 Jason Rumney <jasonr@gnu.org>
5896
5897 * w32font.c (w32font_has_char): Always return -1.
5898
a35dd56b
KH
58992008-12-16 Kenichi Handa <handa@m17n.org>
5900
5901 * font.c (font_open_entity): Fix previous change.
5902
0e3635c2
DN
59032008-12-16 Dan Nicolaescu <dann@ics.uci.edu>
5904
5905 * process.c: Include <limits.h>.
5906
d4835507 59072008-12-16 Chetan Pandya <pandyacus@sbcglobal.net> (tiny change)
b5356c39
CY
5908
5909 * font.c (font_update_drivers): Fix mistake in reconstructing the
5910 driver list.
5911
59122008-12-16 Chong Yidong <cyd@stupidchicken.com>
5913
5914 * font.c (font_clear_cache): Fix format of font cache data.
5915
e2cbc401
CY
59162008-12-15 Chong Yidong <cyd@stupidchicken.com>
5917
5918 * xftfont.c (xftfont_open): Free Xft font pattern if
5919 XftFontOpenPattern fails.
5920
5921 * xterm.c (x_free_frame_resources): Remove extraneous call to
5922 free_frame_faces.
5923
b131d535
CY
59242008-12-13 Chong Yidong <cyd@stupidchicken.com>
5925
5926 * xterm.c (x_delete_display): Move xim_close_dpy call to
5927 x_delete_terminal.
5928 (x_delete_terminal): Call xim_close_dpy.
5929
e6df5336
JR
59302008-12-13 Jason Rumney <jasonr@gnu.org>
5931
5932 * w32font.c (intern_font_name): New function.
5933 (add_font_name_to_list, w32_enumfont_pattern_entity): Use it.
5934 (w32font_open_internal, Fx_select_font): Decode font name.
5935 (fill_in_logfont, list_all_matching_fonts): Encode font name.
5936
5937 * w32font.h (intern_font_name): Declare new function.
5938
5939 * w32uniscribe.c (add_opentype_font_name_to_list):
5940 Use intern_font_name.
5941
20d68145
CY
59422008-12-13 Chong Yidong <cyd@stupidchicken.com>
5943
9f2554de
CY
5944 * frame.c (Fdelete_frame): Call free_font_driver_list.
5945
3d9bec9a
CY
5946 * font.c (free_font_driver_list): Implement missing function.
5947
20d68145
CY
5948 * w32term.c (w32_term_init): Don't initialize the image cache
5949 here; it will be done in init_frame_faces.
5950
5951 * xterm.h (struct xim_inst_t): Definition moved from xterm.c.
5952 (struct x_display_info): Remove unused member null_pixel. New
5953 member xim_callback_data.
5954
5955 * xterm.c (struct xim_inst_t): Definition moved to xterm.h.
5956 (xim_initialize): Save pointer to callback function data.
5957 (xim_close_dpy): Free callback function data. Call XCloseIM,
5958 reverting 2008-11-04 change by David Smith.
5959 (x_term_init): Don't initialize the image cache here; it will be
5960 done in init_frame_faces. Remove ancient "null_pixel" cruft.
5961 (x_delete_display): Free x_dnd_atoms member.
5962
96f9306b
KH
59632008-12-13 Kenichi Handa <handa@m17n.org>
5964
6dec9044
JB
5965 * font.c (font_rescale_ratio): Moved from xfaces.c.
5966 Argument type changed. Handle a font-spec too.
96f9306b 5967 (font_score): Check Vface_font_rescale_alist.
6dec9044 5968 (font_open_entity): Likewise. (Bug#1547)
96f9306b
KH
5969
5970 * xfaces.c (font_rescale_ratio): Moved to font.c.
5971
8d5b4964
CY
59722008-12-13 Chong Yidong <cyd@stupidchicken.com>
5973
5974 * xfns.c (Fx_wm_set_size_hint): Check if the frame is an X frame.
5975
e6df5336
JR
59762008-12-12 Jason Rumney <jasonr@gnu.org>
5977
5978 * w32fns.c (x_display_info_for_name, Fx_open_connection): Set
5979 Vwindow_system_version to the real w32 major version.
5980
97c6058a
DN
59812008-12-12 Dan Nicolaescu <dann@ics.uci.edu>
5982
5983 * term.c (init_tty): Move setting the terminal name before the
5984 potential user: maybe_fatal.
5985
ec4e88d7
CY
59862008-12-11 Chong Yidong <cyd@stupidchicken.com>
5987
d4835507
JB
5988 * term.c (tty_free_frame_resources): Renamed from delete_tty_output;
5989 all callers changed. Call free_frame_faces to free the face cache.
ec4e88d7 5990
b4233ec9
JR
59912008-12-11 Jason Rumney <jasonr@gnu.org>
5992
8ec71e23 5993 * w32font.c (fill_in_logfont): Don't assume symbol script means
9acef61c 5994 SYMBOL_CHARSET. (Bug#547)
8ec71e23 5995
b4233ec9 5996 * w32uniscribe.c (uniscribe_encode_char): Increase glyph buffer
9acef61c 5997 size for surrogates. (Bug#1096, bug#872)
b4233ec9 5998
011a0143
JB
59992008-12-11 Juanma Barranquero <lekktu@gmail.com>
6000
6001 * w32proc.c (Fw32_get_locale_info): Decode long form of locale name.
6002
3c309f34
JB
60032008-12-11 Juanma Barranquero <lekktu@gmail.com>
6004
6005 * process.c (Fsystem_process_attributes, syms_of_process):
6006 Fix typo in name of Ssystem_process_attributes.
6007 Reported by Ulrich Mueller <ulm@kph.uni-mainz.de>.
6008
fedc6ab5
JB
60092008-12-11 Juanma Barranquero <lekktu@gmail.com>
6010
6011 * syntax.c (Fmodify_syntax_entry): Doc fix.
6012
ba3de0e8
JB
60132008-12-10 Juanma Barranquero <lekktu@gmail.com>
6014
6015 * font.c (Ffont_spec): Move usage to end of docstring.
6016
174f1c74
JR
60172008-12-10 Jason Rumney <jasonr@gnu.org>
6018
6019 * w32font.c (Qcham): New symbol.
6020 (font_supported_scripts): Add cham, and comments for other new
6021 scripts in bitfield from OpenType spec.
9d32f818
JR
6022 (add_font_entity_to_list): Limit unicode-sip fonts to those that
6023 contain characters beyond the bmp.
174f1c74 6024
7b649478
KH
60252008-12-10 Kenichi Handa <handa@m17n.org>
6026
6027 * ftfont.c (fc_charset_table): Add "unicode-sip".
2ae37cf0 6028 (ftfont_spec_pattern): Lookup fc_charset_table for the registry
7b649478
KH
6029 Qunicode_sip.
6030
2133e2d1
JB
60312008-12-10 Juanma Barranquero <lekktu@gmail.com>
6032
6033 * coding.c (QCdefault_char): Rename from QCdefalut_char.
6034 (Fcoding_system_put): Use QCdefault_char.
6035 (syms_of_coding): Set QCdefault_char, not QCdefalut_char.
6036
9af886ee
CY
60372008-12-09 Chong Yidong <cyd@stupidchicken.com>
6038
74d819eb
CY
6039 * xftfont.c (syms_of_xftfont): Fix typo.
6040
4ccfa1c0 6041 * buffer.c (Fbuffer_swap_text): Signal error if swapping a dead buffer.
9af886ee 6042
7c19d3ae
DN
60432008-12-08 Dan Nicolaescu <dann@ics.uci.edu>
6044
6045 * emacs.c (main): Close daemon_pipe on exec.
6046
567826bb
CY
60472008-12-08 Chong Yidong <cyd@stupidchicken.com>
6048
6049 * termchar.h (struct tty): New members termcap_term_buffer and
6050 termcap_strings_buffer.
6051
6052 * term.c (encode_terminal_code): Free any previous memory blocks
4ccfa1c0 6053 before calling xmalloc for encode_terminal_src or encode_terminal_dst.
567826bb
CY
6054 (maybe_fatal): Buffer argument deleted. Don't free buffer here.
6055 All callers changed.
6056 (init_tty): Store termcap data and string buffers in new struct
6057 tty members termcap_term_buffer and termcap_strings_buffer.
6058 (delete_tty): Free them.
4ccfa1c0 6059 (syms_of_term): Initialize encode_terminal_src and encode_terminal_dst.
567826bb 6060
aa96c42b
SZ
60612008-12-07 Seiji Zenitani <zenitani@mac.com>
6062
6063 * nsfns.m (ns_set_background_color): Remove code duplication.
4ccfa1c0 6064 It was a substitute for face-transparency on OS X 10.3.
aa96c42b 6065
b7e1d896
CY
60662008-12-06 Chong Yidong <cyd@stupidchicken.com>
6067
6068 * coding.c (make_conversion_work_buffer): Disable buffer
6069 modification hooks in the work buffer.
6070
b5ec91a5
EZ
60712008-12-05 Eli Zaretskii <eliz@gnu.org>
6072
6073 * process.c (procfs_system_process_attributes): If `nread' has a
6074 negative value, assign zero to it.
6075
a5d2a52b
CY
60762008-12-05 Chong Yidong <cyd@stupidchicken.com>
6077
68c5540b 6078 * eval.c (Vdebug_on_error): Doc fix.
a5d2a52b 6079
7bf1bb21
KH
60802008-12-05 Kenichi Handa <handa@m17n.org>
6081
6082 * ftfont.c (ftfont_shape_by_flt): Use "combining" flt if the
6083 second character is a combining character.
6084
2fdc7d00
EZ
60852008-12-05 Eli Zaretskii <eliz@gnu.org>
6086
6087 * process.c (procfs_system_process_attributes): Don't use cmd,
6088 cmdsize, and q without initializing them first.
6089
bf6bfba8
JR
60902008-12-04 Jason Rumney <jasonr@gnu.org>
6091
6092 * w32font.c (w32font_draw): Initialize orig_clip before getting
6093 it, and delete it when finished.
6094
a3b1a468
DN
60952008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
6096
6097 * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
6098 case when running as a daemon before detaching.
6099
8b8be8eb
JB
61002008-12-03 Juanma Barranquero <lekktu@gmail.com>
6101
805f2638 6102 * w32.c (init_environment): Don't unload library shell32.dll.
8b8be8eb 6103
b1bde622
KH
61042008-12-03 Kenichi Handa <handa@m17n.org>
6105
e500c47d
KH
6106 * font.c (font_at): Set `multibyte' at first.
6107
ca516334
KH
6108 * coding.c (decode_coding_charset): Check type of an element of
6109 vector VALIDS.
7bf1bb21 6110 (encode_coding_emacs_mule): Be sure to set `code'.
ca516334 6111
4ccfa1c0 6112 * fontset.c (face_for_char): Handle invalid charset property correctly.
b1bde622
KH
6113 (font_for_char): Likewise.
6114
1e5ecd37
CY
61152008-12-03 Chong Yidong <cyd@stupidchicken.com>
6116
d5b01609 6117 * font.c (Fopen_font): Compute pixel size correctly.
ba207571
CY
6118 (font_update_lface): Handle fonts with corrupted size specs,
6119 i.e. non-int and non-float.
d5b01609 6120
11e3a6e4 6121 * ftfont.c (ftfont_match): Initialize entity variable.
9a48c8cb 6122 (ftfont_resolve_generic_family): Avoid using uninitialized var.
8adb3a3b 6123 (ftfont_list_family): Initialize list var earlier.
11e3a6e4 6124
ab06788b
CY
6125 * xselect.c (Fx_get_cut_buffer_internal): Fix memory leak.
6126
1e5ecd37 6127 * xterm.c (x_draw_glyph_string): Fall back on
0cff82ab 6128 underline_minimum_offset for underline position.
1e5ecd37 6129
63c125ab
DN
61302008-12-03 Dan Nicolaescu <dann@ics.uci.edu>
6131
6132 * keyboard.c (read_char_help_form_unwind): Specify the type for ARG.
6133
6134 * character.c (c_string_width): Specify the type for LEN.
6135
3a8406e1
KH
61362008-12-03 Kenichi Handa <handa@m17n.org>
6137
4ccfa1c0 6138 * coding.c (decode_coding_utf_16): Initialize consumed_chars_base to 0.
453b38f0 6139 (decode_coding_utf_8): Likewise.
4ccfa1c0 6140 (detect_coding_system): Initialize utf_16_le_eol to -1, val to Qnil.
4533845d 6141 (produce_chars): Initialize consumed_chars to 0.
3a8406e1 6142
651df7d9
CY
61432008-12-02 Chong Yidong <cyd@stupidchicken.com>
6144
6145 * keyboard.c (make_lispy_position): Only use PT if the selected
6146 window is current.
6147
1f625c6c
AS
61482008-12-02 Andreas Schwab <schwab@suse.de>
6149
f7741ce9
AS
6150 * font.c (font_unparse_fcname): Fix use of uninitialized variable.
6151
1f625c6c
AS
6152 * doprnt.c (doprnt1): Fix size of charbuf.
6153
92bc2678
CY
61542008-12-02 Chong Yidong <cyd@stupidchicken.com>
6155
6156 * keyboard.c (timer_check): Revert last change.
6157
93b9e8cc
JB
61582008-12-02 Juanma Barranquero <lekktu@gmail.com>
6159
6160 * makefile.w32-in ($(BLD)/w32console.$(O)): Fix silly, silly typo.
6161
fd7a37d5
JB
61622008-12-01 Juanma Barranquero <lekktu@gmail.com>
6163
6164 * makefile.w32-in: Update dependencies.
6165 (CONFIG_H): Add $(EMACS_ROOT)/nt/inc/sys/time.h.
6166
c115043b
AS
61672008-12-01 Andreas Schwab <schwab@suse.de>
6168
6169 * font.c (register_font_driver): Use xmalloc.
6170 (font_put_frame_data): Likewise.
6171
f5668d2a
CY
61722008-12-01 Chong Yidong <cyd@stupidchicken.com>
6173
860d96be
CY
6174 * xfaces.c (realize_x_face): Make abort condition clearer.
6175
f5668d2a
CY
6176 * gtkutil.c (update_frame_tool_bar): Initialize variable.
6177
379c17e7
CY
61782008-11-30 Chong Yidong <cyd@stupidchicken.com>
6179
6180 * keyboard.c (timer_check): After a timer runs, ensure that the
6181 selected window's buffer is current.
6182
35f36d65
JB
61832008-11-30 Juanma Barranquero <lekktu@gmail.com>
6184
f952c61c
JB
6185 * makefile.w32-in ($(BLD)/abbrev.$(O)): Remove.
6186 It was accidentally restored by the Unicode merge.
6187
35f36d65
JB
6188 * w32proc.c (Fw32_get_locale_info): Fix typo in docstring.
6189
b23077df
JB
61902008-11-29 Juanma Barranquero <lekktu@gmail.com>
6191
6192 * w32proc.c: Include "coding.h".
6193 (Fw32_short_file_name): Encode filename passed to Windows API.
6194 (Fw32_long_file_name): Encode filename passed to Windows API and
6195 decode back the result. (Bug#1433)
6196
b8ebe9dd
KH
61972008-11-29 Kenichi Handa <handa@m17n.org>
6198
8cc53f96
KH
6199 * charset.h (CHAR_CHARSET_P): Check if the encoder is loaded or
6200 not before accessing it.
6201
b8ebe9dd
KH
6202 * charset.c (Fdefine_charset_internal): After calculating
6203 min_char, max_char, and fastmap, copy the charset structure again.
6204 (encode_char): Fix the previous change.
6205
59bc82c0
SZ
62062008-11-28 Seiji Zenitani <zenitani@mac.com>
6207
6208 * frame.c (x_set_alpha) [NS_IMPL_COCOA]: Call x_set_frame_alpha.
6209
6210 * nsfns.m (ns_frame_parm_handlers): Set alpha handler.
6211
6212 * nsterm.m (x_set_frame_alpha): New function.
6213
32247e3d
EZ
62142008-11-27 Eli Zaretskii <eliz@gnu.org>
6215
6216 * xfaces.c (Fx_font_family_list, syms_of_xfaces): Fix last change.
6217
b003e5ff
JB
62182008-11-27 Juanma Barranquero <lekktu@gmail.com>
6219
6220 * w32font.c (add_font_entity_to_list): Pass the right LOGFONT
6221 pointer to check_face_name.
6222
708550f5
KH
62232008-11-27 Kenichi Handa <handa@m17n.org>
6224
6225 * category.h (SET_CATEGORY_SET): Call set_category_set.
6226 (set_category_set): Extern it.
6227
6228 * category.c (hash_get_category_set): New function.
6229 (Fmodify_category_entry): Adjusted for the change of
6230 char_table_ref_and_range. Call hash_get_category_set to get a
6231 category set to store in the table.
6232
6233 * character.h (MAYBE_UNIFY_CHAR): Call maybe_unify_char instead of
6234 Funify_charset.
6235
2ae37cf0 6236 * charset.h (enum charset_method): Delete CHARSET_METHOD_MAP_DEFERRED.
708550f5
KH
6237 (DECODE_CHAR): Check if the decoder vector is ready.
6238 (ENCODE_CHAR): Check if the encoder char-table is ready.
6239 (maybe_unify_char): Extern it.
6240
6241 * charset.c (Vchar_unified_charset_table): Delete it.
6242 (inhibit_load_charset_map): New variable.
6243 (temp_charset_work): New variable.
6244 (SET_TEMP_CHARSET_WORK_ENCODER, GET_TEMP_CHARSET_WORK_ENCODER)
6245 (SET_TEMP_CHARSET_WORK_DECODER, GET_TEMP_CHARSET_WORK_DECODER):
6246 New macros.
6247 (load_charset_map): Meaning of control_flag changed. If
6248 inhibit_load_charset_map is nonzero, setup a table in
6249 temp_charset_work.
6250 (load_charset): New argument control_flag.
6251 (map_charset_for_dump): New function.
6252 (map_charset_chars): If inhibit_load_charset_map is nonzero, use
6253 map_charset_for_dump.
6254 (Fdefine_charset_internal): If the charset method is MAP, load
6255 mapping tables by calling load_charset.
6256 (Funify_charset): Don't load a mapping table but directly set
6257 Vchar_unify_table.
6258 (maybe_unify_char): New function.
6259 (decode_char): Don't handle the deleted method MAP_DEFERRED.
6260 Handle the case of inhibit_load_charset_map being nonzero.
6261 (encode_char): Don't handle the deleted method MAP_DEFERRED.
6262 Handle the case of inhibit_load_charset_map being nonzero.
6263 (Fclear_charset_maps): Just free temp_charset_work.
6264 (syms_of_charset): Make `inhibit-load-charset-map' a Lisp
6265 variable.
6266
6267 * chartab.c (sub_char_table_ref_and_range): Adjusted for the
6268 change of char_table_ref_and_range.
6269 (char_table_ref_and_range): Change the meaning of argument FROM
6270 and TO. Now the caller must provide initial values for *FROM
6271 and *TO.
6272
6273 * fontset.c (fontset_add): Adjusted for the change of
6274 char_table_ref_and_range.
6275 (fontset_get_font_group): Likewise.
6276 (Ffontset_info): Likewise.
6277
6278 * keymap.c (describe_vector): Adjusted for the change of
6279 char_table_ref_and_range. For char-table, put boundary between
6280 non-ASCII and 8-bit characters.
6281
6282 * print.c (print_object): For bool-vector, delete unnecessary
6283 check of ASCII_BYTE_P.
6284
9196133b
JR
62852008-11-26 Jason Rumney <jasonr@gnu.org>
6286
6287 * w32font.c (w32font_open_internal): Don't include external
9acef61c 6288 leading in font height. (Bug#879)
9196133b 6289
9f688acf
GM
62902008-11-26 Glenn Morris <rgm@gnu.org>
6291
6292 * xfaces.c (Fx_font_family_list): Replace lisp/term/pc-win.el
6293 redefinition with ifdef. (Bug#1383)
6294
90d19aff
AR
62952008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6296
6297 * nsterm.m (ns_get_color): Handle long hex strings (fixes bug #1044).
6298
4ccfa1c0 62992008-11-24 Wolfgang Lux <wolfgang.lux@gmail.com> (tiny change)
90d19aff
AR
6300
6301 * nsterm.m (-otherMouseDown:, -otherMouseUp:, -otherMouseDragged):
6302 New EmacsView methods.
6303 (EV_UDMODIFIERS, EV_BUTTON): Add OtherMouse constants.
6304 Fixes bug #1048,1357,1414.
6305
63062008-11-24 Adrian Robert <Adrian.B.Robert@gmail.com>
6307
6308 Fix bug #1362.
6309 * image.c (x_clear_image_1): Do not free background under HAVE_NS, it
6310 is not an indexed color.
6311 * nsterm.m (free_indexed_color): Add argument checking.
6312 * nsfns.m: Move config.h to before system includes (advised by Dan N.).
6313
e7d5ecb3
CY
63142008-11-24 Chong Yidong <cyd@stupidchicken.com>
6315
6316 * minibuf.c (Fcompleting_read, Vminibuffer_completion_confirm):
6317 Document confirm-after-completion value for
6318 minibuffer-completion-confirm.
6319
c285743c
JR
63202008-11-24 Jason Rumney <jasonr@gnu.org>
6321
6322 * w32font.c (check_face_name): Use xstrcasecmp. Avoid compiler
6323 warning.
6324
b0857706
JR
63252008-11-23 Jason Rumney <jasonr@gnu.org>
6326
6327 * w32uniscribe.c (uniscribe_encode_char): Ensure context is
6328 restored before returning.
6329
6330 * w32font.c (check_face_name): New function.
6331 (add_font_entity_to_list): Use it to filter out common substituted
9acef61c 6332 fonts. (Bug#642)
b0857706 6333
ee50ff07
MR
63342008-11-22 Martin Rudalics <rudalics@gmx.at>
6335
6336 * buffer.c (Fswitch_to_buffer): Reword and mention new option
6337 confirm-nonexistent-file-or-buffer in doc-string.
6338
b8ff72fa
SM
63392008-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
6340
6341 * buffer.c (Fbuffer_swap_text): Remove redundant marker manipulation.
6342 Fix copy/paste typo. Add checks.
6343
cee53ed4
KH
63442008-11-21 Kenichi Handa <handa@m17n.org>
6345
6346 * coding.c (detect_coding_iso_2022): Reject invalid composition
6347 sequence.
6348 (DECODE_COMPOSITION_START): If the current source is the last
6349 block, and the current composition doesn't end, regard this
6350 sequence as invalid.
6351 (decode_coding_iso_2022): Handle invalid composition sequence.
6352
f6ef1e65
MR
63532008-11-20 Martin Rudalics <rudalics@gmx.at>
6354
6355 * window.c (coordinates_in_window): Don't return
6356 ON_VERTICAL_BORDER for the rightmost position of a mode/header
6357 line when the window is not the rightmost one. (Bug#1372)
6358
e08b1705
MR
63592008-11-16 Ben North <ben@redfrontdoor.org> (tiny change)
6360
6361 * buffer.c (syms_of_buffer): Fix doc-string of cursor-type.
6362
ad98e89f
EZ
63632008-11-15 Eli Zaretskii <eliz@gnu.org>
6364
6365 * msdos.c (run_msdos_command): Don't call dos_ttcooked, dos_ttraw,
6366 and bright_bg if noninteractive is non-zero.
6367
fb098a4b
CY
63682008-11-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6369
6370 * xterm.c (x_draw_glyph_string): For stretch glyphs, don't call
6371 x_draw_glyph_string_background.
6372
6373 * w32term.c (x_draw_glyph_string): Likewise.
6374
ce952b6e
CY
63752008-11-15 Chong Yidong <cyd@stupidchicken.com>
6376
6377 * xterm.c (x_draw_glyph_string): Stop drawing the background of
6378 the next glyph string once past the overhang width.
6379
6380 * nsterm.m (ns_draw_glyph_string): Likewise.
6381
6382 * w32term.c (x_draw_glyph_string): Likewise.
6383
26ea7079
CY
63842008-11-14 Fabrice Popineau <fabrice.popineau@supelec.fr> (tiny change)
6385
6386 * fileio.c (Finsert_file_contents): Decrement specpdl_ptr to avoid
6387 double file close.
6388
1c33c906
MR
63892008-11-14 Martin Rudalics <rudalics@gmx.at>
6390
6391 * window.c (window_loop): In DELETE_BUFFER_WINDOWS case, reset
6392 dedicated status of window before attempting to display another
6393 buffer in it.
6394
8fc29035
JB
63952008-11-14 Juanma Barranquero <lekktu@gmail.com>
6396
6397 * msdos.c (Fmsdos_long_file_names):
6398 (syms_of_msdos) <dos-unsupported-char-glyph>:
6399 * dosfns.c (Fint86): Fix typos in docstrings.
6400
55fb4286
EZ
64012008-11-14 Eli Zaretskii <eliz@gnu.org>
6402
6403 * makefile.w32-in (OBJ1, WIN32OBJ): Fix whitespace.
6404
3fda0315
KY
64052008-11-14 Katsumi Yamaoka <yamaoka@jpl.org>
6406
6407 * puresize.h (BASE_PURESIZE): Increase to 1260000.
6408
7e849c17
CY
64092008-11-12 Michal Nazarewicz <mina86@tlen.pl> (tiny change)
6410
6411 * frame.c (x_set_alpha): Set alpha to -1 if nil given.
6412
6413 * frame.h: Negative alpha means "don't touch".
6414
6415 * w32term.c (x_set_frame_alpha): Do nothing if alpha is negative.
6416
6417 * xterm.c (x_set_frame_alpha): Do nothing if alpha is negative.
6418
b9fd67bd
DN
64192008-11-12 Dan Nicolaescu <dann@ics.uci.edu>
6420
6421 * hftctl.c:
6422 * chpdef.h:
6423 * acldef.h: Remove files used only for systems no longer supported.
6424
6425 * Makefile.in: Fix .o alphabetical ordering.
6426 (hftctl.o): Remove dependency, file removed.
6427 (keymap.o, print.o): Depend on charset.h.
6428
d5998e03
KH
64292008-11-10 Kenichi Handa <handa@m17n.org>
6430
2ae37cf0 6431 * character.c (Fget_byte): Fix and make it faster for unibyte target.
d5998e03 6432
be70e183
CY
64332008-11-08 Chong Yidong <cyd@stupidchicken.com>
6434
6435 * dired.c (file_name_completion): If completion_ignore_case is
6436 enabled, ignore case when checking completion-regexp-list.
6437
7cf94eac
EZ
64382008-11-08 Eli Zaretskii <eliz@gnu.org>
6439
6440 * vm-limit.c (get_lim_data): Fix last change.
6441
ee107a89
KH
64422008-11-08 Kenichi Handa <handa@m17n.org>
6443
6444 * character.c (Fget_byte): New function.
6445 (syms_of_character): Defsubr Fget_byte.
6446
5fd15622
CY
64472008-11-07 Chong Yidong <cyd@stupidchicken.com>
6448
6449 * xdisp.c (try_window_reusing_current_matrix): Ensure that window
6450 cursor position is valid after scrolling.
6451
13d62fad
JB
64522008-11-06 Juanma Barranquero <lekktu@gmail.com>
6453
6454 * fns.c (Frandom): Rename arg N to LIMIT to match the docs; doc fix.
6455
a1dd2936
GM
64562008-11-06 Glenn Morris <rgm@gnu.org>
6457
6458 * xterm.c (handle_one_xevent): Don't let popup menus cause
6459 mouse-autoselect-window related window switching. (Bug#1261)
6460
860cd236
CY
64612008-11-04 David Smith <davidsmith@acm.org> (tiny change)
6462
6463 * xterm.c (xim_close_dpy): Avoid double-free on X11R6 XIM.
6464
653a3150
AS
64652008-11-04 Andreas Schwab <schwab@suse.de>
6466
6467 * xfns.c (Fx_wm_set_size_hint): Add missing return value.
6468
870f5cac
CY
64692008-11-03 Chong Yidong <cyd@stupidchicken.com>
6470
6471 * xfns.c (Fx_wm_set_size_hint): New function.
6472
1e02f3cb
MR
64732008-11-03 Martin Rudalics <rudalics@gmx.at>
6474
6475 * textprop.c (Fprevious_single_char_property_change): Return 0
6476 when there's no change in a string. (Bug#1301)
6477
e630dfc6
MR
64782008-11-02 Martin Rudalics <rudalics@gmx.at>
6479
6480 * frame.c (do_switch_frame): New argument NORECORD passed to
6481 Fselect_window.
6482 (Fselect_frame): New argument NORECORD passed to
6483 do_switch_frame.
6484 (Fset_frame_selected_window): New argument NORECORD passed to
6485 Fselect_frame.
6486 (Fhandle_switch_frame, Fdelete_frame): Handle NORECORD argument
6487 in call of do_switch_frame.
6488 (Fset_mouse_position, Fset_mouse_pixel_position, Fraise_frame):
6489 Handle NORECORD argument in call of Fselect_frame.
6490 * lisp.h (do_switch_frame, Fselect_frame)
6491 (Fset_frame_selected_window): Adjust declarations.
6492 * window.c (select_frame_norecord): New function.
6493 (run_window_configuration_change_hook): Use it and call
6494 Fselect_frame with NORECORD set.
6495 (Fselect_window): Pass NORECORD to Fselect_frame.
6496 (Fset_window_configuration): Handle NORECORD argument in call of
6497 do_switch_frame.
6498 * minibuf.c (choose_minibuf_frame): Handle NORECORD in call of
6499 Fset_frame_selected_window.
6500 * keyboard.c (command_loop_1): Handle NORECORD in call of
6501 Fselect_frame (currently ifdefd).
6502
9020b223
GM
65032008-11-02 Ulrich Mueller <ulm@kph.uni-mainz.de>
6504
6505 * emacs.c (USAGE2): Untabify.
6506
793ffee8
SM
65072008-11-01 Stefan Monnier <monnier@iro.umontreal.ca>
6508
6509 * composite.c (fill_gstring_header): Fix copy/paste typo.
6510
ab6d1131
MR
65112008-10-31 Martin Rudalics <rudalics@gmx.at>
6512
6513 * window.c (Fnext_window, Fprevious_window): Rewrite doc-string.
6514 (Fother_window): Rename argument and rewrite doc-string.
6515 (select_window_norecord): Fix return value. (Bug#1276)
6516
601a9cf1
JB
65172008-10-30 Juanma Barranquero <lekktu@gmail.com>
6518
6519 * w32fns.c (x_create_tip_frame): Prevent default foreground color for
6520 new frames overriding foreground for tooltips. Based on similar patch
6521 from Martin Rudalics <rudalics@gmx.at>. (Bug#1032)
6522
813b0652
CY
65232008-10-29 Chong Yidong <cyd@stupidchicken.com>
6524
6525 * emacs.c (Fdaemon_initialized): Initialize nfd.
6526
4414f58f
MR
65272008-10-29 Martin Rudalics <rudalics@gmx.at>
6528
6529 * window.c (Fwindow_height, Fdelete_window, set_window_buffer)
6530 (Fwindow_text_height): Clarify doc-strings.
6531 * xdisp.c (syms_of_xdisp): Mention set-window-buffer in
6532 doc-string of window-scroll-functions.
6533
ecdcaa09
RS
65342008-10-28 Reiner Steib <Reiner.Steib@gmx.de>
6535
6536 * category.c (syms_of_category): Fix typo in docstring.
6537
23fe745a
JB
65382008-10-28 Juanma Barranquero <lekktu@gmail.com>
6539
6540 * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)
6541 (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right):
6542 Fix typos in docstrings.
6543
ff808935
DN
65442008-10-28 Dan Nicolaescu <dann@ics.uci.edu>
6545
6546 * emacs.c (daemon_pipe): Make non-static.
6547 (IS_DAEMON): Move definition ...
6548 * lisp.h (IS_DAEMON): ... here.
6549 (daemon_pipe): Declare.
6550 (is_daemon): Remove.
6551 * dispnew.c (init_display): Use IS_DAEMON.
6552
fc012771
SM
65532008-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
6554
6555 * xdisp.c (pos_visible_p, redisplay_internal, message3_nolog)
6556 (message2_nolog): Check FRAME_INITIAL_P instead of noninteractively.
6557
6558 * emacs.c (is_daemon): Remove.
6559 (main): Don't set is_daemon.
6560 (IS_DAEMON): New macro.
6561 (Fdaemonp, Fdaemon_initialized): Use it.
601a9cf1 6562 (Fdaemon_initialized): Write a char into the pipe to make sure the
fc012771
SM
6563 parent exits.
6564 (syms_of_emacs): Explicitly initialize daemon_pipe[1].
6565
d8bdbe6f
CY
65662008-10-27 Chong Yidong <cyd@stupidchicken.com>
6567
d1a072bf
CY
6568 * nsterm.m (ns_draw_window_cursor): When hbar cursor is on
6569 over-sized glyph, draw it with the default glyph width.
6570
e2e325aa
CY
6571 * w32term.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6572 glyph, draw it with the default glyph width.
6573
6574 * xterm.c (x_draw_bar_cursor): When hbar cursor is on over-sized
6575 glyph, draw it with the default glyph width.
6576
d8bdbe6f
CY
6577 * xdisp.c (try_scrolling): When computing the distance from the
6578 scroll margin to PT, try moving some distance past the window
6579 bottom before giving up.
6580
7bfac547
MR
65812008-10-27 Martin Rudalics <rudalics@gmx.at>
6582
6583 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p)
6584 (Fset_window_buffer): Explain in doc-string that a window can be
6585 "strongly" dedicated to its buffer.
6586
4ff029f6
DN
65872008-10-27 Dan Nicolaescu <dann@ics.uci.edu>
6588
6589 * emacs.c (daemon_name): New variable.
6590 (main): Deal with --daemon=SERVER_NAME.
6591 (Fdaemonp): Return a name if one was passed to --daemon.
6592
5790ef40
DN
65932008-10-26 Romain Francoise <romain@orebokech.com>
6594
f9bd0df9 6595 * emacs.c (daemon_pipe): New variable.
5790ef40
DN
6596 (main): Create a pipe before forking, make the parent exit only after
6597 the child has closed its end of the pipe. Move closing the
6598 descriptors ...
6599 (Fdaemon_initialized): ... here. New function.
6600
f5385255
SM
66012008-10-26 Stefan Monnier <monnier@iro.umontreal.ca>
6602
4d632321
SM
6603 * chartab.c (Foptimize_char_table): Make sure `ascii' doesn't point to
6604 the previous unoptimized table.
6605
f5385255
SM
6606 * window.c (Fset_window_buffer): Undo 2008-10-18 change to re-instate
6607 the distinction between non-nil and non-t value of `dedicated'.
6608
6c56a0f3
CY
66092008-10-25 Chong Yidong <cyd@stupidchicken.com>
6610
6611 * keyboard.c (read_char_minibuf_menu_prompt): Ensure that
f5385255 6612 read_char_minibuf_menu_text is large enough to hold the menu string.
6c56a0f3 6613
fec89261
MR
66142008-10-25 Martin Rudalics <rudalics@gmx.at>
6615
6616 * window.c (Fget_buffer_window, Fdelete_windows_on)
6617 (Freplace_buffer_in_windows): Make buffer argument optional and
6618 rename to buffer_or_name.
6619
34fcddd0
CY
66202008-10-24 Chong Yidong <cyd@stupidchicken.com>
6621
f5385255
SM
6622 * xdisp.c (handle_single_display_spec, handle_display_prop):
6623 Undo 2005-05-16 change.
34fcddd0
CY
6624 (handle_stop): Pop iterator if it's loaded with an empty string.
6625 (get_overlay_strings_1): Don't save iterator if it's loaded with
6626 an empty string (bug#1201).
6627
064766f2
KH
66282008-10-24 Kenichi Handa <handa@m17n.org>
6629
6630 * ftfont.c (ftfont_otf_features): Fix previous change.
6631 (ftfont_otf_capability): Check FeatureList.FeatureCount before
6632 calling ftfont_otf_features.
6633
f9bd0df9 66342008-10-24 Kenichi Handa <handa@m17n.org>
064766f2
KH
6635
6636 * font.c (font_match_p): Fix for the case that a vector of
6637 characters is in script-representative-chars.
6638
1dae9197
MA
66392008-10-24 Michael Albinus <michael.albinus@gmx.de>
6640
6641 * dbusbind.c (xd_in_read_queued_messages): New variable.
f5385255 6642 (XD_SIGNAL1, XD_SIGNAL2, XD_SIGNAL3): New macros. Throw Qdbus_error.
1dae9197
MA
6643 (xd_read_queued_messages): Catch Qdbus_error from the macros.
6644 (all): Replace xsignal1, xsignal2, xsignal3 by the respective
777013f2 6645 macro. (Bug#1186)
1dae9197 6646
f9bd0df9 66472008-10-23 Ali Bahrami <ali_gnu@emvision.com> (tiny change)
9b3362b8
DN
6648
6649 * s/sol2-10.h: New file.
6650
878a4584
JB
66512008-10-23 Juanma Barranquero <lekktu@gmail.com>
6652
6653 * xdisp.c (fill_glyph_string): Fix typo in source (though the
6654 poor beast has survived 9+ years and the jump from xterm.c!).
6655
cd265ca6
MR
66562008-10-23 Martin Rudalics <rudalics@gmx.at>
6657
6658 * buffer.c (Fget_buffer_create): Rename arg to buffer_or_name.
6659 Reword doc-string.
f5385255 6660 (Fbury_buffer): In doc-string say what happens to the buffer's window.
cd265ca6 6661
472a4dc9
JB
66622008-10-23 Juanma Barranquero <lekktu@gmail.com>
6663
6664 * character.c (syms_of_character) <script-representative-chars>:
6665 <unicode-category-table>: Doc fixes.
6666
159bd5a2
NF
66672008-10-23 Noah Friedman <friedman@splode.com>
6668
6669 * coding.c (make_conversion_work_buffer): Check that
6670 Vcode_conversion_reused_workbuf is a live buffer, otherwise call
6671 Fget_buffer_create.
6672
49f9c344
KH
66732008-10-23 Kenichi Handa <handa@m17n.org>
6674
6675 * font.c (font_add_log): Check the values of extra properties.
6676
12bb3111
MR
66772008-10-22 Martin Rudalics <rudalics@gmx.at>
6678
6679 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6680 Reword doc-string.
6681 (Fset_window_parameter): Use NILP.
6682 (Fscroll_up, Fscroll_down, Fminibuffer_selected_window)
f5385255 6683 (Frecenter): Use "selected" instead of "current" window in doc-strings.
12bb3111 6684
bbeb4e99
JB
66852008-10-22 Juanma Barranquero <lekktu@gmail.com>
6686
6687 * xdisp.c (next_element_from_buffer): Remove bogus xassert condition.
6688
66892008-10-22 Adrian Robert <Adrian.B.Robert@gmail.com>
cb83c00b
AR
6690
6691 * nsfns.m (ns_appkit_version): New function.
6692 (x-server-version): Use it.
6693 (syms_of_nsfns): Define ns-version-string here, not nsterm.m.
6694 (x-server-vendor): Don't check_ns().
6695
6696 * nsterm.m (syms_of_nsterm): Drop ns-version-string.
6697
a9b555d3
JB
66982008-10-22 Juanma Barranquero <lekktu@gmail.com>
6699
6700 * w32fns.c (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.
6701 Copied from 2005-02-03 change to xfns.c by Kim F. Storm.
6702
4626499f
KH
67032008-10-22 Kenichi Handa <handa@m17n.org>
6704
e3681952
KH
6705 * syntax.c (scan_words): Call word_boundary_p instead of comparing
6706 scripts.
6707
4626499f
KH
6708 * category.c (word_boundary_p): Check scripts instead of charset.
6709 Handle nil value in word-separating-categories and
6710 word-combining-categories.
6711 (syms_of_category): Fix docstrings of word-separating-categories
6712 and word-combining-categories.
6713
1560f91a
EZ
67142008-10-21 Eli Zaretskii <eliz@gnu.org>
6715
6716 * coding.c (Fencode_coding_region, Fdecode_coding_region)
6717 (Fdecode_coding_string, Fencode_coding_string): Doc fix.
6718
f4668441
MR
67192008-10-21 Martin Rudalics <rudalics@gmx.at>
6720
6721 * buffer.c (Fget_buffer, Fbury_buffer, switch_to_buffer_1):
6722 Rename arg "buffer" to "buffer_or_name".
6723 (Fkill_buffer): Rename arg "buffer" to "buffer_or_name" and make
6724 it optional.
6725 (no_switch_window): Remove since the return value is not used.
a9b555d3 6726 (Fswitch_to_buffer): Rename arg "buffer" to "buffer_or_name".
f4668441
MR
6727 Consider window as dedicated when Fwindow_dedicated_p returns a
6728 non-nil value.
6729 * lisp.h: Remove prototype for no_switch_window.
6730
fd75ddb2
JD
67312008-10-21 Jan Djärv <jan.h.d@swipnet.se>
6732
6733 * emacs.c (main): Unconditionally set PER_LINUX32 and exec
2ae37cf0 6734 temacs when dumping if HAVE_PERSONALITY_LINUX32 is defined.
fd75ddb2 6735
07295713
KH
67362008-10-21 Kenichi Handa <handa@m17n.org>
6737
6738 * coding.c (detect_coding_charset): For iso-8859-* coding systems,
6739 check Vlatin_extra_code_table.
6740
712adc82
EZ
67412008-10-20 Eli Zaretskii <eliz@gnu.org>
6742
6743 * fileio.c (Fset_file_modes): Doc fix.
6744
f549eb0b
MA
67452008-10-19 Michael Albinus <michael.albinus@gmx.de>
6746
6747 * dbusbind.c (XD_OBJECT_TO_DBUS_TYPE): Handle simple type symbols
6748 in arrays.
6749
aac0c6e3
MR
67502008-10-19 Martin Rudalics <rudalics@gmx.at>
6751
6752 * window.c (Fwindow_dedicated_p, Fset_window_dedicated_p):
6753 Mention kill-buffer in doc-string.
6754 (Fset_window_buffer): Reinsert tem check removed in last commit.
6755 (Fenlarge_window, Fshrink_window): Have argument names and
6756 doc-string follow Elisp manual more closely.
6757
67582008-10-18 Eli Zaretskii <eliz@gnu.org>
6759
6760 * fileio.c (Fset_file_modes): Doc fix.
6761
67622008-10-18 Martin Rudalics <rudalics@gmx.at>
6763
6764 * window.c (Fwindow_width, Fset_window_start)
6765 (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter)
f5385255
SM
6766 (Fdelete_windows_on, Freplace_buffer_in_windows):
6767 Make doc-strings follow code and Elisp manual more closely.
aac0c6e3
MR
6768 (Fwindow_dedicated_p): Make window argument optional.
6769 (Fset_window_dedicated_p): Rename argument "arg" to "flag".
6770 (Fset_window_buffer): Respect any non-nil dedicated value for
6771 window. Rename "buffer" argument to "buffer_or_name".
6772
67732008-10-18 Ulrich Mueller <ulm@gentoo.org>
6774
6775 * m/sh3.h: New file, machine description for SuperH.
6776
67772008-10-17 Martin Rudalics <rudalics@gmx.at>
6778
6779 * window.c (Fsplit_window): Rename arg horflag to horizontal.
6780
67812008-10-17 Kenichi Handa <handa@m17n.org>
6782
6783 * ftfont.c (ftfont_otf_features): Fix indexing
6784 gsub_gpos->FeatureList.Feature. Check the validity of indices.
6785
67862008-10-16 Magnus Henoch <mange@freemail.hu>
6787
6788 * dbusbind.c (Fdbus_call_method): Unbreak usage line.
6789 (Fdbus_call_method_asynchronously): Ditto.
6790 This change makes C-h f display the argument list.
6791
67922008-10-16 Chong Yidong <cyd@stupidchicken.com>
6793
6794 * fileio.c (Fexpand_file_name): Doc fix.
6795
6796 * xfaces.c (Finternal_set_lisp_face_attribute): Make null values
6797 of :foreground and :background equivalent to unspecified (20.x
6798 compatibility).
6799
68002008-10-15 Eli Zaretskii <eliz@gnu.org>
6801
6802 * buffer.c (syms_of_buffer): Doc fix.
6803
68042008-10-14 Kenichi Handa <handa@m17n.org>
6805
6806 * font.c (font_clear_prop): When clearing font width, clear the
6807 average width field too.
6808
68092008-10-12 Andreas Schwab <schwab@suse.de>
6810
6811 * ftfont.c (ftfont_shape_by_flt): Make static.
6812 * ftfont.h (ftfont_shape_by_flt): Don't declare.
6813
6814 * font.c: Don't include <m17n-flt.h>.
6815
68162008-10-10 Eli Zaretskii <eliz@gnu.org>
6817
6818 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Decrease to 10000.
6819
68202008-10-09 Eli Zaretskii <eliz@gnu.org>
6821
6822 * frame.c (make_terminal_frame) [MSDOS]: Remove unused #ifdef'ed
6823 away code.
6824
68252008-10-09 Chong Yidong <cyd@stupidchicken.com>
6826
6827 * dispnew.c (update_text_area): Avoid looping due to large glyph
6828 overhangs (bug#1070).
6829
68302008-10-09 Kenichi Handa <handa@m17n.org>
6831
6832 * fontset.c (face_for_char): If face->fontset is negative, just
6833 return ascii_face.
6834
f5385255
SM
6835 * font.c (font_delete_unmatched): Fix previous change.
6836 Don't reject an entity if DPI and AVGWIDTH of an entity are 0.
aac0c6e3
MR
6837
68382008-10-09 Martin Rudalics <rudalics@gmx.at>
6839
6840 * frame.c (Fraise_frame): On text-only terminals select frame in
6841 order to make it visible. (Bug#1061)
6842
68432008-10-08 Chong Yidong <cyd@stupidchicken.com>
6844
6845 * fontset.c (fontset_find_font): Check frame validity.
6846
68472008-10-07 Chong Yidong <cyd@stupidchicken.com>
6848
a9b555d3 6849 * gtkutil.c (xg_display_open): Reset default display if none exists.
aac0c6e3
MR
6850 (xg_display_close): Allow Emacs to close all displays (bug#985).
6851
68522008-10-06 Andreas Schwab <schwab@suse.de>
6853
f5385255 6854 * sysdep.c (sys_signal): Always set SA_RESTART when noninteractively.
aac0c6e3
MR
6855
68562008-10-06 Chong Yidong <cyd@stupidchicken.com>
6857
f5385255 6858 * emacs.c (Vbefore_init_time, Vafter_init_time): Move from startup.el.
aac0c6e3 6859
a9b555d3 6860 * lisp.h (Vbefore_init_time, Vafter_init_time): Declare.
aac0c6e3
MR
6861
6862 * gtkutil.c (x_wm_set_size_hint): Return immediately if called
6863 during initialization.
6864
68652008-10-04 Eli Zaretskii <eliz@gnu.org>
6866
6867 * xdisp.c (redisplay_internal): If frame switched, redisplay the
6868 whole thing on MSDOS frames as well as on a TTY.
6869
6870 * dispnew.c (update_frame): Flush termscript for MSDOS frames as
6871 well as for TTY.
6872 (Fopen_termscript): Allow opening a termscript on MSDOS frames as
6873 well as on a TTY.
6874
6875 * sysdep.c (init_sys_modes): Set FRAME_GARBAGED_P for MSDOS frames
6876 as well as for TTY.
6877
6878 * systime.h (EMACS_TIME_CMP): Cast EMACS_SECS values to `long'.
6879
6880 * dispnew.c (change_frame_size_1): Set FrameRows and FrameCols for
6881 MSDOS frames as well.
6882
68832008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6884
6885 * image.c (x_clear_image_1): Under NS, call ns_free_indexed_color with
6886 correct arguments.
b71ac3dd 6887 * menu.c (find_and_return_menu_selection): Add cast.
aac0c6e3
MR
6888
68892008-10-03 Glenn Morris <rgm@gnu.org>
6890
6891 * emacs.c (USAGE1): Add --daemon.
6892
68932008-10-02 Eli Zaretskii <eliz@gnu.org>
6894
6895 * process.c (procfs_system_process_attributes): Multiply `pcpu' by
6896 100, so it's in percents as advertised.
6897
68982008-10-02 Adrian Robert <Adrian.B.Robert@gmail.com>
6899
6900 * nsterm.h (ns_cursor_types, ns_output.desired_cursor_color)
6901 (ns_output.current_cursor, ns_output.desired_cursor)
6902 (ns_output.last_inactive, FRAME_CURSOR, FRAME_NEW_CURSOR)
6903 (FRAME_NEW_CURSOR_COLOR): Remove.
6904
6905 * nsfns.m (ns_set_cursor_color): Use FRAME_CURSOR_COLOR.
a9b555d3 6906 (ns_lisp_to_cursor_type, ns_cursor_type_to_lisp): Use core Emacs
aac0c6e3
MR
6907 enumeration (HOLLOW_BOX_CURSOR, etc.).
6908
6909 * nsterm.m (ns_frame_rehighlight): Remove commented code.
6910 (draw_window_cursor): Simplify code.
f5385255
SM
6911 (EmacsView-windowDidBecomeKey:,-windowDidResignKey:):
6912 Don't change cursor type. In latter, call rehighlight instead of doing
aac0c6e3 6913 updates manually.
a9b555d3
JB
6914 (EmacsPrefsController-setPanelFromValues,-setValuesFromPanel):
6915 Use core Emacs cursor types.
aac0c6e3 6916
b8ff72fa 6917 * xdisp.c (draw_glyphs): Don't call notice_overwritten_cursor under NS.
aac0c6e3
MR
6918
69192008-10-02 Martin Rudalics <rudalics@gmx.at>
6920
6921 * process.c (Faccept_process_output): Fix doc-string.
6922
69232008-10-02 Dan Nicolaescu <dann@ics.uci.edu>
6924
6925 * gmalloc.c (__sbrk): Also define for uClibc.
6926
6927 * s/gnu-linux.h (GNU_LIBRARY_PENDING_OUTPUT_COUNT): Add definition
6928 for uClibc.
6929
69302008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6931
6932 * nsfont.m (nsfont_spec_to_traits): Use UnXX masks only for non-normal
6933 styles.
6934 (nsfont_open): Reenable the cache.
6935
69362008-10-01 Adrian Robert <Adrian.B.Robert@gmail.com>
6937
6938 * font.c (font_matching_entity): Reflect ATTRS in font selection.
6939 (font_find_for_lface) [HAVE_NS]: Don't ignore case.
6940
69412008-09-30 Stefan Monnier <monnier@iro.umontreal.ca>
6942
6943 * dispnew.c (Fsend_string_to_terminal): Don't try to send a string to
6944 a suspended terminal.
6945
69462008-09-30 Michael Albinus <michael.albinus@gmx.de>
6947
6948 * dbusbind.c (xd_signature): Use strcat instead of sprintf.
6949
69502008-09-30 Eli Zaretskii <eliz@gnu.org>
6951
6952 * Makefile.in (MSDOS_SUPPORT): Remove ccl.elc and codepage.elc.
6953
69542008-09-30 Chong Yidong <cyd@stupidchicken.com>
6955
6956 * xdisp.c (move_it_to): Don't advance the iterator if the last tab
6957 in a continued line coincides with a line beginning.
6958
69592008-09-29 Adrian Robert <Adrian.B.Robert@gmail.com>
6960
6961 * nsfont.m (nsfont_trait_distance): Fix bug.
6962 (nsfont_list): Return a list rather than a vector (syncs with Handa
6963 changes of 2008-05-14).
6964 (nsfont_open): Improve logging.
6965
69662008-09-29 Andreas Schwab <schwab@suse.de>
6967
6968 * keyboard.c (syms_of_keyboard) <input-decode-map>: Doc fix.
6969
69702008-09-28 Martin Rudalics <rudalics@gmx.at>
6971
6972 * character.c (Fchar_resolve_modifiers): Rewrite Elisp function
6973 name as char-resolve-modifiers.
6974 Reported by: Markus Triska <markus.triska@gmx.at>
6975
69762008-09-28 Dan Nicolaescu <dann@ics.uci.edu>
6977
6978 * dispnew.c (init_display): Return earlier when running as a daemon.
6979
69802008-09-27 Adrian Robert <Adrian.B.Robert@gmail.com>
6981
6982 * nsfont.m (nsfont_draw): Fix up composition rendering (cmp_from, ...).
6983
69842008-09-27 Eli Zaretskii <eliz@gnu.org>
6985
6986 * composite.c (Fcomposition_get_gstring)
6987 (Fcompose_region_internal, Fcompose_string_internal)
6988 (Ffind_composition_internal): Doc fix.
6989 (syms_of_composite) <compose-chars-after-function>: Doc fix.
6990 (syms_of_composite) <auto-composition-function>: Doc fix.
6991 (syms_of_composite) <composition-function-table>: Doc fix.
6992
69932008-09-25 Chong Yidong <cyd@stupidchicken.com>
6994
6995 * search.c (wordify): New argument for lax word-ends.
6996 (Fword_search_forward_lax, Fword_search_backward_lax): New funs.
6997
69982008-09-24 Dan Nicolaescu <dann@ics.uci.edu>
6999
7000 * lisp.h (is_daemon): Declare.
7001 * dispnew.c (init_display): Do not try to initialize the terminal
7002 when running as a daemon.
7003
70042008-09-22 Chong Yidong <cyd@stupidchicken.com>
7005
7006 * nsfns.m (compute_tip_xy): Use x_display_pixel_width and
7007 x_display_pixel_height.
7008
70092008-09-22 Martin Rudalics <rudalics@gmx.at>
7010
7011 * undo.c (record_point): Don't call Fundo_boundary for first
7012 change. (Bug#731)
7013
70142008-09-22 Juanma Barranquero <lekktu@gmail.com>
7015
7016 * emacs.c (Fdaemonp): Doc fix.
7017
70182008-09-22 Dan Nicolaescu <dann@ics.uci.edu>
7019
7020 * emacs.c (main): Place #ifdef in the proper place.
7021
70222008-09-21 Dan Nicolaescu <dann@ics.uci.edu>
7023
7024 * emacs.c (standard_args): Add --daemon.
7025 (main): Disconnect from the terminal when --daemon is passed.
7026 (is_daemon): New variable.
7027 (Fdaemonp): New function.
7028 (syms_of_emacs): Defsubr it.
7029
70302008-09-20 Chong Yidong <cyd@stupidchicken.com>
7031
7032 * xdisp.c (get_next_display_element): Handle string display
7033 correctly when checking for the end of a box run.
7034
70352008-09-20 Glenn Morris <rgm@gnu.org>
7036
7037 * fileio.c (Qdelete_by_moving_to_trash): New Lisp_Object.
7038 (syms_of_fileio): Add Qdelete_by_moving_to_trash.
7039 (Frename_file): Avoid copying to trash if a rename involves
7040 a delete. (Bug#964).
7041
70422008-09-20 Eli Zaretskii <eliz@gnu.org>
7043
7044 * keyboard.c (Fset_quit_char, Fset_input_meta_mode)
7045 (Fset_output_flow_control, Fcurrent_input_mode): Support MSDOS
7046 frames as well as termcap frames.
7047 (handle_interrupt): Remove "#ifndef MSDOS" around the call to
7048 get_named_tty.
7049
70502008-09-19 Eli Zaretskii <eliz@gnu.org>
7051
7052 * process.c (procfs_system_process_attributes): Fix cmdline in
7053 case /proc/PID/cmdline is empty.
7054
7055 * xterm.c (x_wm_set_size_hint): Use x_display_pixel_width and
7056 x_display_pixel_height.
7057
70582008-09-19 Juanma Barranquero <lekktu@gmail.com>
7059
7060 * frame.c (x_fullscreen_adjust): Declare var as Display_Info.
7061
7062 * w32fns.c (Fx_display_pixel_width, Fx_display_pixel_height)
7063 (compute_tip_xy): Use x_display_pixel_width, x_display_pixel_height.
7064
70652008-09-19 Dan Nicolaescu <dann@ics.uci.edu>
7066
7067 * dispextern.h (struct it): Move line_wrap away from the middle of
7068 bitfields. Move voffset in struct iterator_stack_entry after the
7069 bitfields. Move tab_width near after another short.
7070
70712008-09-18 Dan Nicolaescu <dann@ics.uci.edu>
7072
7073 * frame.h (struct frame): Move alpha from the middle of bitfields.
7074
7075 * window.h (struct window): Move frozen_window_start_p after the
7076 rest of the bitfields to reduce padding.
7077
70782008-09-18 Chong Yidong <cyd@stupidchicken.com>
7079
7080 * xterm.h (x_display_info): Remove `height' and `width' members.
7081
7082 * nsterm.h (ns_display_info): Remove `height' and `width' members.
7083
7084 * w32term.h (w32_display_info): Remove `height', `width',
7085 `height_in', and `width_in' members.
7086
b8ff72fa
SM
7087 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7088 New functions.
aac0c6e3
MR
7089 (x_calc_absolute_position): Use them.
7090 (x_term_init): Omit removed `height' and `width' members.
7091
b8ff72fa
SM
7092 * w32term.c (x_display_pixel_height, x_display_pixel_width):
7093 New functions.
aac0c6e3
MR
7094 (w32_read_socket, x_calc_absolute_position): Use them.
7095 (w32_initialize_display_info, w32_term_init): Omit removed members
7096 of w32_display_info.
7097
b8ff72fa
SM
7098 * nsterm.m (x_display_pixel_height, x_display_pixel_width):
7099 New functions.
7100 (ns_initialize_display_info): Omit removed members of ns_display_info.
aac0c6e3 7101
b8ff72fa
SM
7102 * xterm.c (x_display_pixel_height, x_display_pixel_width):
7103 New functions.
aac0c6e3
MR
7104 (x_calc_absolute_position): Use them.
7105 (x_term_init): Omit removed `height' and `width' members.
7106
7107 * xfns.c (Fx_display_pixel_width, Fx_display_pixel_height)
b8ff72fa
SM
7108 (compute_tip_xy):
7109 * frame.c (x_fullscreen_adjust):
aac0c6e3
MR
7110 * xmenu.c (menu_position_func): Use x_display_pixel_height and
7111 x_display_pixel_width.
7112
71132008-09-18 Kenichi Handa <handa@m17n.org>
7114
7115 * composite.c (fill_gstring_header): Don't check FROM and TO here.
7116 (composition_compute_stop_pos): Fix handling of static composition.
7117 (Fcomposition_get_gstring): Check FROM and TO at first.
7118
71192008-09-17 Stefan Monnier <monnier@iro.umontreal.ca>
7120
46e722a9 7121 * composite.c (Fcomposition_get_gstring): Yet another int/Lisp_Object
aac0c6e3
MR
7122 mixup (YAILOM).
7123
71242008-09-17 Chong Yidong <cyd@stupidchicken.com>
7125
7126 * indent.c (Fvertical_motion): Use position reported by iterator
7127 instead of PT for determining screen motion (bug#943).
7128
71292008-09-17 Romain Francoise <romain@orebokech.com>
7130
7131 * composite.c (composition_adjust_point): Fix int/EMACS_INT mixup.
7132
71332008-09-17 Kenichi Handa <handa@m17n.org>
7134
7135 * ftfont.c (ftfont_shape_by_flt): Downcase family name.
7136
7137 * composite.c (Fcomposition_get_gstring): Make bigger gstring_work
7138 if necessary.
7139
71402008-09-16 Kenichi Handa <handa@m17n.org>
7141
7142 * coding.c (make_conversion_work_buffer): Avoid calling
7143 Fget_buffer_create if it is not necessary.
7144
71452008-09-15 Martin Rudalics <rudalics@gmx.at>
7146
7147 * window.c (Fselect_window): Don't update window_select_count and
7148 use_time when norecord is not nil.
7149
71502008-09-14 Kenichi Handa <handa@m17n.org>
7151
7152 * fileio.c (Finsert_file_contents): Delete incorrect decrement of
7153 specpdl_ptr.
7154
71552008-09-12 Kenichi Handa <handa@m17n.org>
7156
7157 * indent.c (scan_for_column): Don't handle automatic composition
7158 if the current buffer is not associated with a window.
7159
7160 * composite.c (composition_reseat_it): If the current buffer is
7161 not associated with a window, ignore the automatic composition.
7162 (find_automatic_composition): Likewise.
7163
71642008-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
7165
7166 * term.c (close_gpm): New fun extracted from Fgpm_mouse_stop.
7167 (Fgpm_mouse_stop): Use it.
7168 * termhooks.h (close_gpm): Declare.
7169 * keyboard.c (tty_read_avail_input): Forcefully close the gpm
7170 connection if Gpm_GetEvent fails.
7171
7172 * window.c (set_window_buffer): Always preserve current-buffer.
7173
71742008-09-12 Glenn Morris <rgm@gnu.org>
7175
7176 * charset.c (init_charset): Warn if etc/charsets not found. (Bug#909)
7177
71782008-09-11 Glenn Morris <rgm@gnu.org>
7179
7180 * charset.c (charset-map-path): Doc fix.
7181
71822008-09-10 Kenichi Handa <handa@m17n.org>
7183
7184 * xdisp.c (handle_composition_prop): Set it->cmp_it.ch to -1.
7185
7186 * font.c (Ffont_shape_gstring): Make glyphs of non-nil adjustment
7187 compose a grapheme cluster with the preceding base glyph.
7188
7189 * composite.c (composition_compute_stop_pos): Fix previous change.
7190 Reset cmp_it->id to -1 at first.
7191
71922008-09-10 Glenn Morris <rgm@gnu.org>
7193
7194 * Makefile.in (character.o, chartab.o): Fix config.h typo.
7195
71962008-09-09 Chong Yidong <cyd@stupidchicken.com>
7197
7198 * keyboard.c (read_key_sequence): Reapply translation maps when
7199 switching keyboards.
7200
72012008-09-09 Kenichi Handa <handa@m17n.org>
7202
7203 * ftfont.c (ftfont_shape_by_flt): Use "combining" FLT for ASCII
7204 characters.
7205
7206 * composite.c (FORWARD_CHAR): Fix calculation
7207 of (POSITION).pos_byte.
7208 (composition_compute_stop_pos): Limit the search of composition to
7209 at most 500 characters ahead. If we reach the limit or find a
7210 newline, set cmp_it->ch to -2 and return 0.
7211 (composition_reseat_it): Handle the case that cmp_it->ch is -2.
7212
72132008-09-08 Kenichi Handa <handa@m17n.org>
7214
7215 * indent.c (Fvertical_motion): Be sure to set
7216 it_overshoot_expected if it.cmp_it.id is non-negative.
7217
72182008-09-07 Andreas Schwab <schwab@suse.de>
7219
7220 * callproc.c (Fcall_process): Don't hold references to string data
7221 across garbage collection. Move initialisation of new_argv down
7222 to avoid compiler bug.
7223
72242008-09-07 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7225
7226 * process.c (Fsystem_process_attributes): Doc fix.
7227
72282008-09-07 Chong Yidong <cyd@stupidchicken.com>
7229
7230 * callproc.c (Fcall_process): Canonicalize current directory name.
7231
7232 * xdisp.c (move_it_to): When moving by vpos, ensure that the
7233 iterator advances to the next line if the current line ends in a
7234 continued tab.
7235
72362008-09-07 Teodor Zlatanov <tzz@lifelogs.com>
7237
7238 * nsfont.m (nsfont_draw): Fix the references to missing gidx data
7239 member to point to cmp_from.
7240
7241 * xdisp.c: Doc fix for references to gidx data member.
7242
72432008-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
7244
7245 * buffer.c (Fbuffer_swap_text): Reset window->point markers.
7246
72472008-09-07 Kenichi Handa <handa@m17n.org>
7248
7249 * composite.c (FORWARD_CHAR): Check STOP after
7250 incrementing (POSITION).pos.
7251
72522008-09-06 Roland Winkler <Roland.Winkler@physik.uni-erlangen.de>
7253
7254 * process.c (Fsystem_process_attributes): Doc fix.
7255
72562008-09-06 Chong Yidong <cyd@stupidchicken.com>
7257
7258 * keyboard.c (Ftop_level): Doc fix.
7259
72602008-09-06 Eli Zaretskii <eliz@gnu.org>
7261
7262 * xmenu.c (xmenu_show) [!HAVE_X_WINDOWS]: If frame has a
7263 minibuffer, don't let lower part of menu invade the echo area.
7264
7265 * msdos.c (IT_menu_display): Use STRING_CHAR_ADVANCE instead of a
7266 "char *q" to access menu text and advance through it. Revert the
7267 change that displayed ">" instead of ASCII character 0x10.
7268
72692008-09-05 Eli Zaretskii <eliz@gnu.org>
7270
7271 * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
7272 toggle boxes and radio buttons on MS-DOS as well.
7273
72742008-09-05 Kenichi Handa <handa@m17n.org>
7275
7276 * composite.c (autocmp_chars): Check lookback count.
7277 (composition_compute_stop_pos): Set cmp_it->lookback.
7278 (composition_reseat_it): Check lookback count.
7279 (struct position_record): New struct.
7280 (FORWARD_CHAR, BACKWARD_CHAR, CHAR_COMPOSABLE_P): New macros.
7281 (find_automatic_composition): New function.
7282 (composition_adjust_point): Use find_automatic_composition.
7283
7284 * dispextern.h (struct composition_it): New member lookback.
7285
72862008-09-02 Chong Yidong <cyd@stupidchicken.com>
7287
7288 * indent.c (Fvertical_motion): Don't call move_it_by_lines again
7289 if moving by a single line.
7290
72912008-09-02 Andreas Schwab <schwab@suse.de>
7292
7293 * xterm.c (x_delete_display): Fix merge error.
7294
7295 * fileio.c (Fexpand_file_name): Remove unused variables.
7296
72972008-09-02 Eli Zaretskii <eliz@gnu.org>
7298
7299 * fileio.c (Fexpand_file_name): Copy argument `name' into local
7300 storage on all platforms, not just on DOS_NT.
7301
73022008-09-02 Jason Rumney <jasonr@gnu.org>
7303
b8ff72fa
SM
7304 * w32menu.c (Fx_popup_menu, Fx_popup_dialog, w32_menu_show):
7305 Ensure mouse is not grabbed after menu is finished.
aac0c6e3
MR
7306
73072008-09-01 Chong Yidong <cyd@stupidchicken.com>
7308
7309 * xfaces.c (Finternal_set_alternative_font_family_alist)
7310 (Finternal_set_alternative_font_registry_alist): Properly copy
7311 entire alist structure.
7312
73132008-09-01 Kenichi Handa <handa@m17n.org>
7314
d66c0241 7315 * ftfont.c (ftfont_spec_pattern): Don't create a charset if the
aac0c6e3 7316 representative chars of the script is a vector.
d66c0241
JB
7317 (ftfont_list): Handle the case where the representative chars of
7318 the script is a vector.
aac0c6e3
MR
7319
7320 * character.c (syms_of_character): Docstring of
7321 script-representative-chars fixed.
7322
73232008-08-31 Eli Zaretskii <eliz@gnu.org>
7324
7325 * msdos.c (BUILD_CHAR_GLYPH): New macro.
7326 (IT_menu_display): Use it instead of SET_CHAR_GLYPH to construct
7327 the menu. Allocate larger buffer for `text', to account for
7328 possible ^C characters.
7329
73302008-08-31 Martin Rudalics <rudalics@gmx.at>
7331
7332 * xdisp.c (prepare_menu_bars): Don't call
7333 Vwindow_size_change_functions with arg Qt.
7334
73352008-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
7336
7337 * font.h (font_range):
7338 * fileio.c (report_file_error):
46e722a9
SM
7339 * composite.c (composition_update_it): Yet another int/Lisp_Object
7340 mixup (YAILOM).
aac0c6e3
MR
7341
73422008-08-30 Glenn Morris <rgm@gnu.org>
7343
7344 * data.c (Fmake_variable_frame_local): Doc fix.
7345
7346 * frame.c (Fmodify_frame_parameters): Doc fix.
7347
73482008-08-30 Eli Zaretskii <eliz@gnu.org>
7349
7350 * w32.c (init_user_info): Allocate buf[] with xmalloc using the size
7351 needed by GetTokenInformation.
7352 (w32_system_process_attributes): Check return values of all system
7353 APIs.
7354
7355 * msdos.c (IT_display_cursor): Write "CURSOR ON/OFF" to termscript
7356 only when the state changes.
7357 (IT_update_begin, IT_update_end): Add termscript trace.
7358
7359 * w16select.c (Fw16_set_clipboard_data): Don't encode text if
7360 clipboard is unavailable. Set dst to NULL if it doesn't point to
7361 malloc'ed data.
7362 (Fw16_get_clipboard_data): Initialize htext to NULL, to avoid
7363 passing random values to xfree.
7364
7365 * dispnew.c (init_display): Set `tty's association in frame's
b8ff72fa 7366 parameters alist to the name of the terminal device, if that is known.
aac0c6e3
MR
7367
73682008-08-29 Jason Rumney <jasonr@gnu.org>
7369
7370 * w32uniscribe.c (uniscribe_check_otf): Don't fallback on DFLT script.
7371
73722008-08-29 Eli Zaretskii <eliz@gnu.org>
7373
7374 * composite.c (fill_gstring_body): Avoid compiler warnings.
7375
7376 * font.c (font_fill_lglyph_metrics): Use EMACS_INT in
7377 LGLYPH_SET_CODE to avoid compiler warnings.
7378
2ae37cf0 7379 * makefile.w32-in ($(BLD)/w32uniscribe.$(O)): Depend on composite.h.
aac0c6e3
MR
7380
7381 * composite.h (LGLYPH_SET_CODE): Cast `val' to EMACS_INT.
7382
7383 * w32uniscribe.c (uniscribe_shape): Shut up compiler warning in
7384 LGLYPH_SET_CODE.
7385
73862008-08-29 Kenichi Handa <handa@m17n.org>
7387
7388 * fileio.c (report_file_error): Don't downcase the first character
7389 of errstring if it is still unibyte.
7390
73912008-08-29 Kenichi Handa <handa@m17n.org>
7392
7393 These changes are to re-implement the automatic composition so
7394 that it doesn't use text properties.
7395
7396 * Makefile.in (ftfont.o): Depend on composite.h.
7397 (composite.o): Depend dispextern.h, font.h, frame, and window.h.
7398
7399 * character.h (Vunicode_category_table): Extern it.
7400
7401 * character.c (Vunicode_category_table): New variable.
7402 (syms_of_character): DEFVAR_LISP Vunicode_category_table.
7403
7404 * chartab.c (optimize_sub_char_table): Perform more greedy
7405 optimization.
7406
b8ff72fa
SM
7407 * composite.h (enum composition_method):
7408 Delete COMPOSITION_WITH_GLYPH_STRING.
aac0c6e3
MR
7409 (COMPOSITION_METHOD): Don't check COMPOSITION_WITH_GLYPH_STRING.
7410 (Vcomposition_function_table): Extern it.
7411 (LGSTRING_XXX, LGLYPH_XXX): Macros moved from font.h.
7412 (composition_gstring_put_cache, composition_gstring_from_id)
7413 (composition_gstring_p, composition_gstring_width)
7414 (composition_compute_stop_pos, composition_reseat_it)
7415 (composition_update_it, composition_adjust_point): Extern them.
7416 (Fcomposition_get_gstring): EXFUN it.
7417
d66c0241 7418 * composite.c: Include window.h, frame.h, dispextern.h, font.h.
aac0c6e3
MR
7419 (Vcomposition_function_table)
7420 (get_composition_id): Don't handle COMPOSITION_WITH_GLYPH_STRING.
b8ff72fa
SM
7421 (gstring_hash_table, gstring_work, gstring_work_headers):
7422 New variables.
aac0c6e3
MR
7423 (gstring_lookup_cache, composition_gstring_put_cache)
7424 (composition_gstring_from_id, composition_gstring_p)
7425 (composition_gstring_width, fill_gstring_header)
7426 (fill_gstring_body, autocmp_chars, composition_compute_stop_pos)
7427 (composition_reseat_it, composition_update_it)
b8ff72fa 7428 (composition_adjust_point, Fcomposition_get_gstring): New functions.
aac0c6e3
MR
7429 (syms_of_composite): Initialize gstring_hash_table, gstrint_work,
7430 and gstring_work_headers. DEFVAR_LISP composition-function-table.
a73f9c9d 7431 Defsubr composition_get_gstring.
aac0c6e3
MR
7432
7433 * dispextern.h (struct glyph): New union u.cmp. Delete the member
7434 cmp_id.
7435 (struct glyph_string): Delete the member gidx. New members
7436 cmp_id, cmp_from, and cmp_to.
7437 (enum it_method): Delete GET_FROM_COMPOSITION.
7438 (struct composition_it): New struct.
7439 (struct it): New member cmp_it, and iterator_stack_entry.cmp_it.
7440 Delete c, len, cmp_id, cmp_len in u.comp.
7441
7442 * font.h (enum lgstring_indices): Delete it.
b8ff72fa 7443 (LGSTRING_XXX, LGLYPH_XXX): Move these macros to composite.h.
aac0c6e3 7444 (enum lglyph_indices): Likewise.
b8ff72fa 7445 (font_range): Adjust extern.
aac0c6e3
MR
7446 (font_fill_lglyph_metrics): Extern it.
7447
7448 * font.c (QCf): New variable.
7449 (check_gstring): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7450 (font_prepare_composition): Delete this function.
7451 (font_range): Type and arguments changed.
7452 (Ffont_make_gstring, Ffont_fill_gstring): Delete them.
7453 (font_fill_lglyph_metrics): New function.
b8ff72fa 7454 (Ffont_shape_text): Rename to Ffont_shape_gstring and change arguments.
aac0c6e3 7455 (syms_of_font): DEFSYM QCf. Delete defsubr for
b8ff72fa
SM
7456 Sfont_make_gstring, Sfont_fill_gstring, Sfont_shape_text.
7457 Defsubr Sfont_shape_gstring.
aac0c6e3
MR
7458
7459 * fontset.h (font_for_char): Extern it.
7460
7461 * fontset.c (font_for_char): New function.
7462
7463 * ftfont.c: Include composite.h.
7464 (ftfont_resolve_generic_family): Add langset "en" to pattern.
b8ff72fa 7465 (ftfont_shape_by_flt): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
aac0c6e3
MR
7466
7467 * indent.c: Include composite.h and dispextern.h.
7468 (check_composition): Delete this function.
7469 (scan_for_column): Handle composition by
7470 composition_compute_stop_pos, composition_reseat_it, and
7471 composition_update_it.
7472 (compute_motion): Likewise.
7473 (Fvertical_motion): Fix checking of composition.
7474
7475 * keyboard.c (adjust_point_for_property): Check composition by
7476 composition_adjust_point.
7477
b8ff72fa 7478 * nsterm.m (ns_draw_glyph_string): Adjust for the change of
aac0c6e3
MR
7479 struct glyph_string.
7480
b8ff72fa
SM
7481 * term.c (encode_terminal_code): Adjust for the change of struct glyph.
7482 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3
MR
7483 struct glyph.
7484 (produce_composite_glyph): Likewise.
7485
b8ff72fa
SM
7486 * w32term.c (x_draw_composite_glyph_string_foreground):
7487 Adjust for the change of struct glyph_string.
aac0c6e3
MR
7488 (x_draw_glyph_string): Likewise.
7489
7490 * w32uniscribe.c (struct uniscribe_font_info): Include composite.h.
7491 (uniscribe_shape): Use LGSTRING_GLYPH_LEN, not LGSTRING_LENGTH.
7492
7493 * xdisp.c: Include font.h.
7494 (it_props): Delete the entry for Qauto_composed.
7495 (init_iterator): Initialize it->cmp_it.id to -1.
7496 (compute_stop_pos): Call composition_compute_stop_pos.
b8ff72fa 7497 (face_before_or_after_it_pos): Adjust for the change of struct it.
aac0c6e3
MR
7498 (handle_auto_composed_prop): Delete it.
7499 (handle_composition_prop): Handle only static composition.
7500 (next_overlay_string): Remove it->method == GET_FROM_COMPOSITION
7501 from xassert. Initialize it->cmp_it.stop_pos.
b8ff72fa 7502 (push_it): Adjust for the change of struct it.
aac0c6e3
MR
7503 (pop_it): Likewise.
7504 (get_next_element): Delete next_element_from_composition.
7505 (CHAR_COMPOSED_P): New macro.
7506 (get_next_display_element): For automatic composition, get a face
7507 from the font in the glyph-string.
7508 (set_iterator_to_next): For GET_FROM_BUFFER and GET_FROM_STRING,
b8ff72fa 7509 check composition by it->cmp_it.id. Delete GET_FROM_COMPOSITION case.
aac0c6e3
MR
7510 (next_element_from_string): Check if the character at the current
7511 position is composed by CHAR_COMPOSED_P.
7512 (next_element_from_buffer): Likewise.
d66c0241
JB
7513 (next_element_from_composition): Adjust for the change of struct it.
7514 Update it->cmp_it.
b8ff72fa
SM
7515 (dump_glyph): Adjust for the change of struct glyph.
7516 (fill_composite_glyph_string): Adjust for the change of struct
aac0c6e3
MR
7517 it and struct glyph. Don't handle automatic composition here.
7518 (fill_gstring_glyph_string): New function.
7519 (x_get_glyph_overhangs): Handle automatic composition.
b8ff72fa 7520 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the change of struct glyph.
aac0c6e3
MR
7521 (BUILD_GSTRING_GLYPH_STRING): New macro.
7522 (BUILD_GLYPH_STRINGS): Call BUILD_GSTRING_GLYPH_STRING for
7523 automatic composition.
b8ff72fa 7524 (append_composite_glyph): Adjust for the change of struct it and
aac0c6e3 7525 struct glyph.
b8ff72fa 7526 (x_produce_glyphs): Adjust for the change of struct it.
aac0c6e3 7527
b8ff72fa 7528 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
aac0c6e3
MR
7529 the change of struct glyph_string.
7530 (x_draw_glyph_string): Likewise.
7531
75322008-08-29 Glenn Morris <rgm@gnu.org>
7533
7534 * buffer.c (word-wrap): Doc fix.
7535 * xdisp.c (truncate-partial-width-windows): Doc fix.
7536 Increase default to 50.
7537
75382008-08-29 Chong Yidong <cyd@stupidchicken.com>
7539
7540 * xdisp.c (update_tool_bar_unwind): New function.
7541 (update_tool_bar): Temporarily set selected frame before building
7542 tool-bar items.
7543
75442008-08-28 Michael Albinus <michael.albinus@gmx.de>
7545
7546 * dbusbind.c (XD_ERROR, XD_DEBUG_MESSAGE): Use strncpy and
7547 snprintf, respectively.
7548 (xd_append_arg): Convert strings with Fstring_make_unibyte.
7549
75502008-08-28 Chong Yidong <cyd@stupidchicken.com>
7551
7552 * Makefile.in: Revert (undocumented) 2008-08-20 change adding
7553 LDFLAGS to GNUstep CC invocation.
7554
75552008-08-27 Chong Yidong <cyd@stupidchicken.com>
7556
7557 * indent.c (Fvertical_motion): Revert last change. Handle the
7558 general case where we are moving forward, and PT spans multiple
7559 screen lines.
7560
7561 * eval.c (find_handler_clause): Temporarily increase
7562 max-lisp-eval-depth while printing the backtrace buffer, to
7563 guarantee that help-mode code can run.
7564
75652008-08-27 Eli Zaretskii <eliz@gnu.org>
7566
7567 * msdos.c (Fmsdos_remember_default_colors): Don't reverse frame
7568 colors under -rv.
7569 (IT_set_frame_parameters): Don't swap foreground and background
7570 colors if `(reverse . t)' is present in the frame properties.
7571 (internal_terminal_init): Call init_frame_faces only for the
7572 initial frame.
7573
75742008-08-27 Andreas Schwab <schwab@suse.de>
7575
7576 * dired.c (Ffile_attributes): Avoid compiler warning in bitshift.
7577
75782008-08-27 Andreas Schwab <schwab@suse.de>
7579
7580 * search.c (search_buffer): Set char_base to zero only at the end.
7581
75822008-08-27 Kenichi Handa <handa@m17n.org>
7583
b8ff72fa 7584 * fileio.c (report_file_error): Fix handling of multibyte error string.
aac0c6e3
MR
7585
75862008-08-27 Andreas Seltenreich <seltenreich@gmx.de>
7587
7588 * xterm.c (x_term_init): Temporarily hide the partially
7589 initialized terminal while calling vendor-specific-keysyms.
7590
75912008-08-26 Eli Zaretskii <eliz@gnu.org>
7592
7593 * msdos.c (internal_terminal_init): Most initializations done only
7594 once, especially initial_screen_colors[] and termscript open.
7595
75962008-08-26 Chong Yidong <cyd@stupidchicken.com>
7597
7598 * eval.c (Fcondition_case): Doc fix.
7599
7600 * widgetprv.h (EmacsFramePart): Change font member to the new font
7601 struct.
7602
7603 * widget.c: Include character.h and font.h for XSETFONT.
7604 (setup_frame_gcs): Compute X font id from font struct, just once.
7605
76062008-08-26 Eli Zaretskii <eliz@gnu.org>
7607
7608 * term.c (get_named_tty): Fix last change.
7609
76102008-08-26 Chong Yidong <cyd@stupidchicken.com>
7611
7612 * indent.c (Fvertical_motion): If moving forward starting from a
b8ff72fa 7613 multi-line string, move the iterator to the last line of that string.
aac0c6e3
MR
7614
76152008-08-25 Eli Zaretskii <eliz@gnu.org>
7616
7617 * frame.c (do_switch_frame): Mark previously displayed frame as
7618 obscured for FRAME_MSDOS_P frames as well.
7619
76202008-08-24 Eli Zaretskii <eliz@gnu.org>
7621
7622 * frame.c (make_terminal_frame): Initialize f->terminal,
7623 f->terminal->reference_count, and scroll bars on MS-DOS as well.
7624 Set the top frame to newly created frame.
7625 (Fmake_terminal_frame): Reuse the_only_display_info.
7626
7627 * vm-limit.c (get_lim_data) [MSDOS]: Use alternative methods of
7628 estimating available memory.
7629
b97439ce 76302008-08-23 David Reitter <david.reitter@gmail.com>
aac0c6e3
MR
7631
7632 * nsterm.m (ns_draw_window_cursor): Don't call
7633 NSDisableScreenUpdates and NSEnableScreenUpdates on
7634 non-NS_IMPL_COCOA systems.
7635
76362008-08-23 Andreas Schwab <schwab@suse.de>
7637
7638 * process.c (procfs_system_process_attributes): Fix use of
7639 uninitialized variables.
7640
76412008-08-23 Eli Zaretskii <eliz@gnu.org>
7642
7643 * emacs.c (main) [MSDOS]: Call syms_of_xmenu.
7644
7645 * dispnew.c (init_display): Remove MS-DOS specific conditions for
7646 calling tty-set-up-initial-frame-faces.
7647
b8ff72fa
SM
7648 * xmenu.c (Fx_popup_dialog, Fx_popup_menu, xmenu_show):
7649 Allow MSDOS frames along with X frames.
aac0c6e3
MR
7650
7651 * termhooks.h (TERMINAL_ACTIVE_P): Handle output_msdos_raw in
7652 addition to output_termcap.
7653
7654 * xdisp.c (redisplay_internal) [MSDOS]: Don't call set_tty_color_mode.
7655
7656 * termchar.h (FRAME_TTY): Support output_msdos_raw.
7657 (struct tty_display_info) [MSDOS]: Add fields related to mouse
7658 highlight.
7659
7660 * process.c [!subprocesses]: Define QCname.
7661 (syms_of_process): Intern and staticpro it.
7662
7663 * w16select.c (Fw16_set_clipboard_data, Fw16_get_clipboard_data):
b8ff72fa
SM
7664 Adjust for changes in encoding/decoding routines.
7665 Use encode_coding_object and decode_coding_object instead of
aac0c6e3
MR
7666 encode_coding and decode_coding.
7667
b8ff72fa 7668 * sysdep.c (init_sys_modes): Call dos_ttraw with tty_out as argument.
aac0c6e3
MR
7669
7670 * dosfns.c: Include frame.h before termhooks.h.
7671 (dos_cleanup): Use CURTTY ()->termscript instead of a global
7672 variable termscript.
7673
7674 * s/msdos.h (USER_FULL_NAME): Define.
7675 (SYSTEM_PURESIZE_EXTRA): Bump up to 100K.
7676
7677 * editfns.c (USER_FULL_NAME): Define to pw->pw_gecos if undefined.
7678 (Fuser_full_name): Use USER_FULL_NAME instead of a literal
7679 pw->pw_gecos.
7680
7681 * keyboard.c (handle_interrupt) [MSDOS]: Call cursor_to with
7682 SELECTED_FRAME as additional (1st) argument.
7683 (tty_read_avail_input): Handle output_msdos_raw in
7684 addition to output_termcap.
7685
7686 * msdos.c: Include frame.h before termhooks.h.
7687 (mouse_on, mouse_off, mouse_moveto, mouse_init)
7688 (msdos_set_cursor_shape, IT_set_face, IT_write_glyphs)
7689 (show_mouse_face, IT_clear_end_of_line, IT_clear_screen)
7690 (IT_clear_to_end, IT_cursor_to, IT_display_cursor, IT_cmgoto)
7691 (IT_set_terminal_modes, IT_reset_terminal_modes)
7692 (IT_set_frame_parameters): Use tty->termscript instead of a global
7693 variable termscript.
7694 (IT_write_glyphs): Use tty->terminal->terminal_coding instead of a
7695 global variable terminal_coding. Don't refer to
7696 Vnonascii_translation_table.
7697 (internal_terminal_init): Set Vwindow_system in current_kboard.
7698 Don't use TTY_CHAR_INS_DEL_OK. Set Vinitial_window_system.
7699 Announce date and time of session start, if termscript is open.
7700 Don't zero out the_only_display_info (it is done in
b8ff72fa
SM
7701 term.c:init_tty). Open termscript only of not already open.
7702 Log "SCREEN SAVED" here, instead of IT_set_terminal_modes. Init mouse
aac0c6e3
MR
7703 here instead of dos_ttraw. Don't initialize display if this is an
7704 initial tty. Don't set FRAME_FONT.
7705 (Vwindow_system_version): Bump to 23.
7706 (dos_ttraw): Accept a TTY argument; all callers fixed. If mouse
7707 is available, set up mouse_position_hook.
7708 (dos_ttraw, IT_set_terminal_modes): If called with initial
7709 terminal, do nothing.
7710 (IT_set_frame_parameters): Handle the Qtty_type frame
7711 parameter by calling internal_terminal_init.
7712 (dos_set_window_size, show_mouse_face)
7713 (clear_mouse_face, IT_note_mode_line_highlight)
7714 (IT_note_mouse_highlight, IT_update_begin, IT_frame_up_to_date)
7715 (dos_rawgetc): Use tty_display_info instead of x_display_info.
7716 (initialize_msdos_display): New function.
7717 (IT_cursor_to, IT_clear_to_end, IT_clear_screen)
7718 (IT_clear_end_of_line, IT_insert_glyphs, IT_write_glyphs)
7719 (IT_delete_glyphs, IT_ring_bell, IT_reset_terminal_modes)
7720 (IT_set_terminal_modes, IT_set_terminal_window, IT_update_begin):
b8ff72fa 7721 Accept additional argument: a pointer to a frame. Update all callers.
aac0c6e3
MR
7722 (request_sigio, unrequest_sigio): Don't define, now defined on
7723 sysdep.c.
7724 (IT_write_glyphs): Rewrite to use encode_terminal_code.
7725
7726 * term.c [MSDOS]: Include msdos.h.
7727 (init_tty) [MSDOS]: Reuse most of WINDOWSNT branch. Change cpp
7728 conditional to DOS_NT. Allow only one call to this function in a
7729 session. Don't allocate a new struct tty_display_info; instead,
7730 reuse the_only_display_info. Call get_tty_size to get screen
7731 dimensions. Call init_baud_rate to set bad_rate.
7732 (dissociate_if_controlling_tty) [MSDOS]: Ifdef away function body.
7733 (Fsuspend_tty) [MSDOS]: Don't close input and output.
b8ff72fa 7734 (Fresume_tty) [MSDOS]: Don't reopen the TTY; instead, use stdin/stdout.
aac0c6e3
MR
7735 (get_tty_terminal, get_named_tty, Ftty_type)
7736 (Fcontrolling_tty_p): Handle output_msdos_raw in addition to
7737 output_termcap.
b8ff72fa
SM
7738 (Fresume_tty, Fsuspend_tty, init_tty, delete_tty):
7739 Call add_keyboard_wait_descriptor and delete_keyboard_wait_descriptor
2ae37cf0 7740 only when subprocesses are supported.
aac0c6e3
MR
7741
7742 * frame.c (make_terminal_frame) [MSDOS]: Adjust initialization of
7743 f->output_data.x.
7744 (Fmake_terminal_frame) [MSDOS]: Don't allow creation of new
7745 terminal devices.
7746
5582fbc7 7747 * msdos.h: Remove definition of struct x_display_info and struct
aac0c6e3
MR
7748 x_output.
7749 (FRAME_FONT): Use output_data.tty.
7750 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Don't define.
b8ff72fa
SM
7751 (struct x_display_info): Rename from display_info. Update all users in
7752 msdos.c.
aac0c6e3 7753 (struct x_output): Remove background_pixel and foreground_pixel.
b8ff72fa 7754 (the_only_display_info): Rename from the_only_x_display.
aac0c6e3
MR
7755 (dos_ttraw): Update prototype.
7756
7757 * Makefile.in (MSDOS_OBJ): Add xmenu.o.
7758 (SOME_MACHINE_LISP): Add ../lisp/term/pc-win.elc.
7759
77602008-08-23 Jason Rumney <jasonr@gnu.org>
7761
7762 * image.c (enum tiff_keyword_index, tiff_format): Add :index keyword.
7763 (fn_TIFFSetDirectory): New library function used.
7764 (init_tiff_functions) [HAVE_NTGUI]: Initialize it.
7765 (tiff_load): Use :index to select among multiple images. Set count
7766 property when multiple images exist.
7767 (gif_format): Use :index, not :image.
7768
77692008-08-23 Chong Yidong <cyd@stupidchicken.com>
7770
7771 * xdisp.c (try_scrolling): Check INT_MAX instead of
7772 MOST_POSITIVE_FIXNUM for maximum integer value. Include limits.h
7773 to obtain INT_MAX.
7774
77752008-08-21 İsmail Dönmez <ismail@namtrac.org> (tiny change)
7776
7777 * xterm.c (x_delete_display): Don't call XrmDestroyDatabase on GTK+.
7778
77792008-08-21 Christian Faulhammer <opfer@gentoo.org> (tiny change)
7780
7781 * Makefile.in (temacs${EXEEXT}): On GNUstep, link to appropriate
7782 GNUstep library location.
7783
77842008-08-21 Chong Yidong <cyd@stupidchicken.com>
7785
7786 * xfaces.c (x_update_menu_appearance): Check validity of menu font
7787 before using it.
7788
7789 * puresize.h (BASE_PURESIZE): Increase to 1250000.
7790
77912008-08-20 Adrian Robert <Adrian.B.Robert@gmail.com>
7792
7793 * nsfns.m (ns-read-file-name): Add casts to avoid warning.
7794 (ns-convert-utf8-nfd-to-nfc): Warn if cannot execute correctly.
7795 * nsfont.m (nsfont_draw): Compare indexed colors to 0, not nil.
7796 * nsterm.h (EmacsView-unlockFocusNeedsFlush:): Add declaration.
7797 (EmacsApp-cursor_blink_handler): Remove declaration.
7798 * nsterm.m (ns_draw_glyph_string): Update first conditional body to
7799 match 01 Feb 2008 changes in xterm.c.
7800 (ns_read_socket): Add cast to avoid warning.
7801 (EmacsApp-application:openFiles:): Don't call replyToOpenOrPrint: on
7802 GNUstep.
7803
78042008-08-20 Chong Yidong <cyd@stupidchicken.com>
7805
7806 * xselect.c (x_get_foreign_selection): Return nil if desired
7807 selection could not be obtained, instead of signalling an error.
7808
78092008-08-20 David Reitter <david.reitter@gmail.com>
7810
7811 * nsfns.m (ns_lisp_to_cursor_type): Replace with generic xfns.c.
7812 * nsterm.m: Remove ns-specific code for cursor blinking.
7813 (ns_draw_window_cursor): Clear cursor properly rather than
7814 redrawing the area. Respect width of bar cursors.
7815 These changes enable the use of generic blink-cursor-mode and
7816 generic cursor types in NS and support smooth cursor movements (do
7817 not blink off after command).
7818 * xdisp.c (get_phys_cursor_geometry): Redraw wider rectangle on
7819 Nextstep, too.
7820
78212008-08-19 Kenichi Handa <handa@m17n.org>
7822
7823 * font.c (Vfont_log_deferred): New variable.
7824 (font_add_log): Check Vfont_log_deferred.
7825 (font_deferred_log): New function.
7826
7827 * font.h (font_deferred_log): Extern it.
7828
7829 * fontset.c (reorder_font_vector): Use encoding charset of fonts
7830 for sorting.
7831 (face_for_char): Use deferred log.
7832
78332008-08-18 Kenichi Handa <handa@m17n.org>
7834
7835 * fontset.c (face_for_char): Add font log.
7836
7837 * font.c (font_add_log): Add the font properties :script, :lang,
7838 and :otf in the log.
7839
78402008-08-17 Chong Yidong <cyd@stupidchicken.com>
7841
7842 * xdisp.c: Remove dead code.
7843 (handle_invisible_prop, next_overlay_string): Defer call to
7844 setup_for_ellipsis.
7845 (handle_stop, set_iterator_to_next): Call setup_for_ellipsis.
7846
78472008-08-15 Chong Yidong <cyd@stupidchicken.com>
7848
7849 * xfaces.c (lookup_derived_face): Properly handle possible zero
7850 return value of get_lface_attributes.
7851 (merge_faces): Don't tell lookup_derived_face to signal an error
7852 if face is not found.
7853
7854 * dired.c (Fdirectory_files): Doc fix.
7855
7856 * process.c (make_process): Initialize kill_without_query struct
7857 member.
7858
78592008-08-15 Eli Zaretskii <eliz@gnu.org>
7860
7861 * w32.c (w32_system_process_attributes) [_MSC_VER < 1300]:
7862 Alternative calculation of totphys for Visual Studio 6.
7863
7864 * w32fns.c [_MSC_VER && _MSC_VER < 1300]: Declare HMONITOR.
7865
7866 * w32.c (_MEMORY_STATUS_EX, MEMORY_STATUS_EX, LPMEMORY_STATUS_EX):
7867 Rename from _MEMORYSTATUSEX, MEMORYSTATUSEX, LPMEMORYSTATUSEX.
7868 All users changed.
7869 (stat): Only root directory passed to GetDriveType. Allow RAM
7870 disk as well as local fixed disk when w32-get-true-file-attributes
7871 is set to `local'.
7872 (CopySid_Proc, EqualSid_Proc, GetLengthSid_Proc): New typedefs.
7873 (equal_sid, get_length_sid, copy_sid): New wrapper functions.
7874 (w32_cached_id, w32_add_to_cache): New functions.
7875 (get_name_and_id): Look account names in the cache before calling
7876 lookup_account_sid.
7877 (g_b_init_get_length_sid, g_b_init_equal_sid, g_b_init_copy_sid):
7878 New initialization flags.
7879 (globals_of_w32): Initialize them to zero.
7880 (w32_system_process_attributes): Use w32_cached_id and
7881 w32_add_to_cache.
7882
78832008-08-14 Lawrence Mitchell <wence@gmx.li>
7884
7885 * lread.c (Fread_char, Fread_char_exclusive): If no character
7886 event is read before timeout is reached, return nil, rather than
7887 converting to a number.
7888
78892008-08-14 Chong Yidong <cyd@stupidchicken.com>
7890
7891 * fns.c (use_dialog_box): Doc fix.
7892
7893 * s/darwin.h: Undefine HAVE_RES_INIT, which appears to be harmful
7894 on OS X.
7895
78962008-08-13 Chong Yidong <cyd@stupidchicken.com>
7897
7898 * frame.c (Qns_parse_geometry): New var.
7899 (Fx_parse_geometry): For HAVE_NS, call ns-parse-geometry.
7900
79012008-08-11 Chong Yidong <cyd@stupidchicken.com>
7902
7903 * xdisp.c (x_produce_glyphs): Handle the case when font has no
7904 space character in calculating tabs.
7905
79062008-08-11 Dan Nicolaescu <dann@ics.uci.edu>
7907
7908 * Makefile.in (bootstrap-emacs): Use ln -f in the CANNOT_DUMP case.
7909
79102008-08-10 Glenn Morris <rgm@gnu.org>
7911
7912 * process.c (procfs_system_process_attributes): Use EMACS_INTs to
7913 silence gcc "limited range of data type" warnings in some
7914 make_fixnum_or_float calls.
7915
79162008-08-09 Eli Zaretskii <eliz@gnu.org>
7917
7918 * w32.c (w32_system_process_attributes): If the process does not
7919 exist, return nil.
7920
7921 * w32.c: Include thelp32.h, psapi.h and coding.h.
7922 (_MEMORYSTATUSEX, _PROCESS_MEMORY_COUNTERS_EX): New struct
7923 declarations.
7924 (CreateToolhelp32Snapshot_Proc, Process32First_Proc)
7925 (Process32Next_Proc): New typedefs.
7926 (g_b_init_create_toolhelp32_snapshot, g_b_init_process32_first)
7927 (g_b_init_process32_next, g_b_init_open_thread_token)
7928 (g_b_init_impersonate_self, g_b_init_revert_to_self)
7929 (g_b_init_get_process_memory_info, g_b_init_global_memory_status)
7930 (g_b_init_get_process_working_set_size)
7931 (g_b_init_global_memory_status_ex): New static variables.
7932 (globals_of_w32): Initialize them.
7933 (create_toolhelp32_snapshot, process32_first, process32_next)
7934 (open_thread_token, impersonate_self, revert_to_self)
7935 (get_process_memory_info, get_process_working_set_size)
7936 (global_memory_status, global_memory_status_ex): New wrapper
7937 functions.
7938 (w32_list_system_processes, w32_system_process_attributes)
7939 (enable_privilege, restore_privilege, ltime, process_times):
7940 New functions.
7941 (convert_time_raw): New function.
7942 (convert_time): Remove conversion of FILETIME into time in 100
7943 nsec units, call convert_time_raw instead.
7944
7945 * process.h (w32_list_system_processes, w32_system_process_attributes):
7946 Add prototypes.
7947 (Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname)
7948 (Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcutime)
7949 (Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs, Quser, Qgroup)
7950 (Qetime, Qpcpu, Qpmem, Qtpgid, Qcstime): Add extern declarations.
7951
7952 * process.c (Fsystem_process_attributes): Doc fix.
7953
79542008-08-08 Chong Yidong <cyd@stupidchicken.com>
7955
7956 * xdisp.c (move_it_to): When stopping at a charpos, check if that's
7957 a continued multi-char glyph; if so, advance to the actual glyph.
7958
79592008-08-07 Dan Nicolaescu <dann@ics.uci.edu>
7960
7961 * s/darwin.h (OTHER_FILES): Do not define here, defined in config.in.
7962
7963 * Makefile.in (ALL_OBJC_CFLAGS): New variable.
7964 (.m.o): Use it.
7965 * config.in: Regenerate.
7966
79672008-08-07 Chong Yidong <cyd@stupidchicken.com>
7968
7969 * xdisp.c (redisplay_window): Revert last change.
7970 (try_window): Check bottom scroll margin too.
7971
79722008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7973
7974 * config.in: Regenerate.
7975
7976 * Makefile.in (emacs): Remove ifndef NS conditional for 'emacs
7977 -list-load-path-shadows'.
7978 (nsgui.h): Reduce number of things depending on it.
7979
79802008-08-06 Chong Yidong <cyd@stupidchicken.com>
7981
7982 * xdisp.c (try_scrolling): Use iterator to find the scroll margin,
7983 instead of window-end which does the wrong thing at eob.
7984 (try_cursor_movement): Minor optimization.
7985 (redisplay_window): If scroll margin is defined, don't assume
7986 window doesn't need scrolling.
7987
79882008-08-06 Adrian Robert <Adrian.B.Robert@gmail.com>
7989
7990 * config.in: Regenerate.
7991
7992 * Makefile.in: Move nsXXX.m dependencies into big alphabetical list.
7993 (mostlyclean): Don't delete *.d under NS.
7994
7995 * nsterm.h (NS_HAVE_INTEGER): Change to NS_HAVE_NSINTEGER.
7996
79972008-08-06 Kenichi Handa <handa@m17n.org>
7998
7999 * xfont.c (xfont_list_family): Return a list of symbols, not strings.
8000
80012008-08-06 Andreas Schwab <schwab@suse.de>
8002
8003 * config.in: Regenerate.
8004
80052008-08-05 Chong Yidong <cyd@stupidchicken.com>
8006
8007 * xdisp.c (redisplay_window): Don't enforce scroll-margin when
8008 forcing a window start.
8009
8010 * fileio.c (Vauto_save_list_file_name): Move here from file.el.
8011 (auto_save_1): Update modtime when auto-save-list-file-name is on.
8012
80132008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8014
8015 * emacs.c (main): Under NS, set working dir to HOME when get a "psn"
8016 argument.
8017
80182008-08-05 Juanma Barranquero <lekktu@gmail.com>
8019
8020 * buffer.c (syms_of_buffer) <scroll-up-aggressively>:
8021 <scroll-down-aggressively, before-change-functions>:
8022 <after-change-functions>: Reflow docstrings.
8023
80242008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8025 Ken Raeburn <raeburn@gnu.org>
8026
8027 Dock menu customization, based on a patch by Ken Raeburn, plus some
8028 other fixes.
8029 * nsmenu.m (dockMenu): New variable.
8030 (EmacsDialog -clicked:): Fix mistake in change of 2008-07-17.
8031
8032 * nsterm.h (dockMenu): Declare.
8033
8034 * nsterm.m (KEY_NS_NEW_FRAME): New definition.
8035 (ns_term_init): Initialize dockMenu.
8036 (EmacsApp -newFrame:, -applicationDockMenu:): New methods.
8037 (EmacsView -windowShouldClose:): Don't behave specially if <= 1 frame
8038 left.
8039
8040 * lisp.h (LSB_TAG): Use on DARWIN_OS, not NS_IMPL_COCOA.
8041
80422008-08-04 Chong Yidong <cyd@stupidchicken.com>
8043
8044 * nsterm.h: Test directly for NS_HAVE_INTEGER before defining it.
8045
8046 * config.in: Regenerate.
8047
80482008-08-04 Seiji Zenitani <zenitani@mac.com>
8049
8050 * nsfns.m (x-create-frame): Set the frame parameter alpha to nil.
8051
80522008-08-04 Chong Yidong <cyd@stupidchicken.com>
8053
8054 * nsterm.h (find_and_call_menu_selection): Fix prototype.
8055
80562008-08-04 Adrian Robert <Adrian.B.Robert@gmail.com>
8057
8058 * emacs.c (main: unexec_init_emacs_zone): Call if on DARWIN_OS.
8059
8060 * keyboard.h: Comment an #endif.
8061
8062 * lisp.h (have_menus_p): Adjust comment.
8063
8064 * menu.c (find_and_return_menu_selection): Fix comparison with
8065 client_data.
8066
8067 * nsmenu.m (popup_activated_flag): New variable.
8068 (popup_activated): New function.
8069 (menu-or-popup-active-p): New exported lisp definition.
8070 (ns_popup_menu): Set popup_activated_flag. Call discard_menu_items()
8071 when popup done.
8072 (ns_popup_dialog): Set popup_activated_flag.
8073
8074 * nsterm.m (EmacsView -conversationIdentifier): Use NSInteger
8075 version for GNUstep (handled by conditional typedef in nsterm.m).
8076 (ns_get_color): Remove special-casing for "darkblue", "dark blue" (now
8077 in rgb.txt).
8078
8079 * process.c (init_process): Use DARWIN_OS, not DARWIN.
8080
8081 * sysselect.h: Conditionalize init_process undef on DARWIN_OS.
8082
8083 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): Do it also under NS.
8084
8085 * xdisp.c (redisplay_internal, note_mouse_highlight): Under NS,
8086 shortcircuit if popup_activated like GTK and X toolkit.
8087
8088 * m/inter386.h: Change DARWIN to DARWIN_OS.
8089
8090 * s/darwin.h: Add #define DARWIN_OS. Get rid of C_SWITCH_SYSTEM def.
8091 Change LIBS_MACGUI to LIBS_NSGUI. Move temacs-conditionalized defs
8092 closer to C_SWITCH_SYSTEM_TEMACS so usage is understood. Expand
8093 comment on NO_SOCK_SIGIO.
8094
80952008-08-03 Chong Yidong <cyd@stupidchicken.com>
8096
8097 * nsterm.m (windowDidResize): Remove stopModal call.
8098
80992008-08-03 Andreas Schwab <schwab@suse.de>
8100
8101 * vm-limit.c (get_lim_data) [HAVE_GETRLIMIT && RLIMIT_AS]: Define.
8102 (check_memory_limits): Don't handle HAVE_GETRLIMIT here.
8103
81042008-08-02 Chong Yidong <cyd@stupidchicken.com>
8105
8106 * vm-limit.c (check_memory_limits): Don't use getrlimit on cygwin.
8107 Don't use uninitialized pointer variable when using getrlimit.
8108
81092008-08-02 Jason Rumney <jasonr@gnu.org>
8110
8111 * w32font.c (compute_metrics): Don't mess with glyph_idx setting here.
8112
81132008-08-02 Eli Zaretskii <eliz@gnu.org>
8114
8115 * alloc.c (NSTATICS): Bump to 0x640.
8116
8117 * s/gnu-linux.h (HAVE_PROCFS, LISTPROC, PROCATTR): New defines.
8118
8119 * lisp.h: Add prototype for directory_files_internal.
8120
8121 * process.c (Fsystem_processes_list, Fsystem_process_attributes):
8122 New functions.
8123 (syms_of_process): Defsubr them. Add initializations for various
8124 Q* symbols used in procfs_system_process_attributes.
8125 (procfs_list_system_processes, procfs_system_process_attributes)
8126 [HAVE_PROCFS]: New functions.
8127 (time_from_jiffies, ltime_from_jiffies, get_up_time, procfs_ttyname)
8128 (procfs_get_total_memory): New functions.
8129
81302008-08-01 Juanma Barranquero <lekktu@gmail.com>
8131
8132 * xfaces.c (Fx_load_color_file): Fix previous change;
8133 it is #ifdef WINDOWSNT, not WINDOWS_NT.
8134
81352008-08-01 Michael Albinus <michael.albinus@gmx.de>
8136
8137 * dbusbind.c (xd_read_message): Handle D-Bus error messages.
8138
81392008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8140
8141 * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
8142
81432008-08-01 Chong Yidong <cyd@stupidchicken.com>
8144
8145 * nsfns.m (ns_frame_parm_handlers): Add empty entry for x_set_alpha.
8146
8147 * nsterm.m (EmacsApp -application:openFiles:): GNUstep does not
8148 define NSApplicationDelegateReplySuccess.
8149 (EmacsView -converstationIdentifier): Use long instead of
8150 NSInteger for GNUstep, since it doesn't have NSInteger.
8151
8152 * xmenu.c: Revert last change.
8153
8154 * keyboard.h: Fix last change.
8155
81562008-08-01 Juanma Barranquero <lekktu@gmail.com>
8157
8158 * xfaces.c (x-load-color-file): Use RGB() instead of manually shifting
8159 on Windows.
8160
81612008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8162
8163 Warning clearing and clean-up in NS port.
8164 * keyboard.h (xmalloc_widget_value, digest_single_submenu):
8165 Add prototypes.
8166 * nsgui.h (FACE_DEFAULT): Remove, unused.
8167 (XGCValues): Change colors to unsigned long.
8168 * nsterm.h (EmacsApp): Add declaration of all methods implemented in
8169 nsterm.m.
8170 (EmacsMenu -addItemWithWidgetValue:): Change to use NSMenuItem class.
8171 (ns_list_fonts): Remove, unused.
8172 (ns_font_to_xlfd, ns_fontname_to_xlfd): Drop prototypes.
8173 * nsfns.m (interpret_services_menu): Use NSMenuItem class.
8174 * nsfont.m (nsfont_open): Fix cast error in glyphs,metrics alloc.
8175 (nsfont_draw): Compare face colors to 0, not nil.
8176 * nsmenu.m (struct widget_value): Drop unneeded declaration.
8177 (EmacsMenu -addItemWithWidgetValue:, -fillWithWidgetValue:)
8178 (-addSubmenuWithTitle:): Use NSMenuItem class.
8179 (ns_popup_menu): Use NO, not NULL, for enabled setting.
8180 * nsterm.m (ns_draw_glyph_string): Don't compare font to ~0.
8181 (ns_clip_to_row): Make gc arg a BOOL.
8182 (ns_draw_fringe_bitmap, ns_draw_window_cursor): Use YES, NO in
8183 ns_clip_to_row() call.
8184 (ns_draw_glyph_string): Drop face comparison to ~0 (no longer
8185 used). Cast FRAME_FONT assignments.
8186 (ns_read_socket): Cast call to EmacsApp-fulfillService:withArg:.
8187 (ns_string_to_lispmod): Change arg to const char.
8188 (ns_term_init): Use NSMenuItem class.
8189 (EmacsApp -openFile:): Move to different section of file.
8190 (EmacsApp -application:openFiles:): Don't return a value, call
8191 -replyToOpenOrPrint:.
8192 (EmacsView -keyDown:): Fix up cast.
8193 (EmacsView -converstationIdentifier): Use NSInteger instead of long.
8194 (EmacsView -menuDown:): Cast tag in call to
8195 find_and_call_menu_selection().
8196 (ns_list_fonts): Remove, unused.
8197 (ns_font_to_xlfd): Make static. Cast result of UTF8String.
8198 (ns_fontname_to_xlfd): Make static.
8199 * w32menu.c (xmalloc_widget_value, digest_single_submenu):
8200 Remove prototypes (now in keyboard.h).
8201 (next_menubar_widget_id): Remove, unused.
8202 * xmenu.c (xmalloc_widget_value, digest_single_submenu):
8203 Remove prototypes (now in keyboard.h).
8204 * xfaces.c (ns_list_fonts, w32_list_fonts): Remove, unused.
8205
82062008-08-01 Dan Nicolaescu <dann@ics.uci.edu>
8207
8208 * Makefile.in (dispnew.o, gtkutil.o, sound.o, atimer.o)
8209 (floatfns.o): Depend on syssignal.h.
8210 (term.o): Depend on syssignal.h, systty.h, and $(INTERVAL_SRC).
8211
8212 * systty.h: Fix previous change that removed BSD_TERMIOS.
8213 Add comments to #ifdefs.
8214
82152008-08-01 Adrian Robert <Adrian.B.Robert@gmail.com>
8216
8217 * w32fns.c (w32-load-color-file): Remove.
8218 (x-open-connection): Use renamed Fx_load_color_file.
8219 * xfaces.c (x-load-color-file): Add.
8220 * nsterm.m (ns_initialize): Load colors from etc/rgb.txt instead of
8221 Emacs.clr.
8222 (hide_hourglass): BLOCK_INPUT before UNBLOCK.
8223
82242008-07-31 Michael Albinus <michael.albinus@gmx.de>
8225
8226 * dbusbind.c (Fdbus_call_method_asynchronously)
8227 (Fdbus_method_error_internal): New defuns.
8228 (xd_read_message): Handle also reply messages.
8229 (Vdbus_registered_functions_table): Extend docstring.
8230
82312008-07-31 Juanma Barranquero <lekktu@gmail.com>
8232
8233 * keyboard.c (gobble_input): Fix previous change.
8234
82352008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8236
8237 * bitmaps/README:
8238 * xfns.c:
8239 * termcap.c:
8240 * term.c:
8241 * syswait.h:
8242 * systty.h:
8243 * systime.h:
8244 * syssignal.h:
8245 * sysdep.c:
8246 * process.h:
8247 * process.c:
8248 * print.c:
8249 * ndir.h:
8250 * lread.c:
8251 * keyboard.c:
8252 * getpagesize.h:
8253 * floatfns.c:
8254 * fileio.c:
8255 * emacs.c:
8256 * doc.c:
8257 * dispnew.c:
8258 * dired.c:
8259 * data.c:
8260 * callproc.c:
8261 * buffer.c:
8262 * README:
8263 * Makefile.in:
8264 * s/template.h:
8265 * s/msdos.h:
8266 * m/vax.h: Remove VMS support.
8267 * s/vms.h:
8268 * vlimit.h:
8269 * uaf.h:
8270 * temacs.opt:
8271 * param.h:
8272 * ioctl.h: Remove file.
8273
82742008-07-31 Dan Nicolaescu <dann@ics.uci.edu>
8275
8276 * s/ms-w32.h (MULTI_KBOARD): Remove.
8277 * xterm.c:
8278 * xselect.c:
8279 * xfns.c:
8280 * window.c:
8281 * w32term.c:
8282 * w32fns.c:
8283 * terminal.c:
8284 * termhooks.h:
8285 * term.c:
8286 * sysdep.c:
8287 * keyboard.h:
8288 * keyboard.c:
8289 * frame.h:
8290 * frame.c:
8291 * frame.c: Remove references to MULTI_KBOARD, it is now the default.
8292 * config.in: Regenerate.
8293
82942008-07-30 Jason Rumney <jasonr@gnu.org>
8295
8296 * w32font.h (struct w32font_info): Use unicode version of textmetrics.
8297
8298 * w32font.c (w32font_encode_char): Leave as unicode if in range.
8299 (w32font_open_internal): Get unicode version of textmetrics.
8300 Don't enable or disable glyph indices here.
8301 (w32font_open): Disable use of glyph indices.
8302
8303 * w32uniscribe.c (uniscribe_open): Enable use of glyph indices.
8304
83052008-07-30 Chong Yidong <cyd@stupidchicken.com>
8306
8307 * minibuf.c (Vread_buffer_function): Doc fix.
8308
83092008-07-30 John Paul Wallington <jpw@pobox.com>
8310
8311 * minibuf.c (read_buffer_completion_ignore_case): New var.
8312 (Fread_buffer): Use it.
8313
83142008-07-30 Dan Nicolaescu <dann@ics.uci.edu>
8315
8316 * systty.h (sensemode): Remove empty #if. Remove reference to
8317 BSD_TERMIOS, unused.
8318
8319 * sysdep.c: Remove reference to DGUX.
8320 (closedir): Remove reference to BROKEN_CLOSEDIR, unused.
8321
8322 * config.in: Regenerate.
8323
83242008-07-30 Jason Rumney <jasonr@gnu.org>
8325
8326 * w32uniscribe.c (uniscribe_encode_char): Fix glyph buffer size.
8327
83282008-07-29 Jason Rumney <jasonr@gnu.org>
8329
8330 * w32uniscribe.c (uniscribe_shape): Avoid using context if cache
8331 is populated.
8332 (uniscribe_encode_char): Always use uniscribe.
8333 Avoid using context if cache is populated.
8334
83352008-07-29 Jan Djärv <jan.h.d@swipnet.se>
8336
8337 * xmenu.c (Fx_menu_bar_open_internal): Use activate_item signal to
8338 open menu.
8339
8340 * gtkutil.c (menu_nav_ended): Remove.
8341 (create_menus): Remove signal connect for menu_nav_ended.
8342
83432008-07-28 Chong Yidong <cyd@stupidchicken.com>
8344
8345 * xdisp.c (redisplay_window): Check return value of
8346 compute_window_start_on_continuation_line before forcing a window
8347 start.
8348
83492008-07-28 Jason Rumney <jasonr@gnu.org>
8350
8351 * w32font.c (w32font_text_extents): Use w32_metric_cache consistently.
8352
8353 * w32term.c (w32_enable_unicode_output, cleartype_active):
8354 Remove obsolete display options.
8355 (x_draw_glyph_string_background): Don't use old cleartype_active
8356 workaround.
8357 (w32_initialize): Remove cleartype_active initialization.
8358 (syms_of_w32term): Remove w32_enable_unicode_output initialization.
8359
83602008-07-28 Andreas Schwab <schwab@suse.de>
8361
8362 * lisp.h (init_weak_hash_tables, syms_of_font)
8363 (xd_read_queued_messages, syms_of_dbusbind): Declare.
8364 (remove_hash_entry): Don't declare.
8365 * eval.c (maybe_call_debugger): Make static and move before use.
8366 * gtkutil.c: Include <X11/Xft/Xft.h> if HAVE_XFT.
8367 * xdisp.c: Include "gtkutil.h" if USE_GTK.
8368 * xterm.h (x_set_frame_alpha): Declare.
8369
83702008-07-28 Jan Djärv <jan.h.d@swipnet.se>
8371
8372 * gtkutil.c (menu_nav_ended): Revert change from 2008-07-24.
8373 (create_menus): Connect selection-done to menu_nav_ended.
8374
83752008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8376
8377 * nsfns.m (x-create-frame): Add copy of parms argument to beginning.
8378 Set Vx_resource_name to a fallback. Replace read of 'buffered'
8379 parameter with read of 'alpha' one.
8380 (Qns_frame_parameter): Remove.
5582fbc7 8381 * nsselect.m (selection-coding-system)
aac0c6e3
MR
8382 (next-selection-coding-system, Vselection_coding_system)
8383 (Vnext_selection_coding_system): Drop.
8384
83852008-07-27 Adrian Robert <Adrian.B.Robert@gmail.com>
8386
8387 * nsfns.m (do-applescript, do_applescript): Rename to
8388 ns-do-applescript, ns_do_applescript, and move within file.
8389
83902008-07-27 Dan Nicolaescu <dann@ics.uci.edu>
8391
8392 Remove support for Mac Carbon.
8393 * mactoolbox.c:
8394 * macterm.h:
8395 * macterm.c:
8396 * macselect.c:
8397 * macmenu.c:
8398 * macgui.h:
8399 * macfns.c:
8400 * mac.c: Remove file.
8401 * s/darwin.h:
8402 * m/intel386.h:
8403 * xfaces.c:
8404 * xdisp.c:
8405 * window.c:
8406 * tparam.c:
8407 * termhooks.h:
8408 * termcap.c:
8409 * term.c:
8410 * syssignal.h:
8411 * sysselect.h:
8412 * sysdep.c:
8413 * process.c:
8414 * lread.c:
8415 * lisp.h:
8416 * keyboard.c:
8417 * image.c:
8418 * fringe.c:
8419 * frame.h:
8420 * frame.c:
8421 * fontset.c:
8422 * font.h:
8423 * font.c:
8424 * fns.c:
8425 * fileio.c:
8426 * emacs.c:
8427 * dispnew.c:
8428 * dispextern.h:
8429 * config.in:
8430 * atimer.c:
2ae37cf0 8431 * Makefile.in: Remove code for Carbon.
aac0c6e3 8432
f0131492 84332008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
aac0c6e3
MR
8434
8435 * macterm.c (XDrawLine) [USE_MAC_IMAGE_IO]: Remove spurious return.
8436
84372008-07-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8438
8439 * macterm.h (kCGBitmapByteOrder32Host): New define for
8440 non-universal SDKs.
8441
8442 * image.c (mac_create_cg_image_from_image, image_load_image_io)
8443 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8444
8445 * macterm.c (XDrawLine, XCreatePixmapFromBitmapData)
8446 [USE_MAC_IMAGE_IO]: Remove conditionals for kCGBitmapByteOrder32Host.
8447
84482008-07-26 David Robinow <drobinow@gmail.com> (tiny change)
8449
8450 * w32inevt.c: Include dispextern.h.
8451
84522008-07-26 Andreas Schwab <schwab@suse.de>
8453
8454 * print.c (print_object): Fix off-by-one in last change.
8455
84562008-07-25 Juanma Barranquero <lekktu@gmail.com>
8457
8458 * term.c (syms_of_term): Don't initialize default_orig_pair,
8459 default_set_foreground and default_set_background on Windows.
8460
84612008-07-25 Jason Rumney <jasonr@gnu.org>
8462
8463 * w32uniscribe.c (uniscribe_shape): Pass NULL for control arg to
8464 ScriptItemize. Clean up return value checking. Remove unused
8465 variables.
8466 (uniscribe_encode_char): Encode non-BMP characters with uniscribe
8467 shaping engine.
8468
8469 * w32font.c (w32font_has_char): Handle the case where we can't
8470 determine the script for a character.
8471
84722008-07-25 Chong Yidong <cyd@stupidchicken.com>
8473
8474 * term.c (syms_of_term): Initialize default_orig_pair,
8475 default_set_foreground, and default_set_background.
8476
8477 * getloadavg.c (nl): Rename to name_list to avoid ncurses.h
8478 clash (bug#86).
8479 (getloadavg): Callers changed.
8480
8481 * image.c (svg_load_image): Fix last change.
8482 (svg_load_image): Use rsvg_handle_get_dimensions to check that
8483 image size is valid. Use g_object_unref instead of deprecated
8484 rsvg_handle_free to free rsvg handle.
8485 (x_from_xcolors): Don't initialize pixmap (silence compiler).
8486
84872008-07-25 Jason Rumney <jasonr@gnu.org>
8488
8489 * w32font.c (w32font_encode_char): Encode characters outside BMP as
8490 surrogates before looking up glyph index.
8491 (w32font_text_extents): Encode as surrogates if falling back to
8492 functions that need UTF-16 wide chars.
8493
8494 * w32uniscribe.c (uniscribe_encode_char): Encode characters outside
8495 BMP as surrogates before looking up glyph index.
8496
84972008-07-25 Chong Yidong <cyd@stupidchicken.com>
8498
8499 * image.c (svg_load_image): Check for failure in return value of
8500 rsvg_handle_get_pixbuf. Free rsvg handle when done.
8501
85022008-07-25 Jason Rumney <jasonr@gnu.org>
8503
8504 * w32font.c (Fx_select_font): Reverse sense of second arg.
8505
85062008-07-24 Stefan Monnier <monnier@iro.umontreal.ca>
8507
8508 * syntax.c (struct lisp_parse_state, char_quoted, inc_bytepos)
8509 (dec_bytepos, find_defun_start): Use EMACS_INT for buffer positions.
8510
8511 * puresize.h (PURESIZE_CHECKING_RATIO): New macro.
8512 (PURESIZE): Use it.
8513
85142008-07-24 Dan Nicolaescu <dann@ics.uci.edu>
8515
8516 * m/amdx86-64.h (HAVE_LIB64_DIR): Consolidate ifdefs.
8517 * m/alpha.h (TEXT_END):
8518 * m/ibmrs6000.h (TEXT_END):
8519 * m/macppc.h (TEXT_END):
8520 * s/darwin.h (TEXT_END):
8521 * s/msdos.h (TEXT_END): Remove, unused.
8522 * s/gnu-linux.h (BSD_PGRPS): Add a comment.
8523 * s/cygwin.h: Remove comment.
8524
8525 * ecrt0.c (NODOT_GLOBAL_START): Remove code, unused.
8526 (DOT_GLOBAL_START): Remove conditional, redundant for CRT0_DUMMIES.
8527 * m/intel386.h (DOT_GLOBAL_START):
8528 * m/vax.h (DOT_GLOBAL_START): Remove, redundant with CRT0_DUMMIES.
8529 (USG): Remove, file not used on USG platforms.
8530
8531 * Makefile.in (HAVE_X11): Remove empty #else.
8532
85332008-07-24 Andreas Schwab <schwab@suse.de>
8534
8535 * fileio.c (Finsert_file_contents): Properly adjust undo list
8536 after format conversion.
8537
85382008-07-24 Jan Djärv <jan.h.d@swipnet.se>
8539
8540 * gtkutil.c (xg_get_font_name): Cast w to GTK_FONT_SELECTION_DIALOG.
8541 (menu_nav_ended): Remove.
8542 (create_menus): Remove signal connect for menu_nav_ended.
8543 (xg_update_menubar): Also take deactivate_cb as parameter, pass it to
8544 create_menus.
8545 (xg_modify_menubar_widgets): Pass deactivate_cb to xg_update_menubar.
8546
85472008-07-23 Jason Rumney <jasonr@gnu.org>
8548
8549 * w32font.c (w32_enumfont_pattern_entity): Return height consistent
8550 with opened font.
8551 (w32font_open): Set font type to gdi.
8552
8553 * w32uniscribe.c (uniscribe_open): Set font type to uniscribe.
8554
85552008-07-23 Dan Nicolaescu <dann@ics.uci.edu>
8556
8557 * s/usg5-4.h (ADDR_CORRECT): Remove, unused.
8558 * unexaix.c (ADDR_CORRECT): Remove conditional, the only user
8559 defines it.
8560 * unexec.c (ADDR_CORRECT): Define unconditionally.
8561
8562 * m/ibmrs6000.h (C_SWITCH_MACHINE): Remove.
8563
8564 * unexec.c: Remove code depending on !COFF and USG, the file is
8565 not used for such systems.
8566
8567 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
8568 * s/freebsd.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, unused.
8569 (LD_SWITCH_SYSTEM_1): Remove, update users.
8570
8571 * s/darwin.h (DATA_END):
8572 * m/intel386.h (DATA_END):
8573 * m/ibmrs6000.h (DATA_END):
8574 * m/alpha.h (DATA_END): Remove, unused.
8575
8576 * config.in: Regenerate.
8577 * s/ms-w32.h (subprocesses): Define unconditionally.
8578 * s/template.h (subprocesses): Update comment.
8579 * s/vms.h (subprocesses):
8580 * s/usg5-4.h (subprocesses):
8581 * s/hpux10-20.h (subprocesses):
8582 * s/gnu-linux.h (subprocesses):
8583 * s/cygwin.h (subprocesses):
8584 * s/bsd-common.h (subprocesses):
8585 * s/aix4-2.h (subprocesses):
8586 * s/darwin.h (subprocesses): Do not define, defined by default now.
8587
8588 * Makefile.in (C_SWITCH_SITE, LD_SWITCH_SITE): Remove, unused.
8589 Remove all references.
8590 (temacs): Add GNUstep specific ld flags.
8591
8592 * nsterm.m (syms_of_nsterm): Provide ns, not ns-windowing,
8593 similarly to what X does.
8594
85952008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8596
8597 * nsfns.m (x-list-fonts): Remove.
8598 (syms_of_nsfns): Drop the x-list-fonts declaration.
8599 * nsterm.m: Get rid of remaining "//" comments.
8600
86012008-07-22 Chong Yidong <cyd@stupidchicken.com>
8602
8603 * xselect.c (Fx_rotate_cut_buffers_internal): Doc fix.
8604
8605 * nsselect.m (Fns_selection_exists_p, Fns_selection_owner_p)
8606 (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
8607 (Fns_own_selection_internal, Fx_disown_selection_internal)
8608 (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
8609
8610 * nsmenu.m (Fns_reset_menu, Fx_popup_menu): Change to use 'doc: /*
8611 ... */' style of docstrings. Doc fixes.
8612
86132008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8614
8615 * terminfo.c (UP, BC, PC): Undo previous change.
8616
8617 * nsfns.m: Rename ns prefixed functions/variables to the
8618 corresponding x versions. Update references.
8619
86202008-07-22 Stefan Monnier <monnier@iro.umontreal.ca>
8621
8622 * syntax.c (char_quoted): Check "charpos > beg" before decrementing.
8623
86242008-07-22 Dan Nicolaescu <dann@ics.uci.edu>
8625
8626 * nsfns.m (x_set_menu_bar_lines, x_set_tool_bar_lines):
8627 Remove forwarding functions.
8628 (ns_set_menu_bar_lines): Rename to x_set_menu_bar_lines, make
8629 non-static.
8630 (ns_set_tool_bar_lines): Rename to x_set_tool_bar_lines, make
8631 non-static.
8632 (ns_frame_parm_handlers): Use the new names.
8633 (syms_of_nsfns): Move to the end of file.
8634
8635 * nsterm.m (syms_of_nsterm): Move to the end of file.
8636
8637 * dispnew.c (init_display): Remove code for X10.
8638
86392008-07-22 Jason Rumney <jasonr@gnu.org>
8640
8641 * w32proc.c (Fw32_long_file_name): Don't append dir separator to
8642 bare drive.
8643
86442008-07-22 Adrian Robert <Adrian.B.Robert@gmail.com>
8645
8646 * nsterm.m (syms_of_nsterm): Remove debugging println.
8647
86482008-07-22 David Reitter <david.reitter@gmail.com>
8649
8650 * nsfns.m (do_applescript, F_do_applescript): NS version of the
8651 Carbon implementation of the same functionality: execute arbitrary
8652 AppleScript code.
8653
86542008-07-21 Adrian Robert <Adrian.B.Robert@gmail.com>
8655
8656 * nsfns.m (Fx_create_frame, Fx_read_file_name, Fx_get_resource)
8657 (Fx_set_resource, Fx_set_alpha, Fx_server_max_request_size)
8658 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
8659 (Fx_display_mm_height, Fx_display_mm_width)
8660 (Fx_display_backing_store, Fx_display_visual_class)
8661 (Fx_display_save_under, Fx_open_connection)
8662 (Fx_close_connection, Fx_hide_emacs, Fx_font_name)
8663 (Fx_list_colors, Fx_perform_service, Fx_color_defined_p)
8664 (Fx_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8665 (Fx_display_pixel_width, Fx_display_pixel_height)
8666 (Fx_display_usable_bounds, Fx_display_planes)
8667 (Fx_display_color_cells, Vns_icon_type_alist): Change to use 'doc: /*
8668 ... */' style of docstrings.
8669
86702008-07-21 Dan Nicolaescu <dann@ics.uci.edu>
8671
8672 * m/mips.h (LOAD_AVE_TYPE, LOAD_AVE_CVT): Do not define, not used
8673 on this platform.
8674 (mips):
8675 * m/iris4d.h (mips): Do not define.
8676 * sysdep.c (init_sys_modes): Use __mips__ instead of mips.
8677
8678 * m/ibmrs6000.h (LD_SWITCH_SITE): Remove.
8679
8680 * image.c:
8681 * nsfns.m:
8682 * nsselect.m:
8683 * nsterm.h:
8684 * nsterm.m: Rename ns prefixed functions/variables to the
8685 corresponding x versions. Update references.
8686
8687 * m/ibms390x.h (NO_REMAP): Do not undefine.
8688
8689 * m/amdx86-64.h: Use SOLARIS2 instead of sun.
8690
86912008-07-21 Chong Yidong <cyd@stupidchicken.com>
8692
8693 * nsfns.m: Change NS to Nextstep in docstrings and error messages.
8694 (Fns_create_frame, Fns_read_file_name, Fns_get_resource)
8695 (Fns_set_resource, Fns_set_alpha, Fns_server_max_request_size)
8696 (Fns_server_vendor, Fns_server_version, Fns_display_screens)
8697 (Fns_display_mm_height, Fns_display_mm_width)
8698 (Fns_display_backing_store, Fns_display_visual_class)
8699 (Fns_display_save_under, Fns_open_connection)
8700 (Fns_close_connection, Fns_hide_emacs, Fns_font_name)
8701 (Fns_list_colors, Fns_perform_service, Fns_color_defined_p)
8702 (Fns_color_values, Fxw_display_color_p, Fx_display_grayscale_p)
8703 (Fns_display_pixel_width, Fns_display_pixel_height)
8704 (Fns_display_usable_bounds, Fx_display_planes)
8705 (Fns_display_color_cells, Vns_icon_type_alist): Doc fixes.
8706
87072008-07-21 Ami Fischman <ami@fischman.org> (tiny change)
8708
8709 * print.c (print_object): Check print_depth before searching for
8710 circularities.
8711
87122008-07-21 Michael Albinus <michael.albinus@gmx.de>
8713
8714 * dbusbind.c (Fdbus_register_signal): Use sprintf + strcat instead
8715 only sprintf.
8716
87172008-07-21 Kenichi Handa <handa@m17n.org>
8718
8719 * ftfont.c (adjust_anchor): Check if DeltaValue is not NULL.
8720
87212008-07-20 Andreas Schwab <schwab@suse.de>
8722
8723 * syntax.c (find_start_pos, find_start_value)
8724 (find_start_value_byte, find_start_begv, find_defun_start)
8725 (back_comment, scan_sexps_forward): Use EMACS_INT for buffer positions.
8726
87272008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8728
8729 * s/sol2-3.h: Insert contents of s/sol2.h.
8730 (LD_SWITCH_SYSTEM): Remove redundant definition.
8731 * s/sol2.h: Remove, unused.
8732
87332008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8734
8735 * nsterm.m (ns_get_color): Recognize HSB,AHSB be synonyms for HSV,AHSV.
8736
87372008-07-20 Adrian Robert <Adrian.B.Robert@gmail.com>
8738
8739 * Makefile.in (ns_appdir): Fix typo in find command.
8740
87412008-07-20 Dan Nicolaescu <dann@ics.uci.edu>
8742
8743 * m/intel386.h (NO_REMAP): Do no define for USG, not used.
8744
8745 * s/usg5-4.h (LIBS_SYSTEM): Remove, system for which this was
8746 added not supported anymore.
8747
8748 * s/usg5-4-2.h (LIBS_SYSTEM):
8749 * s/sol2.h (LIBS_SYSTEM): Do not undefine.
8750
8751 * s/netbsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8752 * s/lynxos.h (GETPGRP_NO_ARG):
8753 * s/hpux10-20.h (NO_SIOCTL_H):
8754 * s/gnu.h (GETPGRP_NO_ARG):
8755 * s/gnu-linux.h (NO_SIOCTL_H):
8756 * s/freebsd.h (GETPGRP_NO_ARG, N_TRELOFF):
8757 * s/cygwin.h (GETPGRP_NO_ARG):
8758 * s/irix6-5.h (LIBS_SYSTEM, GETPGRP_NO_ARG): Remove, unused.
8759 (C_DEBUG_SWITCH): Remove duplicate definition.
8760
8761 * m/ibms390.h: Remove boilerplate comments.
8762
8763 * sysdep.c (closedir): Use SOLARIS2 instead of sun && USG5_4.
8764
8765 * process.c (HAVE_SERIAL): Consolidate ifdefs.
8766 (wait_reading_process_output): Remove code for SunOS, platform not
8767 supported anymore. Use SOLARIS2 instead of sun.
8768
87692008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8770
8771 * font.c (font_open_by_name): Under NS, default lface height to zero.
8772 (font_open_for_lface): Under NS, set size based on frame fontsize.
8773 * nsterm.m (EmacsView-changeFont:): Remove some commented code.
8774 * frame.c (x_set_frame_parameters): Remove HAVE_NS ifdef.
8775
87762008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8777
8778 * nsterm.m (ns_antialias_text, ns_use_qd_smoothing)
8779 (ns_use_system_highlight_color): Switch these from DEFVAR_BOOL to
8780 DEFVAR_LISP and change all code accordingly to use Qt/Qnil instead of
8781 YES/NO.
8782 * nsterm.h (prevUseHighlightColor): Make a Lisp_Object.
8783 * nsfont.m (nsfont_draw): Treat ns_use_qd_smoothing as Lisp_Object.
8784 * Makefile.in (clean): Clear out build destination dir.
8785
87862008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8787
8788 * Makefile.in (nsgui.h-related dependencies): Remove abbrev, xfns,
8789 xterm, xselect.
8790 * lisp.h: Remove declaration of hash_remove.
8791 * nsgui.h: Remove redefinitions of hash_remove.
8792 * fns.c (hash_remove): Rename to hash_remove_from_table.
8793
87942008-07-19 Seiji Zenitani <zenitani@mac.com>
8795
8796 * nsfont.m (nsfont_fmember_to_entity, nsfont_make_fontset_for_font):
8797 strdup() the family UTF8String before modifying it.
8798
87992008-07-19 Adrian Robert <Adrian.B.Robert@gmail.com>
8800
8801 * nsterm.m (ns_maybe_dumpglyphs_background): Compare result from
8802 NS_FACE_BACKGROUND with 0 instead of nil.
8803 * nsfont.m (nsfont_draw): Same.
8804
88052008-07-19 Chong Yidong <cyd@stupidchicken.com>
8806
8807 * nsfns.m (ns_set_background_color): Fix crash.
8808
88092008-07-18 Chong Yidong <cyd@stupidchicken.com>
8810
8811 * Makefile.in (SOME_MACHINE_LISP): Remove ns-carbon-compat.elc.
8812
88132008-07-18 Dan Nicolaescu <dann@ics.uci.edu>
8814
8815 * puresize.h (BASE_PURESIZE): Increase to 1240000.
8816
88172008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8818
8819 * gtkutil.c: Include <config.h> instead of "config.h".
8820
8821 * lisp.h (Foverlay_buffer): Add EXFUN.
8822
8823 * process.c (create_process) [!WINDOWSNT && FD_CLOEXEC]: Wait for
8824 child process to complete child_setup. Undo 2005-09-21 change.
8825
8826 * s/darwin.h: Mention setsid after vfork.
8827
88282008-07-17 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
8829
8830 * Makefile.in (frame.o, keyboard.o, xdisp.o, xfaces.o):
8831 Depend on macgui.h.
8832
8833 * macfns.c (Fx_server_version): Don't use gestaltSystemVersionMajor,
8834 gestaltSystemVersionMinor, or gestaltSystemVersionBugFix.
8835
8836 * macterm.c (keycode_to_xkeysym_table): Add entries for f17, f18,
8837 and f19.
8838 [MAC_OSX] (fn_keycode_to_keycode_table): Likewise.
8839
8840 * macterm.h (gestaltSystemVersionMajor, gestaltSystemVersionMinor)
8841 (gestaltSystemVersionBugFix) [MAC_OS_X_VERSION_MAX_ALLOWED < 1040]:
8842 Remove enumerators.
8843
8844 * mactoolbox.c [USE_MAC_TSM] (mac_handle_text_input_event):
8845 Check if FACE_FROM_ID returns NULL.
8846
88472008-07-17 David Robinow <drobinow@gmail.com> (tiny change)
8848
8849 * w32inevt.c (change_frame_size): Remove extern declaration.
8850 (resize_event, maybe_generate_resize_event): Pass SAFE arg to
8851 change_frame_size.
8852
88532008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8854
8855 * getloadavg.c: Revert last change (2008-07-15).
8856
88572008-07-17 Adrian Robert <Adrian.B.Robert@gmail.com>
8858
8859 * Makefile.in: Replace emacsapp, emacsbindir, emacsappsrc variables
362654a6 8860 set here with ns_appdir, ns_appresdir, ns_appbindir, ns_appsrc set
aac0c6e3
MR
8861 from configure.
8862
88632008-07-17 Dan Nicolaescu <dann@ics.uci.edu>
8864
8865 * s/sol2.h:
8866 * s/sol2-4.h: Reorganize conditionals.
8867
8868 * ecrt0.c: Remove code depending on m68000, not used anymore.
8869
8870 * fns.c (hash_remove): Make static.
8871 * lisp.h (hash_remove): Don't prototype.
8872
8873 * m/ibmrs6000.h:
8874 * m/ibms390x.h:
8875 * m/macppc.h: Remove boilerplate comments.
8876
8877 * m/sparc.h (A_TEXT_OFFSET, A_TEXT_SEEK): Remove, only used on
8878 Solaris, which does not need them.
8879
8880 * m/vax.h: Remove comments about unsupported systems.
8881
8882 * s/darwin.h: Reorganize ifdefs.
8883
88842008-07-17 Andreas Schwab <schwab@suse.de>
8885
8886 * s/cygwin.h (LIB_STANDARD_LIBSRC): Don't define.
8887
88882008-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
8889
8890 Use SDATA. Follow coding convention of placing operators at
8891 beginning of next line rather than end of previous line, and placing
8892 spaces around infix operators.
8893
8894 * Makefile.in: Undef LIB_STANDARD before defining it to silence warning
8895 in case it was defined already.
8896 USE @GNUSTEP_MAKEFILES@ rather than envvars.
8897 * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
8898 ns_default.
8899 (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
8900 Lisp_Objects.
8901 * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
8902 (ns_defined_color, ns_color_to_lisp): Declare.
8903 * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
8904 (Fns_own_selection_internal): Make the big ugly hack more explicit, so
8905 it's accepted even with USE_LISP_UNION_TYPE.
8906 * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
8907 (update_frame_tool_bar): Remove apparently obsolete tests for
8908 non-integerness of f->tool_bar_lines.
8909 (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
8910 hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
8911 * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
8912 (nsfont_open): Don't confuse NULL for Qnil.
8913 * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
8914 * menu.h (find_and_call_menu_selection):
8915 * menu.c (find_and_call_menu_selection): Use just int for vector size.
8916 (find_and_return_menu_selection): Always return something.
8917 * frame.h: Include dispextern.h for Display_Info.
8918 (display_x_get_resource): Declare.
8919
89202008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com>
8921
8922 * syntax.c: Remove stdio.h include accidentally introduced in
8923 Emacs.app commit.
8924 * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to
8925 NS_IMPL_COCOA.
8926 * keyboard.c (handle_async_input, input_available_signal): Remove
8927 BSD4_1 conditional code, introduced accidentally in Emacs.app commit.
8928
89292008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8930
8931 * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead.
8932 (ns_lisp_to_color): Don't mess with internal Lisp data fields.
8933 (ns_term_init, ns_term_shutdown, initFrameFromEmacs, ns_list_fonts):
8934 Use SDATA.
8935
8936 * keymap.c: Remove all NS-specific code.
8937 (where_is_preferred_modifier, Vwhere_is_preferred_modifier): New vars.
8938 (preferred_sequence_p): Rename from ascii_sequence_p; pay attention to
8939 where_is_preferred_modifier, return a different value depending on how
8940 preferred is the binding.
8941 (where_is_internal): Adjust accordingly.
8942 (Fwhere_is_internal): Refresh where_is_preferred_modifier.
8943 Adjust to new preferred_sequence_p.
8944 (syms_of_keymap): Declare `where-is-preferred-modifier'.
8945 * keyboard.c (parse_solitary_modifier): Not static any more.
8946 * keyboard.h (parse_solitary_modifier): Declare.
8947
89482008-07-16 Andreas Schwab <schwab@suse.de>
8949
8950 * Makefile.in (SOME_MACHINE_LISP): Remove easy-mmode, fix spelling
8951 of easymenu.
8952
89532008-07-16 Chong Yidong <cyd@stupidchicken.com>
8954
8955 * xdisp.c (move_it_in_display_line): Account for word wrap, so
8956 that we don't move off the line.
8957
89582008-07-16 Stefan Monnier <monnier@iro.umontreal.ca>
8959
8960 * keyboard.c (Qsuper): Remove.
8961 (parse_menu_item): Don't call where_is_internal specially for NS.
8962
89632008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8964
8965 * s/gnu-linux.h: Remove boilerplate comments.
8966
8967 * m/alpha.h (__ELF__): Consolidate conditions.
8968
8969 * m/m68k.h (linux): Use GNU_LINUX instead.
8970 Remove boilerplate comments.
8971
8972 * m/intel386.h: Undo refactoring from previous change.
8973 (LIB_STANDARD): All systems that define USG define LIB_STANDARD
8974 too, remove dead code.
8975 (linux): Use GNU_LINUX instead.
8976
89772008-07-16 Jason Rumney <jasonr@gnu.org>
8978
8979 * w32gui.h: Repeat 26 June changes lost by last change.
8980
89812008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
8982
8983 * systty.h: Remove code for Aix on 386, unsupported platform.
8984
8985 * s/ms-w32.h: Remove boilerplate comments.
8986 (fcloseall, fgetchar, flushall, fputchar, getw, putw): Remove, unused.
8987
8988 * s/gnu-linux.h (TERM): Remove support.
8989 (HAVE_SYSVIPC): Remove, unused.
8990 (A_TEXT_OFFSET, A_TEXT_SEEK, ADJUST_EXEC_HEADER): Remove, not used
8991 for this system.
8992
8993 * process.c: Remove support for IRIS, unused.
8994 Remove support for TERM, not relevant anymore.
8995
8996 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Remove, replace the only
8997 used with the definition.
8998
8999 * s/aix4-2.h (static): Do not undef.
9000
9001 * m/ibmrs6000.h: Remove code depending on USG5_4, this file is
9002 only used on Aix.
9003 (HAVE_SYSVIPC): Remove, unused.
9004
9005 * m/hp800.h (CANNOT_DUMP): Do not undef.
9006
9007 * m/alpha.h: Fix comment.
9008
9009 * s/usg5-4.h (HAVE_SYSVIPC): Remove, unused.
9010 (USG_SHARED_LIBRARIES): Remove, only used in unexec.c which is not
9011 used by this configuration.
9012 * emacs.c: Remove code depending on USG_SHARED_LIBRARIES.
9013 * unexec.c: Remove code depending on HPUX and
9014 USG_SHARED_LIBRARIES, not used with this file. Remove code
9015 depending on IRIS, unused. Remove if 0-ed code.
9016
9017 * s/template.h: Remove comments about static.
9018
9019 * sysdep.c: Remove code depending on NEED_PTEM_H, unused.
9020 Remove if 0-ed code.
9021 (baud_convert): Don't depend on BAUD_CONVERT, all definitions the
9022 were the same as the default.
9023 * s/vms.h (BAUD_CONVERT): Remove, same as the default.
9024 Remove boilerplate comments.
9025 * s/hpux10-20.h (BAUD_CONVERT): Remove, same as the default.
9026 (HAVE_SYSVIPC): Remove, unused.
9027 (LD_SWITCH_SYSTEM_TEMACS): Simplify, hp9000s700 not supported anymore.
9028
9029 * m/ia64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9030 Remove boilerplate comments.
9031 * m/amdx86-64.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9032 Remove boilerplate comments.
9033 * m/ibms390x.h (PNTR_COMPARISON_TYPE): Remove, same as the default.
9034 Remove boilerplate comments.
9035 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
9036
9037 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
9038 USG systems which do not use DATA_SEG_BITS.
9039 Refactor code. Remove boilerplate comments.
9040
9041 * m/ibms390.h:
9042 * m/m68k.h:
9043 * s/bsd-common.h:
9044 * s/cygwin.h:
9045 * s/darwin.h:
9046 * s/freebsd.h:
9047 * s/gnu.h:
9048 * s/msdos.h: Remove boilerplate comments.
9049
9050 * m/iris4d.h: Remove boilerplate comments and code for systems that
6873acca 9051 do not use this file.
aac0c6e3
MR
9052 (IRIS_4D): Remove, unused.
9053
9054 * m/mips.h: Remove boilerplate comments and code for systems that
6873acca 9055 do not use this file.
aac0c6e3
MR
9056 (SIGN_EXTEND_CHAR):
9057 * m/arm.h (SIGN_EXTEND_CHAR): Remove, unused.
9058 * unexmips.c: Remove file, unused.
9059
9060 * editfns.c (Fuser_full_name): Replace the only use of
9061 USER_FULL_NAME with its value.
9062 * config.in: Regenerate.
9063
90642008-07-16 David Reitter <david.reitter@gmail.com>
9065
9066 * Makefile.in: Add ns-win, ns-carbon-compat, easy-mmode and
9067 easy-menu to SOME_MACHINE_LISP for the new NeXTstep port.
9068
90692008-07-16 Glenn Morris <rgm@gnu.org>
9070
9071 * emacs.c (system-type): Doc fix.
9072
90732008-07-15 Stefan Monnier <monnier@iro.umontreal.ca>
9074
9075 * keyboard.c (parse_menu_item): Don't use cachelist, even under NS.
9076 If the cache doesn't work, let's fix it, rather than work around it.
9077
90782008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9079
9080 * Makefile.in: Correct additions for nsfont.o in last commit.
9081 * nsfont.m: New file (forgot last commit).
9082
90832008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9084
9085 * callproc.c (set_initial_environment): Initialize
9086 Vprocess_environment under CANNOT_DUMP (fixes crash when
9087 batch-compiling for bootstrap).
9088
90892008-07-15 Chris Hall <chris@web.workinglinux.com> (tiny change)
9090 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
9091
9092 (make_initial_frame): Call init_frame_faces(f) in CANNOT_DUMP case --
9093 fix crash due to different init order.
9094
90952008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9096
9097 Changes and additions for NeXTstep windowing system (Cocoa and
9098 GNUstep) support.
9099
9100 * Makefile.in:
9101 * config.in: Support defines and build commands for NS port.
9102 * blockinput.h (BLOCK_INPUT, UNBLOCK_INPUT, TOTALLY_UNBLOCK_INPUT)
9103 (UNBLOCK_INPUT_TO): Don't use under NS unless EXPERIMENTAL_CONTROL_G.
9104 * dispextern.h: Include nsgui.h and add needed typedefs under NS
9105 windowing.
9106 (struct face): Add synth_ital field.
9107 * dispnew.c: Include nsterm.h when compiling under NS windowing.
9108 (init_display): Initialize Vinitial_window_system to "ns" when so
9109 compiled.
9110 * emacs.c: Include GSConfig.h when compiling under GNUstep.
9111 (display_arg): Use under NS.
9112 (main): Under NS, allocate autorelease pool and handle command line
9113 args. Move syms_of_xmenu() call under #ifdef HAVE_X_WINDOWS.
9114 (standard_args): Add NS-specific args.
9115 (shut_down_emacs): Shut down NS terminal if compiled under NS.
9116 * font.c (DEFAULT_ENCODING): New variable.
9117 (font_find_for_lface): Use it.
9118 (syms_of_font): Load syms_of_nsfont under NS.
9119 * font.h: Declare nsfont_driver when compiled under NS.
9120 * fontset.c: When compiling under NS, include nsterm.h.
9121 (fontset_from_font): Autoconstruct fontset under NS.
9122 * frame.c (various): Under NS, include nsterm.h, add Qns window system
9123 symbol, document and use it.
9124 (do_switch_frame): When for_deletion under Cocoa, add
9125 Fraise_frame(Qnil).
9126 (x_set_frame_parameters): Ensure font attribute changes are picked up.
9127 (x_get_arg): Allow "yes" and "no" as boolean values.
9128 (syms_of_frame): Declare Qns. Init Vdefault_frame_scroll_bars to
9129 Qright under Cocoa.
9130 (focus-follows-mouse): Default to 0 under NS.
9131 * frame.h (enum output_method): Add output_ns.
9132 (external_tool_bar, external_menu_bar, FRAME_EXTERNAL_TOOLBAR)
9133 (FRAME_EXTERNAL_MENU_BAR): Use under NS.
9134 (FRAME_WINDOW_P): NS-specific definition.
9135 * fringe.c (max_used_fringe_bitmap): Make public.
9136 * getloadavg.c (mach/mach.h): Include it under NeXT descendant OS's.
9137 (getloadavg): Use NeXT code under descendant OS's.
9138 * image.c (includes and header section, x_create_bitmap_from_data)
9139 (x_create_bitmap_from_file, free_bitmap_record, image_background)
9140 (image_background_transparent, x_clear_image_1)
9141 (x_create_x_image_and_pixmap, x_destroy_x_image, x_put_x_image)
9142 (Create_Pixmap_From_Bitmap_Data, xpm_load_image, lookup_rgb_color)
9143 (x_to_xcolors, x_from_xcolors, x_disable_image)
9144 (x_build_heuristic_mask, syms_of_image): Add NS support parallel to
9145 other GUIs, including XPM support using code originally written for
9146 Carbon GUI.
9147 (png_load, jpeg_load, tiff_load, gif_load): Add implementations
9148 using NS API.
9149 (image_ascent): Use font metrics macros instead of direct struct field
9150 access.
9151 * keyboard.c (includes): Add nsterm.h when compiling under NS.
9152 (kbd_buffer_get_event): Handle NS as other GUI windowing systems.
9153 Also, handle NS as GTK for menu bar purposes.
9154 (make_lispy_event): Handle NS as other GUI windowing systems, and as X
9155 toolkit where they differ.
9156 (parse_menu_item): Prefer keybindings using 'super' modifier. Also,
9157 use cachelist, still needed under NS.
9158 * keyboard.h (ENCODE_MENU_STRING, XtPointer, Boolean): Handle as NTGUI.
9159 (struct widget_value): Define it here for menu.c.
9160 * keymap.c (includes): Include modifier internals.
9161 (lisp_to_mod, modifier_sequence_p): New functions, compiled only under
9162 NS.
9163 (where_is_internal, Fwhere_is_internal): When compiled under NS, add
9164 support for preferring sequences using certain modifiers, specified by
9165 the FIRSTONLY argument.
9166 * lisp.h (hash_remove): Rename to avoid name clash when compiling
9167 under NS GNUstep implementation.
9168 (USE_LSB_TAG): Use it under Cocoa when compiling under NS.
9169 * lread.c (init_lread): Treat NS as HAVE_CARBON for turn_off_warning.
9170 * menu.c: Include nsterm.h under NS.
9171 (single_menu_item, parse_single_submenu, xmalloc_widget_value)
9172 (free_menubar_widget_tree_value, update_submenu_strings)
9173 (find_and_call_menu_selection): Treat NS as X and NT.
9174 (find_and_return_menu_selection): New function, used for popup menus.
9175 * nsgui.h:
9176 * nsterm.h:
9177 * nsfns.m:
9178 * nsimage.m:
9179 * nsmenu.m:
9180 * nsselect.m:
9181 * nsterm.m: New files.
9182 * process.c (wait_reading_process_output): Under NS, call ns_select()
9183 instead of plain select().
9184 * syntax.c (char_quoted): Under NS, avoid a crash when called near
9185 beginning of buffer.
9186 * sysselect.h (init_process): Rename when compiling under Cocoa to
9187 avoid name conflict.
9188 * termhooks.h (display_info): Add ns_display_info to union.
9189 * terminal.c (Fterminal_live_p): Add ns to terminal types.
9190 * terminfo.c (UP, BC, PC): Don't declare when compiling under NS in
9191 COCOA environment.
9192 * unexnext.c: Update to work with mach API on Mac OS X, and to use new
9193 unexec() signature. (Note, this will dump, but the resulting file
9194 crashes; unexosx is used instead; keeping around for reference and
9195 possible aid in getting dump working under GNUstep.)
9196 * w32gui.h (button_type, widget_value): Remove definitions (now in
9197 keyboard.h).
9198 * window.c: Include nsterm.h when compiling under NS.
9199 * xdisp.c (includes): Include nsterm.h when compiling under NS.
9200 (set_frame_menubar, update_menu_bar, display_menu_bar): Handle NS as
9201 other GUI windowing systems.
9202 (update_tool_bar, redisplay_tool_bar, redisplay_window): Handle NS as
9203 GTK.
9204 (x_consider_frame_title): Under NS, set icon type and frame
9205 modified-state indicator; use ns_set_name_as_filename() when using
9206 formatted title.
9207 (update_window_cursor): Make public when compiling under NS.
9208 (display_hourglass_p, syms_of_xdisp, hourglass_shown_p)
9209 (hourglass_atimer, Vhourglass_delay
9210 * xfaces.c (header section, init_frame_faces, clear_font_table)
9211 (defined_color, unload_color, x_face_list_fonts)
9212 (prepare_face_for_display): Add NS support parallel to other GUIs.
9213 Emulate GCs like other non-X GUIs.
9214 (split_font_name): Don't lowercase font name under NS.
9215 (merge_face_ref, Finternal_set_lisp_face_attribute): Support stippling
9216 under NS.
9217 * s/darwin.h: Add support for compilation under NS.
9218
92192008-07-15 Jason Rumney <jasonr@gnu.org>
9220
9221 * w32fns.c (Fx_create_frame): Remove duplicate unwind_protect.
9222 (w32_show_hourglass): Rename from show_hourglass.
9223 (w32_hide_hourglass): Rename from hide_hourglass.
9224 (DEFAULT_HOURGLASS_DELAY): Revert from last change.
9225 (Vhourglass_delay): Declare extern.
9226 (hourglass_started): Remove.
9227
9228 * xdisp.c (Vhourglass_delay): Remove static.
9229 (hourglass_started, start_hourglass, cancel_hourglass):
9230 Don't include these versions on WINDOWSNT.
9231
92322008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com>
9233
9234 * dispextern.h (hourglass_shown_p, hourglass_atimer): New extern
9235 variables (formerly in xfns.c).
9236 (show_hourglass, hide_hourglass): New prototypes (same).
9237 * xdisp.c (display_hourglass_p, hourglass_shown_p, hourglass_atimer)
9238 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY): New variables (formerly
9239 in xfns.c).
9240 (syms_of_xdisp): Declare/initialize display-hourglass,
9241 hourglass-delay. Initialize hourglass_atimer, hourglass_shown_p.
9242 (hourglass_started, start_hourglass, cancel_hourglass): New functions,
9243 formerly in xfns.c.
9244 * xfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9245 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9246 (start_hourglass, cancel_hourglass): Remove.
9247 (show_hourglass, hide_hourglass): Remove prototypes and static
9248 modifiers.
9249 (syms_of_xfns): Remove display-hourglass, hourglass-delay,
9250 hourglass_atimer, hourglass_shown_p declaration/initialization.
9251 * macfns.c (display_hourglass_p, hourglass_atimer, hourglass_shown_p)
9252 (Vhourglass_delay, DEFAULT_HOURGLASS_DELAY, hourglass_started)
9253 (start_hourglass, cancel_hourglass): Remove.
9254 (show_hourglass, hide_hourglass): Remove prototypes and static
9255 modifiers.
9256 (syms_of_macfns): Remove display-hourglass, hourglass-delay,
9257 hourglass_atimer, hourglass_shown_p declaration/initialization.
9258 * w32fns.c (display_hourglass_p, Vhourglass_delay)
9259 (DEFAULT_HOURGLASS_DELAY): Remove.
9260 (syms_of_w32fns): Remove display-hourglass, hourglass-delay,
9261 hourglass_shown_p declaration/initialization.
9262
92632008-07-14 Jason Rumney <jasonr@gnu.org>
9264
9265 * w32fns.c (w32_get_arg): Remove wrapper function.
9266 (w32_createwindow, x_icon, x_create_tip_frame): Use x_get_arg
9267 directly.
9268 (Fx_create_frame): Sync with xfns.c. Use x_get_arg directly.
9269
92702008-07-14 Kenichi Handa <handa@m17n.org>
9271
9272 * xfont.c (xfont_open): Add workaround for X's bug.
9273
92742008-07-14 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
9275
9276 * fontset.c: Include <stdio.h> unconditionally.
9277
92782008-07-13 Michael Albinus <michael.albinus@gmx.de>
9279
9280 * dbusbind.c (Fdbus_register_signal): Allow also signal arguments
9281 for filtering.
9282
92832008-07-13 Dan Nicolaescu <dann@ics.uci.edu>
9284
9285 * s/vms.h: Use __GNUC__ instead of _GNUC_.
9286
9287 * m/macppc.h:
9288 * m/alpha.h: Use GNU_LINUX instead of LINUX. Reorganize conditionals.
9289
9290 * m/ibms390x.h (XINT, XUINT): Don't define, same as the default
9291 (SPECIAL_EMACS_INT):
9292 * m/ia64.h (SPECIAL_EMACS_INT):
9293 * m/amdx86-64.h (SPECIAL_EMACS_INT):
9294 * s/gnu.h (NLIST_STRUCT):
9295 * s/aix4-2.h (X11R5_INHIBIT_I18N):
9296 * s/gnu-linux.h (LINUX):
9297 * s/msdos.h (HAVE_FACES):
9298 * s/ms-w32.h (HAVE_FACES): Don't define, unused.
9299
9300 * systty.h:
9301 * sysdep.c (setup_pty): Don't depend on SYSV_PTYS, it is not used
9302 anymore.
9303
93042008-07-12 Dan Nicolaescu <dann@ics.uci.edu>
9305
9306 * syswait.h: Remove old if 0 code. Do not define WAITTYPE, it was
9307 always defined as int.
9308
9309 * s/netbsd.h (HAVE_UNION_WAIT, HAVE_WAIT_HEADER, WAIT_USE_INT):
9310 * s/gnu.h (HAVE_WAIT_HEADER, WAIT_USE_INT, HAVE_UNION_WAIT):
9311 * s/gnu-linux.h (HAVE_WAIT_HEADER):
9312 * s/freebsd.h (HAVE_WAIT_HEADER):
9313 * s/bsd-common.h (HAVE_UNION_WAIT):
9314 * s/aix4-2.h (HAVE_WAIT_HEADER):
9315 * m/mips.h (HAVE_UNION_WAIT):
9316 * s/usg5-4.h (HAVE_WAIT_HEADER, WAITTYPE): Do not define, not used.
9317 (COFF, static): Do not define, they are undefined later in the file.
9318
9319 * process.c (update_status): Don't use a union.
9320 (status_convert):
9321 (sigchld_handler): Use int instead of WAITTYPE.
9322
93232008-07-12 Chong Yidong <cyd@stupidchicken.com>
9324
9325 * indent.c (Fvertical_motion): Restore hscroll before moving to
9326 goal column.
9327
93282008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9329
9330 * lisp.h: Remove left over code.
9331
93322008-07-11 Andreas Schwab <schwab@suse.de>
9333
9334 * lisp.h: Fix logic in last change.
9335
9336 * menu.h: New file.
9337 * menu.c: Include it.
9338 * xmenu.c: Likewise.
9339 * Makefile.in: Update dependencies.
9340
93412008-07-11 Kenichi Handa <handa@m17n.org>
9342
9343 * fontset.c (fontset_from_font): Cancel the previous change.
9344
93452008-07-11 Dan Nicolaescu <dann@ics.uci.edu>
9346
9347 * lisp.h:
9348 * w32heap.c:
9349 * emacs.c:
9350 * alloc.c: Replace all references of NO_UNION_TYPE with
9351 USE_LISP_UNION_TYPE.
9352
9353 * m/xtensa.h (NO_UNION_TYPE):
9354 * m/vax.h (NO_UNION_TYPE):
9355 * m/template.h (NO_UNION_TYPE):
9356 * m/sparc.h (NO_UNION_TYPE):
9357 * m/mips.h (NO_UNION_TYPE):
9358 * m/macppc.h (NO_UNION_TYPE):
9359 * m/m68k.h (NO_UNION_TYPE):
9360 * m/iris4d.h (NO_UNION_TYPE):
9361 * m/intel386.h (NO_UNION_TYPE):
9362 * m/ibms390x.h (NO_UNION_TYPE):
9363 * m/ibms390.h (NO_UNION_TYPE):
9364 * m/ibmrs6000.h (NO_UNION_TYPE):
9365 * m/ia64.h (NO_UNION_TYPE):
9366 * m/hp800.h (NO_UNION_TYPE):
9367 * m/arm.h (NO_UNION_TYPE):
9368 * m/amdx86-64.h (NO_UNION_TYPE):
9369 * m/alpha.h (NO_UNION_TYPE): Remove definition, all platform were
9370 defining it the same.
9371
93722008-07-10 Chong Yidong <cyd@stupidchicken.com>
9373
9374 * xdisp.c (move_it_to): Backtrack if past the edge of a wrapped line.
9375
93762008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9377
9378 * fileio.c:
9379 * sysdep.c
9380 * systty.h:
9381 * m/ibmrs6000.h:
9382 * m/iris4d.h:
9383 * s/aix4-2.h:
9384 * s/freebsd.h:
9385 * s/gnu-linux.h:
9386 * s/hpux10-20.h:
9387 * s/hpux11.h:
9388 * s/netbsd.h:
9389 * s/sol2-3.h:
9390 * s/sol2-4.h:
9391 * s/sol2.h:
9392 * s/usg5-4.h:
9393 * s/vms.h: Remove references to unused variables.
9394
93952008-07-10 Andreas Schwab <schwab@suse.de>
9396
9397 * ftfont.c (ftfont_resolve_generic_family): Remove foundry from
9398 pattern before matching the generic family.
9399
94002008-07-10 Dan Nicolaescu <dann@ics.uci.edu>
9401
9402 * unexec.c:
9403 * s/vms.h:
9404 * s/usg5-4-2.h:
9405 * s/sol2-5.h:
9406 * s/freebsd.h:
9407 * s/darwin.h: Remove dead code.
9408
9409 * m/template.h:
9410 * m/sparc.h:
9411 * m/mips.h:
9412 * m/m68k.h:
9413 * m/iris4d.h:
9414 * m/intel386.h:
9415 * m/ibms390x.h:
9416 * m/ibms390.h:
9417 * m/ia64.h:
9418 * m/hp800.h:
9419 * m/arm.h:
9420 * m/amdx86-64.h: Remove dead code and references to unused
9421 and compiler defined symbols.
9422
9423 * unexmips.c:
9424 * unexelf.c: Remove references to desupported systems.
9425
9426 * m/powermac.h: Remove file, it is now identical to m/macppc.h.
9427
9428 * m/powermac.h: Remove boilerplate comments.
9429 (NO_REMAP): Remove unused definition.
9430
9431 * m/macppc.h (UNEXEC, NO_TERMIO): Don't define, the s/ files
9432 define them.
9433
94342008-07-10 Kenichi Handa <handa@m17n.org>
9435
9436 * xfont.c (xfont_open): Log the reason of failure.
9437
94382008-07-09 Stefan Monnier <monnier@iro.umontreal.ca>
9439
9440 * fontset.c (fontset_get_font_group):
9441 * font.c (font_check_otf): Specify argument types.
9442
94432008-07-09 Kenichi Handa <handa@m17n.org>
9444
9445 * coding.c (detect_coding_utf_8): Set detect_info->found only when
9446 non-ASCII char is found.
9447
9448 * fontset.c (fontset_compare_rfontdef): Fix plus/minus.
9449 (reorder_font_vector): Change the arg preferred_family to font.
9450 Prefer the spec matching with font.
9451 (fontset_get_font_group): New function.
9452 (fontset_find_font): Change the format of an element of a realized
9453 fontset. Use fontset_get_font_group.
9454 (fontset_font): Try the current fontset, the default fontset, the
9455 fallbacks of the current fontset, and the fallbacks of the default
9456 fontset in this order.
9457 (face_for_char): Delete the shortcut to use the current font.
9458 (fontset_from_font): Don't set fonts for Latin in the fontset.
9459
9460 * font.h (font_make_object, font_match_p): Adjust prototypes.
9461
9462 * ftfont.h [FT_BDF_H]: Include FT_BDF_H.
9463
9464 * font.c (font_make_object): New arg entity and pixelsize.
9465 (font_check_otf_features, font_check_otf): New functions.
9466 (font_match_p): Check :lang, :script, and :otf properties.
9467
9468 * xfont.c (xfont_open): Adjust it for the change of
9469 font_make_object.
9470 (xfont_text_extents): Fix initial setting of metrics.
9471
9472 * ftfont.c (struct ftfont_info): New member index, delete member
9473 fc_charset_idx. Make the member order compatible with struct
9474 xftfont_info.
9475 (fc_charset_table): Change charset names to registry names.
9476 (ftfont_pattern_entity): Delete the args registry and
9477 fc_charset_idx. Change the value of :font-entity property
9478 to (FONTNAME . INDEX). Always set :registry property to
9479 `iso10646-1'.
9480 (struct ftfont_cache_data): New struct.
9481 (ftfont_lookup_cache): New arg for_face.
9482 (ftfont_get_fc_charset, ftfont_get_otf): New functions.
9483 (ftfont_driver): Set the member otf_capability.
9484 (ftfont_get_charset): Adjust it for the change of
9485 fc_charset_table.
9486 (OTF_TAG_SYM): New macro.
9487 (ftfont_spec_pattern): Delete the arg fc_charset_idx. Adjust it
9488 for the change of fc_charset_table.
9489 (ftfont_list): Adjust it for the change of ftfont_spec_pattern and
9490 ftfont_pattern_entity. Add FC_INDEX to objset.
9491 (ftfont_match): Adjust it for the change of ftfont_spec_pattern
9492 and ftfont_pattern_entity.
9493 (ftfont_open): Adjust it for the change of ftfont_lookup_cache,
9494 font_make_object, struct ftfont_info.
9495 (ftfont_has_char): Use ftfont_get_fc_charset.
9496 (ftfont_otf_features, ftfont_otf_capability): New functions.
9497 (ftfont_shape): Use ftfont_get_otf.
9498 (ftfont_text_extents): Fix initial setting of metrics.
9499
9500 * xftfont.c (struct xftfont_info): New member ft_size. Make the
9501 member order compatible with struct ftfont_info.
9502 (xftfont_open): Add FC_CHARSET to the pattern. Set
9503 xftfont_info->ft_size. Don't unlock the face. Check BDF
9504 properties if appropriate.
9505 (xftfont_close): Unlock the face.
9506 (xftfont_anchor_point, xftfont_shape): Deleted.
9507 (syms_of_xftfont): Don't set members anchor_point and shape of
9508 xftfont_driver.
9509
9510 * w32uniscribe.c (uniscribe_open): Adjust it for the change of
9511 font_make_object.
9512
9513 * w32font.c (w32font_open): Adjust it for the change of
9514 font_make_object.
9515 (w32font_open_internal): Don't set properties of font_object here.
9516
95172008-07-08 Chong Yidong <cyd@stupidchicken.com>
9518
9519 * macfns.c (x_create_tip_frame):
9520 * w32fns.c (x_create_tip_frame):
9521 * xfns.c (x_create_tip_frame): Pass parameter argument to
9522 face-set-after-frame-default.
9523
9524 * xfaces.c (Finternal_merge_in_global_face): Save merged
9525 attributes for the default face back into the face vector.
9526
95272008-07-08 Andreas Schwab <schwab@suse.de>
9528
9529 * fontset.h: Declare fontset_from_font. Don't declare
9530 new_fontset_from_font and fontset_from_font_name.
9531 * xterm.c: Include "fontset.h".
9532 * Makefile.in (xterm.o): Update dependencies.
9533
95342008-07-08 Glenn Morris <rgm@gnu.org>
9535
9536 * m/sparc.h: Define __sparc__ rather than sparc. (Bug#507.)
9537 * alloc.c, ecrt0.c: Use __sparc__ rather than sparc.
9538
95392008-07-07 Chong Yidong <cyd@stupidchicken.com>
9540
9541 * frame.c (Qinhibit_face_set_after_frame_default): Var deleted.
9542 (x_set_frame_parameters): Don't bind it.
9543
95442008-07-07 Juanma Barranquero <lekktu@gmail.com>
9545
9546 * w32fns.c (map_w32_filename): Declare extern.
9547
95482008-07-07 Jason Rumney <jasonr@gnu.org>
9549
9550 * w32term.c (WS_EX_LAYERED): Define if not already.
9551
95522008-07-06 Chong Yidong <cyd@stupidchicken.com>
9553
9554 * xfaces.c (set_font_frame_param): Don't try to set the font
9555 parameter if it is still unspecified in the lface.
9556
95572008-07-05 Chong Yidong <cyd@stupidchicken.com>
9558
9559 * xfaces.c (Finternal_merge_in_global_face): Don't realize default
9560 face if it didn't already exist.
9561
9562 * xdisp.c (try_window_id): Give up if word-wrapping is on.
9563
95642008-07-05 Andreas Schwab <schwab@suse.de>
9565
9566 * xdisp.c (get_it_property): Move out of HAVE_WINDOW_SYSTEM section.
9567
95682008-07-05 Chong Yidong <cyd@stupidchicken.com>
9569
9570 * xdisp.c (IT_OVERFLOW_NEWLINE_INTO_FRINGE): Turn it off if
9571 word-wrapping.
9572 (IT_DISPLAYING_WHITESPACE): New macro.
9573 (move_it_in_display_line_to): Handle MOVE_TO_X requests properly
9574 when word-wrapping. Simplify word-wrapping logic. Use correct
9575 pixel positions when saving copies of the iterator.
9576 (display_line): Use proper wrap point if the last character on a
9577 line was preceded by whitespace.
9578
95792008-07-04 Stefan Monnier <monnier@iro.umontreal.ca>
9580
9581 * Makefile.in (${etc}DOC): Depend on ${lisp} rather than ${shortlisp}.
9582
95832008-07-04 Kenichi Handa <handa@m17n.org>
9584
9585 * fns.c (Fstring_to_unibyte): Delete the arg ACCEPT-LATIN-1.
9586
9587 * lisp.h: EXFUN adjusted for the change of Fstring_to_unibyte.
9588
95892008-07-02 Jason Rumney <jasonr@gnu.org>
9590
9591 * xfns.c (syms_of_xfns): Only define x-select-font when both
2ae37cf0 9592 HAVE_FREETYPE and USE_GTK.
aac0c6e3
MR
9593
9594 * xdisp.c (next_element_from_display_vector): Move assignment out
9595 of if statement.
9596
95972008-07-02 Toru Tsuneyoshi <t_tuneyosi@hotmail.com>
9598
9599 * lisp.h (Qdelete_file, Qdelete_directory): Declare extern.
9600
9601 * fileio.c (delete_by_moving_to_trash, Qmove_file_to_trash): New vars.
9602 (syms_of_fileio): Initialize and export them.
9603 (Fdelete_directory, Fdelete_file): Optionally delete via trash.
9604
9605 * w32fns.c (FOF_NO_CONNECTED_ELEMENTS): Define if not already.
9606 (Fsystem_move_file_to_trash): New function.
9607 (syms_of_w32fns): Export it to lisp.
9608
96092008-07-01 Jason Rumney <jasonr@gnu.org>
9610
9611 * w32font.c (w32font_text_extents): Don't count overhang as part
9612 of width.
9613
96142008-06-30 Miles Bader <miles@gnu.org>
9615
9616 * dispextern.h (struct glyph, struct it, struct iterator_stack_entry):
9617 Add `avoid_cursor_p' field.
9618
9619 * xdisp.c (push_it, pop_it): Save/restore avoid_cursor_p field.
9620 (set_cursor_from_row): Skip glyphs with avoid_cursor_p set.
9621 (append_glyph, append_composite_glyph, produce_image_glyph)
9622 (append_stretch_glyph): Initialize avoid_cursor_p.
9623 (get_it_property): Rename from `get_line_height_property'.
9624 (x_produce_glyphs): Use get_it_property.
9625 (handle_line_prefix, push_display_prop): New functions.
9626 (display_line, move_it_in_display_line_to): Handle line/wrap prefixes.
9627 (Vwrap_prefix, Qwrap_prefix, Vline_prefix, Qline_prefix):
9628 New variables.
9629 (syms_of_xdisp): Initialize them.
9630
96312008-06-30 Kenichi Handa <handa@m17n.org>
9632
9633 * xftfont.c (xftfont_open): Don't call FcConfigSubstitute and
9634 XftDefaultSubstitute (they are called in XftFontMatch).
9635 (xftfont_open): Fix args to ftfont_font_format.
9636
9637 * ftfont.c (fc_charset_table): New member lang.
9638 (ftfont_resolve_generic_family): New arg pattern.
60612c8f 9639 (ftfont_spec_pattern): Check fc_charset_table[]->lang.
aac0c6e3
MR
9640 (ftfont_list): Call ftfont_resolve_generic_family with `pattern'.
9641 (ftfont_open): Fix args to ftfont_font_format.
9642 (ftfont_font_format): New arg filename.
9643
96442008-06-30 Chong Yidong <cyd@stupidchicken.com>
9645
9646 * xfaces.c (Finternal_merge_in_global_face): If default face was
9647 modified, realize it again. Update the font face attribute.
9648
96492008-06-29 Jason Rumney <jasonr@gnu.org>
9650
9651 * w32term.c (x_set_frame_alpha): Fix logic.
9652
96532008-06-29 Kenichi Handa <handa@m17n.org>
9654
9655 * fontset.c (Finternal_char_font): Return font-object instead of
9656 font-name.
9657
9658 * composite.c (get_composition_id): Fix the width calculation for TAB.
9659
96602008-06-29 Stefan Monnier <monnier@iro.umontreal.ca>
9661
9662 * indent.c (Fvertical_motion): Properly handle float column arg.
9663
96642008-06-28 Jason Rumney <jasonr@gnu.org>
9665
9666 * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer.
9667 (pfnSetLayeredWindowAttributes): New function pointer.
9668 (w32_initialize): Initialize it when supported.
9669 (x_set_frame_alpha): New function.
9670
9671 * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'.
9672 (w32_frame_parm_handlers): Set alpha handler.
9673
9674 * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha.
9675
96762008-06-27 Jason Rumney <jasonr@gnu.org>
9677
9678 * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight)
9679 (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions.
9680 (w32_to_x_charset, x_to_w32_charset)
9681 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9682 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9683 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9684 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9685 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9686 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9687 (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c.
9688 (Qw32_charset_unicode): Remove.
9689 (syms_of_w32fns): Update for above changes.
9690
9691 * w32font.c (w32_to_x_charset, x_to_w32_charset)
9692 (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default)
9693 (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab)
9694 (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem)
9695 (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic)
9696 (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek)
9697 (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai)
9698 (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c.
9699 (syms_of_w32font): Update for above changes.
9700
97012008-06-27 Dan Nicolaescu <dann@ics.uci.edu>
9702
9703 * s/usg5-4.h: Fix previous change: keep the correct branch of a
9704 removed #if.
9705 (USG_SHARED_LIBRARIES): Remove duplicate definition.
9706
97072008-06-26 Juanma Barranquero <lekktu@gmail.com>
9708 Eli Zaretskii <eliz@gnu.org>
9709
9710 * makefile.w32-in (LOCAL_FLAGS):
9711 Don't include WINDOWSNT, DOS_NT and _UCHAR_T.
9712
9713 * sysdep.c (_spawnlp, _getpid):
9714 Declare with explicit _cdecl instead of _CRTAPI1.
9715
9716 * editfns.c (Fget_internal_run_time):
9717 Check for WINDOWSNT with #ifdef, not #if.
9718
97192008-06-26 Jason Rumney <jasonr@gnu.org>
9720
9721 * w32font.h (FONT_HANDLE, FONT_TEXTMETRIC): New macros.
9722
9723 * w32term.c (x_draw_glyph_string_foreground)
9724 (x_draw_composite_glyph_string_foreground): Sync with xterm.c.
9725 Use FONT_HANDLE macro.
9726 (x_draw_glyph_string): Use FONT_TEXTMETRIC macro.
9727
9728 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9729 (uniscribe_encode_char): Use FONT_HANDLE macro.
9730
9731 * w32font.c (Fx_select_font): Use FONT_HANDLE macro.
9732 (w32font_text_extents): Use precast w32_font.
9733 (w32font_close): Free cached metrics.
9734 (w32font_open_internal): Allocate space for name on stack.
9735
97362008-06-26 Chong Yidong <cyd@stupidchicken.com>
9737
9738 * xdisp.c (extend_face_to_end_of_line): Fix last change.
9739
97402008-06-26 Jason Rumney <jasonr@gnu.org>
9741
9742 * w32term.h (FONT_AVG_WIDTH): Remove obsolete macro.
9743 (CP_8BIT, CP_UNICODE, CP_UNKNOWN): Remove obsolete constants.
9744
97452008-06-26 Juanma Barranquero <lekktu@gmail.com>
9746
9747 * Makefile.in (SOME_MACHINE_OBJECTS): Remove w32bdf.o.
9748
97492008-06-26 Jason Rumney <jasonr@gnu.org>
9750
9751 * w32bdf.c, w32bdf.h: Remove obsolete files.
9752
9753 * makefile.w32-in: Remove refs to w32bdf.h and w32bdf.c.
9754
9755 * w32gui.h: Don't include w32bdf.h.
9756 (XCharStruct, enum w32_char_font_type, W32FontStruct):
9757 Remove obsolete font support.
9758
9759 * w32font.h (struct w32font_info): Remove compat_w32_font.
9760 Add hfont member.
9761 (FONT_COMPAT): Remove obsolete macro.
9762
9763 * w32font.c (w32font_close): Remove compat code. Delete hfont member.
9764 (w32font_encode_char, w32font_text_extents): Use new hfont member.
9765 (w32font_open_internal): Remove compat code. Set new hfont member.
9766 (Fx_select_font): Use new hfont member.
9767
9768 * w32uniscribe.c (uniscribe_otf_capability, uniscribe_shape)
9769 (uniscribe_encode_char): Use new hfont member.
9770
9771 * w32term.c (x_draw_glyph_string_foreground)
9772 (x_draw_composite_glyph_string_foreground): Use new hfont member.
9773 (x_draw_glyph_string): Use metrics in w32font_info.
9774
97752008-06-26 Kenichi Handa <handa@m17n.org>
9776
9777 * xdisp.c (handle_auto_composed_prop): Fix for the terminal case.
9778
97792008-06-26 Dan Nicolaescu <dann@ics.uci.edu>
9780
9781 * unexnext.c:
9782 * m/ews4800.h:
9783 * m/hp9000s300.h:
9784 * m/ibm370aix.h:
9785 * m/mips-siemens.h:
9786 * m/ncr386.h:
9787 * m/next.h:
9788 * m/pmax.h:
9789 * m/powerpcle.h:
9790 * m/tandem-s2.h:
9791 * s/386bsd.h:
9792 * s/bsd386.h:
9793 * s/bsd4-1.h:
9794 * s/bsd4-2.h:
9795 * s/bsdos2-1.h:
9796 * s/bsdos2.h:
9797 * s/bsdos3.h:
9798 * s/bsdos4.h:
9799 * s/nextstep.h:
9800 * s/ultrix4-3.h:
9801 * s/usg5-0.h:
9802 * s/usg5-2-2.h:
9803 * s/usg5-2.h:
9804 * s/usg5-4-3.h:
9805 * s/ux4800.h:
9806 * s/uxpds.h:
9807 * s/uxpv.h: Remove support for obsolete systems.
9808 * s/hpux.h, s/hpux10.h, s/hpux8.h, s/hpux9.h, s/hpux9shr.h:
8f3a3ac2 9809 Remove, insert contents in s/hpux10-20.h.
aac0c6e3
MR
9810 * s/aix3-1.h, s/aix3-2-5.h, s/aix3-2.h, s/aix4-1.h, s/aix4.h:
9811 Remove, insert contents in s/aix4-2.h.
9812 * s/usg5-3.h: Remove, insert contents in s/usg5-4.h.
9813 * s/bsd4-3.h: Rename to ...
9814 * s/bsd-common.h: ... this.
9815 * data.c:
9816 * doc.c:
9817 * ecrt0.c:
9818 * emacs.c:
9819 * fileio.c:
9820 * floatfns.c:
9821 * keyboard.c:
9822 * mem-limits.h:
9823 * print.c:
9824 * process.c:
9825 * sysdep.c:
9826 * syssignal.h:
9827 * systty.h:
9828 * syswait.h:
9829 * term.c:
9830 * unexec.c:
9831 * unexelf.c:
9832 * unexhp9k800.c:
9833 * m/hp800.h:
9834 * m/ibmrs6000.h:
9835 * m/mips.h:
9836 * m/vax.h:
9837 * s/darwin.h:
9838 * s/freebsd.h:
9839 * s/gnu.h:
9840 * s/ms-w32.h:
9841 * s/msdos.h:
9842 * s/netbsd.h:
9843 * s/template.h: Remove references to obsolete variables.
9844
9845 * Makefile.in: Add dependencies for all unexec files.
9846 (admindir): Remove unused variable.
9847 (UNEXEC_SRC): Remove references.
9848
98492008-06-25 Chong Yidong <cyd@stupidchicken.com>
9850
9851 * xfns.c (x_default_font_parameter): If Xft is available, first
9852 try Monospace-12 for the default font.
9853
98542008-06-25 Jason Rumney <jasonr@gnu.org>
9855
9856 * xdisp.c (get_glyph_face_and_encoding): Encode invalid glyphs as 0.
9857
98582008-06-25 Stefan Monnier <monnier@iro.umontreal.ca>
9859
9860 * bytecode.c (Fbyte_code): Disable debugging code that doesn't compile.
9861
9862 * buffer.c (syms_of_buffer): Remove default-word-wrap.
9863
98642008-06-25 Juanma Barranquero <lekktu@gmail.com>
9865
9866 * xdisp.c (syms_of_xdisp) <truncate-partial-width-windows>: Doc fix.
9867 <scroll-conservatively>: Fix typo in docstring.
9868
9869 * xselect.c (Fx_send_client_event): Doc fix.
9870
98712008-06-25 Kenichi Handa <handa@m17n.org>
9872
9873 * xfaces.c (Fx_list_fonts): Call Flist_fonts with the arg PREFER.
9874
9875 * font.c (font_parse_fcname): Remove unused variables.
9876 (font_sort_entites): Delete the arg SPEC. Caller changed.
9877 Fix for the case of ! best_only.
9878 (font_delete_unmatched): Check DPI and AVGWIDTH too.
9879
9880 * lisp.h (Fstring_to_unibyte): EXFUN it.
9881
9882 * character.h (str_to_unibyte): Extern it.
9883
9884 * character.c (str_to_unibyte): New function.
9885
9886 * fns.c (Fstring_to_unibyte): New function.
9887 (syms_of_fns): Defsubr it.
9888
98892008-06-24 Kenichi Handa <handa@m17n.org>
9890
9891 * font.c (font_score): Even if the PIXEL_SIZE is the same, check
9892 DPI too.
9893 (font_sort_entites): Setup prefer_prop[FONT_DPI_INDEX] too.
9894
98952008-06-24 Andreas Schwab <schwab@suse.de>
9896
9897 * Makefile.in (${lispsource}loaddefs.el): Rename from
9898 ../lisp/loaddefs.el.
9899 (bootstrap-clean): Do what distclean does but don't remove
9900 Makefile.
9901 (distclean): Depend on bootstrap-clean and remove Makefile.
9902
99032008-06-24 Chong Yidong <cyd@stupidchicken.com>
9904
9905 * buffer.h (struct buffer): New member word_wrap.
9906
9907 * buffer.c (syms_of_buffer): New variables default-word-wrap and
9908 word-wrap.
9909 (init_buffer_once): Initialize them.
9910
9911 * dispextern.h (struct it): Replace bool truncate_lines_p with a
9912 line_wrap enum possessing three possible values.
9913
9914 * termopts.h: Replace truncate_partial_width_windows with
9915 Vtruncate_partial_width_windows.
9916
9917 * dispnew.c (direct_output_for_insert): Avoid direct output when
9918 inserting a space with word wrap on.
9919
9920 * indent.c (compute_motion): Obey integer values of
9921 truncate-partial-width-windows.
9922
9923 * xdisp.c (Vtruncate_partial_width_windows): New Lisp_Object,
9924 replacing truncate_partial_width_windows.
9925 (init_iterator): If Vtruncate_partial_width_windows is an integer,
9926 truncate only if the window width is below that integer.
9927 (start_display, resize_mini_window, produce_stretch_glyph)
9928 (display_string, move_it_in_display_line_to): Use line_wrap.
9929 (back_to_previous_visible_line_start, reseat_1): Reset
9930 string_from_display_prop_p.
9931 (display_line): Extend default face to end of line when wrapping.
9932
99332008-06-24 Kim F. Storm <storm@cua.dk>
9934
9935 * xdisp.c (display_line, move_it_in_display_line_to): Add ability
9936 to wrap continued lines at word boundaries.
9937
99382008-06-24 Jason Rumney <jasonr@gnu.org>
9939
9940 * font.c (Ffont_face_attributes): Multiply pixel size before point
9941 conversion to avoid multiplying rounding error.
9942
99432008-06-23 Jason Rumney <jasonr@gnu.org>
9944
9945 * w32term.c (x_draw_glyph_string_background)
9946 (x_draw_glyph_string): Remove old bdf font code.
9947
9948 * w32term.h (FONT_TYPE_FOR_UNIBYTE, FONT_TYPE_FOR_MULTIBYTE): Remove.
9949
99502008-06-22 Kenichi Handa <handa@m17n.org>
9951
9952 * font.c (font_find_for_lface): Try the adstyle specified in
9953 the property of LFACE_FONT of LFACE (if any).
9954
99552008-06-21 Seiji Zenitani <zenitani@mac.com>
9956 Ryo Yoshitake <ryo@shiftmode.net>
9957
9958 * xterm.c (x_set_frame_alpha): Add x_catch_errors for bug#437.
9959
99602008-06-22 Stefan Monnier <monnier@iro.umontreal.ca>
9961
9962 * Makefile.in (${lisp} ${SOME_MACHINE_LISP}, ../lisp/loaddefs.el):
9963 Use $(BOOTSTRAPEMACS) rather than witness-emacs.
9964 (bootstrap-emacs${EXEEXT}): Merge witness-emacs into it.
9965 (witness-emacs): Remove.
9966 (lisp, shortlisp): Move loaddefs.el earlier.
9967 (mostlyclean): Forget about witness-emacs.
9968
99692008-06-22 Glenn Morris <rgm@gnu.org>
9970
9971 * Makefile.in (witness-emacs): Depend on temacs${EXEEXT}.
9972 (.SUFFIXES): Declare .el.elc as a suffix rule, for non-GNU makes.
9973
99742008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9975
9976 * Makefile.in (PRECOMP): Remove.
9977 (${lisp} ${SOME_MACHINE_LISP}): Remove pseudo dependency on PRECOMP.
9978 (witness-emacs): Run `compile-first'.
9979 (.el.elc): Use the new compile-onefile target.
9980
99812008-06-21 Kenichi Handa <handa@m17n.org>
9982
9983 * xftfont.c (xftfont_open): Handle QCembolden only when
9984 FC_EMBOLDEN is defined.
9985
99862008-06-21 Andreas Schwab <schwab@suse.de>
9987
9988 * Makefile.in (witness-emacs): Use ../lisp, not $(lispsource).
9989 (.el.elc): Likewise.
9990
99912008-06-21 Miles Bader <miles@gnu.org>
9992
9993 * Makefile.in (../lisp/loaddefs.el): Build autoloads in the lisp
9994 build dir, not the lisp source dir.
9995
99962008-06-21 Stefan Monnier <monnier@iro.umontreal.ca>
9997
9998 * Makefile.in (emacs${EXEEXT}): Link the new emacs to bootstrap-emacs.
9999 (bootstrapclean): Remove.
10000 (.el.elc): New rule.
10001 (PRECOMP): New var.
10002 (../lisp/subdirs.el): Remove.
10003 (bootstrap-emacs${EXEEXT}): Remove subdirs.el and charpro.el dependency.
10004 (witness-emacs): New target.
10005 (mostlyclean): Remove witness-emacs as well.
10006 (../lisp/loaddefs.el, ${lisp} ${SOME_MACHINE_LISP}):
10007 Add witness-emacs dependency.
10008
100092008-06-20 Chong Yidong <cyd@stupidchicken.com>
10010
10011 * font.c (Ffont_face_attributes): Omit key-attribute pairs not
10012 defined by the font.
10013
100142008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10015
10016 * Makefile.in (emacs${EXEEXT}): Depend on the machine-specific files.
10017 (bootstrap-clean): New target that keeps TAGS around.
10018 (../lisp/subdirs.el, ../lisp/loaddefs.el): New targets.
10019 (bootstrap-emacs${EXEEXT}): Depend on subdirs.el.
10020
100212008-06-20 Jason Rumney <jasonr@gnu.org>
10022
10023 * w32fns.c, w32term.c, w32term.h, w32gui.h [OLD_FONT]:
10024 Remove obsolete font code.
10025
10026 * w32font.c (font_matches_spec): Use csb bitfield from font signature
10027 to determine language support.
10028
100292008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10030
10031 * sysdep.c (cfsetspeed): New fun extracted from the code.
10032 (cfmakeraw): Move before first use.
10033
100342008-06-20 Angelo Graziosi <angelo.graziosi@alice.it> (tiny change)
10035
10036 * sysdep.c (cfmakeraw): Provide fallback implementation.
10037 (serial_configure): Provide fallback implementation of cfsetspeed.
10038
100392008-06-20 Kenichi Handa <handa@m17n.org>
10040
10041 * xftfont.c (xftfont_open): Add FOUNDRY, SPACING, DPI, SCALABLE to
10042 the pattern.
10043
10044 * fontset.c (fontset_from_font): Copy font_spec before changing
10045 the elements.
10046
10047 * xfns.c (x_default_font_parameter): Try "monospace-12" too.
10048
100492008-06-20 Stefan Monnier <monnier@iro.umontreal.ca>
10050
10051 * w32fns.c, xfns.c (x_default_font_parameter): Only set `font-param'
10052 for explicit `font' parameters.
10053
10054 * frame.c (x_set_font): Remove unexplained call to fix inf-recursion.
10055
100562008-06-19 Kenichi Handa <handa@m17n.org>
10057
10058 * frame.c: Include <ctype.h>.
10059 (x_set_font_backend): Allow spacing characters in the X resource
10060 for FontBackend.
10061
100622008-06-19 Stefan Monnier <monnier@iro.umontreal.ca>
10063
10064 * w32fns.c, xfns.c (Qfont_param): New var.
10065 (syms_of_w32fns): Initialize it.
10066 (x_default_font_parameter): Record explicit `font' into
10067 `font-parameter'.
10068
100692008-06-18 Kenichi Handa <handa@m17n.org>
10070
10071 * font.c (font_parse_xlfd): Fix previous change.
10072 (font_parse_fcname): Don't use :fc-unknown-spec.
10073 (FRAME_X_DISPLAY_INFO): Be sure to have at least 1 pixel height.
10074 (Fcopy_font_spec): Preserve the order of elements in FONT_EXTRA.
10075 (font_add_log): Prepend the driver name to the resulting fonts.
10076
10077 * ftfont.c (ftfont_pattern_entity): New arg extra. Caller changed.
10078 (ftfont_spec_pattern): Don't check QCfc_unknown_spec and QCname.
10079 (ftfont_list) [FC_FONTFORMAT]: Include FC_FONTFORMAT in objset.
10080
10081 * xftfont.c (QChinting , QCautohint, QChintstyle, QCrgba)
10082 (QCembolden): New variables.
10083 (syms_of_xftfont): DEFSYM them.
10084 (xftfont_open): Call XftFontMatch. Don't trust the result of
10085 XftTextExtents8 if the pixel_size is less than 5.
10086
100872008-06-18 Andreas Schwab <schwab@suse.de>
10088
10089 * font.c (Ffont_face_attributes): Only define if HAVE_WINDOW_SYSTEM.
10090 (syms_of_font): Only defsubr if HAVE_WINDOW_SYSTEM.
10091
100922008-06-18 Jason Rumney <jasonr@gnu.org>
10093
10094 * w32font.c (w32font_list, w32font_match): Add logging.
10095
10096 * w32uniscribe.c (uniscribe_list, uniscribe_match): Add logging.
10097
100982008-06-17 Chong Yidong <cyd@stupidchicken.com>
10099
10100 * font.c (font_parse_fcname): Store divider characters for
10101 unknown-spec list. For known key symbols, intern using correct
10102 symbol name.
10103
101042008-06-17 Kenichi Handa <handa@m17n.org>
10105
10106 * xfaces.c (realize_default_face): If the frame is not on window
10107 system, set the fontset of face to nil.
10108
101092008-06-17 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10110
10111 * fontset.c (fontset_pattern_regexp): Escape some reg-expr characters.
10112
101132008-06-16 Juanma Barranquero <lekktu@gmail.com>
10114
10115 * dispextern.h (lookup_non_ascii_face, split_font_name_into_vector)
10116 (build_font_name_from_vector): Delete externs.
10117
10118 * xfaces.c (struct font_name): Don't declare.
10119
101202008-06-16 Stefan Monnier <monnier@iro.umontreal.ca>
10121
10122 * font.c (font_unparse_gtkname): Use EQ to compare Lisp_Objects.
10123
101242008-06-16 Chong Yidong <cyd@stupidchicken.com>
10125
10126 * font.c (font_parse_fcname): Fix handling of unknown-spec string.
10127
101282008-06-16 Juanma Barranquero <lekktu@gmail.com>
10129
10130 * font.c (Ffont_spec): Fix usage in docstring.
10131 (Ffont_face_attributes): Doc fix.
10132
101332008-06-16 Andreas Schwab <schwab@suse.de>
10134
10135 * font.c (Ffont_face_attributes): Fix definition.
10136
101372008-06-16 Jason Rumney <jasonr@gnu.org>
10138
10139 * font.h (font_style_symbolic_from_value): Remove.
10140
10141 * font.c (font_style_symbolic_from_value): Remove.
10142 (font_style_symbolic): Revert to pre 2008-06-13 version.
10143
10144 * w32font.c (w32_to_fc_weight): New function.
10145 (w32font_full_name, logfont_to_fcname): Use it.
10146
101472008-06-16 Kenichi Handa <handa@m17n.org>
10148
10149 * font.c (font_check_object): Delete it.
10150 (font_clear_cache): Check if a font-object is alive.
10151 (font_open_entity): Likewise. Set FONT_OBJLST_INDEX of a
10152 font-object to nil.
10153 (font_close_object): Don't check FONT_CLOSE_OBJECT.
10154 (font_at): Don't call font_check_object.
10155 (Ffont_get): Return a symbol for :weight, :slant, and :width.
10156
101572008-06-16 Katsumi Yamaoka <yamaoka@jpl.org>
10158
10159 * puresize.h (BASE_PURESIZE): Increase to 1230000.
10160
101612008-06-16 Chong Yidong <cyd@stupidchicken.com>
10162
10163 * font.c (font_parse_fcname): Correctly parse KEY=VAL values.
10164
101652008-06-15 Chong Yidong <cyd@stupidchicken.com>
10166
10167 * font.c (font_parse_fcname): Only one decimal point.
10168 (font_unparse_fcname): Handle data in family and foundry indices
10169 as symbols, not strings.
10170 (font_unparse_gtkname, Ffont_face_attributes): New functions.
10171
10172 * xfns.c (Fx_select_font): Give GTK font dialog the default font name.
10173
10174 * font.h (font_unparse_gtkname): Add prototype.
10175
101762008-06-15 Naohiro Aota <nao.aota@gmail.com> (tiny change)
10177
10178 * fontset.c (fontset_pattern_regexp): Escape `+' characters in pattern.
10179
101802008-06-15 Andreas Schwab <schwab@suse.de>
10181
10182 * font.c (font_update_drivers): Fix crash when no drivers match.
10183
101842008-06-15 Stefan Monnier <monnier@iro.umontreal.ca>
10185
10186 * xfns.c (Fx_create_frame): internal-border-width default to 0 for Gtk.
10187 * gtkutil.c (xg_create_frame_widgets): Don't set internal_border_width.
10188
101892008-06-14 Stefan Monnier <monnier@iro.umontreal.ca>
10190
10191 * xdisp.c (syms_of_xdisp): Default underline-minimum-offset to 1.
10192
101932008-06-13 Stefan Monnier <monnier@iro.umontreal.ca>
10194
10195 * process.c (Fserial_process_configure, Fprocess_send_eof):
10196 Use EQ to compare Lisp_Objects.
10197
101982008-06-13 Jason Rumney <jasonr@gnu.org>
10199
10200 * w32fns.c (Fw32_select_font): Remove old font API function.
10201
10202 * w32font.c (logfont_to_fcname): New function.
10203 (Fx_select_font): New font dialog function compatible with
10204 GTK/fontconfig version.
10205
10206 * font.c (font_style_symbolic_from_value): New function.
10207 (font_style_symbolic): Use it.
10208
10209 * font.h (font_style_symbolic_from_value): Declare new function.
10210
102112008-06-13 Juanma Barranquero <lekktu@gmail.com>
10212
10213 * font.c (syms_of_font) <font-weight-table, font-slant-table>:
10214 <font-width-table>: Fix typos in docstrings.
10215
102162008-06-13 Daniel Engeler <engeler@gmail.com>
10217
10218 These changes add serial port access.
10219 * process.c: Add HAVE_SERIAL.
10220 (Fdelete_process, Fprocess_status, Fset_process_buffer)
10221 (Fset_process_filter, Fset_process_sentinel, Fprocess_contact)
10222 (list_processes_1, select_wrapper, Fstop_process)
10223 (Fcontinue_process, Fprocess_send_eof, kill_buffer_processes)
10224 (status_notify): Modify to handle serial processes.
10225 [HAVE_SERIAL] (Fserial_process_configure)
10226 [HAVE_SERIAL] (make_serial_process_unwind, Fmake_serial_process):
10227 New functions.
10228 * process.h (struct Lisp_Process): Add `type'.
10229 * sysdep.c [HAVE_TERMIOS] (serial_open, serial_configure):
10230 New functions.
10231 * w32.c (_sys_read_ahead, sys_read, sys_write): Modify to handle
10232 serial ports.
b71ac3dd 10233 (serial_open, serial_configure): New functions.
aac0c6e3
MR
10234 * w32.h: Add FILE_SERIAL.
10235 (struct _child_process): Add ovl_read, ovl_write.
10236
102372008-06-13 Kenichi Handa <handa@m17n.org>
10238
10239 * dispextern.h (enum lface_attribute_index): New member
10240 LFACE_FOUNDRY_INDEX.
10241
10242 * font.c (font_score): Delete arg alternate_families. Check only
10243 weight, slant, width, and size. Ignore the difference of alias
10244 style symbols.
10245 (font_sort_entites): Adjust for the above change. Reflect the
10246 order of font-driver to scores.
10247 (font_list_entities): Don't check alternate_familes here.
10248 (font_clear_prop): Handle foundry.
10249 (font_update_lface): Don't parse "foundry-family" form here.
10250 Handle FONT_FOUNDRY_INDEX.
10251 (font_find_for_lface): Likewise. Handle alternate families here.
10252 If registry is nil, try iso8859-1 and ascii-0.
10253 (font_open_for_lface): Pay attention to size in ENTITY.
10254 (font_open_by_name): Simplify by calling font_load_for_lface.
10255 (free_font_driver_list): Delete it.
10256 (font_update_drivers): Preserve the order of backends.
10257 (syms_of_font): Setting of sort_shift_bits adjusted for the change
10258 of font_score and font_sort_entites.
10259 (font_update_sort_order): Likewise.
10260
10261 * xfaces.c (LFACE_FOUNDRY): New macro.
10262 (check_lface_attrs): Check foundry.
10263 (set_lface_from_font): Don't parse "FOUNDRY-FAMILY" form.
10264 (merge_face_vectors): Check foundry.
10265 (merge_face_ref): Likewise.
10266 (Finternal_set_lisp_face_attribute): Likewise.
10267 (x_update_menu_appearance): Likewise.
10268 (Finternal_get_lisp_face_attribute): Likewise.
10269 (lface_hash): Likewise.
10270 (lface_same_font_attributes_p): Likewise.
10271 (x_supports_face_attributes_p): Likewise.
10272 (tty_supports_face_attributes_p): Likewise.
10273 (Finternal_set_alternative_font_family_alist): Intern strings.
10274 (Finternal_set_alternative_font_registry_alist): Downcase strings.
10275 (realize_default_face): Set LFACE_FOUNDRY (lface).
10276
10277 * xfns.c (Fx_create_frame, x_create_tip_frame): Register X
10278 font-driver at first.
10279
10280 * ftfont.c (ftfont_font_format) [! FC_FONTFORMAT]: Declare "int len;".
10281
102822008-06-12 Emanuele Giaquinta <emanuele.giaquinta@gmail.com> (tiny change)
10283
10284 * lread.c (Fload): Use xfree, not free on saved_doc_string.
10285
102862008-06-12 Jim Meyering <meyering@redhat.com>
10287
10288 Make unexec_free handle NULL the same way free does.
10289 * unexmacosx.c (unexec_free): Ignore a NULL argument.
10290
102912008-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
10292
10293 * character.h (CHAR_TO_BYTE_SAFE): New macro.
10294 * character.c (Fmultibyte_char_to_unibyte): Obey the docstring.
10295 * regex.c (RE_CHAR_TO_UNIBYTE): Use the new macro.
10296 (WEAK_ALIAS): Simplify.
10297 * syntax.c (skip_chars): Don't mark non-byte chars in the fastmap
10298 when searching a unibyte buffer.
10299
103002008-06-12 Chong Yidong <cyd@stupidchicken.com>
10301
10302 * xfns.c (Fx_select_font): Rename from x-font-dialog.
10303
103042008-06-12 Juanma Barranquero <lekktu@gmail.com>
10305
10306 * w32font.c: Include ctype.h.
10307
103082008-06-11 Jason Rumney <jasonr@gnu.org>
10309
10310 * w32font.c (w32font_encode_char): Detect missing glyphs that are
10311 misreported as space.
10312 (add_font_entity_to_list): Support unicode-bmp and unicode-sip
10313 as aliases for registry iso10646-1.
10314
103152008-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
10316
10317 * buffer.c (clone_per_buffer_values): Skip `name'.
10318
103192008-06-11 Chong Yidong <cyd@stupidchicken.com>
10320
10321 * font.c (font_parse_fcname): Fix last change; accept decimal
10322 points in font size.
10323
103242008-06-10 Jason Rumney <jasonr@gnu.org>
10325
10326 * w32uniscribe.c (add_opentype_font_name_to_list):
10327 Skip non unicode fonts.
10328
103292008-06-10 Chong Yidong <cyd@stupidchicken.com>
10330
10331 * xfns.c (Fx_font_dialog): New function.
10332
10333 * gtkutil.c (xg_dialog_response_cb): Rename from
10334 xg_file_response_callback.
10335 (pop_down_dialog): Rename from pop_down_file_dialog.
10336 (xg_get_file_name): Callers changed.
10337 (xg_get_font_name): New function.
10338
10339 * gtkutil.h (xg_get_font_name): Insert prototype.
10340
103412008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10342
10343 * xdisp.c (underline_minimum_offset): Rename from xterm.c's
10344 x_underline_minimum_display_offset.
10345 (syms_of_xdisp): Declare it here rather than in xterm.c.
10346 * dispextern.h (underline_minimum_offset): Declare it.
10347 * w32term.c (x_draw_glyph_string): Use it.
10348 * xterm.c (x_underline_minimum_display_offset): Move to xdisp.c.
10349 (syms_of_xterm): Don't declare it any more.
10350 (x_draw_glyph_string): Adjust to the new name.
10351
8719abec 103522008-06-10 David De La Harpe Golden <david@harpegolden.net>
aac0c6e3
MR
10353
10354 * xterm.c (x_underline_minimum_display_offset): New var.
10355 (x_draw_glyph_string): Use it.
10356 (syms_of_xterm): Declare it.
10357
103582008-06-10 Chong Yidong <cyd@stupidchicken.com>
10359
10360 * font.c (font_parse_fcname): Accept GTK-style font names too.
10361
103622008-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
10363
10364 * dired.c (file_name_completion): Don't return t if the match is exact
10365 but with different capitalization.
10366 * minibuf.c (Ftry_completion): Simplify.
10367
10368 * window.c (Vwindow_point_insertion_type): New var.
10369 (set_window_buffer): Use it.
10370 (syms_of_window): Init and export it to Lisp.
10371
103722008-06-10 Kenichi Handa <handa@m17n.org>
10373
10374 * font.h (font_intern_prop): Prototype adjusted.
10375
10376 * font.c (font_intern_prop): New arg force_symbol.
10377 (font_parse_xlfd, font_parse_fcname, font_parse_family_registry):
10378 Adjust for the change of font_intern_prop.
10379
10380 * ftfont.c (ftfont_pattern_entity):
10381 * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity)
10382 (w32_registry):
10383 * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for
10384 the change of font_intern_prop.
10385
103862008-06-09 Juanma Barranquero <lekktu@gmail.com>
10387
10388 * w32menu.c (digest_single_submenu): Declare extern.
10389
103902008-06-09 Jason Rumney <jasonr@gnu.org>
10391
10392 * w32term.c (x_make_frame_visible): Use alternate restore flags.
10393
10394 * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
10395 (parse_single_submenu): Remove.
10396 (digest_single_submenu): Remove.
10397 (syms_of_w32menu): Don't initialise variables that have moved
10398 to menu.c.
10399 (set_frame_menubar): Sync with version in xmenu.c.
10400 (w32_menu_show): Sync with xmenu_show in xmenu.c.
10401
10402 * menu.c (single_keymap_panes, push_menu_pane, push_menu_item):
10403 Make static again.
10404
104052008-06-09 Jason Rumney <jasonr@gnu.org>
10406
10407 Changes to w32 files related to the move of common menu code
10408 to menu.c on 2008-06-08 by Chong Yidong.
10409
10410 * menu.c [HAVE_NTGUI]: Include w32term.h, move widget related
10411 defs to w32gui.h.
10412 (single_keymap_panes, push_menu_item, push_menu_pane):
10413 Make globally visible.
10414
10415 * w32menu.c (enum button_type, widget_value, local_heap, local_alloc)
10416 (local_free, malloc_widget_value, free_widget_value)
10417 (MENU_ITEMS_ITEM_NAME, MENU_ITEMS_ITEM_ENABLE, MENU_ITEMS_ITEM_VALUE)
10418 (MENU_ITEMS_ITEM_EQUIV_KEY, MENU_ITEMS_ITEM_DEFINITION)
10419 (MENU_ITEMS_ITEM_TYPE, MENU_ITEMS_ITEM_SELECTED, MENU_ITEMS_ITEM_HELP)
10420 (MENU_ITEMS_ITEM_LENGTH, enum menu_item_idx): Remove defs.
10421 (menu_items, menu_items_allocated, menu_items_used)
10422 (menu_items_n_panes, menu_items_submenu_depth): Remove global vars.
10423 (init_menu_items, finish_menu_items, discard_menu_items)
10424 (grow_menu_items, push_submenu_start, push_submenu_end)
10425 (push_left_right_boundary, push_menu_pane, push_menu_item)
10426 (keymap_panes, single_keymap_panes, list_of_panes, list_of_items)
10427 (free_menubar_widget_tree_value, parse_single_submenu)
10428 (update_submenu_strings): Remove functions.
10429 (xmalloc_widget_value): Remove and declare extern.
10430
10431 * makefile.w32-in ($(SRC)/menu.$(O)): New target.
10432 (OBJ1): Build it.
10433
10434 * w32gui.h (widget_value, XtPointer, Boolean, enum button_type)
10435 (local_heap, local_alloc, local_free, malloc_widget_value)
10436 (free_widget_value): Define here.
10437
104382008-06-09 Kenichi Handa <handa@m17n.org>
10439
10440 * font.h (Qascii_0): Extern it.
10441
10442 * font.c (Qascii_0): New variable.
10443 (syms_of_font): DEFSYM it.
10444 (font_open_by_name): If the registry "iso8859-1" fails, try also
10445 "ascii-0".
10446
10447 * ftfont.c (ftfont_spec_pattern): Accept the registry `ascii-0'.
10448
104492008-06-08 Kenichi Handa <handa@m17n.org>
10450
10451 * .gdbinit (xfont): New command.
10452
104532008-06-08 Andreas Schwab <schwab@suse.de>
10454
10455 * menu.c [HAVE_X_WINDOWS]: Include "xterm.h".
10456 * Makefile.in (menu.o): Update dependencies.
10457
10458 * Makefile.in (obj): Always add menu.o.
10459 * emacs.c (main): Always call syms_of_menu.
10460 * keyboard.h: Remove extra #ifdef HAVE_X_WINDOW.
10461
104622008-06-08 Chong Yidong <cyd@stupidchicken.com>
10463
10464 * Makefile.in: Compile menu.c.
10465
10466 * lisp.h: Declare syms_of_menu.
10467
10468 * emacs.c (main): Call syms_of_menu.
10469
10470 * keyboard.h: Relocate platform-independent menu definitions from
10471 xmenu.c.
10472
10473 * menu.c: New file. Relocate platform-independent menu
10474 definitions from xmenu.c. Suggested by Adrian Robert.
10475
10476 * xmenu.c: Remove platform-independent menu definitions.
10477 (menu_items menu_items_inuse, menu_items_allocated)
10478 (menu_items_used, menu_items_n_panes)
10479 (menu_items_submenu_depth): Move to keyboard.h.
10480 (init_menu_items, finish_menu_items, unuse_menu_items)
10481 (discard_menu_items, restore_menu_items, save_menu_items)
10482 (grow_menu_items, push_submenu_start, push_submenu_end)
10483 (push_left_right_boundary, push_menu_pane, push_menu_item)
10484 (keymap_panes, single_keymap_panes, single_menu_item)
10485 (list_of_panes, list_of_items, find_and_call_menu_selection)
10486 (xmalloc_widget_value, free_menubar_widget_value_tree)
10487 (parse_single_submenu, digest_single_submenu)
10488 (update_submenu_strings): Move to menu.c.
10489
104902008-06-07 Stefan Monnier <monnier@iro.umontreal.ca>
10491
10492 * dispnew.c (Flast_nonminibuf_frame): Handle the NULL case.
10493
104942008-06-06 Miles Bader <miles@gnu.org>
10495
10496 * xdisp.c (x_produce_glyphs): Calculate tab width based on current
10497 face, not frame default.
10498
104992008-06-05 Martin Rudalics <rudalics@gmx.at>
10500
10501 * window.c (pop_up_windows, pop_up_frames)
10502 (display_buffer_reuse_frames, Vpop_up_frame_function)
10503 (Vdisplay_buffer_function, Veven_window_heights)
10504 (Vspecial_display_buffer_names, Vspecial_display_regexps)
10505 (Vspecial_display_function, Vsame_window_buffer_names)
10506 (Vsame_window_regexps, split_height_threshold)
10507 (Vsplit_window_preferred_function): Move those vars to window.el.
10508 (display_buffer_1, Fspecial_display_p, Fsame_window_p)
10509 (Fdisplay_buffer): Move those functions to window.el.
10510 (syms_of_window): Remove corresponding declarations.
10511 (display_buffer): New function.
10512 (temp_output_buffer_show, Fother_window_for_scrolling): Use it.
10513 * dispnew.c (Flast_nonminibuf_frame): New function.
10514 * buffer.c (Fpop_to_buffer): Move to window.el.
10515
105162008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10517
10518 * data.c (set_internal): Fix up call to let_shadows_buffer_binding_p.
10519
105202008-06-05 Kenichi Handa <handa@m17n.org>
10521
10522 * coding.c (detect_coding): Fix previous change.
10523 (detect_coding_system): Likewise.
10524
105252008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10526
10527 * character.h (MAKE_CHAR_MULTIBYTE): Check the arg is a (uni)byte.
10528
10529 * keymap.c (Vminibuffer_local_filename_must_match_map):
10530 Rename from Vminibuffer_local_must_match_filename_map.
10531 (syms_of_keymap):
10532 * minibuf.c (Fcompleting_read): Adjust accordingly.
10533 * commands.h: Rename declaration as well.
10534
105352008-06-05 Kenichi Handa <handa@m17n.org>
10536
10537 * font.c (Ffont_spec): Don't use font_parse_family_registry for
10538 family name.
10539 (Ffont_put): Likewise.
10540
10541 * fontset.c (fontset_find_font): Call font_open_for_lface with the
10542 current font-spec.
10543
10544 * xfont.c (xfont_list): Don't set registry to iso8859-1 even if it
10545 is unspecified.
10546
10547 * xfaces.c (realize_x_face): If the font-related face attributes
10548 are the same as those of default face, realize a new fontset from
10549 default->fontset.
10550 (Fx_family_fonts): Use font_parse_family_registry instead of Ffont_put.
10551
105522008-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
10553
10554 * xdisp.c (move_it_in_display_line_to): Improve the type of its args.
10555 (move_it_in_display_line): New wrapper.
10556
10557 * window.c (window_scroll_pixel_based_preserve_x)
10558 (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars.
10559 (window_scroll_pixel_based, window_scroll_line_based):
10560 Use them to preserve column positions.
10561 (syms_of_window): Initialize them.
10562
10563 * indent.c (Fvertical_motion): Extend first arg to allow passing an
10564 (HPOS . VPOS) pair.
10565
10566 * dispextern.h (move_it_in_display_line): Declare.
10567
105682008-06-05 Juanma Barranquero <lekktu@gmail.com>
10569
10570 * window.c (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).
10571 (Fwindow_parameters): Return copy of parameter alist. Doc fix.
10572 (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
10573
105742008-06-04 Juanma Barranquero <lekktu@gmail.com>
10575
10576 * window.c (Fset_window_parameter): Doc fix.
10577 (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
10578
105792008-06-04 Joakim Verona <joakim@verona.se>
10580
10581 * window.h (struct window): Add new member window_parameters.
10582
10583 * window.c (Fwindow_parameters, Fwindow_parameter)
10584 (Fset_window_parameter): New defuns.
10585 (syms_of_window): Defsubr the new defuns.
10586 (make_window): Initialize window_parameters to nil.
10587
105882008-06-04 John Paul Wallington <jpw@pobox.com>
10589
10590 * eval.c (Fdefmacro): Doc fix.
10591
105922008-06-04 Kenichi Handa <handa@m17n.org>
10593
10594 * coding.c (detect_coding): Fix handling of coding->head_ascii.
10595 Be sure to call setup_coding_system when we find a proper coding system.
10596 (detect_coding_system): Fix handling of coding->head_ascii.
10597
105982008-06-03 Andreas Schwab <schwab@suse.de>
10599
10600 * font.c (font_prop_validate_spacing): Fix last change.
10601
106022008-06-03 Kenichi Handa <handa@m17n.org>
10603
10604 * font.c (font_prop_validate_spacing): Handle uppercase symbols.
10605 (font_parse_fcname): Fix handling of unknown key.
10606
10607 * xfont.c (xfont_list): Try an alias.
10608
10609 * charset.c (char_charset): Return NULL if the arg charset_list is
10610 specified and C doesn't belong to any of them.
10611
106122008-06-02 Chip Coldwell <coldwell@redhat.com>
10613
10614 * font.c (font_pixel_size): Don't take cdr of an integer.
10615
106162008-06-02 Jim Meyering <meyering@redhat.com>
10617
10618 Make "xfree (NULL)" a no-op; remove useless if-before-xfree.
10619 * alloc.c (xfree): Return right away for a NULL arg.
10620 * lread.c (nosuffix): Remove now-useless if-before-xfree tests.
10621 * gtkutil.c (xg_gtk_scroll_destroy): Likewise.
10622 * mac.c (create_apple_event_from_event_ref): Likewise.
10623 (create_apple_event_from_drag_ref, cfstring_create_normalized):
10624 Likewise.
10625 * doprnt.c (doprnt1): Likewise.
10626 * frame.c (frame): Likewise.
10627 * keyboard.c (wipe_kboard): Likewise.
10628 * macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap)
10629 (init_font_name_table, mac_unload_font, x_delete_display): Likewise.
10630 * term.c (tty_default_color_capabilities, maybe_fatal)
10631 (delete_tty): Likewise.
10632 * w16select.c (string): Likewise.
10633 * w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise.
10634 * w32bdf.c (w32_free_bdf_font): Likewise.
10635 * w32fns.c (w32_unload_font): Likewise.
10636 * w32font.c (w32font_close): Likewise.
10637 * window.c (size_window): Likewise.
10638 * xselect.c (receive_incremental_selection): Likewise.
10639 * xterm.c (x_free_frame_resources, x_delete_display): Likewise.
10640 * mactoolbox.c (create_apple_event_from_drag_ref): Likewise.
10641 * w32.c (stat): Likewise.
10642
10643 Remove useless if-before-free tests.
10644 * editfns.c (Fset_time_zone_rule): Likewise.
10645 * lread.c (nosuffix): Likewise.
10646 * ralloc.c (get_bloc): Likewise.
10647 * regex.c (reg_free): Likewise.
10648 * xftfont.c (xftfont_open, xftfont_close): Likewise.
10649 * xrdb.c (get_user_app, get_environ_db, x_load_resources): Likewise.
10650 * xsmfns.c (smc_save_yourself_CB): Likewise.
10651
106522008-06-02 Kenichi Handa <handa@m17n.org>
10653
10654 * font.c (font_find_for_lface): Handle float font size.
10655 (font_open_for_lface): Likewise.
10656
10657 * xfaces.c (x_supports_face_attributes_p): Check face->font before
10658 comparing the properties.
10659
106602008-06-01 Jason Rumney <jasonr@gnu.org>
10661
10662 * w32font.c (w32_enumfont_pattern_entity): Use requested registry.
10663 Treat iso10646-1 and Windows DEFAULT_CHARSET specially.
10664 Duplicate iso8859-1 fonts as iso10646-1 if no registry specified.
10665 Don't add empty script list.
10666 (w32_registry): Only map DEFAULT_CHARSET to iso10646-1 here.
10667
106682008-06-01 Dan Nicolaescu <dann@ics.uci.edu>
10669
10670 * Makefile.in (dot, dotdot): Remove, update users.
10671 ".." has been used elsewhere in the file for a long time.
10672 (LIBXT_STATIC): Remove conditional based on unused variable.
10673
106742008-06-01 Miles Bader <miles@gnu.org>
10675
10676 * xfaces.c (Vface_remapping_alist): New variable.
10677 (syms_of_xfaces): Initialize it.
10678 (enum named_merge_point_kind): New type.
10679 (struct named_merge_point): Add `named_merge_point_kind' field.
10680 (push_named_merge_point): Make cycle detection respect different
10681 named-merge-point kinds.
10682 (lface_from_face_name_no_resolve): Rename from `lface_from_face_name'.
10683 Remove face-name alias resolution.
10684 (lface_from_face_name): New definition using
10685 `lface_from_face_name_no_resolve'.
10686 (get_lface_attributes_no_remap): Rename from `get_lface_attributes'.
10687 Call lface_from_face_name_no_resolve instead of lface_from_face_name.
10688 (get_lface_attributes): New definition that layers face-remapping on
10689 top of get_lface_attributes_no_remap. New arg `named_merge_points'.
10690 (lookup_basic_face): New function.
10691 (lookup_derived_face): Pass new last arg to `get_lface_attributes'.
10692 (realize_named_face): Call `get_lface_attributes_no_remap' instead of
10693 `get_lface_attributes'.
10694 (face_at_buffer_position): Use `lookup_basic_face' to lookup
10695 DEFAULT_FACE_ID if necessary. When optimizing the default-face case,
10696 return default_face's face-id instead of the constant DEFAULT_FACE_ID.
10697
10698 * xdisp.c (init_iterator): Pass base_face_id through
10699 `lookup_basic_face' when we actually use it as a face-id.
10700 (handle_single_display_prop): Use `lookup_basic_face' to lookup
10701 DEFAULT_FACE_ID.
10702
10703 * fontset.c (Finternal_char_font): Use `lookup_basic_face' to
10704 lookup the initial face-id.
10705
10706 * dispextern.h (lookup_basic_face, Vface_remapping_alist): New decls.
10707
107082008-06-01 Juanma Barranquero <lekktu@gmail.com>
10709
10710 * textprop.c (syms_of_textprop) <text-property-default-nonsticky>:
10711 (Fremove_text_properties): Fix typos in docstrings.
10712
107132008-05-31 Kenichi Handa <handa@m17n.org>
10714
10715 * font.c (font_list_entities): Fix the car part of data to be
10716 stored in the cache.
10717
10718 * ftfont.c (ftfont_font_format): Don't use strcasestr.
10719
107202008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10721
10722 * chartab.c (Foptimize_char_table, optimize_sub_char_table):
10723 Add a `test' argument so another predicate than `equal' can be used.
10724 (map_sub_char_table): Use `eq' rather than `equal' to merge ranges.
10725 (map_char_table): Remove unused vars `c' and `i'.
10726 * lisp.h (Foptimize_char_table): Adjust declaration.
10727 * charset.c (Fclear_charset_maps): Adjust call to Foptimize_char_table.
10728
107292008-05-30 Kenichi Handa <handa@m17n.org>
10730
10731 * font.c (Ffont_info): Define only if HAVE_WINDOW_SYSTEM is defined.
10732 (syms_of_font): Defsubr Sfont_info only if HAVE_WINDOW_SYSTEM is
10733 defined.
10734
107352008-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
10736
10737 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
10738 (Fmake_variable_frame_local): Disallow mixing buffer-local and
10739 frame-local settings for the same variable.
10740
107412008-05-30 Kenichi Handa <handa@m17n.org>
10742
10743 * fontset.c (Ffont_info): Move to font.c.
10744 (syms_of_fontset): Delete defsubr of Sfont_info.
10745
10746 * font.c (font_style_to_value, font_score): Delete casting of the
10747 args to xstcasecmp.
10748 (register_font_driver): Increment num_font_drivers only when
10749 registering the driver globally.
10750 (Ffont_info): Move from fontset.c. Handle a font object too.
10751 (syms_of_font): Defsubr Sfont_info.
10752
107532008-05-29 Kenichi Handa <handa@m17n.org>
10754
10755 * coding.h (enum define_coding_utf8_arg_index): New enum.
10756 (enum coding_attr_index): Change coding_attr_utf_16_bom to
10757 coding_attr_utf_bom.
10758 (enum utf_bom_type): Rename from utf_16_bom_type.
10759 (struct utf_16_spec): Adjust for the above change.
10760 (struct coding_system): Add utf_8_bom in `spec' union.
10761
10762 * coding.c (CODING_UTF_8_BOM): New macro.
10763 (enum coding_category): Delete coding_category_utf_8, add
10764 coding_category_utf_8_auto, coding_category_utf_8_nosig, and
10765 coding_category_utf_8_sig.
10766 (CATEGORY_MASK_UTF_8): Delete it.
10767 (CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG)
10768 (CATEGORY_MASK_UTF_8_SIG): New macros.
10769 (CATEGORY_MASK_ANY): Delete CATEGORY_MASK_UTF_8, add
10770 CATEGORY_MASK_UTF_8_AUTO, CATEGORY_MASK_UTF_8_NOSIG, and
10771 CATEGORY_MASK_UTF_8_SIG.
10772 (CATEGORY_MASK_UTF_8): New macro.
10773 (UTF_BOM, UTF_8_BOM_1, UTF_8_BOM_2, UTF_8_BOM_3): New macros.
10774 (detect_coding_utf_8): Check BOM.
10775 (decode_coding_utf_8, encode_coding_utf_8): Handle BOM.
10776 (decode_coding_utf_16): Adjust for the change of enum utf_bom_type.
10777 (encode_coding_utf_16): Likewise.
10778 (setup_coding_system): Likewise. Set CODING_UTF_8_BOM (coding).
10779 (detect_coding, detect_coding_system): Handle utf-8-auto.
10780 (Fdefine_coding_system_internal): Handle `bom' property for utf-8.
10781 (syms_of_coding): Fix setting up of Vcoding_category_table.
10782
107832008-05-29 Stefan Monnier <monnier@iro.umontreal.ca>
10784
10785 * process.c (Faccept_process_output): If `millisec' is non-nil,
10786 `seconds' default to 0.
10787 (wait_reading_process_output): Also return non-nil if we read output
10788 from a non-running process.
10789
107902008-05-29 Jason Rumney <jasonr@gnu.org>
10791
10792 * w32font.c (w32font_open_internal): Prefer truetype fonts unless
10793 `raster' specified.
10794 (add_font_entity_to_list): Allow non-opentype truetype fonts back
10795 in the uniscribe backend, but disallow any font that has no
10796 unicode subrange support.
10797
107982008-05-29 Juanma Barranquero <lekktu@gmail.com>
10799
10800 * xfaces.c (Fx_list_fonts, Finternal_copy_lisp_face):
10801 Fix typos in docstrings.
10802
108032008-05-29 Kenichi Handa <handa@m17n.org>
10804
10805 * xfaces.c (Fx_list_fonts): Make it return a list of font names.
10806 (Fx_family_fonts): Set frame correctly.
10807
108082008-05-28 Jason Rumney <jasonr@gnu.org>
10809
10810 * w32term.c (x_draw_glyph_string): Use clipmask if specified.
10811
108122008-05-28 Stefan Monnier <monnier@iro.umontreal.ca>
10813
10814 * fileio.c (Fwrite_region): Delay the defaulting to beg&z to after
10815 calling build_annotations.
10816
108172008-05-28 Juanma Barranquero <lekktu@gmail.com>
10818
10819 * coding.c (Fdecode_coding_region, Fencode_coding_region)
10820 (Fencode_coding_string):
10821 (syms_of_coding) <coding-system-for-read, coding-system-for-write>:
10822 <latin-extra-code-table>: Fix typos in docstrings.
10823 (syms_of_coding) <coding-system-alist>: Doc fix.
10824 (syms_of_coding) <translation-table-for-input>: Reflow docstring.
10825
108262008-05-28 Kenichi Handa <handa@m17n.org>
10827
10828 * fontset.c (Ffont_info): Don't call font_close_object.
10829
10830 * font.c (font_parse_family_registry): Use Ffont_put to validate
10831 foundry and family.
10832 (font_delete_unmatched): Don't check spacing.
10833 (font_list_entities): Add spacing to the spec to list fonts.
10834
10835 * ftfont.c (ftfont_spec_pattern): Don't set FC_SPACING to pattern.
10836 (ftfont_list): Check spacing here. Don't include FC_CHARSET in objset.
10837
10838 * coding.c (encode_coding_raw_text): Fix previous change.
10839 (encode_coding_object): When the dst_object is a buffer and is
10840 different from src_object, move gap to PT.
10841
108422008-05-27 Chong Yidong <cyd@stupidchicken.com>
10843
10844 * xterm.c (x_draw_glyph_string): If a clipmask is specified, use it.
10845
108462008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10847
10848 * coding.c (encode_coding_raw_text): Set coding->produced_char for
10849 all branches. Compute it differently.
10850
10851 * xdisp.c [!HAVE_WINDOW_SYSTEM]: Include font.h for --without-x.
10852
108532008-05-27 Juanma Barranquero <lekktu@gmail.com>
10854
10855 * w32font.c (compute_metrics): Rewrite an "else { if () ... else ... }"
10856 into "else if () ... else ...".
10857
108582008-05-27 Jason Rumney <jasonr@gnu.org>
10859
10860 * w32font.c (w32font_open_internal): Determine if glyph indices
10861 are likely to work here.
10862
108632008-05-27 Chong Yidong <cyd@stupidchicken.com>
10864
10865 * xdisp.c (draw_glyphs): If mouse-highlighting is on, attempt to
10866 draw overlap glyphs with appropriate highlighting.
10867
108682008-05-27 Kenichi Handa <handa@m17n.org>
10869
10870 * xfont.c (xfont_open): Fix calculation of font->average_width.
10871
108722008-05-27 Stefan Monnier <monnier@iro.umontreal.ca>
10873
10874 * casefiddle.c (casify_object): Try to guess better whether the
10875 argument is a byte or a char.
10876
108772008-05-26 Andreas Schwab <schwab@suse.de>
10878
10879 * xselect.c (x_reply_selection_request): Properly handle format == 32.
10880 Always send multiples of format size.
10881
10882 * xterm.c (x_set_frame_alpha): Fix type mismatch.
10883
108842008-05-26 Jason Rumney <jasonr@gnu.org>
10885
10886 * w32font.c (w32font_text_extents): Zero whole metrics struct first.
10887 (compute_metrics): Don't set failure if we just cleared the cache.
10888 (w32_weight_table): Remove unused variable.
10889 (w32_enumfont_pattern_entity): Use FONT_SPACING_CHARCELL for
10890 backwards compatibility.
10891
108922008-05-25 Kenichi Handa <handa@m17n.org>
10893
10894 * w32term.c (x_draw_glyph_string):
10895 * xterm.c (x_draw_glyph_string): Fix calculation of underline position.
10896
10897 * xfaces.c: Delete unused function prototypes.
10898 (xstrlwr, font_frame): Delete them.
10899 (clear_face_cache): Delete unused variable.
10900
10901 * xftfont.c (xftfont_open): Delete unused variable.
10902 If underline_thickness is not 1, adjust underline_position.
10903
10904 * ftxfont.c (ftxfont_open): Delete unused variable.
10905
10906 * fontset.c (face_for_char): Optimize for the case of no charset
10907 property.
10908
10909 * font.c (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE)
10910 (check_gstring, check_otf_features, otf_list, otf_tag_symbol)
10911 (otf_open, font_otf_capability, generate_otf_features)
10912 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
10913 Comment out by surrounding "#if 0" and "#endif" for the moment.
10914 (Ffont_drive_otf, Ffont_otf_alternates): Likewise.
10915 (syms_of_font): Codes for accessing above commented out.
10916
109172008-05-24 Eli Zaretskii <eliz@gnu.org>
10918
10919 * w32proc.c: Include dispextern.h.
10920
10921 * w32.c: Include dispextern.h.
10922
109232008-05-23 Juanma Barranquero <lekktu@gmail.com>
10924
10925 * charset.c (Fencode_char, Fsplit_char): Doc fixes.
10926 (Fget_unused_iso_final_char, Fdecode_char, Fiso_charset):
10927 Fix typos in docstrings.
10928
109292008-05-23 Jason Rumney <jasonr@gnu.org>
10930
10931 * xsmfns.c: Remove includes that are already included by config.h.
10932
109332008-05-23 Kenichi Handa <handa@m17n.org>
10934
10935 * charset.c (Qemacs, charset_emacs): New variables.
10936 (char_charset): Fix for non-Unicode characters.
10937 (syms_of_charset): Define charset_emacs.
10938
10939 * w32term.c (x_draw_glyph_string): Be sure to update
10940 s->underline_thickness and s->underline_position. Be sure to draw
10941 underline within the current line area.
10942
10943 * xterm.c (x_draw_glyph_string): Be sure to update
10944 s->underline_thickness and s->underline_position. Be sure to draw
10945 underline within the current line area.
10946
10947 * fontset.c: Delete unused variables and add casting for char *
10948 throughout the file.
10949 (fontset_font): Try the fallback fonts of the current fontset
10950 before consulting the default fontset.
10951
10952 * ftfont.c (ftfont_spec_pattern): Free charset if necessary.
10953
10954 * xfont.c (xfont_list_pattern): Free names returned from XListFonts.
10955
109562008-05-22 Jason Rumney <jasonr@gnu.org>
10957
10958 * font.c: Don't include strings.h.
10959
10960 * dispextern.h, xfaces.c (xstrcasecmp): Rename from xstricmp.
10961
10962 * dosfns.c, fileio.c, font.c, fontset.c, image.c, macfns.c:
10963 * macterm.c, process.c, w32.c, w32fns.c, w32proc.c, xfaces.c:
10964 * xfns.c, xfont.c: All callers of stricmp and strcasecmp changed
10965 to call xstrcasecmp.
10966
10967 * xfont.c (xfont_list_pattern, compare_font_names): Use xstrcasecmp.
10968
10969 * fontset.c (fs_query_fontset): Use xstrcasecmp.
10970
10971 * font.c (font_style_to_value, font_score): Use xstrcasecmp.
10972
10973 * dosfns.c (msdos_stdcolor_idx): Use xstrcasecmp.
10974
109752008-05-22 Kenichi Handa <handa@m17n.org>
10976
10977 * puresize.h (BASE_PURESIZE): Increase to 1220000.
10978
10979 * font.c (font_prop_validate_style): Adjust for the format
10980 change of font_style_table.
10981
10982 * w32font.c (w32font_open_internal): Call Ffont_xlfd_name with
10983 two args.
10984
10985 * xfaces.c (x_update_menu_appearance): Call Ffont_xlfd_name with
10986 two args.
10987
109882008-05-22 Stefan Monnier <monnier@iro.umontreal.ca>
10989
10990 * minibuf.c (keys_of_minibuf): Delete.
10991 * lisp.h (keys_of_minibuf): Delete.
10992 * emacs.c (main): Don't call keys_of_minibuf.
10993
109942008-05-22 Kenichi Handa <handa@m17n.org>
10995
10996 * ftfont.c (ftfont_resolve_generic_family): Rename from
10997 ftfont_list_generic_family. Return a single family for each
10998 generic family.
10999 (ftfont_spec_pattern): Add FC_FAMILY to pattern.
11000 (ftfont_list): Adjust for the change of ftfont_resolve_generic_family.
11001 Call font_add_log.
11002 (ftfont_match): Call font_add_log.
11003
11004 * font.h (Ffont_xlfd_name): EXFUN adjusted.
11005 (FONT_DEBUG): Define it.
11006 (font_add_log): Extern it.
11007 (font_assert): Rename from xassert.
11008
11009 * xfont.c (xfont_get_pcm): Change xassert to font_assert.
11010 (xfont_list_family): Call font_add_log.
11011 (xfont_match): Likewise.
11012 (memq_no_quit): Delete.
11013
11014 * fontset.c (fontset_from_font, Ffontset_info): Add the 2nd arg in
11015 call of Ffont_xlfd_name.
11016
11017 * xfaces.c (struct table_entry, slant_table, weight_table)
11018 (swidth_table): Move to font.c.
11019
11020 * font.c: Checking of FONT_DEBUG is moved to font.h. All calls of
11021 xassert are changed to font_assert. Delete many unused variables.
11022 (Vfont_weight_table, Vfont_slant_table, Vfont_width_table):
11023 New variables.
11024 (struct table_entry): Move from xfaces.c and modified.
11025 (weight_table, slant_table, width_table): Move from xfaces.c and
11026 contents adjusted for the change of struct table_entry.
11027 (font_style_to_value, font_style_symbolic): Adjust for the
11028 format change of font_style_table.
11029 (font_parse_family_registry): Don't overwrite existing foundry and
11030 family of font_spec.
11031 (font_score): Fix calculation of diff for sizes.
11032 (font_sort_entites): Call font_add_log.
11033 (font_delete_unmatched): Return a newly created list.
11034 (font_list_entities): Fix previous change. Call font_add_log.
11035 (font_matching_entity, font_open_entity, font_close_entity):
11036 Call font_add_log.
11037 (Ffont_xlfd_name): New arg FOLD-WILDCARDS.
11038 (Finternal_set_font_style_table): Delete.
11039 (BUILD_STYLE_TABLE): New macro.
11040 (build_style_table): New function.
11041 (Vfont_log, font_log_env_checked): New variables.
11042 (font_add_log): New function.
11043 (syms_of_font): Delete defsubr Sinternal_set_font_style_table.
11044 Declare Lisp variables "font-weight-table", "font-slant-table",
11045 "font-width-table", and "font-log". Initialize font_style_table.
11046
110472008-05-21 Dan Nicolaescu <dann@ics.uci.edu>
11048
11049 * xterm.c (x_set_frame_alpha): Move declarations before statements.
11050
110512008-05-21 Seiji Zenitani <zenitani@mac.com>
11052 Ryo Yoshitake <ryo@shiftmode.net>
11053
11054 * frame.c (Qalpha): Add a new frame parameter `alpha'.
11055 (Vframe_alpha_lower_limit): New variable.
11056 (x_set_alpha): New function.
11057
11058 * frame.h (Qalpha, Vframe_parameter_lower_limit): Export them.
11059
11060 * xfns.c (x-create-frame, Qalpha):
11061 Initialize the frame parameter `alpha'.
11062 * xterm.c (OPAQUE, OPACITY): New.
11063 (x_set_frame_alpha): New function.
11064 (frame_highlight, frame_unhighlight): Call x_set_frame_alpha.
11065
11066 * macfns.c (mac_frame_parm_handlers): A null handler for x_set_alpha.
11067 * w32fns.c (w32_frame_parm_handlers): Likewise.
11068
110692008-05-20 Jason Rumney <jasonr@gnu.org>
11070
11071 * w32font.c (add_font_entity_to_list): Don't add non-opentype
11072 truetype fonts to opentype list.
11073
110742008-05-20 Juanma Barranquero <lekktu@gmail.com>
11075
11076 * fontset.c (Ffontset_info): Doc fix.
11077 (syms_of_fontset) <font-encoding-charset-alist, use-default-ascent>:
11078 <ignore-relative-composition>: Fix typos in docstrings.
11079
11080 * font.c (syms-of-font) <font-encoding-alist>:
11081 (Ffontp, Ffont_make_gstring): Fix typos in docstrings.
11082 (Flist_fonts, Ffont_family_list, Ffont_fill_gstring, Fquery_font)
11083 (Ffont_otf_alternates): Doc fixes.
11084
110852008-05-20 Kenichi Handa <handa@m17n.org>
11086
11087 * Makefile.in (FONTSRC): Delete it. Change all $(FONTSRC) to
11088 font.h through out the file.
11089 (FONT_DRIVERS): Rename from FONTOBJ.
11090 (obj): Change $(FONTOBJ) to $(FONT_DRIVERS). Add font.o.
11091 (SOME_MACHINE_OBJECTS): Change $(FONTOBJ) to $(FONT_DRIVERS).
11092
11093 * emacs.c (main): Call syms_of_font unconditionally.
11094
11095 * font.h (find_font_encoding): Extern it.
11096
11097 * font.c (Vfont_encoding_alist, find_font_encoding): Move from
11098 fontset.c.
194d44e7 11099 (font_pixel_size) [! HAVE_WINDOW_SYSTEM]: Return 1.
aac0c6e3
MR
11100 (font_open_entity): Update FRAME_X_DISPLAY_INFO (f)->n_fonts,
11101 FRAME_SMALLEST_CHAR_WIDTH (f), and FRAME_SMALLEST_FONT_HEIGHT (f)
11102 only when HAVE_WINDOW_SYSTEM is defined.
11103 (font_close_object): Update FRAME_X_DISPLAY_INFO (f)->n_fonts only
11104 when HAVE_WINDOW_SYSTEM is defined.
11105
11106 * fontset.c (Vfont_encoding_alist, find_font_encoding): Move to font.c.
11107 (syms_of_fontset): Move declaration of font-encoding-alist to font.c.
11108
11109 * xfaces.c: Include font.h unconditionally.
11110 (merge_face_ref, merge_face_vectors)
11111 (Finternal_set_lisp_face_attribute): Cancel the previous change.
11112
111132008-05-20 Stefan Monnier <monnier@iro.umontreal.ca>
11114
11115 * xdisp.c (select_frame_for_redisplay): Adjust for last change to
11116 indirect_variable.
11117 * eval.c (lisp_indirect_variable): New fun.
11118 (Fuser_variable_p): Use it.
11119
111202008-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
11121
11122 * lisp.h (indirect_variable):
11123 * data.c (indirect_variable, let_shadows_buffer_binding_p):
11124 Use Lisp_Symbol pointers rather than Lisp_Object.
11125 Adjust callers.
11126 * buffer.c (buffer_slot_type_mismatch): Use wrong-type-argument.
11127 To this end, change calling-convention.
11128
11129 * minibuf.c (Finternal_complete_buffer): Only strip out hidden buffers
11130 if some non-hidden buffers are selected by string&pred.
11131
111322008-05-19 Chong Yidong <cyd@stupidchicken.com>
11133
11134 * process.c (wait_reading_process_output): Always check status
11135 when in batch mode.
11136
111372008-05-19 Kenichi Handa <handa@m17n.org>
11138
11139 * font.c (font_list_entities): Fix handling of cache.
11140 (font_matching_entity): Likewise.
11141
11142 * ftfont.c (cs_iso8859_1): Delete.
11143 (ft_face_cache): New variable.
11144 (struct ftfont_info): New member fc_charset_idx.
11145 (ftfont_build_basic_charsets): Delete.
11146 (fc_charset_table): New variable.
11147 (ftfont_pattern_entity): New arg fc_charset_idx. Store (FILENAME
11148 . FC_CHARSET_IDX) as :font-entity property in the font entity.
11149 Callers changed.
11150 (ftfont_lookup_cache, ftfont_get_charset): New functions.
11151 (ftfont_spec_pattern): New argument fc_charset_idx.
11152 Check registry more rigidly. Change callers.
11153 (ftfont_open, ftfont_close, ftfont_has_char): Adjust for the
11154 change of :font-entity property of the font.
11155
11156 * xftfont.c (xftfont_open): Adjust for the change of :font-entity
11157 property of the font.
11158
111592008-05-18 Juanma Barranquero <lekktu@gmail.com>
11160
11161 * coding.c (Fcoding_system_p): Rename argument to match docstring.
11162 (Funencodable_char_position, Fcheck_coding_systems_region)
11163 (Fdecode_coding_string, Fencode_coding_string): Fix typos in docstrings.
11164 (Fdetect_coding_region, Fdetect_coding_string, Fencode_coding_region)
11165 (Ffind_operation_coding_system, Fset_coding_system_priority)
11166 (Fcoding_system_eol_type): Doc fixes.
11167
111682008-05-17 Glenn Morris <rgm@gnu.org>
11169
11170 * sysdep.c (child_setup_tty): Handle systems with NLDLY, without FFDLY.
11171
111722008-05-16 Eli Zaretskii <eliz@gnu.org>
11173
11174 * dired.c (Ffile_attributes): Shut up GCC warnings about st_uid
11175 and st_gid.
11176
11177 * frame.c (Fdelete_frame): Don't call font_update_drivers if
11178 HAVE_WINDOW_SYSTEM is not defined.
11179
11180 * xfaces.c (merge_face_ref, merge_face_vectors)
11181 (Finternal_set_lisp_face_attribute): Use FONT_*_INDEX only when
11182 HAVE_WINDOW_SYSTEM is defined.
11183 (Fface_font): Fix non-HAVE_WINDOW_SYSTEM case.
11184
111852008-05-16 Stefan Monnier <monnier@iro.umontreal.ca>
11186
11187 * keyboard.c (parse_menu_item): Do not cache key shortcut any more.
11188
111892008-05-15 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11190
11191 * macterm.c (x_draw_relief_rect): Remove unused variable `dpy'.
11192
111932008-05-15 Kenichi Handa <handa@m17n.org>
11194
11195 * font.c (font_find_for_lface): Reflect LFACE_FONT in the font
11196 preference.
11197
111982008-05-15 Glenn Morris <rgm@gnu.org>
11199
11200 * emacs.c (USAGE1, standard_args): Remove -disable-font-backend.
11201
112022008-05-15 Chong Yidong <cyd@stupidchicken.com>
11203
11204 * fns.c (init_fns): Don't initialize weak_hash_tables here.
11205 (init_weak_hash_tables): New fun. Initialize weak_hash_tables.
11206
11207 * alloc.c (init_alloc_once): Call init_weak_hash_tables.
11208
112092008-05-15 Kenichi Handa <handa@m17n.org>
11210
11211 * ftfont.c (ftfont_list): Downcase family name to check generic
11212 families.
11213
11214 * xfaces.c (Finternal_set_lisp_face_attribute): Be sure to make a
11215 font-spec for QCfont value.
11216
11217 * fontset.c (Fnew_fontset): Call font_unparse_xlfd with 256-byte
11218 buffer. Check the return value of it.
11219
112202008-05-14 Jason Rumney <jasonr@gnu.org>
11221
11222 * w32term.c (w32_get_glyph_overhangs): Remove.
11223 (w32_redisplay_interface): Use x_get_glyph_overhangs instead.
11224
112252008-05-14 Kenichi Handa <handa@m17n.org>
11226
11227 * font.c (font_prop_validate): Make nil a valid value.
11228 (font_clear_cache): Check if the cached vector of entities is nil
11229 or not.
11230
112312008-05-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11232
11233 * emacs.c (main_thread): Conditionalize on
11234 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11235 (main) [FORWARD_SIGNAL_TO_MAIN_THREAD]: Initialize it.
11236
11237 * syssignal.h (FORWARD_SIGNAL_TO_MAIN_THREAD): New define.
11238 (main_thread, SIGNAL_THREAD_CHECK): Conditionalize on
11239 FORWARD_SIGNAL_TO_MAIN_THREAD instead of HAVE_GTK_AND_PTHREAD.
11240
112412008-05-14 Kenichi Handa <handa@m17n.org>
11242
11243 * coding.c (detect_coding_iso_2022): Ignore a coding category that
11244 has no corresponding coding system.
11245
112462008-05-14 Jason Rumney <jasonr@gnu.org>
11247
11248 * font.h (struct font) [WINDOWSNT]: Remove codepage member.
11249
11250 * w32font.h (w32font_open_internal): Update declaration.
11251
11252 * w32font.c (w32font_open_internal): Change last argument from
11253 w32font_info struct to font object. Fill in font object from
11254 font_entity. Get Outline metrics if possible. Use them to
11255 calculate underline position and thickness. Use xlfd name as name
11256 property. Don't set codepage.
11257 (w32font_open): Pass font_object to w32font_open_internal. Don't
11258 update dpyinfo->smallest_font_height and dpyinfo->smallest_char_width.
11259 (w32font_draw): Use s->font.
11260 (clear_cached_metrics): Don't clear non-existent blocks.
11261
11262 * w32term.c (w32_compute_glyph_string_overhangs): Don't compute if
11263 font was not found.
11264 (x_draw_glyph_string): Use underline position and thickness from font.
11265
11266 * w32uniscribe.c (uniscribe_open): Pass font_object to
11267 w32font_open_internal.
11268
112692008-05-14 Kenichi Handa <handa@m17n.org>
11270
11271 These changes are to delete all legacy font-handling codes, and
11272 make Emacs use only font-backends.
11273
11274 * Makefile.in: Delete USE_FONT_BACKEND conditionals.
11275 (frame.o, image.o, print.o): Depend on $(FONTSRC).
11276
11277 * makefile.w32-in (WIN32OBJ): Add w32reg.$(O), remove w32bdf.$(O).
11278
11279 * charset.h (Vcharset_non_preferred_head)
11280 (Vcurrent_iso639_language): Extern them.
11281
11282 * charset.c (Vcharset_non_preferred_head): New variable.
11283 (Vcurrent_iso639_language): New variable.
11284 (syms_of_charset): Declare it as a Lisp variable.
11285 (char_charset): Don't check non preferred charsets. As a last
11286 resort, return charset_unicode.
11287 (Fset_charset_priority): Update Vcharset_non_preferred_head.
11288
11289 * composite.c: Throughout the file, delete all USE_FONT_BACKEND
11290 conditionals. Don't check enable_font_backend. Delete all codes
11291 used only when USE_FONT_BACKEND is not defined.
11292
11293 * dispextern.h (struct glyph_string): Change type of `font' to
11294 `struct font *'.
11295 (struct glyph_string): New member underline_position and
11296 underline_thickness.
11297 (enum lface_attribute_index): Remove LFACE_AVGWIDTH_INDEX.
11298 (struct face): Change type of `font' to `struct font *'. Remove
11299 members `font_name', `font_info_id'.
11300 (per_char_metric, encode_char): Delete externs.
11301 (calc_pixel_width_or_height): Adjust the prototype.
11302
11303 * emacs.c (enable_font_backend): Delete extern.
11304 (main): Don't set enable_font_backend. Don't check the command
11305 line argument "-disable-font-backend".
11306
11307 * font.h (Qfont_spec, Qfont_entity, Qfont_object): Extern them.
11308 (enum font_property_index): New members FONT_DPI_INDEX,
11309 FONT_SPACING_INDEX, FONT_AVGWIDTH_INDEX, FONT_NAME_INDEX,
11310 FONT_FULLNAME_INDEX, FONT_FILE_INDEX, FONT_FORMAT_INDEX,
11311 FONT_OBJECT_MAX. Delete FONT_FRAME_INDEX.
11312 (FONT_WEIGHT_NUMERIC, FONT_SLANT_NUMERIC, FONT_WIDTH_NUMERIC)
11313 (FONT_WEIGHT_SYMBOLIC, FONT_SLANT_SYMBOLIC, FONT_WIDTH_SYMBOLIC)
11314 (FONT_WEIGHT_FOR_FACE, FONT_SLANT_FOR_FACE, FONT_WIDTH_FOR_FACE)
11315 (FONT_WEIGHT_NAME_NUMERIC, FONT_SLANT_NAME_NUMERIC)
11316 (FONT_WIDTH_NAME_NUMERIC, FONT_SET_STYLE): New macros.
11317 (struct font_spec, struct font_entity): New structs.
11318 (FONT_ENCODING_NOT_DECIDED): Moved from fontset.h.
11319 (struct font): Many members from old "struct font_info" moved to
11320 here. Members font and entity deleted.
11321 (FONT_SPEC_P, FONT_ENTITY_P, FONT_OBJECT_P, FONTP): Modified for
11322 the new font-related objects.
11323 (CHECK_FONT_SPEC, CHECK_FONT_ENTITY, CHECK_FONT_OBJECT)
11324 (CHECK_FONT_GET_OBJECT): Likewise.
11325 (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT, XSETFONT): New macros.
11326 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved from font.h.
11327 (struct font_driver): New members case_sensitive anc check. Type
11328 of the member list and open changed.
11329 (enable_font_backend, font_symbolic_weight, font_symbolic_slant)
11330 (font_symbolic_width, font_find_object, font_get_spec)
11331 (font_set_lface_from_name): Delete extern.
11332 (Fcopy_font_spec, Fmerge_font_spec, Ffont_family_list): New EXFUNs.
11333
11334 * font.c: Include <strings.h>.
11335 (enable_font_backend): Delete it.
11336 (Qfont_spec, Qfont_entity, Qfont_object): New variables.
11337 (CHECK_VALIDATE_FONT_SPEC): Delete it.
11338 (PT_PER_INCH, POINT_TO_PIXEL, PIXEL_TO_POINT): Moved to font.h.
11339 (null_string): Delete it.
11340 (null_vector): Make it static.
11341 (font_family_alist): Delete it.
11342 (Qnormal): Extern it.
11343 (QCextra, QClanguage): Delete it.
11344 (QClang, QCavgwidth, QCfont_entity, QCfc_unknown_spec): New variables.
11345 (font_make_spec, font_make_entity, font_make_object)
11346 (font_intern_prop): Renamed from intern_downcase. Don't downcase
11347 the string. Callers changed.
11348 (font_pixel_size): Adjusted for the format change of font-related
11349 objects.
11350 (prop_name_to_numeric, prop_numeric_to_name): Delete them.
11351 (font_style_to_value, font_style_symbolic): New function.
11352 (build_font_family_alist): Delete it.
11353 (font_registry_charsets): Use Fassoc_string instead of
11354 assq_no_quit.
11355 (font_prop_validate_symbol): Don't return null_string.
11356 (font_prop_validate_style): Adjusted for the change of
11357 style-related values in a font vector.
11358 (font_property_table): Delete entries for QClanguage and
11359 QCantialias, add entries for QCavgwidth.
11360 (get_font_prop_index): Delete the 2nd argument FROM.
11361 (font_prop_validate): Arguments changed.
11362 (font_put_extra): Adjusted for the change of font-related objects.
11363 (font_expand_wildcards, font_parse_xlfd, font_unparse_xlfd)
11364 (font_parse_fcname, font_unparse_fcname)
11365 (font_prepare_composition): Likewise.
11366 (font_parse_family_registry): Renamed from font_merge_old_spec.
11367 (otf_open): Delete the 1st arg entity.
11368 (font_otf_capability): Adjusted for the above change.
11369 (font_score): New arg alternate_families. Adjusted for the change
11370 of font-related objects.
11371 (font_sort_entites): New arg best_only.
11372 (font_symbolic_weight, font_symbolic_slant, font_symbolic_width):
11373 Delete them.
11374 (font_match_p): Check alternate families.
11375 (font_find_object): Delete it.
11376 (font_check_object): New function.
11377 (font_clear_cache): Adjusted for the change of font-related objects.
11378 (font_delete_unmatched): New arg.
11379 (font_list_entities): Call font_driver->list with a spec that
11380 doesn't specify style-related properties.
11381 (font_matching_entity): Arguments changed. Caller changed.
11382 (font_open_entity): Adjusted for the change of font-related objects.
11383 (font_close_object, font_has_char, font_encode_char)
11384 (font_get_name, font_get_spec): Likewise.
11385 (font_spec_from_name, font_clear_prop, font_update_lface):
11386 New functions.
11387 (font_find_for_lface, font_open_for_lface, font_load_for_lface)
11388 (font_prepare_for_face, font_done_for_face, font_open_by_name)
11389 (font_at): Adjusted for the change of font-related objects.
11390 (font_range): New function.
11391 (Ffontp, Ffont_spec, Ffont_get, Ffont_put, Flist_fonts)
11392 (Ffont_xlfd_name): Adjusted for the change of font-related objects.
11393 (Fcopy_font_spec, Fmerge_font_spec): New function.
11394 (Ffont_family_list): Renamed from list-families.
11395 (Finternal_set_font_style_table): Arguments changed.
11396 (Ffont_fill_gstring, Ffont_shape_text, Fopen_font)
11397 (Ffont_drive_otf, Fquery_font, Ffont_match_p): Adjusted for the
11398 change of font-related objects.
11399 (syms_of_font): Delete "ifdef USE_FONT_BACKEND". DEFSYM new symbols.
11400
11401 * fontset.h (struct font_info): Delete it. Most members go to
11402 struct font.
11403 (FONT_ENCODING_NOT_DECIDED): Moved to font.h.
11404 (enum FONT_SPEC_INDEX): Delete it.
11405 (font_info, list_fonts_func, load_font_func, query_font_func)
11406 (set_frame_fontset_func, find_ccl_program_func)
11407 (get_font_repertory_func, new_fontset_from_font_name): Delete
11408 externs.
11409 (fontset_from_font_name): Extern it.
11410 (FS_LOAD_FONT, FONT_INFO_ID, FONT_INFO_FROM_ID)
11411 (FONT_INFO_FROM_FACE): Deleted.
11412 (face_for_font): Adjust prototype.
11413
11414 * fontset.c: Throughout the file, delete all USE_FONT_BACKEND
11415 conditionals. Don't check enable_font_backend. Delete all codes
11416 used only when USE_FONT_BACKEND is not defined.
11417 (get_font_info_func, list_font_func, load_font_func)
11418 (query_font_func, set_frame_fontset_func, find_ccl_program_func)
11419 (get_font_repertory_func): Delete them.
11420 (FONTSET_SPEC, FONT_DEF_NEW, FONT_DEF_SPEC, FONT_DEF_ENCODING)
11421 (FONT_DEF_REPERTORY, RFONT_DEF_FACE, RFONT_DEF_SET_FACE)
11422 (RFONT_DEF_FONT_DEF, RFONT_DEF_SPEC, RFONT_DEF_REPERTORY)
11423 (RFONT_DEF_OBJECT, RFONT_DEF_SET_OBJECT, RFONT_DEF_SCORE)
11424 (RFONT_DEF_SET_SCORE, RFONT_DEF_NEW): New macros.
11425 (fontset_compare_rfontdef): New function.
11426 (reorder_font_vector): Remove the argument CHARSET-ID. Sort
11427 rfont-defs by qsort. Adjusted for the change of font-group vector.
11428 (load_font_get_repertory): Deleted.
11429 (fontset_find_font): Use new macros to ref/set elements of
11430 font-def and rfont-def.
11431 (fontset_font): Fix the timing of remembering that no font for C.
11432 (free_face_fontset): Do nothing if the face has no fontset.
11433 (face_suitable_for_char_p): Use new macros to ref/set elements of
11434 rfont-def.
11435 (face_for_char): Likewise. Call face_for_char with font_object.
11436 (fs_load_font): Delete. Delete #pragma surrounding it.
11437 (fs_query_fontset): Use strcasecmp instead of strcmp.
11438 (generate_ascii_font_name): Adjusted for the format change of
11439 font-spec.
11440 (Fset_fontset_font): Likewise. Use new macros to set elements of
11441 font-def.
11442 (Fnew_fontset): Use font_unparse_xlfd to generate
11443 FONTSET_ASCII (fontset).
11444 (new_fontset_from_font_name): Deleted.
11445 (fontset_from_font): Renamed from new_fontset_from_font. Check if
11446 a fontset is already created for the font. FIx updating of
11447 Vfontset_alias_alist.
11448 (fontset_ascii_font): Deleted.
11449 (Ffont_info): Adjusted for the format change of font-spec.
11450 (Finternal_char_font): Likewise.
11451 (Ffontset_info): Likewise.
11452 (syms_of_fontset): Don't check load_font_func.
11453
11454 * fns.c (internal_equal): Handle PREV_FONT.
11455
11456 * frame.h: Delete USE_FONT_BACKEND conditional.
11457
11458 * frame.c: Throughout the file, delete all USE_FONT_BACKEND
11459 conditionals. Don't check enable_font_backend. Delete all codes
11460 used only when USE_FONT_BACKEND is not defined.
11461 (x_set_font): Call x_new_font, not x_new_fontset2.
11462 (x_set_font_backend): Use FRAME_FONT macro to check if a font is
11463 already set for the frame.
11464
11465 * ftfont.c (ftfont_pattern_entity): Argument FRAME removed. Make
11466 a font-entity by font_make_entity. Use font_intern_prop instead
11467 of intern_downcase. Use FONT_SET_STYLE to set a style-related
11468 font property. If a font is scalable, set avgwidth property to 0.
11469 Set font-entity property by font_put_extra.
11470 (ftfont_list_generic_family): Argument SPEC and REGISTRY removed.
11471 (ffont_driver): Adjusted for the change of struct font_driver.
11472 (ftfont_spec_pattern): New function.
11473 (ftfont_list): Return a list, not vector.
11474 (ftfont_match): Use ftfont_spec_pattern to get a pattern.
11475 (ftfont_list_family): Don't downcase names.
11476 (ftfont_free_entity): Deleted.
11477 (ftfont_open): Return a font-object. Adjusted for the change of
11478 struct font. Get underline_thickness and underline_position from
11479 font property. Don't update dpyinfo->smallest_font_height and
11480 dpyinfo->smallest_char_width.
11481 (ftfont_close): Don't free `struct font'.
11482 (ftfont_has_char): Adjusted for the format change of font-entity.
11483 (ftfont_encode_char, ftfont_text_extents): Likewise.
11484
11485 * ftxfont.c (ftxfont_list): Return a list, not vector.
11486 (ftxfont_open): Return a font-object. Adjusted for the change of
11487 struct font. Get underline_thickness and underline_position from
11488 font property. Don't update dpyinfo->smallest_font_height and
11489 dpyinfo->smallest_char_width.
11490 (ftxfont_close): Don't decrease FRAME_X_DISPLAY_INFO (f)->n_fonts.
11491 (ftxfont_draw): Adjusted for the change of struct font.
11492
11493 * image.c (image_ascent): Don't include "charset.h". Include
11494 "character.h" and "font.h".
11495
11496 * lisp.h (enum pvec_type): New member PREV_FONT.
11497 (Fassoc_string): EXFUN it.
11498
11499 * print.c: Include font.h.
11500 (print_object): Handle font-related objects.
11501
11502 * xdisp.c: Throughout the file, delete all USE_FONT_BACKEND
11503 conditionals. Don't check enable_font_backend. Delete all codes
11504 used only when USE_FONT_BACKEND is not defined.
11505 (handle_auto_composed_prop): Do nothing if it->f is not on a
11506 window system. Check how many following characters can be
11507 displayed by the same font.
11508 (calc_pixel_width_or_height): Type of the 4th arg is changed to
11509 'struct font *'.
11510 (get_char_face_and_encoding): Assign the whole encoding task to
11511 the `encode-char' method of a font driver.
11512 (fill_composite_glyph_string): Adjusted for the change of `struct
11513 face' and `struct glyph_string'.
11514 (fill_glyph_string): Likewise.
11515 (get_per_char_metric): Arguments changed.
11516 (x_get_glyph_overhangs): Adjusted for the change of `struct face'
11517 and `struct glyph_string'.
11518 (produce_stretch_glyph, calc_line_height_property)
11519 (x_produce_glyphs): Likewise.
11520
11521 * xfaces.c: Throughout the file, delete all USE_FONT_BACKEND
11522 conditionals. Don't check enable_font_backend. Delete all codes
11523 used only when USE_FONT_BACKEND is not defined. Use
11524 FONT_XXX_NAME_NUMERIC instead of face_numeric_xxx.
11525 (QCfoundry, QCadstyle, QCregistry, QCspacing, QCsize, QCavgwidth)
11526 (Qp): Extern them.
11527 (clear_font_table, load_face_font, xlfd_lookup_field_contents):
11528 Deleted.
11529 (struct font_name): Deleted.
11530 (xlfd_numeric_value, xlfd_symbolic_value): Deleted.
11531 (compare_fonts_by_sort_order): New function.
11532 (xlfd_numeric_slant, xlfd_symbolic_slant, xlfd_numeric_weight)
11533 (xlfd_symbolic_weight, xlfd_numeric_swidth, xlfd_symbolic_swidth):
11534 Deleted.
11535 (Fx_family_fonts): Use font_list_entities, and sort fonts by
11536 compare_fonts_by_sort_order.
11537 (Fx_font_family_list): Call Ffont_family_list.
11538 (face_numeric_value, face_numeric_weight, face_numeric_slant)
11539 (face_numeric_swidth, face_symbolic_value, face_symbolic_weight)
11540 (face_symbolic_slant, face_symbolic_swidth)
11541 (split_font_name_into_vector, build_font_name_from_vector)
11542 (xlfd_fixed_p, xlfd_point_size, pixel_point_size)
11543 (font_rescale_ratio, split_font_name, build_font_name)
11544 (free_font_names, sort_fonts, x_face_list_fonts)
11545 (face_font_available_p, sorted_font_list, cmp_font_names)
11546 (font_list_1, concat_font_list, font_list, remove_duplicates):
11547 Deleted.
11548 (Fx_list_fonts): Use Ffont_list.
11549 (LFACE_AVGWIDTH): Deleted.
11550 (check_lface_attrs): Don't check LFACE_AVGWIDTH. Check LFACE_FONT
11551 by FONTP.
11552 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
11553 (set_lface_from_font_name): Delete it.
11554 (set_lface_from_font): Renamed from
11555 set_lface_from_font_and_fontset. Caller changed. Don't set
11556 LFACE_AVGWIDTH. Use FONT_XXX_FOR_FACE to get a symbol suitable
11557 for face.
11558 (merge_face_vectors): Copy font-spec if necessary.
11559 Clear properties of the font-spec if necessary.
11560 (merge_face_ref): Clear properties of the font-spec if necessary.
11561 (Finternal_set_lisp_face_attribute): Likewise.
11562 (set_font_frame_param): Use font_load_for_lface to load a
11563 font-object, and call Fmodify_frame_parameters with it.
11564 (x_update_menu_appearance): Don't check LFACE_AVGWIDTH. Get XLFD
11565 font name by Ffont_xlfd_name.
11566 (Finternal_lisp_face_attribute_values): Don't check QCweight,
11567 QCslant, and QCwidth.
11568 (Fface_font): Get a font name from font->props[FONT_NAME_INDEX].
11569 (lface_same_font_attributes_p): Don't check LFACE_AVGWIDTH.
11570 Compare fonts by EQ.
11571 (lookup_non_ascii_face): Deleted.
11572 (face_for_font): The 2nd argument changed.
11573 (x_supports_face_attributes_p): Don't check LFACE_AVGWIDTH.
11574 Check atomic font properties by case insensitive.
11575 (realize_non_ascii_face): Set face->overstrike correctly.
11576 (realize_x_face): Likewise. Check if LFACE_FONT is a font_object.
11577 (dump_realized_face): Get font name from
11578 font->props[FONT_NAME_INDEX]. Don't print font_info_id.
11579
11580 * xfns.c: Throughout the file, delete all USE_FONT_BACKEND
11581 conditionals. Don't check enable_font_backend. Delete all codes
11582 used only when USE_FONT_BACKEND is not defined.
11583 (xic_create_xfontset): Original code deleted and renamed from
11584 xic_create_xfontset2. Use FRAME_FONT, not FRAME_FONT_OBJECT.
11585 (x_make_gc): Don't set GCFont in GCs.
11586 (Fx_create_frame) [USE_LUCID]: Set xlwmenu_default_font to a font
11587 opened by "fixed".
11588 (syms_of_xfns): Don't set get_font_info_func, load_font_func,
11589 find_ccl_program_func, query_font_func, set_frame_fontset_func,
11590 get_font_repertory_func.
11591
11592 * xfont.c: Include <stdlib.h> and "ccl.h".
11593 (struct xfont_info): New structure.
11594 (xfont_query_font): Deleted.
11595 (xfont_find_ccl_program): Renamed from x_find_ccl_program and
11596 moved from xterm.c.
11597 (xfont_driver): Adjusted for the change of struct font_driver.
11598 (compare_font_names): New function.
11599 (xfont_list_pattern): Sort font names case insensitively. Make
11600 font_entity by calling font_make_entity. Avoid auto-scaled fonts.
11601 (xfont_list): Return a list, not vector.
11602 (xfont_match): If the font doesn't have QCname property, generate
11603 a name from the other font properties.
11604 (xfont_open): Return a font-object. Adjusted for the change of
11605 struct font. Get underline_thickness and underline_position from
11606 font property. Don't update dpyinfo->smallest_font_height and
11607 dpyinfo->smallest_char_width.
11608 (xfont_close): Don't free struct font.
11609 (xfont_prepare_face): Adjusted for the change of struct font.
11610 (xfont_done_face): Deleted.
11611 (xfont_has_char): Adjusted for the change of struct font.
11612 (xfont_encode_char, xfont_draw): Likewise.
11613 (xfont_check): New function.
11614
11615 * xftfont.c (xftfont_list): Adjusted for the change of `list'
11616 callback function.
11617 (xftfont_match): Adjusted for the format change of font-entity.
11618 (xftfont_open): Adjusted for the format change of font-entity and
11619 font-object. Adjusted for the change of struct font. Return a
11620 font-object. Don't update dpyinfo->smallest_font_height and
11621 dpyinfo->smallest_char_width.
11622 (xftfont_close): Block input while calling XftFontClose.
11623 (xftfont_prepare_face): Don't block input while calling
11624 xftfont_get_colors. Adjusted for the change of struct font.
11625 (xftfont_shape): Return value of error case fixed.
11626
11627 * xrdb.c (x_load_resources): Don't setup a fontset resource.
11628
11629 * xterm.h: Throughout the file, delete all USE_FONT_BACKEND
11630 conditionals.
11631 (FONT_WIDTH): Return (f)->max_width.
11632 (struct x_display_info): Delete member `font'.
11633 (x_list_fonts, x_get_font_info, x_load_font, x_query_font)
11634 (x_find_ccl_program, x_get_font_repertory): Delete externs.
11635 (struct x_output): Change type of `font' to `struct font *'.
11636
11637 * xterm.c: Throughout the file, delete all USE_FONT_BACKEND
11638 conditionals. Don't check enable_font_backend. Delete all codes
11639 used only when USE_FONT_BACKEND is not defined. Don't include ccl.h.
11640 (x_per_char_metric, x_encode_char): Deleted.
11641 (x_set_cursor_gc, x_set_mouse_face_gc): Don't set GCFont.
11642 (x_compute_glyph_string_overhangs): Adjusted for the change of
11643 `struct face'.
11644 (x_draw_glyph_string_foreground)
11645 (x_draw_composite_glyph_string_foreground): Likewise.
11646 (x_draw_glyph_string): Likewise. Use font->underline_position and
11647 font->underline_thickness.
11648 (x_new_font): Renamed from x_new_fontset2.
11649 (x_new_fontset, x_get_font_info, x_list_fonts): Deleted.
11650 (x_check_font): Call `check' method of a font driver.
11651 (x_font_min_bounds, x_compute_min_glyph_bounds, x_load_font)
11652 (x_query_font, x_get_font_repertory): Deleted.
11653 (x_find_ccl_program): Renamed and moved to xfont.c.
11654 (x_redisplay_interface): Adjusted for the change of `struct
11655 redisplay_interface'.
11656
11657 * w32fns.c: Throughout the file, delete all USE_FONT_BACKEND
11658 conditionals. Don't check enable_font_backend. Delete all codes
11659 used only when USE_FONT_BACKEND is not defined. Surround non-used
11660 code by "#ifdef OLD_FONT" and "endif".
11661 (Fw32_select_font): Use FONT_COMPAT to get old font structure.
11662
11663 * w32font.h (struct w32font_info): New member.
11664 (FONT_COMPAT): New macro.
11665 (w32font_open_internal): Prototype adjusted.
11666
11667 * w32gui.h (XGCValues): Surround `XFontStruct *font' by "if
11668 OLD_FONT" and "endif".
11669
11670 * w32font.c: Throughout the file, delete all USE_FONT_BACKEND
11671 conditionals. Don't check enable_font_backend. Delete all codes
11672 used only when USE_FONT_BACKEND is not defined.
11673 (w32font_open): Return a font-object. Make a font-object by
11674 font_make_object. Adjusted for the change of struct w32font_info.
11675 (w32font_close): Don't free struct font. Adjusted for the change
11676 of struct w32font_info.
11677 (w32font_encode_char, w32font_text_extents, w32font_draw):
11678 Adjusted for the change of struct w32font_info.
11679 (w32font_draw): Likewise.
11680 (w32font_list_internal): Return a list, not vector.
11681 (w32font_open_internal): Change the 4th arg to font-object.
11682 Adjusted for the change of struct w32font_info and font-object format.
11683 (add_font_name_to_list): Don't downcase names.
11684 (w32_enumfont_pattern_entity): Make a font-entity by
11685 font_make_entity. Adjusted for the format change of font-entity.
11686 Use FONT_SET_STYLE to set a style-related font property. If a
11687 font is scalable, set avgwidth property to 0. Set font-entity
11688 property by font_put_extra.
11689 (font_matches_spec): Adjusted for the format change of font-entity.
11690 (w32_weight_table, w32_decode_weight): New variables.
11691 (w32_encode_weight): New function.
11692 (fill_in_logfont): Adjusted for the format change of font-spec.
11693 (w32font_full_name): Use FONT_WEIGHT_SYMBOLIC to get a symbol
11694 weight value.
11695 (w32font_driver): Adjusted for the change of struct font_driver.
11696
11697 * w32term.h: Throughout the file, delete all USE_FONT_BACKEND
11698 conditionals. Don't check enable_font_backend. Surround non-used
11699 code by "#ifdef OLD_FONT" and "endif".
11700 (FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_DESCENT)
11701 (FONT_AVG_WIDTH): Adjusted for the change of struct font.
11702
11703 * w32term.c: Throughout the file, delete all USE_FONT_BACKEND
11704 conditionals. Don't check enable_font_backend. Delete all codes
11705 used only when USE_FONT_BACKEND is not defined. Surround non-used
11706 code by "#ifdef OLD_FONT" and "endif".
11707
11708 * w32uniscribe.c: Delete USE_FONT_BACKEND conditional.
11709 (uniscribe_open): Return value changed to font-object.
11710 Adjusted for the format change of font-object.
11711 (uniscribe_otf_capability): Adjusted for the change of struct font.
11712 (add_opentype_font_name_to_list): Don't downcase names.
11713 (uniscribe_font_driver): Adjusted for the change of struct
11714 font_driver.
11715
117162008-05-13 Chong Yidong <cyd@stupidchicken.com>
11717
11718 * dispnew.c (update_frame_1): Check if tty output is still valid
11719 before flushing it.
11720
117212008-05-13 Jan Djärv <jan.h.d@swipnet.se>
11722
11723 * xterm.c (handle_one_xevent): Don't pass buttons higher than 3
11724 to Gtk+ menus.
11725
117262008-05-13 Stefan Monnier <monnier@iro.umontreal.ca>
11727
11728 * dired.c (file_name_completion): Tweak the code so as to always do it
11729 in a single pass. Tighten the scope of some variables.
11730
11731 * dired.c (Qdefault_directory): New var.
11732 (file_name_completion): Use it instead of Fexpand_file_name.
11733 (syms_of_dired): Initialize it.
11734
117352008-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
11736
11737 * fileio.c (double_dollars): Remove dead code.
11738
117392008-05-10 Eli Zaretskii <eliz@gnu.org>
11740
11741 * dired.c (Ffile_attributes, Fdirectory_files_and_attributes):
11742 Mention w32-get-true-file-attributes in doc string.
11743
11744 * w32proc.c (syms_of_ntproc) <w32-get-true-file-attributes>: Doc fix.
11745
117462008-05-09 Glenn Morris <rgm@gnu.org>
11747
11748 * fileio.c (Fread_file_name): Remove reference to insdef, deleted
11749 2008-04-23.
11750
117512008-05-09 Eli Zaretskii <eliz@gnu.org>
11752
11753 Support for reporting owner and group of each file on MS-Windows:
11754 * dired.c (stat_uname, stat_gname): New functions, with special
11755 implementation for w32.
11756 (Ffile_attributes): Use them instead of getpwuid and getgrgid.
11757
11758 * w32.c: Rename the_passwd_* to dflt_passwd_*.
11759 (dflt_group_name): New static variable.
11760 (dflt_group): Rename from the_group.
11761 (init_user_info): Init dflt_group fields. Get user's group name
11762 from LookupAccountSid.
11763 (g_b_init_get_file_security, g_b_init_get_security_descriptor_owner)
11764 (g_b_init_get_security_descriptor_group, g_b_init_is_valid_sid):
11765 New initialization states.
11766 (globals_of_w32): Initialize them to zero. Initialize the default
11767 group name to "None".
11768 (GetFileSecurity_Name): New global var, the name of the function
11769 to call for GetFileSecurity.
11770 (GetFileSecurity_Proc, GetSecurityDescriptorOwner_Proc)
11771 (GetSecurityDescriptorGroup_Proc, IsValidSid_Proc): New typedefs.
11772 (get_file_security, get_security_descriptor_owner)
11773 (get_security_descriptor_group, is_valid_sid)
11774 (get_file_security_desc, get_rid, get_name_and_id)
11775 (get_file_owner_and_group): New functions.
11776 (stat): Use get_file_security_desc and get_file_owner_and_group to
11777 report the owner and primary group of each file. Don't ignore the
11778 high 32 bits of file's size, now that st_size is 64-bit wide.
11779 Fix test when to get true file attributes.
11780 (init_user_info): Use get_rid instead of equivalent inline code.
11781 (fstat): Don't ignore the high 32 bits of file's size.
11782
117832008-05-09 Chong Yidong <cyd@stupidchicken.com>
11784
11785 * image.c (png_load): Use correct bit-depth for setting background
11786 color.
11787
117882008-05-08 Eli Zaretskii <eliz@gnu.org>
11789
11790 * Makefile.in (lisp, shortlisp): Rename epa-file-hook.elc to
11791 epa-hook.elc.
11792
117932008-05-08 Juanma Barranquero <lekktu@gmail.com>
11794
11795 * font.c (Ffont_match_p): Don't use `iff' in docstring.
11796
117972008-05-07 Dan Nicolaescu <dann@ics.uci.edu>
11798
11799 * macfns.c (Fx_create_frame): Make a copy of frame parameters
11800 because the original parameters are in pure storage now.
11801 (mac_window): Remove unused params. Update callers.
11802
118032008-05-06 Stefan Monnier <monnier@iro.umontreal.ca>
11804
11805 * lread.c (substitute_object_recurse): Use lower-level primitives.
11806 Don't signal errors when traversing sub-char-tables.
11807 Don't loop over all the possible characters when traversing char-tables.
11808
11809 * print.c (print_preprocess): Add sub-char-tables to the print-table,
11810 just like we do in print.c.
11811
118122008-05-05 Stefan Monnier <monnier@iro.umontreal.ca>
11813
11814 * minibuf.c (Ftry_completion): Remove code left over from when we used
11815 scmp instead of Fcompare_strings.
11816
118172008-05-04 Juanma Barranquero <lekktu@gmail.com>
11818
11819 * w32fns.c (Fw32_battery_status): Fix computation of %t (h:min) format.
11820
118212008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11822
11823 * image.c [USE_MAC_IMAGE_IO] (image_load_image_io):
11824 Create bitmap context in native byte order.
11825
11826 * macterm.c (XDrawLine)
11827 (XCreatePixmapFromBitmapData) [USE_MAC_IMAGE_IO]: Create bitmap
11828 context in native byte order.
11829
118302008-05-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11831
11832 * config.in: Regenerate.
11833
11834 * image.c (PIX_MASK_DRAW, PIX_MASK_RETAIN) [USE_MAC_IMAGE_IO]:
11835 New definitions for Image I/O support.
11836 (XGetImage, XPutPixel, XGetPixel, XDestroyImage)
11837 (mac_create_cg_image_from_image, x_create_x_image_and_pixmap)
11838 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11839 (mac_data_provider_release_data, image_load_image_io)
11840 [USE_MAC_IMAGE_IO]: New functions.
11841 (CGImageCreateWithPNGDataProviderProcType) [MAC_OSX]: Remove typedef.
11842 (MyCGImageCreateWithPNGDataProvider) [MAC_OSX]: Remove variable.
11843 (init_image_func_pointer) [MAC_OSX]: Remove function.
11844 (image_load_quartz2d) [MAC_OSX]: Check availability of
11845 CGImageCreateWithPNGDataProvider at compile time.
11846 Use lowercase `false' for boolean constant.
11847 (png_load, jpeg_load, tiff_load, gif_load) [USE_MAC_IMAGE_IO]:
11848 Use image_load_image_io.
11849 (png_load) [!USE_MAC_IMAGE_IO && MAC_OSX]:
11850 Don't check MyCGImageCreateWithPNGDataProvider.
11851 (init_image) [MAC_OSX && TARGET_API_MAC_CARBON]:
11852 Don't call init_image_func_pointer.
11853
11854 * macgui.h (Pixmap) [USE_MAC_IMAGE_IO]: New definition for Image I/O.
11855
11856 * macterm.c (mac_cg_color_space_rgb) [USE_CG_DRAWING]:
11857 Make variable non-static.
11858 (XDrawLine, XCreatePixmap, XCreatePixmapFromBitmapData, XFreePixmap)
11859 [USE_MAC_IMAGE_IO]: Add implementations for Image I/O support.
11860
11861 * macterm.h (ARGB_TO_ULONG, ALPHA_FROM_ULONG): New macros.
11862 (RED_FROM_ULONG): Mask off higher bits.
11863 (mac_cg_color_space_rgb) [USE_MAC_IMAGE_IO]: New extern.
11864
11865 * s/darwin.h [HAVE_CARBON && HAVE_AVAILABILITYMACROS_H]:
11866 Include AvailabilityMacros.h.
11867 (USE_MAC_IMAGE_IO, LIBS_IMAGE) [HAVE_CARBON]: New defines.
11868 (LIBS_CARBON) [HAVE_CARBON]: Use LIBS_IMAGE.
11869
118702008-05-03 Stefan Monnier <monnier@iro.umontreal.ca>
11871
11872 * chartab.c (Fset_char_table_range): If range is t, really set all
11873 chars to that value.
11874
118752008-05-03 Eli Zaretskii <eliz@gnu.org>
11876
11877 * dired.c (Ffile_attributes): Don't allow the device number become
11878 negative.
11879
118802008-05-02 Daiki Ueno <ueno@unixuser.org>
11881
11882 * Makefile.in (lisp, shortlisp): Add epa-file-hook.elc.
11883
118842008-05-02 Juri Linkov <juri@jurta.org>
11885
11886 * minibuf.c (Fread_from_minibuffer, Fread_string, Fread_command)
11887 (Fread_variable, Fread_buffer, Fcompleting_read): Document the
11888 DEFAULT argument as a list of default values in docstrings.
11889
118902008-05-01 Chong Yidong <cyd@stupidchicken.com>
11891
11892 * puresize.h (BASE_PURESIZE): Increase to 1210000.
11893
118942008-05-01 Martin Rudalics <rudalics@gmx.at>
11895
11896 * dispnew.c (change_frame_size_1): Preserve small windows when
11897 shrinking frames by calling set_window_height|width with third
11898 arg 2.
11899
11900 * window.h (struct window): Replace field too_small_ok by field
11901 resize_proportionally.
11902
11903 * window.c (make_window): Initialize resize_proportionally.
11904 (enlarge_window): Temporarily set resize_proportionally to make
11905 sure that shrink_windows does scale the window proportionally.
11906 (shrink_windows): When window has resize_proportionally set try
11907 to shrink it proportionally by stealing from other windows.
11908 (struct saved_window, Fset_window_configuration)
11909 (compare_window_configurations): Handle resize_proportionally.
11910 (WINDOW_TOTAL_SIZE): New macro.
11911 (window_min_size, shrink_windows, size_window): Use it.
11912 (check_min_window_sizes): Remove. Invalid values of
11913 window-min-height|width are handled by window_min_size_2 now.
11914 (size_window, Fsplit_window, enlarge_window)
11915 (adjust_window_trailing_edge, grow_mini_window): Don't call
11916 check_min_window_sizes.
11917 (window_min_size_2, window_min_size_1, window_min_size):
11918 New argument safe_p for retrieving "safe" minimum sizes.
11919 (Fdisplay_buffer, Fsplit_window, enlarge_window)
11920 (adjust_window_trailing_edge, grow_mini_window):
11921 Adjust arguments of window_min_size... functions.
11922 (shrink_windows): Argument min_size removed. New argument
11923 safe_p allows shrinking windows to their safe minimum sizes.
11924 Calculate minimum size and decide whether a window shall be
11925 deleted for each window individually.
11926 (size_window): When nodelete_p equals 2, tell shrink_windows to
11927 delete windows only if their new minimum size is no more safe.
11928 (shrink_window_lowest_first): Call window_min_size_1 to make
11929 sure to preserve modeline of bottom-most window when resizing
11930 the minibuffer.
11931 (Fset_window_configuration, Fcurrent_window_configuration)
11932 (compare_window_configurations): Do not handle
11933 window-min-height|width any more.
11934 (syms_of_window): Clarify window-min-height|width doc-strings.
11935
119362008-04-30 Stefan Monnier <monnier@iro.umontreal.ca>
11937
11938 * dired.c (file_name_completion): Fix up the encoding/decoding issue
11939 some more. Copy some of the code from Ftry_completions.
11940 Remove special case code that dates back to initial revision when the
11941 slash was only added when necessary and that can't trigger nowadays.
11942
119432008-04-27 Kenichi Handa <handa@m17n.org>
11944
11945 * font.c (font_prop_validate): Signal `error' instead of `font'.
11946
119472008-04-29 Jason Rumney <jasonr@gnu.org>
11948
11949 * w32fns.c (Fw32_battery_status): New defun.
11950 (syms_of_w32fns): Defsubr it.
11951
119522008-04-28 Andreas Schwab <schwab@suse.de>
11953
11954 * dired.c (file_name_completion): Fix another mixing of encoded
11955 and decoded names.
11956
119572008-04-28 Juanma Barranquero <lekktu@gmail.com>
11958
11959 * w32fns.c (Fw32_define_rgb_color): Fix typo in docstring.
11960
119612008-04-27 Juanma Barranquero <lekktu@gmail.com>
11962
11963 * fringe.c (Fdefine_fringe_bitmap): Doc fix.
11964
119652008-04-27 Andreas Schwab <schwab@suse.de>
11966
11967 * dired.c (file_name_completion): Fix inappropriate mixing of
11968 encoded and decoded names.
11969
11970 * xterm.c (XTread_socket): Fix use of uninitialized variable.
11971
11972 * puresize.h (BASE_PURESIZE): Increase to 1200000.
11973
119742008-04-26 Eli Zaretskii <eliz@gnu.org>
11975
11976 * dired.c (Ffile_attributes) [WINDOWSNT]: Undo change from
11977 2008-03-31, it's not needed anymore with `struct stat' definition
11978 on nt/inc/sys/stat.h. Undo changes from 2007-01-12 and 2007-01-13
11979 for the same reasons.
11980
119812008-04-25 Dennis Gilmore <ausil@fedoraproject.org> (tiny change)
11982
11983 * m/sparc.h: Additional redefinitions for GNU/Linux.
11984
119852008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
11986
11987 * macterm.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: New variable.
11988 (syms_of_macterm) [USE_MAC_TSM]: Defvar it.
11989 (Qmouse_drag_overlay) [MAC_OSX]: New variable.
11990 (syms_of_macterm) [MAC_OSX]: Intern and staticpro it.
11991 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
11992 (mac_ax_selected_text_range) [MAC_OSX]: New functions.
11993 (mac_ax_number_of_characters) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
11994 Likewise.
11995
11996 * mactoolbox.c (Vmac_ts_active_input_buf) [USE_MAC_TSM]: Add extern.
11997 (fast_find_position, x_y_to_hpos_vpos, mac_ax_selected_text_range)
11998 (mac_ax_number_of_characters): Add externs.
11999 (mac_get_selected_range, mac_store_buffer_text_to_unicode_chars)
12000 [USE_MAC_TSM]: Likewise.
12001 (mac_handle_text_input_event) [MAC_OSX]:
12002 Handle kEventTextInputOffsetToPos for no active input area case.
12003 Handle kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12004 (mac_handle_document_access_event)
12005 [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: New function.
12006 (install_application_handler) [MAC_OSX]: Register handlers for
12007 kEventTextInputPosToOffset and kEventTextInputGetSelectedText.
12008 (install_application_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
12009 Register mac_handle_document_access_event.
12010
12011 * xdisp.c (x_y_to_hpos_vpos, fast_find_position) [HAVE_CARBON]:
12012 Make functions non-static.
12013
120142008-04-23 Stefan Monnier <monnier@iro.umontreal.ca>
12015
12016 * fileio.c (Vread_file_name_function, Vread_file_name_predicate)
12017 (read_file_name_completion_ignore_case, insert_default_directory)
12018 (Qdefault_directory): Move to minibuffer.el.
12019 (Fread_file_name): Call the new `read-file-name' instead.
12020
120212008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12022
12023 * mac.c (create_apple_event) [TARGET_API_MAC_CARBON]:
12024 Make function non-static.
12025 (create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]:
12026 Remove function.
12027 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12028 Move to mactoolbox.c.
12029 (mac_event_parameters_to_lisp) [TARGET_API_MAC_CARBON]: New function.
12030
12031 * macgui.h (CGFloat) [!CGFLOAT_DEFINED]: New typedef.
12032 (mac_rect_make): New macro.
12033
12034 * macterm.c (mac_draw_image_string_atsui) [MAC_OSX]: Use CGFloat
12035 instead of float.
12036 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12037 (init_cg_color, mac_draw_line, mac_draw_cg_image, XSetForeground)
12038 (XSetBackground) [USE_CG_DRAWING]: Likewise.
12039 (mac_draw_image_string_atsui) [MAC_OSX]: Use mac_rect_make instead of
12040 CGRectMake.
12041 (mac_draw_image_string_cg) [USE_CG_TEXT_DRAWING]: Likewise.
12042 (mac_erase_rectangle, mac_draw_cg_image, mac_fill_rectangle)
12043 (mac_set_clip_rectangles) [USE_CG_DRAWING]: Likewise.
12044 (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12045 instead of WindowRef in argument type.
12046 (XCreatePixmap) [!MAC_OS8]: Don't call SetPortWindowPort.
12047 (mac_invert_rectangle): Use CGContextSetBlendMode if available.
12048 (mac_set_clip_rectangles, mac_reset_clip_rectangles): Take argument F
12049 instead of DISPLAY. All uses changed.
12050 (mac_handle_size_change): Don't call SET_FRAME_GARBAGED.
12051 (x_calc_absolute_position): Simplify so as not to use
12052 FRAME_PIXEL_WIDTH/FRAME_PIXEL_HEIGHT.
12053
12054 * macterm.h (XCreatePixmap, XCreatePixmapFromBitmapData): Use Window
12055 instead of WindowRef in argument type.
12056 (create_apple_event_from_event_ref, create_apple_event_from_drag_ref)
12057 [TARGET_API_MAC_CARBON]: Remove externs.
12058 (create_apple_event, mac_event_parameters_to_lisp)
12059 [TARGET_API_MAC_CARBON]: Add externs.
12060
12061 * mactoolbox.c (Vmac_ts_script_language_on_focus)
12062 (saved_ts_script_language_on_focus) [USE_MAC_TSM]: Remove externs.
12063 (XTread_socket) [USE_MAC_TOOLBAR]: Select window if its structure part
12064 is clicked.
12065 (x_activate_menubar): Remove extern for saved_menu_event_location.
12066 (create_apple_event_from_drag_ref) [TARGET_API_MAC_CARBON]:
12067 Move from mac.c.
12068
120692008-04-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12070
12071 * alloc.c [!SYSTEM_MALLOC && !SYNC_INPUT] (uninterrupt_malloc)
12072 [HAVE_GTK_AND_PTHREAD && !DOUG_LEA_MALLOC]: Don't use recursive mutex.
12073
120742008-04-23 Jason Rumney <jasonr@gnu.org>
12075
12076 * w32.c (stat): When Vw32_get_true_file_attributes is Qlocal, get
12077 attributes only for local files.
12078
12079 * w32proc.c (syms_of_ntproc): Change Vw32_get_true_file attributes
12080 default to Qlocal.
12081
120822008-04-22 Juri Linkov <juri@jurta.org>
12083
12084 * buffer.c (Fswitch_to_buffer): Change interactive spec to call
12085 read-buffer-to-switch instead of using the letter "B".
12086
120872008-04-21 Stefan Monnier <monnier@iro.umontreal.ca>
12088
12089 * fileio.c (Qdefault_directory): New variable.
12090 (Fread_file_name): Use it to pass `dir' to the completion functions.
12091
120922008-04-20 Chong Yidong <cyd@stupidchicken.com>
12093
12094 * xdisp.c (pos_visible_p): Check if iterator stops on a display string.
12095
120962008-04-19 Stefan Monnier <monnier@iro.umontreal.ca>
12097
12098 * keyboard.c (Vpre_help_message): Remove.
12099 (show_help_echo): Remove default C code.
12100
12101 * dired.c (directory_files_internal, file_name_completion):
12102 Only call ENCODE_FILE if the string is indeed decoded.
12103
121042008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12105
12106 * Makefile.in (TOOLKIT_DEFINES): Remove.
12107 (LIBW): Use a bit less #if, remove left over OPEN_LOOK stuff.
12108
121092008-04-18 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12110
12111 * Makefile.in (MAC_OBJ): Add mactoolbox.o.
12112 (mactoolbox.o): New target.
12113
12114 * mac.c [MAC_OSX] (select_and_poll_event, sys_select):
12115 Use mac_run_loop_run_once instead of CFRunLoopRunInMode.
12116
12117 * macfns.c (x_set_background_color, mac_window, x_create_tip_frame):
12118 Use mac_set_frame_window_background instead of XSetWindowBackground.
12119 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]:
12120 Use mac_is_window_toolbar_visible instead of IsWindowToolbarVisible.
12121 (x_set_name_internal) [TARGET_API_MAC_CARBON]: Use mac_set_window_title
12122 instead of SetWindowTitleWithCFString.
12123 (mac_update_proxy_icon) [TARGET_API_MAC_CARBON]: Remove BLOCK_INPUT.
12124 Move function to mactoolbox.c.
12125 (mac_update_title_bar) [TARGET_API_MAC_CARBON]:
12126 Use mac_set_window_modified instead of SetWindowModified.
12127 Add BLOCK_INPUT around mac_set_window_modified/mac_update_proxy_icon.
12128 (mac_window, x_create_tip_frame): Use mac_create_frame_window.
12129 (Fx_focus_frame): Use mac_front_non_floating_window instead of
12130 FrontNonFloatingWindow. Use mac_activate_window instead of
12131 ActivateWindow. Use mac_active_non_floating_window instead of
12132 ActiveNonFloatingWindow.
12133 (show_hourglass, hide_hourglass) [TARGET_API_MAC_CARBON]:
12134 Use mac_show_hourglass and mac_hide_hourglass.
12135 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use mac_get_global_mouse
12136 instead of GetGlobalMouse.
12137 (Fx_show_tip): Use mac_move_window/mac_size_window/mac_show_window
12138 instead of MoveWindow/SizeWindow/ShowWindow, respectively.
12139 Use mac_bring_window_to_front instead of BringToFront.
12140 (Qfile_name_history) [TARGET_API_MAC_CARBON]: Move extern to
12141 mactoolbox.c.
12142 (Fx_file_dialog) [TARGET_API_MAC_CARBON]: Move function body to
12143 mac_file_dialog in mactoolbox.c. Use mac_file_dialog.
12144 (mac_nav_event_callback) [TARGET_API_MAC_CARBON]: Move function to
12145 mactoolbox.c.
12146
12147 * macgui.h [!HAVE_CARBON]: Include Quickdraw.h instead of QuickDraw.h.
12148 (XtPointer): Move typedef from macmenu.c.
12149 (enum button_type): Move enum from macmenu.c.
12150 (widget_value): Move typedef from macmenu.c.
12151 (M_APPLE, I_ABOUT, EXTRA_STACK_ALLOC, ARGV_STRING_LIST_ID)
12152 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12153 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12154 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12155 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12156 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12157 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12158 (DIALOG_ICON_TOP_MARGIN): Move defines from macmenu.c.
12159 (Selection): Move typedef from macselect.c.
12160 (RAM_TOO_LARGE_ALERT_ID, ABOUT_ALERT_ID) [MAC_OS8]: Move defines from
12161 macterm.c.
12162 (mac_set_window_title, mac_set_window_modified, mac_is_window_visible)
12163 (mac_is_window_collapsed, mac_bring_window_to_front)
12164 (mac_send_window_behind, mac_hide_window, mac_show_window)
12165 (mac_collapse_window, mac_front_non_floating_window)
12166 (mac_active_non_floating_window, mac_activate_window)
12167 (mac_move_window_structure, mac_move_window, mac_size_window)
12168 (mac_get_global_mouse, mac_is_window_toolbar_visible): New defines.
12169
12170 * macmenu.c [!TARGET_API_MAC_CARBON]: Move includes to mactoolbox.c.
12171 (enum mac_menu_kind): Move enum to mactoolbox.c.
12172 (min_menu_id): Move variable to mactoolbox.c.
12173 (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]: Likewise.
12174 (DIALOG_WINDOW_RESOURCE): Move define to mactoolbox.c.
12175 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
12176 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
12177 [TARGET_API_MAC_CARBON]: Likewise.
12178 (XtPointer): Move typedef to macgui.h.
12179 (enum button_type): Move enum to macgui.h.
12180 (widget_value): Move typedef to macgui.h.
12181 (DIALOG_LEFT_MARGIN, DIALOG_TOP_MARGIN, DIALOG_RIGHT_MARGIN)
12182 (DIALOG_BOTTOM_MARGIN, DIALOG_MIN_INNER_WIDTH, DIALOG_MAX_INNER_WIDTH)
12183 (DIALOG_BUTTON_BUTTON_HORIZONTAL_SPACE)
12184 (DIALOG_BUTTON_BUTTON_VERTICAL_SPACE, DIALOG_BUTTON_MIN_WIDTH)
12185 (DIALOG_TEXT_MIN_HEIGHT, DIALOG_TEXT_BUTTONS_VERTICAL_SPACE)
12186 (DIALOG_ICON_WIDTH, DIALOG_ICON_HEIGHT, DIALOG_ICON_LEFT_MARGIN)
12187 (DIALOG_ICON_TOP_MARGIN): Move defines to macgui.h.
12188 (popup_activated_flag): Make variable non-static.
12189 (x_activate_menubar, install_menu_quit_handler, pop_down_menu)
12190 (add_menu_item, fill_menu, dispose_menus):
12191 Move functions to mactoolbox.c.
12192 (restore_show_help_function, menu_target_item_handler)
12193 (install_menu_target_item_handler, mac_handle_dialog_event)
12194 (install_dialog_event_handler, pop_down_dialog, create_and_show_dialog)
12195 [TARGET_API_MAC_CARBON]: Likewise.
12196 (menu_quit_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]: Likewise.
12197 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12198 (find_and_call_menu_selection, name_is_separator): Make function
12199 non-static.
12200 (Vshow_help_function, timer_check) [TARGET_API_MAC_CARBON]: Move extern
12201 to mactoolbox.c.
12202 (set_frame_menubar): Don't call install_menu_quit_handler.
12203 (menu_item_selection): New variable.
12204 (mac_menu_show): Use create_and_show_popup_menu.
12205 (create_and_show_dialog) [TARGET_API_MAC_CARBON]: Don't return
12206 selection but set variable menu_item_selection. All uses changed.
12207 (mac_fill_menubar): Rename from fill_menubar. All uses changed.
12208 Call install_menu_quit_handler. Move to mactoolbox.c.
12209
12210 * macselect.c [!TARGET_API_MAC_CARBON]: Don't include Scrap.h.
12211 (Selection): Move typedef to macgui.h.
12212 (Vselection_converter_alist, Qmac_scrap_name, Qmac_ostype)
12213 (Vmac_apple_event_map, Qmac_apple_event_class, Qmac_apple_event_id):
12214 Make variables non-static.
12215 (Vmac_dnd_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12216 (mac_handle_apple_event, cleanup_all_suspended_apple_events):
12217 Make functions non-static.
12218 (Vmac_service_selection) [MAC_OSX]: Likewise.
12219 (mac_get_selection_from_symbol, get_flavor_type_from_symbol)
12220 (mac_valid_selection_target_p, mac_clear_selection)
12221 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12222 (mac_put_selection_value, mac_selection_has_target_p)
12223 (mac_get_selection_value, mac_get_selection_target_list)
12224 (init_apple_event_handler, install_drag_handler, remove_drag_handler):
12225 Move functions to mactoolbox.c.
12226 (mac_do_track_drag, mac_do_receive_drag) [TARGET_API_MAC_CARBON]:
12227 Likewise.
12228 (copy_scrap_flavor_data, mac_handle_service_event)
12229 (install_service_handler) [MAC_OSX]: Likewise.
12230 (syms_of_macselect) <Vmac_dnd_known_types>:
12231 Use mac_dnd_default_known_types.
12232
12233 * macterm.h (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y):
12234 Move to mactoolbox.c.
12235 (HOURGLASS_WIDTH, HOURGLASS_HEIGHT): Change to 15.
12236 (Fx_selection_owner_p): Add EXFUN.
12237 (install_window_handler, remove_window_handler, XSetWindowBackground):
12238 Remove externs.
12239 (do_apple_menu) [!TARGET_API_MAC_CARBON]: Likewise.
12240 (mac_prepare_for_quickdraw) [USE_CG_DRAWING]: Likewise.
12241 (x_raise_frame, x_lower_frame, mac_alert_sound_play)
12242 (install_application_handler, mac_get_frame_bounds, mac_get_frame_mouse)
12243 (mac_convert_frame_point_to_global, mac_set_frame_window_background)
12244 (mac_update_begin mac_update_end, mac_frame_up_to_date, x_flush)
12245 (mac_create_frame_window, mac_dispose_frame_window, mac_begin_clip)
12246 (mac_end_clip, mac_create_scroll_bar, mac_dispose_scroll_bar)
12247 (mac_set_scroll_bar_bounds, mac_redraw_scroll_bar, mac_fill_menubar)
12248 (create_and_show_popup_menu, mac_get_selection_from_symbol)
12249 (mac_valid_selection_target_p, mac_clear_selection)
12250 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
12251 (mac_put_selection_value, mac_selection_has_target_p)
12252 (mac_get_selection_value, mac_get_selection_target_list): Add externs.
12253 (mac_update_proxy_icon, mac_show_hourglass, mac_hide_hourglass)
12254 (mac_reposition_hourglass, mac_file_dialog, create_and_show_dialog)
12255 (mac_dnd_default_known_types) [TARGET_API_MAC_CARBON]: Likewise.
12256 (mac_run_loop_run_once) [MAC_OSX]: Likewise.
12257 (mac_dialog) [!TARGET_API_MAC_CARBON]: Likewise.
12258 (mac_begin_cg_clip, mac_end_cg_clip) [USE_CG_DRAWING]: Likewise.
12259 (x_set_toolkit_scroll_bar_thumb) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12260 (x_scroll_bar_set_handle) [!USE_TOOLKIT_SCROLL_BARS]: Likewise.
12261
12262 * mactoolbox.c: New file.
12263
122642008-04-18 Jason Rumney <jasonr@gnu.org>
12265
12266 * dired.c (Ffile_attributes) [WINDOWSNT]: Cast uid and gid to unsigned.
12267
122682008-04-18 Stefan Monnier <monnier@iro.umontreal.ca>
12269
12270 * character.c (Fmultibyte_char_to_unibyte):
12271 Return latin1 chars unchanged.
12272
12273 * fileio.c (Fexpand_file_name): Refine last fix so `nm' is only
12274 relocated if it points to `name'.
12275
122762008-04-17 Kenichi Handa <handa@m17n.org>
12277
12278 * data.c (Faset): Allow setting a multibyte character in an
12279 ASCII-only unibyte string.
12280
12281 * lisp.h (STRING_SET_MULTIBYTE): New macro.
12282
122832008-04-16 Stefan Monnier <monnier@iro.umontreal.ca>
12284
12285 * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now
12286 done in config.h.
12287
122882008-04-16 Juanma Barranquero <lekktu@gmail.com>
12289
12290 * character.c (Fchar_bytes, Fchar_width, Fstring_width)
12291 (Fchar_direction): Add usage in the docstring.
12292
122932008-04-15 Chong Yidong <cyd@stupidchicken.com>
12294
12295 * keyboard.c (read_key_sequence): Remove always-true checks.
12296
122972008-04-14 Jason Rumney <jasonr@gnu.org>
12298
12299 * w32font.c (w32font_open_internal): Set max_bounds.descent in
12300 compatibility struct, for better underline positioning.
12301
123022008-04-13 David Hansen <david.hansen@gmx.net>
12303
12304 * dbusbind.c (dbus-get-unique-name): Remove extra copying of name
12305 string.
12306
123072008-04-12 Dan Nicolaescu <dann@ics.uci.edu>
12308
12309 * m/hp800.h (XUINT, XSET): Remove.
12310
123112008-04-12 Juanma Barranquero <lekktu@gmail.com>
12312
12313 * fileio.c (Fexpand_file_name): Add declaration for `p' missing in
12314 previous change.
12315
123162008-04-12 Stefan Monnier <monnier@iro.umontreal.ca>
12317
12318 * fileio.c (Fexpand_file_name): Tighten the scope of `p' and `o' vars.
12319 Relocate `nm' after calling DECODE_FILE, in case the GC was run.
12320
123212008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12322
12323 * keymap.h (map_keymap_canonical): Declare.
12324 * xmenu.c (single_keymap_panes): Use it.
12325
123262008-04-11 Glenn Morris <rgm@gnu.org>
12327
12328 * eval.c (Fdefvaralias): If the alias is bound and the target is not,
12329 set the target's value to that of the alias.
12330
123312008-04-11 Stefan Monnier <monnier@iro.umontreal.ca>
12332
12333 * term.c (set_tty_color_mode): Left over typo.
12334
123352008-04-10 Michael Albinus <michael.albinus@gmx.de>
12336
12337 * fileio.c (Fmake_symbolic_link): Surround code by #ifdef S_IFLNK
12338 only after check for file name handler functions. Signal, when
12339 native functionality is not supported.
12340 (syms_of_fileio): Declare it unconditionally.
12341
123422008-04-10 Jason Rumney <jasonr@gnu.org>
12343
12344 * w32menu.c (is_simple_dialog, simple_dialog_show): New functions.
12345 (Fx_popup_dialog): Handle simple yes/no questions as dialogs.
12346
12347 * w32.c (logon_network_drive): Also logon to remote drives that
12348 are mapped to drive letters.
12349
123502008-04-10 Glenn Morris <rgm@gnu.org>
12351
12352 * xdisp.c (truncate-partial-width-windows): Doc fix.
12353
123542008-04-10 Stefan Monnier <monnier@iro.umontreal.ca>
12355
12356 * fileio.c (read_file_name_cleanup, Fread_file_name_internal):
12357 Move functions to minibuffer.el.
12358 (syms_of_fileio): Don't declare them.
12359
123602008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12361
12362 * minibuf.c (Vcompletion_auto_help): Move to minibuffer.el.
12363 (syms_of_minibuf): Remove its initialization.
12364
12365 * minibuf.c (temp_echo_area_glyphs): Remove unused function.
12366
123672008-04-09 Juanma Barranquero <lekktu@gmail.com>
12368
12369 * editfns.c (Ffield_string_no_properties): Fix typo in docstring.
12370
123712008-04-09 Jason Rumney <jasonr@gnu.org>
12372
12373 * makefile.w32-in (distclean): Delete makefile too.
12374 (maintainer-clean): New target.
12375
12376 * xdisp.c (redisplay_internal) [!WINDOWSNT]: Conditionalize last change.
12377
12378 * w32term.c (w32_compute_glyph_string_overhangs): Compute overhangs
12379 for new font backend and composite cases.
12380
123812008-04-09 Jan Djärv <jan.h.d@swipnet.se>
12382
12383 * atimer.c (alarm_signal_handler): Call run_timers if not SYNC_INPUT.
12384 Most of the code moved to run_timers.
12385 (do_pending_atimers): Call run_timers.
12386 (run_timers): New function.
12387
12388 * sysdep.c (emacs_write): If SYNC_INPUT and pending_atimers,
12389 run atimers.
12390
12391 * process.c (wait_reading_process_output): The same as above.
12392
123932008-04-09 Stefan Monnier <monnier@iro.umontreal.ca>
12394
12395 * minibuf.c (last_exact_completion): Remove variable.
12396 (Fdelete_minibuffer_contents, do_completion, Fminibuffer_complete)
12397 (complete_and_exit_1, complete_and_exit_2)
12398 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
12399 (Fdisplay_completion_list, display_completion_list_1)
12400 (Fminibuffer_completion_help, Fself_insert_and_exit)
12401 (Fexit_minibuffer, Fminibuffer_message): Move functions to
12402 minibuffer.el.
12403 (syms_of_minibuf): Remove corresponding initializations.
12404
12405 * keyboard.c (Qdeactivate_mark): New var.
12406 (command_loop_1): Use it to call `deactivate-mark'.
12407 (syms_of_keyboard): Initialize it.
12408
12409 * xdisp.c (redisplay_internal): Reset tty's color_mode when switching
12410 to another frame.
12411 * frame.c (do_switch_frame): Refine the top_frame/async_visible code.
12412 Don't call set_tty_color_mode.
12413 (store_frame_param): Reset previous_frame rather than call
12414 set_tty_color_mode.
12415 * term.c (set_tty_color_mode): Rewrite.
12416 * dispextern.h (set_tty_color_mode): New type.
12417 * termchar.h (struct tty_display_info): Add `previous_color_mode'.
12418
124192008-04-08 Stefan Monnier <monnier@iro.umontreal.ca>
12420
12421 * keymap.c (access_keymap): Remove the value 2 for t_ok which was used
12422 for generic chars, which do not exist any more in emacs-unicode.
12423
124242008-04-08 Michael Albinus <michael.albinus@gmx.de>
12425
12426 * coding.c (detect_coding_emacs_mule)
12427 (Ffind_operation_coding_system): Fix typo.
12428
124292008-04-08 Jason Rumney <jasonr@gnu.org>
12430
12431 * w32uniscribe.c (SNAME): Extract only symbol name.
12432
12433 * w32font.h (struct w32_metric_cache): New struct.
12434 (w32font_info): Use it.
12435 (W32METRIC_NO_ATTEMPT, W32METRIC_SUCCESS, W32METRIC_FAIL)
12436 (CACHE_BLOCKSIZE): New constants.
12437
12438 * w32font.c (Qja, Qko, Qzh): New symbols.
12439 (syms_of_w32font): Initialise them.
12440 (font_matches_spec): Use them to filter by language.
12441 (recompute_cached_metrics): Remove function.
12442 (compute_metrics, clear_cached_metrics): New functions.
12443 (w32font_encode_char): Use them to manage metric cache.
12444 (w32font_text_extents): Cache metrics for all glyphs on demand.
12445 Delay converting glyph indices to WORD until needed.
12446 (w32font_open_internal): Initialize metric cache to empty.
12447 (registry_to_w32_charset): Charset should always be a symbol.
12448 (fill_in_logfont, list_all_matching_fonts): Family should
12449 always be a symbol.
12450
124512008-04-06 Jason Rumney <jasonr@gnu.org>
12452
12453 * w32uniscribe.c (uniscribe_shape): Increase items buffer size.
12454 Give up if glyph indices not supported. Use uniscribe obtained
12455 ABC widths for individual metrics. Map glyph clusters back to
12456 characters using fClusterStart flag. Return number of glyphs
12457 produced, not chars processed.
12458 (uniscribe_shape): Map char at FROM to current glyph.
12459
124602008-04-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12461
12462 * macmenu.c (fill_menu) [TARGET_API_MAC_CARBON]:
12463 Use SetMenuItemHierarchicalMenu.
12464
124652008-04-05 Jason Rumney <jasonr@gnu.org>
12466
12467 * image.c (pbm_load): Allow color values up to 65535.
12468 Throw an error if max_color_idx is outside the supported range.
12469 Report an error when image size is invalid.
12470 Read two bytes at a time when raw images have max_color_idx above 255.
12471
124722008-04-05 Eli Zaretskii <eliz@gnu.org>
12473
12474 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12475 cFileName a file name that includes `?' characters, use the 8+3
12476 alias in cAlternateFileName instead.
12477
124782008-04-05 Kenichi Handa <handa@ni.aist.go.jp>
12479
12480 * ccl.c (ccl_driver): If ccl->quit_silently is nonzero, don't
12481 append "CCL: Quitted" when the CCL program is quitted.
12482 (setup_ccl_program): Initialize ccl->quit_silently to zero.
12483
12484 * ccl.h (struct ccl_program): New member quit_silently.
12485
124862008-04-05 Chong Yidong <cyd@stupidchicken.com>
12487
12488 * search.c (compile_pattern_1): Treat non-nil and non-string of
12489 search-spaces-regexp as nil.
12490
12491 * minibuf.c (Fassoc_string): Tweak docstring.
12492
124932008-04-05 Eli Zaretskii <eliz@gnu.org>
12494
12495 * dired.c (Ffile_attributes): Support inode numbers wider than 32
12496 bits. Remove ugly WINDOWSNT-specific kludge introduced on
12497 2008-03-14 to force inode be positive.
12498
12499 * w32.c (sys_chown, stat, fstat): Use S_* constants instead of
12500 _S_* ones, since we now use our own sys/stat.h.
12501 (stat, fstat): Don't mangle the inode number.
12502 (init_user_info): Don't restrict UID and GID to 0-60000 range.
12503
125042008-04-04 Stefan Monnier <monnier@iro.umontreal.ca>
12505
12506 * frame.h (struct frame): Give one more bit to `visible' since we use
12507 values larger than 1 to indicate obscured frames on ttys.
12508
12509 * keymap.c (Qkeymap_canonicalize): New var.
12510 (Fmap_keymap_internal): New fun.
12511 (describe_map): Use keymap-canonicalize.
12512
12513 * undo.c (last_boundary_buffer, last_boundary_position): New vars.
12514 (Fundo_boundary): Set them.
12515 (syms_of_undo): Initialize them.
12516 (record_point): Use them instead of last_point_position*.
12517 (last_undo_buffer): Change type.
12518
125192008-04-04 Jason Rumney <jasonr@gnu.org>
12520
12521 * w32font.c (w32font_text_extents): Use font's ascent and descent.
12522 (recompute_cached_metrics): Don't set ascent and descent per char.
12523
12524 * w32uniscribe.c (uniscribe_check_otf): Fix last change.
12525 (uniscribe_check_otf): Add GC protection before consing.
12526 Rearrange loop for counting features.
12527
125282008-04-03 Stefan Monnier <monnier@iro.umontreal.ca>
12529
12530 * insdel.c (insert_from_buffer_1): Don't compare bytes in destination
12531 buffer with byte-size of source buffer.
12532
125332008-04-03 Chong Yidong <cyd@stupidchicken.com>
12534
12535 * callint.c (Fcall_interactively): Handle temporary region even
12536 when shift-select-mode is off.
12537
125382008-04-03 Jason Rumney <jasonr@gnu.org>
12539
12540 * w32uniscribe.c (uniscribe_check_otf): Sanity check otf_spec.
12541
125422008-04-03 Kenichi Handa <handa@m17n.org>
12543
12544 * coding.c (CATEGORY_MASK_ANY): Add CATEGORY_MASK_UTF_16_AUTO.
12545 (CATEGORY_MASK_UTF_16): Likewise.
12546 (detect_coding_utf_16): Add heuristics to reject utf-16 for a
12547 binary file.
12548 (detect_coding): Add null-byte detection for a binary file.
12549 (detect_coding_system): Likewise.
12550
125512008-04-03 Jason Rumney <jasonr@gnu.org>
12552
12553 * w32uniscribe.c: New file.
12554
12555 * font.h (uniscribe_font_driver) [WINDOWSNT]: Declare for w32fns.c.
12556
12557 * w32font.h (uniscribe_check_otf): Declare for w32font.c.
12558
12559 * w32font.c (Qbalinese, Qbuginese, Qbuhid, Qcuneiform, Qcypriot)
12560 (Qdeseret, Qglagolitic, Qgothic, Qhanunoo, Qkharoshthi)
12561 (Qlimbu, Qlinear_b, Qold_italic, Qold_persian, Qosmanya)
12562 (Qphags_pa, Qphoenician, Qshavian, Qsyloti_nagri)
12563 (Qtagalog, Qtagbanwa, Qtai_le, Qtifinagh, Qugaritic)
12564 (Qphonetic): New symbols.
12565 (syms_of_w32font): Initialize them.
12566 (font_supported_scripts): Use them.
12567 (w32font_list_family): List all charsets.
12568 (w32font_text_extents, recompute_cached_metrics): Fix metric
12569 calculations.
12570 (w32_enumfont_pattern_entity): Make full_type a DWORD.
12571 Give opentype fonts their own format.
12572 (font_matches_spec): New arguments backend and logfont.
12573 Handle :otf spec for uniscribe backend.
12574 (add_font_entity_to_list): Match truetype fonts in uniscribe backend.
12575 (fill_in_logfont): Use DEFAULT_CHARSET when charset not supplied.
12576
12577 * w32fns.c (Fx_create_frame): Conditionally register uniscribe
12578 font backend.
12579 (globals_of_w32fns): Initialize uniscribe font backend.
12580
12581 * makefile.w32-in (CONFIG_H): New variable. Use it to clean up
12582 dependencies.
12583 (w32uniscribe.$(O)): New file to build.
12584 (FONT_OBJ): Include w32uniscribe.$(O).
12585 (LIBS): Add uniscribe libraries.
12586
12587 * ftfont.c (ftfont_get_open_type_spec): Check spec->script, not val.
12588
125892008-04-02 Chong Yidong <cyd@stupidchicken.com>
12590
12591 * callint.c (Vshift_select_mode): New var.
12592 (Finteractive): Document new ^ spec.
12593 (Fcall_interactively): Call handle-shift-selection if the ^ spec
12594 is present.
12595
12596 * keyboard.c (Vthis_command_keys_shift_translated): New var.
12597 (command_loop_1): Avoid running the direct display versions of
12598 forward-char and backward-char if shift-selection may occur.
12599 (read_key_sequence): Set Vthis_command_keys_shift_translated if
12600 shift-translation takes place.
12601
12602 * buffer.c (Vtransient_mark_mode): Move docstring to simple.el to
12603 avoid clobbering by define-minor-mode.
12604
12605 * cmds.c (Fforward_char, Fbackward_char, Fforward_line)
12606 (Fbeginning_of_line, Fend_of_line): Add ^ interactive spec.
12607
12608 * syntax.c (Fforward_word): Add ^ interactive spec.
12609
12610 * window.c (Fscroll_up, Fscroll_down, Fscroll_left)
12611 (Fscroll_right): Add ^ interactive spec.
12612
126132008-04-01 Stefan Monnier <monnier@iro.umontreal.ca>
12614
12615 * xdisp.c (try_window_id): Don't forget to reset delta_bytes.
12616
12617 * casefiddle.c (casify_object): Fix up int/EMACS_INT mixup.
12618
12619 * charset.c (Funibyte_charset, Fset_unibyte_charset): Remove.
12620
126212008-03-31 Juri Linkov <juri@jurta.org>
12622
12623 * window.c (Fdisplay_buffer): Reinitialize `tem' to nil.
12624
126252008-03-30 Jan Djärv <jan.h.d@swipnet.se>
12626
12627 * gtkutil.c (xg_set_geometry): Fix indentation.
12628 (xg_resize_outer_widget): Remove.
12629 (x_wm_size_hint_off): Fix indentation.
12630 (xg_frame_set_char_size): Call flush_and_sync after
12631 gtk_window_resize.
12632 (x_wm_set_size_hint): Pass NULL as geometry window to
12633 gtk_window_set_geometry_hints due to Gtk+ bug nr 68668.
12634 Add menu bar and tool bar height to base height.
12635 (xg_update_frame_menubar, free_frame_menubar)
12636 (xg_tool_bar_detach_callback, xg_tool_bar_attach_callback)
12637 (update_frame_tool_bar, free_frame_tool_bar):
12638 Change xg_resize_outer_widget to xg_frame_set_char_size.
12639
126402008-03-30 Michael Albinus <michael.albinus@gmx.de>
12641
12642 * dbusbind.c (QCdbus_timeout): New D-Bus internal symbol.
12643 (Fdbus_call_method): New parameter TIMEOUT.
12644 (dbus-send-signal): Optimize UNGCPRO call.
12645
126462008-03-29 Juri Linkov <juri@jurta.org>
12647
12648 * window.c (Fdisplay_buffer): Move call to
12649 Vsplit_window_preferred_function out of conditions that check
12650 if window is eligible for vertical splitting.
12651 When Vsplit_window_preferred_function is non-nil, call it and use
12652 its non-nil return value as window. Otherwise, continue doing
12653 vertical splitting using Fsplit_window with arg horflag=nil.
12654 (syms_of_window) <Vsplit_window_preferred_function>: Change the
12655 default value from `split-window' to nil.
12656
126572008-03-29 Juri Linkov <juri@jurta.org>
12658
12659 * callint.c (Fcall_interactively): Revert 2008-03-16 change
12660 for interactive code letters 'b' and 'B'.
12661
126622008-03-29 Eli Zaretskii <eliz@gnu.org>
12663
12664 * fileio.c (Fexpand_file_name): Convert the value of $HOME to a
12665 multibyte string.
12666
126672008-03-29 Stefan Monnier <monnier@iro.umontreal.ca>
12668
12669 * keyboard.c (pending_funcalls): New var.
12670 (timer_check): Run it.
12671 (syms_of_keyboard): Initialize it.
12672 * terminal.c (Qrun_hook_with_args, Qdelete_terminal_functions)
12673 (Vdelete_terminal_functions): New vars.
12674 (syms_of_terminal): Initialize them.
12675 (Fdelete_terminal): Run delete-terminal-functions.
12676 * xdisp.c (safe_eval): Rewrite.
12677 (safe_call2): New fun.
12678 * frame.c (Qdelete_frame_functions): New var.
12679 (syms_of_frame): Initialize it.
12680 (Fdelete_frame): Use it and use safe_call2 and pending_funcalls.
12681 * lisp.h (safe_call2, pending_funcalls): Declare.
12682
126832008-03-28 Andreas Schwab <schwab@suse.de>
12684
12685 * indent.c (Fmove_to_column): Move declaration before statements.
12686
126872008-03-27 Stefan Monnier <monnier@iro.umontreal.ca>
12688
12689 * frame.h (enum fullscreen_type): Give it a name. Move it before use.
12690 (struct frame): Use bit fields for boolean vars.
12691
12692 * process.c (server_accept_connection): Simplify naming.
12693 (emacs_get_tty_pgrp): Use SDATA.
12694
12695 * coding.c (decode_coding_object): Fix last change.
12696
126972008-03-27 Jason Rumney <jasonr@gnu.org>
12698
12699 * w32fns.c (start_hourglass): Suppress hourglass on tty frames.
12700
127012008-03-27 Kenichi Handa <handa@ni.aist.go.jp>
12702
12703 * charset.c (Fdefine_charset_internal): Change the way of
12704 registering charsets in Vcharset_order_list.
12705 (syms_of_charset): Make the charset `eight-bit' supplementary.
12706
127072008-03-26 Alexandre Oliva <aoliva@redhat.com> (tiny change)
12708
12709 * regex.c (EXTEND_BUFFER): Change order of pointer addition
12710 operations, to avoid having the difference between pointers
12711 overflow.
12712
127132008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
12714
12715 * indent.c (check_display_width): New fun.
12716 (scan_for_column): Use it.
12717
12718 * data.c (syms_of_data): Mark most-positive-fixnum and
12719 most-negative-fixnum as constants.
12720
12721 * xdisp.c (redisplay_internal): Reset selected_frame earlier.
12722
12723 * indent.c (scan_for_column): Extract from current_column_1.
12724 Merge with the same code from Fmove_to_column.
12725 (current_column_1, Fmove_to_column): Use it.
12726
127272008-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
12728
12729 * keymap.c (map_keymap_internal): New fun.
12730 (map_keymap): Use it.
12731 (Fmap_keymap_internal): New fun.
12732 (Fmap_keymap): Remove left-out test from before make_save_value.
12733
12734 * keymap.c (Fmap_keymap): Use `map-keymap-sorted.
12735
12736 * frame.c (Fmodify_frame_parameters, x_set_frame_parameters):
12737 Use XCAR/XCDR.
12738
12739 * process.h (struct Lisp_Process): Remove filter_multibyte.
12740 * process.c (QCfilter_multibyte): Remove.
12741 (setup_process_coding_systems): Don't use filter_multibyte.
12742 (Fstart_process, Fmake_network_process): Don't set filter_multibyte.
12743 (read_process_output): Don't adjust multibyteness to filter_multibyte.
12744 (Fset_process_filter_multibyte): Change the coding-system to
12745 approximate the previous behavior.
12746 (Fprocess_filter_multibyte_p): Get the multibyteness straight from the
12747 coding-system.
12748
12749 * coding.c (decode_coding_object): When not decoding into a buffer,
12750 obey the coding system's preference of (uni|multi)byte.
12751
127522008-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
12753
12754 * casefiddle.c (casify_object): Avoid pathological N^2 worst case if
12755 every char is changed and has a different byte-length.
12756 (Fupcase_word, Fdowncase_word, Fcapitalize_word, operate_on_word):
12757 Fix int -> EMACS_INT.
12758
127592008-03-23 David Hansen <david.hansen@gmx.net>
12760
12761 * dbusbind.c (xd_read_message): Remove extra copying of message
12762 strings. Check for NULL `interface' or `member'.
12763
127642008-03-22 Eli Zaretskii <eliz@gnu.org>
12765
12766 * w32.c (readdir): If FindFirstFile/FindNextFile return in
12767 cFileName a file name that includes `?' characters, use the 8+3
12768 alias in cAlternateFileName instead.
12769
127702008-03-21 Stefan Monnier <monnier@iro.umontreal.ca>
12771
12772 * buffer.c (enlarge_buffer_text): Fix int -> EMACS_INT.
12773
127742008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12775
12776 * intervals.c (temp_set_point, temp_set_point_both): Use EMACS_INT.
12777 (set_point, set_point_both): Use EMACS_INT. Remove `buffer' arg,
12778 work on current_buffer only instead (that was already the case
12779 for some of the code anyway).
12780 * buffer.h (set_point, set_point_both): Remove buffer arg, use long int.
12781 (temp_set_point, temp_set_point_both): Use EMACS_INT.
12782 (SET_PT, SET_PT_BOTH): Adjust.
12783 * intervals.h (set_point, temp_set_point, set_point_both)
12784 (temp_set_point_both): Remove redundant declarations.
12785
127862008-03-20 Stefan Monnier <monnier@iro.umontreal.ca>
12787
12788 * fileio.c (Finsert_file_contents):
12789 * lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
12790 * buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
12791 when buffer != current_buffer anyway.
12792
127932008-03-20 Andreas Schwab <schwab@suse.de>
12794
12795 * callint.c (Fcall_interactively) [case 'B']: Use other-buffer
12796 as default.
12797
127982008-03-19 Jason Rumney <jasonr@gnu.org>
12799
12800 * w32fns.c (hourglass_timer, hourglass_hwnd): New variables.
12801 (syms_of_w32fns): Initialize them.
12802 (HOURGLASS_ID): New constant.
12803 (x_window_to_frame): Don't check hourglass_window.
12804 (w32_wnd_proc) <WM_TIMER>: Handle hourglass_timer.
12805 (w32_wnd_proc) <WM_EXITMENULOOP>: Set pending hourglass cursor.
12806 (w32_wnd_proc) <WM_SETCURSOR>: Set the hourglass or current cursor.
12807 (w32_wnd_proc) <WM_EMACS_SETCURSOR>: Set frame's current_cursor.
12808 Only change the cursor if hourglass is not active.
12809 (Fx_create_frame): Initialize frame's current_cursor.
12810 (hourglass_atimer): Remove.
12811 (hourglass_started): New function.
12812 (start_hourglass, cancel_hourglass, hide_hourglass): Adapt to w32.
12813 (show_hourglass): Adapt to w32, changing argument to frame.
12814
12815 * w32term.h (struct w32_output): Remove hourglass_window.
12816 Add current_cursor.
12817
12818 * eval.c (call_debugger, Fsignal):
12819 * keyboard.c (recursive_edit_1, cmd_error, Ftop_level)
12820 (command_loop_1, Fread_key_sequence, Fread_key_sequence_vector)
12821 (Fexecute_extended_command, cancel_hourglass_unwind):
12822 * minibuf.c (read_minibuf):
12823 * fns.c (Fy_or_n_p): Enable hourglass when HAVE_WINDOW_SYSTEM.
12824
128252008-03-19 Stefan Monnier <monnier@iro.umontreal.ca>
12826
12827 * window.c (run_funs): New fun.
12828 (run_window_configuration_change_hook): Use it to run the buffer-local
12829 and the global part of the hook.
12830
12831 * xdisp.c (format_mode_line_unwind_data): Add window argument.
12832 (unwind_format_mode_line): Restore selected window.
12833 (x_consider_frame_title, Fformat_mode_line): Set selected window.
12834
128352008-03-17 Stefan Monnier <monnier@iro.umontreal.ca>
12836
12837 * editfns.c (Fchar_equal): Check they are valid characters.
12838
12839 * buffer.h (Fbuffer_list): Declare (for use in callint.c).
12840
128412008-03-17 Andreas Schwab <schwab@suse.de>
12842
12843 * regex.c (re_match_2_internal): Properly match raw 8-bit bytes
12844 against a charset.
12845
12846 * lisp.h (Fbuffer_list): Declare.
12847
128482008-03-17 Jan Djärv <jan.h.d@swipnet.se>
d6c952f8 12849
aac0c6e3
MR
12850 * gtkutil.c (free_frame_tool_bar): Only call gtk_container_remove if
12851 handlebox_widget is != 0.
12852
128532008-03-16 Juri Linkov <juri@jurta.org>
12854
12855 * callint.c (Fcall_interactively): For interactive code letters
12856 'b' and 'B' put the buffer list into the list of default "future"
12857 values of the minibuffer.
12858
128592008-03-16 Andreas Schwab <schwab@suse.de>
12860
12861 * keyboard.c (read_key_sequence): Fix downcasing of letters with
12862 modifiers.
12863
12864 * regex.c (re_match_2_internal): Correct matching of a charset
12865 against latin-1 characters.
12866
128672008-03-16 Kenichi Handa <handa@m17n.org>
12868
12869 * coding.c (CHAR_STRING_ADVANCE_NO_UNIFY)
12870 (STRING_CHAR_ADVANCE_NO_UNIFY): New macros.
12871 (coding_alloc_by_making_gap): Fix the way to preserve data in the gap.
12872 (alloc_destination): Fix the 2nd arg to coding_alloc_by_making_gap.
12873 (encode_coding_utf_8): Use CHAR_STRING_ADVANCE_NO_UNIFY instead of
12874 CHAR_STRING_ADVANCE.
12875 (produce_chars): Fix for the case that the source and the
12876 destination are the same buffer. Use CHAR_STRING_ADVANCE_NO_UNIFY
12877 instead of CHAR_STRING_ADVANCE.
12878 (consume_chars): Use STRING_CHAR_ADVANCE_NO_UNIFY instead of
12879 STRING_CHAR_ADVANCE.
12880
128812008-03-15 Andreas Schwab <schwab@suse.de>
12882
12883 * regex.c (re_match_2_internal): Correct matching of eight bit
12884 characters in unibyte strings.
12885
128862008-03-15 Martin Rudalics <rudalics@gmx.at>
12887
12888 * buffer.c (overlays_in, Foverlays_in): Include empty overlays
12889 at end of range when it coincides with the end of the buffer.
12890
128912008-03-14 Eli Zaretskii <eliz@gnu.org>
12892
12893 * dired.c (Ffile_attributes) [WINDOWSNT]: Force inode be positive.
12894
12895 * w32fns.c (globals_of_w32fns, Fx_create_frame): Fix last change.
12896
128972008-03-14 Jason Rumney <jasonr@gnu.org>
12898
12899 * editfns.c (initial_tz): New variable.
12900 (syms_of_editfns): Initialize it.
12901 (Fset_time_zone_rule): Set it when first called.
12902 Use it when TZSTRING is nil.
12903
12904 * w32fns.c (MONITOR_DEFAULT_TO_NEAREST, struct MONITOR_INFO)
12905 (MonitorFromPoint_Proc, GetMonitorInfo_Proc): New definitions.
12906 (monitor_from_point_fn, get_monitor_info_fn): New globals.
12907 (globals_of_w32fns): Initialize them.
12908 (compute_tip_xy): Use them to position tooltips.
12909
129102008-03-14 Glenn Morris <rgm@gnu.org>
12911
12912 * emacs.c (main): Revert previous change.
12913 (standard_args): Revert -internal-script back to -scriptload,
12914 and remove the long-option form.
12915
129162008-03-13 Glenn Morris <rgm@gnu.org>
12917
12918 * emacs.c (main, standard_args): Rename -scriptload to -internal-script.
12919 Remove option -enable-font-backend.
12920
129212008-03-12 Stefan Monnier <monnier@iro.umontreal.ca>
12922
12923 * buffer.c (Fswitch_to_buffer): Fall back on pop-to-buffer.
12924
129252008-03-11 Jan Djärv <jan.h.d@swipnet.se>
12926
12927 * xterm.c (x_connection_closed): For GTK: If this is the last
12928 terminal just exit without closing the display.
12929
129302008-03-11 Jason Rumney <jasonr@gnu.org>
12931
12932 * w32font.c (w32font_full_name): Use floor to round.
12933
f0131492 129342008-03-10 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
aac0c6e3
MR
12935
12936 * sound.c (alsa_configure): Declare vol at beginning of block.
12937
12938 * fontset.c (Ffontset_info): Remove extra semicolon.
12939
129402008-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
12941
12942 * fileio.c (Fsubstitute_in_file_name): Fix up computation of maximum
12943 size of resulting string.
12944
129452008-03-10 Jason Rumney <jasonr@gnu.org>
12946
12947 * dispnew.c (adjust_glyph_matrix): Initialize window_height.
12948
129492008-03-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
12950
12951 * xdisp.c (handle_single_display_spec): Undo 2007-10-16 changes.
12952 Don't pretend as if characters with display property haven't been
12953 consumed for string-replacing-string case.
12954
129552008-03-08 Kim F. Storm <storm@cua.dk>
12956
12957 * xdisp.c (GET_NEXT_DISPLAY_ELEMENT): New macro.
12958 (get_next_display_element, next_element_from_string)
12959 (next_element_from_ellipsis, next_element_from_buffer): Use it.
12960
129612008-03-08 Andreas Schwab <schwab@suse.de>
12962
12963 * process.h (struct Lisp_Process): Declare bit fields as unsigned.
12964
129652008-03-06 Jason Rumney <jasonr@gnu.org>
12966
12967 * w32font.c (w32_registry): Take font_type argument. Use ANSI
12968 when charset not specified. Only translate ANSI to unicode when
12969 font_type is truetype.
12970 (w32font_coverage_ok): New function.
12971 (add_font_entity_to_list): Use it to filter unsuitable fonts.
12972
129732008-03-05 Kenichi Handa <handa@ni.aist.go.jp>
12974
12975 * lread.c (Fread_char): Resolve modifiers.
12976 (Fread_char_exclusive): Likewise.
12977
12978 * character.c (char_resolve_modifier_mask): New function.
12979 (char_string): Use char_resolve_modifier_mask.
12980 (Fchar_resolve_modifiers): New function.
12981 (syms_of_character): Declare Fchar_resolve_modifiers as Lisp
12982 function.
12983
129842008-03-04 Jason Rumney <jasonr@gnu.org>
12985
12986 * makefile.w32-in: Always include w32font.c in the build.
12987 * w32font.c: Wrap in USE_FONT_BACKEND conditional.
12988
129892008-03-04 Andreas Schwab <schwab@suse.de>
12990
12991 * Makefile.in (clean): Remove emacs-*.*.* instead of emacs-*.
12992 (versionclean): Likewise.
12993
129942008-03-04 Juanma Barranquero <lekktu@gmail.com>
12995
12996 * .cvsignore: Add oo.
12997
129982008-03-03 Andreas Schwab <schwab@suse.de>
12999
13000 * coding.c (decode_coding_object): Inhibit gap shrinking while
13001 decoding in place.
13002
130032008-03-03 Dan Nicolaescu <dann@ics.uci.edu>
13004
13005 * w32term.c: Remove unused include "gnu.h".
13006 * makefile.w32-in (w32term.o): Don't depend on gnu.h.
13007
13008 * gnu.h: Rename to ...
13009 * emacs-icon.h: ... this.
13010 * xterm.c: Use emacs-icon.h instead of gnu.h.
13011 * Makefile (xterm.o): Depend on emacs-icon.h, not gnu.h.
13012
130132008-03-03 Juanma Barranquero <lekktu@gmail.com>
13014
13015 * w32font.c: Include math.h.
13016
130172008-03-03 Jason Rumney <jasonr@gnu.org>
13018
13019 * w32font.c (recompute_cached_metrics): Change font arg to w32font_info.
13020 Compute options separately.
13021 (w32font_open_internal): Set glyph_idx before caching metrics.
13022
13023 * w32font.h (NTM_PS_OPENTYPE, NTM_TT_OPENTYPE, NTM_TYPE1):
13024 Define if system headers don't.
13025 (struct w32font_info): Enlarge ascii_metrics. Add glyph_idx.
13026 (w32font_encode_char): Don't declare here.
13027
13028 * w32font.c (Quniscribe, QCformat): New symbols.
13029 (syms_of_w32font): Define them.
13030 (w32font_has_char): Indicate uncertainty.
13031 (w32font_encode_char): Encode as glyph point. Make static.
13032 (recompute_cached_metrics): New function.
13033 (w32font_open_internal): Use it. Set font to use glyph points
13034 initially. Set format based on type of font.
13035 (w32font_text_extents, w32font_draw): Optionally use glyph points.
13036 (w32_enumfont_pattern_entity): Accept backend arg. Set type based
13037 on it. Set format based on information available here.
13038 (add_font_entity_to_list): Identify backend based on opentype_only.
13039
130402008-03-02 Andreas Schwab <schwab@suse.de>
13041
13042 * ftfont.c (ftfont_pattern_entity): Fix aliasing violations.
13043
13044 * coding.c (decode_coding_big5, produce_chars):
13045 Fix typos in last change.
13046
130472008-03-02 Kentaro Ohkouchi <nanasess@fsm.ne.jp>
13048
13049 * gnu.h: New icon.
13050
130512008-03-02 Kenichi Handa <handa@m17n.org>
13052
13053 * coding.c (decode_coding_utf_8): When eol-type of CODING is
13054 `dos', don't decode '\r' if that is the last in the source.
13055 (decode_coding_utf_16, decode_coding_emacs_mule)
13056 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
13057 (decode_coding_raw_text, decode_coding_charset): Likewise.
13058 (produce_chars): Don't decode EOL here. Use EMACS_INT.
13059
130602008-03-01 Jason Rumney <jasonr@gnu.org>
13061
13062 * w32font.c (w32font_full_name): Report point size for scalable fonts.
13063
130642008-03-01 Kim F. Storm <storm@cua.dk>
13065
13066 * dispextern.h (CHAR_GLYPH_SPACE_P): Check for default face.
13067
130682008-03-01 Jason Rumney <jasonr@gnu.org>
13069
13070 * w32font.c (w32font_full_name): New function.
13071 (w32font_open_internal): Use it.
13072
130732008-03-01 Kim F. Storm <storm@cua.dk>
13074
13075 * dispnew.c (line_draw_cost): Fix invalid glyph check.
13076
130772008-03-01 Jason Rumney <jasonr@gnu.org>
13078
13079 * font.c (font_unparse_fcname): Increase len when style is a symbol.
13080
130812008-03-01 Jan Djärv <jan.h.d@swipnet.se>
13082
13083 * xterm.c (handle_one_xevent): For Gtk+ and ConfigureNotify, call
13084 xg_frame_resized when the event is for the edit widget.
13085
13086 * gtkutil.h (xg_frame_resized): Renamed from xg_resize_widgets.
13087
13088 * gtkutil.c (xg_resize_outer_widget): Only do one of set_geometry or
13089 set_char_size.
13090 (xg_frame_resized): Renamed from xg_resize_widgets. Remove all
13091 operations on widgets here. Just set frame size if needed.
13092 (flush_and_sync, x_wm_size_hint_off, xg_pack_tool_bar): New functions.
13093 (xg_frame_set_char_size): Call x_wm_size_hint_off before resizing.
13094 (x_wm_set_size_hint): Set size hints on the edit widget only, not
13095 the whole frame.
13096 (xg_create_tool_bar): Move attachment of the tool bar to
13097 xg_pack_tool_bar. Do not attach the tool bar if there are no items.
13098 (free_frame_tool_bar): Remove call to SET_FRAME_GARBAGED.
13099
131002008-03-01 Jason Rumney <jasonr@gnu.org>
13101
13102 * w32fns.c (w32_msg_pump): Disable debug code.
13103
131042008-03-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
13105
13106 * m/intel386.h [MAC_OSX || DARWIN]: Define NO_ARG_ARRAY if _LP64.
13107
131082008-02-29 Chong Yidong <cyd@stupidchicken.com>
13109
13110 * xdisp.c (next_overlay_string): Don't set
13111 overlay_strings_at_end_processed_p if we're currently reading from
13112 a display string.
13113
131142008-02-29 Stefan Monnier <monnier@iro.umontreal.ca>
13115
13116 * xdisp.c (get_overlay_strings_1): Fix typo.
13117
131182008-02-29 Chong Yidong <cyd@stupidchicken.com>
13119
13120 * xdisp.c (get_overlay_strings_1): Add missing argument type.
13121
131222008-02-28 Kenichi Handa <handa@ni.aist.go.jp>
13123
13124 * ftfont.c (ftfont_match): Explicitly set pixelsize in pattern.
13125
13126 * xdisp.c (display_mode_element): Cancel the previous change.
13127 (decode_mode_spec): Likewise.
13128 (handle_auto_composed_prop): Don't make composition if it->string
13129 is a string.
13130
131312008-02-27 Kim F. Storm <storm@cua.dk>
13132
13133 * lisp.h (GLYPH): Change type from int to struct with separate char
13134 and face_id members.
13135 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Delete macros.
13136 (GLYPH_CHAR, GLYPH_FACE): Remove slow versions with frame arg.
13137 (FAST_GLYPH_CHAR, FAST_GLYPH_FACE): Rename macros to ...
13138 (GLYPH_CHAR, GLYPH_FACE): ... these. Change users.
13139 (FAST_MAKE_GLYPH, MAKE_GLYPH): Remove. Rewrite users to use ...
13140 (SET_GLYPH, SET_GLYPH_CHAR, SET_GLYPH_FACE): ... these macros instead.
13141 (GLYPH_CODE_CHAR, GLYPH_CODE_FACE, GLYPH_CODE_P)
13142 (GLYPH_CODE_CHAR_VALID_P, SET_GLYPH_FROM_GLYPH_CODE): New macros to
13143 handle new Lisp glyph code encoding, either an integer or a cons.
13144
13145 * disptab.h (GLYPH_SIMPLE_P): Rewrite.
13146 (GLYPH_ALIAS): Delete.
13147 (GLYPH_ALIAS_P, GLYPH_FOLLOW_ALIASES): Rewrite.
13148 (GLYPH_LENGTH, GLYPH_STRING): Use GLYPH_CHAR.
13149 (GLYPH_FROM_CHAR): Replace macro by ...
13150 (SET_GLYPH_FROM_CHAR): ... this macro. Change users.
13151
13152 * dispextern.h (CHAR_GLYPH_SPACE_P): Simplify.
13153 (GLYPH_FROM_CHAR_GLYPH): Replace macro by ...
13154 (SET_GLYPH_FROM_CHAR_GLYPH): ... this macro. Change users.
13155 (GLYPH_INVALID_P): New macro.
13156 (spec_glyph_lookup_face): Update prototype.
13157
13158 * dispnew.c (line_draw_cost): Adapt to new glyph type.
13159 (build_frame_matrix_from_leaf_window): Adapt to new glyph type and
13160 new glyph code encoding.
13161 (spec_glyph_lookup_face): No return value; update passed glyph instead.
13162 (init_display): Use SET_CHAR_GLYPH to initialize space_glyph.
13163
13164 * xdisp.c (get_next_display_element, next_element_from_display_vector):
13165 Adapt to new glyph type and new glyph code encoding.
13166
13167 * term.c (encode_terminal_code, produce_special_glyphs): Likewise.
13168
13169 * indent.c (current_column, current_column_1, Fmove_to_column)
13170 (compute_motion): Adapt to new glyph code encoding.
13171
13172 * msdos.c (IT_write_glyphs): Adapt to new glyph type.
13173
131742008-02-27 Chong Yidong <cyd@stupidchicken.com>
13175
13176 * process.c (wait_reading_process_output): Check for window
13177 changes caused by timers.
13178 Suggested by Johan Bockgård.
13179
131802008-02-27 Glenn Morris <rgm@gnu.org>
13181
13182 * emacs.c (USAGE1): Add `--disable-font-backend'.
13183
131842008-02-27 Stefan Monnier <monnier@iro.umontreal.ca>
13185
13186 * fileio.c (Finsert_file_contents): Don't reset undo_list if no change
13187 is made to the buffer.
13188
131892008-02-26 Stefan Monnier <monnier@iro.umontreal.ca>
13190
13191 * dispextern.h (face_at_buffer_position, face_for_overlay_string)
13192 (face_at_string_position):
13193 * xfaces.c (face_at_buffer_position, face_for_overlay_string)
13194 (face_at_string_position):
13195 * xdisp.c (display_string, next_overlay_change):
13196 * buffer.h (overlays_at):
13197 * buffer.c (overlays_at): Use EMACS_INT for buffer positions.
13198 Update callers.
13199
132002008-02-26 Chong Yidong <cyd@stupidchicken.com>
13201
13202 * editfns.c (Fformat): Doc fix.
13203
132042008-02-26 Juanma Barranquero <lekktu@gmail.com>
13205
13206 * font.c (Ffont_spec, Ffont_at): Fix typos in docstrings.
13207 (Ffont_put, Flist_families, Ffont_fill_gstring, Ffont_drive_otf)
13208 (Ffont_otf_alternates, Fquery_font): Doc fixes.
13209
132102008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13211
13212 * buffer.c (Fbuffer_swap_text): New function.
13213 (syms_of_buffer): Defsubr it.
13214
132152008-02-25 Chong Yidong <cyd@stupidchicken.com>
13216
13217 * keyboard.c (command_loop_1): Revert 2006-10-09 change.
13218
132192008-02-25 Jason Rumney <jasonr@gnu.org>
13220
13221 * w32font.c (w32font_draw): Draw one character at a time when padding.
13222
132232008-02-25 Stefan Monnier <monnier@iro.umontreal.ca>
13224
13225 * window.c (Fdelete_window, Fadjust_window_trailing_edge):
13226 Handle a nil arg. Use run_window_configuration_change_hook.
13227 (delete_window, adjust_window_trailing_edge): Don't handle nil any more.
13228 (Fenlarge_window, Fshrink_window, Fset_window_configuration):
13229 Use run_window_configuration_change_hook.
13230
132312008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13232
13233 * xdisp.c (x_produce_glyphs): For a visible glyph, assure at least
13234 1-pixel width.
13235
132362008-02-25 Kenichi Handa <handa@ni.aist.go.jp>
13237
13238 * xdisp.c (fill_glyph_string): Pay attention to glyph->padding_p.
13239 (append_glyph): Set glyph->pixel_width and glyph->padding_p to 1
13240 if the glyph in the font is zero pixel with.
13241
13242 * dispextern.h (struct glyph_string): New member padding_p.
13243
13244 * w32font.c (w32font_draw): Pay attention to s->padding_p.
13245
13246 * ftxfont.c (ftxfont_draw): Pay attention to s->padding_p.
13247
13248 * xfont.c (xfont_draw): Pay attention to s->padding_p.
13249
13250 * xftfont.c (xftfont_draw): Pay attention to s->padding_p.
13251
13252 * font.c: If the font driver doesn't have `shape' function, return Qnil.
13253
132542008-02-25 Jason Rumney <jasonr@gnu.org>
13255
13256 * w32fns.c (enum_font_cb2): Don't use raster fonts for Unicode.
13257
132582008-02-24 Stefan Monnier <monnier@iro.umontreal.ca>
13259
13260 Allow fine-grained image-cache flushing.
13261 * dispextern.h (struct image): Add `dependencies' field.
13262 (clear_image_caches): Change arg to Lisp_Object.
13263 * image.c (make_image): Initialize `dependencies' field.
13264 (clear_image_cache): Change arg to allow fine-grained flushing.
13265 Perform the flush even if image-cache-eviction-delay is nil.
13266 (clear_image_caches): Change arg to Lisp_Object.
13267 (Fclear_image_cache): Expand meaning of the argument.
13268 (mark_image): Mark `dependencies' field.
13269 * xfaces.c (clear_face_cache): Adapt arg to call to clear_image_caches.
13270 (lface_hash): Use XHASH rather than XFASTINT.
13271 (face_at_buffer_position): Fix int -> EMACS_INT position.
13272 * xdisp.c (next_overlay_change): Fix int -> EMACS_INT position.
13273 (select_frame_for_redisplay): Remove code duplication.
13274 (redisplay_internal): Adapt arg to call to clear_image_caches.
13275
132762008-02-24 Dan Nicolaescu <dann@ics.uci.edu>
13277
13278 * s/vms4-0.h:
13279 * s/vms4-2.h:
13280 * s/vms4-4.h:
13281 * s/vms5-5.h: Remove, unused.
13282
13283 * s/irix5-2.h:
13284 * s/irix6-0.h:
13285 * s/riscos5.h:
13286 * s/mach-bsd4-3.h:
13287 * m/mips4.h: Remove files for obsolete systems.
13288
13289 * Makefile.in:
13290 * filelock.c:
13291 * unexmips.c:
13292 * m/hp9000s300.h:
13293 * m/iris4d.h:
13294 * s/aix3-1.h:
13295 * s/hpux.h:
13296 * s/msdos.h:
13297 * s/usg5-0.h:
13298 * s/usg5-2-2.h:
13299 * s/usg5-2.h:
13300 * s/usg5-3.h: Remove references to obsolete variables.
13301
13302 * s/irix5-0.h: Remove, move all the contents ...
13303 * s/irix6-5.h: ... here. Simplify.
13304 * config.in: Regenerate.
13305
133062008-02-24 Jason Rumney <jasonr@gnu.org>
13307
13308 * w32term.c (x_draw_glyph_string_background): Clear the background
13309 manually when cleartype is in use.
13310 (x_draw_glyph_string_foreground): Draw text transparently when
13311 cleartype is in use.
13312
13313 * w32font.c (w32font_text_extents): Avoid getting HDC and selecting
13314 a font into it unless we have to.
13315
133162008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13317
13318 * intervals.h (INT_LISPLIKE): Remove. It may misfire.
13319 (NULL_INTERVAL_P, SET_INTERVAL_PARENT): Don't use it.
d6c952f8 13320
aac0c6e3
MR
133212008-02-18 Jason Rumney <jasonr@gnu.org>
13322
13323 * w32fns.c (Fw32_shell_execute): Encode parameters.
13324
133252008-02-09 Eli Zaretskii <eliz@gnu.org>
13326
13327 * fileio.c (syms_of_fileio) <insert-default-directory>: Doc fix.
13328
133292008-02-05 Juanma Barranquero <lekktu@gmail.com>
13330
13331 * unexhp9k800.c (read_header): Replace `legal' with `valid'.
13332
133332008-02-24 Ulrich Neumerkel <ulrich@complang.tuwien.ac.at> (tiny change)
13334
13335 * xterm.c (x_set_offset): Don't change the gravity if
13336 CHANGE_GRAVITY is -1.
13337
133382008-02-23 Chong Yidong <cyd@stupidchicken.com>
13339
13340 * fileio.c (auto_save_error_occurred): New var.
13341 (auto_save_error): Set it.
13342 (Fdo_auto_save): Don't overwrite the error message if an auto-save
13343 error occurred.
13344
133452008-02-23 Eli Zaretskii <eliz@gnu.org>
13346
13347 * w32.c (globals_of_w32): Add initializations for
13348 g_b_init_get_sid_sub_authority and
13349 g_b_init_get_sid_sub_authority_count.
13350
133512008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
13352
13353 * font.c (font_match_xlfd, font_check_xlfd_parse): New funs.
13354 (font_parse_xlfd): Use them for sanity check.
13355 (Finternal_set_font_style_table): Make sure the table is bijective.
13356
13357 Consolidate the image_cache to the terminal struct.
13358 * termhooks.h (P_): Remove redundant def.
13359 (struct terminal): New field `image_cache'.
13360 * frame.h (FRAME_IMAGE_CACHE): New macro. Use it everywhere in place
13361 of FRAME_X_IMAGE_CACHE.
13362 * xterm.h (struct x_display_info): Remove image_cache field.
13363 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13364 * w32term.h (struct w32_display_info): Remove image_cache field.
13365 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13366 * macterm.h (struct mac_display_info): Remove image_cache field.
13367 (FRAME_X_IMAGE_CACHE): Remove. Use FRAME_IMAGE_CACHE instead.
13368 * xterm.c (x_term_init):
13369 * w32term.c (w32_term_init):
13370 * macterm.c (mac_term_init): Set the image_cache in the terminal.
13371 * dispextern.h (clear_image_cache, forall_images_in_image_cache):
13372 Remove declarations.
13373 (clear_image_caches, mark_image_cache): New declarations.
13374 * xfaces.c (clear_face_cache):
13375 * xdisp.c (redisplay_internal): Use clear_image_caches.
13376 * image.c (clear_image_cache): Don't check that a frame is on
13377 a window-system before checking if it shares the same cache.
13378 (clear_image_caches): New function.
13379 (Fclear_image_cache): Use it.
13380 (mark_image): Move from allo.c.
13381 (mark_image_cache): Move from alloc.c and forall_images_in_image_cache.
13382 * alloc.c (mark_image, mark_image_cache): Move to image.c.
13383 (mark_object): Don't call mark_image_cache for frames.
13384 (mark_terminals): Call mark_image_cache.
13385
13386 * lisp.h (Fdelete_terminal): Declare.
13387
13388 * charset.h (CHECK_CHARSET, CHECK_CHARSET_GET_ID)
13389 (CHECK_CHARSET_GET_ATTR): Don't use the inexistent return value of
13390 wrong_type_argument.
13391
133922008-02-22 Kenichi Handa <handa@ni.aist.go.jp>
13393
13394 * Makefile.in (lisp): Remove devanagari.el, kannada.el,
13395 malayalam.el, and tamil.el. Add sinhala.el.
13396
133972008-02-21 Stefan Monnier <monnier@iro.umontreal.ca>
13398
13399 * xterm.c (x_connection_closed): Consolidate identical tests.
13400 (x_delete_terminal): Don't crash if called via x_connection_closed.
13401
134022008-02-21 Kenichi Handa <handa@ni.aist.go.jp>
13403
13404 * xdisp.c (decode_mode_spec): New arg string.
13405 (display_mode_element): Adjust for the above change.
13406
134072008-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
13408
13409 * callint.c (Fcall_interactively): Use AREF.
13410
134112008-02-18 Stefan Monnier <monnier@iro.umontreal.ca>
13412
13413 * font.c (font_unparse_xlfd): Don't ignore integer pixel size specs.
13414
134152008-02-18 Jan Djärv <jan.h.d@swipnet.se>
13416
13417 * xfns.c (Fx_show_tip): Set string to " " if empty.
13418
134192008-02-17 Dan Nicolaescu <dann@ics.uci.edu>
13420
13421 * callint.c (syms_of_callint): Initialize Vmark_even_if_inactive
13422 with Qt.
13423
134242008-02-17 Kenichi Handa <handa@m17n.org>
13425
13426 * ftfont.c (ftfont_shape): Return Lispy number.
13427
13428 * xfaces.c (prepare_face_for_display): Use display_info->font->fid
13429 for GCs.
13430 (Finternal_set_font_selection_order): Call font_update_sort_order
13431 only when enable_font_backend is set.
13432 (realize_x_face): Set face->font_info to that of default face only
13433 when enable_font_backend is set.
13434
13435 * xdisp.c (handle_composition_prop): Set it->c to the fist
13436 character of the composed region.
13437 (fill_composite_glyph_string): Set base_face->font_info to
13438 s->font_info. Get a face for ascii from base_face->ascii_face.
13439 (BUILD_COMPOSITE_GLYPH_STRING): Call fill_composite_glyph_string
13440 with a face already decided.
13441 (x_produce_glyphs): Be sure to set it->ascent and it->descent to
13442 non-negative.
13443 (x_produce_glyphs): If the composition method is ..._WITH_GLYPH_STRING,
13444 call font_prepare_composition unconditionally.
13445
13446 * xfns.c (x_make_gc): Use the default font id of the frame for GCs.
13447
13448 * xterm.h (struct x_display_info): New member font.
13449
13450 * xterm.c (x_set_cursor_gc): Use display_info->font->fid for GCs.
13451 (x_set_mouse_face_gc, x_new_font): Likewise.
13452 (x_term_init): Setup display_info->font.
13453 (x_delete_terminal): Free display_info->font.
13454
13455 * xfont.c (xfont_draw): Use BLOCK_INPUT and UNBLOCK_INPUT.
13456
13457 * ftxfont.c (ftxfont_default_fid): Delete it.
13458 (ftxfont_open): Set xfont->fid to 0.
13459 (ftxfont_end_for_frame): Clear data specific to the frame and the
13460 font-driver.
13461
13462 * xftfont.c (xftfont_default_fid): Delete it.
13463 (xftfont_open): Set xfont->fid to 0.
13464
13465 * fontset.c (FONTSET_OBJLIST): New macro.
13466 (fontset_find_font): Update font-object list of the fontset.
13467 (free_realized_fontset): New function.
13468 (free_face_fontset): Call free_realized_fontset.
13469 (Ffont_info): Call font_close_object only when enable_font_backend
13470 is set.
13471
13472 * font.c [HAVE_X_WINDOWS]: Include xterm.h.
13473 [HAVE_NTGUI]: Include w32term.h.
13474 [MAC_OS]: Include macterm.ch.
13475 (font_otf_ValueRecord): Use make_number.
13476 (font_finish_cache): Fix handling of reference count.
13477 (font_clear_cache): Update num_fonts.
13478 (font_open_entity): Update smallest_char_width and
13479 smallest_font_height of the frame.
13480 (font_close_object): Update num_fonts.
13481 (Fclear_font_cache): Fix finding the target cache data.
13482
134832008-02-16 Glenn Morris <rgm@gnu.org>
13484
13485 * fontset.c (Finternal_char_font): Fix compilation warning.
13486
134872008-02-16 Eli Zaretskii <eliz@gnu.org>
13488
13489 * w32.c (init_user_info): Use TOKEN_USER and TOKEN_PRIMARY_GROUP
13490 instead of char arrays. Enlarge the size of array passed to
13491 get_token_information.
13492
13493 * font.c (Ffont_fill_gstring, Fget_font_glyphs): Fix compilation
13494 warnings.
13495
134962008-02-15 Dan Nicolaescu <dann@ics.uci.edu>
13497
13498 * .gdbinit: Don't set `args', it breaks gdb --args.
13499
135002008-02-14 Stefan Monnier <monnier@iro.umontreal.ca>
13501
13502 * fileio.c (Finsert_file_contents): Adjust offsets when replacing
13503 within a narrowed buffer.
13504
135052008-02-14 Kenichi Handa <handa@ni.aist.go.jp>
13506
13507 * coding.c (decode_coding_object, encode_coding_object):
13508 Preserve Vdeactivate_mark. Delete unnecessary call of Fcurrent_buffer.
13509
135102008-02-12 Stefan Monnier <monnier@iro.umontreal.ca>
13511
13512 * coding.c (coding_set_destination): Use BEG_BYTE rather than
13513 hardcoding 1.
13514 (detect_coding_system):
13515 * lisp.h (detect_coding_system, chars_in_text, multibyte_chars_in_text)
13516 (string_char_to_byte, string_byte_to_char, insert_from_gap):
13517 * insdel.c (insert_from_gap):
13518 * fns.c (string_char_byte_cache_charpos, string_char_byte_cache_bytepos)
13519 (string_char_to_byte, string_byte_to_char, string_make_multibyte)
13520 (string_to_multibyte):
13521 * character.c (chars_in_text, multibyte_chars_in_text):
13522 * fileio.c (Finsert_file_contents): Use EMACS_INT for buffer positions.
13523
13524 * character.h (FETCH_STRING_CHAR_ADVANCE)
13525 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE)
13526 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Use SDATA and SREF.
13527 (DEC_POS, BUF_DEC_POS): Use BEG_BYTE rather than hardcoding 1.
13528
13529 * casefiddle.c (casify_region): Only call after-change and composition
13530 functions on the part of the region that was changed.
13531
13532 * keyboard.c (read_avail_input):
13533 * frame.c (Fdelete_frame): Call Fdelete_terminal.
13534
135352008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13536
13537 * buffer.c (clone_per_buffer_values, reset_buffer_local_variables)
13538 (Fbuffer_local_value, Fbuffer_local_variables): Don't forget undo_list.
13539
135402008-02-11 Juanma Barranquero <lekktu@gmail.com>
13541
13542 * w32menu.c (push_submenu_start, push_submenu_end)
13543 (push_left_right_boundary, push_menu_pane, push_menu_item):
13544 * keyboard.c (read_key_sequence): Don't pass args with side effects
13545 to AREF, it fails when compiling with -DENABLE_CHECKING.
13546
135472008-02-11 Kenichi Handa <handa@ni.aist.go.jp>
13548
13549 * Makefile.in (${lispsource}international/charprop.el):
13550 Delete this target.
13551
13552 * search.c (boyer_moore): Fix incorrect synching of the trunk and
13553 emacs-unicode-2.
13554
135552008-02-11 Stefan Monnier <monnier@iro.umontreal.ca>
13556
13557 * terminal.c (Fdelete_terminal): Clean up the `force' path.
13558
135592008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13560
13561 * frame.c (Qnoelisp): New symbol.
13562 (syms_of_frame): Initialize it.
13563 (Fdelete_frame): Use it to distinguish a mere `force' passed from some
13564 harmless Elisp code, from a strong `force' from x_connection_closed.
13565 * frame.h (Qnoelisp): Declare.
13566 * xterm.c (x_connection_closed): Pass `noelisp'.
13567
13568 * lisp.h (struct Lisp_Misc_Any, struct Lisp_Marker)
13569 (struct Lisp_Overlay, struct Lisp_Kboard_Objfwd)
13570 (struct Lisp_Save_Value, struct Lisp_Free): Use enum Lisp_Misc_Type
13571 rather than `int' for the type of `type'.
13572
135732008-02-10 Dan Nicolaescu <dann@ics.uci.edu>
13574
13575 * s/gnu-linux.h: Remove support for non-ELF and linux-1.x.
13576
13577 * Makefile.in (GNUC): Remove support for gcc-1.x.
13578
135792008-02-10 Richard Stallman <rms@gnu.org>
13580
13581 * lisp.h (ASET): Use AREF, not ASLOT.
13582
135832008-02-10 Stefan Monnier <monnier@iro.umontreal.ca>
13584
13585 * lisp.h (ASET): Check bounds.
13586
135872008-02-10 Glenn Morris <rgm@gnu.org>
13588
13589 * buffer.c (mode-name): Doc fix.
13590
135912008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13592
13593 * Makefile.in:
13594 * emacs.c:
13595 * gmalloc.c:
13596 * keyboard.c:
13597 * lisp.h:
13598 * m/ibm370aix.h:
13599 * process.c:
13600 * regex.c:
13601 * s/hpux.h:
13602 * sysdep.c:
13603 * sysselect.h:
13604 * systty.h:
13605 * unexec.c:
13606 * w32term.c:
13607 * xsmfns.c:
13608 * xterm.c: Remove code that deals with obsolete variables.
13609
13610 * s/msdos.h (DONT_NEED_ENVIRON): Don't define.
13611
13612 * ecrt0.c: Replace the DONT_NEED_ENVIRON test with MSDOS test,
13613 nothing else needs it anymore.
13614
136152008-02-09 Eli Zaretskii <eliz@gnu.org>
13616
13617 * buffer.h (FETCH_CHAR_AS_MULTIBYTE): Use unibyte_to_multibyte_table
13618 instead of unibyte_char_to_multibyte.
13619
136202008-02-09 Dan Nicolaescu <dann@ics.uci.edu>
13621
13622 * s/gnu-linux.h: Remove commented out code.
13623
13624 * unexec.c: Remove references to obsolete variable COFF_ENCAPSULATE.
13625
13626 * Makefile.in: Update what RMS says about using autoconf.
13627 (C_COMPILER, COFF_ENCAPSULATE, MAKE_PARALLEL): Remove obsolete variable.
13628 (C_SWITCH_MACHINE_1, C_SWITCH_SYSTEM_1, C_SWITCH_SITE_1)
13629 (C_SWITCH_X_SITE_1, C_SWITCH_X_MACHINE_1)
13630 (C_SWITCH_X_SYSTEM_1): Move invariant code outside conditional.
13631
136322008-02-08 Stefan Monnier <monnier@iro.umontreal.ca>
13633
13634 * keymap.c (Fkey_description): Move side effect outside of macro call.
13635
13636 * xfaces.c (Finternal_make_lisp_face):
13637 * keyboard.c (add_command_key, parse_menu_item): Use ASET.
13638
13639 * fontset.c (free_face_fontset): Use FONTSET_FROM_ID.
13640 (syms_of_fontset): Use ASET.
13641
13642 * fns.c (concat): Move side effect outside of macro call.
13643 (hash_clear): Use ASET.
13644
136452008-02-08 Richard Stallman <rms@gnu.org>
13646
13647 * frame.c (Fdelete_frame): If FORCE, don't call hooks.
13648 If FORCE, and frame has a surrogate minibuffer for another frame,
13649 delete the other frame first.
13650
136512008-02-07 Timo Savola <timo.savola@iki.fi>
13652
13653 * xterm.c (x_detect_focus_change): Handle embed client message.
13654 (handle_one_xevent): Ditto.
13655 (handle_one_xevent): If embedded and we get a button press/release,
13656 request focus.
13657 (xembed_set_info, xembed_send_message): New functions.
13658 (x_make_frame_visible): Call xembed_set_info if embedded.
13659 (x_make_frame_invisible): Call xembed_set_info if embedded.
13660 (x_term_init): Initialize Xatom_XEMBED.
13661 (x_make_frame_visible): Check for FRAME_X_EMBEDDED_P also.
13662 (x_iconify_frame): Ditto.
13663
13664 * xterm.h (struct x_display_info): Add AtomXatom_XEMBED.
13665 (enum xembed_info, enum xembed_message, enum xembed_focus)
13666 (enum xembed_modifier, enum xembed_accelerator): New.
13667 (xembed_set_info, xembed_send_message): Declare.
13668 (FRAME_X_EMBEDDED_P): New.
13669
13670 * gtkutil.c (xg_create_frame_widgets): If frame is embedded, call
13671 gtk_plug_new.
13672
13673 * xfns.c (Fx_create_frame): Do not override the explicitly set parent
13674 window ID of a frame.
13675 (x_window): Reparent frame if embedded.
13676 (Fx_create_frame): Don't set border width if embedded.
13677
13678 * emacs.c (USAGE3): Add --parent-id.
13679 (standard_args): Ditto.
13680
136812008-02-07 Jan Djärv <jan.h.d@swipnet.se>
13682
13683 * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
13684
136852008-02-07 Jim Meyering <meyering@redhat.com>
13686
13687 Use "do...while (0)", not "if (1)...else" in macro definitions.
13688 The latter provokes a warning from gcc about the empty else, when
13689 followed by ";". Also, without that trailing semicolon, it would
13690 silently swallow up any following statement.
13691 * syntax.h (SETUP_SYNTAX_TABLE)
13692 (SETUP_SYNTAX_TABLE_FOR_OBJECT): Likewise.
13693 * buffer.h (DECODE_POSITION): Likewise.
13694 * character.h (FETCH_STRING_CHAR_ADVANCE): Likewise.
13695 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): Likewise.
13696 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): Likewise.
13697 (FETCH_CHAR_ADVANCE): Likewise.
13698 (FETCH_CHAR_ADVANCE_NO_CHECK): Likewise.
13699
137002008-02-07 Jim Meyering <meyering@redhat.com>
13701
13702 * lread.c [lint]: Don't include <sys/inode.h>.
13703
137042008-02-07 Stefan Monnier <monnier@iro.umontreal.ca>
13705
13706 * xselect.c (x_handle_dnd_message):
13707 * xmenu.c (digest_single_submenu, xmenu_show):
13708 * xdisp.c (with_echo_area_buffer_unwind_data)
13709 (format_mode_line_unwind_data, unwind_format_mode_line)
13710 (display_menu_bar):
13711 * eval.c (Ffetch_bytecode):
13712 * doc.c (store_function_docstring):
13713 * ccl.c (resolve_symbol_ccl_program, ccl_get_compiled_code)
13714 (Fccl_execute, Fccl_execute_on_string, Fregister_code_conversion_map):
13715 * buffer.c (add_overlay_mod_hooklist): Use ASET.
13716
137172008-02-07 Kenichi Handa <handa@m17n.org>
13718
13719 * ftxfont.c (ftxfont_open): Don't set
13720 dpyinfo->smallest_font_height and dpyinfo->smallest_char_width to 0.
13721
13722 * ftfont.c (ftfont_open): Fix previous change.
13723
137242008-02-06 Jason Rumney <jasonr@gnu.org>
13725
13726 * w32font.c (w32font_text_extents): Fill in lbearing metric.
13727 Use cached metrics for ASCII characters.
13728 (w32font_open_internal): Don't set font's owning_frame.
13729 Cache metrics for ASCII characters.
13730
13731 * w32font.h (struct w32font_info): Add ascii_metrics.
13732 Remove owning_frame.
13733
137342008-02-06 Kenichi Handa <handa@ni.aist.go.jp>
13735
13736 * xdisp.c (x_produce_glyphs): Don't set it->ascent and it->descent
13737 to negative value.
13738
13739 * ftxfont.c (ftxfont_draw): Use s->font_info, not face->font_info.
13740
13741 * ftfont.c (ftfont_open): Fix calculation of font->font.average_width.
13742
13743 * charset.c (syms_of_charset): Set QCtest and Qeq.
13744
137452008-02-06 Stefan Monnier <monnier@iro.umontreal.ca>
13746
13747 * process.c (Fstart_process):
13748 * callproc.c (Fcall_process): Handle the case where
13749 Funhandled_file_name_directory returns nil.
13750
13751 * font.h (enum lgstring_indices, enum lglyph_indices): New enums.
13752 (LGSTRING_SLOT, LGSTRING_SET_SLOT): New macros.
13753 * font.c (check_gstring): Use them and AREF to access the vector before
13754 we know it's really a gstring.
13755 (Ffont_shape_text): Fix typo.
46e722a9 13756 (Ffont_shape_text, Ffont_otf_alternates): Fix up int/Lisp_Object mixups.
aac0c6e3
MR
13757
13758 * composite.h (Fcompose_region_internal, Fcompose_string_internal):
13759 Declare.
13760
13761 * chartab.c (make_sub_char_table): Remove noop-yet-incorrect statement.
13762
137632008-02-05 Jason Rumney <jasonr@gnu.org>
13764
13765 * w32font.c (w32font_open_internal): Fill min_width with tmAveCharWidth.
13766 Set smallest_font_height and smallest_char_width in display info.
13767
137682008-02-05 Kenichi Handa <handa@ni.aist.go.jp>
13769
13770 * coding.c (decode_eol): Pay attention to coding->dst_multibyte.
13771
137722008-02-05 Miles Bader <miles@gnu.org>
13773
13774 * xfaces.c (get_lface_attributes, merge_named_face)
13775 (lookup_named_face, lookup_derived_face, realize_named_face):
13776 Revert 2008-02-01 change by cyd@stupidchicken.com.
13777
137782008-02-04 Kenichi Handa <handa@ni.aist.go.jp>
13779
13780 * fontset.c (Ffontset_info): Handle the case of inhibitting the
13781 fallback fonts.
13782 (Ffontset_info) [USE_FONT_BACKEND]: Fix getting of opened font names.
13783
137842008-02-04 Jason Rumney <jasonr@gnu.org>
13785
13786 * w32font.c (w32font_open_internal): Use font_unparse_fcname to
13787 set full_name.
13788 (w32font_open_internal): Use xmalloc, xrealloc, xfree.
13789
137902008-02-03 Jason Rumney <jasonr@gnu.org>
13791
13792 * makefile.w32-in (OBJ1): Include font.o here.
13793 (FONTOBJ) [USE_FONTBACKEND]: Instead of here.
13794
137952008-02-02 Jason Rumney <jasonr@gnu.org>
13796
13797 * makefile.w32-in (temacs): Bump EMHEAP to 21.
13798
137992008-02-01 Jason Rumney <jasonr@gnu.org>
13800
13801 * s/cygwin.h: Define VIRT_ADDR_VARIES.
13802
13803 * puresize.h [VIRT_ADDR_VARIES]: Don't include CYGWIN in condition.
13804
138052008-02-01 Andreas Schwab <schwab@suse.de>
13806
13807 * Makefile.in (shortlisp, lisp): Update for rename of
13808 ../lisp/language/myanmar.el.
13809
138102008-02-01 Chong Yidong <cyd@stupidchicken.com>
13811
13812 * xfaces.c (get_lface_attributes): Delete function.
13813 (merge_named_face, lookup_named_face, lookup_derived_face)
13814 (realize_named_face): Call lface_from_face_name directly, and use
13815 the fact that merge_face_vectors does not alter its FROM argument.
13816
138172008-02-01 Jason Rumney <jasonr@gnu.org>
13818
13819 * w32term.c (w32_read_socket) <WM_CHAR>: Decode non-Unicode
13820 input in the default locale. Handle non-Unicode multibyte input.
13821
138222008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13823
13824 * fontset.c (reorder_font_vector): Exclude nil elements from the
13825 font group. Don't try multiple fonts.
13826 (fontset_font): Adjust for the above change.
13827 (Finternal_char_font): Return nil if the found font doesn't
13828 contain the character ch.
13829
13830 * Makefile.in (lisp, shortlisp): Add cham.el.
13831
138322008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13833
13834 * font.h (FONTP): Make it return 1 also for a font-object.
13835
13836 * .gdbinit (xfontset): New function.
13837
13838 * font.c (font_find_for_lface): Check if the character C is
13839 supported or not only for the first font.
13840
13841 * fontset.c (reorder_font_vector): Fix typo.
13842 (fontset_find_font): Don't add a font-spec specifying a script.
13843 Use 0 (not Qt) for the indication of empty font-group. Change the
13844 format of RFONT-DEF. Return Qt if no font in the font-group
13845 support the character.
13846 (fontset_font): Adjust for the above change. If no font was
13847 found the character, remember that.
13848 (face_for_char): Adjust for the change of RFONT-DEF.
13849 (Fset_fontset_font): Allow nil for FONT-SPEC to explicitly specify
13850 no font for the target.
13851 (Finternal_char_font): Adjust for the change of RFONT-DEF.
13852
138532008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13854
13855 * font.c (font_load_for_face): Handle the case that the font in
13856 face->lface is a string.
13857
138582008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13859
13860 * xfaces.c (set_lface_from_font_and_fontset): Set the fontname in lface.
13861
138622008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13863
13864 * xfaces.c (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]:
13865 Fix previous change. If the frame is not on a window system,
13866 signal an error.
13867
138682008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13869
13870 * coding.c (decode_coding_object, encode_coding_object): Adjust
13871 marker positions after conversion.
13872
13873 * lisp.h (struct Lisp_Marker): New member need_adjustment.
13874
138752008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13876
13877 * font.c (font_find_for_lface): Fix the handling of the return
13878 value of font_has_char.
13879 (Ffont_shape_text): Fix previous change.
13880
13881 * fontset.c (FONTSET_REF_AND_RANGE): Delete it.
13882 (fontset_ref_and_range): Delete it.
13883 (fontset_find_font): Call char_table_ref_and_range instead of
13884 FONTSET_REF_AND_RANGE.
13885 (make_fontset): Don't setup font groups of Latin here.
13886 (Fset_fontset_font): Don't overwrite the setting of FONTSET_ASCII.
13887 (new_fontset_from_font): Make the specified font the default for
13888 all Latin characters.
13889
138902008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13891
13892 * xfaces.c (Finternal_set_lisp_face_attribute): Check if the frame
13893 is on a window system before accessing the fontset of the frame.
13894
138952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13896
13897 * Makefile.in (lisp, shortlisp): Add kherm.el and myanmar.el.
13898
13899 * ftfont.c (ftfont_driver): Set ftfont_shape in ftfont_driver only
13900 when both HAVE_M17N_FLT and HAVE_LIBOTF are defined.
13901
13902 * font.c (Ffont_shape_text): If the font driver doesn't have a
13903 shaper function, make zero-width glyphs to have at least one-pixel
13904 width. Fix setting of `to' field of glyphs.
13905
139062008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13907
13908 * ftfont.c (ftfont_drive_otf): Fix setting of FROM and TO slots of
13909 glyphs.
13910
13911 * font.h (struct font_driver): Improve docstring of member `shape'.
13912
139132008-02-01 Kenichi Handa <handa@m17n.org>
13914
13915 * composite.c (syms_of_composite): Fix docstring of
13916 auto-composition-function.
13917
13918 * font.h (LGLYPH_SIZE): New macro.
13919
13920 * font.c (Ffont_fill_gstring): Stop filling when a character not
13921 supported by the font is found.
13922 (Ffont_shape_text): When a shape callback function returns nil,
13923 try at most two more times with larger gstring.
13924 (Ffont_at): Fix getting of w. Call font_at with correct 5th argument.
13925
13926 * xdisp.c (handle_auto_composed_prop): Change the argument to
13927 auto-composition-function.
13928
13929 * ftfont.c (ftfont_encode_char): Use the macro FONT_INVALID_CODE.
13930 (ftfont_shape_by_flt): If an element of lgstring is nil, make a
13931 Lispy glyph and store it in the lgstring.
13932
13933 * xfont.c (xfont_encode_char): Use the macro FONT_INVALID_CODE.
13934
13935 * xftfont.c (xftfont_encode_char): Use the macro FONT_INVALID_CODE.
13936
139372008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13938
13939 * font.c (Ffont_shape_text): Avoid unnecessary composition.
13940
13941 * fontset.c (Vfont_encoding_charset_alist): New variable.
13942 (syms_of_fontset): DEFVAR it.
13943 (reorder_font_vector, fontset_find_font): Optimize for the case of
13944 no need of reordering.
13945 (face_for_char): Map the charset property by
13946 Vfont_encoding_charset_alist.
13947
139482008-02-01 Jason Rumney <jasonr@gnu.org>
13949
13950 * w32font.c (logfonts_match): Don't check adstyle here.
13951 (font_matches_spec): Check here against physical font instead.
13952 (add_font_entity_to_list): Avoid some substitutions.
13953
13954 * font.c (font_parse_fcname): Default weight and slant to normal.
13955 (font_score): Prefer normal fonts if weight or slant unspecified.
13956 (font_score) [WINDOWSNT]: Scale weight difference down to closer
13957 match freetype scores.
13958
139592008-02-01 Jason Rumney <jasonr@gnu.org>
13960
13961 * w32font.c (w32font_text_extents): Don't use the frame stored in the
13962 font, as it may have been deleted.
13963 (w32_enumfont_pattern_entity): Map generic family to adstyle using
13964 most common hyphenless variation.
13965 (logfonts_match): Check generic family.
13966 (font_matches_spec): Don't check generic family here.
13967 (fill_in_logfont): Set generic family based on adstyle.
13968
13969 * w32font.h (w32font_get_cache): Update declaration.
13970
139712008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13972
13973 * ftfont.c (ftfont_get_cache): Adjust the argument type.
13974
13975 * frame.c (x_set_font_backend): Don't call Fclear_font_cache.
13976 If none of the new drivers are available, call font_update_drivers
13977 with the old drivers.
13978
13979 * w32font.c (w32font_get_cache): Adjust the argument type.
13980
13981 * xfont.c (xfont_get_cache): Adjust the argument type.
13982
13983 * font.h (struct font_driver): Change argument type of get_cache.
13984
13985 * xftfont.c (xftfont_start_for_frame): Delete prototype.
13986
13987 * font.c (Ffont_get): Fix arguments to Fassoc.
13988 (font_prepare_cache, font_finish_cache, font_get_cache): New functions.
13989 (font_clear_cache): New function.
13990 (font_list_entities, font_matching_entity): Use font_get_cache.
13991 (font_update_drivers): Call font_clear_cache when finishing a driver.
13992
13993 * fontset.c (fontset_find_font): Fix previous change.
13994
139952008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
13996
13997 * xterm.c (x_check_font) [USE_FONT_BACKEND]: Don't access
13998 dpyinfo->font_table.
13999 (x_delete_display) [USE_FONT_BACKEND]: Likewise.
14000 (x_delete_terminal) [USE_FONT_BACKEND]: Likewise.
14001
14002 * font.c (font_at): Handle the case that the arg C is negative.
14003 Handle the unibyte case.
14004 (Ffont_at): Call font_at with the arg C -1.
14005
14006 * xdisp.c (handle_auto_composed_prop): Don't get a character at
14007 the position here, and call font_at with the arg C -1.
14008 Don't check the range of the existing composition at the point.
14009
140102008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14011
14012 * fontset.c (fontset_add): New args charset_id and family.
14013 Change caller.
14014 (load_font_get_repertory, fontset_find_font): Assume that
14015 font_spec is always a font-spec object.
14016 (Fset_fontset_font): Always store a font-spec object in a fontset.
14017
14018 * xdisp.c (handle_auto_composed_prop): Use Fget_text_property
14019 instead of get_property_and_range.
14020
140212008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14022
14023 * xftfont.c (struct xftfont_info): Delete the member ft_face.
14024 (xftfont_open): Don't keep locking face.
14025 (xftfont_close): Don't unlock face.
14026 (xftfont_anchor_point, xftfont_shape): Lock and unlock face.
14027
14028 * fontset.c (fontset_find_font): Don't prefer a font of
14029 supplementary charset.
14030
140312008-02-01 Kenichi Handa <handa@m17n.org>
14032
14033 * ftfont.c (struct OpenTypeSpec): Rename members script_tag to
14034 script, langsys_tag to langsys, new member script.
14035 (OTF_TAG_STR): Terminate by '\0'.
867d4bb3 14036 (ftfont_get_open_type_spec): If :otf prop is spec, limit the
aac0c6e3
MR
14037 listing to the script specified in that property. Fix arg to
14038 OTF_check_features.
14039
140402008-02-01 Jason Rumney <jasonr@gnu.org>
14041
14042 * w32font.h: New file.
14043
14044 * w32font.c: Include it.
14045 (struct w32font_info): Add owning_frame field. Move to w32font.h.
14046 (w32font_open): Set owning_frame.
14047 (w32font_text_extents): Use owning_frame.
14048 (struct font_callback_data): Add opentype_only field.
14049 (add_font_entity_to_list): Use it to filter fonts.
14050 Don't check against full name.
14051 (w32font_list_internal): New function.
14052 (w32font_list): Use it.
14053 (w32font_match_internal): New function.
14054 (w32font_match): Use it.
14055 (w32font_open_internal): New function.
14056 (w32font_open): Use it.
14057 (w32font_get_cache, w32font_close, w32font_has_char)
14058 (w32font_encode_char, w32font_text_extents, w32font_draw):
14059 Make non-static.
14060
14061 * makefile.w32-in (w32font.o): Depend on w32font.h.
14062
140632008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14064
14065 * charset.c (Fdefine_charset_internal): Record a supplementary
14066 charset at the tail of Vcharset_order_list.
14067
14068 * font.c (Ffont_shape_text): Fix the return value.
14069
14070 * ftfont.c (OTF_SYM_TAG, OTF_TAG_STR): Fix argument names.
14071
14072 * xdisp.c (handle_auto_composed_prop): Fix previous change.
14073
140742008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14075
14076 * ftfont.c (struct OpenTypeSpec): New struct.
14077 (OTF_SYM_TAG, OTF_TAG_STR): New macros.
14078 (ftfont_get_open_type_spec): New function.
14079 (ftfont_list) [HAVE_LIBOTF]: Check otf-spec property.
14080
14081 * lread.c (read1): Redo the previous change with checking Vpurify_flag.
14082
140832008-02-01 Jason Rumney <jasonr@gnu.org>
14084
14085 * w32font.c (add_font_entity_to_list): Compare only the beginning
14086 of full name.
14087
140882008-02-01 Kenichi Handa <handa@m17n.org>
14089
14090 * xdisp.c (handle_auto_composed_prop): Simplify the code.
14091 Never return HANDLED_RECOMPUTE_PROPS.
14092
140932008-02-01 Kenichi Handa <handa@m17n.org>
14094
14095 * font.c (font_gstring_produce): Delete it.
14096
14097 * composite.h (COMPOSITION_METHOD):
14098 Handle COMPOSITION_WITH_GLYPH_STRING.
14099
141002008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14101
14102 * xfont.c (Qx): Delete.
14103 (syms_of_xfont): Don't initialize Qx.
14104
14105 * composite.h (enum composition_method):
14106 Define COMPOSITION_WITH_GLYPH_STRING unconditionally.
14107
141082008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14109
14110 * xfaces.c [HAVE_WINDOW_SYSTEM]: Include "font.h" unconditionally.
14111 (choose_face_font): Accept new form of font-spec.
14112
14113 * frame.h (font_driver_list): Declare it unconditionally.
14114 (struct frame): Define members font_driver_list and font_data_list
14115 unconditionally.
14116
14117 * fontset.c: Include "font.h" unconditionally.
14118 (generate_ascii_font_name): Use font_parse_xlfd and font_unparse_xlfd.
14119 (Fset_fontset_font): Accept a font-spec object.
14120
14121 * font.c (font_unparse_xlfd): If pixel_size is zero, make the
14122 PIXEL_SIZE part a wild card.
14123
14124 * dispextern.h (struct glyph_string): Define members clip and
14125 num_clips unconditionally.
14126 (struct face): Define members font_info and extra unconditionally.
14127
14128 * ftfont.c (ftfont_open): Set members maybe_otf and otf of
14129 ftfont_info only when HAVE_LIBOTF is defined.
14130
141312008-02-01 Andreas Schwab <schwab@suse.de>
14132
14133 * xdisp.c (back_to_previous_visible_line_start): Fix type of beg
14134 and end.
14135
141362008-02-01 Jason Rumney <jasonr@gnu.org>
14137
14138 * w32font.c (w32font_driver): Add new fields.
14139
141402008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14141
14142 * Makefile.in (ALL_CFLAGS): Add @M17N_FLT_CFLAGS@.
14143 (FONTSRC, FONTOBJ) [HAVE_WINDOW_SYSTEM]: Set them unconditionally.
14144 (LIBES): Add @M17N_FLT_CFLAGS@.
14145
14146 * composite.c (compose_text): Don't treat the new style
14147 composition specially.
14148
14149 * emacs.c (main): Call syms_of_font unconditionally.
14150
14151 * font.h (FONT_ENTITY_NOT_LOADABLE)
14152 (FONT_ENTITY_SET_NOT_LOADABLE): New macros.
14153 (LGSTRING_XXXX, LGLYPH_XXX): Adjust for the change of lispy gstring.
14154 (struct font_driver): New member shape.
14155 (font_registry_charsets): Extern it.
14156 (font_find_for_lface, font_prepare_composition): Adjust prototype.
14157 (font_otf_capability, font_drive_otf): Delete their externs.
14158
14159 * font.c [HAVE_M17N_FLT]: Include <m17n-flt.h>.
14160 (font_charset_alist, font_registry_charsets): Move from xfont.c
14161 and rename.
14162 (font_prop_validate_otf): New function.
14163 (font_property_table): Register it for QCotf.
14164 (DEVICE_DELTA, adjust_anchor, REPLACEMENT_CHARACTER)
14165 (font_drive_otf): Delete.
14166 (font_prepare_composition): New arg F. Adjust for the change of
14167 lispy gstring.
14168 (font_find_for_lface): New arg C.
14169 (font_load_for_face): Adjust for the change of font_find_for_lface.
14170 (Ffont_make_gstring, Ffont_fill_gstring): Adjust for the change of
14171 lispy gstring.
14172 (Ffont_shape_text): New function.
14173 (Fopen_font): If the font size is not given, use 12-pixel.
14174 (Ffont_at): New arg STRING.
c0943d3d 14175 (syms_of_font): Initialize font_charset_alist.
aac0c6e3
MR
14176 Declare Ffont_shape_text as a Lisp function. Call syms_of_XXfont
14177 conditionally.
14178
14179 * fontset.c (fontset_find_font) [USE_FONT_BACKEND]: Try multiple
14180 fonts of the same font-spec. Change the format of RFONT-DEF.
14181 (face_for_char, make_fontset_for_ascii_face, Finternal_char_font):
14182 Adjust for the change of RFONT-DEF.
14183 (Fset_fontset_font) [USE_FONT_BACKEND]: Handle new format of font-spec.
14184
14185 * ftfont.h: New file.
14186
14187 * ftfont.c: Don't include Freetype headers. Include "ftfont.h".
14188 (struct ftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14189 (ftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14190 (ftfont_driver) [HAVE_LIBOTF, HAVE_M17N_FLT]: Don't set
14191 font_otf_capability and font_drive_otf, set ftfont_shape.
14192 (ftfont_list): Adjust for the change of :otf property value.
14193 (struct MFLTFontFT) [HAVE_LIBOTF, HAVE_M17N_FLT]: New struct.
14194 (ftfont_get_glyph_id, ftfont_get_metrics, ftfont_check_otf)
14195 (adjust_anchor, ftfont_drive_otf, ftfont_shape_by_flt)
14196 (ftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14197 (DEVICE_DELTA) [HAVE_LIBOTF, HAVE_M17N_FLT]: New macro.
14198 (otf_gstring, gstring, m17n_flt_initialized): New variables.
14199
14200 * w32term.c (x_draw_composite_glyph_string_foreground):
14201 Adjust for the change of lispy gstring.
14202
14203 * xdisp.c (handle_composition_prop): Adjust for the change of
14204 lispy gstring. Call a function for auto-composition with the
14205 third arg it->window.
14206 (fill_composite_glyph_string): Adjust for the change of lispy string.
14207 (x_produce_glyphs): Adjust for the change of font_prepare_compositionl.
14208
14209 * xfaces.c (set_font_frame_param): Adjust for the change of
14210 font_find_for_lface.
14211
14212 * xfont.c (x_font_charset_alist): Move to font.c and rename.
14213 (xfont_registry_charsets): Likewise. Change caller.
14214 (syms_of_xfont): Don't handle x_font_charset_alist.
14215
14216 * xftfont.c: Include "ftfont.h".
14217 (struct xftfont_info) [HAVE_LIBOTF]: New members maybe_otf and otf.
14218 (xftfont_open) [HAVE_LIBOTF]: Initialize the above members.
14219 (xftfont_close) [HAVE_LIBOTF]: Close otf.
14220 (xftfont_shape) [HAVE_LIBOTF, HAVE_M17N_FLT]: New function.
14221 (syms_of_xftfont) [HAVE_LIBOTF, HAVE_M17N_FLT]:
14222 Set xftfont_driver.shape to xftfont_shape.
14223
14224 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
14225 the change of lispy gstring.
14226
142272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14228
14229 * ftxfont.c (ftxfont_end_for_frame): Fix array indexing error.
14230
142312008-02-01 Jason Rumney <jasonr@gnu.org>
14232
14233 * w32font.c (w32font_draw): Fill background manually.
14234
142352008-02-01 Jason Rumney <jasonr@gnu.org>
14236
14237 * font.c (Qfontp): Remove unused symbol.
14238 (QCantialias): New symbol.
14239 (syms_of_font): Define it.
14240 (font_property_table): Set a validator for QCantialias.
14241
14242 * w32font.c (CLEARTYPE_QUALITY, CLEARTYPE_NATURAL_QUALITY):
14243 Define if not already.
14244 (QCfamily): Share with xfaces.c.
14245 (Qstandard, Qsubpixel, Qnatural): New symbols.
14246 (syms_of_w32font): Define them. Don't define QCfamily here.
14247 (w32_antialias_type, lispy_antialias_type): New functions.
14248 (w32_enumfont_pattern_entity): New arg requested_font.
14249 Set antialias parameter if non-default was requested.
14250 (fill_in_logfont): Fill in lfQuality if :antialias specified.
14251
142522008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14253
14254 * lread.c (read1): Undo the previous change.
14255
142562008-02-01 CHENG Gao <chenggao@gmail.com> (tiny change)
14257
14258 * frame.c (Fdelete_frame): Call font_update_drivers only when
14259 USE_FONT_BACKEND is defined.
14260
142612008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14262
14263 * font.h (struct font_bitmap): New member bits_per_pixel.
14264 (struct font_driver): New members start_for_frame and end_for_frame.
14265 (struct font_data_list): New struct.
14266 (font_put_frame_data, font_get_frame_data): Extern them.
14267
14268 * frame.h (struct frame): New member font_data_list.
14269
14270 * font.c (font_update_drivers): Call driver->start_for_frame and
14271 driver->end_for_frame at proper timings.
14272 (font_put_frame_data, font_get_frame_data): New functions.
14273 (Ffont_spec): Add usage in the docstring.
14274
14275 * frame.c (make_frame): Initialize f->font_data_list to NULL.
14276 (Fdelete_frame): Call font_update_drivers.
14277
14278 * xftfont.c (struct xftface_info): Delete the member xft_draw.
14279 (xftfont_prepare_face, xftfont_done_face): Adjust for the above change.
14280 (xftfont_get_xft_draw): New function.
14281 (xftfont_draw): Get XftDraw by xftfont_get_xft_draw.
14282 (xftfont_end_for_frame): New function.
14283 (syms_of_xftfont): Set xftfont_driver.end_for_frame.
14284
14285 * ftxfont.c (ftxfont_get_gcs): Rename from ftxfont_create_gcs.
14286 Change argument. Cache GCs in the per-frame data.
14287 (struct ftxfont_frame_data): New struct.
14288 (ftxfont_draw_bitmap): New arg gc_fore and flush.
14289 (ftxfont_prepare_face, ftxfont_done_face): Delete them.
14290 (ftxfont_draw): Get GCs by ftxfont_get_gcs. Reflect s->clip in GCs.
14291 (ftxfont_end_for_frame): New function.
14292 (syms_of_ftxfont): Set ftxfont_driver.end_for_frame.
14293
14294 * ftfont.c (ftfont_get_bitmap): Set bitmap->bits_per_pixel.
14295
142962008-02-01 Kenichi Handa <handa@m17n.org>
14297
14298 * xselect.c (Vselection_coding_system)
14299 (Vnext_selection_coding_system): Delete them.
14300 (syms_of_xselect): Don't declare selection-coding-system and
14301 next-selection-coding-system. They are declared in select.el.
14302
143032008-02-01 Jason Rumney <jasonr@gnu.org>
14304
14305 * w32term.h (WM_UNICHAR, UNICODE_NOCHAR): Define if not already.
14306
14307 * w32fns.c: Include imm.h.
14308 (get_composition_string_fn, get_ime_context_fn): New optional
14309 system functions.
14310 (globals_of_w32fns): Load them from imm32.dll.
14311 (ignore_ime_char): New flag.
14312 (w32_wnd_proc): Handle WM_UNICHAR, WM_IME_CHAR and
14313 WM_IME_ENDCOMPOSITION messages.
14314
14315 * w32term.c (w32_read_socket) [WM_UNICHAR]: Handle as
14316 MULTIBYTE_CHAR_KEYSTROKE_EVENT.
14317
143182008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14319
14320 * lread.c (READCHAR): Call readchar with the 2nd arg NULL.
14321 (READCHAR_REPORT_MULTIBYTE): New macro.
14322 (readchar): New 2nd arg MULTIBYTE.
14323 (read1): Use READCHAR_REPORT_MULTIBYTE for the first read.
14324 Make symbol's name multibyte according to the multibyteness of the
14325 source.
14326
143272008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14328
14329 * xfaces.c (face_for_overlay_string): Call lookup_face with
14330 correct arguments (fix of synching with the trunk).
14331
143322008-02-01 Kenichi Handa <handa@m17n.org>
14333
14334 * font.c (font_prop_validate_symbol, font_prop_validate_style)
14335 (font_prop_validate_non_neg, font_prop_validate_spacing):
14336 Delete argument prop_index.
14337 (font_property_table): Change arguments to validater. Change Callers.
14338 (font_lispy_object): Delete.
14339 (font_at): Use font_find_object instead fo font_lispy_object.
14340
143412008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
14342
14343 * fileio.c (Fexpand_file_name): Adjust multibyteness of directory
14344 and file names.
14345
143462008-02-01 Jason Rumney <jasonr@gnu.org>
14347
14348 * w32font.c (add_font_name_to_list): Avoid vertical fonts.
14349 (font_matches_spec): Remove debug output.
14350 (add_font_entity_to_list): Avoid using substituted fonts.
14351
143522008-02-01 Jason Rumney <jasonr@gnu.org>
14353
14354 * doc.c (Fsnarf_documentation):
14355 * Makefile.in (temacs${EXEEXT}, mostlyclean): Undo last change.
14356
143572008-02-01 Miles Bader <miles@gnu.org>
14358
14359 * dispextern.h (struct glyph_row): Only define "clip" field if
14360 HAVE_WINDOW_SYSTEM is defined.
14361
143622008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14363
14364 Fix up multi-tty merge.
14365
14366 * xterm.c (handle_one_xevent): Remove duplicate code and fix up nesting
14367 and indentation.
14368
14369 * xfaces.c (free_realized_face, clear_face_gcs):
14370 Include font_done_for_face in the input_blocked section, just in case.
14371
14372 * xdisp.c (decode_mode_spec): Use terminal-local coding systems.
14373 (get_char_face_and_encoding): Undo last change and remove the *other*
14374 duplicate definition (i.e. keep the one that's better scoped and that
14375 includes code for the font-backend).
14376
14377 * terminal.c (create_terminal): Default keyboard_coding to
14378 `no-conversion' and terminal_coding to `undecided'.
14379
14380 * lread.c (read1): Use XSETPVECTYPE to set a pseudovector's tag.
14381
14382 * fontset.c (free_realized_fontsets): Check that the table entry does
14383 contain a fontset before trying to compare it to `base'.
14384
14385 * emacs.c (main): Move syms_of_data, syms_of_fileio, syms_of_alloc,
14386 syms_of_charset, and syms_of_coding earlier because init_window_once
14387 now needs Vcoding_system_hash_table to be setup.
14388
14389 * coding.h (default_buffer_file_coding): Remove.
14390
14391 * coding.c (default_buffer_file_coding): Remove.
14392 (Fterminal_coding_system, Fkeyboard_coding_system): Use ->id rather
14393 than ->symbol, and use the terminal-local coding system.
14394 (syms_of_coding): Don't setup the coding-systems that are not
14395 terminal-local.
14396 (Fdefine_coding_system_internal): Use XCAR/XCDR.
14397
14398 * chartab.c (Fmake_char_table, make_sub_char_table, copy_char_table):
14399 Use XSETPVECTYPE now that XSETCHAR_TABLE doesn't set the tag anymore.
14400
14401 * alloc.c (Fmake_char_table, make_sub_char_table): Remove. They're now
14402 in chartab.c and were re-added here by mistake.
14403 (Fpurecopy): Use XSETPVECTYPE after copying a COMPILED pseudovector.
14404
14405 * doc.c (Fsnarf_documentation):
14406 * Makefile.in (temacs${EXEEXT}, mostlyclean): Move buildobj.lst from
14407 src to etc.
14408
14409 * ChangeLog.10: Add mistakenly removed entry.
14410
144112008-02-01 Dan Nicolaescu <dann@ics.uci.edu>
14412
14413 * Makefile.in (fringe.o, minibuf.o): Fix dependencies.
14414
144152008-02-01 Miles Bader <miles@gnu.org>
14416
14417 * xdisp.c (get_char_face_and_encoding): Remove extraneous definition.
14418 Add extra args to FACE_FOR_CHAR.
14419
144202008-02-01 Kenichi Handa <handa@m17n.org>
14421
14422 * keymap.c (where_is_internal_1): If key is a cons, store the copy
14423 in sequence.
14424
14425 * chartab.c (map_sub_char_table, map_char_table): If the range
14426 contains just one character, call the function with that character
14427 even if the depth is not 3.
14428
144292008-02-01 Jason Rumney <jasonr@gnu.org>
14430
14431 * w32font.c (w32font_text_extents): Calculate metrics for the
14432 whole string.
14433
144342008-02-01 Jason Rumney <jasonr@gnu.org>
14435
14436 * w32xfns.c (get_next_msg): Consolidate WM_PAINT messages.
14437
144382008-02-01 Jason Rumney <jasonr@gnu.org>
14439
14440 * w32term.c (x_set_glyph_string_clipping): Use
14441 get_glyph_string_clip_rects.
14442 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14443 Adjust for the change of struct glyph_string.
14444
14445 * w32font.c (w32font_draw): Do clipping here.
14446
144472008-02-01 Kenichi Handa <handa@m17n.org>
14448
14449 * xftfont.c (xftfont_draw): Adjust for the change of struct
14450 glyph_string.
14451
14452 * xterm.c (x_set_glyph_string_clipping): Use
14453 get_glyph_string_clip_rects.
14454 (x_set_glyph_string_clipping_exactly, x_draw_glyph_string):
14455 Adjust for the change of struct glyph_string.
14456
14457 * xdisp.c (get_glyph_string_clip_rects): Reflect s->row->clip to
14458 the resulting clip(s}.
14459 (expose_overlaps): Add arg r. Change callers. Set it to
14460 row->clip temporarily.
14461 (expose_window): Redraw rows overlapping the exposed area.
14462
14463 * dispextern.h (struct glyph_row): New member clip.
14464 (struct glyph_string): Delete members clip_x, clip_y, clip_width,
14465 clip_height, new member clip, and num_clips.
14466
144672008-02-01 Kenichi Handa <handa@m17n.org>
14468
14469 * data.c (Fchar_or_string_p): Fix docstring.
14470
144712008-02-01 Kenichi Handa <handa@m17n.org>
14472
14473 * xftfont.c (xftfont_draw): If s->font_info != s->face->font_info,
14474 create a temporary XftDraw object.
14475
144762008-02-01 Kenichi Handa <handa@m17n.org>
14477
14478 * font.c (Ffontp): Fix docstring.
14479
14480 * coding.c (detect_coding_iso_2022): Don't treat SI/SO codes as a
14481 strong evidence of ISO-2022.
14482
144832008-02-01 Kenichi Handa <handa@m17n.org>
14484
14485 * abbrev.c (abbrev_check_chars): Use CHAR_TABLE_REF, not
14486 SYNTAX_ENTRY_FOLLOW_PARENT.
14487
144882008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
14489
14490 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and change
14491 its type.
14492 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
14493 Update to the new type of weak_hash_tables and next_weak.
14494
14495 * lisp.h (struct Lisp_Hash_Table): Change next_weak from Lisp_Object to
14496 a plain C pointer to Lisp_Hash_Table.
14497
14498 * lisp.h (XGCTYPE, GC_HASH_TABLE_P, GC_NILP, GC_NUMBERP, GC_NATNUMP)
14499 (GC_INTEGERP, GC_SYMBOLP, GC_MISCP, GC_VECTORLIKEP, GC_STRINGP)
14500 (GC_CONSP, GC_FLOATP, GC_VECTORP, GC_OVERLAYP, GC_MARKERP)
14501 (GC_INTFWDP, GC_BOOLFWDP, GC_OBJFWDP, GC_BUFFER_OBJFWDP)
14502 (GC_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP)
14503 (GC_KBOARD_OBJFWDP, GC_PSEUDOVECTORP, GC_WINDOW_CONFIGURATIONP)
14504 (GC_PROCESSP, GC_WINDOWP, GC_SUBRP, GC_COMPILEDP, GC_BUFFERP)
14505 (GC_SUB_CHAR_TABLE_P, GC_CHAR_TABLE_P, GC_BOOL_VECTOR_P, GC_FRAMEP)
14506 (GC_EQ): Remove since they've been identical to their non-GC_
14507 alter-egos ever since the markbit was eradicated.
14508
14509 * alloc.c:
14510 * buffer.c:
14511 * buffer.h:
14512 * data.c:
14513 * fileio.c:
14514 * filelock.c:
14515 * fns.c:
14516 * frame.h:
14517 * lisp.h:
14518 * macterm.c:
14519 * print.c:
14520 * process.c:
14521 * w32fns.c:
14522 * w32menu.c:
14523 * w32term.c:
14524 * xfns.c:
14525 * xmenu.c:
14526 * xterm.c: Replace uses of GC_* macros with the non-GC_ versions.
14527
145282008-02-01 Kenichi Handa <handa@m17n.org>
14529
14530 * chartab.c (map_sub_char_table): Make it work for the top-level
14531 char-table. Fix handling of parent char-table.
14532 (map_char_table): Adjust for the above change.
14533
145342008-02-01 Jason Rumney <jasonr@gnu.org>
14535
14536 * w32font.c (Qgdi): Rename from Qw32.
14537
145382008-02-01 Jason Rumney <jasonr@gnu.org>
14539
14540 * w32bdf.c (get_quoted_string): Make function static.
14541
145422008-02-01 Kenichi Handa <handa@m17n.org>
14543
14544 * xftfont.c (xftfont_open): If one of font's ASCII glyph has
14545 bigger ascent and descent than those of the font, use them as
14546 font's ascent and descent.
14547
145482008-02-01 Kenichi Handa <handa@m17n.org>
14549
14550 * Makefile.in (${lispsource}international/charprop.el): Move this
14551 target within "#ifdef HAVE_UNIDATA" and "#endif".
14552
145532008-02-01 Kenichi Handa <handa@m17n.org>
14554
14555 * Makefile.in (lisp): Add ${lispsource}language/tai-viet.el.
14556 (shortlisp): Add ../lisp/language/tai-viet.el.
14557
145582008-02-01 Ulrich Mueller <ulm@gentoo.org>
14559
14560 * Makefile.in (${lispsource}international/charprop.el): Depend on
14561 temacs${EXEEXT}.
14562
145632008-02-01 Jason Rumney <jasonr@gnu.org>
14564
14565 * w32font.c (w32font_close): Delete the GDI font object.
14566
14567 * w32menu.c: Include character.h.
14568
14569 * w32proc.c: Likewise.
14570
14571 * w32select.c: Likewise.
14572
14573 * makefile.w32-in (w32proc.o): Depend on character.h.
14574
145752008-02-01 Jason Rumney <jasonr@gnu.org>
14576
14577 * w32fns.c (syms_of_w32fns): Use DEFSYM macro.
14578
14579 * w32menu.c (syms_of_w32menu): Likewise.
14580
14581 * w32proc.c (syms_of_ntproc): Likewise.
14582
14583 * w32select.c (syms_of_w32select): Likewise.
14584
14585 * w32term.c (syms_of_w32term): Likewise.
14586
145872008-02-01 Jason Rumney <jasonr@gnu.org>
14588
14589 * w32font.c (w32font_draw): Delete brush after using it.
14590
145912008-02-01 Jason Rumney <jasonr@gnu.org>
14592
14593 * w32font.c (w32font_open): Don't set font_idx.
14594 (w32font_text_extents): Try GetTextExtentPoint32W before defaulting
14595 to font settings.
14596 (w32font_draw): Fill background explicitly.
14597
145982008-02-01 Jason Rumney <jasonr@gnu.org>
14599
14600 * w32term.c (w32_initialize): Don't call w32font_initialize.
14601
14602 * w32font.c (w32font_info): Remove subranges.
14603 (QCsubranges, Qmodern, Qswiss, Qroman): Remove.
14604 (QCfamily, Qmonospace, Qsans_serif, Qmono, Qsans, Qsans__serif)
14605 (Qraster, Qoutline, Qlatin, Qgreek, Qcoptic, Qcyrillic, Qarmenian)
14606 (Qhebrew, Qarabic, Qsyriac, Qnko, Qthaana, Qdevanagari, Qbengali)
14607 (Qgurmukhi, Qgujarati, Qoriya, Qtamil, Qtelugu, Qkannada)
14608 (Qmalayalam, Qsinhala, Qthai, Qlao, Qtibetan, Qmyanmar, Qgeorgian)
14609 (Qhangul, Qethiopic, Qcherokee, Qcanadian_aboriginal, Qogham)
14610 (Qrunic, Qkhmer, Qmongolian, Qsymbol, Qbraille, Qhan)
14611 (Qideographic_description, Qcjk_misc, Qkana, Qbopomofo, Qkanbun)
14612 (Qyi, Qbyzantine_musical_symbol, Qmusical_symbol, Qmathematical):
14613 New symbols.
14614 (font_callback_data): New struct.
14615 (w32font_list, w32font_match): Use it.
14616 (w32font_open): Don't populate subranges.
14617 (w32font_has_char): Use script Lisp symbols, not subrange bitmask.
14618 (w32font_encode_char): Always return unicode code-point as-is.
14619 (w32font_text_extents): Supply a transformation matrix to
14620 GetGlyphOutline. Never look up by glyph index. Avoid looping
14621 twice. Use unicode version of GetTexExtentPoint32 instead of
14622 glyph index version.
14623 (set_fonts_frame): Remove.
14624 (w32_enumfont_pattern_entity): Add frame parameter, use it to
14625 set frame parameter. Use backward compatible fake foundries.
14626 Save generic family in extra slot under QCfamily. Make width slot
14627 constant. Save QCspacing value. Save list of scripts instead of
14628 binary subranges.
14629 (w32_generic_family, logfonts_match, font_matches_spec): New functions.
14630 (add_font_entity_to_list): Use font_callback_data struct. Filter
14631 unwanted fonts.
14632 (add_one_font_entity_to_list): Use font_callback_data struct.
14633 (w32_registry): Default to iso10646_1.
14634 (fill_in_logfont): Use dpi from extra slot. Don't bother with
14635 string font registries. Don't fill in font name if it is a generic
14636 family name, fill family instead. Use spacing, family and script
14637 extra info to fill pitch, family and charset fields.
14638 (list_all_matching_fonts): Use font_callback_data struct.
14639 (unicode_range_for_char): Remove.
14640 (font_supported_scripts): New function.
14641 (w32font_initialize): Remove.
14642 (syms_of_w32font): Update which symbols are defined.
14643
146442008-02-01 Jason Rumney <jasonr@gnu.org>
14645
14646 * font.c (font_pixel_size): Reverse assq_no_quit args.
14647
14648 * w32term.h (FONT_WIDTH): Report max width, not average.
14649 (FONT_MAX_WIDTH): Remove.
14650 (FONT_AVG_WIDTH): New macro.
14651
14652 * xfaces.c (Fx_list_fonts) [WINDOWSNT]: Remove Windows only
14653 redefinition of FONT_WIDTH.
14654
14655 * w32term.c (x_font_min_bounds): Use FONT_AVG_WIDTH.
14656 (w32_cache_char_metrics): Use FONT_WIDTH.
14657
14658 * w32fns.c (w32_load_system_font, w32_list_fonts): Use FONT_AVG_WIDTH.
14659
146602008-02-01 Jason Rumney <jasonr@gnu.org>
14661
14662 * w32font.c (w32font_open): Make lfHeight negative.
14663
14664 * w32fns.c (x_default_font_parameter): Use new style font name.
14665 (Fx_create_frame, x_create_tip_frame): Initialize resx and resy.
14666
146672008-02-01 Jason Rumney <jasonr@gnu.org>
14668
14669 * w32font.c (QCsubranges): New symbol.
14670 (w32font_open, w32font_has_char): Get subranges from subproperty
14671 of extra.
14672 (w32_enumfont_pattern_entity): Set subranges as subproperty of extra.
14673 (syms_of_w32font): Define :subranges symbol.
14674
14675 * font.c (font_put_extra): Expose externally.
14676
14677 * font.h (font_put_extra): Move declaration from font.c.
14678
14679 * font.c (Ffont_get): Use font driver to determine otf capability.
14680 (adjust_anchor): Check if driver defines anchor_point before using.
14681
14682 * w32font.c (w32font_open): Handle size, height and pixel_size better.
14683 (w32font_draw): Use options.
14684 (w32_enumfont_pattern_entity): Set size to 0 for scalable fonts.
14685 Fix detection of truetype fonts.
14686 (registry_to_w32_charset): Handle charsets other than iso8859-1
14687 expressed as lisp symbols.
14688 (w32_registry): Express charset as lisp symbol.
14689 (fill_in_logfont): Reverse pixel and point height logic.
14690 Don't set width here. Set quality to default.
14691
14692 * w32fns.c (w32_load_system_font): Fix detecting FIXED_PITCH fonts.
14693 (x_to_w32_font): Fill in lfPitchAndFamily correctly.
14694
14695 * xterm.c (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14696 Remove redundant loop and allocation.
14697
14698 * makefile.w32-in (font.o, w32font.o): New objects.
14699 (fontset.o, xdisp.o, xfaces.o, w32fns.o, w32term.o): Depend on font.h.
14700 (FONTOBJ): New group of objects conditioned on USE_FONT_BACKEND.
14701
14702 * xdisp.c (fill_composite_glyph_string): Make the first arg to
14703 STORE_XCHARB a valid l-value.
14704
14705 * w32term.c (w32_native_per_char_metric): Swap width and rbearing
14706 calculations for non-Truetype fonts.
14707 (x_draw_glyph_string): Sync with xterm.c.
14708 (x_draw_glyph_string_foreground) [USE_FONT_BACKEND]:
14709 Remove redundant code.
14710 (w32_initialize) [USE_FONT_BACKEND]: Call w32font_initialize.
14711
14712 * w32term.h (w32_output_data) [USE_FONT_BACKEND]: Add fontp member.
14713 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro from xterm.h.
14714
14715 * w32fns.c [USE_FONT_BACKEND]: Port font backend changes from xfns.c.
14716 (x_to_w32_charset, w32_to_x_charset): Expose externally.
14717
14718 * w32font.c: New file for w32 font backend.
14719
147202008-02-01 Kenichi Handa <handa@m17n.org>
14721
14722 * term.c: Don't include "buffer.h" twice.
14723
147242008-02-01 Kenichi Handa <handa@m17n.org>
14725
14726 * character.c (Funibyte_string): New function.
14727 (syms_of_character): Defsubr it.
14728
147292008-02-01 Jason Rumney <jasonr@gnu.org>
14730
14731 * w32term.c [USE_FONT_BACKEND]:
14732 (x_get_font_repertory, note_mouse_movement, x_set_mouse_face_gc)
14733 (x_set_glyph_string_clipping, x_set_glyph_string_clipping_exactly)
14734 (x_draw_glyph_string, x_draw_glyph_string_foreground)
14735 (x_draw_composite_glyph_string_foreground, x_new_fontset2)
14736 (x_free_frame_resources): Sync with xterm.c.
14737
147382008-02-01 Andreas Schwab <schwab@suse.de>
14739
14740 * lread.c (read1): Use CHAR_TABLE_STANDARD_SLOTS to validate
14741 char-table size.
14742
147432008-02-01 Kenichi Handa <handa@m17n.org>
14744
14745 * font.c (check_otf_features): Define it regardless of HAVE_LIBOTF.
14746
147472008-02-01 Kenichi Handa <handa@m17n.org>
14748
14749 * ftfont.c (ftfont_driver): Delete font_otf_gsub and
14750 font_otf_gpos, add font_drive_otf.
14751
14752 * fontset.c (fontset_find_font): Pay attention to font size
14753 specified for a font.
14754 (reorder_font_vector): Check contents of font_def.
14755
14756 * font.c (struct otf_list): Delete it.
14757 (otf_list): Make it a lisp variable.
14758 (otf_open): Use lispy otf_list.
14759 (generate_otf_features): Rename from parse_gsub_gpos_spec.
14760 (check_otf_features): New function.
14761 (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
14762 New functions.
14763 (font_drive_otf): New function merging font_otf_gsub and
14764 font_otf_gpos.
14765 (font_open_for_lface): New arg spec. Change argument order.
14766 (font_load_for_face): Adjust for the change of font_open_for_lface.
14767 (Ffont_drive_otf): New function merging Ffont_otf_gsub and
14768 Ffont_otf_gpos.
14769 (syms_of_font): Staticpro otf_list. Delete defsubr of
14770 Sfont_otf_gsub and Sfont_otf_gpos. Defsubr Sfont_drive_otf.
14771
14772 * xfaces.c (set_font_frame_param): Adjust for the change of
14773 font_open_for_lface.
14774
14775 * font.h (font_open_for_lface): Adjust prototype.
14776 (struct font_driver): Delete members otf_gsub and otf_gpos, add
14777 member otf_drive.
14778 (font_otf_gsub, font_otf_gpos): Delete externs.
14779 (font_drive_otf): Extern it.
14780
147812008-02-01 Kenichi Handa <handa@m17n.org>
14782
14783 * font.c (font_at): If the window W is not on a window system,
14784 return Qnil.
14785
14786 * coding.c (produce_chars, encode_coding): Don't call
14787 insert_from_gap if no characters to produce.
14788
147892008-02-01 Kenichi Handa <handa@m17n.org>
14790
14791 * fontset.c (free_realized_fontsets): Avoid unnecessary call of
14792 Fclear_face_cache.
14793
14794 * xfaces.c (face_for_font): Check also face->font==font->font.font.
14795
147962008-02-01 Miles Bader <miles@gnu.org>
14797
14798 * emacs.c (main): Change default value of `enable_font_backend' to 1.
14799 Parse "--disable-font-backend" option.
14800 (standard_args): Add "--disable-font-backend" option.
14801
148022008-02-01 Kenichi Handa <handa@m17n.org>
14803
14804 * fontset.c (fontset_find_font): New function.
14805 (fontset_font): Use fontset_find_font.
14806 (make_fontset_for_ascii_face): Don't set face ID in rfont_def.
14807 Register the specified font for all Latin characters.
14808 (new_fontset_from_font): Register the specified font for all Latin
14809 characters.
14810 (dump_fontset): For a realized fontset, include the base fontset
14811 name in the returned vector.
14812
148132008-02-01 Kenichi Handa <handa@m17n.org>
14814
14815 * character.h (CHAR_STRING): Cast C to unsigned on calling
14816 char_string.
14817
14818 * character.c (char_string): Type of arg C changed to unsigned.
14819 Signal an error if C is an invalid character code.
14820
14821 * editfns.c (general_insert_function, Fchar_to_string):
14822 Use CHARACTERP, not INTEGERP.
14823
148242008-02-01 Kenichi Handa <handa@m17n.org>
14825
14826 * character.h (MIN_MULTIBYTE_LEADING_CODE)
14827 (MAX_MULTIBYTE_LEADING_CODE): New macros.
14828
14829 * regex.c (analyse_first): Fix for multibyte characters in "case
14830 charset:" and "case categoryspec:".
14831
148322008-02-01 Andreas Schwab <schwab@suse.de>
14833
14834 * Makefile.in (LIBES): Move standard libraries to the end.
14835
148362008-02-01 Kenichi Handa <handa@m17n.org>
14837
14838 * alloc.c (Fgarbage_collect): If nextb->text->inhibit_shrinking is
14839 nonzero, don't shrink the buffer nextb.
14840
14841 * buffer.h (struct buffer_text): New member inhibit_shrinking.
14842
14843 * coding.c (coding_alloc_by_making_gap): New arg offset.
14844 (alloc_destination): Call coding_alloc_by_making_gap with the arg
14845 offset.
14846 (decode_coding_iso_2022): Update coding->safe_charsets.
14847 (decode_coding_gap): Temporarily set
14848 current_buffer->text->inhibit_shrinking to 1.
14849
148502008-02-01 Kenichi Handa <handa@m17n.org>
14851
14852 * xterm.c (x_draw_composite_glyph_string_foreground): Fix
14853 indexing into elements of s->cmp and s->char2b.
14854
148552008-02-01 Juanma Barranquero <lekktu@gmail.com>
14856
14857 * regex.c (RE_STRING_CHAR_AND_LENGTH) [! emacs]: Add missing arg `len'.
14858
148592008-02-01 Kenichi Handa <handa@m17n.org>
14860
14861 * regex.c (GET_CHAR_BEFORE_2, GET_CHAR_AFTER): Check the variable
14862 target_multibyte instead of multibyte.
14863 (re_match_2_internal): Call bcmp_translate with target_multibyte.
14864 (bcmp_translate): Change the argument name from multibyte to
14865 target_multibyte.
14866
148672008-02-01 Kenichi Handa <handa@m17n.org>
14868
14869 These changes are to compile a regexp into a pattern that can be
14870 used both for multibyte and unibyte targets.
14871
14872 * Makefile.in (search.o): Depend on charset.h.
14873
14874 * character.c (multibyte_char_to_unibyte_safe): New function.
14875
14876 * search.c: Include "charset.h".
14877 (compile_pattern_1): Delete argument multibyte. Don't set
14878 cp->buf.target_multibyte here. Set cp->buf.charset_unibyte.
14879 (compile_pattern): Don't compare cp->buf.target_multibyte.
14880 Compare cp->buf.charset_unibyte.
14881 (compile_pattern): Set cp->buf.target_multibyte.
14882
14883 * lisp.h (multibyte_char_to_unibyte_safe): Extern it.
14884
14885 * regex.h (struct re_pattern_buffer): New member charset_unibyte.
14886
14887 * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg
14888 multibyte. Change callers.
14889 (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros.
14890 (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Delete. Change callers
14891 to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE, respectively.
14892 (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros.
14893 (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table.
14894 (regex_compile): Make the compiled pattern usable both for
14895 multibyte and unibyte targets.
14896 (analyse_first): Make the fastmap usable both for multibyte and
14897 unibyte targets.
14898 (TRANSLATE_VIA_MULTIBYTE): Delete.
14899 (re_match_2_internal): Pay attention to the case that the
14900 multibyteness of bufp and target may be different.
14901
149022008-02-01 Kenichi Handa <handa@m17n.org>
14903
14904 * xdisp.c (x_produce_glyphs): When a font is not found, make the
14905 empty box occupy at least one column width.
14906
149072008-02-01 Miles Bader <miles@gnu.org>
14908
14909 * Makefile.in: Remove redundant HAVE_XFT clause.
14910
149112008-02-01 Kenichi Handa <handa@m17n.org>
14912
14913 * xrdb.c (x_load_resources): Setup the default fontSet X resource.
14914
149152008-02-01 Kenichi Handa <handa@m17n.org>
14916
14917 * fontset.c (Finternal_char_font): Fix for the case of POSITION
14918 being nil.
14919
149202008-02-01 Kenichi Handa <handa@m17n.org>
14921
14922 * xftfont.c (xftfont_open): Call FcConfigSubstitute.
14923
149242008-02-01 Kenichi Handa <handa@m17n.org>
14925
14926 * xftfont.c (xftfont_open): Don't enable antialias explicitly.
14927
149282008-02-01 Kenichi Handa <handa@m17n.org>
14929
14930 * search.c (simple_search): Fix previous change.
14931
149322008-02-01 Kenichi Handa <handa@m17n.org>
14933
14934 * xftfont.c (ftfont_font_format): Extern declaration.
14935
14936 * frame.c (x_set_font): Fix the second arg to fs_query_fontset.
14937
14938 * xfont.c (xfont_driver): Initialize ftfont_driver.type by 0.
14939 (xfont_list): Don't directly use Lisp_Object as an operand of &&.
14940
14941 * ftfont.c (ftfont_driver): Initialize ftfont_driver.type by 0.
14942 (ftfont_font_format): Fix previous change.
14943
14944 * font.h (Ffont_xlfd_name): EXFUN it.
14945
14946 * font.c (font_parse_xlfd): Fix the array size of `f'.
14947 (register_font_driver): Use EQ to compare driver->type.
14948
14949 * xfns.c (xic_create_xfontset2) [USE_FONT_BACKEND]: New function.
14950 (create_frame_xic) [USE_FONT_BACKEND]: Call xic_create_xfontset2.
14951 (xic_set_xfontset) [USE_FONT_BACKEND]: Likewise.
14952
149532008-02-01 Kenichi Handa <handa@m17n.org>
14954
14955 * ftfont.c (ftfont_pattern_entity, ftfont_list_generic_family)
14956 (ftfont_list, ftfont_font_format): Check if FC_FONTFORMAT is defined.
14957
149582008-02-01 Kenichi Handa <handa@m17n.org>
14959
14960 * xfont.c (xfont_open): Set font->format.
14961
14962 * xftfont.c (xftfont_open): Set font->format.
14963
14964 * ftfont.c (ftfont_pattern_entity): Add fontformat in a pattern.
14965 (ftfont_list): Include FC_FONTFORMAT in FcObject.
14966 (ftfont_open): Set font->format.
14967 (ftfont_font_format): New function.
14968
14969 * font.h (struct font): New member format.
14970
14971 * font.c (Qopentype): New variable.
14972 (syms_of_font): Defsym it.
14973 (Fquery_font): Change the format of the last element of the return
14974 value.
14975
149762008-02-01 Kenichi Handa <handa@m17n.org>
14977
14978 * xfns.c (xic_create_xfontset): Try the default fontset name as a
14979 last resort.
14980
149812008-02-01 Kenichi Handa <handa@m17n.org>
14982
14983 * coding.c (detect_coding_charset): Fix detection of multi-byte
14984 charset.
14985
149862008-02-01 Bob Halley <halley@play-bow.org> (tiny change)
14987
14988 * ccl.c (ccl_driver): If DST is NULL, set ccl->produced to 0.
14989
149902008-02-01 Kenichi Handa <handa@m17n.org>
14991
14992 * xdisp.c (get_next_display_element): Set it->face_id for the
14993 first component of a composition.
14994 (x_produce_glyphs): Check if the font is changed or not for composition.
14995
149962008-02-01 Kenichi Handa <handa@m17n.org>
14997
14998 * fontset.c (Qlatin): New variable.
14999 (syms_of_fontset): Define it as a lisp symbol.
15000 (Fset_fontset_font): If TARGET is `latin', use FONT_SPEC for ASCII.
15001
150022008-02-01 Kenichi Handa <handa@m17n.org>
15003
15004 * font.c (font_unparse_fcname): Pay attention to the case that
15005 some of font property is a null string.
15006
150072008-02-01 Kenichi Handa <handa@m17n.org>
15008
15009 * term.c: Include "composite.h".
15010 (encode_terminal_code): Output all components of composition.
15011 Check the size of encode_terminal_src.
15012 (produce_glyphs): For composition, call produce_composite_glyph.
15013 (append_composite_glyph, produce_composite_glyph): New functions.
15014
15015 * xdisp.c (x_produce_glyphs): In handling composition, if a font
15016 is not found, get font_info from the current ascii face.
15017
150182008-02-01 Kenichi Handa <handa@m17n.org>
15019
15020 * fileio.c (Finsert_file_contents): On replacing, temporarily bind
15021 buffer-file-name to Qnil before calling insert_from_buffer.
15022
15023 * font.c (font_unparse_fcname): Pay attention to the case that
15024 foundry is a null string.
15025
150262008-02-01 Kenichi Handa <handa@m17n.org>
15027
15028 * ftfont.c (ftfont_list): Allow registry "unicode-sip".
15029
15030 * font.c (Qunicode_sip): New variable.
15031 (syms_of_font): Declare it as a Lisp symbol.
15032
15033 * font.h (Qunicode_sip): Extern it.
15034
150352008-02-01 Kenichi Handa <handa@m17n.org>
15036
15037 * composite.c (get_composition_id): Pay attention to TAB component.
15038
15039 * xterm.c (x_draw_composite_glyph_string_foreground): Don't draw
15040 TAB. Adjust for the change of s->char2b which always points to
15041 the first element of allocated memory.
15042
15043 * xftfont.c (xftfont_text_extents): Fix calculation of descent value.
15044
15045 * xdisp.c (handle_composition_prop): Set it->c to the first
15046 non-TAB component.
15047 (fill_composite_glyph_string): Change argument.
15048 (BUILD_COMPOSITE_GLYPH_STRING): Adjust for the above change.
15049 (x_produce_glyphs): Fix handling of left/right padding.
15050
150512008-02-01 Kenichi Handa <handa@m17n.org>
15052
15053 * coding.c (detect_coding_system): Fix for handling off
15054 inhibit_iso_escape_detection. Fix for the case that no coding
15055 system is defined for a specific coding category.
15056
150572008-02-01 Kenichi Handa <handa@m17n.org>
15058
15059 * font.c (font_matching_entity): Delete unused local var.
15060
15061 * xftfont.c (xftfont_open): Call XftDefaultSubstitute before
15062 opening a font.
15063
15064 * fileio.c (Finsert_file_contents): On recovering a file, assume
15065 Unix-like eol.
15066 (choose_write_coding_system): On auto-saving a file, force
15067 Unix-like eol.
15068
15069 * coding.c (setup_coding_system): Fix setting of
15070 coding->common_flags based on eol_type.
15071 (coding_inherit_eol_type): If PARENT is not nil, be sure to
15072 inherit from it.
15073
150742008-02-01 Kenichi Handa <handa@m17n.org>
15075
15076 * alloc.c (NSTATICS): Increas to 0x600.
15077
150782008-02-01 Kenichi Handa <handa@m17n.org>
15079
15080 * ftfont.c (ftfont_driver): Set ftfont_driver.match to ftfont_match.
15081 (ftfont_list): Don't check :name property.
15082 (ftfont_match): New function.
15083 (ftfont_pattern_entity): If the pattern doesn't contain
15084 FC_SPACING, don't assume FC_MONO.
15085
15086 * font.h (struct font_driver): New member `match'.
15087 (font_update_drivers): Adjust prototype.
15088
15089 * font.c (font_parse_fcname, font_parse_name): Don't change :name
15090 property of FONT.
15091 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE, check_gstring): Define
15092 them unconditionally.
15093 (font_matching_entity): New function.
15094 (font_open_by_name): Try font_matching_entity if exact match is
15095 not found.
15096 (font_update_drivers): Delete the arg FONT. Return a list of
15097 actually used backends. Don't free faces, font caches here.
15098 Don't store data in frame parameters. Don't call x_set_font.
15099 (Ffont_spec): Store :name property as is.
15100 (Ffont_get): Check HAVE_LIBOTF before calling font_otf_capability.
15101 (Ffont_otf_gsub): Call font->driver->otf_gsub instead of font_otf_gsub.
15102 (Ffont_otf_gpos): Call font->driver->otf_gpos instead of font_otf_gpos.
15103 (Ffont_otf_alternates): Check if the driver has otf_gsub function.
15104 Call font->driver->otf_gsub instead of font_otf_gsub.
15105
15106 * frame.c (x_set_font_backend): Do more works that were done in
15107 font_update_drivers before.
15108
15109 * xfont.c (xfont_match): New function.
15110 (xfont_driver): Set xfont_driver.match to xfont_match.
15111 (xfont_draw): Set font in GC if necessary.
15112
15113 * ftxfont.c (ftxfont_match): New function.
15114 (syms_of_ftxfont): Set ftxfont_driver.match to ftxfont_match.
15115
15116 * xftfont.c (xftfont_match): New function.
15117 (syms_of_xftfont): Set xftfont_driver.match to xftfont_match.
15118
151192008-02-01 Kenichi Handa <handa@m17n.org>
15120
15121 * font.h (struct font): New member scalable.
15122 (struct font_driver): New arg ALTERANTE_SUBST to otf_gsub.
15123 (font_otf_gsub): Adjust prototype.
15124
15125 * font.c (font_otf_capability): Fix handling of the default langsys.
15126 (parse_gsub_gpos_spec): Change type to void. New arg nbytes.
15127 Check the contents of SPEC.
15128 (LGSTRING_HEADER_SIZE, LGSTRING_GLYPH_SIZE): New macros.
15129 (check_gstring): New function.
15130 (REPLACEMENT_CHARACTER): New macro.
15131 (font_otf_gsub): New arg alternate_subst. Be sure to set all
15132 glyph codes of GSTRING.
15133 (font_otf_gpos): Be sure to set all glyph codes of GSTRING.
15134 (font_prepare_composition): Set cmp->glyph_len.
15135 (font_open_entity): Set font->scalable.
15136 (Ffont_get): Handle :otf property.
15137 (Ffont_otf_gsub, Ffont_otf_gpos, Ffont_otf_alternates): New
15138 functions.
15139 (Fquery_font): Use font->font.full_name.
15140 (syms_of_font): Defsubr Sfont_otf_gsub, Sfont_otf_gpos, and
15141 Sfont_otf_alternates.
15142
15143 * ftfont.c (ftfont_open): Set font->font.full_name and
15144 font->font.name properly. Fix calculation of font->font.height
15145 and font->min_width.
15146
15147 * ftxfont.c (ftxfont_create_gcs): New function.
15148 (ftxfont_draw_bitmap): Fix arg to ftfont_driver.get_bitmap.
15149 (ftxfont_draw_backgrond): Fix filling region.
15150 (ftxfont_default_fid): New function.
15151 (ftxfont_open): Set xfont->fid to the return value of
15152 ftxfont_default_fid.
15153 (ftxfont_prepare_face): Use ftxfont_create_gcs to create GCs.
15154 (ftxfont_done_face): Free only GCs that are created by
15155 ftxfont_create_gcs.
15156 (ftxfont_draw): If face->gc != s->gc, create proper GCs.
15157
15158 * xterm.c (x_set_glyph_string_clipping_exactly) [USE_FONT_BACKEND]:
15159 Clip to src->width, etc (not src->clip_XXX).
15160
15161 * xfns.c (x_create_tip_frame) [USE_FONT_BACKEND]: Handle
15162 FontBackend frame parameter.
15163
151642008-02-01 Kenichi Handa <handa@m17n.org>
15165
15166 * font.h (struct font_driver_list): New member `on'.
15167 (Fclear_font_cache): EXFUN it.
15168 (font_update_drivers): Extern it.
15169
15170 * font.c (font_unparse_fcname): Fix typo (swidth->width).
15171 (font_list_entities): Check driver_list->on.
c0943d3d 15172 (register_font_driver): Initialize `on' member to 0.
aac0c6e3
MR
15173 (font_update_drivers): New function.
15174 (Fclear_font_cache): Check driver_list->on.
15175
15176 * frame.h (Qfont_backend): Extern it.
15177 (x_set_font_backend): Extern it.
15178
15179 * frame.c (Qfont_backend): New variable.
15180 (frame_parms): New element for font-backend.
15181 (x_set_font_backend): New function.
15182
15183 * xfns.c (Fx_create_frame) [USE_FONT_BACKEND]: Handle
15184 FontBackend frame parameter.
15185 (x_frame_parm_handlers) [USE_FONT_BACKEND]: New element
15186 x_set_font_backend.
15187
15188 * xfont.c (xfont_list): Don't try listing by :name property if the
15189 name is not for XLFD.
15190
151912008-02-01 Kenichi Handa <handa@m17n.org>
15192
15193 * font.h (LGLYPH_FROM, LGLYPH_TO, LGLYPH_SET_FROM)
15194 (LGLYPH_SET_TO): New macros.
15195 (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WADJUST): Check if adjustment
15196 element of G is vector or not.
15197 (font_at): Extern it.
15198
15199 * font.c: Include window.h.
15200 (font_lispy_object): New function.
15201 (font_prepare_composition): Check LGLYPH_FORM (g) to detect the
15202 end of valid glyph.
15203 (font_close_object): Fix getting (struct font *).
15204 (font_at): New function.
15205 (Ffont_get): If FONT is a font-object, get entity from it.
15206 (Ffont_make_gstring): Initialize elements of glyphs with nil.
15207 (Ffont_fill_gstring): Use macro LGSTRING_XXX and LGLYPH_XXX. Fix
15208 range check.
15209 (Ffont_at): New function.
15210 (syms_of_font): Defsubr Sfont_at.
15211
15212 * xdisp.c (it_props): Move the entry for Qauto_composed to just
15213 before the entry for Qcomposition.
15214 (handle_auto_composed_prop): Call auto-composition-function with 4 args.
15215 (handle_composition_prop) [USE_FONT_BACKEND]: Set it->face_id from
15216 the font in gstring.
15217 (fill_composite_glyph_string) [USE_FONT_BACKEND]: Check
15218 LGLYPH_FORM (g) to detect the end of valid glyph.
15219 (x_produce_glyphs) [USE_FONT_BACKEND]: Don't update it->face_id if
15220 we are composing with gstring.
15221
15222 * xterm.c (x_draw_composite_glyph_string_foreground) [USE_FONT_BACKEND]:
15223 Check if adjustment is vector or not.
15224
15225 * Makefile.in (font.o): Make it depends on window.h.
15226
152272008-02-01 Kenichi Handa <handa@m17n.org>
15228
15229 * xterm.c (x_draw_composite_glyph_string_foreground): Check if
15230 adjustment is vector or not.
15231
152322008-02-01 Miles Bader <miles@gnu.org>
15233
15234 * character.h (CHECK_CHARACTER): Redefine in terms of CHECK_TYPE.
15235
152362008-02-01 Kenichi Handa <handa@m17n.org>
15237
15238 * font.h (LGLYPH_XOFF, LGLYPH_YOFF, LGLYPH_WIDTH, LGLYPH_WADJUST)
15239 (LGLYPH_SET_WIDTH): Adjusted for the change of LGLYPH format.
15240 (LGLYPH_ADJUSTMENT, LGLYPH_SET_ADJUSTMENT): New macros.
15241
15242 * font.c (font_merge_old_spec): Treat '*' in foundry as a wild card.
15243 (DEVICE_DELTA): Fix typo.
15244 (font_otf_gpos, font_prepare_compositio): Adjust for the change of
15245 LGLYPH format.
15246
15247 * xterm.c (x_draw_composite_glyph_string_foreground): Adjust for
15248 the change of LGLYPH format.
15249
152502008-02-01 Kenichi Handa <handa@m17n.org>
15251
15252 * ftfont.c (ftfont_list): Fix typo.
15253 (ftfont_build_basic_charsets): Don't include letters with diacritics.
15254
152552008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15256
15257 * xfaces.c (realize_non_ascii_face): Set face->extra to NULL.
15258
15259 * xftfont.c (xftfont_done_face): Call XftDrawDestroy only if
15260 xftface_info is non-NULL.
15261
152622008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15263
15264 * ftfont.c (ftfont_list): Move misplaced #endif.
15265
152662008-02-01 Kenichi Handa <handa@m17n.org>
15267
15268 * ftfont.c (ftfont_list): Pay attention to the case that
15269 FC_CAPABILITY is not defined.
15270
152712008-02-01 Kenichi Handa <handa@m17n.org>
15272
15273 * xftfont.c (xftfont_open): Set charset related members to -1.
15274
15275 * ftfont.c (ftfont_list): Handle QCotf property. Fix handling of
15276 QCname.
15277 (ftfont_open): Set charset related members to -1.
15278
15279 * fontset.c (Votf_script_alist): New variable.
15280 (syms_of_fontset): Initialize it.
15281 (fontset_font): Delete unused variable.
15282
15283 * fontset.h (Votf_script_alist): Extern it.
15284
15285 * font.c (font_find_for_lface): Optimize code.
15286
15287 * font.h (font_close_object, font_merge_old_spec): Extern them.
15288
152892008-02-01 Kenichi Handa <handa@m17n.org>
15290
15291 * font.c (QCscalable, Qc, Qm, Qp, Qd): New variables.
15292 (syms_of_font): Initialize them.
15293 (font_pixel_size): Allow float value in dpi.
15294 (font_prop_validate_type): Delete.
15295 (font_prop_validate_symbol, font_prop_validate_style): Change argument.
15296 Change caller.
15297 (font_prop_validate_non_neg): Rename from font_prop_validate_size.
15298 (font_prop_validate_extra): Delete.
15299 (font_prop_validate_spacing): New function.
15300 (font_property_table): Add elements for all known properties.
15301 (get_font_prop_index): Rename from check_font_prop_name. New
15302 argument FROM. Change caller.
15303 (font_prop_validate): Validate all known properties.
15304 (font_put_extra): Delete argument force. Change caller.
15305 (font_expand_wildcards): Make it static. Fix the way of shrinking
15306 the possible range.
15307 (font_parse_xlfd): Delete argument merge. Fix handling of RESX,
15308 RESY, SPACING, and AVGWIDTH. Don't validate property values here.
15309 Change caller.
15310 (font_unparse_xlfd): Handle dpi, spacing, and scalable properties.
15311 (font_parse_fcname): Delete argument merge. Fix parsing of point
15312 size. Don't validate properties values here. Change caller.
15313 (font_unparse_fcname): Handle dpi, spacing, and scalable properties.
15314 (font_open_by_name): Delete unused variable.
15315 (Ffont_spec): Likewise. Validate property values.
15316 (Ffont_match_p): New function.
15317
15318 * font.h (QCscalable): Extern it.
15319 (font_parse_xlfd, font_parse_fcname): Adjust prototype.
15320
15321 * ftfont.c (ftfont_list): Handle properties dpi, spacing, and scalable.
15322
15323 * xfont.c (xfont_query_font): Adjust for the change of font_parse_xlfd.
15324 (xfont_list_pattern): New function.
15325 (xfont_list): Use xfont_list_pattern.
15326
153272008-02-01 Kenichi Handa <handa@m17n.org>
15328
15329 * font.h (Flist_fonts): EXFUN it.
15330
153312008-02-01 Jason Rumney <jasonr@gnu.org>
15332
15333 * w32term.c (w32_initialize): Add back smoothing_type and
15334 smoothing_enabled definitions.
15335
153362008-02-01 Kenichi Handa <handa@m17n.org>
15337
15338 * xterm.c (x_draw_glyph_string) [USE_FONT_BACKEND]: Check
15339 s->face->font on determining underline position.
15340
153412008-02-01 Kenichi Handa <handa@m17n.org>
15342
15343 * font.c (font_parse_xlfd): Fix generating of CHARSET_REGISTRY field.
15344 (font_has_char): Accept font-object too.
15345 (font_find_for_lface): Try at first with a size specified in face.
15346
153472008-02-01 Kenichi Handa <handa@m17n.org>
15348
15349 * frame.c (x_set_font) [USE_FONT_BACKEND]: Fix argument to
15350 font_open_by_name.
15351
153522008-02-01 Kenichi Handa <handa@m17n.org>
15353
15354 * font.h (QCspacing, QCdpi): Extern them.
15355 (enum font_spacing): New enum.
15356 (FONT_PIXEL_SIZE_QUANTUM): New macro.
15357
15358 * font.c (POINT_TO_PIXEL): Don't divide POINT by 10.
15359 (QCspacing, QCdpi): New variables.
15360 (syms_of_font): Initialize them.
15361 (font_pixel_size): New function.
15362 (font_put_extra): New function.
15363 (font_parse_xlfd): Fix handling of font size. Add QCdpi property
15364 in FONT_EXTRA.
15365 (font_parse_fcname): Handle enumerated values (e.g. bold).
15366 Fix handling font size. Add QCname property that contains only
15367 unknown properties.
15368 (font_score): Change argument. Change caller. Pay attention to
15369 FONT_PIXEL_SIZE_QUANTUM.
15370 (font_sort_entites, font_list_entities, font_find_for_lface)
15371 (font_open_for_lface, font_open_by_name): Fix handling of font size.
15372 (Ffont_spec): Add QCname property that contains only unknown properties.
15373
15374 * ftfont.c (ftfont_list): Use assq_no_quit, not Fassq. Don't
15375 include weight in listing pattern, instead check weight of each
15376 listed font. Don't include scalable in pattern. Pay attention to
15377 FONT_PIXEL_SIZE_QUANTUM.
15378
153792008-02-01 Kenichi Handa <handa@m17n.org>
15380
15381 * font.c (font_parse_fcname): Fix parsing of point-size.
15382 (font_unparse_fcname): Produce symbolic names for style properties.
15383 (font_list_entities): Handle float size correctly.
15384 (font_open_by_name): Prefer `normal' property values if the name
15385 doesn't specify them.
15386
15387 * fontset.c (Finternal_char_font): Use font_get_name, not
15388 Ffont_xlfd_name.
15389
15390 * ftfont.c (ftfont_pattern_entity): Use the numeric value 100 for
15391 FC_WEIGHT_REGULAR. Exclude FC_SIZE and FC_PIXEL_SIZE from listing
15392 pattern. Don't force scalable.
15393
15394 * xftfont.c (xftfont_open): For generating a name, start from
15395 96-byte buffer.
15396
153972008-02-01 Jan Djärv <jan.h.d@swipnet.se>
15398
15399 * frame.h (x_new_fontset2): Fix prototype.
15400
154012008-02-01 Kenichi Handa <handa@m17n.org>
15402
15403 * font.h (struct font_driver): Delete member parse_name.
15404 (font_match_p, font_get_spec, font_parse_fcname)
15405 (font_unparse_fcname): Extern them.
15406 (font_get_name): Adjust prototype.
15407
15408 * font.c (XLFD_SMALLNUM_MASK): Delete this macro.
15409 (XLFD_LARGENUM_MASK): Delete XLFD_ENCODING_MASK from it.
15410 (font_expand_wildcards): Fix handling ENCODING field. Avoid
15411 unnecessary checks for weight, slant, and swidth.
15412 (font_parse_fcname): New function.
15413 (font_unparse_fcname): New function.
15414 (font_parse_name): New function.
15415 (font_match_p): New function.
15416 (font_get_name): Change return value to Lisp string.
15417 (font_get_spec): New function.
15418 (Qunspecified, Qignore_defface): Don't extern them.
15419 (font_find_for_lface): Assume that LFACE is fully specified.
15420 (font_load_for_face): If lface[LFACE_FONT_INDEX] is an font
15421 object, use it for FACE.
15422 (font_open_by_name): Call Ffont_spec with QCname prop. Don't call
15423 driver->parse_name.
15424 (Ffont_spec): Call font_parse_name, not font_parse_xlfd.
15425
15426 * fontset.h (new_fontset_from_font) [USE_FONT_BACKEND]: Adjust
15427 prototype.
15428
15429 * fontset.c (new_fontset_from_font) [USE_FONT_BACKEND]: Delete
15430 argument F. Don't call Fnew_fontset. Instead, directly call
15431 make_fontset.
15432
15433 * frame.h (x_new_fontset2) [USE_FONT_BACKEND]: Adjust prototype.
15434
15435 * frame.c (x_set_font) [USE_FONT_BACKEND]: Adjust for the change
15436 of x_new_fontset2.
15437
15438 * ftfont.c (Qmonospace, Qsans_serif, Qserif, Qmono, Qsans)
15439 (Qsans__serif): New variables.
15440 (ftfont_generic_family_list): New variable.
15441 (syms_of_ftfont): Initialize the above variables.
15442 (ftfont_pattern_entity): Delete argument NAME.
15443 (ftfont_list_generic_family): New function.
15444 (ftfont_parse_name): Delete this function.
15445 (ftfont_list): Try generic family only when FcFontList found no font.
15446 (ftfont_list_family): Fix args to FcObjectSetBuild.
15447
15448 * xfaces.c (check_lface_attrs) [USE_FONT_BACKEND]: Accept font
15449 object in attrs[LFACE_FONT_INDEX].
15450 (set_lface_from_font_name): Cancel all changes for font-backend.
15451 (set_lface_from_font_and_fontset) [USE_FONT_BACKEND]: New
15452 function.
15453 (Finternal_set_lisp_face_attribute) [USE_FONT_BACKEND]: Accept a
15454 font object in QCfont attribute.
15455 (set_font_frame_param) [USE_FONT_BACKEND]: Likewise.
15456 (realize_default_face) [USE_FONT_BACKEND]: Call
15457 set_lface_from_font_and_fontset.
15458
15459 * xfns.c (x_default_font_parameter) [USE_FONT_BACKEND]: Try also
15460 "fixed", and signal error here if no suitable font was found.
15461
15462 * xfont.c (xfont_parse_name): Delete this function.
15463
15464 * xftfont.c (xftfont_open): Change coding style of error
15465 handling. Generate fontconfig's fontname pattern.
15466
15467 * xterm.h (struct x_output) [USE_FONT_BACKEND]: New member fontp.
15468 (FRAME_FONT_OBJECT) [USE_FONT_BACKEND]: New macro.
15469
15470 * xterm.c (x_new_fontset2) [USE_FONT_BACKEND]: Change arguments.
15471 Both args FONTSET and FONT_OBJECT must be existing ones.
15472
154732008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15474
15475 * macterm.c (mac_set_unicode_keystroke_event): Don't use MAKE_CHAR.
15476
154772008-02-01 Kenichi Handa <handa@m17n.org>
15478
15479 * xfont.c (xfont_open, xfont_encode_char): Fix typo.
15480
15481 * font.h (struct font): Fix typo.
15482
15483 * font.c (enum xlfd_field_index): Rename XLFD_XXX_SIZE_INDEX to
15484 XLFD_XXX_INDEX.
15485 (enum xlfd_field_mask): New enum.
15486 (intern_font_field): Changed argument. Change caller. If digits
15487 are followed by non-digits, return a symbol.
15488 (font_expand_wildcards): New function.
15489 (font_parse_xlfd): Fix wildcard handling.
15490 (Ffont_spec): If :name is specified, reflect the info in the other
15491 properties.
15492
15493 * ftfont.c (ftfont_pattern_entity): Fix typo.
15494 (ftfont_list): Enforce FC_LANG in PATTERN to cancel the effect of
15495 locale.
15496
154972008-02-01 Kenichi Handa <handa@m17n.org>
15498
15499 * font.h (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Extern them.
15500
15501 * font.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move from ftfont.c.
15502 (font_unparse_xlfd): Fix argument type declaration. Append "*" if
15503 registry doesn't specify encoding part.
15504 (font_find_for_lface): Pay attention to LFACE_FONT_INDEX.
15505 (font_open_by_name): At first try parsing the name.
15506 (syms_of_font): Declare Qiso8859_1, Qiso10646_1, and Qunicode_bmp
15507 as Lisp symbols.
15508
15509 * fontset.c (reorder_font_vector): Pay attention to the case that
15510 the 3rd element of font_def is nil.
15511 (fontset_font): For the default fontset, append one more fontset
15512 elements for a script-based font specification. Don't add script
15513 attribute on finding a font.
15514 (new_fontset_from_font): Unconditionally set FONTSET_ASCII to the
15515 font name.
15516 (fontset_ascii_font): If a font can't be opened, return nil.
15517
15518 * ftfont.c (Qiso8859_1, Qiso10646_1, Qunicode_bmp): Move to font.c.
15519 (ftfont_pattern_entity): New function.
15520 (ftfont_get_cache): Assume that freetype_font_cache is already
15521 initialized.
15522 (ftfont_list): Handle the case that a file is specified in font
15523 name. Use ftfont_pattern_entity to generate entities.
15524 (ftfont_has_char): Check if the pattern contains FC_CHARSET.
15525 (syms_of_ftfont): Initialize freetype_font_cache.
15526
15527 * xftfont.c (xftfont_open): Make the font name fontconfig's
15528 style. Add BLOCK_INPUT and UNBLOCK_INPUT.
15529 (xftfont_close): Free font->font.name if not NULL.
15530
15531 * xfont.c (xfont_list): If script is specified for a font, return
15532 null_vector.
15533 (xfont_list_family): Declare argument type.
15534
15535 * xfaces.c (set_lface_from_font_name): If a font doesn't have a
15536 name, set LFACE_FONT (lface) to nil.
15537
15538 * xterm.c (x_new_fontset2): If an ASCII font couldn't be loaded,
15539 return Qnil.
15540
155412008-02-01 Kenichi Handa <handa@m17n.org>
15542
15543 * emacs.c (main): Check -enable-font-backend arg after the check of -nl.
15544 (standard_args): Add "-enable-font-backend".
15545
155462008-02-01 Kenichi Handa <handa@m17n.org>
15547
15548 * xftfont.c (xftfont_default_fid): Set fid_known to 1.
15549 (struct xftdraw_list, xftdraw_list): Delete them.
15550 (register_xftdraw, check_xftdraw): Delete them.
15551 (xftfont_prepare_face): Don't call register_xftdraw.
15552 (xftfont_done_face): Don't call check_xftdraw.
15553 (xftfont_draw): Get background color only when with_background is
15554 nonzero.
15555
15556 * xfont.c (xfont_encode_char): Fix calculation of char2b.
15557
155582008-02-01 Kenichi Handa <handa@m17n.org>
15559
15560 These changes are for the new font handling codes.
15561
15562 * Makefile.in (ALL_CFLAGS): Add @FREETYPE_CFLAGS@,
15563 @FONTCONFIG_CFLAGS@, and @LIBOTF_CFLAGS@.
15564 (LIB_X11_LIB): If HAVE_XFT is defined, set to @XFT_LIBS@.
15565 (FONTSRC, FONTOBJ): New variables.
15566 (obj): Add $(FONTOBJ).
15567 (SOME_MACHINE_OBJECTS): Lib_X11_Lib.
15568 (LIBES): Add @FREETYPE_LIBS@, @FONTCONFIG_LIBS@, and
15569 @LIBOTF_LIBS@.
15570 (font.o, ftfont.o, xfont.o, xftfont.o, ftxfont.o): New targets.
15571 (fontset.o, xdisp.o, xfaces.o, xfns.o, xterm.o): Depend on $(FONTSRC).
15572
15573 * font.h, font.c, xfont.c, ftfont.c, xftfont.c, ftxfont.c: New files.
15574
15575 * character.h (Vscript_representative_chars): Extern it.
15576
15577 * character.c (Vscript_representative_chars): New variable.
15578 (syms_of_character): Declare it as a Lisp variable.
15579
15580 * composite.c (get_composition_id) [USE_FONT_BACKEND]: If
15581 enable_font_backend is nonzero, accept the composition method
15582 COMPOSITION_WITH_GLYPH_STRING.
15583
15584 * composite.h (enum composition_method) [USE_FONT_BACKEND]: New
15585 enumeration COMPOSITION_WITH_GLYPH_STRING.
15586
15587 * dispextern.h (struct glyph_string) [USE_FONT_BACKEND]: New
15588 members clip_x, clip_y, clip_width, and clip_height.
15589 (struct face) [USE_FONT_BACKEND]: New members font_info and extra.
15590
15591 * emacs.c (main) [USE_FONT_BACKEND]: Handle arg
15592 --enable-font-backend. Call syms_of_font.
15593
15594 * fns.c (assoc_no_quit): New function.
15595
15596 * fontset.h (FONT_INFO_FROM_FACE): New macro.
15597 (face_for_font, new_fontset_from_font)
15598 (fontset_ascii_font) [USE_FONT_BACKEND]: Extern them.
15599
15600 * fontset.c [USE_FONT_BACKEND]: Include "font.h".
15601 (fontset_font, fontset_ascii, face_for_char)
15602 (make_fontset_for_ascii_face, Ffont_info)
15603 (Finternal_char_font) [USE_FONT_BACKEND]: If enable_font_backend
15604 is nonzero, use font-backend mechanism.
15605 (find_font_encoding): Make it non-static.
15606 (new_fontset_from_font, fontset_ascii_font) [USE_FONT_BACKEND]:
15607 New functions.
15608
15609 * frame.h (struct frame): New members resx and resy.
15610 (struct frame) [USE_FONT_BACKEND]: New member font_driver_list.
15611 (x_new_fontset2) [USE_FONT_BACKEND]: Extern it.
15612
15613 * frame.c [USE_FONT_BACKEND]: Include "font.h".
15614 (make_frame, x_set_font) [USE_FONT_BACKEND]: Use font-backend mechanism.
15615
15616 * lisp.h (assoc_no_quit): Extern it.
15617
15618 * xdisp.c: If USE_FONT_BACKEND is defined, include "font.h".
15619 Through out the file, use FONT_INFO_FROM_FACE instead of
15620 FONT_INFO_FROM_ID, use get_per_char_metric instead of
15621 rif->per_char_metric.
15622 (handle_composition_prop) [USE_FONT_BACKEND]: If the composition
15623 method is COMPOSITION_WITH_GLYPH_STRING, just set it->c to ' '.
15624 (get_glyph_face_and_encoding, fill_composite_glyph_string)
15625 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
15626 (x_produce_glyphs) [USE_FONT_BACKEND]: If enable_font_backend is
15627 nonzero, use font-backend mechanism.
15628 (get_per_char_metric): New function.
15629
15630 * xfaces.c [USE_FONT_BACKEND]: Include "font.h".
15631 (set_lface_from_font_name)
15632 (set_font_frame_param, free_realized_face)
15633 (prepare_face_for_display, clear_face_gcs)
15634 (Finternal_set_font_selection_order, realize_x_face)
15635 [USE_FONT_BACKEND]: If enable_font_backend is nonzero, use
15636 font-backend mechanism.
15637 (clear_face_cache) [USE_FONT_BACKEND]: Don't call clear_font_table.
15638 (load_face_font) [USE_FONT_BACKEND]: Abort.
15639 (face_symbolic_value, face_symbolic_weight, face_symbolic_slant)
15640 (face_symbolic_swidth, face_for_font) [USE_FONT_BACKEND]: New functions.
15641
15642 * xfns.c [USE_FONT_BACKEND]: Include "font.h".
15643 (x_default_font_parameter) [USE_FONT_BACKEND]: New function.
15644 (Fx_create_frame) [USE_FONT_BACKEND]: If enable_font_backend is
15645 nonzero, register all available font drivers. Call
15646 x_default_font_parameter for deciding a font.
15647 (x_create_tip_frame) [USE_FONT_BACKEND]: Likewise.
15648
15649 * xterm.c [USE_FONT_BACKEND]: Include "font.h".
15650 (x_set_mouse_face_gc, x_set_glyph_string_clipping)
15651 (x_set_glyph_string_clipping_exactly)
15652 (x_compute_glyph_string_overhangs)
15653 (x_draw_glyph_string_foreground)
15654 (x_draw_composite_glyph_string_foreground, x_draw_glyph_string)
15655 (x_free_frame_resources) [USE_FONT_BACKEND]: If
15656 enable_font_backend is nonzero, use font-backend mechanism.
15657 (x_new_fontset2) [USE_FONT_BACKEND]: New function.
15658
156592008-02-01 Kenichi Handa <handa@m17n.org>
15660
15661 * coding.c (coding_inherit_eol_type): If PARENT is nil, inherit from
15662 system_eol_type.
15663 (syms_of_coding): Initialize system_eol_type.
15664
15665 * process.c (Fset_process_coding_system): Inherit system's eol
15666 format if necessary.
15667
156682008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15669
15670 * macgui.h (USE_ATSUI): Don't enable on emacs-unicode-2 branch.
15671
156722008-02-01 Kenichi Handa <handa@m17n.org>
15673
15674 * coding.c (decode_eol): Pay attention to buffer relocation in
15675 del_range_2.
15676 (decode_coding): Call decode_eol before restoring undo_list.
15677
156782008-02-01 Kenichi Handa <handa@m17n.org>
15679
15680 * charset.c (Fdefine_charset_internal): Fix setting of
15681 emacs_mule_bytes.
15682
156832008-02-01 Kenichi Handa <handa@m17n.org>
15684
15685 * keyboard.c (read_char): Check if C is a character or not before
15686 looking up Vkeyboard_translate_table.
15687
156882008-02-01 Kenichi Handa <handa@m17n.org>
15689
15690 * coding.c (DECODE_EMACS_MULE_20_RELATIVE_COMPOSITION): Fix
15691 condition to terminate the loop.
15692
156932008-02-01 Kenichi Handa <handa@m17n.org>
15694
15695 * coding.c (produce_composition): Compare charbuf[i] instead of
15696 args[i] against 0.
15697 (Fterminal_coding_system): Use EQ to compare Lisp objects.
15698
156992008-02-01 Kenichi Handa <handa@m17n.org>
15700
15701 * coding.c (DECODE_COMPOSITION_START): If the source is short, set
15702 coding->result to CODING_RESULT_INSUFFICIENT_SRC.
15703 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK after the call of
15704 detect_coding.
15705 (emacs_mule_char): Handle old style (Emacs 20) component character
15706 of a composition.
15707 (DECODE_EMACS_MULE_COMPOSITION_RULE_20)
15708 (DECODE_EMACS_MULE_20_RULEBASE_COMPOSITION): Fix parsing a
15709 composition rule.
15710 (decode_coding_emacs_mule): Handle invalid bytes correctly.
15711
157122008-02-01 Kenichi Handa <handa@m17n.org>
15713
15714 * coding.c (encode_coding_ccl): Allocate destination dynamically
15715 when necessary.
15716
157172008-02-01 Kenichi Handa <handa@m17n.org>
15718
15719 * ccl.c (Fccl_execute_on_string): Fix the condition of terminating
15720 the loop. When quitted, show a proper error message.
15721
157222008-02-01 Kenichi Handa <handa@m17n.org>
15723
15724 * xterm.c (x_set_glyph_string_clipping_exactly): Set
15725 src->clip_head and src->clip_tail temporarily instead of src->hl.
15726
15727 * ccl.c (CCL_WRITE_STRING): Handle a flag bit for multibyte
15728 character sequence.
15729 (Fccl_execute_on_string): Use ASET, not XSET.
15730
157312008-02-01 Kenichi Handa <handa@m17n.org>
15732
15733 * search.c (search_buffer): Fix handling of "\\" in a trivial regexp.
15734
157352008-02-01 Kenichi Handa <handa@m17n.org>
15736
15737 * coding.c (decode_coding): Fix the condition of terminating the
15738 decoding loop.
15739
157402008-02-01 Kenichi Handa <handa@m17n.org>
15741
15742 * data.c (Faset): On setting a character bigger than 255 in a
15743 unibyte string, signal an error instead of make the string multibyte.
15744
157452008-02-01 Kenichi Handa <handa@m17n.org>
15746
15747 * charset.c (map_charset_chars): Fix for ascii-compatible charset
15748 made by a mapping table.
15749
157502008-02-01 Kenichi Handa <handa@m17n.org>
15751
15752 * xdisp.c (fill_composite_glyph_string): Check s->face is NULL or
15753 not.
15754 (BUILD_COMPOSITE_GLYPH_STRING): If C is TAB, set s->face to NULL.
15755 (x_produce_glyphs): If CH is TAB, set cmp->offsets properly.
15756
15757 * xterm.c (x_draw_composite_glyph_string_foreground): Check
15758 s->face is NULL or not.
15759
157602008-02-01 Kenichi Handa <handa@m17n.org>
15761
15762 * xterm.c (x_set_glyph_string_clipping_exactly): New function.
15763 (x_draw_glyph_string): Fix drawing of right_overhang and
15764 left_overhang around/on cursor.
15765
15766 * xdisp.c (draw_glyphs): Fix inclusion of right_overwriting glyphs.
15767
157682008-02-01 Kenichi Handa <handa@m17n.org>
15769
15770 * xdisp.c (x_produce_glyphs): Handle composition with TAB.
15771
157722008-02-01 Kenichi Handa <handa@m17n.org>
15773
15774 * coding.c (Fdefine_coding_system_internal)
15775 (Fdefine_coding_system_alias): Avoid a duplicated element in
15776 Vcoding_system_alist.
15777
157782008-02-01 Kenichi Handa <handa@m17n.org>
15779
15780 * xterm.c (handle_one_xevent): Handle keysyms 0x1000000..0x10000FF.
15781
15782 * coding.c (Qcoding_system_define_form): New variable.
15783 (syms_of_coding): Intern and staticpro it.
15784 (Fcoding_system_p): Check Qcoding_system_define_form.
15785 (Fcheck_coding_system): Try to autoload the definition of CODING-SYSTEM.
15786
15787 * coding.h (CODING_SYSTEM_P): If ID is not available, call
15788 Fcoding_system_p.
15789 (CHECK_CODING_SYSTEM): If ID is not available, call
15790 Fcheck_coding_system.
15791 (CHECK_CODING_SYSTEM_GET_SPEC, CHECK_CODING_SYSTEM_GET_ID):
15792 Try also Fcheck_coding_system.
15793
157942008-02-01 Kenichi Handa <handa@m17n.org>
15795
15796 * coding.c (code_conversion_restore): GCPRO arg.
15797
157982008-02-01 Kenichi Handa <handa@m17n.org>
15799
15800 * character.c (lisp_string_width): Check multibyteness of STRING.
15801
158022008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15803
15804 * macterm.c (mac_encode_char): Call ccl_driver with the last arg
15805 Qnil. Use JIS_TO_SJIS instead of ENCODE_SJIS.
15806 (decode_mac_font_name): Use decode_coding_c_string instead of
15807 decode_coding.
15808 (x_load_font): Initialize fontp->fontset to -1. Set
15809 fontp->encoding_type.
15810
158112008-02-01 Kenichi Handa <handa@m17n.org>
15812
15813 * search.c (search_buffer): Give up BM search on case-fold-search
15814 if one of a target character has a case-equivalence of different
15815 byte length even if that target charcter is an ASCII.
15816 (simple_search): Fix calculation of byte length of matched text.
15817 (boyer_moore): Fix handling of case-equivalent multibyte characters.
15818
158192008-02-01 Kenichi Handa <handa@m17n.org>
15820
15821 * coding.c (decode_coding): Fix handling of invalid bytes.
15822
158232008-02-01 Kenichi Handa <handa@m17n.org>
15824
15825 * xterm.c (handle_one_xevent): Handle keysyms directly mapped to
15826 Unicode characters.
15827
158282008-02-01 Kenichi Handa <handa@m17n.org>
15829
15830 * coding.c (encode_coding_object): If a pre-write-conversion
15831 function makes a new buffer, kill it.
15832
158332008-02-01 Kenichi Handa <handa@m17n.org>
15834
15835 * coding.c (QCascii_compatible_p): New variable.
15836 (syms_of_coding): Initialize it.
15837 (ONE_MORE_BYTE, ONE_MORE_BYTE_NO_CHECK): Decrement `src' before
15838 calling string_char.
15839 (record_conversion_result): Add `default:' case.
15840 (coding_charset_list): Delete unused variable `coding_type'.
15841 (Fdefine_coding_system_internal): Add `ascii-compatible-p'
15842 property in the plist of the coding system.
15843 (Fcoding_system_put): Check QCascii_compatible_p.
15844
158452008-02-01 Miles Bader <miles@gnu.org>
15846
15847 * xfaces.c (Finternal_lisp_face_equal_p): Restore previously
15848 removed calculation of frame `f', as it's now used.
15849
158502008-02-01 Kenichi Handa <handa@m17n.org>
15851
15852 * Makefile.in (RUN_TEMACS): Include "-nl" if HAVE_SHM is defined.
15853 (emacs${EXEEXT}): Run $(RUN_TEMACS) unconditionally.
15854 (UNIDATA): New variable.
15855 (${lispsource}international/charprop.el): Depends on ${UNIDATA}.
15856 (bootstrap-emacs${EXEEXT}): Depends on charprop.el. Run
15857 $(RUN_TEMACS) unconditionally.
15858
158592008-02-01 Kenichi Handa <handa@m17n.org>
15860
15861 * Makefile.in (temacs${EXEEXT}): Build charprop.el if necessary.
15862 (admindir): New variable.
15863 ($(lispsource)international/charprop.el): New target.
15864
158652008-02-01 Miles Bader <miles@gnu.org>
15866
15867 * character.c (chars-in-region): Remove obsolete function.
15868 (syms_of_character): Remove its initialization.
15869
158702008-02-01 Benjamin Riefenstahl <b.riefenstahl@turtle-trading.net>
15871
15872 * w32select.c (validate_coding_system)
15873 (setup_windows_coding_system): New functions.
15874 (convert_to_handle_as_coded, Fw32_get_clipboard_data): Use
15875 setup_windows_coding_system.
15876 (setup_config, Fw32_get_clipboard_data): Use
15877 validate_coding_system.
15878 (Fx_selection_exists): Move call to setup_config to a place
15879 where signals are allowed.
15880
15881 * lisp.h (Fcoding_system_base, Fcoding_system_eol_type)
15882 (Fcheck_coding_system): Add declarations.
15883
158842008-02-01 Kenichi Handa <handa@m17n.org>
15885
15886 * charset.c (load_charset_map_from_vector): Fix for the first iteration.
15887
158882008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15889
15890 * macfns.c (Fx_create_frame, x_create_tip_frame): Pass Lisp
15891 string as the second argument for x_new_fontset.
15892
158932008-02-01 Kenichi Handa <handa@m17n.org>
15894
15895 * coding.c (decode_coding_object): Use safe_call1 instead of call1.
15896 (encode_coding_object): Use safe_call instead of call2.
15897
158982008-02-01 Kenichi Handa <handa@m17n.org>
15899
15900 * fontset.c (Fset_fontset_font): Check family element of a given vector.
15901
15902 * Makefile.in (lisp): Include charprop.el.
15903
159042008-02-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
15905
15906 * macfns.c (Fx_create_frame, x_create_tip_frame): Fix crash.
15907 Not sure if it's unnecessary.
15908
159092008-02-01 Steven Tamm <steventamm@mac.com>
15910
15911 * macfns.c (Fx_create_frame, x_create_tip_frame): ifdef'd out
15912 some possibly unnecessary fontset checking code that crashed
15913 when creating a new frame.
15914
159152008-02-01 Kenichi Handa <handa@m17n.org>
15916
15917 * xfaces.c (merge_faces): Fix argument to lookup_derived_face and
15918 lookup_face.
15919
15920 * xdisp.c (Fformat_mode_line): Fix argument to lookup_named_face.
15921
15922 * fringe.c (draw_fringe_bitmap_1): Fix argument to lookup_named_face.
15923
159242008-02-01 Kenichi Handa <handa@m17n.org>
15925
15926 * coding.c: Cancel the change done in HEAD on 2008-02-01.
15927 (coding_charset_list): New function.
15928
15929 * coding.h (coding_charset_list): Extern it.
15930
159312008-02-01 Kenichi Handa <handa@m17n.org>
15932
15933 * fontset.c (Fset_fontset_font): Call find_font_encoding with
15934 concatenation of family and registry.
15935
159362008-02-01 Kenichi Handa <handa@m17n.org>
15937
15938 * character.h (BYTE8_STRING): Fix typo.
15939
15940 * editfns.c (Ftranslate_region_internal): Don't convert unibyte
15941 string to multibyte (sync to HEAD).
15942
15943 * casefiddle.c (casify_region): Handle changes in byte-length
15944 using replace_range_2 (sync to HEAD).
15945
159462008-02-01 Andreas Schwab <schwab@suse.de>
15947
15948 * chartab.c (map_char_table): GCPRO table and arg.
15949
159502008-02-01 Kenichi Handa <handa@m17n.org>
15951
15952 * syntax.c (skip_syntaxes): Return lispy 0 (not nil) if point is
15953 already at limit.
15954
159552008-02-01 Kenichi Handa <handa@m17n.org>
15956
15957 * fontset.c (fs_load_font): Use fast_string_match_ignore_case
15958 instead of fast_c_string_match_ignore_case.
15959 (find_font_encoding): Change argument to Lisp_Object. Use
15960 fast_string_match_ignore_case instead of
15961 fast_c_string_match_ignore_case. Change caller.
15962
159632008-02-01 Kenichi Handa <handa@m17n.org>
15964
15965 * xdisp.c (get_next_display_element): In unibyte case, decide to
15966 display in octal form by checking a character by
15967 UNIBYTE_CHAR_HAS_MULTIBYTE_P.
15968
15969 * charset.c (Fset_unibyte_charset): Setup unibyte_has_multibyte_table.
15970
15971 * character.c (unibyte_has_multibyte_table): New variable.
15972
15973 * character.h (unibyte_has_multibyte_table): Extern it.
15974 (UNIBYTE_CHAR_HAS_MULTIBYTE_P): New macro.
15975
159762008-02-01 Kenichi Handa <handa@m17n.org>
15977
15978 * coding.c (encode_coding_iso_2022): Fix handling of charset
15979 annotation.
15980
159812008-02-01 Kenichi Handa <handa@m17n.org>
15982
15983 * coding.c (setup_coding_system): If coding_system is nil, use
15984 Qundecided.
15985 (Fterminal_coding_system): Return nil if terminal coding system is
15986 `undecided'.
15987 (syms_of_coding): Define coding-system `undecided' here. Setup
15988 terminal_coding as `undecided'.
15989
159902008-02-01 Kenichi Handa <handa@m17n.org>
15991
15992 * xdisp.c (message_dolog, set_message_1): Call
15993 unibyte_char_to_multibyte with arg type int.
15994
15995 * lread.c (read1): Fix reading of a char-table.
15996
15997 * print.c (print_object): Include sub char-table in circularities
15998 detection.
15999
160002008-02-01 Kenichi Handa <handa@m17n.org>
16001
16002 * keymap.c (where_is_internal_2): Fix for the case that KEY is a cons.
16003 Append the found sequences in car of ARGS instead of prepending.
16004
160052008-02-01 Kenichi Handa <handa@m17n.org>
16006
16007 * fileio.c (report_file_error): Make a unibyte string from
16008 strerror (errorno).
16009 (Fsubstitute_in_file_name): Fix the arg to
16010 unibyte_char_to_multibyte. It is evaluated twice.
16011
160122008-02-01 Kenichi Handa <handa@m17n.org>
16013
16014 * charset.h (CHAR_CHARSET): Shortcut for ASCII case.
16015
160162008-02-01 Kenichi Handa <handa@m17n.org>
16017
16018 * coding.c (detect_coding_utf_16): Don't set detect_info->found if
16019 BOM is not found.
16020 (detect_coding, detect_coding_system): Optimization for ISO-2022
16021 when no 8-bit data is found.
16022
160232008-02-01 Jason Rumney <jasonr@gnu.org>
16024
16025 * w32fns.c (x_to_w32_font): Update to use new coding struct.
16026
160272008-02-01 Kenichi Handa <handa@m17n.org>
16028
16029 * charset.c (Fdeclare_equiv_charset, Fiso_charset): Fix handing of
16030 CHARS.
16031
160322008-02-01 Steven Tamm <steventamm@mac.com>
16033
16034 * macterm.c (mac_encode_char): Add charset argument and update
16035 to use encoding_type.
16036 (x_new_font, x_new_fontset): Merge in changes from xterm.c;
16037 switch to pure fontset.
16038 (decode_mac_font_name): Temporarily remove decoding.
16039 (x_font_name_to_mac_font_name): Temporarily remove encoding.
16040 (x_load_font): Temporarily remove encoding.
16041
160422008-02-01 Kenichi Handa <handa@m17n.org>
16043
16044 * xfaces.c (Fface_font): If frame is not on a window system,
16045 ignore CHARACTER arg. If HAVE_WINDOW_SYSTEM is not defined, don't
16046 refer to face->font.
16047 (split_font_name_into_vector, build_font_name_from_vector)
16048 (lookup_non_ascii_face, realize_non_ascii_face): Define them only
16049 when HAVE_WINDOW_SYSTEM is defined.
16050
160512008-02-01 Kenichi Handa <handa@m17n.org>
16052
16053 * xdisp.c (BUILD_GLYPH_STRINGS): Check if s is NULL.
16054 (x_produce_glyphs): Fix setting of members of cmp in case
16055 cmp->glyph_len is zero.
16056
16057 * fontset.c (Fset_fontset_font): Fix docstring.
16058 (Ffontset_info): Make it backward compatible. New arg ALL.
16059
160602008-02-01 Kim F. Storm <storm@cua.dk>
16061
16062 * process.c (read_process_output): Grow decoding_buf when needed;
16063 this could cause a crash in allocate_string and compact_small_strings.
16064
160652008-02-01 Kenichi Handa <handa@m17n.org>
16066
16067 * fileio.c (WRITE_BUF_SIZE): Delete this macro.
16068
160692008-02-01 Kenichi Handa <handa@m17n.org>
16070
16071 * coding.c (setup_coding_system): Set coding->common_flags
16072 correctly for raw-text.
16073 (consume_chars): On encoding unibyte text by raw-text, don't check
16074 multibyte form.
16075 (encode_coding): On encoding by raw-text, never use translation tables.
16076
16077 * fileio.c (e_write): Short cut for the case of no encoding.
16078
160792008-02-01 Kenichi Handa <handa@m17n.org>
16080
16081 * coding.c (detect_coding, detect_coding_system): Delete unused
16082 variables.
16083
160842008-02-01 Kenichi Handa <handa@m17n.org>
16085
16086 * coding.c (encode_coding_utf_8): Fix handling of raw-byte char.
16087 (consume_chars): Fix handling of 8-bit bytes in unibyte source.
16088
160892008-02-01 Kenichi Handa <handa@m17n.org>
16090
16091 * coding.c (Ffind_coding_systems_region_internal): Include
16092 raw-text and no-conversion in the result.
16093
160942008-02-01 Kenichi Handa <handa@m17n.org>
16095
16096 * fontset.c (find_font_encoding): Return `ascii' for unknown encoding.
16097 (load_font_get_repertory): Delete unnecessary check of ENCODING of
16098 FONT_DEF.
16099 (font_def_arg, add_arg, from_arg, to_arg): New args.
16100 (set_fontset_font): Change argument.
16101 (Fset_fontset_font): Fix for the case that TARGET is a script
16102 name and charset name.
16103 (new_fontset_from_font_name): Fix argument to Fnew_fontset.
16104
161052008-02-01 Kenichi Handa <handa@m17n.org>
16106
16107 * fontset.c (fontset_font): Rename from fontset_face. Change return
16108 value.
16109 (face_suitable_for_char_p, face_for_char): Adjust for the change
16110 of fontset_font.
16111 (make_fontset_for_ascii_face): Fix setting of the fontset element
16112 for ASCII.
16113 (Finternal_char_font): Use fontset_font instead of FACE_FOR_CHAR
16114 to get a font name.
16115 (Ffontset_info): Adjust for the change of fontset_font.
16116
16117 * coding.c (emacs_mule_char): Check invalid code more rigidly.
16118
16119 * character.h (LEADING_CODE_LATIN_1_MIN)
16120 (LEADING_CODE_LATIN_1_MAX): Delete these macros.
16121
161222008-02-01 Kenichi Handa <handa@m17n.org>
16123
16124 * editfns.c (check_translation): New function.
16125 (Ftranslate_region_internal): Handle M:N mapping.
16126
161272008-02-01 Kenichi Handa <handa@m17n.org>
16128
16129 * xfaces.c (xlfd_point_size): Set font->numeric[XLFD_PIXEL_SIZE].
16130
161312008-02-01 Kenichi Handa <handa@m17n.org>
16132
16133 * coding.c (DECODE_DESIGNATION): Set chars_96 to -1 instead of
16134 goto invalid_code.
16135 (decode_coding_iso_2022): Fix handling of invalid designation.
16136
16137 * fileio.c (Finsert_file_contents): Be sure to call unbind_to
16138 after calling code_conversion_save.
16139
161402008-02-01 Kenichi Handa <handa@m17n.org>
16141
16142 * xdisp.c (handle_auto_composed_prop): Fix Lisp_Object/int mixup.
16143
16144 * print.c (print_prune_string_charset): Fix Lisp_Object/int mixup.
16145
16146 * fontset.c: Include "intervals.h".
16147 (fontset_face): Fix comparing of Lisp_Objects.
16148 (free_face_fontset, new_fontset_from_font_name): Fix
16149 Lisp_Object/int mixup.
16150
16151 * editfns.c (Ftranslate_region_internal): Fix Lisp_Object/int mixup.
16152
16153 * coding.c: Add many prototypes for static functions.
16154 (get_translation_table): Allow max_lookup to be NULL.
16155 (decode_coding, Ffind_coding_systems_region_internal)
16156 (Funencodable_char_position, Fcheck_coding_systems_region): Call
16157 get_translation_table with max_lookup NULL.
16158
161592008-02-01 Kenichi Handa <handa@m17n.org>
16160
16161 * coding.c (get_translation_table): Declare it as Lisp_Object.
16162 (LOOKUP_TRANSLATION_TABLE): New macro.
16163 (produce_chars, consume_chars): Use LOOKUP_TRANSLATION_TABLE
16164 instead of CHAR_TABLE_REF.
16165
161662008-02-01 Kenichi Handa <handa@m17n.org>
16167
16168 * coding.c (MAX_ANNOTATION_LENGTH): Adjust for the change of
16169 annotation data format.
16170 (ADD_ANNOTATION_DATA, ADD_COMPOSITION_DATA, ADD_CHARSET_DATA):
16171 Change arguments FROM and TO to single argument NCHARS. Change caller.
16172 (decode_coding_utf_8, decode_coding_utf_16, decode_coding_emacs_mule)
16173 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
16174 (decode_coding_ccl, decode_coding_charset): Pay attention to
16175 coding->charbuf_used.
16176 (get_translation): New function.
16177 (produce_chars): New arguments translation_table and last_block.
16178 Translate characters here. Return number of carryover chars.
16179 Change caller.
16180 (produce_composition): New argument pos. Change caller.
16181 Adjust for the change of annotation data format.
16182 (produce_charset, produce_annotation): Likewise.
16183 (decode_coding, encode_coding): Don't call translate_chars.
16184 (consume_chars): New arg translation_table. Change caller.
16185 (translate_chars): Delete.
16186 (syms_of_coding): Make translation-table's number of extra slots 2.
16187
161882008-02-01 Kenichi Handa <handa@m17n.org>
16189
16190 * search.c (simple_search): Fix setting this_pos_byte in backward
16191 search.
16192
16193 * coding.c (detect_coding_emacs_mule): Fix counting of encoded
16194 byte sequence.
16195 (detect_coding_ccl): Fix setting of the variable valids.
16196
161972008-02-01 Kenichi Handa <handa@m17n.org>
16198
16199 * xterm.c (x_list_fonts): Fix the detection of an auto-scaled font.
16200
16201 * coding.c (decode_coding_utf_16): Fix handling of surrogate pair.
16202
16203 * editfns.c (Ftranslate_region_internal): Rename from
16204 Ftranslate_region. Accept a char-table in TABLE.
16205 (syms_of_editfns): Defsubr Stranslate_region_internal.
16206
16207 * xfaces.c (set_lface_from_font_name): If a font is specified for
16208 a frame, generate a fontset from the font.
16209 (build_scalable_font_name): If the scalable font is requested for
16210 a specific size, don't change that size.
16211 (try_font_list): Try a scalable font also in the case that a
16212 pattern string is specified.
16213
162142008-02-01 Kenichi Handa <handa@m17n.org>
16215
16216 * xfaces.c (Fface_font): New optional arg CHARACTER.
16217
162182008-02-01 Kenichi Handa <handa@m17n.org>
16219
16220 * charset.h (CHARSET_OFFSET): New macro.
16221
162222008-02-01 Kenichi Handa <handa@m17n.org>
16223
16224 * xterm.c (x_get_font_repertory): Fix for non-Unicode-bmp charset.
16225
16226 * fontset.c (fontset_face): Handle the case that repertory is a
16227 char-table.
16228 (find_font_encoding): Return nil for unknown encoding.
16229 (Fset_fontset_font): Ignore a font of unknown encoding.
16230
162312008-02-01 Kenichi Handa <handa@m17n.org>
16232
16233 * keymap.c (describe_vector): Handle default value of a char table.
16234
16235 * fontset.c (fontset_face): Handle fallback fonts correctly.
16236 (Ffontset_info): Return infomation about fallback fonts.
16237
162382008-02-01 Kenichi Handa <handa@m17n.org>
16239
16240 * fontset.c (FONTSET_DEFAULT): New macro.
16241 (FONTSET_ADD, fontset_add): Handle the case that range is nil.
16242 (Fset_fontset_font): Change the 2nd arg name to TARGET, and handle
16243 the case that it is nil.
16244 (dump_fontset): Call FONTSET_DEFAULT, not FONTSET_FALLBACK.
16245 (syms_of_fontset): Set char-table-extra-slots property of fontset to 9.
16246
16247 * charset.h (CHAR_CHARSET_P): Fix for the case that the method is
16248 subset or superset.
16249
162502008-02-01 Kenichi Handa <handa@m17n.org>
16251
16252 * emacs.c (main): Call init_charset after syms_of_XXX.
16253
16254 * charset.c (Vcharset_map_directory): Delete.
16255 (Vcharset_map_path): New variable.
16256 (load_charset_map_from_file): Use Vcharset_map_path instead.
16257 (init_charset): Initialize Vcharset_map_path.
16258 (syms_of_charset): Delete declaration of "charset-map-directory",
16259 add declaration of "charset-map-path".
16260
162612008-02-01 Kenichi Handa <handa@m17n.org>
16262
16263 * fns.c (string_char_to_byte, string_byte_to_char): Optimize for
16264 ASCII only string.
16265
16266 * fileio.c (Finsert_file_contents): Avoid detecting a code twice.
16267
16268 * coding.c (detect_coding_iso_2022): Fix handling of SS2 and SS3.
16269 (detect_coding, detect_coding_system): Treat '\0' as normal ASCII byte.
16270
162712008-02-01 Kenichi Handa <handa@m17n.org>
16272
16273 * coding.h (SJIS_TO_JIS2, JIS_TO_SJIS2): New macros.
16274
16275 * coding.c (QCmnemonic, QCdefalut_char)
16276 (QCdecode_translation_table, QCencode_translation_table)
16277 (QCpost_read_conversion, QCpre_write_conversion): New variables.
16278 (get_translation_table): Return a list of translation tables if
16279 necessary.
16280 (decode_coding): Call get_translation_table with ENCODEP 0.
16281 (char_encodable_p): If translation_table is non-nil, always call
16282 translate_char.
16283 (Fdefine_coding_system_internal): Accept list of translation
16284 tables as :encode-translation-table and :decode-translation-table.
16285 (Fcoding_system_put): New function.
16286 (syms_of_coding): Declare new symbols. Defsubr
16287 Scoding_system_put.
16288 (decode_coding_sjis, encode_coding_sjis): Handle 4th charset,
16289 typically JISX0212.
16290
16291 * charset.c (map_charset_chars): Fix arg to map_charset_chars in
16292 when the charset is superset type.
16293
16294 * character.c (translate_char): Accept list of translation tables.
16295
162962008-02-01 Kenichi Handa <handa@m17n.org>
16297
16298 * coding.h (enum coding_attr_index): New member coding_attr_trans_tbl.
16299 (CODING_ATTR_TRANS_TBL): New macro.
16300
16301 * coding.c (get_translation_table): New function.
16302 (translate_chars): Fix the bug of skipping annotation data.
16303 (decode_coding, encode_coding): Utilize get_translation_table.
16304 (char_encodable_p, Funencodable_char_position): Translate char if
16305 necessary.
16306 (Ffind_coding_systems_region_internal)
16307 (Fcheck_coding_systems_region): Setup translation table for encode
16308 in a coding system attribute vector in advance.
16309 (Fdefine_coding_system_internal): Allow a symbol as translation
16310 table. For shift-jis type coding system, allow 4th charset.
16311
163122008-02-01 Kenichi Handa <handa@m17n.org>
16313
16314 * coding.c (decode_coding_sjis): Check the first byte rigidly.
16315
16316 * xdisp.c (get_next_display_element): Pass -1 as POS to
16317 FACE_FOR_CHAR if displaying a C-string.
16318
163192008-02-01 Kenichi Handa <handa@m17n.org>
16320
16321 * composite.c (get_composition_id): Handle xoff and yoff in a
16322 composition rule.
16323
16324 * composite.h (COMPOSITION_DECODE_RULE): New arg xoff and yoff.
16325 (struct composition): New member lbearing and rbearing.
16326
16327 * xdisp.c (move_it_to): Optimize for the case (op & MOVE_TO_Y).
16328 (x_get_glyph_overhangs): Handle a composition glyph.
16329 (x_produce_glyphs): Setup lbearing and rbreaing for a composition glyph.
16330
16331 * xterm.c (x_compute_glyph_string_overhangs): Handle also a
16332 composition glyph.
16333
163342008-02-01 Kenichi Handa <handa@m17n.org>
16335
16336 * print.c: Include charset.h.
16337 (Vprint_charset_text_property): New variable.
16338 (Qdefault): Extern it.
16339 (PRINT_STRING_NON_CHARSET_FOUND)
16340 (PRINT_STRING_UNSAFE_CHARSET_FOUND): New macros.
16341 (print_check_string_result): New variable.
16342 (print_check_string_charset_prop): New function.
16343 (print_prune_charset_plist): New variable.
16344 (print_prune_string_charset): New function.
16345 (print_object): Call print_prune_string_charset if
16346 Vprint_charset_text_property is not t.
16347 (print_interval): Print nothing if interval->plist is nil.
16348 (syms_of_print): Declare Vprint_charset_text_property as a lisp
16349 variable. Init and staticpro print_prune_charset_plist.
16350
163512008-02-01 Kenichi Handa <handa@m17n.org>
16352
16353 * fontset.c (new_fontset_from_font_name): Use the specified font
16354 for all characters in the new fontset.
16355
16356 * macterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16357 OBJECT args.
16358
16359 * xdisp.c (x_produce_glyphs): Call FACE_FOR_CHAR with POS and
16360 OBJECT args for composition too.
16361
16362 * w32term.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with POS and
16363 OBJECT args.
16364
163652008-02-01 Kenichi Handa <handa@m17n.org>
16366
16367 * dispextern.h (FACE_FOR_CHAR): New args POS and OBJECT.
16368
16369 * fontset.c (reorder_font_vector): Adjust for the change of
16370 FONT_DEF format.
16371 (fontset_face): New arg id. Change caller.
16372 (face_for_char): New args pos and object.
16373 (make_fontset_for_ascii_face): Adjust for the change of FONT_DEF format.
16374 (fs_query_fontset): Check NAME by Fassoc too.
16375 (Fset_fontset_font): Allow non-XLFD font name.
16376 (Ffontset_info): Adjust for the change of FONT_DEF format.
16377
16378 * fontset.h (face_for_char): Adjust prototype.
16379
16380 * xdisp.c (face_before_or_after_it_pos, get_next_display_element)
16381 (append_space, extend_face_to_end_of_line)
16382 (get_char_face_and_encoding, BUILD_COMPOSITE_GLYPH_STRING)
16383 (x_produce_glyphs): Call FACE_FOR_CHAR with POS and OBJECT args.
16384
16385 * xfaces.c (compute_char_face): Call FACE_FOR_CHAR with
16386 POS and OBJECT args.
16387
16388 * xterm.c (x_set_mouse_face_gc): Call FACE_FOR_CHAR with
16389 POS and OBJECT args.
16390
163912008-02-01 Jason Rumney <jasonr@gnu.org>
16392
16393 * w32select.c (Fw32_set_clipboard_data): Avoid potential realloc
16394 of GlobalAlloc'ed memory.
16395
163962008-02-01 Kenichi Handa <handa@m17n.org>
16397
16398 * ccl.c (Fccl_execute_on_string): Fix the condition of loop.
16399
16400 * charset.h (charset_table_used): Delete extern.
16401
16402 * charset.c (charset_table_used): Make it static.
16403 (map_charset_chars): Fix args to c_function with.
16404
16405 * chartab.c (map_sub_char_table_for_charset): Fix args to
16406 c_function with.
16407
16408 * coding.h (enum coding_result_code): Delete
16409 CODING_RESULT_INSUFFICIENT_CMP, add CODING_RESULT_INVALID_SRC.
16410
16411 * coding.c (Qinsufficient_source, Qinconsistent_eol)
16412 (Qinvalid_source, Qinterrupted, Qinsufficient_memory): New variables.
16413 (Vlast_code_conversion_error): New variables.
16414 (syms_of_coding): DEFSYM or DEFVAR_LISP them.
16415 (ONE_MORE_BYTE): Record error if any instead of signaling an
16416 error. If non-ASCII multibyte char is found, return the negative
16417 value of the code. All callers changed to check it.
16418 (ONE_MORE_BYTE_NO_CHECK): Likewise.
16419 (record_conversion_result): New function. Change all codes setting
16420 coding->result to call this function.
16421 (detect_coding_utf_8, decode_coding_utf_8)
16422 (detect_coding_emacs_mule, detect_coding_sji, detect_coding_big5):
16423 Don't use the local variable incomplete.
16424 (emacs_mule_char): Change the second arg to `const'.
16425 (decode_coding): Fix of flushing out unprocessed data.
16426 (make_conversion_work_buffer): Fix making of a work buffer.
16427 (decode_coding_object): Return coding->dst_object.
16428
16429 * fontset.c (set_fontset_font): Fix args.
16430
16431 * lisp.h (CHARACTERBITS): Define as 22.
16432
16433 * process.c (send_process): Be sure to set coding->src_multibyte.
16434
16435 * xdisp.c (handle_auto_composed_prop): Fix setting of limit.
16436
164372008-02-01 Kenichi Handa <handa@m17n.org>
16438
16439 * xdisp.c (handle_auto_composed_prop): Give limit to
16440 Fnext_single_char_property_change.
16441
164422008-02-01 Kenichi Handa <handa@m17n.org>
16443
16444 * composite.c (syms_of_composite): Don't make the composition hash
16445 table weak.
16446
16447 * fontset.c (Fset_fontset_font): Fix docstring.
16448
16449 * lisp.h (detect_coding_system): Adjust prototype.
16450
16451 * fileio.c (kill_workbuf_unwind): Delete this function.
16452 (Finsert_file_contents): Adjust the call of detect_coding_system.
16453 Get conversion_buffer by code_conversion_save. Use the macro
16454 CODING_MAY_REQUIRE_DECODING. After decoding, update
16455 coding_system.
16456
16457 * coding.h (make_conversion_work_buffer): Delete extern.
16458 (code_conversion_save): Extern it.
16459
16460 * coding.c (enum iso_code_class_type): Delete ISO_carriage_return.
16461 (CODING_GET_INFO): Delete argument eol_type. Change callers.
16462 (decode_coding_utf_8): Don't do eol converion.
16463 (detect_coding_utf_16): Check coding->src_chars, not
16464 coding->src_bytes. Add heuristics for those that have no signature.
16465 (decode_coding_emacs_mule, decode_coding_iso_2022)
16466 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
16467 Don't do eol converion.
16468 (adjust_coding_eol_type): Return a new coding system.
16469 (detect_coding): Don't detect eol. Fix for utf-16 detection.
16470 (decode_eol): In case of CRLF->LF conversion, use del_range_2 on
16471 each change.
16472 (decode_coding): Pay attention to undo_list. Do eol conversion for
16473 all types of coding-systems (if necessary).
16474 (Vcode_conversion_work_buf_list): Delete it.
16475 (Vcode_conversion_reused_workbuf): Rename from
16476 Vcode_conversion_reused_work_buf.
16477 (Vcode_conversion_workbuf_name): New variable.
16478 (reused_workbuf_in_use): New variable.
16479 (make_conversion_work_buffer): Delete the arg DEPTH.
16480 (code_conversion_restore): Change argument to cons.
16481 (code_conversion_save): Delete the argument BUFFER. Change callers.
16482 (detect_coding_system): New argument src_chars. Change callers.
16483 Fix for utf-16 detection.
16484 (init_coding_once): Don't use ISO_carriage_return.
16485 (syms_of_coding): Initialize Vcode_conversion_workbuf_name and
16486 reused_workbuf_in_use.
16487
164882008-02-01 Kenichi Handa <handa@m17n.org>
16489
16490 * keymap.c (store_in_keymap): Pay attention to the case that idx
16491 is a cons specifying a character range.
16492
164932008-02-01 Kenichi Handa <handa@m17n.org>
16494
16495 * xdisp.c (handle_auto_composed_prop): Fix the case of returning
16496 HANDLED_RECOMPUTE_PROPS.
16497
16498 * coding.c (Fdefine_coding_system_internal): Fix checking of
16499 ascii compatibility.
16500
165012008-02-01 Kenichi Handa <handa@m17n.org>
16502
16503 * charset.c (find_charsets_in_text): Delete unused locale variable.
16504 (Fset_charset_priority): Update Vemacs_mule_charset_list too.
16505
16506 * coding.c (encode_coding_emacs_mule): Emit bytes with MSB.
16507 Resync charset_list to Vemacs_mule_charset_list.
16508
16509 * keymap.c (store_in_keymap): Pay attention to the case that idx
16510 is a cons specifying a character range.
16511
165122008-02-01 Kenichi Handa <handa@m17n.org>
16513
16514 * composite.c (update_compositions): Bind inhibit-read-only, etc
16515 to t before calling remove-list-of-text-properties.
16516
16517 * print.c (print_object): Always print ASCII chars as is.
16518
165192008-02-01 Kenichi Handa <handa@m17n.org>
16520
16521 * keymap.c (Fdefine_key): Fix handling of Lucid style event type list.
16522
16523 * fns.c (Fmapconcat, Fmapcar, Fmapc): Signal an error if SEQUENCE
16524 is a char table.
16525
165262008-02-01 Kenichi Handa <handa@m17n.org>
16527
16528 * syntax.c (skip_chars): Be sure to alloca char_ranges when necessary.
16529
165302008-02-01 Kenichi Handa <handa@m17n.org>
16531
16532 * xfaces.c (set_lface_from_font_name): Fix for the case that
16533 FONTNAME is not fontset name.
16534
165352008-02-01 Kenichi Handa <handa@m17n.org>
16536
16537 * fns.c (base64_encode_1): Fix previous change.
16538
165392008-02-01 Kenichi Handa <handa@m17n.org>
16540
16541 * fontset.c (set_fontset_font): New function.
16542 (Fset_fontset_font): If a font is specified for a charset, use
16543 map_charset_chars to store the font spec in a fontset.
16544
165452008-02-01 Kenichi Handa <handa@m17n.org>
16546
16547 * fontset.c (fontset_face): Create a fallback fontset on demand.
16548 (make_fontset): Don't create a fallback fontset here.
16549 (free_face_fontset): Free a fallback fontset (if any) too.
16550 (n_auto_fontsets): Delete this variable.
16551 (auto_fontset_alist): New variable.
16552 (new_fontset_from_font_name): Check auto_fontset_alist.
16553 (dump_fontset) [FONTSET_DEBUG]: Fully re-written.
16554 (Ffontset_list_all) [FONTSET_DEBUG]: New function.
16555 (syms_of_fontset): Initialize and staticpro auto_fontset_alist.
16556 Defsubr Sfontset_list_all.
16557
165582008-02-01 Kenichi Handa <handa@m17n.org>
16559
16560 * xterm.c (x_list_fonts): Fix excluding of auto-scaled fonts.
16561
165622008-02-01 Kenichi Handa <handa@m17n.org>
16563
16564 * fontset.c (Fnew_fontset): Check NAME more rigidly.
16565
165662008-02-01 Kenichi Handa <handa@m17n.org>
16567
16568 * editfns.c (Fgoto_char): Fix docstring.
16569
165702008-02-01 Kenichi Handa <handa@m17n.org>
16571
16572 * insdel.c (insert_from_gap): Adjust intervals correctly.
16573
165742008-02-01 Jason Rumney <jasonr@gnu.org>
16575
16576 * w32term.c (GLYPHSET, WCRANGE): Define if system headers don't.
16577 (pfnGetFontUnicodeRanges): New dynamically loaded function.
16578 (w32_initialize): Try to load it.
16579 (x_get_font_repertory): Use it if available.
16580 (w32_encode_char): Add shortcut for unicode output.
16581
16582 * w32fns.c (w32_load_system_font): Default charset to -1.
16583 (x_to_w32_charset): Match all fonts for unicode.
16584 (w32_to_x_charset): New parameter matching. Don't return partial
16585 or wildcard charsets.
16586 (w32_to_all_x_charsets): Don't return partial or wildcard charsets.
16587 (w32_codepage_for_font): Return CP_UNICODE for unicode.
16588 (w32_to_x_font): Match charset to real charset.
16589 (enum_font_cb2): Always list unicode versions.
16590
16591 * makefile.w32-in (temacs): Increase EMHEAP.
16592
165932008-02-01 Jason Rumney <jasonr@gnu.org>
16594
16595 * w32term.c (w32_encode_char): New charset parameter.
16596 font_info.encoding becomes encoding_type.
16597 (x_get_font_repertory): New function. Warning: stub only!
16598 (x_new_font): Return quickly if font already set.
16599 (x_new_fontset): fontsetname parameter is Lisp_Object.
16600 Use new fs_query_fontset. Try new_fontset_from_font_name.
16601 Use fontset_name for return value.
16602
16603 * w32term.h: Declare x_get_font_repertory.
16604
16605 * w32select.c (Fw32_set_clipboard_data): Use string_x_string_p in
16606 place of find_charset_in_text. Use encode_coding_object in place
16607 of encode_coding.
16608 (Fw32_get_clipboard_data): Use decode_coding_c_string in place of
16609 decode_coding.
16610
16611 * w32fns.c (Fx_create_frame, x_create_tip_frame): Use new version
16612 of x_new_fontset.
16613 (w32_load_system_font): Initialize charset as unicode.
16614 font_info.encoding becomes encoding_type.
16615 (w32_to_x_font): Use decode_coding_c_string in place of decode_coding.
16616 (x_to_w32_font): Use encode_coding_object in place of encode_coding.
16617 (syms_of_w32fns): Set get_font_repertory_func.
16618
16619 * w32console.c: Include character.h. Use terminal_encode_buffer
16620 from term.c.
16621 (write_glyphs): Use new version of encode_terminal_code. Use
16622 encode_coding_object in place of encode_coding.
16623
16624 * w32bdf.c (w32_load_bdf_font): Clear font_info before filling.
16625 encoding becomes encoding_type.
16626
16627 * term.c (terminal_encode_buffer): Make externally visible.
16628
16629 * makefile.w32-in: Add character.h dependancies.
16630 (character.o, chartab.o): New targets.
16631
166322008-02-01 Kenichi Handa <handa@m17n.org>
16633
16634 * fileio.c (Finsert_file_contents) [DOS_NT]: Use the macro
16635 CODING_ID_EOL_TYPE.
16636
166372008-02-01 Andreas Schwab <schwab@suse.de>
16638
16639 * coding.c (produce_chars): Revert last change.
16640
166412008-02-01 Kenichi Handa <handa@m17n.org>
16642
16643 * charset.h (charset_unicode): Extern it.
16644
16645 * charset.c (string_xstring_p): Check by (C >= 0x100).
16646 (find_charsets_in_text): Change format of the arc CHARSETS. New
16647 arg MULTIBYTE.
16648 (Ffind_charset_region, Ffind_charset_string): Adjust for the
16649 change of find_charsets_in_text.
16650 (Fsplit_char): Fix doc. Never return unknown.
16651
16652 * chartab.c (char_table_translate): Use CHARACTERP, not INTEGERP.
16653
16654 * coding.c (Fdefine_coding_system_alias): Update
16655 Vcoding_system_list.
16656
16657 * fontset.c (load_font_get_repertory): Pay attention to the case
16658 that ENCODING of a font is specified by a char-table.
16659
16660 * xterm.c (x_get_font_repertory): Handle the case that the
16661 encoding of font is other than Unicode.
16662
166632008-02-01 Kenichi Handa <handa@m17n.org>
16664
16665 * term.c (encode_terminal_code): Don't handle glyph-table. Check
16666 if a character is encodable by the terminal coding system. If
16667 not, produces proper number of `?'s. Update
16668 terminal_encode_buffer and terminal_encode_buf_size if necessary.
16669 (produce_glyphs): Check by CHAR_BYTE8_P, not SINGLE_BYTE_CHAR_P.
16670
166712008-02-01 Kenichi Handa <handa@m17n.org>
16672
16673 * term.c (terminal_encode_buffer, terminal_encode_buf_size): New
16674 variables.
16675 (encode_terminal_code): Change argument. Encode multiple
16676 characters at once. Store the result of encoding in
16677 terminal_encode_buffer.
16678 (write_glyphs, insert_glyphs): Adjust for the change of
16679 encode_terminal_code.
16680 (term_init): Initialize terminal_encode_buffer and
16681 terminal_encode_buf_size.
16682
16683 * coding.c (consume_chars): If coding->src_object is nil, don't
16684 check annotation.
16685
166862008-02-01 Kenichi Handa <handa@m17n.org>
16687
16688 * character.c (char_string): Use ASCII_CHAR_P instead of
16689 SINGLE_BYTE_CHAR_P.
16690
166912008-02-01 Kenichi Handa <handa@m17n.org>
16692
16693 * xdisp.c (handle_auto_composed_prop): Check if the last
16694 characters of auto-composed region is newly composed with the
16695 following characters.
16696 (handle_composition_prop): Fix checking of point being inside
16697 composition.
16698
166992008-02-01 Kenichi Handa <handa@m17n.org>
16700
16701 * fns.c (concat): Don't change multibyteness of the result by
16702 concatenating an 8-bit character.
16703
16704 * data.c (Faset): Check newelt by CHECK_CHARACTER. Don't change
16705 multibyteness of the result when newelt is an 8-bit character.
16706
167072008-02-01 Dave Love <fx@gnu.org>
16708
16709 * xmenu.c (find_and_call_menu_selection): Make menu_bar_items_used
16710 EMACS_INT.
16711
16712 * xfns.c (DefaultDepthOfScreen, x_encode_text): Remove unused vars.
16713
16714 * xfaces.c (face_numeric_value): Declare dim size_t.
16715 (Finternal_lisp_face_equal_p): Remove unused f.
16716
16717 * xdisp.c (BUILD_CHAR_GLYPH_STRINGS, display_and_set_cursor)
16718 (MATRIX_ROW): Remove unused vars.
16719 (draw_glyphs, x_insert_glyphs, fast_find_position)
16720 (fast_find_position, fast_find_string_pos): Use EMACS_INT for
16721 byte/char counts.
16722
16723 * regex.c (regex_compile): Remove unused var.
16724
16725 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
16726
16727 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap)
16728 (Faccessible_keymaps, where_is_internal): Remove unused vars.
16729
16730 * keyboard.c (cancel_hourglass_unwind): Return Qnil.
16731
16732 * frame.c (frame_name_fnn_p): Make len EMACS_INT.
16733
16734 * fileio.c (Fwrite_region): Remove unused var.
16735
16736 * dispnew.c (adjust_frame_glyphs_for_frame_redisplay)
16737 (adjust_frame_glyphs_for_window_redisplay): Remove unused ch_dim.
16738
16739 * composite.c (Fremove_list_of_text_properties): Declare.
16740
16741 * coding.c (inhibit_pre_post_conversion): Remove (unused).
16742 (alloc_destination, produce_chars): Use EMACS_INT for byte/char counts.
16743 (coding_inherit_eol_type): Remove unused attrs.
16744 (detect_coding): Cast arg of detect_eol.
16745
16746 * charset.c (syms_of_charset): Remove unused var p.
16747 (find_charsets_in_text, Ffind_charset_region): Use EMACS_INT for
16748 byte/char counts.
16749
16750 * casetab.c (set_case_table): Remove unused var.
16751
16752 * window.c (Fdisplay_buffer, Fframe_selected_window): Remove
16753 unused vars.
16754
167552008-02-01 Dave Love <fx@gnu.org>
16756
16757 * xterm.c (x_bitmap_mask): Declare.
16758
167592008-02-01 Dave Love <fx@gnu.org>
16760
16761 * xterm.c (x_term_init): Fix type error.
16762
16763 * lisp.h: Add Funibyte_char_to_multibyte.
16764
16765 * coding.c (Fread_coding_system): Fix arg of XSETSTRING.
16766 (Fset_coding_system_priority): Doc fix.
16767
16768 * ccl.c (ccl_driver): Fix arg of CHARACTERP.
16769
16770 * indent.c (check_composition): Make start and end EMACS_INT.
16771
16772 * character.c (lisp_string_width): Make ignore and end EMACS_INT.
16773
16774 * xdisp.c (handle_composition_prop, check_point_in_composition):
16775 Make buffer positions EMACS_INT.
16776
16777 * composite.c (find_composition, run_composition_function)
16778 (update_compositions, Ffind_composition_internal): Make buffer
16779 positions EMACS_INT.
16780
16781 * composite.h (find_composition, update_compositions): Make
16782 position args EMACS_INT.
16783
16784 * keyboard.c (adjust_point_for_property): Make beg and end EMACS_INT.
16785
16786 * intervals.c (get_property_and_range):
16787 * intervals.h (get_property_and_range): Make start and end EMACS_INT.
16788
16789 * unexalpha.c: Don't include varargs.h.
16790
167912008-02-01 Dave Love <fx@gnu.org>
16792
16793 * coding.h (ENCODE_UTF_8): New.
16794
16795 * Makefile.in (gtkutil.o): Depend on coding.h.
16796
16797 * coding.c (Fset_coding_system_priority): Doc fix.
16798
167992008-02-01 Kenichi Handa <handa@m17n.org>
16800
16801 * fileio.c (Finsert_file_contents): Call setup_coding_system in
16802 the case of auto saving.
16803
168042008-02-01 Andreas Schwab <schwab@suse.de>
16805
16806 * chartab.c (map_char_table, map_char_table_for_charset): Protect
16807 `range' from GC.
16808
168092008-02-01 Kenichi Handa <handa@m17n.org>
16810
16811 * coding.c (decode_coding_sjis): Check bytes more rigidly.
16812
168132008-02-01 Kenichi Handa <handa@m17n.org>
16814
16815 * fileio.c (choose_write_coding_system): Return a decided coding system.
16816 (Fwrite_region): Set Vlast_coding_system_used to the return value
16817 of choose_write_coding_system.
16818
168192008-02-01 Kenichi Handa <handa@m17n.org>
16820
16821 * charset.c (Fset_charset_priority): Pay attention to duplicated
16822 arguments.
16823
16824 * coding.c (QCcategory): New variable.
16825 (syms_of_coding): Defsym it. Set all elements of
16826 Vcoding_category_table and their symbol values.
16827 (Fset_coding_system_priority): Doc fix. Update symbol qvalues of
16828 coding-category-XXX, and coding-category-list.
16829 (Fdefine_coding_system_internal): Add category in the plist.
16830
168312008-02-01 Kenichi Handa <handa@m17n.org>
16832
16833 * callproc.c (Fcall_process): Handle carryover correctly.
16834
16835 * coding.c (decode_coding_iso_2022): Fix handling of invalid bytes.
16836 (raw_text_coding_system): Check NILP (coding_system).
16837 (coding_inherit_eol_type): Check NILP (coding_system) and
16838 NILP (parent).
16839 (consume_chars): Fix for the case of raw-text.
16840
16841 * process.c (read_process_output): Handle carryover correctly.
16842
168432008-02-01 Dave Love <fx@gnu.org>
16844
16845 * regex.c (re_search_2): Fix last change.
16846
168472008-02-01 Kenichi Handa <handa@m17n.org>
16848
16849 * regex.c (GET_CHAR_BEFORE_2): Check multibyte, not
16850 target_multibyte. Even in a unibyte case, return a converted
16851 multibyte char.
16852 (GET_CHAR_AFTER): New macro.
16853 (PATFETCH): Translate via multibyte char.
16854 (HANDLE_UNIBYTE_RANGE): Delete this macro.
16855 (SETUP_MULTIBYTE_RANGE): New macro.
16856 (regex_compile): Setup compiled code so that its multibyteness
16857 matches that of a target. Fix the handling of "[X-YZ]" using
16858 SETUP_MULTIBYTE_RANGE.
16859 (analyse_first) <charset>: For filling fastmap for all multibyte
16860 characters, don't check by BASE_LEADING_CODE_P.
16861 (re_search_2): Don't check RE_TARGET_MULTIBYTE_P (bufp). It is
16862 the same as RE_MULTIBYTE_P (bufp) now.
16863 (mutually_exclusive_p): Check by (! multibyte || IS_REAL_ASCII (c)).
16864 (TARGET_CHAR_AND_LENGTH): Delete this macro.
16865 (TRANSLATE_VIA_MULTIBYTE): New macro.
16866 (re_match_2_internal): Don't check RE_TARGET_MULTIBYTE_P (bufp).
16867 It is the same as RE_MULTIBYTE_P (bufp) now.
16868 <exactn>: Translate via multibyte.
16869 <anychar>: Fetch a character by RE_STRING_CHAR_AND_LENGTH. Don't
16870 translate it.
16871 <charset, charset_not>: Fetch a character by
16872 RE_STRING_CHAR_AND_LENGTH. Translate via multibyte.
16873 <duplicate>: Call bcmp_translate with the last arg `multibyte'.
16874 <wordbound, notwordbound, wordbeg, wordend, syntaxspec,
16875 notsyntaxspec, categoryspec, notcategoryspec> Fetch a character
16876 by GET_CHAR_AFTER.
16877 (bcmp_translate): Likewise.
16878
16879 * search.c (compile_pattern): Check the member target_multibyte,
16880 not the member multibyte of buf.
16881
16882 * lread.c (read1): While reading a string, set force_singlebyte
16883 and force_multibyte correctly.
16884
16885 * charset.c (Fset_unibyte_charset, init_charset_once): Fix setting
16886 up of unibyte_to_multibyte_table.
16887
168882008-02-01 Kenichi Handa <handa@m17n.org>
16889
16890 * coding.c (setup_coding_system): If coding has
16891 post-read-conversion or pre-write-conversion, set
16892 CODING_REQUIRE_DECODING_MASK and CODING_REQUIRE_ENCODING_MASK
16893 respectively.
16894 (decode_coding_gap): Run post-read-conversion if any.
16895
16896 * fileio.c (Finsert_file_contents): Even if we read into a
16897 unibyte buffer, check if we must decode the result or not.
16898
168992008-02-01 Kenichi Handa <handa@m17n.org>
16900
16901 * coding.c (make_conversion_work_buffer): Change the work buffer
16902 name to the same one as that of Emacs 21.
16903
169042008-02-01 Kenichi Handa <handa@m17n.org>
16905
16906 * coding.h (make_conversion_work_buffer): Adjust prototype.
16907 (code_conversion_restore): Don't extern it.
16908
16909 * coding.c (detected_mask): Delete unused variable.
16910 (decode_coding_iso_2022): Pay attention to the byte sequence of
16911 CTEXT extended segment, and retain those bytes as is.
16912 (decode_coding_ccl): Delete unused variable `valids'.
16913 (setup_coding_system): Delete unused variable `category'.
16914 (consume_chars): Delete unused variable `category'. Make it work
16915 for non-multibyte case.
16916 (make_conversion_work_buffer): Change argument.
16917 (saved_coding): Delete unused variable.
16918 (code_conversion_restore): Don't check saved_coding->destination.
16919 (code_conversion_save): New function.
16920 (decode_coding_gap, encode_coding_gap): Call code_conversion_save
16921 instead of record_unwind_protect.
16922 (decode_coding_object, encode_coding_object): Likewise. Recover PT.
16923 (detect_coding_system): Delete unused variable `mask'.
16924 (Fdefine_coding_system_internal): Delete unused variable id.
16925
16926 * fileio.c (kill_workbuf_unwind): New function.
16927 (Finsert_file_contents): On replacing, call
16928 make_conversion_work_buffer with correct args, and call
16929 record_unwind_protect with the first arg kill_workbuf_unwind.
16930
16931 * lisp.h (Fgenerate_new_buffer_name): EXFUN it.
16932
169332008-02-01 Kenichi Handa <handa@m17n.org>
16934
16935 * fontset.c (BASE_FONTSET_P): Check FONTSET_BASE, not FONTSET_NAME.
16936 (fontset_add): Fix for the case that TO is less than TO1.
16937 (Ffontset_info): Don't use fallback fontset on checking the
16938 default fontset.
16939 (dump_fontset): New function for debugging.
16940
16941 * coding.c (Fdefine_coding_system_internal): Fix for the case that
16942 coding_type is Qcharset.
16943
169442008-02-01 Kenichi Handa <handa@m17n.org>
16945
16946 * chartab.c (map_sub_char_table): New argument DEFAULT_VAL.
16947 (map_char_table): Don't inherit the value from the parent on
16948 initializing VAL. Adjust for the above change.
16949
169502008-02-01 Kenichi Handa <handa@m17n.org>
16951
16952 * coding.c (Qsignature, Qendian): Delete these variables.
16953 (syms_of_coding): Don't initialize them.
16954 (CATEGORY_MASK_UTF_16_AUTO): New macro.
16955 (detect_coding_utf_16): Add CATEGORY_MASK_UTF_16_AUTO in
16956 detect_info->found.
16957 (decode_coding_utf_16): Don't detect BOM here.
16958 (encode_coding_utf_16): Produce BOM if CODING_UTF_16_BOM (coding)
16959 is NOT utf_16_without_bom.
16960 (setup_coding_system): For a coding system of type utf-16, check
16961 if the attribute :endian is Qbig or not (not nil or not), and set
16962 CODING_REQUIRE_DETECTION_MASK if BOM detection is required.
16963 (detect_coding): If coding type is utf-16 and BOM detection is
16964 required, detect it.
16965 (Fdefine_coding_system_internal): For a coding system of type
16966 utf-16, check if the attribute :endian is Qbig or not (not nil or not).
16967
169682008-02-01 Kenichi Handa <handa@m17n.org>
16969
16970 * coding.c (coding_set_source): Fix for the case that the current
16971 buffer is different from coding->src_object.
16972 (decode_coding_object): Don't use the conversion work buffer if
16973 DST_OBJECT is a buffer.
16974
169752008-02-01 Dave Love <fx@gnu.org>
16976
16977 * lread.c (read_emacs_mule_char) [len==2]: Index
16978 emacs_mule_charset correctly.
16979
169802008-02-01 Dave Love <fx@gnu.org>
16981
16982 * coding.c (Qbig5, Vbig5_coding_system, CATEGORY_MASK_BIG5)
16983 (detect_coding_big5, decode_coding_big5, encode_coding_big5)
16984 (Fdecode_big5_char, Fencode_big5_char): Delete. (Big5 no longer
16985 treated specially.)
16986 (setup_coding_system, coding_category, CATEGORY_MASK_ANY)
16987 (detected_mask): Remove Big5 bits.
16988
169892008-02-01 Kenichi Handa <handa@m17n.org>
16990
16991 The following changes are to make the font rescaling facility
16992 compatible with Emacs 21.
16993
16994 * xfaces.c (Vface_font_rescale_alist): Rename from
16995 Vface_resizing_fonts.
16996 (struct font_name): Rename member resizing_ratio to rescale_ratio.
16997 (font_rescale_ratio): Rename from font_resizing_ratio.
16998 (split_font_name): Set font->rescale_ratio.
16999 (better_font_p): Pay attention to font->rescale_ratio.
17000 (build_scalable_font_name): Likewise. Change RESX, and RESY
17001 fields.
17002 (syms_of_xfaces): Declare Vface_font_rescale_alist as a Lisp variable.
17003
170042008-02-01 Kenichi Handa <handa@m17n.org>
17005
17006 * coding.c (Qutf_16_be_nosig, Qutf_16_be, Qutf_16_le_nosig)
17007 (Qutf_16_le): Remove these variables.
17008 (syms_of_coding): Don't DEFSYM them.
17009 (decode_coding_utf_16): Fix handling of BOM.
17010 (encode_coding_utf_16): Fix handling of BOM.
17011
170122008-02-01 Kenichi Handa <handa@m17n.org>
17013
17014 * fileio.c (Finsert_file_contents): On replacing, before decoding
17015 the file into the work buffer, set point of the work buffer to the end.
17016
170172008-02-01 Dave Love <fx@gnu.org>
17018
17019 * coding.c (Fcheck_coding_systems_region): Fix type errors.
17020
170212008-02-01 Dave Love <fx@gnu.org>
17022
17023 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17024 and fix C types.
17025
170262008-02-01 Kenichi Handa <handa@m17n.org>
17027
17028 * xdisp.c (SKIP_GLYPHS): New macro.
17029 (set_cursor_from_row): Pay attention to string display properties.
17030
17031 * category.c (copy_category_entry): Fix for the case that RANGE
17032 is an integer.
17033
17034 * xterm.c (x_encode_char): Call ccl_driver with the last arg Qnil.
17035
17036 * w32term.c (w32_encode_char): Call ccl_driver with the last arg Qnil.
17037
170382008-02-01 Kenichi Handa <handa@m17n.org>
17039
17040 * charset.c (Fcharset_id_internal): New function.
17041 (syms_of_charset): Defsubr it.
17042
17043 * coding.c (decode_coding_ccl, encode_coding_ccl): Call ccl_driver
17044 with the last arg charset_list acquired from coding.
17045 (Fdefine_coding_system_internal): For ccl-based coding system, fix
17046 the attribute coding_attr_ccl_valids.
17047
17048 * coding.h (enum define_coding_ccl_arg_index): Set the first
17049 member coding_arg_ccl_decoder to coding_arg_max.
17050
17051 * ccl.h (ccl_driver): Adjust prototype.
17052
17053 * ccl.c (CCL_DECODE_CHAR, CCL_ENCODE_CHAR): New macros.
17054 (ccl_driver): New arg CHARSET_LIST. Use the above macros instead
60612c8f 17055 of DECODE_CHAR, ENCODE_CHAR, CHAR_CHARSET.
aac0c6e3
MR
17056 (Fccl_execute, Fccl_execute_on_string): Call ccl_driver with the
17057 last arg Qnil.
17058
170592008-02-01 Kenichi Handa <handa@m17n.org>
17060
17061 * charset.h (ENCODE_CHAR): If the method is SUBSET or SUPERSET,
17062 call encode_char.
17063
17064 * charset.c (encode_char): Fix handling of methods SUBSET and SUPERSET.
17065
170662008-02-01 Dave Love <fx@gnu.org>
17067
17068 * composite.c (syms_of_composite): Make composition_hash_table weak.
17069
170702008-02-01 Kenichi Handa <handa@m17n.org>
17071
17072 * dispextern.h (check_face_attributes, generate_ascii_font_name)
17073 (font_name_registry): Don't extern them.
17074 (split_font_name_into_vector, build_font_name_from_vector): Extern them.
17075
17076 * fontset.h (Qfontset): Don't extern it.
17077 (new_fontset_from_font_name): Extern it.
17078
17079 * fontset.c: Give 8 extra slots to fontset objects.
17080 (Qfontset_info): New variable.
17081 (syms_of_fontset): Defsym it.
17082 (FONTSET_FALLBACK): New macro.
17083 (fontset_face): Try also the default fontset.
17084 (make_fontset): Realize a fallback fontset from the default fontset.
17085 (generate_ascii_font_name): Move from xfaces.c. Rewritten by
17086 using split_font_name_into_vector and build_font_name_from_vector.
17087 (Fset_fontset_font): Access the elements of font_spec by enum
17088 FONT_SPEC_INDEX. If font_spec is a string, extract the registry
17089 name by using split_font_name_into_vector.
17090 (Fnew_fontset): If no ASCII font is specified in FONTLIST,
17091 generate a proper font name from the fontset name. Update
17092 Vfontset_alias_alist.
17093 (n_auto_fontsets): New variable.
17094 (new_fontset_from_font_name): New function.
17095 (Ffont_info): Store the information about fonts generated from the
17096 default fontset in the first extra slot of the returned char-table.
17097
17098 * xfaces.c (generate_ascii_font_name): Move to fontset.c.
17099 (font_name_registry): Delete function.
17100 (split_font_name_into_vector): New function.
17101 (build_font_name_from_vector): New function.
17102 (font_list): The argument REGISTRY is now a list of registry names.
17103 (choose_face_font): If we are choosing an ASCII font, and ATTRS
17104 specifies an explicit font name, return the name as is. Make a
17105 list of registy names.
17106
17107 * xfns.c (x_set_font, x_create_tip_frame): Adjust for the change
17108 of x_new_fontset.
17109 (Fx_create_frame): Don't call x_new_fontset here. Just use
17110 x_list_fonts to check the existence of fonts.
17111
17112 * xterm.h (x_new_fontset): Adjust prototype.
17113
17114 * xterm.c (x_new_fontset): Change the arg FONTSETNAME to Lisp
17115 string. Use new_fontset_from_font_name to create a fontset from a
17116 font name.
17117
171182008-02-01 Kenichi Handa <handa@m17n.org>
17119
17120 * syntax.c (Vfind_word_boundary_function_table): New name for
17121 Vnext_word_boundary_function_table.
17122 (find-word-boundary-function-table): New name for
17123 next-word-boundary-function-table.
17124
171252008-02-01 Dave Love <fx@gnu.org>
17126
17127 * Makefile.in: Fix some dependencies.
17128
17129 * keymap.c (Fapropos_internal): Don't gcpro apropos_predicate but
17130 set it to nil before returning.
17131
17132 * composite.c (update_compositions): Fix type error.
17133
17134 * syntax.c (skip_chars, skip_syntaxes): Fix type errors.
17135
171362008-02-01 Kenichi Handa <handa@m17n.org>
17137
17138 * xterm.c (x_new_font): Optimize for the case that the font is
17139 already set for the frame.
17140
171412008-02-01 Kenichi Handa <handa@m17n.org>
17142
17143 * chartab.c (char_table_ascii): Check if the char table contents
17144 is sub-char-table or not.
17145 (char_table_set, char_table_set_range): Fix argument to
17146 char_table_ascii.
17147
17148 * coding.c (CATEGORY_MASK_RAW_TEXT): New macro.
17149 (detect_coding_utf_8, detect_coding_utf_16)
17150 (detect_coding_emacs_mule, detect_coding_iso_2022)
17151 (detect_coding_sjis, detect_coding_big5)
17152 (detect_coding_ccl, detect_coding_charset): Change argument MASK
17153 to DETECT_INFO. Update DETECT_INFO and return 1 if the byte
17154 sequence is valid in this coding system. Change callers.
17155 (MAX_ANNOTATION_LENGTH): New macro.
17156 (ADD_ANNOTATION_DATA): New macro.
17157 (ADD_COMPOSITION_DATA): Change argument. Change callers. Call
17158 ADD_ANNOTATION_DATA. Change the format of annotation data.
17159 (ADD_CHARSET_DATA): New macro.
17160 (emacs_mule_char): New argument ID. Change callers.
17161 (decode_coding_emacs_mule, decode_coding_iso_2022)
17162 (decode_coding_sjis, decode_coding_big5, decode_coding_charset):
17163 Produce charset annotation data in coding->charbuf.
17164 (encode_coding_emacs_mule, encode_coding_iso_2022): Pay attention
17165 to charset annotation data in coding->charbuf.
17166 (setup_coding_system): Add CODING_ANNOTATE_CHARSET_MASK
17167 coding->common_flags if the coding system is iso-2022 based and
17168 uses designation.
17169 (produce_composition): Adjust for the new annotation data format.
17170 (produce_charset): New function.
17171 (produce_annotation): Handle charset annotation.
17172 (handle_composition_annotation, handle_charset_annotation): New
17173 functions.
17174 (consume_chars): Handle charset annotation. Utilize the above two
17175 functions.
17176 (encode_coding_object): If SRC_OBJECT and DST_OBJECT are the same
17177 buffer, get the deleted text as a string and set
17178 coding->src_object to that string.
17179 (detect_coding, detect_coding_system): Use the new struct
17180 coding_detection_info.
17181
17182 * coding.h (struct coding_detection_info): New structure.
17183 (struct coding_system): Adjust prototype of the member `detector'.
17184 (CODING_ANNOTATE_CHARSET_MASK): New macro.
17185
171862008-02-01 Kenichi Handa <handa@m17n.org>
17187
17188 * insdel.c (insert_from_gap): Fix argument to offset_intervals.
17189
171902008-02-01 Dave Love <fx@gnu.org>
17191
17192 * keymap.c (apropos_predicate, apropos_accumulate): Declare static.
17193 (Fapropos_internal): Don't gcpro apropos_accumulate. Set result
17194 to new local and nullify apropos_accumulate before returning.
17195 (syms_of_keymap): Staticpro and initialize apropos_accumulate.
17196
171972008-02-01 Kenichi Handa <handa@m17n.org>
17198
17199 * charset.c (Fdefine_charset_internal): Setup charset.fast_map
17200 correctly.
e3eea1fc 17201
aac0c6e3
MR
172022008-02-01 Dave Love <fx@gnu.org>
17203
17204 * fns.c (Flanginfo): Call synchronize_system_time_locale.
17205
172062008-02-01 Kenichi Handa <handa@m17n.org>
17207
17208 The following changes are to make character composition happen
17209 automatically on displaying.
17210
17211 * Makefile.in (lisp, shortlisp): Add composite.elc.
17212
17213 * composite.h (Qauto_composed, Vauto_composition_function)
17214 (Qauto_composition_function): Extern them.
17215
17216 * composite.c (Vcomposition_function_table)
17217 (Qcomposition_function_table): Delete variables.
17218 (Qauto_composed, Vauto_composition_function)
17219 (Qauto_composition_function): New variables.
17220 (run_composition_function): Don't call
17221 compose-chars-after-function.
17222 (update_compositions): Clear `auto-composed' text property.
17223 (compose_chars_in_text): Delete this function.
17224 (syms_of_composite): Staticpro Qauto_composed and
17225 Qauto_composition_function. Declare Vauto_composition_function as
17226 a Lisp variable.
17227
17228 * dispextern.h (enum prop_idx): Add member AUTO_COMPOSED_PROP_IDX.
17229
17230 * xdisp.c (it_props): Add an entry for Qauto_composed.
17231 (handle_auto_composed_prop): New function.
17232
17233 * xselect.c (selection_data_to_lisp_data): Don't call
17234 compose_chars_in_text.
17235
172362008-02-01 Dave Love <fx@gnu.org>
17237
17238 * keyboard.c (read_char): Modify checking around use of
17239 Vkeyboard_translate_table.
17240
17241 * xterm.c (XTread_socket): Check Lisp types for Vx_keysym_table
17242 and fix C types.
17243
172442008-02-01 Kenichi Handa <handa@m17n.org>
17245
17246 * coding.c (decode_coding_utf_8, decode_coding_emacs_mule)
17247 (decode_coding_iso_2022, decode_coding_sjis, decode_coding_big5)
17248 (decode_coding_charset, produce_chars): When eol_type is Qdos, handle
17249 the case that the last byte is '\r' correctly.
17250 (decode_coding): Flush out the unprocessed data correctly.
17251 (decode_coding_gap): Set CODING_MODE_LAST_BLOCK bit of coding->mode.
17252
172532008-02-01 Dave Love <fx@gnu.org>
17254
17255 * xterm.c (XTread_socket): Fix changes for defined keysyms.
17256 Add XK_ISO... case.
17257 (xaw_scroll_callback): Revert last change.
17258
172592008-02-01 Kenichi Handa <handa@m17n.org>
17260
17261 * charset.c (Fset_charset_priority): Update Viso_2022_charset_list.
17262
172632008-02-01 Kenichi Handa <handa@m17n.org>
17264
17265 * xfaces.c (Vface_resizing_fonts): New variable.
17266 (struct font_name): New member `resizing_ratio'.
17267 (font_resizing_ratio): New function.
17268 (split_font_name): Set font->resizing_ratio.
17269 (better_font_p): Pay attention to font->resizing_ratio.
17270 (build_scalable_font_name): Likewise. Don't change POINT_SIZE,
17271 RESX, and RESY fields.
17272 (try_alternative_families): Try scalable fonts if
17273 Vscalable_fonts_allowed is not Qt.
17274 (syms_of_xfaces): Declare Vface_resizing_fonts as a Lisp variable.
17275
172762008-02-01 Dave Love <fx@gnu.org>
17277
17278 * xterm.c (xaw_scroll_callback): Cast correctly.
17279
172802008-02-01 Dave Love <fx@gnu.org>
17281
17282 * keyboard.c (lispy_accent_codes, lispy_accent_keys): Extend.
17283 (lispy_kana_keys): Comment out.
17284 (make_lispy_event) [XK_kana_A]: Comment out.
17285
17286 * xterm.c (xaw_scroll_callback): Cast call_data.
17287 (XTread_socket): Deal with ASCII keysyms.
17288 (syms_of_xterm) <Vx_keysym_table>: Fix args of make_hash_table.
17289
172902008-02-01 Dave Love <fx@gnu.org>
17291
17292 * xterm.c (Vx_keysym_table): New.
17293 (syms_of_xterm): Initialize it.
17294 (XTread_socket): Use it.
17295 From head: Eliminate incorrect optimization that tried to avoid
17296 decoding the output of X*LookupString.
17297 (x_get_font_repertory): Delete charset declaration.
17298
172992008-02-01 Kenichi Handa <handa@m17n.org>
17300
17301 * coding.c (detect_coding_charset): If only ASCII bytes are found,
17302 return 0.
17303 (Fdefine_coding_system_internal): Setup
17304 CODING_ATTR_ASCII_COMPAT (attrs) correctly.
17305
173062008-02-01 Dave Love <fx@gnu.org>
17307
17308 * coding.c (Fcheck_coding_system): Doc fix.
17309
17310 * editfns.c (Finsert_byte): Return a proper value.
17311
173122008-02-01 Kenichi Handa <handa@m17n.org>
17313
17314 * coding.c (decode_coding): Fix args to translate_chars. Pay
17315 attention to Vstandard_translation_table_for_decode.
17316 (encode_coding): Fix args to translate_chars. Pay attention to
17317 Vstandard_translation_table_for_encode.
17318
17319 * data.c (Faset): Check NEWELT by ASCII_CHAR_P, not by
17320 SINGLE_BYTE_CHAR_P.
17321
17322 * editfns.c (general_insert_function): Check VAL by ASCII_CHAR_P,
17323 not by SINGLE_BYTE_CHAR_P.
17324
17325 * fns.c (concat): Check CH by ASCII_CHAR_P, not by
17326 SINGLE_BYTE_CHAR_P.
17327
17328 * insdel.c (copy_text): Check C by ASCII_CHAR_P, not by
17329 SINGLE_BYTE_CHAR_P.
17330
17331 * keymap.c (Ftext_char_description): Check C by ASCII_CHAR_P, not
17332 by SINGLE_BYTE_CHAR_P.
17333
17334 * search.c (Freplace_match): Check C by ASCII_CHAR_P, not by
17335 SINGLE_BYTE_CHAR_P.
17336
173372008-02-01 Dave Love <fx@gnu.org>
17338
17339 * fns.c (Fstring_as_multibyte, Fstring_to_multibyte): Doc fix.
17340
173412008-02-01 Dave Love <fx@gnu.org>
17342
17343 * fns.c (Flanginfo): Fix typo.
17344
17345 * unexelf.c (unexec): Make last change conditional on Irix 6.5.
17346
173472008-02-01 Kenichi Handa <handa@m17n.org>
17348
17349 * coding.c (detect_coding_utf_8, detect_coding_utf_16)
17350 (detect_coding_emacs_mule, detect_coding_iso_2022)
17351 (detect_coding_sjis, detect_coding_big5, detect_coding_ccl): Check
17352 incomplete byte sequence. Don't update *mask when correctly detected.
17353 (decode_coding_sjis): Fix decoding of katakana-jisx0201.
17354 (detect_eol): Delete the argument CODING, and add the argument CATEGORY.
17355 (detect_coding, detect_coding_system): Adjust for the changes above.
17356
173572008-02-01 Kenichi Handa <handa@m17n.org>
17358
17359 * character.c (char_string): Rename from
17360 char_string_with_unification. Pay attention to CHAR_MODIFIER_MASK.
17361 (string_char): Rename from string_char.
17362
17363 * character.h (CHAR_STRING, CHAR_STRING_ADVANCE): Call char_string
17364 if C is greater than MAX_3_BYTE_CHAR.
17365 (STRING_CHAR, STRING_CHAR_AND_LENGTH, STRING_CHAR_ADVANCE): Call
17366 string_char instead of string_char_with_unification.
17367
173682008-02-01 Dave Love <fx@gnu.org>
17369
17370 * coding.c (decode_coding_utf_8): Treat surrogates as invalid.
17371
173722008-02-01 Kenichi Handa <handa@m17n.org>
17373
17374 * keymap.c (push_key_description): Pay attention to force_multibyte.
17375
17376 * regex.c (re_search_2): Fix for the case of unibyte buffer.
17377
173782008-02-01 Dave Love <fx@gnu.org>
17379
17380 * charset.c (define_charset_internal): Rename `supprementary'.
17381
17382 * Makefile.in (lisp, shortlisp): Remove latin-N.
17383
173842008-02-01 Dave Love <fx@gnu.org>
17385
17386 * xfns.c (x_window, x_window): Use use_xim.
17387
17388 * xterm.c (use_xim): Initialize.
17389 (xim_open_dpy, xim_initialize, xim_close_dpy): Use use_xim.
17390 (x_term_init): Maybe set use_xim.
17391
17392 * xterm.h (use_xim) [HAVE_X_I18N]: Declare.
17393
173942008-02-01 Kenichi Handa <handa@m17n.org>
17395
17396 * search.c (search_buffer): Fix case-fold-search of multibyte
17397 characters.
17398 (boyer_moore): Rename the last argument to char_high_bits.
17399
174002008-02-01 Kenichi Handa <handa@m17n.org>
17401
17402 * xdisp.c (display_string): Fix for the case of zero width glyph.
17403
17404 * xfns.c (x_set_font): Change the error message of the case that
17405 x_new_fontset returns Qt.
17406
17407 * xfaces.c (set_lface_from_font_name): Reject the default fontset.
17408 (Finternal_set_lisp_face_attribute): Use signal_error for the
17409 error of invalid fontset.
17410
17411 * xterm.c (x_new_fontset): If FONTSETNAME specifies the default
17412 fontset, return Qt.
17413
174142008-02-01 Dave Love <fx@gnu.org>
17415
17416 * unexelf.c (unexec): Make .got handling not SGI-specific.
17417
17418 * syntax.c (syms_of_syntax) <multibyte-syntax-as-symbol>: Doc fix.
17419
17420 * regex.c: Use `ifdef HAVE_ALLOCA_H', not `if HAVE_ALLOCA_H'.
17421
17422 * keyboard.c (read_key_sequence): Fix type error.
17423
17424 * buffer.c (Fset_buffer_multibyte, Fset_buffer_multibyte): Fix
17425 type error.
17426
17427 * fontset.c (fontset_add): Return Lisp_Object.
17428
174292008-02-01 Dave Love <fx@gnu.org>
17430
17431 * charset.h (charset_ordered_list_tick): Declare extern.
17432
174332008-02-01 Kenichi Handa <handa@m17n.org>
17434
17435 The following changes (and some of 2008-02-01 changes of mine) are
17436 for handling syntax, category, and case conversion for unibyte
17437 characters by converting them to multibyte on the fly. With these
17438 changes, we don't have to setup syntax and case tables for unibyte
17439 characters in each language environment.
17440
17441 * abbrev.c (Fexpand_abbrev): Convert a unibyte character to
17442 multibyte if necessary.
17443
17444 * bytecode.c (Fbyte_code): Likewise.
17445
17446 * character.h (LEADING_CODE_LATIN_1_MIN)
17447 (LEADING_CODE_LATIN_1_MAX): New macros.
17448 (unibyte_to_multibyte_table): Extern it.
17449 (unibyte_char_to_multibyte): New macro.
17450 (MAKE_CHAR_MULTIBYTE): Use unibyte_to_multibyte_table.
17451 (CHAR_LEADING_CODE): New macro.
17452 (FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE): New macro.
17453
17454 * character.c (unibyte_to_multibyte_table): New variable.
17455 (unibyte_char_to_multibyte): Move to character.h and define as macro.
17456 (multibyte_char_to_unibyte): If C is an eight-bit character,
17457 convert it to the corresponding byte value.
17458
17459 * charset.c (Fset_unibyte_charset): If the dimension of CHARSET is
17460 not 1, signals an error. Update the elements of
17461 unibyte_to_multibyte_table.
17462 (init_charset_once): Initialize unibyte_to_multibyte_table.
17463 (syms_of_charset): Define the charset `iso-8859-1'.
17464
17465 * cmds.c (internal_self_insert): In a multibyte buffer, insert C
17466 as is without converting it to unibyte. In a unibyte buffer,
17467 convert C to multibyte before checking the syntax.
17468
17469 * lisp.h (unibyte_char_to_multibyte): Delete extern.
17470
17471 * minibuf.c (Fminibuffer_complete_word): Use the macro
17472 FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE.
17473
17474 * regex.h (struct re_pattern_buffer): New member target_multibyte.
17475
17476 * regex.c (RE_TARGET_MULTIBYTE_P): New macro.
17477 (GET_CHAR_BEFORE_2): Check target_multibyte, not multibyte. If
17478 that is zero, convert an eight-bit char to multibyte.
17479 (MAKE_CHAR_MULTIBYTE, CHAR_LEADING_CODE): New dummy new macros for
17480 non-emacs case.
17481 (PATFETCH): Convert an eight-bit char to multibyte.
17482 (HANDLE_UNIBYTE_RANGE): New macro.
17483 (regex_compile): Setup the compiled pattern for multibyte chars
17484 even if the given regex string is unibyte. Use PATFETCH_RAW
17485 instead of PATFETCH in many places. To handle `charset'
17486 specification of unibyte, call HANDLE_UNIBYTE_RANGE. Use bitmap
17487 only for ASCII chars.
17488 (analyse_first) <exactn>: Simplify because the compiled pattern
17489 is multibyte.
17490 <charset_not>: Setup fastmap from bitmap only for ASCII chars.
17491 <charset>: Use CHAR_LEADING_CODE to get leading codes.
17492 <categoryspec>: If multibyte, setup fastmap only for ASCII chars here.
17493 (re_compile_fastmap) [emacs]: Call analyse_first with the arg
17494 multibyte always 1.
17495 (re_search_2): In emacs, set the locale variable multibyte to 1,
17496 otherwise to 0. New local variable target_multibyte. Check it
17497 to decide the multibyteness of STR1 and STR2. If
17498 target_multibyte is zero, convert unibyte chars to multibyte
17499 before translating and checking fastmap.
17500 (TARGET_CHAR_AND_LENGTH): New macro.
17501 (re_match_2_internal): In emacs, set the locale variable multibyte
17502 to 1, otherwise to 0. New local variable target_multibyte. Check
17503 it to decide the multibyteness of STR1 and STR2. Use
17504 TARGET_CHAR_AND_LENGTH to fetch a character from D.
17505 <charset, charset_not>: If multibyte is nonzero, check fastmap
17506 only for ASCII chars. Call bcmp_translate with
17507 target_multibyte, not with multibyte.
17508 <begline>: Declare the local variable C as `unsigned'.
17509 (bcmp_translate): Change the last arg name to target_multibyte.
17510
17511 * search.c (compile_pattern_1): Don't adjust the multibyteness of
17512 the regexp pattern and the matching target. Set cp->buf.multibyte
17513 to the multibyteness of the regexp pattern. Set
17514 cp->but.target_multibyte to the multibyteness of the matching target.
17515 (wordify): Use FETCH_STRING_CHAR_AS_MULTIBYTE_ADVANCE instead of
17516 FETCH_STRING_CHAR_ADVANCE.
17517 (Freplace_match): Convert unibyte chars to multibyte.
17518
17519 * syntax.c (char_quoted, back_comment, scan_words)
17520 (Fforward_comment, scan_lists, Fbackward_prefix_chars)
17521 (scan_sexps_forward): Use FETCH_CHAR_AS_MULTIBYTE to convert
17522 unibyte chars to multibyte.
17523 (skip_chars): Delete the arg syntaxp, and move the code for
17524 handling syntaxes to skip_syntaxes. Change callers.
17525 Fix the case that the multibyteness of STRING and the current
17526 buffer doesn't match.
17527 (skip_syntaxes): New function.
17528 (SYNTAX_WITH_MULTIBYTE_CHECK): Check C by ASCII_CHAR_P, not by
17529 SINGLE_BYTE_CHAR_P.
17530
175312008-02-01 Kenichi Handa <handa@m17n.org>
17532
17533 * xfaces.c (QCfontset): New variable.
17534 (LFACE_FONTSET): New macro.
17535 (check_lface_attrs): Check also LFACE_FONTSET_INDEX.
17536 (set_lface_from_font_name): Setup LFACE_FONTSET (lface).
17537 (Finternal_set_lisp_face_attribute)
17538 (Finternal_get_lisp_face_attribute): Handle QCfontset.
17539 (lface_same_font_attributes_p): Fix checking of LFACE_FONT_INDEX,
17540 check also LFACE_FONTSET_INDEX.
17541 (face_fontset): Check attrs[LFACE_FONTSET_INDEX], not
17542 attrs[LFACE_FONT_INDEX].
17543 (syms_of_xfaces): Intern and staticpro QCfontset.
17544
17545 * dispextern.h (enum lface_attribute_index): New member
17546 LFACE_FONTSET_INDEX.
17547
17548 * fns.c (base64_encode_1): Handle eight-bit chars correctly.
17549
175502008-02-01 Kenichi Handa <handa@m17n.org>
17551
17552 * coding.c (coding_set_destination): Fix coding->destination for
17553 the case converting a region.
17554 (encode_coding_utf_8): Encode eight-bit chars as single byte.
17555 (encode_coding_object): Fix coding->dst_pos and
17556 coding->dst_pos_byte for the case converting a region.
17557
17558 * insdel.c (insert_from_gap): Make it work even if PT != GTP.
17559
17560 * character.h (BYTE8_STRING): New macro.
17561
17562 * fns.c (base64_decode_1): Insert eight-bit chars correctly.
17563
175642008-02-01 Kenichi Handa <handa@m17n.org>
17565
17566 * xdisp.c (get_next_display_element): Don't display unibyte 8-bit
17567 characters by octal form.
17568
17569 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
17570
17571 * buffer.h (_fetch_multibyte_char_len): Delete extern.
17572 (FETCH_MULTIBYTE_CHAR, BUF_FETCH_MULTIBYTE_CHAR): Don't use
17573 _fetch_multibyte_char_len.
17574 (FETCH_CHAR_AS_MULTIBYTE): New macro.
17575
17576 * casetab.c (set_canon, set_identity, shuffle): Simplify.
17577
17578 * casefiddle.c (casify_object): Simplify. Handle the case that
17579 the case conversion change the byte length.
17580 (casify_region): Likewise.
17581
17582 * character.h (MAKE_CHAR_UNIBYTE, MAKE_CHAR_MULTIBYTE): New macros.
17583
17584 * character.c (_fetch_multibyte_char_len): Delete this variable.
17585 (syms_of_character): Setup Vprintable_chars.
17586
17587 * editfns.c (Fchar_equal): Fix for the unibyte case.
17588 (Finsert_byte): New function.
17589 (syms_of_editfns): Defsubr it.
17590
17591 * keyboard.c (read_key_sequence): Use ~CHAR_MODIFIER_MASK instead
17592 of direct code 0x3ffff.
17593
17594 * search.c (Freplace_match): Fix for the unibyte case.
17595
175962008-02-01 Kenichi Handa <handa@m17n.org>
17597
17598 * lread.c (safe_to_load_p): Fix the logic.
17599
17600 * syntax.c (scan_words): Don't treat characters belonging to
17601 different scripts as constituting a word.
17602
17603 * editfns.c (Fformat): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17604
17605 * fontset.c (Fset_fontset_font): Treat `ascii' as charset, not script.
17606
17607 * emacs.c (main): In the case of --unibyte, instead of aborting on
17608 finding non-empty buffer, make it unibyte.
17609
176102008-02-01 Kenichi Handa <handa@m17n.org>
17611
17612 * xterm.c (x_new_fontset): Call `create-fontset-from-ascii-font'
17613 to create a fontset.
17614
176152008-02-01 Dave Love <fx@gnu.org>
17616
17617 * character.c (Funibyte_char_to_multibyte): Doc fix.
17618
17619 * xfns.c [HAVE_STDLIB_H]: Fix last change.
17620
176212008-02-01 Kenichi Handa <handa@m17n.org>
17622
17623 * fontset.c (fontset_add): Make the type `int'.
17624 (fontset_id_valid_p): Define it if FONTSET_DEBUG is defined.
17625
17626 * character.c (unibyte_char_to_multibyte)
17627 (multibyte_char_to_unibyte, Funibyte_char_to_multibyte): Refer to
17628 charset_unibyte, not charset_primary.
17629
17630 * charset.h (charset_unibyte): Extern it instead of charset_primary.
17631
17632 * charset.c (charset_unibyte): Rename from charset_primary.
17633 (Funibyte_charset): Rename from Fprimary_charset.
17634 (Fset_unibyte_charset): Rename from Fset_primary_charset.
17635 (syms_of_charset): Adjust for the above changes.
17636
17637 * w32term.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17638 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17639 it->multibyte_p is zero.
17640
17641 * lisp.h (nonascii_insert_offset, Vnonascii_translation_table):
17642 Delete extern.
17643
176442008-02-01 Kenichi Handa <handa@m17n.org>
17645
17646 * coding.c (Fdefine_coding_system_internal): Fix category setting
17647 for a coding system of type iso-2022.
17648
176492008-02-01 Kenichi Handa <handa@m17n.org>
17650
17651 * fontset.h (FS_LOAD_FONT): Call fs_load_font with the arg CHARSET -1.
17652
176532008-02-01 Kenichi Handa <handa@m17n.org>
17654
17655 * syntax.c (Vnext_word_boundary_function_table): New variable.
17656 (next-word-boundary-function-table): Declare it as a Lisp variable
17657 in syms_of_syntax.
17658 (scan_words): Call functions in Vnext_word_boundary_function_table
17659 if any.
17660
17661 * xterm.c (x_load_font): Initialize fontp->fontset to -1.
17662
17663 * fontset.c (fs_load_font): If fontp->charset is not negative,
17664 return fontp without setting its members.
17665
176662008-02-01 Dave Love <fx@gnu.org>
17667
17668 * xfns.c [HAVE_STDLIB_H]: Change logic (instead of fixing typo).
17669
17670 * m/sparc.h (HAVE_ALLOCA): Delete.
17671
17672 * s/irix6-5.h: Don't include strings.h.
17673 (bcopy, bzero, bcmp): Don't undef.
17674
17675 * s/irix6-0.h (bcopy, bzero, bcmp): Don't undef.
17676
17677 * s/usg5-4.h (NO_SIOCTL_H): Don't define.
17678 (TIOCSIGSEND): Don't test IRIX6.
17679 (bcopy, bzero, bcmp): Define conditionally.
17680
176812008-02-01 Kenichi Handa <handa@m17n.org>
17682
17683 * buffer.c (Qas, Qmake, Qto): New variables.
17684 (Fset_buffer_multibyte): New optional arg METHOD. Change caller.
17685 (syms_of_buffer): Intern and staticpro Qas, Qmake, and Qto.
17686
17687 * callproc.c (Fcall_process): Don't call insert_1_both directly if
17688 we are inserting a process output into a multibyte buffer.
17689
17690 * character.h (CHAR_TO_BYTE8): If C is not eight-bit char, call
17691 multibyte_char_to_unibyte.
17692
17693 * character.c (Funibyte_char_to_multibyte): If C can't be decoded
17694 by the primary charset, make it eight-bit char.
17695 (Fmultibyte_char_to_unibyte): Call CHAR_TO_BYTE8.
17696
17697 * charset.c (charset_eight_bit, Qeight_bit_control): New variables.
17698 (charset_8_bit__control, charset_8_bit_graphic)
17699 (Qeight_bit_control, Qeight_bit_graphic): Delete these variables.
17700 (define_charset_internal): New function.
17701 (syms_of_charset): Call define_charset_internal for pre-defined
17702 charsets.
17703
17704 * charset.h (charset_8_bit): Extern it.
17705
17706 * coding.c (make_conversion_work_buffer): Adjust for the change
17707 of Fset_buffer_multibyte.
17708 (encode_coding_raw_text): Increment p0 in the loop.
17709
17710 * lisp.h (Fset_buffer_multibyte): Adjust prototype.
17711
17712 * xdisp.c (setup_echo_area_for_printing, set_message_1): Adjust
17713 for the change of Fset_buffer_multibyte.
17714
17715 * fns.c (Fstring_to_multibyte): New function.
17716 (syms_of_fns): Declare Fstring_to_multibyte as Lisp subroutine.
17717
177182008-02-01 Dave Love <fx@gnu.org>
17719
17720 * xfns.c (x_put_x_image): Declare args.
17721
17722 * xfaces.c (font_name_registry, choose_face_font): Delete unused vars.
17723 (try_font_list): Declare an arg.
17724
17725 * xdisp.c (message2_nolog, set_message): Declare an arg.
17726
17727 * terminfo.c (tparam): Declare an arg. Use P_ to declare tparm.
17728
17729 * syntax.c (scan_sexps_forward): Declare an arg.
17730
17731 * scroll.c (calculate_scrolling, calculate_direct_scrolling):
17732 Declare an arg.
17733
17734 * lisp.h (Fnew_fontset): Declare.
17735
17736 * keymap.c (push_key_description): Call CHARACTERP correctly.
17737
17738 * fontset.c (fontset_add): Declare args. Call make_number correctly.
17739 (face_for_char): Delete unused vars.
17740 (Fset_fontset_font): Doc fix. Delete unused vars.
17741
17742 * doc.c (Fsubstitute_command_keys): Delete unused vars.
17743
17744 * composite.c (update_compositions): Declare arg.
17745
17746 * cm.c (calccost, cmgoto): Declare args.
17747
17748 * charset.c: Remove `emacs' conditional. Doc fixes.
17749 (map_char_table_for_charset): Declare.
17750
17751 * character.c (syms_of_character) <translation-table-vector>: Doc fix.
17752
17753 * ccl.c: Remove `emacs' conditional.
17754
177552008-02-01 Kenichi Handa <handa@m17n.org>
17756
17757 The following changes are to allow specifying multiple font
17758 patterns for a character range (specified by script or charset).
17759
17760 * Makefile.in (abbrev.o): Depend on syntax.h.
17761 (xfaces.o): Depend on charset.h.
17762
17763 * alloc.c (Fmake_string): Use ASCII_CHAR_P, not
17764 SINGLE_BYTE_CHAR_P.
17765
17766 * ccl.c (Fccl_execute_on_string): Add `const' to local variables.
17767
17768 * character.h (Vchar_script_table): Extern it.
17769
17770 * character.c (Vscript_alist): Delete.
17771 (Vchar_script_table, Qchar_script_table): New variable.
17772 (syms_of_character): Declare Vchar_script_table as a lisp variable
17773 and initialize it.
17774
17775 * chartab.c (Fmake_char_table): Doc fix. If PURPOSE doesn't
17776 have property char-table-extra-slots, make no extra slot.
17777
17778 * dispextern.h (struct face): Delete member `charset'.
17779 (FACE_SUITABLE_FOR_CHAR_P, FACE_FOR): Use ASCII_CHAR_P, not
17780 SINGLE_BYTE_CHAR_P.
17781 (choose_face_font, lookup_non_ascii_face, font_name_registry):
17782 Add prototypes.
17783 (lookup_face, lookup_named_face, lookup_derived_face): Fix prototype.
17784 (generate_ascii_font_name): Rename from generate_ascii_font.
17785
17786 * fontset.h (get_font_repertory_func): New prototype.
17787 (make_fontset_for_ascii_face, fs_load_font): Fix prototypes.
17788 (FS_LOAD_FONT): Call fs_load_font with the 3rd arg charset_ascii.
17789
17790 * fontset.c (Qprepend, Qappend): New variables.
17791 (FONTSET_CHARSET_ALIST, FONTSET_FACE_ALIST): Delete.
17792 (FONTSET_NOFONT_FACE, FONTSET_REPERTORY): New macros.
17793 (FONTSET_REF): Optimize if FONTSET is Vdefault_fontset.
17794 (FONTSET_REF_AND_RANGE, FONTSET_ADD): New macros.
17795 (fontset_ref_and_range, fontset_add, reorder_font_vector)
17796 (load_font_get_repertory): New functions.
17797 (fontset_set): Delete.
17798 (fontset_face): New arg FACE. Return face ID, not face.
17799 Complete re-write to handle new fontset structure. Change caller.
17800 (free_face_fontset): Use ASET istead of AREF (X) = Y.
17801 (face_for_char): Don't call lookup_face.
17802 (make_fontset_for_ascii_face): New arg FACE.
17803 (fs_load_font): New arg CHARSET_ID. Don't check
17804 Vfont_encoding_alist here.
17805 (find_font_encoding): New function.
17806 (list_fontsets): Use STRINGP, not ! NILP.
17807 (accumulate_script_ranges): New function.
17808 (Fset_fontset_font, Fnew_fontset, Ffontset_info): Completely
17809 re-written to handle new fontset structure.
17810 (Ffontset_font): Return a copy of element.
17811 (syms_of_fontset): Define symbols Qprepend and Qappend. Fix
17812 docstring of font-encoding-alist.
17813
17814 * lisp.h (CHAR_TABLE_REF): Remove unnecessary check (IDX >= 0).
17815 (Fset_fotset_font): Fix arguments to 5.
17816
17817 * msdos.c (XMenuActivate): Adjust for the change of lookup_derived_face.
17818
17819 * xdisp.c (message_dolog, set_message_1, extend_face_to_end_of_line):
17820 Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17821 (highlight_trailing_whitespace): Adjust for the change of
17822 lookup_named_face.
17823
17824 * xfaces.c: Include charset.h.
17825 (load_face_font): Delete argument C. Change caller.
17826 (generate_ascii_font_name): Rename from generate_ascii_font.
17827 (font_name_registry): New function.
17828 (cache_face): Store ascii faces before non-ascii faces in buckets.
17829 (lookup_face): Delete arguments C and BASE_FACE. Change caller.
17830 Lookup only ascii faces.
17831 (lookup_non_ascii_face): New function.
17832 (lookup_named_face): Delete argument C. Change caller.
17833 (lookup_derived_face): Delete argument C. Change caller.
17834 (try_font_list): New arg PATTERN. Change caller. If PATTERN is
17835 a string, just call font_list with it.
17836 (choose_face_font): Delete arguments FACE and C. New arg
17837 FONT_SPEC. Change caller.
17838 (realize_face, realize_x_face): Delete arguments C and BASE_FACE.
17839 Change caller.
17840 (realize_non_ascii_face): New function.
17841 (realize_x_face): Call load_face_font here.
17842 (realize_tty_face): Delete argument C. Change caller.
17843 (compute_char_face): If CH is not ascii, call FACE_FOR_CHAR to
17844 get a face ID.
17845 (dump_realized_face): Don't print charset of FACE.
17846
17847 * xfns.c (x_set_font): Always call x_new_fontset and
17848 store_frame_parameter.
17849 (Fx_create_frame): Call x_new_fontset, not x_new_font.
17850 (syms_of_xfns): Set get_font_repertory_func to x_get_font_repertory.
17851
17852 * xterm.h (x_get_font_repertory): Extern it.
17853
17854 * xterm.c (x_produce_glyphs): Use ASCII_CHAR_P, not
17855 SINGLE_BYTE_CHAR_P. Fix the logic of handling non-ASCII char when
17856 it->multibyte_p is zero.
17857 (XTread_socket): Use ASCII_CHAR_P, not SINGLE_BYTE_CHAR_P.
17858 (x_new_fontset): If FONTSETNAME doesn't match any existing
17859 fontsets, create a new one.
17860 (x_get_font_repertory): New function.
17861
178622008-02-01 Kenichi Handa <handa@m17n.org>
17863
17864 * coding.c (Ffind_coding_systems_region_internal): Detect an
17865 ASCII only string correctly.
17866
17867 * lread.c (Fload): Don't load with Qload_force_doc_strings t if
17868 version is 0.
17869
178702008-02-01 Kenichi Handa <handa@m17n.org>
17871
17872 * lread.c: Include "coding.h".
17873 (Qget_emacs_mule_file_char, Qload_force_doc_strings)
17874 (load_each_byte, unread_char): New variables.
17875 (readchar_backlog): Delete.
17876 (readchar): Return a character unless load_each_byte is nonzero.
17877 Handle the case that readcharfun is Qget_emacs_mule_file_char or a
17878 cons. If unread_char is not -1, simply return it.
17879 (unreadchar): Handle the case that readcharfun is
17880 Qget_emacs_mule_file_char or a cons. Set unread_char if necessary.
17881 (read_multibyte): Delete.
17882 (readbyte_for_lambda, readbyte_from_file, readbyte_from_string)
17883 (read_emacs_mule_char): New functions.
17884 (Fload): Even if the file doesn't have the extension ".elc", if
17885 safe_to_load_p returns a positive version number, assume that the
17886 file contains bytecompiled code. If the version is less than 22,
17887 load the file while decoding multibyte sequences by emacs-mule.
17888 (readevalloop): Don't use readchar_backlog.
17889 (Fread): Likewise. Pay attention to the case that STREAM is a cons.
17890 (Fread_from_string): Pay attention to the case that STREAM is a cons.
17891 (read_escape): Delete the arg BYTEREP.
17892 (read1): Set load_each_byte to 1 temporarily while handling
17893 #@NUMBER. Don't call read_multibyte.
17894 (read_vector): Call Fread with a cons. If readcharfun is
17895 Qget_emacs_mule_file_char, decode the read string by emacs-mule.
17896 (read_list): If doc_reference is 2, make the cdr part string as unibyte.
17897 (syms_of_lread): Intern and staticpro Qget_emacs_mule_file_char
17898 and Qload_force_doc_strings.
17899
179002008-02-01 Kenichi Handa <handa@m17n.org>
17901
17902 * xdisp.c (face_before_or_after_it_pos): Call
17903 FETCH_MULTIBYTE_CHAR with byte postion, not char position.
17904
179052008-02-01 Kenichi Handa <handa@m17n.org>
17906
17907 * character.h (TRAILING_CODE_P): New macro.
17908 (MAYBE_UNIFY_CHAR): Adjust for the change of Funify_charset.
17909 (string_char_with_unification): Fix prototype.
17910 (Vscript_alist): Extern it.
17911
17912 * character.c (Vscript_alist): New variable.
17913 (string_char_with_unification, str_as_unibyte)
17914 (string_escape_byte8): Add `const' to local variables.
17915 (syms_of_character): Declare script-alist as a Lisp variable.
17916
17917 * charset.h (Vcharset_ordered_list): Extern it.
17918 (charset_ordered_list_tick): Extern it.
17919 (EMACS_MULE_LEADING_CODE_PRIVATE_11)
17920 (EMACS_MULE_LEADING_CODE_PRIVATE_12)
17921 (EMACS_MULE_LEADING_CODE_PRIVATE_21)
17922 (EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros.
17923 (Funify_charset): Adjust for the change of Funify_charset.
17924
17925 * charset.c (charset_ordered_list_tick): New variable.
17926 (Fdefine_charset_internal): Increment charset_ordered_list_tick.
17927 (Funify_charset): New optional arg DEUNIFY. If it is non-nil,
17928 deunify intead of unify a charset.
17929 (string_xstring_p): Add `const' to local variables.
17930 (find_charsets_in_text): Add `const' to arguments and local variables.
17931 (encode_char): Adjust for the change of Funify_charset. Fix
17932 detecting of invalid code.
17933 (Fset_charset_priority): Increment charset_ordered_list_tick.
17934 (Fmap_charset_chars): Fix handling of default value for FROM_CODE
17935 and TO_CODE.
17936
17937 * coding.c (LEADING_CODE_PRIVATE_11, LEADING_CODE_PRIVATE_12)
17938 (LEADING_CODE_PRIVATE_21, LEADING_CODE_PRIVATE_22): Delete macros.
17939 Changed callers to use EMACS_MULE_LEADING_CODE_PRIVATE_11, etc.
17940 (decode_coding_ccl, consume_chars)
17941 (Ffind_coding_systems_region_internal)
17942 (Fcheck_coding_systems_region): Add `const' to local variables.
17943
17944 * print.c (print_object): Use octal form for printing the
17945 contents of a bool vector.
17946
179472008-02-01 Dave Love <fx@gnu.org>
17948
17949 * lread.c (Fload) <!load_dangerous_libraries>: Don't leak fd.
17950 <version == 20>: Refuse to load.
17951
179522008-02-01 Dave Love <fx@gnu.org>
17953
17954 * fns.c: Move coding.h.
17955 (Qcodeset, Qdays, Qmonths): New.
17956 (concat): Use CHARACTERP instead of INTEGERP.
17957 (Flocale_codeset): Delete.
17958 (Flanginfo): New function.
17959 (syms_of_fns): Change accordingly.
17960
17961 * coding.c (adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
17962
179632008-02-01 Dave Love <fx@gnu.org>
17964
17965 * casetab.c (init_casetab_once, init_casetab_once): Fix
17966 CHAR_TABLE_SET call.
17967
17968 * category.c (Fmodify_category_entry): Fix CATEGORY_MEMBER call.
17969
17970 * character.c (syms_of_character): Fix CHAR_TABLE_SET call.
17971
17972 * charset.c (Fmap_charset_chars): Check args. Convert Lisp types.
17973 (load_charset_map, Fdeclare_equiv_charset, Fencode_char)
17974 (Fset_charset_priority, syms_of_charset): Convert Lisp types.
17975
17976 * charset.h (CHECK_CHARSET_GET_ID): Use XINT on AREF result.
17977
17978 * coding.c (ENCODE_DESIGNATION, decode_eol)
17979 (make_conversion_work_buffer, code_conversion_restore)
17980 (Fdefine_coding_system_internal): Convert Lisp types.
17981 (code_conversion_restore): Use EQ, not ==.
17982 (Fencode_coding_string): Fix code_convert_string call.
17983
17984 * coding.h (code_convert_region): Fix prototype.
17985
17986 * dispextern.h (redraw_frame, redraw_garbaged_frames): Remove.
17987
17988 * fontset.c (fontset_ref, fontset_set, fs_load_font)
17989 (Ffontset_info): Convert Lisp types.
17990
17991 * syntax.h (SYNTAX_ENTRY_INT): Don't use make_number.
17992
17993 * xterm.c (note_mouse_movement): Fix call of window_from_coordinates.
17994
17995 * xdisp.c (display_mode_element): Fix call of Fset_text_properties.
17996
17997 * chartab.c: Include "...h", not <...h> in some cases.
17998
17999 * callproc.c (Fcall_process): Remove unused variables.
18000
180012008-02-01 Dave Love <fx@gnu.org>
18002
18003 * coding.c (Fset_coding_system_priority): Allow null arg list.
18004
180052008-02-01 Dave Love <fx@gnu.org>
18006
18007 * minibuf.c (Fminibuffer_complete_word): Remove unused var.
18008 (Fself_insert_and_exit): Use CHARACTERP.
18009
18010 * callproc.c (Fcall_process): Remove unused vars.
18011
18012 * xterm.c (XTread_socket): Add extra dead keysyms.
18013
18014 * xdisp.c (decode_mode_spec_coding): Use CHARACTERP.
18015
18016 * dispextern.h: Remove prototypes for redraw_frame,
18017 redraw_garbaged_frames.
18018
18019 * cmds.c (Fself_insert_command): Use CHARACTERP.
18020
18021 * chartab.c (make_sub_char_table): Remove unused var.
18022 (Fset_char_table_default, Fmap_char_table): Doc fix.
18023
18024 * keymap.c (access_keymap): Remove generic char code.
18025 (push_key_description): Use CHARACTERP.
18026
180272008-02-01 Dave Love <fx@gnu.org>
18028
18029 * charset.c: Doc fixes.
18030 (Funify_charset): Extra checking.
18031
180322008-02-01 Dave Love <fx@gnu.org>
18033
18034 * lread.c: Remove some unused variables.
18035 (safe_to_load_p): If safe, return the magic number version byte.
18036 (Fload): Maybe use load-with-code-conversion.
18037
180382008-02-01 Kenichi Handa <handa@m17n.org>
18039
18040 * category.c (Fmodify_category_entry): Don't modify the contents
18041 of category_set for characters out of the range. Avoid
18042 unnecessary modification.
18043
18044 * character.h (MAYBE_UNIFY_CHAR): Adjust for the change of
18045 Vchar_unify_table. The default value of the table is now nil.
18046
18047 * character.c (syms_of_character): Setup Vchar_width_table for
18048 eight-bit-control and raw-byte chars.
18049
18050 * charset.h (enum define_charset_arg_index): Delete
18051 charset_arg_parents and add charset_arg_subset and
18052 charset_arg_superset.
18053 (enum charset_attr_index): Delete charset_parents and add
18054 charset_subset and charset_superset.
18055 (enum charset_method): Delete CHARSET_METHOD_INHERIT and add
18056 CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET.
18057 (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Delete.
18058 (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET)
18059 (CHARSET_SUPERSET): New macros.
18060 (charset_work): Extern it.
18061 (ENCODE_CHAR): Use charset_work.
18062 (CHAR_CHARSET_P): Adjust for the change of encoder format.
18063 (map_charset_chars): Extern it.
18064
18065 * charset.c (load_charset_map): Set the default value of encoder
18066 and deunifier char-tables to nil.
18067 (map_charset_chars): Change argument. Change callers. Use
18068 map_char_table_for_charset instead of map_char_table.
18069 (Fmap_charset_chars): New optional args from_code and to_code.
18070 (Fdefine_charset_internal): Adjust for the change of
18071 `define-charset' (:parents -> :subset or :superset).
18072 (charset_work): New variable.
18073 (encode_char, syms_of_charset): Adjust for the change of
18074 Fdefine_charset_internal.
18075 (Ffind_charset_string): Setup the vector `charsets' correctly.
18076
18077 * chartab.c (sub_char_table_ref_and_range): New arg default. Fix
18078 the previous change.
18079 (char_table_ref_and_range): Adjust for the above change.
18080 (map_sub_char_table_for_charset): New function.
18081 (map_char_table_for_charset): New function.
18082
18083 * keymap.c (describe_vector): Handle a char-table directly here.
18084 (describe_char_table): Delete.
18085
18086 * lisp.h (map_charset_chars): Delete.
18087
180882008-02-01 Dave Love <fx@gnu.org>
18089
18090 * fns.c (count_combining): Comment out (unused).
18091 (Flocale_codeset): New.
18092 (syms_of_fns): Defsubr it.
18093
18094 * config.in (HAVE_PTY_H, HAVE_SIZE_T, HAVE_LANGINFO_CODESET): New.
18095 (size_t): Remove.
18096
180972008-02-01 Dave Love <fx@gnu.org>
18098
18099 * Makefile.in (chartab.o): Depend on charset.h.
18100
181012008-02-01 Kenichi Handa <handa@m17n.org>
18102
18103 * character.c (syms_of_character): Set the default value of
18104 Vprintable_chars to Qnil.
18105
181062008-02-01 Dave Love <fx@gnu.org>
18107
18108 * Makefile.in (lisp, shortlisp): Change indian.elc to indian.el.
18109
181102008-02-01 Kenichi Handa <handa@m17n.org>
18111
18112 * charset.c (load_charset_map): Handle the case that from < to
18113 correctly.
18114
18115 * coding.c (encode_coding_emacs_mule, encode_coding_iso_2022)
18116 (encode_coding_sjis, encode_coding_big5, encode_coding_charset):
18117 Pay attention to raw-8-bit chars.
18118
181192008-02-01 Kenichi Handa <handa@m17n.org>
18120
18121 * Makefile.in (lisp, shortlisp): Change chinese.elc to chinese.el.
18122 It is not bytecompiled now.
18123
18124 * charset.c (charset_jisx0201_roman, charset_jisx0208_1978)
18125 (charset_jisx0208): New variables.
18126 (Fdefine_charset_internal): Setup them if appropriate.
18127 (init_charset_once): Initialize them to -1.
18128
18129 * charset.h (charset_jisx0201_roman, charset_jisx0208_1978)
18130 (charset_jisx0208): Extern them.
18131
18132 * coding.c (CODING_ISO_FLAG_USE_ROMAN): New macro.
18133 (CODING_ISO_FLAG_USE_OLDJIS): New macro.
18134 (CODING_ISO_FLAG_FULL_SUPPORT): Change macro definition.
18135 (setup_iso_safe_charsets): Fix arguments to Fassq.
18136 (DECODE_DESIGNATION, ENCODE_ISO_CHARACTER_DIMENSION1)
18137 (ENCODE_ISO_CHARACTER_DIMENSION2): Pay attention to
18138 CODING_ISO_FLAG_USE_ROMAN and CODING_ISO_FLAG_USE_OLDJIS.
18139 (encode_coding_iso_2022): Change the 1st arg to
18140 ENCODE_ISO_CHARACTER to a variable.
18141
181422008-02-01 Kenichi Handa <handa@m17n.org>
18143
18144 * charset.h (enum define_charset_arg_index): New enums
18145 charset_arg_min_code and charset_arg_max_code.
18146 (struct charset): New member char_index_offset.
18147
18148 * charset.c (CODE_POINT_TO_INDEX, INDEX_TO_CODE_POINT):
18149 Take charset->char_index_offset into account.
18150 (Fdefine_charset_internal): Handle args[charset_arg_min_code] and
18151 args[charset_arg_max_code]. Setup charset.char_index_offset.
18152 (syms_of_charset): Fix args to Fdefine_charset_internal.
18153
181542008-02-01 Dave Love <fx@gnu.org>
18155
18156 * coding.c (decode_coding_utf_8): Reject overlong sequences.
18157
181582008-02-01 Dave Love <fx@gnu.org>
18159
18160 * coding.c: Doc fixes.
18161 (Fcoding_system_aliases): Fix return value.
18162 (Qmac): Remove (duplicated) definition.
18163
181642008-02-01 Dave Love <fx@gnu.org>
18165
362654a6
JB
18166 * charset.c (Fcharset_priority_list, Fset_charset_priority):
18167 New functions.
aac0c6e3
MR
18168
18169 * character.c (Fstring): Doc fix.
18170
18171 * charset.c (Fdefine_charset_alias): Update Vcharset_list.
18172
362654a6 18173 * fontset.c (Ffontset_info): Doc fix. Return charset names, not ids.
aac0c6e3
MR
18174 (font-encoding-alist): Doc fix.
18175
181762008-02-01 Dave Love <fx@gnu.org>
18177
18178 * term.c (costs_set): Declare static, non-initialized for pcc.
18179 (encode_terminal_code): Remove unused var.
18180
18181 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal decl
18182 for K&R.
18183
18184 * xterm.c (xlwmenu_window_p): Fix prototype for K&R.
18185
18186 * coding.c (setup_iso_safe_charsets): Fix arg decl for K&R.
18187 (suffixes): Move out of make_subsidiaries for K&R.
18188
18189 * charset.c (map_charset_chars): Fix c_function declaration for K&R.
18190
18191 * lisp.h (DEFUN) [!PROTOTYPES]: Remove spurious `args'.
18192
181932008-02-01 Dave Love <fx@gnu.org>
18194
18195 * data.c (Fchar_or_string_p): Doc fix. Use CHARACTERP.
18196
18197 * category.c (Fmodify_category_entry): Doc fix. Remove unused vars.
18198
181992008-02-01 Yong Lu <lyongu@asia-infonet.com>
18200
18201 * charset.c (Fdefine_charset_internal): Fix argument to bzero.
18202
18203 * coding.c (decode_coding_charset): Workaround for the bug of GCC 2.96.
18204
182052008-02-01 Kenichi Handa <handa@m17n.org>
18206
18207 * Makefile.in (lisp, shortlisp): Change cyrillic.elc to cyrillic.el,
18208 vietnamese.elc to vietnamese.el. They are not bytecompiled now.
18209
182102008-02-01 Kenichi Handa <handa@m17n.org>
18211
18212 * coding.c (decode_coding_charset): Adjust for the change of
18213 Fdefine_coding_system_internal.
18214 (Fdefine_coding_system_internal): For a coding system of
18215 `charset' type, store a list of charset IDs in
18216 `charset_attr_charset_valids' element of coding attributes.
18217
182182008-02-01 Kenichi Handa <handa@m17n.org>
18219
18220 * coding.c (ONE_MORE_BYTE_NO_CHECK): Increment consumed_chars.
18221 (emacs_mule_char): New arg src. Delete arg `composition'. Change
18222 caller. Handle 2-byte and 3-byte charsets correctly.
18223 (DECODE_EMACS_MULE_COMPOSITION_RULE_20): Rename from
18224 DECODE_EMACS_MULE_COMPOSITION_RULE. Change caller.
18225 (DECODE_EMACS_MULE_COMPOSITION_RULE_21): New macro.
18226 (DECODE_EMACS_MULE_21_COMPOSITION): Call
18227 DECODE_EMACS_MULE_COMPOSITION_RULE_21. Produce correct annotation
18228 sequence.
18229 (decode_coding_emacs_mule): Handle composition correctly. Rewind
18230 `src' and `consumed_chars' correctly before calling emacs_mule_char.
18231 (DECODE_COMPOSITION_START): Correctly handle the case of altchar
18232 and alt&rule composition.
18233 (decode_coding_iso_2022): Handle composition correctly.
18234 (init_coding_once): Setup emacs_mule_bytes for private charsets.
18235
18236 * charset.c (Fdefine_charset_internal): Fix bug for the case of
18237 re-defining a charset. If the charset has :emacs-mule-id, setup
18238 emacs_mule_bytes.
18239 (Fmake_char): If CODE1 is nil, use the minimum code of the charset.
18240
182412008-02-01 Kenichi Handa <handa@m17n.org>
18242
18243 * coding.c (encode_coding_iso_2022, encode_coding_sjis)
18244 (encode_coding_big5, encode_coding_charset): If coding requires safe
18245 encoding, produce a character specified by
18246 CODING_INHIBIT_CHARACTER_SUBSTITUTION.
18247
182482008-02-01 Dave Love <fx@gnu.org>
18249
18250 * xterm.c (XSetIMValues): Declare.
18251
18252 * process.c: Conditionally include sys/wait.h, pty.h.
18253
18254 * print.c (print_object): Fix print format for 64-bit systems.
18255
18256 * keyboard.c (modify_event_symbol): Fix print format for 64-bit systems.
18257
18258 * buffer.c (emacs_strerror): Declare.
18259
18260 * fontset.c (Fclear_face_cache): Declare.
18261 (accumulate_font_info): Comment-out (unused).
18262 (face_for_char, Fset_fontset_font, Ffontset_info): Remove unused
18263 variables.
18264
18265 * character.h (string_escape_byte8): Declare.
18266
18267 * charset.c (load_charset_map, load_charset_map_from_file): Remove
18268 unused vars.
18269 (Fdefine_charset_internal, Fsplit_char, syms_of_charset)
18270 (Fmap_charset_chars): Doc fix.
18271
18272 * coding.c (Vchar_coding_system_table, Qchar_coding_system): Remove.
18273 (Fset_coding_system_priority, Fset_coding_system_priority)
18274 (Fdefine_coding_system_internal): Doc fix.
18275
182762008-02-01 Dave Love <fx@gnu.org>
18277
18278 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Remove -nointrinsics.
18279
182802008-02-01 Kenichi Handa <handa@m17n.org>
18281
18282 * character.c (string_escape_byte8): Make multibyte string with
18283 correct size.
18284
18285 * charset.c (Fmake_char): Delete unnecessary code.
18286
182872008-02-01 Kenichi Handa <handa@m17n.org>
18288
18289 * xfns.c (x_encode_text): Allocate coding.destination here, and
18290 call encode_coding_object with dst_object Qnil.
18291
18292 * buffer.c (Fset_buffer_multibyte): Convert 8-bit bytes to
18293 multibyte form correctly.
18294
18295 * fontset.c (fs_load_font): Check fontp->full_name (not fontname)
18296 against Vfont_encoding_alist.
18297
18298 * coding.c (Fdecode_sjis_char): Fix typo (0x7F->0xFF). Fix the
18299 handling of charset list.
18300 (encode_coding_iso_2022): Setup coding->safe_charsets in advance.
18301 (decode_coding_object): Move point to coding->dst_pos before
18302 calling post-read-conversion function.
18303 (encode_coding_object): Give correct arguments to
18304 pre-write-conversion. Ignore the return value of
18305 pre-write-conversion function. Pay attention to the case that
18306 pre-write-conversion changes the current buffer. If dst_object is
18307 Qt, even if coding->src_bytes is zero, allocate at least one byte
18308 to coding->destination.
18309
18310 * coding.h (JIS_TO_SJIS): Fix typo (j1->s1, j2->s2).
18311
18312 * charset.c (Fmake_char): Make it more backward compatible.
18313 (Fmap_charset_chars): Fix docstring.
18314
183152008-02-01 Dave Love <fx@gnu.org>
18316
18317 * coding.c: Doc fixes.
18318 (Fdefine_coding_system_alias): Use names, not symbols, in
18319 coding-system-alist.
18320
183212008-02-01 Kenichi Handa <handa@m17n.org>
18322
18323 * fontset.c (free_realized_fontsets): Call Fclear_face_cache instead
18324 of calling free_realized_face.
18325
183262008-02-01 Yong Lu <lyongu@asia-infonet.com>
18327
18328 * charset.c (read_hex): Don't treat SPC as a comment starter.
18329 (decode_char): If CODE_POINT_TO_INDEX returns -1, always return -1.
18330 (Fdecode_char): Fix typo.
18331
183322008-02-01 Kenichi Handa <handa@m17n.org>
18333
18334 * charset.h (struct charset): New member `code_space_mask'.
18335
18336 * coding.c (coding_set_source): Delete the local variable beg_byte.
18337 (encode_coding_charset, Fdefine_coding_system_internal):
18338 Delete the local variable charset.
18339 (Fdefine_coding_system_internal): Setup
18340 attrs[coding_attr_charset_valids] correctly.
18341
18342 * charset.c (CODE_POINT_TO_INDEX): Utilize `code_space_mask'
18343 member to check if CODE is valid or not.
18344 (Fdefine_charset_internal): Initialize `code_space_mask' member.
18345 (encode_char): Before calling CODE_POINT_TO_INDEX, check if CODE
18346 is within the range of charset->min_code and carset->max_code.
18347
183482008-02-01 Dave Love <fx@gnu.org>
18349
18350 * syntax.h (syntax_temp) [!__GNUC__]: Declare.
18351
18352 * dispextern.h (generate_ascii_font): Fix return type.
18353
18354 * xfaces.c (generate_ascii_font): Fix arg declaration.
18355
18356 * coding.c (coding_inherit_eol_type)
18357 (Fset_terminal_coding_system_internal)
18358 (Fset_safe_terminal_coding_system_internal): Fix arg declarations.
18359
183602008-02-01 Kenichi Handa <handa@m17n.org>
18361
18362 * coding.c (decode_coding_charset, encode_coding_charset): Handle
18363 multiple charsets correctly.
18364
183652008-02-01 Kenichi Handa <handa@m17n.org>
18366
18367 * search.c (boyer_moore): Fix handling of multibyte character
18368 translation.
18369
18370 * xdisp.c (display_mode_element): When the variable `elt' is
18371 changed, update `this' and `lisp_string'.
18372
183732008-02-01 Kenichi Handa <handa@m17n.org>
18374
18375 * buffer.c (Fset_buffer_multibyte): Fix 8-bit char handling.
18376
18377 * callproc.c (Fcall_process): Be sure to give the current buffer
18378 to decode_coding_c_string. Update PT and PT_BYTE after the insertion.
18379
18380 * charset.c (struct charset_map_entries): New struct.
18381 (load_charset_map): Rename from parse_charset_map. New args
18382 entries and n_entries. Change caller.
18383 (load_charset_map_from_file): Rename from load_charset_map.
18384 Change caller. New arg control_flag. Call load_charset_map at
18385 the tail.
18386 (load_charset_map_from_vector): New function.
18387 (Fdefine_charset_internal): Setup charset.compact_codes_p.
18388 (encode_char): If the charset is compact, change a character index
18389 to a code point.
18390
18391 * coding.c (coding_alloc_by_making_gap): Check the case that the
18392 source and destination are the same correctly.
18393 (decode_coding_raw_text): Set coding->consumed_char and
18394 coding->consumed to 0.
18395 (produce_chars): If coding->chars_at_source is nonzero, update
18396 coding->consumed_char and coding->consumed before calling
18397 alloc_destination.
18398 (Fdefine_coding_system_alias): Register ALIAS in
18399 Vcoding_system_alist.
18400 (syms_of_coding): Define `no-conversion' coding system at the tail.
18401
18402 * fileio.c (Finsert_file_contents): Set coding_system instead of
18403 val. If the current buffer is multibyte, always call
18404 decode_coding_gap.
18405
18406 * xfaces.c (try_font_list): Give higher priority to fontset's
18407 family than face's family.
18408
184092008-02-01 Kenichi Handa <handa@m17n.org>
18410
18411 * callproc.c (Fcall_process): Be sure to give the current buffer
18412 to decode_coding_c_string.
18413
18414 * xfaces.c (try_font_list): Give a family specified in a fontset
18415 higher priority than a family specified in a face.
18416
184172008-02-01 Kenichi Handa <handa@m17n.org>
18418
18419 * fileio.c (Finsert_file_contents): Fix calculation of `inserted'.
18420 Fix arguments to insert_from_buffer.
18421
18422 * xdisp.c (display_mode_element): Fix calculation of `bytepos'.
18423
184242008-02-01 Kenichi Handa <handa@m17n.org>
18425
18426 * coding.c (produce_chars): Set the variable `multibytep' correctly.
18427 (decode_coding_gap): Set coding->dst_multibyte correctly.
18428
184292008-02-01 Kenichi Handa <handa@m17n.org>
18430
18431 * coding.c (encode_coding_utf_8): Initialize produced_chars to 0.
18432 (decode_coding_utf_16): Fix converting high and low bytes to code-point.
18433 (encode_coding_utf_16): Substitute coding->default_char for
18434 non-Unicode characters.
18435 (decode_coding): Don't call record_insert here.
18436 (setup_coding_system): Initialize `surrogate' of
18437 coding->spec.utf_16 to 0.
18438 (EMIT_ONE_BYTE): Fix for multibyte case.
18439
18440 * insdel.c (insert_from_gap): Call record_insert.
18441
184422008-02-01 Kenichi Handa <handa@m17n.org>
18443
18444 * casefiddle.c (casify_region): Fix multibyte case.
18445
18446 * character.c (c_string_width): Add return type `int'.
18447 (char_string_with_unification): Delete arg ADVANCED.
18448
18449 * character.h (CHAR_VALID_P): Don't call CHARACTERP.
18450 (CHAR_STRING): Adjust for the change of char_string_with_unification.
18451 (CHAR_STRING_ADVANCE): Make it do-while statement.
18452
18453 * chartab.c (sub_char_table_set_range): Optimize for the case
18454 DEPTH == 3. Add workaround code for a GCC optimization bug.
18455
18456 * charset.c (parse_charset_map): Remove an unused variable.
18457
18458 * coding.c: Delete unused variables.
18459
18460 * fileio.c (Finsert_file_contents): Set coding_system to Qnil
18461 earlier. If inserted is zero and the coding system doesn't
18462 require flushing, don't call decode_coding_gap.
18463
18464 * syntax.h (SET_RAW_SYNTAX_ENTRY): Don't call make_number.
18465
184662008-02-01 Kenichi Handa <handa@m17n.org>
18467
18468 The following changes are for using Unicode as an internal
18469 character model, and use UTF-8 format for buffer/string
18470 representation.
18471
18472 * .gdbinit (xchartable): Adjust for the change of char table structure.
18473 (xsubchartable, xcoding, xcharset, xcurbuf): New commands.
18474
18475 * Makefile.in (obj): Add character.o and chartab.o.
18476 (lisp, shortlisp): Remove utf-8.elc.
18477 (*.o): For many files, change dependency on charset.h to
18478 character.h, and add dependency on character.h.
18479 (character.o, chartab.o): New targets.
18480
18481 * abbrev.c, bytecode.c, casefiddle.c, cmds.c, dispnew.c, doc.c:
18482 * doprnt.c, dosfns.c, frame.c, marker.c, minibuf.c, msdos.c:
18483 * w16select.c, w32bdf.c, w32console.c: Include "character.h" instead
18484 of "charset.h".
18485
18486 * dired.c, filelock.c: Include "character.h".
18487
18488 * alloc.c: Include "character.h" instead of "charset.h".
18489 (Fmake_char_table, make_sub_char_table): Move to chartab.c.
18490 (syms_of_alloc): Remove defsubr for Smake_char_table.
18491
18492 * buffer.c: Include "character.h" instead of "charset.h", don't
18493 include "coding.h".
18494 (Fset_buffer_multibyte): Adjust for UTF-8.
18495
18496 * buffer.h: EXFUN Fbuffer_live_p.
18497
18498 * callproc.c: Include "character.h" instead of "charset.h".
18499 (Fcall_process): Big change for the new code-conversion APIs.
18500
18501 * casetab.c: Include "character.h" instead of "charset.h".
18502 (set_canon, set_identity, shuffle): Adjust for the new
18503 map_char_table spec.
18504 (init_casetab_once): Call CHAR_TABLE_SET instead of directly
18505 accessing the char table structure.
18506
18507 * chartab.c: New file that implements char table.
18508
18509 * category.c: Include "character.h".
18510 (copy_category_entry): New function.
18511 (copy_category_table): Call map_char_table and copy_category_entry.
18512 (Fmake_category_table): Initialize all top-level slots.
18513 (char_category_set): New function.
18514 (modify_lower_category_set): Delete.
18515 (Fmodify_category_entry): Call char_table_ref_and_range.
18516
18517 * category.h (CATEGORY_SET): Just call char_category_set.
18518
18519 * ccl.c: Include "character.h".
18520 (Qccl, Qcclp): New variables.
18521 (CCL_WRITE_CHAR): Alway treat the arg CH as a character even if
18522 it's less than 256.
18523 (CCL_WRITE_MULTIBYTE_CHAR): Delete.
18524 (CCL_WRITE_STRING, CCL_READ_CHAR): Adjust for the change of SRC
18525 and DST type.
18526 (ccl_driver): Change types of argument, adjust code accordingly.
18527 (Fccl_execute, Fccl_execute_on_string): Adjust for the change of
18528 ccl_driver.
18529 (syms_of_ccl): Intern and staticpro Qccl and Qcclp.
18530
18531 * ccl.h (struct ccl_program): Delete members eol_type and multibyte.
18532 New members src_multibyte, dst_multibyte, consumed, and produced.
18533 (struct ccl_spec): Delete members decoder and encoder. New member ccl.
18534 (CODING_SPEC_CCL_PROGRAM): New macro.
18535 (ccl_driver): Update prototype.
18536 (Qccl, Qcclp, Fccl_program_p): Extern them.
18537 (CHECK_CCL_PROGRAM): New macro.
18538
18539 * character.c, character.h, chartab.c: New files.
18540
18541 * charset.c: Mostly re-written. Move character and multibyte sequence
18542 handling codes to character.c.
18543
18544 * charset.h: Mostly re-written. Move character and multibyte sequence
18545 handling codes to character.h.
18546
18547 * coding.c, coding.h: Mostly re-written.
18548
18549 * composite.c: Include "character.h" instead of "charset.h".
18550 (CHAR_WIDTH): Move to character.h.
18551 (HASH_KEY, HASH_VALUE): Delete.
18552
18553 * composite.h (enum composition_method): Change order of enumeration
18554 symbols.
18555
18556 * data.c: Include "character.h" instead of "charset.h".
18557 (Faref): Call CHAR_TABLE_REF for a char table.
18558 (Faset): Call CHAR_TABLE_SET for a char table.
18559
18560 * dispextern.h (free_realized_face, check_face_attribytes)
18561 (generate_ascii_font): Extern them.
18562 (free_realized_multibyte_face): Delete extern.
18563
18564 * disptab.h (DISP_CHAR_VECTOR): Adjust for the change of char
18565 table structure.
18566
18567 * editfns.c: Include "character.h" instead of "charset.h".
18568 (Fchar_to_string): Always call CHAR_STRING.
18569
18570 * emacs.c (main): Call init_charset_once, init_charset,
18571 syms_of_chartab, and syms_of_character.
18572
18573 * fileio.c: Include "character.h" instead of "charset.h".
18574 (Finsert_file_contents): Big change for the new code-conversion API.
18575 (choose_write_coding_system, Fwrite_region): Likewise.
18576 (build_annotations_2): Delete.
18577 (e_write): Big change for the new code-conversion API.
18578
18579 * fns.c: Include "character.h" instead of "charset.h".
18580 (copy_sub_char_table): Move to chartab.c.
18581 (Fcopy_sequence): Call copy_char_table for a char table.
18582 (concat): Delete codes calling count_multibyte.
18583 (string_char_to_byte, string_byte_to_char): Adjust for the new
18584 multibyte form.
18585 (internal_equal): Adjust for the change of char table structure.
18586 (Fchar_table_subtype, Fchar_table_parent, Fset_char_table_parent)
18587 (Fchar_table_extra_slot, Fset_char_table_extra_slot)
18588 (Fchar_table_range, Fset_char_table_range, Fset_char_table_default)
18589 (char_table_translate, optimize_sub_char_table)
18590 (Foptimize_char_table, map_char_table, Fmap_char_table): Move to
18591 chartab.c.
18592 (char_table_ref_and_index): Delete.
18593 (HASH_KEY, HASH_VALUE): Move to lisp.h.
18594 (Fmd5): Call preferred_coding_system instead of accessing
18595 Vcoding_category_list. Adjust for the new code-conversion API.
18596 (syms_of_fns): Move defsubr for char table related functions to
18597 chartab.c.
18598
18599 * fontset.c: Mostly re-written.
18600
18601 * fontset.h (struct font_info): Change type of the member encoding_type.
18602 (enum FONT_SPEC_INDEX): New enum.
18603 (fontset_font_pattern, fs_load_font): Update prototype.
18604 (FS_LOAD_FONT): Adjust for the change of fs_load_font.
18605
18606 * indent.c: Include "character.h" instead of "charset.h".
18607 (MULTIBYTE_BYTES_WIDTH): Call CHAR_WIDTH instead of WIDTH_BY_CHAR_HEAD.
18608
18609 * insdel.c: Include "character.h" instead of "charset.h".
18610 (copy_text): Don't refer to Vnonascii_translation_table.
18611 (insert_from_gap): New function.
18612
18613 * keyboard.c: Include "character.h" instead of "charset.h".
18614 (command_loop_1): Never call direct_output_forward_char before
18615 a non-ASCII character.
18616 (read_char): If Vkeyboard_translate_table is a char table, always
18617 translate a character.
18618
18619 * keymap.c: Include "character.h".
18620 (store_in_keymap): Handle the case that IDX is a cons.
18621 (Fdefine_key): Handle the case that KEY is a cons and the car part
18622 is also a cons (range).
18623 (push_key_description): Adjust for the new character code.
18624 (describe_vector): Call describe_char_table for a char table.
18625 (describe_char_table): New function.
18626
18627 * keymap.h (describe_char_table): Extern it.
18628
18629 * lisp.h (enum pvec_type): New member PVEC_SUB_CHAR_TABLE.
18630 (XSUB_CHAR_TABLE, XSETSUB_CHAR_TABLE): New macros.
18631 (CHAR_TABLE_ORDINARY_SLOTS, CHAR_TABLE_SINGLE_BYTE_SLOTS)
18632 (SUB_CHAR_TABLE_ORDINARY_SLOTS, SUB_CHAR_TABLE_STANDARD_SLOTS):
18633 Delete.
18634 (CHAR_TABLE_REF, CHAR_TABLE_SET): Adjust for the new char table
18635 structure.
18636 (CHAR_TABLE_TRANSLATE): Just call char_table_translate.
18637 (CHARTAB_SIZE_BITS_0, CHARTAB_SIZE_BITS_1, CHARTAB_SIZE_BITS_2)
18638 (CHARTAB_SIZE_BITS_3): New macros.
18639 (chartab_size): Extern it.
18640 (struct Lisp_Char_Table): Re-design.
18641 (struct Lisp_Sub_Char_Table): New structure.
18642 (HASH_KEY, HASH_VALUE): Move from fns.c.
18643 (CHARACTERBITS): Define as 22.
18644 (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjust for the above change.
18645 (SUB_CHAR_TABLE_P): Check PVEC_CHAR_TABLE.
18646 (GC_SUB_CHAR_TABLE_P): New macro.
18647 (Fencode_coding_string, Fdecode_coding_string): Update EXFUN.
18648 (code_convert_string_norecord): Deleted extern.
18649 (init_character_once, syms_of_character, init_charset)
18650 (syms_of_composite, Qeq, Fmakehash, insert_from_gap): Extern them.
18651
18652 * lread.c: Include "character.h".
18653 (read_multibyte): New arg NBYTES.
18654 (read_escape): Change the meaning of returned *BYTEREP.
18655 (to_multibyte): Delete.
18656 (read1): Adjust the handling of char table and string.
18657
18658 * print.c: Include "character.h" instead of "charset.h".
18659 (print_string): Convert 8-bit raw bytes to octal form by
18660 string_escape_byte8.
18661 (print_object): Adjust for the new multibyte form. Print 8-bit
18662 raw bytes always in octal form. Handle sub char table correctly.
18663
18664 * process.c: Include "character.h" instead of "charset.h".
18665 (read_process_output, send_process): Adjust for the new
18666 code-conversion API.
18667
18668 * puresize.h (BASE_PURESIZE): Increase.
18669
18670 * regex.c: Include "character.h" instead of "charset.h".
18671 (BYTE8_TO_CHAR, CHAR_BYTE8_P) [not emacs]: New dummy macros.
18672 (regex_compile): Accept a range whose starting and ending
18673 character have different leading bytes.
18674 (analyse_first): Adjust for the above change.
18675
18676 * search.c: Include "character.h" instead of "charset.h".
18677 (search_buffer, boyer_moore): Adjust for the new multibyte form.
18678 (Freplace_match): Adjust for the change of multibyte_char_to_unibyte.
18679
18680 * syntax.c: Include "character.h" instead of "charset.h".
18681 (syntax_parent_lookup): Delete.
18682 (Fmodify_syntax_entry): Accept a cons as CHAR.
18683 (skip_chars): Adjust for the new multibyte form.
18684 (init_syntax_once): Call char_table_set_range instead of directly
18685 accessing the structure of a char table.
18686
18687 * syntax.h (SET_RAW_SYNTAX_ENTRY): Call CHAR_TABLE_SET.
18688 (SYNTAX_ENTRY_FOLLOW_PARENT): Delete macro.
18689 (SET_RAW_SYNTAX_ENTRY_RANGE): New macro.
18690 (SYNTAX_ENTRY_INT): Call CHAR_TABLE_REF.
18691
18692 * term.c: Include "buffer.h" and "character.h".
18693 (encode_terminal_code, write_glyphs): Adjust for the new
18694 code-conversion API.
18695 (produce_glyphs): Call CHAR_WIDTH instead of CHARSET_WIDTH.
18696
18697 * w32term.c (x_new_font): Adjust for the change of FS_LOAD_FONT.
18698
18699 * xdisp.c: Include "character.h".
18700 (get_next_display_element): Adjust for the new multibyte form.
18701 (disp_char_vector): Adjust for the new char table structure.
18702 (decode_mode_spec_coding): Adjust for the new structure of
18703 coding system.
18704 (decode_mode_spec): Adjust for the new code-conversion API.
18705
18706 * xfaces.c: Include "character.h" instead of "charset.h".
18707 (load_face_font): Adjust for the change of choose_face_font and
18708 FS_LOAD_FONT.
18709 (generate_ascii_font): New function.
18710 (set_lface_from_font_name): Adjust for the change of FS_LOAD_FONT.
18711 (set_font_frame_param): Adjust for the change of choose_face_font.
18712 (free_realized_face): Make it public.
18713 (free_realized_faces_for_fontset): Rename from
18714 free_realized_multibyte_face. Free also faces realized for ASCII.
18715 (choose_face_font): Change arguments. Adjust for the change of
18716 fontset_font_pattern and FS_LOAD_FONT.
18717
18718 * xfns.c: Include "character.h".
18719 (x_encode_text): Adjust for the new code-conversion API.
18720
18721 * xselect.c: Don't include "charset.h".
18722 (selection_data_to_lisp_data): Adjust for the new code conversion API.
18723
18724 * xterm.c: Include "character.h".
18725 (x_encode_char): New argument CHARSET. Change caller.
18726 (x_get_char_face_and_encoding, x_get_glyph_face_and_encoding):
18727 Call ENCODE_CHAR instead of SPLIT_CHAR.
18728 (x_produce_glyphs): Don't check Vnonascii_translation_table Call
18729 CHAR_WIDTH instead of CHARSET_WIDTH.
18730 (XTread_socket): Adjust for the new code-conversion API.
18731 (x_new_font): Adjust for the change of FS_LOAD_FONT.
18732 (x_load_font): Adjust for the change of struct font.
18733
187342008-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
18735
18736 * xfaces.c (face_at_buffer_position): Remove unused vars.
18737
187382008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18739
18740 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR):
18741 Fix overflow checking.
18742
187432008-02-01 Kenichi Handa <handa@ni.aist.go.jp>
18744
18745 * ccl.c (CCL_WRITE_CHAR, CCL_WRITE_MULTIBYTE_CHAR, ccl_driver):
18746 Cancel previous change.
18747
187482008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18749
18750 * ccl.c (CCL_WRITE_CHAR): Increment extra_bytes only when
18751 ccl->eight_bit_control. Fix check for buffer overflow.
18752 (CCL_WRITE_MULTIBYTE_CHAR): Fix check for buffer overflow.
18753 (ccl_driver): Initialize extra_bytes to 0.
18754
187552008-01-31 Kenichi Handa <handa@ni.aist.go.jp>
18756
18757 * keyboard.c (make_ctrl_char): If C is a multibyte character, just
18758 return it ORed with ctrl_modifier.
18759
187602008-01-29 Miles Bader <miles@gnu.org>
18761
18762 * macterm.c (XTset_vertical_scroll_bar): Fix merge mistake.
18763
187642008-01-28 Jason Rumney <jasonr@gnu.org>
18765
18766 * w32.c (stat): Don't double check for networked drive.
18767
187682008-01-28 Stefan Monnier <monnier@iro.umontreal.ca>
18769
18770 * window.c (run_window_configuration_change_hook): New function.
18771 Code extracted from set_window_buffer. Set the selected frame.
18772 (set_window_buffer): Use it.
18773 * window.h (run_window_configuration_change_hook): Declare.
18774 * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
18775
18776 * keyboard.c (read_char): Yet another int/Lisp_Object mixup (YAILOM).
18777
187782008-01-27 Dan Nicolaescu <dann@ics.uci.edu>
18779
18780 * Makefile.in: Remove references to unused macros.
18781
187822008-01-26 Eli Zaretskii <eliz@gnu.org>
18783
18784 * w32.c (g_b_init_get_sid_sub_authority)
18785 (g_b_init_get_sid_sub_authority_count): New static variables.
18786 (GetSidSubAuthority_Proc, GetSidSubAuthorityCount_Proc): New typedefs.
18787 (get_sid_sub_authority, get_sid_sub_authority_count): New functions.
18788 (init_user_info): Use them to retrieve uid and gid.
18789 Use 500/513, the Windows defaults, as Administrator's uid/gid.
18790 (fstat): Use pw_uid and pw_gid from the_passwd structure for
18791 st_uid and st_gid of the file.
18792
187932008-01-26 Jason Rumney <jasonr@gnu.org>
18794
18795 * w32.c (logon_network_drive): New function.
18796 (stat): Use it.
18797
187982008-01-26 Chong Yidong <cyd@stupidchicken.com>
18799
18800 * xdisp.c (pos_visible_p): Handle the case where charpos falls on
18801 invisible text covered with an ellipsis.
18802
188032008-01-25 Richard Stallman <rms@gnu.org>
18804
18805 * xdisp.c (redisplay_window): Run Qwindow_text_change_functions and
18806 jump back to beginning. Move some other initializations after that.
18807 (Qwindow_text_change_functions, Vwindow_text_change_functions):
18808 New variables.
18809 (syms_of_xdisp): Init them.
18810
18811 * keyboard.c (read_char): Restore echo_message_buffer after redisplay.
18812
18813 * buffer.c (reset_buffer_local_variables):
18814 Implement `permanent-local-hook'.
18815 (Qpermanent_local_hook): New variable.
18816 (syms_of_buffer): Init and staticpro it.
18817
188182008-01-25 Michael Albinus <michael.albinus@gmx.de>
18819
18820 * dbusbind.c (xd_retrieve_arg): Pacify GCC on x86_64 GNU/Linux.
18821
188222008-01-25 Thien-Thi Nguyen <ttn@gnuvola.org>
18823
18824 * fns.c (Fclrhash): Return TABLE.
18825
188262008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18827
18828 * macterm.c (x_scroll_bar_create): Initialize bar->redraw_needed_p.
18829 (XTset_vertical_scroll_bar): Redraw scroll bar if bar->redraw_needed_p
18830 is set even without positional changes.
18831 (x_scroll_bar_clear): Set bar->redraw_needed_p.
18832
18833 * macterm.h (struct scroll_bar): New member `redraw_needed_p'.
18834
188352008-01-23 Jason Rumney <jasonr@gnu.org>
18836
18837 * xterm.c (handle_one_xevent): Revert to counting chars not bytes.
18838
18839 * w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
18840 the unicode range available in MULE by locale-coding-system.
18841 Improve dbcs lead byte detection. Set event timestamp and modifiers
18842 earlier.
18843
188442008-01-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18845
18846 * mac.c (mac_emacs_pid) [MAC_OSX]: New variable.
18847 [MAC_OSX] (init_mac_osx_environment): Initialize it.
18848 [MAC_OSX] (mac_try_close_socket) [SELECT_USE_CFSOCKET]: Return 0
18849 when used on child processes.
18850
188512008-01-21 Michael Albinus <michael.albinus@gmx.de>
18852
18853 * dbusbind.c (Fdbus_method_return_internal): Rename from
18854 Fdbus_method_return.
18855 (Fdbus_unregister_object): Move to dbus.el.
18856 (Fdbus_call_method, Fdbus_method_return_internal)
18857 (Fdbus_send_signal): Improve debug messages.
18858
188592008-01-20 Martin Rudalics <rudalics@gmx.at>
18860
18861 * undo.c (undo_inhibit_record_point): New variable.
18862 (syms_of_undo): Initialize it.
18863 (record_point): Don't record point when undo_inhibit_record_point
18864 is set.
18865
188662008-01-19 Stefan Monnier <monnier@iro.umontreal.ca>
18867
18868 * process.c (list_processes_1): Don't use SCHARS on a nil buffer name.
18869
18870 * xdisp.c (Qauto_hscroll_mode): New var.
18871 (syms_of_xdisp): Initialize it.
18872 (hscroll_window_tree): Use it to lookup `auto-hscroll-mode' in each
18873 window's buffer.
18874 (hscroll_windows): Don't check automatic_hscrolling_p here.
18875
18876 * window.c (set_window_buffer): Don't unnecessarily reset hscroll and
18877 vscroll if we're setting window-buffer to the value it already has.
18878
188792008-01-18 Dan Nicolaescu <dann@ics.uci.edu>
18880
18881 * m/intel386.h: Remove references to XENIX.
18882
188832008-01-17 Andreas Schwab <schwab@suse.de>
18884
18885 * m/amdx86-64.h (START_FILES, LIB_STANDARD): Use HAVE_LIB64_DIR
18886 instead of HAVE_X86_64_LIB64_DIR.
18887 * m/ibms390x.h (START_FILES, LIB_STANDARD): Likewise.
18888
188892008-01-17 Glenn Morris <rgm@gnu.org>
18890
18891 * m/ibms390x.h (START_FILES, LIB_STANDARD): Adjust value according
18892 to HAVE_X86_64_LIB64_DIR.
18893
188942008-01-16 Dan Nicolaescu <dann@ics.uci.edu>
18895
18896 * s/irix3-3.h:
18897 * s/irix4-0.h:
18898 * s/386-ix.h:
18899 * s/domain.h:
18900 * s/hpux9-x11r4.h:
18901 * s/hpux9shxr4.h: Remove files for systems no longer supported.
18902
18903 * sysdep.c: Remove code containing references to symbols defined
18904 by unsupported systems.
18905
189062008-01-16 Glenn Morris <rgm@gnu.org>
18907
18908 * coding.c (select-safe-coding-system-function): Doc fix.
18909
189102008-01-15 Glenn Morris <rgm@gnu.org>
18911
18912 * config.in: Revert 2008-01-13 change: this is a generated file.
18913
189142008-01-13 Tom Tromey <tromey@redhat.com>
18915
18916 * lisp.h: Fix typo.
18917
189182008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18919
18920 * m/sequent-ptx.h:
18921 * m/sequent.h:
18922 * s/ptx.h:
18923 * s/ptx4-2.h:
18924 * s/ptx4.h: Remove files for systems no longer supported.
18925
18926 * callproc.c (Fcall_process): Fix previous change.
18927
189282008-01-13 Dan Nicolaescu <dann@ics.uci.edu>
18929
18930 * unexsunos4.c: Remove file, system not supported anymore.
18931
18932 * m/mips.h:
18933 * m/intel386.h:
18934 * callproc.c:
18935 * config.in:
18936 * ecrt0.c:
18937 * emacs.c:
18938 * fileio.c:
18939 * frame.c:
18940 * getpagesize.h:
18941 * keyboard.c:
18942 * lread.c:
18943 * process.c:
18944 * puresize.h:
18945 * sysdep.c:
18946 * systty.h:
18947 * syswait.h:
18948 * unexec.c:
18949 * xdisp.c:
18950 * alloc.c: Remove code containing references to symbols defined by
18951 unsupported systems.
18952
189532008-01-11 Kenichi Handa <handa@ni.aist.go.jp>
18954
18955 * coding.c (detect_coding_mask): Fix previous change.
18956
189572008-01-09 Kenichi Handa <handa@ni.aist.go.jp>
18958
18959 * coding.c (detect_coding_iso2022): New arg
18960 latin_extra_code_state. Allow Latin extra codes only
18961 when *latin_extra_code_state is nonzero.
18962 (detect_coding_mask): If there is a NULL byte, detect the encoding
18963 as UTF-16 or binary. If Latin extra codes exist, detect the
18964 encoding as ISO-2022 only when there's no other proper encoding is
18965 found.
18966
189672008-01-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
18968
18969 * frame.c (Fmake_terminal_frame): Use #ifdef MAC_OS8 instead of
18970 #ifdef MAC_OS.
18971
189722008-01-08 Richard Stallman <rms@gnu.org>
18973
18974 * fileio.c (Ffile_name_directory, Fexpand_file_name): Doc fixes.
18975
189762008-01-06 Nick Roberts <nickrob@snap.net.nz>
18977
18978 * keyboard.c (parse_menu_item): Don't enclose key bindings on
18979 menu bar in parentheses.
18980
189812008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
18982
18983 * m/7300.h:
18984 * m/acorn.h:
18985 * m/alliant-2800.h:
18986 * m/alliant.h:
18987 * m/alliant1.h:
18988 * m/alliant4.h:
18989 * m/altos.h:
18990 * m/amdahl.h:
18991 * m/apollo.h:
18992 * m/att3b.h:
18993 * m/aviion-intel.h:
18994 * m/aviion.h:
18995 * m/celerity.h:
18996 * m/clipper.h:
18997 * m/cnvrgnt.h:
18998 * m/convex.h:
18999 * m/cydra5.h:
19000 * m/delta88k.h:
19001 * m/dpx2.h:
19002 * m/dual.h:
19003 * m/elxsi.h:
19004 * m/f301.h:
19005 * m/gould-np1.h:
19006 * m/gould.h:
19007 * m/i860.h:
19008 * m/ibmps2-aix.h:
19009 * m/ibmrt-aix.h:
19010 * m/ibmrt.h:
19011 * m/irist.h:
19012 * m/is386.h:
19013 * m/isi-ov.h:
19014 * m/mega68.h:
19015 * m/mg1.h:
19016 * m/news-r6.h:
19017 * m/news-risc.h:
19018 * m/news.h:
19019 * m/nh3000.h:
19020 * m/nh4000.h:
19021 * m/ns16000.h:
19022 * m/ns32000.h:
19023 * m/nu.h:
19024 * m/orion.h:
19025 * m/orion105.h:
19026 * m/paragon.h:
19027 * m/pfa50.h:
19028 * m/plexus.h:
19029 * m/pyramid.h:
19030 * m/pyrmips.h:
19031 * m/sh3el.h:
19032 * m/sps7.h:
19033 * m/sr2k.h:
19034 * m/stride.h:
19035 * m/sun1.h:
19036 * m/sun2.h:
19037 * m/sun3-68881.h:
19038 * m/sun3-fpa.h:
19039 * m/sun3-soft.h:
19040 * m/sun3.h:
19041 * m/sun386.h:
19042 * m/symmetry.h:
19043 * m/tad68k.h:
19044 * m/tahoe.h:
19045 * m/targon31.h:
19046 * m/tek4300.h:
19047 * m/tekxd88.h:
19048 * m/tower32.h:
19049 * m/tower32v3.h:
19050 * m/ustation.h:
19051 * m/wicat.h:
19052 * m/xps100.h:
19053 * s/cxux.h:
19054 * s/cxux7.h:
19055 * s/dgux.h:
19056 * s/dgux4.h:
19057 * s/dgux5-4-3.h:
19058 * s/dgux5-4r2.h:
19059 * s/esix.h:
19060 * s/esix5r4.h:
19061 * s/hiuxmpp.h:
19062 * s/hiuxwe2.h:
19063 * s/iris3-5.h:
19064 * s/iris3-6.h:
19065 * s/isc2-2.h:
19066 * s/isc3-0.h:
19067 * s/isc4-0.h:
19068 * s/isc4-1.h:
19069 * s/newsos5.h:
19070 * s/newsos6.h:
19071 * s/osf1.h:
19072 * s/osf5-0.h:
19073 * s/riscix1-1.h:
19074 * s/riscix12.h:
19075 * s/sco4.h:
19076 * s/sco5.h:
19077 * s/sunos4-0.h:
19078 * s/sunos4-1.h:
19079 * s/sunos413.h:
19080 * s/sunos4shr.h:
19081 * s/umax.h:
19082 * s/unipl5-2.h:
19083 * s/xenix.h:
19084 * cxux-crt0.s:
19085 * unexapollo.c:
19086 * unexconvex.c:
19087 * unexenix.c:
19088 * unexsni.c: Remove files for systems no longer supported.
19089
19090 * m/intel386.h: Remove references to unsupported systems.
19091
19092 * w32.c (get_emacs_configuration): Remove reference to i860.
19093
19094 * sysdep.c: Remove dead code.
19095
190962008-01-05 Dan Nicolaescu <dann@ics.uci.edu>
19097
19098 * s/rtu.h:
19099 * m/masscomp.h: Remove files. Platform is obsolete.
19100
191012008-01-04 Michael Albinus <michael.albinus@gmx.de>
19102
19103 * dbusbind.c (Fdbus_method_return): New function.
19104 (xd_read_message): Add the serial number to the event.
19105 (Fdbus_register_method): Activate the function.
19106
191072008-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
19108
19109 * keyboard.c (read_key_sequence): Fix typo.
19110
191112008-01-03 Michael Albinus <michael.albinus@gmx.de>
19112
19113 * dbusbind.c (all): Replace XCAR by CAR_SAFE and XCDR by CDR_SAFE.
19114 (xd_signature, xd_append_arg): Handle element type detection for
19115 empty arrays.
19116 (Fdbus_call_method, Fdbus_send_signal): Undo type casting for
19117 SDATA () calls; this must be solved more general.
19118 (Fdbus_register_signal): Use SBYTES instead of strlen.
19119
191202008-01-03 Magnus Henoch <magnus@zemdatav>
19121
19122 * dbusbind.c (xd_append_arg): Use unsigned char instead of
19123 unsigned int for byte values (necessary for big-endian platform).
19124 (Fdbus_call_method): Handle the case of no returned arguments.
19125
191262007-12-31 Tom Tromey <tromey@redhat.com> (tiny change)
19127
19128 * dbusbind.c (xd_read_message): Use non-static input_event struct.
19129
191302007-12-31 Magnus Henoch <mange@freemail.hu>
19131
19132 * dbusbind.c (xd_signature): Signature of variant is just "v".
19133
191342007-12-30 Michael Albinus <michael.albinus@gmx.de>
19135
19136 * dbusbind.c: Fix several errors and compiler warnings.
19137 Reported by Tom Tromey <tromey@redhat.com>.
19138 (XD_ERROR, XD_DEBUG_MESSAGE)
19139 (XD_DEBUG_VALID_LISP_OBJECT_P): Wrap code with "do ... while (0)".
19140 (xd_append_arg): Part for basic D-Bus types rewritten.
19141 (xd_retrieve_arg): Split implementation of DBUS_TYPE_BYTE and
19142 DBUS_TYPE_(U)INT16. Don't call XD_DEBUG_MESSAGE with "%f" if not
19143 appropriate.
19144 (xd_read_message): Return Qnil. Don't signal an error; it is not
19145 useful during event reading.
19146 (Fdbus_register_signal): Signal an error if the check for
19147 FUNCTIONP fails.
19148 (Fdbus_register_method): New function. The implementation is not
19149 complete, the call of the function signals an error therefore.
19150 (Fdbus_unregister_object): New function, renamed from
19151 Fdbus_unregister_signal. The initial check signals an error, if
19152 the object is not well formed.
19153
191542007-12-30 Richard Stallman <rms@gnu.org>
19155
19156 * textprop.c (get_char_property_and_overlay):
19157 Signal error if POSITION is out of range in a buffer.
19158
191592007-12-29 Martin Rudalics <rudalics@gmx.at>
19160
19161 * w32fns.c (Fx_create_frame): Make copy of frame parameters
19162 because the original parameters are in pure storage now.
19163
191642007-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19165
19166 * xdisp.c (phys_cursor_in_rect_p): Check if cursor is in fringe area.
19167
191682007-12-22 Eli Zaretskii <eliz@gnu.org>
19169
19170 * callint.c (syms_of_callint) <command-history>: Add reference to
19171 history-length in the doc string.
19172
191732007-12-17 Jason Rumney <jasonr@gnu.org>
19174
19175 * w32fns.c (w32_wnd_proc) <WM_KEYDOWN>: Cast char to unsigned
19176 before passing as wParam.
19177
191782007-12-22 Michael Albinus <michael.albinus@gmx.de>
19179
19180 * dbusbind.c (xd_retrieve_arg): Handle DBUS_TYPE_BYTE,
19181 DBUS_TYPE_INT16, DBUS_TYPE_UINT16, DBUS_TYPE_INT64,
19182 DBUS_TYPE_UINT64, DBUS_TYPE_DOUBLE and DBUS_TYPE_SIGNATURE.
19183 Return float when DBUS_TYPE_INT32 or DBUS_TYPE_UINT32 do not fit
19184 as number.
19185 (Fdbus_call_method): Fix docstring.
19186
191872007-12-21 Michael Albinus <michael.albinus@gmx.de>
19188
19189 * dbusbind.c (XD_BASIC_DBUS_TYPE, XD_DBUS_TYPE_P, XD_NEXT_VALUE):
19190 New macros.
19191 (XD_SYMBOL_TO_DBUS_TYPE): Rename from XD_LISP_SYMBOL_TO_DBUS_TYPE.
19192 (XD_OBJECT_TO_DBUS_TYPE): Rename from XD_LISP_OBJECT_TO_DBUS_TYPE.
19193 Simplify.
19194 (xd_signature): New function.
19195 (xd_append_arg): Compute also signatures. Major rewrite.
19196 (xd_retrieve_arg): Make debug messages friendly.
19197 (Fdbus_call_method, Fdbus_send_signal): Extend docstring.
19198 Check for signatures of arguments.
19199
192002007-12-19 Michael Albinus <michael.albinus@gmx.de>
19201
19202 * dbusbind.c (QCdbus_type_byte, QCdbus_type_boolean)
19203 (QCdbus_type_int16, QCdbus_type_uint16, QCdbus_type_int32)
19204 (QCdbus_type_uint32, QCdbus_type_int64, QCdbus_type_uint64)
19205 (QCdbus_type_double, QCdbus_type_string, QCdbus_type_object_path)
19206 (QCdbus_type_signature, QCdbus_type_array, QCdbus_type_variant)
19207 (QCdbus_type_struct, QCdbus_type_dict_entry): New D-Bus type symbols.
19208 (XD_LISP_SYMBOL_TO_DBUS_TYPE): New macro.
19209 (XD_LISP_OBJECT_TO_DBUS_TYPE): Add compound types.
19210 (xd_retrieve_value): Remove. Functionality included in ...
19211 (xd_append_arg): New function.
19212 (Fdbus_call_method, Fdbus_send_signal): Apply it.
19213
192142007-12-16 Michael Albinus <michael.albinus@gmx.de>
19215
19216 * dbusbind.c (top): Include <stdio.h>.
19217 (Fdbus_call_method, Fdbus_send_signal): Apply type cast in
19218 dbus_message_new_method_call and dbus_message_new_signal.
19219 (Fdbus_register_signal): Rename unique_name to uname.
19220 Check handler for FUNCTIONP instead of CHECK_SYMBOL. Handle case of
19221 non-existing unique name. Fix typos in matching rule. Return an
19222 object which is useful in Fdbus_unregister_signal.
19223 (Fdbus_unregister_signal): Reimplementation, in order to remove
19224 only the corresponding entry.
19225 (Vdbus_registered_functions_table): Change the order of entries.
19226 Apply these changes in xd_read_message and Fdbus_register_signal.
19227
192282007-12-16 Andreas Schwab <schwab@suse.de>
19229
19230 * fileio.c (Finsert_file_contents): Fix overflow check to not
19231 depend on undefined integer overflow.
19232
192332007-12-14 Jason Rumney <jasonr@gnu.org>
19234
19235 * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT
19236 for characters above 127.
19237
192382007-12-13 Jason Rumney <jasonr@gnu.org>
19239
19240 * w32fns.c (w32_wnd_proc, Fw32_reconstruct_hot_key): Range check
19241 before dereferencing array.
19242 (lookup_vk_code): Remove zero comparison.
19243
192442007-12-14 Michael Albinus <michael.albinus@gmx.de>
19245
19246 * dbusbind.c (xd_retrieve_value, xd_retrieve_arg)
19247 (Fdbus_call_method, Fdbus_send_signal, xd_read_message):
19248 Use `unsigned int' instead of `uint'.
19249 (xd_read_message, Fdbus_register_signal): Split expressions into
19250 multiple lines before operators "&&" and "||", according to the
19251 GNU Coding Standards.
19252
192532007-12-14 Eli Zaretskii <eliz@gnu.org>
19254
19255 * dispextern.h (WINDOWS_NT): Fix incorrect spelling of WINDOWSNT.
19256
192572007-12-12 Juri Linkov <juri@jurta.org>
19258
19259 * buffer.c (Frename_buffer): In interactive spec replace
19260 `read-buffer' with `read-string' that uses `buffer-name-history'
19261 as history, and the current buffer's name as default.
19262
192632007-12-10 Stefan Monnier <monnier@iro.umontreal.ca>
19264
19265 * keyboard.c (Fcommand_execute): Call Qcall_interactively instead of
19266 manipulating the backtrace manually.
19267 (make_lispy_event): Merge the ASCII and MULTIBYTE cases.
19268 (struct backtrace, backtrace_list): Remove.
19269 (command_loop_1): Remove dead var `no_direct'.
19270
19271 * buffer.c (reset_buffer_local_variables): If permanent_too is 0, also
19272 preserve non-built-in buffer-local variables.
19273 (Fkill_all_local_variables): Don't re-create&re-set permanent
19274 buffer-local variables.
19275
192762007-12-09 Juri Linkov <juri@jurta.org>
19277
19278 * buffer.c (Frename_buffer): Change interactive spec from "s" to
19279 Lisp code that uses `read-buffer' with current buffer as default.
19280
192812007-12-08 Michael Albinus <michael.albinus@gmx.de>
19282
19283 * dbusbind.c (xd_read_message): Generate an event for every
19284 registered handler. There might be several handlers registered
19285 for the same signal.
19286 (Fdbus_register_signal): Don't overwrite a registration for the
19287 same signal. Add a new registration if handlers are different.
19288 (Vdbus_registered_functions_table): Rework doc string.
19289
192902007-12-07 Michael Albinus <michael.albinus@gmx.de>
19291
19292 * dbusbind.c (Fdbus_get_unique_name, xd_read_message)
19293 (Fdbus_register_signal): Use DBUS_MAXIMUM_NAME_LENGTH and
19294 DBUS_MAXIMUM_MATCH_RULE_LENGTH for string lengths.
19295 (Fdbus_call_method, Fdbus_send_signal, Fdbus_register_signal):
19296 Unify argument lists.
19297 (xd_read_message, Fdbus_register_signal): Reorder and extend event
19298 arguments and hash table keys. Use unique name for service.
19299 (Fdbus_unregister_signal): Remove checks.
19300 (Vdbus_registered_functions_table): Fix doc string.
19301
193022007-12-05 Magnus Henoch <mange@freemail.hu>
19303
19304 * process.c (make_process): Initialize pty_flag to 0.
19305
193062007-12-05 Jason Rumney <jasonr@gnu.org>
19307
19308 * image.c (xbm_load) [WINDOWSNT]: Shuffle the bits of directly
19309 specified XBMs.
19310
193112007-12-05 Richard Stallman <rms@gnu.org>
19312
19313 * xdisp.c (syms_of_xdisp) <scroll-conservatively>: Doc fix.
19314
193152007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19316
19317 * mac.c (cfsockets_for_select) [MAC_OSX && SELECT_USE_CFSOCKET]:
19318 New variable.
19319 (mac_try_close_socket) [MAC_OSX]: New function.
19320 [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]:
19321 Update cfsockets_for_select. Replace invalid CFRunLoop source.
19322
19323 * sysdep.c (emacs_close) [MAC_OSX && HAVE_CARBON]:
19324 Use mac_try_close_socket.
19325
193262007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19327
19328 * unexmacosx.c (unrelocate): New argument BASE. Use it instead of
19329 reloc_base.
19330 (copy_dysymtab): Compute relocation base here.
19331 (rebase_reloc_address) [__ppc64__]: New function.
19332 (copy_dysymtab) [__ppc64__]: Use it if relocation base needs to be
19333 changed.
19334
193352007-12-05 Jason Rumney <jasonr@gnu.org>
19336
19337 * w32proc.c (sys_spawnve): Quote args with wildcards.
19338
193392007-12-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19340
19341 * unexmacosx.c (copy_data_segment): Also copy __gcc_except_tab and
19342 __objc_* sections.
19343 (unrelocate) [_LP64]: Set relocation base to address of data segment.
19344
193452007-12-05 Michael Albinus <michael.albinus@gmx.de>
19346
19347 * dbusbind.c (xd_read_message): Return value is a Lisp_Object.
19348 Move check for Vdbus_registered_functions_table to
19349 xd_read_queued_messages.
19350 (xd_read_queued_messages): Protect xd_read_message calls by
19351 internal_condition_case_1.
19352
193532007-12-04 Michael Albinus <michael.albinus@gmx.de>
19354
19355 * dbusbind.c (QCdbus_system_bus, QCdbus_session_bus): Rename from
19356 Qdbus_system_bus and Qdbus_session_bus, respectively.
19357 (Vdbus_intern_symbols): Remove.
19358 (Vdbus_registered_functions_table): New hash table.
19359 (XD_SYMBOL_INTERN_SYMBOL): Remove.
19360 (xd_read_message, Fdbus_register_signal, Fdbus_unregister_signal):
19361 Rewrite in order to manage registered functions by hash table
19362 Vdbus_registered_functions_table.
19363
193642007-12-03 Jan Djärv <jan.h.d@swipnet.se>
19365
19366 * xterm.c: Update URL to Window Manager Specification in comment.
19367
193682007-12-02 Michael Albinus <michael.albinus@gmx.de>
19369
19370 * config.in (HAVE_DBUS): Add.
19371
19372 * Makefile.in (HAVE_DBUS): Add D-Bus definitions if defined.
19373 (ALL_CFLAGS): Add ${DBUS_CFLAGS}.
19374 (obj): Add $(DBUS_OBJ).
19375 (LIBES): Add $(DBUS_LIBS).
19376 (dbusbind.o): New target.
19377
19378 * dbusbind.c: New file.
19379
19380 * emacs.c (main): Call syms_of_dbusbind when HAVE_DBUS is defined.
19381
19382 * keyboard.c: All D-Bus related code is wrapped by "#ifdef HAVE_DBUS".
19383 (Qdbus_event): New Lisp symbol.
19384 (kbd_buffer_get_event, make_lispy_event): Handle DBUS_EVENT.
19385 (gobble_input): Call xd_read_queued_messages, reading D-Bus messages.
b97439ce 19386 (keys_of_keyboard): Define dbus-event.
aac0c6e3
MR
19387
19388 * termhooks.h (event_kind): Add DBUS_EVENT when HAVE_DBUS is defined.
19389
193902007-12-01 Richard Stallman <rms@gnu.org>
19391
19392 * search.c (syms_of_search) <inhibit-changing-match-data>: Doc fix.
19393
193942007-11-30 Jason Rumney <jasonr@gnu.org>
19395
19396 * w32console.c (w32con_ins_del_lines, scroll_line): Clip to window.
19397 (w32con_reset_terminal_modes): Clear screen buffer.
19398 (w32_face_attributes): Don't use color indexes that are out of range.
19399 Only reverse the default colors.
19400
19401 * xfaces.c (map_tty_color, tty_color_name): Remove special case for
19402 WINDOWSNT.
19403
19404 * w32console.c, w32term.h (vga_stdcolor_name): Remove.
19405
194062007-11-29 Jason Rumney <jasonr@gnu.org>
19407
19408 * w32console.c: Leave HAVE_WINDOW_SYSTEM defined.
19409 (w32_face_attributes): Use Vtty_defined_color_alist to determine
19410 if the terminal colors are initialized.
19411 (unspecified_fg, unspecified_bg): Remove unused declarations.
19412
194132007-11-29 Andreas Schwab <schwab@suse.de>
19414
19415 * keyboard.c (apply_modifiers): Fix typo.
19416
194172007-11-29 Richard Stallman <rms@gnu.org>
19418
19419 * keymap.c (Fcurrent_local_map): Doc fix.
19420
194212007-11-28 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
19422
19423 * s/gnu-kfreebsd.h: New file.
19424
194252007-11-28 Stefan Monnier <monnier@iro.umontreal.ca>
19426
19427 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
19428 Don't cast redundantly.
19429
19430 * keyboard.c (KEY_TO_CHAR): New macro.
19431 (parse_modifiers, apply_modifiers): Accept integer arguments.
19432 (read_key_sequence): Use them to unify the "shift->unshift" mapping
19433 for chars and symbol keys.
19434 After doing such remapping, apply function-key-map again.
19435
194362007-11-27 Dan Nicolaescu <dann@ics.uci.edu>
19437
19438 * Makefile.in (SOME_MACHINE_LISP): Remove VMS files, they are not
19439 compiled anymore.
19440
194412007-11-26 Andreas Schwab <schwab@suse.de>
19442
19443 * process.c (list_processes_1): Fix indentation level of the
19444 command column.
19445
194462007-11-23 Andreas Schwab <schwab@suse.de>
19447
19448 * editfns.c (Fformat): Handle %c specially since it requires the
19449 argument to be of type int.
19450
194512007-11-23 Markus Triska <markus.triska@gmx.at>
19452
19453 * emacs.c (main): Call init_editfns before init_process, since
19454 init_process sets Vprocess_connection_type depending on OS release.
19455
194562007-11-22 Stefan Monnier <monnier@iro.umontreal.ca>
19457
19458 * data.c (do_symval_forwarding): Use same code as in find_symbol_value.
19459 (find_symbol_value): Use do_symval_forwarding.
19460
19461 * data.c (set_internal): Set the value in the `cons-cell' (for
19462 Buffer_Local_values) not only for frame-local variables.
19463
194642007-11-22 Andreas Schwab <schwab@suse.de>
19465
19466 * data.c (Fnumber_to_string): Add cast when passing EMACS_INT
19467 values to sprintf.
19468 * keymap.c (Fsingle_key_description): Likewise.
19469 * print.c (print_object): Likewise.
19470
194712007-11-22 Jan Djärv <jan.h.d@swipnet.se>
19472
19473 * gtkutil.c (update_frame_tool_bar): Don't call x-gtk-map-stock if
19474 file for image is nil.
19475
194762007-11-22 Dan Nicolaescu <dann@ics.uci.edu>
19477
19478 * term.c: Include stdarg.h.
19479 (fatal): Implement using varargs.
19480 * lisp.h (fatal): Add argument types. (Restore 2005-09-30 change).
19481
194822007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19483
19484 * lisp.h (struct Lisp_Buffer_Objfwd): Add a `slottype' field.
19485 * data.c (store_symval_forwarding): Get type from buffer_objfwd.
19486 Update call to buffer_slot_type_mismatch.
19487 * buffer.h (buffer_local_types, PER_BUFFER_TYPE): Remove.
19488 (buffer_slot_type_mismatch): Update.
19489 * buffer.c (buffer_local_types): Remove.
19490 (buffer_slot_type_mismatch): Get the symbol and type as arguments.
19491 (defvar_per_buffer): Set the type in the buffer_objfwd.
19492
194932007-11-21 Jason Rumney <jasonr@gnu.org>
19494
19495 * w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font):
19496 CreateFileMapping returns NULL on failure.
19497
194982007-11-21 Stefan Monnier <monnier@iro.umontreal.ca>
19499
19500 * search.c (Fset_match_data): Remove the `evaporate' feature.
19501 (unwind_set_match_data): Don't use the `evaporate' feature.
19502
195032007-11-21 Jason Rumney <jasonr@gnu.org>
19504
19505 * dispnew.c (init_display) [WINDOWSNT]: Hardcode terminal_type.
19506
19507 * w32console.c (w32con_write_glyphs): Remove unused variables.
19508
195092007-11-20 Dan Nicolaescu <dann@ics.uci.edu>
19510
19511 * macterm.c (mac_term_init): Call add_keyboard_wait_descriptor.
19512
19513 * s/darwin.h (MULTI_KBOARD): Remove.
19514
19515 * macfns.c (x_create_tip_frame, Fx_create_frame)
19516 (x_create_tip_frame): Don't deal with MULTI_KBOARD.
19517
195182007-11-19 Stefan Monnier <monnier@iro.umontreal.ca>
19519
19520 * buffer.c (Fbuffer_local_value): Remove redundant test.
19521 (swap_out_buffer_local_variables): Swap out binding in `buffer' rather
19522 than in `current-buffer' to match the comment.
19523 Do the swap using swap_in_global_binding.
19524
19525 * data.c (store_symval_forwarding, set_internal):
19526 * eval.c (specbind): Remove dead code.
19527
19528 * coding.c (detect_coding, Fupdate_coding_systems_internal):
19529 * fns.c (Fmd5): Use find_symbol_value rather than SYMBOL_VALUE
19530 Since we do not want to see internal Lisp_*fwd objects here.
19531
195322007-11-18 Jan Djärv <jan.h.d@swipnet.se>
19533
19534 * sysdep.c (init_system_name): Use getaddrinfo if available.
19535
19536 * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_handle_click)
19537 (x_scroll_bar_note_movement): start, end, with, height in struct
19538 scroll_bar are integers and not Lisp_Object, so remove XINT for them.
19539
195402007-11-17 Dan Nicolaescu <dann@ics.uci.edu>
19541
19542 * puresize.h (BASE_PURESIZE): Increase to 1190000.
19543
195442007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
19545
19546 * buffer.h (struct buffer): Move `undo_list' back to before `name'.
19547 This undoes Richard's change of 14-Oct-2002.
19548
19549 * alloc.c (allocate_other_vector):
19550 * lisp.h (allocate_other_vector): Remove.
19551
19552 * window.c (struct save_window_data): Move non-lisp data to the end
19553 and make it `int' rather than Lisp_Object.
19554 (Fcurrent_window_configuration): Use ALLOCATE_PSEUDOVECTOR.
19555 Done wrap/unwrap integer values.
19556 (Fset_window_configuration, compare_window_configurations):
19557 Update use of fields to their new types.
19558
19559 * xterm.h (struct scroll_bar): Only use Lisp_Object for lisp data.
19560 Turn integer fields into `int'. Merge x_window_low and x_window_high.
19561 (SCROLL_BAR_PACK, SCROLL_BAR_UNPACK, SCROLL_BAR_X_WINDOW)
19562 (SET_SCROLL_BAR_X_WINDOW): Remove.
19563 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
19564 Access the new x_window field directly.
19565 * xterm.c (x_scroll_bar_create): Use a pseudovector.
19566 Don't wrap/unwrap integers into Lisp_Objects.
19567 (XTset_vertical_scroll_bar, x_scroll_bar_handle_click)
19568 (x_scroll_bar_report_motion):
19569 Don't wrap/unwrap integers into Lisp_Objects.
19570 (x_term_init): Use SDATA.
19571 (x_window_to_scroll_bar, x_create_toolkit_scroll_bar)
19572 (x_scroll_bar_set_handle, x_scroll_bar_remove)
19573 (XTset_vertical_scroll_bar, x_scroll_bar_expose)
19574 (x_scroll_bar_report_motion, x_scroll_bar_clear):
19575 * xfns.c (x_set_background_color):
19576 * gtkutil.c (xg_create_scroll_bar, xg_set_toolkit_scroll_bar_thumb):
19577 Access the new x_window field directly.
19578
19579 * alloc.c (ALLOCATE_PSEUDOVECTOR): Move to lisp.h.
19580 (allocate_pseudovector): Make non-static.
19581
19582 * lisp.h (enum pvec_type): New tag PVEC_OTHER.
19583 (allocate_pseudovector): Declare.
19584 (ALLOCATE_PSEUDOVECTOR): Move from alloc.c.
19585
195862007-11-15 Andreas Schwab <schwab@suse.de>
19587
19588 * editfns.c (Fformat): Correctly format EMACS_INT values.
19589 Also take precision into account when formatting an integer.
19590
19591 * keyboard.c (Fevent_symbol_parse_modifiers): Fix declaration.
19592
195932007-11-15 Stefan Monnier <monnier@iro.umontreal.ca>
19594
19595 * keyboard.c (Fevent_symbol_parse_modifiers): New function.
19596 (syms_of_keyboard): Defsubr it.
19597
19598 * data.c (swap_in_global_binding): Fix longstanding bug where
19599 store_symval_forwarding was not called with the right second argument,
19600 thus causing objfwd-ing from being dropped.
19601
196022007-11-14 Juanma Barranquero <lekktu@gmail.com>
19603
19604 * macfns.c (Fx_create_frame, Fx_display_pixel_width)
19605 (Fx_display_pixel_height, Fx_display_planes)
19606 (Fx_display_color_cells, Fx_server_max_request_size)
19607 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19608 (Fx_display_visual_class, Fx_display_save_under):
19609 * w32fns.c (Fx_create_frame, Fx_display_pixel_width)
19610 (Fx_display_pixel_height, Fx_display_planes)
19611 (Fx_display_color_cells, Fx_server_max_request_size)
19612 (Fx_server_vendor, Fx_server_version, Fx_display_screens)
19613 (Fx_display_mm_height, Fx_display_mm_width)
19614 (Fx_display_backing_store, Fx_display_visual_class)
19615 (Fw32_select_font, Fx_display_save_under):
19616 * xfns.c (Fx_create_frame, Fx_display_pixel_width)
19617 (Fx_display_pixel_height, Fx_display_planes)
19618 (Fx_display_color_cells, Fx_server_max_request_size)
19619 (Fx_server_vendor, Fx_server_version, Fx_display_backing_store)
19620 (Fx_display_save_under): Fix typos in docstrings.
19621
196222007-11-14 Juanma Barranquero <lekktu@gmail.com>
19623
19624 * w32fns.c (Fw32_registered_hot_keys): Don't return the nil values
19625 corresponding to deleted entries; they are an implementation detail.
19626 (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits):
19627 Remove variables.
19628 (w32_pass_extra_mouse_buttons_to_system, w32_strict_fontnames)
19629 (w32_pass_multimedia_buttons_to_system, w32_strict_painting)
19630 (Vw32_charset_info_alist, w32_to_x_color, w32_init_class)
19631 (w32_createscrollbar, w32_createwindow, my_post_msg, w32_get_modifiers)
19632 (w32_grabbed_keys, cancel_all_deferred_msgs): Make static.
19633 (Fw32_define_rgb_color, Fw32_load_color_file)
19634 (syms_of_w32fns) <w32-pass-multimedia-buttons-to-system>:
19635 Fix typos in docstrings.
19636 (Fx_server_version): Reflow docstring.
19637 (Fw32_shell_execute): Doc fixes.
19638
196392007-11-13 Juanma Barranquero <lekktu@gmail.com>
19640
19641 * w32fns.c (Fw32_register_hot_key): Don't try to register hot key
19642 if w32_parse_hot_key returned nil.
19643
196442007-11-10 Stefan Monnier <monnier@iro.umontreal.ca>
19645
19646 * xdisp.c (load_overlay_strings): Fix copy&paste typo.
19647
196482007-11-09 Jason Rumney <jasonr@gnu.org>
d6c952f8 19649
aac0c6e3
MR
19650 * s/ms-w32.c (USE_TOOLKIT_SCROLL_BARS): Define.
19651
19652 * w32term.c (w32_scroll_bar_handle_click): Use SCROLL_BAR_CLICK_EVENT.
19653
19654 * keyboard.c (discard_mouse_events, make_lispy_event) [WINDOWSNT]:
19655 Remove W32_SCROLL_BAR_CLICK_EVENT.
19656
19657 * termhooks.h (enum event_kind) [WINDOWSNT]: Likewise.
19658 Add MULTIMEDIA_KEY_EVENT.
19659
19660 * keyboard.c (lispy_function_keys) [WINDOWSNT]: Add more keys.
19661 (lispy_multimedia_keys) [WINDOWSNT]: New array.
19662 (make_lispy_event) [WINDOWSNT]: Use it to translate
19663 MULTIMEDIA_KEY_EVENT.
19664
19665 * w32term.h (WM_APPCOMMAND): Define if not already.
19666 (GET_APPCOMMAND_LPARAM): Likewise.
19667
19668 * w32term.c (w32_read_socket): Generate MULTIMEDIA_KEY_EVENT from
19669 WM_APPCOMMAND.
19670
19671 * w32fns.c (w32_pass_multimedia_buttons_to_system): New user option.
19672 (syms_of_w32fns): Export and initialize it.
19673 (w32_wnd_proc): Pass WM_APPCOMMAND on to w32_read_socket.
19674
196752007-11-09 Chong Yidong <cyd@stupidchicken.com>
19676
19677 * dispextern.h (struct it): Don't define OVERLAY_STRING_CHUNK_SIZE
19678 twice.
19679
19680 * xdisp.c (handle_face_prop): Fix last change.
19681
196822007-11-09 Richard Stallman <rms@gnu.org>
19683
19684 * xdisp.c (handle_face_prop): Test for strings that came from overlays,
19685 not just for after-strings and before-strings.
19686 Call face_for_overlay_string and pass the overlay to it.
19687 (handle_display_prop): Determine whether property came from an overlay.
19688 Pass OVERLAY arg to handle_single_display_spec.
19689 (handle_single_display_spec): New arg OVERLAY sets it->from_overlay.
19690 (load_overlay_strings): Fill in it->string_overlays.
19691 (get_overlay_strings_1, push_it, pop_it): Handle it->from_overlays.
19692
19693 * xfaces.c (face_for_overlay_string): Function renamed from
19694 face_at_buffer_position_no_overlays, and add arg OVERLAY.
19695
19696 * dispextern.h (struct it): New elt string_overlays.
19697 New elt from_overlay, also in stack.
19698 Rearrange a few elements.
19699 (face_for_overlay_string): Decl renamed from
19700 face_at_buffer_position_no_overlays, and add argument.
19701
197022007-11-09 Richard Stallman <rms@gnu.org>
19703
19704 * xdisp.c (handle_face_prop): Use face_at_buffer_position_no_overlays
19705 to get the base face for an overlay string.
19706
19707 * dispextern.h (face_at_buffer_position_no_overlays): Add decl.
19708
19709 * xfaces.c (face_at_buffer_position_no_overlays): New function.
19710
19711 * xdisp.c (handle_stop): Move some code out of loop.
19712
197132007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19714
19715 * macfns.c [USE_ATSUI] (Fmac_atsu_font_face_attributes):
19716 Fix conversion from Lisp object to ATSUFontID.
19717
197182007-11-09 Jason Rumney <jasonr@gnu.org>
19719
19720 * xdisp.c (Fformat_mode_line): Do nothing when noninteractive.
19721
197222007-11-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19723
19724 * unexmacosx.c (unexec_regions_recorder, unexec_regions_merge):
19725 Don't assume regions are aligned to page boundary.
19726 (print_load_command_name): Add LC_UUID if defined.
19727
197282007-11-09 Richard Stallman <rms@gnu.org>
19729
19730 * emacs.c (syms_of_emacs) <installation-directory>: Reflow docstring.
19731
197322007-11-07 Jason Rumney <jasonr@gnu.org>
19733
19734 * s/windows95.h: Remove.
19735
197362007-11-06 Jan Djärv <jan.h.d@swipnet.se>
19737
19738 * gtkutil.c (xg_tool_bar_menu_proxy): Handle GTK_IMAGE_ICON_NAME and
19739 abort with a message on unhandled store_type values.
19740
197412007-11-01 Jan Djärv <jan.h.d@swipnet.se>
19742
19743 * xterm.c, xfns.c, xselect.c, xterm.h, s/msdos.h, s/sco4.h, s/sco5.h:
19744 Remove HAVE_X11R5 and HAVE_X11R4.
19745
197462007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19747
19748 * Makefile.in: Remove references to sunfns.c and sunfns.o.
19749
197502007-11-01 Johan Bockgård <bojohan@gnu.org>
19751
19752 * macterm.c, w32term.c, xterm.c (x_draw_stretch_glyph_string):
19753 Don't set s->stippled_p here, since it has already been set by
19754 x_set_glyph_string_gc from x_draw_glyph_string.
19755
197562007-11-01 Dan Nicolaescu <dann@ics.uci.edu>
19757
19758 * sunfns.c: Remove file.
19759
19760 * m/sun386.h:
19761 * m/sun2.h:
19762 * m/sparc.h: Remove Sun windows code.
19763
197642007-10-31 Stefan Monnier <monnier@iro.umontreal.ca>
19765
19766 * keyboard.c (syms_of_keyboard): Initialize the initial_kboard.
19767 (init_keyboard): Set current_kboard's window-system to nil.
19768 (tty_read_avail_input): Typo.
19769 * frame.c (make_initial_frame): Don't initialize the initial_kboard.
19770
197712007-10-31 Dan Nicolaescu <dann@ics.uci.edu>
19772
19773 * s/usg5-4.h:
19774 * s/usg5-3.h:
19775 * s/ptx.h:
19776 * m/is386.h:
19777 * m/ibmps2-aix.h:
19778 * Makefile.in: Remove all mentions of X10.
19779
19780 * dispnew.c (syms_of_display): Don't mention version 10.
19781
197822007-10-28 Juanma Barranquero <lekktu@gmail.com>
19783
19784 * makefile.w32-in (OBJ1): Remove abbrev.$(O).
19785 ($(BLD)/abbrev.$(O)): Remove.
19786
197872007-10-28 Stefan Monnier <monnier@iro.umontreal.ca>
19788
19789 Rewrite abbrev.c in Elisp.
19790 * image.c (Qcount): Don't declare as extern.
19791 (syms_of_image): Initialize and staticpro `Qcount'.
19792 * puresize.h (BASE_PURESIZE): Increase for the new abbrev.el functions.
19793 * emacs.c (main): Don't call syms_of_abbrev.
19794 * Makefile.in (obj): Remove abbrev.o.
19795 (abbrev.o): Remove.
19796 * abbrev.c: Remove.
19797
197982007-10-26 Martin Rudalics <rudalics@gmx.at>
19799
19800 * window.c (window_min_size_2): Don't count header-line.
19801
198022007-10-26 Dan Nicolaescu <dann@ics.uci.edu>
19803
19804 * frame.h (struct frame): Move all bit fields after the first bit
19805 field to take advantage of the available space. Group all the
19806 chars together to reduce wasted space due to padding.
19807
198082007-10-26 Juanma Barranquero <lekktu@gmail.com>
19809
19810 * minibuf.c (Fread_minibuffer, Feval_minibuffer): Reflow docstrings.
19811
19812 * alloc.c (spare_memory, stack_copy, stack_copy_size, ignore_warnings)
19813 (Vdead, dont_register_blocks, staticvec, staticidx, interval_block)
19814 (n_interval_blocks, init_strings, check_string_bytes, check_sblock)
19815 (init_float, free_float, n_cons_blocks, init_cons, all_vectors)
19816 (n_vectors, symbol_block, symbol_block_index, symbol_free_list)
19817 (n_symbol_blocks, init_symbol, marker_block, marker_free_list)
19818 (n_marker_blocks, init_marker, valid_pointer_p, make_pure_float)
19819 (last_marked, mark_object_loop_halt): Make static.
19820
19821 * frame.c (syms_of_frame) <delete-frame-functions>:
19822 Fix typo in docstring.
19823
198242007-10-25 Juanma Barranquero <lekktu@gmail.com>
19825
19826 * w32.c (init_environment): Fix tiny memory leak.
19827 (w32_get_resource): Remove unused variable `ok'.
19828
198292007-10-25 Stefan Monnier <monnier@iro.umontreal.ca>
19830
19831 Make `window-system' into a keyboard-local variable (rather than
19832 frame-local as done originally by multi-tty).
19833
19834 * keyboard.h (struct kboard): Add Vwindow_system.
19835 * keyboard.c (init_kboard): Set a default for Vwindow_system.
19836 (mark_kboards): Mark Vwindow_system.
19837
19838 * dispnew.c (syms_of_display) <window-system>: Declare terminal-local.
19839 (init_display): Don't set the obsolete `window-system' frame-param.
19840
19841 * xterm.c (x_term_init):
19842 * w32term.c (w32_create_terminal):
19843 * term.c (init_tty): Set Vwindow_system.
19844 * macterm.c (mac_create_terminal): Set a keyboard (missing piece of the
19845 multi-tty merge maybe?), copied from w32term.c. Set Vwindow_system.
19846
19847 * xfns.c (Fx_create_frame, x_create_tip_frame):
19848 * w32fns.c (Fx_create_frame, x_create_tip_frame):
19849 * macfns.c (Fx_create_frame):
19850 Don't set the obsolete `window-system' frame-param.
19851
19852 * frame.h (Qwindow_system): Remove.
19853 * frame.c (Qwindow_system): Remove. In `syms_of_frame' as well.
19854 (Fmake_terminal_frame): Don't set obsolete `window-system' frame-param.
19855
198562007-10-24 Richard Stallman <rms@gnu.org>
19857
19858 * frame.c (x_figure_window_size): For fullscreen case,
19859 set USPosition | PPosition without clobbering rest of window_prompting.
19860
19861 * keyboard.c (Fcurrent_idle_time): Doc fix.
19862
19863 * print.c (Fwith_output_to_temp_buffer): Doc fix.
19864
198652007-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
19866
19867 * process.c (unwind_request_sigio): Only define if __ultrix__.
19868
19869 * callproc.c (child_setup): Remove spurious *.
19870
19871 * lisp.h (Fget_text_property): Declare.
19872 (have_menus_p): Declare it here rather than in sys-dep header files.
19873 * macterm.h (have_menus_p):
19874 * msdos.h (have_menus_p):
19875 * xterm.h (have_menus_p): Remove.
19876
19877 * data.c (Fmake_variable_buffer_local, Fmake_local_variable)
19878 (Fmake_variable_frame_local): Just check the variable's const-ness
19879 rather than checking nil or t.
19880
198812007-10-22 Jason Rumney <jasonr@gnu.org>
19882
19883 * w32fns.c: Include math.h.
19884 (w32_abort): Declaration moved to nt/config.nt.
19885
19886 * s/ms-w32.h (HAVE_STDLIB_H): Define.
19887 (abort): Redefinition moved to nt/config.nt.
19888
19889 * m/windowsnt.h: Remove.
19890
198912007-10-22 Juanma Barranquero <lekktu@gmail.com>
19892
19893 * emacs.c (Fdump_emacs): Fix typo in message.
19894 (syms_of_emacs) <kill-emacs-hook>: Fix typo in docstring.
19895 <installation-directory>: Reflow docstring.
19896
198972007-10-22 Juri Linkov <juri@jurta.org>
19898
19899 * minibuf.c: Allow minibuffer default to be a list of default values.
19900 With empty input use the first element of this list as returned default.
19901 (string_to_object)
19902 (read_minibuf_noninteractive): If defalt is cons, set val to its car.
19903 (read_minibuf): If defalt is cons, set histstring to its car.
19904 (Fread_string): If default_value is cons, set val to its car.
19905 (Fread_buffer): If def is cons, use its car.
19906 (Fcompleting_read): If defalt is cons, set val to its car.
19907
199082007-10-21 Michael Albinus <michael.albinus@gmx.de>
19909
19910 * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid.
19911
199122007-10-20 Juanma Barranquero <lekktu@gmail.com>
19913
19914 * doc.c (Fdocumentation): Check for advice in all cases.
19915
199162007-10-19 Chong Yidong <cyd@stupidchicken.com>
19917
19918 * Makefile.in [HAVE_LIBRESOLV]: Add -lresolv to linker flags.
19919
199202007-10-19 Richard Stallman <rms@gnu.org>
19921
19922 * doc.c (Fdocumentation): Check for and handle an advised function.
19923
199242007-10-19 Juanma Barranquero <lekktu@gmail.com>
19925
19926 * process.c (Fset_process_filter): Doc fix.
19927
199282007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
19929
19930 * keyboard.c (read_key_sequence): Undo a change introduced by multi-tty
19931 which caused key-translation-map to applied repeatedly (thus breaking
19932 double-mode).
19933
199342007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19935
19936 * xselect.c (x_own_selection, x_handle_selection_clear)
19937 (x_clear_frame_selections):
19938 * w32menu.c (list_of_panes, list_of_items):
19939 * w32fns.c (w32_color_map_lookup, Fx_create_frame, Fx_display_list):
19940 * textprop.c (validate_plist, interval_has_all_properties)
19941 (interval_has_some_properties, interval_has_some_properties_list)
19942 (add_properties, text_property_list):
19943 * process.c (Fget_buffer_process, list_processes_1, status_notify):
19944 * minibuf.c (Fassoc_string):
19945 * macselect.c (x_own_selection, x_clear_frame_selections)
19946 (Fx_disown_selection_internal):
19947 * keymap.c (Fcommand_remapping, where_is_internal, describe_map_tree):
19948 Use CONSP rather than !NILP and XC[AD]R rather than Fc[ad]r.
19949
199502007-10-17 Chong Yidong <cyd@stupidchicken.com>
19951
19952 * process.c: Link to libs for calling res_init() if available.
19953 (Fmake_network_process): Call res_init() before getaddrinfo or
19954 gethostbyname, if possible.
19955
199562007-10-17 Stefan Monnier <monnier@iro.umontreal.ca>
19957
19958 * lread.c (read1): Set pvectype for char_tables.
19959
19960 * lisp.h (XMISCANY, XMARKER, XINTFWD, XBOOLFWD, XOBJFWD, XOVERLAY)
19961 (XBUFFER_OBJFWD, XBUFFER_LOCAL_VALUE, XKBOARD_OBJFWD, XSAVE_VALUE):
19962 Add type checks.
19963 (SOME_BUFFER_LOCAL_VALUEP, GC_SOME_BUFFER_LOCAL_VALUEP): Remove.
19964
19965 * alloc.c (free_misc): Use XMISCTYPE.
19966 (live_misc_p, gc_sweep): Use Lisp_Misc_Any.
19967
199682007-10-17 Glenn Morris <rgm@gnu.org>
19969
19970 * minibuf.c (Qcompletion_ignore_case): New Lisp_Object.
19971 (syms_of_minibuf): Add Qcompletion_ignore_case.
19972 * dired.c (Qcompletion_ignore_case): Change to external.
19973 (syms_of_dired) [VMS]: Remove Qcompletion_ignore_case.
19974 * fileio.c (Qcompletion_ignore_case): New external Lisp_Object.
19975 (Fread_file_name): Use it rather than intern'ing.
19976
19977 * coding.c (Qcompletion_ignore_case): New external Lisp_Object.
19978 (Fread_coding_system): Ignore case of user input.
19979
199802007-10-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
19981
19982 * xdisp.c (handle_display_prop): Ignore display specs after
19983 replacing one when string text is being replaced.
19984 (handle_single_display_spec): Pretend as if characters with display
19985 property haven't been consumed only when buffer text is being replaced.
19986
199872007-10-16 Stefan Monnier <monnier@iro.umontreal.ca>
19988
19989 * xfns.c (Fx_create_frame, Fx_display_list):
19990 * window.c (window_fixed_size_p, enlarge_window)
19991 (shrink_window_lowest_first):
19992 * macterm.c (init_font_name_table):
19993 * macfns.c (Fx_create_frame, Fx_display_list):
19994 * lread.c (close_load_descs):
19995 * keyboard.c (read_char_x_menu_prompt):
19996 * fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
19997 * coding.c (code_convert_region_unwind): Test the type of an object
19998 rather than just !NILP before extracting data from it.
19999
20000 * alloc.c (Fpurecopy): Set the pvec tag on pseudo vectors.
20001
20002 * lisp.h (enum Lisp_Misc_Type): Del Lisp_Misc_Some_Buffer_Local_Value.
20003 (XMISCANY): New macro.
20004 (XMISCTYPE): Use it.
20005 (struct Lisp_Misc_Any): New type.
20006 (union Lisp_Misc): Use it.
20007 (struct Lisp_Buffer_Local_Value): Add `local_if_set' bit.
20008 * data.c (Fboundp, store_symval_forwarding, swap_in_global_binding)
20009 (find_symbol_value, set_internal, default_value, Fset_default)
20010 (Fmake_variable_buffer_local, Fmake_local_variable)
20011 (Fkill_local_variable, Fmake_variable_frame_local, Flocal_variable_p)
20012 (Flocal_variable_if_set_p, Fvariable_binding_locus):
20013 The SOME_BUFFER_LOCAL_VALUEP distinction is replaced by local_if_set.
20014 * alloc.c (allocate_buffer): Set the size and tag.
20015 (allocate_misc, mark_maybe_object, mark_object, survives_gc_p):
20016 Use XMISCANY.
20017 (die): Follow the GNU convention for error messages.
20018 * print.c (print_object): SOME_BUFFER_LOCAL_VALUEP -> local_if_set.
20019 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Don't set the
20020 tag any more.
20021 (set_buffer_internal_1):
20022 * frame.c (store_frame_param):
20023 * eval.c (specbind):
20024 * xdisp.c (select_frame_for_redisplay): Drop SOME_BUFFER_LOCAL_VALUEP.
20025
20026 * doc.c (Fsnarf_documentation): Simplify.
20027
200282007-10-14 Juanma Barranquero <lekktu@gmail.com>
20029
20030 * w32term.c (w32_font_is_double_byte, my_create_scrollbar): Make static.
20031 (syms_of_w32term) <w32-enable-unicode-output>: Fix typo in docstring.
20032
200332007-10-14 Stefan Monnier <monnier@iro.umontreal.ca>
20034
20035 * buffer.c (Fmake_indirect_buffer): Set the buffer's tag.
20036
200372007-10-14 Juanma Barranquero <lekktu@gmail.com>
20038
20039 * eval.c (do_autoload): Don't save autoloads.
20040
20041 * data.c (Ffset): Save autoload of the function being set.
20042
200432007-10-07 John Paul Wallington <jpw@pobox.com>
20044
20045 * xfns.c (x_create_tip_frame): Set the `display-type' frame
20046 parameter before setting up faces.
20047
200482007-10-13 Eli Zaretskii <eliz@gnu.org>
20049
20050 * ccl.c (Fregister_code_conversion_map):
20051 * keyboard.c (append_tool_bar_item): Reformat last change.
20052
20053 * lisp.h (eabs): Rename from `abs'. All callers changed.
20054
200552007-10-05 Dmitry Antipov <dmantipov@yandex.ru>
20056
20057 * buffer.c (add_overlay_mod_hooklist):
20058 * ccl.c (Fregister_ccl_program, Fregister_code_conversion_map):
20059 * fontset.c (make_fontset):
20060 * keyboard.c (GROW_RAW_KEYBUF, menu_bar_items, menu_bar_item)
20061 (append_tool_bar_item):
20062 * macmenu.c (grow_menu_items):
20063 * w32menu.c (grow_menu_items):
20064 * xmenu.c (grow_menu_items): Use larger_vector.
20065
200662007-10-13 Eli Zaretskii <eliz@gnu.org>
20067
20068 * msdos.c (dos_rawgetc): Undo last change (there's no ``leaving
20069 selected frame'' on MSDOS).
20070
200712007-10-12 Martin Rudalics <rudalics@gmx.at>
20072
20073 * frame.c (Qexplicit_name): New variable.
20074 (x_report_frame_params): Report it in parameter alist.
20075 (syms_of_frame): Intern and staticpro it.
20076
200772007-10-10 Patrick Mahan <mahan@mahan.org> (tiny change)
20078
20079 * macfns.c (x_create_tip_frame): Set terminal for frame.
20080
200812007-10-10 Stefan Monnier <monnier@iro.umontreal.ca>
20082
20083 * frame.c (Qenvironment): Remove.
20084 (syms_of_frame) <Qenvironment>: Don't initialize.
20085 (Fdelete_frame): Don't treat the `environment' param specially.
20086 * frame.h (Qenvironment): Don't declare.
20087 * callproc.c (set_initial_environment): Don't set unused frame param.
20088
20089 * frame.c (Fframe_with_environment): Remove.
20090 (syms_of_frame) <Sframe_with_environment>: Don't declare.
20091
20092 * lisp.h (Fframe_with_environment): Don't declare.
20093
200942007-10-10 Juanma Barranquero <lekktu@gmail.com>
20095
20096 * indent.c (indent_tabs_mode, last_known_column)
20097 (last_known_column_modified): Make static.
20098 (syms_of_indent) <indent-tabs-mode>: Remove redundant info in docstring.
20099
201002007-10-10 Katsumi Yamaoka <yamaoka@jpl.org>
20101
20102 * puresize.h (BASE_PURESIZE): Increase to 1170000.
20103
201042007-10-09 Jason Rumney <jasonr@gnu.org>
20105
20106 * w32term.c (x_set_window_size): Disable code that attempts to tell
20107 Lisp code about a size change before it actually happens.
20108
201092007-10-09 Richard Stallman <rms@gnu.org>
20110
20111 * xdisp.c (handle_invisible_prop): After setting up an ellipsis,
20112 return HANDLED_RETURN.
20113
201142007-10-08 Martin Rudalics <rudalics@gmx.at>
20115
20116 * keyboard.c (kbd_buffer_get_event): Break loop waiting for input
20117 when there's an unread command event.
20118
20119 * frame.c (focus_follows_mouse): Move here from frame.el to allow
20120 window autoselection act appropriately when leaving selected frame.
20121 (syms_of_frame): Initialize focus_follows_mouse.
20122 * frame.h (focus_follows_mouse): Extern it.
20123 * macterm.c (XTread_socket): When focus_follows_mouse is nil
20124 make SELECT_WINDOW_EVENT only if we don't leave the selected frame.
20125 * msdos.c (dos_rawgetc): Likewise.
20126 * w32term.c (w32_read_socket): Likewise.
20127 * xterm.c (handle_one_xevent): Likewise.
20128 * xdisp.c (syms_of_xdisp): In doc-string of
20129 mouse-autoselect-window mention focus-follows-mouse.
20130
201312007-10-08 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
20132
20133 * macterm.c (mac_load_query_font): Fix missing return value.
20134 [USE_CG_DRAWING] (mac_define_fringe_bitmap, mac_destroy_fringe_bitmap):
20135 Add BLOCK_INPUT.
20136
201372007-10-08 Richard Stallman <rms@gnu.org>
20138
20139 * xdisp.c (get_window_cursor_type): Implement documented behavior
20140 for cursor-in-non-selected-windows = t.
20141
201422007-10-08 Jason Rumney <jasonr@gnu.org>
20143
20144 * w32.c (w32_get_resource): Always close registry keys.
20145
201462007-10-08 Jason Rumney <jasonr@gnu.org>
20147
20148 * makefile.w32-in (LIBS): Add COMCTL32.
20149
20150 * w32fns.c (globals_of_w32fns): Init common controls.
20151
201522007-10-08 Richard Stallman <rms@gnu.org>
20153
20154 * image.c (our_memory_buffer): Rename from omfib_buffer.
20155
201562007-10-08 Richard Stallman <rms@gnu.org>
20157
20158 * buffer.c (Foverlays_at): Doc fix.
20159
201602007-10-08 Stefan Monnier <monnier@iro.umontreal.ca>
20161
20162 * fns.c (Fplist_put): Preserve uneven tail data.
20163
201642007-10-08 Peter O'Gorman <bug-gnu-emacs@mlists.thewrittenword.com> (tiny change)
20165
20166 * termhooks.h (enum event_kind): Remove trailing comma.
20167
20168 * frame.h (enum): Remove trailing comma.
20169
201702007-10-08 Dhruva Krishnamurthy <dhruvakm@gmail.com> (tiny change)
20171
20172 * w32proc.c (delete_child): Don't terminate threads of zombies.
20173
201742007-10-08 Martin Rudalics <rudalics@gmx.at>
20175
20176 * keyboard.h (struct kboard): New elt Vlast_repeatable_command.
20177
20178 * keyboard.c (syms_of_keyboard): Set up new Lisp variable
20179 last-repeatable-command.
20180 (init_kboard): Initialize Vlast_repeatable_command.
20181 (command_loop_1): Set it to real_this_command unless that was
20182 bound to an input event.
20183 (mark_kboards): Mark it.
20184
201852007-10-08 Richard Stallman <rms@gnu.org>
20186
20187 * eval.c (condition-case): Doc fix.
20188
201892007-10-08 Masatake YAMATO <jet@gyve.org>
20190
20191 * xfaces.c (tty_supports_face_attributes_p): Fix code
20192 for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
20193 was copied and not edited.
20194
201952007-10-09 Stefan Monnier <monnier@iro.umontreal.ca>
20196
20197 Add new `input-decode-map' keymap and use it for terminal
20198 escape sequences.
20199 * keyboard.h (struct kboard): Add Vinput_decode_map.
20200 Remove Vlocal_key_translation_map.
20201 * keyboard.c (read_key_sequence): Add support for input-decode-map.
20202 (init_kboard): Init input-decode-map.
20203 Replace local-key-translation-map back with key-translation-map.
20204 (syms_of_keyboard): Declare input-decode-map.
20205 Remove local-key-translation-map. Update docstrings.
20206 (mark_kboards): Mark Vinput_decode_map.
20207 Don't mark Vlocal_key_translation_map.
20208 * keymap.c (Fdescribe_buffer_bindings): Describe input-decode-map.
20209 Replace local-key-translation-map back with key-translation-map.
20210 * term.c (term_get_fkeys_1, CONDITIONAL_REASSIGN):
20211 Bind in input-decode-map rather than function-key-map.
20212
20213 * lisp.h (XSETPSEUDOVECTOR): Don't set the tag anymore.
20214 This was made redundant by the previous introduction of XSETPVECTYPE.
20215
202162007-10-09 Richard Stallman <rms@gnu.org>
20217
20218 * image.c (free_bitmap_record): Rename from Free_Bitmap_Record.
20219
202202007-09-29 Richard Stallman <rms@gnu.org>
20221
20222 * eval.c (internal_condition_case_2, internal_condition_case_1)
20223 (internal_condition_case): Reenable abort if x_catching_errors ()
20224 to see if that really happens and why.
20225
202262007-10-06 Andreas Schwab <schwab@suse.de>
20227
20228 * fileio.c (Fwrite_region): Ignore EINVAL error from fsync.
20229
202302007-10-04 Juanma Barranquero <lekktu@gmail.com>
20231
20232 * image.c (syms_of_image) <image-types>: Fix typo in docstring.
20233
202342007-10-03 Stefan Monnier <monnier@iro.umontreal.ca>
20235
20236 * frame.h (struct frame): Don't try to GC-mark menu_bar_items_used.
20237
202382007-10-02 Stefan Monnier <monnier@iro.umontreal.ca>
20239
20240 * window.h (struct window):
20241 * window.c (struct save_window_data, struct saved_window):
20242 * termhooks.h (struct terminal):
20243 * process.h (struct Lisp_Process):
20244 * frame.h (struct frame):
20245 * buffer.h (struct buffer):
20246 * lisp.h (struct Lisp_Vector, struct Lisp_Char_Table)
20247 (struct Lisp_Bool_Vector, struct Lisp_Subr, struct Lisp_Hash_Table):
20248 The size field of (pseudo)vectors is now unsigned.
20249 (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Simplify accordingly.
20250
20251 * lisp.h (struct Lisp_Hash_Table): Move non-traced elements at the end.
20252 Turn `count' into an integer.
20253
20254 * fns.c (make_hash_table, hash_put, hash_remove, hash_clear)
20255 (sweep_weak_table, sweep_weak_hash_tables, Fhash_table_count):
20256 * print.c (print_object) <HASH_TABLE_P>: `count' is an int.
20257 * alloc.c (allocate_hash_table): Use ALLOCATE_PSEUDOVECTOR.
20258 (mark_object) <HASH_TABLE_P>: Use mark_vectorlike.
20259
20260 * alloc.c (allocate_pseudovector): New fun.
20261 (ALLOCATE_PSEUDOVECTOR): New macro.
20262 (allocate_window, allocate_terminal, allocate_frame)
20263 (allocate_process): Use it.
20264 (mark_vectorlike): New function.
20265 (mark_object) <FRAMEP, WINDOWP, BOOL_VECTOR_P, VECTORP>: Use it.
20266 (mark_terminals): Use it.
20267 (Fmake_bool_vector, Fmake_char_table, make_sub_char_table)
20268 (Fmake_byte_code): Use XSETPVECTYPE.
20269
20270 * frame.c (Fframe_parameters): Minor simplification.
20271
20272 * insdel.c (adjust_markers_for_insert): Generalize assertion checks.
20273
20274 * marker.c (Fmarker_buffer): Make test for odd case into a failure.
20275
20276 * buffer.c (Fget_buffer_create, init_buffer_once):
20277 * lread.c (defsubr):
20278 * window.c (Fcurrent_window_configuration): Use XSETPVECTYPE.
20279
20280 * lisp.h (ARRAY_MARK_FLAG, PSEUDOVECTOR_FLAG): Don't let them be
20281 defined differently in the m/*.h files.
20282 (XCHAR_TABLE, XBOOL_VECTOR): Add assertion checking.
20283 (XSETPVECTYPE): New macro.
20284 (XSETPSEUDOVECTOR): Use it.
20285
20286 * buffer.c (syms_of_buffer) <local-abbrev-table>: Move from abbrev.c.
20287 (DEFVAR_PER_BUFFER, defvar_per_buffer): Move from lisp.h and lread.c.
20288
20289 * lisp.h (defvar_per_buffer, DEFVAR_PER_BUFFER):
20290 * lread.c (defvar_per_buffer):
20291 * abbrev.c (syms_of_abbrev) <local-abbrev-tabl>: Move to buffer.c.
20292
20293 * window.c (candidate_window_p): Only consider as visible frames that
20294 are on the same terminal.
20295
20296 * m/ibms390x.h (MARKBIT): Remove unused macro.
20297
202982007-10-01 Juanma Barranquero <lekktu@gmail.com>
20299
20300 * lread.c (Fload): Fix typo in docstring.
20301
203022007-10-01 Michaël Cadilhac <michael@cadilhac.name>
20303
20304 * floatfns.c (Fexpt): Manually check for overflows, so that a power
20305 of a non-zero value can't yield zero.
20306
203072007-09-29 Stefan Monnier <monnier@iro.umontreal.ca>
20308
20309 * term.c (term_clear_mouse_face, term_mouse_highlight)
20310 (tty_write_glyphs_with_face): Only define is HAVE_GPM.
20311
20312 * print.c (safe_debug_print): Use XHASH.
20313
20314 * lisp.h (DECL_ALIGN, USE_LSB_TAG): Move logic to before definition of
20315 Lisp elements such as tags.
20316 (XHASH): New macro.
20317 (EQ): Use it.
20318 (SREF, SSET, STRING_COPYIN): Use SDATA.
20319 (VOID_TO_LISP, CVOID_TO_LISP, LISP_TO_VOID, LISP_TO_CVOID): Remove.
20320
20321 * alloc.c (mark_terminal): Remove left-over declaration.
20322 (enum mem_type): Replace all vector subtypes -> MEM_TYPE_VECTORLIKE.
20323 (allocate_vectorlike): Remove type argument. Adjust callers.
20324 (live_vector_p, mark_maybe_pointer, valid_lisp_object_p):
20325 Only handle the one remaining MEM_TYPE_VECTORLIKE.
20326
20327 * alloc.c (MALLOC_BLOCK_INPUT, MALLOC_UNBLOCK_INPUT): New macros
20328 to avoid unnecessary BLOCK_INPUTs when SYNC_INPUT is used.
20329 (xmalloc, xrealloc, xfree, lisp_malloc, lisp_free, lisp_align_malloc)
20330 (lisp_align_free, make_interval, allocate_string, allocate_string_data)
20331 (make_float, Fcons, allocate_vectorlike, Fmake_symbol, allocate_misc):
20332 Use them.
20333
20334 * xfaces.c (load_face_font, free_realized_face, clear_face_gcs):
20335 Don't let signal handlers run when a GC is freed but not yet NULL'ed.
20336 (x_free_gc): Remove BLOCK_INPUT since it's now redundant.
20337
203382007-09-28 Dan Nicolaescu <dann@ics.uci.edu>
20339
20340 * Makefile.in (lisp, shortlisp): Delete server.elc, it is not
20341 loaded by default.
20342
203432007-09-28 Stefan Monnier <monnier@iro.umontreal.ca>
20344
20345 * term.c (Fgpm_mouse_start): Don't signal an error if already activated
20346 on this tty.
20347 (Fgpm_mouse_stop): Only deactivate if it was activated on this tty.
20348
20349 * term.c (mouse_face_window): Rename from Qmouse_face_window.
20350 Update all users.
20351 (handle_one_term_event): Use Gpm_DrawPointer.
20352 (Fgpm_mouse_start): Rename from Fterm_open_connection.
20353 Signal errors instead of returning nil. Always return nil.
20354 (Fgpm_mouse_stop): Rename from Fterm_close_connection.
20355 Make it a noop if gpm-mouse was not activated.
20356 (syms_of_term): Update names.
20357
203582007-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
20359
20360 * sysdep.c (narrow_foreground_group, widen_foreground_group): Static.
20361 (init_sys_modes): Check that gpm_tty is the current tty.
20362
20363 * alloc.c (allocate_terminal): Set the vector size to only count the
20364 lisp fields. Initialize those to nil.
20365 (mark_object): Don't treat terminals specially.
20366 (mark_terminal): Remove.
20367 (mark_terminals): Use mark_object instead.
20368
20369 * termhooks.h (struct terminal): Move all Lisp_Object fields traced by
20370 the GC to the beginning.
20371
20372 * indent.h:
20373 * indent.c: Use EMACS_INT for ints coming from Elisp data.
20374
20375 * indent.c (Fmove_to_column): Use EMACS_INT for buffer positions.
20376
203772007-09-25 Jason Rumney <jasonr@gnu.org>
20378
20379 * frame.c (make_terminal_frame): Remove special case for WINDOWSNT.
20380
20381 * w32console.c (create_w32cons_output): Remove.
20382
20383 * term.c (init_tty): Call init_sys_modes on WINDOWSNT also.
20384
20385 * sysdep.c (init_sys_modes): Use set_terminal_modes_hook.
20386 (reset_sys_modes): Use reset_terminal_modes_hook.
20387
203882007-09-24 Stefan Monnier <monnier@iro.umontreal.ca>
20389
20390 * eval.c (do_autoload): Don't output any message.
20391
203922007-09-24 Juri Linkov <juri@jurta.org>
20393
20394 * emacs.c (standard_args): Change priority of "--no-splash"
20395 from 40 to 3. Add "--no-desktop" with the same priority.
20396
203972007-09-23 Dmitry Antipov <dmantipov@yandex.ru>
20398
20399 * alloc.c (gc_sweep): Check cons cell mark bits word by word
20400 and optimize the case where they are all 1.
20401
204022007-09-23 Johannes Weiner <hannes@saeurebad.de>
20403
20404 * lisp.h (abs): Define if not defined.
20405 * keyboard.c, sound.c, w32term.c, xfaces.c, xterm.c:
20406 Don't define `abs', since it's defined in lisp.h.
20407
204082007-09-22 Eli Zaretskii <eliz@gnu.org>
20409
20410 * term.c (DEV_TTY): New macro. Provide a definition for MS-Windows.
20411 (FRAME_TERMCAP_P) [WINDOWSNT]: Don't define to zero.
20412 (Fcontrolling_tty_p, Fresume_tty, dissociate_if_controlling_tty)
20413 (init_tty): Use DEV_TTY instead of "/dev/tty".
20414 [WINDOWSNT]: No need to protect from NAME arg being null.
20415
204162007-09-21 Dan Nicolaescu <dann@ics.uci.edu>
20417
20418 * term.c (Fsuspend_tty): Run suspend-tty-functions before cleaning
20419 up the tty state.
20420
204212007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20422
20423 * termhooks.h (term_gpm): Delete. Use gpm_tty's NULLness instead.
20424 (gpm_tty): Change its type.
20425 * term.c (term_gpm): Delete. Use gpm_tty's NULLness instead.
20426 (gpm_tty): Change its type and initialize it.
20427 (Fterm_open_connection): Check the frame is indeed a tty.
20428 Use the new gpm_tty.
20429 (Fterm_close_connection): Use the new gpm_tty.
20430 * keyboard.c (tty_read_avail_input): Use the new gpm_tty.
20431 * sysdep.c (init_sys_modes): term_gpm -> gpm_tty.
20432
204332007-09-21 Juanma Barranquero <lekktu@gmail.com>
20434
20435 * w32term.c (x_draw_glyph_string): Use strike_through_color, not
20436 underline_color, to draw strike-through.
20437
204382007-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
20439
20440 * lisp.h (allocate_terminal): Declare.
20441
20442 * window.c (candidate_window_p): Consider frames that are being placed
20443 by the user as somewhere between visible and iconified.
20444 (window_loop): Prefer windows on the current frame.
20445 (Fselect_window): Move the use of select-frame to the beginning so we
20446 can just delegate all the work (it'll call us back anyway).
20447
20448 * frame.c (Qdisplay_environment_variable):
20449 * frame.h (Qdisplay_environment_variable): Delete.
20450
20451 * .gdbinit (xbacktrace): Print the arg's address rather than the value
20452 of the first arg, since that value may be a union.
20453
20454 * callproc.c (child_setup, getenv_internal): Use the frame's `display'
20455 parameter rather than Qdisplay_environment_variable. If all else
20456 fails, look for DISPLAY in initial-environment.
20457
204582007-09-21 Glenn Morris <rgm@gnu.org>
20459
20460 * Makefile.in (emacstool): Remove target.
20461 (lisp, shortlisp): Remove termdev.elc.
20462
204632007-09-21 Markus Triska <markus.triska@gmx.at>
20464
20465 * xterm.c (x_delete_display): Compile session management conditionally.
20466
204672007-09-20 Stefan Monnier <monnier@iro.umontreal.ca>
20468
20469 * callproc.c (getenv_internal_1): New function.
20470 (getenv_internal): Use it.
20471 (Fgetenv_internal): Use it. Accept an env-list as optional arg.
20472
20473 * terminal.c (get_terminal): Don't accept ints to represent terminals.
20474 (Fterminal_name, Fterminal_parameters, Fterminal_parameter)
20475 (Fset_terminal_parameter): Work with dead terminals as well.
20476 (Fmodify_terminal_parameters): Remove.
20477
20478 * terminal.c (get_terminal): Handle terminals.
20479 Make sure the terminal returned is live.
20480 (create_terminal): Use allocate_terminal.
20481 (mark_terminals): Move to alloc.c.
20482 (delete_terminal): Use terminal->name as liveness status.
20483 NULL out fields after freeing their contents.
20484 Don't deallocate the object.
20485 (Fframe_terminal): Use FRAME_TERMINAL. Return the terminal object
20486 rather than an int.
20487 (Fterminal_live_p): Accept non-integer arguments.
20488 (Fterminal_list): Return terminal objects rather than an ints.
20489
20490 * alloc.c (enum mem_type): New member for `terminal' objects.
20491 (allocate_terminal): New function.
20492 (mark_maybe_pointer, valid_lisp_object_p, mark_object):
20493 Handle terminals.
20494 (mark_terminal): New fun.
20495 (mark_terminals): Move from terminal.c.
20496
20497 * term.c (get_tty_terminal): Don't treat output_initial specially.
20498 (Fsuspend_tty, Fresume_tty): Use terminal objects rather than ints.
20499 (delete_tty): Use terminal->name as liveness status.
20500
20501 * termhooks.h (struct terminal): Make it into a pseudovector.
20502 Remove `deleted' replaced by checking `name's nullness.
20503
20504 * print.c (print_object): Handle terminals.
20505
20506 * lisp.h (enum pvec_type): New `terminal' pseudovector.
20507 (XTERMINAL, XSETTERMINAL, TERMINALP, GC_TERMINALP): New macros.
20508
20509 * frame.c (make_terminal_frame):
20510 * keyboard.c (tty_read_avail_input):
20511 * w32term.c (x_delete_terminal):
20512 * xfns.c (Fx_create_frame, x_create_tip_frame):
20513 * xterm.c (x_delete_terminal): Use terminal->name as liveness status.
20514
205152007-09-20 Glenn Morris <rgm@gnu.org>
20516
20517 * process.c (Fmake_network_process): Doc fix.
20518
205192007-09-19 Jason Rumney <jasonr@gnu.org>
20520
20521 * dispextern.h (w32_init_fringe, mac_init_fringe): Declare rif argument.
20522
205232007-09-19 Michaël Cadilhac <michael@cadilhac.name>
20524
20525 * coding.c (detect_eol_type, detect_eol_type_in_2_octet_form):
20526 Fix a C warning regarding variable constness.
20527
20528 * xterm.c (handle_one_xevent): Fix a C warning.
20529
205302007-09-18 Jason Rumney <jasonr@gnu.org>
20531
20532 * w32fns.c (Fx_focus_frame): Rename from Fw32_focus_frame.
20533
205342007-09-17 Jan Djärv <jan.h.d@swipnet.se>
20535
20536 * gtkutil.c (gdpy_def): New variable.
20537 (xg_initialize): Initialize gdpy_def.
20538 (xg_display_close): If no other display exists, set gdpy_def to a
20539 new connection.
20540
205412007-09-16 Jan Djärv <jan.h.d@swipnet.se>
20542
20543 * gtkutil.c (xg_get_image_for_pixmap): Always create a GdkPixbuf
20544 when we have no file name for the icon.
20545 (xg_tool_bar_expose_callback): Remove.
20546 (xg_create_tool_bar): Don't connect expose signal to
20547 xg_tool_bar_expose_callback.
20548 (xg_get_file_with_chooser): Move GCPRO1 after declarations.
20549
205502007-09-16 Andreas Schwab <schwab@suse.de>
20551
20552 * alloc.c (reset_malloc_hooks): Set the hooks to the previous
20553 values instead of zapping them.
20554
205552007-09-14 Glenn Morris <rgm@gnu.org>
20556
20557 * fringe.c (init_fringe_bitmap) <swap_nibble>: Move to file scope.
20558 * gtkutil.c (xg_separator_p) <separator_names>: Move to file scope.
20559 * image.c (our_memory_fill_input_buffer) <buffer>: Move to file
20560 scope and rename to omfib_buffer for clarity.
20561 (gif_load) <interlace_start, interlace_increment>: Move to file scope.
20562
205632007-09-14 Kenichi Handa <handa@m17n.org>
20564
20565 * xterm.c (handle_one_xevent): Skip decoding if nbytes is zero.
20566
205672007-09-13 Jason Rumney <jasonr@gnu.org>
20568
20569 * fringe.c (w32_init_fringe, mac_init_fringe): Add rif argument.
20570
20571 * w32term.c (w32_term_init): Pass rif to w32_init_fringe.
20572
20573 * macterm.c (mac_initialize): Don't call mac_init_fringe here.
20574 (mac_term_init): Call here instead, passing rif.
20575
205762007-09-13 Glenn Morris <rgm@gnu.org>
20577
20578 * s/hpux.h: No longer define `static' as nothing.
20579
205802007-09-13 Johan Bockgård <bojohan@gnu.org>
20581
20582 * callint.c (Fcall_interactively): Remove unused var `fun'.
20583
205842007-09-12 Romain Francoise <romain@orebokech.com>
20585
20586 * window.c (prefer_window_split_horizontally, display_buffer):
20587 Revert 2007-09-08 change.
20588
205892007-09-12 Glenn Morris <rgm@gnu.org>
20590
20591 * alloca.c: Remove file.
20592 * Makefile.in (alloca): Do not undef.
20593 (allocaobj, alloca.o): Remove.
20594 (otherobj): Remove allocaobj.
20595 * keyboard.c (command_loop_1): Remove #ifdef C_ALLOCA block.
20596 * regex.c (C_ALLOCA): Remove all references and code that was only
20597 used when this was defined.
20598 * search.c (boyer_moore): Remove #ifdef C_ALLOCA block.
20599 * xmenu.c (xmenu_show): Remove #ifdef C_ALLOCA block.
20600 * m/ibms390x.h, m/sh3el.h (C_ALLOCA): Remove references to this.
20601
20602 * Makefile.in (SOURCES, unlock, relock): Delete.
20603
20604 * gtkutil.c (cnt): Rename to menu_grab_callback_cnt for clarity.
20605 (menu_grab_callback): All uses changed.
20606
20607 * xselect.c (cnt): Rename to x_reply_selection_request_cnt for clarity.
20608 (x_reply_selection_request): All uses changed.
20609
206102007-09-11 Stefan Monnier <monnier@iro.umontreal.ca>
20611
20612 * lread.c (load_warn_old_style_backquotes): Change message to look
20613 better when it appears in the middle of byte-compiler messages.
20614
206152007-09-10 Dan Nicolaescu <dann@ics.uci.edu>
20616
20617 * s/darwin.h (MULTI_KBOARD): Only define for Carbon.
20618
20619 * xterm.c (x_create_terminal): Add comment.
20620
20621 * term.c (clear_tty_hooks, set_tty_hooks): Add comments.
20622
206232007-09-10 Richard Stallman <rms@gnu.org>
20624
20625 * xterm.c (x_term_init): Give error if can't open DISPLAY_NAME.
20626
206272007-09-10 Michaël Cadilhac <michael@cadilhac.name>
20628
20629 * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'.
20630 (DEFUN): Document `intspec', use it instead of `prompt'.
20631
20632 * eval.c (Fcommandp): Change `->prompt' to `->intspec'.
20633
20634 * data.c (Finteractive_form): If the interactive specification starts
20635 with a `(', use it as a Lisp form.
20636
20637 * fileio.c (Fset_file_modes): Add an interactive spec that reads a file
20638 name and file modes.
20639
20640 * callint.c (Fcall_interactively): Comment fixes.
20641
206422007-09-10 Stefan Monnier <monnier@iro.umontreal.ca>
20643
20644 * callint.c (Fcall_interactively): Use Finteractive_form also for subrs
20645 and compiled functions.
20646
206472007-09-08 Fredrik Axelsson <f.axelsson@gmail.com>
20648
20649 * window.c (prefer_window_split_horizontally): New variable.
20650 (display_buffer): Consider splitting window horizontally depending
20651 on prefer_window_split_horizontally.
20652
206532007-09-08 Eli Zaretskii <eliz@gnu.org>
20654
20655 * sysdep.c [WINDOWSNT]: Don't include sysselect.h.
20656
206572007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20658
20659 * s/cygwin.h (GC_MARK_STACK): Enable conservative stack marking.
20660
20661 * frame.c (x_set_frame_parameters): Check number is positive before
20662 using XFASTINT.
20663
20664 * window.c (freeze_window_start): Don't presume selected_window holds
20665 a window object.
20666 (Fdisplay_buffer): Remove `register' since `buffer' needs to be gcpro'd.
20667
206682007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
20669
20670 * term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
20671
206722007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
20673
20674 * window.c (Vsplit_window_preferred_function): New var.
20675 (Fdisplay_buffer): Use it.
20676 (syms_of_window): Export, and initialize it.
20677
206782007-09-06 Pixel <pixel@mandriva.com> (tiny change)
20679
20680 * image.c (gif_load): Fix bug: Handle nonexistent colormap.
20681
206822007-09-06 Glenn Morris <rgm@gnu.org>
20683
20684 * gtkutil.c (menu_grab_callback) <cnt>:
20685 * xselect.c (x_reply_selection_request) <cnt>: Move static
20686 variable to file scope.
20687
206882007-09-06 Stefan Monnier <monnier@iro.umontreal.ca>
20689
20690 * xdisp.c (redisplay_internal): Make sure Elisp code always sees
20691 consistent values of selected_frame and selected_window.
20692
206932007-09-04 Jason Rumney <jasonr@gnu.org>
20694
20695 * w32console.c (initialize_w32_display): Zero unused hooks.
20696
206972007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20698
20699 * term.c (Vsuspend_tty_functions, Vresume_tty_functions)
20700 (syms_of_term, Fsuspend_tty, Fresume_tty): Undo previous change.
20701
207022007-09-04 Jason Rumney <jasonr@gnu.org>
20703
20704 * term.c (init_tty) [WINDOWSNT]: Add hooks that are not accessible
20705 in w32console.c. Set up input. Remove XXX comments that have been
20706 confirmed as correct.
20707
20708 * s/ms-w32.h (MULTI_KBOARD): Define.
20709
20710 * w32console.c (one_and_only_w32cons): Remove.
20711 (initialize_w32_display): Take terminal argument.
20712
20713 * term.c (init_tty) [WINDOWSNT]: Pass terminal to
20714 initialize_w32_display.
20715 (init_tty) [MULTI_KBOARD]: Include this code on WINDOWSNT too.
20716
20717 * termhooks.h (enum event_kind) <HORIZ_WHEEL_EVENT>: New event.
20718
20719 * keyboard.c (discard_mouse_events): Discard it.
20720 (make_lispy_event): Translate it to a lisp event.
20721 (lispy_wheel_names): Add wheel-left and right events.
20722 (syms_of_keyboard): Enlarge wheel_syms.
20723
20724 * w32fns.c (w32_wnd_proc) <WM_DROPFILES>: Merge with WM_MOUSEWHEEL.
20725 <WM_MOUSEHWHEEL>: Pass new system message to lisp.
20726
20727 * w32term.h (WM_MOUSEHWHEEL): Define if system headers don't.
20728
20729 * w32term.c (construct_mouse_wheel): Make HORIZ_WHEEL_EVENT
20730 from WM_MOUSEHWHEEL.
20731 (w32_read_socket) <WM_MOUSEHWHEEL>: Treat as WM_MOUSEWHEEL.
20732
20733 * w32fns.c (x_create_tip_frame) [MULTI_KBOARD]: Get keyboard from
20734 terminal.
20735
20736 * w32term.c (w32_create_terminal) [MULTI_KBOARD]: Create a new
20737 keyboard for the terminal.
20738
207392007-09-04 Dan Nicolaescu <dann@ics.uci.edu>
20740
20741 * term.c (Vsuspend_tty_hook): Rename from Vsuspend_tty_functions.
20742 (Vresume_tty_hook): Rename from Vresume_tty_functions.
20743 (syms_of_term): Rename suspend-tty-functions to suspend-tty-hook
20744 and resume-tty-function to resume-tty-hook.
20745 (Fsuspend_tty, Fresume_tty): Use new names.
20746
207472007-09-02 Jan Djärv <jan.h.d@swipnet.se>
20748
20749 * gtkutil.c (update_frame_tool_bar): Handle stock name as a named icon
20750 if it starts with "n:".
20751
207522007-08-31 Jan Djärv <jan.h.d@swipnet.se>
20753
20754 * gtkutil.c (update_frame_tool_bar): Initialize wbutton to NULL.
20755
207562007-08-31 Stefan Monnier <monnier@iro.umontreal.ca>
20757
20758 * frame.h:
20759 * frame.c (Qterm_environment_variable): Remove.
20760 (syms_of_frame): Don't init and staticpro it.
20761
20762 * callproc.c (getenv_internal): Remove special case for $TERM.
20763
20764 * callproc.c (Vinitial_environment): New variable.
20765 (set_initial_environment): Initialize it.
20766 (syms_of_callproc): Declare it.
20767 (child_setup): Don't mess with TERM via Qterm_environment_variable; the
20768 TERM under which a process runs is never related to the TERM in which
20769 Emacs is running.
20770
207712007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20772
20773 * config.in (HAVE_WINDOW_SYSTEM): Don't undef MULTI_KBOARD here...
20774 * s/darwin.h: ... do it here.
20775
207762007-08-29 Stefan Monnier <monnier@iro.umontreal.ca>
20777
20778 * lisp.h (set_initial_environment): Rename from set_global_environment.
20779
20780 * Makefile.in (${etc}DOC): Re-add a ${EXEEXT} which seems to have been
20781 removed by mistake on the multi-tty branch.
20782
20783 * frame.c (make_terminal_frame): Yet Another Int/Lisp_Object Mixup.
20784 (Fmodify_frame_parameters): Return a value.
20785
20786 * image.c (png_load): Comment-out var only used in commented-out code.
20787
20788 * term.c (mark_ttys): Don't bother checking top_frame (incorrectly)
20789 before passing it to mark_object.
20790
20791 * xfaces.c (internal_resolve_face_name): Return a value.
20792 (internal_resolve_face_name, resolve_face_name_error): Comment out.
20793
20794 * xfns.c (check_x_display_info): Yet Another Int/Lisp_Object Mixup.
20795 (x_icon): Comment-out var only used in commented-out code.
20796
207972007-08-29 Romain Francoise <romain@orebokech.com>
20798
20799 * keyboard.c (Fset_input_mode): Don't call `Fset_quit_char' if
20800 QUIT hasn't been provided.
20801
208022007-08-29 Dan Nicolaescu <dann@ics.uci.edu>
20803
20804 * callproc.c (child_setup, getenv_internal): Use the
20805 display-environment-variable and term-environment-variable frame params.
20806 (set_initial_environment): Initialise Vprocess_environment.
20807
20808 * config.in: Disable multi-keyboard support on a mac.
20809
20810 * frame.c (Qterm_environment_variable)
20811 (Qdisplay_environment_variable): New variables.
20812 (syms_of_frame): Intern and staticpro them.
20813 (Fmake_terminal_frame): Disable output method test.
20814
20815 * frame.h: Declare them here.
20816
20817 * macfns.c (x_set_mouse_color): Get rif from the frame.
20818 (x_set_tool_bar_lines): Don't use updating_frame.
20819 (mac_window): Add 2 new parameters for consistency with other systems.
20820 (Fx_create_frame): Fix doc string. Rename the parameter. Set the
20821 frame parameters following what is done in X11 and w32. Don't use
20822 FRAME_MAC_DISPLAY_INFO.
20823 (Fx_open_connection, start_hourglass): Remove window-system check.
20824 (x_create_tip_frame): Get the keyboard from the terminal.
20825
20826 * macmenu.c: Reorder includes.
20827 (Fx_popup_menu): Use terminal specific mouse_position_hook.
20828
20829 * macterm.c (XTset_terminal_modes, XTreset_terminal_modes): Add a
20830 terminal parameter.
20831 (x_clear_frame): Add a frame parameter.
20832 (note_mouse_movement): Get rif from the frame.
20833 (mac_term_init): Initialize the terminal.
20834 (mac_initialize): Make static and move terminal initialization ...
20835 (mac_create_terminal): ... to this new function.
20836
20837 * macterm.h (struct mac_display_info): Add terminal.
20838 (mac_initialize): Delete declaration.
20839
20840 * puresize.h (BASE_PURESIZE): Increase base value to 1164000.
20841
20842 * sysdep.c: Comment out text after #endif.
20843
20844 * term.c (init_tty): Only use terminal->kboard when MULTI_KBOARD
20845 is defined. Better initialize ttys in windows. Use terminal
20846 specific mouse_position_hook.
20847
20848 * termhooks.h (union display_info): Add mac_display_info.
20849
20850 * w32fns.c (Fx_create_frame): Use kboard from the terminal.
20851 Set the default minibuffer frame, window_system and the rest of the
20852 frame parameters following what is done in X11.
20853
20854 * w32term.c (w32_initialize): Make static.
20855
20856 * xselect.c (x_handle_selection_clear): Only access
20857 terminal->kboard when MULTI_KBOARD is defined.
20858
20859 * s/darwin.h (SYSTEM_PURESIZE_EXTRA): Define here.
20860 (SYSTEM_PURESIZE_EXTRA): Only define on Carbon.
20861
208622007-08-29 Jason Rumney <jasonr@gnu.org>
20863
20864 * frame.c (Fdelete_frame): Only get kboard when MULTI_KBOARD defined.
20865 (make_terminal_frame) [WINDOWSNT]: Initialize terminal.
20866
20867 * fringe.c (w32_init_fringe w32_reset_fringes) [HAVE_NTGUI]:
20868 (mac_init_fringe) [MAC_OS]: Get rif from selected_frame.
20869
20870 * keyboard.c (restore_kboard_configuration): Only define when
20871 MULTI_KBOARD defined.
20872
20873 * makefile.w32-in: Update dependancies from Makefile.in.
20874 (OBJ1): Add terminal.$(O)
20875
20876 * term.c (dissociate_if_controlling_tty) [WINDOWSNT]:
20877 Don't define function body.
20878 (init_tty) [WINDOWSNT]: Use selected_frame for initializing.
20879
20880 * termhooks.h (display_info) [WINDOWSNT]: Add w32.
20881
20882 * w32.c (request_sigio, unrequest_sigio): Remove.
20883
20884 * w32console.c (w32con_move_cursor, w32con_clear_to_end)
20885 (w32con_clear_frame, w32con_clear_end_of_line)
20886 (w32con_ins_del_lines, w32con_insert_glyphs, w32con_write_glyphs)
20887 (w32con_delete_glyphs, w32con_set_terminal_window)
20888 (scroll_line, w32_sys_ring_bell): Add frame arg.
20889 (w32con_set_terminal_modes, w32con_reset_terminal_modes):
20890 Add terminal arg.
20891 (PICK_FRAME): Remove.
20892 (w32con_write_glyphs): Use frame specific terminal coding.
20893 (one_and_only_w32cons): New global variable.
20894 (initialize_w32_display): Use it for storing hooks.
20895 (create_w32cons_output): New function.
20896
20897 * w32inevt.c, w32inevt.h (w32_console_read_socket): Make first
20898 arg a frame.
20899
20900 * w32fns.c (x_create_tip_frame): Set terminal and ref count.
20901 Set window_system.
20902 (x_set_tool_bar_lines): Don't use updating_frame.
20903 (Fx_create_frame): Set terminal and ref count.
20904 (Fx_open_connection): Remove window-system check.
20905
20906 * w32menu.c (Fx_popup_menu): Use terminal specific mouse_position_hook.
20907
20908 * w32term.c (w32_term_init): Call add_keyboard_wait_descriptor.
20909 (w32_set_terminal_modes, w32_reset_terminal_modes): Add terminal arg.
20910 (x_clear_frame, x_delete_glyphs, w32_ring_bell, x_ins_del_lines):
20911 Add frame arg.
20912 (x_delete_terminal, w32_create_terminal): New functions.
20913 (w32_term_init): Create a terminal.
20914 (w32_initialize): Move terminal specific initialization to
20915 w32_create_terminal.
20916
20917 * w32term.h (x_output): Remove foreground_pixel and background_pixel.
20918 (w32_clear_rect, w32_clear_area): Use background from frame.
20919 (w32_display_info): Add terminal.
20920 (w32_sys_ring_bell, x_delete_display): Declare here.
20921
20922 * xdisp.c (display_menu_bar) [HAVE_NTGUI]: Check frame type.
20923
20924 * s/ms-w32.h (SYSTEM_PURESIZE_EXTRA): Bump to 50k.
20925
209262007-08-29 Kalle Olavi Niemitalo <kon@iki.fi> (tiny change)
20927
20928 * keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char):
20929 Fix get_named_tty calls for the controlling tty.
20930
209312007-08-29 ARISAWA Akihiro <ari@mbf.ocn.ne.jp> (tiny change)
20932
194d44e7 20933 * term.c (dissociate_if_controlling_tty) [USG]: Fix parse error.
aac0c6e3
MR
20934
209352007-08-29 Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp> (tiny change)
20936
20937 * term.c (tty_insert_glyphs): Add missing first parameter.
20938
209392007-08-29 Károly Lőrentey <karoly@lorentey.hu>
20940
20941 * buffer.c (Fbuffer_list, Fbury_buffer):
20942 Take frame->buried_buffer_list into account.
20943
20944 * cm.c (current_tty): New variable, for cmputc().
20945 (cmputc): Use it.
20946 (cmcheckmagic): Add tty parameter, look up terminal streams there.
20947 (calccost): Add tty parameter. Use emacs_tputs() instead of tputs().
20948 (cmgoto): Add tty parameter. Pass it on to calccost().
20949 Use emacs_tputs() instead of tputs().
20950
20951 * cm.h (emacs_tputs): New macro to set current_tty, and then call
20952 tputs().
20953 (current_tty): New variable, for cmputc().
20954 (cmcheckmagic, cmputc, cmgoto): Add prototypes.
20955
20956 * eval.c (unwind_to_catch): Don't call x_fully_uncatch_errors.
20957 (internal_condition_case, internal_condition_case_1)
20958 (internal_condition_case_2): Don't abort when x_catching_errors.
20959
20960 * fns.c (Fyes_or_no_p): Don't try to open an X dialog on tty terminals.
20961 (Fy_or_n_p): Likewise. Use temporarily_switch_to_single_kboard to
20962 prevent crashes caused by bogus longjmps in read_char.
20963
20964 * keymap.h (Fset_keymap_parent): Add EXFUN.
20965
20966 * macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL)
20967 * w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
20968 Remove redundant definition.
20969
20970 * macfns.c (x_set_mouse_color, x_make_gc):
20971 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20972
20973 * w32term.c (x_free_frame_resources):
20974 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20975 (w32_initialize): Use the accessor macros for terminal characteristics.
20976
20977 * macterm.c (mac_initialize): Use Fset_input_interrupt_mode.
20978 Use the accessor macros for terminal characteristics.
20979 * msdos.c (internal_terminal_init): Use the accessor macros for
20980 terminal characteristics.
20981 (ScreenVisualBell, internal_terminal_init):
20982 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
20983
20984 * termopts.h (no_redraw_on_reenter): Declare.
20985
20986 * alloc.c (emacs_blocked_malloc): Disable mallopt call.
20987 (mark_terminals, mark_ttys): Declare.
20988 (Fgarbage_collect): Call them.
20989 (mark_object): Mark buried_buffer_list.
20990
20991 * prefix-args.c: Include stdlib.h for exit.
20992
20993 * syssignal.h: Add comment.
20994
20995 * indent.c: Include stdio.h.
20996
20997 * window.h (Vinitial_window_system): Declare.
20998 (Vwindow_system): Delete declaration.
20999
21000 * fontset.c (Finternal_char_font): Use FRAME_RIF.
21001
21002 * image.c (lookup_image): Don't initialize `c' until the xasserts
21003 have been run.
21004
21005 * gtkutil.c (xg_create_frame_widgets): Use FRAME_BACKGROUND_PIXEL and
21006 FRAME_FOREGROUND_PIXEL.
21007
21008 * print.c (print_preprocess): Don't lose print_depth levels while
21009 iterating.
21010
21011 * widget.c (update_from_various_frame_slots):
21012 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21013
21014 * window.c (set_window_buffer): Don't call clear_mouse_face on tty
21015 frames.
21016 (window_internal_height): Remove bogus make_number call.
21017 (init_window_once): Call make_terminal_frame with two zero parameters.
21018
21019 * fileio.c (Fread_file_name): Update comment.
21020
21021 * callint.c (Fcall_interactively):
21022 Use temporarily_switch_to_single_kboard instead of single_kboard_state.
21023 Make sure it is correctly unwound.
21024
21025 * xsmfns.c (x_session_close): New function.
21026
21027 * coding.h (terminal_coding, safe_terminal_coding, keyboard_coding):
21028 Delete declarations.
21029
21030 * xterm.h: Remove declaration for x_fully_uncatch_errors.
21031 (x_output): Remove background_pixel and foreground_pixel fields.
21032 (x_display_info): Add new field TERMINAL. Remove KBOARD field.
21033 (x_delete_device, x_session_close): Declare.
21034
21035 * lread.c: Include setjmp.h. Update declaration of `read_char'.
21036 (read_filtered_event): Call `read_char' with a local
21037 `wrong_kboard_jmpbuf'.
21038
21039 * minibuf.c (read_minibuf): Call temporarily_switch_to_single_kboard.
21040 Don't call single_kboard_state. Use FRAME_RIF.
21041
21042 * process.c (Fmake_network_process): Don't unrequest_sigio on modern
21043 systems.
21044
21045 * lisp.h (set_process_environment): Rename to `set_global_environment'.
21046 (Fframe_with_environment, Fset_input_meta_mode)
21047 (Fset_quit_char): EXFUN.
21048 (x_create_device, tty_output, terminal, tty_display_info): Declare.
21049 (init_sys_modes, reset_sys_modes): Update prototypes.
21050 (init_all_sys_modes, reset_all_sys_modes): New prototypes.
21051
21052 * keyboard.h (struct kboard): Add new fields Vlocal_function_key_map,
21053 Vlocal_key_translation_map, and Vkeyboard_translate_table.
21054 (Vfunction_key_map, Vkeyboard_translate_table, single_kboard_state):
21055 Delete declarations.
21056 (Vfunction_key_map, Vkey_translation_map, push_kboard, pop_kboard)
21057 (temporarily_switch_to_single_kboard, tty_read_avail_input):
21058 New declarations.
21059
21060 * emacs.c (main): Don't call init_sys_modes(), the new term_init()
21061 already does that during init_display(). Call syms_of_keymap
21062 before syms_of_keyboard. Call `syms_of_terminal'.
21063 Call set_initial_environment, not set_process_environment.
21064 (shut_down_emacs): Call reset_all_sys_modes() instead of
21065 reset_sys_modes().
21066
21067 * xfaces.c (x_free_gc): Protect xassert with GLYPH_DEBUG.
21068 (internal_resolve_face_name, resolve_face_name_error): New functions.
21069 (resolve_face_name): Protect against loops and errors thrown by Fget.
21070 (realize_default_face): Don't use FRAME_FONT unless frame is an X frame.
21071 (Ftty_supports_face_attributes_p): Update tty_capable_p call.
21072
21073 * scroll.c: Replace CURTTY() with local variables throughout the
21074 file (where applicable).
21075 (calculate_scrolling, calculate_direct_scrolling)
21076 (scrolling_1, scroll_cost): Use the accessor macros for terminal
21077 characteristics.
21078
21079 * keymap.c (Vfunction_key_map): Remove.
21080 (Fdescribe_buffer_bindings): Update references to Vfunction_key_map.
21081 (syms_of_keymap): Remove DEFVAR for Vfunction_key_map.
21082 (Vkey_translation_map): Remove.
21083 (syms_of_keymap): Remove DEFVAR for key-translation-map.
21084 (Fdescribe_buffer_bindings)
21085 (read_key_sequence, init_kboard, syms_of_keyboard, mark_kboards):
21086 Update for terminal-local key-translation-map.
21087
21088 * Makefile.in (callproc.o): Update dependencies.
21089 (lisp, shortlisp): Add termdev.elc.
21090 (obj): Add terminal.o.
21091 (terminal.o): Add dependencies.
21092 [HAVE_CARBON]: Make terminal.o depend on macgui.h.
21093 (data.o, fns.o): Add termhooks.h dependency.
21094 (SOME_MACHINE_LISP): Add dnd.elc.
21095 (minibuf.o): Fix typo.
21096 Update dependencies.
21097
21098 * data.c (do_symval_forwarding, store_symval_forwarding)
21099 (find_symbol_value): Use the selected frame's keyboard, not
21100 current_kboard.
21101
21102 * .gdbinit (init_sys_modes): Use Vinitial_window_system instead of
21103 Vwindow_system.
21104
21105 * xmenu.c (Fx_menu_bar_open) [USE_X_TOOLKIT, USE_GTK]: Rename from
21106 Fmenu_bar_open.
21107 (syms_of_xmenu): Update defsubr.
21108 (mouse_position_for_popup, Fx_popup_menu)
21109 (Fx_popup_dialog, x_activate_menubar, update_frame_menubar)
21110 (set_frame_menubar, free_frame_menubar)
b97439ce 21111 (create_and_show_popup_menu, xmenu_show)
aac0c6e3
MR
21112 (create_and_show_dialog, xdialog_show, xmenu_show): Abort if not
21113 an X frame.
21114
21115 * xselect.c (x_own_selection): Abort if not an X frame.
21116 (some_frame_on_display): Check if it is an X frame.
21117 (x_handle_selection_clear): Deal with MULTI_KBOARD.
21118
21119 * coding.c: Include frame.h and termhooks.h.
21120 (terminal_coding, keyboard_coding): Delete.
21121 (Fset_terminal_coding_system_internal)
21122 (Fset_keyboard_coding_system_internal)
21123 (Fkeyboard_coding_system)
21124 (Fterminal_coding_system): Add a terminal parameter.
21125 Get terminal_coding from the terminal.
21126 (init_coding_once): Don't call setup_coding_system here.
21127
21128 * dispextern.h (set_scroll_region, turn_off_insert)
21129 (turn_off_highlight, background_highlight, clear_end_of_line_raw)
21130 (tty_clear_end_of_line, tty_setup_colors)
21131 (delete_tty, updating_frame)
21132 (produce_special_glyphs, produce_glyphs, write_glyphs)
21133 (insert_glyphs): Remove.
21134 (raw_cursor_to, clear_to_end, tty_turn_off_insert)
21135 (tty_turn_off_highlight, get_tty_size): Add declaration.
21136 (tabs_safe_p, init_baud_rate, get_tty_terminal): Update prototypes.
21137
21138 * frame.h (enum output_method): Add output_initial.
21139 (struct x_output): Delete.
21140 (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL):
21141 Access foreground_pixel and background_pixel directly from the frame.
21142 (tty_display): Delete.
21143 (struct frame): Add buried_buffer_list, foreground_pixel,
21144 background_pixel and terminal. Delete kboard.
21145 (union output_data): Add tty.
21146 (FRAME_KBOARD): Get the kboard from the terminal.
21147 (FRAME_INITIAL_P): New macro.
21148 (Qtty, Qtty_type, Qterminal, Qterminal_live_p, Qenvironment)
21149 (Qterm_environment_variable, Qdisplay_environment_variable)
21150 (make_terminal_frame, Qburied_buffer_list, Qwindow_system):
21151 New declarations.
21152
21153 * termchar.h (tty_output, tty_display_info): New structures.
21154 (tty_list): Declare.
21155 (FRAME_TTY, CURTTY): New macros.
21156 (must_write_spaces, min_padding_speed, fast_clear_end_of_line)
21157 (line_ins_del_ok, char_ins_del_ok, scroll_region_ok)
21158 (scroll_region_cost, memory_below_frame, fast_clear_end_of_line)
21159 (dont_calculate_costs, no_redraw_on_reenter): Remove declarations.
21160
21161 * callproc.c: Include frame.h and termhooks.h, for terminal
21162 parameters.
21163 (add_env): New function.
21164 (child_setup): Use it.
21165 (child_setup, getenv_internal): Handle the new Vprocess_environment.
21166 (getenv_internal): Fix get_terminal_param call.
21167 (Fgetenv_internal, egetenv): Update doc.
21168 (syms_of_callproc): Initialize Vprocess_environment to nil.
21169 Register and initialize them. Remove obsolete defvars. Update doc
21170 strings.
21171 (child_setup): Handle Vlocal_environment_variables.
21172 (getenv_internal): Add terminal parameter.
21173 Handle Vlocal_environment_variables.
21174 (Fgetenv_internal): Add terminal parameter.
21175 (child_setup, getenv_internal, Fgetenv_internal): Store the local
21176 environment in a frame (not terminal) parameter. Update doc strings.
21177 (set_initial_environment): Rename from set_global_environment.
21178 Store Emacs environment in initial frame parameter.
21179
21180 * xdisp.c (redisplay_internal): Update references to
21181 `previous_terminal_frame'.
21182 (display_mode_line, Fformat_mode_line): Replace calls to
21183 `push_frame_kboard' with `push_kboard'.
21184 (get_glyph_string_clip_rects): Add extra parentheses and
21185 braces to prevent compiler warnings.
21186 (calc_pixel_width_or_height): Add xassert to check that the
21187 frame is alive. Don't call `lookup_image' on a termcap frame.
21188 (message2_nolog, message3_nolog, redisplay_internal)
21189 (set_vertical_scroll_bar, redisplay_window, check_x_display_info)
21190 (x_set_scroll_bar_foreground, x_set_scroll_bar_background)
21191 (Fx_create_frame, Fxw_display_color_p, Fx_display_grayscale_p)
21192 (Fx_display_pixel_width, Fx_display_pixel_height)
21193 (Fx_display_planes, Fx_display_color_cells)
21194 (Fx_server_max_request_size, Fx_server_vendor, Fx_server_version)
21195 (Fx_display_screens, Fx_display_mm_height, Fx_display_mm_width)
21196 (Fx_display_backing_store, Fx_display_visual_class)
21197 (Fx_display_save_under, Fx_close_connection, x_create_tip_frame):
21198 Use FRAME_TERMINAL_P, FRAME_WINDOW_P, FRAME_TTY and FRAME_RIF.
21199
21200 * xfns.c (x_set_foreground_color x_set_background_color)
21201 (x_set_mouse_color, x_set_cursor_color, x_make_gc):
21202 Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21203 (Fx_create_frame, x_create_tip_frame, build_string, x_window)
21204 (Fx_create_frame, x_create_tip_frame): Don't create frames on a
21205 terminal that is being deleted.
21206 (Fx_create_frame): Use `store_frame_param' to set `window-system'
21207 frame parameter, and make sure it overrides any user-supplied setting.
21208 (Fx_close_connection, Fx_synchronize): Unify argument names with
21209 the rest of the DEFUNs.
21210
21211 * dispnew.c (Fsend_string_to_terminal): Update call to
21212 `get_tty_terminal'.
21213 (Fredraw_frame, Fsend_string_to_terminal)
21214 (Fsend_string_to_terminal, init_display): Use FRAME_RIF,
21215 FRAME_TERMCAP_P and FRAME_TTY.
21216 (window_change_signal): Don't believe width/height values that are
21217 impossibly small.
21218 (Vinitial_window_system): Rename from Vwindow_system.
21219 (termscript, Wcm, rif): Delete.
21220
21221 * termhooks.h (struct terminal): New struct containing the
21222 previously global text display hooks and new members NAME,
21223 DELETED and PARAM_ALIST.
21224 (FRAME_TERMINAL, TERMINAL_TERMINAL_CODING)
21225 (TERMINAL_KEYBOARD_CODING, TERMINAL_ACTIVE_P, FRAME_WINDOW_P)
21226 (FRAME_RIF): New macros.
21227 (get_terminal_param, get_device): New declarations.
21228 (termscript): Delete declaration.
21229
21230 * xterm.c (x_initialize): Use Fset_input_interrupt_mode.
21231 (XTflash, x_free_frame_resources, x_scroll_bar_create)
21232 (x_scroll_bar_set_handle): Use FRAME_BACKGROUND_PIXEL and
21233 FRAME_FOREGROUND_PIXEL.
21234 (x_fully_uncatch_errors): Disable definition.
21235 (x_scroll_bar_expose): Fix reference to foreground pixel.
21236 (XTread_socket): Disable loop on all X displays.
21237 (x_delete_terminal): Don't set terminal->deleted and let
21238 delete_terminal delete the frames on the terminal.
21239 (x_delete_display): Doc update to reflect changes in
21240 delete_terminal.
21241 (x_display_info) <terminal>: Move member earlier in the struct.
21242 (deleting_tty): Remove old variable.
21243 (Fsuspend_tty): Call clear_tty_hooks.
21244 (Fresume_tty, init_tty): Call set_tty_hooks.
21245 (Ftty_display_color_p, Ftty_display_color_cells): Don't throw
21246 errors on X frames.
21247 (x_catch_errors_unwind): Abort if x_error_message is NULL.
21248 (handle_one_xevent): Initialize `f' to NULL.
21249 (x_delete_terminal, x_create_terminal): New functions.
21250 (XTset_terminal_modes, XTreset_terminal_modes)
21251 (XTread_socket, x_connection_closed, x_term_init)
21252 (x_term_init, x_delete_display): Add terminal parameter.
21253 (x_term_init) [!HAVE_GTK_MULTIDISPLAY]: Refuse to create secondary
21254 X connections.
21255
21256 * frame.c: Include termchar.h.
21257 (Qterminal, Qterminal_live_p, Qburied_buffer_list, Qtty, Qtty_type)
21258 (Qwindow_system, Qenvironment, Qterm_environment_variable)
21259 (Qdisplay_environment_variable): New vars.
21260 (Fframep): Deal with output_initial.
21261 (Fframe-live-p): Doc fix.
21262 (Fwindow-system): New function.
21263 (x_set_screen_gamma, store_frame_param): Fix compilation errors.
21264 (make_terminal_frame): Don't create frames on a terminal that is
21265 being deleted. Use FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL.
21266 (store_frame_param): Check for found_for_frame before calling XFRAME.
21267 (Fmake_terminal_frame): Handle NULL tty names correctly.
21268 (syms_of_frame): Enhance doc string of `default-frame-alist'.
21269 (Fdelete_frame): Remove unused variable `count'. Don't allow other
21270 frames to refer to a deleted frame in their 'environment parameter.
21271 (Fframe_with_environment): New function.
21272 (syms_of_frame): Defsubr it. Initialize and staticpro Qenvironment.
21273 (get_future_frame_param): New function.
21274 (Fmake_terminal_frame): Use it.
21275 (x_set_frame_parameters, x_set_screen_gamma): Use FRAME_RIF.
21276
21277 * sysdep.c (init_sys_modes, reset_sys_modes): Update for renames.
21278 * sysdep.c (reset_sys_modes): Update for renames.
21279
21280 * keyboard.c (tty_read_avail_input): New function.
21281 (Fset_input_interrupt_mode, Fset_output_flow_control): New functions.
21282 (syms_of_keyboard): Defsubr them.
21283 (Fset_input_meta_mode, Fset_quit_char): New functions.
21284 (Fset_input_mode): Split to above functions.
21285 (read_char_minibuf_menu_prompt): Add wrong_kboard_jmpbuf
21286 parameter. Use it in call to `read_char'.
21287 (read_char): Declare. Update call to `read_char_minibuf_menu_prompt'.
21288 Set wrong_kboard_jmpbuf correctly in recursive calls.
21289 Use current_kboard to access Vkeyboard_translate_table.
21290 Enhance comment before extra longjmp to wrong_kboard_jmpbuf.
21291 Add wrong_kboard_jmpbuf parameter to allow for recursive calls.
21292 Update longjmp invocations. Remember the original current_kboard,
21293 and longjmp to `wrong_kboard_jmpbuf' when a filter, timer or sentinel
21294 changes it. Comment out unnecessary calls to
21295 `record_single_kboard_state' and `any_kboard_state'.
21296 Update recursive calls.
21297 (wrong_kboard_jmpbuf): Remove global variable.
21298 (read_key_sequence): Remove unused variable wrong_kboard_jmpbuf.
21299 Handle deleted interrupted_kboards correctly; that is a legal
21300 case. Add `wrong_kboard_jmpbuf' local variable. Update setjmp
21301 and read_char calls. Abort if interrupted_kboard died in read_char.
21302 (any_kboard_state, single_kboard_state)
21303 (push_frame_kboard): Remove function.
21304 (pop_kboard): Switch out of single_kboard mode if the kboard has
21305 been deleted. Remove unused variable. Help debugging by not
21306 changing current_kboard unnecessarily. Set current_kboard to the
21307 kboard of the selected frame when the stored kboard object has
21308 been deleted before pop_kboard.
21309 (temporarily_switch_to_single_kboard): Change first parameter to a
21310 frame pointer. Throw an error when caller wants to change kboards
21311 while in single_kboard mode. Don't push_kboard if we weren't in
21312 single kboard state. Don't pop_kboard if we popped into any
21313 kboard state.
21314 (restore_kboard_configuration): Abort if pop_kboard changed the
21315 kboard in single_kboard mode. Call pop_kboard only after setting
21316 up single_kboard mode.
21317 (Frecursive_edit): Switch to single_kboard mode only in nested
21318 command loops.
21319 (cmd_error, command_loop, command_loop_1, timer_check):
21320 Comment out unnecessary call to `any_kboard_state' and
21321 `record_single_kboard_state'.
21322 (delete_kboard): Exit single_kboard mode if we have just deleted
21323 that kboard. Use FRAME_KBOARD.
21324 (interrupt_signal): Use `Fkill_emacs' to exit Emacs, not
21325 `fatal_error_signal'.
21326 (record_single_kboard_state): Don't push_kboard if we weren't in
21327 single kboard state. Don't pop_kboard if we popped into any
21328 kboard state.
21329 (push_frame_kboard): Rename to push_kboard.
21330 (kbd_buffer_get_event): Use FRAME_TERMINAL.
21331 (read_avail_input): Read input from all terminals.
21332 (mark_kboards): Also mark Vkeyboard_translate_table.
21333 (kbd_buffer_store_event_hold): Simplify condition.
21334 (read_key_sequence): Reinitialize fkey and keytran at each replay.
21335 (Vkeyboard_translate_table): Move to struct kboard.
21336 (init_kboard): Initialize Vkeyboard_translate_table.
21337 (syms_of_keyboard): Use DEFVAR_KBOARD to define
21338 Vkeyboard_translate_table. Update doc strings. Update docs of
21339 local-function-key-map and function-key-map.
21340
21341 * terminal.c: New file.
21342
21343 * term.c: Include errno.h.
21344 (Vring_bell_function, device_list, initial_device)
21345 (next_device_id, ring_bell, update_begin, update_end)
21346 (set_terminal_window, cursor_to, raw_cursor_to)
21347 (clear_to_end, clear_frame, clear_end_of_line)
21348 (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines)
21349 (Fdisplay_name, create_device, delete_device): Move to terminal.c.
21350 (syms_of_term): Move their initialization to terminal.c.
21351 (get_tty_terminal, Fdisplay_tty_type, Ftty_display_color_p)
21352 (Ftty_display_color_cells)
21353 (Ftty_no_underline, Fsuspend_tty, Fresume_tty, create_tty_output)
21354 (clear_tty_hooks, set_tty_hooks)
21355 (init_tty, maybe_fatal): New functions.
21356 (Ftty_type): Return nil if terminal is not on a tty instead of
21357 throwing an error. Doc update.
21358 (syms_of_term) <Vsuspend_tty_functions, Vresume_tty_functions>:
21359 Doc update. Initialize new subrs and variables.
21360 (delete_tty): Use terminal->deleted.
21361 (tty_set_terminal_modes): Rename from set_terminal_modes.
21362 (tty_reset_terminal_modes): Rename from reset_terminal_modes.
21363 (set_scroll_region): Rename to `tty_set_scroll_region'.
21364 (turn_on_insert): Rename to `tty_turn_on_insert'.
21365 (turn_off_insert): Rename to `tty_turn_off_insert'.
21366 (turn_off_highlight): Rename to `tty_turn_off_highlight'.
21367 (turn_on_highlight): Rename to `tty_turn_on_highlight'.
21368 (toggle_highligh): Rename to `tty_toggle_highlight'.
21369 (background_highlight): Rename to `tty_background_highlight'.
21370 (highlight_if_desired): Rename to `tty_highlight_if_desired'.
21371 (tty_ring_bell, tty_update_end, tty_set_terminal_window)
21372 (tty_set_scroll_region, tty_background_highlight)
21373 (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end)
21374 (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs)
21375 (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines)
21376 (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty):
21377 Add static modifier.
21378 (tty_reset_terminal_modes, tty_set_terminal_window)
21379 (tty_set_scroll_region, tty_background_highlight)
21380 (tty_highlight_if_desired, tty_cursor_to)
21381 (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame)
21382 (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs)
21383 (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for
21384 renames.
21385
213862007-08-28 Jan Djärv <jan.h.d@swipnet.se>
21387
21388 * keyboard.c: Qrtl is new.
21389 (parse_tool_bar_item): Handle :rtl keyword.
21390 (syms_of_keyboard): Intern :rtl keyword.
21391
21392 * dispextern.h (enum tool_bar_item_idx): Add TOOL_BAR_ITEM_RTL_IMAGE.
21393
21394 * gtkutil.c (xg_tool_bar_expose_callback): Just do SET_FRAME_GARBAGED
21395 so no Lisp code is executed.
21396 (file_for_image, find_rtl_image): New functions.
21397 (xg_get_image_for_pixmap): Use file_for_image.
21398 (update_frame_tool_bar): If direction is RTL, use RTL image if
21399 defined. Use Gtk stock images if defined.
21400
214012007-08-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21402
21403 * macterm.c (x_draw_composite_glyph_string_foreground): Draw rectangle
21404 for nonexistent or zero-width glyph in composition glyph.
21405
214062007-08-25 Stefan Monnier <monnier@iro.umontreal.ca>
21407
21408 * m/amdx86-64.h: Redirect to intel386.h if compiling for i386.
21409
21410 * xdisp.c (Finvisible_p): New function.
21411 (syms_of_xdisp): defsubr it.
21412
214132007-08-24 Juanma Barranquero <lekktu@gmail.com>
21414
21415 * image.c (syms_of_image) <image-library-alist, cross-disabled-images>:
21416 Doc fixes.
21417
214182007-08-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21419
21420 * mac.c [MAC_OSX] (select_and_poll_event, sys_select): Fix last changes.
21421
214222007-08-24 Martin Rudalics <rudalics@gmx.at>
21423
21424 * fileio.c (Finsert_file_contents): Consult CHARS_MODIFF to tell
21425 whether decoding has modified buffer contents.
21426
214272007-08-24 Jason Rumney <jasonr@gnu.org>
21428
21429 * image.c [HAVE_NTGUI]: Define dynamic loaded functions for SVG.
21430 (Qgdk_pixbuf, Qglib) [HAVE_NTGUI]: New symbols.
21431 (syms_of_image) [HAVE_NTGUI]: Intern and staticpro them.
21432 (init_svg_functions) [HAVE_NTGUI]: New function.
21433 (fn_g_type_init, fn_g_object_unref, fn_g_error_free): New #defines.
21434 (svg_load_image): Use them.
21435 (svg_load_image) [HAVE_NTGUI]: Implement background.
21436
214372007-08-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21438
21439 * Makefile.in (RSVG_LIBS, RSVG_CFLAGS): New variables.
21440 (ALL_CFLAGS): Use ${RSVG_CFLAGS} instead of @RSVG_CFLAGS@.
21441 (LIBX): Remove @RSVG_LIBS@.
21442 (LIBES): Add $(RSVG_LIBS).
21443
21444 * image.c (svg_load_image): Blend with specified background if exists.
21445 Use IMAGE_BACKGROUND. Add Mac OS Support.
21446
21447 * mac.c (wakeup_from_rne_enabled_p) [MAC_OSX]: Remove variable.
21448 (ENABLE_WAKEUP_FROM_RNE, DISABLE_WAKEUP_FROM_RNE) [MAC_OSX]:
21449 Remove macros.
21450 [MAC_OSX] (socket_callback): Do nothing.
21451 [MAC_OSX] (select_and_poll_event): Use CFRunLoopRunInMode instead of
21452 ReceiveNextEvent.
21453 [MAC_OSX] (sys_select): Likewise. Don't set context as argument to
21454 socket_callback.
21455 (mac_wakeup_from_rne) [MAC_OSX]: Do nothing.
21456
214572007-08-22 Glenn Morris <rgm@gnu.org>
21458
21459 * image.c (x_find_image_file): Search in etc/images/ rather than etc/.
21460
214612007-08-22 Paul Pogonyshev <pogonyshev@gmx.net>
21462
21463 * Makefile.in (ALL_CFLAGS, LIBX): Add RSVG_LIBS.
21464
21465 * image.c: Add support for SVG images. Some additional comments
21466 by Joakim Verona <joakim@verona.se>. When HAVE_RSVG is defined:
21467 (svg_image_p): New function to test for SVG image.
21468 (svg_load): New function to load SVG image.
21469 (svg_load_image): New function, helper for svg_load.
21470 (Qsvg): New Lisp_object.
21471 (svg_keyword_index): New enum.
21472 (svg_format): New static `image_keyword' struct.
21473 (svg_type): New static `image_type' struct.
21474 (librsvg/rsvg.h): Include it.
21475
214762007-08-23 Stefan Monnier <monnier@iro.umontreal.ca>
21477
21478 * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
21479
214802007-08-22 Stefan Monnier <monnier@iro.umontreal.ca>
21481
21482 * lread.c (Qold_style_backquotes): New var.
21483 (syms_of_lread): Init and staticpro it.
21484 (load_warn_old_style_backquotes): New fun.
21485 (Fload): Use them to warn about old style backquotes.
21486 (end_of_file_error, Fload): Remove unused vars.
21487
21488 * lisp.h (Fclear_face_cache, Fx_send_client_event): Declare.
21489
21490 * lread.c (Vold_style_backquotes): New var.
21491 (syms_of_lread): Init and export it to Elisp.
21492 (read1): Set it when we find an old-style (back)quote.
21493
214942007-08-22 Jason Rumney <jasonr@gnu.org>
21495
21496 * w32reg.c (SYSTEM_DEFAULT_RESOURCES): Add missing NULL terminator.
21497
214982007-08-22 Katsumi Yamaoka <yamaoka@jpl.org>
21499
21500 * puresize.h (BASE_PURESIZE): Increase to 1140000.
21501
215022007-08-19 Richard Stallman <rms@gnu.org>
21503
21504 * eval.c (Ffunction, Fquote): Signal error if not 1 argument.
21505
215062007-08-19 Andreas Schwab <schwab@suse.de>
21507
21508 * alloc.c (pure): Round PURESIZE up.
21509
215102007-08-17 Jan Djärv <jan.h.d@swipnet.se>
21511
21512 * xterm.c (handle_one_xevent): Remove check that mouse click is in
21513 active frame.
21514
215152007-08-16 Richard Stallman <rms@gnu.org>
21516
21517 * eval.c (Fcommandp): Add parens to clarify.
21518
21519 * minibuf.c (Fall_completions): Use enum for type of table.
21520
21521 * emacs.c (USAGE2): Improve text.
21522
215232007-08-15 Philippe Waroquiers <philippe.waroquiers@eurocontrol.int>
21524
21525 * term.c (tty_default_color_capabilities): Declare static
21526 variables in file scope, to avoid HPUX compiler problem.
21527
215282007-08-13 Jan Djärv <jan.h.d@swipnet.se>
21529
21530 * gtkutil.c (update_frame_tool_bar): Use -1 as index
21531 to gtk_toolbar_insert.
21532
215332007-08-13 Stefan Monnier <monnier@iro.umontreal.ca>
21534
21535 * fileio.c (Finsert_file_contents): Yet Another Int/Lisp_Object Mixup.
21536
21537 * insdel.c (reset_var_on_error): New fun.
21538 (signal_before_change, signal_after_change):
21539 Use it to reset (after|before)-change-functions to nil in case of error.
21540 Bind inhibit-modification-hooks to t.
21541 Don't bind (after|before)-change-functions to nil while they run.
21542
215432007-08-11 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21544
21545 * xterm.c (x_draw_image_glyph_string): Adjust stipple origin when
21546 filling pixmap with stippled background.
21547
215482007-08-10 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21549
21550 * macterm.c [TARGET_API_MAC_CARBON] (mac_handle_window_event):
21551 Don't use invisible frame as parent window for repositioning.
21552
215532007-08-10 Stefan Monnier <monnier@iro.umontreal.ca>
21554
21555 * print.c (new_backquote_output): Rename from old_backquote_output.
21556 (print): Inverse its logic (according to its name) so as to match the
21557 behavior of new_backquote_flag in lread.c.
21558
215592007-08-09 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21560
21561 * gmalloc.c (posix_memalign): New function.
21562
21563 * macterm.c (frame_highlight, frame_unhighlight): Don't call
21564 ActivateControl/DeactivateControl here.
21565 [USE_MAC_TOOLBAR] (free_frame_tool_bar): Suppress animation when
21566 frame-notice-user-settings is non-nil.
21567 [USE_MAC_FONT_PANEL] (mac_handle_font_event): Also record parameter
21568 for kEventParamFMFontStyle.
21569 [TARGET_API_MAC_CARBON] (mac_handle_keyboard_event): Don't check
21570 mac_pass_command_to_system and mac_pass_control_to_system here.
21571 (XTread_socket): Call ActivateControl/DeactivateControl here.
21572 (XTread_socket) [TARGET_API_MAC_CARBON]:
21573 Check mac_pass_command_to_system and mac_pass_control_to_system here.
21574 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Add further workaround
21575 for window repositioning.
21576
215772007-08-08 Glenn Morris <rgm@gnu.org>
21578
21579 * Replace `iff' in doc-strings and comments.
21580
215812007-08-07 Chong Yidong <cyd@stupidchicken.com>
21582
21583 * xdisp.c (move_it_by_lines): Remove incorrect optimization.
21584
215852007-08-07 Martin Rudalics <rudalics@gmx.at>
21586
21587 * fileio.c (Finsert_file_contents): Run format-decode and
21588 after_insert_file_functions on entire buffer when REPLACE is
21589 non-nil and inhibit modification_hooks and point_motion_hooks.
21590 For consistency, run after_insert_file_functions iff something
21591 got inserted. Move signal_after_change and update_compositions
21592 after code running after_insert_file_functions. Make sure that
21593 undo_list doesn't record intermediate steps of the decoding process.
21594
215952007-08-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21596
21597 * emacs.c (main)
21598 [HAVE_GTK_AND_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
21599 Call malloc_enable_thread on interactive startup.
21600
21601 * gmalloc.c (_malloc_thread_enabled_p) [USE_PTHREAD]: New variable.
21602 (LOCK, UNLOCK, LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS)
21603 [USE_PTHREAD]: Conditionalize with it.
21604 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
21605 (malloc_atfork_handler_child, malloc_enable_thread) [USE_PTHREAD]:
21606 New functions.
21607
216082007-08-06 Chong Yidong <cyd@stupidchicken.com>
21609
21610 * xdisp.c (redisplay_window): When restoring original buffer
21611 position, make sure it is still valid.
21612
21613 * image.c (png_load): Ignore png-supplied background color.
21614
216152007-08-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21616
21617 * mac.c [TARGET_API_MAC_CARBON] (cfdate_to_lisp): Obtain microsec value.
21618 Use kCFAbsoluteTimeIntervalSince1970.
21619
21620 * macmenu.c (quit_dialog_event_loop) [TARGET_API_MAC_CARBON]:
21621 New variable.
21622 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Set it if dialog
21623 event loop should be quit.
21624 [TARGET_API_MAC_CARBON] (create_and_show_dialog) [!MAC_OSX]:
21625 Quit dialog event loop if quit_dialog_event_loop is set.
21626
21627 * macselect.c [!TARGET_API_MAC_CARBON]: Include Scrap.h.
21628 (Selection): New typedef. Use instead of ScrapRef.
21629 (mac_get_selection_from_symbol): Rename from get_scrap_from_symbol.
21630 (mac_valid_selection_target_p): Rename from valid_scrap_target_type_p.
21631 (mac_clear_selection): Rename from clear_scrap.
21632 (get_flavor_type_from_symbol): New argument SEL and subsume function of
21633 scrap_has_target_type. All uses changed.
21634 (mac_get_selection_ownership_info, mac_valid_selection_value_p)
21635 (mac_selection_has_target_p): New functions.
21636 (mac_put_selection_value): Rename from put_scrap_string.
21637 (mac_get_selection_value): Rename from get_scrap_string.
21638 (mac_get_selection_target_list): Rename from get_scrap_target_type_list.
21639 (put_scrap_private_timestamp, scrap_has_target_type)
21640 (get_scrap_private_timestamp): Remove functions.
21641 (SCRAP_FLAVOR_TYPE_EMACS_TIMESTAMP): Remove define.
21642 (x_own_selection, x_get_local_selection):
21643 Use mac_valid_selection_value_p.
21644 (x_own_selection): Don't use put_scrap_private_timestamp.
21645 Record OWNERSHIP-INFO into Vselection_alist instead.
21646 (x_get_local_selection): Don't check type if request is local.
21647 (Fx_selection_owner_p): Don't use get_scrap_private_timestamp.
21648 Detect ownership change with OWNERSHIP-INFO in Vselection_alist instead.
21649
216502007-08-04 Jan Djärv <jan.h.d@swipnet.se>
21651
21652 * gtkutil.c (xg_tool_bar_callback): Generate two TOOL_BAR_EVENT:s,
21653 add comment explaining why.
21654
216552007-08-03 Richard Stallman <rms@gnu.org>
21656
21657 * fileio.c (Fvisited_file_modtime): Use make_time.
21658
216592007-08-01 Ryo Yoshitake <ryo@shiftmode.net> (tiny change)
21660
21661 * mac.c (init_mac_osx_environment): Adjust load-path on self-contained
21662 build.
21663
216642007-07-31 Stefan Monnier <monnier@iro.umontreal.ca>
21665
21666 * gtkutil.c (xg_tool_bar_callback): Generate a single TOOL_BAR_EVENT.
21667
216682007-07-30 Katsumi Yamaoka <yamaoka@jpl.org>
21669
21670 * puresize.h (BASE_PURESIZE): Increase to 1130000.
21671
216722007-07-30 Richard Stallman <rms@gnu.org>
21673
21674 * lread.c (readevalloop, read1): Treat NBSP as whitespace.
21675
216762007-07-29 Jan Djärv <jan.h.d@swipnet.se>
21677
21678 * gmalloc.c (__malloc_initialize): Remove pthread_once. Not needed.
21679
216802007-07-28 Nick Roberts <nickrob@snap.net.nz>
21681
21682 * xdisp.c (decode_mode_spec): Use '@' instead of 'R' to test for
21683 remote default-directory.
21684
21685 * buffer.c (mode-line-format): Update doc string.
21686
216872007-07-27 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21688
21689 * w32term.c (w32_draw_fringe_bitmap): Extend fringe background to
21690 scroll bar gap.
21691 (x_scroll_bar_create): Set bar->fringe_extended_p.
21692 (w32_set_vertical_scroll_bar): Put leftmost/rightmost scroll bars
21693 on frame edge. Check fringe background extension. Don't clear
21694 extended fringe background area.
21695
21696 * w32term.h (struct scroll_bar): New member fringe_extended_p.
21697 (w32_fill_area): Enclose multiple statements with do ... while (0).
21698
21699 * xterm.c (x_draw_fringe_bitmap) [USE_TOOLKIT_SCROLL_BARS]:
21700 Extend fringe background to scroll bar gap.
21701 (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]:
21702 Set bar->fringe_extended_p.
21703 (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21704 Put leftmost/rightmost scroll bars on frame edge. Check fringe
21705 background extension. Don't clear extended fringe background area.
21706
21707 * xterm.h (struct scroll_bar) [USE_TOOLKIT_SCROLL_BARS]:
21708 New member fringe_extended_p.
21709
217102007-07-25 Glenn Morris <rgm@gnu.org>
21711
21712 * Relicense all FSF files to GPLv3 or later.
21713
21714 * COPYING: Switch to GPLv3.
21715
217162007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
21717
21718 * eval.c (Fcommandp): Pay attention to the `interactive-form' property.
21719
21720 * data.c (Finteractive_form): Check for the presence of an
21721 `interactive-form' symbol property more thoroughly.
21722
21723 * data.c (Finteractive_form): Use an `interactive-form' property if
21724 present, analogous to the function-documentation property.
21725
217262007-07-24 Jason Rumney <jasonr@gnu.org>
21727
21728 * w32fns.c (x_real_positions): Get real position from OS instead of
21729 calculating it.
21730
217312007-07-23 Jason Rumney <jasonr@gnu.org>
21732
21733 * filelock.c (current_lock_owner): Allow for @ sign in username.
21734
217352007-07-22 Nick Roberts <nickrob@snap.net.nz>
21736
21737 * xdisp.c (decode_mode_spec): Add case 'R' for to test for
21738 remote default-directory.
21739
21740 * buffer.c (mode-line-format): Describe above case in doc string.
21741
217422007-07-20 Eli Zaretskii <eliz@gnu.org>
21743
21744 * w32proc.c (IMAGE_NT_OPTIONAL_HDR32_MAGIC, IMAGE_OPTIONAL_HEADER32):
21745 Define if not defined.
21746
217472007-07-18 Jason Rumney <jasonr@gnu.org>
21748
21749 * w32proc.c (w32_executable_type): Handle 64 bit executables.
21750
217512007-07-18 Richard Stallman <rms@gnu.org>
21752
21753 * data.c (Fsetq_default): Doc fix.
21754
21755 * eval.c (Fsetq): Doc fix.
21756
217572007-07-18 Juanma Barranquero <lekktu@gmail.com>
21758
21759 * coding.c (Ffind_operation_coding_system):
21760 * eval.c (For, Fand): Doc fixes.
21761 Reported by Johan Bockgård.
21762
217632007-07-18 Jan Djärv <jan.h.d@swipnet.se>
21764
21765 * xfns.c (Fx_focus_frame): Call x_ewmh_activate_frame.
21766
21767 * xterm.h: Declare x_ewmh_activate_frame.
21768
21769 * xterm.c (x_ewmh_activate_frame): New function.
21770 (XTframe_raise_lower): Move code to x_ewmh_activate_frame.
21771
217722007-07-17 Martin Rudalics <rudalics@gmx.at>
21773
21774 * window.c (Fdisplay_buffer): If largest or LRU window is the
21775 only window, split it even if it is not eligible for splitting.
21776 This restores the original behavior broken by the 2007-07-15
21777 change.
21778
217792007-07-17 Glenn Morris <rgm@gnu.org>
21780
21781 * abbrev.c (abbrev_check_chars): New function.
21782 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
21783 Call abbrev_check_chars to check abbrev characters are word
21784 constituents. Doc fix.
21785
217862007-07-17 Stefan Monnier <monnier@iro.umontreal.ca>
21787
21788 * process.c (Fstart_process, Fmake_network_process)
21789 (read_process_output): Fix up last changes.
21790
217912007-07-16 Eli Zaretskii <eliz@gnu.org>
21792
21793 * makefile.w32-in (clean): Don't delete *~.
21794
217952007-07-16 Andreas Schwab <schwab@suse.de>
21796
21797 * window.c (Fdisplay_buffer): Use NILP.
21798 (Fset_window_scroll_bars): Likewise.
21799
218002007-07-15 Martin Rudalics <rudalics@gmx.at>
21801
21802 * window.c (window_min_size_2): New function.
21803 (window_min_size_1, size_window, Fdisplay_buffer)
21804 (Fsplit_window, adjust_window_trailing_edge): Use it to avoid
21805 windows without mode- or header-lines when window-min-height is
21806 too small.
21807 (size_window): Reset nodelete_p after testing it, following an
21808 earlier note by Kim F. Storm.
21809 (display_buffer): Do not set split_height_threshold to twice the
21810 value of window_min_height to avoid changing the value of a
21811 customizable variable. Rather explicitly check whether the
21812 height of the window that shall be splitted is at least as large
21813 as split_height_threshold.
21814 (Fwindow_full_width_p): New defun.
21815 (syms_of_window): Defsubr it.
21816
21817 * window.h: Add EXFUN for Fwindow_full_width_p.
21818
218192007-07-14 Jason Rumney <jasonr@gnu.org>
21820
21821 * process.c [WINDOWSNT]: Don't undefine AF_INET6.
21822
218232007-07-14 Richard Stallman <rms@gnu.org>
21824
21825 * eval.c (maybe_call_debugger): New function.
21826 (find_handler_clause): Use maybe_call_debugger.
21827 Call it when the handler says `debug'.
21828 Eliminate DEBUGGER_VALUE_PTR.
21829 (Fsignal): Eliminate debugger_value.
21830 (Qdebug): New variable.
21831 (syms_of_eval): Initialize it.
21832
218332007-07-14 Juanma Barranquero <lekktu@gmail.com>
21834
21835 * eval.c (Fprogn):
21836 * keyboard.c (Ftrack_mouse):
21837 * print.c (Fwith_output_to_temp_buffer):
21838 * window.c (Fsave_window_excursion): Doc fix.
21839
218402007-07-13 Stefan Monnier <monnier@iro.umontreal.ca>
21841
21842 * eval.c (init_eval_once): Bump max_lisp_eval_depth to 400.
21843
218442007-07-12 Stefan Monnier <monnier@iro.umontreal.ca>
21845
21846 * process.h (struct Lisp_Process): Turn slots infd, outfd,
21847 kill_without_query, pty_flag, tick, update_tick, decoding_carryover,
21848 inherit_coding_system_flag, filter_multibyte, adaptive_read_buffering,
21849 read_output_delay, and read_output_skip from Lisp_Objects to ints.
21850 Remove unused encoding_carryover.
21851 * process.c: Adjust all functions accordingly.
21852
218532007-07-12 Richard Stallman <rms@gnu.org>
21854
21855 * term.c: Include unistd.h only if HAVE_UNISTD_H.
21856
218572007-07-11 Jason Rumney <jasonr@gnu.org>
21858
21859 * makefile.w32-in (LIBS): Include OLE32.
21860
21861 * w32fns.c (w32_msg_pump) <WM_EMACS_CREATEWINDOW>: Initialize COM.
21862 (w32_msg_pump) <WM_DESTROY>: Uninitialize COM.
21863
218642007-07-11 Stefan Monnier <monnier@iro.umontreal.ca>
21865
21866 * lisp.h (struct Lisp_Hash_Table): Turn next_weak into a bare pointer.
21867 * fns.c (weak_hash_tables): Rename from Vweak_hash_tables and turned
21868 from a Lisp_Object into a bare pointer.
21869 (make_hash_table, copy_hash_table, sweep_weak_hash_tables, init_fns):
21870 Adjust the code correspondingly.
21871
21872 * alloc.c (emacs_blocked_free): Remove unused var `bytes_used_now'.
21873
21874 * term.c: Include unistd.h for ttyname, used in handle_one_term_event.
21875 (term_show_mouse_face): Remove unused var `j'.
21876 (handle_one_term_event): Remove unused vars `i' and `j'.
21877 Don't cast return value of ttyname since it's not necessary.
21878
218792007-07-10 Stefan Monnier <monnier@iro.umontreal.ca>
21880
21881 * alloc.c (mark_maybe_pointer): Enforce mult-of-8 alignment when using
21882 USE_LSB_TAG. Suggested by Dmitry Antipov <dmantipov@yandex.ru>.
21883
21884 * fns.c (map_char_table): Use an array of int for `indices' rather than
21885 an array of Lisp_Objects (which are only ever integers anyway).
21886 (Fmap_char_table): Update caller.
21887 * lisp.h: Update prototype.
21888 * keymap.c (Fset_keymap_parent, map_keymap, Fcopy_keymap):
21889 * fontset.c (Ffontset_info):
21890 * casetab.c (set_case_table): Update callers.
21891
21892 * editfns.c (Ftranspose_regions): Use EMACS_INT for positions.
21893
21894 * keymap.c (struct accessible_keymaps_data)
21895 (struct where_is_internal_data): New structures.
21896 (accessible_keymaps_1, where_is_internal_1): Use them to change
21897 interface to adhere to the one used by map_keymap.
21898 (Faccessible_keymaps, where_is_internal): Use map_keymap.
21899 (accessible_keymaps_char_table, where_is_internal_2): Remove.
21900
21901 * keymap.h (map_keymap_function_t): More informative prototype.
21902
219032007-07-10 Guanpeng Xu <herberteuler@hotmail.com>
21904
21905 * search.c (Vinhibit_changing_match_data, search_regs_1): New vars.
21906 (looking_at_1): Don't change search_regs and last_thing_searched
21907 if `inhibit-changing-match-data' is non-nil.
21908 (string_match_1, search_buffer, set_search_regs): Likewise.
21909 (syms_of_search): Add Lisp level definition for
21910 `inhibit-changing-match-data' and set it to nil.
21911 (boyer_moore): If `inhibit-changing-match-data' is non-nil, compute
21912 start and end of the match, instead of using values in search_regs.
21913
219142007-07-01 Stefan Monnier <monnier@iro.umontreal.ca>
21915
21916 * minibuf.c (Fcompleting_read): New value `confirm-only'
21917 for `require-match'.
21918
219192007-06-28 Stefan Monnier <monnier@iro.umontreal.ca>
21920
21921 * fileio.c (Fdo_auto_save): Revert last patch installed unwillingly as
21922 part of the 2007-06-27 change to syms_of_fileio.
21923
219242007-06-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21925
21926 * macterm.c [USE_MAC_TSM] (mac_handle_text_input_event):
21927 Check WINDOWP before using XWINDOW. Consolidate return statements.
21928
219292007-06-27 Richard Stallman <rms@gnu.org>
21930
21931 * fileio.c (syms_of_fileio) <after-insert-file-functions>: Doc fix.
21932
219332007-06-27 Juanma Barranquero <lekktu@gmail.com>
21934
21935 * buffer.c (syms_of_buffer) <selective-display>: Fix typo in docstring.
21936
219372007-06-26 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21938
21939 * gmalloc.c [HAVE_GTK_AND_PTHREAD]: Check this after including config.h.
21940 (_aligned_blocks_mutex) [USE_PTHREAD]: New variable.
21941 (LOCK_ALIGNED_BLOCKS, UNLOCK_ALIGNED_BLOCKS): New macros.
21942 (_free_internal, memalign): Use them.
21943 (_malloc_mutex, _aligned_blocks_mutex) [USE_PTHREAD]:
21944 Initialize to PTHREAD_MUTEX_INITIALIZER.
21945 (malloc_initialize_1) [USE_PTHREAD]: Don't use recursive mutex.
21946 (morecore_nolock): Rename from morecore. All uses changed.
21947 Use only nolock versions of internal allocation functions.
21948 (_malloc_internal_nolock, _realloc_internal_nolock)
21949 (_free_internal_nolock): New functions created from
21950 _malloc_internal, _realloc_internal, and _free_internal.
21951 (_malloc_internal, _realloc_internal, _free_internal): Use them.
21952 Copy hook value to automatic variable before its use.
21953 (memalign): Copy hook value to automatic variable before its use.
21954
219552007-06-26 Kenichi Handa <handa@m17n.org>
21956
21957 * coding.c (Ffind_operation_coding_system): Docstring improved.
21958 (syms_of_coding): Docstring of `file-coding-system-alist' improved.
21959
219602007-06-25 David Kastrup <dak@gnu.org>
21961
21962 * keymap.c (Fcurrent_active_maps): Add `position' argument.
21963 (Fwhere_is_internal): Adjust call to `current-active-maps' to
21964 cater for additional parameter.
21965
21966 * keymap.h: Adjust number of parameters to `current-active-maps'.
21967
21968 * doc.c (Fsubstitute_command_keys): Adjust call of
21969 `current-active-maps'.
21970
219712007-06-25 David Kastrup <dak@gnu.org>
21972
21973 * callint.c (Fcall_interactively): Make the parsing of interactive
21974 specs somewhat more readable.
21975
219762007-06-23 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21977
21978 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe background
21979 to scroll bar gap also when bitmap fills fringe. Draw only foreground
21980 if extended background has already been filled.
21981
219822007-06-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
21983
21984 * macgui.h (USE_CG_DRAWING): Don't require USE_ATSUI.
21985 (USE_MAC_TOOLBAR): Require USE_CG_DRAWING.
21986
21987 * macmenu.c (mac_dialog_modal_filter, Fx_popup_dialog) [MAC_OSX]:
21988 Put special treatment for Fmessage_box, Fyes_or_no_p, and Fy_or_n_p
21989 in #if 0 as it is not compatible with y-or-n-p-with-timeout.
21990 (timer_check) [TARGET_API_MAC_CARBON]: Add extern.
21991 [TARGET_API_MAC_CARBON] (mac_handle_dialog_event): Use QuitEventLoop
21992 instead of QuitAppModalLoopForWindow. Consolidate QuitEventLoop calls.
21993 (pop_down_dialog) [TARGET_API_MAC_CARBON]: New function.
21994 [TARGET_API_MAC_CARBON] (create_and_show_dialog): Use it for unwind.
21995 Run timers during dialog popup.
21996 (Fmenu_or_popup_active_p) [TARGET_API_MAC_CARBON]: Use popup_activated.
21997
219982007-06-21 Jason Rumney <jasonr@gnu.org>
21999
22000 * image.c (convert_mono_to_color_image): Swap fore and background.
22001
220022007-06-20 Jason Rumney <jasonr@gnu.org>
22003
22004 * w32bdf.c (w32_BDF_to_x_font): Unmap memory when finished.
22005 (w32_free_bdf_font): Unmap memory not handle.
22006
220072007-06-20 Sam Steingold <sds@gnu.org>
22008
22009 * gmalloc.c (__morecore): Fix the declaration to comply with the
22010 definition.
22011
220122007-06-20 Juanma Barranquero <lekktu@gmail.com>
22013
22014 * w32term.c (w32_delete_display): Remove leftover declaration.
22015 (w32_define_cursor, w32_initialize): Make static.
22016
22017 * w32.c (_wsa_errlist): Fix typo in error message.
22018 (init_environment): Ignore any environment variable from the
22019 registry having a null value.
22020
220212007-06-20 Glenn Morris <rgm@gnu.org>
22022
22023 * Makefile.in (LIBGIF): Default to -lgif.
22024
220252007-06-17 Jason Rumney <jasonr@gnu.org>
22026
22027 * w32menu.c (add_menu_item): Don't use multibyte string functions on
22028 unicode strings.
22029
220302007-06-16 Juanma Barranquero <lekktu@gmail.com>
22031
22032 * xdisp.c (syms_of_xdisp) <auto-resize-tool-bars>:
22033 Fix typo in docstring.
22034
220352007-06-16 Eli Zaretskii <eliz@gnu.org>
22036
22037 * w32menu.c (add_menu_item): Escape `&' characters in menu items
22038 and their keybindings.
22039
220402007-06-15 Chong Yidong <cyd@stupidchicken.com>
22041
22042 * composite.c (update_compositions): Fix last fix.
22043
220442007-06-14 Jason Rumney <jasonr@gnu.org>
22045
22046 * w32.c (get_process_times_fn): New function pointer.
22047 (globals_of_w32): Intialize it if present in kernel32.dll.
22048 (w32_get_internal_run_time): New function.
22049
22050 * editfns.c (Fget_internal_run_time) [WINDOWSNT]: Use it.
22051
220522007-06-14 Kenichi Handa <handa@etlken.m17n.org>
22053
22054 * composite.c (update_compositions): Check the validness of
22055 compositions.
22056
220572007-06-14 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22058
22059 * frame.h (struct frame) [MAC_OS]: New member external_tool_bar.
22060 (FRAME_EXTERNAL_TOOL_BAR) [MAC_OS]: Use it.
22061
22062 * macfns.c (mac_window) [USE_MAC_TOOLBAR]: Set toolbar_win_gravity.
22063 (x_set_tool_bar_lines) [USE_MAC_TOOLBAR]: Set FRAME_EXTERNAL_TOOL_BAR.
22064
22065 * macgui.h (USE_MAC_TOOLBAR): New define.
22066
22067 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22068 Return immediately unless popup is activated.
22069
22070 * macterm.c (x_draw_fringe_bitmap) [MAC_OSX]: Extend fringe
22071 background to scroll bar gap.
22072 (x_scroll_bar_create) [MAC_OSX]: Set bar->fringe_extended_p.
22073 (XTset_vertical_scroll_bar) [MAC_OSX]: Put leftmost/rightmost
22074 scroll bars on frame edge. Check fringe background extension.
22075 Don't clear extended fringe background area.
22076 (TOOLBAR_IDENTIFIER, TOOLBAR_ICON_ITEM_IDENTIFIER)
22077 (TOOLBAR_ITEM_COMMAND_ID_OFFSET, TOOLBAR_ITEM_COMMAND_ID_P)
22078 (TOOLBAR_ITEM_COMMAND_ID_VALUE, TOOLBAR_ITEM_MAKE_COMMAND_ID):
22079 [USE_MAC_TOOLBAR]: New macros.
22080 (mac_move_window_with_gravity, mac_get_window_origin_with_gravity)
22081 (mac_handle_toolbar_event, mac_image_spec_to_cg_image)
22082 (mac_create_frame_tool_bar, update_frame_tool_bar, free_frame_tool_bar)
22083 (mac_tool_bar_note_mouse_movement, mac_handle_toolbar_command_event)
22084 [USE_MAC_TOOLBAR]: New functions.
22085 (mac_handle_window_event) [USE_MAC_TOOLBAR]: Reposition window
22086 manually if previous repositioning has failed.
22087 (mac_handle_keyboard_event): Use precomputed event kind.
22088 (XTread_socket) [USE_MAC_TOOLBAR]: Handle click in structure region
22089 as tool bar item click. Handle mouse movement over tool bar items.
22090
22091 * macterm.h (struct mac_output) [USE_MAC_TOOLBAR]: New member
22092 toolbar_win_gravity.
22093 (struct scroll_bar) [MAC_OSX]: New member fringe_extended_p.
22094 (update_frame_tool_bar, free_frame_tool_bar) [USE_MAC_TOOLBAR]:
22095 Add externs.
22096
22097 * xdisp.c (update_tool_bar, redisplay_tool_bar, redisplay_window)
22098 [USE_MAC_TOOLBAR]: Sync with GTK+ tool bar display.
22099
221002007-06-14 Chong Yidong <cyd@stupidchicken.com>
22101
22102 * image.c (search_image_cache): Remove unused variable.
22103
221042007-06-13 Chong Yidong <cyd@stupidchicken.com>
22105
22106 * xfns.c, xmenu.c: Link to xaw3d if available.
22107
221082007-06-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22109
22110 * dispextern.h (struct image) [HAVE_WINDOW_SYSTEM]: New members
22111 frame_foreground and frame_background.
22112
22113 * image.c (lookup_image): Save frame foreground and background colors.
22114 (search_image_cache): Check if saved and current frame colors match.
22115
221162007-06-12 Stefan Monnier <monnier@iro.umontreal.ca>
22117
22118 * regex.c (regex_compile): Remove the `regnum' counter.
22119 Use bufp->re_nsub instead. Add support for \(?N:RE\).
22120
221212007-06-11 Stefan Monnier <monnier@iro.umontreal.ca>
22122
22123 * term.c: Include intervals.h to declare Fget_text_property.
22124
221252007-06-10 Jason Rumney <jasonr@gnu.org>
22126
22127 * w32fns.c (Fx_file_dialog): Take size from struct not pointer.
22128
221292007-06-08 Juanma Barranquero <lekktu@gmail.com>
22130
22131 * callint.c (Fcall_interactively):
22132 * editfns.c (Fdelete_and_extract_region):
22133 * fileio.c (Fread_file_name):
22134 * fns.c (Fmapconcat):
22135 * keyboard.c (cmd_error_internal):
22136 * keymap.c (Fkey_description):
22137 * lread.c (openp):
22138 * minibuf.c (read_minibuf):
22139 * search.c (wordify):
22140 * sunfns.c (sel_read):
22141 * xdisp.c (Fformat_mode_line, syms_of_xdisp):
22142 * xfns.c (x_default_scroll_bar_color_parameter):
22143 * xmenu.c (menu_help_callback):
22144 * xselect.c (Fx_get_atom_name):
22145 * xterm.c (x_term_init): Use empty_unibyte_string.
22146
221472007-06-08 Dmitry Antipov <dmantipov@yandex.ru> (tiny change)
22148
22149 * alloc.c (init_strings): Initialize canonical empty strings.
22150 (make_uninit_string, make_uninit_multibyte_string): Return appropriate
22151 canonical empty string when the requested size is 0.
22152
22153 * emacs.c (empty_unibyte_string): Rename from empty_string.
22154 (empty_multibyte_string): New canonical empty string.
22155 (syms_of_emacs): Don't initialize empty_string.
22156
22157 * lisp.h (STRING_SET_UNIBYTE): Return the canonical empty unibyte
22158 string, if appropriate.
22159 (empty_unibyte_string, empty_multibyte_string): New externs.
22160 (empty_string): Remove extern.
22161
22162 * lread.c (syms_of_lread): Use empty_unibyte_string.
22163
221642007-06-07 Jason Rumney <jasonr@gnu.org>
22165
22166 * s/ms-w32.h: Don't define HAVE_TZNAME.
22167
22168 * editfns.c (Fcurrent_time_zone): Remove hack for Japanese Windows.
22169
221702007-06-07 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22171
22172 * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.
22173
22174 * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
22175 (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
22176
22177 * macmenu.c [TARGET_API_MAC_CARBON] (menu_target_item_handler):
22178 Don't call next handler.
22179 [TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
22180 Remove argument. Install handler to application.
22181 (set_frame_menubar): Don't change deep_p.
22182 (mac_menu_show): Use FRAME_OUTER_TO_INNER_DIFF_X and
22183 FRAME_OUTER_TO_INNER_DIFF_Y.
22184 (DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
22185 (DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
22186 [HAVE_DIALOGS]: New macros.
22187 [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
22188 Use them.
22189 (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
22190
22191 * macselect.c [MAC_OSX] (install_service_handler): Rename from
22192 init_service_handler. All callers changed. Return OSStatus value.
22193
22194 * macterm.c (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
22195 All callers changed so as not to call SetPortWindowPort.
22196 (mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
22197 (mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
22198 mac_draw_string_common.
22199 (mac_draw_image_string_qd): Likewise.
22200 (mac_draw_string_common): Use them. Add INLINE.
22201 (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
22202 Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
22203 GetGlobalMouse.
22204 (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
22205 and FRAME_OUTER_TO_INNER_DIFF_Y.
22206 [TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
22207 [USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
22208 (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
22209 repositioning window to mac_handle_window_event.
22210 (x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
22211 saving window location to mac_handle_window_event
22212 [USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
22213 (install_menu_target_item_handler): Remove argument in extern.
22214 [TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
22215 Also accept command events.
22216 (do_keystroke): New function created from XTread_socket.
22217 (init_command_handler): Remove functions.
22218 [TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
22219 and save window location by kEventWindowShowing and kEventWindowHiding
22220 handlers here. Don't call next handler for window state change and
22221 focus events.
22222 (mac_handle_application_event, mac_handle_keyboard_event)
22223 [TARGET_API_MAC_CARBON]: New functions.
22224 (install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
22225 kEventWindowShowing and kEventWindowHiding events. Move installation
22226 of mouse, font, text input and menu target item handlers to
22227 install_application_handler.
22228 (install_application_handler) [TARGET_API_MAC_CARBON]: New function.
22229 (mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22230 New function.
22231 (init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
22232 Register it.
22233 (XTread_socket) [TARGET_API_MAC_CARBON]:
22234 Consolidate SendEventToEventTarget calls.
22235 Use FRAME_OUTER_TO_INNER_DIFF_X and FRAME_OUTER_TO_INNER_DIFF_Y.
22236 Move application activation handler to mac_handle_application_event.
22237 Move keyboard handler to mac_handle_keyboard_event.
22238 (XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
22239 (mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
22240 init_command_handler. Call install_application_handler.
22241
22242 * macterm.h (mac_get_window_bounds): Move extern from macfns.c.
22243 (FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
22244
222452007-06-07 Glenn Morris <rgm@gnu.org>
22246
22247 * emacs.c (main): Use `emacs-copyright' in --version output.
22248
222492007-06-06 Chong Yidong <cyd@stupidchicken.com>
22250
22251 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache.
22252
222532007-06-06 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22254
22255 * macfns.c (mac_window): Replace WindowPtr with WindowRef.
22256
22257 * macgui.h: Replace WindowPtr with WindowRef.
22258
22259 * macmenu.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22260 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22261 Replace ControlHandle with ControlRef.
22262 (install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
22263
22264 * macterm.c: Replace MenuHandle and GetMenuHandle with MenuRef and
22265 GetMenuRef, respectively. Replace WindowPtr with WindowRef.
22266 Replace ControlHandle with ControlRef.
22267 (USE_CARBON_EVENTS): Remove. Use TARGET_API_MAC_CARBON instead.
22268 [MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
22269
22270 * macterm.h (struct scroll_bar): Rename member control_handle_low
22271 and control_handle_high to control_ref_low and control_ref_high.
22272 All uses changed.
22273 (SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
22274 SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
22275 respectively. All uses changed.
22276 (XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
22277 (install_window_handler, remove_window_handler): Replace WindowPtr
22278 with WindowRef in externs.
22279
222802007-06-05 Juanma Barranquero <lekktu@gmail.com>
22281
22282 * xfaces.c (Finternal_lisp_face_p): Signal error for face alias loops.
22283
222842007-06-03 Nick Roberts <nickrob@snap.net.nz>
22285
22286 * keyboard.c (discard_mouse_events): Add GPM_CLICK_EVENT case.
22287
22288 * frame.c (Fmouse_position, Fmouse_pixel_position):
22289 Condition on HAVE_GPM too.
22290
22291 * term.c (term_mouse_highlight): Remove unused variables.
22292 (Fterm_open_connection): Set gpm_zerobased to 1.
22293 (term_mouse_movement, term_mouse_click, handle_one_term_event):
22294 Use zero based co-ordinates.
22295 (handle_one_term_event): Report a drag as mouse movement too.
22296
22297 * Makefile.in (MOUSE_SUPPORT): Define for HAVE_GPM.
22298
222992007-06-03 Chong Yidong <cyd@stupidchicken.com>
22300
22301 * image.c (search_image_cache): New function. Require background
22302 color match if background color is unspecified in the image spec.
22303 (uncache_image, lookup_image): Use it.
22304
223052007-06-01 Juanma Barranquero <lekktu@gmail.com>
22306
22307 * window.c (Fshrink_window): Reflow docstring.
22308
223092007-06-02 Chong Yidong <cyd@stupidchicken.com>
22310
22311 * Version 22.1 released.
22312
223132007-06-01 Richard Stallman <rms@gnu.org>
22314
22315 * xfns.c (x_encode_text): Add GCPRO.
22316
223172007-06-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22318
22319 * xfns.c (x_set_name_internal): Save encoded name before
22320 x_encode_text in case string data is relocated.
22321
223222007-05-31 Richard Stallman <rms@gnu.org>
22323
22324 * buffer.c (syms_of_buffer): Doc fix.
22325
223262007-05-30 Nick Roberts <nickrob@snap.net.nz>
22327
22328 * sysdep.c (init_sys_modes): Add rather than replace with
22329 O_NONBLOCK.
22330
22331 * frame.c [HAVE_GPM] (Fset_mouse_pixel_position): Add call to
22332 term_mouse_moveto.
22333
22334 * termhooks.h (term_mouse_moveto): New extern.
22335
22336 * term.c (mouse_face_window): Rename...
22337 (Qmouse_face_window): ...to this.
22338 (term_show_mouse_face, term_clear_mouse_face)
22339 (term_mouse_highlight): Use Qmouse_face_window.
22340 (term_mouse_moveto): New function.
22341 (term_mouse_position): Make it work.
22342 (syms_of_term): Uncomment assignment to mouse_position_hook.
22343 Staticpro Qmouse_face_window.
22344
223452007-05-28 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22346
22347 * xdisp.c (redisplay_internal): Bind inhibit-point-motion-hooks to t
22348 around current_column call.
22349
223502007-05-26 Dan Nicolaescu <dann@ics.uci.edu>
22351
22352 * xfaces.c (syms_of_xfaces): Delete stray semicolon.
22353 * xdisp.c (next_element_from_buffer):
22354 * window.c (delete_window):
22355 * term.c (term_mouse_highlight):
22356 * msdos.c (getdefdir):
22357 * macterm.c (mac_create_bitmap_from_bitmap_data)
22358 (init_font_name_table):
22359 * fns.c (Fsxhash):
22360 * data.c (Fmake_local_variable):
22361 * ccl.c (ccl_driver): Likewise.
22362
223632007-05-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22364
22365 * macterm.c [USE_CARBON_EVENTS] (mac_handle_window_event):
22366 Call mac_wakeup_from_rne on window size change.
22367
223682007-05-25 Chong Yidong <cyd@stupidchicken.com>
22369
22370 * image.c (uncache_image): Fix typo.
22371
223722007-05-23 Johannes Weiner <hannes@saeurebad.de> (tiny change)
22373
22374 * keyboard.c (make_lispy_movement): Condition on HAVE_GPM too.
22375
223762007-05-22 Richard Stallman <rms@gnu.org>
22377
22378 * xterm.c (x_connection_closed): Remove NO_RETURN.
22379
223802007-05-22 Martin Rudalics <rudalics@gmx.at>
22381
22382 * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
22383
223842007-05-21 Chong Yidong <cyd@stupidchicken.com>
22385
22386 * image.c (uncache_image): New function.
22387 (Fimage_refresh): New function.
22388
223892007-05-20 Jan Djärv <jan.h.d@swipnet.se>
22390
22391 * Makefile.in: Move GPM check outside HAVE_X_WINDOWS.
22392
223932007-05-20 Nick Roberts <nickrob@snap.net.nz>
22394
22395 * config.in, keyboard.c, Makefile.in, sysdep.c, term.c,
22396 * termhooks.h: Use HAVE_GPM instead of HAVE_GPM_H.
22397
223982007-05-20 Nick Roberts <nickrob@snap.net.nz>
22399
22400 * keyboard.c (make_lispy_event): Make case GPM_CLICK_EVENT
22401 conditional on [HAVE_GPM_H].
22402
224032007-05-19 Stefan Monnier <monnier@iro.umontreal.ca>
22404
22405 * syntax.c (skip_chars): Update syntax-table only after we checked that
22406 the new location is valid.
22407
224082007-05-19 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22409
22410 * macterm.c (x_calc_absolute_position): Add BLOCK_INPUT around
22411 mac_get_window_bounds.
22412
224132007-05-20 Nick Roberts <nickrob@snap.net.nz>
22414
22415 * Makefile.in (LIBGPM): Allow it to be set from configure.
22416 If set then link Emacs with it.
22417
22418 * config.in: Regenerate.
22419
22420 * lisp.h (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
22421 New externs.
22422
22423 * termhooks.h [HAVE_GPM_H] (enum event_kind): Add GPM_CLICK_EVENT.
22424 Include gpm.h.
22425 (handle_one_term_event, term_gpm): New externs.
22426
22427 * sysdep.c [HAVE_GPM_H] (init_sys_modes): Make gpm_fd nonblocking
22428 and allow it to be interrupted by SIGIO.
22429
22430 * process.c (gpm_wait_mask, max_gpm_desc): New variables.
22431 (wait_reading_process_output): Wait on gpm_fd too.
22432 (add_gpm_wait_descriptor, delete_gpm_wait_descriptor)): New functions.
22433 (add_gpm_wait_descriptor_called_flag): New variable.
22434 (delete_keyboard_wait_descriptor): Check gpm_wait_mask.
22435
22436 * keyboard.c [HAVE_GPM_H] (Qmouse_fixup_help_message)
22437 (make_lispy_movement, tracking_off, Ftrack_mouse, some_mouse_moved)
22438 (show_help_echo, readable_events, kbd_buffer_get_event, init_keyboard):
22439 Extend HAVE_MOUSE ifdefs to HAVE_GPM_H.
22440 (make_lispy_event): Add case GPM_CLICK_EVENT.
22441 (read_avail_input): Handle mouse input.
22442
22443 * term.c (write_glyphs_with_face): New function.
22444 [HAVE_GPM_H]: Include buffer.h, sys/fcntl.h.
22445 (mouse_face_beg_row, mouse_face_beg_col, mouse_face_end_row)
22446 (mouse_face_end_col, mouse_face_past_end, mouse_face_window)
22447 (mouse_face_face_id, term_gpm, pos_x, pos_y)
22448 (last_mouse_x, last_mouse_y): New variables.
22449 (term_show_mouse_face, term_clear_mouse_face, fast_find_position)
22450 (term_mouse_highlight, term_mouse_movement, term_mouse_position)
22451 (term_mouse_click, handle_one_term_event, Fterm_open_connection)
22452 (Fterm_close_connection): New functions.
22453 (term_init): Initialise mouse_face_window.
22454
224552007-05-19 Chong Yidong <cyd@stupidchicken.com>
22456
22457 * xdisp.c (redisplay_window): If first window line is a
22458 continuation line, recompute the new window start instead of
22459 recentering.
22460
224612007-05-18 Glenn Morris <rgm@gnu.org>
22462
22463 * m/alpha.h (ORDINARY_LINK): No longer define on OpenBSD.
22464 Suggested by Alfred M. Szmidt <ams@gnu.org>.
22465
224662007-05-17 Glenn Morris <rgm@gnu.org>
22467
22468 * m/macppc.h (ORDINARY_LINK): No longer define on OpenBSD.
22469
224702007-05-16 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22471
22472 * macterm.c [USE_CARBON_EVENTS] (mac_convert_event_ref): Also convert
22473 dead key repeat and up events.
22474
224752007-05-14 Chong Yidong <cyd@stupidchicken.com>
22476
22477 * image.c (pbm_load): Check image size for monochrome pbm.
22478
224792007-05-13 Chong Yidong <cyd@stupidchicken.com>
22480
22481 * xterm.c (XTread_socket): Revert last change.
22482
224832007-05-12 Chong Yidong <cyd@stupidchicken.com>
22484
22485 * image.c (pbm_load): Correctly check image size for greyscale pbm.
22486
22487 * xterm.c (XTread_socket): Yet Another Uncaught X Error Crash (YAUXEC).
22488
224892007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22490
22491 * editfns.c (Ftranspose_regions): Yet another int/Lisp_Object
22492 mixup (YAILOM).
22493
224942007-05-07 Andreas Schwab <schwab@suse.de>
22495
22496 * keymap.c (Flookup_key): Fix typo in last change.
22497
224982007-05-07 Stefan Monnier <monnier@iro.umontreal.ca>
22499
22500 * keymap.c (Fdefine_key, Flookup_key): Only do the 0x80->meta_modifier
22501 mapping for unibyte strings.
22502
225032007-05-01 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22504
22505 * macmenu.c (mac_dialog_show): Apply 2007-04-27 change for xmenu.c.
22506 (Fx_popup_dialog) [MAC_OSX]: Likewise.
22507
225082007-04-29 Richard Stallman <rms@gnu.org>
22509
22510 * insdel.c (replace_range): For undo, record insertion first.
22511
225122007-04-29 Andreas Schwab <schwab@suse.de>
22513
22514 * lisp.h (VECSIZE): Use OFFSETOF.
22515
225162007-04-29 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
22517
22518 * xdisp.c (try_window_reusing_current_matrix): Fix number of
22519 disabled lines.
22520
225212007-04-28 Richard Stallman <rms@gnu.org>
22522
22523 * lread.c (read_escape): In a string, \s is always space.
22524
225252007-04-27 Jan Djärv <jan.h.d@swipnet.se>
22526
22527 * xmenu.c (xdialog_show): Call Fredisplay before showing the dialog.
22528
22529 * gtkutil.c (xg_update_menubar, create_menus): Create empty
22530 submenu for menu bar items.
22531
22532See ChangeLog.10 for earlier changes.
22533
22534;; Local Variables:
22535;; coding: utf-8
22536;; add-log-time-zone-rule: t
aac0c6e3
MR
22537;; End:
22538
e3eb1dae 22539 Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
aac0c6e3
MR
22540
22541 This file is part of GNU Emacs.
22542
22543 GNU Emacs is free software: you can redistribute it and/or modify
22544 it under the terms of the GNU General Public License as published by
22545 the Free Software Foundation, either version 3 of the License, or
22546 (at your option) any later version.
22547
22548 GNU Emacs is distributed in the hope that it will be useful,
22549 but WITHOUT ANY WARRANTY; without even the implied warranty of
22550 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22551 GNU General Public License for more details.
22552
22553 You should have received a copy of the GNU General Public License
22554 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
22555
22556;; arch-tag: dfb6ad96-1550-4905-9e53-d2059ee84c40